{"code":"var previousOverflow = \"\";\r\nexport var isDescendant = function (child, parent) {\r\n    var el = child;\r\n    while (el.parentNode != document.body) {\r\n        if (el.parentNode == parent)\r\n            return true;\r\n        el = el.parentNode;\r\n    }\r\n    return false;\r\n};\r\nexport var lockDocumentScroll = function () {\r\n    previousOverflow = document.body.style.overflow;\r\n    document.body.style.overflow = \"hidden\";\r\n};\r\nexport var unlockDocumentScroll = function () {\r\n    document.body.style.overflow = previousOverflow;\r\n};\r\n//# sourceMappingURL=index.js.map","map":{"version":3,"file":"index.js","sourceRoot":"/Users/austinlaverty/Projects/personal/web/libraries/V0ID/src/elements/src/","sources":["helpers/index.ts"],"names":[],"mappings":"AAAA,IAAI,gBAAgB,GAAW,EAAE,CAAC;AAGlC,MAAM,CAAC,IAAM,YAAY,GAAG,UAAE,KAAkB,EAAE,MAAmB;IAEpE,IAAI,EAAE,GAAgB,KAAK,CAAC;IAE5B,OAAQ,EAAE,CAAC,UAAU,IAAI,QAAQ,CAAC,IAAI,EAAG,CAAC;QACzC,EAAE,CAAC,CAAE,EAAE,CAAC,UAAU,IAAI,MAAO,CAAC;YAAC,MAAM,CAAC,IAAI,CAAC;QAE3C,EAAE,GAAG,EAAE,CAAC,UAAyB,CAAC;IACnC,CAAC;IAED,MAAM,CAAC,KAAK,CAAC;AACd,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,kBAAkB,GAAG;IAEjC,gBAAgB,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;IAEhD,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACzC,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,oBAAoB,GAAG;IAEnC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,gBAAgB,CAAC;AACjD,CAAC,CAAC"},"dts":{"name":"/Users/austinlaverty/Projects/personal/web/libraries/V0ID/src/elements/helpers/index.d.ts","text":"export declare const isDescendant: (child: HTMLElement, parent: HTMLElement) => boolean;\r\nexport declare const lockDocumentScroll: () => void;\r\nexport declare const unlockDocumentScroll: () => void;\r\n"}}
