import { Component, Input, NgModule, Directive, ContentChild, QueryList, forwardRef, ChangeDetectionStrategy, EventEmitter, Output, HostBinding, ViewEncapsulation } from '@angular/core';
import { Router, NavigationEnd } from '@angular/router';
import { CommonModule } from '@angular/common';
import { TranslateModule } from '@ngx-translate/core';
import { UxAppShellService } from '@eui/core';
import { BaseDirective } from '../../base.directive';
import { EuiButtonModule } from '../eui-button/eui-button.component';
import { EuiDropdownModule } from '../eui-dropdown/eui-dropdown.component';
import { EuiListModule } from '../eui-list/eui-list.module';
import { EuiIconModule } from '../atoms/eui-icon/eui-icon.module';
import { EuiLabelModule } from '../atoms/eui-label/eui-label.module';
import * as i0 from "@angular/core";
import * as i1 from "@eui/core";
import * as i2 from "@angular/router";
import * as i3 from "@angular/common";
import * as i4 from "../eui-button/eui-button.component";
import * as i5 from "../atoms/eui-icon/eui-icon.component";
import * as i6 from "../eui-dropdown/eui-dropdown.component";
import * as i7 from "../eui-dropdown/components/eui-dropdown-content.component";
import * as i8 from "../eui-list/eui-list.component";
import * as i9 from "../atoms/eui-label/eui-label.component";
import * as i10 from "../eui-list/eui-list-item/eui-list-item.component";
import * as i11 from "@ngx-translate/core";
function EuiButtonsComponent_ng_container_4_ng_container_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainer(0);
} }
function EuiButtonsComponent_ng_container_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵtemplate(1, EuiButtonsComponent_ng_container_4_ng_container_1_Template, 1, 0, "ng-container", 7);
    i0.ɵɵelementContainerEnd();
} if (rf & 2) {
    i0.ɵɵnextContext();
    const _r3 = i0.ɵɵreference(14);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngTemplateOutlet", _r3);
} }
function EuiButtonsComponent_button_7_span_6_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "eui.pageHeader.REMOVE-BOOKMARK"));
} }
function EuiButtonsComponent_button_7_span_7_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "eui.pageHeader.ADD-BOOKMARK"));
} }
function EuiButtonsComponent_button_7_Template(rf, ctx) { if (rf & 1) {
    const _r11 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 8);
    i0.ɵɵlistener("click", function EuiButtonsComponent_button_7_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r10 = i0.ɵɵnextContext(); return ctx_r10.onBookmarkToggle($event); });
    i0.ɵɵpipe(1, "translate");
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵpipe(4, "translate");
    i0.ɵɵelement(5, "span", 9);
    i0.ɵɵtemplate(6, EuiButtonsComponent_button_7_span_6_Template, 3, 3, "span", 2);
    i0.ɵɵtemplate(7, EuiButtonsComponent_button_7_span_7_Template, 3, 3, "span", 2);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵproperty("title", ctx_r1.isBookmarked ? i0.ɵɵpipeBind1(1, 5, "eui.pageHeader.REMOVE-BOOKMARK.tooltip") : i0.ɵɵpipeBind1(2, 7, "eui.pageHeader.ADD-BOOKMARK.tooltip"));
    i0.ɵɵattribute("aria-label", ctx_r1.isBookmarked ? i0.ɵɵpipeBind1(3, 9, "eui.pageHeader.REMOVE-BOOKMARK.tooltip") : i0.ɵɵpipeBind1(4, 11, "eui.pageHeader.ADD-BOOKMARK.tooltip"));
    i0.ɵɵadvance(5);
    i0.ɵɵproperty("iconClass", ctx_r1.isBookmarked ? "eui-icon eui-icon-bookmark" : "eui-icon eui-icon-bookmark-o");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r1.isBookmarked);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", !ctx_r1.isBookmarked);
} }
function EuiButtonsComponent_div_10_span_5_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 17);
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r12 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate(ctx_r12.localMenuLabel);
} }
function EuiButtonsComponent_div_10_ng_container_8_ng_container_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainer(0);
} }
function EuiButtonsComponent_div_10_ng_container_8_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵtemplate(1, EuiButtonsComponent_div_10_ng_container_8_ng_container_1_Template, 1, 0, "ng-container", 7);
    i0.ɵɵelementContainerEnd();
} if (rf & 2) {
    i0.ɵɵnextContext(2);
    const _r3 = i0.ɵɵreference(14);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngTemplateOutlet", _r3);
} }
function EuiButtonsComponent_div_10_ng_container_11_ng_container_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainer(0);
} }
function EuiButtonsComponent_div_10_ng_container_11_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵtemplate(1, EuiButtonsComponent_div_10_ng_container_11_ng_container_1_Template, 1, 0, "ng-container", 7);
    i0.ɵɵelementContainerEnd();
} if (rf & 2) {
    i0.ɵɵnextContext(2);
    const _r5 = i0.ɵɵreference(16);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngTemplateOutlet", _r5);
} }
function EuiButtonsComponent_div_10_li_13_span_6_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 17);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "eui.pageHeader.REMOVE-BOOKMARK"));
} }
function EuiButtonsComponent_div_10_li_13_span_7_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 17);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "eui.pageHeader.ADD-BOOKMARK"));
} }
function EuiButtonsComponent_div_10_li_13_Template(rf, ctx) { if (rf & 1) {
    const _r22 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "li", 18);
    i0.ɵɵlistener("click", function EuiButtonsComponent_div_10_li_13_Template_li_click_0_listener($event) { i0.ɵɵrestoreView(_r22); const ctx_r21 = i0.ɵɵnextContext(2); return ctx_r21.onBookmarkToggle($event); });
    i0.ɵɵpipe(1, "translate");
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵpipe(4, "translate");
    i0.ɵɵelement(5, "span", 19);
    i0.ɵɵtemplate(6, EuiButtonsComponent_div_10_li_13_span_6_Template, 3, 3, "span", 12);
    i0.ɵɵtemplate(7, EuiButtonsComponent_div_10_li_13_span_7_Template, 3, 3, "span", 12);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r15 = i0.ɵɵnextContext(2);
    i0.ɵɵproperty("title", ctx_r15.isBookmarked ? i0.ɵɵpipeBind1(1, 5, "eui.pageHeader.REMOVE-BOOKMARK-TOOLTIP") : i0.ɵɵpipeBind1(2, 7, "eui.pageHeader.ADD-BOOKMARK-TOOLTIP"));
    i0.ɵɵattribute("aria-label", ctx_r15.isBookmarked ? i0.ɵɵpipeBind1(3, 9, "eui.pageHeader.REMOVE-BOOKMARK-TOOLTIP") : i0.ɵɵpipeBind1(4, 11, "eui.pageHeader.ADD-BOOKMARK-TOOLTIP"));
    i0.ɵɵadvance(5);
    i0.ɵɵproperty("iconClass", ctx_r15.isBookmarked ? "eui-icon eui-icon-bookmark" : "eui-icon eui-icon-bookmark-o");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r15.isBookmarked);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", !ctx_r15.isBookmarked);
} }
function EuiButtonsComponent_div_10_li_16_Template(rf, ctx) { if (rf & 1) {
    const _r24 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "li", 20);
    i0.ɵɵlistener("click", function EuiButtonsComponent_div_10_li_16_Template_li_click_0_listener($event) { i0.ɵɵrestoreView(_r24); const ctx_r23 = i0.ɵɵnextContext(2); return ctx_r23.onPrint($event); });
    i0.ɵɵelement(1, "span", 21);
    i0.ɵɵelementStart(2, "span", 22);
    i0.ɵɵtext(3, "Print");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} }
