/**
 * @license
 * Copyright ASW (A Software World) All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file
 */
import { Component, Inject } from '@angular/core';
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
import * as i0 from "@angular/core";
import * as i1 from "@angular/material/dialog";
export class AswConfirmDialog {
    constructor(dialogRef, data) {
        this.dialogRef = dialogRef;
        this.data = data;
    }
    onNoClick() {
        this.dialogRef.close();
    }
}
AswConfirmDialog.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: AswConfirmDialog, deps: [{ token: i1.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
AswConfirmDialog.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: AswConfirmDialog, selector: "asw-confirm-dialog", ngImport: i0, template: "<h1 mat-dialog-title id=\"confirmDialogTitle\">Warning!</h1>\r\n<mat-dialog-content class=\"mat-typography\">\r\n    <p id=\"confirmDialogContent\">{{data.message}} </p>\r\n</mat-dialog-content>\r\n<mat-dialog-actions align=\"end\">\r\n    <button mat-raised-button\r\n            id=\"no\"\r\n            type=\"button\"\r\n            class=\"btn btn-primary mr-2 mb-1 me-2\"\r\n            (click)=\"onNoClick()\">\r\n        No\r\n    </button>\r\n    <button mat-raised-button type=\"button\"\r\n            id=\"yes\"\r\n            class=\"btn btn-danger mb-1\"\r\n            [mat-dialog-close]=\"data.name\"\r\n            cdkFocusInitial>\r\n        Yes\r\n    </button>\r\n</mat-dialog-actions>", directives: [{ type: i1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: AswConfirmDialog, decorators: [{
            type: Component,
            args: [{ selector: 'asw-confirm-dialog', template: "<h1 mat-dialog-title id=\"confirmDialogTitle\">Warning!</h1>\r\n<mat-dialog-content class=\"mat-typography\">\r\n    <p id=\"confirmDialogContent\">{{data.message}} </p>\r\n</mat-dialog-content>\r\n<mat-dialog-actions align=\"end\">\r\n    <button mat-raised-button\r\n            id=\"no\"\r\n            type=\"button\"\r\n            class=\"btn btn-primary mr-2 mb-1 me-2\"\r\n            (click)=\"onNoClick()\">\r\n        No\r\n    </button>\r\n    <button mat-raised-button type=\"button\"\r\n            id=\"yes\"\r\n            class=\"btn btn-danger mb-1\"\r\n            [mat-dialog-close]=\"data.name\"\r\n            cdkFocusInitial>\r\n        Yes\r\n    </button>\r\n</mat-dialog-actions>" }]
        }], ctorParameters: function () { return [{ type: i1.MatDialogRef }, { type: undefined, decorators: [{
                    type: Inject,
                    args: [MAT_DIALOG_DATA]
                }] }]; } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlybS1kaWFsb2cuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvY29tcG9uZW50cy9mb3JtLWNvbnRyb2wvY29uZmlybS1kaWFsb2cvY29uZmlybS1kaWFsb2cudHMiLCIuLi8uLi8uLi8uLi9zcmMvY29tcG9uZW50cy9mb3JtLWNvbnRyb2wvY29uZmlybS1kaWFsb2cvY29uZmlybS1kaWFsb2cuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFFSCxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNsRCxPQUFPLEVBQWdC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