import{round as n}from"lodash";import{RangeSliderControl as t}from"../constants.js";import e from"../Input.css.js";import{jsx as r}from"react/jsx-runtime";var o=function(o){var a=o.compStyles,i=o.fromInputRef,u=o.disabled,s=o.precision,p=o.from,f=o.fromInputValue,l=o.onInputChange,m=o.validateInputChange,c=n(p,s);return r("div",{children:r("input",{style:a,ref:i,disabled:u,className:e.rangeSliderInput,type:"text",size:"".concat(c).length||1,value:f,onChange:function(n){l(t.FROM,n)},onBlur:function(n){return m(t.FROM,n)},onKeyDown:function(n){"Enter"===n.key&&m(t.FROM,n)}})})};export{o as default};
