import { NgClass, NgOptimizedImage } from '@angular/common';
import { Component, Input } from '@angular/core';
import { LanguageEnum } from '@testlocallibrary/shared-kernel/models/enums';
import * as i0 from "@angular/core";
import * as i1 from "@testlocallibrary/shared-kernel/services/language";
export class MediaObjectComponent {
    constructor(languageService) {
        this.languageService = languageService;
        this.LanguageEnum = LanguageEnum;
        this.language = LanguageEnum.En;
        this.iconSrc = '';
        this.iconAlt = '';
        this.heading = '';
    }
    ngOnInit() {
        this.language = this.languageService.getLanguage();
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MediaObjectComponent, deps: [{ token: i1.LanguageService }], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: MediaObjectComponent, isStandalone: true, selector: "lib-media-object", inputs: { iconSrc: "iconSrc", iconAlt: "iconAlt", heading: "heading" }, ngImport: i0, template: "<div class=\"d-flex\">\r\n  <div class=\"image flex-shrink-0\">\r\n    <img\r\n      [ngSrc]=\"iconSrc\"\r\n      width=\"80\"\r\n      height=\"80\"\r\n      [alt]=\"iconAlt\"\r\n      ngSrcset=\"100w, 200w, 300w\"\r\n      sizes=\"50vw\"\r\n      placeholder\r\n      priority\r\n    />\r\n  </div>\r\n  <div\r\n    class=\"body flex-grow-1\"\r\n    [ngClass]=\"{\r\n      'en-ms-3': language === LanguageEnum.En,\r\n      'ar-ms-3': language === LanguageEnum.Ar\r\n    }\"\r\n  >\r\n    <h3 class=\"h5 mb-3\">{{ heading }}</h3>\r\n    <ng-content select=\"[body]\" class=\"styles\"></ng-content>\r\n  </div>\r\n</div>\r\n", styles: [".image img{background-color:#222b55;padding:5px;width:56px;height:56px;border-radius:5px}.en-ms-3{margin-left:1rem!important}.ar-ms-3{margin-right:1rem!important}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgOptimizedImage, selector: "img[ngSrc]", inputs: ["ngSrc", "ngSrcset", "sizes", "width", "height", "loading", "priority", "loaderParams", "disableOptimizedSrcset", "fill", "src", "srcset"] }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MediaObjectComponent, decorators: [{
            type: Component,
            args: [{ selector: 'lib-media-object', standalone: true, imports: [NgClass, NgOptimizedImage], template: "<div class=\"d-flex\">\r\n  <div class=\"image flex-shrink-0\">\r\n    <img\r\n      [ngSrc]=\"iconSrc\"\r\n      width=\"80\"\r\n      height=\"80\"\r\n      [alt]=\"iconAlt\"\r\n      ngSrcset=\"100w, 200w, 300w\"\r\n      sizes=\"50vw\"\r\n      placeholder\r\n      priority\r\n    />\r\n  </div>\r\n  <div\r\n    class=\"body flex-grow-1\"\r\n    [ngClass]=\"{\r\n      'en-ms-3': language === LanguageEnum.En,\r\n      'ar-ms-3': language === LanguageEnum.Ar\r\n    }\"\r\n  >\r\n    <h3 class=\"h5 mb-3\">{{ heading }}</h3>\r\n    <ng-content select=\"[body]\" class=\"styles\"></ng-content>\r\n  </div>\r\n</div>\r\n", styles: [".image img{background-color:#222b55;padding:5px;width:56px;height:56px;border-radius:5px}.en-ms-3{margin-left:1rem!important}.ar-ms-3{margin-right:1rem!important}\n"] }]
        }], ctorParameters: function () { return [{ type: i1.LanguageService }]; }, propDecorators: { iconSrc: [{
                type: Input
            }], iconAlt: [{
                type: Input
            }], heading: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVkaWEtb2JqZWN0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3NoYXJlZC1rZXJuZWwvY29tcG9uZW50cy9tZWRpYS1vYmplY3Qvc3JjL21lZGlhLW9iamVjdC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi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