/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../../../chunks/_rollupPluginBabelHelpers","../../../chunks/tslib.es6","../../../core/maybe","../../../core/accessorSupport/decorators/property","../../../core/arrayUtils","../../../core/has","../../../core/accessorSupport/ensureType","../../../core/accessorSupport/decorators/subclass","../../Widget","../../support/widgetUtils","../../support/jsxFactory"],(function(e,t,o,r,l,s,i,a,c,n,p,u){"use strict";const v="esri-building-level-picker-label",b={iconClose:"esri-icon-close",base:`${v}`,active:`${v}--active`,hover:`${v}--hover`,empty:`${v}--empty`,clearButton:`${v}__clear-button`},d={clearLevel:"",selectLevel:""};e.Label=function(e){function o(t,o){var r;return(r=e.call(this,t,o)||this).level=null,r.active=!1,r.hovering=!1,r.onClear=()=>{},r}return t._inheritsLoose(o,e),o.prototype.render=function(){const e=r.unwrapOr(this.messages,d);if(r.isNone(this.level))return u.tsx("div",{class:b.empty,title:e.selectLevel},e.selectLevel);const t=e.clearLevel;return u.tsx("div",{bind:this,class:this.classes(b.base,{[b.active]:this.active,[b.hover]:this.hovering}),onclick:this.onClear,title:t,"aria-label":t},u.tsx("span",null,this.level),u.tsx("button",{bind:this,class:this.classes(b.clearButton,b.iconClose),disabled:!this.active,onclick:this.onClear,type:"button"}))},o}(n),o.__decorate([l.property()],e.Label.prototype,"level",void 0),o.__decorate([l.property({nonNullable:!0})],e.Label.prototype,"active",void 0),o.__decorate([l.property({nonNullable:!0})],e.Label.prototype,"hovering",void 0),o.__decorate([l.property()],e.Label.prototype,"messages",void 0),o.__decorate([l.property({nonNullable:!0})],e.Label.prototype,"onClear",void 0),e.Label=o.__decorate([c.subclass("esri.widgets.BuildingExplorer.BuildingLevelPicker.Label")],e.Label),Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
