import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "@aztrix/components/success-icon";
import * as i3 from "@aztrix/components/button";
import * as i4 from "@aztrix/helpers";
export class ActionFinishedComponent {
    constructor() {
        this.bodyIconClass = 'check';
        this.bodyIconColorClass = 'green';
        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
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aW9uLWZpbmlzaGVkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9hY3Rpb24tZmluaXNoZWQvYWN0aW9uLWZpbmlzaGVkLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9hY3Rpb24tZmluaXNoZWQvYWN0aW9uLWZp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