/*
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 { RadialBucketCalculator } from "./RadialBucketCalculator";
import { markType, Point_$type, runOn, delegateCombine, enumGetBox, typeCast, markDep } from "igniteui-react-core";
import { isNaN_, intDivide, isInfinity } from "igniteui-react-core";
import { RadialBase } from "./RadialBase";
import { CategoryLineRasterizer } from "./CategoryLineRasterizer";
import { DependencyProperty } from "igniteui-react-core";
import { TrendLineType_$type } from "igniteui-react-core";
import { Brush } from "igniteui-react-core";
import { PenLineCap_$type } from "igniteui-react-core";
import { DoubleCollection } from "igniteui-react-core";
import { RadialFrame } from "./RadialFrame";
import { ScalerParams } from "./ScalerParams";
import { Rect } from "igniteui-react-core";
import { List$1 } from "igniteui-react-core";
import { SeriesLayerPropertyOverlay } from "./SeriesLayerPropertyOverlay";
import { DataLegendSeriesValueInfo } from "igniteui-react-core";
import { DataLegendSeriesContext } from "igniteui-react-core";
import { AxisRange } from "./AxisRange";
import { NumericAxisBase } from "./NumericAxisBase";
import { IFastItemsSource_$type } from "igniteui-react-core";
import { RadialBaseView } from "./RadialBaseView";
import { CollisionAvoider } from "./CollisionAvoider";
import { Clipper } from "igniteui-react-core";
import { TrendResolutionParams } from "./TrendResolutionParams";
import { RadialTrendLineManager } from "./RadialTrendLineManager";
import { CategoryMarkerManager } from "./CategoryMarkerManager";
import { PropertyMetadata } from "igniteui-react-core";
import { stringIsNullOrEmpty } from "igniteui-react-core";
/**
 * @hidden
 */
export let AnchoredRadialBucketCalculator = /*@__PURE__*/ (() => {
    class AnchoredRadialBucketCalculator extends RadialBucketCalculator {
        constructor(a) {
            super(a);
            this.f = null;
            this.f = a;
        }
        getBucket(a) {
            let b = this.f.cz.w2;
            let c = Math.min(a * this.b, b.count - 1);
            let d = Math.min(c + this.b - 1, b.count - 1);
            let e = NaN;
            let f = NaN;
            for (let g = c; g <= d; ++g) {
                let h = b.item(g);
                if (!isNaN_(e)) {
                    if (!isNaN_(h)) {
                        e = Math.min(e, h);
                        f = Math.max(f, h);
                    }
                }
                else {
                    e = h;
                    f = h;
                }
            }
            if (!isNaN_(e)) {
                return [0.5 * (c + d), e, f];
            }
            return [0.5 * (c + d), NaN, NaN];
        }
    }
    AnchoredRadialBucketCalculator.$t = /*@__PURE__*/ markType(AnchoredRadialBucketCalculator, 'AnchoredRadialBucketCalculator', RadialBucketCalculator.$);
    return AnchoredRadialBucketCalculator;
})();
/**
 * @hidden
 */
