/*
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 { XYChart } from "./XYChart";
import { typeCast, runOn, delegateCombine, enumGetBox, markType, TypeRegistrar, getInstanceType } from "igniteui-react-core";
import { CategoryChartType_$type } from "./CategoryChartType";
import { CategorySeriesMarkerCollisionAvoidance_$type } from "./CategorySeriesMarkerCollisionAvoidance";
import { CategoryTransitionInMode_$type } from "./CategoryTransitionInMode";
import { TransitionInSpeedType_$type } from "./TransitionInSpeedType";
import { AutoMarginsAndAngleUpdateMode_$type } from "./AutoMarginsAndAngleUpdateMode";
import { AxisRangeBufferMode_$type } from "./AxisRangeBufferMode";
import { CategoryXAxis } from "./CategoryXAxis";
import { List$1 } from "igniteui-react-core";
import { DataSeriesType_$type } from "igniteui-react-core";
import { NumericYAxis } from "./NumericYAxis";
import { IDataSeriesAdapterRule_$type } from "igniteui-react-core";
import { SimpleCategorySeriesRule } from "igniteui-react-core";
import { SubCollectionsRule } from "igniteui-react-core";
import { DVContainer } from "igniteui-react-core";
import { Brush } from "igniteui-react-core";
import { AxisDefaults } from "./AxisDefaults";
import { Defaults } from "./Defaults";
import { Series } from "./Series";
import { HorizontalAnchoredCategorySeries } from "./HorizontalAnchoredCategorySeries";
import { ArrayExtension } from "igniteui-react-core";
import { AxisLabelSettings } from "./AxisLabelSettings";
import { DeviceUtils } from "igniteui-react-core";
import { CategoryChartMockDataGenerator } from "./CategoryChartMockDataGenerator";
import { stringIsNullOrEmpty } from "igniteui-react-core";
/**
 * @hidden
 */
