/*
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 * as tslib_1 from "tslib";
import { RingSeriesBase } from "./RingSeriesBase";
import { Ring } from "./Ring";
import { ArcItem } from "./ArcItem";
import { fromEnum, markType } from "igniteui-angular-core";
import { RingCollection } from "./RingCollection";
/**
 * @hidden
 */
var RingSeries = /** @class */ (function (_super) {
    tslib_1.__extends(RingSeries, _super);
    function RingSeries() {
        var _this = _super.call(this) || this;
        _this.dx = null;
        _this.dx = ((function () {
            var $ret = new Ring();
            $ret.c = _this;
            $ret.e = false;
            return $ret;
        })());
        var a = ((function () {
            var $ret = new ArcItem();
            $ret.k = _this.a4;
            $ret.d = _this.dx;
            $ret.n = _this.b9;
            $ret.c = _this.al;
            $ret.j = _this.a2;
            return $ret;
        })());
        _this.dx.g.add(a);
        _this.ab = RingSeries.$;
        return _this;
    }
    RingSeries.prototype.cl = function (a, b, c, d) {
        _super.prototype.cl.call(this, a, b, c, d);
        if (b == RingSeriesBase.$$p[2]) {
            for (var e = 0; e < this.dx.ringControl.arcs.count; e++) {
                this.dx.ringControl.arcs.item(e).at = d;
            }
        }
        if (b == RingSeriesBase.$$p[3]) {
            for (var f = 0; f < this.dx.ringControl.arcs.count; f++) {
                this.dx.ringControl.arcs.item(f).au = d;
            }
        }
        if (b == RingSeriesBase.$$p[16]) {
            for (var g = 0; g < this.dx.ringControl.arcs.count; g++) {
                this.dx.ringControl.arcs.item(g).dv = this.br;
            }
        }
        if (b == RingSeriesBase.$$p[0]) {
            this.cj();
        }
        if (b == RingSeriesBase.$$p[25]) {
            if (this.dx.g != null && this.dx.g.count > 0) {
                this.dx.g._inner[0].k = this.a4;
            }
        }
        if (b == RingSeriesBase.$$p[28]) {
            if (this.dx.g != null && this.dx.g.count > 0) {
                this.dx.g._inner[0].n = this.b9;
                this.ck();
            }
        }
        if (this.dx != null && this.as.e()) {
            this.dx.o();
            if (this.dx.f()) {
                this.dx.c.as.l();
            }
        }
    };
    RingSeries.prototype.aq = function () {
        var a = new RingCollection();
        if (this.dx.g._inner[0].g.count > 0) {
            a.add(this.dx);
        }
        return a;
    };
    RingSeries.prototype.ck = function () {
        if (this.dx != null) {
            this.dx.g._inner[0].h = this.itemsSource;
            this.dx.g._inner[0].p(this.a4);
            if (this.at != null) {
                this.at.bx();
                this.at.b2();
            }
        }
    };
    RingSeries.prototype.cj = function () {
        if (this.dx != null) {
            this.dx.g._inner[0].a = this.ag;
        }
    };
    RingSeries.prototype.cp = function () {
        if (this.dx != null) {
            this.width = this.dx.q.width;
            this.height = this.dx.q.height;
            this.as.m(this.dx.p.x, this.dx.p.y);
        }
    };
    RingSeries.prototype.co = function () {
        var e_1, _a;
        if (this.dx != null) {
            try {
                for (var _b = tslib_1.__values(fromEnum(this.dx.ringControl.arcs.a)), _c = _b.next(); !_c.done; _c = _b.next()) {
                    var a = _c.value;
                    a.fg();
                }
            }
            catch (e_1_1) { e_1 = { error: e_1_1 }; }
            finally {
                try {
                    if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
                }
                finally { if (e_1) throw e_1.error; }
            }
        }
    };
    RingSeries.prototype.cf = function (a, b) {
        _super.prototype.cf.call(this, a, b);
        if (this.dx != null) {
            this.dx.l(this.itemsSource, a, b);
        }
    };
    RingSeries.prototype.ce = function () {
        _super.prototype.ce.call(this);
        if (this.dx != null) {
            this.dx.k(this.itemsSource);
        }
    };
    RingSeries.prototype.cg = function (a, b) {
        _super.prototype.cg.call(this, a, b);
        if (this.dx != null) {
            this.dx.m(this.itemsSource, a, b);
        }
    };
    RingSeries.prototype.ch = function (a, b, c) {
        _super.prototype.ch.call(this, a, b, c);
        if (this.dx != null) {
            this.dx.n(this.itemsSource, a, b, c);
        }
    };
    RingSeries.$t = markType(RingSeries, 'RingSeries', RingSeriesBase.$);
    return RingSeries;
}(RingSeriesBase));
export { RingSeries };
//# sourceMappingURL=RingSeries.js.map