/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{__decorate as e}from"tslib";import{property as t,subclass as l}from"../../../core/accessorSupport/decorators.js";import s from"../../Widget.js";import{labelCss as o}from"./css.js";import{loadCalciteComponents as i}from"../../support/componentsUtils.js";import{tsx as r}from"../../support/widget.js";const n={clearLevel:"",selectLevel:""};let c=class extends s{constructor(e,t){super(e,t),this.level=null,this.active=!1,this.hovering=!1,this.onClear=()=>{}}loadDependencies(){return i({fab:()=>import("@esri/calcite-components/dist/components/calcite-fab")})}render(){const e=this.messages??n;if(null==this.level)return r("div",{class:o.empty,title:e.selectLevel},e.selectLevel);const t=e.clearLevel;return r("div",{"aria-label":t,bind:this,class:this.classes(o.base,{[o.active]:this.active,[o.hover]:this.hovering}),title:t,onclick:this.onClear},r("span",null,this.level),r("calcite-fab",{appearance:"outline-fill",class:o.clearButton,disabled:!this.active,icon:"x",key:"clear-button",kind:"neutral",scale:"s",onclick:this.onClear}))}};e([t()],c.prototype,"level",void 0),e([t({nonNullable:!0})],c.prototype,"active",void 0),e([t({nonNullable:!0})],c.prototype,"hovering",void 0),e([t()],c.prototype,"messages",void 0),e([t({nonNullable:!0})],c.prototype,"onClear",void 0),c=e([l("esri.widgets.BuildingExplorer.BuildingLevelPicker.Label")],c);export{c as Label};
