"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/slicedToArray"),t=require("react/jsx-runtime"),r=require("classnames"),a=require("react"),u=require("../Slider.scss.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=n(e),i=n(r);exports.SliderInput=function(e){var r=e.value,n=e.onChange,s=e.disabled,c=e.active,o=a.useState(),d=l.default(o,2),v=d[0],f=d[1],b=a.useCallback((function(){f(void 0)}),[]),p=a.useCallback((function(e){f(e.target.value),null==n||n(e.target.value)}),[n]),y=a.useCallback((function(e){"Enter"===e.key&&e.currentTarget.blur()}),[]);return t.jsx("input",{disabled:s,className:i.default(u.input,c&&u.active),type:"text",value:void 0===v?r:v,onChange:p,onBlur:b,onKeyDown:y})};
//# sourceMappingURL=SliderInput.js.map
