import e from"@babel/runtime/helpers/slicedToArray";import{jsx as r}from"react/jsx-runtime";import t from"classnames";import{useState as n,useCallback as a}from"react";import o from"../Slider.scss.js";var i=function(i){var u=i.value,l=i.onChange,m=i.disabled,s=i.active,c=n(),p=e(c,2),v=p[0],f=p[1],d=a((function(){f(void 0)}),[]),b=a((function(e){f(e.target.value),null==l||l(e.target.value)}),[l]),g=a((function(e){"Enter"===e.key&&e.currentTarget.blur()}),[]);return r("input",{disabled:m,className:t(o.input,s&&o.active),type:"text",value:void 0===v?u:v,onChange:b,onBlur:d,onKeyDown:g})};export{i as SliderInput};
//# sourceMappingURL=SliderInput.js.map
