import * as i0 from '@angular/core';
import { EventEmitter, Output, Input, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
import * as i1 from '@angular/common';
import { CommonModule } from '@angular/common';
import * as i2 from '@aztrix/components/success-icon';
import { SuccessIconModule } from '@aztrix/components/success-icon';
import * as i3 from '@aztrix/components/button';
import { ButtonModule } from '@aztrix/components/button';
import * as i4 from '@aztrix/translate';
import { TranslatePipe } from '@aztrix/translate';

class ActionFinishedComponent {
    constructor() {
        this.bodyIconClass = 'check';
        this.bodyIconColorClass = 'primary';
        this.buttonLabel = 'label.ok';
        this.showButton = true;
        this.showIcon = true;
        this.didClickButton = new EventEmitter();
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ActionFinishedComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ActionFinishedComponent, selector: "ax-action-finished", inputs: { bodyIconClass: "bodyIconClass", bodyIconColorClass: "bodyIconColorClass", bodyTitle: "bodyTitle", bodyExplanation: "bodyExplanation", buttonLabel: "buttonLabel", showButton: "showButton", showIcon: "showIcon" }, outputs: { didClickButton: "didClickButton" }, ngImport: i0, template: "<ax-success-icon\n  *ngIf=\"showIcon\"\n  [color]=\"bodyIconColorClass\"\n  [name]=\"bodyIconClass\"\n></ax-success-icon>\n<h3 *ngIf=\"bodyTitle\">{{ bodyTitle | translate }}</h3>\n<span>{{ bodyExplanation | translate }}</span>\n<div *ngIf=\"showButton\" class=\"h-button-wrapper h-button-wrapper--center\">\n  <button axButton (click)=\"didClickButton.emit()\" color=\"primary\">\n    {{ buttonLabel | translate }}\n  </button>\n</div>\n", styles: [":host{padding:1rem;text-align:center;background-color:#fff;position:relative;display:block}span{display:block}.h-button-wrapper{padding-top:1rem}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.SuccessIconComponent, selector: "ax-success-icon", inputs: ["name", "color"] }, { kind: "directive", type: i3.ButtonDirective, selector: "[axButton]", inputs: ["color", "labelHideMobile", "smallButton", "bigButton", "fullWidth", "filled", "outline", "icon-button", "hoverLabel", "hover", "lowercase", "disabled"] }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ActionFinishedComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ax-action-finished', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ax-success-icon\n  *ngIf=\"showIcon\"\n  [color]=\"bodyIconColorClass\"\n  [name]=\"bodyIconClass\"\n></ax-success-icon>\n<h3 *ngIf=\"bodyTitle\">{{ bodyTitle | translate }}</h3>\n<span>{{ bodyExplanation | translate }}</span>\n<div *ngIf=\"showButton\" class=\"h-button-wrapper h-button-wrapper--center\">\n  <button axButton (click)=\"didClickButton.emit()\" color=\"primary\">\n    {{ buttonLabel | translate }}\n  </button>\n</div>\n", styles: [":host{padding:1rem;text-align:center;background-color:#fff;position:relative;display:block}span{display:block}.h-button-wrapper{padding-top:1rem}\n"] }]
        }], propDecorators: { bodyIconClass: [{
                type: Input
            }], bodyIconColorClass: [{
                type: Input
            }], bodyTitle: [{
                type: Input
            }], bodyExplanation: [{
                type: Input
            }], buttonLabel: [{
                type: Input
            }], showButton: [{
                type: Input
            }], showIcon: [{
                type: Input
            }], didClickButton: [{
                type: Output
            }] } });

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

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

export { ActionFinishedComponent, ActionFinishedModule };
//# sourceMappingURL=aztrix-components-action-finished.mjs.map
