1import{c as j,j as e,F as h,H as _}from"./app-BpT6DH02.js";import{I as c}from"./input-error-BK624s4c.js";import{B as g}from"./app-logo-icon-Dl3SjgHu.js";import{I as f}from"./input-DTixfyQH.js";import{L as w}from"./label-0IMCl6Ez.js";import{S as b}from"./spinner-CLvSdjPI.js";import{A as y}from"./auth-layout-BP4jRf-g.js";import{u as N}from"./index-Cr8TBsq2.js";/* empty css */import"./index-CuLd4fV3.js";import"./loader-circle-D43bntMi.js";import"./index-Cy3F9wCh.js";function H(x){const s=j.c(11),{token:d,email:a}=x;let t;s[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(_,{title:"Reset password"}),s[0]=t):t=s[0];let l;s[1]===Symbol.for("react.memo_cache_sentinel")?(l=N.form(),s[1]=l):l=s[1];let r;s[2]!==a||s[3]!==d?(r=n=>({...n,token:d,email:a}),s[2]=a,s[3]=d,s[4]=r):r=s[4];let m;s[5]===Symbol.for("react.memo_cache_sentinel")?(m=["password","password_confirmation"],s[5]=m):m=s[5];let o;s[6]!==a?(o=n=>{const{processing:u,errors:p}=n;return e.jsxs("div",{className:"grid gap-6",children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(w,{htmlFor:"email",children:"Email"}),e.jsx(f,{id:"email",type:"email",name:"email",autoComplete:"email",value:a,className:"mt-1 block w-full",readOnly:!0}),e.jsx(c,{message:p.email,className:"mt-2"})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(w,{htmlFor:"password",children:"Password"}),e.jsx(f,{id:"password",type:"password",name:"password",autoComplete:"new-password",className:"mt-1 block w-full",autoFocus:!0,placeholder:"Password"}),e.jsx(c,{message:p.password})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(w,{htmlFor:"password_confirmation",children:"Confirm password"}),e.jsx(f,{id:"password_confirmation",type:"password",name:"password_confirmation",autoComplete:"new-password",className:"mt-1 block w-full",placeholder:"Confirm password"}),e.jsx(c,{message:p.password_confirmation,className:"mt-2"})]}),e.jsxs(g,{type:"submit",className:"mt-4 w-full",disabled:u,"data-test":"reset-password-button",children:[u&&e.jsx(b,{}),"Reset password"]})]})},s[6]=a,s[7]=o):o=s[7];let i;return s[8]!==r||s[9]!==o?(i=e.jsxs(y,{title:"Reset password",description:"Please enter your new password below",children:[t,e.jsx(h,{...l,transform:r,resetOnSuccess:m,children:o})]}),s[8]=r,s[9]=o,s[10]=i):i=s[10],i}export{H as default};
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.