{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/uDvjiGoOvZWUZ5X57qpg/ROYqJQ8TvBR89WKmaNLT/IFrameModalFocus.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";export function withFocus(Component){return props=>{// useEffect(() => {\n//     const iframe = document.querySelector<HTMLIFrameElement>(\n//         \"div[data-framer-name='Cities'] iframe\"\n//     )\n//     const handleIframeLoad = () => {\n//         if (iframe) {\n//             const doc =\n//                 iframe.contentDocument || iframe.contentWindow.document\n//             // Ensure iframe content is accessible\n//             if (doc) {\n//                 // Select all links inside the iframe\n//                 const links = doc.querySelectorAll(\"a\")\n//                 links.forEach((link) => {\n//                     const cityName = link.textContent\n//                         .trim()\n//                         .toLowerCase()\n//                     // Modify link href to be relative\n//                     link.href = `/${cityName}`\n//                 })\n//             }\n//         }\n//     }\n//     if (iframe) {\n//         iframe.addEventListener(\"load\", handleIframeLoad)\n//     }\n//     return () => {\n//         if (iframe) {\n//             iframe.removeEventListener(\"load\", handleIframeLoad)\n//         }\n//     }\n// }, [])\nreturn /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withFocus\":{\"type\":\"reactHoc\",\"name\":\"withFocus\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./IFrameModalFocus.map"],
  "mappings": "yCAAkD,SAASA,EAAUC,EAAU,CAAC,OAAOC,GA+BnEC,EAAKF,EAAU,CAAC,GAAGC,CAAK,CAAC,CAAI",
  "names": ["withFocus", "Component", "props", "p"]
}
