{"version":3,"file":"MapTitleOverride.DPNgaIXO.mjs","names":["useRef","__esmMin","init_npm_react_18_3_1","ce","init_jsx_runtime","c","de","motion","init_framer_Bf4_tcb2","addPropertyControls","ControlType","borderRadiusControl","useRadius","containerStyles","init_OIjZRBmWDcIE2B6qgG1j","init_default_utils_js__0_45","GoogleMaps","props","borderRadius","style","coordinates","zoom","init_GoogleMaps","withMapTitle","ref","root","label","apply","f","mo","Component","init_MapTitleOverride"],"sources":["https:/framer.com/m/framer/default-utils.js@^0.45.0","https:/framerusercontent.com/modules/Hbc0lxqGSRzFG6uMT9yO/jZfB18ggDrqER5ihmIsa/GoogleMaps.js","https:/framerusercontent.com/modules/uEZes2lgO60yHDQ08eJa/BZgLnG6rd8GvkcfPs1DT/MapTitleOverride.js"],"sourcesContent":["/*\n * index (framer/default-utils@0.45.0)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/G4IfyjvwmaeSBpdb4TWu/OIjZRBmWDcIE2B6qgG1j/index.js\"\n","import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,motion}from\"framer\";import{containerStyles,useRadius,borderRadiusControl}from\"https://framer.com/m/framer/default-utils.js@^0.45.0\";const coordinatesRegex=/^((?:\\-?|\\+?)?\\d+(?:\\.\\d+)?),\\s*((?:\\-?|\\+?)?\\d+(?:\\.\\d+)?)$/;/**\n * GOOGLE MAPS\n *\n * @framerIntrinsicWidth 600\n * @framerIntrinsicHeight 400\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function GoogleMaps({coordinates,zoom,style,...props}){const borderRadius=useRadius(props);return /*#__PURE__*/_jsx(motion.div,{style:{...style,...containerStyles,overflow:\"hidden\",borderRadius},...props,children:/*#__PURE__*/_jsx(\"iframe\",{style:{height:\"100%\",width:\"100%\",border:0},src:`https://maps.google.com/maps?q=${encodeURIComponent(coordinates)}&z=${zoom}&output=embed`})});}addPropertyControls(GoogleMaps,{coordinates:{type:ControlType.String,title:\"Location\",placeholder:\"Framer B.V.\",defaultValue:\"Framer B.V.\",description:\"The name of the place or its GPS coordinates.\"},zoom:{type:ControlType.Number,step:1,min:0,max:25,title:\"Zoom\",defaultValue:15},...borderRadiusControl});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GoogleMaps\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"400\",\"framerIntrinsicWidth\":\"600\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GoogleMaps.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";// Adds a screen-reader title to the Google Maps embed iframe (no title control exists on the component).\nexport function withMapTitle(Component){return props=>{const ref=useRef(null);useEffect(()=>{const root=ref.current;if(!root)return;const label=\"Map showing T Clinics USA at \"+String(props.coordinates||\"\").trim();const apply=()=>{root.querySelectorAll(\"iframe\").forEach(f=>{if(f.getAttribute(\"title\")!==label)f.setAttribute(\"title\",label);});};apply();const mo=new MutationObserver(apply);mo.observe(root,{childList:true,subtree:true});return()=>mo.disconnect();},[props.coordinates]);return /*#__PURE__*/_jsx(\"div\",{ref:ref,style:{display:\"contents\"},children:/*#__PURE__*/_jsx(Component,{...props})});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withMapTitle\":{\"type\":\"reactHoc\",\"name\":\"withMapTitle\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MapTitleOverride.map"],"mappings":"A,yUCQG,SAAwBgB,EAAW,CAAC,cAAY,OAAK,QAAM,GAAGC,GAAO,CAAC,IAAMC,EAAaN,EAAUK,CAAK,EAAE,MAAoB,gBAAKV,EAAO,IAAI,CAAC,MAAM,CAAC,GAAGY,EAAM,GAAGN,EAAgB,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