const e=require("../canUseDom.js"),t=require("../../vc-util/Dom/dynamicCSS.js"),n=require("../getScrollBarSize.js");let r=require("vue");var i=`vc-util-locker-${Date.now()}`,a=0;function o(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}function s(s){let c=(0,r.computed)(()=>!!s&&!!s.value);a+=1;let l=`${i}_${a}`;(0,r.watchEffect)(r=>{if(e.default()){if(c.value){let e=n.default();t.updateCSS(`
html body {
  overflow-y: hidden;
  ${o()?`width: calc(100% - ${e}px);`:``}
}`,l)}else t.removeCSS(l);r(()=>{t.removeCSS(l)})}},{flush:`post`})}exports.default=s,exports.isBodyOverflowing=o;