import { CommonModule } from '@angular/common';
import * as i0 from '@angular/core';
import { EventEmitter, Output, Input, Component } from '@angular/core';
import * as i1 from '@aztrix/components/button';
import { ButtonModule } from '@aztrix/components/button';
import { TranslatePipe } from '@aztrix/translate';

class ConfirmModalComponent {
    constructor() {
        this.cancel = new EventEmitter();
        this.confirmed = new EventEmitter();
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ConfirmModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: ConfirmModalComponent, isStandalone: true, selector: "ax-confirm-modal", inputs: { message: "message", buttonLabel: "buttonLabel" }, outputs: { cancel: "cancel", confirmed: "confirmed" }, ngImport: i0, template: "@if (!!message) {\n  <p>{{ message }}</p>\n}\n\n<div class=\"button-wrapper\">\n  <button axButton outline (click)=\"cancel.emit()\">{{ 'label.cancel' | translate }}</button>\n  <button axButton filled color=\"primary\" (click)=\"confirmed.emit()\">\n    {{ buttonLabel ? buttonLabel : ('label.confirm' | translate) }}\n  </button>\n</div>\n", styles: [":host{display:block;padding:1rem}p{margin-top:0}.button-wrapper{display:flex;justify-content:flex-end;gap:1rem;width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i1.ButtonDirective, selector: "[axButton]", inputs: ["color", "labelHideMobile", "smallButton", "bigButton", "fullWidth", "filled", "outline", "icon-button", "hoverLabel", "hover", "lowercase", "disabled"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ConfirmModalComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ax-confirm-modal', standalone: true, imports: [CommonModule, ButtonModule, TranslatePipe], template: "@if (!!message) {\n  <p>{{ message }}</p>\n}\n\n<div class=\"button-wrapper\">\n  <button axButton outline (click)=\"cancel.emit()\">{{ 'label.cancel' | translate }}</button>\n  <button axButton filled color=\"primary\" (click)=\"confirmed.emit()\">\n    {{ buttonLabel ? buttonLabel : ('label.confirm' | translate) }}\n  </button>\n</div>\n", styles: [":host{display:block;padding:1rem}p{margin-top:0}.button-wrapper{display:flex;justify-content:flex-end;gap:1rem;width:100%}\n"] }]
        }], propDecorators: { message: [{
                type: Input
            }], buttonLabel: [{
                type: Input
            }], cancel: [{
                type: Output
            }], confirmed: [{
                type: Output
            }] } });

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

export { ConfirmModalComponent };
//# sourceMappingURL=aztrix-components-confirm-modal.mjs.map
