(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[157],{"9/Yv":function(e,n,t){e.exports=t.p+"14e01779ba5932d02b2507ad38f70b16.svg"},nTDG:function(e,n,t){e.exports=t.p+"5167b22a715d8f9ca58236f8eefb863d.svg"},ngXe:function(e,n,t){"use strict";t.r(n);var i=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"tb-w-corona-information-section"},[t("tb-w-section",{class:{"md:mb-24":!(e.rkiIncidence&&e.rkiIncidence.value)},attrs:{background:""},scopedSlots:e._u([{key:"content",fn:function(){return[t("div",{staticClass:"flex flex-col-reverse md:flex-row md:justify-between md:items-start relative"},[t("div",{staticClass:"mt-6 md:w-1/2 md:mt-0"},[t("h3",{staticClass:"text-2xl text-gray-800 font-bold"},[e._v("\n                        "+e._s(e.$t("message.yourSafety"))+"\n                    ")]),e._v(" "),t("p",{staticClass:"mt-4 rte",domProps:{innerHTML:e._s(e.$t("message.ourService"))}}),e._v(" "),t("tb-w-button",{staticClass:"mt-8",on:{click:function(n){e.displayCoronaInformation=!0}}},[e._v("\n                        "+e._s(e.$t("message.discoverPossibilities"))+"\n                    ")])],1),e._v(" "),e.rkiIncidence&&e.rkiIncidence.value?t("tb-w-info-card",{staticClass:"bg-white",attrs:{icon:"analytics",color:e.incidenceColor},scopedSlots:e._u([{key:"title",fn:function(){return[e._v("\n                        "+e._s(e.$t("message.incidence"))+"\n                    ")]},proxy:!0},{key:"text",fn:function(){return[e._v("\n                        "+e._s(e.$t("message.incidenceDescription"))+"\n                        "),t("span",{staticClass:"text-xs text-gray-600 mt-2 block"},[e._v(e._s(e.$t("message.forDistrict"))+" "+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,3338857758)}):t("img",{staticClass:"w-full md:absolute md:max-w-sm md:right-0",attrs:{src:e.sectionImage,alt:""}})],1)]},proxy:!0}])}),e._v(" "),t("tb-w-modal",{attrs:{show:e.displayCoronaInformation,width:"screen","seamless-content":""},on:{close:function(n){e.displayCoronaInformation=!1}}},["event"===e.type?t("tb-w-corona-modal-event",{attrs:{event:e.item,type:e.type}}):t("tb-w-corona-modal-article",{attrs:{article:e.item,type:e.type}})],1)],1)};i._withStripped=!0;var o=t("9/Yv"),s=t.n(o),r=t("nTDG"),a=t.n(r),c=t("6dQ1"),l=t("L2JU"),d={props:{item:{type:Object,required:!0},type:{type:String,required:!0,validator:e=>["city","point","event"].includes(e)}},data:()=>({displayCoronaInformation:!1,coronaCityImage:s.a,coronaPointImage:a.a}),async created(){Object(c.a)()||(["city","point","event"].includes(this.type)||console.warn(`Unsupported type ${this.type} set for corona information section.\n                    Type should be either city, point or event`),this.storeCoronaInfoType(this.type))},computed:{...Object(l.d)(["rkiIncidence"]),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)}},i18n:{fallbackLocale:"en",silentFallbackWarn:"undefined"==typeof window,messages:{de:{message:{yourSafety:"Alles rund um Ihre Sicherheit",ourService:"\n                    <strong>Unser Service für Sie während der Pandemie</strong><br>\n                        <ul>\n                            <li>Aktuelle Fallzahlen vom RKI</li>\n                            <li>Informationen zu den wichtigsten Verordnungen</li>\n                            <li>Alles rund um Angebote und Schutzmaßnahmen</li>\n                        </ul>\n                        ",incidence:"Inzidenz",incidenceDescription:"Fälle in den letzten 7 Tagen je 100.000 Einwohner",forDistrict:"für den Kreis",discoverPossibilities:"Möglichkeiten entdecken"}},en:{message:{yourSafety:"All about your safety",ourService:"\n                        <strong>Our service during the pandemic</strong><br>\n                        <ul>\n                            <li>Current numbers provided by the RKI</li>\n                            <li>Information about the most important regulations</li>\n                            <li>All about services and and safety measures</li>\n                        </ul>\n                        ",incidence:"Incidence",incidenceDescription:"cases in the last 7 days per 100,000 residents",forDistrict:"for the district",discoverPossibilities:"Discover possibilities"}}}}},u=t("KHd+"),m=Object(u.a)(d,i,[],!1,null,null,null);m.options.__file="node_modules/@newland/toubiz-widget/src/components/corona-information/tb-w-corona-information-section.vue";n.default=m.exports}}]);