1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9742],{27627:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/forgot-password",function(){return s(29076)}])},29076:function(e,n,s){"use strict";s.r(n);var o=s(85893),a=s(67294),i=s(19451),r=s(9008),t=s.n(r),l=s(41664),c=s.n(l),_=s(53130),d=s.n(_);n.default=()=>{var e,n;let[s,r]=(0,a.useState)(""),[l,_]=(0,a.useState)(!1),[g,u]=(0,a.useState)(""),[m,h]=(0,a.useState)(""),[p,f]=(0,a.useState)(!1),x=(0,i.v0)(),handleSubmit=async e=>{if(e.preventDefault(),!s){h("Email is required");return}if(!/\S+@\S+\.\S+/.test(s)){h("Please enter a valid email");return}_(!0),h(""),u("");try{await (0,i.LS)(x,s),u("Password reset email sent! Check your inbox."),f(!0)}catch(e){if(console.error("Password reset error:",e),e&&"object"==typeof e&&"code"in e){let n=e.code;"auth/user-not-found"===n?h("No account found with this email address."):"auth/too-many-requests"===n?h("Too many attempts. Please try again later."):h("Failed to send reset email. Please try again.")}else h("An unexpected error occurred. Please try again.")}finally{_(!1)}};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(t(),{children:[(0,o.jsx)("title",{children:"Forgot Password | Techshots"}),(0,o.jsx)("meta",{name:"description",content:"Reset your Techshots account password."}),(0,o.jsx)("link",{rel:"canonical",href:"https://techshotsapp.com/forgot-password"}),(0,o.jsx)("meta",{name:"robots",content:"noindex, nofollow"})]}),(0,o.jsx)("div",{className:d().pageWrapper,lang:"en",children:(0,o.jsx)("div",{className:d().glassMorphismContainer,children:(0,o.jsxs)("div",{className:d().loginFormSection,children:[(0,o.jsx)("h1",{className:d().sub_heading,children:"Forgot Password?"}),p?(0,o.jsxs)("div",{className:"text-center",children:[(0,o.jsxs)("div",{className:"alert alert-success",role:"alert",children:[(0,o.jsx)("h4",{className:"alert-heading",children:"Email Sent!"}),(0,o.jsx)("p",{children:g}),(0,o.jsx)("hr",{}),(0,o.jsx)("p",{className:"mb-0",children:"Didn't receive the email? Check your spam folder or try again."})]}),(0,o.jsx)("button",{type:"button",className:"btn ".concat(null!==(n=d().bg)&&void 0!==n?n:""," mt-3"),onClick:()=>{f(!1),r(""),u(""),h("")},children:"Try Again"})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{className:"text-center mb-4",children:"Enter your email address and we'll send you a link to reset your password."}),(0,o.jsxs)("form",{onSubmit:e=>void handleSubmit(e),style:{width:"100%",maxWidth:"320px"},"aria-label":"Forgot password form",children:[(0,o.jsxs)("div",{className:d().group,children:[(0,o.jsx)("input",{type:"email",id:"email",name:"email",value:s,onChange:e=>r(e.target.value),placeholder:" ",required:!0,autoComplete:"email",autoFocus:!0,"aria-invalid":!!m,"aria-describedby":"email-error",className:m?d().inputError:""}),(0,o.jsx)("label",{htmlFor:"email",children:"Email Address"}),m&&(0,o.jsx)("span",{id:"email-error",className:d().errorMessage,role:"alert",children:m})]}),(0,o.jsx)("button",{type:"submit",className:[d().loginBtn,l&&null!==(e=d().loading)&&void 0!==e?e:""].filter(Boolean).join(" "),disabled:l,"aria-busy":l,"aria-label":"Send reset email",children:l?(0,o.jsx)("span",{className:"sr-only",children:"Sending..."}):"Send Reset Email"})]})]}),(0,o.jsx)("div",{className:"text-center mt-4",children:(0,o.jsx)(c(),{href:"/login",className:d().forgotPasswordLink,children:"â Back to Login"})})]})})})]})}},53130:function(e){e.exports={pageWrapper:"login_pageWrapper__d8QXZ",float:"login_float__24ji6",glassMorphismContainer:"login_glassMorphismContainer__y5oYg",slideIn:"login_slideIn__pdMLQ",loginFormSection:"login_loginFormSection__M4KpR",heroSectionContainer:"login_heroSectionContainer__RibQj",pulse:"login_pulse__Od7T0",sub_heading:"login_sub_heading__6n6QD",fadeInUp:"login_fadeInUp__bH6Am",info:"login_info__wQDFF",group:"login_group__6MV4O",rememberMe:"login_rememberMe__jTAVl",loginBtn:"login_loginBtn__eHUnt",forgotPasswordLink:"login_forgotPasswordLink__7Is_v",or:"login_or__N1_k8",socialAuthContainer:"login_socialAuthContainer__HDUL0",socialIconBtn:"login_socialIconBtn__QNOmj",googleBtn:"login_googleBtn__cBqdL",facebookBtn:"login_facebookBtn__zdujy",linkedinBtn:"login_linkedinBtn__Kq09N",signupPrompt:"login_signupPrompt__e_enL",signupLink:"login_signupLink__WvVKf",loading:"login_loading__NYe6_",spin:"login_spin__5eJ3t",inputError:"login_inputError__NrqA1",errorMessage:"login_errorMessage__jeRLt",fadeIn:"login_fadeIn__CeVrm",statusMessage:"login_statusMessage__9WOFB",statusSuccess:"login_statusSuccess__9Qnpi",statusError:"login_statusError__w1wfV",socialSpinner:"login_socialSpinner__OD0hO","success-checkmark":"login_success-checkmark__ob68_",checkmark:"login_checkmark__sWUWn"}}},function(e){e.O(0,[1664,9774,2888,179],function(){return e(e.s=27627)}),_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.