(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[149],{G4OV:function(e,t,a){"use strict";function n(e){return null===e?"gray":e<50?"green":e<75?"orange":"red"}function s(e){return"percentage"===(null==e?void 0:e.currentLevelType)||"level"===(null==e?void 0:e.currentLevelType)?n(e.currentLevel):"absolute"===(null==e?void 0:e.currentLevelType)?e.totalCapacity?n(e.currentLevel/e.totalCapacity*100):"gray":null}function c(){const e=new Date;let t=e.getDay()-1;-1===t&&(t=6);const a=e.getHours(),n=e.getMinutes(),s=parseFloat(`${a}.${n}`);let c=7;return s>=19.3&&s<22.3?c=6:s>=16.3?c=5:s>=10.3?c=4:s>=13.3?c=3:s>=7.3?c=2:s>=4.3?c=1:s>=1.3&&(c=0),[t,c]}a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return s})),a.d(t,"a",(function(){return c}))},un0z:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"tb-w-occupancy-card-current flex text-gray-800"},[a("tb-w-occupancy-signal",{staticClass:"mr-4",attrs:{status:e.getStatusColor(e.currentStatus)}}),e._v(" "),a("div",{},[a("h3",{staticClass:"text-3xl font-bold"},["absolute"===e.occupancyType?[e._v("\n                "+e._s(e.currentOccupancy)+" "+e._s(e.$t("message.visitors"))+"\n            ")]:"percentage"===e.occupancyType?[e._v("\n                "+e._s(e.currentOccupancy)+" %\n            ")]:"level"===e.occupancyType?[e._v("\n                "+e._s(e.levelOccupancyString)+"\n            ")]:e._e()],2),e._v(" "),a("p",{staticClass:"text-xs"},[e._v("\n            ("+e._s(e.$t("message.lastUpdate"))+" | "+e._s(e.time)+")\n        ")]),e._v(" "),e.maxOccupancy?a("p",{staticClass:"font-bold mt-4"},[e._v("\n            max. "+e._s(e.maxOccupancy)+" "+e._s(e.$t("message.visitors"))+"\n        ")]):e._e()])],1)};n._withStripped=!0;var s=a("G4OV"),c={props:{currentOccupancy:{type:Number,required:!0},maxOccupancy:{type:Number,default:null},occupancyType:{type:String,default:"absolute"},time:{type:String,required:!0}},computed:{currentStatus(){return"percentage"===this.occupancyType||"level"===this.occupancyType?this.currentOccupancy:"absolute"===this.occupancyType&&this.maxOccupancy?this.currentOccupancy/this.maxOccupancy*100:0},levelOccupancyString(){switch(this.currentOccupancy){case 30:return"geringe Auslastung";case 60:return"mäßige Auslastung";case 90:return"hohe Auslastung";default:return"keine Information verfügbar"}}},methods:{getStatusColor:s.b},i18n:{fallbackLocale:"de",silentFallbackWarn:"undefined"==typeof window,messages:{de:{message:{visitors:"Besucher",lastUpdate:"Letzte Aktualisierung: Heute"}},en:{message:{visitors:"visitors",lastUpdate:"Last update: Today"}},fr:{message:{visitors:"visiteurs",lastUpdate:"Dernière mise à jour : aujourd'hui"}},it:{message:{visitors:"visitatori",lastUpdate:"Ultimo aggiornamento: Oggi"}},es:{message:{visitors:"visitantes",lastUpdate:"Última actualización: Hoy"}},nl:{message:{visitors:"bezoekers",lastUpdate:"Laatst bijgewerkt op: vandaag"}},cz:{message:{visitors:"návštěvníků",lastUpdate:"Poslední aktualizace: Dnes"}}}}},r=a("KHd+"),u=Object(r.a)(c,n,[],!1,null,null,null);u.options.__file="node_modules/@newland/toubiz-widget/src/components/visitor-channeling/tb-w-occupancy-card-current.vue";t.default=u.exports}}]);