1import{c as y,o as _,w as i,a as s,b as o,n as m,e as c,W as $,t as x,f as v,F as w,d as b}from"./app-Bd0jZ4nk.js";import{_ as k}from"./FieldRegion-BkNFVWr1.js";import{_ as C}from"./SignUp-m6D71yTD.js";import{_ as V}from"./ComboField-B77ae_tZ.js";import{_ as d}from"./Button-D84Q1mQ5.js";import{t as u}from"./PopToast-BZZuRC-I.js";import{_ as A}from"./ModalMessage-BJqFgtX4.js";import{_ as B}from"./PopModal-B6zqYwUx.js";import{_ as E}from"./Icon-Si08zmMr.js";import"./logo-light-BA9boik_.js";import"./Input-CNB85o4u.js";import"./SelectMenu-BNwg1qJ6.js";import"./Emoji-Dty8NzME.js";import"./SkinTone-CuQ11Id2.js";const L={class:"side-by-side"},N={__name:"AccountExists",props:["show"],emits:["login"],setup(f,{emit:r}){const a=f,n=r,l=()=>{window.location.reload()};return(p,e)=>(_(),y(B,{width:"568px",popped:a.show,onUnpop:e[2]||(e[2]=t=>l())},{default:i(()=>[s(A,{emoji:"ð¤"},{footer:i(()=>[o("div",L,[s(d,{label:"No Thanks",theme:"gray",onClick:e[0]||(e[0]=t=>l())}),s(d,{label:"Login",theme:"green",onClick:e[1]||(e[1]=t=>n("login"))})])]),default:i(()=>[e[3]||(e[3]=o("h1",null,"Account Exists",-1)),e[4]||(e[4]=o("p",null,"An account with that email already exists. Would you still like to login?",-1))]),_:1,__:[3,4]})]),_:1},8,["popped"]))}},j=["href"],P={__name:"Join",setup(f){const r=m(""),a=m(!1),n=m({exists:!1}),l=p=>{n.value.exists=!1,a.value=!0,b.post("/continue",{from:p,email:r.value}).then(e=>{e.data.success===!0?window.location.href="/confirm":e.data.confirm&&e.data.confirm==="login"?n.value.exists=!0:u.pop({props:{state:"error",title:e.data.message}})}).catch(e=>{var t,g;a.value=!1,(g=(t=e.response)==null?void 0:t.data)!=null&&g.message?u.pop({props:{state:"error",title:e.response.data.message}}):u.pop({props:{state:"error",title:"Please reload and try again"}})})};return(p,e)=>(_(),c(w,null,[s(N,{show:n.value.exists,onHide:e[0]||(e[0]=t=>n.value.exists=!1),onLogin:e[1]||(e[1]=t=>l("confirmed"))},null,8,["show"]),s(C,{from:"signup"},{default:i(()=>[e[7]||(e[7]=o("h1",null,"Create Account",-1)),e[8]||(e[8]=o("p",{class:"move-up"},"Enter your email and gain free plan access!",-1)),o("div",{class:"flow col",onKeydown:e[4]||(e[4]=$(t=>l("join"),["enter"]))},[s(k,{feedback:{}},{default:i(()=>[s(V,{modelValue:r.value,"onUpdate:modelValue":e[2]||(e[2]=t=>r.value=t),label:"Email",type:"text",name:"input-text",autocomplete:"off",theme:"gray",editable:!0,placement:"top-start","auto-focus":!0,disabled:a.value},null,8,["modelValue","disabled"])]),_:1}),s(d,{theme:"green",disabled:a.value,onClick:e[3]||(e[3]=t=>l("join"))},{default:i(()=>[o("label",null,x(a.value?"Verifying...":"Continue"),1)]),_:1},8,["disabled"]),o("p",null,[e[5]||(e[5]=v("By clicking Continue, you agree to our ",-1)),o("a",{href:p.$page.props.marketing_url+"/privacy"+p.$page.props.marketing_query,target:"_blank"},"Privacy Policy",8,j)]),e[6]||(e[6]=o("p",{class:"p-sub"},[v("Already have an account? "),o("a",{href:"/login"},"Log In")],-1))],32)]),_:1,__:[7,8]})],64))}},O=E(P,[["__scopeId","data-v-e0ae1914"]]);export{O 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.