/**
 * @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";
import * as i2 from "@angular/cdk/clipboard";
import * as i3 from "@angular/common";
export 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.4", 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.4", 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 me-2\"\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=\"asw-material-icon 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.4", 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 me-2\"\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=\"asw-material-icon 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]
                }] }]; } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoianNvbi1wcmV2aWV3LWRpYWxvZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL2Zvcm0tY29udHJvbC9qc29uLXByZXZpZXctZGlhbG9nL2pzb24tcHJldmlldy1kaWFsb2cudHMiLCIuLi8uLi8uLi8uLi9zcmMvY29tcG9uZW50cy9mb3JtLWNvbnRyb2wvanNvbi1wcmV2aWV3LWRpYWxvZy9qc29uLXByZXZpZXctZGlhbG9nLmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBRU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