(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[113,175],{FArd:function(e,t,s){"use strict";s.r(t);var n=function(){var e=this.$createElement,t=this._self._c||e;return t("a",{staticClass:"tb-w-module-link flex justify-start items-center",attrs:{href:this.href}},[t("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"},[t("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?t("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()])};n._withStripped=!0;var r={props:{icon:{type:String,required:!0},href:{type:String,required:!0}}},i=s("KHd+"),l=Object(i.a)(r,n,[],!1,null,null,null);l.options.__file="node_modules/@newland/toubiz-widget/src/components/basic/tb-w-module-link.vue";t.default=l.exports},"K/Ml":function(e,t,s){"use strict";s.r(t);var n=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[e.elements.length?s("tb-w-section",{scopedSlots:e._u([{key:"content",fn:function(){return[s("div",{staticClass:"tb-w-module-links grid grid-cols-1 col-gap-4 row-gap-8",class:{"grid-cols-2":e.$eq.sm,"grid-cols-3":e.$eq.md,"grid-cols-4":e.$eq.lg}},e._l(e.elements,(function(t){return s("tb-w-module-link",{key:t.name,attrs:{icon:t.icon,href:e.buildListUrl(t)}},[e._v("\n                    "+e._s(t.name)+"\n                ")])})),1)]},proxy:!0}],null,!1,2898521665)}):e._e()],1)};n._withStripped=!0;var r=s("VjoN"),i=s("FArd"),l=s("qV7p"),o={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(e,t)=>{"setElements"===e.type&&this.setElements(t.elements)})},beforeDestroy(){this.unsubscribe()},methods:{setElements(e){const t=this.$store.state.displayConfig.hiddenElements;this.elements=e.filter(e=>!t.includes(e.slug))},buildListUrl(e){let t={name:null,query:{params:Object(r.b)({predefinedParams:{filter:{area:this.articleId,element:e.slug}},filter:{dynamicFields:{}}})}};switch(e.type){case"article":t.name="article.list";break;case"event":t.name="event.list";break;default:return""}return this.buildUrl(t)}},eq:{breakpoints:{sm:{minWidth:l.a.sm},md:{minWidth:l.a.md},lg:{minWidth:l.a.lg}}}},a=s("KHd+"),u=Object(a.a)(o,n,[],!1,null,null,null);u.options.__file="node_modules/@newland/toubiz-widget/src/components/basic/tb-w-module-links.vue";t.default=u.exports},VjoN:function(e,t,s){"use strict";s.d(t,"b",(function(){return r})),s.d(t,"a",(function(){return i}));var n=s("7yoQ");function r(e){return encodeURIComponent(Object(n.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 s=Object.assign({},this.$route.query);s[e]=r(t),this.$router.push({name:this.$route.name,query:s}).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(n.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}}}}},qV7p:function(e,t,s){"use strict";s.d(t,"a",(function(){return n}));const n={xs:366,sm:592,md:720,lg:976,xl:1232}}}]);