function EuiButtonsComponent_div_10_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 10);
    i0.ɵɵpipe(1, "async");
    i0.ɵɵpipe(2, "async");
    i0.ɵɵelementStart(3, "eui-dropdown");
    i0.ɵɵelementStart(4, "button", 11);
    i0.ɵɵtemplate(5, EuiButtonsComponent_div_10_span_5_Template, 2, 1, "span", 12);
    i0.ɵɵelement(6, "span", 13);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(7, "eui-dropdown-content");
    i0.ɵɵtemplate(8, EuiButtonsComponent_div_10_ng_container_8_Template, 2, 1, "ng-container", 2);
    i0.ɵɵpipe(9, "async");
    i0.ɵɵpipe(10, "async");
    i0.ɵɵtemplate(11, EuiButtonsComponent_div_10_ng_container_11_Template, 2, 1, "ng-container", 2);
    i0.ɵɵelementStart(12, "ul", 14);
    i0.ɵɵtemplate(13, EuiButtonsComponent_div_10_li_13_Template, 8, 13, "li", 15);
    i0.ɵɵpipe(14, "async");
    i0.ɵɵpipe(15, "async");
    i0.ɵɵtemplate(16, EuiButtonsComponent_div_10_li_16_Template, 4, 0, "li", 16);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r2 = i0.ɵɵnextContext();
    i0.ɵɵclassProp("eui-buttons__local-menu--mobile", i0.ɵɵpipeBind1(1, 11, ctx_r2.asService.breakpoints$).isMobile || i0.ɵɵpipeBind1(2, 13, ctx_r2.asService.breakpoints$).isTablet);
    i0.ɵɵadvance(4);
    i0.ɵɵproperty("euiOutline", ctx_r2.localMenuLabel)("euiBasicButton", !ctx_r2.localMenuLabel)("euiRounded", !ctx_r2.localMenuLabel)("euiIconButton", !ctx_r2.localMenuLabel);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r2.localMenuLabel);
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("ngIf", ctx_r2.customActionsContent && (i0.ɵɵpipeBind1(9, 15, ctx_r2.asService.breakpoints$).isMobile || i0.ɵɵpipeBind1(10, 17, ctx_r2.asService.breakpoints$).isTablet));
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("ngIf", ctx_r2.hasLocalMenu && (ctx_r2.customLocalMenuContent && ctx_r2.customLocalMenuContent.length !== 0));
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", ctx_r2.isBookmarkable && (i0.ɵɵpipeBind1(14, 19, ctx_r2.asService.breakpoints$).isMobile || i0.ɵɵpipeBind1(15, 21, ctx_r2.asService.breakpoints$).isTablet));
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("ngIf", ctx_r2.isPrintable);
} }
function EuiButtonsComponent_ng_template_13_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 23);
    i0.ɵɵpipe(1, "async");
    i0.ɵɵpipe(2, "async");
    i0.ɵɵprojection(3);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r4 = i0.ɵɵnextContext();
    i0.ɵɵclassProp("eui-buttons__actions-content--mobile", i0.ɵɵpipeBind1(1, 2, ctx_r4.asService.breakpoints$).isMobile || i0.ɵɵpipeBind1(2, 4, ctx_r4.asService.breakpoints$).isTablet);
} }
function EuiButtonsComponent_ng_template_15_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 24);
    i0.ɵɵpipe(1, "async");
    i0.ɵɵpipe(2, "async");
    i0.ɵɵprojection(3, 1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r6 = i0.ɵɵnextContext();
    i0.ɵɵclassProp("eui-buttons__local-menu-content--mobile", i0.ɵɵpipeBind1(1, 2, ctx_r6.asService.breakpoints$).isMobile || i0.ɵɵpipeBind1(2, 4, ctx_r6.asService.breakpoints$).isTablet);
} }
const _c0 = [[["euiButtonsActionsContent"]], [["euiButtonsLocalMenuContent"]]];
const _c1 = ["euiButtonsActionsContent", "euiButtonsLocalMenuContent"];
export class EuiButtonsComponent extends BaseDirective {
    constructor(asService, router) {
        super();
        this.asService = asService;
        this.router = router;
        this.hasLocalMenu = false;
        this.isBookmarkable = false;
        this.isBookmarked = false;
        this.isPrintable = false;
        this.bookmarked = new EventEmitter();
        this.currentRoute = this._getCurrentUrl(this.router.url);
        this.router.events.subscribe((event) => {
            if (event instanceof NavigationEnd) {
                this.currentRoute = this._getCurrentUrl(event.url);
            }
        });
    }
    get cssClasses() {
        return [
            super.getCssClasses('eui-buttons'),
        ].join(' ').trim();
    }
    ngAfterContentInit() {
        if (!this.e2eAttr) {
            this.e2eAttr = 'eui-buttons';
        }
    }
    onBookmarkToggle(event) {
        this.isBookmarked = !this.isBookmarked;
        this.bookmarked.emit({ isBookmarked: this.isBookmarked, url: this.currentRoute });
    }
    onPrint(event) {
        window.print();
    }
    _getCurrentUrl(currentRoute) {
        return window.location.origin + currentRoute;
    }
}
/** @nocollapse */ EuiButtonsComponent.ɵfac = function EuiButtonsComponent_Factory(t) { return new (t || EuiButtonsComponent)(i0.ɵɵdirectiveInject(i1.UxAppShellService), i0.ɵɵdirectiveInject(i2.Router)); };
/** @nocollapse */ EuiButtonsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: EuiButtonsComponent, selectors: [["eui-buttons"]], contentQueries: function EuiButtonsComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
        i0.ɵɵcontentQuery(dirIndex, EuiButtonsActionsContentTagDirective, true);
        i0.ɵɵcontentQuery(dirIndex, EuiButtonsLocalMenuContentTagDirective, true);
    } if (rf & 2) {
        var _t;
        i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.customActionsContent = _t.first);
        i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.customLocalMenuContent = _t.first);
    } }, hostVars: 2, hostBindings: function EuiButtonsComponent_HostBindings(rf, ctx) { if (rf & 2) {
        i0.ɵɵclassMap(ctx.cssClasses);
    } }, inputs: { localMenuLabel: "localMenuLabel", hasLocalMenu: "hasLocalMenu", isBookmarkable: "isBookmarkable", isBookmarked: "isBookmarked", isPrintable: "isPrintable" }, outputs: { bookmarked: "bookmarked" }, features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c1, decls: 17, vars: 21, consts: [[1, "eui-buttons-wrapper"], [1, "eui-buttons__actions-container"], [4, "ngIf"], ["euiButton", "", "euiOutline", "", "euiSecondary", "", 3, "title", "click", 4, "ngIf"], ["class", "eui-buttons__local-menu", "euiSizeS", "", 3, "eui-buttons__local-menu--mobile", 4, "ngIf"], ["actionsButtons", ""], ["localMenu", ""], [4, "ngTemplateOutlet"], ["euiButton", "", "euiOutline", "", "euiSecondary", "", 3, "title", "click"], ["euiIcon", "", 3, "iconClass"], ["euiSizeS", "", 1, "eui-buttons__local-menu"], ["euiButton", "", "euiPrimary", "", 3, "euiOutline", "euiBasicButton", "euiRounded", "euiIconButton"], ["euiLabel", "", 4, "ngIf"], ["euiIcon", "", "iconClass", "eui-icon-more-vertical"], ["euiList", "", 1, "eui-buttons__local-menu-extras"], ["euiListItem", "", 3, "title", "click", 4, "ngIf"], ["euiListItem", "", 3, "click", 4, "ngIf"], ["euiLabel", ""], ["euiListItem", "", 3, "title", "click"], ["euiIcon", "", "euiSize2XL", "", 1, "eui-u-color-info", 3, "iconClass"], ["euiListItem", "", 3, "click"], ["euiIcon", "", "euiSize2XL", "", "iconClass", "eui-icon-print", 1, "eui-u-color-info"], ["euiLabel", "", 1, "eui-u-color-info"], [1, "eui-buttons__actions-content"], [1, "eui-buttons__local-menu-content"]], template: function EuiButtonsComponent_Template(rf, ctx) { if (rf & 1) {
        i0.ɵɵprojectionDef(_c0);
        i0.ɵɵelementStart(0, "div", 0);
        i0.ɵɵpipe(1, "async");
        i0.ɵɵpipe(2, "async");
        i0.ɵɵelementStart(3, "div", 1);
        i0.ɵɵtemplate(4, EuiButtonsComponent_ng_container_4_Template, 2, 1, "ng-container", 2);
        i0.ɵɵpipe(5, "async");
        i0.ɵɵpipe(6, "async");
        i0.ɵɵtemplate(7, EuiButtonsComponent_button_7_Template, 8, 13, "button", 3);
        i0.ɵɵpipe(8, "async");
        i0.ɵɵpipe(9, "async");
        i0.ɵɵtemplate(10, EuiButtonsComponent_div_10_Template, 17, 23, "div", 4);
        i0.ɵɵpipe(11, "async");
        i0.ɵɵpipe(12, "async");
        i0.ɵɵelementEnd();
        i0.ɵɵelementEnd();
        i0.ɵɵtemplate(13, EuiButtonsComponent_ng_template_13_Template, 4, 6, "ng-template", null, 5, i0.ɵɵtemplateRefExtractor);
        i0.ɵɵtemplate(15, EuiButtonsComponent_ng_template_15_Template, 4, 6, "ng-template", null, 6, i0.ɵɵtemplateRefExtractor);
    } if (rf & 2) {
        i0.ɵɵclassProp("eui-buttons-wrapper--mobile", i0.ɵɵpipeBind1(1, 5, ctx.asService.breakpoints$).isMobile || i0.ɵɵpipeBind1(2, 7, ctx.asService.breakpoints$).isTablet);
        i0.ɵɵadvance(4);
        i0.ɵɵproperty("ngIf", !(i0.ɵɵpipeBind1(5, 9, ctx.asService.breakpoints$).isMobile || i0.ɵɵpipeBind1(6, 11, ctx.asService.breakpoints$).isTablet));
        i0.ɵɵadvance(3);
        i0.ɵɵproperty("ngIf", ctx.isBookmarkable && !(i0.ɵɵpipeBind1(8, 13, ctx.asService.breakpoints$).isMobile || i0.ɵɵpipeBind1(9, 15, ctx.asService.breakpoints$).isTablet));
        i0.ɵɵadvance(3);
        i0.ɵɵproperty("ngIf", ctx.hasLocalMenu || (i0.ɵɵpipeBind1(11, 17, ctx.asService.breakpoints$).isMobile || i0.ɵɵpipeBind1(12, 19, ctx.asService.breakpoints$).isTablet));
    } }, directives: [i3.NgIf, i3.NgTemplateOutlet, i4.EuiButtonComponent, i5.EuiIconComponent, i6.EuiDropdownComponent, i7.EuiDropdownContentComponent, i8.EuiListComponent, i9.EuiLabelComponent, i10.EuiListItemComponent], pipes: [i3.AsyncPipe, i11.TranslatePipe], styles: [".eui-buttons{display:flex;flex-direction:column;width:100%}.eui-buttons-wrapper{align-items:center;display:flex;max-width:100%;width:100%}.eui-buttons__actions-container{align-items:center;display:flex;flex:1 0 auto;justify-content:flex-end}.eui-buttons__actions-container button{margin-left:var(--eui-spacing-xs)}.eui-buttons__actions-content{align-items:center;display:flex;flex-direction:row;overflow:visible}.eui-buttons__actions-content--mobile{display:block;width:100%}.eui-buttons__actions-content--mobile euibuttonsactionscontent{display:block;margin:var(--eui-spacing-xs);position:relative}.eui-buttons__actions-content--mobile euibuttonsactionscontent button{align-items:center;display:flex;margin-bottom:var(--eui-spacing-xs);min-height:calc(var(--eui-spacing)*2);width:100%}.eui-buttons__local-menu{align-items:center;display:flex}.eui-buttons__local-menu__action-buttons{margin:0 var(--eui-spacing-s)}.eui-buttons__local-menu__action-buttons button,.eui-buttons__local-menu__action-buttons div{margin-bottom:var(--eui-spacing-xs)}.eui-buttons__local-menu-content,.eui-buttons__local-menu__action-buttons--mobile{display:block;width:100%}.eui-buttons__local-menu-content euibuttonslocalmenucontent{display:block;position:relative;width:100%}.eui-buttons__local-menu-content euibuttonslocalmenucontent button{align-items:center;display:flex;margin-bottom:var(--eui-spacing-xs);margin-top:var(--eui-spacing-xs);min-height:calc(var(--eui-spacing)*2);width:100%}.eui-buttons__local-menu-content--mobile .container{padding-left:var(--eui-spacing-xs);padding-right:var(--eui-spacing-xs)}.eui-buttons__local-menu-extras{border-top:1px ridge var(--eui-color-grey-light);color:var(--eui-color-info)}.eui-buttons--size-s .eui-button{min-height:calc(var(--eui-spacing)*2)}.eui-buttons--size-m .eui-button{min-height:42px;min-width:42px}.eui-buttons--size-l .eui-button{height:calc(var(--eui-spacing)*3.25);min-height:calc(var(--eui-spacing)*3.25)}.eui-t-compact .eui-buttons--size-s .eui-button{min-height:calc(var(--eui-spacing)*2);min-width:calc(var(--eui-spacing)*2.5)}.eui-t-compact .eui-buttons--size-m .eui-button{min-height:calc(var(--eui-spacing)*2.5);min-width:calc(var(--eui-spacing)*2.5)}.eui-t-compact .eui-buttons--size-l .eui-button{min-height:calc(var(--eui-spacing)*3.25);min-width:calc(var(--eui-spacing)*3.25)}"], encapsulation: 2, changeDetection: 0 });
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(EuiButtonsComponent, [{
        type: Component,
        args: [{
                selector: 'eui-buttons',
                templateUrl: './eui-buttons.component.html',
                styleUrls: ['./styles/_index.scss'],
                changeDetection: ChangeDetectionStrategy.OnPush,
                encapsulation: ViewEncapsulation.None,
            }]
    }], function () { return [{ type: i1.UxAppShellService }, { type: i2.Router }]; }, { localMenuLabel: [{
            type: Input
        }], hasLocalMenu: [{
            type: Input
        }], isBookmarkable: [{
            type: Input
        }], isBookmarked: [{
            type: Input
        }], isPrintable: [{
            type: Input
        }], bookmarked: [{
            type: Output
        }], customActionsContent: [{
            type: ContentChild,
            args: [forwardRef(() => EuiButtonsActionsContentTagDirective), { static: false }]
        }], customLocalMenuContent: [{
            type: ContentChild,
            args: [forwardRef(() => EuiButtonsLocalMenuContentTagDirective), { static: false }]
        }], cssClasses: [{
            type: HostBinding,
            args: ['class']
        }] }); })();
