(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[145,179],{0:function(i,t){},1:function(i,t){},gFaZ:function(i,t,a){"use strict";a.r(t);var e=function(){var i=this,t=i.$createElement,a=i._self._c||t;return a("div",{staticClass:"tb-w-article-detail-map"},[a("div",{staticClass:"tb-w-map-and-controls-wrapper relative"},[i.article.geocoordinates&&i.article.geocoordinates.longitude?a("tb-w-mapbox-map",{attrs:{article:i.article,"public-transport-locations":i.publicTransportLocations,"display-public-transport":i.displayPublicTransport,"display-parking":i.displayParking,"parking-items":i.parkingItems}}):i._e(),i._v(" "),a("tb-w-mapbox-custom-controls",[i.displayPublicTransportToggle?a("tb-w-mapbox-custom-control",{attrs:{"is-active":i.displayPublicTransport},nativeOn:{click:function(t){return i.togglePublicTransport(t)}}},[i._v("\n                "+i._s(i.$t("message.mobility"))+"\n\n                "),i.loadingPublicTransport?a("tb-w-loader",{staticClass:"ml-1",attrs:{color:"white",inline:""}}):i._e()],1):i._e(),i._v(" "),i.displayParkingToggle?a("tb-w-mapbox-custom-control",{attrs:{"is-active":i.displayParking},nativeOn:{click:function(t){return i.toggleParking(t)}}},[i._v("\n                "+i._s(i.$t("message.parking"))+"\n            ")]):i._e()],1)],1)])};e._withStripped=!0;var n=a("UjeN"),r=a("vGg6"),o={name:"TbWArticleDetailMap",props:{article:{type:Object,required:!0}},data:()=>({publicTransportLocations:null,displayPublicTransport:!1,loadingPublicTransport:!1,parkingItems:null,displayParking:!1}),computed:{displayPublicTransportToggle(){return(this.article.type===r.a.POINT||this.article.type===r.a.AREA)&&this.article.geocoordinates.latitude},displayParkingToggle(){var i,t;return null===(i=this.article.relatedArticles)||void 0===i||null===(t=i.pointGettingThereParking)||void 0===t?void 0:t.length}},methods:{async togglePublicTransport(){this.displayPublicTransport=!this.displayPublicTransport,this.publicTransportLocations||(this.loadingPublicTransport=!0,await Object(n.a)(this.article.geocoordinates.latitude,this.article.geocoordinates.longitude).then(i=>{this.publicTransportLocations=i.Trias.ServiceDelivery.DeliveryPayload.LocationInformationResponse.Location,this.loadingPublicTransport=!1}).catch(i=>console.warn(i)))},toggleParking(){this.displayParking=!this.displayParking,this.parkingItems=this.article.relatedArticles.pointGettingThereParking}},i18n:{fallbackLocale:"de",silentFallbackWarn:"undefined"==typeof window,messages:{de:{message:{mobility:"Mobilität vor Ort",parking:"Parkmöglichkeiten"}},en:{message:{mobility:"On site mobility",parking:"Parking"}},fr:{message:{mobility:"Mobilité sur place",parking:"Parking"}},it:{message:{mobility:"Mobilità in loco",parking:"Parcheggio"}},es:{message:{mobility:"Movilidad in situ",parking:"Aparcamiento"}},nl:{message:{mobility:"Mobiliteit ter plaatse",parking:"Parkeergelegenheid"}},cz:{message:{mobility:"Mobilita na místě",parking:"Parkovací zařízení"}}}}},l=a("KHd+"),s=Object(l.a)(o,e,[],!1,null,null,null);s.options.__file="node_modules/@newland/toubiz-widget/src/components/article-detail/tb-w-article-detail-map.vue";t.default=s.exports},vGg6:function(i,t,a){"use strict";a.d(t,"a",(function(){return e}));const e=Object.freeze({AREA:"area",POINT:"point",TOUR:"tour"})}}]);