{"version":3,"file":"StudioMap.BExJY1ty.mjs","names":["__esmMin","init_jsx_runtime","c","p","addPropertyControls","init_framer_BEr93sCn","StudioMap","props","lat","lng","coordinates","v","ok","la","lo","src","spanLng","spanLat","radius","showPin","init_StudioMap","ControlType"],"sources":["https:/framerusercontent.com/modules/eygrkDe4pQnd5w2c3YR5/UmXlYis9YL1hIeUn1IKV/StudioMap.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Studio Map\n * A dark OpenStreetMap view centred on your location, with a pulsing pin (matches the coded site).\n * Coordinates: paste \"latitude, longitude\" (in Google Maps, right-click the spot and click the numbers to copy them).\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerIntrinsicWidth 800\n * @framerIntrinsicHeight 540\n */export default function StudioMap(props){const{coordinates,spanLng,spanLat,showPin,radius}=props;const[lat,lng]=String(coordinates||\"\").split(\",\").map(v=>parseFloat(v.trim()));const ok=isFinite(lat)&&isFinite(lng);const la=ok?lat:30.243,lo=ok?lng:-97.765;const src=`https://www.openstreetmap.org/export/embed.html?bbox=${(lo-spanLng).toFixed(4)}%2C${(la-spanLat).toFixed(4)}%2C${(lo+spanLng).toFixed(4)}%2C${(la+spanLat).toFixed(4)}&layer=mapnik`;return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\",borderRadius:radius,background:\"#0c0d0f\"},children:[/*#__PURE__*/_jsx(\"style\",{children:\"@keyframes wxPing{0%{transform:scale(.6);opacity:.9}70%{transform:scale(1.4);opacity:0}100%{opacity:0}}\"}),/*#__PURE__*/_jsx(\"iframe\",{title:\"Map of the selected location\",loading:\"lazy\",referrerPolicy:\"no-referrer\",src:src,style:{position:\"absolute\",top:-60,left:0,width:\"100%\",height:\"calc(100% + 60px)\",border:0,filter:\"grayscale(1) invert(0.92) contrast(0.88) brightness(0.86)\"}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,pointerEvents:\"none\",boxShadow:\"inset 0 0 120px 30px rgba(5,5,6,0.85)\",borderRadius:radius}}),showPin&&/*#__PURE__*/_jsxs(\"div\",{style:{position:\"absolute\",zIndex:2,left:\"50%\",top:\"calc(50% - 30px)\",width:64,height:64,transform:\"translate(-50%, -50%)\",pointerEvents:\"none\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{position:\"absolute\",inset:0,borderRadius:\"50%\",border:\"1px solid rgba(238,59,45,0.6)\",background:\"rgba(238,59,45,0.12)\",animation:\"wxPing 2.4s cubic-bezier(0.16,1,0.3,1) infinite\"}}),/*#__PURE__*/_jsx(\"span\",{style:{position:\"absolute\",left:\"50%\",top:\"50%\",width:16,height:16,borderRadius:\"50%\",transform:\"translate(-50%, -50%)\",background:\"#ee3b2d\",border:\"3px solid #f4f5f6\",boxShadow:\"0 0 18px 4px rgba(238,59,45,0.6)\"}})]})]});}StudioMap.defaultProps={coordinates:\"30.2430, -97.7650\",spanLng:.03,spanLat:.015,showPin:true,radius:0};addPropertyControls(StudioMap,{coordinates:{type:ControlType.String,title:\"Coordinates\",defaultValue:\"30.2430, -97.7650\",placeholder:\"latitude, longitude\"},spanLng:{type:ControlType.Number,title:\"Zoom width\",min:.005,max:1,step:.005,defaultValue:.03,description:\"Smaller = closer\"},spanLat:{type:ControlType.Number,title:\"Zoom height\",min:.005,max:1,step:.005,defaultValue:.015},showPin:{type:ControlType.Boolean,title:\"Pin\",defaultValue:true},radius:{type:ControlType.Number,title:\"Radius\",min:0,max:60,defaultValue:0}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StudioMap\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"800\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"540\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