{"version":3,"file":"GlobalStyleInject.xTYunUe9.mjs","names":[],"sources":["https:/framerusercontent.com/modules/AAnG6flZbQWnPZJoxbnn/hwypCVBnGKw3CyKmYu10/GlobalStyleInject.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{Frame,addPropertyControls,ControlType}from\"framer\";export function GlobalStyleInject({active=true,device=\"mobile\",mobileDuration=2e3,desktopDuration=2e3,hideScrollbar=true}){React.useEffect(()=>{if(!active)return;const isMobile=window.innerWidth<=768;const shouldApply=device===\"mobile\"&&isMobile||device===\"desktop\"&&!isMobile;if(!shouldApply)return;const duration=isMobile?mobileDuration:desktopDuration;const style=document.createElement(\"style\");style.id=\"global-style-inject\";style.innerHTML=`\n            body.no-scroll {\n                overflow: hidden;\n                touch-action: none;\n                position: fixed;\n                width: 100%;\n                height: 100%;\n                ${isMobile?\"overscroll-behavior: none;\":\"\"}\n            }\n\n            ${hideScrollbar?`\n            html::-webkit-scrollbar,\n            body::-webkit-scrollbar,\n            *::-webkit-scrollbar {\n                display: none;\n                width: 0 !important;\n                height: 0 !important;\n            }\n\n            html, body, * {\n                scrollbar-width: none !important;\n                -ms-overflow-style: none !important;\n            }`:\"\"}\n        `;document.head.appendChild(style);document.body.classList.add(\"no-scroll\");const timeout=setTimeout(()=>{document.body.classList.remove(\"no-scroll\");},duration);return()=>{clearTimeout(timeout);document.body.classList.remove(\"no-scroll\");const existing=document.getElementById(\"global-style-inject\");if(existing?.parentNode){existing.parentNode.removeChild(existing);}};},[active,device,mobileDuration,desktopDuration,hideScrollbar]);return /*#__PURE__*/_jsx(Frame,{width:0,height:0});}// Framer UI Controls\naddPropertyControls(GlobalStyleInject,{active:{title:\"Inject Styles\",type:ControlType.Boolean,defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},device:{title:\"Device\",type:ControlType.Enum,options:[\"mobile\",\"desktop\"],optionTitles:[\"Mobile\",\"Desktop\"],defaultValue:\"mobile\"},mobileDuration:{title:\"Mobile Lock (ms)\",type:ControlType.Number,min:0,max:1e4,step:100,defaultValue:2e3,displayStepper:true,hidden:props=>!props.active||props.device===\"desktop\"},desktopDuration:{title:\"Desktop Lock (ms)\",type:ControlType.Number,min:0,max:1e4,step:100,defaultValue:2e3,displayStepper:true,hidden:props=>!props.active||props.device===\"mobile\"},hideScrollbar:{title:\"Hide Scrollbar\",type:ControlType.Boolean,defaultValue:true,enabledTitle:\"Yes\",disabledTitle:\"No\",description:\"Scroll bar visibility\",hidden:props=>!props.active}});\nexport const __FramerMetadata__ = {\"exports\":{\"GlobalStyleInject\":{\"type\":\"reactComponent\",\"name\":\"GlobalStyleInject\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GlobalStyleInject.map"],"mappings":"qTAAiI,SAAgB,EAAkB,CAAC,UAAO,EAAK,SAAO,SAAS,iBAAe,IAAI,kBAAgB,IAAI,iBAAc,EAAK,CAAC,CAuBgM,MAvB/L,GAAgB,IAAI,CAAC,IAAI,EAAO,OAAO,IAAM,EAAS,EAAO,YAAY,IAAU,EAAY,IAAS,UAAU,GAAU,IAAS,YAAY,EAAS,IAAI,EAAY,OAAO,IAAM,EAAS,EAAS,EAAe,EAAsB,EAAM,SAAS,cAAc,QAAQ,CAuBpe,AAvBqe,EAAM,GAAG,sBAAsB,EAAM,WAAW;;;;;;;kBAO9iB,EAAS,6BAA6B,GAAG;;;cAG7C,EAAA;;;;;;;;;;;;eAYC,GAAG;UACR,SAAS,KAAK,YAAY,EAAM,CAAC,SAAS,KAAK,UAAU,IAAI,YAAY,CAAC,IAAM,EAAQ,WAAW,IAAI,CAAC,SAAS,KAAK,UAAU,OAAO,YAAY,AAAE,EAAC,EAAS,CAAC,MAAM,IAAI,CAAuB,AAAtB,aAAa,EAAQ,CAAC,SAAS,KAAK,UAAU,OAAO,YAAY,CAAC,IAAM,EAAS,SAAS,eAAe,sBAAsB,CAAC,AAAG,G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