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 * as i2 from '@angular/cdk/clipboard';
import { ClipboardModule } from '@angular/cdk/clipboard';
import * as i3 from '@angular/common';
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 AswJsonPreviewDialog {
    constructor(dialogRef, data) {
        this.dialogRef = dialogRef;
        this.data = data;
    }
    onNoClick() {
        this.dialogRef.close();
    }
}
AswJsonPreviewDialog.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AswJsonPreviewDialog, deps: [{ token: i1.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
AswJsonPreviewDialog.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: AswJsonPreviewDialog, selector: "asw-json-preview-dialog", ngImport: i0, template: "<mat-dialog-content class=\"mat-typography\">\r\n    <pre id=\"jsonPreviewContent\">{{data | json}}</pre>\r\n</mat-dialog-content>\r\n<mat-dialog-actions align=\"end\">\r\n    <button mat-raised-button\r\n            id=\"closeDialog\"\r\n            type=\"button\"\r\n            class=\"btn btn-primary mr-2 mb-1\"\r\n            (click)=\"onNoClick()\">\r\n        Close\r\n    </button>\r\n    <button mat-raised-button \r\n            id=\"copyData\"\r\n            type=\"button\"\r\n            class=\"btn btn-info mb-1\"\r\n            [cdkCopyToClipboard]=\"data | json\"\r\n            cdkFocusInitial>\r\n            <i class=\"material-icons\">content_copy</i>\r\n        Copy Data\r\n    </button>\r\n</mat-dialog-actions>", directives: [{ type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i2.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }], pipes: { "json": i3.JsonPipe } });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AswJsonPreviewDialog, decorators: [{
            type: Component,
            args: [{ selector: 'asw-json-preview-dialog', template: "<mat-dialog-content class=\"mat-typography\">\r\n    <pre id=\"jsonPreviewContent\">{{data | json}}</pre>\r\n</mat-dialog-content>\r\n<mat-dialog-actions align=\"end\">\r\n    <button mat-raised-button\r\n            id=\"closeDialog\"\r\n            type=\"button\"\r\n            class=\"btn btn-primary mr-2 mb-1\"\r\n            (click)=\"onNoClick()\">\r\n        Close\r\n    </button>\r\n    <button mat-raised-button \r\n            id=\"copyData\"\r\n            type=\"button\"\r\n            class=\"btn btn-info mb-1\"\r\n            [cdkCopyToClipboard]=\"data | json\"\r\n            cdkFocusInitial>\r\n            <i class=\"material-icons\">content_copy</i>\r\n        Copy Data\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 AswJsonPreviewDialogModule {
}
AswJsonPreviewDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AswJsonPreviewDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
AswJsonPreviewDialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AswJsonPreviewDialogModule, declarations: [AswJsonPreviewDialog], imports: [CommonModule,
        MatDialogModule,
        ClipboardModule], exports: [AswJsonPreviewDialog] });
AswJsonPreviewDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AswJsonPreviewDialogModule, imports: [[
            CommonModule,
            MatDialogModule,
            ClipboardModule
        ]] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AswJsonPreviewDialogModule, decorators: [{
            type: NgModule,
            args: [{
                    imports: [
                        CommonModule,
                        MatDialogModule,
                        ClipboardModule
                    ],
                    declarations: [
                        AswJsonPreviewDialog
                    ],
                    exports: [
                        AswJsonPreviewDialog
                    ]
                }]
        }] });

/**
 * @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 { AswJsonPreviewDialog, AswJsonPreviewDialogModule };
//# sourceMappingURL=asoftwareworld-form-builder-form-control-json-preview-dialog.mjs.map
