1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4126],{73455:function(e,t,s){var n=s(32166),r=s(8469);e.exports=function(e){return r(n(e))}},81860:function(e,t,s){var n=s(8469),r=s(31682);e.exports=function(e){return n(r(e))}},8469:function(e,t,s){var n=s(54616);e.exports=function(e,t){var s=-1,r=e.length,a=r-1;for(t=void 0===t?r:t;++s<t;){var i=n(s,a),o=e[i];e[i]=e[s],e[s]=o}return e.length=t,e}},74137:function(e,t,s){var n=s(73455),r=s(81860),a=s(55589);e.exports=function(e){return(a(e)?n:r)(e)}},83753:function(e,t,s){"use strict";s.d(t,{Z:function(){return d}});var n=s(31549),r=s(44194),a=s(7862),i=s.n(a),o=s(69321),l=s(13222),c=s(20554);let u=(0,r.forwardRef)((e,t)=>{let{category:s,previewSummary:r,...a}=e,i=function(e){if("product-group"!==e.cardPresentation)return null;let t=[...new Map(e.data.flatMap(e=>e.products).flatMap(e=>[...e.options,...e.bundles]).map(e=>[e.id,e])).values()],s=[...new Set(t.flatMap(c.tq))].sort((e,t)=>e-t);return 0===s.length?null:{id:e.id,name:e.name,currency:e.currency,images:[{key:e.image}],options:t.filter(e=>!e.bundle),bundles:t.filter(e=>e.bundle),prices:s}}(s);return i?(0,n.jsx)(o.Il,{ref:t,...a,product:i,imagePrefix:"",startingAt:!0,sale:(0,l.DD)(r,i)}):(0,n.jsx)(o.pC,{ref:t,...a,category:s})});u.propTypes={category:i().object.isRequired,previewSummary:i().object};var d=u},48238:function(e,t,s){"use strict";var n=s(31549);s(44194);var r=s(7862),a=s.n(r),i=s(51838),o=s.n(i),l=s(55580),c=s(79518),u=s(2610);let d=e=>{let t=(0,c.Z)(),{tone:s,text:r}=(0,u.J)(t,e.priceData),a=o()("d-flex align-items-center",e.className,`text-${s}`),i="danger"===s?l.e.WARNING:"success"===s?l.e.CHECK:l.e.INFO;return(0,n.jsxs)("div",{className:a,children:[(0,n.jsx)(l.Z,{type:i,className:"mr-1"}),(0,n.jsx)("span",{children:r}),e.children]})};d.propTypes={priceData:a().object,className:a().string,children:a().node},t.Z=d},97021:function(e,t,s){"use strict";s.r(t);var n=s(31549),r=s(44194),a=s(734),i=s(22104),o=s(3661),l=s(92542),c=s(90153),u=s(58620);let d=e=>{let t=(0,o.Z)(),[s,d]=(0,r.useState)([]);return(0,r.useEffect)(()=>{let e=t.getProducts(l.o6);d((0,a.Z)(e).slice(0,6))},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.F,{title:"Error",noindex:!0}),(0,n.jsxs)(c.A,{children:[(0,n.jsx)(i.$0,{children:(0,n.jsxs)(i.W2,{className:"text-center",children:[(0,n.jsx)(i.ZT.H2,{className:"section-title mb-2",children:"Oh no! Weâre sorry, something has gone wrong."}),(0,n.jsx)(i.ZT.H5,{className:"mb-2",children:"Weâre working to fix the issue."}),(0,n.jsx)(i.zx,{type:"primary",onClick:()=>window.location.reload(),children:"Refresh Now"})]})}),(0,n.jsx)(u.Qb,{title:"YOU MIGHT LIKE",products:s,xs:12,md:4})]})]})};d.getInitialProps=e=>{let{res:t,err:s}=e,n=500;return t?n=t.statusCode:s&&(n=s.statusCode),{statusCode:n,err:s}},t.default=d},39417:function(e,t,s){"use strict";s.r(t);var n=s(31549),r=s(44194),a=s(7862),i=s.n(a),o=s(22104),l=s(18105),c=s(58620),u=s(97021),d=s(90153),p=s(14508);let h=e=>{let[t,s]=(0,r.useState)([]);return((0,r.useEffect)(()=>{e.data&&p.Z.orderSend(e.data)},[e.data]),(0,r.useEffect)(()=>{let e=!1;return l.Z.blog().then(t=>{e||s(t||[])}).catch(()=>{}),()=>{e=!0}},[]),e.data)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.F,{title:"Order Placed"}),(0,n.jsxs)(d.A,{children:[(0,n.jsx)(o.$0,{children:(0,n.jsxs)(o.W2,{children:[(0,n.jsx)(o.ZT.H1,{children:"Order Received"}),(0,n.jsxs)(o.bZ,{type:"success",children:["Your order number is ",(0,n.jsx)("strong",{children:e.data.external_id}),". We're sending your photos to our printer right now!"]}),(0,n.jsxs)(o.ZT.P,{children:["You'll receive an order confirmation email in just a few minutes, and we'll write to you again once your order ships! If you have any questions about your order,"," ",(0,n.jsx)(o.ee,{href:"mailto:[email protected]",children:"drop us an email"})," and we'll be happy to help you out."]})]})}),t.length>0&&(0,n.jsx)(c.os,{data:t})]})]}):(0,n.jsx)(u.default,{statusCode:404})};h.propTypes={data:i().object},t.default=h},55620:function(e,t,s){"use strict";s.r(t);var n=s(31549),r=s(44194),a=s(22813),i=s(43605),o=s(22104),l=s(58736),c=s(62471),u=s(17103),d=s(38779),p=s(96909),h=s(3661),g=s(12606),m=s(16499),f=s(90153),x=s(14508),j=s(15227);t.default=(0,c.Z)(e=>{let t=(0,h.Z)(),s=(0,g.Z)(),c=(0,p.Z)(),y=(0,a.useRouter)();(0,r.useEffect)(()=>{0!==y.asPath.indexOf("/signin")&&0!==y.asPath.indexOf("/user")&&i.Z.session.set(j.e,y.asPath)},[y.asPath]),(0,r.useEffect)(()=>{let e=y.query.redirect;if("string"==typeof e){let t=(0,m.X_)(e,null);t&&i.Z.session.set(j.e,t)}},[y.query.redirect]);let v=async function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"signin";s.setAccessToken(e.access_token),c.toast(`You have been successfully ${"signup"===n?"signed up":"signed in"}!`,{type:"success"}),t=0===y.asPath.indexOf("/signin")?i.Z.session.has(j.e)?(0,m.X_)(i.Z.session.get(j.e,"/")):"/":(0,m.X_)(y.asPath),i.Z.session.remove(j.e),await y.replace(t),window.scrollTo(0,0)},Z=(0,d.k)(async(e,s)=>{let{data:n,error:r}=await (0,u.Z)(t.countryCode).signIn(e,s);if(r){let e;return 401===r.code&&(e=r.body),x.Z.onCustomEvent("signin_email_error"),{success:!1,error:e}}return await v(n),x.Z.signIn(n),{success:!0}}),b=(0,d.k)(async(e,s)=>{let{data:n,error:r}=await (0,u.Z)(t.countryCode).signUp(e,s);return r?(x.Z.onCustomEvent("signup_email_error"),{success:!1}):(await v(n,"signup"),x.Z.signUp(n),{success:!0})}
1),w=(0,d.k)(async e=>{let{error:s}=await (0,u.Z)(t.countryCode).resetPassword(e);return s?{success:!1}:{success:!0}}),P=async e=>{v(e),x.Z.signInWithAmazon(e)};return(0,r.useState)(),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(f.F,{title:"Login",noindex:!0}),(0,n.jsx)(f.A,{className:"d-flex",children:(0,n.jsx)(o.$0,{className:"flex-grow-1",style:{background:"no-repeat center top url(/static/img/canvas-green-bg.svg)"},children:(0,n.jsxs)(o.W2,{children:[(0,n.jsx)(o.ZT.H2,{className:"text-center mb-5",children:"LOGIN"}),(0,n.jsxs)("div",{className:"w-100 mx-auto mw-400",children:[(0,n.jsx)(l.MJ,{onSignIn:Z,onSignUp:b,onForgetPassword:w}),(0,n.jsx)(o.ZT.Span,{className:"small-decorated my-5",children:(0,n.jsx)(o.ZT.Span,{children:"Or"})}),(0,n.jsx)("div",{className:"px-0 px-sm-2",children:(0,n.jsx)(l.J6,{redirectUrl:"/signin",countryCode:t.countryCode,onSuccess:P,onFailed:e=>{x.Z.onCustomEvent("signin_amazon_error"),console.error(e),c.toast("Problem with sign in with Amazon. Please try again or use different method.",{type:"warning"})},className:"text-center"})})]})]})})})]})})},52236:function(e,t,s){"use strict";var n=s(31549);s(44194);var r=s(7862),a=s.n(r),i=s(12643),o=s(12606);let l={FORBIDDEN:403},c=[301,302,303,401,402];t.Z=(e,t)=>{let s=s=>{let r=(0,o.Z)();return s.reauthenticate||!r.accessToken?(0,n.jsx)(t,{...s}):(0,n.jsx)(e,{...s})};return s.getInitialProps=async t=>{let s={};if(!t.accessToken)return{reauthenticate:!0};if(t.accessToken&&e.getInitialProps)try{s=await e.getInitialProps(t)}catch(e){if(e.code===l.FORBIDDEN){console.log("withAuth.getInitialProps",e);let s=parseInt(JSON.parse(e.message).error.code,10);if(c.indexOf(s)>=0)return i.Z.destroy(t),{reauthenticate:!0}}else throw e}return{...s,accessToken:t.accessToken}},s.propTypes={reauthenticate:a().bool},s}},13351:function(e,t,s){"use strict";var n=s(31549),r=s(44194),a=s(7862),i=s.n(a),o=s(22104),l=s(38416),c=s(51595),u=s(3661),d=s(73291),p=s(83216),h=s(67585),g=s(82336),m=s(78506),f=s(38615),x=s(57007),j=s(76823),y=s(82987);let v=e=>{let{pageId:t,placeholders:s}=e;return{pages:[{id:t,placeholders:s}]}}
1,Z=e=>{let t=(0,p.ZP)(),s=(0,u.Z)(),[a,i]=(0,r.useState)(),g=(0,r.useMemo)(()=>{let t=s.getSkuProduct(e.productId);return t&&(async()=>{let{data:e}=await c.Z.getTemplate(t.id,t.version);e&&i(e)})(),t},[]),Z=(0,r.useRef)(),b=(0,r.useRef)(t.getItemBySku(e.productId)),[w,P]=(0,r.useState)(!!b.current?.id),[N,C]=(0,r.useState)(b.current?.data?.pages[0]?.id),[I,k]=(0,r.useState)(b.current?.data?.pages[0]?.placeholders);(0,r.useEffect)(()=>{a&&(N||C(a.pages[0]?.id),I||k(a.pages[0]?.placeholders?.filter(y.gC)?.map(e=>{let{id:t,type:s}=e;return{id:t,type:s,value:""}})))},[a,N]);let E=(0,r.useMemo)(()=>!!(g&&a&&e.available),[g,a,e.available]);(0,r.useEffect)(()=>{E&&e.onLoad()},[E]);let T=(0,r.useMemo)(()=>a?(0,m.R)(a):[],[a]);if(!E)return null;let O=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Z.current&&Z.current.cancel(),Z.current=(0,d.Z)(()=>{t.updateData(b.current.id,v({pageId:e.pageId??N,placeholders:e.placeholders??I}))},1e3),Z.current()},S=(0,y.gf)(a,{id:N,placeholders:I?.map(e=>{let{id:t,type:s,value:n}=e;return{id:t,type:s,data:{value:n}}})});return(0,n.jsxs)(n.Fragment,{children:[(0,f._)(T),(0,n.jsx)(o.Zb,{className:e.className,children:(0,n.jsxs)(o.Zb.Body,{compactBelow:"md",children:[(0,n.jsxs)(o.ZT.H4,{children:["Is this a gift?"," ",(0,n.jsx)(o.Ct,{type:"primary",size:"sm",children:"NEW"})]}),(0,n.jsxs)(o.l0.Row,{children:[(0,n.jsx)(o.l0.Col,{xs:9,sm:10,children:(0,n.jsx)(o.l0.Group,{children:(0,n.jsx)(o.l0.Input,{type:"checkbox",name:"giftnote",placeholder:"Send a 4x6 gift note, tucked in an envelope and printed with your message",checked:w,onChange:()=>{if(w)t.removeSku(e.productId);else{let e=t.addItem(g,g.version,v({pageId:N,placeholders:I}),!1);b.current={id:e}}P(!w)}})})}),(0,n.jsx)(o.l0.Col,{xs:3,sm:2,className:"text-right",children:(0,n.jsxs)("strong",{children:["+\xa0",(0,l.T4)(g.price,g.currency)]})})]}),w&&(0,n.jsx)(x.Z,{page:S,className:"mb-0 mt-1",buttonPosition:"right",otherPages:(0,y.v8)(a).map(e=>({id:e.id,preview:(0,n.jsx)(j.Z,{page:(0,y.Om)(a,S,e.id),template:a,fullWidth:!0,preview:!0})})),onChangePage:e=>{C(e),O({pageId:e})},fullWidth:!0,children:(0,n.jsx)(j.Z,{template:a,page:S,interactive:!0,onTextChange:(e,t)=>
1{k(s=>{let n=(0,h.Z)(s,n=>{let r=s.findIndex(t=>t.id===e.id);r>=0&&(n[r].value=t)});return O({placeholders:n}),n})}})})]})})]})};Z.propTypes={available:i().bool,productId:i().string,onLoad:i().func,className:i().string},Z.defaultProps={productId:g.T,onLoad:()=>{}},t.Z=e=>(0,p.ZP)().isLoading?null:(0,n.jsx)(Z,{...e})},57007:function(e,t,s){"use strict";var n=s(31549);s(92782);var r=s(44194),a=s(7862),i=s.n(a),o=s(51838),l=s.n(o),c=s(22104),u=s(55580);let d=e=>{let t;let s=(0,r.useRef)(),[a,i]=(0,r.useState)(!1),[o,d]=(0,r.useState)(!1),p=l()({"btn-circle":!0,"btn-circle-left":"left"===e.buttonPosition});t=e.fullWidth?1:e.page.size.height>e.page.size.width?e.page.size.width/e.page.size.height:1;let h=e=>{e.preventDefault(),i(e=>!e)},g=e=>{e.preventDefault(),d(e=>!e)},m=(t,s)=>{t.preventDefault(),e.onChangePage(s)},f=e=>{s.current&&s.current!==e.target&&!s.current.contains(e.target)&&(e.preventDefault(),i(!1),d(!1))};(0,r.useEffect)(()=>(a||o?setTimeout(()=>document.addEventListener("click",f)):document.removeEventListener("click",f),()=>{document.removeEventListener("click",f)}),[a,o]);let x=e.onRemove||e.onDuplicate||e.onChangeOrientation,j=e.otherPages.length>1,y=(1-t)*100/2,v={position:"absolute",width:`${100-y}%`,[e.buttonPosition]:`${y}%`};return(0,n.jsxs)(c.Zb,{className:l()({"card-page mx-auto w-100":!0,[e.className]:e.className}),children:[e.children,(0,n.jsxs)("div",{ref:s,style:v,children:[x?a?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.zx,{size:"xs",type:"outline",className:p,onClick:h,children:(0,n.jsx)(u.Z,{type:u.e.REMOVE}
1)}),(0,n.jsxs)(c.Lt,{className:"show dropdown-menu-compact",children:[e.onRemove&&(0,n.jsxs)(c.Lt.Item,{onClick:e.onRemove,className:"has-icon",children:[(0,n.jsx)("span",{children:"Delete"}),(0,n.jsx)(u.Z,{type:u.e.TRASH})]}),e.onDuplicate&&(0,n.jsxs)(c.Lt.Item,{onClick:e.onDuplicate,className:"has-icon",children:[(0,n.jsx)("span",{children:"Duplicate"}),(0,n.jsx)(u.Z,{type:u.e.DUPLICATE})]}),e.onChangeOrientation&&(0,n.jsxs)(c.Lt.Item,{onClick:e.onChangeOrientation,className:"has-icon",children:[(0,n.jsx)("span",{children:"Change orientation"}),(0,n.jsx)(u.Z,{type:u.e.ROTATE})]})]})]}):(0,n.jsx)(c.zx,{size:"xs",type:"outline",className:p,onClick:h,children:(0,n.jsx)(u.Z,{type:u.e.MORE})}):null,j?o||e.showAlwaysOtherPages?(0,n.jsxs)(n.Fragment,{children:[!e.showAlwaysOtherPages&&(0,n.jsx)(c.zx,{size:"xs",type:"outline",className:p,onClick:g,children:(0,n.jsx)(u.Z,{type:u.e.REMOVE})}),(0,n.jsxs)("div",{className:`editor-page-side-menu ${e.buttonPosition}`,children:[e.otherPagesLabel&&(0,n.jsx)(c.ZT.H6,{className:"mb-1",children:e.otherPagesLabel}),e.otherPages.map(t=>{let s=e.page.id===t.id;return(0,n.jsx)("div",{className:l()({"mb-1":!0,"border-active":s,"border-transparent":!s}),onClick:e=>m(e,t.id),children:t.preview},t.id)})]})]}):(0,n.jsx)(c.zx,{size:"xs",type:"outline",className:p,onClick:g,children:(0,n.jsx)(u.Z,{type:u.e.MORE})}):null]})]})};d.propTypes={page:i().object,buttonPosition:i().oneOf(["left","right"]),otherPages:i().array,onChangePage:i().func,onRemove:i().func,onDuplicate:i().func,onChangeOrientation:i().func,fullWidth:i().bool,className:i().string,children:i().node,showAlwaysOtherPages:i().bool,otherPagesLabel:i().string},d.defaultProps={className:"mb-1",buttonPosition:"right",otherPages:[],fullWidth:!1,showAlwaysOtherPages:!1},t.Z=d},38615:function(e,t,s){"use strict";s.d(t,{_:function(){return o}});var n=s(31549),r=s(90420);s(44194);var a=s(7862),i=s.n(a);let o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return 0===e.length?null:(0,n.jsx)("style",{type:"text/css",dangerouslySetInnerHTML:{__html:(0,r.M)(e)}})};t.Z=e=>{let t=t=>(0,n.jsxs)(n.Fragment,{children:[o(t.fonts),(0,n.jsx)(e,{...t})]});return t.getInitialProps=async t=>e.getInitialProps?e.getInitialProps(t):{},t.propTypes={fonts:i().array},t.defaultProps={fonts:[]},t}},734:function(e,t,s){"use strict";var n=s(74137),r=s.n(n);t.Z=r()},78506:function(e,t,s){"use strict";s.d(t,{R:function(){return a}}),s(79580);var n=s(58089),r=s(97561);function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all",s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=[],i=[...s];("all"===t||"cover"===t)&&e.cover&&(i.push("Baskerville-SemiBold"),a.push(...e.cover)),("all"===t||"pages"===t)&&e.pages&&a.push(...e.pages),a.forEach(e=>{e.placeholders&&e.placeholders.forEach(e=>{e.fontName&&i.push(e.fontName)})}),e.template?.styles&&Object.entries(e.template.styles).forEach(e=>{let[,t]=e;Object.entries(t??{}).forEach(e=>{let[,t]=e;t?.fontName&&i.push(t.fontName)})});let o=i.length?(0,n.Z)([...i,"OpenSans"]):[];return(0,r.mJ)(e.fonts,o)}},92782:function(){}}]); 2//# sourceMappingURL=4126-05f9072e2a450e28.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.