/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{__decorate as e}from"tslib";import{property as t,subclass as i}from"../../../core/accessorSupport/decorators.js";import r from"../../Widget.js";import{Heading as s}from"../../support/Heading.js";import{tsx as o}from"../../support/widget.js";const n="esri-feature-element-info",l={base:n,title:`${n}__title`,description:`${n}__description`};let p=class extends r{constructor(e,t){super(e,t),this.description=null,this.headingLevel=2,this.title=null}render(){return o("div",{class:l.base},this._renderTitle(),this._renderDescription())}_renderTitle(){const{title:e}=this;return e?o(s,{class:l.title,innerHTML:e,level:this.headingLevel}):null}_renderDescription(){const{description:e}=this;return e?o("div",{class:l.description,innerHTML:e,key:"description"}):null}};e([t()],p.prototype,"description",void 0),e([t()],p.prototype,"headingLevel",void 0),e([t()],p.prototype,"title",void 0),p=e([i("esri.widgets.Feature.support.FeatureElementInfo")],p);export{p as default};
