import{a as u,j as e,H as f}from"./app-C796L9fe.js";import{I as o,T as l,a as i}from"./TextInput-Biebdkc3.js";import{A as w}from"./AppLayout-R1ceE7OC.js";import{S as b}from"./shield-alert-D6e_dYPw.js";import"./useSwipeDrawer-n_5l3Iw6.js";import"./createLucideIcon-C4f7Jwm9.js";import"./phone-RtgQM88a.js";import"./search-Ds2tAXe6.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 E({token:d,email:n}){const{data:a,setData:t,post:x,processing:m,errors:r,reset:p}=u({token:d,email:n,password:"",password_confirmation:""}),c=s=>{s.preventDefault(),x(route("password.store"),{onFinish:()=>p("password","password_confirmation")})};return e.jsxs(w,{children:[e.jsx(f,{title:"Reset 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-6",children:[e.jsx("h1",{className:"text-xl font-bold text-slate-900 tracking-tight",children:"Atur Ulang Kata Sandi"}),e.jsx("p",{className:"text-xs text-slate-500 mt-2",children:"Silakan masukkan kata sandi baru Anda di bawah ini"})]}),e.jsxs("form",{onSubmit:c,className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx(o,{htmlFor:"email",value:"Alamat Email",className:"text-xs font-semibold text-slate-700"}),e.jsx(l,{id:"email",type:"email",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 bg-slate-50",autoComplete:"username",onChange:s=>t("email",s.target.value),required:!0,readOnly:!0}),e.jsx(i,{message:r.email,className:"mt-1 text-xs text-rose-500"})]}),e.jsxs("div",{children:[e.jsx(o,{htmlFor:"password",value:"Kata Sandi Baru",className:"text-xs font-semibold text-slate-700"}),e.jsx(l,{id:"password",type:"password",name:"password",value:a.password,className:"mt-1.5 block w-full text-xs rounded-lg border-slate-250 focus:border-emerald-500 focus:ring-emerald-500",autoComplete:"new-password",isFocused:!0,onChange:s=>t("password",s.target.value),placeholder:"Minimal 8 karakter",required:!0}),e.jsx(i,{message:r.password,className:"mt-1 text-xs text-rose-500"})]}),e.jsxs("div",{children:[e.jsx(o,{htmlFor:"password_confirmation",value:"Konfirmasi Kata Sandi Baru",className:"text-xs font-semibold text-slate-700"}),e.jsx(l,{id:"password_confirmation",type:"password",name:"password_confirmation",value:a.password_confirmation,className:"mt-1.5 block w-full text-xs rounded-lg border-slate-250 focus:border-emerald-500 focus:ring-emerald-500",autoComplete:"new-password",onChange:s=>t("password_confirmation",s.target.value),placeholder:"Ulangi kata sandi baru Anda",required:!0}),e.jsx(i,{message:r.password_confirmation,className:"mt-1 text-xs text-rose-500"})]}),e.jsxs("button",{type:"submit",disabled:m,className:"w-full mt-2 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:[e.jsx(b,{size:13,className:"mr-1.5"}),m?"Memproses...":"Simpan Kata Sandi"]})]})]})})]})}export{E as default};
