UNPKG

@arcgis/map-components

Version:
5 lines (4 loc) 542 B
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.33/esri/copyright.txt for details. v4.33.13 */ import{a as l,b as m}from"./3SV5PEHC.js";import{a as o}from"./HA5P4MAX.js";import{Q as i,a as e}from"./HX57SHRL.js";function d({level:a,class:r,children:s}){let t=h(a),c=`h${t}`,n=l(c);return m`<${n} .ariaLevel=${String(t)} class=${i(e(o.heading,r))} role=heading>${s}</${n}>`}function f(a,r,s){return Math.min(Math.max(a,r),s)}function h(a){return f(Math.ceil(a),1,6)}export{d as a};