{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/uGjU0DhNQBMyKHIaxFWo/Dp8pv2WUnzanLmqjs1ZV/Maps.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{containerStyles,useRadius,borderRadiusControl}from\"https://framer.com/m/framer/default-utils.js@^0.45.0\";/**\n * GOOGLE MAPS\n *\n * @framerIntrinsicWidth 600\n * @framerIntrinsicHeight 400\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function GoogleMaps({iframeCode,style,...props}){const borderRadius=useRadius(props);// Estrai l'URL dal codice iframe\nconst regex=/src=\"(.*?)\"/;const match=regex.exec(iframeCode);const embedUrl=match&&match[1]?match[1]:\"\";return /*#__PURE__*/_jsx(\"div\",{style:{...style,...containerStyles,overflow:\"hidden\",borderRadius},...props,children:embedUrl?/*#__PURE__*/_jsx(\"iframe\",{style:{height:\"100%\",width:\"100%\",border:0},src:embedUrl,allowFullScreen:true,loading:\"lazy\"}):/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",height:\"100%\",color:\"#999\",fontSize:\"14px\",textAlign:\"center\",padding:\"10px\"},children:\"Inserisci un codice iframe valido.\"})});}addPropertyControls(GoogleMaps,{iframeCode:{type:ControlType.String,title:\"Iframe Code\",defaultValue:\"\",description:\"Inserisci il codice iframe di Google Maps\"},...borderRadiusControl});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GoogleMaps\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"400\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"600\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Maps.map"],
  "mappings": "gJAQkB,SAARA,EAA4B,CAAC,WAAAC,EAAW,MAAAC,EAAM,GAAGC,CAAK,EAAE,CAAC,IAAMC,EAAaC,EAAUF,CAAK,EACrEG,EAApB,cAAgC,KAAKL,CAAU,EAAQM,EAASD,GAAOA,EAAM,CAAC,EAAEA,EAAM,CAAC,EAAE,GAAG,OAAoBE,EAAK,MAAM,CAAC,MAAM,CAAC,GAAGN,EAAM,GAAGO,EAAgB,SAAS,SAAS,aAAAL,CAAY,EAAE,GAAGD,EAAM,SAASI,EAAsBC,EAAK,SAAS,CAAC,MAAM,CAAC,OAAO,OAAO,MAAM,OAAO,OAAO,CAAC,EAAE,IAAID,EAAS,gBAAgB,GAAK,QAAQ,MAAM,CAAC,EAAeC,EAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,OAAO,OAAO,MAAM,OAAO,SAAS,OAAO,UAAU,SAAS,QAAQ,MAAM,EAAE,SAAS,oCAAoC,CAAC,CAAC,CAAC,CAAE,CAACE,EAAoBV,EAAW,CAAC,WAAW,CAAC,KAAKW,EAAY,OAAO,MAAM,cAAc,aAAa,GAAG,YAAY,2CAA2C,EAAE,GAAGC,CAAmB,CAAC",
  "names": ["GoogleMaps", "iframeCode", "style", "props", "borderRadius", "useRadius", "match", "embedUrl", "p", "containerStyles", "addPropertyControls", "ControlType", "borderRadiusControl"]
}
