1import{d as _,h as F,n as v,a as s,c as u,q as w,w as i,f as a,l as b,m as n,t as r,s as g,b as k,F as x,r as y,v as E,x as S}from"./index-DEIWCX15.js";import"./photoswipe-n7lXYKL2.js";import{u as B,_ as C}from"./AuthForm.vue_vue_type_style_index_0_lang-C8q7pH1n.js";import{_ as $}from"./AuthPageLayout.vue_vue_type_style_index_0_lang-BQdw4206.js";import"./useAsync-8wESyNmy.js";const W=_({__name:"EmailSignup",setup(A){const{t:e}=F(),{signup:c}=v(),{schema:p,submit:h}=B({name:{placeholder:e("auth.authForm.nameField"),autocomplete:"name"},email:{type:"email",placeholder:e("auth.authForm.emailField"),autocomplete:"email"},password:{type:"password",placeholder:e("auth.authForm.passwordField"),autocomplete:"new-password"}},{onSubmit:async({name:o,email:l,password:f})=>{await c(o,l,f)},onSuccess:({email:o})=>{t.value=o}}),t=y(),m=E(()=>S(t.value,e("auth.authForm.specifiedEmail")));function d(){m.value!==void 0&&window.open(m.value)}return(o,l)=>(s(),u($,{title:t.value?a(e)("auth.authForm.emailWasSent"):a(e)("auth.authForm.signupFormTitle")},w({default:i(()=>[t.value?(s(),k(x,{key:1},[n(r(a(e)("auth.authForm.emailWasSentDetails",{email:t.value})),1)],64)):(s(),u(C,{key:0,schema:a(p),"submit-text":a(e)("auth.authForm.signupButton"),"on-submit":a(h)},null,8,["schema","submit-text","on-submit"]))]),_:2},[t.value?{name:"footer",fn:i(()=>[m.value?(s(),u(a(b),{key:0,size:"xl",alignment:"center",onClick:d},{default:i(()=>
1[n(r(a(e)("auth.authForm.openEmailButton")),1)]),_:1})):g("",!0)]),key:"0"}:void 0]),1032,["title"]))}});export{W 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.