(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-071b992d"],{"0d68":function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t.isEmbedded?t._e():i("v-breadcrumbs",{attrs:{items:t.breadcrumbItems}}),t.event?i("v-card",{class:t.isEmbedded?"ma-0":"",attrs:{elevation:t.isEmbedded?0:2}},[t.isEmbedded?t._e():i("v-card-title",{staticClass:"display-2 mb-4"},[t._v(t._s(t.$t("profile.activities.entry.title")))]),t.isEmbedded?t._e():i("v-card-text",[t._v(" "+t._s(t.$t("profile.activities.entry.tip-time-of-day"))+" ")]),i("v-card-text",{class:t.isEmbedded?"pa-0":""},[t.error||!t.valid?i("v-alert",{attrs:{type:"error"}},[t._v(t._s(t.error||t.$t("shared.validation-error-message")))]):t._e(),t.activity?i("v-form",{ref:"form",attrs:{"lazy-validation":""},model:{value:t.valid,callback:function(e){t.valid=e},expression:"valid"}},[t.saved?i("div",[i("v-alert",{attrs:{prominent:"",type:"success",icon:"fadl fa fa-check-double"}},[i("p",[t._v("Successfully saved activity.")]),i("p",[i("v-btn",{attrs:{to:{name:"event",params:{id:this.event.id}}}},[t._v("View results")]),i("v-btn",{staticClass:"ml-4",attrs:{outlined:""},on:{click:t.resetActivity}},[t._v("Add Another")])],1)])],1):t.verified?i("v-alert",{attrs:{type:"success",icon:"fadl fa fa-check-double"}},[t._v(" Successfully verified code "+t._s(t.code)+". ")]):t.verified?t._e():i("div",[i("v-card-title",{staticClass:"px-0 subtitle py-0"},[t._v(t._s(t.$t("events.quickentry.verification-header")))]),i("v-row",{},[i("v-col",{attrs:{cols:"12",sm:"5"}},[i("v-text-field",{attrs:{label:t.$t("events.welcome.verification-code-label"),"persistent-hint":"",hint:t.$t("events.quickentry.verification-code-hint"),rules:t.requiredFieldRules},model:{value:t.code,callback:function(e){t.code=e},expression:"code"}})],1),i("v-col",{attrs:{cols:"12",sm:"5"}},[i("v-text-field",{attrs:{label:t.$t("events.quickentry.email-label"),"persistent-hint":"",hint:t.$t("events.quickentry.email-hint"),rules:t.emailRules},model:{value:t.email,callback:function(e){t.email=e},expression:"email"}})],1),i("v-col",{attrs:{cols:"12",sm:"2"}},[i("v-btn",{staticClass:"mt-8 mb-8",attrs:{color:"primary",loading:t.$store.getters.isLoading},on:{click:function(e){return t.verify()}}},[t._v(t._s(t.$t("shared.verify")))])],1)],1)],1),t.verified&&!t.saved?i("div",[i("v-card-title",{staticClass:"px-0 subtitle py-0"},[t._v(t._s(t.$t("profile.activities.entry.activity-details")))]),i("v-card-text",{staticClass:"pa-0"},[t.showAllActivityTypes?i("div",[i("v-btn-toggle",{on:{change:t.activityTypeChanged},model:{value:t.activity.type,callback:function(e){t.$set(t.activity,"type",e)},expression:"activity.type"}},t._l(t.globalAvailableActivityTypes.filter((function(t){return t.core})),(function(e){return i("v-btn",{key:e.type,attrs:{value:e.type,title:t.$helpers.getActivityTypeLabel(e.type)}},[i("v-icon",{attrs:{title:e.text}},[t._v(t._s(t.$helpers.getActivityIcon(e.type)))]),t.$vuetify.breakpoint.mdAndUp?i("span",{staticClass:"ml-2"},[t._v(t._s(t.$helpers.getActivityTypeLabel(e.type)))]):t._e()],1)})),1),i("v-menu",{attrs:{"offset-y":"","max-height":"400"},scopedSlots:t._u([{key:"activator",fn:function(e){var s=e.on,a=e.attrs;return[i("div",{staticClass:"v-item-group theme--light v-btn-toggle"},[i("v-btn",t._g(t._b({attrs:{color:t.globalAvailableActivityTypes.some((function(e){return e.core&&e.type==t.activity.type}))?"":"grey lighten-1",title:"Select Another Activity Type"}},"v-btn",a,!1),s),[i("v-icon",{attrs:{title:"More options"}},[t._v("fa-ellipsis-h")]),t.$vuetify.breakpoint.smAndUp?i("span",{staticClass:"ml-2"},[t._v(t._s(t.$t("shared.more")))]):t._e()],1)],1)]}}],null,!1,2204382857)},[i("v-list",[i("v-list-item-group",{on:{change:t.activityTypeChanged},model:{value:t.activity.type,callback:function(e){t.$set(t.activity,"type",e)},expression:"activity.type"}},t._l(t.globalAvailableActivityTypes.filter((function(t){return!t.core})),(function(e,s){return i("v-list-item",{key:s,attrs:{value:e.type}},[i("v-list-item-icon",[i("v-icon",{domProps:{textContent:t._s(t.$helpers.getActivityIcon(e.type))}})],1),i("v-list-item-title",[t._v(t._s(t.$helpers.getActivityTypeLabel(e.type)))])],1)})),1)],1)],1),t._v(" "+t._s(t.activity.type?t.$helpers.getActivityTypeLabel(t.activity.type):"")+" ")],1):i("div",[i("v-btn-toggle",{on:{change:t.activityTypeChanged},model:{value:t.activity.type,callback:function(e){t.$set(t.activity,"type",e)},expression:"activity.type"}},t._l(t.availableActivityTypes,(function(e){return i("v-btn",{key:e,attrs:{value:e,title:t.$helpers.getActivityTypeLabel(e.type)}},[i("v-icon",{attrs:{title:e}},[t._v(t._s(t.$helpers.getActivityIcon(e)))]),t.$vuetify.breakpoint.mdAndUp?i("span",{staticClass:"ml-2"},[t._v(t._s(t.$helpers.getActivityTypeLabel(e)))]):t._e()],1)})),1),i("v-btn",{attrs:{text:"",color:"primary"},on:{click:function(e){t.forceShowAllActivityTypes=!0}}},[t._v(t._s(t.$t("profile.activities.show-all-type")))]),t._v(" "+t._s(t.activity.type?t.$helpers.getActivityTypeLabel(t.activity.type):"")+" ")],1),i("br"),i("br"),i("DateAndTimeWithTimeZonePicker",{ref:"timePicker",attrs:{timeZone:t.timeZoneOlson,label:t.$t("profile.activities.entry.activity-date-start"),timeLabel:t.$t("profile.activities.entry.activity-time-start")},model:{value:t.activity.start,callback:function(e){t.$set(t.activity,"start",e)},expression:"activity.start"}}),i("v-row",[t.showDistance?i("v-col",{attrs:{cols:"12",sm:"6"}},["STAIR_CLIMBING"!=t.activity.type?i("DistanceTextArea",{attrs:{icon:"fa-ruler",unit:t.event.unit,label:t.$t("profile.activities.entry.distance-label",{unit:t.unitTypeDiplay,requirement:t.activityService.requireDistance(t.activity)?t.$t("shared.required"):t.$t("shared.optional")}),rules:t.numberRules},model:{value:t.activity.dist,callback:function(e){t.$set(t.activity,"dist",e)},expression:"activity.dist"}}):t._e()],1):t._e(),t.showElevation||t.showElevationLoss?i("v-col",{attrs:{cols:"12",sm:"6"}},["SWIMMING"==t.activity.type||"STAIR_CLIMBING"==t.activity.type||t.isDownhill?t._e():i("DistanceTextArea",{attrs:{icon:"fa-mountain",mode:t.$helpers.UnitType.ELEVATION,unit:t.event.unit,label:t.$t("profile.activities.entry.elevation-label",{unit:t.elevationUnitTypeDiplay})},model:{value:t.computedElevationGain,callback:function(e){t.computedElevationGain=e},expression:"computedElevationGain"}}),t.isDownhill?i("DistanceTextArea",{attrs:{icon:"fa-mountain",mode:t.$helpers.UnitType.ELEVATION,unit:t.event.unit,label:t.$t("profile.activities.entry.elevation-loss-label",{unit:t.elevationUnitTypeDiplay})},model:{value:t.computedElevationLoss,callback:function(e){t.computedElevationLoss=e},expression:"computedElevationLoss"}}):t._e()],1):t._e(),"STAIR_CLIMBING"==t.activity.type?i("v-col",{attrs:{cols:"12",sm:"6"}},[i("DistanceTextArea",{attrs:{icon:"fa-sort-amount-up-alt fa-flip-horizontal",mode:t.$helpers.UnitType.NUMBER,unit:t.event.unit,label:t.$t("profile.activities.entry.climbed-stairs")},model:{value:t.activity.custom,callback:function(e){t.$set(t.activity,"custom",e)},expression:"activity.custom"}}),i("p",{staticClass:"text-muted"},[t._v(t._s(t.$t("profile.activities.entry.climbed-stairs-tip")))])],1):t.showCustomField?i("v-col",{attrs:{cols:"12",sm:"6"}},[i("DistanceTextArea",{attrs:{icon:"fa-tally",mode:t.$helpers.UnitType.NUMBER,unit:t.event.unit,label:t.$t("profile.activities.entry.custom"),hint:t.customFieldLabel},model:{value:t.activity.custom,callback:function(e){t.$set(t.activity,"custom",e)},expression:"activity.custom"}})],1):t._e(),t.showSteps?i("v-col",{attrs:{cols:"12",sm:"6"}},[i("DistanceTextArea",{attrs:{icon:"fa-shoe-prints",mode:t.$helpers.UnitType.NUMBER,label:t.$t("profile.activities.steps")},model:{value:t.activity.steps,callback:function(e){t.$set(t.activity,"steps",e)},expression:"activity.steps"}})],1):t._e()],1),t.showDuration?i("DurationTextArea",{attrs:{icon:"fa-clock",label:t.$t("profile.activities.entry.duration")},model:{value:t.activity.time_s,callback:function(e){t.$set(t.activity,"time_s",e)},expression:"activity.time_s"}}):t._e()],1),t.geoRestrictedRaces&&t.geoRestrictedRaces.length>0?i("div",[i("h4",[t._v("Select the area where your (entire) activity took place")]),i("p",[t._v("You can view the exact allowed geographical areas on the "),i("router-link",{attrs:{to:{name:"event",params:{id:t.event.id}}}},[t._v("event page")]),t._v(".")],1),i("v-radio-group",{staticClass:"my-0",attrs:{column:"",label:""},model:{value:t.approvedRace,callback:function(e){t.approvedRace=e},expression:"approvedRace"}},[i("v-radio",{staticClass:"my-0",attrs:{label:"Not specified",value:null}}),t._l(t.geoRestrictedRaces,(function(e,s){return[i("v-radio",{key:e.id,staticClass:"my-1",attrs:{label:e.name,value:t.event.id+"_"+e.id}})]}))],2),t._e()],1):t._e(),i("v-card-text",{staticClass:"px-0 pt-0"},[t.infoMessage?i("v-alert",{staticClass:"mt-4",attrs:{type:"info"}},[i("vue-markdown",{staticClass:"markdown",attrs:{html:!1,source:t.infoMessage}})],1):t._e(),t.error||!t.valid?i("v-alert",{staticClass:"mt-4",attrs:{type:"error"}},[t._v(t._s(t.error||t.$t("shared.validation-error-message")))]):t._e(),t.validationError?i("div",{staticClass:"mt-8 mb-8 d-flex"},[i("v-btn",{attrs:{disabled:!t.valid,color:"primary",outlined:"",loading:t.$store.getters.isLoading},on:{click:function(e){return t.submit(!0)}}},[t._v(t._s(t.$t("profile.activities.entry.save-anyway")))]),i("v-spacer"),i("v-btn",{attrs:{disabled:!t.valid,color:"primary",loading:t.$store.getters.isLoading},on:{click:function(e){return t.submit(!1)}}},[t._v(t._s(t.$t("profile.activities.entry.validate-again")))])],1):i("v-btn",{staticClass:"mt-8 mb-8",attrs:{block:"",disabled:!t.valid,color:"primary",loading:t.$store.getters.isLoading},on:{click:function(e){return t.submit(!1)}}},[t._v(t._s(t.$t("shared.save")))])],1)],1):t._e()],1):t._e()],1),t.verified?i("div",[i("v-divider"),i("v-card-text",[i("v-card-title",{staticClass:"px-0 subtitle py-0"},[t._v(t._s(t.$t("profile.activities.track.connect-fitness-tracker")))]),i("p",{staticClass:"mb-4"},[t._v(t._s(t.$t("events.quickentry.connect-msg"))+" "),i("v-btn",{staticClass:"ml-4",attrs:{outlined:"",to:{name:"register",query:{event:t.event.id,verificationCode:this.code}}}},[t._v(t._s(t.$t("shared.connect")))])],1),i("div",{staticClass:"clear"},[t._l(t.logos,(function(t,e){return i("v-sheet",{key:e,staticClass:"text-center align-center pa-0 float-left d-inline-block mr-4 mb-4",attrs:{elevation:0,height:"40"}},[i("img",{staticClass:"d-inline-block",staticStyle:{"max-width":"100%","max-height":"20px"},attrs:{src:"https://sodisp.imgix.net/web/sso/"+t+"?h=20",alt:t}})])})),i("br",{staticClass:"clear"})],2)],1)],1):t._e()],1):t._e()],1)},a=[],n=i("2f62"),r=i("585f"),o=i("1315"),l=i("3b3f"),c=i("81a6"),u=i("56e4"),d=i("c6ab"),h=i("189c"),v=i("c648"),p=i("8ac6"),m=i("31a7"),g=i("4a1f"),y=i.n(g);const f=y.a.current();var b={name:"ManualActivityEntry",components:{VueMarkdown:m["a"],DateAndTimeWithTimeZonePicker:d["a"],DistanceTextArea:h["a"],DurationTextArea:v["a"],EventHeader:p["a"]},props:{},data(){return{tenant:f,activityService:u["a"],verified:!1,saved:!1,event:null,code:null,email:null,activity:null,availableActivityTypes:["_ALL"],forceShowAllActivityTypes:!1,approvedRace:null,timeZoneOlson:null,error:null,valid:!0,siteData:l,validationError:!1,infoMessage:null,requiredFieldRules:[t=>!!t||this.$t("events.welcome.verification-code-validation-msg")],emailRules:[t=>!!t||this.$t("account.register.email-is-required"),t=>/.+@.+/.test(t)||this.$t("account.register.email-must-be-valid")],numberRules:[()=>u["a"].validateDistance(this.activity)],logos:["garmin-color.png","fitbit-color.jpg","mapmyfitness-color.png","polar-color.png","suunto-color.png","coros-color.png"]}},async mounted(){await this.loadEvent(this.$route.params.id),await this.loadData(),this.timeZoneOlson=o["DateTime"].now().zoneName;const t=this.$route.query.id,e=this.$route.query.profileId;if(this.code=this.$route.query.code,this.email=this.$route.query.email,this.code&&this.email&&await this.verify(),t&&e){var i=(await u["a"].getQuickEntry(e,t)).data;console.log("Activity loaded",i),i&&(this.activity={id:t,start:i.start,type:i.type,dist:i.dist,elevation_gain:i.elevation_gain,elevation_loss:i.elevation_loss,kcal:i.kcal,steps:i.steps,custom:i.custom,time_s:i.time_s})}this.activity||this.resetActivity(),console.log("Initiated manual entry",this.activity.start),r["a"].$on("login-state-change",async t=>{await this.loadData()})},methods:{resetActivity(){this.activity={start:o["DateTime"].now().startOf("day").toISO(),type:this.showAllActivityTypes?"RUNNING":this.availableActivityTypes[0],time_s:0},this.error=null,this.infoMessage=null,this.validationError=!1,this.saved=!1},async loadEvent(t){var e=await c["a"].get(t);this.event=e.data;var i={title:this.event.name+" on "+f.name,description:this.event.description,image:this.event.img};if(this.event.auto_manual_entry_step_conversion);else{var s=[].concat.apply([],this.event.races.map(t=>t.activity_types||["_ALL"]));this.availableActivityTypes=[...new Set(s)]}console.log("availableActivityTypes",this.availableActivityTypes,this.event),r["a"].$emit("page-header-change",i)},getTodayDate(){var t=new Date;return t.setHours(0,0,0,0),t},async loadData(){this.user},activityTypeChanged(){console.log("this.activity.type",this.activity.type),"STAIR_CLIMBING"==this.activity.type&&(this.activity.dist=1),!1===this.$refs.form.value&&this.$refs.form.validate()},async verify(){const t={code:this.code,email:this.email};this.error=null,this.validationError=!1;var e=(await c["a"].verifyQuickEntry(this.event.id,t)).data;console.log("verify result",e),"OK"==e.status?this.verified=!0:"INFO"==e.status?(this.infoMessage=e.msg,this.validationError=!0):(this.error=e.msg,this.validationError=!1)},async submit(t){if(this.$refs.form.validate()){this.error=null,this.infoMessage=null,this.validationError=!1;try{console.log("Storing manual entry",this.activity);var e={code:this.code,email:this.email,provider:"quick_entry",approved_race_ids:this.approvedRace?[this.approvedRace]:null,...this.activity},i=(await c["a"].quickEntry(this.event.id,e,t)).data;"OK"==i.status?(this.saved=!0,this.$helpers.toastResponse(this,i,"Activity saved successfully.")):"INFO"==i.status?(this.infoMessage=i.msg,this.validationError=!0):(this.error=i.msg,this.validationError=!1)}catch(s){this.error=s.response.data.msg}}}},computed:{...Object(n["b"])({user:"user"}),breadcrumbItems(){return this.event?[{text:this.event.name,exact:!0,to:{name:"event",params:{id:this.event.id}}},{text:this.$t("profile.activities.manualentry"),disabled:!0}]:[]},globalAvailableActivityTypes(){return f.activityTypes?l.activities.filter(t=>f.activityTypes.hasOwnProperty(t.type)):l.activities},geoRestrictedRaces(){return this.event?this.event.races.filter(t=>t.geofence):[]},showAllActivityTypes(){return this.forceShowAllActivityTypes||!this.availableActivityTypes||0==this.availableActivityTypes.length||this.availableActivityTypes.some(t=>"_ALL"===t)||this.availableActivityTypes.length>5},unitTypeDiplay(){return null==this.event||"METRIC"==this.event.unit?"km":"mi"},elevationUnitTypeDiplay(){return null==this.event||"METRIC"==this.event.unit?"m":"ft"},isDownhill(){return this.activity&&("ALPINE_SKIING"==this.activity.type||"SNOWBOARDING"==this.activity.type)},showDistance(){return"100kmc"==f.id||this.activity&&!u["a"].zeroDistanceActivities(this.activity)},showSteps(){return this.activity&&["DAILY_SUMMARY"].some(t=>t===this.activity.type)},showCustomField(){return this.activity&&this.event&&this.event.races.some(t=>"CUSTOM"==t.scoring)&&["VOLUNTEERING","OTHER"].some(t=>t===this.activity.type)},customFieldLabel(){return this.showCustomField&&this.event.races.filter(t=>"CUSTOM"==t.scoring)[0].custom},showDuration(){return!this.showSteps},showElevation(){return this.activity&&!["SWIMMING"].some(t=>t===this.activity.type)&&this.showDistance},showElevationLoss(){return this.activity&&(this.isDownhill||"CYCLING"==this.activity.type)},isEmbedded(){return"embed"===this.$route.query.view||"embed"==this.$store.state.view||this.isEmbeddedInApp},isEmbeddedInApp(){return"app"===this.$route.query.view||"app"==this.$store.state.view},computedElevationGain:{get(){return this.activity?this.activity.elevation_gain:null},set(t){this.activity.elevation_gain=0===t?null:t||null}},computedElevationLoss:{get(){return this.activity?this.activity.elevation_loss:null},set(t){this.activity.elevation_loss=0===t?null:t||null}}}},$=b,_=(i("f08a"),i("2877")),C=i("6544"),k=i.n(C),x=i("0798"),T=i("2bc5"),I=i("8336"),w=i("a609"),A=i("b0af"),R=i("99d9"),E=i("ac7c"),S=i("62ad"),D=i("ce7e"),O=i("4bd4"),V=i("132d"),L=i("8860"),B=i("da13"),N=i("1baa"),M=i("34c3"),j=i("5d23"),F=i("e449"),G=i("67b6"),U=i("43a6"),q=i("0fd9"),P=i("8dd9"),z=i("2fa4"),H=i("8654"),Q=Object(_["a"])($,s,a,!1,null,null,null);e["default"]=Q.exports;k()(Q,{VAlert:x["a"],VBreadcrumbs:T["a"],VBtn:I["a"],VBtnToggle:w["a"],VCard:A["a"],VCardText:R["c"],VCardTitle:R["d"],VCheckbox:E["a"],VCol:S["a"],VDivider:D["a"],VForm:O["a"],VIcon:V["a"],VList:L["a"],VListItem:B["a"],VListItemGroup:N["a"],VListItemIcon:M["a"],VListItemTitle:j["c"],VMenu:F["a"],VRadio:G["a"],VRadioGroup:U["a"],VRow:q["a"],VSheet:P["a"],VSpacer:z["a"],VTextField:H["a"]})},"189c":function(t,e,i){"use strict";var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-text-field",{attrs:{min:"0",step:"0.01",required:"","persistent-hint":"",disabled:t.disabled,"hide-details":t.hideDetails,"prepend-icon":t.icon,hint:t.hintFormatted,label:t.label,rules:t.mergedRules},model:{value:t.displayValue,callback:function(e){t.displayValue=e},expression:"displayValue"}})},a=[],n=i("d7c2"),r={name:"DistanceTextArea",components:{},props:{value:Number,label:String,unit:String,icon:String,rules:Array,hint:String,hideDetails:Boolean,disabled:Boolean,mode:{type:Number,default:n["a"].UnitType.DISTANCE},multiplier:{type:Number,default:1}},data(){return{isInputActive:!1,defaultRules:[t=>!t||!t.trim()||(!t.match(/[a-zA-Z]+/)||"Please enter a valid number.")]}},async mounted(){},methods:{parseLocaleNumber(t){if(null==t)return null;var e=",",i=".";return e=1111..toLocaleString(navigator.language).replace(/1/g,""),i=1.1.toLocaleString(navigator.language).replace(/1/g,""),console.log("Trying to parse",t,"separator",i,"culture",navigator.language,"thousand separator",e),e?parseFloat(t.replace(new RegExp("\\"+e,"g"),"").replace(new RegExp("\\"+i),".")):parseFloat(t.replace(new RegExp("\\"+i),"."))}},computed:{mergedRules(){return this.rules?this.rules.concat(this.defaultRules):this.defaultRules},displayValue:{get:function(){if(this.mode==n["a"].UnitType.ELEVATION)return this.$options.filters.elevation(this.value,this.unit,!0);if(this.mode==n["a"].UnitType.NUMBER){const t=Number.isSafeInteger(this.multiplier)?this.multiplier:1;return 0===this.value?"0":this.value?(this.value/t).toLocaleString(navigator.language,{minimumFractionDigits:0,maximumFractionDigits:2}):""}return this.$options.filters.distance(this.value,this.unit,!0)},set:function(t){const e=Number.isSafeInteger(this.multiplier)?this.multiplier:1;let i=this.parseLocaleNumber(t);if(this.mode==n["a"].UnitType.NUMBER)return isNaN(i)&&(i=void 0),i*=e,void this.$emit("input",i);isNaN(i)&&(i=0);var s=0;s="IMPERIAL"==this.unit?this.mode==n["a"].UnitType.ELEVATION?i*(1/3.2808399):Math.round(1609.344*i):this.mode==n["a"].UnitType.ELEVATION?i:Math.round(1e3*i),this.$emit("input",s)}},formatted(){return this.mode==n["a"].UnitType.NUMBER?void 0===this.value||null==this.value?"":""+this.value:this.mode==n["a"].UnitType.ELEVATION?this.$options.filters.elevation(this.value,this.unit,!0):this.$options.filters.distance(this.value,this.unit,!0)},hintFormatted(){return this.hint?this.hint:this.mode==n["a"].UnitType.NUMBER?void 0===this.value||null==this.value?"":""+this.value:void 0===this.value||null==this.value?"":this.value+" m"}},watch:{mode(t){console.log("switching mode to",t)}}},o=r,l=i("2877"),c=i("6544"),u=i.n(c),d=i("8654"),h=Object(l["a"])(o,s,a,!1,null,null,null);e["a"]=h.exports;u()(h,{VTextField:d["a"]})},"201a":function(t,e,i){"use strict";i("5ddf")},"2bc5":function(t,e,i){"use strict";i("14d9"),i("abd3");var s=i("1c87"),a=i("58df"),n=Object(a["a"])(s["a"]).extend({name:"v-breadcrumbs-item",props:{activeClass:{type:String,default:"v-breadcrumbs__item--disabled"},ripple:{type:[Boolean,Object],default:!1}},computed:{classes(){return{"v-breadcrumbs__item":!0,[this.activeClass]:this.disabled}}},render(t){const{tag:e,data:i}=this.generateRouteLink();return t("li",[t(e,{...i,attrs:{...i.attrs,"aria-current":this.isActive&&this.isLink?"page":void 0}},this.$slots.default)])}}),r=i("80d2"),o=Object(r["j"])("v-breadcrumbs__divider","li"),l=i("7560");e["a"]=Object(a["a"])(l["a"]).extend({name:"v-breadcrumbs",props:{divider:{type:String,default:"/"},items:{type:Array,default:()=>[]},large:Boolean},computed:{classes(){return{"v-breadcrumbs--large":this.large,...this.themeClasses}}},methods:{genDivider(){return this.$createElement(o,this.$slots.divider?this.$slots.divider:this.divider)},genItems(){const t=[],e=!!this.$scopedSlots.item,i=[];for(let s=0;s<this.items.length;s++){const a=this.items[s];i.push(a.text),e?t.push(this.$scopedSlots.item({item:a})):t.push(this.$createElement(n,{key:i.join("."),props:a},[a.text])),s<this.items.length-1&&t.push(this.genDivider())}return t}},render(t){const e=this.$slots.default||this.genItems();return t("ul",{staticClass:"v-breadcrumbs",class:this.classes},e)}})},"2c64":function(t,e,i){},"31a7":function(t,e,i){"use strict";var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{ref:"markdownContent",attrs:{"v-html":t.rendered},on:{click:function(e){return t.$emit("click",e)}}},[t._t("default")],2),i("div",{ref:"dynamic"})])},a=[],n=(i("d9e2"),i("d4cd")),r=i.n(n),o=i("ed18"),l=i.n(o),c={name:"VueMarkdown",components:{},props:{html:{type:Boolean,default:!1},source:{type:String,default:null}},data:function(){return{compiled:null,md:null,rendered:null}},async mounted(){this.md=new r.a({html:!0,linkify:!0,typographer:!0}),this.registerShortCodes(this.md);var t=this.$refs.markdownContent.innerHTML;t?this.render(t):this.source&&this.render(this.source)},methods:{registerShortCodes(t){var e=["img","video","iframe"],i={media:{render:function(t,i){if(e.indexOf(t.method)<0)throw new Error("unsupported medium");var s="<"+t.method;return s+=' src="'+(t.src||"")+'"',s+=' alt="'+(t.alt||"")+'"',t.width&&(s+=' width="'+t.width+'"'),t.side&&(s+=' style="float:'+t.side+'"'),s+">"}},block:{render:function(t,e){var i=t.icon||"",s=t.title||"",a=t.text||"",n=t.href||"",r=n?"a":"div";return`<${r} class="auto-block-grid pa-4 v-card ${n?"v-card--link":""} v-sheet theme--light elevation-2 grey lighten-4 flex d-flex flex-column" href="${n}">\n                          <i class="${i?"v-icon":"d-none"} notranslate fa ${i} theme--light grey--text d-inline-block" style="font-size:50px;"></i>\n                          <h3 class="my-4">${s}</h3>\n                          <p class="d-flex">${a}</p>\n                        </${r}>`}},video:{render:function(t,e){var i=t.id||"";return`<a class="text-center d-inline-block videoPlayer clickToPlayVideo" style="width:640px;height:360px; max-width:100%; position:relative;cursor:pointer;" data-video-id="${i}">\n                          <i class="v-icon fa fa-play theme--light" style="font-size:100px;position:absolute;left:50%;top:50%;margin-top:-50px; margin-left:-50px;"></i>\n                          <img src="https://img.youtube.com/vi/${i}/maxresdefault.jpg" width="640" height="360" style="object-fit:contain; max-width:100%;"/>\n                        </a>`}},button:{render:function(t,e){var i=t.outlined,s=t.color||"primary",a=(t.block,i?`v-btn v-btn--depressed v-btn--flat v-btn--outlined v-btn--router theme--light v-size--default ${s}--text`:"v-btn v-btn--contained v-btn--router theme--light v-size--default "+s);return`<p><a href="${t.href}" class="${a}"><span class="v-btn__content">${t.text}</span></a></p>`}},banner:{render:function(t,e){var i=t.color||"green",s=t.title||"",a=t.message||"",n=t.primaryLabel||"",r=t.primaryHref||"",o=t.secondaryLabel||"",l=t.secondaryHref||"",c=n&&r?`<a href="${r}" class="v-btn v-btn--is-elevated v-btn--has-bg theme--light v-size--default white"><span class="v-btn__content">${n}</span></a>`:"",u=o&&l?`<a href="${l}" class="ml-4 v-btn v-btn--outlined theme--light v-size--default white--text"><span class="v-btn__content">${o}</span></a>`:"";return`<div class="${i} white--text my-10 py-6 py-md-12 mx-n4">\n                          <div class="container text-center">\n                            <div class="col-md-12 col-12">\n                              <h2>${s}</h2>\n                              <h1>${a}</h1>\n                              <p class="${c||u?"mb-0 mt-4":"d-none"}">\n                                ${c} ${u}\n                              </p>\n                            </div>\n                          </div>\n                        </div>`}}};t.use(l.a,i)},render(t){if(t){var e=this.md.render(t);this.$refs.markdownContent.innerHTML=e}}},watch:{async source(t){await this.$nextTick(),this.render(t)}}},u=c,d=i("2877"),h=Object(d["a"])(u,s,a,!1,null,null,null);e["a"]=h.exports},"36ad":function(t,e,i){"use strict";var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:"event-header "+(t.dark?"theme--dark v-toolbar v-sheet v-sheet--tile":"")+" "+(t.logo?"event-header--logo":"")},[t.img?i("v-img",{class:"white--text align-end "+(t.logo?"logo-container":"")+" "+(t.compact||t.mini||t.$vuetify.breakpoint.xs?"container-xs":"")+" "+(t.compact||t.mini||!t.$vuetify.breakpoint.sm?"":"container-sm"),attrs:{src:t.img,gradient:"to bottom, rgba(0,0,0,.1), rgba(0,0,0,.5)",height:t.mini?"80px":t.compact||t.$vuetify.breakpoint.xs?"150px":"300px",width:"auto"}},[t.logo?i("span",{class:"event-logo pa-3 v-card elevation-7 v-sheet theme--light"},[i("img",{attrs:{alt:"Logo",src:t.logo}})]):t._e(),i("v-card-title",{staticClass:"display-2",domProps:{textContent:t._s(t.title)}})],1):i("v-card-title",{staticClass:"display-2",domProps:{textContent:t._s(t.title)}})],1)},a=[],n={name:"PageHeader",components:{},props:{img:String,logo:String,title:String,dark:Boolean,mini:Boolean,compact:Boolean},mounted(){}},r=n,o=(i("201a"),i("2877")),l=i("6544"),c=i.n(l),u=i("99d9"),d=i("adda"),h=Object(o["a"])(r,s,a,!1,null,null,null);e["a"]=h.exports;c()(h,{VCardTitle:u["d"],VImg:d["a"]})},"3d86":function(t,e,i){},"43a6":function(t,e,i){"use strict";i("ec29"),i("3d86");var s=i("c37a"),a=i("604c"),n=i("58df");const r=Object(n["a"])(a["a"],s["a"]);e["a"]=r.extend({name:"v-radio-group",provide(){return{radioGroup:this}},props:{column:{type:Boolean,default:!0},height:{type:[Number,String],default:"auto"},name:String,row:Boolean,value:null},computed:{classes(){return{...s["a"].options.computed.classes.call(this),"v-input--selection-controls v-input--radio-group":!0,"v-input--radio-group--column":this.column&&!this.row,"v-input--radio-group--row":this.row}}},methods:{genDefaultSlot(){return this.$createElement("div",{staticClass:"v-input--radio-group__input",attrs:{id:this.id,role:"radiogroup","aria-labelledby":this.computedId}},s["a"].options.methods.genDefaultSlot.call(this))},genInputSlot(){const t=s["a"].options.methods.genInputSlot.call(this);return delete t.data.on.click,t},genLabel(){const t=s["a"].options.methods.genLabel.call(this);return t?(t.data.attrs.id=this.computedId,delete t.data.attrs.for,t.tag="legend",t):null},onClick:a["a"].options.methods.onClick},render(t){const e=s["a"].options.render.call(this,t);return this._b(e.data,"div",this.attrs$),e}})},"4bd4":function(t,e,i){"use strict";i("14d9");var s=i("58df"),a=i("7e2b"),n=i("3206");e["a"]=Object(s["a"])(a["a"],Object(n["b"])("form")).extend({name:"v-form",provide(){return{form:this}},inheritAttrs:!1,props:{disabled:Boolean,lazyValidation:Boolean,readonly:Boolean,value:Boolean},data:()=>({inputs:[],watchers:[],errorBag:{}}),watch:{errorBag:{handler(t){const e=Object.values(t).includes(!0);this.$emit("input",!e)},deep:!0,immediate:!0}},methods:{watchInput(t){const e=t=>t.$watch("hasError",e=>{this.$set(this.errorBag,t._uid,e)},{immediate:!0}),i={_uid:t._uid,valid:()=>{},shouldValidate:()=>{}};return this.lazyValidation?i.shouldValidate=t.$watch("shouldValidate",s=>{s&&(this.errorBag.hasOwnProperty(t._uid)||(i.valid=e(t)))}):i.valid=e(t),i},validate(){return 0===this.inputs.filter(t=>!t.validate(!0)).length},reset(){this.inputs.forEach(t=>t.reset()),this.resetErrorBag()},resetErrorBag(){this.lazyValidation&&setTimeout(()=>{this.errorBag={}},0)},resetValidation(){this.inputs.forEach(t=>t.resetValidation()),this.resetErrorBag()},register(t){this.inputs.push(t),this.watchers.push(this.watchInput(t))},unregister(t){const e=this.inputs.find(e=>e._uid===t._uid);if(!e)return;const i=this.watchers.find(t=>t._uid===e._uid);i&&(i.valid(),i.shouldValidate()),this.watchers=this.watchers.filter(t=>t._uid!==e._uid),this.inputs=this.inputs.filter(t=>t._uid!==e._uid),this.$delete(this.errorBag,e._uid)}},render(t){return t("form",{staticClass:"v-form",attrs:{novalidate:!0,...this.attrs$},on:{submit:t=>this.$emit("submit",t)}},this.$slots.default)}})},5311:function(t,e,i){"use strict";i("14d9");var s=i("5607"),a=i("2b0e");e["a"]=a["a"].extend({name:"rippleable",directives:{ripple:s["a"]},props:{ripple:{type:[Boolean,Object],default:!0}},methods:{genRipple(t={}){return this.ripple?(t.staticClass="v-input--selection-controls__ripple",t.directives=t.directives||[],t.directives.push({name:"ripple",value:{center:!0}}),this.$createElement("div",t)):null}}})},"56e4":function(t,e,i){"use strict";var s=i("dde5"),a=(i("4360"),i("b383")),n=i.n(a);e["a"]={impersonationProfileId:null,getConfig(){return{headers:{"x-impersonation-profile-id":this.impersonationProfileId||""}}},all(t){return s["a"].http.get("/v1.0/activity/?limit="+(t||25),this.getConfig())},allPaged(t,e){return s["a"].http.post("/v1.0/activity/",n.a.stringify({limit:t||25,continuationToken:e}),this.getConfig())},get(t){return s["a"].http.get("/v1.0/activity/"+t,this.getConfig())},getQuickEntry(t,e){return s["a"].http.get(`/v1.0/activity/public/${t}/${e}`)},getActivityTypes(){return s["a"].http.get("/v1.0/activity/activity_types",this.getConfig())},getActivityEntryContext(){return s["a"].http.get("/v1.0/activity/entry-context",this.getConfig())},getClaimableBadges(t,e){return s["a"].http.get(`/v1.0/activity/events/${t}/${e}/claimable-badges`,this.getConfig())},claimBadge(t,e,i){return s["a"].http.post(`/v1.0/activity/events/${t}/${e}/claimable-badges/claim`,i,this.getConfig())},connect(t,e){return s["a"].http.post(`/v1.0/activity/${t}/connect`,{event_ids:e},this.getConfig())},delete(t,e){return s["a"].http.delete(`/v1.0/activity/${t}?skipReprocess=${e||!1}`,this.getConfig())},getTilescores(t,e){return s["a"].http.get(`/v1.0/activity/${t}/tilescores?activityType=${e}`,this.getConfig())},upload(t){return s["a"].http.post("/v1.0/activity/upload",t,this.getConfig())},validate(t){return s["a"].http.post("/v1.0/activity/validate",t,this.getConfig())},manualEntry(t,e,i){return s["a"].http.post(`/v1.0/activity/manualentry?ignoreValidation=${e}&limitToEventId=${i||""}`,t,this.getConfig())},edit(t,e){return s["a"].http.put("/v1.0/activity/"+t,e,this.getConfig())},calculateSteps(t,e){return s["a"].http.post("/v1.0/activity/calculate-steps?algo="+(e||""),t,this.getConfig())},zeroDistanceActivities(t){return["YOGA","MIND_BODY","PILATES","WEIGHT_LIFTING","INDOOR_CARDIO","VOLUNTEERING","STAIR_CLIMBING","DAILY_SUMMARY","TENNIS","TEAM_SPORTS","GOLF","CUSTOM","OTHER"].some(e=>e===t.type)},requireDistance(t){return!("INDOOR_CYCLING"===t.type||"INDOOR_RUNNING"===t.type||this.zeroDistanceActivities(t))},validateDistance(t){return t.dist>0||!this.requireDistance(t)||"Please enter a positive number"},validateSteps(t){return t.steps>0||"DAILY_SUMMARY"!==t.type||"Please enter a positive number"}}},"5ddf":function(t,e,i){},"67b6":function(t,e,i){"use strict";i("2c64");var s=i("ba87"),a=i("9d26"),n=i("c37a"),r=i("7e2b"),o=i("a9ad"),l=i("4e82"),c=i("5311"),u=i("7560"),d=i("fe09"),h=i("80d2"),v=i("58df"),p=i("d9f7");const m=Object(v["a"])(r["a"],o["a"],c["a"],Object(l["a"])("radioGroup"),u["a"]);e["a"]=m.extend().extend({name:"v-radio",inheritAttrs:!1,props:{disabled:Boolean,id:String,label:String,name:String,offIcon:{type:String,default:"$radioOff"},onIcon:{type:String,default:"$radioOn"},readonly:Boolean,value:{default:null}},data:()=>({isFocused:!1}),computed:{classes(){return{"v-radio--is-disabled":this.isDisabled,"v-radio--is-focused":this.isFocused,...this.themeClasses,...this.groupClasses}},computedColor(){if(!this.isDisabled)return d["a"].options.computed.computedColor.call(this)},computedIcon(){return this.isActive?this.onIcon:this.offIcon},computedId(){return n["a"].options.computed.computedId.call(this)},hasLabel:n["a"].options.computed.hasLabel,hasState(){return(this.radioGroup||{}).hasState},isDisabled(){return this.disabled||!!this.radioGroup&&this.radioGroup.isDisabled},isReadonly(){return this.readonly||!!this.radioGroup&&this.radioGroup.isReadonly},computedName(){return this.name||!this.radioGroup?this.name:this.radioGroup.name||"radio-"+this.radioGroup._uid},rippleState(){return d["a"].options.computed.rippleState.call(this)},validationState(){return(this.radioGroup||{}).validationState||this.computedColor}},methods:{genInput(t){return d["a"].options.methods.genInput.call(this,"radio",t)},genLabel(){return this.hasLabel?this.$createElement(s["a"],{on:{click:d["b"]},attrs:{for:this.computedId},props:{color:this.validationState,focused:this.hasState}},Object(h["s"])(this,"label")||this.label):null},genRadio(){const{title:t,...e}=this.attrs$;return this.$createElement("div",{staticClass:"v-input--selection-controls__input"},[this.$createElement(a["a"],this.setTextColor(this.validationState,{props:{dense:this.radioGroup&&this.radioGroup.dense}}),this.computedIcon),this.genInput({name:this.computedName,value:this.value,...e}),this.genRipple(this.setTextColor(this.rippleState))])},onFocus(t){this.isFocused=!0,this.$emit("focus",t)},onBlur(t){this.isFocused=!1,this.$emit("blur",t)},onChange(){this.isDisabled||this.isReadonly||this.isActive||this.toggle()},onKeydown:()=>{}},render(t){const e={staticClass:"v-radio",class:this.classes,on:Object(p["c"])({click:this.onChange},this.listeners$),attrs:{title:this.attrs$.title}};return t("div",e,[this.genRadio(),this.genLabel()])}})},"6ca7":function(t,e,i){},"7e58":function(t,e,i){},"81a6":function(t,e,i){"use strict";var s=i("dde5"),a=i("4360"),n=i("b383"),r=i.n(n);e["a"]={getConfig(){return{headers:{authorization:"Bearer "+a["a"].getters.jwtToken}}},get(t,e){return e?s["a"].http.get(`/v1.0/events/${t}?allowDraft=true`,this.getConfig()):s["a"].http.get("/v1.0/events/"+t,this.getConfig())},getList(t){return s["a"].http.post("/v1.0/events/list",t,this.getConfig())},getTileScores(t,e){return s["a"].http.get(`/v1.0/events/${t}/tilescores`,this.getConfig())},getPhotos(t){return s["a"].http.get(`/v1.0/events/${t}/photos`,this.getConfig())},getFeed(t){return s["a"].http.get(`/v1.0/events/${t}/feed`,this.getConfig())},getFeedItemComments(t,e){return s["a"].http.get(`/v1.0/events/${t}/feed/${e}/comments`,this.getConfig())},quickEntry(t,e,i){return s["a"].http.post(`/v1.0/events/${t}/quickentry?ignoreValidation=${i}`,e,this.getConfig())},verifyQuickEntry(t,e){return s["a"].http.post(`/v1.0/events/${t}/quickentry/verify`,e,this.getConfig())},getEventJoinInfo(t){return s["a"].http.get(`/v1.0/events/${t}/codes/info`,this.getConfig())},getJoinInfo(t,e){return s["a"].http.get(`/v1.0/events/${t}/codes/${e}/info`,this.getConfig())},getJoinInfoByEmail(t,e){return s["a"].http.get(`/v1.0/events/${t}/codes/lookup?email=${e}`,this.getConfig())},requestInvite(t,e){return s["a"].http.post(`/v1.0/events/${t}/codes/request-invite`,e,this.getConfig())},getRaceResults(t,e,i,a,n){var o=this.filterToQs(i);return o={...o,q:i?i.search:""},a>1&&(o.page=a),s["a"].http.post(`/v1.0/events/${t}/${e}/results?${r.a.encode(o)}`,r.a.encode(n),this.getConfig())},getRaceMarkers(t,e){return s["a"].http.get(`/v1.0/events/${t}/${e}/markers`)},getRaceBadges(t,e){return s["a"].http.get(`/v1.0/events/${t}/${e}/badges`)},getRaceTiles(t,e){return s["a"].http.get(`/v1.0/events/${t}/${e}/tiles`)},getRaceTileResults(t,e,i){return s["a"].http.get(`/v1.0/events/${t}/${e}/tiles/${i}`)},getRaceBadge(t,e,i){return s["a"].http.get(`/v1.0/events/${t}/${e}/badges/${i}`)},getRaceResultsMeta(t,e){return s["a"].http.get(`/v1.0/events/${t}/${e}/meta`)},exportRaceGpx(t,e){return s["a"].http.get(`/v1.0/events/${t}/${e}/gpx`)},getRaceResultDetails(t,e,i,a){const n=this.filterToQs(a);return s["a"].http.get(`/v1.0/events/${t}/${e}/results/${i}?${r.a.encode(n)}`)},getRaceResultDetailsByCode(t,e,i){return s["a"].http.get(`/v1.0/events/${t}/${e}/result?code=${i}`)},claimRaceResult(t,e,i,a){return s["a"].http.post(`/v1.0/events/${t}/${e}/results/${i}/claim`,a,this.getConfig())},likeResult(t,e,i,a){const n=this.filterToQs(a);return s["a"].http.post(`/v1.0/events/${t}/${e}/results/${i}/like?${r.a.encode(n)}`,{},this.getConfig())},commentResult(t,e,i,a,n){const o=this.filterToQs(a),l={message:n};return s["a"].http.post(`/v1.0/events/${t}/${e}/results/${i}/comments?${r.a.encode(o)}`,r.a.encode(l),this.getConfig())},getRaceResultComments(t,e,i,a){const n=this.filterToQs(a);return s["a"].http.get(`/v1.0/events/${t}/${e}/results/${i}/comments?${r.a.encode(n)}`)},deleteResultComment(t,e,i,a,n){const o=this.filterToQs(a);return s["a"].http.delete(`/v1.0/events/${t}/${e}/results/${i}/comments/${n}?${r.a.encode(o)}`,this.getConfig())},getRaceResultPhotos(t,e,i,a){return s["a"].http.get(`/v1.0/events/${t}/${e}/results/${i}/photos`)},inviteFriend(t,e){return s["a"].http.post(`/v1.0/events/${t}/invite`,e)},submitRegistration(t,e){return s["a"].http.post(`/v1.0/events/${t}/reg`,e,this.getConfig())},getRegistrationSummary(t,e){return s["a"].http.get(`/v1.0/events/${t}/reg/${e}/summary`,this.getConfig())},finalizeRegistration(t,e){return s["a"].http.post(`/v1.0/events/${t}/reg/${e}/finalize`,{},this.getConfig())},filterToQs(t){const e=t&&"onlyOfficialResults"in t&&null!==t.onlyOfficialResults&&"undefined"!==t.onlyOfficialResults&&"*"!==t.onlyOfficialResults,i=t&&!!t.limit&&0!==t.limit,s=t&&"*"!==t.gender,a=t&&t.category&&""!==t.category;console.log("result search filter",t,"hasOfficial",e);var n=s||a?{gender:s&&t.gender||"",category:a&&t.category||""}:{};return e&&(n={...n,official:t.onlyOfficialResults}),i&&(n={...n,limit:t.limit}),n},upcoming(t){return s["a"].http.get("/v1.0/events/all?limit="+(t||50),this.getConfig())},getFeatured(){return s["a"].http.get("/v1.0/events/featured",this.getConfig())},getForTeamsChat(t,e){const i={chatId:e};return s["a"].http.get(`/v1.0/events/teams/${t}/chat?${r.a.encode(i)}`,this.getConfig())},getForTeamsChannel(t,e,i,a){const n={teamId:e,groupId:i,channelId:a};return s["a"].http.get(`/v1.0/events/teams/${t}/channel?${r.a.encode(n)}`,this.getConfig())}}},"8ac6":function(t,e,i){"use strict";var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.event?i("page-header",{attrs:{title:t.title||t.event.name,logo:t.event.logo,img:t.event.img,dark:t.dark,compact:t.compact}}):t._e()},a=[],n=i("36ad"),r={name:"EventHeader",components:{PageHeader:n["a"]},props:{event:Object,title:String,dark:Boolean,compact:Boolean},mounted(){this.event&&this.$analytics.enableCustomTrackers(this,this.event.custom_trackers)},watch:{event:function(t){this.event&&this.$analytics.enableCustomTrackers(this,this.event.custom_trackers)}}},o=r,l=i("2877"),c=Object(l["a"])(o,s,a,!1,null,null,null);e["a"]=c.exports},"99d9":function(t,e,i){"use strict";i.d(e,"a",(function(){return n})),i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return o})),i.d(e,"d",(function(){return l}));var s=i("b0af"),a=i("80d2");const n=Object(a["j"])("v-card__actions"),r=Object(a["j"])("v-card__subtitle"),o=Object(a["j"])("v-card__text"),l=Object(a["j"])("v-card__title");s["a"]},a609:function(t,e,i){"use strict";i("7e58");var s=i("604c"),a=s["a"].extend({name:"button-group",provide(){return{btnToggle:this}},computed:{classes(){return s["a"].options.computed.classes.call(this)}},methods:{genData:s["a"].options.methods.genData}}),n=i("a9ad"),r=i("58df");e["a"]=Object(r["a"])(a,n["a"]).extend({name:"v-btn-toggle",props:{backgroundColor:String,borderless:Boolean,dense:Boolean,group:Boolean,rounded:Boolean,shaped:Boolean,tile:Boolean},computed:{classes(){return{...a.options.computed.classes.call(this),"v-btn-toggle":!0,"v-btn-toggle--borderless":this.borderless,"v-btn-toggle--dense":this.dense,"v-btn-toggle--group":this.group,"v-btn-toggle--rounded":this.rounded,"v-btn-toggle--shaped":this.shaped,"v-btn-toggle--tile":this.tile,...this.themeClasses}}},methods:{genData(){const t=this.setTextColor(this.color,{...a.options.methods.genData.call(this)});return this.group?t:this.setBackgroundColor(this.backgroundColor,t)}}})},abd3:function(t,e,i){},ac7c:function(t,e,i){"use strict";i("6ca7"),i("ec29");var s=i("9d26"),a=i("c37a"),n=i("fe09");e["a"]=n["a"].extend({name:"v-checkbox",props:{indeterminate:Boolean,indeterminateIcon:{type:String,default:"$checkboxIndeterminate"},offIcon:{type:String,default:"$checkboxOff"},onIcon:{type:String,default:"$checkboxOn"}},data(){return{inputIndeterminate:this.indeterminate}},computed:{classes(){return{...a["a"].options.computed.classes.call(this),"v-input--selection-controls":!0,"v-input--checkbox":!0,"v-input--indeterminate":this.inputIndeterminate}},computedIcon(){return this.inputIndeterminate?this.indeterminateIcon:this.isActive?this.onIcon:this.offIcon},validationState(){if(!this.isDisabled||this.inputIndeterminate)return this.hasError&&this.shouldValidate?"error":this.hasSuccess?"success":null!==this.hasColor?this.computedColor:void 0}},watch:{indeterminate(t){this.$nextTick(()=>this.inputIndeterminate=t)},inputIndeterminate(t){this.$emit("update:indeterminate",t)},isActive(){this.indeterminate&&(this.inputIndeterminate=!1)}},methods:{genCheckbox(){const{title:t,...e}=this.attrs$;return this.$createElement("div",{staticClass:"v-input--selection-controls__input"},[this.$createElement(s["a"],this.setTextColor(this.validationState,{props:{dense:this.dense,dark:this.dark,light:this.light}}),this.computedIcon),this.genInput("checkbox",{...e,"aria-checked":this.inputIndeterminate?"mixed":this.isActive.toString()}),this.genRipple(this.setTextColor(this.rippleState))])},genDefaultSlot(){return[this.genCheckbox(),this.genLabel()]}}})},afdd:function(t,e,i){"use strict";var s=i("8336");e["a"]=s["a"]},c648:function(t,e,i){"use strict";var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-input",{staticClass:"mt-0 input-row",attrs:{"prepend-icon":t.icon,label:t.label,disabled:t.disabled,"hide-details":""}},[[i("v-row",[i("v-col",{class:t.dense?"pa-0":"py-0",attrs:{cols:"4"}},[i("v-text-field",{staticClass:"mt-0 pt-0",attrs:{type:"number",step:"any",min:"0",max:"12",required:"","persistent-hint":"","aria-label":"Hours",disabled:t.disabled,hint:t.$t("shared.hours"),rules:t.mergedRules},on:{change:t.handleChange},model:{value:t.hours,callback:function(e){t.hours=t._n(e)},expression:"hours"}})],1),i("v-col",{class:t.dense?"pa-0":"py-0",attrs:{cols:"4"}},[i("v-text-field",{staticClass:"mt-0 pt-0",attrs:{type:"number",step:"any",min:"0",max:"59",required:"","persistent-hint":"","aria-label":"Minutes",disabled:t.disabled,hint:t.$t("shared.minutes"),rules:t.mergedRules},on:{change:t.handleChange},model:{value:t.minutes,callback:function(e){t.minutes=t._n(e)},expression:"minutes"}})],1),i("v-col",{class:t.dense?"pa-0":"py-0",attrs:{cols:"4"}},[i("v-text-field",{staticClass:"mt-0 pt-0",attrs:{type:"number",step:"any",min:"0",max:"59",required:"","persistent-hint":"","aria-label":"Seconds",disabled:t.disabled,hint:t.$t("shared.seconds"),rules:t.mergedRules},on:{change:t.handleChange},model:{value:t.seconds,callback:function(e){t.seconds=t._n(e)},expression:"seconds"}})],1)],1)]],2)},a=[],n=i("1315"),r={name:"DurationTextArea",components:{},props:{value:Number,label:String,icon:String,rules:Array,dense:Boolean,disabled:Boolean,required:Boolean,form:Object},data(){return{hours:0,minutes:0,seconds:0,val:0,defaultRules:[()=>!this.required||this.val>0||"Please enter the duration."]}},async mounted(){},methods:{handleChange(t){Number.isFinite(this.hours)||(this.hours=0),Number.isFinite(this.minutes)||(this.minutes=0),Number.isFinite(this.seconds)||(this.seconds=0),this.val=3600*parseInt(this.hours)+60*parseInt(this.minutes)+parseInt(this.seconds),console.log(`[duration] changed to ${this.val}.`),this.form&&this.form.validate(),this.$emit("input",this.val)}},computed:{mergedRules(){return this.rules?this.rules.concat(this.defaultRules):this.defaultRules}},watch:{value:{immediate:!0,handler(t,e){var i=n["Duration"].fromMillis(1e3*t).shiftTo("hours","minutes","seconds").toObject();this.hours=i.hours,this.minutes=i.minutes,this.seconds=i.seconds}}}},o=r,l=i("2877"),c=i("6544"),u=i.n(c),d=i("62ad"),h=i("b675"),v=i("0fd9"),p=i("8654"),m=Object(l["a"])(o,s,a,!1,null,null,null);e["a"]=m.exports;u()(m,{VCol:d["a"],VInput:h["a"],VRow:v["a"],VTextField:p["a"]})},ec29:function(t,e,i){},ed18:function(t,e,i){"use strict";t.exports=function(t,e,i){i=i||{};const s=i.interpolator||function(t,e){return e[t]},a=t.block.ruler.__find__("html_block");if(a<0||!e)return;const n=Object.getOwnPropertyNames(e),r=[];if(n.length<1)return;for(const b of n){if("function"!==typeof e[b].render)throw new Error("missing render function for shortcode tag: "+b);e[b].inline&&r.push(b)}const o="([a-zA-Z_:][a-zA-Z0-9:._-]*)",l="(-?(?:\\d*\\.\\d+|\\d+)(?:[eE]-?\\d+)?)",c="('[^']*'|\"[^\"]*\")",u="(#\\{[^}]*\\})",d=new RegExp("\\s+"+o+"(?:\\s*=\\s*(?:"+l+"|"+c+"|"+u+"))?","g"),h=new RegExp(u),v=/^<(\w+)/;function p(t,e){const i=v.exec(t);return i&&e.find(t=>t===i[1])}function m(e){let i=e.tokens;if(e.md.options.html)for(let s=i.length-1;s>=0;s--){const a=i[s];if("html_block"!==a.type)continue;if(!p(a.content,r))continue;let n,o=a.level;const l=[];n=new e.Token("paragraph_open","p",1),n.level=o++,l.push(n),n=new e.Token("inline","",0),n.content=a.content,n.level=o,n.children=[],l.push(n),n=new e.Token("paragraph_close","p",-1),n.level=--o,l.push(n),e.tokens=i=t.utils.arrayReplaceAt(i,s,l)}}r.length>0&&t.core.ruler.after("block","shortcode",m);const g=function(t,e,i,s,a){return a.renderToken(t,e,i)},y={html_block:t.renderer.rules.html_block||g,html_inline:t.renderer.rules.html_inline||g};function f(t,i,a,r,o){const l=t[i].content;let c,u={};while(c=d.exec(l))if(c[4]){let t=c[4].slice(2,-1).trim();u[c[1]]=s(t,r)}else if(c[3]){const t=c[3].slice(1,-1);u[c[1]]=t.replace(h,t=>{const e=t.slice(2,-1);return r[e]})}else c[2]?u[c[1]]=parseFloat(c[2]):u[c[1]]=!0;const v=p(l,n);return v?e[v].render(u,r):y[t[i].type](t,i,a,r,o)}t.renderer.rules.html_block=t.renderer.rules.html_inline=f}},f08a:function(t,e,i){"use strict";i("f917")},f917:function(t,e,i){},fe09:function(t,e,i){"use strict";i.d(e,"b",(function(){return o}));i("14d9");var s=i("c37a"),a=i("5311"),n=i("8547"),r=i("58df");function o(t){t.preventDefault()}e["a"]=Object(r["a"])(s["a"],a["a"],n["a"]).extend({name:"selectable",model:{prop:"inputValue",event:"change"},props:{id:String,inputValue:null,falseValue:null,trueValue:null,multiple:{type:Boolean,default:null},label:String},data(){return{hasColor:this.inputValue,lazyValue:this.inputValue}},computed:{computedColor(){if(this.isActive)return this.color?this.color:this.isDark&&!this.appIsDark?"white":"primary"},isMultiple(){return!0===this.multiple||null===this.multiple&&Array.isArray(this.internalValue)},isActive(){const t=this.value,e=this.internalValue;return this.isMultiple?!!Array.isArray(e)&&e.some(e=>this.valueComparator(e,t)):void 0===this.trueValue||void 0===this.falseValue?t?this.valueComparator(t,e):Boolean(e):this.valueComparator(e,this.trueValue)},isDirty(){return this.isActive},rippleState(){return this.isDisabled||this.validationState?this.validationState:void 0}},watch:{inputValue(t){this.lazyValue=t,this.hasColor=t}},methods:{genLabel(){const t=s["a"].options.methods.genLabel.call(this);return t?(t.data.on={click:o},t):t},genInput(t,e){return this.$createElement("input",{attrs:Object.assign({"aria-checked":this.isActive.toString(),disabled:this.isDisabled,id:this.computedId,role:t,type:t},e),domProps:{value:this.value,checked:this.isActive},on:{blur:this.onBlur,change:this.onChange,focus:this.onFocus,keydown:this.onKeydown,click:o},ref:"input"})},onClick(t){this.onChange(),this.$emit("click",t)},onChange(){if(!this.isInteractive)return;const t=this.value;let e=this.internalValue;if(this.isMultiple){Array.isArray(e)||(e=[]);const i=e.length;e=e.filter(e=>!this.valueComparator(e,t)),e.length===i&&e.push(t)}else e=void 0!==this.trueValue&&void 0!==this.falseValue?this.valueComparator(e,this.trueValue)?this.falseValue:this.trueValue:t?this.valueComparator(e,t)?null:t:!e;this.validate(!0,e),this.internalValue=e,this.hasColor=e},onFocus(t){this.isFocused=!0,this.$emit("focus",t)},onBlur(t){this.isFocused=!1,this.$emit("blur",t)},onKeydown(t){}}})}}]);
//# sourceMappingURL=chunk-071b992d.14cd4a8f.js.map