import{r as e}from"./rolldown-runtime-DIIn1E2Q.js";import{Z as t,i as n,n as r,ot as i,r as a}from"./vendor-primevue-DGevbYGF.js";import{A as o,D as s,F as c,I as l,O as u,R as d,Rt as f,Ut as p,_t as m,et as h,j as g,k as _}from"./vendor-vue-core-BdhYaYlO.js";import{K as v}from"./vendor-vueuse-2ddMYtS4.js";import{n as y}from"./vendor-i18n-JubCsGQ_.js";import{t as b}from"./Button-DHxPjNdi.js";import{ii as x}from"./dialogService-CwVeD8j9.js";import{r as S}from"./signInSchema-zXDJh9bx.js";import{t as C}from"./PasswordFields-BxbA3nrO.js";var w={class:`mb-2 text-base font-medium opacity-80`,for:`comfy-org-sign-up-email`},T={key:0,class:`text-red-500`},E=d({__name:`SignUpForm`,emits:[`submit`],setup(e,{emit:d}){let{t:E}=y(),D=x(),O=s(()=>D.loading),k=d,A=v(e=>{e.valid&&k(`submit`,e.values)},1500);return(e,s)=>(h(),_(f(n),{class:`flex flex-col gap-6`,resolver:f(r)(f(S)),onSubmit:f(A)},{default:m(e=>[l(f(a),{name:`email`,class:`flex flex-col gap-2`},{default:m(e=>[u(`label`,w,p(f(E)(`auth.signup.emailLabel`)),1),l(f(i),{"pt:root:id":`comfy-org-sign-up-email`,"pt:root:autocomplete":`email`,class:`h-10`,type:`text`,placeholder:f(E)(`auth.signup.emailPlaceholder`),invalid:e.invalid},null,8,[`placeholder`,`invalid`]),e.error?(h(),g(`small`,T,p(e.error.message),1)):o(``,!0)]),_:1}),l(C),O.value?(h(),_(f(t),{key:0,class:`mx-auto h-8 w-8`})):(h(),_(b,{key:1,type:`submit`,class:`mt-4 h-10 font-medium`,disabled:!e.valid},{default:m(()=>[c(p(f(E)(`auth.signup.signUpButton`)),1)]),_:2},1032,[`disabled`]))]),_:1},8,[`resolver`,`onSubmit`]))}});export{E as t};
//# sourceMappingURL=SignUpForm-BEcZ5lPQ.js.map