import { CommonModule } from '@angular/common';
import { Component, EventEmitter, Input, Output } from '@angular/core';
import { ButtonModule } from '@aztrix/components/button';
import { TranslatePipe } from '@aztrix/translate';
import * as i0 from "@angular/core";
import * as i1 from "@aztrix/components/button";
export 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
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlybS1tb2RhbC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvY29uZmlybS1tb2RhbC9jb25maXJtLW1vZGFsLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9jb25maXJtLW1vZGFsL2NvbmZpcm0tbW9kYWwuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFlBQVksRUFBQyxNQUFNLGlCQUFpQixDQUFDO0FBQzdDLE9BQU8sRUFBQyxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDckUsT0FBTyxFQUFDLFlBQVksRUFBQyxNQUFNLDJCQUEyQixDQUFDO0FBQ3ZELE9BQU8sRUFBQyxhQUFhLEVBQUMsTUFBTSxtQkFBbUIsQ0FBQzs7O0FBU2hELE1BQU0sT0FBTyxxQkFBcUI7SUFQbEM7UUFXWSxXQUFNLEdBQUcsSUFBSSxZQUFZLEVBQVEsQ0FBQztRQUNsQyxjQUFTLEdBQUcsSUFBSSxZQUFZLEVBQVEsQ0FBQztLQUNoRDsrR0FOWSxx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