(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9fa0a13e"],{"0393":function(e,t,n){"use strict";n("210b");var i=n("604c"),a=n("d9bd");t["a"]=i["a"].extend({name:"v-expansion-panels",provide(){return{expansionPanels:this}},props:{accordion:Boolean,disabled:Boolean,flat:Boolean,hover:Boolean,focusable:Boolean,inset:Boolean,popout:Boolean,readonly:Boolean,tile:Boolean},computed:{classes(){return{...i["a"].options.computed.classes.call(this),"v-expansion-panels":!0,"v-expansion-panels--accordion":this.accordion,"v-expansion-panels--flat":this.flat,"v-expansion-panels--hover":this.hover,"v-expansion-panels--focusable":this.focusable,"v-expansion-panels--inset":this.inset,"v-expansion-panels--popout":this.popout,"v-expansion-panels--tile":this.tile}}},created(){this.$attrs.hasOwnProperty("expand")&&Object(a["a"])("expand","multiple",this),Array.isArray(this.value)&&this.value.length>0&&"boolean"===typeof this.value[0]&&Object(a["a"])(':value="[true, false, true]"',':value="[0, 2]"',this)},methods:{updateItem(e,t){const n=this.getValue(e,t),i=this.getValue(e,t+1);e.isActive=this.toggleMethod(n),e.nextIsActive=this.toggleMethod(i)}}})},"169a":function(e,t,n){"use strict";n("368e");var i=n("480e"),a=n("4ad4"),s=n("b848"),o=n("75eb"),r=n("e707"),l=n("e4d3"),c=n("21be"),d=n("a293"),v=n("58df"),h=n("d9bd"),p=n("80d2");const u=Object(v["a"])(s["a"],o["a"],r["a"],l["a"],c["a"],a["a"]);t["a"]=u.extend({name:"v-dialog",directives:{ClickOutside:d["a"]},props:{dark:Boolean,disabled:Boolean,fullscreen:Boolean,light:Boolean,maxWidth:[String,Number],noClickAnimation:Boolean,origin:{type:String,default:"center center"},persistent:Boolean,retainFocus:{type:Boolean,default:!0},scrollable:Boolean,transition:{type:[String,Boolean],default:"dialog-transition"},width:[String,Number]},data(){return{activatedBy:null,animate:!1,animateTimeout:-1,stackMinZIndex:200,previousActiveElement:null}},computed:{classes(){return{[("v-dialog "+this.contentClass).trim()]:!0,"v-dialog--active":this.isActive,"v-dialog--persistent":this.persistent,"v-dialog--fullscreen":this.fullscreen,"v-dialog--scrollable":this.scrollable,"v-dialog--animated":this.animate}},contentClasses(){return{"v-dialog__content":!0,"v-dialog__content--active":this.isActive}},hasActivator(){return Boolean(!!this.$slots.activator||!!this.$scopedSlots.activator)}},watch:{isActive(e){var t;e?(this.show(),this.hideScroll()):(this.removeOverlay(),this.unbind(),null===(t=this.previousActiveElement)||void 0===t||t.focus())},fullscreen(e){this.isActive&&(e?(this.hideScroll(),this.removeOverlay(!1)):(this.showScroll(),this.genOverlay()))}},created(){this.$attrs.hasOwnProperty("full-width")&&Object(h["e"])("full-width",this)},beforeMount(){this.$nextTick(()=>{this.isBooted=this.isActive,this.isActive&&this.show()})},beforeDestroy(){"undefined"!==typeof window&&this.unbind()},methods:{animateClick(){this.animate=!1,this.$nextTick(()=>{this.animate=!0,window.clearTimeout(this.animateTimeout),this.animateTimeout=window.setTimeout(()=>this.animate=!1,150)})},closeConditional(e){const t=e.target;return!(this._isDestroyed||!this.isActive||this.$refs.content.contains(t)||this.overlay&&t&&!this.overlay.$el.contains(t))&&this.activeZIndex>=this.getMaxZIndex()},hideScroll(){this.fullscreen?document.documentElement.classList.add("overflow-y-hidden"):r["a"].options.methods.hideScroll.call(this)},show(){!this.fullscreen&&!this.hideOverlay&&this.genOverlay(),this.$nextTick(()=>{this.$nextTick(()=>{var e,t;(null===(e=this.$refs.dialog)||void 0===e?void 0:e.contains(document.activeElement))||(this.previousActiveElement=document.activeElement,null===(t=this.$refs.dialog)||void 0===t||t.focus()),this.bind()})})},bind(){window.addEventListener("focusin",this.onFocusin)},unbind(){window.removeEventListener("focusin",this.onFocusin)},onClickOutside(e){this.$emit("click:outside",e),this.persistent?this.noClickAnimation||this.animateClick():this.isActive=!1},onKeydown(e){if(e.keyCode===p["y"].esc&&!this.getOpenDependents().length)if(this.persistent)this.noClickAnimation||this.animateClick();else{this.isActive=!1;const e=this.getActivator();this.$nextTick(()=>e&&e.focus())}this.$emit("keydown",e)},onFocusin(e){if(!e||!this.retainFocus)return;const t=e.target;if(t&&this.$refs.dialog&&![document,this.$refs.dialog].includes(t)&&!this.$refs.dialog.contains(t)&&this.activeZIndex>=this.getMaxZIndex()&&!this.getOpenDependentElements().some(e=>e.contains(t))){const e=this.$refs.dialog.querySelectorAll('button, [href], input:not([type="hidden"]), select, textarea, [tabindex]:not([tabindex="-1"])'),t=[...e].find(e=>!e.hasAttribute("disabled")&&!e.matches('[tabindex="-1"]'));t&&t.focus()}},genContent(){return this.showLazyContent(()=>[this.$createElement(i["a"],{props:{root:!0,light:this.light,dark:this.dark}},[this.$createElement("div",{class:this.contentClasses,attrs:{role:"dialog","aria-modal":this.hideOverlay?void 0:"true",...this.getScopeIdAttrs()},on:{keydown:this.onKeydown},style:{zIndex:this.activeZIndex},ref:"content"},[this.genTransition()])])])},genTransition(){const e=this.genInnerContent();return this.transition?this.$createElement("transition",{props:{name:this.transition,origin:this.origin,appear:!0}},[e]):e},genInnerContent(){const e={class:this.classes,attrs:{tabindex:this.isActive?0:void 0},ref:"dialog",directives:[{name:"click-outside",value:{handler:this.onClickOutside,closeConditional:this.closeConditional,include:this.getOpenDependentElements}},{name:"show",value:this.isActive}],style:{transformOrigin:this.origin}};return this.fullscreen||(e.style={...e.style,maxWidth:Object(p["h"])(this.maxWidth),width:Object(p["h"])(this.width)}),this.$createElement("div",e,this.getContentSlot())}},render(e){return e("div",{staticClass:"v-dialog__container",class:{"v-dialog__container--attached":""===this.attach||!0===this.attach||"attach"===this.attach}},[this.genActivator(),this.genContent()])}})},"210b":function(e,t,n){},"33f4":function(e,t,n){},"368e":function(e,t,n){},"49e2":function(e,t,n){"use strict";var i=n("0789"),a=n("9d65"),s=n("a9ad"),o=n("3206"),r=n("80d2"),l=n("58df");const c=Object(l["a"])(a["a"],s["a"],Object(o["a"])("expansionPanel","v-expansion-panel-content","v-expansion-panel"));t["a"]=c.extend().extend({name:"v-expansion-panel-content",data:()=>({isActive:!1}),computed:{parentIsActive(){return this.expansionPanel.isActive}},watch:{parentIsActive:{immediate:!0,handler(e,t){e&&(this.isBooted=!0),null==t?this.isActive=e:this.$nextTick(()=>this.isActive=e)}}},created(){this.expansionPanel.registerContent(this)},beforeDestroy(){this.expansionPanel.unregisterContent()},render(e){return e(i["a"],this.showLazyContent(()=>[e("div",this.setBackgroundColor(this.color,{staticClass:"v-expansion-panel-content",directives:[{name:"show",value:this.isActive}]}),[e("div",{class:"v-expansion-panel-content__wrap"},Object(r["s"])(this))])]))}})},6373:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("img",{staticStyle:{padding:"25px","max-width":"100%"},attrs:{src:"https://api.qrserver.com/v1/create-qr-code/?size=350x350&data="+encodeURIComponent(e.data),width:"400",height:"400"}})},a=[],s={name:"QrCode",components:{},props:{data:String},computed:{}},o=s,r=n("2877"),l=Object(r["a"])(o,i,a,!1,null,null,null);t["a"]=l.exports},"99d9":function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return l}));var i=n("b0af"),a=n("80d2");const s=Object(a["j"])("v-card__actions"),o=Object(a["j"])("v-card__subtitle"),r=Object(a["j"])("v-card__text"),l=Object(a["j"])("v-card__title");i["a"]},b2a2:function(e,t,n){"use strict";n("33f4")},c865:function(e,t,n){"use strict";var i=n("0789"),a=n("9d26"),s=n("a9ad"),o=n("3206"),r=n("5607"),l=n("80d2"),c=n("58df");const d=Object(c["a"])(s["a"],Object(o["a"])("expansionPanel","v-expansion-panel-header","v-expansion-panel"));t["a"]=d.extend().extend({name:"v-expansion-panel-header",directives:{ripple:r["a"]},props:{disableIconRotate:Boolean,expandIcon:{type:String,default:"$expand"},hideActions:Boolean,ripple:{type:[Boolean,Object],default:!1}},data:()=>({hasMousedown:!1}),computed:{classes(){return{"v-expansion-panel-header--active":this.isActive,"v-expansion-panel-header--mousedown":this.hasMousedown}},isActive(){return this.expansionPanel.isActive},isDisabled(){return this.expansionPanel.isDisabled},isReadonly(){return this.expansionPanel.isReadonly}},created(){this.expansionPanel.registerHeader(this)},beforeDestroy(){this.expansionPanel.unregisterHeader()},methods:{onClick(e){this.$emit("click",e)},genIcon(){const e=Object(l["s"])(this,"actions")||[this.$createElement(a["a"],this.expandIcon)];return this.$createElement(i["d"],[this.$createElement("div",{staticClass:"v-expansion-panel-header__icon",class:{"v-expansion-panel-header__icon--disable-rotate":this.disableIconRotate},directives:[{name:"show",value:!this.isDisabled}]},e)])}},render(e){return e("button",this.setBackgroundColor(this.color,{staticClass:"v-expansion-panel-header",class:this.classes,attrs:{tabindex:this.isDisabled?-1:null,type:"button","aria-expanded":this.isActive},directives:[{name:"ripple",value:this.ripple}],on:{...this.$listeners,click:this.onClick,mousedown:()=>this.hasMousedown=!0,mouseup:()=>this.hasMousedown=!1}}),[Object(l["s"])(this,"default",{open:this.isActive},!0),this.hideActions||this.genIcon()])}})},cd55:function(e,t,n){"use strict";var i=n("4e82"),a=n("3206"),s=n("80d2"),o=n("58df");t["a"]=Object(o["a"])(Object(i["a"])("expansionPanels","v-expansion-panel","v-expansion-panels"),Object(a["b"])("expansionPanel",!0)).extend({name:"v-expansion-panel",props:{disabled:Boolean,readonly:Boolean},data(){return{content:null,header:null,nextIsActive:!1}},computed:{classes(){return{"v-expansion-panel--active":this.isActive,"v-expansion-panel--next-active":this.nextIsActive,"v-expansion-panel--disabled":this.isDisabled,...this.groupClasses}},isDisabled(){return this.expansionPanels.disabled||this.disabled},isReadonly(){return this.expansionPanels.readonly||this.readonly}},methods:{registerContent(e){this.content=e},unregisterContent(){this.content=null},registerHeader(e){this.header=e,e.$on("click",this.onClick)},unregisterHeader(){this.header=null},onClick(e){e.detail&&this.header.$el.blur(),this.$emit("click",e),this.isReadonly||this.isDisabled||this.toggle()},toggle(){this.$nextTick(()=>this.$emit("change"))}},render(e){return e("div",{staticClass:"v-expansion-panel",class:this.classes,attrs:{"aria-expanded":String(this.isActive)}},Object(s["s"])(this))}})},d6b9:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.event?n("div",[n("v-row",{staticClass:"mx-3"},[n("v-col",{attrs:{cols:"12",sm:"6",md:"4"}},[n("v-card",{staticClass:"pa-4",attrs:{elevation:1,color:"grey lighten-4",href:"https://sodispstoragep.blob.core.windows.net/public/docs/How-to%20-%20Join%20challenge%20-%20CorporateFitness.app.pdf"}},[n("h3",{staticClass:"my-4"},[n("v-icon",{staticClass:"mr-2"},[e._v("fa-file-pdf")]),e._v(" Join a Challenge")],1),n("p",[e._v("How to join a (step) challenge using our app.")])])],1),n("v-col",{attrs:{cols:"12",sm:"6",md:"4"}},[n("v-card",{staticClass:"pa-4",attrs:{elevation:1,color:"grey lighten-4",href:"https://sodispstoragep.blob.core.windows.net/public/docs/How-to%20-%20Connect%20Garmin%20-%20CorporateFitness.app.pdf"}},[n("h3",{staticClass:"my-4"},[n("v-icon",{staticClass:"mr-2"},[e._v("fa-file-pdf")]),e._v(" Connect with Garmin")],1),n("p",[e._v("How to connect with Garmin.")])])],1),n("v-col",{attrs:{cols:"12",sm:"6",md:"4"}},[n("v-card",{staticClass:"pa-4",attrs:{elevation:1,color:"grey lighten-4",href:"https://sodispstoragep.blob.core.windows.net/public/docs/How-to%20-%20Connect%20Apple%20Watch%20-%20CorporateFitness.app.pdf"}},[n("h3",{staticClass:"my-4"},[n("v-icon",{staticClass:"mr-2"},[e._v("fa-file-pdf")]),e._v(" Connect with Apple Watch")],1),n("p",[e._v("How to connect your Apple Watch.")])])],1),n("v-col",{attrs:{cols:"12",sm:"6",md:"4"}},[n("v-card",{staticClass:"pa-4",attrs:{elevation:1,color:"grey lighten-4",href:"https://sodispstoragep.blob.core.windows.net/public/docs/How-to%20-%20Connect%20Fitbit%20-%20CorporateFitness.app.pdf"}},[n("h3",{staticClass:"my-4"},[n("v-icon",{staticClass:"mr-2"},[e._v("fa-file-pdf")]),e._v(" Connect with Fitbit")],1),n("p",[e._v("How to connect your Fitbit.")])])],1),"ACTIVITY_BASED"!==e.event.activity_mode?n("v-col",{attrs:{cols:"12",sm:"6",md:"4"}},[n("v-card",{staticClass:"pa-4",attrs:{elevation:1,color:"grey lighten-4",href:"https://sodispstoragep.blob.core.windows.net/public/docs/How-to%20-%20Enable%20Step%20Tracking%20-%20CorporateFitness.app.pdf"}},[n("h3",{staticClass:"my-4"},[n("v-icon",{staticClass:"mr-2"},[e._v("fa-file-pdf")]),e._v(" Enable Step Tracking")],1),n("p",[e._v("How to enable step tracking in the app.")])])],1):e._e(),e.event.allow_manual_entry?n("v-col",{attrs:{cols:"12",sm:"6",md:"4"}},[n("v-card",{staticClass:"pa-4",attrs:{elevation:1,color:"grey lighten-4",href:"https://sodispstoragep.blob.core.windows.net/public/docs/How-to%20-%20QuickEntry%20-%20CorporateFitness.app.pdf"}},[n("h3",{staticClass:"my-4"},[n("v-icon",{staticClass:"mr-2"},[e._v("fa-file-pdf")]),e._v(" Add a Manual Entry")],1),n("p",[e._v("How to add a manual entry.")])])],1):e._e()],1)],1):e._e()},a=[],s=n("2f62"),o=n("585f"),r=n("4a1f"),l=n.n(r);l.a.current();var c={name:"EventTutorials",props:{event:Object},data:function(){return{}},created(){},async mounted(){o["a"].$on("login-state-change",async e=>{})},methods:{},computed:{...Object(s["b"])({user:"user"})}},d=c,v=n("2877"),h=n("6544"),p=n.n(h),u=n("b0af"),m=n("62ad"),f=n("132d"),g=n("0fd9"),_=Object(v["a"])(d,i,a,!1,null,"2782fcd4",null);t["a"]=_.exports;p()(_,{VCard:u["a"],VCol:m["a"],VIcon:f["a"],VRow:g["a"]})},e23d:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("v-breadcrumbs",{attrs:{items:e.breadcrumbItems}}),e.event?n("v-card",[e.event.notPublished?n("v-alert",{attrs:{type:"warning"}},[e._v(e._s(e.$t("eventmanager.not-published-msg")))]):e._e(),n("EventHeader",{attrs:{event:e.event}}),n("v-card-title",{staticClass:"title"},[e._v(e._s(e.$t("events.welcome.getting-started")))]),n("v-card-text",[e._v("Please follow these instructions to get started and connect with "+e._s(e.event.name)+".")]),e.isConnected?n("v-alert",{attrs:{tile:"",prominent:"",type:"success"}},[n("p",[e._v(e._s(e.$t("events.welcome.joined-message",{event:e.event.name})))]),n("p",[e.status.verification_code?n("span",[e._v(e._s(e.$t("events.welcome.joined-code",{code:e.status.verification_code})))]):e._e(),e.status.races?n("span",[e._v(e._s(e.$t("events.welcome.joined-races",{races:e.status.races.join(", ")})))]):e._e()]),e.status.reg_name?n("p",[n("i18n",{attrs:{path:"events.welcome.reg-name"}},[n("strong",[e._v(e._s(e.status.reg_name))])])],1):e._e(),n("p",[n("v-btn",{attrs:{"x-large":"",to:{name:"eventWelcome",params:{id:this.event.id}},exact:!0}},[n("v-icon",{staticClass:"mr-2"},[e._v("fa-info-circle")]),e._v(" "+e._s(e.$t("events.welcome.manage-connection"))+" ")],1)],1)]):e._e(),"REG_DATA"===e.event.verification_method?n("div",[n("v-card-title",{staticClass:"subheader"},[e._v("Step 1: "),n("strong",[e._v("Locate your invite email")])]),n("v-card-text",[n("p",[e._v('Look for an email with the subject "'),n("strong",[e._v("Join "+e._s(e.event.name)+" on "+e._s(e.tenant.name))]),e._v("\" in your mailbox. Can't find it? Please make sure to look in your spam/junk folders as well.")]),n("p",[n("v-btn",{attrs:{outlined:"",color:"primary"},on:{click:e.recoverInviteLink}},[e._v("Get Invite Link")])],1)])],1):e.joinInfo?n("div",[n("v-card-title",{staticClass:"subheader"},[e._v("Step 1: "),n("strong",[e._v("Join with the app or on the website")])]),n("v-card-text",[n("v-row",[n("v-col",{attrs:{cols:"12",md:"6"}},[n("h3",[e._v("Join on This Device")]),n("p",[e._v("Click button below to join on this device.")]),n("p",[n("v-btn",{attrs:{"x-large":"",color:"primary",href:e.joinInfo.join_url}},[e._v("Join on This Device")])],1)]),n("v-col",{attrs:{cols:"12",md:"6"}},[n("h3",[e._v("Join on Another Device")]),n("p",[e._v("Scan this QR code with your phone to quickly join this event using our app. This will download the iOS or Android depending on the phone.")]),n("QrCode",{attrs:{data:e.joinInfo.join_url}})],1)],1)],1)],1):n("div",[n("v-card-title",{staticClass:"subheader"},[e._v("Step 1: "),n("strong",[e._v("Use the invite link")])]),n("v-card-text",[n("p",[e._v("Click button below to join either on this device or on another device.")]),n("p",[n("v-btn",{attrs:{outlined:"",color:"primary"},on:{click:e.recoverInviteLink}},[e._v("Get Invite Link")])],1)])],1),n("v-card-text",[n("v-expansion-panels",{staticClass:"mt-4",attrs:{tile:""}},[n("v-expansion-panel",[n("v-expansion-panel-header",[e._v("Don't have invite link?")]),n("v-expansion-panel-content",[n("p",[e._v("Can't find your invite link? No worries, use this wizard to quickly get started!")]),n("p",[n("v-btn",{staticClass:"primary",on:{click:e.recoverInviteLink}},[e._v("Get Invite Link")])],1)])],1),"REG_DATA"===e.event.verification_method?n("v-expansion-panel",[n("v-expansion-panel-header",[e._v("Verification Code Already Claimed message?")]),n("v-expansion-panel-content",[n("p",[e._v("When you get an error that your code is already used you might have accidentally created a second account. Please log out first and log back in with your first account. You will have received a Join Confirmation email which listed all your account details.")])])],1):e._e()],1)],1),n("v-card-title",{staticClass:"subheader"},[e._v("Step 2: "),n("strong",[e._v("Login or Register")])]),n("v-card-text",[n("p",[e._v("Connect using your preferred method. Your challenge and code are preselected so you don't need to enter those again.")]),n("v-expansion-panels",{staticClass:"mt-4",attrs:{tile:""}},[n("v-expansion-panel",[n("v-expansion-panel-header",[e._v("Using both app and website?")]),n("v-expansion-panel-content",[n("p",[e._v("When you use both the app and website, please make sure to log in with the same account on both devices. E.g. when you connect with Garmin, please make sure to do so on both devices.")])])],1)],1)],1),n("v-card-title",{staticClass:"subheader"},[e._v("Step 3: "),n("strong",[e._v("Connect your favorite fitness tracker (optional)")])]),n("v-card-text",[n("p",[e._v("One you're part of the challenge you can connect your favorite fitness tracker to automatically track your steps and activities. Alternatively, you can use the integrated activity or step tracker from our app or use manual entry.")])]),n("v-card-title",{staticClass:"subheader"},[e._v("Tutorials")]),n("v-card-text",[e._v("These how-to guides might be helpful to get you started in no time!")]),n("EventTutorials",{attrs:{event:e.event}}),n("br")],1):e._e(),n("v-dialog",{attrs:{"max-width":"500"},model:{value:e.showRecoveryDialog,callback:function(t){e.showRecoveryDialog=t},expression:"showRecoveryDialog"}},[n("v-card",[n("v-card-title",[e._v("Retrieve your join link")]),e.showQr?n("v-card-text",[n("p",[e._v("Scan this QR code with your phone to quickly join this event using our app. This will download the iOS or Android depending on the phone.")]),n("p",[e._v("This is your "),n("strong",[e._v("personal")]),e._v(" join link for code "),n("strong",[e._v(e._s(e.joinInfo.join_code))]),e._v(" and can only be used once.")]),n("QrCode",{attrs:{data:e.joinInfo.join_url}})],1):e.joinInfo&&e.joinInfo.join_url?n("v-card-text",[n("v-alert",{attrs:{type:"success"}},[e._v("All good, we found your information!")]),n("p",[e._v("On which device would you like to join?")]),n("v-card",{staticClass:"pa-4 mt-4",attrs:{href:e.joinInfo.join_url,target:"_blank"}},[n("h3",[e._v("On "),n("u",[e._v("this")]),e._v(" device")]),n("p",[e._v("Download the app or join online, depending on the type of your device.")])]),n("v-card",{staticClass:"pa-4 mt-4",on:{click:function(t){e.showQr=!0}}},[n("h3",[e._v("On "),n("u",[e._v("another")]),e._v(" device")]),n("p",[e._v("Show a QR code which you can scan with your phone to download the app and get started.")])])],1):"CODE"==e.recoveryType?n("v-card-text",[n("p",[e._v("Please enter your personal verification code:")]),n("v-text-field",{attrs:{autofocus:""},model:{value:e.code,callback:function(t){e.code=t},expression:"code"}}),e.joinInfo?n("v-alert",{attrs:{type:"warning"}},[e._v("Cannot find information for this code. Please ensure you entered it correctly or contact the event organizer "),e.joinInfo.support_email?n("a",{attrs:{href:"mailto:"+e.joinInfo.support_email}},[e._v("at "+e._s(e.joinInfo.support_email))]):e._e(),e._v(" to get your link.")]):e._e(),n("v-btn",{attrs:{color:"primary",disabled:!e.code},on:{click:e.loadJoinStatusByCode}},[e._v("Find")])],1):"EMAIL"==e.recoveryType?n("v-card-text",[n("p",[e._v("Please enter the email address used by this event:")]),n("v-text-field",{attrs:{autofocus:""},model:{value:e.email,callback:function(t){e.email=t},expression:"email"}}),e.joinInfo?n("v-alert",{attrs:{type:"warning"}},[e._v("Cannot find information for this email address. Please ensure you have no typos in your email or contact the event organizer "),e.joinInfo.support_email?n("a",{attrs:{href:"mailto:"+e.joinInfo.support_email}},[e._v("at "+e._s(e.joinInfo.support_email))]):e._e(),e._v(" to get your link.")]):e._e(),n("v-btn",{attrs:{color:"primary",disabled:!e.email},on:{click:e.loadJoinStatusByEmail}},[e._v("Find")])],1):n("v-card-text",[n("p",[e._v("How do you want to retrieve your link??")]),n("v-card",{staticClass:"pa-4 mt-4",on:{click:function(t){e.recoveryType="CODE"}}},[n("h3",[e._v("By "),n("u",[e._v("verification code")])]),n("p",[e._v("When you know your personal verification code.")])]),n("v-card",{staticClass:"pa-4 mt-4",attrs:{target:"_blank"},on:{click:function(t){e.recoveryType="EMAIL"}}},[n("h3",[e._v("By "),n("u",[e._v("email")])]),n("p",[e._v("Enter your email to retrieve your link.")])])],1),n("v-card-actions",[n("v-btn",{attrs:{text:"",color:"primary"},on:{click:function(t){e.showRecoveryDialog=!1}}},[e._v("Close")])],1)],1)],1)],1)},a=[],s=n("2f62"),o=n("81a6"),r=n("31a7"),l=n("8ac6"),c=n("d6b9"),d=n("6373"),v=n("7f86"),h=n("ac67"),p=n("585f"),u=n("4a1f"),m=n.n(u);n("be8c");const f=m.a.current();var g={name:"EventJoin",components:{QrCode:d["a"],VueMarkdown:r["a"],EventHeader:l["a"],EventJoinCard:v["a"],EventTutorials:c["a"]},props:{},data(){return{tenant:f,event:null,status:null,joinInfo:null,code:null,email:null,showRecoveryDialog:!1,showQr:!1,recoveryType:null}},async mounted(){await this.loadEvent(this.$route.params.id),p["a"].$on("login-state-change",async e=>{await this.getEventStatus()})},methods:{async getEventStatus(){if(this.user){var e=await h["a"].getEventStatus(this.event.id);this.status=e.data}},async loadEvent(e){var t=await o["a"].get(e);if(this.event=t.data,await this.getEventStatus(),"ALLOWLIST"===this.event.verification_method){t=await o["a"].getEventJoinInfo(this.event.id);this.joinInfo=t.data,console.log("this.joinInfo",this.joinInfo)}var n={title:this.event.name+" on "+f.name,description:this.event.description,image:this.event.img};p["a"].$emit("page-header-change",n)},async recoverInviteLink(){this.email=this.code=this.showQr=this.recoveryType=null,"REG_DATA"===this.event.verification_method&&(this.joinInfo=null),this.showRecoveryDialog=!0},async loadJoinStatusByCode(){var e=await o["a"].getJoinInfo(this.event.id,this.code);this.joinInfo=e.data},async loadJoinStatusByEmail(){var e=await o["a"].getJoinInfoByEmail(this.event.id,this.email);this.joinInfo=e.data}},computed:{isConnected(){return this.status&&this.status.connected},breadcrumbItems(){return this.event?[{text:this.event.name,exact:!0,to:{name:"event",params:{id:this.event.id}}},{text:this.$t("events.welcome.getting-started"),disabled:!0}]:[]},...Object(s["b"])({user:"user"})},async beforeRouteUpdate(e,t,n){await this.loadEvent(e.params.id),n()}},_=g,y=(n("b2a2"),n("2877")),b=n("6544"),w=n.n(b),x=n("0798"),C=n("2bc5"),k=n("8336"),j=n("b0af"),A=n("99d9"),I=n("62ad"),E=n("169a"),O=n("cd55"),$=n("49e2"),T=n("c865"),B=n("0393"),S=n("132d"),D=n("0fd9"),P=n("8654"),V=Object(y["a"])(_,i,a,!1,null,null,null);t["default"]=V.exports;w()(V,{VAlert:x["a"],VBreadcrumbs:C["a"],VBtn:k["a"],VCard:j["a"],VCardActions:A["a"],VCardText:A["c"],VCardTitle:A["d"],VCol:I["a"],VDialog:E["a"],VExpansionPanel:O["a"],VExpansionPanelContent:$["a"],VExpansionPanelHeader:T["a"],VExpansionPanels:B["a"],VIcon:S["a"],VRow:D["a"],VTextField:P["a"]})}}]);
//# sourceMappingURL=chunk-9fa0a13e.7fa17966.js.map