import{An as e,At as t,Bt as n,Ct as r,Et as i,Ht as a,Mt as o,Nn as s,Qt as c,Tt as l,Vt as u,Zt as d,_n as f,_t as p,an as m,en as h,jn as g,jt as _,nn as v,on as y,rn as b,wn as x}from"./app-4kCgdoJR.js";var S={class:`mt-4`},C={class:`mt-4`},w={class:`mt-4`},T={class:`mt-4`},E={key:0,class:`mt-4`},D={class:`flex items-center`},O={class:`ms-2`},k=[`href`],A=[`href`],j={class:`mt-4 flex items-center justify-end`},M={__name:`Register`,setup(M){let N=a({name:``,email:``,password:``,password_confirmation:``,terms:!1}),P=()=>{N.post(route(`register`),{onFinish:()=>N.reset(`password`,`password_confirmation`)})};return(a,M)=>(f(),b(c,null,[y(e(n),{title:a.$t(`Register`)},null,8,[`title`]),y(o,null,{logo:x(()=>[y(_)]),default:x(()=>[h(`form`,{onSubmit:d(P,[`prevent`])},[h(`div`,null,[y(p,{for:`name`,value:a.$t(`Name`)},null,8,[`value`]),y(r,{id:`name`,modelValue:e(N).name,"onUpdate:modelValue":M[0]||=t=>e(N).name=t,type:`text`,class:`mt-1 block w-full`,required:``,autofocus:``,autocomplete:`name`},null,8,[`modelValue`]),y(i,{class:`mt-2`,message:e(N).errors.name},null,8,[`message`])]),h(`div`,S,[y(p,{for:`email`,value:a.$t(`Email`)},null,8,[`value`]),y(r,{id:`email`,modelValue:e(N).email,"onUpdate:modelValue":M[1]||=t=>e(N).email=t,type:`email`,class:`mt-1 block w-full`,required:``,autocomplete:`email`},null,8,[`modelValue`]),y(i,{class:`mt-2`,message:e(N).errors.email},null,8,[`message`])]),h(`div`,C,[y(p,{for:`username`,value:a.$t(`Username`)},null,8,[`value`]),y(r,{id:`username`,modelValue:e(N).username,"onUpdate:modelValue":M[2]||=t=>e(N).username=t,type:`text`,class:`mt-1 block w-full`,required:``,autocomplete:`username`},null,8,[`modelValue`]),y(i,{class:`mt-2`,message:e(N).errors.username},null,8,[`message`])]),h(`div`,w,[y(p,{for:`password`,value:a.$t(`Password`)},null,8,[`value`]),y(r,{id:`password`,modelValue:e(N).password,"onUpdate:modelValue":M[3]||=t=>e(N).password=t,type:`password`,class:`mt-1 block w-full`,required:``,autocomplete:`new-password`},null,8,[`modelValue`]),y(i,{class:`mt-2`,message:e(N).errors.password},null,8,[`message`])]),h(`div`,T,[y(p,{for:`password_confirmation`,value:a.$t(`Confirm Password`)},null,8,[`value`]),y(r,{required:``,type:`password`,id:`password_confirmation`,class:`mt-1 block w-full`,autocomplete:`new-password`,modelValue:e(N).password_confirmation,"onUpdate:modelValue":M[4]||=t=>e(N).password_confirmation=t},null,8,[`modelValue`]),y(i,{class:`mt-2`,message:e(N).errors.password_confirmation},null,8,[`message`])]),a.$page.props.jetstream.hasTermsAndPrivacyPolicyFeature?(f(),b(`div`,E,[y(p,{for:`terms`},{default:x(()=>[h(`div`,D,[y(t,{id:`terms`,checked:e(N).terms,"onUpdate:checked":M[5]||=t=>e(N).terms=t,name:`terms`,required:``},null,8,[`checked`]),h(`div`,O,[m(s(a.$t(`I agree to the`))+` `,1),h(`a`,{target:`_blank`,href:a.route(`terms.show`),class:`rounded-md text-sm text-gray-600 underline hover:text-gray-900 focus:ring-2 focus:ring-primary-500 focus:ring-offset-2 focus:outline-hidden dark:text-gray-400 dark:hover:text-gray-100 dark:focus:ring-offset-gray-800`},s(a.$t(`Terms of Service`)),9,k),m(` `+s(a.$t(`and`))+` `,1),h(`a`,{target:`_blank`,href:a.route(`policy.show`),class:`rounded-md text-sm text-gray-600 underline hover:text-gray-900 focus:ring-2 focus:ring-primary-500 focus:ring-offset-2 focus:outline-hidden dark:text-gray-400 dark:hover:text-gray-100 dark:focus:ring-offset-gray-800`},s(a.$t(`Privacy Policy`)),9,A)])]),y(i,{class:`mt-2`,message:e(N).errors.terms},null,8,[`message`])]),_:1})])):v(``,!0),h(`div`,j,[y(e(u),{href:a.route(`login`),class:`rounded-md text-sm text-gray-600 underline decoration-dotted underline-offset-8 hover:text-gray-900 hover:decoration-solid dark:text-gray-400 dark:hover:text-gray-100`},{default:x(()=>[m(s(a.$t(`Already registered?`)),1)]),_:1},8,[`href`]),y(l,{class:g([`ms-4`,{"opacity-25":e(N).processing}]),disabled:e(N).processing},{default:x(()=>[m(s(a.$t(`Register`)),1)]),_:1},8,[`class`,`disabled`])])],32)]),_:1})],64))}};export{M as default};