export let AnchoredRadialSeries = /*@__PURE__*/ (() => {
    class AnchoredRadialSeries extends RadialBase {
        cg() {
            return new AnchoredRadialSeriesView(this);
        }
        ng() {
            super.ng();
            this.vi = null;
            this.vp = null;
        }
        ju(a, b) {
            let c = this.lv(b);
            if (c == AnchoredRadialSeries.$$p[3]) {
                return this.jv(a, b, this.xk);
            }
            return super.ju(a, b);
        }
        o0(a) {
            super.o0(a);
            this.ww = a;
        }
        constructor() {
            super();
            this.wx = null;
            this.w1 = null;
            this.x8 = { $type: Point_$type, x: 0, y: 0 };
            this.wz = null;
            this.wy = null;
            this.wz = new RadialFrame(3);
            this.wx = new CategoryLineRasterizer();
        }
        jf(a, b) {
            return this.jg(a, b, this.vi, null, this.w2);
        }
        jd(a, b) {
            return this.je(a, b, this.vi, null, this.w2);
        }
        ht(a, b, c, d, e) {
            if (this.w2 == null) {
                return Number.POSITIVE_INFINITY;
            }
            return this.hu(a, b, this.vi, d, e, this.w2.count, null);
        }
        h9(a, b, c) {
            let d = this.getEffectiveViewport1(this.cj);
            let e = this.w7(this.vi, this.cj.by, this.cj.bx, d);
            let f = new ScalerParams(0, this.cj.by, this.cj.bx, this.vi.ch, d);
            f.c = this.cy.t2;
            return this.ib(this.w2, a, this.vi, f, e, null, b, c);
        }
        th(a, b, c) {
            if (this.vp == null || this.vi == null || this.cj == null || this.cj.by.isEmpty || this.cj.bx.isEmpty) {
                return { $type: Point_$type, x: NaN, y: NaN };
            }
            let d = this.getEffectiveViewport1(this.cj);
            let e = new ScalerParams(0, this.cj.by, this.cj.bx, this.vp.ch, d);
            e.c = this.getEffectiveViewport1(this.cj);
            let f = this.h9(a, b, c);
            f = this.vp.ej(f, e);
            let g = this.vq.c(a);
            if (!b && this.vi != null) {
                let h = this.jf(a, c);
                let i = this.jd(a, c);
                let j = this.w7(this.vi, this.cj.by, this.cj.bx, d);
                let k = new ScalerParams(0, this.cj.by, this.cj.bx, this.vi.ch, d);
                k.c = this.cy.t2;
                let l = this.ht(a, h, this.vi, k, j);
                let m = this.ht(a, i, this.vi, k, j);
                if (m <= l) {
                    g = this.vi.ej(i, k) + j;
                }
                else {
                    g = this.vi.ej(h, k) + j;
                }
            }
            let n = this.vq.d(g, f, this.cj.by, this.cj.bx);
            let o = this.vq.e(g, f, this.cj.by, this.cj.bx);
            return { $type: Point_$type, x: n, y: o };
        }
        fn() {
            return this.highlightedItemsSource != null || this.xd != null;
        }
        g0() {
            let a = super.g0();
            {
                let b = ((() => {
                    let $ret = new SeriesLayerPropertyOverlay();
                    $ret.ad = "ValueMemberPath";
                    $ret.p = true;
                    $ret.y = "HighlightedValueMemberPath";
                    $ret.q = true;
                    return $ret;
                })());
                b.valueResolving = delegateCombine(b.valueResolving, runOn(this, this.xo));
                a.add(b);
            }
            return a;
        }
        xo(a, b) {
            if (this.xd != null) {
                b.value = this.xd;
                return;
            }
            b.value = this.xk;
        }
        get w2() {
            return this.w1;
        }
        set w2(a) {
            if (this.w1 != a) {
                let b = this.w1;
                this.w1 = a;
                this.raisePropertyChanged("ValueColumn", b, this.w1);
            }
        }
        getDataLegendSeriesContextAt(a, b) {
            let c = new DataLegendSeriesValueInfo();
            c.a = 0;
            c.l = this.h9({ $type: Point_$type, x: a, y: b }, false, false);
            c.p = "Value";
            c.q = this.xk != null ? this.xk : "Value";
            c.r = this.xg != null ? this.xg : "V:";
            c.s = this.xi != null ? this.xi : "";
            let d = new DataLegendSeriesContext();
            d.f = ((() => {
                let $ret = new List$1(DataLegendSeriesValueInfo.$, 0);
                $ret.add(c);
                return $ret;
            })());
            d.b = this.aw();
            return d;
        }
        get x4() {
            return this.c(AnchoredRadialSeries.xs);
        }
        set x4(a) {
            this.h(AnchoredRadialSeries.xs, a);
        }
        aq(a) {
            if (a != null && a == this.vi && this.w2 != null && this.w2.count > 0) {
                return new AxisRange(0, this.w2.count - 1);
            }
            if (a != null && a == this.vp && this.w2 != null && this.w2.count > 0) {
                return new AxisRange(this.w2.minimum, this.w2.maximum);
            }
            return null;
        }
        o8(a, b, c, d) {
            super.o8(a, b, c, d);
            if (this.ww.c0.g$b(a, b, c, d)) {
                this.pp(false);
                this.ol();
            }
            let e = typeCast(NumericAxisBase.$, this.vp);
            switch (b) {
                case "FastItemsSource":
                    if (typeCast(IFastItemsSource_$type, c) !== null) {
                        c.deregisterColumn(this.w2);
                        this.w2 = null;
                    }
                    if (typeCast(IFastItemsSource_$type, d) !== null) {
                        this.w2 = this.c3(this.xk);
                        this.ww.cv.e(this.hj);
                    }
                    if (e != null && !e.c1()) {
                        this.ww.cv.e(this.hj);
                        this.pp(this.fq && c != null);
                    }
                    break;
                case AnchoredRadialSeries.$$p[3]:
                    if (this.c6 != null) {
                        this.c6.deregisterColumn(this.w2);
                        this.w2 = this.c3(this.xk);
                    }
                    break;
                case "ValueColumn":
                    if (e != null && !e.c1()) {
                        this.ww.cv.e(this.hj);
                        this.pp(this.fq && this.dn);
                    }
                    break;
                case "TrendLineBrush":
                    this.pe(b);
                    break;
                case "TrendLineType":
                    this.ol();
                    break;
            }
        }
        no(a, b, c, d) {
            switch (a) {
                case 4:
                case 1:
                case 0:
                    this.ww.cv.e(this.hj);
                    break;
            }
            this.ww.c0.g$e(a, b, c, d);
            switch (a) {
                case 4:
                    if (this.vp != null && !this.vp.c1()) {
                        this.pp(true);
                    }
                    break;
                case 1:
                    if (this.vp != null && !this.vp.c1()) {
                        this.pp(true);
                    }
                    break;
                case 0:
                    if (this.vp != null && !this.vp.c1()) {
                        this.pp(true);
                    }
                    break;
                case 2:
                    if (this.xk != null && this.ww.cv.b > 0 && this.vp != null && !this.vp.c1()) {
                        this.pp(true);
                    }
                    break;
                case 3:
                    if (d == this.xk) {
                        if (this.vp != null && !this.vp.c1()) {
                            this.pp(true);
                        }
                    }
                    break;
            }
        }
        gl(a, b, c) {
            let d = super.gl(a, b, c);
            let e = c;
            if (this.c6 == null || this.c6.count == 0 || this.vi == null || this.w2 == null || this.vi.lf == 0 || this.vp == null || isInfinity(this.vp.lx) || isInfinity(this.vp.lw) || e.cv.b < 1) {
                d = false;
            }
            return d;
        }
        getOffsetValue() {
            return this.w7(this.vi, this.cj.by, this.cj.bx, this.getEffectiveViewport1(this.cj));
        }
        getCategoryWidth() {
            return this.vi.getCategorySize(this.cj.by, this.cj.bx, this.getEffectiveViewport1(this.cj));
        }
        get_w5() {
            return false;
        }
        get w5() {
            return this.get_w5();
        }
        get_dz() {
            return true;
        }
        get_fi() {
            return this.vp != null && this.vp.ch;
        }
        w7(a, b, c, d) {
            let e = 0;
            let f = this.preferredCategoryMode(a);
            if (f == 0 && a.categoryMode != 0) {
                f = 1;
            }
            switch (f) {
                case 0:
                    e = 0;
                    break;
                case 1:
                    e = 0.5 * a.getCategorySize(b, c, d);
                    break;
                case 2:
                    e = a.getGroupCenter(this.wd(), b, c, d);
                    break;
            }
            if (a.ch) {
                e = -e;
            }
            return e;
        }
        wl(a, b) {
            let c = b.by;
            let d = b.bx;
            let e = this.getEffectiveViewport1(b);
            let f = this.vi;
            let g = this.vp;
            let h = g.lx;
            let i = g.lw;
            a.f.clear();
            a.m.clear();
            a.p.clear();
            let j = this.uc();
            let k = 0;
            let l = b;
            let m = new CollisionAvoider();
            let n = 0;
            let o = b.cv.d;
            n = this.w7(f, c, d, e);
            l.c0.i = this.vp.no;
            l.c0.h = this.vp.nn;
            l.c0.j = (p, q) => this.w8(p, q, c, d);
            l.c0.k = (p, q) => this.w9(p, q, c, d);
            let p = ((() => {
                let $ret = new Clipper(0, d, false);
                $ret.i = a.p;
                return $ret;
            })());
            let q = ((() => {
                let $ret = new TrendResolutionParams();
                $ret.e = b.cv.b;
                $ret.f = b.cv.c;
                $ret.g = o;
                $ret.a = n;
                $ret.d = this.hj;
                $ret.h = d;
                $ret.i = c;
                return $ret;
            })());
            l.c0.l(a.p, this.w0, this.w2, this.xb, (r) => this.vi.getScaledAngle(r), (r) => this.vp.nu(r), q, p);
            let r = true;
            if (this.w6(b)) {
                o--;
            }
            for (let s = b.cv.c; s <= o; ++s) {
                let t = s;
                if (t * b.cv.b >= this.vi.lf) {
                    t -= intDivide((this.vi.lf), b.cv.b);
                }
                let u = b.cv.getBucket(t);
                if (!isNaN_(u[0])) {
                    u[0] = f.getScaledAngle(u[0]) + n;
                    if (u[1] < h || u[1] > i) {
                        continue;
                    }
                    u[1] = g.nu(u[1]);
                    if (b.cv.b > 1) {
                        if (u[2] < h || u[2] > i) {
                            continue;
                        }
                        u[2] = g.nu(u[2]);
                    }
                    else {
                        u[2] = u[1];
                    }
                    if ((isNaN_(u[1]) || isNaN_(u[2])) && r && this.w5 && this.w4()) {
                        o++;
                    }
                    else {
                        r = false;
                    }
                    a.f.add(u);
                    if (j) {
                        let v = Math.min(t * b.cv.b, this.c6.count - 1);
                        let w = this.vq.d(u[0], u[1], c, d);
                        let x = this.vq.e(u[0], u[1], c, d);
                        let y = new Rect(0, w - 5, x - 5, 11, 11);
                        if (!isNaN_(w) && !isNaN_(x) && !isInfinity(w) && !isInfinity(x) && m.tryAdd(y)) {
                            a.m.add({ $type: Point_$type, x: w, y: x });
                            let z = b.cw.item(k);
                            z.al = t;
                            z.ak = v;
                            z.content.item = this.c6.item(v);
                            ++k;
                        }
                    }
                }
                else {
                    if (r && this.w5 && this.w4()) {
                        o++;
                    }
                }
            }
            b.cw.count = k;
            return;
        }
        w8(a, b, c, d) {
            return this.vq.d(a, b, c, d);
        }
        w9(a, b, c, d) {
            return this.vq.e(a, b, c, d);
        }
        w6(a) {
            let b = a;
            return !this.w5 && b.cv.c == 0 && b.cv.d == this.vi.lf;
        }
        wv(a, b, c) {
            let d = null;
            let e = c.by;
            let f = c.bx;
            if (b > -1 && !e.isEmpty && !f.isEmpty) {
                let g = a._inner[0][0] < f.left - 2000 ? f.left - 10 : NaN;
                let h = f.bottom + 10;
                let i = a._inner[b][0] > f.right + 2000 ? f.right + 10 : NaN;
                let j = f.top - 10;
                d = new Clipper(1, g, h, i, j, false);
            }
            return d;
        }
        xr(a, b, c, d, e) {
            if (a.count > 0 && d.count > 0) {
                if (!e || this.w3()) {
                    a.add(this.x8);
                    a.add(a._inner[0]);
                    d.add(this.x8);
                    d.add(d._inner[0]);
                }
            }
        }
        w4() {
            return !this.w3();
        }
        w3() {
            let a = this.cj.by;
            return !a.containsPoint({ $type: Point_$type, x: 0.5, y: 0.5 });
        }
        nj(a, b) {
            super.nj(a, b);
            let c = b;
            if (a) {
                c.cw.clear();
            }
            c.c0.g$d();
        }
        wo(a, b) {
            this.ow();
            let c = b.by;
            let d = b.bx;
            let e = this.getEffectiveViewport1(b);
            let f = this.to(b);
            let g = b;
            g.c0.g$g(a.p);
            CategoryMarkerManager.e(this, a.m, g.cw, this.ue);
            this.xn(b, a);
            g.cp();
            this.xm(d, c, e, f, g);
        }
        wu(a, b, c) {
            if (b < a || a < 0 || a > this.w2.count || b < 0 || b > this.w2.count || c == null) {
                return null;
            }
            let d = new Array((b - a) + 1);
            let e = c.cn;
            let f = null;
            if (e) {
                f = c.i$b;
            }
            for (let g = a; g <= b; g++) {
                let h = g;
                if (e) {
                    h = f._inner[h];
                }
                d[g - a] = this.c6.item(g);
            }
            return d;
        }
        xp(a, b, c, d, e, f) {
            let g = this.bs != 1;
            this.vw.a3(this.vw.d, d.cn, a, b, c, d, e, f, true);
            this.vw.aa(this.hh);
            let h = this.vw.ax;
            let i = null;
            let j = this.c6;
            let k = null;
            if (g && this.cy != null) {
                i = this.cy.a7.getHighlightingInfo(this, j, h.o, h.n, true);
                if (this.cy.a7.isCrossSeriesHighlight(this)) {
                    k = this.cy.a7.getHighlightingInfo(this, j, h.o, h.n, true);
                }
                h.b = i;
            }
            h.f = f;
            this.wm(h);
            this.vw.y(this, i, f, g, h.m, this.cy.a7.totalHighlightingProgress);
        }
        xq(a, b, c, d, e, f) {
            let g = this.bs != 1;
            this.vw.a3(this.vw.b, d.cn, a, b, c, d, e, f, false);
            this.vw.ab(this.hh);
            let h = this.vw.ay;
            let i = null;
            let j = this.c6;
            if (g && this.cy != null) {
                i = this.cy.a7.getHighlightingInfo(this, j, h.o, h.n, false);
                h.b = i;
            }
            h.f = f;
            this.wn(h);
            this.vw.z(this, i, f, g, b < 0);
        }
        xn(a, b) {
            a.b6 = true;
            this.vw.a1(this, this.v7(), runOn(this, this.vf), this.wb(a), this.wc(a));
            let c = this.vw.d;
            let d = c != null;
            let e = this.vi;
            if (e == null) {
                return;
            }
            let f = this.getEffectiveViewport1(a);
            let g = new ScalerParams(0, a.by, a.bx, e.ch, f);
            let h = this.c6 == null ? 0 : this.c6.count;
            let i = a;
            let j = b.f;
            let k = i.cv.c;
            let l = i.cv.d;
            let m = i.cv.b;
            let n = k * m;
            for (let o = 0; o < a.cw.count; o++) {
                let p = a.cw.item(o);
                let q = p.content;
                if (d) {
                    let r = p.al;
                    this.xp(j, r, h, e, g, a.q);
                }
                this.vw.ac(p, q);
            }
        }
        xm(a, b, c, d, e) {
            e.c1(a, b, c, d);
        }
        qd() {
            super.qd();
            if (this.index < 0) {
                return;
            }
            this.ww.c2();
        }
        jy(a, b) {
            if (a == this.ww.c0.g$j) {
                return null;
            }
            return super.jy(a, b);
        }
        fo(a) {
            let b = this.cj.by;
            b = b.copy();
            let c = this.cj.bx;
            let d = !b.isEmpty && !c.isEmpty && this.c6 != null ? this.c6.indexOf(a) : -1;
            if (this.vi == null || this.w2 == null || this.vp == null) {
                return false;
            }
            if (d < 0 || d > this.w2.count - 1) {
                return false;
            }
            let e = this.vi.getScaledAngle(d);
            let f = this.vp.nu(this.w2.item(d));
            if (isNaN_(f)) {
                f = (this.vp.nn + this.vp.no) / 2;
            }
            let g = 0.5 + (Math.cos(e) * f);
            let h = 0.5 + (Math.sin(e) * f);
            if (!isNaN_(g)) {
                if (g < b.left + 0.1 * b.width) {
                    g = g + 0.4 * b.width;
                    b.x = g - 0.5 * b.width;
                }
                if (g > b.right - 0.1 * b.width) {
                    g = g - 0.4 * b.width;
                    b.x = g - 0.5 * b.width;
                }
            }
            if (!isNaN_(h)) {
                if (h < b.top + 0.1 * b.height) {
                    h = h + 0.4 * b.height;
                    b.y = h - 0.5 * b.height;
                }
                if (h > b.bottom - 0.1 * b.height) {
                    h = h - 0.4 * b.height;
                    b.y = h - 0.5 * b.height;
                }
            }
            if (this.cr != null) {
                this.cr.au(this.cy, b, true);
            }
            return d >= 0;
        }
        pr(a, b) {
            super.pr(a, b);
            if (!this.f8) {
                this.cj.a4(b);
                return;
            }
            this.cj.a4(b);
            let c = typeCast(AnchoredRadialSeriesView.$, this.ci);
            c.cv.e(this.hj);
            if (this.dl(this.ci)) {
                return;
            }
            if (!this.f1) {
                this.wz = new RadialFrame(3);
                this.wl(this.wz, c);
            }
            this.f1 = false;
            this.wo(this.wz, c);
            this.f8 = false;
        }
        po(a, b, c, d, e) {
            super.po(a, b, c, d, e);
            let f = this.a7.a$h.item(d);
            let g = f;
            g.cv.e(this.hj);
            f.a3(c);
            if (this.dl(g)) {
                return;
            }
            if (this.wy == null) {
                this.wy = new RadialFrame(3);
            }
            this.wy.u();
            this.wl(this.wy, g);
            this.wo(this.wy, g);
        }
        n1(a) {
            super.n1(a);
            this.a9.exportTrendlineData(this, a, this.ww.c0.g$j);
        }
    }
    AnchoredRadialSeries.$t = /*@__PURE__*/ markType(AnchoredRadialSeries, 'AnchoredRadialSeries', RadialBase.$);
    AnchoredRadialSeries.xs = /*@__PURE__*/ DependencyProperty.i("ActualTrendLineBrush", Brush.$, AnchoredRadialSeries.$, /*@__PURE__*/ new PropertyMetadata(2, null, (a, b) => a.raisePropertyChanged("ActualTrendLineBrush", b.oldValue, b.newValue)));
    AnchoredRadialSeries.$$p = /*@__PURE__*/ markDep(DependencyProperty, PropertyMetadata, AnchoredRadialSeries, 'raisePropertyChanged', ['HighlightedValueMemberPath:xd:xt', [2, null], 'ValueMemberAsLegendLabel:xg:x1', [2, null], 'ValueMemberAsLegendUnit:xi:x2', [2, null], 'ValueMemberPath:xk:x3', [2, null], 'TrendLineType:w0:xz', [TrendLineType_$type, /*@__PURE__*/ enumGetBox(TrendLineType_$type, 0)], 'TrendLineThickness:xa:xy', [1, 1.5], 'TrendLinePeriod:xb:xx', [1, 7], 'TrendLineZIndex:xc:x0', [1, 1], 'TrendLineBrush:x5:xu', [Brush.$, null], 'TrendLineDashArray:x6:xv', [DoubleCollection.$], 'TrendLineDashCap:x7:xw', [PenLineCap_$type, /*@__PURE__*/ enumGetBox(PenLineCap_$type, 0)]]);
    return AnchoredRadialSeries;
})();
/**
 * @hidden
 */
