(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[266],{"7BfZ":function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var r=i("VjoN");function n(t,e,i,n,o){let s={};return n&&(s.categories=[String(n)]),o&&(s.dynamicFields=o),{name:t+".list",query:{params:Object(r.b)({predefinedParams:{apiQueryState:{filter:{element:e,area:i}}},apiQueryState:{filter:s}})}}}},"7yoQ":function(t,e,i){"use strict";(function(t){i.d(e,"b",(function(){return n})),i.d(e,"a",(function(){return o}));var r=i("6dQ1");function n(e){return Object(r.b)()?t.from(e,"utf-8").toString("base64"):btoa(e)}function o(e){return Object(r.b)()?t.from(e,"base64").toString("utf-8"):atob(e)}}).call(this,i("tjlA").Buffer)},"KHd+":function(t,e,i){"use strict";function r(t,e,i,r,n,o,s,a){var u,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=i,c._compiled=!0),r&&(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__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=u):n&&(u=a?function(){n.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:n),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}}i.d(e,"a",(function(){return r}))},VjoN:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"a",(function(){return o}));var r=i("7yoQ");function n(t){return encodeURIComponent(Object(r.b)(JSON.stringify(t)))}const o={async 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 await 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"),o={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))}}},s=i("KHd+"),a=Object(s.a)(o,r,[],!1,null,null,null);e.default=a.exports}}]);