import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy } from '@angular/core';
export class AssetVisualizerComponent {
    constructor() {
        /**
         * Define if user can edit image.
         */
        this.showEditImage = true;
        /**
         * Define if user can upload image.
         */
        this.showUploadImage = true;
        /**
         * Define if user can remove image.
         */
        this.showRemoveImage = true;
        /**
         * Define if user only can see the image.
         */
        this.onlyViewImage = false;
        this.hasMonitor = false;
        this.imageUploaded = new EventEmitter();
        this.imageDeleted = new EventEmitter();
        this.sendAssetInfo = new EventEmitter();
        this.goToMonitorLink = new EventEmitter();
    }
}
AssetVisualizerComponent.decorators = [
    { type: Component, args: [{
                selector: 'uno-asset-visualizer',
                template: "<main>\r\n    <section class=\"asset-image\">\r\n        <uno-picture\r\n            [defaultImage]=\"defaultAssetImgURL\"\r\n            [image]=\"imgURL\"\r\n            [onlyViewImage]=\"onlyViewImage\"\r\n            (uploadedImage)=\"this.imageUploaded.emit($event)\"\r\n            (deleteImage)=\"this.imageDeleted.emit()\">\r\n        </uno-picture>\r\n    </section>\r\n    \r\n    <section *ngIf=\"scenes3D?.length > 0 || hasMonitor\" class=\"bottom-bar-container\">\r\n\r\n        <span class=\"badges-container\">\r\n            <!-- Later, thre will be also here a 2D badge -->\r\n            <uno-badge\r\n                *ngIf=\"scenes3D?.length > 0\"\r\n                title=\"See 3D scenes of this Asset...\"\r\n                type=\"badge-3d\"\r\n                pointer=\"true\"\r\n                (click)=\"sendAssetInfo.emit($event)\">3D\r\n            </uno-badge>\r\n        </span>\r\n\r\n        <span class=\"right-actions-container\">\r\n            <uno-icon\r\n                *ngIf=\"hasMonitor\"\r\n                class=\"slds-button__icon--left\"\r\n                title=\"Go to Asset Monitor...\"\r\n                icon=\"asset_monitor\"\r\n                size=\"x-small\"\r\n                [withOpacity]=\"true\"\r\n                (click)=\"goToMonitorLink.emit($event)\">\r\n            </uno-icon>\r\n        </span>\r\n    </section>\r\n</main>",
                changeDetection: ChangeDetectionStrategy.OnPush,
                styles: ["main{box-shadow:1px 3px 5px 2px var(--grey)}section.asset-image{height:250px;border-bottom:1px solid var(--grey)}section.bottom-bar-container{display:flow-root;padding:.5rem}section.bottom-bar-container>.badges-container>uno-badge{margin-right:10px}section.bottom-bar-container>.right-actions-container{float:right}section.bottom-bar-container>.right-actions-container>.file-input-container>input{display:none}:visited,a{text-decoration:none;color:var(--white)}"]
            },] }
];
AssetVisualizerComponent.propDecorators = {
    defaultAssetImgURL: [{ type: Input }],
    imgURL: [{ type: Input }],
    showEditImage: [{ type: Input }],
    showUploadImage: [{ type: Input }],
    showRemoveImage: [{ type: Input }],
    onlyViewImage: [{ type: Input }],
    hasMonitor: [{ type: Input }],
    scenes3D: [{ type: Input }],
    imageUploaded: [{ type: Output }],
    imageDeleted: [{ type: Output }],
    sendAssetInfo: [{ type: Output }],
    goToMonitorLink: [{ type: Output }]
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNzZXQtdmlzdWFsaXplci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy91bm8tdWktbGliL3NyYy9saWIvYXNzZXQtdmlzdWFsaXplci9hc3NldC12aXN1YWxpemVyLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUUsWUFBWSxFQUFFLHVCQUF1QixFQUFFLE1BQU0sZUFBZSxDQUFDO0FBUWhHLE1BQU0sT0FBTyx3QkFBd0I7SUFOckM7UUFpQkk7O1dBRUc7UUFDTSxrQkFBYSxHQUFHLElBQUksQ0FBQztRQUU5Qjs7V0FFRztRQUNNLG9CQUFlLEdBQUcsSUFBSSxDQUFDO1FBRWhDOztXQUVHO1FBQ00sb0JBQWUsR0FBRyxJQUFJLENBQUM7UUFFaEM7O1dBRUc7UUFDTSxrQkFBYSxHQUFHLEtBQUssQ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