/**
 * @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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