import { Component, Input, ViewEncapsulation } from '@angular/core';
import { StaticMedia } from '../../../../forms/page/widgets/static-media';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "@angular/material/icon";
function StaticMediaWidgetViewComponent_div_0_span_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵelementStart(2, "span", 6);
    i0.ɵɵtext(3, ":");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r1 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate(ctx_r1.widget.prompt);
} }
function StaticMediaWidgetViewComponent_div_0_5_ng_template_0_span_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵelementStart(2, "span", 6);
    i0.ɵɵtext(3, ":");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r4 = i0.ɵɵnextContext(4);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate(ctx_r4.widget.prompt);
} }
function StaticMediaWidgetViewComponent_div_0_5_ng_template_0_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 2);
    i0.ɵɵelement(1, "mat-icon", 3);
    i0.ɵɵtemplate(2, StaticMediaWidgetViewComponent_div_0_5_ng_template_0_span_2_Template, 4, 1, "span", 4);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "span", 7);
    i0.ɵɵtext(4, "-");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r3 = i0.ɵɵnextContext(3);
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", ctx_r3.section.showPrompt);
} }
function StaticMediaWidgetViewComponent_div_0_5_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵtemplate(0, StaticMediaWidgetViewComponent_div_0_5_ng_template_0_Template, 5, 1, "ng-template");
} }
function StaticMediaWidgetViewComponent_div_0_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 1);
    i0.ɵɵelementStart(1, "div", 2);
    i0.ɵɵelement(2, "mat-icon", 3);
    i0.ɵɵtemplate(3, StaticMediaWidgetViewComponent_div_0_span_3_Template, 4, 1, "span", 4);
    i0.ɵɵelement(4, "div", 5);
    i0.ɵɵelementEnd();
    i0.ɵɵtemplate(5, StaticMediaWidgetViewComponent_div_0_5_Template, 1, 0, undefined, 4);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("ngIf", ctx_r0.section.showPrompt);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("innerHTML", ctx_r0.widget.staticMedia, i0.ɵɵsanitizeHtml);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", !ctx_r0.widget.staticMedia);
} }
export class StaticMediaWidgetViewComponent {
    constructor() { }
    ngOnInit() {
        if (this.widget.staticMedia) {
            this.staticMedia = this.widget.staticMedia;
        }
    }
}
StaticMediaWidgetViewComponent.ɵfac = function StaticMediaWidgetViewComponent_Factory(t) { return new (t || StaticMediaWidgetViewComponent)(); };
StaticMediaWidgetViewComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: StaticMediaWidgetViewComponent, selectors: [["lib-static-media-widget-view"]], inputs: { widget: "widget" }, decls: 1, vars: 1, consts: [["class", "data-detail-info", 4, "ngIf"], [1, "data-detail-info"], [1, "data-detail-title", "flex", "text-sm"], ["svgIcon", "axo_static_media", 1, "add-text"], [4, "ngIf"], [1, "static-media-content", 3, "innerHTML"], [1, "colon"], [1, "flex", "justify-start"]], template: function StaticMediaWidgetViewComponent_Template(rf, ctx) { if (rf & 1) {
        i0.ɵɵtemplate(0, StaticMediaWidgetViewComponent_div_0_Template, 6, 3, "div", 0);
    } if (rf & 2) {
        i0.ɵɵproperty("ngIf", ctx.widget.staticMedia);
    } }, directives: [i1.NgIf, i2.MatIcon], styles: ["lib-static-media-widget-view .static-media-content{max-width:calc(100% - 34px)}lib-static-media-widget-view .static-media-content img{max-width:300px}lib-static-media-widget-view .static-media-content table,lib-static-media-widget-view .static-media-content tr,lib-static-media-widget-view .static-media-content td{border-radius:4px;border:1px solid #dddddd}lib-static-media-widget-view .static-media-content table{width:100%;margin-bottom:15px}lib-static-media-widget-view .static-media-content table tr td{padding:.5rem;text-align:justify;font-family:Open Sans,Arial,sans-serif;font-size:14px}lib-static-media-widget-view .static-media-content ol{list-style:auto}lib-static-media-widget-view .static-media-content ul{list-style:unset}lib-static-media-widget-view .static-media-content li,lib-static-media-widget-view .static-media-content p{margin-bottom:15px;text-align:justify;font-family:Open Sans,Arial,sans-serif;font-size:14px;line-height:25px}@media screen and (max-width: 600px){lib-static-media-widget-view .static-media-content li{margin-left:15px}lib-static-media-widget-view .static-media-content h1,lib-static-media-widget-view .static-media-content h3,lib-static-media-widget-view .static-media-content h2,lib-static-media-widget-view .static-media-content h5{font-size:16px!important}}lib-static-media-widget-view .static-media-content h1,lib-static-media-widget-view .static-media-content h3,lib-static-media-widget-view .static-media-content h2,lib-static-media-widget-view .static-media-content h4,lib-static-media-widget-view .static-media-content h5,lib-static-media-widget-view .static-media-content h6{color:#172b4d;font-family:Roboto,sans-serif;font-style:normal;font-weight:500;font-size:1em!important}lib-static-media-widget-view .static-media-content td,lib-static-media-widget-view .static-media-content li,lib-static-media-widget-view .static-media-content span,lib-static-media-widget-view .static-media-content div,lib-static-media-widget-view .static-media-content p{color:#6c798f;font-family:Roboto,sans-serif;font-style:normal;font-weight:400;font-size:14px!important}lib-static-media-widget-view .data-detail-title{width:100%;align-items:start!important}lib-static-media-widget-view .mat-icon{margin-top:.5rem}\n"], encapsulation: 2 });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(StaticMediaWidgetViewComponent, [{
        type: Component,
        args: [{ selector: 'lib-static-media-widget-view', encapsulation: ViewEncapsulation.None, template: "<div class=\"data-detail-info\" *ngIf=\"widget.staticMedia\">\n    <div class=\"data-detail-title flex text-sm\">\n        <mat-icon class=\"add-text\" svgIcon=\"axo_static_media\"></mat-icon> <span\n            *ngIf=\"section.showPrompt\">{{widget.prompt}}<span class=\"colon\">:</span></span>\n        <div [innerHTML]=\"widget.staticMedia\" class=\"static-media-content\"></div>\n    </div>\n\n    <ng-template *ngIf=\"!widget.staticMedia\">\n        <div class=\"data-detail-title flex text-sm\">\n            <mat-icon class=\"add-text\" svgIcon=\"axo_static_media\"></mat-icon> \n            <span *ngIf=\"section.showPrompt\">{{widget.prompt}}<span class=\"colon\">:</span></span>\n        </div>\n        <span class=\"flex justify-start\">-</span>\n    </ng-template>", styles: ["lib-static-media-widget-view .static-media-content{max-width:calc(100% - 34px)}lib-static-media-widget-view .static-media-content img{max-width:300px}lib-static-media-widget-view .static-media-content table,lib-static-media-widget-view .static-media-content tr,lib-static-media-widget-view .static-media-content td{border-radius:4px;border:1px solid #dddddd}lib-static-media-widget-view .static-media-content table{width:100%;margin-bottom:15px}lib-static-media-widget-view .static-media-content table tr td{padding:.5rem;text-align:justify;font-family:Open Sans,Arial,sans-serif;font-size:14px}lib-static-media-widget-view .static-media-content ol{list-style:auto}lib-static-media-widget-view .static-media-content ul{list-style:unset}lib-static-media-widget-view .static-media-content li,lib-static-media-widget-view .static-media-content p{margin-bottom:15px;text-align:justify;font-family:Open Sans,Arial,sans-serif;font-size:14px;line-height:25px}@media screen and (max-width: 600px){lib-static-media-widget-view .static-media-content li{margin-left:15px}lib-static-media-widget-view .static-media-content h1,lib-static-media-widget-view .static-media-content h3,lib-static-media-widget-view .static-media-content h2,lib-static-media-widget-view .static-media-content h5{font-size:16px!important}}lib-static-media-widget-view .static-media-content h1,lib-static-media-widget-view .static-media-content h3,lib-static-media-widget-view .static-media-content h2,lib-static-media-widget-view .static-media-content h4,lib-static-media-widget-view .static-media-content h5,lib-static-media-widget-view .static-media-content h6{color:#172b4d;font-family:Roboto,sans-serif;font-style:normal;font-weight:500;font-size:1em!important}lib-static-media-widget-view .static-media-content td,lib-static-media-widget-view .static-media-content li,lib-static-media-widget-view .static-media-content span,lib-static-media-widget-view .static-media-content div,lib-static-media-widget-view .static-media-content p{color:#6c798f;font-family:Roboto,sans-serif;font-style:normal;font-weight:400;font-size:14px!important}lib-static-media-widget-view .data-detail-title{width:100%;align-items:start!important}lib-static-media-widget-view .mat-icon{margin-top:.5rem}\n"] }]
    }], function () { return []; }, { widget: [{
            type: Input
        }] }); })();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RhdGljLW1lZGlhLXdpZGdldC12aWV3LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9heC1jb21tb24tdWktbGliL3NyYy9saWIvZm9ybS1vYmplY3QvZm9ybS1vYmplY3Qtdmlldy9mb3JtLW9iamVjdC13aWRnZXRzL3N0YXRpYy1tZWRpYS13aWRnZXQtdmlldy9zdGF0aWMtbWVkaWEtd2lkZ2V0LXZpZXcuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2F4LWNvbW1vbi11aS1saWIvc3JjL2xpYi9mb3JtLW9iamVjdC9mb3JtLW9iamVjdC12aWV3L2Zvcm0tb2JqZWN0LXdpZGdldHMvc3RhdGljLW1lZGlhLXdpZGdldC12aWV3L3N0YXRpYy1tZWRpYS13aWRnZXQtdmlldy5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBVSxpQkFBaUIsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUU1RSxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sNkNBQTZDLENBQUM7Ozs7O0lDQUEsNEJ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