import { Component, Input, ChangeDetectionStrategy } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "../../../../../common/directives/server-image/server-image.directive";
import * as i3 from "../../../pipes/card-content.pipe";
import * as i4 from "../../../pipes/transform-content.pipe";
export class SmzImageContentComponent {
    constructor() { }
    ngOnInit() {
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: SmzImageContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.5", type: SmzImageContentComponent, selector: "smz-image-content", inputs: { content: "content", data: "data" }, ngImport: i0, template: "<ng-container *ngIf=\"content | transformContent : data as image\">\r\n  <img\r\n    serverImage\r\n    [path]=\"content.transform.override ? content.transform.override.dataPath : (data | cardsContent : image.dataPath).result\"\r\n    [maximize]=\"image.maximize\"\r\n    [openMaximized]=\"image.openMaximized\"\r\n    [placeholder]=\"'assets/images/placeholder.jpeg'\"\r\n    [title]=\"image.title.isVisible ? image.title.getText(data) : null\"\r\n    [useServerPath]=\"image.useServerPath\"\r\n    class=\"h-28 w-36 object-cover\"\r\n  >\r\n</ng-container>", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.ServerImageDirective, selector: "img[serverImage]", inputs: ["src", "path", "placeholder", "errorPlaceholder", "maximize", "openMaximized", "title", "useServerPath"] }, { kind: "pipe", type: i3.SmzCardsContentPipe, name: "cardsContent" }, { kind: "pipe", type: i4.SmzCardsTransformContentPipe, name: "transformContent" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: SmzImageContentComponent, decorators: [{
            type: Component,
            args: [{ selector: 'smz-image-content', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"content | transformContent : data as image\">\r\n  <img\r\n    serverImage\r\n    [path]=\"content.transform.override ? content.transform.override.dataPath : (data | cardsContent : image.dataPath).result\"\r\n    [maximize]=\"image.maximize\"\r\n    [openMaximized]=\"image.openMaximized\"\r\n    [placeholder]=\"'assets/images/placeholder.jpeg'\"\r\n    [title]=\"image.title.isVisible ? image.title.getText(data) : null\"\r\n    [useServerPath]=\"image.useServerPath\"\r\n    class=\"h-28 w-36 object-cover\"\r\n  >\r\n</ng-container>" }]
        }], ctorParameters: () => [], propDecorators: { content: [{
                type: Input
            }], data: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW1hZ2UtY29udGVudC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtc216LXVpL3NyYy9saWIvbW9kdWxlcy9zbXotY2FyZHMvY29tcG9uZW50cy9jb250ZW50cy9pbWFnZS9pbWFnZS1jb250ZW50LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1zbXotdWkvc3JjL2xpYi9tb2R1bGVzL3Ntei1jYXJkcy9jb21wb25lbnRzL2NvbnRlbnRzL2ltYWdlL2ltYWdlLWNvbnRlbnQuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQVUsdUJBQXVCLEVBQXFCLE1BQU0sZUFBZSxDQUFDOzs7Ozs7QUFTckcsTUFBTSxPQUFPLHdCQUF3QjtJQUduQyxnQkFBZ0IsQ0FBQztJQUVqQixRQUFRO0lBQ1IsQ0FBQzs4R0FOVSx3QkFBd0I7a0dBQXhCLHdCQUF3Qix1R0NUckMsZ2pCQVdlOzsyRkRG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