import { Component, HostBinding, ChangeDetectionStrategy, ContentChild, forwardRef, QueryList } from '@angular/core';
import { EuiCardFooterActionButtonsComponent } from './eui-card-footer-action-buttons.component';
import { EuiCardFooterActionIconsComponent } from './eui-card-footer-action-icons.component';
import { EuiCardFooterMenuContentComponent } from './eui-card-footer-menu-content.component';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "@angular/material/card";
function EuiCardFooterComponent_mat_card_actions_1_ng_content_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵprojection(0, 0, ["*ngIf", "actionButtons"]);
} }
function EuiCardFooterComponent_mat_card_actions_1_div_2_ng_content_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵprojection(0, 1, ["*ngIf", "actionIcons"]);
} }
function EuiCardFooterComponent_mat_card_actions_1_div_2_ng_content_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵprojection(0, 2, ["*ngIf", "actionMenu"]);
} }
function EuiCardFooterComponent_mat_card_actions_1_div_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 5);
    i0.ɵɵtemplate(1, EuiCardFooterComponent_mat_card_actions_1_div_2_ng_content_1_Template, 1, 0, "ng-content", 3);
    i0.ɵɵtemplate(2, EuiCardFooterComponent_mat_card_actions_1_div_2_ng_content_2_Template, 1, 0, "ng-content", 3);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r2 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r2.actionIcons);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r2.actionMenu);
} }
function EuiCardFooterComponent_mat_card_actions_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "mat-card-actions", 2);
    i0.ɵɵtemplate(1, EuiCardFooterComponent_mat_card_actions_1_ng_content_1_Template, 1, 0, "ng-content", 3);
    i0.ɵɵtemplate(2, EuiCardFooterComponent_mat_card_actions_1_div_2_Template, 3, 2, "div", 4);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r0.actionButtons);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r0.actionIcons || ctx_r0.actionMenu);
} }
const _c0 = [[["eui-card-footer-action-buttons"]], [["eui-card-footer-action-icons"]], [["eui-card-footer-menu-content"]]];
const _c1 = ["eui-card-footer-action-buttons", "eui-card-footer-action-icons", "eui-card-footer-menu-content"];
export class EuiCardFooterComponent {
    constructor() {
        this.string = 'eui-card-footer';
    }
}
/** @nocollapse */ EuiCardFooterComponent.ɵfac = function EuiCardFooterComponent_Factory(t) { return new (t || EuiCardFooterComponent)(); };
/** @nocollapse */ EuiCardFooterComponent.ɵcmp = i0.ɵɵdefineComponent({ type: EuiCardFooterComponent, selectors: [["eui-card-footer"]], contentQueries: function EuiCardFooterComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
        i0.ɵɵcontentQuery(dirIndex, EuiCardFooterActionButtonsComponent, true);
        i0.ɵɵcontentQuery(dirIndex, EuiCardFooterActionIconsComponent, true);
        i0.ɵɵcontentQuery(dirIndex, EuiCardFooterMenuContentComponent, true);
    } if (rf & 2) {
        var _t;
        i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.actionButtons = _t.first);
        i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.actionIcons = _t.first);
        i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.actionMenu = _t.first);
    } }, hostVars: 2, hostBindings: function EuiCardFooterComponent_HostBindings(rf, ctx) { if (rf & 2) {
        i0.ɵɵclassMap(ctx.string);
    } }, ngContentSelectors: _c1, decls: 2, vars: 1, consts: [[1, "eui-card-footer-container"], ["class", "eui-card-footer-actions", 4, "ngIf"], [1, "eui-card-footer-actions"], [4, "ngIf"], ["class", "eui-card-footer-actions__icons-container", 4, "ngIf"], [1, "eui-card-footer-actions__icons-container"]], template: function EuiCardFooterComponent_Template(rf, ctx) { if (rf & 1) {
        i0.ɵɵprojectionDef(_c0);
        i0.ɵɵelementStart(0, "div", 0);
        i0.ɵɵtemplate(1, EuiCardFooterComponent_mat_card_actions_1_Template, 3, 2, "mat-card-actions", 1);
        i0.ɵɵelementEnd();
    } if (rf & 2) {
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngIf", ctx.actionButtons || ctx.actionIcons || ctx.actionMenu);
    } }, directives: [i1.NgIf, i2.MatCardActions], encapsulation: 2, changeDetection: 0 });
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(EuiCardFooterComponent, [{
        type: Component,
        args: [{
                selector: 'eui-card-footer',
                templateUrl: './eui-card-footer.component.html',
                changeDetection: ChangeDetectionStrategy.OnPush,
            }]
    }], function () { return []; }, { string: [{
            type: HostBinding,
            args: ['class']
        }], actionButtons: [{
            type: ContentChild,
            args: [forwardRef(() => EuiCardFooterActionButtonsComponent), { static: false }]
        }], actionIcons: [{
            type: ContentChild,
            args: [forwardRef(() => EuiCardFooterActionIconsComponent), { static: false }]
        }], actionMenu: [{
            type: ContentChild,
            args: [forwardRef(() => EuiCardFooterMenuContentComponent), { static: false }]
        }] }); })();
//# sourceMappingURL=data:application/json;base64, 