(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[244],{"3ELh":function(t,e,i){"use strict";i.r(e);var r=function(){var t=this,e=t.$createElement;return(t._self._c||e)("tb-w-map-info-window-mapbox",{attrs:{title:t.article.name||t.article.address&&t.article.address.name||t.streetAndStreetNumber,"category-title":t.article.primaryCategory&&t.article.primaryCategory.name,"image-url":t.imageUrl,"image-alt":t.imageAlt,description:t.article.abstract,"tour-duration":t.tourDuration,"tour-distance":t.tourDistance,"article-opening-times":t.article.openingTimes,url:t.url,classification:t.classification,"hide-details-button":t.hideDetailsButton}})};r._withStripped=!0;var a={name:"TbWMapboxPopup",props:{article:{type:Object,required:!0},hideDetailsButton:{type:Boolean,default:!1}},computed:{tourDuration(){var t,e,i,r;return null!==(t=null==this||null===(e=this.article)||void 0===e||null===(i=e.tour)||void 0===i||null===(r=i.trackInformation)||void 0===r?void 0:r.duration)&&void 0!==t?t:0},tourDistance(){var t,e,i,r;return null!==(t=null==this||null===(e=this.article)||void 0===e||null===(i=e.tour)||void 0===i||null===(r=i.trackInformation)||void 0===r?void 0:r.distance)&&void 0!==t?t:0},url(){return this.buildUrl({name:"article.detail",params:{id:this.article.id}})},classification(){var t,e,i;return null!==(t=this.article.primaryCategory)&&void 0!==t&&null!==(e=t.rootline)&&void 0!==e&&e.includes("32b05798-f54c-462d-9f58-a39899c85ef6")&&null!==(i=this.article.classifications)&&void 0!==i&&i.length?this.article.classifications[0]:null},imageUrl(){var t;return null!==(t=this.article.mainImage)&&void 0!==t&&t.updatedAt?this.buildImageUri(this.article.id,"article"):null},imageAlt(){return this.article.media&&this.article.media[0]?this.article.media[0].altText:null},streetAndStreetNumber(){var t,e;return null!==(t=this.article.address)&&void 0!==t&&t.street&&null!==(e=this.article.address)&&void 0!==e&&e.streetNumber?`${this.article.address.street} ${this.article.address.streetNumber}`:""}}},n=i("KHd+"),l=Object(n.a)(a,r,[],!1,null,null,null);l.options.__file="node_modules/@newland/toubiz-widget/src/components/tb-w-mapbox-popup.vue";e.default=l.exports},"KHd+":function(t,e,i){"use strict";function r(t,e,i,r,a,n,l,o){var s,d="function"==typeof t?t.options:t;if(e&&(d.render=e,d.staticRenderFns=i,d._compiled=!0),r&&(d.functional=!0),n&&(d._scopeId="data-v-"+n),l?(s=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__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(l)},d._ssrRegister=s):a&&(s=o?function(){a.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:a),s)if(d.functional){d._injectStyles=s;var u=d.render;d.render=function(t,e){return s.call(e),u(t,e)}}else{var c=d.beforeCreate;d.beforeCreate=c?[].concat(c,s):[s]}return{exports:t,options:d}}i.d(e,"a",(function(){return r}))}}]);