{"version":3,"file":"StopScroll_Prod.CIYQVsva.mjs","names":["_Fragment"],"sources":["https:/framerusercontent.com/modules/9ajhXMTvNHa3o84QkAph/rXKgpKwKbYpnZx6zhYLY/StopScroll_Prod.js"],"sourcesContent":["import{jsx as _jsx,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerDisableUnlink\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function StopScroll(props){const{toggle}=props;// `height: auto` is unconditional on purpose. Framer's preview injects\n// `html, body { width: 100%; height: 100% }`, which pins body to one\n// viewport. Locking overflow on top of that collapses the viewport scroll\n// range, so the browser clamps the scroll offset to 0 and never restores it\n// -- the page jumps to the top. Published pages already compute html/body\n// to auto height, so the declaration is a no-op there and no environment\n// check is needed. Width is left alone; only the height causes the clamp.\nreturn toggle?/*#__PURE__*/_jsx(\"style\",{\"data-build\":\"stop-scroll-prod-20261007-01\",\"data-frameruni-stop-scroll\":true,children:`html,body { overflow: hidden !important; height: auto !important; }`}):/*#__PURE__*/_jsx(_Fragment,{});}StopScroll.displayName=\"Block Scroll\";addPropertyControls(StopScroll,{toggle:{type:ControlType.Boolean,title:\"Page scroll\",enabledTitle:\"Disabled\",disabledTitle:\"Enabled\",defaultValue:false,// @ts-expect-error Framer Boolean supports segmented display at runtime\n// (same pattern as Playground Mode). Station note requires vertical\n// Enabled/Disabled segments for property visibility.\ndisplaySegmentedControl:true,segmentedControlDirection:\"vertical\",description:\"More components at [Framer University](https://frameruni.link/cc).\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StopScroll\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"*\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StopScroll_Prod.map"],"mappings":"oKAKG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,UAAQ,EAO3D,OAAO,EAAoB,EAAK,QAAQ,CAAC,aAAa,+BAA+B,6BAA6B,GAAK,SAAS,qEAAqE,CAAC,EAAe,EAAKA,EAAU,CAAC,CAAC,CAAE,iBAZxK,IAAoD,EAYqH,EAAW,YAAY,eAAe,EAAoB,EAAW,CAAC,OAAO,CAAC,KAAK,EAAY,QAAQ,MAAM,cAAc,aAAa,WAAW,cAAc,UAAU,aAAa,GAGja,wBAAwB,GAAK,0BAA0B,WAAW,YAAY,oEAAoE,CAAC,CAAC"}