/*
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 { CondFmtBase } from "./CondFmtBase";
import { markType } from "igniteui-angular-core";
import { ConditionBase } from "./ConditionBase";
import { List$1 } from "igniteui-angular-core";
import { WorksheetRegion } from "./WorksheetRegion";
/**
 * @hidden
 */
var CONDFMTSerializer = /** @class */ /*@__PURE__*/ (function (_super) {
    __extends(CONDFMTSerializer, _super);
    function CONDFMTSerializer() {
        var _this = _super.call(this) || this;
        _this.h = null;
        _this.h = new List$1(ConditionBase.$, 0);
        return _this;
    }
    CONDFMTSerializer.prototype.g = function () {
        if (this.c.count == 1) {
            return this.c.item(0);
        }
        var a = this.c.item(0);
        for (var b = 1; b < this.c.count; b++) {
            var c = this.c.item(b);
            a = WorksheetRegion._g(a, c);
        }
        return a;
    };
    CONDFMTSerializer.$t = markType(CONDFMTSerializer, 'CONDFMTSerializer', CondFmtBase.$);
    return CONDFMTSerializer;
}(CondFmtBase));
export { CONDFMTSerializer };
