(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[168,182],{G4OV:function(e,n,t){"use strict";t.d(n,"c",(function(){return i})),t.d(n,"d",(function(){return o})),t.d(n,"b",(function(){return a})),t.d(n,"a",(function(){return l})),t.d(n,"e",(function(){return f}));var r=t("ZoCn"),u=t("Q3Ip"),c=t("sdSa");function i(e){return null===e?"gray":e<50?"green":e<75?"orange":"red"}function o(e){return e&&f(e)?"percentage"===e.currentLevelType||"level"===e.currentLevelType?i(e.currentLevel):"absolute"===e.currentLevelType&&e.totalCapacity?i(e.currentLevel/e.totalCapacity*100):"gray":"gray"}function a(e){const n=l();function t(){return function(){var n;if(null==e||null===(n=e.prediction)||void 0===n||!n.length)return!1;return e.prediction.some(e=>e.times.some(e=>e))}()?e.prediction[n[0]].times:null}if(f(e))return i(null==e?void 0:e.currentLevelPercentage);if(t()){return i(t()[n[1]])}return"gray"}function l(){const e=new Date;let n=e.getDay()-1;-1===n&&(n=6);return function(e,n,t){const r=parseFloat(`${n}.${t}`);let u=e,c=7;r>=22.3?c=7:r>=19.3?c=6:r>=16.3?c=5:r>=13.3?c=4:r>=10.3?c=3:r>=7.3?c=2:r>=4.3?c=1:r>=1.3?c=0:r>=0&&(c=7,u--);return[u,c]}(n,e.getHours(),e.getMinutes())}function f(e,n=12){if(!e||null==e.currentLevel||null==e.currentLevelUpdatedAt)return!1;return new Date(e.currentLevelUpdatedAt.replace(" ","T"))>function(e,n){Object(c.a)(2,arguments);var t=Object(r.a)(n);return Object(u.a)(e,36e5*t)}(new Date,-n)}},"YS/t":function(e,n,t){"use strict";function r(e){return JSON.parse(JSON.stringify(e))}t.d(n,"a",(function(){return r}))}}]);