1import{d as F,h as n,n as H,k as q,m as k,b as g,e,f as c,q as f,t as S,ao as x,aV as C,a4 as W,a as d,u as m,c as Y,Q,w as Z,a0 as j,aU as G,a2 as N,r as J,o as v,P as K,W as X,g as ee,an as T,U as ae}from"./index-58382804.js";import{I as b}from"./Input-79fd3556.js";const se=e("h1",{class:"mb-75"}," Sign up and become a member ",-1),le={class:"mb-25"},oe={class:"mb-25"},te={class:"mb-25"},ne={key:0,class:"red--text"},re={class:"mb-25"},ie={class:"mb-25"},ue={key:0,class:"red--text"},ce={key:1,class:"red--text"},de={for:"have-read",class:"pure-checkbox"},me={for:"privacy-policy-checkbox",class:"pure-checkbox"},ve={class:"mb-30"},pe={for:"newsletter-checkbox",class:"pure-checkbox"},he={key:0,class:"red--text mb-30"},ge={class:"text-center fs-18px mb-50"},fe=e("div",{class:"text-within-line black--text ml-10 mr-10 mb-50 fs-20px"},[e("div",{class:"font-weight-bold pl-10 pr-10"},"Or continue with")],-1),be=e("div",{id:"googleSignUpButton"},null,-1),ke=F({__name:"SignUp",setup(we){const p=n(""),h=n(""),r=n(""),l=n(""),i=n(""),w=n(!1),_=n(!1),V=n(!1),t=n(!1),U=n("");H(()=>{window.google&&window.google.accounts.id.renderButton(document.getElementById("googleSignUpButton"),{theme:"outline",size:"large",text:"signup_with"}),u.onSignInPage=!1,u.onIndividualPage=!0});const u=q(),I=async()=>{if(!w.value||!_.value||!E.value){t.value=!0;return}const a=!1;u.signUp(p.value,h.value,r.value,l.value,G.boardOwl,a,"")},B=k(()=>!l.value||!i.value||l.value===i.value),O=k(()=>!r.value||T(r.value)),E=k(()=>p.value&&h.value&&r.value&&l.value&&i.value&&l.value===i.value&&P&&T(r.value)),P=k(()=>!l.value||l.value.length<8?(y("Password is less than 8 characters"),!1):M(l.value)?R(l.value)?!A(l.value)&&!L(l.value)?(y("Password must contain numbers and special characters"),!1):!0:(y("Password must contain upper case characters"),!1):(y("Password must contain lower case characters"),!1)),M=a=>!a||a.match(/[a-z]+/),R=a=>!a||a.match(/[A-Z]+/),A=a=>!a||a.match(/[0-9]+/),L=a=>!a||a.match(/[$@#&!]+/),$=()=>{window.open(`${N()}terms-of-service`)},z=()=>{window.open(`${N()}privacy-policy`)},y=a=>{U.value=a};return(a,s)=>{const D=J("router-link");return v(),g("div",null,[se,e("form",{class:"pure-form pure-form-stacked",onSubmit:j(I,["stop","prevent"])},[e("fieldset",null,[e("div",le,[c(b,{modelValue:p.value,"onUpdate:modelValue":s[0]||(s[0]=o=>p.value=o),type:"text",label:"First Name*",placeholder:"Insert your first name",showWarning:t.value&&!p.value},null,8,["modelValue","showWarning"])]),e("div",oe,[c(b,{modelValue:h.value,"onUpdate:modelValue":s[1]||(s[1]=o=>h.value=o),type:"text",label:"Last Name*",placeholder:"Insert your last name",showWarning:t.value&&!h.value},null,8,["modelValue","showWarning"])]),e("div",te,[c(b,{modelValue:r.value,"onUpdate:modelValue":s[2]||(s[2]=o=>r.value=o),type:"email",label:"Work Email*",placeholder:"Insert your email address",showWarning:t.value&&!r.value},null,8,["modelValue","showWarning"]),!O.value&&t.value?(v(),g("div",ne," Invalid email address ")):f("",!0)]),e("div",re,[c(b,{modelValue:l.value,"onUpdate:modelValue":s[3]||(s[3]=o=>l.value=o),type:"password",label:"Create password*",placeholder:"Password",showWarning:t.value&&!l.value},null,8,["modelValue","showWarning"])]),e("div",ie,[c(b,{modelValue:i.value,"onUpdate:modelValue":s[4]||(s[4]=o=>i.value=o),type:"password",label:"Confirmation*",placeholder:"Confirm the password",showWarning:t.value&&!i.value},null,8,["modelValue","showWarning"]),!B.value&&t.value?(v(),g("div",ue," Passwords don't match ")):f("",!0),l.value&&i.value&&!P.value?(v(),g("div",ce,S(U.value),1)):f("",!0)]),e("div",null,[e("label",de,[x(e("input",{"onUpdate:modelValue":s[5]||(s[5]=o=>w.value=o),type:"checkbox",id:"have-read",class:W(t.value&&!w.value&&"mandatory-checkbox")},null,2),[[C,w.value]]),d(" I have read and agree to the "),e("a",{href:"#",onClick:$}," Terms Of Service "),d(".* ")])]),e("div",null,[e("label",me,[x(e("input",{"onUpdate:modelValue":s[6]||(s[6]=o=>_.value=o),type:"checkbox",id:"privacy-policy-checkbox",class:W(t.value&&!_.value&&"mandatory-checkbox")},null,2),[[C,_.value]]),d(" This site collects names, emails and other user information. I consent to the terms set forth in the "),e("a",{href:"#",onClick:z}," Privacy Policy "),d(".* ")])]),e("div",ve,[e("label",pe,[x(e("input",{"onUpdate:modelValue":s[7]||(s[7]=o=>V.value=o),type:"checkbox",id:"newsletter-checkbox"}
1,null,512),[[C,V.value]]),d(" Yes, I want to receive the Board Owl Newsletter (unsubscription possible at any time) ")])]),m(u).inErrorState?(v(),g("div",he,S(m(u).errorMessage),1)):f("",!0),m(u).processing?(v(),Y(ae,{key:1,indeterminate:"",class:"mt-10 mb-10"})):f("",!0),c(Q,{class:"mb-15",label:"Sign up",fillColour:m(K),labelColour:m(X),fillWidth:"",disabled:m(u).processing,onClick:I},null,8,["fillColour","labelColour","disabled"]),e("div",ge,[d(" Already a member? "),c(D,{to:m(ee).members.signin,class:"gold--text no-decoration"},{default:Z(()=>[d(" Log in here. ")]),_:1},8,["to"])])])],32),fe,be])}}});export{ke 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.