1import{j as e}from"./ui-vendor-BZPA-l2n.js";import{B as P}from"./ButtonGeneral-DX4uD-gf.js";import{P as y,F as C,S as b,H as I,T as R,M as T,f as k,b as U,O as _,c as u,d as m}from"./Form.Styles-CvsaRzhR.js";import{u as w,o as N,c as F,a as O}from"./object-DyD-yuNd.js";import{aT as M,az as r,ay as t,aW as W,A as i,aU as v,z as G}from"./index-L5o9qxej.js";import{g as z,f as D}from"./google-LcZKb862.js";import{u as q,i as H}from"./useSocialSignin-Dk7V5LsM.js";import{k as B,a as p}from"./react-vendor-C2iomnkP.js";import{R as K}from"./RingLoader-CrlmbxDY.js";import"./utils-Bt7I0A3i.js";import"./animation-DR5N1PjO.js";const V=new H.WebAuth({domain:"https://clearplay.auth0.com/",clientID:"EhZ55wZizy1hNvMgAzKWxAcha5cPTFJg"});V.popup.callback({hash:"/"});const Z=F({email:O().email("Please use a valid email").required("Email is required")}),ie=()=>{var l;const{socialSignin:g}=q(),c=B(),S=M(G),[h,x]=p.useState(!1),{register:d,reset:f,handleSubmit:j,getValues:E,formState:{errors:L}}=w({resolver:N(Z)}),A=async()=>{f({},{keepValues:!0});const a=E().email;if(!a)return;S(o=>({...o,email:a}));const s=await v(a);r(t.CP_PRE_LOGIN_ACCOUNT_TYPE,s||""),s?(r(t.CLICKED_SIGNUP,"yes"),c.push(i.ACCOUNT_FOUND)):c.push(i.SIGNUP_PASSWORD)};p.useEffect(()=>{const a=window.location.search,o=new URLSearchParams(a).get("utm_source");o&&r(t.REFERRAL_SOURCE,o)},[]);const n=(a,s,o)=>{x(!0),g(a,s,o)};return e.jsxs(y,{children:[e.jsx(W,{active:h,spinner:e.jsx(K,{color:"#66ccff"})}),e.jsxs(C,{onSubmit:j(A),children:[e.jsx(b,{children:"Create a Clearplay account - Step 1 of 3"}),e.jsx(I,{children:"Enter your email"}),e.jsx(R,{autoFocus:!0,name:"email",register:d,errorMessage:(l=L.email)==null?void 0:l.message,placeholder:"Email"}),e.jsx(P,{text:"Next",type:"submit"}),e.jsxs(T,{children:["Already have an account?"," ",e.jsx(k,{to:i.ENTER_EMAIL,children:"Log in"})]}),e.jsxs(U,{children:[e.jsx(_,{children:"or"}),e.jsxs(u,{onClick:()=>n("google-oauth2",!0,!0),children:[e.jsx(m,{src:z,alt:"google"}),"Sign up with Google"]}),e.jsxs(u,{onClick:()=>n("facebook",!0,!0),children:[e.jsx(m,{src:D,alt:"facebook"}),"Sign up with Facebook"]})]})]})]})};export{ie as default}; 2//# sourceMappingURL=SignupEmail-xXHh0ioG.js.map
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.