{"version":3,"file":"WithNoLongPress.Cd4eKpgb.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/1iAsOzXskDBnA3EuztZM/Vf1llMptf6S8JdLp5FSd/WithNoLongPress.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";export function withNoLongPress(Component){return props=>{const ref=useRef(null);useEffect(()=>{const el=ref.current;if(!el)return;const style={webkitTouchCallout:\"none\",webkitUserDrag:\"none\",userSelect:\"none\",webkitUserSelect:\"none\"};const apply=()=>{// the wrapper itself + every link/img inside the component\nconst targets=[el,...el.querySelectorAll(\"a, img, button\")];targets.forEach(t=>Object.assign(t.style,style));};apply();// in case Framer re-renders the component's internals\nconst observer=new MutationObserver(apply);observer.observe(el,{childList:true,subtree:true});return()=>observer.disconnect();},[]);return /*#__PURE__*/_jsx(\"div\",{ref:ref,style:{display:\"contents\"},children:/*#__PURE__*/_jsx(Component,{...props})});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withNoLongPress\":{\"type\":\"reactHoc\",\"name\":\"withNoLongPress\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./WithNoLongPress.map"],"mappings":"yHAA+E,SAAgB,EAAgB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAIA,EAAO,IAAI,EAE1B,OAF4B,MAAc,CAAC,IAAM,EAAG,EAAI,QAAQ,GAAG,CAAC,EAAG,OAAO,IAAM,EAAM,CAAC,mBAAmB,OAAO,eAAe,OAAO,WAAW,OAAO,iBAAiB,MAAM,EAAQ,MAAU,CAC9Q,CAA7C,EAAG,GAAG,EAAG,iBAAiB,gBAAgB,CAAS,CAAC,CAAC,QAAQ,GAAG,OAAO,OAAO,EAAE,MAAM,CAAK,CAAC,CAAE,EAAE,EAAM,EACrH,IAAM,EAAS,IAAI,iBAAiB,CAAK,EAAqD,OAAnD,EAAS,QAAQ,EAAG,CAAC,UAAU,GAAK,QAAQ,EAAI,CAAC,MAAY,EAAS,WAAW,CAAE,EAAE,CAAC,CAAC,EAAsB,EAAK,MAAM,CAAK,MAAI,MAAM,CAAC,QAAQ,UAAU,EAAE,SAAsB,EAAK,EAAU,CAAC,GAAG,CAAK,CAAC,CAAC,CAAC,CAAE,CAAE,iBAFlN,IAAoC"}