(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[138],{gFaZ:function(t,e,r){"use strict";r.r(e);var i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.article.geocoordinates&&t.article.geocoordinates.longitude?r("tb-w-section",{scopedSlots:t._u([{key:"content",fn:function(){return[t.article.point&&t.article.point.address?r("tb-w-article-address",{staticClass:"mb-4",scopedSlots:t._u([t.article.point.address.street?{key:"street",fn:function(){return[t._v("\n                "+t._s(t.article.point.address.street)+"\n            ")]},proxy:!0}:null,{key:"streetNumber",fn:function(){return[t._v(t._s(t.article.point.address.streetNumber))]},proxy:!0},{key:"zip",fn:function(){return[t._v("\n                "+t._s(t.article.point.address.zip)+"\n            ")]},proxy:!0},{key:"city",fn:function(){return[t._v("\n                "+t._s(t.article.point.address.city)+"\n            ")]},proxy:!0}],null,!0)}):t._e(),t._v(" "),t.article.geocoordinates&&t.article.geocoordinates.longitude?r("tb-w-map",{staticClass:"cursor-pointer",attrs:{"map-type":"toursprung-static"},nativeOn:{click:function(e){return t.storeModalArticleMap(!0)}}},[r("tb-w-article-map-marker",{attrs:{article:t.article,"static-map":""}})],1):t._e(),t._v(" "),r("tb-w-modal",{attrs:{show:t.dynamicMap,title:t.$t("message.map"),width:"large",height:"large"},on:{close:function(e){return t.storeModalArticleMap(!1)}}},[r("tb-w-map",{attrs:{"map-type":"toursprung",settings:{geolocation:{enabled:!0,waitForUserIntent:!0}}},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.closeInfoWindow;return[r("tb-w-article-map-marker",{attrs:{article:t.article,"close-info-window":i,"icon-width":80,"icon-height":80}}),t._v(" "),t._l(t.nearbyArticles,(function(t){return r("tb-w-article-map-marker",{key:t.id,attrs:{article:t,"close-info-window":i,"icon-width":50,"icon-height":50}})}))]}}],null,!1,3168530633)})],1),t._v(" "),r("div",{staticClass:"flex mt-6 font-semibold text-link-500"},[r("button",{staticClass:"font-semibold mr-6 flex items-center",on:{click:function(e){return t.storeModalArticleMap(!0)}}},[t._v("\n                "+t._s(t.$t("message.detailedMap"))+"\n            ")]),t._v(" "),r("a",{staticClass:"flex items-center",attrs:{href:"https://maps.google.com/maps?daddr="+t.article.geocoordinates.latitude+"%2C"+t.article.geocoordinates.longitude,target:"_blank"}},[t._v("\n                "+t._s(t.$t("message.routePlan"))+"\n                "),r("tb-w-icon",{staticClass:"ml-2",attrs:{icon:"arrow-right",size:"1"}})],1)])]},proxy:!0}],null,!1,1496238087)},[t._v("\n    "+t._s(t.$t("message.approach"))+"\n\n    ")]):r("div")};i._withStripped=!0;var a={name:"TbWArticleDetailMap",props:{article:{type:Object,required:!0}},data:()=>({dynamicMap:!1}),created(){this.unsubscribe=this.$store.subscribe((t,e)=>{"setModalArticleMap"===t.type&&(this.dynamicMap=e.modalArticleMap)})},beforeDestroy(){this.unsubscribe()},methods:{storeModalArticleMap(t){this.$store.commit("setModalArticleMap",t)}},computed:{nearbyArticles(){return"area"===this.article.type?[]:this.article.nearbyArticles||[]}}},n=r("KHd+"),s=Object(n.a)(a,i,[],!1,null,null,null);s.options.__file="node_modules/@newland/toubiz-widget/src/components/article-detail/tb-w-article-detail-map.vue";e.default=s.exports}}]);