{"version":3,"file":"ScrollDisabler.BUpXdVCG.mjs","names":[],"sources":["https:/framerusercontent.com/modules/fqN3uoilbHObdkNrAE5P/dVaQT63MSB9kb1a5ufqa/ScrollDisabler.js"],"sourcesContent":["// Component that disables scrolling when mounted\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function ScrollDisabler(props){const{isActive,showIndicator,indicatorText,backgroundColor,textColor,font}=props;useEffect(()=>{if(typeof window===\"undefined\")return;// Store original overflow values\nconst originalBodyOverflow=document.body.style.overflow;const originalHtmlOverflow=document.documentElement.style.overflow;// Disable scrolling\ndocument.body.style.overflow=\"hidden\";document.documentElement.style.overflow=\"hidden\";// Cleanup function to restore scrolling\nreturn()=>{document.body.style.overflow=originalBodyOverflow;document.documentElement.style.overflow=originalHtmlOverflow;};},[]);if(!showIndicator){return null;}return /*#__PURE__*/_jsx(\"div\",{style:{...props.style,position:\"relative\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",backgroundColor,color:textColor,padding:\"12px 16px\",borderRadius:8,minWidth:\"max-content\",...font},children:indicatorText});}addPropertyControls(ScrollDisabler,{isActive:{type:ControlType.Boolean,title:\"Disable Scrolling\",defaultValue:true,enabledTitle:\"Disabled\",disabledTitle:\"Enabled\"},showIndicator:{type:ControlType.Boolean,title:\"Show Indicator\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},indicatorText:{type:ControlType.String,title:\"Indicator Text\",defaultValue:\"Scrolling Disabled\",hidden:({showIndicator})=>!showIndicator},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#F5F5F5\",hidden:({showIndicator})=>!showIndicator},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\",hidden:({showIndicator})=>!showIndicator},font:{type:ControlType.Font,title:\"Font\",defaultValue:{fontSize:\"14px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"},controls:\"extended\",defaultFontType:\"sans-serif\",hidden:({showIndicator})=>!showIndicator}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ScrollDisabler\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ScrollDisabler.map"],"mappings":"wLAIG,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,WAAS,gBAAc,gBAAc,kBAAgB,YAAU,QAAM,EAGsC,OAHhC,MAAc,CAAC,GAAU,IAAS,OAAY,OAChL,IAAM,EAAqB,SAAS,KAAK,MAAM,SAAe,EAAqB,SAAS,gBAAgB,MAAM,SAElH,MADA,UAAS,KAAK,MAAM,SAAS,SAAS,SAAS,gBAAgB,MAAM,SAAS,aACpE,CAAC,SAAS,KAAK,MAAM,SAAS,EAAqB,SAAS,gBAAgB,MAAM,SAAS,IAAyB,EAAE,CAAC,CAAK,EAAgD,EAAK,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,MAAM,SAAS,WAAW,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,kBAAgB,MAAM,EAAU,QAAQ,YAAY,aAAa,EAAE,SAAS,cAAc,GAAG,EAAK,CAAC,SAAS,EAAc,CAAC,CAAtQ,0BANjH,IAA6B,IAAoD,CAMwS,EAAoB,EAAe,CAAC,SAAS,CAAC,KAAK,EAAY,QAAQ,MAAM,oBAAoB,aAAa,GAAK,aAAa,WAAW,cAAc,UAAU,CAAC,cAAc,CAAC,KAAK,EAAY,QAAQ,MAAM,iBAAiB,aAAa,GAAK,aAAa,OAAO,cAAc,OAAO,CAAC,cAAc,CAAC,KAAK,EAAY,OAAO,MAAM,iBAAiB,aAAa,qBAAqB,QAAQ,CAAC,mBAAiB,C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