PageSourceSearch

https://deepinfra.com/_next/static/chunks/pages/auth/password_reset-7019a713b82d5e0c.js

js deepinfra.com collected 2026-10-02 04:14:20 UTC 12,946 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7682],{2421:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var i=r(37876),n=r(14232),o=r(90246),l=r(57464),s=r(85351);let u="#00bfff",d=()=>{let e=(0,n.useRef)(null);return(0,n.useEffect)(()=>{if(!e.current)return;let t=function(e){try{let t=new s.JeP({antialias:!0});return t.setSize(e.clientWidth,e.clientHeight),e.appendChild(t.domElement),t}catch{return null}}(e.current);if(!t)return;let r=new l.Z58;r.background=new l.Q1f("#060427");let i=new l.ubm(50,e.current.clientWidth/e.current.clientHeight,1,500);i.position.set(-40,0,50),i.lookAt(r.position);let n=function(){let e=new l.bdM(100,100,100,100),t=new l.YJl,r=e.attributes.position.array,i=e.parameters.widthSegments,n=e.parameters.heightSegments;for(let e=0;e<=i;e++){let o=[];for(let t=0;t<=n;t++){let n=(t*(i+1)+e)*3,s=new l.Pq0(r[n],r[n+1],r[n+2]);o.push(s)}let s=new l.LoY().setFromPoints(o),d=new l.mrM({color:new l.Q1f(u),opacity:.7,transparent:!0,blending:l.NTi,depthTest:!1}),a=new l.N1A(s,d);a.userData={originalPoints:o.slice()},t.add(a)}return e.dispose(),t}();n.rotation.set(-Math.PI/6,0,Math.PI/20),r.add(n);let d=null,a=new l.Pq0(100,0,50),p=new l.Q1f("#030a14"),h=new l.Q1f(u),c=(0,o.Cf)(),x=new l.M4G;x.connect(document);let g=e=>{d=requestAnimationFrame(g),x.update(e);let o=.25*x.getElapsed();for(let[e,t]of n.children.entries()){let r=t.userData.originalPoints.map((t,r)=>{let i=c(.06*t.x,.06*t.y,o+.05*e)*(e/40+30/(e+3));return new l.Pq0(t.x,t.y,i)});t.geometry.setFromPoints(r);let i=Math.floor(r.length/2),s=r[i].clone().applyMatrix4(n.matrixWorld).distanceTo(a),u=l.cj9.clamp(l.cj9.mapLinear(s,80,200,1,0),0,1);t.material.color.set(p.clone().lerp(h,u))}t.render(r,i)},b=()=>{null===d&&(d=requestAnimationFrame(g))},m=()=>{null!==d&&(cancelAnimationFrame(d),d=null)},w=new IntersectionObserver(e=>{let[t]=e;t.isIntersecting?b():m()},{threshold:0});w.observe(e.current);let M=()=>{if(e.current){let r=e.current.clientWidth,n=e.current.clientHeight;i.aspect=r/n,i.updateProjectionMatrix(),t.setSize(r,n)}};return window.addEventListener("resize",M),()=>{for(let e of(m(),w.disconnect(),window.removeEventListener("resize",M),x.disconnect(),n.children))e.geometry.dispose(),e.material.dispose();t.domElement.remove(),t.dispose()}},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{ref:e,style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:0}}),(0,i.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:1,background:"linear-gradient(258.1deg, rgba(10, 7, 66, 0) 27.42%, rgba(10, 7, 66, 0.815) 73.41%, #060427 91.3%)"}})]})}},34033:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSG:()=>M,default:()=>E});var i=r(37876),n=r(99674),o=r(47737),l=r(49794),s=r(77321),u=r(40762),d=r(89099),a=r(14232),p=r(15526),h=r(46425),c=r(38709),x=r(51733),g=r(34812),b=r(11235);let m=()=>{let{t:e}=(0,s.Bd)(),{push:t,isReady:r}=(0,d.useRouter)(),{state:{profile:m,lastChecked:w}}=(0,h.A)(),[M,E]=(0,a.useState)(""),[f,j]=(0,a.useState)(""),[I,O]=(0,a.useState)("");r&&null!=m&&null!=w&&(console.log("we're logged in, no need to be here"),t("/dash"));let A=(0,p.n)({mutationFn:e=>{let{email:t}=e;return b.Ay.post("/user/request_password_reset",{email:t})},onSuccess:e=>{console.log("pr request success"),O("")},onError:t=>{var r,i,n,o;console.log("pr request failed");let l=null==(r=t.response)?void 0:r.status;console.log(null==(o=t.response)||null==(n=o.data)||null==(i=n.detail)?void 0:i.error),404==l?O(e("pages.auth.errors.email_not_registered")):429==l?O(e("pages.auth.errors.throttled")):O(e("pages.auth.password_reset.try_again"))}});return(0,i.jsxs)(c.A,{title:e("pages.auth.password_reset.title"),description:e("pages.auth.password_reset.description"),error:A.isError,errorContent:I,success:A.isSuccess,successContent:e("pages.auth.password_reset.success"),children:[(0,i.jsx)(x.m6,{open:A.isLoading}),(A.isIdle||A.isError)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(n.A,{component:"form",onSubmit:t=>{t.preventDefault(),f||(M?A.mutate({email:M}):j(e("pages.auth.errors.field_is_required")))},children:[(0,i.jsx)(x.F0,{sx:{width:"100%",mt:4},id:"email",name:"email",label:e("pages.auth.password_reset.label_email"),value:M,onChange:t=>{let{value:r}=t.target,i=r?(0,g.qz)(r,e):"";E(r),j(i)},error:!!f,helperText:f,disabled:A.isLoading,autoComplete:"email"}),(0,i.jsx)(o.A,{variant:"contained",type:"submit",disabled:A.isLoading||!!f,fullWidth:!0,sx:{mt:4},children:(0,i.jsx)(s.x6,{i18nKey:"pages.auth.password_reset.button"})})]}),(0,i.jsx)(l.A,{align:"center",fontSize:"14px",fontWeight:500,mt:2,children:(0,i.jsx)(s.x6,{i18nKey:"pages.auth.password_reset.cancel",components:{cancel_link:(0,i.jsx)(u.A,{href:"/login",underline:"always",color:"inherit"})}})})]})]})};var w=r(78397),M=!0;function E(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(w.p,{title:"Password Reset | DeepInfra",canonical:"/auth/password_reset"}),(0,i.jsx)(m,{})]})}},34812:(e,t,r)=>{"use strict";r.d(t,{Sb:()=>n,qz:()=>i,vx:()=>o});let i=(e,t)=>/^((\s.*)|(.*\s))$/.test(e)?t("pages.auth.errors.non_space_ends"):"",n=(e,t)=>e.length<14?t("pages.auth.errors.password_length",{min_length:14}):e.toUpperCase()==e?t("pages.auth.errors.password_no_lowercase"):e.toLowerCase()==e?t("pages.auth.errors.password_no_uppercase"):/^\D*$/.test(e)?t("pages.auth.errors.password_no_decimal"):"",o=(e,t)=>/^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$/.test(e)?"":t("pages.auth.errors.username")},38709:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var i=r(37876),n=r(99674),o=r(86650),l=r(2799),s=r(49794),u=r(46061),d=r(54587),a=r.n(d);let p={src:"/_next/static/media/logo_dark.32f4ffff.svg",height:30,width:28,blurWidth:0,blurHeight:0};var h=r(2421);let c=e=>{let{title:t,description:r,error:d,errorContent:c,success:x,successContent:g,children:b,hideL
1ogo:m,wide:w}=e;return(0,i.jsxs)(n.A,{sx:e=>({position:"relative",backgroundSize:"cover",pt:26,pb:"250px",[e.breakpoints.down("md")]:{pt:24}}),children:[(0,i.jsx)(h.A,{}),(0,i.jsx)(o.A,{component:"main",sx:e=>w?{[e.breakpoints.between("xs","lg")]:{maxWidth:"428px",padding:0},[e.breakpoints.up("lg")]:{maxWidth:"946px",padding:0},boxSizing:"border-box"}:{[e.breakpoints.up("xs")]:{maxWidth:"428px",padding:0},boxSizing:"border-box"},children:(0,i.jsxs)(l.A,{sx:{display:"flex",flexDirection:"column",alignItems:"center",px:4,py:4,backgroundColor:"#040320",backgroundImage:"radial-gradient(102.26% 108.23% at 51.5% -4.73%, rgba(125, 138, 255, 0.2) 0%, rgba(125, 138, 255, 0) 100%)",scrollbarColor:"#23262d transparent",border:"1px solid #EBEEF24D",borderRadius:"16px",color:"white",position:"relative",zIndex:1},children:[null!==m&&!m&&(0,i.jsx)(n.A,{children:(0,i.jsx)(a(),{src:p,alt:"Logo",height:60})}),t&&(0,i.jsx)(s.A,{align:"center",fontWeight:"600",fontSize:"30px",lineHeight:"38px",mt:3,children:t}),r&&(0,i.jsx)(s.A,{align:"center",mt:4,children:r}),b,d&&(0,i.jsx)(u.A,{sx:{width:"100%",mt:4},severity:"error",children:c}),x&&(0,i.jsx)(u.A,{sx:{width:"100%",mt:4},severity:"success",children:g})]})})]})}},50412:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/password_reset",function(){return r(34033)}])},51733:(e,t,r)=>{"use strict";r.d(t,{F0:()=>A,Sq:()=>C,ks:()=>_,m6:()=>y,pj:()=>k,rw:()=>F,vk:()=>v});var i=r(37876),n=r(14232),o=r(49794),l=r(99674),s=r(11502),u=r(65774),d=r(68284),a=r(88713),p=r(75570),h=r(59017),c=r(66120),x=r(6003),g=r(46503),b=r(35656),m=r(75548),w=r(30929),M=r(7957),E=r(22474),f=r(71538);let j=e=>(0,i.jsx)(o.A,{component:"span",fontSize:"14px",lineHeight:"20px",fontWeight:400,...e}),I=e=>{let{inputId:t,label:r,...n}=e;return(0,i.jsx)(l.A,{mb:1,children:(0,i.jsx)(s.A,{htmlFor:t,sx:{color:"white","& .MuiFormLabel-asterisk":{color:"error.light"}},...n,children:(0,i.jsx)(j,{children:r})})})},O=e=>{let{error:t,helperText:r}=e;return(0,i.jsx)(u.A,{error:t,sx:{ml:2},children:r})},A=e=>{let{sx:t,...r}=e;return(0,i.jsx)(d.A,{sx:{mt:1,width:"100%","& .MuiOutlinedInput-root":{color:"white",fontWeight:400},"& .MuiInputBase-input.Mui-disabled":{WebkitTextFillColor:"#EBEEF24D"},"& .MuiOutlinedInput-root .MuiOutlinedInput-notchedOutline":{borderColor:"#EBEEF24D"},"& .MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline":{borderColor:"white"},"& .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"white"},"& .MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:"#EBEEF24D"},"& .MuiOutlinedInput-root.Mui-error .MuiOutlinedInput-notchedOutline":{borderColor:"red"},"& .MuiFormHelperText-root":{color:"#EBEEF24D"},"& .MuiFormHelperText-root.Mui-error":{color:"red"},...t},inputProps:{style:{fontSize:"20px",lineHeight:"24px",fontWeight:400,paddingTop:"12px",paddingBottom:"12px"}},InputLabelProps:{style:{color:"white"}},...r})},_=e=>{let{id:t,label:r,maxLength:n,required:o,sx:s,inputProps:u,...p}=e,h=t+"Label";return(0,i.jsx)(l.A,{sx:{width:"100%",mt:1},children:(0,i.jsxs)(a.A,{sx:{width:"100%"},children:[(0,i.jsx)(I,{id:h,inputId:t,label:r,required:o}),(0,i.jsx)(d.A,{id:t,"aria-labelledby":h,required:o,sx:{width:"100%","& .MuiOutlinedInput-root":{color:"white",fontWeight:400},"& .MuiInputBase-input.Mui-disabled":{WebkitTextFillColor:"#EBEEF24D"},"& .MuiOutlinedInput-root .MuiOutlinedInput-notchedOutline":{borderColor:"#EBEEF24D"},"& .MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline":{borderColor:"white"},"& .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"white"},"& .MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:"#EBEEF24D"},"& .MuiFormHelperText-root":{color:"#EBEEF24D"},"& .MuiFormHelperText-root.Mui-error":{color:"red"},...s},inputProps:{maxLength:n,...u,style:{fontSize:"14px",lineHeight:"20px",fontWeight:400,paddingTop:(null==p?void 0:p.multiline)?0:"12px",paddingBottom:(null==p?void 0:p.multiline)?0:"12px",...null==u?void 0:u.style}},InputLabelProps:{style:{color:"white"}},...p})]})})},F=e=>{let{id:t,label:r,required:o,sx:s,...u}=e,c=t+"Label";return(0,i.jsx)(l.A,{sx:{width:"100%",mt:1},children:(0,i.jsxs)(a.A,{sx:{width:"100%"},children:[(0,i.jsx)(I,{id:c,inputId:t,label:r,required:o}),(0,i.jsx)(p.A,{id:t,sx:{width:"100%","& .MuiInputBase-root":{height:"44px",py:0},"& .MuiOutlinedInput-root":{color:"white",fontWeight:400},"& .MuiInputBase-input.Mui-disabled":{WebkitTextFillColor:"#EBEEF24D"},"& .MuiOutlinedInput-root .MuiOutlinedInput-notchedOutline":{borderColor:"#EBEEF24D"},"& .MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline":{borderColor:"white"},"& .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"white"},"& .MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:"#EBEEF24D"},...s},getOptionLabel:e=>e,renderOption:(e,t)=>(0,n.createElement)("li",{...e,key:t},t),renderInput:e=>(0,i.jsx)(d.A,{...e,required:o}),renderTags:(e,t)=>e.map((e,r)=>(0,n.createElement)(h.A,{...t({index:r}),key:e,label:e})),...u})]})})},v=e=>{let{id:t,label:r,values:n,error:s,helperText:u,sx:d,...p}=e,h=t+"Label";return(0,i.jsx)(l.A,{sx:{width:"100%",mt:1},children:(0,i.jsxs)(a.A,{sx:{width:"100%",height:"44px","& .MuiFormLabel-root":{color:"white",fontWeight:400}},children:[(0,i.jsx)(I,{id:h,label:r}
1),(0,i.jsx)(c.A,{id:t,sx:{width:"100%",height:"44px","&.MuiInputBase-root":{height:"44px",py:0},"&.MuiOutlinedInput-root":{color:"white",fontWeight:400},"& .MuiInputBase-input.Mui-disabled":{WebkitTextFillColor:"#EBEEF24D"},"&.MuiOutlinedInput-root .MuiOutlinedInput-notchedOutline":{borderColor:"#EBEEF24D"},"&.MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline":{borderColor:"white"},"&.MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"white"},"&.MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:"#EBEEF24D"},...d},"aria-labelledby":h,error:s,...p,children:n.map((e,t)=>(0,i.jsx)(x.A,{value:e,children:(0,i.jsx)(o.A,{fontSize:"14px",lineHeight:"20px",fontWeight:400,children:e})},e))}),(0,i.jsx)(O,{error:s,helperText:u})]})})},C=e=>{let{id:t,label:r,values:n,error:o,helperText:s,disabled:u,...d}=e;return(0,i.jsx)(l.A,{sx:{width:"100%",mt:1},children:(0,i.jsxs)(a.A,{sx:{width:"100%"},children:[(0,i.jsx)(g.A,{id:t,row:!0,...d,children:n.map((e,t)=>(0,i.jsx)(b.A,{value:e,control:(0,i.jsx)(m.A,{sx:{color:"#EBEEF24D","&.Mui-checked":{color:"white"}}}),disabled:u,label:(0,i.jsx)(j,{sx:{display:"inline-block",marginTop:"2px"},children:e})},e))}),(0,i.jsx)(O,{error:o,helperText:s})]})})},y=e=>(0,i.jsx)(w.A,{sx:{backgroundColor:"#050624D0",zIndex:e=>e.zIndex.drawer+1,position:"absolute"},...e,children:(0,i.jsx)(M.A,{})}),k=e=>{let{children:t}=e;return(0,i.jsxs)(E.A,{direction:"row",justifyContent:"center",alignItems:"center",sx:{width:"100%"},mt:2,mb:1,children:[(0,i.jsx)(f.A,{sx:{flexGrow:1,borderColor:"#EBEEF266"}}),t,(0,i.jsx)(f.A,{sx:{flexGrow:1,borderColor:"#EBEEF266"}})]})}}},e=>{var t=t=>e(e.s=t);e.O(0,[5334,7391,3926,5570,8499,5929,636,6593,8792],()=>t(50412)),_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.