import * as i0 from '@angular/core';
import { Input, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
import * as i1 from '@aztrix/components/overlay';
import * as i2 from '@aztrix/components/action-finished';
import { ActionFinishedModule } from '@aztrix/components/action-finished';
import { CommonModule } from '@angular/common';

class SimpleMessageModalComponent {
    constructor(_overlay) {
        this._overlay = _overlay;
        this.buttonLabel = 'label.ok';
    }
    clicked() {
        this._overlay.closeModal();
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SimpleMessageModalComponent, deps: [{ token: i1.OverlayService }], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: SimpleMessageModalComponent, selector: "ax-simple-message-modal", inputs: { text: "text", buttonLabel: "buttonLabel", icon: "icon" }, ngImport: i0, template: "<ax-action-finished\n  class=\"action-finished\"\n  [bodyExplanation]=\"text\"\n  [showIcon]=\"!!icon\"\n  [bodyIconClass]=\"icon\"\n  [buttonLabel]=\"buttonLabel\"\n  [showButton]=\"!!buttonLabel\"\n  (didClickButton)=\"clicked()\"\n></ax-action-finished>\n", styles: [".action-finished{padding:0;padding-top:1rem}\n"], dependencies: [{ kind: "component", type: i2.ActionFinishedComponent, selector: "ax-action-finished", inputs: ["bodyIconClass", "bodyIconColorClass", "bodyTitle", "bodyExplanation", "buttonLabel", "showButton", "showIcon"], outputs: ["didClickButton"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SimpleMessageModalComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ax-simple-message-modal', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ax-action-finished\n  class=\"action-finished\"\n  [bodyExplanation]=\"text\"\n  [showIcon]=\"!!icon\"\n  [bodyIconClass]=\"icon\"\n  [buttonLabel]=\"buttonLabel\"\n  [showButton]=\"!!buttonLabel\"\n  (didClickButton)=\"clicked()\"\n></ax-action-finished>\n", styles: [".action-finished{padding:0;padding-top:1rem}\n"] }]
        }], ctorParameters: () => [{ type: i1.OverlayService }], propDecorators: { text: [{
                type: Input
            }], buttonLabel: [{
                type: Input
            }], icon: [{
                type: Input
            }] } });

class SimpleMessageModalModule {
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SimpleMessageModalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
    static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: SimpleMessageModalModule, declarations: [SimpleMessageModalComponent], imports: [CommonModule, ActionFinishedModule], exports: [SimpleMessageModalComponent] }); }
    static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SimpleMessageModalModule, imports: [CommonModule, ActionFinishedModule] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SimpleMessageModalModule, decorators: [{
            type: NgModule,
            args: [{
                    declarations: [SimpleMessageModalComponent],
                    imports: [CommonModule, ActionFinishedModule],
                    exports: [SimpleMessageModalComponent],
                }]
        }] });

/**
 * Generated bundle index. Do not edit.
 */

export { SimpleMessageModalComponent, SimpleMessageModalModule };
//# sourceMappingURL=aztrix-components-simple-message-modal.mjs.map
