(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[120],{VjoN:function(t,e,r){"use strict";r.d(e,"b",(function(){return o})),r.d(e,"a",(function(){return i}));var n=r("7yoQ");function o(t){return encodeURIComponent(Object(n.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 r=Object.assign({},this.$route.query);r[t]=o(e),this.$router.push({name:this.$route.name,query:r}).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(n.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}}}}},hkNU:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this.$createElement;return(this._self._c||t)("tb-w-button",{staticClass:"tb-w-corona-category-filter-link mt-4",attrs:{href:this.buildListUrl(),variant:"secondary",target:"_blank"}},[this._v("\n    "+this._s(this.category.label)+"\n")])};n._withStripped=!0;var o=r("VjoN"),i={props:{element:{type:String,required:!0},category:{type:Object,default:null},id:{type:String,required:!0}},methods:{buildListUrl(){let t={name:this.category.type+".list",query:{params:Object(o.b)({predefinedParams:{filter:{element:this.element,area:this.id}},filter:this.category.id?{categories:[String(this.category.id)]}:{}})}};return this.buildUrl(t)}}},s=r("KHd+"),a=Object(s.a)(i,n,[],!1,null,null,null);a.options.__file="node_modules/@newland/toubiz-widget/src/components/corona-information/tb-w-corona-category-filter-link.vue";e.default=a.exports}}]);