/*
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 { __extends } from "tslib";
import { ValueType, toNullable, markStruct } from "igniteui-angular-core";
import { CultureInfo } from "igniteui-angular-core";
import { parseInt32_2, intToString1 } from "igniteui-angular-core";
/**
 * @hidden
 */
var ST_LongHexNumber = /** @class */ /*@__PURE__*/ (function (_super) {
    __extends(ST_LongHexNumber, _super);
    function ST_LongHexNumber(a) {
        var _rest = [];
        for (var _i = 1; _i < arguments.length; _i++) {
            _rest[_i - 1] = arguments[_i];
        }
        var _this = _super.call(this) || this;
        _this.e = 0;
        a = (a == void 0) ? 0 : a;
        switch (a) {
            case 0: break;
            case 1:
                {
                    var c = _rest[0];
                    _this.e = c;
                }
                break;
        }
        return _this;
    }
    ST_LongHexNumber.d = function (a) {
        return ST_LongHexNumber.b(parseInt32_2(a, 515, CultureInfo.invariantCulture));
    };
    ST_LongHexNumber.prototype.toString = function () {
        return intToString1(this.e, "X8", CultureInfo.invariantCulture);
    };
    ST_LongHexNumber.b = function (a) {
        return new ST_LongHexNumber(1, a);
    };
    ST_LongHexNumber.f = function (a) {
        if (!a.hasValue) {
            return toNullable(ST_LongHexNumber.$, null);
        }
        return toNullable(ST_LongHexNumber.$, ST_LongHexNumber.b(a.value));
    };
    ST_LongHexNumber.$t = markStruct(ST_LongHexNumber, 'ST_LongHexNumber');
    ST_LongHexNumber.a = new ST_LongHexNumber(0);
    return ST_LongHexNumber;
}(ValueType));
export { ST_LongHexNumber };
