/*
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 { ValueType, toNullable, Number_$type, markStruct } from "igniteui-angular-core";
import { CultureInfo } from "igniteui-angular-core";
import { tryParseUInt64_2 } from "igniteui-angular-core";
/**
 * @hidden
 */
var ST_UnsignedDecimalNumber = /** @class */ (function (_super) {
    tslib_1.__extends(ST_UnsignedDecimalNumber, _super);
    function ST_UnsignedDecimalNumber(a) {
        var _rest = [];
        for (var _i = 1; _i < arguments.length; _i++) {
            _rest[_i - 1] = arguments[_i];
        }
        var _this = _super.call(this) || this;
        _this.g = 0;
        a = (a == void 0) ? 0 : a;
        switch (a) {
            case 0: break;
            case 1:
                {
                    var c = _rest[0];
                    _this.g = c;
                }
                break;
        }
        return _this;
    }
    ST_UnsignedDecimalNumber.f = function (a) {
        var b;
        if (((function () { var c = tryParseUInt64_2(a, 7 | 4, CultureInfo.invariantCulture, b); b = c.p3; return c.ret; })())) {
            return toNullable(ST_UnsignedDecimalNumber.$, ST_UnsignedDecimalNumber.b(b));
        }
        return toNullable(ST_UnsignedDecimalNumber.$, null);
    };
    ST_UnsignedDecimalNumber.prototype.toString = function () {
        return this.g.toString();
    };
    ST_UnsignedDecimalNumber.h = function (a) {
        return a.g;
    };
    ST_UnsignedDecimalNumber.e = function (a) {
        if (!a.hasValue) {
            return toNullable(Number_$type, null);
        }
        return toNullable(Number_$type, ST_UnsignedDecimalNumber.h(a.value));
    };
    ST_UnsignedDecimalNumber.b = function (a) {
        return new ST_UnsignedDecimalNumber(1, a);
    };
    ST_UnsignedDecimalNumber.d = function (a) {
        if (!a.hasValue) {
            return toNullable(ST_UnsignedDecimalNumber.$, null);
        }
        return toNullable(ST_UnsignedDecimalNumber.$, ST_UnsignedDecimalNumber.b(a.value));
    };
    ST_UnsignedDecimalNumber.$t = markStruct(ST_UnsignedDecimalNumber, 'ST_UnsignedDecimalNumber');
    ST_UnsignedDecimalNumber.a = new ST_UnsignedDecimalNumber(0);
    return ST_UnsignedDecimalNumber;
}(ValueType));
export { ST_UnsignedDecimalNumber };
//# sourceMappingURL=ST_UnsignedDecimalNumber.js.map