PageSourceSearch

https://idesaign.ai/_next/static/chunks/pages/reset-password-a249334de82255a0.js

js idesaign.ai collected 2026-10-05 15:22:49 UTC 4,047 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7537],{17452:(e,s,r)=>{"use strict";r.r(s),r.d(s,{__N_SSP:()=>p,default:()=>u});var a=r(37876),t=r(14232),i=r(77328),l=r.n(i),n=r(48230),c=r.n(n),o=r(89099),d=r(14308),_=r(56075),m=r.n(_),p=!0;function u(){let e=(0,o.useRouter)(),{user:s,loading:r,error:i,resetPassword:n}=(0,d.A)(),[_,p]=(0,t.useState)({email:""}),[u,h]=(0,t.useState)({}),[w,x]=(0,t.useState)(!1),[f,j]=(0,t.useState)(null),[N,k]=(0,t.useState)(null);(0,t.useEffect)(()=>{!r&&s&&e.push("/dashboard")},[s,r,e]);let v=async e=>{if(e.preventDefault(),j(null),k(null),(()=>{let e={};return _.email?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(_.email)||(e.email="Please enter a valid email address"):e.email="Email is required",h(e),0===Object.keys(e).length})()){x(!0);try{await n(_.email),k("Check your email for a password reset link. It may take a few minutes to arrive."),p({email:""})}catch(e){j(i||"Failed to send reset email. Please try again.")}finally{x(!1)}}},g=f||i;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(l(),{children:[(0,a.jsx)("title",{children:"Reset Password — Idesaign"}),(0,a.jsx)("meta",{name:"description",content:"Reset your Idesaign account password"}),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})]}),(0,a.jsx)("div",{className:m().container,children:(0,a.jsxs)("div",{className:m().card,children:[(0,a.jsxs)("div",{className:m().header,children:[(0,a.jsx)("h1",{className:m().logo,children:"Idesaign"}),(0,a.jsx)("p",{className:m().tagline,children:"Reset your password"})]}),N&&(0,a.jsxs)("div",{className:m().successBanner,children:[(0,a.jsx)("div",{className:m().successIcon,children:"✓"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:m().successTitle,children:"Reset link sent"}),(0,a.jsx)("p",{className:m().successText,children:N})]})]}),g&&(0,a.jsxs)("div",{className:m().errorBanner,children:[(0,a.jsx)("div",{className:m().errorIcon,children:"!"}),(0,a.jsx)("p",{className:m().errorText,children:g})]}),!N&&(0,a.jsxs)("form",{className:m().form,onSubmit:v,children:[(0,a.jsxs)("div",{className:m().fieldGroup,children:[(0,a.jsx)("label",{htmlFor:"email",className:m().label,children:"Email Address"}),(0,a.jsx)("p",{className:m().fieldDescription,children:"Enter the email address associated with your account."}),(0,a.jsx)("input",{id:"email",type:"email",className:"".concat(m().input," ").concat(u.email?m().inputError:""),placeholder:"[email protected]",value:_.email,onChange:e=>{p({email:e.target.value}),u.email&&h({})},disabled:w,autoComplete:"email"}),u.email&&(0,a.jsx)("p",{className:m().fieldError,children:u.email})]}),(0,a.jsx)("button",{type:"submit",className:m().primaryButton,disabled:w||r,children:w?"Sending...":"Send Reset Link"})]}),(0,a.jsx)("div",{className:m().footer,children:(0,a.jsx)(c(),{href:"/",className:m().backLink,children:"← Back to home"})})]})})]})}},43274:(e,s,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/reset-password",function(){return r(17452)}])},56075:e=>{e.exports={container:"reset-password_container__W_npp",card:"reset-password_card__jiphh",header:"reset-password_header__NopWD",logo:"reset-password_logo___4EYi",tagline:"reset-password_tagline__h6DKy",errorBanner:"reset-password_errorBanner__TWTEA",errorIcon:"reset-password_errorIcon__0Ctm0",errorText:"reset-password_errorText__ipMgO",successBanner:"reset-password_successBanner__kfvNK",successIcon:"reset-password_successIcon__SSTDI",successTitle:"reset-password_successTitle__TkRMn",successText:"reset-password_successText__rwPtl",form:"reset-password_form__4k1zz",fieldGroup:"reset-password_fieldGroup__3Ix9W",label:"reset-password_label__2IBDx",fieldDescription:"reset-password_fieldDescription__UzRiX",input:"reset-password_input__CjRAt",inputError:"reset-password_inputError__m505g",fieldError:"reset-password_fieldError__1o_3f",primaryButton:"reset-password_primaryButton__CmOhN",footer
1:"reset-password_footer__w8IJ1",backLink:"reset-password_backLink__HWml5"}}},e=>{e.O(0,[3648,636,6593,8792],()=>e(e.s=43274)),_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.