/*
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 { PolarLineSeriesBase } from "./PolarLineSeriesBase";
import { UnknownValuePlotting_$type } from "igniteui-react-core";
import { DependencyProperty } from "igniteui-react-core";
import { runOn, enumGetBox, markType, markDep, Point_$type } from "igniteui-react-core";
import { Path } from "igniteui-react-core";
import { List$1 } from "igniteui-react-core";
import { PropertyMetadata } from "igniteui-react-core";
import { PolarLineSeriesBaseView } from "./PolarLineSeriesBaseView";
import { Color } from "igniteui-react-core";
/**
 * @hidden
 */
export let PolarAreaSeries = /*@__PURE__*/ (() => {
    class PolarAreaSeries extends PolarLineSeriesBase {
        constructor() {
            super();
            this.ab = PolarAreaSeries.$;
        }
        bp() {
            return new PolarAreaSeriesView(this);
        }
        kk(a) {
            super.kk(a);
            this.s9 = a;
        }
        s7(a) {
            let b = a;
            b.c5();
        }
        s8(a, b) {
            if (a.m.count > 0) {
                let c = a.m._inner[0];
                let d = a.m._inner[a.m.count - 1];
                let e = c.x == d.x && c.y == d.y;
                if (!e) {
                    a.m.add(a.m._inner[0]);
                }
            }
            let f = b;
            f.c6(a.m, this.fq);
            this.qb.ax(this, this.qy(), runOn(this, this.pp));
            let g = false;
            let h = this.qb.b;
            if (h != null) {
                g = true;
            }
            if (g) {
                this.ry(-1, this.qk.count, b.q);
            }
            let i = f.dc;
            let j = f.db;
            this.qb.ad(i, true, false, true, true);
            this.qb.ad(j, false, true, false, false);
            j._opacity = this.qb.j * this.er;
        }
        get_s4() {
            return true;
        }
        sz() {
            return this.ta;
        }
    }
    PolarAreaSeries.$t = /*@__PURE__*/ markType(PolarAreaSeries, 'PolarAreaSeries', PolarLineSeriesBase.$);
    PolarAreaSeries.$$p = /*@__PURE__*/ markDep(DependencyProperty, PropertyMetadata, PolarAreaSeries, 'raisePropertyChanged', ['UnknownValuePlotting:ta:tc', [UnknownValuePlotting_$type, /*@__PURE__*/ enumGetBox(UnknownValuePlotting_$type, 1)]]);
    return PolarAreaSeries;
})();
/**
 * @hidden
 */
export let PolarAreaSeriesView = /*@__PURE__*/ (() => {
    class PolarAreaSeriesView extends PolarLineSeriesBaseView {
        constructor(a) {
            super(a);
            this.c4 = null;
            this.da = new Path();
            this.c9 = new Path();
            this.c8 = new Path();
            this.c7 = new Path();
            this.c4 = a;
        }
        as() {
            super.as();
            if (!this.q) {
                this.e.bx = 1;
            }
        }
        get db() {
            return this.c9;
        }
        get dc() {
            return this.da;
        }
        c5() {
            this.c9.ak = null;
            this.da.ak = null;
            this.c7.ak = null;
            this.c8.ak = null;
            this.aq();
        }
        c6(a, b) {
            let c = new List$1(Point_$type, 1, a);
            this.c4.sw.d(this.da, c, b);
            this.c4.sw.d(this.c9, c, b);
            this.aq();
        }
        bb() {
            super.bb();
        }
        bc() {
            super.bc();
            let a = this.bo();
            this.c8.ak = this.da.ak;
            this.c7.ak = this.c9.ak;
            this.c8._stroke = a;
            this.c8.ac = this.e.eu + 3;
            this.c7._fill = a;
            this.c7._opacity = 1;
        }
        a6(a, b) {
            super.a6(a, b);
            if (a.d) {
                if (b) {
                    a.s(this.c7);
                    a.s(this.c8);
                }
                else {
                    a.s(this.c9);
                    a.s(this.da);
                }
            }
        }
        al(a) {
            super.al(a);
            this.e.a5.exportPathData(a, this.da, "polarShape", ["Main"]);
            this.e.a5.exportPathData(a, this.c9, "fillShape", ["Fill"]);
        }
        af() {
            let a = new Color();
            a.colorString = "rgba(95,95,95,0.5)";
            this.e.ni = a;
            this.e.fs = 5;
            this.e.ft = 5;
            this.e.fu = 5;
        }
    }
    PolarAreaSeriesView.$t = /*@__PURE__*/ markType(PolarAreaSeriesView, 'PolarAreaSeriesView', PolarLineSeriesBaseView.$);
    return PolarAreaSeriesView;
})();
//# sourceMappingURL=PolarAreaSeries_combined.js.map
