import { Component, Input } from "@angular/core";
import * as i0 from "@angular/core";
import * as i1 from "../../dialog/dialog-ref";
import * as i2 from "../../dialog/dialog-config";
export class DeactivateComponent {
    // constructor(private dialog: DialogRef, public dialogConfig: DialogConfig
    // ) {
    //   this.itemName = dialogConfig.data.itemName;
    // }
    constructor(dialog, dialogConfig) {
        this.dialog = dialog;
        this.dialogConfig = dialogConfig;
        this.animate = false;
        this.itemName = 'dashboard';
    }
    ngOnInit() { }
    deactivate(deleteFlag) {
        this.animate = true;
        setTimeout(() => {
            this.animate = false;
        }, 1000);
        this.dialog.close(deleteFlag);
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DeactivateComponent, deps: [{ token: i1.DialogRef }, { token: i2.DialogConfig }], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DeactivateComponent, selector: "app-deactivate", inputs: { itemName: "itemName" }, 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\">&#xe9d0;</i>\n      </div>\n      <p class=\"vx-fs-15 vx-paragraph-txt vx-m-0 vx-text-center\"[innerHTML]=\"dialogConfig?.data?.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-lable-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-txt-blue vx-tt-uppercase vx-p-0 vx-d-flex vx-align-center vx-justify-center\" (click)=\"deactivate(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)=\"deactivate(true)\">Yes</button>\n      </div>\n    </div>\n  </div>\n</div>\n", 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;padding:2.375rem 1rem 2.5rem}.alert-dialog-icon{background:#fff;border:2px solid #DBDBDB;width:4rem;height:4rem;border-radius:50%;margin:0 auto 2.375rem}.alert-dialog-icon i{color:#f0b819;font-size:2rem}.alert-dialog-footer{border-top:1px solid #F1F1F1;background:#fff;border-radius:0 0 .25rem .25rem}.alert-dialog-footer button{border-radius:.125rem;height:2rem;width:5rem}.alert-dialog-footer button.no-btn{background:#fff;border:1px solid #DBDBDB}.alert-dialog-footer button.yes-btn{background:#1e5dd3;border:1px solid #1e5dd3}.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: DeactivateComponent, decorators: [{
            type: Component,
            args: [{ selector: "app-deactivate", 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\">&#xe9d0;</i>\n      </div>\n      <p class=\"vx-fs-15 vx-paragraph-txt vx-m-0 vx-text-center\"[innerHTML]=\"dialogConfig?.data?.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-lable-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-txt-blue vx-tt-uppercase vx-p-0 vx-d-flex vx-align-center vx-justify-center\" (click)=\"deactivate(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)=\"deactivate(true)\">Yes</button>\n      </div>\n    </div>\n  </div>\n</div>\n", 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;padding:2.375rem 1rem 2.5rem}.alert-dialog-icon{background:#fff;border:2px solid #DBDBDB;width:4rem;height:4rem;border-radius:50%;margin:0 auto 2.375rem}.alert-dialog-icon i{color:#f0b819;font-size:2rem}.alert-dialog-footer{border-top:1px solid #F1F1F1;background:#fff;border-radius:0 0 .25rem .25rem}.alert-dialog-footer button{border-radius:.125rem;height:2rem;width:5rem}.alert-dialog-footer button.no-btn{background:#fff;border:1px solid #DBDBDB}.alert-dialog-footer button.yes-btn{background:#1e5dd3;border:1px solid #1e5dd3}.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 }, { type: i2.DialogConfig }]; }, propDecorators: { itemName: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVhY3RpdmF0ZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uL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