import { __decorate } from "tslib";
import { Component, ChangeDetectionStrategy } from '@angular/core';
import { LayoutComponentBase } from '@anglr/dynamic/layout';
import { LayoutEditorMetadata } from '@anglr/dynamic/layout-editor';
import { HostDisplayBlockStyle } from '@anglr/common';
import { RichTextBlockLayoutMetadataLoader } from './richTextBlock.metadata';
import * as i0 from "@angular/core";
/**
 * Component used for displaying rich text block
 */
let RichTextBlockSAComponent = class RichTextBlockSAComponent extends LayoutComponentBase {
    //######################### protected methods - overrides #########################
    /**
     * @inheritdoc
     */
    onOptionsSet() {
        this.componentElement.nativeElement.innerHTML = this.options?.content ?? '';
    }
};
RichTextBlockSAComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: RichTextBlockSAComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
RichTextBlockSAComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.4", type: RichTextBlockSAComponent, isStandalone: true, selector: "rich-text-block", usesInheritance: true, ngImport: i0, template: '', isInline: true, styles: [":host{display: block;}"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
RichTextBlockSAComponent = __decorate([
    LayoutEditorMetadata(RichTextBlockLayoutMetadataLoader)
], RichTextBlockSAComponent);
export { RichTextBlockSAComponent };
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: RichTextBlockSAComponent, decorators: [{
            type: Component,
            args: [{ selector: 'rich-text-block', template: '', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display: block;}"] }]
        }] });
//# sourceMappingURL=richTextBlock.component.js.map