/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{__decorate as e}from"tslib";import{property as t,subclass as o}from"../../core/accessorSupport/decorators.js";import s from"../Widget.js";import{loadCalciteComponents as i}from"../support/componentsUtils.js";import{tsx as r}from"../support/widget.js";import{labeledSliderCss as a}from"./css.js";let l=class extends s{constructor(e){super(e),this._onChange=e=>{this.onChange(e.currentTarget.value)}}render(){const{label:e}=this;return r("div",{class:a.base},r("calcite-label",{scale:"s"},e,r("calcite-slider",{"aria-label":e,disabled:this.disabled,max:1,min:0,step:.01,value:this.value,onCalciteSliderChange:this._onChange,onCalciteSliderInput:this._onChange})))}loadDependencies(){return i({label:()=>import("@esri/calcite-components/dist/components/calcite-label"),slider:()=>import("@esri/calcite-components/dist/components/calcite-slider")})}};e([t()],l.prototype,"value",void 0),e([t()],l.prototype,"onChange",void 0),e([t()],l.prototype,"disabled",void 0),l=e([o("esri.widgets.Weather.LabeledSlider")],l);export{l as LabeledSlider};
