(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[240,368],{"KHd+":function(t,e,i){"use strict";function o(t,e,i,o,n,r,a,s){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=i,u._compiled=!0),o&&(u.functional=!0),r&&(u._scopeId="data-v-"+r),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):n&&(l=s?function(){n.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:n),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:u}}i.d(e,"a",(function(){return o}))},WEaS:function(t,e,i){"use strict";i("dJcl")},dJcl:function(t,e,i){var o=i("LboF"),n=i("tfS4");"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[t.i,n,""]]);var r={insert:"head",singleton:!1};o(n,r);t.exports=n.locals||{}},sG1I:function(t,e,i){"use strict";function o(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=new URL(t);if(Object.entries(e).length)for(const[t,o]of Object.entries(e))i.searchParams.append(t,o);return i.href}i.d(e,"a",(function(){return o}))},tfS4:function(t,e,i){"use strict";i.r(e);var o=i("JPst"),n=i.n(o)()(!1);n.push([t.i,".tb-w-mapbox-tour-static-map__image[data-v-5b2a2a7f]{\n  max-width:100%\n}",""]),e.default=n},zgGg:function(t,e,i){"use strict";i.r(e);var o=function(){var t=this.$createElement,e=this._self._c||t;return this.startingPoint?e("div",{staticClass:"tb-w-mapbox-tour-static-map"},[e("img",{staticClass:"tb-w-mapbox-tour-static-map__image rounded-lg",attrs:{src:this.staticMapUrl,alt:"static map"}})]):this._e()};o._withStripped=!0;var n=i("L2JU"),r=i("qDxa"),a=i("sG1I"),s={name:"TbWMapboxTourStaticMap",props:{article:{type:Object,required:!0}},data:()=>({mtkMapStyleTypes:r.a}),computed:{...Object(n.e)("displayConfig",["defaultMapStyleType","displayMapTourSurfaces"]),...Object(n.e)(["language","toursprungApiKey"]),mtkDefaultMapStyleType(){var t;return(null===(t=this.mtkMapStyleTypes.find(t=>t.id.toLowerCase()===this.defaultMapStyleType.toLowerCase()))||void 0===t?void 0:t.value)||"toubiz-terrain"},startingPoint(){var t,e,i,o,n;if(null!==(t=this.article.tour)&&void 0!==t&&null!==(e=t.geometry)&&void 0!==e&&null!==(i=e.coordinates)&&void 0!==i&&i.length)return this.article.tour.geometry.coordinates[0];if(null!==(o=this.article.tour)&&void 0!==o&&null!==(n=o.tourStageCollections)&&void 0!==n&&n.length){var r,a,s;const t=null===(r=this.article.tour)||void 0===r?void 0:r.tourStageCollections[0];if(null!==(a=t.geometry)&&void 0!==a&&null!==(s=a.coordinates)&&void 0!==s&&s[0])return t.geometry.coordinates[0]}return null},tourKmlFile(){var t;const e=((null===(t=this.article.tour)||void 0===t?void 0:t.trackDownload)||[]).filter(t=>"kml"===t.type);return e.length?e[0].url:null},staticMapUrl(){var t,e;const i=`${null===(t=this.startingPoint)||void 0===t?void 0:t[1]},${null===(e=this.startingPoint)||void 0===e?void 0:e[0]}`,o={maptype:this.mtkDefaultMapStyleType,size:"830x750",center:i,marker:`icon:https://icons.toubiz.de/png/48x48/map-marker-hiking.png|center:${i}|anchor:bottom`,api_key:this.toursprungApiKey};return this.tourKmlFile&&(o.kml=this.tourKmlFile+"?color=ffaa7f00"),Object(a.a)("https://staticmap.maptoolkit.net/",o)}}},l=(i("WEaS"),i("KHd+")),u=Object(l.a)(s,o,[],!1,null,"5b2a2a7f",null);u.options.__file="node_modules/@newland/toubiz-widget/src/components/tb-w-mapbox-tour-static-map.vue";e.default=u.exports}}]);