(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[297],{"7BfZ":function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var r=i("VjoN");function n(t,e,i,n,s){let o={};return n&&(o.categories=[String(n)]),s&&(o.dynamicFields=s),{name:t+".list",query:{params:Object(r.b)({predefinedParams:{apiQueryState:{filter:{element:e,area:i}}},apiQueryState:{filter:o}})}}}},"7yoQ":function(t,e,i){"use strict";(function(t){i.d(e,"b",(function(){return n})),i.d(e,"a",(function(){return s}));var r=i("6dQ1");function n(e){return Object(r.b)()?t.from(e,"utf-8").toString("base64"):btoa(e)}function s(e){return Object(r.b)()?t.from(e,"base64").toString("utf-8"):atob(e)}}).call(this,i("tjlA").Buffer)},VjoN:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"a",(function(){return s}));var r=i("7yoQ");function n(t){return encodeURIComponent(Object(r.b)(JSON.stringify(t)))}const s={created(){if(this.$router)for(const t of this.$options.urlState)this.restoreStateFromUrl(t),this.$watch(t,e=>{this.saveStateToUrl(t,e)},{deep:!0});else this.initialListFetch()},methods:{saveStateToUrl(t,e=this[t]){if(!this.$router)return;const i=Object.assign({},this.$route.query);i[t]=n(e),this.$router.replace({name:this.$route.name,query:i}).catch(t=>{if(!(""+t.message).includes("redundant navigation"))throw t})},restoreStateFromUrl(t){var e;if(this.$route.query[t])try{const i=(e=this.$route.query[t],JSON.parse(Object(r.a)(decodeURIComponent(e))));this.$set(this,t,i),"params"===t&&this.initialListFetch(i)}catch(e){console.warn(`Could not restore state ${t} from URL parameter ${t}`,e),this.initialListFetch()}else this.initialListFetch()}}}},hkNU:function(t,e,i){"use strict";i.r(e);var r=function(){var t,e=this.$createElement;return(this._self._c||e)("tb-w-button",{staticClass:"tb-w-corona-category-filter-link mt-4",attrs:{href:null===(t=this.buildListRoute())||void 0===t?void 0:t.url,variant:"secondary",target:"_blank","widget-route":this.buildListRoute()}},[this._v("\n    "+this._s(this.category.label)+"\n")])};r._withStripped=!0;var n=i("7BfZ"),s={props:{element:{type:String,required:!0},category:{type:Object,default:null},id:{type:String,required:!0}},methods:{buildListRoute(){return this.buildWidgetRoute(Object(n.a)(this.category.type,this.element,this.id,this.category.id))}}},o=i("KHd+"),a=Object(o.a)(s,r,[],!1,null,null,null);e.default=a.exports}}]);