var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
import { Component, Input } from '@angular/core';
import { DomSanitizer } from '@angular/platform-browser';
import { ComponentHelper } from '../../../classes/component-helper';
var BlockHtmlEcComponent = /** @class */ (function (_super) {
    __extends(BlockHtmlEcComponent, _super);
    function BlockHtmlEcComponent(sanitizer) {
        var _this = _super.call(this) || this;
        _this.sanitizer = sanitizer;
        _this.ecOnConstruct();
        return _this;
    }
    BlockHtmlEcComponent.prototype.ngOnInit = function () {
        this.html_content = this.sanitizer.bypassSecurityTrustHtml(this.html_content);
        this.ecOnInit();
    };
    BlockHtmlEcComponent.ctorParameters = function () { return [
        { type: DomSanitizer }
    ]; };
    __decorate([
        Input()
    ], BlockHtmlEcComponent.prototype, "html_content", void 0);
    BlockHtmlEcComponent = __decorate([
        Component({
            selector: 'app-block-html-ec',
            template: "<div [innerHTML]=\"html_content\"></div>",
            styles: [""]
        })
    ], BlockHtmlEcComponent);
    return BlockHtmlEcComponent;
}(ComponentHelper));
export { BlockHtmlEcComponent };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozL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