{"version":3,"file":"LocationMapEmbed.BuC1HBmi.mjs","names":["React.useMemo"],"sources":["https:/framerusercontent.com/modules/AmCCjODHeUgnlh90iQdR/tP7a4c0BU6iPZgEPwWcU/LocationMapEmbed.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight fixed\n */export default function LocationMapEmbed(props){const{address=\"1424 20th St, Miami Beach, FL 33139\",height=320,cornerRadius=16,borderColor=\"#EEEEEE\"}=props;const trimmedAddress=React.useMemo(()=>address.trim(),[address]);const iframeSrc=React.useMemo(()=>{if(!trimmedAddress)return\"\";return`https://www.google.com/maps?q=${encodeURIComponent(trimmedAddress)}&output=embed`;},[trimmedAddress]);const iframeTitle=React.useMemo(()=>{if(!trimmedAddress)return\"Location map\";return`Map of ${trimmedAddress}`;},[trimmedAddress]);const containerStyle=React.useMemo(()=>({position:\"relative\",width:\"100%\",height,borderRadius:cornerRadius,overflow:\"hidden\",border:`1px solid ${borderColor}`,backgroundColor:\"#111111\"}),[height,cornerRadius,borderColor]);if(!trimmedAddress){return /*#__PURE__*/_jsx(\"div\",{style:containerStyle,children:/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",padding:16,color:\"#CCCCCC\",fontSize:14,lineHeight:1.4,textAlign:\"center\",background:\"linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%)\"},children:\"Add a location address to display the map.\"})});}return /*#__PURE__*/_jsx(\"div\",{style:containerStyle,children:/*#__PURE__*/_jsx(\"iframe\",{title:iframeTitle,src:iframeSrc,loading:\"lazy\",referrerPolicy:\"no-referrer-when-downgrade\",style:{width:\"100%\",height:\"100%\",border:\"0\",display:\"block\",backgroundColor:\"#111111\"}})});}addPropertyControls(LocationMapEmbed,{address:{type:ControlType.String,title:\"Address\",defaultValue:\"1424 20th St, Miami Beach, FL 33139\",placeholder:\"Enter location address\"},height:{type:ControlType.Number,title:\"Height\",defaultValue:320,min:180,max:900,step:1,unit:\"px\"},cornerRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:16,min:0,max:64,step:1,unit:\"px\"},borderColor:{type:ControlType.Color,title:\"Border\",defaultValue:\"#EEEEEE\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LocationMapEmbed\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LocationMapEmbed.map"],"mappings":"0KAGG,SAAwB,EAAiB,EAAM,CAAC,GAAK,CAAC,UAAQ,sCAAsC,SAAO,IAAI,eAAa,GAAG,cAAY,WAAW,EAAY,EAAeA,MAAkB,EAAQ,KAAK,EAAE,CAAC,CAAO,CAAC,EAAQ,EAAUA,MAAuB,EAA8B,iCAAiC,mBAAmB,CAAc,EAAE,eAA7E,GAA8F,CAAC,CAAc,CAAC,EAAQ,EAAYA,MAAuB,EAA0C,UAAU,IAA/B,eAAkD,CAAC,CAAc,CAAC,EAAQ,EAAeA,OAAmB,CAAC,SAAS,WAAW,MAAM,OAAO,SAAO,aAAa,EAAa,SAAS,SAAS,OAAO,aAAa,IAAc,gBAAgB,SAAS,GAAG,CAAC,EAAO,EAAa,CAAW,CAAC,EAA4a,OAAta,EAA0b,EAAK,MAAM,CAAC,MAAM,EAAe,SAAsB,EAAK,SAAS,CAAC,MAAM,EAAY,IAAI,EAAU,QAAQ,OAAO,eAAe,6BAA6B,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,OAAO,IAAI,QAAQ,QAAQ,gBAAgB,SAAS,CAAC,CAAC,CAAC,CAAC,EAAjpB,EAAK,MAAM,CAAC,MAAM,EAAe,SAAsB,EAAK,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