/*
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 { DomainChartToolbarProvider } from "./DomainChartToolbarProvider";
import { markType } from "igniteui-angular-core";
/**
 * @hidden
 */
export let DataPieChartToolbarProvider = /*@__PURE__*/ (() => {
    class DataPieChartToolbarProvider extends DomainChartToolbarProvider {
        constructor() {
            super(...arguments);
            this.ah = null;
        }
        j(a, b) {
            let c = a;
            switch (b.name) {
                case "ShowGridlines":
                    {
                        let d = b;
                        d.isChecked = c.ahl != null;
                    }
                    break;
            }
        }
        ac(a, b, c, d) {
            let e = a;
            switch (b) {
                case "AngleAxisMajorStroke":
                    this.k("ShowGridlines", 2, a.ahl != null);
                    break;
            }
        }
        s(a, b) {
            let c = a;
            if (this.h(b, "ShowGridlines")) {
                if (c.ahl == null) {
                    if (this.ah != null) {
                        c.ahl = this.ah;
                    }
                    else {
                        c.ahl = c.dataChart.acc;
                    }
                }
            }
            else {
                if (c.ahl != null) {
                    this.ah = c.ahl;
                    c.ahl = null;
                }
            }
        }
    }
    DataPieChartToolbarProvider.$t = markType(DataPieChartToolbarProvider, 'DataPieChartToolbarProvider', DomainChartToolbarProvider.$);
    return DataPieChartToolbarProvider;
})();
