import{v as n,j as e,$ as p}from"./app-CffHYkHW.js";import{I as d}from"./input-error-Def0KqrX.js";import{T as c}from"./text-link-BntpQ-Tw.js";import{B as u}from"./button-qhe8lrPU.js";import{I as x}from"./input-Bw4IOOzt.js";import{L as f}from"./label-iPcRrN_N.js";import{A as j}from"./auth-layout-COiwI2QE.js";import{L as h}from"./loader-circle-BRrBaJrT.js";import"./utils-C8zp8JNC.js";import"./index-DPkgfxsD.js";import"./app-logo-icon-D3Jzt_fn.js";import"./createLucideIcon-DAR-hy5d.js";import"./badge-soq0-NVD.js";import"./utensils-Ds87evzs.js";import"./card-X_CDEGIm.js";function B({status:t}){const{data:r,setData:i,post:m,processing:s,errors:o}=n({email:""}),l=a=>{a.preventDefault(),m(route("password.email"))};return e.jsxs(j,{title:"Lupa Kata Sandi",description:"Masukkan email kamu untuk menerima link reset kata sandi",children:[e.jsx(p,{title:"Forgot password"}),t&&e.jsx("div",{className:"mb-4 text-center text-sm font-medium text-green-600",children:t}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("form",{onSubmit:l,children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(f,{htmlFor:"email",children:"Alamat Email"}),e.jsx(x,{id:"email",type:"email",name:"email",autoComplete:"off",value:r.email,autoFocus:!0,onChange:a=>i("email",a.target.value),placeholder:"email@example.com"}),e.jsx(d,{message:o.email})]}),e.jsx("div",{className:"my-6 flex items-center justify-start",children:e.jsxs(u,{className:"w-full",disabled:s,children:[s&&e.jsx(h,{className:"h-4 w-4 animate-spin"}),"Kirim Link Reset Kata Sandi"]})})]}),e.jsxs("div",{className:"text-muted-foreground space-x-1 text-center text-sm",children:[e.jsx("span",{children:"Atau, kembali ke"}),e.jsx(c,{href:route("login"),children:"Masuk"})]})]})]})}export{B as default};
