{"version":3,"names":["toggleScrollLock","shouldLockScroll","isInStorybook","document","documentElement","classList","toggle","body"],"sources":["../src/utils/scroll-lock.ts"],"sourcesContent":["import { isInStorybook } from './is-in-storybook';\n\n/** Toggle scroll locking on HTML and body, except when in Storybook */\nexport function toggleScrollLock(shouldLockScroll: boolean) {\n\tif (isInStorybook()) {\n\t\treturn;\n\t}\n\n\tdocument.documentElement.classList.toggle('zds-overflow-hidden', shouldLockScroll);\n\tdocument.body.classList.toggle('zds-overflow-hidden', shouldLockScroll);\n}\n"],"mappings":"6CAGgBA,EAAiBC,GAChC,GAAIC,IAAiB,CACpB,M,CAGDC,SAASC,gBAAgBC,UAAUC,OAAO,sBAAuBL,GACjEE,SAASI,KAAKF,UAAUC,OAAO,sBAAuBL,EACvD,Q","ignoreList":[]}