import * as i0 from '@angular/core';
import { Component, Inject, NgModule } from '@angular/core';
import * as i1 from '@angular/material/dialog';
import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
import { CommonModule } from '@angular/common';

/**
 * @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
 */
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.2", 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.2", 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\"\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.2", 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\"\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]
                }] }]; } });

/**
 * @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
 */
class AswConfirmDialogModule {
}
AswConfirmDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AswConfirmDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
AswConfirmDialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AswConfirmDialogModule, declarations: [AswConfirmDialog], imports: [CommonModule,
        MatDialogModule], exports: [AswConfirmDialog] });
AswConfirmDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AswConfirmDialogModule, imports: [[
            CommonModule,
            MatDialogModule,
        ]] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AswConfirmDialogModule, decorators: [{
            type: NgModule,
            args: [{
                    imports: [
                        CommonModule,
                        MatDialogModule,
                    ],
                    declarations: [
                        AswConfirmDialog
                    ],
                    exports: [
                        AswConfirmDialog
                    ]
                }]
        }] });

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

/**
 * Generated bundle index. Do not edit.
 */

export { AswConfirmDialog, AswConfirmDialogModule };
//# sourceMappingURL=asoftwareworld-form-builder-form-control-confirm-dialog.mjs.map
