import{h}from"../ema.core.js";var SliderComponent=function(){function e(){}return e.prototype.valueChangedHandler=function(e){this.valueChanged.emit(e.target.value)},e.prototype.render=function(){var e=this;return h("div",{class:"slider-container"},h("input",{type:"range",min:this.min,max:this.max,value:this.value,class:"slider",onChange:function(n){return e.valueChangedHandler(n)}}))},Object.defineProperty(e,"is",{get:function(){return"ema-slider"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"properties",{get:function(){return{max:{type:Number,attr:"max"},min:{type:Number,attr:"min"},value:{type:Number,attr:"value"}}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"events",{get:function(){return[{name:"valueChanged",method:"valueChanged",bubbles:!0,cancelable:!0,composed:!0}]},enumerable:!0,configurable:!0}),Object.defineProperty(e,"style",{get:function(){return":root{--ema-color:#343a40;--ema-primary:#007bff;--ema-secondary:#6c757d;--ema-success:#28a745;--ema-info:#17a2b8;--ema-warning:#ffc107;--ema-danger:#dc3545;--ema-light:#f8f9fa;--ema-dark:#343a40;--ema-background:#fff;--ema-background-diap:rgba(29,29,29,0.97);--ema-border-color:#c5c9cd;--ema-border:1px solid #c5c9cd;--ema-border-radius:3px 3px 3px 3px;--ema-box-shadow:1px 1px 10px 1px #ccc;--ema-margin:0.25rem;--ema-margin-sm:0.5rem;--ema-margin-md:1rem;--ema-margin-lg:1.5rem;--ema-margin-xl:2rem;--ema-padding:0.25rem;--ema-padding-sm:0.5rem;--ema-padding-md:1rem;--ema-padding-lg:1.5rem;--ema-padding-xl:2rem;--ema-gray-100:#f8f9fa;--ema-gray-200:#e9ecef;--ema-gray-300:#dee2e6;--ema-gray-400:#ced4da;--ema-gray-500:#adb5bd;--ema-gray-600:#868e96;--ema-gray-700:#495057;--ema-gray-800:#343a40;--ema-gray-900:#212529}ema-slider .slider-container{width:100%}ema-slider .slider{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:5px;border-radius:5px;background:#d3d3d3;outline:none;opacity:.7;-webkit-transition:opacity .2s;transition:opacity .2s}ema-slider .slider:hover{opacity:1}ema-slider .slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:25px;height:25px;border-radius:50%;background:#77757a;cursor:pointer}ema-slider .slider::-moz-range-thumb{width:25px;height:25px;border-radius:50%;background:#77757a;cursor:pointer}"},enumerable:!0,configurable:!0}),e}();export{SliderComponent as EmaSlider};