import * as i0 from '@angular/core';
import { Directive, Input } from '@angular/core';

class ChartLabelsBaseComponent {
    constructor() {
        this.hasCheckboxes = true;
        this.labels = [];
    }
    set dataSetsLabels(value) {
        this.labels = value;
        this.hasCheckboxes = Array.isArray(this.labels) && this.labels.length > 0 && !!this.labels[0].labelVisible;
    }
    onLabelClicked($event) {
        const labelEl = $event.target.querySelector('label');
        if (labelEl) {
            labelEl.click();
        }
    }
    static { this.ɵfac = function ChartLabelsBaseComponent_Factory(t) { return new (t || ChartLabelsBaseComponent)(); }; }
    static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ChartLabelsBaseComponent, inputs: { dataSetsLabels: "dataSetsLabels" } }); }
}
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ChartLabelsBaseComponent, [{
        type: Directive
    }], null, { dataSetsLabels: [{
            type: Input
        }] }); })();

/**
 * Generated bundle index. Do not edit.
 */

export { ChartLabelsBaseComponent };
//# sourceMappingURL=ironsource-fusion-ui-components-chart-labels-common-base.mjs.map
