import { Component, HostBinding, Input, ChangeDetectionStrategy, ViewEncapsulation, Output, EventEmitter, QueryList, forwardRef, ContentChild } from '@angular/core';
import { coerceBooleanProperty } from '@angular/cdk/coercion';
import { skip, takeUntil } from 'rxjs/operators';
import { Subject } from 'rxjs';
import { BaseDirective } from '../../base.directive';
import { UiStateService } from './services/ui-state.service';
import { EuiCardHeaderComponent } from './components/eui-card-header/eui-card-header.component';
import { EuiCardMediaComponent } from './components/eui-card-media/eui-card-media.component';
import { EuiCardContentComponent } from './components/eui-card-content/eui-card-content.component';
import { EuiCardFooterComponent } from './components/eui-card-footer/eui-card-footer.component';
import * as i0 from "@angular/core";
import * as i1 from "./services/ui-state.service";
import * as i2 from "@angular/material/card";
import * as i3 from "@angular/common";
function EuiCardComponent_ng_content_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵprojection(0, 0, ["*ngIf", "cardHeader"]);
} }
function EuiCardComponent_ng_content_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵprojection(0, 1, ["*ngIf", "cardMedia"]);
} }
function EuiCardComponent_ng_content_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵprojection(0, 2, ["*ngIf", "cardContent"]);
} }
function EuiCardComponent_ng_content_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵprojection(0, 3, ["*ngIf", "cardFooter"]);
} }
const _c0 = [[["eui-card-header"]], [["eui-card-media"]], [["eui-card-content"]], [["eui-card-footer"]]];
const _c1 = ["eui-card-header", "eui-card-media", "eui-card-content", "eui-card-footer"];
export class EuiCardComponent extends BaseDirective {
    constructor(uiStateService) {
        super();
        this.uiStateService = uiStateService;
        this._euiSelected = false;
        this._euiCollapsible = false;
        this._euiCollapsed = false;
        this._euiUrgent = false;
        this._euiNoShadow = false;
        this._euiNoContentPadding = false;
        this._euiHoverable = false;
        this._euiFlat = true;
        this._euiInverted = false;
        this._euiEditable = false;
        this.e2eAttr = 'eui-card';
        /** @deprecated this will become deprecated in eUI 14 */
        this.onCollapsed = new EventEmitter(); // TO BE DEPRECATED in 14+
        this.collapse = new EventEmitter();
        this.open = new EventEmitter();
        this.close = new EventEmitter();
        this.destroy$ = new Subject();
    }
    get euiSelected() { return this._euiSelected; }
    set euiSelected(value) { this._euiSelected = coerceBooleanProperty(value); }
    get euiCollapsible() { return this._euiCollapsible; }
    set euiCollapsible(value) { this._euiCollapsible = coerceBooleanProperty(value); }
    get euiCollapsed() { return this._euiCollapsed; }
    set euiCollapsed(value) { this._euiCollapsed = coerceBooleanProperty(value); }
    get euiUrgent() { return this._euiUrgent; }
    set euiUrgent(value) { this._euiUrgent = coerceBooleanProperty(value); }
    get euiNoShadow() { return this._euiNoShadow; }
    set euiNoShadow(value) { this._euiNoShadow = coerceBooleanProperty(value); }
    get euiNoContentPadding() { return this._euiNoContentPadding; }
    set euiNoContentPadding(value) { this._euiNoContentPadding = coerceBooleanProperty(value); }
    get euiHoverable() { return this._euiHoverable; }
    set euiHoverable(value) { this._euiHoverable = coerceBooleanProperty(value); }
    // WILL BE DEPRECATED IN 13+
    get euiFlat() { return this._euiFlat; }
    set euiFlat(value) {
        console.warn('***WARNING ! euiFlat option will become the default and will be deprecated in eUI13+');
        this._euiFlat = coerceBooleanProperty(value);
    }
    // DEPRECATED - Will be dropped in eUI13+
    get euiInverted() { return this._euiInverted; }
    set euiInverted(value) {
        console.warn('***WARNING ! euiInverted option is deprecated and will be dropped in eUI13+. Use euiSelect instead');
        this._euiInverted = coerceBooleanProperty(value);
    }
    // TO BE DEPRECATED in favour of base directive euiHighlighted
    get euiEditable() { return this._euiEditable; }
    set euiEditable(value) {
        console.warn('***WARNING ! euiEditable is deprecated and should be replaced by euiHighlighted');
        this._euiEditable = coerceBooleanProperty(value);
    }
    get cssClasses() {
        return [
            super.getCssClasses('eui-card'),
            this.uiStateService.state.isCollapsible ? `eui-card--collapsible` : ``,
            this.uiStateService.state.isCollapsed ? `eui-card--collapsed` : ``,
            this._euiSelected ? `eui-card--selected` : ``,
            this._euiUrgent ? `eui-card--urgent` : ``,
            this._euiNoShadow ? `eui-card--no-shadow` : ``,
            this._euiNoContentPadding ? `eui-card--no-content-padding` : ``,
            this._euiHoverable ? `eui-card--hoverable` : ``,
            this._euiFlat ? `eui-card--flat` : ``,
            this._euiInverted ? `eui-card--inverted` : ``,
            this._euiEditable ? `eui-card--highlighted` : ``,
        ].join(' ').trim();
    }
    ngOnChanges(changes) {
        this.uiStateService.setState({ isCollapsible: this.euiCollapsible, isCollapsed: this.euiCollapsed });
    }
    ngOnInit() {
        this.uiStateService.state$.pipe(takeUntil(this.destroy$)).subscribe((state) => {
            this.euiCollapsible = state.isCollapsible;
            this.euiCollapsed = state.isCollapsed;
            this.onCollapsed.emit(state.isCollapsed);
            this.collapse.emit(state.isCollapsed);
        });
        this.uiStateService.state$.pipe(takeUntil(this.destroy$), skip(1)).subscribe((state) => {
            state.isCollapsed ? this.close.emit() : this.open.emit();
        });
    }
    ngOnDestroy() {
        this.destroy$.next(true);
        this.destroy$.unsubscribe();
    }
    /**
     * Toggle eui-card opening state
     */
    toggleCard() {
        this.uiStateService.setState({ isCollapsed: !this.uiStateService.state.isCollapsed });
    }
    /**
     * Open eui-card
     */
    openCard() {
        this.uiStateService.setState({ isCollapsed: false });
    }
    /**
     * Close eui-card
     */
    closeCard() {
        this.uiStateService.setState({ isCollapsed: true });
    }
}
/** @nocollapse */ EuiCardComponent.ɵfac = function EuiCardComponent_Factory(t) { return new (t || EuiCardComponent)(i0.ɵɵdirectiveInject(i1.UiStateService)); };
/** @nocollapse */ EuiCardComponent.ɵcmp = i0.ɵɵdefineComponent({ type: EuiCardComponent, selectors: [["eui-card"]], contentQueries: function EuiCardComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
        i0.ɵɵcontentQuery(dirIndex, EuiCardHeaderComponent, true);
        i0.ɵɵcontentQuery(dirIndex, EuiCardMediaComponent, true);
        i0.ɵɵcontentQuery(dirIndex, EuiCardContentComponent, true);
        i0.ɵɵcontentQuery(dirIndex, EuiCardFooterComponent, true);
    } if (rf & 2) {
        var _t;
        i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.cardHeader = _t.first);
        i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.cardMedia = _t.first);
        i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.cardContent = _t.first);
        i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.cardFooter = _t.first);
    } }, hostVars: 3, hostBindings: function EuiCardComponent_HostBindings(rf, ctx) { if (rf & 2) {
        i0.ɵɵattribute("data-e2e", ctx.e2eAttr);
        i0.ɵɵclassMap(ctx.cssClasses);
    } }, inputs: { euiSelected: "euiSelected", euiCollapsible: "euiCollapsible", euiCollapsed: "euiCollapsed", euiUrgent: "euiUrgent", euiNoShadow: "euiNoShadow", euiNoContentPadding: "euiNoContentPadding", euiHoverable: "euiHoverable", euiFlat: "euiFlat", euiInverted: "euiInverted", euiEditable: "euiEditable", e2eAttr: "e2eAttr" }, outputs: { onCollapsed: "onCollapsed", collapse: "collapse", open: "open", close: "close" }, features: [i0.ɵɵProvidersFeature([UiStateService]), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c1, decls: 5, vars: 4, consts: [[1, "eui-card-container"], [4, "ngIf"]], template: function EuiCardComponent_Template(rf, ctx) { if (rf & 1) {
        i0.ɵɵprojectionDef(_c0);
        i0.ɵɵelementStart(0, "mat-card", 0);
        i0.ɵɵtemplate(1, EuiCardComponent_ng_content_1_Template, 1, 0, "ng-content", 1);
        i0.ɵɵtemplate(2, EuiCardComponent_ng_content_2_Template, 1, 0, "ng-content", 1);
        i0.ɵɵtemplate(3, EuiCardComponent_ng_content_3_Template, 1, 0, "ng-content", 1);
        i0.ɵɵtemplate(4, EuiCardComponent_ng_content_4_Template, 1, 0, "ng-content", 1);
        i0.ɵɵelementEnd();
    } if (rf & 2) {
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngIf", ctx.cardHeader);
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngIf", ctx.cardMedia);
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngIf", ctx.cardContent);
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngIf", ctx.cardFooter);
    } }, directives: [i2.MatCard, i3.NgIf], styles: ["@charset \"UTF-8\";.mat-card{background:#fff;color:rgba(0,0,0,.87)}.mat-card:not([class*=mat-elevation-z]){box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.mat-card.mat-card-flat:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.mat-card-subtitle{color:rgba(0,0,0,.54)}.eui-card{height:100%;overflow-x:hidden;overflow-y:auto;position:relative;width:100%}.eui-card .mat-card{background:var(--eui-color-white);border:1px solid var(--eui-color-grey-lightest);border-radius:var(--eui-border-radius-base);box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)!important;color:var(--eui-color);display:flex;flex-direction:column;font-family:inherit;height:auto;padding:0;position:relative;transition:box-shadow .28s cubic-bezier(.4,0,.2,1)}.eui-card.eui-card--no-shadow .mat-card{box-shadow:none!important}.eui-card.eui-card--hoverable .mat-card:hover{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12)!important}.eui-card-header{align-items:center;background:#f5f5f5;display:flex;flex-direction:row;width:100%}.eui-card-header__container{align-items:center;display:flex;min-height:calc(var(--eui-spacing)*3);padding:var(--eui-spacing-s) var(--eui-spacing);width:100%}.eui-card-header__container,.eui-card-header__container+.eui-card-header-body{border-bottom:1px solid var(--eui-color-grey-lighter);margin-bottom:-1px}.eui-card-header__title-row-container+.eui-card-header__container{padding-top:0}.eui-card-header__title-row-container+.eui-card-header__container .eui-card-header__left-content{margin-top:var(--eui-spacing-xs)}.eui-card-header .eui-card-header,.eui-card-header .mat-card-header{display:flex;flex-wrap:wrap;width:100%}.eui-card-header .eui-card-header .mat-card-header-text,.eui-card-header .mat-card-header .mat-card-header-text{margin:0 var(--eui-spacing)}.eui-card-header .eui-card-header .eui-card__subtitle,.eui-card-header .eui-card-header .eui-card__title,.eui-card-header .eui-card-header .mat-card-subtitle,.eui-card-header .eui-card-header .mat-card-title,.eui-card-header .mat-card-header .eui-card__subtitle,.eui-card-header .mat-card-header .eui-card__title,.eui-card-header .mat-card-header .mat-card-subtitle,.eui-card-header .mat-card-header .mat-card-title{display:grid;margin-bottom:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.eui-card-header .eui-card-header .eui-card__subtitle:not(:first-child),.eui-card-header .eui-card-header .mat-card-subtitle:not(:first-child),.eui-card-header .mat-card-header .eui-card__subtitle:not(:first-child),.eui-card-header .mat-card-header .mat-card-subtitle:not(:first-child){margin-top:var(--eui-spacing-2xs)}.eui-card-header .mat-card-avatar,.eui-card-header__avatar{align-self:center;background-image:none;background-size:cover;border-radius:50%;flex-shrink:0;height:calc(var(--eui-spacing-2xl) + var(--eui-spacing-2xs));margin-right:var(--eui-spacing-s);object-fit:cover;width:calc(var(--eui-spacing-2xl) + var(--eui-spacing-2xs))}.eui-card-header__icon{margin-left:0}.eui-card-header__icon,.eui-card-header__icon--rounded{margin-right:var(--eui-spacing-s)}.eui-card-header__urgent-indicator{display:none;position:absolute;right:calc(var(--eui-spacing-s)*-1);top:calc(var(--eui-spacing-s)*-1.5)}.eui-card-header__urgent-indicator:after{background:var(--eui-color-white);border-radius:50%;color:var(--eui-color-danger);content:\"\uE90F\";font-family:eui-icons,sans-serif!important;font-size:var(--eui-font-size-3xl)}.eui-card-header__title-row-container{display:flex;flex-direction:column;justify-content:center;overflow:hidden;padding:var(--eui-spacing-m) var(--eui-spacing-m) 0 var(--eui-spacing-m);text-overflow:ellipsis;white-space:nowrap;width:100%}.eui-card-header__title-row-container .eui-card-header__title-row{color:var(--eui-color-grey-darkest);font-size:var(--eui-font-size-m);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.eui-card-header__title-container{display:flex;flex-direction:column;justify-content:center;margin-right:var(--eui-spacing-s);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.eui-card-header__title-container-title{color:var(--eui-color-grey-darkest);font-size:var(--eui-font-size-m);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.eui-card-header__title-container-subtitle{color:var(--eui-color-grey-darker);font-size:var(--eui-font-size-s);font-weight:300;margin-top:var(--eui-spacing-xs);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.eui-card-header__left-content{display:flex;height:100%;margin-right:var(--eui-spacing-m)}.eui-card-header__left-content .eui-input-checkbox{position:relative!important}.eui-card-header__middle-container{display:flex;flex-direction:column;justify-content:flex-start;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.eui-card-header__middle-content{display:flex;flex-direction:row;justify-content:flex-start;margin-top:var(--eui-spacing-s);width:100%}.eui-card-header__middle-content .eui-card-header__title-container-subtitle{display:flex;flex-direction:column;margin-right:var(--eui-spacing-m);width:100%}.eui-card-header__right-content{align-items:center;display:flex;justify-content:flex-end;margin-left:auto}.eui-card-header__expander{display:none;margin-left:auto}.eui-card-header__expander.eui-card-header__expander--bottom{background-color:var(--eui-color-white);border-radius:50%;bottom:calc(var(--eui-spacing-m)*-0.75);box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)!important;height:calc(var(--eui-spacing-m)*1.5);justify-content:center;position:absolute;right:50%;transform:translateX(50%);width:calc(var(--eui-spacing-m)*2);z-index:1}.eui-card-header__expander.eui-card-header__expander--bottom .eui-button.eui-card-header__expander-icon{height:calc(var(--eui-spacing-m)*1.5);min-height:calc(var(--eui-spacing-m)*1.5);min-width:calc(var(--eui-spacing-m)*2);transition:transform .3s linear!important;width:calc(var(--eui-spacing-m)*2)}.eui-card-header__expander.eui-card-header__expander--bottom .eui-button.eui-card-header__expander-icon:active,.eui-card-header__expander.eui-card-header__expander--bottom .eui-button.eui-card-header__expander-icon:focus{border:2px solid var(--eui-color-accessible-focus);outline:none;transition:border .15s ease-in-out;width:calc(var(--eui-spacing-xl)*1)}.eui-card-header__expander.eui-card-header__expander--bottom .eui-button.eui-card-header__expander-icon .eui-icon{color:var(--eui-color-grey)}.eui-card-header--body-only .eui-card-header-body{border-bottom:1px solid var(--eui-color-grey-lighter)}.eui-card-header-body{align-items:center;background:var(--eui-color-white);display:flex;font-size:var(--eui-font-size);padding:var(--eui-spacing-s) var(--eui-spacing);width:100%}.eui-card-media{display:flex}.eui-card-media .mat-card-image,.eui-card-media [mat-card-image]{height:100%;margin:0;object-fit:cover;width:100%}.eui-card-media .mat-card-image:first-child,.eui-card-media [mat-card-image]:first-child{margin-top:0}.eui-card-media__container{display:flex;overflow:hidden;position:relative;width:100%}.eui-card-media__container-content{width:100%}.eui-card-media__container .eui-card-media__legend{align-items:center;background:linear-gradient(transparent,var(--eui-color-grey-darkester));bottom:0;color:var(--eui-color-white);display:flex;font-size:var(--eui-font-size-xl);font-weight:700;left:0;min-height:3rem;padding:var(--eui-spacing);position:absolute;text-shadow:0 1px 0 var(--eui-color-black);width:100%}.eui-card-content{cursor:auto;flex:0 1 auto;height:auto;overflow-x:hidden;overflow-y:auto;padding:var(--eui-spacing);position:relative}.eui-card-content::-webkit-scrollbar{background-color:var(--eui-color-grey-lightest);display:inherit;height:6px;width:6px}.eui-card-content::-webkit-scrollbar-thumb{background-color:var(--eui-color-grey-light);border-radius:5rem}.eui-card-content::-webkit-scrollbar-thumb:hover{background-color:var(--eui-color-grey)}.eui-card-content::-webkit-scrollbar-track{background-color:var(--eui-color-grey-lightest);border-radius:0}.eui-card--no-content-padding .eui-card-content{padding:0}.eui-card-content .mat-card-content{font-size:var(--eui-font-size);margin-bottom:0}.eui-card-footer{border-top:1px solid var(--eui-color-grey-lighter);display:flex;margin-top:-1px;position:relative}.eui-card-footer-container{display:flex;margin:var(--eui-spacing-s) var(--eui-spacing);width:100%}.eui-card-footer-actions,.eui-card-footer .mat-card-actions{align-items:center;display:flex;margin-bottom:0;margin-left:0;margin-right:0;padding:0;width:100%}.eui-card-footer-actions__buttons,.eui-card-footer .mat-card-actions__buttons{align-items:center;display:flex;width:100%}.eui-card-footer-actions__buttons button:not(:last-child),.eui-card-footer .mat-card-actions__buttons button:not(:last-child){margin-right:var(--eui-spacing-xs)}.eui-card-footer-actions__icons,.eui-card-footer .mat-card-actions__icons{align-items:center;display:flex;width:100%}.eui-card-footer-actions__icons-container,.eui-card-footer .mat-card-actions__icons-container{align-items:center;display:flex;margin-left:auto}.eui-card-footer-menu-content{margin-right:calc(var(--eui-spacing)*-0.5)}.eui-card .eui-card-content .ux-tree-list{margin-bottom:0}@media screen and (max-width:767px){.eui-card-header__left-content button,.eui-card-header__right-content{flex-wrap:wrap}.eui-card-header__right-content .eui-button,.eui-card-header__right-content button{margin-top:var(--eui-spacing-xs)}.eui-card-header__right-content [style*=\"visibility: hidden\"]{display:none}}@media screen and (min-width:768px) and (max-width:991px){.eui-card-header__left-content button,.eui-card-header__right-content{flex-wrap:wrap}.eui-card-header__right-content .eui-button,.eui-card-header__right-content button{margin-top:var(--eui-spacing-xs)}.eui-card-header__right-content [style*=\"visibility: hidden\"]{display:none}}.eui-card--size-xs .eui-card-container{flex:0 0 16.66666667%;max-width:16.66666667%}.eui-card--size-s .eui-card-container{flex:0 0 33.33333333%;max-width:33.33333333%}.eui-card--size-m .eui-card-container{flex:0 0 50%;max-width:50%}.eui-card--size-l .eui-card-container{flex:0 0 66.66666667%;max-width:66.66666667%}.eui-card--size-xl .eui-card-container{flex:0 0 83.33333333%;max-width:83.33333333%}.eui-card--size-2xl .eui-card-container{flex:0 0 100%;max-width:100%}@media screen and (max-width:767px){.eui-card--size-2xl .eui-card-container,.eui-card--size-l .eui-card-container,.eui-card--size-m .eui-card-container,.eui-card--size-s .eui-card-container,.eui-card--size-xl .eui-card-container,.eui-card--size-xs .eui-card-container{flex:0 0 100%;max-width:100%}}@media screen and (min-width:768px) and (max-width:991px){.eui-card--size-s .eui-card-container,.eui-card--size-xs .eui-card-container{flex:0 0 33.33333333%;max-width:33.33333333%}}.eui-card--selected .eui-card-header,.eui-card--selected .eui-card-header-body{background:var(--eui-color-primary)!important;color:var(--eui-color-white)}.eui-card--selected .eui-card-header-body .eui-card-header__title-container-title,.eui-card--selected .eui-card-header-body .eui-card-header__title-container-title .eui-label,.eui-card--selected .eui-card-header .eui-card-header__title-container-title,.eui-card--selected .eui-card-header .eui-card-header__title-container-title .eui-label{color:var(--eui-color-white)}.eui-card--selected .eui-card-header-body .eui-card-header__title-container-subtitle,.eui-card--selected .eui-card-header .eui-card-header__title-container-subtitle{color:var(--eui-color-grey-lightest)}.eui-card--selected .eui-card-header-body .eui-card-header__title-row-container .eui-card-header__title-row,.eui-card--selected .eui-card-header-body .eui-card-header__title-row-container .eui-card-header__title-row .eui-label,.eui-card--selected .eui-card-header .eui-card-header__title-row-container .eui-card-header__title-row,.eui-card--selected .eui-card-header .eui-card-header__title-row-container .eui-card-header__title-row .eui-label{color:var(--eui-color-white)}.eui-card--selected .eui-card-header-body .eui-button.eui-button--primary,.eui-card--selected .eui-card-header .eui-button.eui-button--primary{background:inherit;border-color:var(--eui-color-white);color:var(--eui-color-white)}.eui-card--selected .eui-card-header-body .eui-button.eui-button--primary.eui-button__container>*,.eui-card--selected .eui-card-header .eui-button.eui-button--primary.eui-button__container>*{color:var(--eui-color-grey)!important}.eui-card--selected .eui-card-header-body .eui-button.eui-button--basic,.eui-card--selected .eui-card-header-body .eui-button.eui-button--warning .eui-button--outline,.eui-card--selected .eui-card-header .eui-button.eui-button--basic,.eui-card--selected .eui-card-header .eui-button.eui-button--warning .eui-button--outline{color:var(--eui-font-color)}.eui-card--selected .eui-card-header-body .eui-button.eui-button--basic:focus,.eui-card--selected .eui-card-header-body .eui-button.eui-button--basic:hover,.eui-card--selected .eui-card-header .eui-button.eui-button--basic:focus,.eui-card--selected .eui-card-header .eui-button.eui-button--basic:hover{background:hsla(0,0%,100%,.25)}.eui-card--selected .eui-card-header-body .eui-icon-toggle .eui-icon-toggle__icon:not(.eui-icon-toggle--checked),.eui-card--selected .eui-card-header .eui-icon-toggle .eui-icon-toggle__icon:not(.eui-icon-toggle--checked){color:var(--eui-color-grey-lightest)!important}.eui-card--selected .eui-card-header-body .eui-label.eui-label--secondary,.eui-card--selected .eui-card-header-body a,.eui-card--selected .eui-card-header-body a:not([href]):not([tabindex]),.eui-card--selected .eui-card-header .eui-label.eui-label--secondary,.eui-card--selected .eui-card-header a,.eui-card--selected .eui-card-header a:not([href]):not([tabindex]){color:var(--eui-base-color-white)!important}.eui-card--selected .eui-card-header-body input[type=checkbox].eui-input-checkbox:not(.cdk-visually-hidden).eui-input-checkbox--nolabel:after,.eui-card--selected .eui-card-header input[type=checkbox].eui-input-checkbox:not(.cdk-visually-hidden).eui-input-checkbox--nolabel:after{background:transparent;color:var(--eui-color-white);content:\"\uF3C5\";font-family:eui-icons,sans-serif;font-size:var(--eui-font-size-m);font-weight:700;left:var(--eui-spacing-3xs);top:0}.eui-card--selected .eui-card-header-body input[type=checkbox].eui-input-checkbox:not(.cdk-visually-hidden).eui-input-checkbox--nolabel:before,.eui-card--selected .eui-card-header input[type=checkbox].eui-input-checkbox:not(.cdk-visually-hidden).eui-input-checkbox--nolabel:before{background:var(--eui-color-primary);border:2px solid var(--eui-color-white)!important}.eui-card--selected .eui-card-header-body .eui-chip--primary,.eui-card--selected .eui-card-header .eui-chip--primary{outline:1px solid var(--eui-color-white)}.eui-card--urgent .eui-card-header__urgent-indicator{display:block}.eui-card--disabled,.eui-card--is-loading,.eui-card.disabled,.eui-card[disabled]{opacity:.45;pointer-events:none}.eui-card--collapsible .eui-card-header__expander{align-items:center;display:inline-flex;margin-left:var(--eui-spacing-xs);margin-right:calc(var(--eui-spacing-xs)*-1)}.eui-card--collapsed .eui-card-content,.eui-card--collapsed .eui-card-media,.eui-card--collapsed .mat-card-image{display:none}.eui-card--collapsed .eui-card-header,.eui-card--collapsed .eui-card-header__container{border-bottom:1px solid transparent}.eui-card--collapsed .eui-card-header__expander-icon{transform:rotate(180deg)}.eui-card--primary>.mat-card{border-left:6px solid var(--eui-color-primary)}.eui-card--secondary>.mat-card{border-left:6px solid var(--eui-color-grey-lighter)}.eui-card--info>.mat-card{border-left:6px solid var(--eui-color-info)}.eui-card--success>.mat-card{border-left:6px solid var(--eui-color-success)}.eui-card--warning>.mat-card{border-left:6px solid var(--eui-color-warning)}.eui-card--danger>.mat-card{border-left:6px solid var(--eui-color-danger)}.eui-card--accent>.mat-card{border-left:6px solid var(--eui-color-accent)}.eui-card--highlighted .eui-card-container{z-index:var(--eui-z-index-highlighted)}.eui-card--flat .eui-card-header{background:var(--eui-color-white)}.eui-card--no-border>.mat-card{border:none}"], encapsulation: 2, changeDetection: 0 });
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(EuiCardComponent, [{
        type: Component,
        args: [{
                templateUrl: './eui-card.component.html',
                selector: 'eui-card',
                styleUrls: ['./styles/_index.scss'],
                providers: [UiStateService],
                changeDetection: ChangeDetectionStrategy.OnPush,
                encapsulation: ViewEncapsulation.None,
            }]
    }], function () { return [{ type: i1.UiStateService }]; }, { euiSelected: [{
            type: Input
        }], euiCollapsible: [{
            type: Input
        }], euiCollapsed: [{
            type: Input
        }], euiUrgent: [{
            type: Input
        }], euiNoShadow: [{
            type: Input
        }], euiNoContentPadding: [{
            type: Input
        }], euiHoverable: [{
            type: Input
        }], euiFlat: [{
            type: Input
        }], euiInverted: [{
            type: Input
        }], euiEditable: [{
            type: Input
        }], cssClasses: [{
            type: HostBinding,
            args: ['class']
        }], e2eAttr: [{
            type: HostBinding,
            args: ['attr.data-e2e']
        }, {
            type: Input
        }], onCollapsed: [{
            type: Output
        }], collapse: [{
            type: Output
        }], open: [{
            type: Output
        }], close: [{
            type: Output
        }], cardHeader: [{
            type: ContentChild,
            args: [forwardRef(() => EuiCardHeaderComponent), { static: false }]
        }], cardMedia: [{
            type: ContentChild,
            args: [forwardRef(() => EuiCardMediaComponent), { static: false }]
        }], cardContent: [{
            type: ContentChild,
            args: [forwardRef(() => EuiCardContentComponent), { static: false }]
        }], cardFooter: [{
            type: ContentChild,
            args: [forwardRef(() => EuiCardFooterComponent), { static: false }]
        }] }); })();
//# sourceMappingURL=data:application/json;base64, 