1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7616],{3665:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/signup",function(){return a(3719)}])},8093:function(e,t,a){"use strict";a.d(t,{Z:function(){return r}});var s=a(5893),n=a(7294);function r(e){let{figureImgUrl:t,className:a=""}=e,r=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let e=r.current;if(!e||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let t=0,a=0,s=0,n=0,i=0,o=0,l=!1,c=r=>{let u=o?(r-o)/1e3:0;o=r;let m=1-Math.exp(-3.5*u);s+=(t-s)*m,n+=(a-n)*m,e.style.setProperty("--mouse-x","".concat(s.toFixed(2),"px")),e.style.setProperty("--mouse-y","".concat(n.toFixed(2),"px")),Math.abs(t-s)>.1||Math.abs(a-n)>.1?i=requestAnimationFrame(c):l=!1},u=e=>{let{innerWidth:s,innerHeight:n}=window,r=e.clientX/s-.5,u=e.clientY/n-.5;t=360*r,a=360*u,l||(l=!0,o=0,i=requestAnimationFrame(c))};return window.addEventListener("mousemove",u),()=>{window.removeEventListener("mousemove",u),cancelAnimationFrame(i)}},[]),(0,s.jsxs)("div",{ref:r,className:"figureGlow ".concat(a).trim(),children:[(0,s.jsx)("img",{src:t,alt:"",className:"coverImage"}),(0,s.jsxs)("div",{className:"lightOrbits","aria-hidden":"true",children:[(0,s.jsx)("span",{className:"ellipse e1"}),(0,s.jsx)("span",{className:"ellipse e2"}),(0,s.jsx)("span",{className:"ellipse e3"})]})]})}},9532:function(e,t,a){"use strict";var s=a(5893),n=a(1664),r=a.n(n),i=a(1163),o=a(6887),l=a(1752);t.Z=function(e){let{showSaveExit:t=!0}=e,{t:a}=(0,o.$G)("common"),n=(0,i.useRouter)();return(0,s.jsxs)("nav",{className:"onboardingHeader",children:[(0,s.jsx)(r(),{href:"/",className:"logo","aria-label":a("general.siteName")}),t&&(0,s.jsx)(l.Z,{value:a("onboarding.saveAndExit"),submitHandle:()=>{n.push("/")},classes:"tertiary medium saveExit"})]})}},2687:function(e,t,a){"use strict";a.d(t,{GS:function(){return m},Mu:function(){return p},Zy:function(){return u},dx:function(){return g},hP:function(){return h},t1:function(){return d}});var s=a(4064),n=a(4617),r=a(1625),i=a(3730),o=a(2795),l=a(3136),c=a(3072);let u=8;async function m(){await (0,i.w)()}async function d(e){await (0,o.z)({username:e,options:{authFlowType:"USER_AUTH",preferredChallenge:"EMAIL_OTP"}})}async function p(e){await (0,l.t)({challengeResponse:e})}async function g(){await (0,c.y)({forceRefresh:!0})}async function h(){var e,t;return null!==(t=null===(e=(await (0,c.y)()).tokens)||void 0===e?void 0:e.accessToken.toString())&&void 0!==t?t:null}s.V.configure({Auth:{Cognito:{userPoolId:"eu-west-1_B3fHO5g7Q",userPoolClientId:"7ehmd1fa6894tppsi2p7v49be6"}}}),n.D.setKeyValueStorage(new r.e({domain:".cabinetofwonders.app",sameSite:"lax"}))},9054:function(e,t,a){"use strict";a.d(t,{Fw:function(){return i},dm:function(){return o},fL:function(){return r}});var s=a(7066),n=a(2687);async function r(e,t){await s.Z.post("".concat("https://puo7p2ioqp7tzzyqgcq3tr2a7m0ovgrj.lambda-url.eu-west-1.on.aws","/SelfRegistration/Register"),{email:e.email,firstName:e.firstName.trim(),lastName:e.lastName.trim(),organization:e.organization,locale:t})}async function i(e){let t=[["logoKey","logo",e.logo],["placeImageKey","placeImage",e.placeImage],["spotImageKey","spotImage",e.spotImage]],a={},r=await (0,n.hP)();for(let[e,n,i]of t)if(i)try{let{data:t}=await s.Z.post("".concat("https://puo7p2ioqp7tzzyqgcq3tr2a7m0ovgrj.lambda-url.eu-west-1.on.aws","/SelfRegistration/InitiateUpload"),{kind:n,fileName:i.name,contentType:i.type},{headers:{Authorization:"Bearer ".concat(r)}});await s.Z.put(t.uploadUrl,i,{headers:{"Content-Type":i.type}}),a[e]=t.key}catch(e){}return a}async function o(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=await (0,n.hP)(),i="".concat(e.placeAddressStreet," ").concat(e.placeAddressNumber).trim(),o=i&&e.placeAddressPostal&&e.placeAddressCity&&e.placeAddressCountry,l=e.placeAddressGeometry?{latitude:e.placeAddressGeometry.lat,longitude:e.placeAddressGeometry.lng,googlePlaceId:e.placeAddressGoogleId,addressEU:o?{street:i,postalCode:e.placeAddressPostal,city:e.placeAddressCity,region:e.placeAddressRegion,country:e.placeAddressCountry}:null}:null;await s.Z.post("".concat("https://puo7p2ioqp7tzzyqgcq3tr2a7m0ovgrj.lambda-url.eu-west-1.on.aws","/SelfRegistration/SubmitDetails"),{organization:e.organization,placeName:e.placeName,placeType:e.placeType,placeWeb:e.placeWeb,address:l,placeIntro:e.placeIntro,voice:e.voice,elevenLabsVoiceId:e.elevenLabsVoiceId,spotName:e.spotName,spotDescription:e.spotDescription,spotFloor:e.spotFloor,spotSpace:e.spotSpace,locale:t,...a},{headers:{Authorization:"Bearer ".concat(r)}})}},3719:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSG:function(){return f}});var s=a(5893),n=a(7294),r=a(1163),i=a(6887),o=a(9532),l=a(1752),c=a(8093),u=a(60),m=a(2687),d=a(9054),p=a(5121),g=a(7311),h=a(2962),f=!0;t.default=function(){let e=(0,r.useRouter)(),{t,i18n:a}=(0,i.$G)(),{data:f,update:x}
1=(0,u.P)(),[y,v]=(0,n.useState)(!1),[N,b]=(0,n.useState)(!1),[j,w]=(0,n.useState)(!1),[A,E]=(0,n.useState)(!1),F=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),S=async()=>{if(j)return;v(!0);let t=F(f.email);if(b(f.email&&!t),f.firstName&&f.lastName&&f.email&&t&&f.organization&&f.acceptedTerms){w(!0),E(!1);try{await (0,d.fL)(f,a.language),await (0,m.GS)(),await (0,m.t1)(f.email),(0,p.v4)({locale:a.language}),e.push("/signup/verification")}catch(e){E(!0)}finally{w(!1)}}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(h.PB,{title:"".concat(t("signup.register.title")," ").concat(t("general.emojiLogo")," ").concat(t("general.siteName")),description:t("general.metaDescription"),openGraph:{url:"https://cabinetofwonders.net/".concat(a.language,"/signup"),title:t("signup.register.title"),description:t("general.metaDescription")}}),(0,s.jsxs)("div",{className:"signupScreen onboardingScreen",children:[(0,s.jsx)(o.Z,{showSaveExit:!1}),(0,s.jsx)("main",{children:(0,s.jsxs)("div",{className:"formBox",children:[(0,s.jsxs)("div",{className:"titleWrap",children:[(0,s.jsx)("lord-icon",{src:"https://cdn.lordicon.com/whvtbbby.json",trigger:"in",stroke:"regular",delay:"1000",colors:"primary:#000000,secondary:#000000"}),(0,s.jsx)("h2",{children:t("signup.register.title")})]}),(0,s.jsxs)("div",{className:"textField".concat(y&&!f.firstName?" submitError":""),children:[(0,s.jsx)("input",{type:"text",id:"firstName",name:"firstName",autoComplete:"given-name",placeholder:"",value:f.firstName,onChange:e=>x("firstName",e.target.value)}),(0,s.jsx)("label",{htmlFor:"firstName",children:t("signup.register.labelFirstName")})]}),(0,s.jsxs)("div",{className:"textField".concat(y&&!f.lastName?" submitError":""),children:[(0,s.jsx)("input",{type:"text",id:"lastName",name:"lastName",autoComplete:"family-name",placeholder:"",value:f.lastName,onChange:e=>x("lastName",e.target.value)}),(0,s.jsx)("label",{htmlFor:"lastName",children:t("signup.register.labelLastName")})]}),(0,s.jsxs)("div",{className:"textField".concat(y&&(!f.email||N)?" submitError":""),children:[(0,s.jsx)("input",{type:"email",id:"email",name:"email",placeholder:"",value:f.email,onChange:e=>{x("email",e.target.value),y&&b(e.target.value&&!F(e.target.value))}}),(0,s.jsx)("label",{htmlFor:"email",children:t("signup.register.labelEmail")})]}),y&&N&&(0,s.jsx)("p",{className:"errorMessage",children:t("signup.register.emailFormatError")}),(0,s.jsxs)("div",{className:"textField".concat(y&&!f.organization?" submitError":""),children:[(0,s.jsx)("input",{type:"text",id:"organization",name:"organization",placeholder:"",value:f.organization,onChange:e=>x("organization",e.target.value)}),(0,s.jsx)("label",{htmlFor:"organization",children:t("signup.register.labelOrganization")})]}),(0,s.jsxs)("div",{className:"checkbox checkboxField".concat(y&&!f.acceptedTerms?" submitError":""),children:[(0,s.jsx)("input",{type:"checkbox",id:"terms",name:"terms",checked:f.acceptedTerms,onChange:e=>x("acceptedTerms",e.target.checked)}),(0,s.jsx)("label",{htmlFor:"terms",children:(0,s.jsx)("span",{children:(0,g.ZP)(t("signup.register.termsLabel"))})})]}),A&&(0,s.jsx)("p",{className:"errorMessage",children:t("signup.register.genericError")}),(0,s.jsx)(l.Z,{value:t(j?"signup.register.submitButtonLoading":"signup.register.submitButton"),submitHandle:S})]})}),(0,s.jsx)("aside",{className:"bustWrap",children:(0,s.jsx)(c.Z,{figureImgUrl:"/images/storyteller-bust.png"})})]})]})}}},function(e){e.O(0,[7311,9282,6372,7066,2888,9774,179],function(){return e(e.s=3665)}),_N_E=e.O()}]);
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.