1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8351],{59107:function(e,t,n){n.r(t),n.d(t,{default:function(){return MoonlightBlogPage}});var o=n(82729),i=n(85893),a=n(67294),l=n(57833),r=n(7420),c=n(61483),d=n(25675),s=n.n(d),u=n(3709),p=n(45501);function _templateObject(){let e=(0,o._)(["\n width: 100%;\n background: ",";\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,o._)(["\n position: relative;\n display: flex;\n flex-direction: column;\n margin: auto;\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,o._)(["\n position: relative;\n display: flex;\n flex-direction: column;\n margin: auto;\n @media (max-width: 991px) {\n display: none;\n }\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,o._)(["\n position: relative;\n display: flex;\n flex-direction: column;\n margin: auto;\n @media (min-width: 990px) {\n display: none;\n }\n"]);return _templateObject3=function(){return e},e}function _templateObject4(){let e=(0,o._)(["\n position: relative;\n cursor: pointer;\n width: 100%;\n overflow: hidden;\n height: calc(100vw * (2 / 3));\n @media (max-width: 991px) {\n height: calc(100vw * (5 / 3));\n }\n"]);return _templateObject4=function(){return e},e}function _templateObject5(){let e=(0,o._)(["\n position: absolute;\n display: flex;\n height: 100%;\n width: 100%;\n"]);return _templateObject5=function(){return e},e}function _templateObject6(){let e=(0,o._)(["\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background: black;\n opacity: ",";\n max-width: 100%;\n margin: 0 auto;\n z-index: 1;\n height: calc(100vw * (2 / 3));\n @media (max-width: 991px) {\n height: calc(100vw * (5 / 3));\n }\n"]);return _templateObject6=function(){return e},e}function _templateObject7(){let e=(0,o._)(["\n @media (max-width: 991px) {\n display: none;\n }\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n z-index: 1;\n"]);return _templateObject7=function(){return e},e}function _templateObject8(){let e=(0,o._)(["\n width: 100%;\n height: 100%;\n object-fit: cover;\n"]);return _templateObject8=function(){return e},e}function _templateObject9(){let e=(0,o._)(["\n @media (min-width: 990px) {\n display: none;\n }\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n z-index: 1;\n"]);return _templateObject9=function(){return e},e}function CoverSection(e){let{landscapeImage:t,portraitImage:n,title:o,colorObj:l,darkLogo:r,lightLogo:d,photographerName:s,fontFamily:O,blogOverlayOpacity:k,website:y,renderConditions:C,containerWidth:P,showVideoCarousel:M,carouselMobileVideoLink:I,carouselDesktopVideoLink:Z,photographer:L}=e,F=(0,a.useMemo)(()=>!!M&&(P>991?!!Z:!!I),[I,Z,P,M]);return(0,i.jsxs)(m,{id:"carousel-hero",font:O.secondary,background:l.background,children:[(0,i.jsx)(c.Z,{logo1:l.navLogo?d:r,colorObj:l,photographerName:s,fontFamily:O,background:"transparent",website:y,containerWidth:P,renderConditions:C,photographer:L,position:F?"absolute":P>=991&&t?"absolute":"static",mobilePosition:F?"absolute":P<991&&n?"absolute":"static",isBlogDetailPage:!!n,navbarLogoType:t&&P>=991?d:l.navLogo?d:r,textcolor:t?"#faf9f5":l.navTextColor}),F?(0,i.jsx)(h,{children:(0,i.jsx)(u.Z,{fontFamily:O,template:y.website_template,carouselMobileVideoLink:I,carouselDesktopVideoLink:Z,containerWidth:P-16,overlayOpacity:k})}):(0,i.jsxs)(i.Fragment,{children:[t&&(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(g,{children:[(0,i.jsx)(b,{children:(0,i.jsx)(j,{children:(0,i.jsx)(x,{children:(0,i.jsx)(w,{src:(0,p.C)(t),width:2e3,height:2e3,alt:o,priority:!0,sizes:"(max-width: 990px) 1px, 100vw"})})})}),(0,i.jsx)(_,{overlayOpacity:k})]})}),n&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(f,{children:(0,i.jsx)(b,{children:(0,i.jsxs)(j,{children:[(0,i.jsx)(v,{children:(0,i.jsx)(w,{src:(0,p.C)(n),width:1e3,height:1e3,alt:o,priority:!0,sizes:"(min-width: 990px) 1px, 100vw"})}),(0,i.jsx)(_,{overlayOpacity:k})]})})})})," "]})]})}let m=l.ZP.div.withConfig({componentId:"sc-a3de90f2-0"}
1)(_templateObject(),e=>e.background?e.background:"#fff"),h=l.ZP.div.withConfig({componentId:"sc-a3de90f2-1"})(_templateObject1()),g=l.ZP.div.withConfig({componentId:"sc-a3de90f2-2"})(_templateObject2()),f=l.ZP.div.withConfig({componentId:"sc-a3de90f2-3"})(_templateObject3()),b=l.ZP.div.withConfig({componentId:"sc-a3de90f2-4"})(_templateObject4()),j=l.ZP.div.withConfig({componentId:"sc-a3de90f2-5"})(_templateObject5()),_=l.ZP.div.withConfig({componentId:"sc-a3de90f2-6"})(_templateObject6(),e=>e.overlayOpacity),x=l.ZP.div.withConfig({componentId:"sc-a3de90f2-7"})(_templateObject7()),w=(0,l.ZP)(s()).withConfig({componentId:"sc-a3de90f2-8"})(_templateObject8()),v=l.ZP.div.withConfig({componentId:"sc-a3de90f2-9"})(_templateObject9());var O=n(55919),k=n(23644),y=n(19564),C=n(1097),P=n(30381),M=n.n(P),I=n(8519),Z=n(70542),L=n(11163);function Moonlight_templateObject(){let e=(0,o._)(["\n width: 100%;\n display: flex;\n justify-content: center;\n flex-direction: column;\n background: ",";\n"]);return Moonlight_templateObject=function(){return e},e}function Moonlight_templateObject1(){let e=(0,o._)(["\n padding: 2vw 0;\n background: ",";\n font-family: ",";\n ","\n"]);return Moonlight_templateObject1=function(){return e},e}function Moonlight_templateObject2(){let e=(0,o._)(["\n text-align: center;\n padding: 2rem 0;\n color: ",";\n background: ",";\n"]);return Moonlight_templateObject2=function(){return e},e}function Moonlight_templateObject3(){let e=(0,o._)(["\n margin: 1rem 0;\n font-size: 40px;\n font-family: ",";\n"]);return Moonlight_templateObject3=function(){return e},e}function Moonlight_templateObject4(){let e=(0,o._)(["\n font-size: 18px;\n font-family: ",";\n"]);return Moonlight_templateObject4=function(){return e},e}function Moonlight_templateObject5(){let e=(0,o._)(["\n display: flex;\n justify-content: center;\n padding: 0 10vw;\n @media screen and (max-width: 992px) {\n padding: 0 5vw;\n }\n @media (max-width: 550px) {\n padding: 0 20px;\n }\n"]);return Moonlight_templateObject5=function(){return e},e}function Moonlight_templateObject6(){let e=(0,o._)(["\n max-width: 1800px;\n width: 100%;\n"]);return Moonlight_templateObject6=function(){return e},e}function MoonlightBlogPage(e){var t,n,o,l,c,d,s;let{title:u,date:p,texts:m,images:h,colorObj:g,darkLogo:f,lightLogo:b,fontFamily:j,identifier:_,featuredPacks:x,photographer:w,photographerName:v,portraitCoverImage:P,landscapeCoverImage:R,blogOverlayOpacity:D,website:A,renderConditions:T,template:V,relatedBlogs:Y,pageBannerShow:H,showMoreBlogs:U,blogContactForm:q,FormValues:G,hasContactForm:J,API_LINK_BASE:K,buttonLinkData:Q,isSiteBookfocal:X,...$}=e,ee={...Q,type:"contact"},et=[...h.map(e=>({...e,type:"images"})),...m.map(e=>({...e,type:"text"})),...null!==(o=null==$?void 0:null===(t=$.embeds)||void 0===t?void 0:t.map(e=>({embed:e,type:"embed",order:e.order})))&&void 0!==o?o:[],ee].sort((e,t)=>e.order<t.order?-1:1),en=q?(0,Z.fB)(q):null,eo={name:"",email:"",phoneNumber:""};null==en||en.slice(5).forEach(e=>{eo[e.field_label]=""});let ei=(0,L.useRouter)(),ea="/engagement-session/[id]"==ei.route,[el,er]=(0,a.useState)(0),[ec,ed]=(0,a.useState)(!1),[es,eu]=(0,a.useState)(0),openImagePreview=e=>{let t=ep.findIndex(t=>(null==t?void 0:t.image)===e);ed(!0),er(t)},ep=(0,a.useMemo)(()=>{let e=[];for(let t of h){let{image1:n,image2:o,image3:i,image4:a,order:l}=t;n&&e.push({image:n,order:l}),o&&e.push({image:o,order:l}),i&&e.push({image:i,order:l}),a&&e.push({image:a,order:l})}return e},[h]),handleWindowResize=()=>{eu(window.innerWidth)};(0,a.useEffect)(()=>(handleWindowResize(),window.addEventListener("resize",handleWindowResize),()=>window.removeEventListener("resize",handleWindowResize)),[]);let{defaultCoverPortrait:em,defaultCoverLandscape:eh}=I.defaultCoverImages,{facebookLink:eg,instagramLink:ef,pinterestLink:eb,youtubeLink:ej,vimeoLink:e_,tiktokLink:ex,websiteLink:ew}=$;return(0,i.jsxs)(F,{background:g.background,children:[(0,i.jsx)(CoverSection,{...$,date:p,title:u,colorObj:g,darkLogo:f,lightLogo:b,fontFamily:j,photographerName:v,portraitImage:P,landscapeImage:R,blogOverlayOpacity:D,website:A,containerWidth:es,renderConditions:T,photographer:w}),(0,i.jsx)(S,{children:(0,i.jsxs)(N,{children:[!(null!==(d=null!==(c=null!==(l=null==$?void 0:$.hideTitleAndDate)&&void 0!==l?l:null==$?void 0:null===(n=$.blog)||void 0===n?void 0:n.hide_blog_title)&&void 0!==c?c:null==$?void 0:$.hide_blog_title)&&void 0!==d&&d)&&(0,i.jsxs)(E,{background:g.background,color:g.text,children:[(0,i.jsx)(W,{font:j.primary,children:u}),U&&(0,i.jsx)(B,{font:j.secondary,children:p&&M()(p).format("MMMM Do, YYYY")})]}),(0,i.jsxs)(z,{background:g.background,font:j.secondary,children:[et.map(e=>(0,a.createElement)(k.Z,{...e,colorObj:g,openImagePreview:openImagePreview,containerWidth:es,key:e.identifier,template:V,font:j,blogContactForm:q,hasContactForm:J,sortedBlogContactForm:en,fontFamily:j,website:A,photographer:w,ApiBaseLink:K,contactFormDetails:null==en?void 0:en.slice(0,2),contactUsForm:null==en?void 0:en.slice(2),FormV
1alues:eo,fromBlog:!0,isScrollIntoView:!1,forPage:$.forPage,buttonLinkData:Q,hasFeaturedPackage:$.hasFeaturedPackage,blogFeaturedPackages:$.blogFeaturedPackages,featuredPackagesHeader:$.featuredPackagesHeader})),H&&(0,i.jsx)(C.Z,{colorObj:g,template:V,fontFamily:j}),(0,i.jsx)(r.Z,{imgs:ep.sort((e,t)=>e.order<t.order?-1:1).map(e=>({src:null==e?void 0:e.image,width:"auto",height:"auto"})),currImg:el,isOpen:ec,onClickPrev:()=>{er(el-1)},onClickNext:()=>{er(el+1)},onClose:()=>{ed(!1),er(0)}}),U&&!X&&!ea&&(0,i.jsx)(y.Z,{blogs:Y,template:V,fontFamily:j,colorObj:g})]})]})}),(0,i.jsx)(O.Z,{colorObj:g,darkLogo:f,lightLogo:b,featuredPacks:x,fontFamily:j,photographerName:v,photographer:w,website:A,renderConditions:T,textcolor:g.footerTextColor,containerWidth:es,facebookLink:eg,instagramLink:ef,designedByFocal:null===(s=null==w?void 0:w.designed_by_focal)||void 0===s||s,pinterestLink:eb,youtubeLink:ej,vimeoLink:e_,tiktokLink:ex,websiteLink:ew})]})}let F=l.ZP.div.withConfig({componentId:"sc-c329ed03-0"})(Moonlight_templateObject(),e=>e.background),z=l.ZP.div.withConfig({componentId:"sc-c329ed03-1"})(Moonlight_templateObject1(),e=>e.background,e=>e.font,""),E=l.ZP.div.withConfig({componentId:"sc-c329ed03-2"})(Moonlight_templateObject2(),e=>e.color,e=>e.background),W=l.ZP.h1.withConfig({componentId:"sc-c329ed03-3"})(Moonlight_templateObject3(),e=>e.font),B=l.ZP.h4.withConfig({componentId:"sc-c329ed03-4"})(Moonlight_templateObject4(),e=>e.font),S=l.ZP.div.withConfig({componentId:"sc-c329ed03-5"})(Moonlight_templateObject5()),N=l.ZP.div.withConfig({componentId:"sc-c329ed03-6"})(Moonlight_templateObject6())},50691:function(e,t,n){n.d(t,{Z:function(){return usePageReloadAnimation}});var o=n(67294);function usePageReloadAnimation(){let[e,t]=(0,o.useState)(0),[n,i]=(0,o.useState)(""),a=(0,o.useCallback)(()=>{t(1),i("fade-in")},[]);return(0,o.useEffect)(()=>(a(),window.addEventListener("beforeunload",a),()=>window.removeEventListener("beforeunload",a)),[a]),[e,n]}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.