import{_ as b}from"./layout-guest-bd2cb4f5.js";import{d as x,C as V,o as h,c as k,w as n,a as m,b as e,f as t,u as s,t as C,g as I,m as B,P}from"./app-e2c1adb4.js";import{_ as $}from"./base-button.vue_vue_type_script_setup_true_lang-4041aa1c.js";import{_ as N}from"./input-password.vue_vue_type_script_setup_true_lang-9dd0bcca.js";import{_ as q,a as A}from"./input-label.vue_vue_type_script_setup_true_lang-d2d25eb9.js";import{_ as E}from"./input-text.vue_vue_type_script_setup_true_lang-09f5c91a.js";import"./logo-e09fccf9.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./icon-close-5cb91d75.js";import"./use-input-size-6b6f86f1.js";const L={class:"space-y-1"},U={class:"space-y-1"},j=["textContent"],G={class:"space-y-1"},S={class:"space-y-1"},T={class:"mt-8 flex w-full justify-center"},R=x({__name:"accept",props:{email:{},token:{}},setup(u){const d=u,o=V({name:"",password:"",email:d.email,token:d.token,password_confirmation:""}),_=()=>{o.post(route("ltu.invitation.accept.store"),{onFinish:()=>{o.reset("password","password_confirmation")}})};return(p,a)=>{const f=B,i=q,w=E,l=A,c=N,g=$,y=P,v=b;return h(),k(v,null,{title:n(()=>[m(" Accept Invitation ")]),subtitle:n(()=>[m(" You have been invited to join the team! ")]),default:n(()=>[e(f,{title:"Accept Invitation"}),t("form",{class:"space-y-6",onSubmit:I(_,["prevent"])},[t("div",L,[e(i,{for:"name",value:"Name",class:"sr-only"}),e(w,{id:"name",modelValue:s(o).name,"onUpdate:modelValue":a[0]||(a[0]=r=>s(o).name=r),error:s(o).errors.name,type:"text",required:"",autofocus:"",autocomplete:"name",placeholder:"Enter your name",class:"bg-gray-50"},null,8,["modelValue","error"]),e(l,{message:s(o).errors.name},null,8,["message"])]),t("div",U,[e(i,{for:"email",value:"Email Address",class:"sr-only"}),t("div",{class:"w-full cursor-not-allowed rounded-md border border-gray-300 bg-gray-100 px-2 py-2.5 text-sm",textContent:C(p.email)},null,8,j),e(l,{message:s(o).errors.email},null,8,["message"])]),t("div",G,[e(i,{for:"password",value:"Password"}),e(c,{id:"password",modelValue:s(o).password,"onUpdate:modelValue":a[1]||(a[1]=r=>s(o).password=r),error:s(o).errors.password,required:"",autocomplete:"new-password",class:"bg-gray-50"},null,8,["modelValue","error"]),e(l,{message:s(o).errors.password},null,8,["message"])]),t("div",S,[e(i,{for:"password_confirmation",value:"Confirm Password"}),e(c,{id:"password_confirmation",modelValue:s(o).password_confirmation,"onUpdate:modelValue":a[2]||(a[2]=r=>s(o).password_confirmation=r),error:s(o).errors.password_confirmation,required:"",autocomplete:"new-password",class:"bg-gray-50"},null,8,["modelValue","error"]),e(l,{message:s(o).errors.password_confirmation},null,8,["message"])]),e(g,{type:"submit",variant:"secondary","is-loading":s(o).processing,"full-width":""},{default:n(()=>[m(" Continue ")]),_:1},8,["is-loading"])],32),t("div",T,[e(y,{href:p.route("ltu.login"),class:"text-xs font-medium text-gray-500 hover:text-blue-500"},{default:n(()=>[m(" Go back to sign in ")]),_:1},8,["href"])])]),_:1})}}});export{R as default};
