import{d as u,u as c,o as d,g as n,w as r,b as e,e as s,h as _,f as i,s as g,i as p,a as V}from"./app-bWy6VYs1.js";import{_ as l}from"./InputError.vue_vue_type_script_setup_true_lang-rMzOKLUE.js";import{_ as b}from"./index-C32fBP6Q.js";import{_ as m}from"./Input.vue_vue_type_script_setup_true_lang-C2RPzpSC.js";import{_ as w}from"./Label.vue_vue_type_script_setup_true_lang-Bs6ONg8r.js";import{_ as k}from"./AuthLayout.vue_vue_type_script_setup_true_lang-7K5JbaF3.js";import{L as y}from"./loader-circle-oqQD25qk.js";import"./index-CMWG4mbA.js";import"./useForwardExpose-Cx2E44RD.js";const C={class:"grid gap-2"},h={class:"grid gap-2"},N={key:1},P=u({__name:"RequiredPassword",setup($){const o=c({password:"",password_confirmation:""}),f=()=>{o.put("/password/required")};return(v,a)=>(d(),n(k,{title:"Set a new password",description:"Your account was created with a temporary password. Choose a new password to continue."},{default:r(()=>[e(s(_),{title:"Set a new password"}),i("form",{onSubmit:g(f,["prevent"]),class:"grid gap-6"},[i("div",C,[e(s(w),{for:"password"},{default:r(()=>[...a[2]||(a[2]=[p("New password",-1)])]),_:1}),e(s(m),{id:"password",modelValue:s(o).password,"onUpdate:modelValue":a[0]||(a[0]=t=>s(o).password=t),type:"password",autocomplete:"new-password",class:"mt-1 block w-full",autofocus:"",placeholder:"New password"},null,8,["modelValue"]),e(l,{message:s(o).errors.password},null,8,["message"])]),i("div",h,[e(s(w),{for:"password_confirmation"},{default:r(()=>[...a[3]||(a[3]=[p("Confirm password",-1)])]),_:1}),e(s(m),{id:"password_confirmation",modelValue:s(o).password_confirmation,"onUpdate:modelValue":a[1]||(a[1]=t=>s(o).password_confirmation=t),type:"password",autocomplete:"new-password",class:"mt-1 block w-full",placeholder:"Confirm password"},null,8,["modelValue"]),e(l,{message:s(o).errors.password_confirmation},null,8,["message"])]),e(s(b),{type:"submit",class:"mt-4 w-full",disabled:s(o).processing},{default:r(()=>[s(o).processing?(d(),n(s(y),{key:0,class:"h-4 w-4 animate-spin"})):(d(),V("span",N,"Save and continue"))]),_:1},8,["disabled"])],32)]),_:1}))}});export{P as default};
