import{_ as g,L as _,F as b}from"./FlashMessages-ByEdcHWZ.js";import{T as h}from"./TextInput-DDvOh0mT.js";import{L as x}from"./LoadingButton-DQHYFAIm.js";import{Z as V,i as k,r as a,c as y,a as s,b as l,w as i,d as P,t as d,F as L,o as v,e as F}from"./app-CK3cEAAe.js";import"./v4-SoommWqA.js";const B={metaInfo:{title:"Login"},components:{LoadingButton:x,Logo:_,TextInput:h,Head:V,Link:k,FlashMessages:b},props:{is_demo:Number,token:String},data(){return{form:this.$inertia.form({email:"",password:"",password_confirmation:"",token:this.token})}},methods:{resetPassword(){this.form.post(this.route("password.reset.store"))}}},N={class:"p-6 min-h-screen flex justify-center items-center light"},C={class:"w-full max-w-md"},H={class:"px-10 py-12"},I={class:"text-center font-bold text-xl"};function R(r,o,S,T,e,m){const p=a("Head"),f=a("flash-messages"),u=a("logo"),c=a("Link"),n=a("text-input"),w=a("loading-button");return v(),y(L,null,[s(p,{title:"Reset Password"}),l("div",N,[s(f),l("div",C,[s(c,{href:r.route("home")},{default:i(()=>[s(u,{class:"block mx-auto w-full max-w-xs fill-white",height:"50"})]),_:1},8,["href"]),l("form",{class:"mt-8 bg-white dark:bg-slate-900 border border-gray-100 rounded-lg shadow-xl overflow-hidden",onSubmit:o[3]||(o[3]=P((...t)=>m.resetPassword&&m.resetPassword(...t),["prevent"])),autocomplete:"off"},[l("div",H,[l("h2",I,d(r.$t("Reset Password")),1),o[4]||(o[4]=l("div",{class:"mx-auto mt-3 w-24 border-b"},null,-1)),s(n,{modelValue:e.form.email,"onUpdate:modelValue":o[0]||(o[0]=t=>e.form.email=t),error:e.form.errors.email,class:"mt-10",label:r.$t("Email Address"),type:"email",autofocus:"",autocomplete:"off","aria-autocomplete":"none"},null,8,["modelValue","error","label"]),s(n,{modelValue:e.form.password,"onUpdate:modelValue":o[1]||(o[1]=t=>e.form.password=t),error:e.form.errors.password,class:"mt-6",label:r.$t("Password"),type:"password",autocomplete:"off","aria-autocomplete":"none"},null,8,["modelValue","error","label"]),s(n,{modelValue:e.form.password_confirmation,"onUpdate:modelValue":o[2]||(o[2]=t=>e.form.password_confirmation=t),error:e.form.errors.password_confirmation,class:"mt-6",label:r.$t("Confirm Password"),type:"password",autocomplete:"off","aria-autocomplete":"none"},null,8,["modelValue","error","label"]),s(w,{loading:e.form.processing,class:"ml-auto btn-indigo w-full items-center justify-center mt-8",type:"submit"},{default:i(()=>[F(d(r.$t("Reset Password")),1)]),_:1},8,["loading"])])],32)])])],64)}const D=g(B,[["render",R]]);export{D as default};
