import * as i0 from '@angular/core';
import { Component, Inject, EventEmitter, Input, Output, NgModule } from '@angular/core';
import { AswConfirmDialog, AswConfirmDialogModule } from '@asoftwareworld/form-builder/form-control/confirm-dialog';
import { Constants } from '@asoftwareworld/form-builder/form-control/core';
import * as i2 from '@angular/material/dialog';
import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
import * as i1 from '@angular/forms';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import * as i3 from '@angular/material/divider';
import { MatDividerModule } from '@angular/material/divider';
import * as i4 from '@asoftwareworld/form-builder/image-crop';
import { ImageCropModule } from '@asoftwareworld/form-builder/image-crop';
import * as i5 from '@angular/common';
import { CommonModule } from '@angular/common';
import * as i6 from '@angular/material/tooltip';
import { MatTooltipModule } from '@angular/material/tooltip';
import { MatIconModule } from '@angular/material/icon';

/**
 * @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 AswImageUploadDialog {
    constructor(formBuilder, dialogRef, control) {
        this.formBuilder = formBuilder;
        this.dialogRef = dialogRef;
        this.control = control;
        this.constants = Constants;
        this.imageChangedEvent = '';
        this.croppedImage = '';
        this.canvasRotation = 0;
        this.rotation = 0;
        this.scale = 1;
        this.showCropper = false;
        this.isImageLoaded = false;
        this.containWithinAspectRatio = false;
        this.transform = {};
    }
    fileChangeEvent(event) {
        this.isImageLoaded = true;
        this.imageChangedEvent = event;
    }
    removeImage() {
        this.isImageLoaded = true;
        this.imageChangedEvent = null;
    }
    imageCropped(event) {
        this.croppedImage = event.base64;
    }
    imageLoaded() {
        this.showCropper = true;
        console.log('Image loaded');
    }
    cropperReady(sourceImageDimensions) {
        console.log('Cropper ready', sourceImageDimensions);
        this.isImageLoaded = false;
    }
    loadImageFailed() {
        console.log('Load failed');
    }
    rotateLeft() {
        this.isImageLoaded = true;
        setTimeout(() => {
            this.canvasRotation--;
            this.flipAfterRotate();
        });
    }
    rotateRight() {
        this.isImageLoaded = true;
        setTimeout(() => {
            this.canvasRotation++;
            this.flipAfterRotate();
        });
    }
    flipAfterRotate() {
        const flippedH = this.transform.flipH;
        const flippedV = this.transform.flipV;
        this.transform = Object.assign(Object.assign({}, this.transform), { flipH: flippedV, flipV: flippedH });
    }
    flipHorizontal() {
        this.transform = Object.assign(Object.assign({}, this.transform), { flipH: !this.transform.flipH });
    }
    flipVertical() {
        this.transform = Object.assign(Object.assign({}, this.transform), { flipV: !this.transform.flipV });
    }
    resetImage() {
        this.scale = 1;
        this.rotation = 0;
        this.canvasRotation = 0;
        this.transform = {};
    }
    zoomOut() {
        this.scale -= .1;
        this.transform = Object.assign(Object.assign({}, this.transform), { scale: this.scale });
    }
    zoomIn() {
        this.scale += .1;
        this.transform = Object.assign(Object.assign({}, this.transform), { scale: this.scale });
    }
    toggleContainWithinAspectRatio() {
        this.containWithinAspectRatio = !this.containWithinAspectRatio;
    }
    updateRotation() {
        this.transform = Object.assign(Object.assign({}, this.transform), { rotate: this.rotation });
    }
    onNoClick() {
        this.dialogRef.close();
    }
    validateFormBuilder() {
        this.aswImageCropForm = this.formBuilder.group({
            file: [null]
        });
    }
    ngOnInit() {
        this.validateFormBuilder();
        this.editProperty(this.control);
        this.croppedImage = this.control.imageUrl;
        this.imageChangedEvent = this.control.event;
    }
    editProperty(control) {
        if (control.event) {
            this.isImageLoaded = false;
        }
        this.aswImageCropForm.setValue({
            file: control.imageUrl
        });
    }
    onSubmit() {
        if (this.aswImageCropForm.invalid) {
            return;
        }
        this.aswImageCropForm.value.displayName = this.control.displayName;
        this.aswImageCropForm.value.controlType = this.control.controlType;
        this.aswImageCropForm.value.label = this.control.label;
        this.aswImageCropForm.value.imageUrl = this.croppedImage;
        this.aswImageCropForm.value.event = this.imageChangedEvent;
        this.dialogRef.close(this.aswImageCropForm.value);
    }
}
AswImageUploadDialog.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AswImageUploadDialog, deps: [{ token: i1.FormBuilder }, { token: i2.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
AswImageUploadDialog.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: AswImageUploadDialog, selector: "asw-image-upload-dialog", ngImport: i0, template: "<h4 mat-dialog-title>Edit Property</h4>\r\n<mat-divider></mat-divider>\r\n<form [formGroup]=\"aswImageCropForm\" (ngSubmit)=\"onSubmit()\">\r\n    <mat-dialog-content class=\"mat-typography\">\r\n        <div class=\"row\">\r\n            <div class=\"col-md-12\">\r\n                <div class=\"toolbar\">\r\n                    <div class=\"tools\">\r\n                        <div class=\"row toolbar-size\">\r\n                            <input style=\"display: none\" \r\n                                    type=\"file\" \r\n                                    #fileInput \r\n                                    (change)=\"fileChangeEvent($event)\"\r\n                                    id=\"imageUpload\" \r\n                                    accept=\".png, .jpg, .jpeg\">\r\n                            <i class=\"material-icons btn-selector\" \r\n                                *ngIf=\"isImageLoaded\"\r\n                                (click)=\"fileInput.click();\"\r\n                                matTooltip=\"Load image\">attach_file\r\n                            </i>\r\n                            <i class=\"material-icons btn-selector\" \r\n                                *ngIf=\"!isImageLoaded\"\r\n                                (click)=\"removeImage()\"\r\n                                matTooltip=\"Remove image\">clear\r\n                            </i>                \r\n                            <i class=\"material-icons btn-selector\" \r\n                                (click)=\"rotateLeft()\"\r\n                                [class.disabled]=\"isImageLoaded\"\r\n                                matTooltip=\"Left rotate\">rotate_left\r\n                            </i>\r\n                            <i class=\"material-icons btn-selector\" \r\n                                (click)=\"rotateRight()\"\r\n                                [class.disabled]=\"isImageLoaded\"\r\n                                matTooltip=\"Right rotate\">rotate_right\r\n                            </i>\r\n                            <i class=\"material-icons btn-selector\" \r\n                                (click)=\"flipHorizontal()\"\r\n                                [class.disabled]=\"isImageLoaded\"\r\n                                matTooltip=\"Swap horizontal\">swap_horiz\r\n                            </i>\r\n                            <i class=\"material-icons btn-selector\" \r\n                                (click)=\"flipVertical()\"\r\n                                [class.disabled]=\"isImageLoaded\"\r\n                                matTooltip=\"Swap vertical\">swap_vert\r\n                            </i>\r\n                            <i class=\"material-icons btn-selector\" \r\n                                (click)=\"toggleContainWithinAspectRatio()\"\r\n                                [class.disabled]=\"isImageLoaded\"\r\n                                matTooltip=\"{{containWithinAspectRatio?'Fill Aspect Ratio':'Contain Within Aspect Ratio'}}\"\r\n                                >\r\n                                {{containWithinAspectRatio?'crop_free':'crop_din'}}\r\n                            </i>\r\n                            <i class=\"material-icons btn-selector\" \r\n                                (click)=\"resetImage()\"\r\n                                [class.disabled]=\"isImageLoaded\"\r\n                                matTooltip=\"Reset image\">refresh\r\n                            </i>\r\n                            <i class=\"material-icons btn-selector\" \r\n                                (click)=\"zoomOut()\"\r\n                                [class.disabled]=\"isImageLoaded\"\r\n                                matTooltip=\"Zoom out\">zoom_out\r\n                            </i>\r\n                            <i class=\"material-icons btn-selector\" \r\n                                (click)=\"zoomIn()\"\r\n                                [class.disabled]=\"isImageLoaded\"\r\n                                matTooltip=\"Zoom in\">zoom_in\r\n                            </i>\r\n                        </div>\r\n                    </div>\r\n                    \r\n                    <!-- Any additional toolbar buttons to be projected by the consuming app -->\r\n                    <ng-content></ng-content>\r\n                </div>\r\n            </div>\r\n        </div>        \r\n        <div class=\"row\">\r\n            <div class=\"col-md-12\">\r\n                <asw-image-crop\r\n                [imageChangedEvent]=\"imageChangedEvent\"\r\n                [maintainAspectRatio]=\"true\"\r\n                [containWithinAspectRatio]=\"containWithinAspectRatio\"\r\n                [aspectRatio]=\"1\"\r\n                [resizeToWidth]=\"256\" \r\n                [roundCropper]=\"true\"\r\n                [canvasRotation]=\"canvasRotation\"\r\n                [transform]=\"transform\"\r\n                [alignImage]=\"'center'\"\r\n                [style.display]=\"showCropper ? null : 'none'\"\r\n                format=\"png\"\r\n                (imageCropped)=\"imageCropped($event)\"\r\n                (imageLoaded)=\"imageLoaded()\"\r\n                (cropperReady)=\"cropperReady($event)\"\r\n                (loadImageFailed)=\"loadImageFailed()\"\r\n                ></asw-image-crop>\r\n            </div>\r\n        </div>\r\n        \r\n    </mat-dialog-content>\r\n    <mat-dialog-actions align=\"end\">\r\n        <button mat-raised-button\r\n                type=\"button\"\r\n                class=\"btn btn-danger mr-2 mb-1\"\r\n                (click)=\"onNoClick()\">\r\n            No\r\n        </button>\r\n        <button mat-raised-button type=\"submit\"\r\n                class=\"btn btn-primary mb-1\"\r\n                cdkFocusInitial>\r\n            Yes\r\n        </button>\r\n    </mat-dialog-actions>\r\n</form>", components: [{ type: i3.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { type: i4.ImageCropComponent, selector: "asw-image-crop", inputs: ["imageChangedEvent", "imageURL", "imageBase64", "imageFile", "format", "transform", "maintainAspectRatio", "aspectRatio", "resizeToWidth", "resizeToHeight", "cropperMinWidth", "cropperMinHeight", "cropperMaxHeight", "cropperMaxWidth", "cropperStaticWidth", "cropperStaticHeight", "canvasRotation", "initialStepSize", "roundCropper", "onlyScaleDown", "imageQuality", "autoCrop", "backgroundColor", "containWithinAspectRatio", "hideResizeSquares", "cropper", "alignImage", "disabled"], outputs: ["imageCropped", "startCropImage", "imageLoaded", "cropperReady", "loadImageFailed"] }], directives: [{ type: i2.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { type: i2.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AswImageUploadDialog, decorators: [{
            type: Component,
            args: [{ selector: 'asw-image-upload-dialog', template: "<h4 mat-dialog-title>Edit Property</h4>\r\n<mat-divider></mat-divider>\r\n<form [formGroup]=\"aswImageCropForm\" (ngSubmit)=\"onSubmit()\">\r\n    <mat-dialog-content class=\"mat-typography\">\r\n        <div class=\"row\">\r\n            <div class=\"col-md-12\">\r\n                <div class=\"toolbar\">\r\n                    <div class=\"tools\">\r\n                        <div class=\"row toolbar-size\">\r\n                            <input style=\"display: none\" \r\n                                    type=\"file\" \r\n                                    #fileInput \r\n                                    (change)=\"fileChangeEvent($event)\"\r\n                                    id=\"imageUpload\" \r\n                                    accept=\".png, .jpg, .jpeg\">\r\n                            <i class=\"material-icons btn-selector\" \r\n                                *ngIf=\"isImageLoaded\"\r\n                                (click)=\"fileInput.click();\"\r\n                                matTooltip=\"Load image\">attach_file\r\n                            </i>\r\n                            <i class=\"material-icons btn-selector\" \r\n                                *ngIf=\"!isImageLoaded\"\r\n                                (click)=\"removeImage()\"\r\n                                matTooltip=\"Remove image\">clear\r\n                            </i>                \r\n                            <i class=\"material-icons btn-selector\" \r\n                                (click)=\"rotateLeft()\"\r\n                                [class.disabled]=\"isImageLoaded\"\r\n                                matTooltip=\"Left rotate\">rotate_left\r\n                            </i>\r\n                            <i class=\"material-icons btn-selector\" \r\n                                (click)=\"rotateRight()\"\r\n                                [class.disabled]=\"isImageLoaded\"\r\n                                matTooltip=\"Right rotate\">rotate_right\r\n                            </i>\r\n                            <i class=\"material-icons btn-selector\" \r\n                                (click)=\"flipHorizontal()\"\r\n                                [class.disabled]=\"isImageLoaded\"\r\n                                matTooltip=\"Swap horizontal\">swap_horiz\r\n                            </i>\r\n                            <i class=\"material-icons btn-selector\" \r\n                                (click)=\"flipVertical()\"\r\n                                [class.disabled]=\"isImageLoaded\"\r\n                                matTooltip=\"Swap vertical\">swap_vert\r\n                            </i>\r\n                            <i class=\"material-icons btn-selector\" \r\n                                (click)=\"toggleContainWithinAspectRatio()\"\r\n                                [class.disabled]=\"isImageLoaded\"\r\n                                matTooltip=\"{{containWithinAspectRatio?'Fill Aspect Ratio':'Contain Within Aspect Ratio'}}\"\r\n                                >\r\n                                {{containWithinAspectRatio?'crop_free':'crop_din'}}\r\n                            </i>\r\n                            <i class=\"material-icons btn-selector\" \r\n                                (click)=\"resetImage()\"\r\n                                [class.disabled]=\"isImageLoaded\"\r\n                                matTooltip=\"Reset image\">refresh\r\n                            </i>\r\n                            <i class=\"material-icons btn-selector\" \r\n                                (click)=\"zoomOut()\"\r\n                                [class.disabled]=\"isImageLoaded\"\r\n                                matTooltip=\"Zoom out\">zoom_out\r\n                            </i>\r\n                            <i class=\"material-icons btn-selector\" \r\n                                (click)=\"zoomIn()\"\r\n                                [class.disabled]=\"isImageLoaded\"\r\n                                matTooltip=\"Zoom in\">zoom_in\r\n                            </i>\r\n                        </div>\r\n                    </div>\r\n                    \r\n                    <!-- Any additional toolbar buttons to be projected by the consuming app -->\r\n                    <ng-content></ng-content>\r\n                </div>\r\n            </div>\r\n        </div>        \r\n        <div class=\"row\">\r\n            <div class=\"col-md-12\">\r\n                <asw-image-crop\r\n                [imageChangedEvent]=\"imageChangedEvent\"\r\n                [maintainAspectRatio]=\"true\"\r\n                [containWithinAspectRatio]=\"containWithinAspectRatio\"\r\n                [aspectRatio]=\"1\"\r\n                [resizeToWidth]=\"256\" \r\n                [roundCropper]=\"true\"\r\n                [canvasRotation]=\"canvasRotation\"\r\n                [transform]=\"transform\"\r\n                [alignImage]=\"'center'\"\r\n                [style.display]=\"showCropper ? null : 'none'\"\r\n                format=\"png\"\r\n                (imageCropped)=\"imageCropped($event)\"\r\n                (imageLoaded)=\"imageLoaded()\"\r\n                (cropperReady)=\"cropperReady($event)\"\r\n                (loadImageFailed)=\"loadImageFailed()\"\r\n                ></asw-image-crop>\r\n            </div>\r\n        </div>\r\n        \r\n    </mat-dialog-content>\r\n    <mat-dialog-actions align=\"end\">\r\n        <button mat-raised-button\r\n                type=\"button\"\r\n                class=\"btn btn-danger mr-2 mb-1\"\r\n                (click)=\"onNoClick()\">\r\n            No\r\n        </button>\r\n        <button mat-raised-button type=\"submit\"\r\n                class=\"btn btn-primary mb-1\"\r\n                cdkFocusInitial>\r\n            Yes\r\n        </button>\r\n    </mat-dialog-actions>\r\n</form>" }]
        }], ctorParameters: function () {
        return [{ type: i1.FormBuilder }, { type: i2.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 AswImage {
    constructor(dialog) {
        this.dialog = dialog;
        this.constants = Constants;
        this.isPreviewTemplate = false;
        this.imageUpdateEvent = new EventEmitter();
        this.imageDeleteEvent = new EventEmitter();
    }
    deleteImageDialog(control, controlIndex) {
        const dialogRef = this.dialog.open(AswConfirmDialog, {
            width: '350px',
            data: { name: control.label, message: this.constants.messages.waringMessage }
        });
        dialogRef.afterClosed().subscribe(result => {
            if (result !== undefined) {
                this.imageDeleteEvent.emit(controlIndex);
            }
        });
    }
    editImageDialog(control, controlIndex) {
        const dialogRef = this.dialog.open(AswImageUploadDialog, {
            disableClose: true,
            width: '744px',
            data: control
        });
        dialogRef.afterClosed().subscribe(result => {
            if (result !== undefined) {
                this.imageUpdateEvent.emit({ control: result, index: controlIndex });
            }
        });
    }
}
AswImage.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AswImage, deps: [{ token: i2.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
AswImage.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: AswImage, selector: "asw-image", inputs: { control: "control", controlIndex: "controlIndex", isPreviewTemplate: "isPreviewTemplate" }, outputs: { imageUpdateEvent: "imageUpdateEvent", imageDeleteEvent: "imageDeleteEvent" }, ngImport: i0, template: "<div class=\"avatar-upload\">\r\n    <div class=\"avatar-preview circle\">\r\n        <img src=\"{{control.imageUrl}}\" class=\"avatar-src\" />\r\n    </div>\r\n    <ng-container *ngIf=\"!isPreviewTemplate\">\r\n        <button mat-raised-button \r\n            class=\"btn btn-primary btn-round\"\r\n            (click)=\"editImageDialog(control, controlIndex)\">Upload image</button>\r\n    </ng-container>    \r\n</div>\r\n<div class=\"row\" *ngIf=\"isPreviewTemplate\">\r\n  <div class=\"col-md-12\">\r\n      <button mat-raised-button \r\n              type=\"button\" \r\n              matTooltip=\"Edit image control\" \r\n              [matTooltipPosition]=\"'above'\" \r\n              (click)=\"editImageDialog(control, controlIndex)\"\r\n              class=\"btn btn-sm btn-just-icon btn-outline-success mr-2 mb-1\">\r\n          <i class=\"material-icons\">edit</i>\r\n      </button>\r\n      <button mat-raised-button \r\n              type=\"button\" \r\n              matTooltip=\"Remove image control\" \r\n              [matTooltipPosition]=\"'above'\" \r\n              (click)=\"deleteImageDialog(control, controlIndex)\"\r\n              class=\"btn btn-sm btn-just-icon btn-outline-danger mb-1\">\r\n          <i class=\"material-icons\">close</i>\r\n      </button>\r\n  </div>                                            \r\n</div>", directives: [{ type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AswImage, decorators: [{
            type: Component,
            args: [{ selector: 'asw-image', template: "<div class=\"avatar-upload\">\r\n    <div class=\"avatar-preview circle\">\r\n        <img src=\"{{control.imageUrl}}\" class=\"avatar-src\" />\r\n    </div>\r\n    <ng-container *ngIf=\"!isPreviewTemplate\">\r\n        <button mat-raised-button \r\n            class=\"btn btn-primary btn-round\"\r\n            (click)=\"editImageDialog(control, controlIndex)\">Upload image</button>\r\n    </ng-container>    \r\n</div>\r\n<div class=\"row\" *ngIf=\"isPreviewTemplate\">\r\n  <div class=\"col-md-12\">\r\n      <button mat-raised-button \r\n              type=\"button\" \r\n              matTooltip=\"Edit image control\" \r\n              [matTooltipPosition]=\"'above'\" \r\n              (click)=\"editImageDialog(control, controlIndex)\"\r\n              class=\"btn btn-sm btn-just-icon btn-outline-success mr-2 mb-1\">\r\n          <i class=\"material-icons\">edit</i>\r\n      </button>\r\n      <button mat-raised-button \r\n              type=\"button\" \r\n              matTooltip=\"Remove image control\" \r\n              [matTooltipPosition]=\"'above'\" \r\n              (click)=\"deleteImageDialog(control, controlIndex)\"\r\n              class=\"btn btn-sm btn-just-icon btn-outline-danger mb-1\">\r\n          <i class=\"material-icons\">close</i>\r\n      </button>\r\n  </div>                                            \r\n</div>" }]
        }], ctorParameters: function () { return [{ type: i2.MatDialog }]; }, propDecorators: { control: [{
                type: Input
            }], controlIndex: [{
                type: Input
            }], isPreviewTemplate: [{
                type: Input
            }], imageUpdateEvent: [{
                type: Output
            }], imageDeleteEvent: [{
                type: Output
            }] } });

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

/**
 * @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 { AswImage, AswImageModule, AswImageUploadDialog };
//# sourceMappingURL=asoftwareworld-form-builder-form-control-image.mjs.map
