(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[120],{"9/Yv":function(e,t,n){e.exports=n.p+"14e01779ba5932d02b2507ad38f70b16.svg"},nTDG:function(e,t,n){e.exports=n.p+"5167b22a715d8f9ca58236f8eefb863d.svg"},ngXe:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tb-w-corona-information-section"},[n("tb-w-section",{staticClass:"md:mb-24",attrs:{background:""},scopedSlots:e._u([{key:"content",fn:function(){return[n("div",{staticClass:"flex flex-col-reverse md:flex-row md:justify-between md:items-start"},[n("div",{staticClass:"mt-6 md:w-1/2 md:mt-0"},[n("h3",{staticClass:"text-2xl text-gray-800 font-bold"},[e._v("\n                        Covid-19 – Ihre Sicherheit liegt uns am Herzen\n                    ")]),e._v(" "),n("p",{staticClass:"mt-4"},[e._v("\n                        Stay at home – das gilt nun für noch ungewisse Zeit. Es finden sich dennoch einige Angebote, die man alleine, daheim oder auch mit Abstand genießen kann. Wir haben alle Sehnsucht danach, uns wieder frei zu bewegen – bis dahin halten wir zusammen!\n                    ")]),e._v(" "),n("tb-w-button",{staticClass:"mt-8",on:{click:function(t){e.displayCoronaInformation=!0}}},[e._v("\n                        Möglichkeiten entdecken\n                    ")])],1),e._v(" "),e.rkiIncidence&&e.rkiIncidence.value?n("tb-w-info-card",{staticClass:"bg-white",attrs:{icon:"analytics",color:e.incidenceColor},scopedSlots:e._u([{key:"title",fn:function(){return[e._v("\n                        Inzidenz\n                    ")]},proxy:!0},{key:"text",fn:function(){return[e._v("\n                        Fälle in den letzten 7 Tagen je 100.000 Einwohner\n                        "),n("span",{staticClass:"text-xs text-gray-600 mt-2 block"},[e._v("für den Kreis "+e._s(e.rkiIncidence.locationIdentifier.name))])]},proxy:!0},{key:"value",fn:function(){return[e._v("\n                        "+e._s(e.rkiIncidence.value)+"\n                    ")]},proxy:!0}],null,!1,2479801189)}):n("img",{staticClass:"w-full md:absolute md:max-w-sm md:right-0",attrs:{src:e.sectionImage,alt:""}})],1)]},proxy:!0}])}),e._v(" "),n("tb-w-modal",{attrs:{show:e.displayCoronaInformation,width:"screen","seamless-content":""},on:{close:function(t){e.displayCoronaInformation=!1}}},["event"===e.type?n("tb-w-corona-modal-event",{attrs:{event:e.item,type:e.type}}):n("tb-w-corona-modal-article",{attrs:{article:e.item,type:e.type}})],1)],1)};i._withStripped=!0;var o=n("9/Yv"),a=n.n(o),s=n("nTDG"),r=n.n(s),c=n("6dQ1"),l={props:{item:{type:Object,required:!0},type:{type:String,required:!0,validator:e=>["city","point","event"].includes(e)}},data:()=>({displayCoronaInformation:!1,coronaCityImage:a.a,coronaPointImage:r.a,rkiIncidence:null}),async created(){if(!Object(c.a)()){this.storeCoronaInfoType(this.type);let e="";switch(this.type){case"city":case"point":e="article";break;case"event":e="event";break;default:console.warn(`Unsupported type ${this.type} set for corona information section.\n                        Type should be either city, point or event`)}await this[e+"Repository"].fetch(this.item.id+"/areaNotices",{type:"cases7_per_100k"}).then(e=>this.rkiIncidence=e.payload.find(e=>"cases7_per_100k"===e.type))}},computed:{sectionImage(){return"city"===this.type?this.coronaCityImage:"point"===this.type||"event"===this.type?this.coronaPointImage:null},incidenceColor(){return this.rkiIncidence.value<15?"positive":this.rkiIncidence.value<30?"neutral":"negative"}},methods:{storeCoronaInfoType(e){this.$store.commit("setCoronaInfoType",e)}}},d=n("KHd+"),p=Object(d.a)(l,i,[],!1,null,null,null);p.options.__file="node_modules/@newland/toubiz-widget/src/components/corona-information/tb-w-corona-information-section.vue";t.default=p.exports}}]);