PageSourceSearch

https://www.fanzo.com/_next/static/chunks/pages/reset-password-349503951a68ac78.js

js fanzo.com collected 2026-10-02 06:23:44 UTC 3,436 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7537],{48665:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/reset-password",function(){return t(87319)}])},67886:(e,s,t)=>{"use strict";t.d(s,{A:()=>m});var r=t(37876);t(14232);var a=t(24755),n=t(95062),d=t.n(n),l=t(77328),o=t.n(l),i=t(59548);let c=({title:e="FANZO",children:s=null})=>{let{i18n:t}=(0,a.Bd)(),{name:n,mainColor:d}=(0,i.$m)(t.language);return(0,r.jsxs)(o(),{children:[(0,r.jsx)("title",{children:e}),(0,r.jsx)("meta",{name:"viewport",content:"width=device-width, minimum-scale=1.0, maximum-scale=5.1,"}),(0,r.jsx)("meta",{name:"og:site_name",content:n}),(0,r.jsx)("meta",{name:"theme-color",content:d}),(0,r.jsx)("meta",{name:"robots",content:"max-image-preview:large"}),s]})};c.propTypes={title:d().string,children:d().node};let m=c},87319:(e,s,t)=>{"use strict";t.r(s),t.d(s,{__N_SSP:()=>b,default:()=>f});var r=t(37876),a=t(14232),n=t(95062),d=t.n(n),l=t(24755),o=t(89099),i=t(2462),c=t(73425),m=t(67886),x=t(59426),p=t(87441),h=t(10284),u=t(68565),w=t(36640),g=t(32328),j=t(20529);let _={password:"",confirmPassword:""},y=({token:e,t:s})=>{let[t,n]=(0,a.useState)(_),[d,y]=(0,a.useState)(null),[b,f]=(0,a.useState)(!1),[N,v]=(0,a.useState)(!1),P=(0,o.useRouter)(),[,R]=(0,g.Us)(),{i18n:A}=(0,l.Bd)(),S=(0,h.Oj)(t.password),E=!Object.values(S).some(e=>!e),k=t.confirmPassword.length>0&&t.confirmPassword===t.password,O=E&&k&&!N||b,F=()=>{v(!0),y(null),(0,c.A)("auth/change-password",A.language,void 0,{method:"POST",body:{...t,token:e}}).then(e=>{e?.error?.fields?y(Object.values(e?.error?.fields).join(", ")):e?.error?.message?y(e.error?.message):(n(_),f(!0))}).catch(e=>y(e?.message||s("passwordReset_broken"))).finally(()=>v(!1))},T=(0,r.jsx)(i.A,{loading:N,buttonStyle:`w-full rounded-lg py-3 font-semibold mt-6 ${O?"bg-tertiary text-white":"bg-veryLightGrey text-[#000]/30"}`,onClick:b?()=>P.push("/").finally(()=>R({type:j.o7})):F,disabled:!O,text:s(b?"resetPass_goToLogin":"auth_accountExists_resetPass")});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.A,{}),(0,r.jsxs)("div",{className:"px-4 py-9 md:mx-auto md:max-w-[455px] md:py-16",children:[b?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex items-center md:justify-center",children:[(0,r.jsx)("h2",{className:"headingFont_lineHeight mr-4 text-4xl md:text-6xl",children:s("passwordReset")}),(0,r.jsx)(w.A,{className:"h-12 w-12 text-secondary md:h-16 md:w-16",bold:!0})]}),(0,r.jsx)("p",{className:"py-2 opacity-85 md:pt-5 md:text-center",children:s("passwordReset_success")})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h2",{className:"headingFont_lineHeight pb-8 text-4xl md:text-center md:text-6xl",children:s("passwordReset_title")}),(0,r.jsx)(p.A,{state:t,setState:n,passwordValidation:S,passwordIsValid:E}),(0,r.jsxs)("div",{className:"pb-2 pt-4",children:[(0,r.jsx)("p",{className:"pb-2 font-semibold",children:s("passwordReset_input2")}),(0,r.jsx)(x.A,{value:t.confirmPassword,onChange:e=>n(s=>({...s,confirmPassword:e})),className:E&&!k?"border-errorRed":"border-veryLightGrey",placeholder:s("passwordReset_input2Placeholder"),onEnterKey:F})]}),E&&!d&&(0,r.jsx)(u.A,{text:s("passwordReset_input2Error"),passed:k}),d&&(0,r.jsx)("p",{className:"text-xs text-errorRed",children:d})]}),h.mW?T:!b&&T]})]})};y.propTypes={token:d().string.isRequired,t:d().func.isRequired};var b=!0;let f=(0,l.CI)()(y)}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=48665)),_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.