(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[139],{"7BfZ":function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r("VjoN");function o(t,e,r,o,i){let s={};return o&&(s.categories=[String(o)]),i&&(s.dynamicFields=i),{name:t+".list",query:{params:Object(n.b)({predefinedParams:{filter:{element:e,area:r}},filter:s})}}}},"7yoQ":function(t,e,r){"use strict";(function(t){r.d(e,"b",(function(){return o})),r.d(e,"a",(function(){return i}));var n=r("6dQ1");function o(e){return Object(n.a)()?t.from(e,"utf-8").toString("base64"):btoa(e)}function i(e){return Object(n.a)()?t.from(e,"base64").toString("utf-8"):atob(e)}}).call(this,r("tjlA").Buffer)},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("7BfZ"),i={props:{element:{type:String,required:!0},category:{type:Object,default:null},id:{type:String,required:!0}},methods:{buildListUrl(){return this.buildUrl(Object(o.a)(this.category.type,this.element,this.id,this.category.id))}}},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}}]);