/*
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 { Base, toNullable, EnumUtil, markType } from "igniteui-angular-core";
import { ST_StyleEntryModifierEnum_$type } from "./ST_StyleEntryModifierEnum";
/**
 * @hidden
 */
var ST_StyleEntryModifier = /** @class */ /*@__PURE__*/ (function (_super) {
    __extends(ST_StyleEntryModifier, _super);
    function ST_StyleEntryModifier() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.c = toNullable(ST_StyleEntryModifierEnum_$type, null);
        _this.e = null;
        return _this;
    }
    Object.defineProperty(ST_StyleEntryModifier.prototype, "d", {
        get: function () {
            return this.c;
        },
        set: function (a) {
            this.c = a;
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(ST_StyleEntryModifier.prototype, "h", {
        get: function () {
            return this.e;
        },
        set: function (a) {
            this.e = a;
        },
        enumerable: false,
        configurable: true
    });
    ST_StyleEntryModifier.a = function (a) {
        return ST_StyleEntryModifier.b(a);
    };
    ST_StyleEntryModifier.prototype.f = function () {
        return this.g();
    };
    ST_StyleEntryModifier.b = function (a) {
        var b = new ST_StyleEntryModifier();
        var c;
        if (((function () { var d = EnumUtil.tryParse$1(ST_StyleEntryModifierEnum_$type, a, true, c); c = d.p2; return d.ret; })())) {
            b.d = toNullable(ST_StyleEntryModifierEnum_$type, c);
        }
        else {
            b.h = a;
        }
        return b;
    };
    ST_StyleEntryModifier.prototype.g = function () {
        if (this.d.hasValue) {
            return EnumUtil.getName(ST_StyleEntryModifierEnum_$type, this.d.value);
        }
        else {
            return this.h;
        }
    };
    ST_StyleEntryModifier.$t = markType(ST_StyleEntryModifier, 'ST_StyleEntryModifier');
    return ST_StyleEntryModifier;
}(Base));
export { ST_StyleEntryModifier };
