/*
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE  AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE:  you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
*/
import * as tslib_1 from "tslib";
import { Base, fromEnum, markType } from "igniteui-angular-core";
import { CultureInfo } from "igniteui-angular-core";
import { ChartExElements } from "./ChartExElements";
import { numberToString, parseUInt32_1 } from "igniteui-angular-core";
/**
 * @hidden
 */
var CT_NumericValue = /** @class */ (function (_super) {
    tslib_1.__extends(CT_NumericValue, _super);
    function CT_NumericValue() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.d = 0;
        _this.b = 0;
        return _this;
    }
    CT_NumericValue.prototype.toString = function () {
        return numberToString(this.b, CultureInfo.invariantCulture);
    };
    CT_NumericValue.a = function (a) {
        var b;
        var c = CT_NumericValue.e(a, b);
        b = c.p1;
        return ((function () {
            var $ret = new CT_NumericValue();
            $ret.d = b;
            return $ret;
        })());
    };
    CT_NumericValue.e = function (a, b) {
        var e_1, _a;
        b = 0;
        try {
            for (var _b = tslib_1.__values(fromEnum(a.ab.u)), _c = _b.next(); !_c.done; _c = _b.next()) {
                var c = _c.value;
                switch (c.a.e(a.d)) {
                    case "type":
                        b = parseUInt32_1(c.d);
                        break;
                    default: break;
                }
            }
        }
        catch (e_1_1) { e_1 = { error: e_1_1 }; }
        finally {
            try {
                if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
            }
            finally { if (e_1) throw e_1.error; }
        }
        return {
            p1: b
        };
    };
    CT_NumericValue.f = function (a, b, c) {
        a.ad.p(c, "cx");
        a.ad.h(ChartExElements.a7, b.toString());
    };
    CT_NumericValue.$t = markType(CT_NumericValue, 'CT_NumericValue');
    return CT_NumericValue;
}(Base));
export { CT_NumericValue };
//# sourceMappingURL=CT_NumericValue.js.map