(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[267],{"KHd+":function(t,i,e){"use strict";function n(t,i,e,n,o,a,l,s){var r,u="function"==typeof t?t.options:t;if(i&&(u.render=i,u.staticRenderFns=e,u._compiled=!0),n&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),l?(r=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__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(l)},u._ssrRegister=r):o&&(r=s?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),r)if(u.functional){u._injectStyles=r;var p=u.render;u.render=function(t,i){return r.call(i),p(t,i)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,r):[r]}return{exports:t,options:u}}e.d(i,"a",(function(){return n}))},WCn9: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.pointMini.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:t.type+".detail",params:{id:t.pointMini.id}}),classification:t.classification,"hide-details-button":t.hideDetailsButton,"link-target":t.linkTarget}}):t._e()};n._withStripped=!0;var o={name:"TbWMapboxPopupPointQuery",props:{pointMini:{type:Object,required:!0},hideDetailsButton:{type:Boolean,default:!1},linkTarget:{type:String,default:"_blank"},type:{type:String,required:!0}},inject:{popup:{default:null}},data:()=>({articleDetailInclude:["additionalAddress","awards","capacity","classifications","client","contactInformation","emails","fieldValues","fieldBlueprints","files","geometryForStages","languages","links","media","mainImage","openingTimes","permissions","phoneNumbers","seo","tags","tourVariants"],eventDetailInclude:["awards","client","contactInformation","dates","fieldBlueprints","fieldValues","files","media","mainImage","price","relatedArticles","seo","externalIds","channelContext"],popupOpenState:!1,point:null}),mounted(){this.$nextTick(()=>{this.popup.on("open",()=>{this.popupOpenState=!0})}),this.$nextTick(()=>{this.popup.on("close",()=>{this.popupOpenState=!1})})},methods:{async fetchPointDetails(){if("article"===this.type){const t=await this.articleRepository.list({filter:{id:this.pointMini.id,clientIncludingManaged:"current"},language:this.$store.state.language,unlicensed:1,include:this.articleDetailInclude});this.point=t.payload[0]}else if("event"===this.type){const t=await this.eventRepository.list({filter:{id:this.pointMini.id,clientIncludingManaged:"current"},language:this.$store.state.language,unlicensed:1,include:this.eventDetailInclude});this.point=t.payload[0]}}},watch:{popupOpenState(t){t&&this.fetchPointDetails()}},computed:{tourDuration(){var t,i,e,n;return null!==(t=null==this||null===(i=this.point)||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.point)||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,o;return null!==(t=this.point)&&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.point)&&void 0!==n&&null!==(o=n.classifications)&&void 0!==o&&o.length?this.point.classifications[0]:null},imageUrl(){var t,i;return null!==(t=this.point)&&void 0!==t&&null!==(i=t.mainImage)&&void 0!==i&&i.updatedAt?this.buildImageUri(this.point.id,this.type):null},imageAlt(){var t;return null!==(t=this.point)&&void 0!==t&&t.media&&this.point.media[0]?this.point.media[0].altText:null},description(){var t,i;return this.point&&null!==(t=this.point)&&void 0!==t&&t.abstract?null===(i=this.point)||void 0===i?void 0:i.abstract:null},openingTimes(){return this.point&&this.point.openingTimes?this.point.openingTimes:null},categoryTitle(){var t,i;return this.point&&null!==(t=this.point.primaryCategory)&&void 0!==t&&t.name?null===(i=this.point.primaryCategory)||void 0===i?void 0:i.name:null}}},a=e("KHd+"),l=Object(a.a)(o,n,[],!1,null,null,null);l.options.__file="node_modules/@newland/toubiz-widget/src/components/tb-w-mapbox-popup-point-query.vue";i.default=l.exports}}]);