import t from"@babel/runtime/helpers/defineProperty";import{round as e}from"lodash";import n from"classnames";import{RangeSliderControl as r}from"../constants.js";import o from"../Input.css.js";import{jsx as a}from"react/jsx-runtime";var i=function(i){var s=i.compStyles,u=i.rotated,p=i.precision,l=i.toInputRef,m=i.disabled,c=i.to,f=i.toInputValue,d=i.onInputChange,h=i.validateInputChange,y=e(c,p);return a("div",{children:a("input",{style:s,ref:l,disabled:m,className:n(o.rangeSliderInput,t({},o.rotated,u)),type:"text",size:"".concat(y).length||1,value:f,onChange:function(t){return d(r.TO,t)},onBlur:function(t){return h(r.TO,t)},onKeyDown:function(t){"Enter"===t.key&&h(r.TO,t)}})})};export{i as default};
//# sourceMappingURL=ToInput.js.map
