1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="381a2ab6-ebb9-4ef9-98c0-0f0cf3d6edd0",e._sentryDebugIdIdentifier="sentry-dbid-381a2ab6-ebb9-4ef9-98c0-0f0cf3d6edd0")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[243,4271,5330,5910,8848],{3225:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSG:()=>T,default:()=>E,getPathsFromBuilder:()=>A});var a=n(37876),l=n(50902),o=n(77328),i=n.n(o),r=n(89099),s=n(14232),d=n(65488),u=n(55507),c=n(21513),p=n(33197);n(60668),n(55094);var g="_3lzdxw0",m="_3lzdxw1",y=n(88116),x=n(78095),h=n(97722),f=n(84715),v=n(59096);let b=e=>{var t,n,l,o;let{settings:i}=e,[r,d]=(0,s.useState)(!1),[b,j]=(0,s.useState)(0),{t:w}=(0,f.i)();return(0,s.useEffect)(()=>{let e=()=>{j(window.scrollY)};return e(),window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]),(0,a.jsxs)(a.Fragment,{children:[!i.linkToApp&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(p.N,{href:null==i?void 0:i.link,onClick:()=>u.Ay.trackConversion(),onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),className:g,children:(0,a.jsx)(y.default,{variant:null!=(t=i.type)?t:"hero",size:null!=(n=i.size)?n:"l",style:{opacity:b<=700?0:1,position:"fixed",bottom:"1.8em",right:"1.8em",transition:"all ease 0.8s",zIndex:5,width:b>=1300&&!r?c.G6.spaces.xl:"inherit",paddingInline:b>=1300&&!r?0:c.G6.spaces.l},"aria-label":b>=1300&&!r?w("products_create_button"):"",as:"span",children:b>=1300&&!r?(0,a.jsx)(v.I,{name:"add",color:"primary"===i.type?"backgroundPrimary":"textPrimary"}):i.label})}),(0,a.jsx)(p.N,{href:i.link,onClick:()=>u.Ay.trackConversion(),onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),className:m,"aria-label":w("products_create_button"),children:(0,a.jsx)(y.default,{variant:null!=(l=i.type)?l:"hero",size:null!=(o=i.size)?o:"l",style:{opacity:b<=500?0:1,position:"fixed",bottom:"1em",right:"1em",transition:"all ease 0.8s",width:c.G6.spaces.xl,paddingInline:0,zIndex:5},as:"span",children:(0,a.jsx)(v.I,{name:"add",color:"primary"===i.type?"backgroundPrimary":"textPrimary"})})})]}),i.linkToApp&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(x.A,{className:g,productType:null==i?void 0:i.productType,buttonText:null==i?void 0:i.label,type:null==i?void 0:i.type,size:null==i?void 0:i.size,defaultLocalKey:h.$,style:{opacity:b<=700?0:1,position:"fixed",bottom:c.G6.spaces.xxxs,right:"1.8em",transition:"all ease 0.8s",zIndex:5,width:b>=1300&&!r?c.G6.spaces.xl:"inherit",paddingInline:b>=1300&&!r?0:c.G6.spaces.l},onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),children:b>=1300&&!r?(0,a.jsx)(v.I,{name:"add",color:"primary"===i.type?"backgroundPrimary":"textPrimary"}):null==i?void 0:i.label}),(0,a.jsx)(x.A,{className:m,productType:null==i?void 0:i.productType,buttonText:null==i?void 0:i.label,type:null==i?void 0:i.type,size:null==i?void 0:i.size,defaultLocalKey:h.$,style:{opacity:b<=500?0:1,position:"fixed",bottom:0,right:"1em",transition:"all ease 0.8s",width:c.G6.spaces.xl,paddingInline:0,zIndex:5},children:(0,a.jsx)(v.I,{name:"add",color:"primary"===i.type?"backgroundPrimary":"textPrimary"})})]})]})},j=e=>{var t,n,l,o,p,g,m,y,x,h,f,v,j,w,_,k,I,C,P,T;let{builderContent:A,appStoreData:E,pageAlternatesForBuilder:N}=e,z=(0,r.useRouter)(),{getCanonicalUrl:L}=(0,d.i)();(0,s.useEffect)(()=>{(()=>{var e;let t=document.getElementsByTagName("h1")[0],n=document.getElementsByTagName("img")[0];t&&n&&(null==(e=n.alt)?void 0:e.length)===0&&(n.alt=t.innerText)})()},[]);let B={noindex:null!=(I=null==A||null==(t=A.data)?void 0:t.noindex)&&I,description:null!=(C=null==A||null==(n=A.data)?void 0:n.description)?C:"",title:null!=(P=null==A||null==(l=A.data)?void 0:l.title)?P:"",open_graph_image:(null==A||null==(o=A.data)?void 0:o.ogimage)?{filename:null==A||null==(p=A.data)?void 0:p.ogimage}:void 0},D=z.locale.split("-"),G=2===D.length?D[0]+"_"+D[1].toUpperCase():z.locale;0===z.asPath.indexOf("/stories-old")&&(B={noindex:!0,description:"",title:"",open_graph_image:void 0});let S=null==B?void 0:B.title,F=L(z.asPath,z.locale,z.defaultLocale);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(i(),{children:[(0,a.jsx)("title",{children:S}),B.noindex?(0,a.jsx)("meta",{name:"robots",content:"noindex"}):(0,a.jsx)("meta",{name:"robots",content:"index, follow"}),(0,a.jsx)("meta",{name:"description",content:B.description}),(0,a.jsx)("meta",{name:"twitter:description",content:B.description}),(0,a.jsx)("meta",{property:"og:description",content:B.description}),(0,a.jsx)("meta",{property:"og:title",content:B.title}),(0,a.jsx)("meta",{name:"twitter:title",content:B.title}),(0,a.jsx)("meta",{property:"og:image",content:null==(g=B.open_graph_image)?void 0:g.filename}),(0,a.jsx)("meta",{property:"og:url",content:F}),(0,a.jsx)("meta",{property:"og:type",content:"website"}),(0,a.jsx)("meta",{property:"og:locale",content:G}),(0,a.jsx)("link",{rel:"canonical",href:F}),null==N?void 0:N.map((e,t)=>(0,a.jsx)("link",{rel:"alternate",hrefLang:e.hreflang.toLowerCase(),href:e.href.toLowerCase()}
1,"".concat(e.href).concat(t))),(null==A||null==(m=A.data)?void 0:m.isProductPage)&&(0,a.jsx)("script",{type:"application/ld+json",children:JSON.stringify((e=>{let{name:t,rating:n}=e;return{"@context":"https://schema.org","@type":"Product",name:t,aggregateRating:{"@type":"AggregateRating",ratingValue:n.aggregateRating.ratingValue,ratingCount:n.aggregateRating.ratingCount}}})({name:null!=(T=null==A||null==(x=A.data)||null==(y=x.productStructuredData)?void 0:y.title)?T:"Photo books",rating:E}))})]}),(0,a.jsxs)("main",{style:{backgroundColor:(null==A||null==(f=A.data)||null==(h=f.backgroundColor)?void 0:h.value.data.color)?null==(v=A.data.backgroundColor)?void 0:v.value.data.color:null,margin:(null==A||null==(w=A.data)||null==(j=w.backgroundColor)?void 0:j.value.data.color)?c.G6.spaces.s:null,position:"relative"},id:"main",role:"main",tabIndex:-1,children:[A?(0,a.jsx)(u.RZ,{locale:z.locale,model:"page",content:A}):(0,a.jsx)(a.Fragment,{}),A&&(null==(_=A.data)?void 0:_.stickyButton)&&(0,a.jsx)(b,{settings:null==(k=A.data)?void 0:k.stickyButtonSettings})]})]})};var w=n(58335);n(42686);let _=async e=>{let{limit:t,offset:n,fields:a,builderCache:l,contentType:o,includeUnpublished:i}=e;return await w.cL.getAll(o,{...l,apiKey:"590f4251081d402c96f40922159dcfc5",limit:t,options:{noTargeting:!0,offset:n,includeUnpublished:i},fields:a})},k=(e,t)=>{var n,a;let l=null!=(n=t.data.url)?n:t.data.slug,o=t.query.filter(e=>"locale"===e.property);return o.length>0?[...e,...(null!=(a=o[0].value)?a:[]).map(e=>({url:l,locale:e}))]:e},I=async e=>{let{limit:t,fields:n,builderCache:a,contentType:l,includeUnpublished:o}=e,i=0,r=await _({limit:t,offset:i,fields:n,builderCache:a,contentType:l,includeUnpublished:o}),s=r.length;for(;r.length===t+i;){i+=s;let e=await _({limit:t,offset:i,fields:n,builderCache:a,contentType:l,includeUnpublished:o});s=e.length,r.push(...e)}return r},C=async(e,t)=>await I({limit:50,fields:"id,meta.originalContentId,data.noindex,data.slug,data.reference.id,query,startDate,endDate",builderCache:e,contentType:"blog-article",includeUnpublished:t}),P={};var T=!0;let A=async()=>{let e=[...await I({limit:50,fields:"data.url,query",builderCache:P,contentType:"page",includeUnpublished:!1}),...await C(P,!1)].reduce(k,[]);return null==e?void 0:e.map(e=>{var t,n;return{params:{slug:[...e.url.slice(1).split("/")]},locale:null!=(n=null==(t=e.locale)?void 0:t.toLowerCase())?n:"en-gb"}})},E=e=>{let{appStoreData:t,builderContent:n,pageAlternatesForBuilder:o,navHeaders:i,topBanners:r,footerData:s,navigation:d,isIndexPage:u,indexPageHeaderVariant:c,indexPageHeaderBackground:p}=e,g=null!=o?o:[];return(0,a.jsx)(l.A,{isIndexPage:u,indexPageHeaderVariant:c,indexPageHeaderBackground:p,pageAlternates:g,navHeaders:i,topBanners:r,footerData:s,navigation:d,children:(0,a.jsx)(j,{builderContent:n,appStoreData:t,pageAlternatesForBuilder:o})})}},74360:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[[...slug]]",function(){return n(3225)}])},78095:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var a=n(37876),l=n(55507),o=n(88116),i=n(14232),r=n(94085),s=n(6609),d=n(89099),u=n(84715),c=n(13869),p=n(33197);let g=e=>{let{productType:t,buttonText:n,defaultLocalKey:g,type:m="primary",size:y="m",children:x,id:h,builderContentId:f,variationId:v}=e,b=(0,d.useRouter)(),{appStoreUrl:j,googlePlayUrl:w}=(0,c.A)(),{cmsOrLokalise:_}=(0,u.j)(),k=_(n,g),I=(0,i.useMemo)(()=>"https://app.onceupon.photo/authentication/signinAnonymously/?productType=".concat(t,"&lang=").concat(b.locale),[t,b.locale]),[C,P]=(0,i.useState)(I);return(0,i.useEffect)(()=>{r.m0?P(w):r.un&&P(j)},[w,j]),(0,a.jsx)(p.N,{href:C,onClick:()=>{(C===w||C===j)&&(0,s.u2)(C),f?l.Ay.track("conversion",{contentId:f,variationId:v}):l.Ay.trackConversion()},id:h,children:(0,a.jsx)(o.default,{as:"span",variant:m,size:y,marginBottom:"xl",children:x||k})})}},97722:(e,t,n)=>{"use strict";n.d(t,{$:()=>a});
1let a="productpage_photobooks_create_button"}},e=>{e.O(0,[4085,7376,7214,2197,5818,2636,2991,4088,636,6593,8792],()=>e(e.s=74360)),_N_E=e.O()}]); 2//# sourceMappingURL=[[...slug]]-469b151164520683.js.map
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.