/*
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, Number_$type, markStruct } from "igniteui-angular-core";
import { DocCoreUtils } from "./DocCoreUtils";
import { CultureInfo } from "igniteui-angular-core";
import { parseInt32_2, tryParseInt32_2 } from "igniteui-angular-core";
/**
 * @hidden
 */
var ST_TextFontSize = /** @class */ /*@__PURE__*/ (function (_super) {
    __extends(ST_TextFontSize, _super);
    function ST_TextFontSize(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];
                    DocCoreUtils.aw(ST_TextFontSize.$, c, "value", 100, 400000);
                    _this.d = c;
                }
                break;
        }
        return _this;
    }
    ST_TextFontSize.c = function (a) {
        return ST_TextFontSize.a(parseInt32_2(a, 7, CultureInfo.invariantCulture));
    };
    ST_TextFontSize.i = function (a) {
        var b;
        if (((function () { var c = tryParseInt32_2(a, 7, CultureInfo.invariantCulture, b); b = c.p3; return c.ret; })())) {
            return toNullable(ST_TextFontSize.$, ST_TextFontSize.a(b));
        }
        return toNullable(ST_TextFontSize.$, null);
    };
    ST_TextFontSize.prototype.toString = function () {
        return this.d.toString();
    };
    ST_TextFontSize.e = function (a) {
        return a.d;
    };
    ST_TextFontSize.g = function (a) {
        if (!a.hasValue) {
            return toNullable(Number_$type, null);
        }
        return toNullable(Number_$type, ST_TextFontSize.e(a.value));
    };
    ST_TextFontSize.a = function (a) {
        return new ST_TextFontSize(1, a);
    };
    ST_TextFontSize.h = function (a) {
        if (!a.hasValue) {
            return toNullable(ST_TextFontSize.$, null);
        }
        return toNullable(ST_TextFontSize.$, ST_TextFontSize.a(a.value));
    };
    ST_TextFontSize.$t = markStruct(ST_TextFontSize, 'ST_TextFontSize');
    return ST_TextFontSize;
}(ValueType));
export { ST_TextFontSize };
