1import{W as w,r as f,j as s,a as x}from"./app-belrbPXN.js";import j from"./GuestLayout-4jkWJuXN.js";import{I as t}from"./InputError-OZY4xCw_.js";import{I as m}from"./InputLabel-Q_Wu-unK.js";import{P as v}from"./PrimaryButton-ZU7A18o6.js";import{T as i}from"./TextInput-f29lzoJX.js";import"./ApplicationLogo-ZTC-5AHJ.js";import"./chunk-HRMF5D3P-uRjUi5Tf.js";import"./import-0kiaZdOS.js";import"./import-CF4r66r5.js";import"./import-QsBJSc9f.js";import"./real-module-p6qORkc6.js";import"./import-_-a0l05m.js";import"./Lang-BxT6IC8I.js";function T({token:l,email:n}){const{data:e,setData:o,post:p,processing:d,errors:r,reset:c}=w({token:l,email:n,password:"",password_confirmation:""});f.useEffect(()=>()=>{c("password","password_confirmation")},[]);const u=a=>{a.preventDefault(),p(route("backoffice.password.store"))};return s.jsxs(j,{children:[s.jsx(x,{title:"Reset Password"}),s.jsxs("form",{onSubmit:u,children:[s.jsxs("div",{children:[s.jsx(m,{htmlFor:"email",value:"Email"}),s.jsx(i,{id:"email",type:"email",name:"email",value:e.email,className:"mt-1 block w-full",autoComplete:"username",onChange:a=>o("email",a.target.value)}),s.jsx(t,{message:r.email,className:"mt-2"})]}),s.jsxs("div",{className:"mt-4",children:[s.jsx(m,{htmlFor:"password",value:"Password"}),s.jsx(i,{id:"password",type:"password",name:"password",value:e.password,className:"mt-1 block w-full",autoComplete:"new-password",isFocused:!0,onChange:a=>o("password",a.target.value)}),s.jsx(t,{message:r.password,className:"mt-2"})]}),s.jsxs("div",{className:"mt-4",children:[s.jsx(m,{htmlFor:"password_confirmation",value:"Confirm Password"}),s.jsx(i,{type:"password",name:"password_confirmation",value:e.password_confirmation,className:"mt-1 block w-full",autoComplete:"new-password",onChange:a=>o("password_confirmation",a.target.value)}),s.jsx(t,{message:r.password_confirmation,className:"mt-2"})]}),s.jsx("div",{className:"flex items-center justify-end mt-4",children:s.jsx(v,{className:"ms-4",disabled:d,children:"Reset Password"})})]})]})}export{T 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.