(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[173],{"7BfZ":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("VjoN");function r(t,e,n,r,o){let s={};return r&&(s.categories=[String(r)]),o&&(s.dynamicFields=o),{name:t+".list",query:{params:Object(i.b)({predefinedParams:{apiQueryState:{filter:{element:e,area:n}}},apiQueryState:{filter:s}})}}}},"7yoQ":function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o}));var i=n("6dQ1");function r(e){return Object(i.b)()?t.from(e,"utf-8").toString("base64"):btoa(e)}function o(e){return Object(i.b)()?t.from(e,"base64").toString("utf-8"):atob(e)}}).call(this,n("tjlA").Buffer)},"KHd+":function(t,e,n){"use strict";function i(t,e,n,i,r,o,s,a){var u,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=u):r&&(u=a?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,e){return u.call(e),l(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,u):[u]}return{exports:t,options:c}}n.d(e,"a",(function(){return i}))},VjoN:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o}));var i=n("7yoQ");function r(t){return encodeURIComponent(Object(i.b)(JSON.stringify(t)))}const o={created(){for(const t of this.$options.urlState)this.restoreStateFromUrl(t),this.$watch(t,e=>{this.saveStateToUrl(t,e)},{deep:!0})},methods:{saveStateToUrl(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this[t];const n=Object.assign({},this.$route.query);n[t]=r(e),this.$router.replace({name:this.$route.name,query:n}).catch(t=>{if(!(""+t.message).includes("redundant navigation"))throw t})},restoreStateFromUrl(t){var e;if(this.$route.query[t])try{const n=(e=this.$route.query[t],JSON.parse(Object(i.a)(decodeURIComponent(e))));this.$set(this,t,n),"params"===t&&this.initialListFetch(n)}catch(e){console.warn(`Could not restore state ${t} from URL parameter ${t}`,e),this.initialListFetch()}else this.initialListFetch()}}}},hkNU:function(t,e,n){"use strict";n.r(e);var i=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")])};i._withStripped=!0;var r=n("7BfZ"),o={props:{element:{type:String,required:!0},category:{type:Object,default:null},id:{type:String,required:!0}},methods:{buildListRoute(){return this.buildWidgetRoute(Object(r.a)(this.category.type,this.element,this.id,this.category.id))}}},s=n("KHd+"),a=Object(s.a)(o,i,[],!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}}]);