1import{d as y}from"./cMgwstmh.js";import{_ as h,H as p,u as m,I as _,r as v,o,c as n,a as s,l as r,v as l,f as c,b as f}from"./DQG6X4aI.js";import{_ as x}from"./C95Jt1hJ.js";const N={components:{loadersvg:x},data(){return{quoteImage:"/ImageAssets/Isaac-Kalua-Quote.jpg",step:1,loading:!1,successSignup:!1,user:{id:"",firstName:"",name:"",lastName:"",idNumber:"",phoneNumber:"",email:"",country:"",organisation:"",specialisation:"",role:"",created:""}}},methods:{async subscribe(){const u=p(m(this.$firebaseDB,"subscribe"));this.user.id=u.id,this.user.created=new Date;try{const e=await _(u,this.user).then(()=>{this.successSignup=!0,this.loading=!1,this.user={id:"",firstName:"",lastName:"",idNumber:"",phoneNumber:"",email:"",country:"",organisation:"",specialisation:"",role:"",created:""},setTimeout(()=>{this.successSignup=!1,this.step=1},6e3)})}catch{this.loading=!1}},async registerUser(){if(!this.verifyFields()){this.loading=!1,alert("Please enter all your required details!");return}this.loading=!0;const u=p(m(this.$firebaseDB,"register"));this.user.id=u.id,this.user.created=new Date;try{const e=await _(u,this.user).then(()=>{this.successSignup=!0,this.loading=!1,this.user={id:"",firstName:"",lastName:"",idNumber:"",ph
1oneNumber:"",email:"",country:"",organisation:"",specialisation:"",role:"",created:""},setTimeout(()=>{this.successSignup=!1,this.step=1},6e3)})}catch(e){console.log(e),this.loading=!1}},verifyFields(){return!this.user.firstName||!this.user.lastName||!this.user.phoneNumber||!this.user.email||!this.user.organisation?(this.loading=!1,!1):!0},nextStep(){this.subscribe()},backStep(){this.step>1&&(this.step=this.step-1)}}},k={class:"lg:py-16 py-6 px-2"},S={class:"register-form grid lg:grid-cols-2"},V={class:"image-section col-span-1"},w=["src"],C={class:"form-section p-12 pb-16 col-span-1 flex items-center"},U={class:"steps"},B=s("div",{class:"bold-title pb-6"},[s("h1",null,"Subscribe")],-1),D=s("div",{class:"about-description"}," Get updates and news about the Africa Climate Summit & Africa Climate Week. Let's provide solutions tackling Climate Change for Africa and the World. ",-1),F={key:0,class:"step"},I={class:"input-section"},A=s("div",{class:"title"},"Name",-1),T={class:"input-section"},q=s("div",{class:"title"},"Email",-1),E={class:"input-section"},P=s("div",{class:"title"},"Phone",-1),R={key:1,class:"step"},W={class:"input-section"},j=s("div",{class:"title"},"Email",-1),O={class:"input-section"},Q=s("div",{class:"title"},"Phone number",-1),G={key:2,class:"step"},H={class:"input-section"},K=s("div",{class:"title"},"Country",-1),L={class:"input-section"},M=s("div",{class:"title"},"Organisation",-1),z={key:3,class:"step"},J={class:"input-section"},X=s("div",{class:"title"},"Field of speciality",-1),Y={class:"input-section"},Z=s("div",{class:"title"},"Role",-1),$={class:"pt-4"},ss={key:0,class:"success-modal"},es={key:1,class:"flex"},ts={key:0,class:"pr-4"},is={key:0},os={key:1},ns={key:0},rs={key:1},ls=s("div",{class:"pt-16 sub-title text-center"}," By registering you agree with our user terms and conditions . ",-1);function us(u,e,b,g,t,a){const d=v("loadersvg");return o(),n("div",k,[s("div",S,[s("div",V,[s("img",{src:t.quoteImage,alt:"African Climate Summit Quote"},null,8,w)]),s("div",C,[s("div",U,[B,D,t.step==1?(o(),n("div",F,[s("div",I,[A,r(s("input",{"onUpdate:modelValue":e[0]||(e[0]=i=>t.user.name=i),type:"text"},null,512),[[l,t.user.name]])]),s("div",T,[q,r(s("input",{"onUpdate:modelValue":e[1]||(e[1]=i=>t.user.email=i),type:"text"},null,512),[[l,t.user.email]])]),s("div",E,[P,r(s("input",{"onUpdate:modelValue":e[2]||(e[2]=i=>t.user.phoneNumber=i),type:"text"},null,512),[[l,t.user.phoneNumber]])])])):c("",!0),t.step==2?(o(),n("div",R,[s("div",W,[j,r(s("input",{"onUpdate:modelValue":e[3]||(e[3]=i=>t.user.email=i),type:"text"},null,512),[[l,t.user.email]])]),s("div",O,[Q,r(s("input",{"onUpdate:modelValue":e[4]||(e[4]=i=>t.user.phoneNumber=i),type:"text"},null,512),[[l,t.user.phoneNumber]])])])):c("",!0),t.step==3?(o(),n("div",G,[s("div",H,[K,r(s("input",{"onUpdate:modelValue":e[5]||(e[5]=i=>t.user.country=i),type:"text"},null,512),[[l,t.user.country]])]),s("div",L,[M,r(s("input",{"onUpdate:modelValue":e[6]||(e[6]=i=>t.user.organisation=i),type:"text"},null,512),[[l,t.user.organisation]])])])):c("",!0),t.step==4?(o(),n("div",z,[s("div",J,[X,r(s("input",{"onUpdate:modelValue":e[7]||(e[7]=i=>t.user.specialisation=i),type:"text"},null,512),[[l,t.user.specialisation]])]),s("div",Y,[Z,r(s("input",{"onUpdate:modelValue":e[8]||(e[8]=i=>t.user.role=i),type:"text"},null,512),[[l,t.user.role]])])])):c("",!0),s("div",$,[t.successSignup?(o(),n("div",ss," Thank y
1ou for your subscription. We will make follow ups and reservations to ensure you have the best experience at the summit. ")):(o(),n("div",es,[t.step>1?(o(),n("div",ts,[s("div",{class:"secondary-button",onClick:e[9]||(e[9]=i=>a.backStep())},"Back")])):c("",!0),s("div",{class:"primary-button w-full",onClick:e[10]||(e[10]=i=>a.nextStep())},[t.step==4?(o(),n("span",is," Subscribe ")):(o(),n("span",os,[t.loading?(o(),n("span",rs,[f(d)])):(o(),n("span",ns,"Subscribe"))]))])]))]),ls])])])])}const cs=h(N,[["render",us]]),as=y({components:{subscribeForm:cs}},"$99Bkeei5Ot"),ds={class:"register-page flex justify-center items-center"},ps={class:"py-24 w-full"};function ms(u,e,b,g,t,a){const d=v("subscribeForm");return o(),n("div",ds,[s("div",ps,[f(d)])])}const fs=h(as,[["render",ms],["__scopeId","data-v-723ac660"]]);export{fs 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.