/*
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.w4;
            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 {
        cd() {
            return new AnchoredRadialSeriesView(this);
        }
        nh() {
            super.nh();
            this.vk = null;
            this.vm = null;
        }
        jv(a, b) {
            let c = this.lw(b);
            if (c == AnchoredRadialSeries.$$p[3]) {
                return this.jw(a, b, this.xm);
            }
            return super.jv(a, b);
        }
        o2(a) {
            super.o2(a);
            this.wy = a;
        }
        constructor() {
            super();
            this.wz = null;
            this.w3 = null;
            this.ya = { $type: Point_$type, x: 0, y: 0 };
            this.w1 = null;
            this.w0 = null;
            this.w1 = new RadialFrame(3);
            this.wz = new CategoryLineRasterizer();
        }
        jg(a, b) {
            return this.jh(a, b, this.vk, null, this.w4);
        }
        je(a, b) {
            return this.jf(a, b, this.vk, null, this.w4);
        }
        hu(a, b, c, d, e) {
            if (this.w4 == null) {
                return Number.POSITIVE_INFINITY;
            }
            return this.hv(a, b, this.vk, d, e, this.w4.count, null);
        }
        ia(a, b, c) {
            let d = this.getEffectiveViewport1(this.cg);
            let e = this.w9(this.vk, this.cg.by, this.cg.bx, d);
            let f = new ScalerParams(0, this.cg.by, this.cg.bx, this.vk.ch, d);
            f.c = this.cv.t6;
            return this.ic(this.w4, a, this.vk, f, e, null, b, c);
        }
        tj(a, b, c) {
            if (this.vm == null || this.vk == null || this.cg == null || this.cg.by.isEmpty || this.cg.bx.isEmpty) {
                return { $type: Point_$type, x: NaN, y: NaN };
            }
            let d = this.getEffectiveViewport1(this.cg);
            let e = new ScalerParams(0, this.cg.by, this.cg.bx, this.vm.ch, d);
            e.c = this.getEffectiveViewport1(this.cg);
            let f = this.ia(a, b, c);
            f = this.vm.ej(f, e);
            let g = this.vn.c(a);
            if (!b && this.vk != null) {
                let h = this.jg(a, c);
                let i = this.je(a, c);
                let j = this.w9(this.vk, this.cg.by, this.cg.bx, d);
                let k = new ScalerParams(0, this.cg.by, this.cg.bx, this.vk.ch, d);
                k.c = this.cv.t6;
                let l = this.hu(a, h, this.vk, k, j);
                let m = this.hu(a, i, this.vk, k, j);
                if (m <= l) {
                    g = this.vk.ej(i, k) + j;
                }
                else {
                    g = this.vk.ej(h, k) + j;
                }
            }
            let n = this.vn.d(g, f, this.cg.by, this.cg.bx);
            let o = this.vn.e(g, f, this.cg.by, this.cg.bx);
            return { $type: Point_$type, x: n, y: o };
        }
        fo() {
            return this.highlightedItemsSource != null || this.xf != null;
        }
        g1() {
            let a = super.g1();
            {
                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.xq));
                a.add(b);
            }
            return a;
        }
        xq(a, b) {
            if (this.xf != null) {
                b.value = this.xf;
                return;
            }
            b.value = this.xm;
        }
        get w4() {
            return this.w3;
        }
        set w4(a) {
            if (this.w3 != a) {
                let b = this.w3;
                this.w3 = a;
                this.raisePropertyChanged("ValueColumn", b, this.w3);
            }
        }
        getDataLegendSeriesContextAt(a, b) {
            let c = new DataLegendSeriesValueInfo();
            c.a = 0;
            c.l = this.ia({ $type: Point_$type, x: a, y: b }, false, false);
            c.p = "Value";
            c.q = this.xm != null ? this.xm : "Value";
            c.r = this.xi != null ? this.xi : "V:";
            c.s = this.xk != null ? this.xk : "";
            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 x6() {
            return this.c(AnchoredRadialSeries.xu);
        }
        set x6(a) {
            this.h(AnchoredRadialSeries.xu, a);
        }
        aq(a) {
            if (a != null && a == this.vk && this.w4 != null && this.w4.count > 0) {
                return new AxisRange(0, this.w4.count - 1);
            }
            if (a != null && a == this.vm && this.w4 != null && this.w4.count > 0) {
                return new AxisRange(this.w4.minimum, this.w4.maximum);
            }
            return null;
        }
        pa(a, b, c, d) {
            super.pa(a, b, c, d);
            if (this.wy.c0.g$b(a, b, c, d)) {
                this.pr(false);
                this.om();
            }
            let e = typeCast(NumericAxisBase.$, this.vm);
            switch (b) {
                case "FastItemsSource":
                    if (typeCast(IFastItemsSource_$type, c) !== null) {
                        c.deregisterColumn(this.w4);
                        this.w4 = null;
                    }
                    if (typeCast(IFastItemsSource_$type, d) !== null) {
                        this.w4 = this.c4(this.xm);
                        this.wy.cv.e(this.hk);
                    }
                    if (e != null && !e.c1()) {
                        this.wy.cv.e(this.hk);
                        this.pr(this.fr && c != null);
                    }
                    break;
                case AnchoredRadialSeries.$$p[3]:
                    if (this.c7 != null) {
                        this.c7.deregisterColumn(this.w4);
                        this.w4 = this.c4(this.xm);
                    }
                    break;
                case "ValueColumn":
                    if (e != null && !e.c1()) {
                        this.wy.cv.e(this.hk);
                        this.pr(this.fr && this.dp);
                    }
                    break;
                case "TrendLineBrush":
                    this.pg(b);
                    break;
                case "TrendLineType":
                    this.om();
                    break;
            }
        }
        np(a, b, c, d) {
            switch (a) {
                case 4:
                case 1:
                case 0:
                    this.wy.cv.e(this.hk);
                    break;
            }
            this.wy.c0.g$e(a, b, c, d);
            switch (a) {
                case 4:
                    if (this.vm != null && !this.vm.c1()) {
                        this.pr(true);
                    }
                    break;
                case 1:
                    if (this.vm != null && !this.vm.c1()) {
                        this.pr(true);
                    }
                    break;
                case 0:
                    if (this.vm != null && !this.vm.c1()) {
                        this.pr(true);
                    }
                    break;
                case 2:
                    if (this.xm != null && this.wy.cv.b > 0 && this.vm != null && !this.vm.c1()) {
                        this.pr(true);
                    }
                    break;
                case 3:
                    if (d == this.xm) {
                        if (this.vm != null && !this.vm.c1()) {
                            this.pr(true);
                        }
                    }
                    break;
            }
        }
        gm(a, b, c) {
            let d = super.gm(a, b, c);
            let e = c;
            if (this.c7 == null || this.c7.count == 0 || this.vk == null || this.w4 == null || this.vk.lf == 0 || this.vm == null || isInfinity(this.vm.lx) || isInfinity(this.vm.lw) || e.cv.b < 1) {
                d = false;
            }
            return d;
        }
        getOffsetValue() {
            return this.w9(this.vk, this.cg.by, this.cg.bx, this.getEffectiveViewport1(this.cg));
        }
        getCategoryWidth() {
            return this.vk.getCategorySize(this.cg.by, this.cg.bx, this.getEffectiveViewport1(this.cg));
        }
        get_w7() {
            return false;
        }
        get w7() {
            return this.get_w7();
        }
        get_d0() {
            return true;
        }
        get_fj() {
            return this.vm != null && this.vm.ch;
        }
        w9(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.wf(), b, c, d);
                    break;
            }
            if (a.ch) {
                e = -e;
            }
            return e;
        }
        wn(a, b) {
            let c = b.by;
            let d = b.bx;
            let e = this.getEffectiveViewport1(b);
            let f = this.vk;
            let g = this.vm;
            let h = g.lx;
            let i = g.lw;
            a.f.clear();
            a.m.clear();
            a.p.clear();
            let j = this.ue();
            let k = 0;
            let l = b;
            let m = new CollisionAvoider();
            let n = 0;
            let o = b.cv.d;
            n = this.w9(f, c, d, e);
            l.c0.i = this.vm.no;
            l.c0.h = this.vm.nn;
            l.c0.j = (p, q) => this.xa(p, q, c, d);
            l.c0.k = (p, q) => this.xb(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.hk;
                $ret.h = d;
                $ret.i = c;
                return $ret;
            })());
            l.c0.l(a.p, this.w2, this.w4, this.xd, (r) => this.vk.getScaledAngle(r), (r) => this.vm.nu(r), q, p);
            let r = true;
            if (this.w8(b)) {
                o--;
            }
            for (let s = b.cv.c; s <= o; ++s) {
                let t = s;
                if (t * b.cv.b >= this.vk.lf) {
                    t -= intDivide((this.vk.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.w7 && this.w6()) {
                        o++;
                    }
                    else {
                        r = false;
                    }
                    a.f.add(u);
                    if (j) {
                        let v = Math.min(t * b.cv.b, this.c7.count - 1);
                        let w = this.vn.d(u[0], u[1], c, d);
                        let x = this.vn.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.c7.item(v);
                            ++k;
                        }
                    }
                }
                else {
                    if (r && this.w7 && this.w6()) {
                        o++;
                    }
                }
            }
            b.cw.count = k;
            return;
        }
        xa(a, b, c, d) {
            return this.vn.d(a, b, c, d);
        }
        xb(a, b, c, d) {
            return this.vn.e(a, b, c, d);
        }
        w8(a) {
            let b = a;
            return !this.w7 && b.cv.c == 0 && b.cv.d == this.vk.lf;
        }
        wx(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;
        }
        xt(a, b, c, d, e) {
            if (a.count > 0 && d.count > 0) {
                if (!e || this.w5()) {
                    a.add(this.ya);
                    a.add(a._inner[0]);
                    d.add(this.ya);
                    d.add(d._inner[0]);
                }
            }
        }
        w6() {
            return !this.w5();
        }
        w5() {
            let a = this.cg.by;
            return !a.containsPoint({ $type: Point_$type, x: 0.5, y: 0.5 });
        }
        nk(a, b) {
            super.nk(a, b);
            let c = b;
            if (a) {
                c.cw.clear();
            }
            c.c0.g$d();
        }
        wq(a, b) {
            this.oy();
            let c = b.by;
            let d = b.bx;
            let e = this.getEffectiveViewport1(b);
            let f = this.tq(b);
            let g = b;
            g.c0.g$g(a.p);
            CategoryMarkerManager.e(this, a.m, g.cw, this.ug);
            this.xp(b, a);
            g.cp();
            this.xo(d, c, e, f, g);
        }
        ww(a, b, c) {
            if (b < a || a < 0 || a > this.w4.count || b < 0 || b > this.w4.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.c7.item(g);
            }
            return d;
        }
        xr(a, b, c, d, e, f) {
            let g = this.bp != 1;
            this.vt.a3(this.vt.d, d.cn, a, b, c, d, e, f, true);
            this.vt.aa(this.hi);
            let h = this.vt.ax;
            let i = null;
            let j = this.c7;
            let k = null;
            if (g && this.cv != null) {
                i = this.cv.c2.getHighlightingInfo(this, j, h.o, h.n, true);
                if (this.cv.c2.isCrossContextHighlight(this)) {
                    k = this.cv.c2.getHighlightingInfo(this, j, h.o, h.n, true);
                }
                h.b = i;
            }
            h.f = f;
            this.wo(h);
            this.vt.y(this, i, f, g, h.m, this.cv.c2.totalHighlightingProgress);
        }
        xs(a, b, c, d, e, f) {
            let g = this.bp != 1;
            this.vt.a3(this.vt.b, d.cn, a, b, c, d, e, f, false);
            this.vt.ab(this.hi);
            let h = this.vt.ay;
            let i = null;
            let j = this.c7;
            if (g && this.cv != null) {
                i = this.cv.c2.getHighlightingInfo(this, j, h.o, h.n, false);
                h.b = i;
            }
            h.f = f;
            this.wp(h);
            this.vt.z(this, i, f, g, b < 0);
        }
        xp(a, b) {
            a.b6 = true;
            this.vt.a1(this, this.v9(), runOn(this, this.vh), this.wd(a), this.we(a));
            let c = this.vt.d;
            let d = c != null;
            let e = this.vk;
            if (e == null) {
                return;
            }
            let f = this.getEffectiveViewport1(a);
            let g = new ScalerParams(0, a.by, a.bx, e.ch, f);
            let h = this.c7 == null ? 0 : this.c7.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.xr(j, r, h, e, g, a.q);
                }
                this.vt.ac(p, q);
            }
        }
        xo(a, b, c, d, e) {
            e.c1(a, b, c, d);
        }
        qf() {
            super.qf();
            if (this.index < 0) {
                return;
            }
            this.wy.c2();
        }
        jz(a, b) {
            if (a == this.wy.c0.g$j) {
                return null;
            }
            return super.jz(a, b);
        }
        fp(a) {
            let b = this.cg.by;
            b = b.copy();
            let c = this.cg.bx;
            let d = !b.isEmpty && !c.isEmpty && this.c7 != null ? this.c7.indexOf(a) : -1;
            if (this.vk == null || this.w4 == null || this.vm == null) {
                return false;
            }
            if (d < 0 || d > this.w4.count - 1) {
                return false;
            }
            let e = this.vk.getScaledAngle(d);
            let f = this.vm.nu(this.w4.item(d));
            if (isNaN_(f)) {
                f = (this.vm.nn + this.vm.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.co != null) {
                this.co.au(this.cv, b, true);
            }
            return d >= 0;
        }
        pt(a, b) {
            super.pt(a, b);
            if (!this.f9) {
                this.cg.a4(b);
                return;
            }
            this.cg.a4(b);
            let c = typeCast(AnchoredRadialSeriesView.$, this.cf);
            c.cv.e(this.hk);
            if (this.dm(this.cf)) {
                return;
            }
            if (!this.f2) {
                this.w1 = new RadialFrame(3);
                this.wn(this.w1, c);
            }
            this.f2 = false;
            this.wq(this.w1, c);
            this.f9 = false;
        }
        pq(a, b, c, d, e) {
            super.pq(a, b, c, d, e);
            let f = this.a3.a$h.item(d);
            let g = f;
            g.cv.e(this.hk);
            f.a3(c);
            if (this.dm(g)) {
                return;
            }
            if (this.w0 == null) {
                this.w0 = new RadialFrame(3);
            }
            this.w0.u();
            this.wn(this.w0, g);
            this.wq(this.w0, g);
        }
        n2(a) {
            super.n2(a);
            this.a5.exportTrendlineData(this, a, this.wy.c0.g$j);
        }
    }
    AnchoredRadialSeries.$t = /*@__PURE__*/ markType(AnchoredRadialSeries, 'AnchoredRadialSeries', RadialBase.$);
    AnchoredRadialSeries.xu = /*@__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:xf:xv', [2, null], 'ValueMemberAsLegendLabel:xi:x3', [2, null], 'ValueMemberAsLegendUnit:xk:x4', [2, null], 'ValueMemberPath:xm:x5', [2, null], 'TrendLineType:w2:x1', [TrendLineType_$type, /*@__PURE__*/ enumGetBox(TrendLineType_$type, 0)], 'TrendLineThickness:xc:x0', [1, 1.5], 'TrendLinePeriod:xd:xz', [1, 7], 'TrendLineZIndex:xe:x2', [1, 1], 'TrendLineBrush:x7:xw', [Brush.$, null], 'TrendLineDashArray:x8:xx', [DoubleCollection.$], 'TrendLineDashCap:x9:xy', [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.x6 = null;
            if (this.cz.x7 != null) {
                this.cz.x6 = this.cz.x7;
            }
            else {
                this.cz.x6 = this.cz.su;
            }
        }
        a7(a, b) {
            if (a.d) {
                if (!b) {
                }
                if (this.cz.w2 != 0 && !b) {
                    let c = this.c0.g$j;
                    c.ad = this.cz.xc;
                    c._stroke = this.cz.x6;
                    c.ai = this.cz.x8;
                    c.aj = this.cz.x9;
                    a.v(c);
                }
            }
            super.a7(a, b);
        }
        getDefaultTooltipTemplate() {
            let a = "<div class='ui-chart-default-tooltip-content'>";
            if (this.cz.vk.f0 != null) {
                a += "<span>${item." + this.cz.vk.f0 + "}</span><br/>";
            }
            a += "<span";
            let b = this.e.a3.a$r(this.e);
            if (!stringIsNullOrEmpty(b)) {
                a += " style='color:" + b + "'";
            }
            a += ">" + this.cz.title + ": </span><span class='ui-priority-primary'>" + "${item." + this.cz.xm + "}</span></div>";
            return a;
        }
    }
    AnchoredRadialSeriesView.$t = /*@__PURE__*/ markType(AnchoredRadialSeriesView, 'AnchoredRadialSeriesView', RadialBaseView.$);
    return AnchoredRadialSeriesView;
})();
