"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.disableScroll=function(e){var t,o=[];if(function(e){return document.body===e?window.innerWidth>document.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(e)){var r=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)+r),"px")}var l=e.parentElement,n="HTML"===(null==l?void 0:l.nodeName)&&"scroll"===window.getComputedStyle(l).overflowY?l:e;return o.push({value:n.style.overflow,property:"overflow",el:n},{value:n.style.overflowX,property:"overflow-x",el:n},{value:n.style.overflowY,property:"overflow-y",el:n}),n.style.overflow="hidden",function(){o.forEach((function(e){var t=e.value,o=e.el,r=e.property;t?o.style.setProperty(r,t):o.style.removeProperty(r)}))}};
//# sourceMappingURL=utils.js.map
