{"version":3,"file":"LinkingDiv.CaRGU9-R.mjs","names":["useRef","__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/90cO4mlFuZz3Y7wAAE6r/FOgSUKahVARDfxYxa8gj/LinkingDiv.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useRef,useEffect}from\"react\";export function FullElementLink(){const ref=useRef(null);useEffect(()=>{const element=ref.current;const navigate=event=>{// Find the link within the component\nconst link=element.querySelector(\"a\");// Check if the event's target is not the link itself\nif(link&&event.target!==link){event.preventDefault();// Navigate to the link's href\nwindow.location.href=link.getAttribute(\"href\");}};if(element){element.addEventListener(\"click\",navigate);}return()=>{if(element){element.removeEventListener(\"click\",navigate);}};},[]);return{ref:ref};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withFullElementLink(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...FullElementLink(props)});};}withFullElementLink.displayName=\"FullElementLink\";\nexport const __FramerMetadata__ = {\"exports\":{\"withFullElementLink\":{\"type\":\"reactHoc\",\"name\":\"withFullElementLink\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"FullElementLink\":{\"type\":\"override\",\"name\":\"FullElementLink\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LinkingDiv.map"],"mappings":"2LAA+E,SAAgB,GAAiB,CAAC,IAAM,EAAIA,EAAO,KAAK,CAGiD,OAHhD,MAAc,CAAC,IAAM,EAAQ,EAAI,QAAc,EAAS,GAAO,CACvM,IAAM,EAAK,EAAQ,cAAc,IAAI,CAClC,GAAM,EAAM,SAAS,IAAM,EAAM,gBAAgB,CACpD,EAAO,SAAS,KAAK,EAAK,aAAa,OAAO,GAA4D,OAArD,GAAS,EAAQ,iBAAiB,QAAQ,EAAS,KAAY,CAAI,GAAS,EAAQ,oBAAoB,QAAQ,EAAS,GAAM,EAAE,CAAC,CAAO,CAAK,MAAI,CAAqJ,SAAgB,EAAoB,EAAE,CAAC,MAAO,KAAQ,EAA+BC,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAgB,EAAM,CAAC,CAAC,uBAHle,IAAoC,IAG6Q,CAAqL,EAAoB,YAAY"}