/*
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, typeCast, String_$type, markType, getInstanceType } from "igniteui-angular-core";
import { ISupportSetProperty_$type } from "./ISupportSetProperty";
import { CultureInfo } from "igniteui-angular-core";
import { parseUInt32_1 } from "igniteui-angular-core";
/**
 * @hidden
 */
var CT_NumVal = /** @class */ (function (_super) {
    tslib_1.__extends(CT_NumVal, _super);
    function CT_NumVal() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.e = null;
        _this.g = 0;
        _this.b = null;
        return _this;
    }
    Object.defineProperty(CT_NumVal.prototype, "d", {
        get: function () {
            return this.e;
        },
        set: function (a) {
            this.e = a;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(CT_NumVal.prototype, "f", {
        get: function () {
            return this.g;
        },
        set: function (a) {
            this.g = a;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(CT_NumVal.prototype, "a", {
        get: function () {
            return this.b;
        },
        set: function (a) {
            this.b = a;
        },
        enumerable: true,
        configurable: true
    });
    CT_NumVal.h = function (a, b, c) {
        var e_1, _a;
        b = 0;
        c = null;
        try {
            for (var _b = tslib_1.__values(fromEnum(a.ab.u)), _c = _b.next(); !_c.done; _c = _b.next()) {
                var d = _c.value;
                switch (d.a.e(a.d)) {
                    case "idx":
                        b = parseUInt32_1(d.d, CultureInfo.invariantCulture);
                        break;
                    case "formatCode":
                        c = d.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,
            p2: c
        };
    };
    CT_NumVal.i = function (a, b, c, d) {
        a.ad.p(b, "c");
        var e = null;
        var f = null;
        if (c != null) {
            f = "formatCode";
            e = c;
            a.ad.h(f, e);
        }
        f = "idx";
        e = d.toString();
        a.ad.h(f, e);
        ;
    };
    CT_NumVal.prototype.setProperty = function (a, b) {
        switch (a) {
            case 1818:
                this.d = typeCast(String_$type, b);
                break;
            default: break;
        }
    };
    CT_NumVal.prototype.toString = function () {
        var a = getInstanceType(this);
        return a != null ? a.typeName : _super.prototype.toString.call(this);
    };
    CT_NumVal.$t = markType(CT_NumVal, 'CT_NumVal', Base.$, [ISupportSetProperty_$type]);
    return CT_NumVal;
}(Base));
export { CT_NumVal };
//# sourceMappingURL=CT_NumVal.js.map