PageSourceSearch

https://hueflake.dev/_next/static/chunks/pages/account/change-password-863bca324ae9577e.js

js hueflake.dev collected 2026-10-02 01:53:48 UTC 2,157 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1481],{9497:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/change-password",function(){return t(1786)}])},1786:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return b}});var r=t(1706),n=t(1501),a=t(5813),c=t(9088),o=t(1446),u=t(1734),i=t(6872),l=t(6742),p=t(613),d=t(9604),h=t(9026),f=t(8855),w=t(9187),x=t(8592),g=t(3006),m=t(7101);function b(){var e=(0,f.useState)(!1),s=e[0],t=e[1],b=(0,f.useState)({type:"",content:""}),j=b[0],N=b[1],_=(0,d.useUser)().user,y=(0,h.useRouter)(),v=(0,o.c)({initialValues:{password:""},validate:{password:function(e){return e.length>=8?null:"Password must be at least 8 characters"}}});function k(){return(k=(0,r.Z)((function(){var e,s,r,n;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return _?(e=v.values.password,t(!0),N({}),r={},[4,p.supabaseClient.auth.update((r.password=e,r))]):(y.replace("/account/recovery"),[2]);case 1:return s=a.sent().error,n={},s?N((n.type="error",n.content=s.message,n)):y.push("/dashboard"),t(!1),[2]}}))}))).apply(this,arguments)}return _?(0,c.jsxs)(l.N2,{children:[(0,c.jsx)(m.W,{title:"Change password"}),(0,c.jsx)(u.X2,{className:"justify-center gap-16",children:(0,c.jsxs)(u.sg,{className:"gap-4 items-center",children:[j.content&&(0,c.jsx)("div",{className:"".concat("error"===j.type?"text-pink-500":"text-green-500"," border ").concat("error"===j.type?"border-pink-500":"border-green-500"," p-3"),children:j.content}),(0,c.jsxs)(i.Nt,{className:"flex flex-col gap-4",children:[(0,c.jsx)("h1",{className:"text-xl font-medium self-center",children:"Reset password"}),(0,c.jsx)("form",{onSubmit:v.onSubmit((function(){return k.apply(this,arguments)})),children:(0,c.jsxs)(u.sg,{className:"gap-4",children:[(0,c.jsx)(g.o,(0,n.Z)({label:"Password",type:"password",autoComplete:"new-password"},v.getInputProps("password"))),(0,c.jsx)(x.gb,{type:"submit",loading:s,children:"Reset password"})]})})]})]})})]}):(0,c.jsx)(l.N2,{children:(0,c.jsx)(w.i,{})})}}},function(e){e.O(0,[7183,3222,1164,8329,9774,2888,179],(function(){return s=9497,e(e.s=s);var s}));var s=e.O();_N_E=s}]);

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.