import{a as n,j as e,H as d}from"./app-CyJEXGyv.js";import{I as p}from"./input-error-AHFMiRC5.js";import{T as u}from"./text-link-DTWh_l_d.js";import{B as c}from"./button-COEJSQkW.js";import{I as x}from"./input-De4RhZu7.js";import{L as f}from"./label-CPJPVYbz.js";import{A as j}from"./auth-layout-9EM_St_f.js";import{L as h}from"./loader-circle-C9PZqms-.js";import"./utils-D3rN0LeJ.js";import"./index-l-_2VD5G.js";import"./app-logo-icon-bwP4qd8Q.js";import"./createLucideIcon-DqnlFWer.js";import"./badge-BSEA-Kjk.js";import"./utensils-DVq7Up9p.js";import"./card-BjOMVxEn.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(d,{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(p,{message:o.email})]}),e.jsx("div",{className:"my-6 flex items-center justify-start",children:e.jsxs(c,{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(u,{href:route("login"),children:"Masuk"})]})]})]})}export{B as default};
