(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[136,203],{"7yoQ":function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}));var s=n("6dQ1");function r(e){return Object(s.a)()?t.from(e,"utf-8").toString("base64"):btoa(e)}function i(e){return Object(s.a)()?t.from(e,"base64").toString("utf-8"):atob(e)}}).call(this,n("tjlA").Buffer)},FArd:function(t,e,n){"use strict";n.r(e);var s=function(){var t=this.$createElement,e=this._self._c||t;return e("a",{staticClass:"tb-w-module-link flex justify-start items-center",attrs:{href:this.href}},[e("div",{staticClass:"tb-w-module-link__icon-wrapper rounded-full border border-primary-500 h-12 w-12 flex flex-shrink-0 justify-center items-center mr-4"},[e("tb-w-icon",{staticClass:"tb-w-module-link__icon text-gray-700",attrs:{icon:this.icon,size:"1.5"}})],1),this._v(" "),this.$slots.default?e("p",{staticClass:"tb-w-module-link__label font-bold text-lg text-gray-800 break-words border-b border-link-100"},[this._t("default")],2):this._e()])};s._withStripped=!0;var r={props:{icon:{type:String,required:!0},href:{type:String,required:!0}}},i=n("KHd+"),o=Object(i.a)(r,s,[],!1,null,null,null);o.options.__file="node_modules/@newland/toubiz-widget/src/components/basic/tb-w-module-link.vue";e.default=o.exports},"K/Ml":function(t,e,n){"use strict";n.r(e);var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.elements.length?n("tb-w-section",{scopedSlots:t._u([{key:"content",fn:function(){return[n("div",{staticClass:"tb-w-module-links grid grid-cols-1 col-gap-4 row-gap-8",class:{"grid-cols-2":t.$eq.sm,"grid-cols-3":t.$eq.md,"grid-cols-4":t.$eq.lg}},t._l(t.elements,(function(e){return n("tb-w-module-link",{key:e.name,attrs:{icon:e.icon,href:t.buildListUrl(e)}},[t._v("\n                    "+t._s(e.name)+"\n                ")])})),1)]},proxy:!0}],null,!1,2898521665)}):t._e()],1)};s._withStripped=!0;var r=n("VjoN"),i=n("FArd"),o=n("qV7p"),l={name:"TbWModuleLinks",components:{TbWModuleLink:i.default},data:()=>({elements:[]}),props:{articleId:{type:String,required:!0},articleCategoryId:{type:String,required:!0}},async created(){this.setElements(this.$store.state.elements),this.unsubscribe=this.$store.subscribe(async(t,e)=>{"setElements"===t.type&&this.setElements(e.elements)})},beforeDestroy(){this.unsubscribe()},methods:{setElements(t){const e=this.$store.state.displayConfig.hiddenElements;this.elements=t.filter(t=>!e.includes(t.slug))},buildListUrl(t){let e={name:null,query:{params:Object(r.b)({predefinedParams:{filter:{area:this.articleId,element:t.slug}},filter:{dynamicFields:{}}})}};switch(t.type){case"article":e.name="article.list";break;case"event":e.name="event.list";break;default:return""}return this.buildUrl(e)}},eq:{breakpoints:{sm:{minWidth:o.a.sm},md:{minWidth:o.a.md},lg:{minWidth:o.a.lg}}}},a=n("KHd+"),u=Object(a.a)(l,s,[],!1,null,null,null);u.options.__file="node_modules/@newland/toubiz-widget/src/components/basic/tb-w-module-links.vue";e.default=u.exports},VjoN:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}));var s=n("7yoQ");function r(t){return encodeURIComponent(Object(s.b)(JSON.stringify(t)))}const i={created(){for(const t of this.$options.urlState)this.restoreStateFromUrl(t),this.$watch(t,e=>this.saveStateToUrl(t,e),{deep:!0})},methods:{saveStateToUrl(t,e=this[t]){const n=Object.assign({},this.$route.query);n[t]=r(e),this.$router.push({name:this.$route.name,query:n}).catch(t=>{if(!(""+t.message).includes("redundant navigation"))throw t})},restoreStateFromUrl(t){if(!this.$route.query[t])return null;try{const e=function(t){return JSON.parse(Object(s.a)(decodeURIComponent(t)))}(this.$route.query[t]);return this.$set(this,t,e),e}catch(e){return console.warn(`Could not restore state ${t} from URL parameter ${t}`,e),null}}}}},qV7p:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));const s={xs:366,sm:592,md:720,lg:976,xl:1232}}}]);