{"version":3,"file":"ServiceMap.DKBff_yK.mjs","names":[],"sources":["https:/framerusercontent.com/modules/xotB00L7cpYa6ME1z5sv/Km0AFQD32SQAK37cllOq/ServiceMap.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Interactive Map Component with Leaflet via iframe\n * Shows Niebüll, Nordfriesland with radius circles for service area\n * \n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight fixed\n */export default function ServiceMap(props){const{mapHeight=450,mapZoom=8,centerLat=54.7879,centerLng=8.8372}=props;// Create the complete HTML document for the iframe\nconst mapHTML=`\n<!DOCTYPE html>\n<html>\n<head>\n    <meta charset=\"utf-8\" />\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <link rel=\"stylesheet\" href=\"https://unpkg.com/leaflet@1.9.4/dist/leaflet.css\" \n          integrity=\"sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=\" \n          crossorigin=\"\" />\n    <script src=\"https://unpkg.com/leaflet@1.9.4/dist/leaflet.js\" \n            integrity=\"sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=\" \n            crossorigin=\"\"></script>\n    <style>\n        body {\n            margin: 0;\n            padding: 0;\n        }\n        #map {\n            width: 100%;\n            height: 100vh;\n            margin: 0;\n            padding: 0;\n        }\n    </style>\n</head>\n<body>\n    <div id=\"map\"></div>\n    <script>\n        // Wait for Leaflet to load\n        window.addEventListener('load', function() {\n            // Initialize map centered on Nieb\\xfcll\n            var map = L.map('map', {\n                center: [${centerLat}, ${centerLng}],\n                zoom: ${mapZoom},\n                zoomControl: true,\n                scrollWheelZoom: true,\n                dragging: true\n            });\n\n            // Add OpenStreetMap tile layer\n            L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {\n                attribution: '&copy; <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a> contributors',\n                maxZoom: 18\n            }).addTo(map);\n\n            // First circle - 30km radius (main service area)\n            var circle30 = L.circle([${centerLat}, ${centerLng}], {\n                radius: 25000,\n                color: '#08754e',\n                fillColor: '#08754e',\n                fillOpacity: 0.12,\n                weight: 2\n            }).addTo(map);\n\n            // Second circle - 45km radius (on request, dashed)\n            var circle45 = L.circle([${centerLat}, ${centerLng}], {\n                radius: 40000,\n                color: '#08754e',\n                fillColor: '#08754e',\n                fillOpacity: 0.05,\n                weight: 1,\n                dashArray: '8,6'\n            }).addTo(map);\n\n            // Add marker with popup\n            var marker = L.marker([${centerLat}, ${centerLng}]).addTo(map);\n            marker.bindPopup('<b>FriesenDoc</b><br>Mobiler Tierarzt \\xb7 Nieb\\xfcll').openPopup();\n\n            // Fit bounds to show the 45km circle completely\n            var bounds = circle45.getBounds();\n            map.fitBounds(bounds, { padding: [40, 40] });\n        });\n    </script>\n</body>\n</html>\n    `;return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:mapHeight,borderRadius:16,overflow:\"hidden\",position:\"relative\"},children:/*#__PURE__*/_jsx(\"iframe\",{srcDoc:mapHTML,style:{border:\"none\",borderRadius:\"16px\",width:\"100%\",height:\"100%\"},sandbox:\"allow-scripts\",title:\"Interactive Map - FriesenDoc Nieb\\xfcll\"})});}addPropertyControls(ServiceMap,{mapHeight:{type:ControlType.Number,title:\"Kartenh\\xf6he\",defaultValue:450,min:200,max:800,step:10,unit:\"px\"},mapZoom:{type:ControlType.Number,title:\"Zoom\",defaultValue:8,min:6,max:14,step:1},centerLat:{type:ControlType.Number,title:\"Breitengrad\",defaultValue:54.7879,step:1e-4},centerLng:{type:ControlType.Number,title:\"L\\xe4ngengrad\",defaultValue:8.8372,step:1e-4}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ServiceMap\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ServiceMap.map"],"mappings":"4JAMG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,YAAU,IAAI,UAAQ,EAAE,YAAU,QAAQ,YAAU,QAAQ,EACzG,EAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAgCa,EAAU,IAAI,EAAU;wBAC3B,EAAQ;;;;;;;;;;;;;uCAaO,EAAU,IAAI,EAAU;;;;;;;;;uCASxB,EAAU,IAAI,EAAU;;;;;;;;;;qCAU1B,EAAU,IAAI,EAAU;;;;;;;;;;MAUvD,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,EAAU,aAAa,GAAG,SAAS,SAAS,SAAS,UAAU,EAAE,SAAsB,EAAK,SAAS,CAAC,OAAO,EAAQ,MAAM,CAAC,OAAO,OAAO,aAAa,OAAO,MAAM,OAAO,OAAO,MAAM,EAAE,QAAQ,gBAAgB,MAAM,sCAAyC,CAAC,CAAC,CAAC,CAAE,iBAlF7R,IAAoD,EAkF0O,EAAoB,EAAW,CAAC,UAAU,CAAC,KAAK,EAAY,OAAO,MAAM,aAAgB,aAAa,IAAI,IAAI,IAAI,IAAI,IAAI,KAAK,GAAG,KAAK,IAAI,EAAE,QAAQ,CAAC,KAAK,EAAY,OAAO,MAAM,OAAO,aAAa,EAAE,IAAI,EAAE,IAAI,GAAG,KAAK,CAAC,EAAE,UAAU,CAAC,KAAK,EAAY,OAAO,MAAM,cAAc,aAAa,QAAQ,KAAK,IAAI,EAAE,UAAU,CAAC,KAAK,EAAY,OAAO,MAAM,aAAgB,aAAa,OAAO,KAAK,IAAI,CAAC,CAAC"}