{"version":3,"file":"WithPointerCursor.BDxnhuAx.mjs","names":["useRef","__esmMin","init_ssg_sandbox_shims","window","c","J","init_jsx_runtime","ce","init_npm_react_18_3_1","de","withPointerCursor","wrapperRef","root","observer","isApplying","frameId","applyPointerCursor","elementWithStyle","node","currentValue","currentPriority","Component","props","init_WithPointerCursor"],"sources":["https:/framerusercontent.com/modules/UZ1ORDn234hDuSzSlZ7L/j6oV8fSyEsbAcOoIek5M/WithPointerCursor.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect,useRef}from\"react\";// User request: Keep a minimal SSR-safe Framer override that enforces cursor:pointer inline (important) on wrapped content and descendants, including hover-variant DOM/style mutations.\nexport function withPointerCursor(Component){return /*#__PURE__*/forwardRef(function WithPointerCursor(props,ref){const wrapperRef=useRef(null);useEffect(()=>{if(typeof window===\"undefined\")return;const root=wrapperRef.current;if(!root)return;let observer=null;let isApplying=false;let frameId=0;const applyPointerCursor=()=>{if(!root||isApplying)return;isApplying=true;if(observer)observer.disconnect();const targets=root.querySelectorAll(\"*\");targets.forEach(node=>{const elementWithStyle=node;if(!elementWithStyle.style)return;const currentValue=elementWithStyle.style.getPropertyValue(\"cursor\");const currentPriority=elementWithStyle.style.getPropertyPriority(\"cursor\");if(currentValue!==\"pointer\"||currentPriority!==\"important\"){elementWithStyle.style.setProperty(\"cursor\",\"pointer\",\"important\");}});if(observer){observer.observe(root,{childList:true,subtree:true,attributes:true,attributeFilter:[\"style\"]});}isApplying=false;};observer=new MutationObserver(()=>{if(frameId)return;frameId=window.requestAnimationFrame(()=>{frameId=0;applyPointerCursor();});});applyPointerCursor();return()=>{if(frameId)window.cancelAnimationFrame(frameId);if(observer)observer.disconnect();};},[]);return /*#__PURE__*/_jsx(\"div\",{ref:wrapperRef,style:{position:\"relative\",display:\"contents\"},children:/*#__PURE__*/_jsx(Component,{ref:ref,...props})});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withPointerCursor\":{\"type\":\"reactHoc\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