(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[223],{"7yoQ":function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return i}));var o=n("6dQ1");function s(t){return Object(o.b)()?e.from(t,"utf-8").toString("base64"):btoa(t)}function i(t){return Object(o.b)()?e.from(t,"base64").toString("utf-8"):atob(t)}}).call(this,n("tjlA").Buffer)},"KHd+":function(e,t,n){"use strict";function o(e,t,n,o,s,i,r,a){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),o&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),r?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),s&&s.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},c._ssrRegister=l):s&&(l=a?function(){s.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:s),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return o}))},L8lI: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",{staticClass:"tb-w-area-collections",scopedSlots:e._u([{key:"content",fn:function(){return[n("tb-w-slider",[e._l(e.areaCollections.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,"collection",[null,376]),"widget-route":e.buildWidgetRoute({name:"collection.detail",params:{id:t.id,type:t.type}}),type:"large","open-in-new-tab":e.openInNewTabOnDetail},scopedSlots:e._u([t.topline?{key:"topline",fn:function(){return[e._v("\n                        "+e._s(t.topline)+"\n                    ")]},proxy:!0}:null,{key:"thumbnail",fn:function(){return[n("tb-w-teaser-card-thumbnails",{attrs:{"thumbnails-collection":t}})]},proxy:!0}],null,!0)},[e._v("\n\n                    "+e._s(t.name)+"\n                    ")])],1)})),e._v(" "),e.areaCollections.length>6?n("tb-w-show-all",{attrs:{"widget-route":e.buildWidgetRoute({name:"collection.list",query:{params:e.ShowAllFilterParams}})}},[e._v("\n                "+e._s(e.$t("message.showAll"))+"\n            ")]):e._e()],2)]},proxy:!0}])},[e._t("default")],2)};o._withStripped=!0;var s=n("L2JU"),i=n("VjoN"),r={props:{areaCollections:{type:Array,required:!0},isWebsite:{type:Boolean,default:!1}},computed:{...Object(s.e)("displayConfig",["openInNewTabOnDetail"]),ShowAllFilterParams(){return Object(i.b)({apiQuery:{filter:{id:this.areaCollections.map(e=>e.id)}}})}},i18n:{fallbackLocale:"de",silentFallbackWarn:"undefined"==typeof window,messages:{de:{message:{showAll:"Alle anzeigen"}},en:{message:{showAll:"Show all"}},fr:{message:{showAll:"Afficher tout"}},it:{message:{showAll:"Mostra tutto"}},es:{message:{showAll:"Mostrar todo"}},nl:{message:{showAll:"Toon alles"}},cs:{message:{showAll:"Ukázat vše"}}}}},a=n("KHd+"),l=Object(a.a)(r,o,[],!1,null,null,null);l.options.__file="node_modules/@newland/toubiz-widget/src/components/tb-w-area-collections.vue";t.default=l.exports},VjoN:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return i}));var o=n("7yoQ");function s(e){return encodeURIComponent(Object(o.b)(JSON.stringify(e)))}const i={created(){for(const e of this.$options.urlState)this.restoreStateFromUrl(e),this.$watch(e,t=>{this.saveStateToUrl(e,t)},{deep:!0})},methods:{saveStateToUrl(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this[e];const n=Object.assign({},this.$route.query);n[e]=s(t),this.$router.replace({name:this.$route.name,query:n}).catch(e=>{if(!(""+e.message).includes("redundant navigation"))throw e})},restoreStateFromUrl(e){var t;if(this.$route.query[e])try{const n=(t=this.$route.query[e],JSON.parse(Object(o.a)(decodeURIComponent(t))));this.$set(this,e,n),"params"===e&&this.initialListFetch(n)}catch(t){console.warn(`Could not restore state ${e} from URL parameter ${e}`,t),this.initialListFetch()}else this.initialListFetch()}}}}}]);