(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[122],{L8lI:function(e,t,n){"use strict";n.r(t);var r=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.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]),href:e.websiteOrWidgetHref(t),type:"large"},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)})),1)]},proxy:!0}])},[e._t("default")],2)};r._withStripped=!0;var o=n("VjoN"),i={props:{areaCollections:{type:Array,required:!0},isWebsite:{type:Boolean,default:!1}},methods:{websiteOrWidgetHref(e){return this.isWebsite?this.$router.resolve({name:"collection.detail",params:{id:e.id}}).href:this.buildUrl({name:e.type+".list",query:{params:this.getCollectionListParams(e.id)}})},getCollectionListParams:e=>Object(o.b)({predefinedParams:{filter:{inCollection:e}}})}},s=n("KHd+"),l=Object(s.a)(i,r,[],!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 o})),n.d(t,"a",(function(){return i}));var r=n("7yoQ");function o(e){return encodeURIComponent(Object(r.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,t=this[e]){const n=Object.assign({},this.$route.query);n[e]=o(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(r.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}}}}}}]);