import { __decorate, __param } from "tslib";
import { Component, Inject } from '@angular/core';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
let DeleteConfirmationComponent = class DeleteConfirmationComponent {
    constructor(dialogRef, data) {
        this.dialogRef = dialogRef;
        this.data = data;
    }
    closeDailog(confirmed) {
        this.dialogRef.close(confirmed);
    }
    ngOnInit() {
    }
};
DeleteConfirmationComponent.ctorParameters = () => [
    { 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);
export { DeleteConfirmationComponent };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVsZXRlLWNvbmZpcm1hdGlvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9ldy1tYS1kZXNpZ24vIiwic291cmNlcyI6WyJsaWIvY29tcG9uZW50cy9kZWxldGUtY29uZmlybWF0aW9uL2RlbGV0ZS1jb25maXJtYXRpb24uY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUMxRCxPQUFPLEVBQUUsWUFBWSxFQUFFLGVBQWUsRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBT3pFLElBQWEsMkJBQTJCLEdBQXhDLE1BQWEsMkJBQTJCO0lBRXRDLFlBQ1MsU0FBb0QsRUFDM0IsSUFBUztRQURsQyxjQUFTLEdBQVQsU0FBUyxDQUEyQztRQUMzQixTQUFJLEdBQUosSUFBSSxDQUFLO0lBQ3ZDLENBQUM7SUFFTCxXQUFXLENBQUMsU0FBa0I7UUFDNUIsSUFBSSxDQUFDLFNBQVMsQ0FBQyxLQUFLLENBQUMsU0FBUyxDQUFDLENBQUM7SUFDbEMsQ0FBQztJQUVELFFBQVE7SUFDUixDQUFDO0NBRUYsQ0F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