PageSourceSearch

https://onceupon.photo/_next/static/chunks/1941.352b270b1b41160c.js

js onceupon.photo collected 2026-09-25 02:53:44 UTC 6,038 bytes, 2 lines download raw bytes

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]="892ad259-a3dd-42e1-bfd4-5fe23d546ead",e._sentryDebugIdIdentifier="sentry-dbid-892ad259-a3dd-42e1-bfd4-5fe23d546ead")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1941],{47485:()=>{},65561:e=>{e.exports={loader:"Loader_loader__L3HZ0",spin:"Loader_spin__bosmt",primary:"Loader_primary__HOz_l",neutral:"Loader_neutral___Y8GN",light:"Loader_light__PUFQQ"}},69826:(e,t,a)=>{"use strict";a.d(t,{V:()=>n});var r=a(14232);let n=e=>({executeRecaptcha:(0,r.useCallback)(async t=>{if(!window.grecaptcha)return null;await new Promise(e=>{window.grecaptcha.ready(()=>e())});try{return await window.grecaptcha.execute(e,{action:t})}catch(e){return null}},[e])})},79501:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var r=a(18334);let n=()=>{let e=new Date;return"[".concat(e.toLocaleTimeString(),"]")},i=e=>e.map(e=>JSON.stringify(e)).join(", "),l={info:function(e){for(var t=arguments.length,a=Array(t>1?t-1:0),l=1;l<t;l++)a[l-1]=arguments[l];r.wd("".concat(n()," [INFO] ").concat(e," ").concat(i(a)))},warn:function(e){for(var t=arguments.length,a=Array(t>1?t-1:0),l=1;l<t;l++)a[l-1]=arguments[l];r.wd("".concat(n()," [WARNING] ").concat(e," ").concat(i(a)))},error:function(e){for(var t=arguments.length,a=Array(t>1?t-1:0),n=1;n<t;n++)a[n-1]=arguments[n];r.Cp(e)}}},81941:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>x});var r=a(37876),n=a(14232),i=a(31392),l=a(83595);a(60668),a(47485);var s=a(84715),o=a(29329),d=a(88992),c=a(69826),p=a(79501),u=a(89099),f=a(52197),m=a(90905),h=a(18805),_=a(33197);let y={"da-dk":"/da-dk/hjalp/persondatapolitik","de-de":"/de-de/hilfe/datenschutzerklarung","es-es":"/es-es/ayuda/politica-de-datos","fr-fr":"/fr-fr/aide/declaration-de-confidentialite","it-it":"/it-it/aiuto/politica-sui-dati-personali","nl-nl":"/nl-nl/help/beleid-persoonsgegevens","nb-no":"/nb-no/hjelp/retningslinjer-for-personopplysninger","sv-se":"/sv-se/hjalp/personuppgiftspolicy","en-us":"/en-us/help/personal-data-policy","en-au":"/en-au/help/personal-data-policy","en-ca":"/en-ca/help/personal-data-policy"};var g=a(72684);let x=e=>{let{title:t,eventName:a,buttonId:x}
1=e,[b,w]=(0,n.useState)(!1),[j,v]=(0,n.useState)(""),[z,A]=(0,n.useState)(!1),{cookieCountry:N}=(0,o.I)(),{t:k}=(0,s.i)(),{locale:S}=(0,u.useRouter)(),C=(e=>{var t;return null!=(t=y[e])?t:"/help/personal-data-policy"})(S),{reset:E,register:I,handleSubmit:T,formState:{errors:L}}=(0,d.mN)({mode:"onTouched"}),{executeRecaptcha:D}=(0,c.V)("6LdDNsQsAAAAAM6jfc4r9J0JSMZaEOzBZkghBCGF"),J={value:/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,message:k("Website_newletter_signup_form_error_msg_typo")},O=T(async e=>{try{if(!D)return;w(!0);let t=await D("newsletter_submit"),r=S.split("-")[0],n=N||S.split("-")[1].toUpperCase(),i=await fetch("/api/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e["newsletter-email"],country:n,language:r,eventName:a,recaptchaToken:t})});if(i.ok)v(k("braze_signup_welcome")),A(!1),E();else if(409===i.status)v(k("braze_signup_welcome")),A(!1),E();else{let e=k("braze_signup_error");v("".concat(e)),A(!0)}w(!1)}catch(e){p.A.error(e)}});return(0,n.useEffect)(()=>{E(),v(""),A(!1),w(!1)},[S,E]),(0,r.jsx)("form",{noValidate:!0,onSubmit:O,children:(0,r.jsxs)("fieldset",{className:"_1lazysj0",children:[!j&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.EY,{fontSize:"body_s",fontWeight:"medium",marginBottom:"xs",children:t}),(0,r.jsx)(i.az,{className:"".concat("_1lazysj1"),children:(0,r.jsxs)(i.az,{display:"flex",style:{width:"100%"},children:[(0,r.jsx)("label",{id:"newsletter-email-label",htmlFor:"newsletter-email",className:"_1lazysj2",children:k("form_email_label")}),(0,r.jsx)("input",{type:"email",id:"newsletter-email",name:"newsletter-email",autoComplete:"email",placeholder:k("form_email_label"),...I("newsletter-email",{required:String(k("form_email_validation_text")),pattern:J}),required:!0,...(0,m.J)("newsletter-email",L,!0),className:"_1lazysj3"}),(0,r.jsx)(i.$n,{type:"submit",variant:"primary",style:{justifySelf:"left"},disabled:b,className:"_1lazysj4",id:x,children:b?(0,r.jsx)(l.A,{}):k("footer_newsletter_subscribe_button")})]})}),(0,r.jsx)(f.K,{errors:L,name:"newsletter-email",render:e=>{let{message:t}=e;return(0,r.jsx)(i.EY,{id:"newsletter-email-error",fontSize:"caption_xs",paddingTop:"xxs",fontWeight:"normal",color:"tomato",children:t})}})]}),j&&(0,r.jsxs)(i.az,{display:"flex",alignItems:"center",justifyContent:{mobile:"center",tablet:"flex-start"},gap:"xs",children:[(0,r.jsx)(g.A,{"aria-hidden":"true",name:"high-five",width:90,height:90}),(0,r.jsx)(i.EY,{as:"span",color:z?"tomato":"almostBlack",fontSize:"caption_xs",fontWeight:"semibold",paddingTop:"xxs",children:j})]}),!j&&(0,r.jsx)(i.az,{display:"flex",alignItems:"flex-start",justifyContent:"flex-start",gap:"xxs",paddingTop:"xs",style:{width:"100%"},children:(0,r.jsx)(i.EY,{fontSize:"caption_xs",fontWeight:"normal",marginBottom:"none",color:"textTertiary",style:{width:"100%"},children:(0,r.jsx)(h.x6,{i18nKey:"footer_newsletter_disclaimer",components:{privacypolicy:(0,r.jsx)(_.N,{href:"https://onceupon.photo".concat(C),target:"_blank",rel:"noopener noreferrer",className:"_1lazysj5",children:"privacypolicy"},"footer_newsletter_disclaimer")}})})})]})},S)}},83595:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var r=a(37876),n=a(69241);a(14232);var i=a(65561),l=a.n(i);let s=e=>{let{className:t,theme:a="primary"}=e,i=(0,n.A)([t,l().loader,l()[a]]);return(0,r.jsx)("div",{className:i,"data-testid":"loader"})}},90905:(e,t,a)=>{"use strict";a.d(t,{J:()=>r,r:()=>n});let r=(e,t,a)=>{let r=!!t[e];return{"aria-required":a||void 0,"aria-invalid":r||void 0,"aria-describedby":r?"".concat(e,"-error"):void 0}},n=(e,t)=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),t())}}}]);
2//# sourceMappingURL=1941.352b270b1b41160c.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.