(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[314],{"KHd+":function(t,i,e){"use strict";function n(t,i,e,n,a,l,o,r){var s,u="function"==typeof t?t.options:t;if(i&&(u.render=i,u.staticRenderFns=e,u._compiled=!0),n&&(u.functional=!0),l&&(u._scopeId="data-v-"+l),o?(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(o)},u._ssrRegister=s):a&&(s=r?function(){a.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:a),s)if(u.functional){u._injectStyles=s;var c=u.render;u.render=function(t,i){return s.call(i),c(t,i)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,s):[s]}return{exports:t,options:u}}e.d(i,"a",(function(){return n}))},jbs3:function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return t.popupOpenState?e("tb-w-map-info-window-mapbox",{attrs:{title:t.articleMini.name,"category-title":t.categoryTitle,"image-url":t.imageUrl,"image-alt":t.imageAlt,description:t.description,"tour-duration":t.tourDuration,"tour-distance":t.tourDistance,"article-opening-times":t.openingTimes,"widget-route":t.buildWidgetRoute({name:"article.detail",params:{id:t.articleMini.id}}),classification:t.classification,"hide-details-button":t.hideDetailsButton,"link-target":t.linkTarget}}):t._e()};n._withStripped=!0;var a={name:"TbWMapboxPopupArticleQuery",props:{articleMini:{type:Object,required:!0},hideDetailsButton:{type:Boolean,default:!1},linkTarget:{type:String,default:"_blank"}},inject:{popup:{default:null}},data:()=>({include:["additionalAddress","awards","capacity","classifications","client","contactInformation","emails","fieldValues","fieldBlueprints","files","geometryForStages","languages","links","media","mainImage","openingTimes","permissions","phoneNumbers","seo","tags","tourVariants"],popupOpenState:!1,article:null}),mounted(){this.$nextTick(()=>{this.popup.on("open",()=>{this.popupOpenState=!0})}),this.$nextTick(()=>{this.popup.on("close",()=>{this.popupOpenState=!1})})},methods:{async fetchArticleDetails(){const t=await this.articleRepository.list({filter:{id:this.articleMini.id,clientIncludingManaged:"current"},language:this.$store.state.language,unlicensed:1,include:this.include});this.article=t.payload[0]}},watch:{popupOpenState(t){t&&this.fetchArticleDetails()}},computed:{tourDuration(){var t,i,e,n;return null!==(t=null==this||null===(i=this.article)||void 0===i||null===(e=i.tour)||void 0===e||null===(n=e.trackInformation)||void 0===n?void 0:n.duration)&&void 0!==t?t:0},tourDistance(){var t,i,e,n;return null!==(t=null==this||null===(i=this.article)||void 0===i||null===(e=i.tour)||void 0===e||null===(n=e.trackInformation)||void 0===n?void 0:n.distance)&&void 0!==t?t:0},classification(){var t,i,e,n,a;return null!==(t=this.article)&&void 0!==t&&null!==(i=t.primaryCategory)&&void 0!==i&&null!==(e=i.rootline)&&void 0!==e&&e.includes("32b05798-f54c-462d-9f58-a39899c85ef6")&&null!==(n=this.article)&&void 0!==n&&null!==(a=n.classifications)&&void 0!==a&&a.length?this.article.classifications[0]:null},imageUrl(){var t,i;return null!==(t=this.article)&&void 0!==t&&null!==(i=t.mainImage)&&void 0!==i&&i.updatedAt?this.buildImageUri(this.article.id,"article"):null},imageAlt(){var t;return null!==(t=this.article)&&void 0!==t&&t.media&&this.article.media[0]?this.article.media[0].altText:null},description(){var t,i;return this.article&&null!==(t=this.article)&&void 0!==t&&t.abstract?null===(i=this.article)||void 0===i?void 0:i.abstract:null},openingTimes(){return this.article&&this.article.openingTimes?this.article.openingTimes:null},categoryTitle(){var t,i;return this.article&&null!==(t=this.article.primaryCategory)&&void 0!==t&&t.name?null===(i=this.article.primaryCategory)||void 0===i?void 0:i.name:null}}},l=e("KHd+"),o=Object(l.a)(a,n,[],!1,null,null,null);o.options.__file="node_modules/@newland/toubiz-widget/src/components/tb-w-mapbox-popup-article-query.vue";i.default=o.exports}}]);