PageSourceSearch

https://www.eos.surf/_next/static/chunks/pages/account/update/password-e707f592a4f8456b.js

js eos.surf collected 2026-10-02 06:22:46 UTC 9,494 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9525],{89617:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/update/password",function(){return l(86982)}])},92595:function(e,t,l){"use strict";var n=l(85893);t.Z=e=>{let{error:t}=e;return(0,n.jsx)("div",{className:"bg-hos-primary-100 relative mt-6 rounded border border-error bg-error bg-opacity-5 px-4 py-3 text-left text-error",role:"alert",children:(0,n.jsx)("div",{className:"text-sm",children:"object"==typeof t?t.message:t})})}},10778:function(e,t,l){"use strict";l.d(t,{g:function(){return o}});var n=l(85893),a=l(20512),s=l(67294),i=l(21092),r=l(9629);let o=e=>{let{label:t,name:l,fieldClassName:o,required:c,type:d="text",id:u,disabled:p,placeholder:m,onChange:x,showPasswordToggle:f=!1}=e,[h,v]=(0,s.useState)(!1),w=(0,a.u6)();if(!w)throw Error("Can't use formik context. Please wrap your component in a <Formik> component.");let{getFieldProps:g,getFieldMeta:b}=w,[j,y]=[g(l),b(l)],{error:N,touched:k}=y,{value:_,onChange:Z,onBlur:C}=j;return(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsxs)("label",{htmlFor:l,className:"flex w-full items-center justify-between text-left text-xs font-bold uppercase leading-6",children:[(0,n.jsxs)("span",{children:[t," ",c&&(0,n.jsx)("span",{className:"text-error",children:"*"})]}),k&&N&&!p&&(0,n.jsx)("span",{className:"text-start font-normal text-error",children:N})]}),(0,n.jsxs)("div",{className:"relative mt-2",children:[(0,n.jsx)("input",{disabled:p,className:(0,i.Z)("mb-4 w-full border border-encyclopedia-nuetral-300 bg-white px-4 py-3 font-normal placeholder-gray-200 focus:outline-none","focus:border-aux-500","disabled:pointer-events-none disabled:text-gray-500 disabled:opacity-60",f&&"password"===d&&"pr-12",o),placeholder:m,id:u,name:l,type:"password"===d&&h?"text":d,value:"email"===d&&_?_.toLowerCase().replace(/\s+/g,""):_,onChange:e=>{Z(e),x&&x(e,{[l]:e.target.value})},onBlur:C}),f&&"password"===d&&(0,n.jsx)("button",{type:"button",className:"absolute right-3 top-1/2 -translate-y-1/2 -mt-2 p-1 text-gray-500 hover:text-gray-700 focus:outline-none",onClick:()=>v(!h),"aria-label":h?"Hide password":"Show password",children:(0,n.jsx)(r.Z,{name:h?"eye-slash":"eye",className:"h-5 w-5"})})]})]})}},36319:function(e,t,l){"use strict";l.d(t,{Z:function(){return r}});var n=l(85893);l(67294);var a=l(21092),s=l(45378),i=l(83060);function r(e){var t;let{level:l,as:r,children:o,className:c}=e,{env:d}=(0,i.o)(),u="h".concat(l);if(!d)return;let p={1:"tracking-h1 text-h1 leading-h1 mb-8 text-encyclopedia-nuetral-900 font-semibold",2:"tracking-h2 text-h2 leading-h2 mb-8 text-encyclopedia-nuetral-900 font-semibold",3:"tracking-h3 text-h3 leading-h3 mb-6 text-encyclopedia-nuetral-900 font-semibold",4:"tracking-h4 text-h4 leading-h4 mb-6 text-encyclopedia-nuetral-900 font-semibold",5:"tracking-h5 text-h5 leading-h5 mb-4 text-encyclopedia-nuetral-900 font-bold uppercase",6:"tracking-h6 text-h6 leading-h6 mb-4 text-encyclopedia-nuetral-900 font-bold uppercase"}[r||l]||"text-h1 leading-h1 tracking-tight",m=d&&!["feature","joint","eos","aux"].includes(d)?null===(t=s.x[d])||void 0===t?void 0:t.fontClass:"font-aux";return(0,n.jsx)(u,{className:(0,a.Z)(p,m,c&&c),children:o})}},19355:function(e,t,l){"use strict";l.d(t,{Z:function(){return s}});var n=l(85893);l(67294);var a=l(21092);function s(e){let{children:t,fluid:l=!1,thin:s=!1,thinnest:i=!1,className:r}=e;return(0,n.jsx)("div",{className:(0,a.Z)("mx-auto px-8 sm:pr-28",l?"w-full max-w-screen-3xl":"container",s&&"w-full xl:w-2/3 2xl:w-3/5",i&&"w-full max-w-screen-md",r||""),children:t})}},50959:function(e,t,l){"use strict";l.d(t,{Z:function(){return m}});var n=l(85893),a=l(2962),s=l(21092),i=l(9008),r=l.n(i);function o(e){let{env:t}=e;return(0,n.jsxs)(r(),{children:[(0,n.jsx)("link",{rel:"manifest",href:"/manifest.json"}),(0,n.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/app/".concat(t,"/apple-touch-icon.png")}),(0,n.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/app/".concat(t,"/favicon-32x32.png")}),(0,n.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/app/".concat(t,"/favicon-16x16.png")}),(0,n.jsx)("link",{rel:"manifest",href:"/app/".concat(t,"/site.webmanifest")}),(0,n.jsx)("link",{rel:"shortcut icon",href:"/app/".concat(t,"/favicon.ico")}),(0,n.jsx)("meta",{name:"msapplication-config",content:"/app/".concat(t,"/browserconfig.xml")}),(0,n.jsx)("meta",{name:"theme-color",content:"#ffffff"})]})}var c=l(12560);l(67294);var d=l(37115),u=function(e){let{children:t}=e;return(0,n.jsx)(c.m.div,{className:"relative z-0 min-h-screen w-full",initial:"initial",animate:"enter",exit:"exit",variants:d.D_,children:t})};let p=(e,t)=>t?"".concat(e," - ").concat(t):e;function m(e){var t,l,i,r,c,d,m,x,f,h,v,w,g;let{children:b,page:j,site:y,tight:N}=e,k=p((null==j?void 0:null===(l=j.meta)||void 0===l?void 0:null===(t=l.seo)||void 0===t?void 0:t.metaTitle)||(null==j?void 0:j.title)||(null==y?void 0:null===(i=y.seo)||void 0===i?void 0:i.title),null==j?void 0:j.subtitle),_=(null==j?void 0:null===(c=j.meta)||void 0===c?void 0:null===(r=c.seo)||void 0===r?void 0:r.metaDesc)||(null==j?void 0:j.excerpt)||(null==y?void 0:null===(d=y.seo)||void 0===d?void 0:d.metaDesc)||(null==y?void 0:null===(m=y.seo)||void 0===m?void 0:m.description),Z=(null==j?void 0:null===(f=j.meta)||void 0===f?void 0:null===(x=f.seo)||void 0===x?void 0:x.shareTitle)||p(k,null==j?void 0:j.seoTitle),C=(null==j?void 0:j.ogExcerpt)||_,P=(null==j?void 0:j.ogImage)||(null==j?void 0:null===(h=j.featuredImage)||void 0===h?void 0:h.url)||(null==y?void 0:null===(w=y.seo)||void 0===w?void 0:null===(v=w.shareGraphic)||void 0===v?void 0:v.url),T="https://eos.surf/".concat(null==j?void 0:j.ogUrl);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.PB,{title:p(k,null==j?void 0:j.seoTitle),description:_,openGraph:{title:Z,url:T,description:C,site_name:null==y?void 0:null===(g=y.seo)||void 0===g?void 0:g.title,type:"article",article:{publishedTime:"".concat((null==j?void 0:j._createdAt)||""),modifiedTime:"".concat((null==j?void 0:j._updatedAt)||"")},images:[{url:"".concat(P,"?w=1200&h=675&fit=crop&crop=entropy&q=60"),width:1200,height:675,alt:Z}]},twitter:{cardType:"summary_large_image"}}),(0,n.jsx)(o,{env:(null==j?void 0:j.env)||"aux"}),(0,n.jsx)("div",{className:(0,s.Z)("relative z-0 min-h-screen",!N&&"py-8 lg:py-16 xl:py-32"),children:(0,n.jsx)(u,{children:b})})]})}},41618:function(e,t,l){"use strict";l.d(t,{Z:function(){return r}});var n=l(85893),a=l(21092),s=l(36319),i=l(9629);function r(e){let{title:t,children:l,chapter:r,headingClassName:o,spinner:c,thin:d,as:u}=e;return(0,n.jsxs)("header",{className:(0,a.Z)("relative col-span-full mb-4 flex flex-col space-y-5 ",!d&&"xl:col-span-3 2xl:col-span-7"),children:[(0,n.jsxs)("div",{children:[r&&(0,n.jsx)(s.Z,{level:4,className:"mb-2 w-full font-normal capitalize tracking-wide",children:r}),(0,n.jsxs)(s.Z,{className:(0,a.Z)("mb-0 flex w-full",o),level:1,as:u,children:[c&&(0,n.jsx)(i.Z,{name:"spinner",className:"mr-2 w-6 animate-spin"})," ",t]},t)]}),l]})}},86982:function(e,t,l){"use strict";l.r(t),l.d(t,{__N_SSG:function(){return f}});var n=l(85893),a=l(20512),s=l(11163),i=l(67294),r=l(97399),o=l(9629),c=l(19355),d=l(92595),u=l(10778),p=l(50959),m=l(41618),x=l(15228),f=!0;t.default=()=>{let{user:e}=(0,r.fC)(),[t,l]=(0,i.useState)(!1),[f,h]=(0,i.useState)(""),[v,w]=(0,i.useState)(!1),g=(0,s.useRouter)();(0,i.useEffect)(()=>
1{e||g.push(x.DV)},[e]);let b=async e=>{h(""),w(!0);try{await (0,r.Nq)({password:e}),setTimeout(()=>{g.push(x.lG)},200)}catch(e){h(e.message)}finally{w(!1)}};return(0,n.jsx)(p.Z,{preview:!1,children:(0,n.jsxs)(c.Z,{className:"w-120 px-2",fluid:!0,children:[f&&(0,n.jsx)(d.Z,{error:f}),(0,n.jsx)("div",{className:"flex h-full w-120 flex-wrap items-center justify-center",children:(0,n.jsx)("div",{className:"my-4 flex w-120 items-center",children:(0,n.jsxs)("div",{className:"text-left",children:[(0,n.jsx)(m.Z,{title:"update your password",headingClassName:"text-h5 tracking-wide uppercase -mb-8"}),(0,n.jsx)("div",{className:"text-md col-span-full mb-8 w-full",children:"Enter your new password into the fields below"}),(0,n.jsx)("div",{className:"col-span-full mb-8 mt-3 h-4 w-full bg-encyclopedia-nuetral-100"}),(0,n.jsx)(a.J9,{initialValues:{password:"",confirmPassword:""},onSubmit:e=>{t&&b(e.password)},children:e=>{let{values:s,handleSubmit:i}=e;return(0,n.jsxs)(a.l0,{onSubmit:i,className:"w-120 space-y-4 font-aux text-sm",noValidate:!0,children:[(0,n.jsx)(u.g,{label:"New Password",fieldClassName:"enabled:bg-aux-100 focus:border-aux-600 py-4 h-14",name:"password",id:"password",placeholder:"Enter your password",type:"password",required:!0,showPasswordToggle:!0}),(0,n.jsx)(u.g,{label:"Confirm New Password",name:"confirmPassword",id:"confirmPassword",fieldClassName:"enabled:bg-aux-100 focus:border-aux-600 py-4 h-14",placeholder:"Confirm your password",type:"password",onChange:e=>{l(s.password===e.target.value)},required:!0,showPasswordToggle:!0}),(0,n.jsx)("button",{disabled:!t||v||!s.password||!s.confirmPassword,type:"submit",className:"flex w-full cursor-pointer justify-center rounded-sm bg-aux-600 px-3 py-4 text-xs font-normal uppercase tracking-wider text-white shadow-sm hover:bg-aux-700 disabled:pointer-events-none disabled:opacity-70",children:v?(0,n.jsx)(o.Z,{name:"spinner",className:"h-4 w-4 animate-spin"}):"Update Password"})]})}})]})})})]})})}}},function(e){e.O(0,[512,2888,9774,179],function(){return e(e.s=89617)}),_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.