import { Component, EventEmitter, Input, Output } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "../ui-kit/dialog/dialog-ref";
export class SelectAllAlertComponent {
    constructor(dialogRef) {
        this.dialogRef = dialogRef;
        this.message = '';
        this.config = { isVisible: false, isRedAlert: false };
        this.action = new EventEmitter();
    }
    ngOnInit() {
    }
    actionTaken(evt) {
        // Emit the action event (for backward compatibility)
        this.action.emit({ action: evt, payload: this.config });
        // Close the dialog with true for YES, false for NO
        this.dialogRef.close(evt);
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SelectAllAlertComponent, deps: [{ token: i1.DialogRef }], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SelectAllAlertComponent, selector: "app-select-all-alert", inputs: { message: "message", config: "config" }, outputs: { action: "action" }, ngImport: i0, template: "<div class=\"alert-dialog\">\n    <div class=\"alert-dialog-container\">\n      <div class=\"alert-dialog-body\">\n        <div class=\"alert-dialog-icon vx-d-flex vx-align-center vx-justify-center\">\n          <i class=\"icons\">&#xe932;</i>\n          \n        </div>\n        <p class=\"content-text vx-fs-15 vx-m-0 vx-text-center\" [innerHTML]=\"message\"></p>\n      </div>\n      <div class=\"alert-dialog-footer vx-d-flex vx-align-center vx-justify-between vx-p-3\">\n        <p class=\"vx-fs-12 vx-paragraph-txt vx-m-0\">Are you sure you would like to proceed?</p>\n        <div class=\"vx-d-flex vx-align-center\">\n          <button class=\"no-btn vx-fs-11 vx-fw-500 vx-lable-txt vx-tt-uppercase vx-p-0 vx-d-flex vx-align-center vx-justify-center\" (click)=\"actionTaken(false)\">No</button>\n          <button class=\"yes-btn vx-fs-11 vx-fw-500 vx-txt-white vx-tt-uppercase vx-p-0 vx-d-flex vx-align-center vx-justify-center\" (click)=\"actionTaken(true)\">Yes</button>\n        </div>\n      </div>\n    </div>\n  </div>", styles: ["@import\"https://cdn.v-comply.com/design-system/css/icons/icons.css\";@import\"https://cdn.v-comply.com/design-system/css/mixin/mixin.css\";@import\"https://cdn.v-comply.com/design-system/css/text/text.css\";@import\"https://cdn.v-comply.com/design-system/css/color/color.css\";@import\"https://cdn.v-comply.com/design-system/css/display/display.css\";@import\"https://cdn.v-comply.com/design-system/css/alignment/alignment.css\";@import\"https://cdn.v-comply.com/design-system/css/width/width.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-top.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-bottom.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-left.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-right.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-top.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-bottom.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-left.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-right.css\";.alert-dialog{position:fixed;inset:0;display:flex;justify-content:center;align-items:center}.alert-dialog-container{width:34.5rem;border-radius:.25rem;animation:scale-up-center .2s cubic-bezier(.39,.575,.565,1) 50ms both}.alert-dialog-body{background:#fbfbfb;border-radius:.25rem .25rem 0 0;box-shadow:0 3px 20px #161b2f40;padding:2.5rem 1rem 1.5rem}.alert-dialog-body .content-text{color:#161b2f}.alert-dialog-icon{background:#fff;border:2px solid #DBDBDB;width:4rem;height:4rem;border-radius:50%;margin:0 auto 2rem}.alert-dialog-icon i{color:#1e5dd3;font-size:1.5rem}.alert-dialog-footer{background:#fff;border-top:1px solid #F1F1F1;border-radius:0 0 .25rem .25rem}.alert-dialog-footer button{border-radius:.125rem;border:none;height:2rem;width:5rem}.alert-dialog-footer button.no-btn{background:#fff}.alert-dialog-footer button.no-btn:hover{background:#f1f1f1}.alert-dialog-footer button.yes-btn{background:#1e5dd3;border:1px solid #1e5dd3}.alert-dialog-footer button.yes-btn:hover{background:#1146a8;border-color:#1146a8}.alert-dialog-footer button+button{margin-left:.25rem}@keyframes lift-up{0%{top:0}50%{top:-35px}to{top:0}}@keyframes scale-up-center{0%{transform:scale(.5);opacity:0}to{transform:scale(1);opacity:1}}\n"] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SelectAllAlertComponent, decorators: [{
            type: Component,
            args: [{ selector: 'app-select-all-alert', template: "<div class=\"alert-dialog\">\n    <div class=\"alert-dialog-container\">\n      <div class=\"alert-dialog-body\">\n        <div class=\"alert-dialog-icon vx-d-flex vx-align-center vx-justify-center\">\n          <i class=\"icons\">&#xe932;</i>\n          \n        </div>\n        <p class=\"content-text vx-fs-15 vx-m-0 vx-text-center\" [innerHTML]=\"message\"></p>\n      </div>\n      <div class=\"alert-dialog-footer vx-d-flex vx-align-center vx-justify-between vx-p-3\">\n        <p class=\"vx-fs-12 vx-paragraph-txt vx-m-0\">Are you sure you would like to proceed?</p>\n        <div class=\"vx-d-flex vx-align-center\">\n          <button class=\"no-btn vx-fs-11 vx-fw-500 vx-lable-txt vx-tt-uppercase vx-p-0 vx-d-flex vx-align-center vx-justify-center\" (click)=\"actionTaken(false)\">No</button>\n          <button class=\"yes-btn vx-fs-11 vx-fw-500 vx-txt-white vx-tt-uppercase vx-p-0 vx-d-flex vx-align-center vx-justify-center\" (click)=\"actionTaken(true)\">Yes</button>\n        </div>\n      </div>\n    </div>\n  </div>", styles: ["@import\"https://cdn.v-comply.com/design-system/css/icons/icons.css\";@import\"https://cdn.v-comply.com/design-system/css/mixin/mixin.css\";@import\"https://cdn.v-comply.com/design-system/css/text/text.css\";@import\"https://cdn.v-comply.com/design-system/css/color/color.css\";@import\"https://cdn.v-comply.com/design-system/css/display/display.css\";@import\"https://cdn.v-comply.com/design-system/css/alignment/alignment.css\";@import\"https://cdn.v-comply.com/design-system/css/width/width.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-top.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-bottom.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-left.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-right.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-top.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-bottom.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-left.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-right.css\";.alert-dialog{position:fixed;inset:0;display:flex;justify-content:center;align-items:center}.alert-dialog-container{width:34.5rem;border-radius:.25rem;animation:scale-up-center .2s cubic-bezier(.39,.575,.565,1) 50ms both}.alert-dialog-body{background:#fbfbfb;border-radius:.25rem .25rem 0 0;box-shadow:0 3px 20px #161b2f40;padding:2.5rem 1rem 1.5rem}.alert-dialog-body .content-text{color:#161b2f}.alert-dialog-icon{background:#fff;border:2px solid #DBDBDB;width:4rem;height:4rem;border-radius:50%;margin:0 auto 2rem}.alert-dialog-icon i{color:#1e5dd3;font-size:1.5rem}.alert-dialog-footer{background:#fff;border-top:1px solid #F1F1F1;border-radius:0 0 .25rem .25rem}.alert-dialog-footer button{border-radius:.125rem;border:none;height:2rem;width:5rem}.alert-dialog-footer button.no-btn{background:#fff}.alert-dialog-footer button.no-btn:hover{background:#f1f1f1}.alert-dialog-footer button.yes-btn{background:#1e5dd3;border:1px solid #1e5dd3}.alert-dialog-footer button.yes-btn:hover{background:#1146a8;border-color:#1146a8}.alert-dialog-footer button+button{margin-left:.25rem}@keyframes lift-up{0%{top:0}50%{top:-35px}to{top:0}}@keyframes scale-up-center{0%{transform:scale(.5);opacity:0}to{transform:scale(1);opacity:1}}\n"] }]
        }], ctorParameters: function () { return [{ type: i1.DialogRef }]; }, propDecorators: { message: [{
                type: Input
            }], config: [{
                type: Input
            }], action: [{
                type: Output
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0QWxsLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3Z4LXdvcmtmbG93LWVuZ2luZS9zcmMvbGliL3NlbGVjdEFsbC9zZWxlY3RBbGwuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdngtd29ya2Zsb3ctZW5naW5lL3NyYy9saWIvc2VsZWN0QWxsL3NlbGVjdEFsbC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFlBQVksRUFBRSxLQUFLLEVBQVUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDOzs7QUFTL0UsTUFBTSxPQUFPLHVCQUF1QjtJQUtsQyxZQUFvQixTQUFvQjtRQUFwQixjQUFTLEdBQVQsU0FBUyxDQUFXO1FBSi9CLFlBQU8sR0FBRyxFQUFFLENBQUM7UUFDYixXQUFNLEdBQXNCLEVBQUMsU0FBUyxFQUFFLEtBQUssRUFBRSxVQUFVLEVBQUUsS0FBSyxFQUFDLENBQUM7UUFDakUsV0FBTSxHQUFHLElBQUksWUFBWSxFQUFPLENBQUM7SUFFQyxDQUFDO0lBRTdDLFFBQVE7SUFDUixDQUFDO0lBRUQsV0FBVyxDQUFDLEdBQVE7UUFDbEIscURBQXFEO1FBQ3JELElBQUksQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLEVBQUMsTUFBTSxFQUFFLEdBQUcsRUFBRSxPQUFPLEVBQUUsSUFBSSxDQUFDLE1BQU0sRUFBQyxDQUFDLENBQUM7UUFFdEQsbURBQW1EO1FBQ25ELElBQUksQ0FBQyxTQUFTLENBQUMsS0FBSyxDQUFDLEdBQUcsQ0FBQyxDQUF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