1import{s as _,B as w,o as v,w as d,d as a,a as l,u as e,h as V,D as b,n as g,e as y}from"./app-Dl-qXhxl.js";import{_ as k}from"./GuestLayout-CBhEhTHN.js";import{_ as m}from"./InputError-DzheKzfn.js";import{_ as r}from"./InputLabel-DoHSmluN.js";import{P as x}from"./PrimaryButton-DO69RCxY.js";import{_ as i}from"./TextInput-DasAkwvA.js";/* empty css */import"./ApplicationLogo-B59gZexS.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const N={class:"mb-4"},B={class:"mb-4"},C={class:"mb-4"},U={class:"mb-4"},q={class:"mb-6"},P={class:"flex justify-end"},L={__name:"AcceptInvite",props:{invite:Object},setup(u){const n=u,[p,f]=n.invite.name.split(" ",2),s=_({first_name:p||"",last_name:f||"",email:n.invite.email,password:"",password_confirmation:"",token:n.invite.token}),c=()=>{s.post(route("tenant.invite.complete"))};return($,o)=>(v(),w(k,null,{default:d(()=>[a(e(V),{title:"Complete Registration"}),o[6]||(o[6]=l("div",{class:"mb-6 text-sm text-gray-600"}," You're almost done! Set your password to complete your account setup. ",-1)),l("form",{onSubmit:b(c,["prevent"])},[l("div",N,[a(r,{for:"first_name",value:"First Name"}),a(i,{id:"first_name",type:"text",class:"mt-1 block w-full",modelValue:e(s).first_name,"onUpdate:modelValue":o[0]||(o[0]=t=>e(s).first_name=t),required:""},null,8,["modelValue"]),a(m,{class:"mt-2",message:e(s).errors.first_name},null,8,["message"])]),l("div",B,[a(r,{for:"last_name",value:"Last Name"}),a(i,{id:"last_name",type:"text",class:"mt-1 block w-full",modelValue:e(s).last_name,"onUpdate:modelValue":o[1]||(o[1]=t=>e(s).last_name=t),required:""},null,8,["modelValue"]),a(m,{class:"mt-2",message:e(s).errors.last_name},null,8,["message"])]),l("div",C,[a(r,{for:"email",value:"Email"}),a(i,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:e(s).email,"onUpdate:modelValue":o[2]||(o[2]=t=>e(s).email=t),disabled:""},null,8,["modelValue"]),a(m,{class:"mt-2",message:e(s).errors.email},null,8,["message"])]),l("div",U,[a(r,{for:"password",value:"Password"}),a(i,{id:"password",type:"password",class:"mt-1 block w-full",modelValue:e(s).password,"onUpdate:modelValue":o[3]||(o[3]=t=>e(s).password=t),required:"",autocomplete:"new-password"},null,8,["modelValue"]),a(m,{class:"mt-2",message:e(s).errors.password},null,8,["message"])]),l("div",q,[a(r,{for:"password_confirmation",value:"Confirm Password"}),a(i,{id:"password_confirmation",type:"password",class:"mt-1 block w-full",modelValue:e(s).password_confirmation,"onUpdate:modelValue":o[4]||(o[4]=t=>e(s).password_confirmation=t),required:"",autocomplete:"new-password"},null,8,["modelValue"]),a(m,{class:"mt-2",message:e(s).errors.password_confirmation},null,8,["message"])]),l("div",P,[a(x,{class:g({"opacity-25":e(s).processing}),disabled:e(s).processing},{default:d(()=>[...o[5]||(o[5]=[y(" Complete Registration ",-1)])]),_:1},8,["class","disabled"])])],32)]),_:1}))}};export{L as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.