import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';
import { Component, HostBinding, Input, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';
import { EuiIconModule } from '../atoms';
import { BaseDirective } from '../../base.directive';
import * as i0 from "@angular/core";
import * as i1 from "@angular/router";
import * as i2 from "@angular/common";
function EuiDashboardButtonComponent_div_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 5);
    i0.ɵɵelement(1, "span");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵclassMapInterpolate1("eui-dashboard-button__icon-element ", ctx_r0.iconClass, "");
} }
function EuiDashboardButtonComponent_div_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 6);
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", ctx_r1.mainLabel, " ");
} }
const _c0 = function (a0) { return [a0]; };
export class EuiDashboardButtonComponent extends BaseDirective {
    constructor() {
        super();
    }
    get cssClasses() {
        return [
            super.getCssClasses('eui-dashboard-button'),
            'eui-dashboard-button--rounded',
        ].join(' ').trim();
    }
    ngAfterContentInit() {
    }
}
/** @nocollapse */ EuiDashboardButtonComponent.ɵfac = function EuiDashboardButtonComponent_Factory(t) { return new (t || EuiDashboardButtonComponent)(); };
/** @nocollapse */ EuiDashboardButtonComponent.ɵcmp = i0.ɵɵdefineComponent({ type: EuiDashboardButtonComponent, selectors: [["eui-dashboard-button"]], hostVars: 2, hostBindings: function EuiDashboardButtonComponent_HostBindings(rf, ctx) { if (rf & 2) {
        i0.ɵɵclassMap(ctx.cssClasses);
    } }, inputs: { mainLabel: "mainLabel", label: "label", iconClass: "iconClass", subLabel: "subLabel", url: "url" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 7, vars: 7, consts: [[1, "eui-dashboard-button__content", 3, "routerLink"], ["class", "eui-dashboard-button__content-main-icon", 4, "ngIf"], ["class", "eui-dashboard-button__content-main-label", 4, "ngIf"], [1, "eui-dashboard-button__content-title"], [1, "eui-dashboard-button__content-sub-title"], [1, "eui-dashboard-button__content-main-icon"], [1, "eui-dashboard-button__content-main-label"]], template: function EuiDashboardButtonComponent_Template(rf, ctx) { if (rf & 1) {
        i0.ɵɵelementStart(0, "div", 0);
        i0.ɵɵtemplate(1, EuiDashboardButtonComponent_div_1_Template, 2, 3, "div", 1);
        i0.ɵɵtemplate(2, EuiDashboardButtonComponent_div_2_Template, 2, 1, "div", 2);
        i0.ɵɵelementStart(3, "div", 3);
        i0.ɵɵtext(4);
        i0.ɵɵelementEnd();
        i0.ɵɵelementStart(5, "div", 4);
        i0.ɵɵtext(6);
        i0.ɵɵelementEnd();
        i0.ɵɵelementEnd();
    } if (rf & 2) {
        i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(5, _c0, ctx.url));
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngIf", ctx.iconClass);
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngIf", !ctx.iconClass);
        i0.ɵɵadvance(2);
        i0.ɵɵtextInterpolate1(" ", ctx.label, " ");
        i0.ɵɵadvance(2);
        i0.ɵɵtextInterpolate1(" ", ctx.subLabel, " ");
    } }, directives: [i1.RouterLink, i2.NgIf], styles: [".eui-dashboard-button{background-color:var(--eui-color-grey-lightester);border:1px solid var(--eui-color-grey-lighter);cursor:pointer;float:left;margin-right:1rem;width:7rem}.eui-dashboard-button:focus,.eui-dashboard-button:hover{background-color:var(--eui-color-grey-lightester);box-shadow:0 3px 6px rgba(0,0,0,.16),0 3px 6px rgba(0,0,0,.23);outline:0}.eui-dashboard-button__content-main-icon,.eui-dashboard-button__content-main-label{box-shadow:0 3px 6px rgba(0,0,0,.16),0 3px 6px rgba(0,0,0,.23);display:block;font-size:4rem;height:100%;padding-top:1rem;text-align:center;width:100%}.eui-dashboard-button__content-main-icon-dashboard{background-repeat:no-repeat;display:block;height:48px;margin:1.25rem auto .5rem;width:48px}.eui-dashboard-button__content-title{margin:0;padding-top:.75rem;text-align:center}.eui-dashboard-button__content-sub-title{color:var(--eui-color-grey-dark);font-size:.875rem;margin-top:.75rem;text-align:center}.eui-dropdown-button__menu-item:focus{color:var(--eui-color-font)}.eui-dashboard-button--rounded{background-color:initial;border:0;padding:.75rem 0}.eui-dashboard-button--rounded .eui-dashboard-button__content-main-icon,.eui-dashboard-button--rounded .eui-dashboard-button__content-main-label{background-color:#ececec;border-radius:100%;color:#333;font-size:3rem;height:5rem;margin:0 auto;padding-top:.8rem;width:5rem}.eui-dashboard-button--rounded .eui-dashboard-button__content-sub-title{color:var(--eui-color-grey-dark);font-size:.875rem;margin-top:.75rem;text-align:center}.eui-dashboard-button--large{width:10rem}.eui-dashboard-button--large .eui-dashboard-button__content-main-icon,.eui-dashboard-button--large .eui-dashboard-button__content-main-label{font-size:4rem;height:8rem;margin:0 auto;padding-top:1.25rem;text-align:center;width:8rem}.eui-dashboard-button--large .eui-dashboard-button__content-title{font-size:1.125rem}.eui-dashboard-button--large .eui-dashboard-button__contet-sub-title{font-size:1rem}.eui-dashboard-button--full-width{width:100%}.eui-dashboard-button--primary .eui-dashboard-button__content-main-icon,.eui-dashboard-button--primary .eui-dashboard-button__content-main-label{background-color:var(--eui-color-primary)}.eui-dashboard-button--info .eui-dashboard-button__content-main-icon,.eui-dashboard-button--info .eui-dashboard-button__content-main-label{background-color:var(--eui-color-info)}.eui-dashboard-button--success .eui-dashboard-button__content-main-icon,.eui-dashboard-button--success .eui-dashboard-button__content-main-label{background-color:var(--eui-color-success)}.eui-dashboard-button--warning .eui-dashboard-button__content-main-icon,.eui-dashboard-button--warning .eui-dashboard-button__content-main-label{background-color:var(--eui-color-warning)}.eui-dashboard-button--danger .eui-dashboard-button__content-main-icon,.eui-dashboard-button--danger .eui-dashboard-button__content-main-label{background-color:var(--eui-color-danger)}"], encapsulation: 2, changeDetection: 0 });
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(EuiDashboardButtonComponent, [{
        type: Component,
        args: [{
                // template: (<any>EclButtonComponent).__annotations__[0]['template'], // TODO: check AOT build ??
                templateUrl: './eui-dashboard-button.component.html',
                selector: 'eui-dashboard-button',
                styleUrls: ['./styles/_index.scss'],
                changeDetection: ChangeDetectionStrategy.OnPush,
                encapsulation: ViewEncapsulation.None,
            }]
    }], function () { return []; }, { mainLabel: [{
            type: Input
        }], label: [{
            type: Input
        }], iconClass: [{
            type: Input
        }], subLabel: [{
            type: Input
        }], url: [{
            type: Input
        }], cssClasses: [{
            type: HostBinding,
            args: ['class']
        }] }); })();
export class EuiDashboardButtonModule {
}
/** @nocollapse */ EuiDashboardButtonModule.ɵmod = i0.ɵɵdefineNgModule({ type: EuiDashboardButtonModule });
/** @nocollapse */ EuiDashboardButtonModule.ɵinj = i0.ɵɵdefineInjector({ factory: function EuiDashboardButtonModule_Factory(t) { return new (t || EuiDashboardButtonModule)(); }, imports: [[
            CommonModule,
            RouterModule,
            EuiIconModule,
        ]] });
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(EuiDashboardButtonModule, { declarations: [EuiDashboardButtonComponent], imports: [CommonModule,
        RouterModule,
        EuiIconModule], exports: [EuiDashboardButtonComponent] }); })();
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(EuiDashboardButtonModule, [{
        type: NgModule,
        args: [{
                imports: [
                    CommonModule,
                    RouterModule,
                    EuiIconModule,
                ],
                declarations: [
                    EuiDashboardButtonComponent,
                ],
                exports: [
                    EuiDashboardButtonComponent,
                ],
            }]
    }], null, null); })();
//# sourceMappingURL=data:application/json;base64, 