(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[182],{"0LXz":function(t,e,r){"use strict";r("lV5Y")},"7BRH":function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));const i=t=>{if(!t)return null;const e=t.match(/\d+/);return e?e[0]:null}},"KHd+":function(t,e,r){"use strict";function i(t,e,r,i,n,o,a,s){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=r,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),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)},c._ssrRegister=l):n&&(l=s?function(){n.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:n),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:c}}r.d(e,"a",(function(){return i}))},T9Yi:function(t,e,r){"use strict";r.r(e);var i=r("JPst"),n=r.n(i)()(!1);n.push([t.i,".tb-w-mapbox-tour-static-map__image[data-v-03b60672]{\n  max-width:100%\n}",""]),e.default=n},lV5Y:function(t,e,r){var i=r("LboF"),n=r("T9Yi");"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[t.i,n,""]]);var o={insert:"head",singleton:!1};i(n,o);t.exports=n.locals||{}},sG1I:function(t,e,r){"use strict";function i(t,e={}){const r=new URL(t);if(Object.entries(e).length)for(const[t,i]of Object.entries(e))Array.isArray(i)?i.forEach(e=>r.searchParams.append(t,e)):r.searchParams.append(t,i);return r.href}r.d(e,"a",(function(){return i}))},zgGg:function(t,e,r){"use strict";r.r(e);var i=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()};i._withStripped=!0;var n=r("xBaG"),o=r("qDxa"),a=r("sG1I"),s=r("7BRH");const l={tourIntersections:"map-marker-nodepoint-"};var c={name:"TbWMapboxTourStaticMap",props:{article:{type:Object,required:!0},relatedArticleTypes:{type:Array,default:()=>["tourIntersections"]}},data:()=>({mtkMapStyleTypes:o.a}),computed:{...Object(n.e)("displayConfig",["defaultMapStyleType","displayMapTourSurfaces"]),...Object(n.e)(["language"]),...Object(n.c)(["toursprungApiKeyWithOverride"]),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,r,i,n;if(null!==(t=this.article.tour)&&void 0!==t&&null!==(e=t.geometry)&&void 0!==e&&null!==(r=e.coordinates)&&void 0!==r&&r.length)return this.article.tour.geometry.coordinates[0];if(null!==(i=this.article.tour)&&void 0!==i&&null!==(n=i.tourStageCollections)&&void 0!==n&&n.length){var o,a,s;const t=null===(o=this.article.tour)||void 0===o?void 0:o.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 r=`${null===(t=this.startingPoint)||void 0===t?void 0:t[1]},${null===(e=this.startingPoint)||void 0===e?void 0:e[0]}`,i="https://icons.toubiz.de/png/48x48/",n={maptype:this.mtkDefaultMapStyleType,size:"830x750",center:r,marker:[],api_key:this.toursprungApiKeyWithOverride,marker_z_order:"source"};return this.tourKmlFile&&(n.kml=this.tourKmlFile+"?color=ffaa7f00"),this.relatedArticleTypes.length&&this.addRelatedArticleMarkers(n,i),n.marker.push(`icon:${i}map-marker-hiking.png|center:${r}|anchor:bottom`),Object(a.a)("https://staticmap.maptoolkit.net/",n)}},methods:{addRelatedArticleMarkers(t,e){for(const i of this.relatedArticleTypes){var r;const n=(null===(r=this.article.relatedArticles)||void 0===r?void 0:r[i])||[];if(n.length)for(const r of n){const n=r.geocoordinates;if(null==n||!n.latitude||null==n||!n.longitude)continue;const o=`${n.latitude},${n.longitude}`,a="tourIntersections"===i?Object(s.a)(r.name):"",c=`${l[i]}${a}.png`;t.marker.push(`icon:${e}${c}|center:${o}|anchor:bottom`)}}}}},u=(r("0LXz"),r("KHd+")),d=Object(u.a)(c,i,[],!1,null,"03b60672",null);e.default=d.exports}}]);