(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[291],{"7BfZ":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("VjoN");function r(t,e,n,r,s){let o={};return r&&(o.categories=[String(r)]),s&&(o.dynamicFields=s),{name:t+".list",query:{params:Object(i.b)({predefinedParams:{apiQueryState:{filter:{element:e,area:n}}},apiQueryState:{filter:o}})}}}},"7yoQ":function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return s}));var i=n("6dQ1");function r(e){return Object(i.b)()?t.from(e,"utf-8").toString("base64"):btoa(e)}function s(e){return Object(i.b)()?t.from(e,"base64").toString("utf-8"):atob(e)}}).call(this,n("tjlA").Buffer)},VjoN:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return s}));var i=n("7yoQ");function r(t){return encodeURIComponent(Object(i.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 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()}}}},Y4Dx:function(t,e,n){"use strict";n.r(e);var i=function(){var t,e=this,n=e.$createElement,i=e._self._c||n;return i("tb-w-section",{attrs:{background:e.background,wide:"",gaps:""},scopedSlots:e._u([{key:"content",fn:function(){return[i("tb-w-corona-element-links",{attrs:{type:e.elementInfo.slug,article:e.article}}),e._v(" "),i("tb-w-collapse",{staticClass:"mt-16",scopedSlots:e._u([{key:"trigger",fn:function(t){var n=t.toggle,r=t.isOpen;return[i("button",{staticClass:"w-full font-bold flex items-center text-left focus:outline-none",on:{click:n}},[i("tb-w-icon",{staticClass:"transform transition-transform duration-150 mr-6",class:{"rotate-180":r},attrs:{icon:"chevron-down"}}),e._v(" "),i("h3",{staticClass:"text-lg text-gray-800 font-bold"},[e._v("\n                        Was darf ich aktuell?\n                    ")])],1)]}}])},[e._v(" "),e.hasAreaNotices?i("tb-w-corona-element-info-table",{attrs:{"element-info":e.elementInfo}}):e._e()],1)]},proxy:!0}])},[i("span",{staticClass:"flex justify-start items-center"},[i("span",{staticClass:"rounded-full border bg-white border-primary-500 h-14 w-14 flex flex-shrink-0 justify-center items-center mr-4"},[i("tb-w-icon",{staticClass:"text-gray-700",attrs:{icon:e.elementInfo.icon,size:"1.5"}})],1),e._v(" "),i("a",{staticClass:"font-bold text-2xl text-gray-800 break-words border-b border-primary-500",attrs:{href:null===(t=e.listLink)||void 0===t?void 0:t.url,target:"_blank"},on:e._d({},[e.conditionalClick,e.navigate])},[e._v("\n            "+e._s(e.elementInfo.name)+"\n        ")])])])};i._withStripped=!0;var r=n("7BfZ"),s={mixins:[n("kDWq").a],props:{background:{type:Boolean,default:!1},elementInfo:{type:Object,required:!0},article:{type:Object,required:!0}},computed:{hasAreaNotices(){return this.$store.state.areaNotices.length},listLink(){let t="";return t="events"===this.elementInfo.slug?"event":"article",this.buildWidgetRoute(Object(r.a)(t,this.elementInfo.slug,this.article.id))}}},o=n("KHd+"),a=Object(o.a)(s,i,[],!1,null,null,null);e.default=a.exports},kDWq:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i={mounted(){var t;(null!=this&&this.$store.state.isToubizWebsite||null!=this&&this.$store.state.isAppWithRouterHistoryMode)&&this.$router&&void 0===this.widgetRoute&&console.warn("widgetRoute is undefined for widgetRouterHelper mixin that's in component "+(null===(t=this.$options)||void 0===t?void 0:t.name))},methods:{navigate(t){(function(t){if(!(null!=t&&t.metaKey||null!=t&&t.altKey||null!=t&&t.ctrlKey||null!=t&&t.shiftKey||null!=t&&t.defaultPrevented||void 0!==(null==t?void 0:t.button)&&0!==(null==t?void 0:t.button))){if(null!=t&&t.currentTarget&&null!=t&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return null!=t&&t.preventDefault&&t.preventDefault(),!0}})(t)&&this.$router&&this.$router.push(this.widgetRoute.route)}},computed:{conditionalClick(){var t;return(null!=this&&this.$store.state.isToubizWebsite||null!=this&&this.$store.state.isAppWithRouterHistoryMode)&&null!=this&&this.$router&&null!=this&&null!==(t=this.widgetRoute)&&void 0!==t&&t.route?"click":null}}}}}]);