1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[742],{7627:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/forgot-password",function(){return r(3604)}])},5537:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var a=r(5893),s=r(9008),n=r.n(s),l=r(4298),o=r.n(l);function i(e){let{titlePage:t,title:r="The People of The Labyrinths",meta:s}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(n(),{children:[(0,a.jsxs)("title",{children:[t," | ",r]}),(0,a.jsx)("meta",{name:"description",content:s}),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,a.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,a.jsx)(o(),{id:"gtm",strategy:"afterInteractive",children:"\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n 'https://www.googletagmanager.com/gtm.js?id='
1+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','GTM-K2JZ59H');\n "})]})}},6801:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});var a=r(5893),s=r(7294);function n(e){let{register:t,name:r,type:n,placeholder:l,error:o,helperText:i,autoComplete:c,required:u,className:d}=e,m=(0,s.useRef)(null);return(0,a.jsxs)("div",{className:"mb-[30px] relative ".concat(d),children:[(0,a.jsx)("input",{type:n,className:"block pb-2.5 pt-5 w-full text-sm text-gray-900 bg-gray-50 dark:bg-gray-700 border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-blue-500 focus:outline-none focus:ring-0 focus:border-blue-600 peer ".concat(o&&"border-[#CD0000]"),placeholder:" ",autoComplete:c,id:r,ref:e=>{t(e,{required:u}),m.current=e},...t(r,{required:u})}),(0,a.jsx)("label",{htmlFor:r,className:"absolute text-sm text-gray dark:text-gray-400 duration-300 transform -translate-y-4 scale-75 top-4 z-10 origin-[0] peer-focus:text-blue-600 peer-focus:dark:text-blue-500 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-4",children:l}),o&&i&&(0,a.jsx)("p",{className:"text-sm text-[#CD0000]",id:"email-error",children:i})]})}},3604:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return m}});var a=r(5893),s=r(7536),n=r(6801),l=r(5537),o=r(1649),i=r(1323),c=r(9669),u=r.n(c),d=r(5273);function m(){let e=(0,o.I0)(),{register:t,handleSubmit:r,reset:c,formState:{errors:m}}=(0,s.cI)({defaultValues:{email:""}}),p=async t=>{let{email:r}=t;try{e((0,i.Av)());let{data:{message:t},status:a}=await u().post("/api/forgot-password",{email:r}).finally(()=>e((0,i.Vg)()));200===a?(e((0,d.IH)({status:"success",message:t})),c()):e((0,d.IH)({status:"error",message:t}))}catch(t){e((0,i.Vg)()),e((0,d.IH)({status:"error",message:"An unexpected error has occurred, please try again."}))}};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.Z,{titlePage:"Forgot Password",meta:"The People of The Labyrinths homepage"}),(0,a.jsxs)("div",{className:"max-w-[90rem] flex min-h-full flex-col justify-center px-4 py-12 sm:px-6 lg:px-8 mx-auto",children:[(0,a.jsx)("h2",{className:"break-normal mt-6 text-center text-3xl md:text-5xl font-bold tracking-widest text-gray-900 uppercase",children:"Forgot Password"}),(0,a.jsx)("p",{className:"text-center break-normal sm:mx-auto sm:w-full sm:max-w-md my-5",children:"Lost your password? Please enter your username or email address. You will receive a link to create a new password via email."}),(0,a.jsx)("form",{onSubmit:r(p),className:"mt-8 sm:mx-auto sm:w-full sm:max-w-md",children:(0,a.jsx)("div",{className:"bg-white py-8 px-4 shadow sm:px-10",children:(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsx)(n.Z,{type:"email",name:"email",autoComplete:"email",placeholder:"Email address",register:t,error:Boolean(m.email),helperText:"The email is required",required:!0}),(0,a.jsx)("div",{children:(0,a.jsx)("button",{type:"submit",className:"flex w-full justify-center border border-transparent bg-black px-10 py-4 uppercase font-medium text-white shadow-sm focus:outline-none focus:ring-2",children:"Receive email"})})]})})})]})]})}},9008:function(e,t,r){e.exports=r(2636)},4298:function(e,t,r){e.exports=r(5442)}},function(e){e.O(0,[774,888,179],function(){return e(e.s=7627)}),_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.