/*
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 { AnchoredRadialSeries } from "./AnchoredRadialSeries";
import { UnknownValuePlotting_$type } from "igniteui-react-core";
import { DependencyProperty } from "igniteui-react-core";
import { Array_$type, Point_$type, runOn, enumGetBox, markType, markDep } from "igniteui-react-core";
import { List$1 } from "igniteui-react-core";
import { Path } from "igniteui-react-core";
import { ScalerParams } from "./ScalerParams";
import { ViewportUtils } from "./ViewportUtils";
import { PropertyMetadata } from "igniteui-react-core";
import { AnchoredRadialSeriesView } from "./AnchoredRadialSeriesView";
/**
 * @hidden
 */
export let RadialAreaSeries = /*@__PURE__*/ (() => {
    class RadialAreaSeries extends AnchoredRadialSeries {
        constructor() {
            super();
            this.ab = RadialAreaSeries.$;
        }
        bp() {
            return new RadialAreaSeriesView(this);
        }
        kk(a) {
            super.kk(a);
            this.r6 = a;
        }
        preferredCategoryMode(a) {
            return 0;
        }
        jl(a, b) {
            super.jl(a, b);
            this.r6.c1();
        }
        qv(a, b) {
            super.qv(a, b);
            let c = b.bv;
            let d = b.bu;
            let e = b;
            if (b.o() && !c.isEmpty && !d.isEmpty && this.pr != null && this.py != null) {
                let f = a.f;
                let g = f.count;
                let h = new List$1(Array_$type, 2, g);
                let i = 0;
                for (let j = 0; j < g; j++) {
                    let k = new Array(4);
                    h.add(k);
                    k[0] = this.pz.d(a.f._inner[j][0], a.f._inner[j][1], c, d);
                    k[1] = this.pz.e(a.f._inner[j][0], a.f._inner[j][1], c, d);
                    k[2] = this.pz.d(a.f._inner[j][0], a.f._inner[j][2], c, d);
                    let l = a.f._inner[j][2];
                    k[3] = this.pz.e(a.f._inner[j][0], l, c, d);
                    if (l > i) {
                        i = l;
                    }
                }
                let m = ViewportUtils.c(0.5, c, d);
                let n = ViewportUtils.f(0.5, c, d);
                this.r5 = { $type: Point_$type, x: m, y: n };
                let o = this.getEffectiveViewport1(e);
                this.p4.a0(this, this.qg(), runOn(this, this.po), this.qi(b), this.qj(b));
                let p = false;
                let q = this.p4.b;
                if (q != null) {
                    p = true;
                }
                if (p) {
                    let r = new ScalerParams(0, b.bv, b.bu, this.pr.ca, o);
                    this.rq(f, -1, this.q9.count, this.pr, r, b.q);
                }
                let s = e.c9;
                let t = e.da;
                let u = e.c7;
                let v = e.c8;
                this.p4.ad(s, true, false, true, true);
                this.p4.ad(t, true, false, true, true);
                this.p4.ad(u, false, true, false, false);
                this.p4.ad(v, false, true, false, false);
                e.c2(a.f.count, h, false, this.r6.cs.b, this.fq, runOn(this, this.rr), this.r7);
                u._opacity = this.p4.j * this.er;
                v._opacity = 0.5 * this.p4.j * this.er;
            }
        }
        kp(a, b, c, d) {
            super.kp(a, b, c, d);
            switch (b) {
                case RadialAreaSeries.$$p[0]:
                    this.k3(false);
                    this.ka();
                    break;
            }
        }
        get_rc() {
            return true;
        }
    }
    RadialAreaSeries.$t = /*@__PURE__*/ markType(RadialAreaSeries, 'RadialAreaSeries', AnchoredRadialSeries.$);
    RadialAreaSeries.$$p = /*@__PURE__*/ markDep(DependencyProperty, PropertyMetadata, RadialAreaSeries, 'raisePropertyChanged', ['UnknownValuePlotting:r7:r9', [UnknownValuePlotting_$type, /*@__PURE__*/ enumGetBox(UnknownValuePlotting_$type, 1)]]);
    return RadialAreaSeries;
})();
/**
 * @hidden
 */
export let RadialAreaSeriesView = /*@__PURE__*/ (() => {
    class RadialAreaSeriesView extends AnchoredRadialSeriesView {
        constructor(a) {
            super(a);
            this.c0 = null;
            this.c7 = new Path();
            this.c9 = new Path();
            this.c8 = new Path();
            this.da = new Path();
            this.c3 = new Path();
            this.c5 = new Path();
            this.c4 = new Path();
            this.c6 = new Path();
            this.c0 = a;
        }
        as() {
            super.as();
            if (!this.q) {
                this.e.fq = 4;
                this.e.bx = 1;
            }
        }
        c1() {
            this.c7.ak = null;
            this.c9.ak = null;
            this.c8.ak = null;
            this.da.ak = null;
            this.c3.ak = null;
            this.c5.ak = null;
            this.c4.ak = null;
            this.c6.ak = null;
            this.aq();
        }
        c2(a, b, c, d, e, f, g) {
            this.cw.q4.i(this.c7, this.c9, this.c8, this.da, a, b, c, d, e, f, g);
            this.aq();
        }
        bb() {
            super.bb();
        }
        bc() {
            super.bc();
            let a = this.bo();
            this.c5.ak = this.c9.ak;
            this.c6.ak = this.da.ak;
            this.c3.ak = this.c7.ak;
            this.c4.ak = this.c8.ak;
            this.c5._stroke = a;
            this.c5.ac = this.e.eu + 3;
            this.c6._stroke = a;
            this.c6.ac = this.e.eu + 3;
            this.c3._fill = a;
            this.c3._opacity = 1;
            this.c4._fill = a;
            this.c4._opacity = 1;
        }
        a6(a, b) {
            super.a6(a, b);
            if (a.d) {
                if (b) {
                    a.s(this.c3);
                    a.s(this.c4);
                    a.s(this.c5);
                    a.s(this.c6);
                }
                else {
                    a.s(this.c7);
                    a.s(this.c8);
                    a.s(this.c9);
                    a.s(this.da);
                }
            }
        }
        al(a) {
            super.al(a);
            this.e.a5.exportPathData(a, this.c9, "lowerShape", ["Lower"]);
            this.e.a5.exportPathData(a, this.da, "upperShape", ["Upper", "Main"]);
            this.e.a5.exportPathData(a, this.c8, "translucentShape", ["Translucent"]);
            this.e.a5.exportPathData(a, this.c7, "fillShape", ["Fill"]);
        }
    }
    RadialAreaSeriesView.$t = /*@__PURE__*/ markType(RadialAreaSeriesView, 'RadialAreaSeriesView', AnchoredRadialSeriesView.$);
    return RadialAreaSeriesView;
})();
//# sourceMappingURL=RadialAreaSeries_combined.js.map
