{"ast":null,"code":"// A change of the browser zoom change the scrollbar size.\n// Credit https://github.com/twbs/bootstrap/blob/3ffe3a5d82f6f561b82ff78d82b32a7d14aed558/js/src/modal.js#L512-L519\nexport default function getScrollbarSize(doc) {\n  var scrollDiv = doc.createElement('div');\n  scrollDiv.style.width = '99px';\n  scrollDiv.style.height = '99px';\n  scrollDiv.style.position = 'absolute';\n  scrollDiv.style.top = '-9999px';\n  scrollDiv.style.overflow = 'scroll';\n  doc.body.appendChild(scrollDiv);\n  var scrollbarSize = scrollDiv.offsetWidth - scrollDiv.clientWidth;\n  doc.body.removeChild(scrollDiv);\n  return scrollbarSize;\n}","map":{"version":3,"sources":["C:/laragon/www/iot.mksolusi/DriverOPCDA/frontend/node_modules/@material-ui/data-grid/node_modules/@material-ui/utils/esm/getScrollbarSize.js"],"names":["getScrollbarSize","doc","scrollDiv","createElement","style","width","height","position","top","overflow","body","appendChild","scrollbarSize","offsetWidth","clientWidth","removeChild"],"mappings":"AAAA;AACA;AACA,eAAe,SAASA,gBAAT,CAA0BC,GAA1B,EAA+B;AAC5C,MAAMC,SAAS,GAAGD,GAAG,CAACE,aAAJ,CAAkB,KAAlB,CAAlB;AACAD,EAAAA,SAAS,CAACE,KAAV,CAAgBC,KAAhB,GAAwB,MAAxB;AACAH,EAAAA,SAAS,CAACE,KAAV,CAAgBE,MAAhB,GAAyB,MAAzB;AACAJ,EAAAA,SAAS,CAACE,KAAV,CAAgBG,QAAhB,GAA2B,UAA3B;AACAL,EAAAA,SAAS,CAACE,KAAV,CAAgBI,GAAhB,GAAsB,SAAtB;AACAN,EAAAA,SAAS,CAACE,KAAV,CAAgBK,QAAhB,GAA2B,QAA3B;AACAR,EAAAA,GAAG,CAACS,IAAJ,CAASC,WAAT,CAAqBT,SAArB;AACA,MAAMU,aAAa,GAAGV,SAAS,CAACW,WAAV,GAAwBX,SAAS,CAACY,WAAxD;AACAb,EAAAA,GAAG,CAACS,IAAJ,CAASK,WAAT,CAAqBb,SAArB;AACA,SAAOU,aAAP;AACD","sourcesContent":["// A change of the browser zoom change the scrollbar size.\n// Credit https://github.com/twbs/bootstrap/blob/3ffe3a5d82f6f561b82ff78d82b32a7d14aed558/js/src/modal.js#L512-L519\nexport default function getScrollbarSize(doc) {\n  const scrollDiv = doc.createElement('div');\n  scrollDiv.style.width = '99px';\n  scrollDiv.style.height = '99px';\n  scrollDiv.style.position = 'absolute';\n  scrollDiv.style.top = '-9999px';\n  scrollDiv.style.overflow = 'scroll';\n  doc.body.appendChild(scrollDiv);\n  const scrollbarSize = scrollDiv.offsetWidth - scrollDiv.clientWidth;\n  doc.body.removeChild(scrollDiv);\n  return scrollbarSize;\n}"]},"metadata":{},"sourceType":"module"}