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