{"version":3,"file":"DisableMenu.CS6iJCoo.mjs","names":[],"sources":["https:/framerusercontent.com/modules/0YArRbIyTwcaLkLTuAPf/CAPS3w7a5DobdbRWGI6n/DisableMenu.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";// 这个 override 用于禁用移动端长按弹出的系统菜单和文字选中\nexport function withNoContextMenu(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,// 核心 CSS：禁用 iOS 的长按呼出菜单\nWebkitTouchCallout:\"none\",// 禁用文本选中（防止长按时文字变蓝）\nWebkitUserSelect:\"none\",userSelect:\"none\"},// 核心事件：拦截右键/长按事件 (兼容 Android 和部分桌面端)\nonContextMenu:e=>{e.preventDefault();}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withNoContextMenu\":{\"type\":\"reactHoc\",\"name\":\"withNoContextMenu\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DisableMenu.map"],"mappings":"oGACA,SAAgB,EAAkB,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MACzH,mBAAmB,OACnB,iBAAiB,OAAO,WAAW,OAAO,CAC1C,cAAc,GAAG,CAAC,EAAE,gBAAgB,EAAG,CAAC,kBAJG"}