import{LitElement as e,html as t,css as l}from"../../../lit/index.js";import{SimpleFieldsBaseStyles as s}from"./simple-fields-ui.js";import{encapScript as i,wipeSlot as r}from"../../utils/utils.js";class SimpleFieldsHtmlBlock extends e{constructor(){super()}static get tag(){return"simple-fields-html-block"}static get styles(){return[...s,l`
        :host {
          display: block;
        }
      `]}render(){return t`<div class="html"><slot></slot></div>`}static get properties(){return{value:{type:String}}}updated(e){e.forEach(((e,t)=>{"value"===t&&this._valueChanged(this.value)}))}_valueChanged(e){r(this);let t=i(e),l=globalThis.document.createRange().createContextualFragment(t);this.appendChild(l)}}customElements.define(SimpleFieldsHtmlBlock.tag,SimpleFieldsHtmlBlock);export{SimpleFieldsHtmlBlock};