import{a as d,j as e,H as x,L as c}from"./app-C796L9fe.js";import{I as p,T as u,a as b}from"./TextInput-Biebdkc3.js";import{A as f}from"./AppLayout-R1ceE7OC.js";import{M as h}from"./useSwipeDrawer-n_5l3Iw6.js";import{P as j}from"./phone-RtgQM88a.js";import{A as g}from"./arrow-left-CQNYQhNa.js";import"./search-Ds2tAXe6.js";import"./createLucideIcon-C4f7Jwm9.js";import"./zap-ChRWlPRq.js";import"./trash-2-DWWMMvke.js";import"./minus-BDJoa8s-.js";import"./plus-BwRfOYna.js";import"./message-circle-DPMDTgf3.js";import"./circle-check-big-hYXNtPks.js";import"./circle-alert-BurLkeR_.js";function S({status:s}){const{data:a,setData:l,post:i,processing:r,errors:m}=d({email:""}),o=t=>{t.preventDefault(),i(route("password.email"))},n=a.email===""||a.email.includes("@");return e.jsxs(f,{children:[e.jsx(x,{title:"Lupa Kata Sandi"}),e.jsx("div",{className:"min-h-[75vh] flex flex-col items-center justify-center px-4 py-12 bg-slate-50/60",children:e.jsxs("div",{className:"w-full max-w-md bg-white border border-slate-200/60 rounded-xl p-6 sm:p-8 shadow-sm",children:[e.jsxs("div",{className:"text-center mb-5",children:[e.jsx("h1",{className:"text-xl font-bold text-slate-900 tracking-tight",children:"Lupa Kata Sandi?"}),e.jsx("p",{className:"text-xs text-slate-500 mt-2 leading-relaxed",children:"Masukkan alamat email atau nomor WhatsApp terdaftar Anda. Kami akan mengirimkan tautan reset kata sandi Anda."})]}),s&&e.jsx("div",{className:"mb-4 text-xs font-semibold text-emerald-600 bg-emerald-50 border border-emerald-100 p-2.5 rounded-lg text-center",children:s}),e.jsxs("form",{onSubmit:o,className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx(p,{htmlFor:"email",value:"Alamat Email atau Nomor WhatsApp",className:"text-xs font-semibold text-slate-700"}),e.jsx(u,{id:"email",type:"text",name:"email",value:a.email,className:"mt-1.5 block w-full text-xs rounded-lg border-slate-250 focus:border-emerald-500 focus:ring-emerald-500",isFocused:!0,onChange:t=>l("email",t.target.value),placeholder:"nama@email.com atau 0812xxxx",required:!0}),e.jsx(b,{message:m.email,className:"mt-1 text-xs text-rose-500"})]}),e.jsxs("button",{type:"submit",disabled:r,className:"w-full inline-flex items-center justify-center py-2.5 px-4 bg-emerald-600 hover:bg-emerald-700 active:bg-emerald-800 text-white font-semibold text-xs rounded-lg transition-colors shadow-sm duration-150 disabled:opacity-50 disabled:cursor-not-allowed",children:[n?e.jsx(h,{size:13,className:"mr-1.5"}):e.jsx(j,{size:13,className:"mr-1.5"}),r?"Mengirim...":"Kirim Tautan Reset"]})]}),e.jsx("div",{className:"mt-6 pt-5 border-t border-slate-100 text-center",children:e.jsxs(c,{href:"/login",className:"text-xs font-semibold text-slate-500 hover:text-emerald-600 transition inline-flex items-center gap-1",children:[e.jsx(g,{size:12}),"Kembali ke Halaman Masuk"]})})]})})]})}export{S as default};
