(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4170],{25962:function(e,o,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/page/_domains/[domain]/[urlSlug]",function(){return t(10109)}])},10109:function(e,o,t){"use strict";t.r(o),t.d(o,{__N_SSG:function(){return p},default:function(){return Blog}});var n=t(85893),i=t(9008),a=t.n(i),r=t(97842),c=t(63382),l=t(85705),s=t(67294),d=t(11163),p=!0;function Blog(e){var o,t,i,p,u;let{title:g,photographer:f,urlSlug:m,metaTitle:y,metaDescription:h,thumbnailImage:v,env:_,blogHeroVideos:x,showVideoCarousel:j,...k}=e,b=(0,d.useRouter)(),{photographerBio:w,websitePhotographerName:P,photographerType:N,photographerLocation:F,pageBannerShow:E}=k,A=g+" - "+(P||(null==f?void 0:f.name))+" | "+N+" Photographer "+F,B=w.slice(0,w.length>150?150:w.length),C=null==x?void 0:x.find(e=>0===e.video_cover_type),S=null==x?void 0:x.find(e=>1===e.video_cover_type);(0,s.useEffect)(()=>{var e,o;(null===(e=k.redirect)||void 0===e?void 0:e.destination)&&(null==b||b.replace(null===(o=k.redirect)||void 0===o?void 0:o.destination))},[null===(o=k.redirect)||void 0===o?void 0:o.destination]);let V=k.template;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.Z,{googleAnalyticsKey:null===(i=f.analytics)||void 0===i?void 0:null===(t=i.find(e=>1===e.analytics_integrate_type))||void 0===t?void 0:t.analytics_id,facebookAnalyticsKey:null===(u=f.analytics)||void 0===u?void 0:null===(p=u.find(e=>0===e.analytics_integrate_type))||void 0===p?void 0:p.analytics_id}),f&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(a(),{children:["bookfocal-production"!==_&&(0,n.jsx)("meta",{name:"robots",content:"noindex, nofollow"}),!!f.favicon_image&&(0,n.jsx)("link",{rel:"icon",type:"image/png",href:f.favicon_image}),(0,n.jsx)("title",{children:A.replace(/-/g," ")}),"bookfocal-production"===_&&f.login&&(0,n.jsx)("link",{rel:"canonical",href:"".concat((0,l.Ab)(f,_),"/blog/").concat(m)}),(0,n.jsx)("meta",{name:"description",content:h||B},"blog-description"),(0,n.jsx)("meta",{property:"og:title",content:A||y||f.companyName+"'s blog"}),(0,n.jsx)("meta",{property:"og:description",content:B||f.companyName+"'s blog"}),(0,n.jsx)("meta",{property:"og:image",content:v||""}),(0,n.jsx)("meta",{property:"og:url",content:"".concat((0,l.Ab)(f,_),"/blog/").concat(m)}),(0,n.jsx)("meta",{property:"product:brand",content:f.companyName}),(0,n.jsx)("meta",{property:"product:availability",content:"in stock"}),(0,n.jsx)("meta",{property:"product:condition",content:"new"}),(0,n.jsx)("meta",{property:"product:price:currency",content:"CAD"})]}),(0,n.jsxs)(a(),{children:[(0,n.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),(0,n.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossorigin:!0}),(0,n.jsx)("link",{href:"https://fonts.googleapis.com/css2?family=".concat(k.fontFamily.primary,":wght@400;500;600&family=").concat(k.fontFamily.secondary,":wght@300;400&family=Jost:wght@400;500;600&display=swap"),rel:"stylesheet"})]})]}),(0,n.jsx)(r.Z,{...k,template:V,photographer:f,title:g,pageBannerShow:E,showMoreBlogs:!1,forPage:!0,hasFeaturedPackage:k.hasFeaturedPackage,blogFeaturedPackages:k.blogFeaturedPackages,featuredPackagesHeader:k.featuredPackagesHeader,showVideoCarousel:j,carouselMobileVideoLink:null==S?void 0:S.video,carouselDesktopVideoLink:null==C?void 0:C.video})]})}}},function(e){e.O(0,[3415,5445,260,9866,2876,4885,7997,5935,2940,83,7420,5705,9022,6496,7741,7842,9774,2888,179],function(){return e(e.s=25962)}),_N_E=e.O()}]);