export let CategoryChart = /*@__PURE__*/ (() => {
    class CategoryChart extends XYChart {
        u2() {
            super.u2();
            if (this.dataChart == null) {
                return;
            }
            let a = this.dataChart.c9.j.e();
            this.agy = a.d;
            this.agz = a.e;
            if (this.af8 == null) {
                this.af8 = a.k;
            }
            if (this.agf == null) {
                this.agf = a.k;
            }
            this.ab7 = 0;
            this.agg = AxisDefaults.h;
            this.agj = null;
            this.agc = AxisDefaults.g;
            this.af9 = null;
            this.abq = AxisDefaults.f;
            this.agd = AxisDefaults.j;
            this.abr = AxisDefaults.e;
            this.crosshairsAnnotationEnabled = true;
            this.gl = true;
            this.crosshairsDisplayMode = 0;
            this.jj = Defaults.j;
            this.x9 = Defaults.ae;
            this.x4 = Defaults.af;
            this.x5 = Defaults.ag;
            this.ah2 = true;
        }
        u4(a, b) {
            super.u4(a, b);
            a.ke = this.ajk;
            a.kf = this.ajl;
            a.de = this.ahm;
            a.df = this.ahn;
        }
        vu(a, b, c) {
            super.vu(a, b, c);
            switch (a) {
                case "TransitionInDuration":
                    this.ur((d) => d.ke = this.ajk);
                    break;
                case "TransitionOutDuration":
                    this.ur((d) => d.kf = this.ajl);
                    break;
                case "TransitionInEasingFunction":
                    this.ur((d) => d.de = this.ahm);
                    break;
                case "TransitionOutEasingFunction":
                    this.ur((d) => d.df = this.ahn);
                    break;
            }
        }
        get ajk() {
            return this.ajh;
        }
        set ajk(a) {
            let b = this.ajk;
            if (a != b) {
                this.ajh = a;
                this.vr("TransitionInDuration", b, this.ajk);
            }
        }
        get ajl() {
            return this.aji;
        }
        set ajl(a) {
            let b = this.ajl;
            if (a != b) {
                this.aji = a;
                this.vr("TransitionOutDuration", b, this.ajl);
            }
        }
        get ahm() {
            return this.ahk;
        }
        set ahm(a) {
            let b = this.ahm;
            if (a != b) {
                this.ahk = a;
                this.vr("TransitionInEasingFunction", b, this.ahm);
            }
        }
        get ahn() {
            return this.ahl;
        }
        set ahn(a) {
            let b = this.ahn;
            if (a != b) {
                this.ahl = a;
                this.vr("TransitionOutEasingFunction", b, this.ahn);
            }
        }
        ajr() {
            let cvd_ = this.ls();
            cvd_.scaleByViewport();
            return (cvd_.serialize());
        }
        ux(a, b) {
            super.ux(a, b);
            a.ek = this.ge;
            a.xl = this.ah3;
            a.xo = this.ah4;
            a.yb = this.ais;
            a.yc = this.ait;
            a.wq = this.ag1;
        }
        u3(a, b) {
            super.u3(a, b);
            let c = typeCast(HorizontalAnchoredCategorySeries.$, a);
            if (c == null) {
                return;
            }
            c.aav = this.ag7;
            c.zj = this.ah2;
            c.y3 = this.ag9;
            c.c5 = this.ahj;
            c.trendLineBrush = ArrayExtension.getModulus$1(Brush.$, this.af, b);
            c.trendLineType = this.trendLineType;
            c.trendLineThickness = this.kf;
            c.w8 = this.c2(a, b);
            if (a.fm) {
                a.r1(ArrayExtension.getModulus$1(Brush.$, this.agy, b), ArrayExtension.getModulus$1(Brush.$, this.agz, b));
            }
        }
        aha() {
            return new CategoryXAxis();
        }
        ahe() {
            return new NumericYAxis();
        }
        ud() {
            this.xAxis = this.aha();
            this.xAxis.name = "xAxis";
            let a = this.xAxis;
            a.propertyChanged = delegateCombine(a.propertyChanged, runOn(this, this.akv));
            this.yAxis = this.ahe();
            this.yAxis.name = "yAxis";
            let b = this.yAxis;
            b.propertyChanged = delegateCombine(b.propertyChanged, runOn(this, this.akw));
            if (this.xAxis.az == null) {
                this.xAxis.az = new AxisLabelSettings();
            }
            if (this.yAxis.az == null) {
                this.yAxis.az = new AxisLabelSettings();
            }
        }
        ae8(a) {
            super.ae8(a);
            a.lf = this.ah6;
            a.lj = this.ah8;
            a.b1 = this.ah7;
        }
        ae6(a) {
            super.ae6(a);
            a.b1 = this.ah5;
            a.zoomMaximumCategoryRange = this.ai6;
            a.zoomToCategoryRange = this.ai8;
            a.zoomToCategoryStart = this.ai9;
            a.zoomMaximumItemSpan = this.ai7;
            a.zoomToItemSpan = this.aja;
        }
        get_cb() {
            return 0;
        }
        get cb() {
            return this.get_cb();
        }
        get ag5() {
            return this.ag4;
        }
        set ag5(a) {
            if (a != this.ag4) {
                let b = this.ag5;
                this.ag4 = a;
                this.vr("ChartType", enumGetBox(CategoryChartType_$type, b), enumGetBox(CategoryChartType_$type, this.ag5));
            }
        }
        get ag7() {
            return this.ag6;
        }
        set ag7(a) {
            let b = this.ag7;
            if (a != b) {
                this.ag6 = a;
                this.vr("MarkerCollisionAvoidance", enumGetBox(CategorySeriesMarkerCollisionAvoidance_$type, b), enumGetBox(CategorySeriesMarkerCollisionAvoidance_$type, this.ag7));
            }
        }
        get ah1() {
            return this.ahq;
        }
        set ah1(a) {
            let b = this.ah1;
            if (a != b) {
                this.ahq = a;
                this.vr("IsSplineShapePartOfRange", b, this.ah1);
            }
        }
        get ah2() {
            return this.ahr;
        }
        set ah2(a) {
            let b = this.ah2;
            if (a != b) {
                this.ahr = a;
                this.vr("IsTransitionInEnabled", b, this.ah2);
            }
        }
        get ag9() {
            return this.ag8;
        }
        set ag9(a) {
            let b = this.ag9;
            if (a != b) {
                this.ag8 = a;
                this.vr("TransitionInMode", enumGetBox(CategoryTransitionInMode_$type, b), enumGetBox(CategoryTransitionInMode_$type, this.ag9));
            }
        }
        get ahj() {
            return this.ahi;
        }
        set ahj(a) {
            let b = this.ahj;
            if (a != b) {
                this.ahi = a;
                this.vr("TransitionInSpeedType", enumGetBox(TransitionInSpeedType_$type, b), enumGetBox(TransitionInSpeedType_$type, this.ahj));
            }
        }
        get ai1() {
            return this.aie;
        }
        set ai1(a) {
            let b = this.ai1;
            if (a != b) {
                this.aie = a;
                this.vr("XAxisInterval", b, this.ai1);
            }
        }
        get ai4() {
            return this.aih;
        }
        set ai4(a) {
            let b = this.ai4;
            if (a != b) {
                this.aih = a;
                this.vr("XAxisMinorInterval", b, this.ai4);
            }
        }
        get ai0() {
            return this.aid;
        }
        set ai0(a) {
            let b = this.ai0;
            if (a != b) {
                this.aid = a;
                this.vr("XAxisGap", b, this.ai0);
            }
        }
        get ai3() {
            return this.aig;
        }
        set ai3(a) {
            let b = this.ai3;
            if (a != b) {
                this.aig = a;
                this.vr("XAxisMinimumGapSize", b, this.ai3);
            }
        }
        get ai2() {
            return this.aif;
        }
        set ai2(a) {
            let b = this.ai2;
            if (a != b) {
                this.aif = a;
                this.vr("XAxisMaximumGap", b, this.ai2);
            }
        }
        get ai5() {
            return this.aii;
        }
        set ai5(a) {
            let b = this.ai5;
            if (a != b) {
                this.aii = a;
                this.vr("XAxisOverlap", b, this.ai5);
            }
        }
        get ajd() {
            return this.aio;
        }
        set ajd(a) {
            let b = this.ajd;
            if (a != b) {
                this.aio = a;
                this.vr("YAxisInterval", b, this.ajd);
            }
        }
        get ag1() {
            return this.ag0;
        }
        set ag1(a) {
            let b = this.ag1;
            if (a != b) {
                this.ag0 = a;
                this.vr("AutoMarginAndAngleUpdateMode", enumGetBox(AutoMarginsAndAngleUpdateMode_$type, b), enumGetBox(AutoMarginsAndAngleUpdateMode_$type, this.ag1));
            }
        }
        akx() {
            if (this.dataChart != null) {
                this.dataChart.zw();
            }
        }
        get ah3() {
            return this.ahs;
        }
        set ah3(a) {
            let b = this.ah3;
            if (a != b) {
                this.ahs = a;
                this.vr("ShouldAutoExpandMarginForInitialLabels", b, this.ah3);
            }
        }
        get ah4() {
            return this.aht;
        }
        set ah4(a) {
            let b = this.ah4;
            if (a != b) {
                this.aht = a;
                this.vr(CategoryChart.aj0, b, this.ah4);
            }
        }
        get ais() {
            return this.aib;
        }
        set ais(a) {
            let b = this.ais;
            if (a != b) {
                this.aib = a;
                this.vr("AutoExpandMarginExtraPadding", b, this.ais);
            }
        }
        get ait() {
            return this.aic;
        }
        set ait(a) {
            let b = this.ait;
            if (a != b) {
                this.aic = a;
                this.vr("AutoExpandMarginMaximumValue", b, this.ait);
            }
        }
        get ah8() {
            return this.ahx;
        }
        set ah8(a) {
            let b = this.ah8;
            if (a != b) {
                this.ahx = a;
                this.vr("YAxisFavorLabellingScaleEnd", b, this.ah8);
            }
        }
        get ah5() {
            return this.ahu;
        }
        set ah5(a) {
            let b = this.ah5;
            if (a != b) {
                this.ahu = a;
                this.vr(CategoryChart.aj7, b, this.ah5);
            }
        }
        get ah7() {
            return this.ahw;
        }
        set ah7(a) {
            let b = this.ah7;
            if (a != b) {
                this.ahw = a;
                this.vr(CategoryChart.akl, b, this.ah7);
            }
        }
        get ag3() {
            return this.ag2;
        }
        set ag3(a) {
            let b = this.ag3;
            if (a != b) {
                this.ag2 = a;
                this.vr("YAxisAutoRangeBufferMode", enumGetBox(AxisRangeBufferMode_$type, b), enumGetBox(AxisRangeBufferMode_$type, this.ag3));
            }
        }
        get ah9() {
            return this.ahy;
        }
        set ah9(a) {
            let b = this.ah9;
            if (a != b) {
                this.ahy = a;
                this.vr("YAxisIsLogarithmic", b, this.ah9);
            }
        }
        get ajm() {
            return this.ajj;
        }
        set ajm(a) {
            let b = this.ajm;
            if (a != b) {
                this.ajj = a;
                this.vr("YAxisLogarithmBase", b, this.ajm);
            }
        }
        get ajf() {
            return this.aiq;
        }
        set ajf(a) {
            let b = this.ajf;
            if (a != b) {
                this.aiq = a;
                this.vr("YAxisMinimumValue", b, this.ajf);
            }
        }
        get aje() {
            return this.aip;
        }
        set aje(a) {
            let b = this.aje;
            if (a != b) {
                this.aip = a;
                this.vr("YAxisMaximumValue", b, this.aje);
            }
        }
        get ajg() {
            return this.air;
        }
        set ajg(a) {
            let b = this.ajg;
            if (a != b) {
                this.air = a;
                this.vr("YAxisMinorInterval", b, this.ajg);
            }
        }
        get aiz() {
            return this.xAxis.m1;
        }
        get aiy() {
            return this.xAxis.m0;
        }
        aiv() {
            return this.aiz;
        }
        aix() {
            return this.ajc;
        }
        aiu() {
            return this.aiy;
        }
        aiw() {
            return this.ajb;
        }
        get ajc() {
            return this.yAxis.l4;
        }
        get ajb() {
            return this.yAxis.l3;
        }
        get agy() {
            return this.agw;
        }
        set agy(a) {
            let b = this.agy;
            if (a != b) {
                this.agw = a;
                this.vr("NegativeBrushes", b, this.agy);
            }
        }
        get agz() {
            return this.agx;
        }
        set agz(a) {
            let b = this.agz;
            if (a != b) {
                this.agx = a;
                this.vr("NegativeOutlines", b, this.agz);
            }
        }
        get ah6() {
            return this.ahv;
        }
        set ah6(a) {
            let b = this.ah6;
            if (a != b) {
                this.ahv = a;
                this.vr("YAxisAbbreviateLargeNumbers", b, this.ah6);
            }
        }
        get ai6() {
            return this.aij;
        }
        set ai6(a) {
            let b = this.ai6;
            if (a != b) {
                this.aij = a;
                this.vr("XAxisZoomMaximumCategoryRange", b, this.ai6);
            }
        }
        get ai7() {
            return this.aik;
        }
        set ai7(a) {
            let b = this.ai7;
            if (a != b) {
                this.aik = a;
                this.vr("XAxisZoomMaximumItemSpan", b, this.ai7);
            }
        }
        get ai8() {
            return this.ail;
        }
        set ai8(a) {
            let b = this.ai8;
            if (a != b) {
                this.ail = a;
                this.vr("XAxisZoomToCategoryRange", b, this.ai8);
            }
        }
        get ai9() {
            return this.aim;
        }
        set ai9(a) {
            let b = this.ai9;
            if (a != b) {
                this.aim = a;
                this.vr("XAxisZoomToCategoryStart", b, this.ai9);
            }
        }
        get aja() {
            return this.ain;
        }
        set aja(a) {
            let b = this.aja;
            if (a != b) {
                this.ain = a;
                this.vr("XAxisZoomToItemSpan", b, this.aja);
            }
        }
        get ahz() {
            return this.aho;
        }
        set ahz(a) {
            let b = this.ahz;
            if (a != b) {
                this.aho = a;
                this.vr("IsCategoryHighlightingEnabled", b, this.ahz);
            }
        }
        get ah0() {
            return this.ahp;
        }
        set ah0(a) {
            let b = this.ah0;
            if (a != b) {
                this.ahp = a;
                this.vr("IsItemHighlightingEnabled", b, this.ah0);
            }
        }
        constructor() {
            super();
            this.ajh = 1000;
            this.aji = 1000;
            this.ahk = null;
            this.ahl = null;
            this.ag4 = 9;
            this.ag6 = 1;
            this.ahq = false;
            this.ahr = true;
            this.ag8 = 0;
            this.ahi = 0;
            this.aie = 0;
            this.aih = 0;
            this.aid = 0;
            this.aig = 0;
            this.aif = 1;
            this.aii = 0;
            this.aio = NaN;
            this.ag0 = 1;
            this.ahs = true;
            this.aht = true;
            this.aib = DeviceUtils.g(2);
            this.aic = DeviceUtils.g(60);
            this.ahx = true;
            this.ahu = true;
            this.ahw = false;
            this.ag2 = 0;
            this.ahy = false;
            this.ajj = 10;
            this.aiq = NaN;
            this.aip = NaN;
            this.air = 0;
            this.agw = null;
            this.agx = null;
            this.ahv = true;
            this.aij = 3;
            this.aik = NaN;
            this.ail = NaN;
            this.aim = NaN;
            this.ain = NaN;
            this.aho = false;
            this.ahp = false;
            this.aia = null;
            DVContainer.instance.registerIfLoaded("CategoryChartToolbarFactoryManager");
            this.ui();
        }
        get_hv() {
            let a = new List$1(DataSeriesType_$type, 0);
            if (TypeRegistrar.isRegistered("AreaSeries")) {
                a.add(2);
            }
            if (TypeRegistrar.isRegistered("ColumnSeries")) {
                a.add(1);
            }
            if (TypeRegistrar.isRegistered("LineSeries")) {
                a.add(0);
            }
            if (TypeRegistrar.isRegistered("PointSeries")) {
                a.add(10);
            }
            if (TypeRegistrar.isRegistered("SplineSeries")) {
                a.add(6);
            }
            if (TypeRegistrar.isRegistered("SplineAreaSeries")) {
                a.add(7);
            }
            if (TypeRegistrar.isRegistered("StepAreaSeries")) {
                a.add(5);
            }
            if (TypeRegistrar.isRegistered("StepLineSeries")) {
                a.add(4);
            }
            if (TypeRegistrar.isRegistered("WaterfallSeries")) {
                a.add(8);
            }
            return a;
        }
        get hv() {
            return this.get_hv();
        }
        h1() {
            if (this.aia == null) {
                this.aia = CategoryChartMockDataGenerator.a();
            }
            return this.aia;
        }
        c1(a) {
            if (a != null) {
                let b = super.c1(a);
                if (b == 2) {
                    if (a.fl && this.gw) {
                        return 13;
                    }
                }
            }
            return super.c1(a);
        }
        c3(a) {
            if (a != null) {
                let b = super.c1(a);
                if (b == 2) {
                    if (a.fl && this.gw) {
                        return 13;
                    }
                }
            }
            return super.c3(a);
        }
        get_hf() {
            return true;
        }
        akv(a, b) {
            switch (b.propertyName) {
                case "ActualMinimum":
                    this.v8("XAxisActualMinimum");
                    break;
                case "ActualMaximum":
                    this.v8("XAxisActualMaximum");
                    break;
            }
        }
        akw(a, b) {
            switch (b.propertyName) {
                case "ActualMinimumValue":
                    this.v8("YAxisActualMinimum");
                    break;
                case "ActualMaximumValue":
                    this.v8("YAxisActualMaximum");
                    break;
            }
        }
        wm() {
            super.wm();
            this.xAxis.f2 = this.ach == null ? XYChart.act(this.xAxis, this.bf.dataSeries) : this.ach;
            this.xAxis.itemsSource = this.dataChart != null && this.dataChart.series.count > 0 ? this.dataChart.series._inner[0].itemsSource : null;
            if (this.ah3) {
                this.vh((a) => a.zw());
            }
        }
        get xAxis() {
            return this._xAxis;
        }
        set xAxis(a) {
            this._xAxis = a;
        }
        get yAxis() {
            return this._yAxis;
        }
        set yAxis(a) {
            this._yAxis = a;
        }
        ahd(a, b) {
            switch (a) {
                case 2: return this.de(1);
                case 3: return this.de(10);
                case 0: return this.de(0);
                case 1: return this.de(2);
                case 6: return this.de(6);
                case 7: return this.de(7);
                case 4: return this.de(4);
                case 5: return this.de(5);
                case 8: return this.de(8);
                case 9: return this.ahc(b);
                default: return this.de(1);
            }
        }
        ahc(a) {
            return this.de(a);
        }
        be(a) {
            switch (this.ag5) {
                case 1: return 2;
                case 0: return 0;
                case 3: return 10;
                case 6: return 6;
                case 7: return 7;
                case 5: return 5;
                case 4: return 4;
                case 8: return 8;
                case 9: return a.suggestedSeries;
                default:
                case 2: return 1;
            }
        }
        dc(a, b) {
            let c = this.ahd(this.ag5, a.suggestedSeries);
            c.abl = a.findMatchingHint(0).path;
            c.xAxis = this.xAxis;
            c.yAxis = this.yAxis;
            return c;
        }
        wk(a) {
            if (a.suggestedSecondaryAxis == 2) {
                this.yAxis.lo = true;
                this.yAxis.mm = 10;
            }
        }
        wn() {
            this.yAxis.lo = this.ah9;
            this.yAxis.mm = this.ajm;
        }
        get_hu() {
            return ((() => {
                let $ret = new List$1(IDataSeriesAdapterRule_$type, 0);
                $ret.add(new SimpleCategorySeriesRule());
                $ret.add(new SubCollectionsRule());
                return $ret;
            })());
        }
        get hu() {
            return this.get_hu();
        }
        t7(a, b) {
            let c = typeCast(HorizontalAnchoredCategorySeries.$, a);
            if (c != null) {
                c.aav = this.ag7;
                c.w8 = this.c2(a, b);
            }
        }
        akt(a) {
            this.aku((b, c) => a(b));
        }
        aku(a) {
            if (this.dataChart == null) {
                return;
            }
            for (let b = 0; b < this.dataChart.series.count; b++) {
                let c = typeCast(HorizontalAnchoredCategorySeries.$, this.dataChart.series._inner[b]);
                if (c == null) {
                    continue;
                }
                a(c, b);
            }
        }
        zz() {
            return this.xAxis;
        }
        z0() {
            return this.yAxis;
        }
        ahg() {
            return this.de(30);
        }
        ahh() {
            return this.de(31);
        }
        hr(a, b) {
            let c = super.hr(a, b);
            if (c != null) {
                let d = new List$1(Series.$, 0);
                if (this.aho) {
                    d.add(this.ahg());
                }
                if (this.ahp) {
                    d.add(this.ahh());
                }
                for (let e = 0; e < d.count; e++) {
                    let f = d._inner[e];
                    f.name = a + getInstanceType(f).typeName;
                    c.add(f);
                }
            }
            return c;
        }
        ba() {
            if (this.a9 == 0) {
                return 1;
            }
            else {
                return this.a9;
            }
        }
        wr(a, b, c) {
            super.wr(a, b, c);
            if (this.bf.dataSeries.count > 0) {
                if (stringIsNullOrEmpty(this.nl)) {
                    this.ce.setXMemberPath(a, c.getMemberPathFor(16));
                }
                if (stringIsNullOrEmpty(this.nn)) {
                    this.ce.setYMemberPath(a, c.getMemberPathFor(0));
                }
                if (stringIsNullOrEmpty(this.m9)) {
                    this.ce.setLabelMemberPath(a, c.getMemberPathFor(0));
                }
                if (stringIsNullOrEmpty(this.m5)) {
                    this.ce.setContentMemberPath(a, c.getMemberPathFor(0));
                }
            }
        }
        gz() {
            if (this.crosshairsDisplayMode == 4 || this.crosshairsDisplayMode == 3) {
                return true;
            }
            else if (this.crosshairsDisplayMode == 0) {
                if (this.ag5 == 2 || this.ag5 == 8) {
                    return false;
                }
                else if (this.ag5 == 9 && this.bf != null && this.bf.dataSeries != null && this.bf.dataSeries.count > 0) {
                    let a = this.bf.dataSeries._inner[0].suggestedSeries;
                    if (a == 1 || a == 8) {
                        return false;
                    }
                }
                return true;
            }
            return false;
        }
        get_g6() {
            return DVContainer.instance.checkLoaded("CategoryChartToolbarFactoryManager");
        }
        vr(a, b, c) {
            super.vr(a, b, c);
            switch (a) {
                case "ChartType":
                    this.uo();
                    break;
                case "MarkerCollisionAvoidance":
                    this.akt((d) => d.aav = this.ag7);
                    break;
                case "IsTransitionInEnabled":
                    this.akt((d) => d.zj = this.ah2);
                    break;
                case "IsSplineShapePartOfRange":
                    this.akt((d) => {
                        if (d.f0) {
                            d.r2(this.ah1);
                        }
                    });
                    break;
                case "TransitionInMode":
                    this.akt((d) => d.y3 = this.ag9);
                    break;
                case "TransitionInSpeedType":
                    this.akt((d) => d.c5 = this.ahj);
                    break;
                case "XAxisInterval":
                    this.xAxis.mw = this.ai1;
                    break;
                case "XAxisMinorInterval":
                    this.xAxis.mx = this.ai4;
                    break;
                case "XAxisGap":
                    this.xAxis.k5 = this.ai0;
                    break;
                case "XAxisOverlap":
                    this.xAxis.le = this.ai5;
                    break;
                case "XAxisMinimumGapSize":
                    this.xAxis.ld = this.ai3;
                    break;
                case "XAxisMaximumGap":
                    this.xAxis.lc = this.ai2;
                    break;
                case "XAxisZoomMaximumCategoryRange":
                    this.xAxis.zoomMaximumCategoryRange = this.ai6;
                    break;
                case "XAxisZoomMaximumItemSpan":
                    this.xAxis.zoomMaximumItemSpan = this.ai7;
                    break;
                case "XAxisZoomToCategoryRange":
                    this.xAxis.zoomToCategoryRange = this.ai8;
                    break;
                case "XAxisZoomToCategoryStart":
                    this.xAxis.zoomToCategoryStart = this.ai9;
                    break;
                case "XAxisZoomToItemSpan":
                    this.xAxis.zoomToItemSpan = this.aja;
                    break;
                case "YAxisInterval":
                    this.yAxis.l8 = this.ajd;
                    break;
                case "YAxisFavorLabellingScaleEnd":
                    this.yAxis.lj = this.ah8;
                    break;
                case "YAxisAutoRangeBufferMode":
                    this.yAxis.ky = this.ag3;
                    break;
                case "YAxisIsLogarithmic":
                    this.yAxis.lo = this.ah9;
                    break;
                case "YAxisLogarithmBase":
                    this.yAxis.mm = this.ajm;
                    break;
                case "YAxisMinimumValue":
                    this.yAxis.mc = this.ajf;
                    break;
                case "YAxisMaximumValue":
                    this.yAxis.mb = this.aje;
                    break;
                case "YAxisMinorInterval":
                    this.yAxis.md = this.ajg;
                    break;
                case "NegativeBrushes":
                case "NegativeOutlines":
                    this.aku((d, e) => {
                        if (d.fm) {
                            d.r1(ArrayExtension.getModulus$1(Brush.$, this.agy, e), ArrayExtension.getModulus$1(Brush.$, this.agz, e));
                        }
                    });
                    break;
                case "YAxisAbbreviateLargeNumbers":
                    this.aff((d) => d.lf = this.ah6);
                    break;
                case "IsCategoryHighlightingEnabled":
                case "IsItemHighlightingEnabled":
                    this.uo();
                    break;
                case "AutoMarginAndAngleUpdateMode":
                    this.vh((d) => d.wq = this.ag1);
                    break;
                case "ShouldAutoExpandMarginForInitialLabels":
                    this.vh((d) => d.xl = this.ah3);
                    break;
                case CategoryChart.aj0:
                    this.vh((d) => d.xo = this.ah4);
                    break;
                case "AutoExpandMarginExtraPadding":
                    this.vh((d) => d.yb = this.ais);
                    break;
                case "AutoExpandMarginMaximumValue":
                    this.vh((d) => d.yc = this.ait);
                    break;
                case CategoryChart.aj7:
                    this.afb((d) => d.b1 = this.ah5, a);
                    break;
                case CategoryChart.akl:
                    this.aff((d) => d.b1 = this.ah7);
                    break;
            }
        }
    }
    CategoryChart.$t = /*@__PURE__*/ markType(CategoryChart, 'CategoryChart', XYChart.$);
    CategoryChart.aj0 = "ShouldConsiderAutoRotationForInitialLabels";
    CategoryChart.aj7 = "XAxisEnhancedIntervalPreferMoreCategoryLabels";
    CategoryChart.akl = "YAxisEnhancedIntervalPreferMoreCategoryLabels";
    return CategoryChart;
})();
