var Dashboards;
(function (Dashboards) {
    var PowerQuality;
    (function (PowerQuality) {
        /* Power Quality Helper Methods
        **************************************************************************/
        (function (DataSeriesColor) {
            DataSeriesColor[DataSeriesColor["External"] = 0] = "External";
            DataSeriesColor[DataSeriesColor["Internal"] = 1] = "Internal";
            DataSeriesColor[DataSeriesColor["Undetermined"] = 2] = "Undetermined";
            DataSeriesColor[DataSeriesColor["ExternalMuted"] = 3] = "ExternalMuted";
            DataSeriesColor[DataSeriesColor["InternalMuted"] = 4] = "InternalMuted";
            DataSeriesColor[DataSeriesColor["UndeterminedMuted"] = 5] = "UndeterminedMuted";
            DataSeriesColor[DataSeriesColor["ExternalText"] = 6] = "ExternalText";
            DataSeriesColor[DataSeriesColor["InternalText"] = 7] = "InternalText";
            DataSeriesColor[DataSeriesColor["UndeterminedText"] = 8] = "UndeterminedText";
        })(PowerQuality.DataSeriesColor || (PowerQuality.DataSeriesColor = {}));
        var DataSeriesColor = PowerQuality.DataSeriesColor;
        ;
        (function (EventTypeColor) {
            EventTypeColor[EventTypeColor["Undervoltage"] = 0] = "Undervoltage";
            EventTypeColor[EventTypeColor["Overvoltage"] = 1] = "Overvoltage";
            EventTypeColor[EventTypeColor["Swell"] = 2] = "Swell";
            EventTypeColor[EventTypeColor["Transient"] = 3] = "Transient";
            EventTypeColor[EventTypeColor["Sag"] = 4] = "Sag";
            EventTypeColor[EventTypeColor["Interruption"] = 5] = "Interruption";
            EventTypeColor[EventTypeColor["Default"] = 6] = "Default";
        })(PowerQuality.EventTypeColor || (PowerQuality.EventTypeColor = {}));
        var EventTypeColor = PowerQuality.EventTypeColor;
        ;
        var PowerQualityHelper = (function () {
            function PowerQualityHelper() {
            }
            ///* Methods */
            PowerQualityHelper.GetDataSeriesColor = function (color) {
                if (fwk.palettes.hasOwnProperty('PowerQualityDataSeriesColors')) {
                    return fwk.palettes['PowerQualityDataSeriesColors'][color];
                }
                return '';
            };
            PowerQualityHelper.GetEventTypeColor = function (color) {
                if (fwk.palettes.hasOwnProperty('PowerQualityEventTypeColors')) {
                    return fwk.palettes['PowerQualityEventTypeColors'][color];
                }
                return '';
            };
            return PowerQualityHelper;
        }());
        PowerQuality.PowerQualityHelper = PowerQualityHelper;
    })(PowerQuality = Dashboards.PowerQuality || (Dashboards.PowerQuality = {}));
})(Dashboards || (Dashboards = {}));
//# sourceMappingURL=PowerQualityHelper.js.map