/*
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 { DependencyProperty } from "igniteui-react-core";
import { runOn, markType, markDep } from "igniteui-react-core";
import { Path } from "igniteui-react-core";
import { PropertyMetadata } from "igniteui-react-core";
import { PolarLineSeriesBaseView } from "./PolarLineSeriesBaseView";
import { PathGeometry } from "igniteui-react-core";
import { Extensions } from "igniteui-react-core";
import { Numeric } from "igniteui-react-core";
import { Color } from "igniteui-react-core";
/**
 * @hidden
 */
export let PolarSplineAreaSeries = /*@__PURE__*/ (() => {
    class PolarSplineAreaSeries extends PolarLineSeriesBase {
        constructor() {
            super();
            this.ab = PolarSplineAreaSeries.$;
        }
        bp() {
            return new PolarSplineAreaSeriesView(this);
        }
        kk(a) {
            super.kk(a);
            this.s9 = a;
        }
        s7(a) {
            let b = a;
            b.c5();
        }
        s8(a, b) {
            this.s7(b);
            if (a.m.count < 1) {
                return;
            }
            let c = b;
            c.c6(a.m, this.ta);
            this.qb.ax(this, this.qy(), runOn(this, this.pp));
            let d = false;
            let e = this.qb.b;
            if (e != null) {
                d = true;
            }
            if (d) {
                this.ry(-1, this.qk.count, b.q);
            }
            let f = c.dc;
            let g = c.db;
            this.qb.ad(f, true, false, true, true);
            this.qb.ad(g, false, true, false, false);
            g._opacity = this.qb.j * this.er;
        }
        get_s4() {
            return true;
        }
        kp(a, b, c, d) {
            super.kp(a, b, c, d);
            switch (b) {
                case PolarSplineAreaSeries.$$p[0]:
                    this.k3(false);
                    break;
            }
        }
    }
    PolarSplineAreaSeries.$t = /*@__PURE__*/ markType(PolarSplineAreaSeries, 'PolarSplineAreaSeries', PolarLineSeriesBase.$);
    PolarSplineAreaSeries.$$p = /*@__PURE__*/ markDep(DependencyProperty, PropertyMetadata, PolarSplineAreaSeries, 'raisePropertyChanged', ['Stiffness:ta:tc', [1, 0.5]]);
    return PolarSplineAreaSeries;
})();
/**
 * @hidden
 */
export let PolarSplineAreaSeriesView = /*@__PURE__*/ (() => {
    class PolarSplineAreaSeriesView extends PolarLineSeriesBaseView {
        constructor(a) {
            super(a);
            this.c4 = null;
            this.da = ((() => {
                let $ret = new Path();
                $ret.ak = new PathGeometry();
                return $ret;
            })());
            this.c9 = ((() => {
                let $ret = new Path();
                $ret.ak = new PathGeometry();
                return $ret;
            })());
            this.c8 = ((() => {
                let $ret = new Path();
                $ret.ak = new PathGeometry();
                return $ret;
            })());
            this.c7 = ((() => {
                let $ret = new Path();
                $ret.ak = new PathGeometry();
                return $ret;
            })());
            this.c4 = a;
        }
        as() {
            super.as();
            if (!this.q) {
                this.e.bx = 1;
            }
        }
        get db() {
            return this.c9;
        }
        get dc() {
            return this.da;
        }
        c5() {
            Extensions.e(this.c9.ak);
            Extensions.e(this.da.ak);
            Extensions.e(this.c7.ak);
            Extensions.e(this.c8.ak);
            this.aq();
        }
        c6(a, b) {
            this.da.ak.c = Numeric.h(a.count + 1, (c) => c < a.count ? a._inner[c].x : a._inner[c - a.count].x, (c) => c < a.count ? a._inner[c].y : a._inner[c - a.count].y, b);
            this.c9.ak.c = Numeric.h(a.count + 1, (c) => c < a.count ? a._inner[c].x : a._inner[c - a.count].x, (c) => c < a.count ? a._inner[c].y : a._inner[c - a.count].y, b);
            this.aq();
        }
        bb() {
            super.bb();
        }
        bc() {
            super.bc();
            let a = this.bo();
            this.c7.ak = this.c9.ak;
            this.c8.ak = this.da.ak;
            this.c7._fill = a;
            this.c7._opacity = 1;
            this.c8._stroke = a;
            this.c8.ac = this.e.eu + 3;
        }
        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;
        }
    }
    PolarSplineAreaSeriesView.$t = /*@__PURE__*/ markType(PolarSplineAreaSeriesView, 'PolarSplineAreaSeriesView', PolarLineSeriesBaseView.$);
    return PolarSplineAreaSeriesView;
})();
//# sourceMappingURL=PolarSplineAreaSeries_combined.js.map
