PageSourceSearch

https://zonechalandise.fr/_next/static/chunks/pages/auth/sign-up-824880c0c040404d.js

js zonechalandise.fr collected 2026-10-09 23:28:48 UTC 4,022 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4928],{60822:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/sign-up",function(){return t(4827)}])},4827:function(e,s,t){"use strict";t.r(s),t.d(s,{__N_SSG:function(){return k},default:function(){return C}});var a=t(85893),n=t(41675),i=t(67294),r=t(11163),l=t(45007),u=t(2711),o=t(26638),c=t(18880),d=t(81068),p=t(19692),x=t(16829),h=t(83154),g=t(96488),m=t(10142),f=t(5558),_=t(34853),j=t(77825),v=t(68848),b=t(76828),y=t(55545),w=t(68541),N=t(4026),E=t(20834),S=t(54110),A=t(61857),k=!0;function C(e){let{locale:s}=e,{t}=(0,n.$G)("auth"),{t:k}=(0,n.$G)("seo"),{captchaToken:C,isVerified:I,handleCaptchaChange:q,recaptchaRef:O,resetCaptcha:z}=(0,u.OJ)(),{trackEvent:M}=(0,u.z$)(),T=(0,l.I0)(),G=(0,r.useRouter)();(0,i.useEffect)(()=>{G.isReady&&(0,f.h)(G.query)},[G.isReady,G.query]);let R=Array.isArray(G.query.address)?G.query.address[0]:G.query.address||"",{savedEmail:U}=(0,l.v9)(e=>e.profile),[Z,$]=(0,i.useState)(""),[L,P]=(0,i.useState)(!1),[X,F]=(0,i.useState)(!1),[J,Y]=(0,i.useState)(!1);k("sign-up.title"),k("sign-up.description");let D=async e=>{e.preventDefault(),await (0,p.sendGAEvent)("event","sign_up"),F(!0),await c.Ec.post("user/create/",{email:U,password:Z,referral_code:(0,x.qe)()||void 0,seo_attribution:(0,h.Mr)()||void 0,captcha_token:C}).then(e=>{(0,h.ai)(),(0,d.U)(U,Z,{onSuccess:async(e,s,t)=>{e?m.tO.setItem("userEmail",e):m.tO.setItem("userEmail","EMPTY_EMAIL"),(0,x.$S)(),await (0,g.o)(),await M("signUpSubmit"),G.push(R?"/dashboard?address=".concat(encodeURIComponent(R)):"/dashboard")},onError:(e,s)=>{F(!1)}})}).catch(e=>{var s;F(!1),z(),M("signUpError",{status:null==e?void 0:null===(s=e.response)||void 0===s?void 0:s.status}),Y(!0),setTimeout(()=>{Y(!1)},3e3)})},K=async()=>{let e=(await c.Ec.get("".concat("https://apiprod.zonechalandise.fr/","auth/google-url/"))).data.auth_url;G.push(e)};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(A.f,{title:k("sign-up.title"),description:k("sign-up.description"),noindex:!0,pathname:"auth/sign-up",locale:s}),(0,a.jsxs)("section",{className:"mt-20 flex flex-col justify-center max-lg:px-4",children:[(0,a.jsxs)(j.Z,{className:"mx-auto flex items-center",onSubmit:D,children:[(0,a.jsx)(v.Z,{gradient:!0}),(0,a.jsxs)("div",{className:"mb-0 text-center",children:[(0,a.jsx)("h1",{className:"text-4xl font-bold",children:t("sign-up.title")}),(0,a.jsx)("p",{className:"mt-2 text-sm",children:t("sign-up.subtitle")}),R&&(0,a.jsxs)("p",{className:"mx-auto mt-4 max-w-sm rounded-lg bg-blue-50 px-4 py-3 text-sm text-gray-700",children:[t("sign-up.address_context")," ",(0,a.jsx)("span",{className:"font-semibold text-[#0063F7]",children:R})]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,a.jsx)(y.I,{value:U,type:"email",label:t("sign-up.email"),placeholder:t("sign-up.email"),onChange:e=>T((0,o.m1)(e.target.value))}),(0,a.jsx)(y.I,{value:Z,label:t("sign-up.password"),placeholder:t("sign-up.password"),type:L?"text":"password",onChange:e=>$(e.target.value)}),(0,a.jsx)(N.X,{label:t("sign-up.show"),onClick:()=>{P(e=>!e)},value:L}),(0,a.jsx)(_.Z,{ref:O,sitekey:"6Lf_hQIqAAAAALxEkiKT3Y1f-_rOMEZ93S-sm8eg",onChange:q}),(0,a.jsx)(w.z,{className:"w-full",type:"submit",disabled:!I,loading:X,children:t("sign-up.create_button")}),(0,a.jsx)(b.x,{className:"text-xs font-thin text-gray-500",children:t("sign-up.rights")}),(0,a.jsx)("hr",{className:"mt-3"}),(0,a.jsxs)(w.z,{variant:"light",size:"sm",className:"gap-x-1 py-1",onClick:K,children:[t("googleAuth"),(0,a.jsx)(S.JM8,{className:"h-8 w-8"})]}),(0,a.jsxs)("div",{className:"mt-3 flex items-center justify-between",children:[(0,a.jsx)(b.x,{children:t("sign-up.have_account")}),(0,a.jsx)(w.z,{variant:"light",href:"/auth/sign-in",children:t("sign-up.login_button")})]})]})]}),(0,a.jsx)(E.b,{text:t("notifications.errors.sign-up_error"),variant:"danger",isOpen:J,onClose:e=>{Y(!1)}})]})]})}}},function(e){e.O(0,[6660,4232,8062,746,4961,1968,2888,9774,179],function(){return e(e.s=60822)}),_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.