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