import{X as t,Y as n,Z as o,$ as m}from"./setup-BuwH6Opq.js";import{h as r}from"./auth-vue-plugin-akZjEFVJ.js";import{o as _}from"./toast-U4gk7w4G.js";const e={EXIST_IN_ANOTHER_SESSION:"exist-another",ALREADY_REGISTERED:"exist",TEAM_MEMBER_NOT_CONNECTED:"team-member-not-connected",TEAM_MEMBER_NOT_ASSIGNED:"team-member-not-assigned",TEAM_MEMBER_ASSIGNED:"team-member-assigned",NOT_EXIST:"not-exist"},l={[e.EXIST_IN_ANOTHER_SESSION]:{cta:"registration-form_cta_check-email-exist-another",async handler({selectedSessionsWithoutExistStatus:s}){try{for(const a of s)await this.submitFormData({operation:async E=>{const i={event_type_id:this.eventTypeId,session_id:a.sessionId,email:this.formData.email,registration_type:this.registrationType};return Object.assign(i,o()),Object.assign(i,m()),this.$auth.weakSignup(i)}});r("registration-success")}catch(a){throw r("registration-error"),a}}},[e.ALREADY_REGISTERED]:{cta:"registration_webinar_register_form_popup_login-resend",async handler(){const s=await this.$auth.resetPassword({email:this.formData.email,event_type_id:this.eventTypeId,redirect_url:"/reset-password",participant:!0});_({type:"success",message:s.data.message,time:!0})}},[e.TEAM_MEMBER_NOT_CONNECTED]:{cta:"general_login",async handler(){this.googleAuth?(await this.$auth.strongSignin({provider:"google"}),t(`${this.eventType.url.live}?s=${this.formData.sessionId}`)):t(`${n()}/#/login?uid=${this.formData.email}`,{newTab:!0})}},[e.TEAM_MEMBER_NOT_ASSIGNED]:{cta:"registration-form_cta_check-email-team-member-not-assigned",handler(){t(`${this.eventType.url.sessions_settings}`,{newTab:!0})}},[e.TEAM_MEMBER_ASSIGNED]:{cta:"registration-form_cta_check-email-team-member-assigned",handler(){t(`${this.eventType.url.live}?s=${this.formData.sessionId}`,{newTab:!0})}}};export{e as C,l as a};