/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{__decorate as e}from"tslib";import{subclass as t}from"../../../core/accessorSupport/decorators.js";import{css as o}from"../resources.js";import{isWidget as r,tsx as s,hasDomNode as n}from"../../support/widget.js";const d=d=>{const c=d;let i=class extends c{constructor(){super(...arguments),this.renderNodeContent=e=>r(e)&&!e.destroyed?s("div",{class:o.contentNode,key:e},e.render()):e instanceof HTMLElement?s("div",{afterCreate:this._attachToNode,bind:e,class:o.contentNode,key:e}):n(e)?s("div",{afterCreate:this._attachToNode,bind:e.domNode,class:o.contentNode,key:e}):null}_attachToNode(e){const t=this;e.appendChild(t)}};return i=e([t("esri.widgets.Feature.support.FeatureContentMixin")],i),i};export{d as FeatureContentMixin};
