import { h } from "@stencil/core";
import { render as renderFlex } from "flex-render";
export class FlexMessageRender {
    flexJson;
    render() {
        if (!this.flexJson) {
            return h("div", null, "Please provide Flex Message JSON");
        }
        const htmlString = renderFlex(this.flexJson);
        return (h("div", { innerHTML: htmlString }));
    }
    static get is() { return "flex-message-render"; }
    static get originalStyleUrls() {
        return {
            "$": ["flex-message-render.css"]
        };
    }
    static get styleUrls() {
        return {
            "$": ["flex-message-render.css"]
        };
    }
    static get properties() {
        return {
            "flexJson": {
                "type": "any",
                "mutable": false,
                "complexType": {
                    "original": "any",
                    "resolved": "any",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "flex-json"
            }
        };
    }
}
