import { __rest as k, __assign as r } from "../../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.js";
import * as a from "react";
import { zeroRightClassName as E, fullWidthClassName as I } from "../../../../../react-remove-scroll-bar@2.3.8_@types_react@18.3.3_react@18.3.0-canary-3d9b20132-20240124/node_modules/react-remove-scroll-bar/dist/es2015/constants.js";
import { effectCar as Z } from "./medium.js";
import { useMergeRefs as W } from "../../../../../use-callback-ref@1.3.3_@types_react@18.3.3_react@18.3.0-canary-3d9b20132-20240124/node_modules/use-callback-ref/dist/es2015/useMergeRef.js";
var o = function() {
}, m = a.forwardRef(function(e, d) {
  var l = a.useRef(null), n = a.useState({
    onScrollCapture: o,
    onWheelCapture: o,
    onTouchMoveCapture: o
  }), f = n[0], h = n[1], u = e.forwardProps, t = e.children, v = e.className, C = e.removeScrollBar, g = e.enabled, P = e.shards, R = e.sideCar, S = e.noIsolation, b = e.inert, w = e.allowPinchZoom, s = e.as, N = s === void 0 ? "div" : s, M = e.gapMode, _ = k(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), B = R, i = W([l, d]), c = r(r({}, _), f);
  return a.createElement(
    a.Fragment,
    null,
    g && a.createElement(B, { sideCar: Z, removeScrollBar: C, shards: P, noIsolation: S, inert: b, setCallbacks: h, allowPinchZoom: !!w, lockRef: l, gapMode: M }),
    u ? a.cloneElement(a.Children.only(t), r(r({}, c), { ref: i })) : a.createElement(N, r({}, c, { className: v, ref: i }), t)
  );
});
m.defaultProps = {
  enabled: !0,
  removeScrollBar: !0,
  inert: !1
};
m.classNames = {
  fullWidth: I,
  zeroRight: E
};
export {
  m as RemoveScroll
};
//# sourceMappingURL=UI.js.map
