import { Component, Input } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "@ionic/angular";
function MonitoringActionsComponent_ion_buttons_0_ion_button_1_ion_icon_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "ion-icon", 5);
} if (rf & 2) {
    const action_r3 = i0.ɵɵnextContext().$implicit;
    i0.ɵɵproperty("name", action_r3.icon);
} }
function MonitoringActionsComponent_ion_buttons_0_ion_button_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "ion-button", 3);
    i0.ɵɵlistener("click", function MonitoringActionsComponent_ion_buttons_0_ion_button_1_Template_ion_button_click_0_listener() { const action_r3 = ctx.$implicit; return action_r3.action(); });
    i0.ɵɵtemplate(1, MonitoringActionsComponent_ion_buttons_0_ion_button_1_ion_icon_1_Template, 1, 1, "ion-icon", 4);
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const action_r3 = ctx.$implicit;
    const ctx_r2 = i0.ɵɵnextContext(2);
    i0.ɵɵproperty("disabled", ctx_r2.disabled || action_r3.disabled);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", action_r3.icon);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", action_r3.label, " ");
} }
function MonitoringActionsComponent_ion_buttons_0_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "ion-buttons");
    i0.ɵɵtemplate(1, MonitoringActionsComponent_ion_buttons_0_ion_button_1_Template, 3, 3, "ion-button", 2);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngForOf", ctx_r0.actions);
} }
function MonitoringActionsComponent_ion_segment_1_ion_segment_button_1_ion_icon_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "ion-icon", 5);
} if (rf & 2) {
    const action_r8 = i0.ɵɵnextContext().$implicit;
    i0.ɵɵproperty("name", action_r8.icon);
} }
function MonitoringActionsComponent_ion_segment_1_ion_segment_button_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "ion-segment-button", 8);
    i0.ɵɵlistener("click", function MonitoringActionsComponent_ion_segment_1_ion_segment_button_1_Template_ion_segment_button_click_0_listener() { const action_r8 = ctx.$implicit; return action_r8.action(); });
    i0.ɵɵtemplate(1, MonitoringActionsComponent_ion_segment_1_ion_segment_button_1_ion_icon_1_Template, 1, 1, "ion-icon", 4);
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const action_r8 = ctx.$implicit;
    const ctx_r7 = i0.ɵɵnextContext(2);
    i0.ɵɵproperty("value", action_r8.value)("disabled", ctx_r7.disabled || action_r8.disabled);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", action_r8.icon);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", action_r8.label, " ");
} }
function MonitoringActionsComponent_ion_segment_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "ion-segment", 6);
    i0.ɵɵtemplate(1, MonitoringActionsComponent_ion_segment_1_ion_segment_button_1_Template, 3, 4, "ion-segment-button", 7);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵproperty("value", ctx_r1.checkedButtonIndex)("scrollable", true);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngForOf", ctx_r1.actions);
} }
export class MonitoringActionsComponent {
    constructor() {
        this.segment = true;
        this.actions = [];
        this.disabled = false;
    }
}
/** @nocollapse */ MonitoringActionsComponent.ɵfac = function MonitoringActionsComponent_Factory(t) { return new (t || MonitoringActionsComponent)(); };
/** @nocollapse */ MonitoringActionsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MonitoringActionsComponent, selectors: [["app-monitoring-actions"]], inputs: { segment: "segment", actions: "actions", checkedButtonIndex: "checkedButtonIndex", disabled: "disabled" }, decls: 2, vars: 2, consts: [[4, "ngIf"], ["style", "overflow: auto", 3, "value", "scrollable", 4, "ngIf"], [3, "disabled", "click", 4, "ngFor", "ngForOf"], [3, "disabled", "click"], [3, "name", 4, "ngIf"], [3, "name"], [2, "overflow", "auto", 3, "value", "scrollable"], [3, "value", "disabled", "click", 4, "ngFor", "ngForOf"], [3, "value", "disabled", "click"]], template: function MonitoringActionsComponent_Template(rf, ctx) { if (rf & 1) {
        i0.ɵɵtemplate(0, MonitoringActionsComponent_ion_buttons_0_Template, 2, 1, "ion-buttons", 0);
        i0.ɵɵtemplate(1, MonitoringActionsComponent_ion_segment_1_Template, 2, 3, "ion-segment", 1);
    } if (rf & 2) {
        i0.ɵɵproperty("ngIf", !ctx.segment);
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngIf", ctx.segment);
    } }, directives: [i1.NgIf, i2.IonButtons, i1.NgForOf, i2.IonButton, i2.IonIcon, i2.IonSegment, i2.SelectValueAccessor, i2.IonSegmentButton], styles: [".input-wrapper[_ngcontent-%COMP%]{position:relative;z-index:9999}ion-buttons[_ngcontent-%COMP%]{margin-left:0}"] });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MonitoringActionsComponent, [{
        type: Component,
        args: [{
                selector: 'app-monitoring-actions',
                templateUrl: './monitoring-actions.component.html',
                styleUrls: ['./monitoring-actions.component.scss'],
            }]
    }], function () { return []; }, { segment: [{
            type: Input
        }], actions: [{
            type: Input
        }], checkedButtonIndex: [{
            type: Input
        }], disabled: [{
            type: Input
        }] }); })();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9uaXRvcmluZy1hY3Rpb25zLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2lvdGl6ZS1pb25pYy9tb25pdG9yaW5nL3NyYy9saWIvdWktY29t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