(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-465938e2"],{"1b72":function(t,e,s){"use strict";var i=s("dde5");s("b383");e["a"]={getMapTemplates(){return i["a"].http.get("/v1.0/assets/map-templates")},getMapTemplate(t){return i["a"].http.get("/v1.0/assets/map-templates/"+t)},getWellbeingPacks(){return i["a"].http.get("/v1.0/assets/wellbeing-packs")},getWellbeingPack(t){return i["a"].http.get("/v1.0/assets/wellbeing-packs/"+t)},getEventTemplates(t,e){return i["a"].http.get(`/v1.0/assets/event-templates?tags=${t?t.join(","):""}&query=${e||""}`)},getEventTemplate(t){return i["a"].http.get("/v1.0/assets/event-templates/"+t)},validateEventTemplate(t,e){return i["a"].http.post(`/v1.0/assets/event-templates/${t}/validate`,e)},getTrainingPlans(){return i["a"].http.get("/v1.0/assets/training-plans")},getTrainingPlan(t){return i["a"].http.get("/v1.0/assets/training-plans/"+t)}}},"201a":function(t,e,s){"use strict";s("5ddf")},"245e":function(t,e,s){"use strict";var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-card",{class:{"d-flex flex-column grow":!0,"card--featured":t.featured},attrs:{to:t.to?t.to:null},on:{click:function(e){t.hasClickListener&&t.$emit("click")}}},[t.featured&&!t.mini?s("div",{staticClass:"featured-badge",attrs:{title:"Featured"}},[s("v-icon",{attrs:{color:"black"}},[t._v("fa-star")])],1):t._e(),t.img?s("v-img",{staticClass:"white--text align-end",attrs:{src:t.img,gradient:"to bottom, rgba(0,0,0,.1), rgba(0,0,0,.5)",height:t.mini?"100px":"200px"}},[s("v-card-title",{staticClass:"d-inline-block"},[t._v(t._s(t._f("trim")(t.title,50))),t.hideIndicator?t._e():s("v-icon",{staticClass:"ms-2",attrs:{color:"white",small:""}},[t._v("fa-chevron-right")])],1),!t.mini&&t.summary?s("v-card-text",[t._v(t._s(t.summary))]):t._e()],1):s("v-sheet",{staticClass:"d-flex flex-column justify-end ",attrs:{color:t.$helpers.getGradientColor(0),height:t.mini?100:200}},[s("v-card-title",{staticClass:"d-inline-block"},[t._v(t._s(t.title)+" "),t.hideIndicator?t._e():s("v-icon",{staticClass:"ml-2",attrs:{color:"black",small:""}},[t._v("fa-chevron-right")])],1),!t.mini&&t.summary?s("v-card-text",[t._v(t._s(t.summary))]):t._e()],1)],1)},a=[],r={name:"ContentCard",components:{},props:{title:String,summary:String,img:String,featured:Boolean,to:Object,routeName:String,mini:Boolean,hideIndicator:Boolean},data:function(){return{}},mounted(){},methods:{},computed:{hasClickListener(){return this.$listeners&&this.$listeners.click}}},n=r,o=s("2877"),l=s("6544"),c=s.n(l),h=s("b0af"),d=s("99d9"),u=s("132d"),p=s("adda"),m=s("8dd9"),g=Object(o["a"])(n,i,a,!1,null,null,null);e["a"]=g.exports;c()(g,{VCard:h["a"],VCardText:d["c"],VCardTitle:d["d"],VIcon:u["a"],VImg:p["a"],VSheet:m["a"]})},"2a0b":function(t,e,s){"use strict";var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{ref:"leafletMap",staticClass:"leaflet-map"})},a=[],r=s("e11e");s("6cc5");window.L=r;var n={name:"LeafletMap",components:{},props:{autoLoad:{type:Boolean,default:!0},zoom:Number,center:Array,loader:Function,mapOptions:Object},data:function(){return{map:null,widthHeightRatio:1,customMap:null,defaultMapOptions:{zoomSnap:.25,maxZoom:15,dragging:!r["Browser"].mobile,tap:!r["Browser"].mobile,touchZoom:!0,scrollWheelZoom:!1},markerIcon:window.L.icon({iconSize:[25,41],iconAnchor:[10,41],popupAnchor:[2,-40],iconUrl:"https://unpkg.com/leaflet@1.5.1/dist/images/marker-icon.png",shadowUrl:"https://unpkg.com/leaflet@1.5.1/dist/images/marker-shadow.png"})}},async mounted(){this.autoLoad&&await this.initMap()},methods:{async ensureLoaded(){this.map||await this.initMap()},async initMap(){if(!this.map&&this.$refs.leafletMap){var t={...this.defaultMapOptions,...this.mapOptions||{}};this.zoom&&(t={...t,zoom:this.zoom}),this.center&&(t={...t,center:this.center}),console.log("loading LEAFLET ",this.$refs.leafletMap,"Merged options:",t,"L:",r,"L.:",r["map"]),this.map=r["map"](this.$refs.leafletMap,t),this.addDefaultTileLayer(this.map),this.loader&&await this.loader(this)}},async initCustomMap(t){if(!this.map&&this.$refs.leafletMap){this.customMap=t;var e=this.customMap.width,s=this.customMap.height;this.widthHeightRatio=s/e,console.log("Loading custom map",this.customMap,"ratio:",this.widthHeightRatio),this.map=window.L.map(this.$refs.leafletMap,{crs:window.L.CRS.Simple,minZoom:this.customMap.min_zoom,maxZoom:this.customMap.max_zoom,zoomSnap:.5,zoom:this.customMap.default_zoom});var i=[this.toLatLng(0,0),this.toLatLng(s,e)];this.map.setMaxBounds(i),this.map.fitBounds(i),window.L.imageOverlay(this.customMap.img,i).addTo(this.map),this.loader&&await this.loader(this)}},addPolyline(t,e){var s=null==this.customMap?t:t.map(t=>this.toLatLng(t[0],t[1]));return r["polyline"](s,e).addTo(this.map)},addCircle(t,e){return r["circle"](t,e).addTo(this.map)},addMarker(t,e,s,i){const a={title:e,icon:s||this.markerIcon},n=r["marker"](t,a);return i&&n.bindPopup(i),this.map.addLayer(n),n},addDefaultTileLayer(t){r["tileLayer"]("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:17,attribution:'&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'}).addTo(t)},toLatLng(t,e,s){return!this.customMap||s?window.L.latLng(t,e):window.L.latLng(t/this.customMap.height*this.widthHeightRatio,e/this.customMap.width)}}},o=n,l=s("2877"),c=Object(l["a"])(o,i,a,!1,null,"cecbafa8",null);e["a"]=c.exports},"2bc5":function(t,e,s){"use strict";s("14d9"),s("abd3");var i=s("1c87"),a=s("58df"),r=Object(a["a"])(i["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:s}=this.generateRouteLink();return t("li",[t(e,{...s,attrs:{...s.attrs,"aria-current":this.isActive&&this.isLink?"page":void 0}},this.$slots.default)])}}),n=s("80d2"),o=Object(n["j"])("v-breadcrumbs__divider","li"),l=s("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,s=[];for(let i=0;i<this.items.length;i++){const a=this.items[i];s.push(a.text),e?t.push(this.$scopedSlots.item({item:a})):t.push(this.$createElement(r,{key:s.join("."),props:a},[a.text])),i<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)}})},3686:function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.template?s("div",[t.isEmbedded?t._e():s("v-breadcrumbs",{attrs:{items:t.breadcrumbItems}}),s("v-card",{attrs:{elevation:t.isEmbedded?0:2}},[t.template?s("page-header",{attrs:{title:t.template.name,img:t.template.img}}):t._e(),s("v-card-text",[s("p",[t._v(t._s(t.template.description))]),s("v-btn",{attrs:{color:"primary",to:{name:"eventmanagerStart",query:{tags:"MAP",mapTemplateId:t.template.id}}}},[t._v("Start This Challenge")])],1),s("v-card-title",{staticClass:"subheader"},[t._v("Course Map")]),s("RaceResultsMap",{ref:"resultMap",attrs:{event:t.event,race:t.race,badges:t.badges,"map-options":{dragging:!0,scrollWheelZoom:!1}}}),s("v-card-title",{staticClass:"subheader"},[t._v("Badges")]),s("v-card-text",[t._v("Participants can unlock the following badges during the challenge. Each badge will trigger a personalized email with more information on the specific milestone location.")]),s("v-slide-group",{attrs:{multiple:"","show-arrows":""}},t._l(t.badges,(function(e,i){return s("v-slide-item",{key:i,scopedSlots:t._u([{key:"default",fn:function(i){var a=i.active,r=i.toggle;return[s("v-card",{staticClass:"mx-2 my-4",attrs:{"input-value":a,"active-class":"primary white--text","max-width":"200px"},on:{click:r}},[s("v-card-title",{attrs:{title:e.name}},[s("div",{staticClass:"truncate"},[t._v(t._s(e.name))])]),s("v-img",{staticClass:"mx-2 mb-4",attrs:{src:e.img}})],1)]}}],null,!0)})})),1),s("div",{staticClass:"green white--text py-6 py-md-12 my-4"},[s("div",{staticClass:"container"},[s("v-row",[s("v-col",{attrs:{cols:"12",md:"12"}},[s("h2",{staticClass:"subtitle"},[t._v("Go Live Today!")]),s("h1",{staticClass:"subtitle"},[t._v("Create your personalized fitness challenge within minutes!")]),s("p",{staticClass:"mb-0 mt-4"},[s("v-btn",{staticClass:"mr-4 mb-4",attrs:{color:"white",to:{name:"startTrial"}}},[t._v("Start Free Trial")]),t._e(),s("v-btn",{staticClass:"mb-4",attrs:{color:"white",outlined:"",href:"/contact"}},[t._v("Contact Us")])],1)])],1)],1)]),s("v-card-title",{staticClass:"subheader"},[t._v("More ready-to-go journeys")]),s("v-card-text",[t._v("Explore more ready-to-go journeys.")]),s("v-slide-group",{attrs:{multiple:"","show-arrows":""}},t._l(t.templates.filter((function(e){return e.id!=t.template.id})),(function(t,e){return s("v-slide-item",{key:e},[s("MapTemplateCard",{staticClass:"ma-2",staticStyle:{width:"200px"},attrs:{item:t,to:{name:"challengeJourneyView",params:{id:t.id}}}})],1)})),1)],1)],1):t._e()},a=[],r=s("2f62"),n=s("585f"),o=s("1b72"),l=(s("81a6"),s("36ad")),c=s("31a7"),h=s("b893"),d=(s("3b3f"),s("b55c")),u=s("5c22"),p=s("d561"),m=s("4a1f"),g=s.n(m);const v=g.a.current();var f={name:"PreDesignedTemplate",components:{VueMarkdown:c["a"],PageHeader:l["a"],RaceResultsMap:h["a"],ShareButton:d["a"],MapTemplateCard:p["a"],EventTemplateCard:u["a"]},props:{},data(){return{dark:!1,templates:null,template:null,badges:null,event:null,race:null}},async beforeRouteUpdate(t,e,s){this.badges=null,this.$refs.resultMap.clear(),await this.load(t.params.id),console.log("TO",t.params.raceId,this.race,this.breadcrumbItems),s()},async mounted(){await this.load(this.$route.params.id),n["a"].$on("tilemap-highlight-tile",async t=>{t||this.loadSubResults(null)})},methods:{async load(t){this.templates=(await o["a"].getMapTemplates()).data.data,this.template=this.templates.find(e=>e.id==t),this.event={id:this.template.id,name:this.template.name},this.race=this.template,this.badges=this.template.badges,console.log("/// template",this.race,this.badges),await this.updateMetaTags()},async updateMetaTags(){const t={title:`View the ready-to-go journey template ${this.template.name} on ${v.name}.`,description:this.template.description,image:this.template.img};n["a"].$emit("page-header-change",t)}},watch:{},computed:{...Object(r["b"])({user:"user"}),breadcrumbItems(){return this.template?[{text:"Ready-to-go challenges",exact:!0,to:{name:"challenges"}},{text:"Journeys",exact:!0,to:{name:"challengeJourneys"}},{text:this.template.name,disabled:!0}]:[]},isEmbedded(){return"embed"===this.$route.query.view||"embed"==this.$store.state.view}}},b=f,w=(s("7b2b"),s("2877")),C=s("6544"),y=s.n(C),_=s("2bc5"),x=s("8336"),$=s("b0af"),k=s("99d9"),S=s("62ad"),O=s("adda"),M=s("0fd9"),T=s("7efd"),L=s("9dbe"),I=Object(w["a"])(b,i,a,!1,null,null,null);e["default"]=I.exports;y()(I,{VBreadcrumbs:_["a"],VBtn:x["a"],VCard:$["a"],VCardText:k["c"],VCardTitle:k["d"],VCol:S["a"],VImg:O["a"],VRow:M["a"],VSlideGroup:T["b"],VSlideItem:L["a"]})},"36ad":function(t,e,s){"use strict";var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{class:"event-header "+(t.dark?"theme--dark v-toolbar v-sheet v-sheet--tile":"")+" "+(t.logo?"event-header--logo":"")},[t.img?s("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?s("span",{class:"event-logo pa-3 v-card elevation-7 v-sheet theme--light"},[s("img",{attrs:{alt:"Logo",src:t.logo}})]):t._e(),s("v-card-title",{staticClass:"display-2",domProps:{textContent:t._s(t.title)}})],1):s("v-card-title",{staticClass:"display-2",domProps:{textContent:t._s(t.title)}})],1)},a=[],r={name:"PageHeader",components:{},props:{img:String,logo:String,title:String,dark:Boolean,mini:Boolean,compact:Boolean},mounted(){}},n=r,o=(s("201a"),s("2877")),l=s("6544"),c=s.n(l),h=s("99d9"),d=s("adda"),u=Object(o["a"])(n,i,a,!1,null,null,null);e["a"]=u.exports;c()(u,{VCardTitle:h["d"],VImg:d["a"]})},"3ff0":function(t,e,s){},"4a00":function(t,e,s){},"5c22":function(t,e,s){"use strict";var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-card",{class:{"d-flex flex-column grow":!0,"card--featured":t.item.featured},attrs:{to:t.to?t.to:t.routeName?{name:t.routeName,params:{id:t.item.id}}:null},on:{click:function(e){t.hasClickListener&&t.$emit("click")}}},[t.item.featured&&!t.mini?s("div",{staticClass:"featured-badge",attrs:{title:"Featured"}},[s("v-icon",{attrs:{color:"black"}},[t._v("fa-star")])],1):t._e(),t.item.tile_img?s("v-img",{staticClass:"white--text align-end",attrs:{src:t.item.tile_img,gradient:"to bottom, rgba(0,0,0,.1), rgba(0,0,0,.5)",height:t.mini?"100px":"200px"}},[s("v-card-title",[t._v(t._s(t._f("trim")(t.item.name,50))),t.hideIndicator?t._e():s("v-icon",{staticClass:"ms-2",attrs:{color:"white",small:""}},[t._v("fa-chevron-right")])],1),t.mini?t._e():s("v-card-text",{staticClass:" challenge-summary"},[t._v(t._s(t.item.summary))])],1):s("v-sheet",{staticClass:"d-flex flex-column justify-end ",attrs:{color:t.$helpers.getGradientColor(0),height:t.mini?100:200}},[s("v-card-title",[t._v(t._s(t.item.name)+" "),t.hideIndicator?t._e():s("v-icon",{staticClass:"ml-2",attrs:{color:"black",small:""}},[t._v("fa-chevron-right")])],1),t.mini?t._e():s("v-card-text",{staticClass:" challenge-summary"},[t._v(t._s(t.item.summary))])],1),t.item.tags&&!t.mini?s("v-card-text",{staticClass:"grey lighten-3 grow pa-3 challenge-tags"},t._l(t.item.tags,(function(e,i){return s("v-chip",{key:i,staticClass:"me-2",attrs:{"x-small":"",color:"accent",outlined:""}},[t._v(t._s(e.replace("_","-")))])})),1):t._e()],1)},a=[],r={name:"EventTemplateCard",components:{},props:{item:Object,to:[Object,String],routeName:String,mini:Boolean,hideIndicator:Boolean},data:function(){return{}},mounted(){},methods:{},computed:{hasClickListener(){return this.$listeners&&this.$listeners.click}}},n=r,o=(s("ec0e"),s("2877")),l=s("6544"),c=s.n(l),h=s("b0af"),d=s("99d9"),u=s("cc20"),p=s("132d"),m=s("adda"),g=s("8dd9"),v=Object(o["a"])(n,i,a,!1,null,null,null);e["a"]=v.exports;c()(v,{VCard:h["a"],VCardText:d["c"],VCardTitle:d["d"],VChip:u["a"],VIcon:p["a"],VImg:m["a"],VSheet:g["a"]})},"5ddf":function(t,e,s){},"608c":function(t,e,s){},"7b2b":function(t,e,s){"use strict";s("3ff0")},"7efd":function(t,e,s){"use strict";s.d(e,"a",(function(){return m}));s("608c");var i=s("9d26"),a=s("0789"),r=s("604c"),n=s("e4cd"),o=s("dc22"),l=s("c3f0"),c=s("58df"),h=s("80d2");function d(t){const e=.501,s=Math.abs(t);return Math.sign(t)*(s/((1/e-2)*(1-s)+1))}function u(t,e,s,i){const a=t.clientWidth,r=s?e.content-t.offsetLeft-a:t.offsetLeft;s&&(i=-i);const n=e.wrapper+i,o=a+r,l=.4*a;return r<=i?i=Math.max(r-l,0):n<=o&&(i=Math.min(i-(n-o-l),e.content-e.wrapper)),s?-i:i}function p(t,e,s){const{offsetLeft:i,clientWidth:a}=t;if(s){const t=e.content-i-a/2-e.wrapper/2;return-Math.min(e.content-e.wrapper,Math.max(0,t))}{const t=i+a/2-e.wrapper/2;return Math.min(e.content-e.wrapper,Math.max(0,t))}}const m=Object(c["a"])(r["a"],n["a"]).extend({name:"base-slide-group",directives:{Resize:o["a"],Touch:l["a"]},props:{activeClass:{type:String,default:"v-slide-item--active"},centerActive:Boolean,nextIcon:{type:String,default:"$next"},prevIcon:{type:String,default:"$prev"},showArrows:{type:[Boolean,String],validator:t=>"boolean"===typeof t||["always","desktop","mobile"].includes(t)}},data:()=>({isOverflowing:!1,resizeTimeout:0,startX:0,isSwipingHorizontal:!1,isSwiping:!1,scrollOffset:0,widths:{content:0,wrapper:0}}),computed:{canTouch(){return"undefined"!==typeof window},__cachedNext(){return this.genTransition("next")},__cachedPrev(){return this.genTransition("prev")},classes(){return{...r["a"].options.computed.classes.call(this),"v-slide-group":!0,"v-slide-group--has-affixes":this.hasAffixes,"v-slide-group--is-overflowing":this.isOverflowing}},hasAffixes(){switch(this.showArrows){case"always":return!0;case"desktop":return!this.isMobile;case!0:return this.isOverflowing||Math.abs(this.scrollOffset)>0;case"mobile":return this.isMobile||this.isOverflowing||Math.abs(this.scrollOffset)>0;default:return!this.isMobile&&(this.isOverflowing||Math.abs(this.scrollOffset)>0)}},hasNext(){if(!this.hasAffixes)return!1;const{content:t,wrapper:e}=this.widths;return t>Math.abs(this.scrollOffset)+e},hasPrev(){return this.hasAffixes&&0!==this.scrollOffset}},watch:{internalValue:"setWidths",isOverflowing:"setWidths",scrollOffset(t){this.$vuetify.rtl&&(t=-t);let e=t<=0?d(-t):t>this.widths.content-this.widths.wrapper?-(this.widths.content-this.widths.wrapper)+d(this.widths.content-this.widths.wrapper-t):-t;this.$vuetify.rtl&&(e=-e),this.$refs.content.style.transform=`translateX(${e}px)`}},mounted(){if("undefined"!==typeof ResizeObserver){const t=new ResizeObserver(()=>{this.onResize()});t.observe(this.$el),t.observe(this.$refs.content),this.$on("hook:destroyed",()=>{t.disconnect()})}else{let t=0;this.$on("hook:beforeUpdate",()=>{var e;t=((null===(e=this.$refs.content)||void 0===e?void 0:e.children)||[]).length}),this.$on("hook:updated",()=>{var e;t!==((null===(e=this.$refs.content)||void 0===e?void 0:e.children)||[]).length&&this.setWidths()})}},methods:{onScroll(){this.$refs.wrapper.scrollLeft=0},onFocusin(t){if(this.isOverflowing)for(const e of Object(h["g"])(t))for(const t of this.items)if(t.$el===e)return void(this.scrollOffset=u(t.$el,this.widths,this.$vuetify.rtl,this.scrollOffset))},genNext(){const t=this.$scopedSlots.next?this.$scopedSlots.next({}):this.$slots.next||this.__cachedNext;return this.$createElement("div",{staticClass:"v-slide-group__next",class:{"v-slide-group__next--disabled":!this.hasNext},on:{click:()=>this.onAffixClick("next")},key:"next"},[t])},genContent(){return this.$createElement("div",{staticClass:"v-slide-group__content",ref:"content",on:{focusin:this.onFocusin}},this.$slots.default)},genData(){return{class:this.classes,directives:[{name:"resize",value:this.onResize}]}},genIcon(t){let e=t;this.$vuetify.rtl&&"prev"===t?e="next":this.$vuetify.rtl&&"next"===t&&(e="prev");const s=`${t[0].toUpperCase()}${t.slice(1)}`,a=this["has"+s];return this.showArrows||a?this.$createElement(i["a"],{props:{disabled:!a}},this[e+"Icon"]):null},genPrev(){const t=this.$scopedSlots.prev?this.$scopedSlots.prev({}):this.$slots.prev||this.__cachedPrev;return this.$createElement("div",{staticClass:"v-slide-group__prev",class:{"v-slide-group__prev--disabled":!this.hasPrev},on:{click:()=>this.onAffixClick("prev")},key:"prev"},[t])},genTransition(t){return this.$createElement(a["d"],[this.genIcon(t)])},genWrapper(){return this.$createElement("div",{staticClass:"v-slide-group__wrapper",directives:[{name:"touch",value:{start:t=>this.overflowCheck(t,this.onTouchStart),move:t=>this.overflowCheck(t,this.onTouchMove),end:t=>this.overflowCheck(t,this.onTouchEnd)}}],ref:"wrapper",on:{scroll:this.onScroll}},[this.genContent()])},calculateNewOffset(t,e,s,i){const a=s?-1:1,r=a*i+("prev"===t?-1:1)*e.wrapper;return a*Math.max(Math.min(r,e.content-e.wrapper),0)},onAffixClick(t){this.$emit("click:"+t),this.scrollTo(t)},onResize(){this._isDestroyed||this.setWidths()},onTouchStart(t){const{content:e}=this.$refs;this.startX=this.scrollOffset+t.touchstartX,e.style.setProperty("transition","none"),e.style.setProperty("willChange","transform")},onTouchMove(t){if(this.canTouch){if(!this.isSwiping){const e=t.touchmoveX-t.touchstartX,s=t.touchmoveY-t.touchstartY;this.isSwipingHorizontal=Math.abs(e)>Math.abs(s),this.isSwiping=!0}this.isSwipingHorizontal&&(this.scrollOffset=this.startX-t.touchmoveX,document.documentElement.style.overflowY="hidden")}},onTouchEnd(){if(!this.canTouch)return;const{content:t,wrapper:e}=this.$refs,s=t.clientWidth-e.clientWidth;t.style.setProperty("transition",null),t.style.setProperty("willChange",null),this.$vuetify.rtl?this.scrollOffset>0||!this.isOverflowing?this.scrollOffset=0:this.scrollOffset<=-s&&(this.scrollOffset=-s):this.scrollOffset<0||!this.isOverflowing?this.scrollOffset=0:this.scrollOffset>=s&&(this.scrollOffset=s),this.isSwiping=!1,document.documentElement.style.removeProperty("overflow-y")},overflowCheck(t,e){t.stopPropagation(),this.isOverflowing&&e(t)},scrollIntoView(){if(!this.selectedItem&&this.items.length){const t=this.items[this.items.length-1].$el.getBoundingClientRect(),e=this.$refs.wrapper.getBoundingClientRect();(this.$vuetify.rtl&&e.right<t.right||!this.$vuetify.rtl&&e.left>t.left)&&this.scrollTo("prev")}this.selectedItem&&(0===this.selectedIndex||!this.centerActive&&!this.isOverflowing?this.scrollOffset=0:this.centerActive?this.scrollOffset=p(this.selectedItem.$el,this.widths,this.$vuetify.rtl):this.isOverflowing&&(this.scrollOffset=u(this.selectedItem.$el,this.widths,this.$vuetify.rtl,this.scrollOffset)))},scrollTo(t){this.scrollOffset=this.calculateNewOffset(t,{content:this.$refs.content?this.$refs.content.clientWidth:0,wrapper:this.$refs.wrapper?this.$refs.wrapper.clientWidth:0},this.$vuetify.rtl,this.scrollOffset)},setWidths(){window.requestAnimationFrame(()=>{if(this._isDestroyed)return;const{content:t,wrapper:e}=this.$refs;this.widths={content:t?t.clientWidth:0,wrapper:e?e.clientWidth:0},this.isOverflowing=this.widths.wrapper+1<this.widths.content,this.scrollIntoView()})}},render(t){return t("div",this.genData(),[this.genPrev(),this.genWrapper(),this.genNext()])}});e["b"]=m.extend({name:"v-slide-group",provide(){return{slideGroup:this}}})},"8adc":function(t,e,s){},"9dbe":function(t,e,s){"use strict";var i=s("4e82"),a=s("58df"),r=s("d9bd"),n=s("2b0e");const o=n["a"].extend({props:{activeClass:String,value:{required:!1}},data:()=>({isActive:!1}),methods:{toggle(){this.isActive=!this.isActive}},render(){if(!this.$scopedSlots.default)return Object(r["c"])("v-item is missing a default scopedSlot",this),null;let t;return this.$scopedSlots.default&&(t=this.$scopedSlots.default({active:this.isActive,toggle:this.toggle})),Array.isArray(t)&&1===t.length&&(t=t[0]),t&&!Array.isArray(t)&&t.tag?(t.data=this._b(t.data||{},t.tag,{class:{[this.activeClass]:this.isActive}}),t):(Object(r["c"])("v-item should only contain a single element",this),t)}});Object(a["a"])(o,Object(i["a"])("itemGroup","v-item","v-item-group")).extend({name:"v-item"}),e["a"]=Object(a["a"])(o,Object(i["a"])("slideGroup")).extend({name:"v-slide-item"})},a05e:function(t,e,s){},a453:function(t,e,s){"use strict";s("4a00")},abd3:function(t,e,s){},b55c:function(t,e,s){"use strict";var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("span",[t.nativeShare?s("v-btn",{class:t.buttonClass,style:t.buttonStyle,attrs:{text:!t.icon&&!t.outlined,icon:t.icon,color:t.color,rounded:t.rounded,outlined:t.outlined,"aria-label":"Share this page",title:"Share this page"},on:{click:function(e){return e.stopPropagation(),t.showNativeShareOptions.apply(null,arguments)}}},[s("v-icon",{attrs:{small:t.small}},[t._v("fa-share-alt")]),t.icon?t._e():s("span",{staticClass:"ml-2"},[t._v(t._s(t.$t("shared.share")))])],1):s("v-btn",{class:t.buttonClass,style:t.buttonStyle,attrs:{text:!t.icon&&!t.outlined,icon:t.icon,color:t.color,rounded:t.rounded,outlined:t.outlined,"aria-label":"Share this page",title:"Share this page"},on:{click:function(e){t.showShareDialog=!0}}},[s("v-icon",{attrs:{small:t.small}},[t._v("fa-share-alt")]),t.icon?t._e():s("span",{staticClass:"ml-2"},[t._v(t._s(t.$t("shared.share")))])],1),s("v-dialog",{attrs:{width:"310"},model:{value:t.showShareDialog,callback:function(e){t.showShareDialog=e},expression:"showShareDialog"}},[s("v-list",[s("v-subheader",{staticClass:"title"},[t._v(t._s(t.$t("shared.share-title")))]),t._l(t.sharers,(function(e){return s("v-list-item",{key:e.title,attrs:{href:e.url,target:"_blank"},on:{click:function(s){t.processShareClick(e.title.toLowerCase())}}},[s("v-list-item-avatar",[s("v-avatar",{attrs:{size:"32px",tile:""}},[s("v-icon",{attrs:{color:e.color,alt:e.title}},[t._v(t._s(e.icon))])],1)],1),s("v-list-item-title",[t._v(t._s(e.title))])],1)}))],2)],1)],1)},a=[],r=s("585f"),n=s("4a1f"),o=s.n(n);const l=o.a.current();var c={name:"ShareButton",props:{icon:Boolean,outlined:Boolean,rounded:Boolean,color:String,text:String,small:Boolean,route:Object,url:String,buttonStyle:String,buttonClass:String},data(){return{tenant:l,nativeShare:navigator.share,pageTitle:null,pageDescription:null,pageUrl:null,sharers:null,showShareDialog:!1}},mounted(){this.updatePageState(this.$store.state.currentPageMeta),r["a"].$on("page-header-change",this.updatePageState)},watch:{$route(t,e){this.pageUrl=this.getPageUrl(),this.sharers=this.createSharers()}},computed:{twitterUrl(){return"https://twitter.com/intent/tweet?url="+encodeURIComponent(this.getPageUrl())+"&text="+encodeURIComponent(this.pageTitle)+"&hashtags=sodisp"}},methods:{createSharers(){return[{color:"#3b5998",icon:"fab fa-facebook",title:"Facebook",url:this.getFacebookUrl()},{color:"#55acee",icon:"fab fa-twitter",title:"Twitter",url:this.getTwitterUrl()},{color:"#25D366",icon:"fab fa-whatsapp",title:"Whatsapp",url:this.getWhatsappUrl()},{color:"#0077b5",icon:"fab fa-linkedin",title:"LinkedIn",url:this.getLinkedInUrl()},{color:"",icon:"fas fa-envelope",title:"Email",url:this.getEmailUrl()}]},updatePageState(t){console.log("Loading new data to share",t),this.pageTitle=t.title,this.pageDescription=t.description,this.sharers=this.createSharers()},getPageUrl(){return this.route?document.location.origin+this.$router.resolve(this.route).href:this.url||(document.querySelector("link[rel=canonical]")?document.querySelector("link[rel=canonical]").href:document.location.href)},getShareText(){return this.text||this.pageTitle},processShareClick(t){this.showShareDialog=!1,this.$analytics.event(t,{event_category:"share",event_label:this.getPageUrl()})},showNativeShareOptions(){this.$analytics.event("native",{event_category:"share",event_label:this.getPageUrl()}),navigator.share?navigator.share({title:l.title,text:this.getShareText(),url:this.getPageUrl()}).then(()=>{}).catch(t=>{console.error(t),this.showShareDialog=!0}):(this.showShareDialog=!0,console.log("Native share not available"))},getTwitterUrl(){return"https://twitter.com/intent/tweet?url="+encodeURIComponent(this.getPageUrl())+"&text="+encodeURIComponent(this.getShareText())+"&hashtags=sodisp"},getLinkedInUrl(){return"https://www.linkedin.com/shareArticle?mini=true&url="+encodeURIComponent(this.getPageUrl())+"&source=sodisp"},getFacebookUrl(){return"https://www.facebook.com/sharer.php?u="+encodeURIComponent(this.getPageUrl())},getEmailUrl(){return"mailto:?subject="+encodeURIComponent(this.getShareText())+"&body="+encodeURIComponent(this.getPageUrl())},getWhatsappUrl(){return"whatsapp://send?text="+encodeURIComponent(this.getShareText())+"%20"+encodeURIComponent(this.getPageUrl())},getInstagamUrl(){return null},socialWindow(t){var e=(screen.width-570)/2,s=(screen.height-570)/2,i="menubar=no,toolbar=no,status=no,width=570,height=570,top="+s+",left="+e;window.open(t,"NewWindow",i)}}},h=c,d=(s("a453"),s("2877")),u=s("6544"),p=s.n(u),m=s("8212"),g=s("8336"),v=s("169a"),f=s("132d"),b=s("8860"),w=s("da13"),C=s("8270"),y=s("5d23"),_=s("e0c7"),x=Object(d["a"])(h,i,a,!1,null,"25bc903e",null);e["a"]=x.exports;p()(x,{VAvatar:m["a"],VBtn:g["a"],VDialog:v["a"],VIcon:f["a"],VList:b["a"],VListItem:w["a"],VListItemAvatar:C["a"],VListItemTitle:y["c"],VSubheader:_["a"]})},cc20:function(t,e,s){"use strict";s("14d9"),s("8adc");var i=s("58df"),a=s("0789"),r=s("9d26"),n=s("a9ad"),o=s("4e82"),l=s("7560"),c=s("f2e7"),h=s("1c87"),d=s("af2b"),u=s("d9bd");e["a"]=Object(i["a"])(n["a"],d["a"],h["a"],l["a"],Object(o["a"])("chipGroup"),Object(c["b"])("inputValue")).extend({name:"v-chip",props:{active:{type:Boolean,default:!0},activeClass:{type:String,default(){return this.chipGroup?this.chipGroup.activeClass:""}},close:Boolean,closeIcon:{type:String,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},disabled:Boolean,draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:Boolean,outlined:Boolean,pill:Boolean,tag:{type:String,default:"span"},textColor:String,value:null},data:()=>({proxyClass:"v-chip--active"}),computed:{classes(){return{"v-chip":!0,...h["a"].options.computed.classes.call(this),"v-chip--clickable":this.isClickable,"v-chip--disabled":this.disabled,"v-chip--draggable":this.draggable,"v-chip--label":this.label,"v-chip--link":this.isLink,"v-chip--no-color":!this.color,"v-chip--outlined":this.outlined,"v-chip--pill":this.pill,"v-chip--removable":this.hasClose,...this.themeClasses,...this.sizeableClasses,...this.groupClasses}},hasClose(){return Boolean(this.close)},isClickable(){return Boolean(h["a"].options.computed.isClickable.call(this)||this.chipGroup)}},created(){const t=[["outline","outlined"],["selected","input-value"],["value","active"],["@input","@active.sync"]];t.forEach(([t,e])=>{this.$attrs.hasOwnProperty(t)&&Object(u["a"])(t,e,this)})},methods:{click(t){this.$emit("click",t),this.chipGroup&&this.toggle()},genFilter(){const t=[];return this.isActive&&t.push(this.$createElement(r["a"],{staticClass:"v-chip__filter",props:{left:!0}},this.filterIcon)),this.$createElement(a["b"],t)},genClose(){return this.$createElement(r["a"],{staticClass:"v-chip__close",props:{right:!0,size:18},attrs:{"aria-label":this.$vuetify.lang.t(this.closeLabel)},on:{click:t=>{t.stopPropagation(),t.preventDefault(),this.$emit("click:close"),this.$emit("update:active",!1)}}},this.closeIcon)},genContent(){return this.$createElement("span",{staticClass:"v-chip__content"},[this.filter&&this.genFilter(),this.$slots.default,this.hasClose&&this.genClose()])}},render(t){const e=[this.genContent()];let{tag:s,data:i}=this.generateRouteLink();i.attrs={...i.attrs,draggable:this.draggable?"true":void 0,tabindex:this.chipGroup&&!this.disabled?0:i.attrs.tabindex},i.directives.push({name:"show",value:this.active}),i=this.setBackgroundColor(this.color,i);const a=this.textColor||this.outlined&&this.color;return t(s,this.setTextColor(a,i),e)}})},d561:function(t,e,s){"use strict";var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("ContentCard",{attrs:{img:t.item.img,title:t.item.name,summary:null,featured:t.item.featured,to:t.to?t.to:t.routeName?{name:t.routeName,params:{id:t.item.id}}:null},on:{click:function(e){t.hasClickListener&&t.$emit("click")}}})},a=[],r=s("245e"),n={name:"MapTemplateCard",components:{ContentCard:r["a"]},props:{item:Object,to:[Object,String],routeName:String},data:function(){return{}},mounted(){},methods:{},computed:{hasClickListener(){return this.$listeners&&this.$listeners.click}}},o=n,l=s("2877"),c=Object(l["a"])(o,i,a,!1,null,null,null);e["a"]=c.exports},ec0e:function(t,e,s){"use strict";s("a05e")}}]);
//# sourceMappingURL=chunk-465938e2.dc30806c.js.map