/* tslint:disable */
export class EuiButtonsActionsContentTagDirective {
}
/** @nocollapse */ EuiButtonsActionsContentTagDirective.ɵfac = function EuiButtonsActionsContentTagDirective_Factory(t) { return new (t || EuiButtonsActionsContentTagDirective)(); };
/** @nocollapse */ EuiButtonsActionsContentTagDirective.ɵdir = i0.ɵɵdefineDirective({ type: EuiButtonsActionsContentTagDirective, selectors: [["euiButtonsActionsContent"]] });
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(EuiButtonsActionsContentTagDirective, [{
        type: Directive,
        args: [{ selector: 'euiButtonsActionsContent' }]
    }], null, null); })();
export class EuiButtonsLocalMenuContentTagDirective {
}
/** @nocollapse */ EuiButtonsLocalMenuContentTagDirective.ɵfac = function EuiButtonsLocalMenuContentTagDirective_Factory(t) { return new (t || EuiButtonsLocalMenuContentTagDirective)(); };
/** @nocollapse */ EuiButtonsLocalMenuContentTagDirective.ɵdir = i0.ɵɵdefineDirective({ type: EuiButtonsLocalMenuContentTagDirective, selectors: [["euiButtonsLocalMenuContent"]] });
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(EuiButtonsLocalMenuContentTagDirective, [{
        type: Directive,
        args: [{ selector: 'euiButtonsLocalMenuContent' }]
    }], null, null); })();
