(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[128,155],{HSzq:function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.displayTags?i("div",{staticClass:"tb-w-article-filter__tags mt-4"},[e.filter.categories.length?e._l(e.filter.categories,(function(t){return i("tb-w-filter-tag",{key:t,attrs:{id:t},on:{"remove-filter":function(t){return e.$emit("remove","categories",t)}}},[e._v("\n            "+e._s(e.getCategoryName(t))+"\n        ")])})):e._e(),e._v(" "),e.filter.areas.length?e._l(e.filter.areas,(function(t){return i("tb-w-filter-tag",{key:t,attrs:{id:t},on:{"remove-filter":function(t){return e.$emit("remove","areas",t)}}},[e._v("\n            "+e._s(e.getAreaName(t))+"\n        ")])})):e._e(),e._v(" "),e.filter.cities.length?e._l(e.filter.cities,(function(t){return i("tb-w-filter-tag",{key:t,attrs:{id:t},on:{"remove-filter":function(t){return e.$emit("remove","cities",t)}}},[e._v("\n            "+e._s(e.getCityName(t))+"\n        ")])})):e._e(),e._v(" "),e.displayDynamicFieldTags?e._l(e.currentlyFilteredFields,(function(t){return i("tb-w-filter-tag",{key:t,attrs:{id:t},on:{"remove-filter":function(t){return e.$emit("remove","dynamicFields",t)}}},[e._v("\n            "+e._s(e.getDynamicFieldName(t))+"\n        ")])})):e._e(),e._v(" "),e.filter.highlight?[i("tb-w-filter-tag",{attrs:{id:"highlight"},on:{"remove-filter":function(t){return e.$emit("remove","highlight")}}},[e._v("\n            "+e._s(e.$t("message.tip"))+"\n        ")])]:e._e()],2):i("div")};r._withStripped=!0;var n={name:"TbWArticleFilterTags",components:{TbWFilterTag:i("sMTv").default},props:{categories:{type:Object,default:()=>({})},areas:{type:Object,default:()=>({})},cities:{type:Object,default:()=>({})},dynamicFields:{type:Array,default:()=>[]}},computed:{filter(){return this.$store.state.filters.articles.filter},displayTags(){return this.filter.categories.length>0||this.filter.areas.length>0||this.filter.cities.length>0||Object.keys(this.filter.dynamicFields).length>0||this.filter.highlight},currentlyFilteredFields(){const e=[];return Object.values(this.filter.dynamicFields).forEach(t=>{e.push(...t)}),e},displayDynamicFieldTags(){var e;return Object.keys(this.filter.dynamicFields).length&&(null===(e=this.dynamicFields)||void 0===e?void 0:e.length)}},methods:{getCategoryName(e){return this.categories[e].name},getAreaName(e){return this.areas[e]},getCityName(e){return this.cities[e]},getDynamicFieldName(e){return this.dynamicFields.find(t=>t.id===e).value}},i18n:{fallbackLocale:"de",silentFallbackWarn:"undefined"==typeof window,messages:{de:{message:{tip:"Tipp"}},en:{message:{tip:"Tip"}},fr:{message:{tip:"Tip"}},it:{message:{tip:"Mancia"}},es:{message:{tip:"Propina"}},nl:{message:{tip:"Tip"}},cz:{message:{tip:"Spropitné"}}}}},s=i("KHd+"),l=Object(s.a)(n,r,[],!1,null,null,null);l.options.__file="node_modules/@newland/toubiz-widget/src/components/tb-w-article-filter-tags.vue";t.default=l.exports},sMTv:function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e.$createElement;return(e._self._c||t)("tb-w-button",{staticClass:"flex-shrink-0",attrs:{icon:"times-circle-light",variant:"ghost"},on:{click:function(t){return e.$emit("remove-filter",e.id)}}},[e._t("default")],2)};r._withStripped=!0;var n={props:{id:{type:String,default:null}}},s=i("KHd+"),l=Object(s.a)(n,r,[],!1,null,null,null);l.options.__file="node_modules/@newland/toubiz-widget/src/components/basic/tb-w-filter-tag.vue";t.default=l.exports}}]);