import e from"@babel/runtime/helpers/defineProperty";function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(r){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?t(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}var n=function(e,t,r){var n=t.x,o=void 0===n?0:n,c=t.width,i=void 0===c?0:c;return{new:r?2*t.x+t.width-e.clientX:e.clientX,min:o,max:o+i}},o={getCoordinates:n,getBarCoordinates:function(e,t,o,c){var i=t.clientX-t.x,u=c?t.width-i:i,a=n(e,o,c);return r(r({},a),{},{new:a.new-u})},getThumbStyles:function(e,t){return{left:"".concat(e,"%"),zIndex:t?10:2}},getBarStyles:function(e,t){return{left:"".concat(e,"%"),width:"".concat(t-e,"%")}}};export{o as horizontalStrategy};
//# sourceMappingURL=horizontal.js.map
