(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[152],{VjoN:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return s}));var o=n("7yoQ");function i(e){return encodeURIComponent(Object(o.b)(JSON.stringify(e)))}const s={created(){for(const e of this.$options.urlState)this.restoreStateFromUrl(e),this.$watch(e,t=>this.saveStateToUrl(e,t),{deep:!0})},methods:{saveStateToUrl(e,t=this[e]){const n=Object.assign({},this.$route.query);n[e]=i(t),this.$router.push({name:this.$route.name,query:n}).catch(e=>{if(!(""+e.message).includes("redundant navigation"))throw e})},restoreStateFromUrl(e){if(!this.$route.query[e])return null;try{const t=function(e){return JSON.parse(Object(o.a)(decodeURIComponent(e)))}(this.$route.query[e]);return this.$set(this,e,t),t}catch(t){return console.warn(`Could not restore state ${e} from URL parameter ${e}`,t),null}}}}},nJOY:function(e,t,n){"use strict";n.r(t);var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("tb-w-section",{scopedSlots:e._u([{key:"content",fn:function(){return[n("tb-w-slider",[e._l(e.areaHighlights.slice(0,6),(function(t){return n("tb-w-slider-item",{key:t.id},[n("tb-w-teaser-card",{attrs:{background:e.buildImageUri(t.id,"article",[null,376]),href:e.buildUrl({name:"article.detail",params:{id:t.id}}),type:"stacked","open-in-new-tab":""},scopedSlots:e._u([{key:"topline",fn:function(){return[e._v("\n                        "+e._s(t.primaryCategory.name)+"\n                    ")]},proxy:!0},{key:"info",fn:function(){return[t.point&&t.point.openingTimes&&t.point.openingTimes.definitions&&t.point.openingTimes.definitions.length?n("tb-w-opening-times-parser",{key:t.point.openingTimes.definitions[0].id,attrs:{"opening-times-format":"toubizV1","opening-times-definition":t.point.openingTimes},scopedSlots:e._u([{key:"default",fn:function(e){var t=e.openingTimes;return[n("tb-w-opening-times-line-preview",{attrs:{"opening-times":t,"for-date-and-time":new Date}})]}}],null,!0)}):e._e(),e._v(" "),t.classifications&&t.classifications.length>0?n("tb-w-classification",{attrs:{classification:t.classifications[0]}}):e._e()]},proxy:!0}],null,!0)},[e._v("\n\n                    "+e._s(t.name)+"\n\n                    ")])],1)})),e._v(" "),e.areaHighlights.length>6?n("tb-w-show-all",{attrs:{href:e.buildUrl({name:"article.list",query:{params:e.ShowAllFilterParams}})}},[e._v("\n                "+e._s(e.$t("message.showAll"))+"\n            ")]):e._e()],2)]},proxy:!0}])},[e._v("\n    "+e._s(e.$t("message.ourRecommendations"))+"\n    ")])};o._withStripped=!0;var i=n("VjoN"),s={name:"TbWAreaHighlights",props:{areaHighlights:{type:Array,required:!0}},computed:{ShowAllFilterParams(){return Object(i.b)({filter:{id:this.areaHighlights.map(e=>e.id)}})}},i18n:{fallbackLocale:"de",silentFallbackWarn:"undefined"==typeof window,messages:{de:{message:{ourRecommendations:"Unsere Empfehlungen",showAll:"Alle anzeigen"}},en:{message:{ourRecommendations:"Our recommendations",showAll:"Show all"}},fr:{message:{ourRecommendations:"Nos recommandations",showAll:"Afficher tout"}},it:{message:{ourRecommendations:"I nostri consigli",showAll:"Mostra tutto"}},es:{message:{ourRecommendations:"Nuestras recomendaciones",showAll:"Mostrar todo"}},nl:{message:{ourRecommendations:"Onze aanbevelingen",showAll:"Toon alles"}},cz:{message:{ourRecommendations:"Naše doporučení",showAll:"Ukázat vše"}}}}},r=n("KHd+"),a=Object(r.a)(s,o,[],!1,null,null,null);a.options.__file="node_modules/@newland/toubiz-widget/src/components/tb-w-area-highlights.vue";t.default=a.exports}}]);