(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[65],{"3VzZ":function(t,e,i){"use strict";i.r(e);var n=i("JPst"),o=i.n(n)()(!1);o.push([t.i,".rte p:not(:first-of-type){\n  margin-top:1rem\n}\n.rte a{\n  --text-opacity:1;\n  color:#2370C5;\n  color:rgba(35, 112, 197, var(--text-opacity))\n}\n.tb-lightbox,.tb-modal-wrapper{\n  z-index:2147483647\n}\n",""]),e.default=o},ay5y:function(t,e,i){var n=i("LboF"),o=i("3VzZ");"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.i,o,""]]);var a={insert:"head",singleton:!1};n(o,a);t.exports=o.locals||{}},bhy5:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this.$createElement,e=this._self._c||t;return null===this.event?e("tb-loader"):e("div",[e("tb-event-detail",{attrs:{event:this.event,host:this.host,location:this.location}})],1)};n._withStripped=!0;var o=i("qli4");const a=["media","price","contactInformation","fieldBlueprints","fieldValues","dates","client"];var s={components:{TbEventDetail:o.default},props:{id:{type:String,required:!0}},data:()=>({event:null,location:null,host:null}),watch:{id:{immediate:!0,handler(t){this.fetchEvent(t)}}},methods:{async fetchEvent(t=this.id){this.event=null,this.location=null,this.host=null;const e=await this.eventRepository.fetch(t,{include:a});if(this.event=e.payload,this.event.fieldValues instanceof Array&&0===this.event.fieldValues.length&&(this.event.fieldValues={}),this.event.location){const t=await this.articleRepository.fetch(this.event.location.id,{include:["media","relatedArticles"]});this.location=t.payload.address,this.location.id=t.payload.id,this.location.name=t.payload.name,this.location.abstract=t.payload.abstract,this.location.category=t.payload.primaryCategory.name,this.location.latitude=t.payload.point.latitude,this.location.longitude=t.payload.point.longitude,this.location.gettingThere=t.payload.point.gettingThere,this.location.connectedPoints=t.payload.relatedArticles.connectedPoints,await this.articleRepository.enrichListWithIncludes(this.location.connectedPoints,["openingTimes"])}if(this.event.host){const t=await this.articleRepository.fetch(this.event.host,{include:["phoneNumbers","emails","contactInformation"]});this.host={},this.host.name=t.payload.name,this.host.website=t.payload.contactInformation.website,this.host.emails=t.payload.emails,this.host.phoneNumbers=t.payload.phoneNumbers}}}},l=(i("i/ur"),i("KHd+")),c=Object(l.a)(s,n,[],!1,null,null,null);c.options.__file="node_modules/@newland/toubiz-widget/src/routes/event-detail.vue";e.default=c.exports},"i/ur":function(t,e,i){"use strict";var n=i("ay5y");i.n(n).a}}]);