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