(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[97,161],{FArd:function(e,t,r){"use strict";r.r(t);var s=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()])};s._withStripped=!0;var n={props:{icon:{type:String,required:!0},href:{type:String,required:!0}}},i=r("KHd+"),o=Object(i.a)(n,s,[],!1,null,null,null);o.options.__file="node_modules/@newland/toubiz-widget/src/components/basic/tb-w-module-link.vue";t.default=o.exports},"K/Ml":function(e,t,r){"use strict";r.r(t);var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[e.elements.length?r("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 r("tb-w-module-link",{key:t.name,attrs:{icon:t.icon,href:e.buildListUrl(t)}},[e._v("\n            "+e._s(t.name)+"\n        ")])})),1):e._e()])};s._withStripped=!0;var n=r("VjoN"),i=r("FArd"),o=r("qV7p"),l={name:"TbWModuleLinks",components:{TbWModuleLink:i.default},data:function(){return{elements:[]}},props:{articleId:{type:String,required:!0},articleCategoryId:{type:String,required:!0}},async created(){this.elements=this.$store.state.elements,this.unsubscribe=this.$store.subscribe(async(e,t)=>{"setElements"===e.type&&(this.elements=t.elements)})},beforeDestroy(){this.unsubscribe()},methods:{buildListUrl(e){let t={name:null,query:{params:Object(n.b)({predefinedParams:{filter:{area:this.articleId,element:e.slug}}})}};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:o.a.xs},md:{minWidth:o.a.md},lg:{minWidth:o.a.lg}}}},a=r("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";t.default=u.exports},VjoN:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return i}));var s=r("7yoQ");function n(e){return encodeURIComponent(Object(s.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 r=Object.assign({},this.$route.query);r[e]=n(t),this.$router.push({name:this.$route.name,query:r}).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(s.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,r){"use strict";r.d(t,"a",(function(){return s}));const s={xs:327,sm:592,md:720,lg:976,xl:1232}}}]);