{"version":3,"file":"shared-lib.Dd-XQ38s.mjs","names":["React.useRef","React.useMemo","metadata","siteMetadata","metadataVersion","__FramerMetadata__","metadata","siteMetadata"],"sources":["https:/framerusercontent.com/modules/mhyQebNxLcu5DyvowEOs/Qo3RW6eKqPrIuyyNy32X/Mobile_Effect_Adapter.js","https:/framerusercontent.com/modules/deaw7kwel0CfRLoSeQf8/FpxXa661cAKLOZXPKGCt/siteMetadata.js","https:/framerusercontent.com/modules/ajZ5LDICLu3uELBMWUY9/5tzXcYQ3Bj02sbytaxqD/CtPE2XTsO.js","https:/framerusercontent.com/modules/pUpuJ2Wr96UUShRtofmy/OU5LIspw3seC23G0l9YZ/GQtomfvTQ.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/** @framerDisableUnlink */export default function MobileHoverClickBridge(props){const{enabledOnMobileOnly}=props;const overlayRef=React.useRef(null);const hoveredElements=React.useRef(new Set);const isMobile=React.useMemo(()=>{if(typeof window===\"undefined\")return false;const hasTouch=\"ontouchstart\"in window||navigator.maxTouchPoints>0||window.matchMedia(\"(pointer: coarse)\").matches;const isSmallScreen=window.matchMedia(\"(max-width: 809px)\").matches;return hasTouch&&isSmallScreen;},[]);const active=enabledOnMobileOnly?isMobile:true;// --- NATIVE OS SCROLL LOCK ---\n// This stops iOS/Android browsers from hijacking the touch into a page scroll\nReact.useEffect(()=>{const overlay=overlayRef.current;if(!overlay||!active)return;const preventNativeScroll=e=>{if(e.cancelable){e.preventDefault()// Locks native scrolling ONLY while touching this specific frame\n;}};// passive: false is the magic key that allows preventDefault() to work on modern mobile browsers\noverlay.addEventListener(\"touchmove\",preventNativeScroll,{passive:false});return()=>{overlay.removeEventListener(\"touchmove\",preventNativeScroll);};},[active]);// --- DISPATCHERS ---\nconst dispatchLocalEvent=(target,baseName,touch,bubbles)=>{const params={bubbles,cancelable:true,view:window,clientX:touch.clientX,clientY:touch.clientY,screenX:touch.screenX,screenY:touch.screenY};const pointerEvent=new PointerEvent(`pointer${baseName}`,{...params,pointerId:1,pointerType:\"mouse\",isPrimary:true});target.dispatchEvent(pointerEvent);const mouseEvent=new MouseEvent(`mouse${baseName}`,params);target.dispatchEvent(mouseEvent);};const dispatchGlobalEvent=(eventName,touch)=>{const pointerEvent=new PointerEvent(eventName,{bubbles:false,cancelable:true,view:window,clientX:touch.clientX,clientY:touch.clientY,screenX:touch.screenX,screenY:touch.screenY,pointerId:1,pointerType:\"mouse\",isPrimary:true});window.dispatchEvent(pointerEvent);};// --- DOM RAYCASTING ---\nconst getElementsUnderTouch=touch=>{if(typeof document.elementsFromPoint===\"function\"){const elements=Array.from(document.elementsFromPoint(touch.clientX,touch.clientY)||[]);return elements.filter(el=>el!==overlayRef.current);}return[];};const getLeafElements=elements=>{return elements.filter(el=>{return!elements.some(other=>other!==el&&el.contains(other));});};const updateHoverStates=(touch,isEnd=false)=>{const currentElements=isEnd?[]:getElementsUnderTouch(touch);const currentSet=new Set(currentElements);hoveredElements.current.forEach(el=>{if(!currentSet.has(el)){dispatchLocalEvent(el,\"out\",touch,true);dispatchLocalEvent(el,\"leave\",touch,false);hoveredElements.current.delete(el);}});if(isEnd)return;currentElements.forEach(el=>{if(!hoveredElements.current.has(el)){dispatchLocalEvent(el,\"over\",touch,true);dispatchLocalEvent(el,\"enter\",touch,false);hoveredElements.current.add(el);}});};// --- EVENT HANDLERS ---\nconst handleTouchStart=event=>{if(!active)return;event.stopPropagation()// Block Framer's JS Scroll components from stealing the touch\n;const touch=event.touches[0];updateHoverStates(touch);const leaves=getLeafElements(getElementsUnderTouch(touch));leaves.forEach(el=>{dispatchLocalEvent(el,\"down\",touch,true);});dispatchGlobalEvent(\"pointerdown\",touch);dispatchGlobalEvent(\"pointermove\",touch);};const handleTouchMove=event=>{if(!active)return;event.stopPropagation()// Block Framer's JS Scroll components from stealing the touch\n;const touch=event.touches[0];updateHoverStates(touch);const leaves=getLeafElements(getElementsUnderTouch(touch));leaves.forEach(el=>{dispatchLocalEvent(el,\"move\",touch,true);});dispatchGlobalEvent(\"pointermove\",touch);};const handleTouchEnd=event=>{if(!active)return;event.stopPropagation()// Block Framer's JS Scroll components from stealing the touch\n;const touch=event.changedTouches[0];const leaves=getLeafElements(getElementsUnderTouch(touch));leaves.forEach(el=>{dispatchLocalEvent(el,\"up\",touch,true);const clickEvent=new MouseEvent(\"click\",{bubbles:true,cancelable:true,view:window,clientX:touch.clientX,clientY:touch.clientY});el.dispatchEvent(clickEvent);});updateHoverStates(touch,true);dispatchGlobalEvent(\"pointerup\",touch);const offScreenCoords={clientX:-9999,clientY:-9999,screenX:-9999,screenY:-9999};dispatchGlobalEvent(\"pointermove\",offScreenCoords);};if(!active)return null;return /*#__PURE__*/_jsx(\"div\",{ref:overlayRef,onTouchStart:handleTouchStart,onTouchMove:handleTouchMove,onTouchEnd:handleTouchEnd,style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",background:\"transparent\",opacity:0,zIndex:9999,pointerEvents:\"auto\",touchAction:\"none\"}});}MobileHoverClickBridge.defaultProps={enabledOnMobileOnly:true};addPropertyControls(MobileHoverClickBridge,{enabledOnMobileOnly:{type:ControlType.Boolean,title:\"Mobile Only\",defaultValue:true,description:\"Need help or custom work? [Contact Abdelrahman Farghaly](https://x.com/UX_Abdelrahman/)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"MobileHoverClickBridge\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Mobile_Effect_Adapter.map","// Generated by Framer (b1a1598)\nexport default function metadata(params,activeLocale){return{description:\"Made with Framer\",robots:\"max-image-preview:large\",title:\"My Framer Site\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (36277c8)\nimport siteMetadata from\"#framer/local/siteMetadata/siteMetadata/siteMetadata.js\";export default function metadata(params,activeLocale){return{breakpoints:[{hash:\"1nw1gfb\",mediaQuery:\"(min-width: 1200px)\"},{hash:\"ixber1\",mediaQuery:\"(max-width: 1199.98px)\"}],description:siteMetadata(params,activeLocale).description,elements:{},robots:\"max-image-preview:large\",serializationId:\"framer-hIATr\",title:siteMetadata(params,activeLocale).title||\"Home\",viewport:\"width=device-width\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (36277c8)\nimport siteMetadata from\"#framer/local/siteMetadata/siteMetadata/siteMetadata.js\";export default function metadata(params,activeLocale){return{breakpoints:[{hash:\"14n6lzs\"}],description:siteMetadata(params,activeLocale).description,elements:{},robots:\"max-image-preview:large\",serializationId:\"framer-DNAsU\",title:siteMetadata(params,activeLocale).title||\"Peview\",viewport:\"width=1200\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"wMAAsJ,SAAwB,EAAuB,EAAM,CAAC,GAAK,CAAC,uBAAqB,EAAY,EAAWA,EAAa,KAAK,CAAO,EAAgBA,EAAa,IAAI,IAAI,CAAO,EAASC,MAAkB,CAAC,GAAU,IAAS,OAAY,MAAO,GAAM,IAAM,EAAS,iBAAiB,GAAQ,EAAU,eAAe,GAAG,EAAO,WAAW,oBAAoB,CAAC,QAA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