(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[433],{gLSw:function(e,i,t){"use strict";t.r(i);var n=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",[t("tb-w-section",{directives:[{name:"show",rawName:"v-show",value:!e.loaderSuspense,expression:"!loaderSuspense"}]},[t("skeleton-loader",{attrs:{width:"18rem",height:"2.5rem",animation:"fade",type:"rect",radius:6,rounded:!0}}),e._v(" "),t("skeleton-loader",{staticClass:"mt-4",attrs:{width:"100%",height:"45rem",animation:"fade",type:"rect",radius:6,rounded:!0}})],1),e._v(" "),t("transition",{attrs:{name:"fade"}},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.loaderSuspense,expression:"loaderSuspense"}]},[e.openingTimes?t("tb-w-section",{staticClass:"tb-w-article-detail-opening-times-section",scopedSlots:e._u([{key:"content",fn:function(){var i;return[t("tb-w-opening-times-parser",{attrs:{"opening-times-format":"toubizV1","opening-times-definition":e.openingTimes},scopedSlots:e._u([{key:"default",fn:function(i){return[t("div",["live"===e.type?t("div",{staticClass:"text-left max-w-sm inline-flex"},[t("tb-w-opening-times-line-preview",{attrs:{"opening-times":i.openingTimes,"for-date-and-time":new Date}})],1):e._e(),e._v(" "),t("tb-w-article-detail-opening-times",{class:{"mt-6":"live"===e.type},attrs:{"opening-times":i.openingTimes}})],1)]}}],null,!1,629698687)}),e._v(" "),null!==(i=e.openingTimes)&&void 0!==i&&i.description?t("div",{staticClass:"mt-8 text-base rte tb-w-article-detail-opening-times-description",domProps:{innerHTML:e._s(e.openingTimes.description)}}):e._e()]},proxy:!0}],null,!1,3302787100)},[e._v("\n                "+e._s(e.$t("message.hoursOfOperation"))+"\n\n                ")]):e._e()],1)])],1)};n._withStripped=!0;var s={props:{id:{type:String,required:!0},type:{type:String,default:"overview",validator:e=>["live","overview"].includes(e)}},data:()=>({openingTimes:null,date:(new Date).toISOString().substr(0,10),loaderSuspense:!1}),computed:{},methods:{async fetchOpeningTimes(){this.openingTimes=null;try{const e=await this.articleRepository.fetch(this.id+"/openingTimes",{language:this.$store.state.language});this.openingTimes=e.payload}catch(e){console.error(e)}}},watch:{openingTimes(){this.openingTimes&&setTimeout(()=>{this.loaderSuspense=!0},300)},id:{immediate:!0,handler(e){this.fetchOpeningTimes(e)}}},i18n:{fallbackLocale:"de",silentFallbackWarn:"undefined"==typeof window,messages:{de:{message:{hoursOfOperation:"Öffnungszeiten"}},en:{message:{hoursOfOperation:"Hours of operation"}},fr:{message:{hoursOfOperation:"Heures d'ouverture"}},it:{message:{hoursOfOperation:"Orari di apertura"}},es:{message:{hoursOfOperation:"Horario de apertura"}},nl:{message:{hoursOfOperation:"Openingstijden"}},cs:{message:{hoursOfOperation:"hodiny operace"}}}}},a=t("KHd+"),o=Object(a.a)(s,n,[],!1,null,null,null);i.default=o.exports}}]);