import { Component, HostBinding, ChangeDetectionStrategy, ViewEncapsulation, Inject, ViewChild, ElementRef, ChangeDetectorRef } from '@angular/core';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
import { BaseDirective } from '../../base.directive';
import { EuiDialogConfig, EuiDialogInjectedComponentInstances } from './models/dialog.config.model';
import { EuiDynamicComponentService } from '../../services/eui-dynamic-component.service';
import * as i0 from "@angular/core";
import * as i1 from "@angular/material/dialog";
import * as i2 from "../../services/eui-dynamic-component.service";
import * as i3 from "./models/dialog.config.model";
import * as i4 from "@angular/cdk/drag-drop";
import * as i5 from "@angular/common";
import * as i6 from "../eui-button/eui-button.component";
import * as i7 from "../atoms/eui-icon/eui-icon.component";
import * as i8 from "@ngx-translate/core";
const _c0 = ["euiDialogHeader"];
const _c1 = ["euiDialogBody"];
const _c2 = ["euiDialogFooter"];
function EuiDialogComponent_ng_container_4_button_4_Template(rf, ctx) { if (rf & 1) {
    const _r7 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 10);
    i0.ɵɵlistener("click", function EuiDialogComponent_ng_container_4_button_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r7); const ctx_r6 = i0.ɵɵnextContext(2); return ctx_r6.closeDialog(); });
    i0.ɵɵelement(1, "span", 11);
    i0.ɵɵelementEnd();
} }
function EuiDialogComponent_ng_container_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵelementStart(1, "div", 8);
    i0.ɵɵtext(2);
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵtemplate(4, EuiDialogComponent_ng_container_4_button_4_Template, 2, 0, "button", 9);
    i0.ɵɵelementContainerEnd();
} if (rf & 2) {
    const ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, ctx_r1.data.title));
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", !ctx_r1.data.disableClose);
} }
function EuiDialogComponent_ng_container_7_span_2_span_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "span", 21);
} }
function EuiDialogComponent_ng_container_7_span_2_span_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "span", 22);
} }
function EuiDialogComponent_ng_container_7_span_2_span_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "span", 23);
} }
function EuiDialogComponent_ng_container_7_span_2_span_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "span", 24);
} }
function EuiDialogComponent_ng_container_7_span_2_span_5_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "span", 25);
} }
function EuiDialogComponent_ng_container_7_span_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 15);
    i0.ɵɵtemplate(1, EuiDialogComponent_ng_container_7_span_2_span_1_Template, 1, 0, "span", 16);
    i0.ɵɵtemplate(2, EuiDialogComponent_ng_container_7_span_2_span_2_Template, 1, 0, "span", 17);
    i0.ɵɵtemplate(3, EuiDialogComponent_ng_container_7_span_2_span_3_Template, 1, 0, "span", 18);
    i0.ɵɵtemplate(4, EuiDialogComponent_ng_container_7_span_2_span_4_Template, 1, 0, "span", 19);
    i0.ɵɵtemplate(5, EuiDialogComponent_ng_container_7_span_2_span_5_Template, 1, 0, "span", 20);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r8 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r8.data.typeClass === "danger");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r8.data.typeClass === "success");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r8.data.typeClass === "info");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r8.data.typeClass === "question");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r8.data.typeClass === "warning");
} }
function EuiDialogComponent_ng_container_7_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵelementStart(1, "div", 12);
    i0.ɵɵtemplate(2, EuiDialogComponent_ng_container_7_span_2_Template, 6, 5, "span", 13);
    i0.ɵɵelement(3, "span", 14);
    i0.ɵɵpipe(4, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementContainerEnd();
} if (rf & 2) {
    const ctx_r3 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", ctx_r3.data.typeClass);
    i0.ɵɵadvance(1);
    i0.ɵɵpropertyInterpolate("innerHTML", i0.ɵɵpipeBind1(4, 2, ctx_r3.data.message), i0.ɵɵsanitizeHtml);
} }
function EuiDialogComponent_div_8_ng_container_2_button_3_span_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "span", 34);
} if (rf & 2) {
    const ctx_r19 = i0.ɵɵnextContext(4);
    i0.ɵɵpropertyInterpolate1("iconClass", "eui-icon ", ctx_r19.data.dismissButton.icon, "");
} }
function EuiDialogComponent_div_8_ng_container_2_button_3_Template(rf, ctx) { if (rf & 1) {
    const _r21 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 31);
    i0.ɵɵlistener("click", function EuiDialogComponent_div_8_ng_container_2_button_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r21); const ctx_r20 = i0.ɵɵnextContext(3); return ctx_r20.onClick(false); });
    i0.ɵɵtemplate(1, EuiDialogComponent_div_8_ng_container_2_button_3_span_1_Template, 1, 1, "span", 32);
    i0.ɵɵelementStart(2, "span", 33);
    i0.ɵɵtext(3);
    i0.ɵɵpipe(4, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r17 = i0.ɵɵnextContext(3);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r17.data.dismissButton.icon);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 2, ctx_r17.data.dismissButton.label));
} }
function EuiDialogComponent_div_8_ng_container_2_button_4_span_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "span", 34);
} if (rf & 2) {
    const ctx_r22 = i0.ɵɵnextContext(4);
    i0.ɵɵpropertyInterpolate1("iconClass", "eui-icon ", ctx_r22.data.acceptButton.icon, "");
} }
function EuiDialogComponent_div_8_ng_container_2_button_4_Template(rf, ctx) { if (rf & 1) {
    const _r24 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 35);
    i0.ɵɵlistener("click", function EuiDialogComponent_div_8_ng_container_2_button_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r24); const ctx_r23 = i0.ɵɵnextContext(3); return ctx_r23.onClick(true); });
    i0.ɵɵtemplate(1, EuiDialogComponent_div_8_ng_container_2_button_4_span_1_Template, 1, 1, "span", 32);
    i0.ɵɵelementStart(2, "span", 33);
    i0.ɵɵtext(3);
    i0.ɵɵpipe(4, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r18 = i0.ɵɵnextContext(3);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r18.data.acceptButton.icon);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 2, ctx_r18.data.acceptButton.label));
} }
function EuiDialogComponent_div_8_ng_container_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵelementStart(1, "div", 28, 27);
    i0.ɵɵtemplate(3, EuiDialogComponent_div_8_ng_container_2_button_3_Template, 5, 4, "button", 29);
    i0.ɵɵtemplate(4, EuiDialogComponent_div_8_ng_container_2_button_4_Template, 5, 4, "button", 30);
    i0.ɵɵelementEnd();
    i0.ɵɵelementContainerEnd();
} if (rf & 2) {
    const ctx_r15 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("ngIf", !ctx_r15.data.dismissButton.disabled);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", !ctx_r15.data.acceptButton.disabled);
} }
function EuiDialogComponent_div_8_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 26, 27);
    i0.ɵɵtemplate(2, EuiDialogComponent_div_8_ng_container_2_Template, 5, 2, "ng-container", 4);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r4 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", !ctx_r4.footerComponent);
} }
export class EuiDialogComponent extends BaseDirective {
    constructor(dialogRef, data, euiDynamicComponentService, cd) {
        super();
        this.dialogRef = dialogRef;
        this.data = data;
        this.euiDynamicComponentService = euiDynamicComponentService;
        this.cd = cd;
        this.headerComponent = null;
        this.bodyComponent = null;
        this.footerComponent = null;
        this.destroy$ = new Subject();
    }
    get cssClasses() {
        return [
            super.getCssClasses('eui-dialog'),
        ].join(' ').trim();
    }
    ngOnInit() {
        setTimeout(() => {
            if (this.data.headerComponent) {
                this.headerComponent = this.euiDynamicComponentService.attach(this.data.headerComponent.component, this.euiDialogHeader, this.data.headerComponent.config ? Object.assign(this.data.headerComponent.config, {
                    matDialogRef: this.dialogRef,
                }) : Object.assign({}, {
                    matDialogRef: this.dialogRef,
                }));
            }
            if (this.data.bodyComponent) {
                this.bodyComponent = this.euiDynamicComponentService.attach(this.data.bodyComponent.component, this.euiDialogBody, this.data.bodyComponent.config ? Object.assign(this.data.bodyComponent.config, {
                    matDialogRef: this.dialogRef,
                }) : Object.assign({}, {
                    matDialogRef: this.dialogRef,
                }));
            }
            if (this.data.footerComponent) {
                this.footerComponent = this.euiDynamicComponentService.attach(this.data.footerComponent.component, this.euiDialogFooter, this.data.footerComponent.config ? Object.assign(this.data.footerComponent.config, {
                    matDialogRef: this.dialogRef,
                }) : Object.assign({}, {
                    matDialogRef: this.dialogRef,
                }));
            }
            this.cd.detectChanges();
        });
        if (this.data.isHandleCloseOnClickOutside) {
            this.dialogRef.backdropClick().pipe(takeUntil(this.destroy$)).subscribe((value) => {
                this.data.onClickOutside(this.dialogRef, new EuiDialogInjectedComponentInstances({
                    headerComponent: this.headerComponent,
                    bodyComponent: this.bodyComponent,
                    footerComponent: this.footerComponent,
                }));
            });
        }
    }
    ngOnDestroy() {
        if (this.bodyComponent) {
            this.euiDynamicComponentService.detach(this.bodyComponent.portalHost);
            this.data.bodyComponent.component = null;
            this.data.bodyComponent.config = null;
        }
        if (this.footerComponent) {
            this.euiDynamicComponentService.detach(this.footerComponent.portalHost);
            this.data.footerComponent.component = null;
            this.data.footerComponent.config = null;
        }
        this.destroy$.next(true);
        this.destroy$.unsubscribe();
    }
    closeDialog() {
        if (this.data.onClose) {
            this.data.onClose(this.dialogRef, new EuiDialogInjectedComponentInstances({
                headerComponent: this.headerComponent,
                bodyComponent: this.bodyComponent,
                footerComponent: this.footerComponent,
            }));
        }
        if (!this.data.isHandleCloseOnClose) {
            this.dialogRef.close();
        }
    }
    onClick(value) {
        if (this.data.onClick) {
            this.data.onClick(value, new EuiDialogInjectedComponentInstances({
                headerComponent: this.headerComponent,
                bodyComponent: this.bodyComponent,
                footerComponent: this.footerComponent,
            }));
        }
        if (value) {
            if (this.data.onAccept) {
                this.data.onAccept(this.dialogRef, new EuiDialogInjectedComponentInstances({
                    headerComponent: this.headerComponent,
                    bodyComponent: this.bodyComponent,
                    footerComponent: this.footerComponent,
                }));
            }
        }
        else {
            if (this.data.onDismiss) {
                this.data.onDismiss(this.dialogRef, new EuiDialogInjectedComponentInstances({
                    headerComponent: this.headerComponent,
                    bodyComponent: this.bodyComponent,
                    footerComponent: this.footerComponent,
                }));
            }
        }
        if (value && !this.data.isHandleCloseOnAccept) {
            this.dialogRef.close();
        }
        if (!value && !this.data.isHandleCloseOnDismiss) {
            this.dialogRef.close();
        }
    }
}
/** @nocollapse */ EuiDialogComponent.ɵfac = function EuiDialogComponent_Factory(t) { return new (t || EuiDialogComponent)(i0.ɵɵdirectiveInject(i1.MatDialogRef), i0.ɵɵdirectiveInject(MAT_DIALOG_DATA), i0.ɵɵdirectiveInject(i2.EuiDynamicComponentService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
/** @nocollapse */ EuiDialogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: EuiDialogComponent, selectors: [["eui-dialog"]], viewQuery: function EuiDialogComponent_Query(rf, ctx) { if (rf & 1) {
        i0.ɵɵviewQuery(_c0, true);
        i0.ɵɵviewQuery(_c1, true);
        i0.ɵɵviewQuery(_c2, true);
    } if (rf & 2) {
        var _t;
        i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.euiDialogHeader = _t.first);
        i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.euiDialogBody = _t.first);
        i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.euiDialogFooter = _t.first);
    } }, hostVars: 2, hostBindings: function EuiDialogComponent_HostBindings(rf, ctx) { if (rf & 2) {
        i0.ɵɵclassMap(ctx.cssClasses);
    } }, features: [i0.ɵɵInheritDefinitionFeature], decls: 9, vars: 15, consts: [["cdkDrag", "", "cdkDragRootElement", ".cdk-overlay-pane", 1, "eui-dialog__container", 3, "cdkDragDisabled"], [1, "eui-dialog__wrapper"], ["cdkDragHandle", "", 1, "eui-dialog__header"], ["euiDialogHeader", ""], [4, "ngIf"], ["matDialogContent", "", 1, "eui-dialog__body"], ["euiDialogBody", ""], ["class", "eui-dialog__footer", "matDialogActions", "", 4, "ngIf"], ["matDialogTitle", "", 1, "eui-dialog__header-title"], ["euiButton", "", "euiBasicButton", "", "euiRounded", "", "euiIconButton", "", "euiSizeS", "", "class", "eui-dialog__header-close", 3, "click", 4, "ngIf"], ["euiButton", "", "euiBasicButton", "", "euiRounded", "", "euiIconButton", "", "euiSizeS", "", 1, "eui-dialog__header-close", 3, "click"], ["euiIcon", "", "iconClass", "eui-icon eui-icon-close-m"], [1, "eui-dialog__body-content-wrapper"], ["class", "eui-dialog__body-content-icon-container", 4, "ngIf"], [3, "innerHTML"], [1, "eui-dialog__body-content-icon-container"], ["euiIcon", "", "iconClass", "eui-icon eui-icon-ecl-error eui-dialog__body-content-icon", 4, "ngIf"], ["euiIcon", "", "iconClass", "eui-icon eui-icon-check eui-dialog__body-content-icon", 4, "ngIf"], ["euiIcon", "", "iconClass", "eui-icon eui-icon-info eui-dialog__body-content-icon", 4, "ngIf"], ["euiIcon", "", "iconClass", "eui-icon eui-icon-question eui-dialog__body-content-icon", 4, "ngIf"], ["euiIcon", "", "iconClass", "eui-icon eui-icon-exclamation-triangle eui-dialog__body-content-icon", 4, "ngIf"], ["euiIcon", "", "iconClass", "eui-icon eui-icon-ecl-error eui-dialog__body-content-icon"], ["euiIcon", "", "iconClass", "eui-icon eui-icon-check eui-dialog__body-content-icon"], ["euiIcon", "", "iconClass", "eui-icon eui-icon-info eui-dialog__body-content-icon"], ["euiIcon", "", "iconClass", "eui-icon eui-icon-question eui-dialog__body-content-icon"], ["euiIcon", "", "iconClass", "eui-icon eui-icon-exclamation-triangle eui-dialog__body-content-icon"], ["matDialogActions", "", 1, "eui-dialog__footer"], ["euiDialogFooter", ""], [1, "eui-dialog__footer-actions-container"], ["class", "eui-dialog__footer-actions--dismiss", "euiButton", "", "euiSecondary", "", 3, "click", 4, "ngIf"], ["class", "eui-dialog__footer-actions--accept", "euiButton", "", "euiPrimary", "", 3, "click", 4, "ngIf"], ["euiButton", "", "euiSecondary", "", 1, "eui-dialog__footer-actions--dismiss", 3, "click"], ["euiIcon", "", 3, "iconClass", 4, "ngIf"], ["euiLabel", ""], ["euiIcon", "", 3, "iconClass"], ["euiButton", "", "euiPrimary", "", 1, "eui-dialog__footer-actions--accept", 3, "click"]], template: function EuiDialogComponent_Template(rf, ctx) { if (rf & 1) {
        i0.ɵɵelementStart(0, "div", 0);
        i0.ɵɵelementStart(1, "div", 1);
        i0.ɵɵelementStart(2, "div", 2, 3);
        i0.ɵɵtemplate(4, EuiDialogComponent_ng_container_4_Template, 5, 4, "ng-container", 4);
        i0.ɵɵelementEnd();
        i0.ɵɵelementStart(5, "div", 5, 6);
        i0.ɵɵtemplate(7, EuiDialogComponent_ng_container_7_Template, 5, 4, "ng-container", 4);
        i0.ɵɵelementEnd();
        i0.ɵɵtemplate(8, EuiDialogComponent_div_8_Template, 3, 1, "div", 7);
        i0.ɵɵelementEnd();
        i0.ɵɵelementEnd();
    } if (rf & 2) {
        i0.ɵɵclassProp("eui-dialog__container--draggable", ctx.data.draggable)("eui-dialog__container--no-padding", ctx.data.hasNoBodyPadding);
        i0.ɵɵproperty("cdkDragDisabled", !ctx.data.draggable);
        i0.ɵɵattribute("data-e2e", ctx.data.e2eAttr);
        i0.ɵɵadvance(2);
        i0.ɵɵclassProp("eui-dialog__header--handle-disabled", !ctx.data.draggable);
        i0.ɵɵadvance(2);
        i0.ɵɵproperty("ngIf", !ctx.headerComponent);
        i0.ɵɵadvance(1);
        i0.ɵɵstyleProp("min-height", ctx.data.height)("max-height", ctx.data.height);
        i0.ɵɵadvance(2);
        i0.ɵɵproperty("ngIf", !ctx.bodyComponent);
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngIf", ctx.data.hasFooter);
    } }, directives: [i4.CdkDrag, i4.CdkDragHandle, i5.NgIf, i1.MatDialogContent, i1.MatDialogTitle, i6.EuiButtonComponent, i7.EuiIconComponent, i1.MatDialogActions], pipes: [i8.TranslatePipe], styles: [".mat-dialog-container{border-radius:var(--eui-border-radius-base);overflow:visible;padding:var(--eui-spacing-none)}.mat-dialog-container .mat-dialog-actions{justify-content:flex-end;margin-bottom:var(--eui-spacing-none);min-height:auto;padding:var(--eui-spacing-none)}.mat-dialog-container .mat-dialog-title{margin:var(--eui-spacing-none)}.mat-dialog-container .mat-dialog-content{margin:var(--eui-spacing-none);padding:var(--eui-spacing-none)}.cdk-overlay-pane.eui-dialog{display:block;max-width:100vw!important}.eui-dialog__container{border-radius:var(--eui-border-radius-base)}.eui-dialog__container .eui-dialog__header{align-items:center;border-bottom:1px solid var(--eui-color-grey-lightest);border-top-left-radius:var(--eui-border-radius-base);border-top-right-radius:var(--eui-border-radius-base);display:flex;justify-content:space-between;padding:var(--eui-spacing-s) var(--eui-spacing)}.eui-dialog__container .eui-dialog__header ng-component{display:flex;width:100%}.eui-dialog__container .eui-dialog__header .eui-dialog__header-title{font-size:var(--eui-font-size-xl);font-style:normal;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.eui-dialog__container .eui-dialog__header .eui-dialog__header-close{color:var(--eui-color-grey);font-size:var(--eui-font-size-2xl)}.eui-dialog__container .eui-dialog__header .eui-dialog__header-close:active,.eui-dialog__container .eui-dialog__header .eui-dialog__header-close:focus{background-color:initial;border:2px solid var(--eui-color-accessible-focus);outline:none;transition:border .15s ease-in-out}.eui-dialog__container .eui-dialog__header .eui-dialog__header-close:hover{background-color:var(--eui-color-grey-lightest);color:var(--eui-color-danger)}.eui-dialog__container .eui-dialog__header.eui-dialog__header--handle-disabled{cursor:default!important}.eui-dialog__container--draggable .eui-dialog__header{cursor:move}.eui-dialog__container .eui-dialog__body{padding:var(--eui-spacing);position:relative}.eui-dialog__container .eui-dialog__body::-webkit-scrollbar{background-color:var(--eui-color-grey-lightest);display:inherit;height:10px;width:10px}.eui-dialog__container .eui-dialog__body::-webkit-scrollbar-thumb{background-color:var(--eui-color-grey-light);border-radius:5rem}.eui-dialog__container .eui-dialog__body::-webkit-scrollbar-thumb:hover{background-color:var(--eui-color-grey)}.eui-dialog__container .eui-dialog__body::-webkit-scrollbar-track{background-color:var(--eui-color-grey-lightest);border-radius:0}.eui-dialog__container .eui-dialog__body .eui-dialog__body-content-wrapper{align-items:center;display:flex;width:100%}.eui-dialog__container .eui-dialog__body .eui-dialog__body-content-wrapper .eui-dialog__body-content-icon-container{align-self:flex-start}.eui-dialog__container .eui-dialog__body .eui-dialog__body-content-wrapper .eui-dialog__body-content-icon-container .eui-dialog__body-content-icon{background:var(--eui-color-grey-lightest);border-radius:10rem;font-size:var(--eui-font-size-5xl);margin-right:var(--eui-spacing);padding:var(--eui-spacing-s)}.eui-dialog__container.eui-dialog__container--no-padding .eui-dialog__body{padding:0}.eui-dialog__container .eui-dialog__footer{background-color:var(--eui-color-grey-lightester);border-bottom-left-radius:var(--eui-border-radius-base);border-bottom-right-radius:var(--eui-border-radius-base);border-top:1px solid var(--eui-color-grey-lightest)}.eui-dialog__container .eui-dialog__footer .eui-dialog__footer-actions-container:not(:empty),.eui-dialog__container .eui-dialog__footer ng-component:not(:empty){padding:var(--eui-spacing-s) var(--eui-spacing);text-align:right;width:100%}.eui-dialog__container .eui-dialog__footer .eui-dialog__footer-actions-container:not(:empty) .eui-dialog__footer-actions--accept,.eui-dialog__container .eui-dialog__footer .eui-dialog__footer-actions-container:not(:empty) .eui-dialog__footer-actions--dismiss,.eui-dialog__container .eui-dialog__footer ng-component:not(:empty) .eui-dialog__footer-actions--accept,.eui-dialog__container .eui-dialog__footer ng-component:not(:empty) .eui-dialog__footer-actions--dismiss{margin-left:var(--eui-spacing-s)}@media screen and (max-width:767px){.cdk-overlay-pane.eui-dialog{display:block;height:100vh;max-width:100vw!important;min-height:100vh!important;width:100vw!important}.cdk-overlay-pane.eui-dialog .eui-dialog__wrapper{display:flex;flex-direction:column;height:100vh;position:relative;width:100vw}.cdk-overlay-pane.eui-dialog .eui-dialog__wrapper .eui-dialog__body{height:100vh;max-height:100vh!important}.cdk-overlay-pane.eui-dialog .eui-dialog__wrapper .eui-dialog__footer{align-items:center;display:flex;flex-wrap:wrap;width:100vw}}@media screen and (min-width:768px) and (max-width:991px){.cdk-overlay-pane.eui-dialog{display:block;max-width:100vw!important;width:100vw!important}}.eui-dialog--info mat-dialog-container{border:1px solid var(--eui-color-info)}.eui-dialog--info .eui-dialog__body-content-wrapper .eui-icon,.eui-dialog--info .eui-dialog__header h1{color:var(--eui-color-info)}.eui-dialog--success mat-dialog-container{border:1px solid var(--eui-color-success)}.eui-dialog--success .eui-dialog__body-content-wrapper .eui-icon,.eui-dialog--success .eui-dialog__header h1{color:var(--eui-color-success)}.eui-dialog--warning mat-dialog-container{border:1px solid var(--eui-color-warning)}.eui-dialog--warning .eui-dialog__body-content-wrapper .eui-icon,.eui-dialog--warning .eui-dialog__header h1{color:var(--eui-color-warning)}.eui-dialog--danger mat-dialog-container{border:1px solid var(--eui-color-danger)}.eui-dialog--danger .eui-dialog__body-content-wrapper .eui-icon,.eui-dialog--danger .eui-dialog__header h1{color:var(--eui-color-danger)}.eui-dialog--question mat-dialog-container{border:1px solid var(--eui-color-info)}.eui-dialog--question .eui-dialog__body-content-wrapper .eui-icon,.eui-dialog--question .eui-dialog__header h1{color:var(--eui-color-info)}"], encapsulation: 2, changeDetection: 0 });
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(EuiDialogComponent, [{
        type: Component,
        args: [{
                templateUrl: './eui-dialog.component.html',
                selector: 'eui-dialog',
                styleUrls: ['./styles/_index.scss'],
                changeDetection: ChangeDetectionStrategy.OnPush,
                encapsulation: ViewEncapsulation.None,
            }]
    }], function () { return [{ type: i1.MatDialogRef }, { type: i3.EuiDialogConfig, decorators: [{
                type: Inject,
                args: [MAT_DIALOG_DATA]
            }] }, { type: i2.EuiDynamicComponentService }, { type: i0.ChangeDetectorRef }]; }, { euiDialogHeader: [{
            type: ViewChild,
            args: ['euiDialogHeader']
        }], euiDialogBody: [{
            type: ViewChild,
            args: ['euiDialogBody']
        }], euiDialogFooter: [{
            type: ViewChild,
            args: ['euiDialogFooter']
        }], cssClasses: [{
            type: HostBinding,
            args: ['class']
        }] }); })();
//# sourceMappingURL=data:application/json;base64, 