/* tslint:enable */
export class EuiButtonsModule {
}
/** @nocollapse */ EuiButtonsModule.ɵmod = i0.ɵɵdefineNgModule({ type: EuiButtonsModule });
/** @nocollapse */ EuiButtonsModule.ɵinj = i0.ɵɵdefineInjector({ factory: function EuiButtonsModule_Factory(t) { return new (t || EuiButtonsModule)(); }, imports: [[
            CommonModule,
            TranslateModule,
            EuiButtonModule,
            EuiDropdownModule,
            EuiIconModule,
            EuiLabelModule,
            EuiListModule,
        ]] });
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(EuiButtonsModule, { declarations: [EuiButtonsComponent, EuiButtonsActionsContentTagDirective, EuiButtonsLocalMenuContentTagDirective], imports: [CommonModule,
        TranslateModule,
        EuiButtonModule,
        EuiDropdownModule,
        EuiIconModule,
        EuiLabelModule,
        EuiListModule], exports: [EuiButtonsComponent, EuiButtonsActionsContentTagDirective, EuiButtonsLocalMenuContentTagDirective] }); })();
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(EuiButtonsModule, [{
        type: NgModule,
        args: [{
                imports: [
                    CommonModule,
                    TranslateModule,
                    EuiButtonModule,
                    EuiDropdownModule,
                    EuiIconModule,
                    EuiLabelModule,
                    EuiListModule,
                ],
                declarations: [
                    EuiButtonsComponent,
                    EuiButtonsActionsContentTagDirective,
                    EuiButtonsLocalMenuContentTagDirective,
                ],
                exports: [
                    EuiButtonsComponent,
                    EuiButtonsActionsContentTagDirective,
                    EuiButtonsLocalMenuContentTagDirective,
                ],
            }]
    }], null, null); })();
//# sourceMappingURL=data:application/json;base64, 