1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[695],{518:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/recovery",function(){return n(6844)}])},7030:function(e,t,n){"use strict";n.d(t,{a:function(){return c}});var r,s=n(4806),a=n(9841);function i(){var e=(0,s.Z)([""]);return i=function(){return e},e}var c=n(8843).ZP.a.attrs((function(e){return{className:(0,a.Z)("text-primary transition-colors hover:text-accent/90 hover:underline active:text-accent/80",null!==(r=e.font)&&void 0!==r?r:"font-medium")}})).withConfig({componentId:"sc-2cef5b0f-0"})(i())},6844:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return N}});var r=n(1706),s=n(1501),a=n(5813),i=n(9088),c=n(1446),o=n(1734),u=n(6872),l=n(6742),d=n(613),f=n(9604),p=n(2818),h=n.n(p),m=n(9026),x=n(8855),v=n(9187),b=n(7478),g=n(8592),_=n(3006),j=n(7030),w=n(7101);function N(){var e=(0,x.useState)(!1),t=e[0],n=e[1],p=(0,x.useState)({type:"",content:""}),N=p[0],y=p[1],k=(0,f.useUser)().user,E=(0,m.useRouter)();(0,x.useEffect)((function(){k&&E.replace("/dashboard")}),[k]);var S=(0,c.c)({initialValues:{email:""},validate:{email:function(e){return/^\S+@\S+$/.test(e)?null:"Invalid email"}}});function C(){return(C=(0,r.Z)((function(){var e,t,r,s,i;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return e=S.values.email,n(!0),y({}),r={},[4,d.supabaseClient.auth.api.resetPasswordForEmail(e,(r.redirectTo="".concat(b._,"/account/change-password"),r))];case 1:return t=a.sent().error,s={},i={},y(t?(s.type="error",s.content=t.message,s):(i.type="success",i.content="Check your email for instructions.",i)),n(!1),[2]}}))}))).apply(this,arguments)}return k?(0,i.jsx)(l.N2,{children:(0,i.jsx)(v.i,{})}):(0,i.jsxs)(l.N2,{hideFooter:!0,children:[(0,i.jsx)(w.W,{title:"Reset password"}),(0,i.jsxs)(o.sg,{className:"gap-4 items-center",children:[N.content&&(0,i.jsx)("div",{className:"".concat("error"===N.type?"text-pink-500":"text-green-500"," border ").concat("error"===N.type?"border-pink-500":"border-green-500"," p-3"),children:N.content}),(0,i.jsx)("h1",{className:"text-2xl font-bold self-center mb-4",children:"Reset password"}),(0,i.jsx)(u.Tr,{className:"flex flex-col gap-4 shadow-sm mb-4 w-full max-w-md",p:"p-8",children:(0,i.jsx)("form",{onSubmit:S.onSubmit((function(){return C.apply(this,arguments)})),children:(0,i.jsxs)(o.sg,{className:"gap-4",children:[(0,i.jsx)(_.o,(0,s.Z)({label:"Email",type:"email"},S.getInputProps("email"))),(0,i.jsx)(g.gb,{type:"submit",loading:t,children:"Send email"})]})})}),(0,i.jsxs)("p",{children:["Don\u2019t need this? ",(0,i.jsx)(h(),{href:"/signin",passHref:!0,children:(0,i.jsx)(j.a,{className:"font-medium",children:"Sign in"})})]})]})]})}},7478:function(e,t,n){"use strict";var r;n.d(t,{_:function(){return s}});var s=null!==(r="https://hueflake.dev")?r:"http://localhost:4000"}},function(e){e.O(0,[7183,3222,1164,8329,9774,2888,179],(function(){return t=518,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.