/*
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, markType } from "igniteui-react-core";
/**
 * @hidden
 */
export let SeriesRenderManager = /*@__PURE__*/ (() => {
    class SeriesRenderManager extends Base {
        constructor() {
            super(...arguments);
            this.ag = null;
            this.ah = null;
            this.m = 0;
            this.am = null;
            this.ao = 0;
            this.k = 0;
            this.l = 0;
            this.j = 0;
            this.i = 0;
            this.au = 0;
            this.aq = 0;
            this.ap = 0;
            this.ak = null;
            this.al = null;
            this.t = 0;
            this.an = null;
            this.ar = 0;
            this.r = 0;
            this.s = 0;
            this.q = 0;
            this.p = 0;
            this.av = 0;
            this.at = 0;
            this.as = 0;
            this.ai = null;
            this.aj = null;
            this.n = 0;
            this.o = 0;
            this.f = false;
            this.e = false;
            this.ae = null;
            this.af = null;
            this.g = 0;
            this.h = 0;
            this.b = null;
            this.d = null;
        }
        w(a, b, c) {
            this.e = false;
            this.ai = a.vj();
            this.aj = a.vk();
            this.n = 1;
            this.o = a.io();
            this.ae = this.ai;
            this.af = this.aj;
            this.g = this.n;
            this.h = this.o;
            let d = b;
            this.d = null;
            if (d) {
                this.d = this.c();
                this.d.m = 0;
                this.d.q = 0;
                this.d.u = 0;
                this.d.v = 0;
                this.d.x = 0;
                this.d.t = 0;
                this.d.n = 0;
                this.d.r = 0;
                this.d.w = 0;
                this.d.l = 0;
                this.d.p = 0;
                this.d.s = 0;
                if (a.db != null && a.bx != 1) {
                    this.d.m = a.db.dl.maxMarkerHighlightingProgress;
                    this.d.q = a.db.dl.sumMarkerHighlightingProgress;
                    this.d.v = a.db.dl.totalHighWaterMark;
                    this.d.u = a.db.dl.totalHighlightingProgress;
                }
                if (a.db != null && a.cp != 1) {
                    this.d.n = a.db.dm.maxMarkerHighlightingProgress;
                    this.d.r = a.db.dm.sumMarkerHighlightingProgress;
                    this.d.x = a.db.dm.totalHighWaterMark;
                    this.d.w = a.db.dm.totalHighlightingProgress;
                }
                if (a.db != null && a.co != 1) {
                    this.d.l = a.db.dk.maxMarkerHighlightingProgress;
                    this.d.p = a.db.dk.sumMarkerHighlightingProgress;
                    this.d.t = a.db.dk.totalHighWaterMark;
                    this.d.s = a.db.dk.totalHighlightingProgress;
                }
                this.d.a = c;
            }
        }
        c() {
            return null;
        }
        x(a, b, c) {
            this.f = false;
            this.ak = a.u7;
            this.al = a.vb;
            this.t = a.ie;
            this.an = a.v0;
            this.ar = a.v1;
            this.r = 0;
            this.s = 0;
            this.q = 1;
            this.p = a.jh;
            this.at = a.v2;
            this.as = a.v2;
            this.av = a.v3;
            this.ag = this.ak;
            this.ah = this.al;
            this.m = this.t;
            this.am = this.an;
            this.ao = this.ar;
            this.k = this.r;
            this.l = this.s;
            this.j = this.q;
            this.i = this.p;
            this.aq = this.at;
            this.ap = this.as;
            this.au = this.av;
            let d = b;
            this.b = null;
            if (d) {
                this.b = this.a();
                this.b.m = 0;
                this.b.q = 0;
                this.b.v = 0;
                this.b.x = 0;
                this.b.t = 0;
                this.b.u = 0;
                this.b.n = 0;
                this.b.r = 0;
                this.b.w = 0;
                this.b.l = 0;
                this.b.p = 0;
                this.b.s = 0;
                if (a.db != null && a.bx != 1) {
                    this.b.m = a.db.dl.maxHighlightingProgress;
                    this.b.q = a.db.dl.sumHighlightingProgress;
                    this.b.v = a.db.dl.totalHighWaterMark;
                    this.b.u = a.db.dl.totalHighlightingProgress;
                }
                if (a.db != null && a.cp != 1) {
                    this.b.n = a.db.dm.maxHighlightingProgress;
                    this.b.r = a.db.dm.sumHighlightingProgress;
                    this.b.x = a.db.dm.totalHighWaterMark;
                    this.b.w = a.db.dm.totalHighlightingProgress;
                }
                if (a.db != null && a.cp != 1) {
                    this.b.l = a.db.dk.maxHighlightingProgress;
                    this.b.p = a.db.dk.sumHighlightingProgress;
                    this.b.t = a.db.dk.totalHighWaterMark;
                    this.b.s = a.db.dk.totalHighlightingProgress;
                }
                this.b.a = c;
            }
        }
        a() {
            return null;
        }
        ad(a, b, c, d, e) {
            let f = this.ag;
            if (e) {
                f = this.ah;
            }
            if (c) {
                a._fill = f;
            }
            else {
                if (b) {
                    a._stroke = f;
                }
                else {
                    a._fill = f;
                    a._stroke = this.ah;
                }
                a.ad = this.m;
                a.ai = this.am;
                a.aj = this.ao;
                if (d) {
                    a.ac = this.i;
                    a.am = this.au;
                    a.al = this.aq;
                    a.ak = this.ap;
                }
            }
            a._opacity = this.j;
        }
        ac(a, b) {
            a._opacity = this.g;
            b.itemBrush = this.ae;
            b.thickness = this.h;
            b.actualItemBrush = b.itemBrush;
            b.outline = this.af;
        }
        u(a, b, c, d, e, f, g, h, i, j, k, l) {
            if (a.bx == 1 && a.cp == 1 && a.co == 1) {
                return;
            }
            this.j = a.ba.a$k(a, b, c, d, this.j, e, f, g, h, i, j, k, l);
            this.ag = a.ba.a$at(a, b, c, d, e, f, g, h, i, j, this.ag, false);
            this.ah = a.ba.a$at(a, b, c, d, e, f, g, h, i, j, this.ah, true);
            this.m = a.ba.a$l(a, b, c, d, this.m);
        }
        v(a, b, c, d, e, f, g, h, i, j, k) {
            if (!a.el) {
                return;
            }
            if (a.bx == 1 && a.cp == 1 && a.co == 1) {
                return;
            }
            this.g = a.ba.a$k(a, b, c, d, this.g, e, f, g, h, i, j, k, false);
            this.ae = a.ba.a$at(a, b, c, d, e, f, g, h, i, j, this.ae, false);
            this.af = a.ba.a$at(a, b, c, d, e, f, g, h, i, j, this.af, true);
            this.h = a.ba.a$l(a, b, c, d, this.h);
        }
        ab(a) {
            this.ag = this.ak;
            this.ah = this.al;
            this.m = this.t;
            this.am = this.an;
            this.ao = this.ar;
            this.k = this.r;
            this.l = this.s;
            this.j = this.q;
            let b = this.b;
            b.aa = this.ag;
            b.ab = this.ah;
            b.ae = this.m;
            b.af = this.am;
            b.ag = this.ao;
            b.ac = this.k;
            b.ad = this.l;
            b.o = this.j;
            b.g = this.f;
            b.k = a;
            b.f = false;
        }
        z(a, b, c, d, e, f, g, h, i) {
            let j = this.b;
            this.ag = j.aa;
            this.ah = j.ab;
            this.m = j.ae;
            this.am = j.af;
            this.ao = j.ag;
            this.k = j.ac;
            this.l = j.ad;
            this.j = j.o;
            if ((f || g || h) && !j.f && !e) {
                this.u(a, b, c, d, j.v, j.v, j.x, j.x, j.t, j.t, j.k, i);
            }
        }
        aa(a) {
            this.ae = this.ai;
            this.af = this.aj;
            this.g = this.n;
            this.h = this.o;
            let b = this.d;
            b.aa = this.ae;
            b.ab = this.af;
            b.o = this.g;
            b.g = this.e;
            b.k = a;
            b.f = false;
        }
        y(a, b, c, d, e, f, g, h, i, j, k, l, m, n) {
            let o = this.d;
            this.ae = o.aa;
            this.af = o.ab;
            this.g = o.o;
            if ((f || g || h) && !o.f && !e) {
                this.v(a, b, c, d, i, j, k, l, m, n, o.k);
            }
        }
    }
    SeriesRenderManager.$t = /*@__PURE__*/ markType(SeriesRenderManager, 'SeriesRenderManager');
    return SeriesRenderManager;
})();
