import{T as b}from"./Input-9dff1bbf.js";import{T as v}from"./Label-45ee75d5.js";import{T as y}from"./Button-6d7047a8.js";import{T as k}from"./Checkbox-f8ba773c.js";import{T as V}from"./ValidationErrors-7b2fb9d3.js";import{T}from"./AuthenticationCard-eff8a7f3.js";import{J as x}from"./AuthenticationCardLogo-fcccf451.js";import{_ as C,r as a,o as u,d as P,e as l,g as e,a as r,c as A,h as c,b as B,n as L,w as N}from"./app-c16e0624.js";import"./ApplicationMark-1d436696.js";const U={components:{TecInput:b,TecLabel:v,TecButton:y,TecCheckbox:k,TecValidationErrors:V,TecAuthenticationCard:T,TecAuthenticationCardLogo:x},data(){return{form:this.$inertia.form({name:"",email:"",password:"",password_confirmation:"",terms:!1})}},methods:{submit(){this.form.post(this.route("register"),{onFinish:()=>this.form.reset("password","password_confirmation")})}}},q={class:"mt-4"},E={class:"mt-4"},j={class:"mt-4"},F={key:0,class:"mt-4"},I={class:"flex items-center"},J={class:"ml-2"},R=["href"],S=["href"],z={class:"flex items-center justify-end mt-4"};function M(i,o,D,G,t,d){const p=a("tec-authentication-card-logo"),f=a("tec-validation-errors"),n=a("tec-label"),m=a("tec-input"),_=a("tec-checkbox"),h=a("Link"),w=a("tec-button"),g=a("tec-authentication-card");return u(),P(g,null,{logo:l(()=>[e(p)]),default:l(()=>[e(f,{class:"mb-4"}),r("form",{onSubmit:o[5]||(o[5]=N((...s)=>d.submit&&d.submit(...s),["prevent"]))},[r("div",null,[e(n,{for:"name",value:"Name"}),e(m,{id:"name",type:"text",class:"mt-1 block w-full",modelValue:t.form.name,"onUpdate:modelValue":o[0]||(o[0]=s=>t.form.name=s),required:"",autofocus:"",autocomplete:"name"},null,8,["modelValue"])]),r("div",q,[e(n,{for:"email",value:"Email"}),e(m,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:t.form.email,"onUpdate:modelValue":o[1]||(o[1]=s=>t.form.email=s),required:""},null,8,["modelValue"])]),r("div",E,[e(n,{for:"password",value:"Password"}),e(m,{id:"password",type:"password",class:"mt-1 block w-full",modelValue:t.form.password,"onUpdate:modelValue":o[2]||(o[2]=s=>t.form.password=s),required:"",autocomplete:"new-password"},null,8,["modelValue"])]),r("div",j,[e(n,{for:"password_confirmation",value:"Confirm Password"}),e(m,{id:"password_confirmation",type:"password",class:"mt-1 block w-full",modelValue:t.form.password_confirmation,"onUpdate:modelValue":o[3]||(o[3]=s=>t.form.password_confirmation=s),required:"",autocomplete:"new-password"},null,8,["modelValue"])]),i.$page.props.jetstream.hasTermsAndPrivacyPolicyFeature?(u(),A("div",F,[e(n,{for:"terms"},{default:l(()=>[r("div",I,[e(_,{name:"terms",id:"terms",checked:t.form.terms,"onUpdate:checked":o[4]||(o[4]=s=>t.form.terms=s)},null,8,["checked"]),r("div",J,[c(" I agree to the "),r("a",{target:"_blank",href:i.route("terms.show"),class:"underline text-gray-600 hover:text-gray-900"},"Terms of Service",8,R),c(" and "),r("a",{target:"_blank",href:i.route("policy.show"),class:"underline text-gray-600 hover:text-gray-900"},"Privacy Policy",8,S)])])]),_:1})])):B("",!0),r("div",z,[e(h,{href:i.route("login"),class:"underline text-gray-600 hover:text-gray-900"},{default:l(()=>[c(" Already registered? ")]),_:1},8,["href"]),e(w,{class:L(["ml-4",{"opacity-25":t.form.processing}]),disabled:t.form.processing},{default:l(()=>[c(" Register ")]),_:1},8,["class","disabled"])])],32)]),_:1})}const ee=C(U,[["render",M]]);export{ee as default};
