/*
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 { 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
 */
export let CT_PivotAreaReferences = /*@__PURE__*/ (() => {
    class CT_PivotAreaReferences extends Base {
        constructor() {
            super();
            this.a = null;
            this.c = 0;
            this.a = new List$1(CT_PivotAreaReference.$, 0);
        }
        static d(a, b) {
            b = 0;
            for (let c of fromEnum(a.ab.u)) {
                switch (c.a.e(a.d)) {
                    case "count":
                        b = parseUInt32_1(c.d, CultureInfo.invariantCulture);
                        break;
                    default: break;
                }
            }
            return {
                p1: b
            };
        }
        static e(a, b, c) {
            a.ad.p(b, null);
            let d = null;
            let e = null;
            e = "count";
            d = c.toString();
            a.ad.h(e, d);
        }
        setProperty(a, b) {
            switch (a) {
                case 1336:
                    this.a.add(typeCast(CT_PivotAreaReference.$, b));
                    break;
                default: break;
            }
        }
        toString() {
            let a = getInstanceType(this);
            return a != null ? a.typeName : super.toString();
        }
    }
    CT_PivotAreaReferences.$t = markType(CT_PivotAreaReferences, 'CT_PivotAreaReferences', Base.$, [ISupportSetProperty_$type]);
    return CT_PivotAreaReferences;
})();
