{"version":3,"sources":["site.js","cookie-banner.js","translations.js"],"names":["initializeSelect2","jQuery","$","fn","select2","closeOnSelect","placeholder","this","data","initializeNotificationBell","on","hide","ajax","url","type","success","console","log","window","location","href","initializeLocalization","moment","getCultureFromCookie","locale","click","selectedCulture","post","culture","returnUrl","pathname","reload","initializeAjaxPartial","each","loadAjaxHtml","$this","timezone","Intl","DateTimeFormat","resolvedOptions","timeZone","content","document","getElementById","includes","clientWidth","get","html","handelTooltipPopoverActivation","hideAddOrRemoveWidgetButtons","hideMoveUpAndDownWidgetButtons","registrationNo","val","tokenId","done","removeClass","addClass","prop","fail","xhr","status","error","hostname","dataLayer","gtag","Date","cookie","split","some","item","ad_storage","analytics_storage","personalization_storage","functionality_storage","security_storage","cookieBanner","remove","classList","acceptButton","querySelector","addEventListener","event","dataset","cookieString","setFullYear","getFullYear","push","arguments","localizer","Count","State","Total","Inverter","Export","Import","Battery","Difference","Today","Yesterday","Production","Consumption","Expected","Actual","Household","Minutes","Hours","Days","Soc","Slope","YieldToday","InverterTempInner","InverterTemperature","YieldTotal","PowerDc1","PowerDc2","BATPower","FeedInPower","GridAPower","GridBPower","GridCPower","GridTotalPower","FeedInEnergy","EPSAPower","EPSBPower","EPSCPower","Vdc1","Vdc2","Idc1","Idc2","EPSAVoltage","EPSBVoltage","EPSCVoltage","EPSACurrent","EPSBCurrent","EPSCCurrent","BatteryCapacity","BatteryVoltage","BatteryTemperature","BatteryRemainEnergy","GridAVoltage","GridBVoltage","GridCVoltage","GridACurrent","GridBCurrent","GridCCurrent","FreqacA","FreqacB","FreqacC","Inner","Outer","On","Off","Previous","tr","word","isLowerCase","toLowerCase","charAt","toUpperCase","slice","uiCulture","getUiCultureFromCookie","hasOwnProperty","aspNetCoreCulture","getCookie","cname","name","ca","decodeURIComponent","i","length","c","substring","indexOf"],"mappings":"AAiCA,SAAAA,oBAEAC,QAAAC,EAAAC,GAAAC,UACAF,EAAA,oBAAAE,UACAF,EAAA,qBAAAE,QAAA,CACAC,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AA,SAAAC,GAEA,IAAAC,EAAAD,EAAA,KAAAA,EAAA,GAAAE,cACAF,IAAAG,OAAA,GAAAC,cAAAJ,EAAAK,MAAA,GAEA,IAAAC,EAAAC,yBACA,OAAAzE,UAAA0E,eAAAR,IAAAlE,UAAAkE,GAAAQ,eAAAF,GACAL,EACAnE,UAAAkE,GAAAM,GAAAJ,cAEApE,UAAAkE,GAAAM,GAGAN,CACA,EAEA,SAAAnI,uBACA,IAAA4I,EAAAC,UAAA,uBAKA,OAJAD,IACAA,EAAA,qBAGAA,EAAAhG,MAAA,QAAAA,MAAA,QACA,CAEA,SAAA8F,yBACA,IAAAE,EAAAC,UAAA,uBAKA,OAJAD,IACAA,EAAA,qBAGAA,EAAAhG,MAAA,QAAAA,MAAA,UACA,CAEA,SAAAiG,UAAAC,GACA,IAAAC,EAAAD,EAAA,IAEAE,EADAC,mBAAA9H,SAAAwB,QACAC,MAAA,KACA,QAAAsG,EAAA,EAAAA,EAAAF,EAAAG,OAAAD,IAAA,CACA,IAAAE,EAAAJ,EAAAE,GACA,UAAAE,EAAAd,OAAA,IACAc,IAAAC,UAAA,GAEA,MAAAD,EAAAE,QAAAP,GACA,OAAAK,EAAAC,UAAAN,EAAAI,OAAAC,EAAAD,OAEA,CACA,QACA","file":"site.min.js","sourcesContent":["$(function () {\r\n\tinitializeAjaxPartial();\r\n\tinitializeLocalization();\r\n\tinitializeSelect2();\r\n\tinitializeNotificationBell();\r\n\r\n\t$('#validate-solax-cloud-api-key').click(function () {\r\n\t\tvar registrationNo = $('#RegistrationNo').val();\r\n\t\tvar tokenId = $('#TokenId').val();\r\n\r\n\t\t$.post('/api/solax-log/validate-api-key', { registrationNo: registrationNo, tokenId: tokenId })\r\n\t\t\t.done(function (data) {\r\n\t\t\t\tif (data == true) {\r\n\t\t\t\t\t$(\"#save-solax-cloud-api-key\").removeClass(\"disabled\");\r\n\t\t\t\t\t$(\"#validate-solax-cloud-api-key-failed\").addClass(\"d-none\");\r\n\r\n\t\t\t\t\t// Make inputs readonly\r\n\t\t\t\t\t$(\"#TokenId\").prop(\"readonly\", true);\r\n\t\t\t\t\t$(\"#RegistrationNo\").prop(\"readonly\", true);\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$(\"#save-solax-cloud-api-key\").addClass(\"disabled\");\r\n\t\t\t\t\t$(\"#validate-solax-cloud-api-key-failed\").removeClass(\"d-none\");\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\t.fail(function (xhr, status, error) {\r\n\t\t\t\tconsole.log(error);\r\n\t\t\t\t$(\"#save-solax-cloud-api-key\").addClass(\"disabled\");\r\n\t\t\t\t$(\"#validate-solax-cloud-api-key-failed\").removeClass(\"d-none\");\r\n\t\t\t});\r\n\t});\r\n});\r\n\r\nfunction initializeSelect2() {\r\n\t// Select 2\r\n\tif (jQuery && $.fn.select2) {\r\n\t\t$(\".default-select2\").select2();\r\n\t\t$(\".multiple-select2\").select2({\r\n\t\t\tcloseOnSelect: false,\r\n\t\t\tplaceholder: function () {\r\n\t\t\t\t$(this).data('placeholder');\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n}\r\n\r\nfunction initializeNotificationBell() {\r\n\t$('body').on('click', '#notification-bell', function () {\r\n\t\t$('#notification-badge').hide();\r\n\r\n\t\t$.ajax({\r\n\t\t\turl: '/api/notifications/all/mark-as-read',\r\n\t\t\ttype: 'POST',\r\n\t\t\tsuccess: function (data) {\r\n\t\t\t\tconsole.log(data);\r\n\t\t\t}\r\n\t\t});\r\n\t});\r\n\r\n\t$('body').on('click', '.a-href', function () {\r\n\t\tvar data = $(this).data('a-href');\r\n\t\twindow.location.href = data;\r\n\t});\r\n}\r\n\r\nfunction initializeLocalization() {\r\n\t// Localization\r\n\tif (typeof moment === \"function\") {\r\n\t\tvar culture = getCultureFromCookie();\r\n\t\tif (culture === 'cs-CZ') {\r\n\t\t\tmoment.locale('cs');\r\n\t\t}\r\n\t\telse {\r\n\t\t\tmoment.locale('en');\r\n\t\t}\r\n\t}\r\n\r\n\t//$('.localization').click(function (event) {\r\n\t//\tconsole.log(\"localization click\");\r\n\t//\tvar selectedCulture = $(this).data('culture');\r\n\t//\t$.post('/localization/SetLanguage', { culture: selectedCulture })\r\n\t//\t\t.done(function () {\r\n\t//\t\t\tconsole.log(\"done\");\r\n\t//\t\t\tlocation.reload();\r\n\t//\t\t})\r\n\t//\t\t.fail(function (xhr, status, error) {\r\n\t//\t\t\t// error handling\r\n\t//\t\t\tconsole.log(\"fail\");\r\n\t//\t\t\talert(error);\r\n\t//\t\t});\r\n\t//\tevent.preventDefault(); // cancel the event\r\n\t//});\r\n\r\n\t$('.localization').click(function () {\r\n\t\tvar selectedCulture = $(this).data('culture');\r\n\t\t$.post('/localization/SetLanguage', { culture: selectedCulture, returnUrl: window.location.pathname }, function () {\r\n\t\t\tlocation.reload();\r\n\t\t});\r\n\t});\r\n}\r\n\r\nfunction initializeAjaxPartial() {\r\n\t$('.ajax-partial').each(function () {\r\n\t\tvar $this = $(this);\r\n\t\tloadAjaxHtml($this);\r\n\t});\r\n}\r\n\r\nfunction loadAjaxHtml($this) {\r\n\tvar timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;\r\n\tvar url = $this.data('ajax-url');\r\n\r\n\t// Add a few optional parameters\r\n\tvar content = document.getElementById('content');\r\n\tif (content) {\r\n\t\t// Url contains query parameters?\r\n\t\tif (url.includes(\"?\")) {\r\n\t\t\turl += \"&\";\r\n\t\t} else {\r\n\t\t\turl += \"?\";\r\n\t\t}\r\n\r\n\t\t// Add content width\r\n\t\turl += \"contentWidth=\" + content.clientWidth;\r\n\t}\r\n\r\n\t// Add timezone\r\n\tif (timezone) {\r\n\t\t// Url contains query parameters?\r\n\t\tif (url.includes(\"?\")) {\r\n\t\t\turl += \"&\";\r\n\t\t} else {\r\n\t\t\turl += \"?\";\r\n\t\t}\r\n\r\n\t\turl += \"timezone=\" + timezone;\r\n\t}\r\n\r\n\tif (url) {\r\n\t\t$.get(url, function (data) {\r\n\t\t\t$this.html(data);\r\n\t\t\thandelTooltipPopoverActivation(); // re-activate tooltips and popovers\r\n\t\t\thideAddOrRemoveWidgetButtons();\r\n\t\t\thideMoveUpAndDownWidgetButtons();\r\n\t\t});\r\n\t}\r\n}","(function () {\r\n if (window.location.hostname === \"localhost\") {\r\n var cookieBanner = document.getElementById('cookie-banner');\r\n if (cookieBanner) {\r\n cookieBanner.remove();\r\n }\r\n\r\n return;\r\n }\r\n\r\n window.dataLayer = window.dataLayer || [];\r\n function gtag() { dataLayer.push(arguments); }\r\n\r\n gtag('js', new Date());\r\n gtag('config', 'G-BVMDN7Z2FF');\r\n\r\n // Is consent cookie set?\r\n if (document.cookie.split(';').some((item) => item.includes('.AspNet.Consent'))) {\r\n console.log(\"Consent cookie exists!\");\r\n\r\n if (document.cookie.split(';').some((item) => item.includes('.AspNet.Consent=yes'))) {\r\n console.log(\"Consent Accepted!\");\r\n gtag('consent', 'default', {\r\n 'ad_storage': 'granted',\r\n 'analytics_storage': 'granted',\r\n 'personalization_storage': 'granted',\r\n 'functionality_storage': 'granted',\r\n 'security_storage': 'granted',\r\n });\r\n } else {\r\n console.log(\"Consent Denied!\");\r\n gtag('consent', 'default', {\r\n 'ad_storage': 'denied',\r\n 'analytics_storage': 'denied',\r\n 'personalization_storage': 'denied',\r\n 'functionality_storage': 'denied',\r\n 'security_storage': 'denied',\r\n });\r\n }\r\n\r\n // The banner is already hidden but it might be better to remove it completely\r\n var cookieBanner = document.getElementById('cookie-banner');\r\n if (cookieBanner) {\r\n cookieBanner.remove();\r\n }\r\n } else {\r\n // By default everything has to be denied\r\n gtag('consent', 'default', {\r\n 'ad_storage': 'denied',\r\n 'analytics_storage': 'denied',\r\n 'personalization_storage': 'denied',\r\n 'functionality_storage': 'denied',\r\n 'security_storage': 'denied',\r\n });\r\n\r\n // Display the banner\r\n var cookieBanner = document.getElementById('cookie-banner');\r\n cookieBanner.classList.remove('d-none');\r\n\r\n // Accept button listener\r\n var acceptButton = document.querySelector(\".accept-policy\");\r\n acceptButton.addEventListener(\"click\", function (event) {\r\n console.log(\"Consent Accepted!\");\r\n document.cookie = acceptButton.dataset.cookieString;\r\n\r\n // Allow GA tracking after consent\r\n gtag('consent', 'update', {\r\n 'ad_storage': 'granted',\r\n 'analytics_storage': 'granted',\r\n 'personalization_storage': 'granted',\r\n 'functionality_storage': 'granted',\r\n 'security_storage': 'granted'\r\n });\r\n }, false);\r\n\r\n // Deny button listener\r\n var denyButton = document.querySelector(\".deny-policy\");\r\n denyButton.addEventListener(\"click\", function (event) {\r\n console.log(\"Consent Denied!\");\r\n document.cookie = \".AspNet.Consent=no; expires=\" + new Date(new Date().setFullYear(new Date().getFullYear() + 1)) + \"; path=/\";\r\n }, false);\r\n }\r\n\r\n})();","// Execute gulpfile task js-site to update the translations\r\nvar localizer = {\r\n \"Count\": {\r\n \"en-US\": \"Count\",\r\n \"cs-CZ\": \"Počet\",\r\n },\r\n \"State\": {\r\n \"en-US\": \"State\",\r\n \"cs-CZ\": \"Stav\",\r\n },\r\n \"Total\": {\r\n \"en-US\": \"Total\",\r\n \"cs-CZ\": \"Celkem\",\r\n },\r\n \"Inverter\": {\r\n \"en-US\": \"Inverter\",\r\n \"cs-CZ\": \"Střídač\",\r\n },\r\n \"Utility Grid\": {\r\n \"en-US\": \"Utility Grid\",\r\n \"cs-CZ\": \"Síť\",\r\n },\r\n \"Power DC1\": {\r\n \"en-US\": \"Power DC1\",\r\n \"cs-CZ\": \"Energie DC1\",\r\n },\r\n \"Power DC2\": {\r\n \"en-US\": \"Power DC2\",\r\n \"cs-CZ\": \"Energie DC2\",\r\n },\r\n \"Export\": {\r\n \"en-US\": \"Export\",\r\n \"cs-CZ\": \"Export\",\r\n },\r\n \"Import\": {\r\n \"en-US\": \"Import\",\r\n \"cs-CZ\": \"Import\",\r\n },\r\n \"Battery\": {\r\n \"en-US\": \"Battery\",\r\n \"cs-CZ\": \"Baterie\",\r\n },\r\n \"Difference\": {\r\n \"en-US\": \"Difference\",\r\n \"cs-CZ\": \"Rozdíl\",\r\n },\r\n \"Today\": {\r\n \"en-US\": \"Today\",\r\n \"cs-CZ\": \"Dneska\",\r\n },\r\n \"Yesterday\": {\r\n \"en-US\": \"Yesterday\",\r\n \"cs-CZ\": \"Včera\",\r\n },\r\n \"Profile 1\": {\r\n \"en-US\": \"Profile 1\",\r\n \"cs-CZ\": \"Profil 1\",\r\n },\r\n \"Profile 2\": {\r\n \"en-US\": \"Profile 2\",\r\n \"cs-CZ\": \"Profil 2\",\r\n },\r\n \"Today Grid\": {\r\n \"en-US\": \"Today Grid\",\r\n \"cs-CZ\": \"Dneska ze sítě\",\r\n },\r\n \"Yesterday Grid\": {\r\n \"en-US\": \"Yesterday Grid\",\r\n \"cs-CZ\": \"Včera ze sítě\",\r\n },\r\n \"Today Inverter\": {\r\n \"en-US\": \"Today Inverter\",\r\n \"cs-CZ\": \"Dneska ze střídače\",\r\n },\r\n \"Yesterday Inverter\": {\r\n \"en-US\": \"Yesterday Inverter\",\r\n \"cs-CZ\": \"Včera ze střídače\",\r\n },\r\n \"Today Household\": {\r\n \"en-US\": \"Today Household\",\r\n \"cs-CZ\": \"Dneska domácnost\",\r\n },\r\n \"Yesterday Household\": {\r\n \"en-US\": \"Yesterday Household\",\r\n \"cs-CZ\": \"Včera domácnost\",\r\n },\r\n \"Production\": {\r\n \"en-US\": \"Production\",\r\n \"cs-CZ\": \"Výroba\",\r\n },\r\n \"Consumption\": {\r\n \"en-US\": \"Consumption\",\r\n \"cs-CZ\": \"Spotřeba\",\r\n },\r\n \"Export to grid\": {\r\n \"en-US\": \"Export to grid\",\r\n \"cs-CZ\": \"Export do síťě\",\r\n },\r\n \"Expected\": {\r\n \"en-US\": \"Expected\",\r\n \"cs-CZ\": \"Očekávaná\",\r\n },\r\n \"Actual\": {\r\n \"en-US\": \"Actual\",\r\n \"cs-CZ\": \"Skutečná\",\r\n },\r\n \"Household\": {\r\n \"en-US\": \"Household\",\r\n \"cs-CZ\": \"Domácnost\",\r\n },\r\n \"Minutes\": {\r\n \"en-US\": \"Minutes\",\r\n \"cs-CZ\": \"Minut\",\r\n },\r\n \"Hours\": {\r\n \"en-US\": \"Hours\",\r\n \"cs-CZ\": \"Hodin\",\r\n },\r\n \"Days\": {\r\n \"en-US\": \"Days\",\r\n \"cs-CZ\": \"Dní\",\r\n },\r\n \"Date\": {\r\n \"en-US\": \"Date\",\r\n \"cs-CZ\": \"Datum\",\r\n },\r\n \"Power Total\": {\r\n \"en-US\": \"Power Total\",\r\n \"cs-CZ\": \"Celkový výkon\",\r\n },\r\n \"Power DC1\": {\r\n \"en-US\": \"Power DC1\",\r\n \"cs-CZ\": \"Výkon DC1\",\r\n },\r\n \"Power DC2\": {\r\n \"en-US\": \"Power DC2\",\r\n \"cs-CZ\": \"Výkon DC2\",\r\n },\r\n \"Soc\": {\r\n \"en-US\": \"Soc\",\r\n \"cs-CZ\": \"Stav baterie\",\r\n },\r\n \"AC power\": {\r\n \"en-US\": \"AC power\",\r\n \"cs-CZ\": \"AC výkon\",\r\n },\r\n \"Consume energy\": {\r\n \"en-US\": \"Consume energy\",\r\n \"cs-CZ\": \"Spotřeba energie\",\r\n },\r\n \"Total consumption\": {\r\n \"en-US\": \"Total Consumption\",\r\n \"cs-CZ\": \"Celková spotřeba\",\r\n },\r\n \"Battery power\": {\r\n \"en-US\": \"Battery power\",\r\n \"cs-CZ\": \"Výkon baterie\",\r\n },\r\n \"Production today\": {\r\n \"en-US\": \"Production today\",\r\n \"cs-CZ\": \"Výroba dnes\",\r\n },\r\n \"Production total\": {\r\n \"en-US\": \"Production total\",\r\n \"cs-CZ\": \"Celková výroba\",\r\n },\r\n \"Production today\": {\r\n \"en-US\": \"Production today\",\r\n \"cs-CZ\": \"Výroba dnes\",\r\n },\r\n \"Total production today\": {\r\n \"en-US\": \"Total production today\",\r\n \"cs-CZ\": \"Celková výroba dnes\",\r\n },\r\n \"Feedin power\": {\r\n \"en-US\": \"Feedin power\",\r\n \"cs-CZ\": \"Výkon sítě\",\r\n },\r\n \"Feedin energy\": {\r\n \"en-US\": \"Feedin energy\",\r\n \"cs-CZ\": \"Export celkem\",\r\n },\r\n \"Slope\": {\r\n \"en-US\": \"Slope\",\r\n \"cs-CZ\": \"Sklon\",\r\n },\r\n \"Total size\": {\r\n \"en-US\": \"Total size\",\r\n \"cs-CZ\": \"Celková velikost\",\r\n },\r\n \"Battery voltage\": {\r\n \"en-US\": \"Battery voltage\",\r\n \"cs-CZ\": \"Napětí baterie\",\r\n },\r\n \"Battery temperature\": {\r\n \"en-US\": \"Battery temperature\",\r\n \"cs-CZ\": \"Teplota baterie\",\r\n },\r\n \"Battery capacity\": {\r\n \"en-US\": \"Battery capacity\",\r\n \"cs-CZ\": \"Kapacita baterie\",\r\n },\r\n\r\n \"YieldToday\": {\r\n \"en-US\": \"Yield today (kWh)\",\r\n \"cs-CZ\": \"Výroba dneska (kWh)\",\r\n },\r\n // Get the value from option and translate it based on the translations below\r\n \"InverterTempInner\": {\r\n \"en-US\": \"Inverter temperature inner (°C)\",\r\n \"cs-CZ\": \"Teplota střídače uvnitř (°C)\",\r\n },\r\n \"InverterTemperature\": {\r\n \"en-US\": \"Inverter temperature (°C)\",\r\n \"cs-CZ\": \"Teplota střídače (°C)\",\r\n },\r\n \"YieldTotal\": {\r\n \"en-US\": \"Yield total (kWh)\",\r\n \"cs-CZ\": \"Výroba celkem (kWh)\",\r\n },\r\n \"PowerDc1\": {\r\n \"en-US\": \"Power DC1 (W)\",\r\n \"cs-CZ\": \"Výkon DC1 (W)\",\r\n },\r\n \"PowerDc2\": {\r\n \"en-US\": \"Power DC2 (W)\",\r\n \"cs-CZ\": \"Výkon DC2 (W)\",\r\n },\r\n \"BATPower\": {\r\n \"en-US\": \"BAT power (W)\",\r\n \"cs-CZ\": \"BAT výkon (W)\",\r\n },\r\n \"FeedInPower\": {\r\n \"en-US\": \"Feed in power (W)\",\r\n \"cs-CZ\": \"Vstupní výkon (W)\",\r\n },\r\n \"GridAPower\": {\r\n \"en-US\": \"Grid A power (W)\",\r\n \"cs-CZ\": \"Síťový výkon A (W)\",\r\n },\r\n \"GridBPower\": {\r\n \"en-US\": \"Grid B power (W)\",\r\n \"cs-CZ\": \"Síťový výkon B (W)\",\r\n },\r\n \"GridCPower\": {\r\n \"en-US\": \"Grid C power (W)\",\r\n \"cs-CZ\": \"Síťový výkon C (W)\",\r\n },\r\n \"GridTotalPower\": {\r\n \"en-US\": \"Grid total power (W)\",\r\n \"cs-CZ\": \"Celkový síťový výkon (W)\",\r\n },\r\n \"FeedInEnergy\": {\r\n \"en-US\": \"Feed in energy (kWh)\",\r\n \"cs-CZ\": \"Vstupní energie (kWh)\",\r\n },\r\n \"EPSAPower\": {\r\n \"en-US\": \"EPS A power (W)\",\r\n \"cs-CZ\": \"EPS výkon A (W)\",\r\n },\r\n \"EPSBPower\": {\r\n \"en-US\": \"EPS B power (W)\",\r\n \"cs-CZ\": \"EPS výkon B (W)\",\r\n },\r\n \"EPSCPower\": {\r\n \"en-US\": \"EPS C power (W)\",\r\n \"cs-CZ\": \"EPS výkon C (W)\",\r\n },\r\n \"Vdc1\": {\r\n \"en-US\": \"Vdc1 (V)\",\r\n \"cs-CZ\": \"DC1 napětí (V)\",\r\n },\r\n \"Vdc2\": {\r\n \"en-US\": \"Vdc2 (V)\",\r\n \"cs-CZ\": \"DC2 napětí (V)\",\r\n },\r\n \"Idc1\": {\r\n \"en-US\": \"Idc1 (A)\",\r\n \"cs-CZ\": \"DC1 proud (A)\",\r\n },\r\n \"Idc2\": {\r\n \"en-US\": \"Idc2 (A)\",\r\n \"cs-CZ\": \"DC2 proud (A)\",\r\n },\r\n \"EPSAVoltage\": {\r\n \"en-US\": \"EPS A voltage (V)\",\r\n \"cs-CZ\": \"EPS napětí A (V)\",\r\n },\r\n \"EPSBVoltage\": {\r\n \"en-US\": \"EPS B voltage (V)\",\r\n \"cs-CZ\": \"EPS napětí B (V)\",\r\n },\r\n \"EPSCVoltage\": {\r\n \"en-US\": \"EPS C voltage (V)\",\r\n \"cs-CZ\": \"EPS napětí C (V)\",\r\n },\r\n \"EPSACurrent\": {\r\n \"en-US\": \"EPS A current (A)\",\r\n \"cs-CZ\": \"EPS proud A (A)\",\r\n },\r\n \"EPSBCurrent\": {\r\n \"en-US\": \"EPS B current (A)\",\r\n \"cs-CZ\": \"EPS proud B (A)\",\r\n },\r\n \"EPSCCurrent\": {\r\n \"en-US\": \"EPS C current (A)\",\r\n \"cs-CZ\": \"EPS proud C (A)\",\r\n },\r\n \"BatteryCapacity\": {\r\n \"en-US\": \"Battery capacity (%)\",\r\n \"cs-CZ\": \"Kapacita baterie (%)\",\r\n },\r\n \"BatteryVoltage\": {\r\n \"en-US\": \"Battery voltage (V)\",\r\n \"cs-CZ\": \"Napětí baterie (V)\",\r\n },\r\n \"BatteryTemperature\": {\r\n \"en-US\": \"Battery temperature (°C)\",\r\n \"cs-CZ\": \"Teplota baterie (°C)\",\r\n },\r\n \"BatteryRemainEnergy\": {\r\n \"en-US\": \"Battery remain energy (kWh)\",\r\n \"cs-CZ\": \"Zbývající energie baterie (kWh)\",\r\n },\r\n \"GridAVoltage\": {\r\n \"en-US\": \"Grid A voltage (V)\",\r\n \"cs-CZ\": \"Napětí sítě A (V)\",\r\n },\r\n \"GridBVoltage\": {\r\n \"en-US\": \"Grid B voltage (V)\",\r\n \"cs-CZ\": \"Napětí sítě B (V)\",\r\n },\r\n \"GridCVoltage\": {\r\n \"en-US\": \"Grid C voltage (V)\",\r\n \"cs-CZ\": \"Napětí sítě C (V)\",\r\n },\r\n \"GridACurrent\": {\r\n \"en-US\": \"Grid A current (A)\",\r\n \"cs-CZ\": \"Proud sítě A (A)\",\r\n },\r\n \"GridBCurrent\": {\r\n \"en-US\": \"Grid B current (A)\",\r\n \"cs-CZ\": \"Proud sítě B (A)\",\r\n },\r\n \"GridCCurrent\": {\r\n \"en-US\": \"Grid C current (A)\",\r\n \"cs-CZ\": \"Proud sítě C (A)\",\r\n },\r\n \"FreqacA\": {\r\n \"en-US\": \"Freqac A (Hz)\",\r\n \"cs-CZ\": \"Frekvence A (Hz)\",\r\n },\r\n \"FreqacB\": {\r\n \"en-US\": \"Freqac B (Hz)\",\r\n \"cs-CZ\": \"Frekvence B (Hz)\",\r\n },\r\n \"FreqacC\": {\r\n \"en-US\": \"Freqac C (Hz)\",\r\n \"cs-CZ\": \"Frekvence C (Hz)\",\r\n },\r\n \"Inner\": {\r\n \"en-US\": \"Inner\",\r\n \"cs-CZ\": \"Vnitřní\",\r\n },\r\n \"Outer\": {\r\n \"en-US\": \"Outer\",\r\n \"cs-CZ\": \"Vnější\",\r\n },\r\n \"On\": {\r\n \"en-US\": \"On\",\r\n \"cs-CZ\": \"Zapnuto\",\r\n },\r\n \"Off\": {\r\n \"en-US\": \"Off\",\r\n \"cs-CZ\": \"Vypnuto\",\r\n },\r\n \"No active workflows\": {\r\n \"en-US\": \"No active workflows\",\r\n \"cs-CZ\": \"Žádné aktivní automatizace\",\r\n },\r\n \"Previous\": {\r\n \"en-US\": \"Previous\",\r\n \"cs-CZ\": \"Předchozí\",\r\n },\r\n}\r\n\r\nvar tr = function (word) {\r\n // Is first letter lower case?\r\n var isLowerCase = word[0] === word[0].toLowerCase();\r\n word = word.charAt(0).toUpperCase() + word.slice(1);\r\n\r\n var uiCulture = getUiCultureFromCookie();\r\n if (localizer.hasOwnProperty(word) && localizer[word].hasOwnProperty(uiCulture)) {\r\n if (isLowerCase) {\r\n return localizer[word][uiCulture].toLowerCase();\r\n }\r\n return localizer[word][uiCulture];\r\n } \r\n\r\n return word;\r\n}\r\n\r\nfunction getCultureFromCookie() {\r\n var aspNetCoreCulture = getCookie('.AspNetCore.Culture');\r\n if (!aspNetCoreCulture) {\r\n aspNetCoreCulture = 'c=cs-CZ|uic=cs-CZ';\r\n }\r\n\r\n return aspNetCoreCulture.split('|')[0].split('c=')[1];\r\n}\r\n\r\nfunction getUiCultureFromCookie() {\r\n var aspNetCoreCulture = getCookie('.AspNetCore.Culture');\r\n if (!aspNetCoreCulture) {\r\n aspNetCoreCulture = 'c=cs-CZ|uic=cs-CZ';\r\n }\r\n\r\n return aspNetCoreCulture.split('|')[1].split('uic=')[1];\r\n}\r\n\r\nfunction getCookie(cname) {\r\n let name = cname + \"=\";\r\n let decodedCookie = decodeURIComponent(document.cookie);\r\n let ca = decodedCookie.split(';');\r\n for (let i = 0; i < ca.length; i++) {\r\n let c = ca[i];\r\n while (c.charAt(0) == ' ') {\r\n c = c.substring(1);\r\n }\r\n if (c.indexOf(name) == 0) {\r\n return c.substring(name.length, c.length);\r\n }\r\n }\r\n return \"\";\r\n}"]}