import { Component, Input } from '@angular/core';
import * as i0 from "@angular/core";
export class ScrollableTextComponent {
    ngOnInit() {
        const obj = JSON.parse(this.componentData);
        this.scrollableText = obj;
    }
    static { this.ɵfac = function ScrollableTextComponent_Factory(t) { return new (t || ScrollableTextComponent)(); }; }
    static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ScrollableTextComponent, selectors: [["app-scrollable-text"]], inputs: { componentData: "componentData" }, decls: 2, vars: 1, consts: [[1, "scrollable-text"], [3, "innerHTML"]], template: function ScrollableTextComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "div", 0);
            i0.ɵɵelement(1, "div", 1);
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("innerHTML", ctx.scrollableText.text, i0.ɵɵsanitizeHtml);
        } }, styles: [".scrollable-text[_ngcontent-%COMP%]{height:250px;border:1px solid #ccc;overflow-y:scroll;padding:10px;white-space:pre-wrap}"] }); }
}
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ScrollableTextComponent, [{
        type: Component,
        args: [{ selector: 'app-scrollable-text', template: "<div class=\"scrollable-text\">\r\n    <div [innerHTML]=\"scrollableText.text\"></div>\r\n</div>", styles: [".scrollable-text{height:250px;border:1px solid #ccc;overflow-y:scroll;padding:10px;white-space:pre-wrap}\n"] }]
    }], null, { componentData: [{
            type: Input
        }] }); })();
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ScrollableTextComponent, { className: "ScrollableTextComponent", filePath: "lib\\components\\scrollable-text\\scrollable-text.component.ts", lineNumber: 9 }); })();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2Nyb2xsYWJsZS10ZXh0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3R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