{"version":3,"file":"ScrollbarHider.Ddmd3Wvg.mjs","names":[],"sources":["https:/framerusercontent.com/modules/VOZ2MgHOGEaKFFBcI53W/M9V7kGz3KE5RPiVT8Nsu/ScrollbarHider.js"],"sourcesContent":["// Hides the browser scroll bar for all popular browsers when mounted\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * ScrollbarHider\n *\n * Hides the browser scroll bar globally when active is true. Works on all major browsers.\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function ScrollbarHider(props){const{active}=props;useEffect(()=>{if(!active)return;if(typeof window===\"undefined\")return;const style=document.createElement(\"style\");style.setAttribute(\"data-hide-scrollbar\",\"true\");style.innerHTML=`\n            html, body {\n                scrollbar-width: none !important; /* Firefox */\n                -ms-overflow-style: none !important; /* IE 10+ */\n            }\n            html::-webkit-scrollbar, body::-webkit-scrollbar {\n                display: none !important; /* Chrome, Safari, Opera */\n            }\n        `;document.head.appendChild(style);return()=>{if(style.parentNode)style.parentNode.removeChild(style);};},[active]);return /*#__PURE__*/_jsx(\"div\",{style:{display:\"none\"}});}addPropertyControls(ScrollbarHider,{active:{type:ControlType.Boolean,title:\"Active\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ScrollbarHider\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ScrollbarHider.map"],"mappings":"wLAQG,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,UAAQ,EAQ6D,OARvD,MAAc,CAAmB,GAAf,CAAC,GAAwB,IAAS,OAAY,OAAO,IAAM,EAAM,SAAS,cAAc,OAAO,EAQ3I,OAR6I,EAAM,aAAa,sBAAsB,MAAM,EAAE,EAAM,UAAU;;;;;;;;UAQ/O,SAAS,KAAK,YAAY,CAAK,MAAY,CAAI,EAAM,YAAW,EAAM,WAAW,YAAY,CAAK,CAAE,CAAE,EAAE,CAAC,CAAM,CAAC,EAAsB,EAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,MAAM,CAAC,CAAC,CAAE,qBAf3I,IAA6B,IAAoD,EAe2D,EAAoB,EAAe,CAAC,OAAO,CAAC,KAAK,EAAY,QAAQ,MAAM,SAAS,aAAa,GAAK,aAAa,KAAK,cAAc,KAAK,CAAC,CAAC"}