import{d as $,aT as x,W as g,a3 as e,u as s,X as d,bK as o,a2 as i,bh as t,bP as V,F as v}from"./vendor-reka-Edfq1EPl.js";import{useForm as y,Head as h}from"./vendor/inertia-CR4tWtMT.js";import{A as k}from"./AuthLayout-Ck4KMD0f.js";import{n as B,g as A,d as F}from"./registry-DyIszw9-.js";import{_ as N,a as T,b as C,c as P}from"./CardContent.vue_vue_type_script_setup_true_lang-DPd7KJ8I.js";import{_ as S}from"./CardDescription.vue_vue_type_script_setup_true_lang-Ds2CuvUf.js";import{_ as f,a as p,b as _}from"./FormMessage.vue_vue_type_script_setup_true_lang-CIPMOSQA.js";import{_ as c}from"./Input.vue_vue_type_script_setup_true_lang-D6nVx0lb.js";const U={class:"flex min-h-screen items-center justify-center bg-muted/40"},j={class:"font-medium text-foreground"},q=$({layout:k,__name:"AcceptInvite",props:{token:{},email:{}},setup(m){const{t:r}=B(),w=A(),u=m,a=y({email:u.email,password:"",password_confirmation:""});function b(){a.post(`/${w}/invite/${u.token}`)}return(D,n)=>(x(),g(v,null,[e(s(h),{title:s(r)("builder.invite.set_password_title")},null,8,["title"]),d("div",U,[e(P,{class:"w-full max-w-sm"},{default:o(()=>[e(N,null,{default:o(()=>[e(T,{class:"text-xl"},{default:o(()=>[i(t(s(r)("builder.invite.set_password_title")),1)]),_:1}),e(S,null,{default:o(()=>[i(t(s(r)("builder.invite.set_password_description"))+" ",1),d("span",j,t(m.email),1)]),_:1})]),_:1}),e(C,null,{default:o(()=>[d("form",{class:"space-y-4",onSubmit:V(b,["prevent"])},[e(f,null,{default:o(()=>[e(p,{error:!!s(a).errors.password,for:"password"},{default:o(()=>[i(t(s(r)("builder.auth.password")),1)]),_:1},8,["error"]),e(c,{id:"password",modelValue:s(a).password,"onUpdate:modelValue":n[0]||(n[0]=l=>s(a).password=l),type:"password",name:"password",autocomplete:"new-password"},null,8,["modelValue"]),e(_,{message:s(a).errors.password},null,8,["message"])]),_:1}),e(f,null,{default:o(()=>[e(p,{error:!!s(a).errors.password_confirmation,for:"password_confirmation"},{default:o(()=>[i(t(s(r)("builder.account.confirm_password")),1)]),_:1},8,["error"]),e(c,{id:"password_confirmation",modelValue:s(a).password_confirmation,"onUpdate:modelValue":n[1]||(n[1]=l=>s(a).password_confirmation=l),type:"password",name:"password_confirmation",autocomplete:"new-password"},null,8,["modelValue"]),e(_,{message:s(a).errors.password_confirmation},null,8,["message"])]),_:1}),e(F,{type:"submit",disabled:s(a).processing,class:"w-full"},{default:o(()=>[i(t(s(r)("builder.invite.set_password_button")),1)]),_:1},8,["disabled"])],32)]),_:1})]),_:1})])],64))}});export{q as default};
