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