PageSourceSearch

https://scaniverse.nianticspatial.com/_next/static/chunks/app/signin/page-d8b11d1ec5e76d6f.js

js nianticspatial.com collected 2026-10-09 22:39:30 UTC 7,150 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4217],{10223:(e,s,l)=>{Promise.resolve().then(l.bind(l,3809)),Promise.resolve().then(l.t.bind(l,52619,23)),Promise.resolve().then(l.bind(l,17563)),Promise.resolve().then(l.bind(l,6837)),Promise.resolve().then(l.bind(l,34659)),Promise.resolve().then(l.bind(l,28330))},17563:(e,s,l)=>{"use strict";l.d(s,{EmailPasswordSignIn:()=>h});var a=l(95155),r=l(12115),t=l(20063),i=l(22544),n=l(58998),o=l(25641),d=l(33738),m=l(74264),c=l(60702);let u=e=>{let{isOpen:s,onClose:l,onSuccess:t}=e,[i,n]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{s&&n(!1)},[s]),(0,a.jsx)(m.a,{size:"md",isOpen:s,onClose:l,title:i?"Check your email":"Reset password",children:(0,a.jsx)("div",{className:"modal-body",children:(0,a.jsx)("div",{className:"flex flex-col h-127",children:(0,a.jsx)(c.W,{isOpen:s,isSubmitted:i,onCancel:l,onSuccess:()=>{n(!0),null==t||t()}})})})})};var x=l(82834),f=l(55576);let h=e=>{var s,l;let{redirectUrl:m,inviteCode:c}=e,h=(0,t.useSearchParams)(),[p,b]=(0,r.useState)(!1),[j,g]=(0,r.useState)(!1),[v,w]=(0,r.useState)(h.has("forgot_password")),{watch:N,register:y,handleSubmit:k,clearErrors:C,reset:S,formState:{isSubmitting:E,errors:P}}=(0,i.mN)({mode:"onSubmit",reValidateMode:"onChange"}),A=y("email",{required:"This field can't be empty.",pattern:{value:x.X,message:"Invalid email address"}}),F=y("password",{required:"This field can't be empty."}),{signinWithEmailPassword:_}=(0,f.A)(),I=async e=>{try{g(!0),b(!1),await _(e.email,e.password,{redirectUrl:m,inviteCode:c})}catch(e){b(!0),g(!1)}};return(0,r.useEffect)(()=>{let e=N(()=>{p&&b(!1),C()});return()=>e.unsubscribe()},[N,p,C]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("form",{className:"flex flex-col items-start gap-8",onSubmit:k(I),noValidate:!0,children:[(0,a.jsxs)("fieldset",{className:"form-fieldset w-full",children:[(0,a.jsx)("div",{className:"form-field",children:(0,a.jsx)(o.j,{id:"email",label:"Email Address",register:A,placeholder:"Enter your email address",error:null==(s=P.email)?void 0:s.message})}),(0,a.jsxs)("div",{className:"form-field items-start flex flex-col gap-2",children:[(0,a.jsx)(d.y,{id:"password",label:"Password",autoComplete:"off",placeholder:"Enter your password",register:F,hasError:!!P.password},"password-input"),P.password&&(0,a.jsx)("span",{className:"input-error-message",children:null==(l=P.password)?void 0:l.message}),(0,a.jsx)("button",{type:"button",className:"text-sm btn-text-link cursor-pointer",onClick:()=>w(!0),children:"Forgot password?"})]})]}),(0,a.jsxs)("div",{className:"flex flex-col items-center self-stretch gap-2",children:[(0,a.jsx)("button",{className:"btn-primary w-full",type:"submit",disabled:E||j,children:j?(0,a.jsx)(n.W,{children:"Logging in with email"}):"Login with email"}),p&&(0,a.jsxs)("div",{className:"form-submit-error-message text-center",children:["Login failed. Check your email and password"," ",(0,a.jsx)("br",{})," ","and try again."]})]})]}),(0,a.jsx)(u,{isOpen:v,onClose:()=>w(!1),onSuccess:S})]})}},33738:(e,s,l)=>{"use strict";l.d(s,{y:()=>n});var a=l(95155),r=l(12115),t=l(2821),i=l(19336);let n=e=>{let{id:s,label:l,register:n,hasError:o=!1,...d}=e,[m,c]=(0,r.useState)(!1);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("label",{htmlFor:s,className:"form-label",children:l}),(0,a.jsxs)("div",{className:(0,t.A)("input",o?"input-error":"input-primary"),children:[(0,a.jsx)("input",{id:s,autoComplete:"off",...d,...n,type:m?"text":"password"},s),(0,a.jsxs)("button",{onClick:e=>{e.preventDefault(),e.stopPropagation(),c(e=>!e)},type:"button",children:[(0,a.jsx)(i.Zt,{size:"sm",className:(0,t.A)(m?"hidden":"block")}),(0,a.jsx)(i.N5,{size:"sm",className:(0,t.A)(m?"block":"hidden")})]})]})]})}},60702:(e,s,l)=>{"use strict";l.d(s,{W:()=>c});var a=l(95155),r=l(12115),t=l(22544),i=l(25641),n=l(58998),o=l(82834),d=l(32819);let m=e=>{let{onClose:s}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"flex flex-1 flex-col",children:(0,a.jsx)("p",{children:"If your email is registered, we’ll send a password reset link shortly. Check your spam folder if you haven’t received it after a few minutes."})}),(0,a.jsx)("div",{className:"modal-action-footer w-full border-none",children:(0,a.jsx)("button",{className:"btn-primary",type:"button",onClick:s,children:"Got it"})})]})},c=e=>{let{isOpen:s,onCancel:l,onSuccess:c,isSubmitted:u}=e,[x,f]=(0,r.useState)(!1),{register:h,handleSubmit:p,formState:{isSubmitting:b,isValid:j},reset:g}=(0,t.mN)({mode:"onSubmit",reValidateMode:"onChange"}),v=h("email",{required:"Email is required",pattern:{value:o.X,message:"Invalid email address"}}),w=async e=>{f(!1),(await (0,d.b)(e.email)).success?null==c||c():f(!0)};return((0,r.useEffect)(()=>{s&&!u&&g()},[s,u,g]),u)?(0,a.jsx)(m,{onClose:l}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex flex-1 flex-col gap-4",children:[(0,a.jsx)("p",{children:"Enter your email address and we'll send you a link to reset your password."}),(0,a.jsxs)("form",{id:"forgot-password-form",className:"flex flex-col items-start",onSubmit:p(w),children:[(0,a.jsx)("fieldset",{className:"form-fieldset flex-1 w-full",children:(0,a.jsx)("div",{className:"form-field",children:(0,a.jsx)(i.j,{id:"email",label:"Email address",register:v,placeholder:"Enter your email address"})})}),x&&(0,a.jsx)("div",{className:"input-error-message mt-1",children:"Failed to send forgot password email. Please try again."})]})]}),(0,a.jsxs)("div",{className:"modal-action-footer w-full border-none",children:[(0,a.jsx)("button",{className:"btn-minimal",type:"button",onClick:l,children:"Cancel"}),(0,a.jsx)("button",{className:"btn-primary",type:"submit",form:"forgot-password-form",disabled:!j||b,children:b?(0,a.jsx)(n.W,{children:"Sending reset link"}):"Send reset link"})]})]})}},74264:(e,s,l)=>{"use strict";l.d(s,{a:()=>d});var a=l(95155),r=l(12115),t=l(2821),i=l(86498),n=l(19336);let o={sm:"w-96",md:"w-140 max-h-[90vh]",lg:"w-160 max-h-[90vh]",xl:"w-225 max-h-[90vh]",max:"w-[90vw] h-[90vh]"},d=e=>{let{isOpen:s,onClose:l,onBack:d,title:m,size:c="md",children:u,className:x,boxClassName:f,enableBackdropClose:h=!0,enableCloseButton:p=!0}=e,b=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=b.current;e&&(s?e.show():e.close())},[s]);let j=(0,r.useCallback)(()=>
1{h&&l()},[h,l]);return(0,a.jsxs)("dialog",{ref:b,className:"modal",onCancel:e=>{e.preventDefault(),e.target===b.current&&l()},onClick:e=>e.stopPropagation(),children:[(0,a.jsxs)("div",{className:(0,t.A)("modal-box flex flex-col max-w-full",o[c],f),children:[d&&(0,a.jsx)(i.K,{className:"btn-minimal absolute top-2 left-2",onClick:d,"aria-label":"Go back",leftIcon:(0,a.jsx)(n.A6,{})}),p&&(0,a.jsx)(i.K,{className:"btn-minimal absolute top-2 right-2",onClick:l,leftIcon:(0,a.jsx)(n.US,{})}),(0,a.jsxs)("div",{className:(0,t.A)("flex flex-1 flex-col min-h-0",x),children:[m&&("string"==typeof m?(0,a.jsx)("h3",{className:(0,t.A)("modal-title",(p||d)&&"px-12"),children:m}):m),u]})]}),(0,a.jsx)("button",{className:"modal-backdrop",onClick:j,children:"Modal Backdrop Close"})]})}}},e=>{e.O(0,[9204,9319,4744,2619,3809,1892,9336,2530,2377,8441,1255,7358],()=>e(e.s=10223)),_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.