/*
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 { Base, fromEnum, typeCast, markType, getInstanceType } from "igniteui-angular-core";
import { ISupportSetProperty_$type } from "./ISupportSetProperty";
import { List$1 } from "igniteui-angular-core";
import { CT_PivotAreaReference } from "./CT_PivotAreaReference";
import { CultureInfo } from "igniteui-angular-core";
import { parseUInt32_1 } from "igniteui-angular-core";
/**
 * @hidden
 */
var CT_PivotAreaReferences = /** @class */ (function (_super) {
    tslib_1.__extends(CT_PivotAreaReferences, _super);
    function CT_PivotAreaReferences() {
        var _this = _super.call(this) || this;
        _this.a = null;
        _this.c = 0;
        _this.a = new List$1(CT_PivotAreaReference.$, 0);
        return _this;
    }
    CT_PivotAreaReferences.d = function (a, b) {
        var e_1, _a;
        b = 0;
        try {
            for (var _b = tslib_1.__values(fromEnum(a.ab.u)), _c = _b.next(); !_c.done; _c = _b.next()) {
                var c = _c.value;
                switch (c.a.e(a.d)) {
                    case "count":
                        b = parseUInt32_1(c.d, CultureInfo.invariantCulture);
                        break;
                    default: break;
                }
            }
        }
        catch (e_1_1) { e_1 = { error: e_1_1 }; }
        finally {
            try {
                if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
            }
            finally { if (e_1) throw e_1.error; }
        }
        return {
            p1: b
        };
    };
    CT_PivotAreaReferences.e = function (a, b, c) {
        a.ad.p(b, null);
        var d = null;
        var e = null;
        e = "count";
        d = c.toString();
        a.ad.h(e, d);
    };
    CT_PivotAreaReferences.prototype.setProperty = function (a, b) {
        switch (a) {
            case 1336:
                this.a.add(typeCast(CT_PivotAreaReference.$, b));
                break;
            default: break;
        }
    };
    CT_PivotAreaReferences.prototype.toString = function () {
        var a = getInstanceType(this);
        return a != null ? a.typeName : _super.prototype.toString.call(this);
    };
    CT_PivotAreaReferences.$t = markType(CT_PivotAreaReferences, 'CT_PivotAreaReferences', Base.$, [ISupportSetProperty_$type]);
    return CT_PivotAreaReferences;
}(Base));
export { CT_PivotAreaReferences };
//# sourceMappingURL=CT_PivotAreaReferences.js.map