{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/Hbc0lxqGSRzFG6uMT9yO/OPmIEDVRw3amYB3GBzWp/GoogleMaps.js"],
  "sourcesContent": ["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { addPropertyControls, ControlType, motion } from \"framer\";\nimport { containerStyles, useRadius, borderRadiusControl } from \"https://framer.com/m/framer/default-utils.js@^0.45.0\";\nimport { useMemo } from \"react\";\nconst coordinatesRegex = /^((?:\\-?|\\+?)?\\d+(?:\\.\\d+)?),\\s*((?:\\-?|\\+?)?\\d+(?:\\.\\d+)?)$/; /**\n                                                                                         * GOOGLE MAPS\n                                                                                         *\n                                                                                         * @framerIntrinsicWidth 600\n                                                                                         * @framerIntrinsicHeight 400\n                                                                                         *\n                                                                                         * @framerSupportedLayoutWidth fixed\n                                                                                         * @framerSupportedLayoutHeight fixed\n                                                                                         */\nexport default function GoogleMaps({\n  coordinates,\n  zoom,\n  style,\n  ...props\n}) {\n  const borderRadius = useRadius(props);\n  const [latitude1, longitude1] = useMemo(() => {\n    var ref;\n    const [, latitude, longitude] = (ref = coordinates.match(coordinatesRegex)) !== null && ref !== void 0 ? ref : [null, \"\", \"\"];\n    return [latitude, longitude];\n  }, [coordinates]);\n  return /*#__PURE__*/_jsx(motion.div, {\n    style: {\n      ...style,\n      ...containerStyles,\n      overflow: \"hidden\",\n      borderRadius\n    },\n    ...props,\n    children: /*#__PURE__*/_jsx(\"iframe\", {\n      style: {\n        height: \"100%\",\n        width: \"100%\",\n        border: 0\n      },\n      src: `https://maps.google.com/maps?q=${latitude1},${longitude1}&z=${zoom}&output=embed`\n    })\n  });\n}\n;\naddPropertyControls(GoogleMaps, {\n  coordinates: {\n    type: ControlType.String,\n    title: \"Coordinates\",\n    placeholder: \"52.37588, 4.891295\",\n    defaultValue: \"52.37588, 4.891295\",\n    description: \"GPS coordinates can be found directly in [Google Maps](https://maps.google.com).\"\n  },\n  zoom: {\n    type: ControlType.Number,\n    step: 1,\n    min: 0,\n    max: 25,\n    title: \"Zoom\",\n    defaultValue: 15\n  },\n  ...borderRadiusControl\n});\nexport const __FramerMetadata__ = {\n  \"exports\": {\n    \"default\": {\n      \"type\": \"reactComponent\",\n      \"name\": \"GoogleMaps\",\n      \"slots\": [],\n      \"annotations\": {\n        \"framerIntrinsicWidth\": \"600\",\n        \"framerSupportedLayoutWidth\": \"fixed\",\n        \"framerIntrinsicHeight\": \"400\",\n        \"framerContractVersion\": \"1\",\n        \"framerSupportedLayoutHeight\": \"fixed\"\n      }\n    },\n    \"__FramerMetadata__\": {\n      \"type\": \"variable\"\n    }\n  }\n};\n//# sourceMappingURL=./GoogleMaps.map"],
  "mappings": "8JAIA,IAAMA,EAAmB,+DASV,SAARC,EAA4B,CACjC,YAAAC,EACA,KAAAC,EACA,MAAAC,EACA,GAAGC,CACL,EAAG,CACD,IAAMC,EAAeC,EAAUF,CAAK,EAC9B,CAACG,EAAWC,CAAU,EAAIC,EAAQ,IAAM,CAC5C,IAAIC,EACJ,GAAM,CAAC,CAAEC,EAAUC,CAAS,GAAKF,EAAMT,EAAY,MAAMF,CAAgB,KAAO,MAAQW,IAAQ,OAASA,EAAM,CAAC,KAAM,GAAI,EAAE,EAC5H,MAAO,CAACC,EAAUC,CAAS,CAC7B,EAAG,CAACX,CAAW,CAAC,EAChB,OAAoBY,EAAKC,EAAO,IAAK,CACnC,MAAO,CACL,GAAGX,EACH,GAAGY,EACH,SAAU,SACV,aAAAV,CACF,EACA,GAAGD,EACH,SAAuBS,EAAK,SAAU,CACpC,MAAO,CACL,OAAQ,OACR,MAAO,OACP,OAAQ,CACV,EACA,IAAK,kCAAkCN,KAAaC,OAAgBN,gBACtE,CAAC,CACH,CAAC,CACH,CAEAc,EAAoBhB,EAAY,CAC9B,YAAa,CACX,KAAMiB,EAAY,OAClB,MAAO,cACP,YAAa,qBACb,aAAc,qBACd,YAAa,kFACf,EACA,KAAM,CACJ,KAAMA,EAAY,OAClB,KAAM,EACN,IAAK,EACL,IAAK,GACL,MAAO,OACP,aAAc,EAChB,EACA,GAAGC,CACL,CAAC",
  "names": ["coordinatesRegex", "GoogleMaps", "coordinates", "zoom", "style", "props", "borderRadius", "useRadius", "latitude1", "longitude1", "se", "ref", "latitude", "longitude", "p", "motion", "containerStyles", "addPropertyControls", "ControlType", "borderRadiusControl"]
}
