import { __decorate, __param } from "tslib";
import { Component, Inject } from '@angular/core';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
var DeleteConfirmationComponent = /** @class */ (function () {
    function DeleteConfirmationComponent(dialogRef, data) {
        this.dialogRef = dialogRef;
        this.data = data;
    }
    DeleteConfirmationComponent.prototype.closeDailog = function (confirmed) {
        this.dialogRef.close(confirmed);
    };
    DeleteConfirmationComponent.prototype.ngOnInit = function () {
    };
    DeleteConfirmationComponent.ctorParameters = function () { return [
        { type: MatDialogRef },
        { type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
    ]; };
    DeleteConfirmationComponent = __decorate([
        Component({
            selector: 'delete-confirmation',
            template: "<div class=\"delete-confirmation-dailog\">\r\n    <mat-dialog-content *ngIf=\"! data?.confirmExit\">\r\n        <span class=\"delete-clear-conf\">\r\n            <mat-icon>clear</mat-icon>\r\n        </span>\r\n        <span class=\"title-delete-conf\">{{'DELETE_CONFIRMATION.ARE_YOU_SURE' | translate }}</span>\r\n        <p>{{'DELETE_CONFIRMATION.DELETE_RECORD_OPTION' | translate }} <br> {{'DELETE_CONFIRMATION.UNDONE_MESSAGE' | translate }} </p>\r\n        <div class=\"action-confirmation\">\r\n            <button mat-flat-button color=\"warn\" (click)=\"closeDailog(true)\">{{'DELETE_CONFIRMATION.DELETE' | translate }}</button>\r\n            <button mat-flat-button color=\"grey\" (click)=\"closeDailog(false)\">{{'DELETE_CONFIRMATION.CANCEL' | translate }}</button>\r\n        </div>\r\n    </mat-dialog-content>\r\n    <mat-dialog-content *ngIf=\"data?.confirmExit == true\">\r\n        <span class=\"delete-clear-conf\">\r\n            <mat-icon>clear</mat-icon>\r\n        </span>\r\n        <span class=\"title-delete-conf\">{{'DELETE_CONFIRMATION.ARE_YOU_SURE' | translate }}</span>\r\n        <p *ngIf=\"!data?.tabswitch\">{{'DELETE_CONFIRMATION.CHANGES_NOT_SAVED' | translate }}<br> {{'DELETE_CONFIRMATION.EXIT_OPTION' | translate }}</p>\r\n        <p *ngIf=\"data?.tabswitch\">{{'DELETE_CONFIRMATION.CHANGES_NOT_SAVED' | translate }}<br> {{'DELETE_CONFIRMATION.RESET_OPTION' | translate }}</p>\r\n        <div class=\"action-confirmation\">\r\n            <button mat-flat-button color=\"warn\" (click)=\"closeDailog(false)\">{{'DELETE_CONFIRMATION.NO' | translate }}</button>\r\n            <button mat-flat-button color=\"grey\" (click)=\"closeDailog(true)\">{{'DELETE_CONFIRMATION.YES' | translate }}</button>\r\n        </div>\r\n    </mat-dialog-content>\r\n</div>\r\n",
            styles: [""]
        }),
        __param(1, Inject(MAT_DIALOG_DATA))
    ], DeleteConfirmationComponent);
    return DeleteConfirmationComponent;
}());
export { DeleteConfirmationComponent };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVsZXRlLWNvbmZpcm1hdGlvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9ldy1tYS1kZXNpZ24vIiwic291cmNlcyI6WyJsaWIvY29tcG9uZW50cy9kZWxldGUtY29uZmlybWF0aW9uL2RlbGV0ZS1jb25maXJtYXRpb24uY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUMxRCxPQUFPLEVBQUUsWUFBWSxFQUFFLGVBQWUsRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBT3pFO0lBRUUscUNBQ1MsU0FBb0QsRUFDM0IsSUFBUztRQURsQyxjQUFTLEdBQVQsU0FBUyxDQUEyQztRQUMzQixTQUFJLEdBQUosSUFBSSxDQUFLO0lBQ3ZDLENBQUM7SUFFTCxpREFBVyxHQUFYLFVBQVksU0FBa0I7UUFDNUIsSUFBSSxDQUFDLFNBQVMsQ0FBQyxLQUFLLENBQUMsU0FBUyxDQUFDLENBQUM7SUFDbEMsQ0F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