(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[406],{"KHd+":function(t,e,i){"use strict";function n(t,e,i,n,o,s,p,a){var r,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=i,u._compiled=!0),n&&(u.functional=!0),s&&(u._scopeId="data-v-"+s),p?(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(p)},u._ssrRegister=r):o&&(r=a?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),r)if(u.functional){u._injectStyles=r;var d=u.render;u.render=function(t,e){return r.call(e),d(t,e)}}else{var l=u.beforeCreate;u.beforeCreate=l?[].concat(l,r):[r]}return{exports:t,options:u}}i.d(e,"a",(function(){return n}))},WCn9:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this.$createElement,e=this._self._c||t;return this.popupOpenState&&this.point?e("tb-w-map-info-window-mapbox",{attrs:{item:this.point,type:this.computedType}}):this._e()};n._withStripped=!0;var o=i("4/cP"),s=i("vGg6"),p=i("dd3m"),a={name:"TbWMapboxPopupPointQuery",props:{pointMini:{type:Object,required:!0},hideDetailsButton:{type:Boolean,default:!1},linkTarget:{type:String,default:"_blank"},type:{type:String,required:!0},apiVersion:{type:Number,default:1}},inject:{popup:{default:null}},data:()=>({popupOpenState:!1,point:null}),mounted(){this.$nextTick(()=>{this.popup.on("open",()=>{this.popupOpenState=!0})}),this.$nextTick(()=>{this.popup.on("close",()=>{this.popupOpenState=!1})})},computed:{computedType(){return this.type!==o.a.RECORD?this.type:this.pointMini.modelType===o.a.EVENT?o.a.EVENT:o.a.ARTICLE}},methods:{async fetchPointDetails(){const t=await this.recordRepository.list({filter:{id:this.pointMini.id},language:this.$store.state.language},this.apiVersion);if(this.point=t.payload[0],this.point.type===s.a.TOUR){const t=await this.getRepository(p.b.GEOMETRY).fetchTour(this.pointMini.id);this.emitTourCoordinates(t.geometry)}},emitTourCoordinates(t){var e;this.$emit("setTourPolyline",null!==(e=null==t?void 0:t.coordinates)&&void 0!==e?e:[])}},watch:{popupOpenState(t){t?this.fetchPointDetails():this.$emit("setTourPolyline",[])}}},r=i("KHd+"),u=Object(r.a)(a,n,[],!1,null,null,null);e.default=u.exports}}]);