export let AnchoredRadialSeriesView = /*@__PURE__*/ (() => {
    class AnchoredRadialSeriesView extends RadialBaseView {
        constructor(a) {
            super(a);
            this.cz = null;
            this.c0 = null;
            this.cv = new AnchoredRadialBucketCalculator(this);
            this.cz = a;
            this.c0 = new RadialTrendLineManager();
        }
        c1(a, b, c, d) {
        }
        c2() {
            this.cz.x4 = null;
            if (this.cz.x5 != null) {
                this.cz.x4 = this.cz.x5;
            }
            else {
                this.cz.x4 = this.cz.ss;
            }
        }
        a7(a, b) {
            if (a.d) {
                if (!b) {
                }
                if (this.cz.w0 != 0 && !b) {
                    let c = this.c0.g$j;
                    c.ad = this.cz.xa;
                    c._stroke = this.cz.x4;
                    c.ai = this.cz.x6;
                    c.aj = this.cz.x7;
                    a.v(c);
                }
            }
            super.a7(a, b);
        }
        getDefaultTooltipTemplate() {
            let a = "<div class='ui-chart-default-tooltip-content'>";
            if (this.cz.vi.f0 != null) {
                a += "<span>${item." + this.cz.vi.f0 + "}</span><br/>";
            }
            a += "<span";
            let b = this.e.a7.a$r(this.e);
            if (!stringIsNullOrEmpty(b)) {
                a += " style='color:" + b + "'";
            }
            a += ">" + this.cz.title + ": </span><span class='ui-priority-primary'>" + "${item." + this.cz.xk + "}</span></div>";
            return a;
        }
    }
    AnchoredRadialSeriesView.$t = /*@__PURE__*/ markType(AnchoredRadialSeriesView, 'AnchoredRadialSeriesView', RadialBaseView.$);
    return AnchoredRadialSeriesView;
})();
