{"version":3,"file":"GoogleMap.BRG5HML9.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/5LCdzHC2pwNn0Atr8GS6/cE5H5bw8zLDVXpjNIXpz/GoogleMap.js"],"sourcesContent":["// Simple Google Maps component\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useMemo}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function GoogleMap(props){const{locationMode=\"coordinates\",latitude=37.7749,longitude=-122.4194,address=\"San Francisco, CA\",zoom=12}=props;const mapUrl=useMemo(()=>{const baseUrl=\"https://maps.google.com/maps\";if(locationMode===\"coordinates\"){return`${baseUrl}?q=${latitude},${longitude}&z=${zoom}&output=embed`;}else{return`${baseUrl}?q=${encodeURIComponent(address)}&z=${zoom}&output=embed`;}},[locationMode,latitude,longitude,address,zoom]);return /*#__PURE__*/_jsx(\"iframe\",{src:mapUrl,style:{width:\"100%\",height:\"100%\",border:\"none\",borderRadius:\"8px\"},allowFullScreen:true,loading:\"lazy\",referrerPolicy:\"no-referrer-when-downgrade\"});}addPropertyControls(GoogleMap,{locationMode:{type:ControlType.Enum,title:\"Location Mode\",options:[\"coordinates\",\"address\"],optionTitles:[\"Coordinates\",\"Address\"],defaultValue:\"coordinates\",displaySegmentedControl:true},latitude:{type:ControlType.Number,title:\"Latitude\",defaultValue:37.7749,min:-90,max:90,step:1e-6,hidden:({locationMode})=>locationMode!==\"coordinates\"},longitude:{type:ControlType.Number,title:\"Longitude\",defaultValue:-122.4194,min:-180,max:180,step:1e-6,hidden:({locationMode})=>locationMode!==\"coordinates\"},address:{type:ControlType.String,title:\"Address\",defaultValue:\"San Francisco, CA\",placeholder:\"Enter an address\",hidden:({locationMode})=>locationMode!==\"address\"},zoom:{type:ControlType.Number,title:\"Zoom Level\",defaultValue:12,min:1,max:20,step:1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"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