UNPKG

@arcgis/map-components

Version:
2 lines 1.36 kB
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */ import{a as s}from"./YNBI4ACL.js";import"./54VXNFQ4.js";import"./PBSJQPB2.js";import{O as n,U as a,a as r,b as i}from"./WUJCCZQC.js";import"./3TTFCHAA.js";export default $arcgis.t(([{renderingSanitizer:o}])=>{var c=r`.heading{margin-top:0;margin-bottom:var(--calcite-spacing-xxs);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size-xl);font-weight:var(--calcite-font-weight-regular);line-height:var(--calcite-font-line-height-relative-tight)}.description{margin-bottom:var(--calcite-spacing-sm);font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular);line-height:var(--calcite-font-line-height-relative-normal)}`,t=class extends n{constructor(){super(...arguments),this.headingLevel=2}static{this.properties={description:1,headingLevel:9,heading:1}}static{this.styles=c}render(){return i`<div class="root">${this._renderHeading()}${this._renderDescription()}</div>`}_renderHeading(){let{heading:e}=this;return e?s({class:"heading",level:this.headingLevel,excludeGlobalCss:!0,children:i`<div .innerHTML=${o.sanitize(e)??""}></div>`}):null}_renderDescription(){let{description:e}=this;return e?i`<div class="description" .innerHTML=${o.sanitize(e)??""}></div>`:null}};a("arcgis-feature-element-info",t);return t},"applications/Components/sanitizerUtils")