var e=function(e){var t,o=[];if(function(e){return document.body===e?window.innerWidth>document.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(e)){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.document.documentElement.clientWidth;return e.innerWidth-t}(window);o.push({value:e.style.paddingRight,property:"padding-right",el:e}),e.style.paddingRight="".concat((t=e,(parseInt(window.getComputedStyle(t).paddingRight,10)||0)+n),"px")}var r=e.parentElement,l="HTML"===(null==r?void 0:r.nodeName)&&"scroll"===window.getComputedStyle(r).overflowY?r:e;return o.push({value:l.style.overflow,property:"overflow",el:l},{value:l.style.overflowX,property:"overflow-x",el:l},{value:l.style.overflowY,property:"overflow-y",el:l}),l.style.overflow="hidden",function(){o.forEach((function(e){var t=e.value,o=e.el,n=e.property;t?o.style.setProperty(n,t):o.style.removeProperty(n)}))}};export{e as disableScroll};
//# sourceMappingURL=utils.js.map
