{"version":3,"file":"RealEstateLeafletMap.DS_L3Aw4.mjs","names":["parts","useMemo","useRef","useState","useCallback","p","e","mapZoom","targetPoint","yOffset","newCenterPoint"],"sources":["https:/framerusercontent.com/modules/QtzZbmqStFR8mKJyvKmM/8cMOLb60nkhbx2oojTPB/RealEstateLeafletMap.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useIsStaticRenderer,useObserveData}from\"framer\";import{useEffect,useMemo,useRef,useState,useCallback}from\"react\";import ReactDOM from\"react-dom\";import{useMapActions,useMapState}from\"https://framerusercontent.com/modules/cuw9OgC5HNIbDGwVjpIv/sfo5KX6UXIQhffrCrvZg/MapStore.js\";/**\n * UTILITY: Robust Price Formatting\n * Extracts currency and value, and ensures a single \"from \" prefix.\n */const formatPriceLabel=s=>{if(!s)return\"\";const str=String(s);const numStr=str.replace(/[^\\d]/g,\"\");if(!numStr)return str;const num=parseInt(numStr,10);if(isNaN(num))return str;return`$${num.toLocaleString(\"en-US\")}`;};const LEAFLET_JS=\"https://unpkg.com/leaflet@1.9.4/dist/leaflet.js\";const LEAFLET_CSS=\"https://unpkg.com/leaflet@1.9.4/dist/leaflet.css\";const LEAFLET_MARKERCLUSTER_JS=\"https://unpkg.com/leaflet.markercluster@1.5.3/dist/leaflet.markercluster.js\";const LEAFLET_MARKERCLUSTER_CSS=\"https://unpkg.com/leaflet.markercluster@1.5.3/dist/MarkerCluster.css\";const LEAFLET_MARKERCLUSTER_DEFAULT_CSS=\"https://unpkg.com/leaflet.markercluster@1.5.3/dist/MarkerCluster.Default.css\";let leafletLoadPromise=null;function loadLeaflet(){if(typeof window===\"undefined\")return Promise.resolve(null);const w=window;if(w.L&&w.L.map&&w.L.markerClusterGroup)return Promise.resolve(w.L);if(leafletLoadPromise)return leafletLoadPromise;leafletLoadPromise=new Promise((resolve,reject)=>{try{const loadCSS=href=>{if(!document.querySelector(`link[href=\"${href}\"]`)){const link=document.createElement(\"link\");link.rel=\"stylesheet\";link.href=href;document.head.appendChild(link);}};loadCSS(LEAFLET_CSS);loadCSS(LEAFLET_MARKERCLUSTER_CSS);loadCSS(LEAFLET_MARKERCLUSTER_DEFAULT_CSS);const loadJS=src=>new Promise((res,rej)=>{const script=document.createElement(\"script\");script.src=src;script.async=false;script.onload=res;script.onerror=rej;document.head.appendChild(script);});loadJS(LEAFLET_JS).then(()=>loadJS(LEAFLET_MARKERCLUSTER_JS)).then(()=>resolve(window.L)).catch(reject);}catch(e){reject(e);}});return leafletLoadPromise;}function clamp(n,min,max){return Math.max(min,Math.min(max,n));}function getTileUrl(style){if(style===\"dark\")return\"https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{r}.png\";if(style===\"light\")return\"https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png\";return\"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png\";}function parseCoordinates(value){if(!value)return null;if(typeof value===\"string\"){const str=value.trim();if(str.includes(\"\\xb0\")||str.includes(\"'\")||str.includes('\"')){const upper=str.toUpperCase();// Extract all numbers including decimals\nconst nums=upper.match(/-?\\d+(\\.\\d+)?/g)?.map(parseFloat)||[];if(nums.length>=6){let lat=Math.abs(nums[0])+(nums[1]||0)/60+(nums[2]||0)/3600;let lng=Math.abs(nums[3])+(nums[4]||0)/60+(nums[5]||0)/3600;// Determine sign from original string or letters\nif(upper.includes(\"S\")||nums[0]<0)lat=-lat;if(upper.includes(\"W\")||nums[3]<0)lng=-lng;if(Math.abs(lat)<=90&&Math.abs(lng)<=180)return{lat,lng};}}if(str.includes(\",\")){const parts=str.split(\",\");if(parts.length>=2){const lat=parseFloat(parts[0].trim());const lng=parseFloat(parts[1].trim());if(Number.isFinite(lat)&&Number.isFinite(lng)&&Math.abs(lat)<=90&&Math.abs(lng)<=180){return{lat,lng};}}}const parts=str.split(/\\s+/).filter(Boolean);if(parts.length>=2){const lat=parseFloat(parts[0].replace(/[^\\d.-]/g,\"\"));const lng=parseFloat(parts[1].replace(/[^\\d.-]/g,\"\"));if(Number.isFinite(lat)&&Number.isFinite(lng)&&Math.abs(lat)<=90&&Math.abs(lng)<=180){return{lat,lng};}}}if(typeof value===\"object\"&&value!==null){const lat=value.lat??value.latitude;const lng=value.lng??value.longitude??value.lon;const nLat=typeof lat===\"string\"?parseFloat(lat):lat;const nLng=typeof lng===\"string\"?parseFloat(lng):lng;if(Number.isFinite(nLat)&&Number.isFinite(nLng))return{lat:nLat,lng:nLng};}return null;}/**\n * @framerIntrinsicWidth 800\n * @framerIntrinsicHeight 500\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function RealEstateLeafletMap(props){useObserveData();const isStatic=useIsStaticRenderer();const{items,coordinatesField,useGlobalStore,priceTemplate,pricePrefix=\"from \",centerCoordinates=\"-8.4, 115.1\",zoom,fitToMarkers,maxFitZoom,tileStyle,zoomPosition=\"centerright\",markerStyle,markerColor,markerBorderColor,markerSelectedColor,partnerMarkerColor,partnerMarkerBorderColor,popupEnabled,popupWidth,popupRadius,popupBackground,popupBorderColor,popupShadow,popupScale,bodyFont,priceColor,closeEnabled,closeColor,emptyText,emptyFont,emptyTextColor,mapRadius,children,style,sightMinZoom=16,sightMarkerColor=\"#1E88E5\",sightMarkerBorderColor=\"#FFFFFF\"}=props;const parsedCenter=useMemo(()=>{const c=parseCoordinates(centerCoordinates);if(c)return[c.lat,c.lng];return[-8.4,115.1];},[centerCoordinates]);const mapElRef=useRef(null);const mapRef=useRef(null);const markersLayerRef=useRef(null);const markerRefsById=useRef(new Map);const hasFittedBoundsRef=useRef(false);const pendingChunkCancelRef=useRef(null);const[mapReady,setMapReady]=useState(false);const[isFullScreen,setIsFullScreen]=useState(false);const toggleFullScreen=useCallback(()=>{setIsFullScreen(prev=>{const next=!prev;const container=document.querySelector('[aria-label=\"map-container\"]');if(container){if(next)container.classList.add(\"map-full-active\");else container.classList.remove(\"map-full-active\");}if(mapRef.current){let start=Date.now();const animateResize=()=>{mapRef.current?.invalidateSize();if(Date.now()-start<450){requestAnimationFrame(animateResize);}};requestAnimationFrame(animateResize);}return next;});},[]);const activePopupNodeRef=useRef(null);const[activePopupNodeState,setActivePopupNodeState]=useState(null);const setActivePopupNode=useCallback(val=>{if(typeof val===\"function\"){setActivePopupNodeState(prev=>{const next=val(prev);activePopupNodeRef.current=next;return next;});}else{activePopupNodeRef.current=val;setActivePopupNodeState(val);}},[]);const cmsItems=useMemo(()=>{const visited=new Set;const extract=(node,depth=0)=>{if(!node||depth>10)return[];if(typeof node!==\"object\"&&typeof node!==\"function\")return[];if(visited.has(node))return[];visited.add(node);for(const path of[node?.props?.query?.from?.data,node?.props?.query?.from?.items,node?.props?.children?.props?.query?.from?.data,node?.props?.children?.props?.children?.props?.query?.from?.data]){if(Array.isArray(path))return path;}const ch=node?.props?.children;if(Array.isArray(ch)){for(const c of ch){const found=extract(c,depth+1);if(found.length)return found;}}else if(ch&&typeof ch===\"object\"){const found=extract(ch,depth+1);if(found.length)return found;}return[];};return extract(children);},[children]);const store=useMapState();const mapActions=useMapActions();const safeItems=useMemo(()=>{const result=[];const seenIds=new Set;// 1. Gather all raw sources\nconst sources=[];if(Array.isArray(items))sources.push(...items);if(Array.isArray(cmsItems))sources.push(...cmsItems);const storeMap=store?.registeredItems||{};const getPossibleIds=it=>{if(!it)return[];const rawIds=[it.id,it.item?.id,it.fields?.id,it.item?.fields?.id,it.title,it.item?.title].filter(v=>v!=null&&v!==\"\").map(String);const ids=new Set;for(const rid of rawIds){ids.add(rid);if(rid.startsWith(\"item-\"))ids.add(rid.replace(\"item-\",\"\"));else ids.add(`item-${rid}`);}return Array.from(ids);};// --- FIRST PASS: Prop/CMS items ---\nfor(const raw of sources){if(!raw)continue;const ids=getPossibleIds(raw);const id=ids[0]||`raw-${result.length}`;let registered=null;for(const possibleId of ids){if(storeMap[possibleId]){registered=storeMap[possibleId];break;}}if(registered){const rid=String(registered.id||id);seenIds.add(rid);result.push({...registered,latitude:Number(registered.latitude),longitude:Number(registered.longitude),id:rid});continue;}// Fallback parsing for raw items\nconst source=itFields(raw);const findCoord=()=>{const pref=coordinatesField||\"coordinates\";if(source[pref]){const p=parseCoordinates(source[pref]);if(p)return p;}const lat=source.lat??source.latitude??source.Latitude;const lng=source.lng??source.longitude??source.Longitude;if(Number.isFinite(Number(lat))&&Number.isFinite(Number(lng))){return{lat:Number(lat),lng:Number(lng)};}for(const k of Object.keys(source)){if(k.toLowerCase().includes(\"coord\")){const p=parseCoordinates(source[k]);if(p)return p;}}return null;};const coords=findCoord();if(!coords)continue;seenIds.add(id);// Apply the user's advanced parsing to the raw source\nconst findValue=key=>{if(!key)return undefined;if(source[key]!=null)return source[key];const lowerKey=key.toLowerCase();const keys=Object.keys(source);const exact=keys.find(k=>k.toLowerCase()===lowerKey);if(exact)return source[exact];const fuzzy=keys.find(k=>k.toLowerCase().includes(lowerKey));return fuzzy?source[fuzzy]:undefined;};const findPrice=()=>{const keys=Object.keys(source);if(priceTemplate&&priceTemplate!==\"{price}\"){const cleaned=priceTemplate.replace(/[{}]/g,\"\");const v=findValue(cleaned);if(v!=null)return String(v);}const priceKeys=[\"price\",\"priceFreehold\",\"total\",\"cost\"];for(const k of priceKeys){const v=findValue(k);if(v!=null){const s=String(v);if(s.includes(\"€\")||s.includes(\"$\")||s.includes(\"from\")||!isNaN(Number(s.replace(/[^\\d.]/g,\"\")))&&Number(s.replace(/[^\\d.]/g,\"\"))>100)return s;}}const coordVal=source[\"Coordinates\"]||source[\"coordinates\"];if(coordVal&&typeof coordVal===\"string\"){const s=coordVal;if(s.includes(\"€\")||s.includes(\"$\")||s.includes(\"from\")){const parts=s.split(/[|,]/);const lastPart=parts[parts.length-1].trim();if(lastPart.includes(\"€\")||lastPart.includes(\"$\")||lastPart.includes(\"from\"))return lastPart;}}for(const k of keys){const v=source[k];if(typeof v===\"string\"&&(v.includes(\"€\")||v.includes(\"$\")))return v;}return\"\";};result.push({...source,latitude:coords.lat,longitude:coords.lng,id:id,price:formatPriceLabel(findPrice()),partner:!!(source.partner||source.Partner),title:source.title||\"Marker\",framerElement:raw.framerElement});}// --- SECOND PASS: Store items ---\nfor(const stId of Object.keys(storeMap)){if(!seenIds.has(String(stId))){const st=storeMap[stId];if(!st)continue;const source=itFields(st);const findCoord=()=>{const pref=coordinatesField||\"coordinates\";if(source[pref]){const p=parseCoordinates(source[pref]);if(p)return p;}const sLat=source.lat??source.latitude??source.Latitude;const sLng=source.lng??source.longitude??source.Longitude;if(Number.isFinite(Number(sLat))&&Number.isFinite(Number(sLng))){return{lat:Number(sLat),lng:Number(sLng)};}for(const k of Object.keys(source)){if(k.toLowerCase().includes(\"coord\")){const p=parseCoordinates(source[k]);if(p)return p;}}return null;};const coords=findCoord();if(coords&&Number.isFinite(coords.lat)&&Number.isFinite(coords.lng)){seenIds.add(String(stId));result.push({...source,latitude:coords.lat,longitude:coords.lng,id:String(stId),price:formatPriceLabel(source.price||source.priceFreehold||\"\"),partner:!!(source.partner||source.Partner),title:source.title||\"Marker\"});}}}if(result.length===0&&(Object.keys(storeMap).length>0||sources.length>0)){console.warn(`[Map Debug] Zero markers found! Sources: ${sources.length}, Store: ${Object.keys(storeMap).length}.`);}return result;},[items,cmsItems,store?.registeredItems,coordinatesField,priceTemplate]);function itFields(it){if(!it)return{};if(it.fields)return it.fields;if(it.item?.fields)return it.item.fields;if(it.item)return it.item;return it;}const createIcon=useCallback((L,selected,item)=>{const price=formatPriceLabel(item?.price||item?.priceFreehold||\"\");const isPartner=!!item?.partner;const status=item?.status||\"\"// \"Off-plan\" | \"Ready\" | \"Resale\"\n;const baseColor=isPartner?partnerMarkerColor:markerColor;const baseBorderColor=isPartner?partnerMarkerBorderColor:markerBorderColor;const fill=selected?markerSelectedColor:baseColor;const size=markerStyle===\"dot\"?selected?16:12:selected?40:34;// PREMIUM PRICE TAG\nif(price&&markerStyle!==\"dot\"){const bgColor=selected?fill:\"rgba(255,255,255,0.95)\";const textColor=selected?\"#FFFFFF\":baseColor;const borderColor=selected?markerSelectedColor:baseBorderColor;const displayPrefix=status.toLowerCase()===\"off-plan\"?pricePrefix:\"\";let iconHtml=\"\";if(status.toLowerCase()===\"off-plan\"){iconHtml=`<svg fill=\"currentColor\" height=\"12px\" width=\"12px\" version=\"1.1\" id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" \n                        viewBox=\"0 0 511.998 511.998\" xml:space=\"preserve\">\n                    <g>\n                        <g>\n                            <path d=\"M447.525,465.491h-3.207l-14.924-26.249c-1.437-2.528-4.12-4.089-7.027-4.089h-22.502v-95.557V235.954v-95.56h9.036\n                                v36.164c0,4.465,3.62,8.084,8.084,8.084h30.539c4.466,0,8.084-3.618,8.084-8.084v-37.75c7.91-3.208,13.509-10.961,13.509-20.009\n                                v-3.32c0-11.906-9.687-21.594-21.594-21.594h-11.953l-60.294-59.473c-0.569-0.562-1.203-1.018-1.874-1.376V21.593\n                                C373.403,9.687,363.715,0,351.808,0h-3.32c-11.243,0-20.497,8.641-21.494,19.631L84.939,93.887H66.016\n                                c-11.906,0-21.593,9.687-21.593,21.594v3.32c0,10.844,8.044,19.821,18.474,21.342v22.907c0,10.268,7.21,18.869,16.829,21.047\n                                v94.085c-7.282,3.142-12.396,10.388-12.396,18.81c0,3.68,0.99,7.128,2.696,10.115l-18.452,24.405h-0.61\n                                c-4.465,0-8.084,3.618-8.084,8.084v44.249v23.923c0,4.466,3.62,8.084,8.084,8.084h73.695c4.465,0,8.084-3.618,8.084-8.084v-23.923\n                                v-44.249c0-4.466-3.62-8.084-8.084-8.084h-0.61l-18.453-24.405c1.706-2.988,2.696-6.435,2.696-10.115\n                                c0-8.423-5.114-15.668-12.396-18.81v-95.123c7.108-2.882,12.332-9.439,13.322-17.306h117.521v10.806\n                                c0,4.466,3.62,8.084,8.084,8.084h65.611v51.31v103.642v95.557h-22.502c-2.907,0-5.592,1.561-7.029,4.09l-14.921,26.249h-3.207\n                                c-11.906,0-21.593,9.687-21.593,21.593v3.32c0,11.906,9.687,21.593,21.593,21.593h194.751c11.906,0,21.593-9.687,21.593-21.593\n                                v-3.32C469.119,475.178,459.432,465.491,447.525,465.491z M439.44,168.475h-14.37v-28.081h14.37V168.475z M373.403,55.274\n                                l39.144,38.612h-39.144V55.274z M343.063,21.593L343.063,21.593c0-2.991,2.434-5.425,5.425-5.425h3.32\n                                c2.991,0,5.425,2.434,5.425,5.425v72.292h-14.17V21.593z M79.065,163.05v-22.656h14.17v22.656c0,2.991-2.434,5.425-5.425,5.425\n                                h-3.32C81.499,168.475,79.065,166.041,79.065,163.05z M92.122,296.991c0,1.416-0.695,2.663-1.752,3.45\n                                c-0.103,0.078-0.225,0.156-0.354,0.235c-0.078,0.046-0.158,0.088-0.239,0.13c-0.125,0.066-0.251,0.133-0.394,0.19\n                                c-0.125,0.05-0.258,0.083-0.388,0.121c-0.115,0.034-0.221,0.077-0.346,0.101c-0.272,0.054-0.552,0.085-0.84,0.085\n                                c-0.288,0-0.567-0.031-0.84-0.085c-0.124-0.025-0.23-0.067-0.345-0.101c-0.13-0.038-0.263-0.071-0.388-0.121\n                                c-0.143-0.058-0.269-0.124-0.394-0.191c-0.081-0.042-0.161-0.083-0.238-0.129c-0.128-0.079-0.25-0.157-0.354-0.235\n                                c-1.056-0.787-1.752-2.034-1.752-3.45c0-2.378,1.934-4.312,4.312-4.312C90.188,292.68,92.122,294.613,92.122,296.991z\n                                M59.047,399.683v-7.754h57.526v7.754H59.047z M116.573,347.679v28.08H59.047v-28.08H116.573z M103.777,331.512H71.843\n                                l11.064-14.631c0.199,0.05,0.402,0.086,0.604,0.129c0.102,0.022,0.204,0.045,0.307,0.066c0.572,0.113,1.15,0.202,1.734,0.265\n                                c0.148,0.016,0.297,0.027,0.446,0.04c0.535,0.046,1.071,0.077,1.609,0.082c0.068,0.001,0.135,0.011,0.203,0.011\n                                c0.068,0,0.135-0.01,0.203-0.011c0.538-0.005,1.075-0.036,1.609-0.082c0.149-0.013,0.299-0.024,0.446-0.04\n                                c0.583-0.064,1.162-0.153,1.734-0.265c0.103-0.021,0.205-0.043,0.307-0.066c0.202-0.043,0.404-0.08,0.604-0.129L103.777,331.512z\n                                M226.737,149.584H109.404v-9.19h117.333V149.584z M300.432,168.475h-57.527v-28.081h57.527V168.475z M234.82,124.225h-133.5\n                                H70.981h-4.964c-2.992,0-5.426-2.434-5.426-5.425v-3.32c0-2.991,2.434-5.425,5.425-5.425h20.106c0.009,0,0.017,0.002,0.026,0.002\n                                c0.009,0,0.018-0.002,0.027-0.002h188.508c4.466,0,8.084-3.619,8.084-8.084s-3.618-8.084-8.084-8.084H140.066l186.829-57.315\n                                v57.315h-23.828c-4.466,0-8.084,3.619-8.084,8.084s3.618,8.084,8.084,8.084h31.912h30.338h82.207c2.991,0,5.425,2.434,5.425,5.425\n                                v3.32c0,2.991-2.434,5.425-5.425,5.425h-30.539h-25.205h-0.095c-0.004,0-0.008,0-0.012,0h-83.159H234.82z M325.379,331.512\n                                l24.769-30.83l24.768,30.83H325.379z M374.917,347.68l-24.768,30.83l-24.768-30.83H374.917z M316.6,316.625v-57.702l23.179,28.851\n                                L316.6,316.625z M325.38,244.038h49.537l-24.768,30.83L325.38,244.038z M325.38,227.869l24.769-30.83l24.769,30.83H325.38z\n                                M325.38,140.394h49.537l-24.768,30.83L325.38,140.394z M339.779,184.132L316.6,212.984v-36.425V155.28L339.779,184.132z\n                                M316.6,362.566l23.179,28.851L316.6,420.268V362.566z M350.148,404.325l24.768,30.829H325.38L350.148,404.325z M360.519,391.417\n                                l23.179-28.851v57.702L360.519,391.417z M360.519,287.774l23.179-28.851v57.702L360.519,287.774z M360.519,184.131l23.179-28.852\n                                v57.703L360.519,184.131z M452.95,490.405c0,2.991-2.434,5.425-5.425,5.425H252.773c-2.991,0-5.425-2.434-5.425-5.425v-3.32\n                                c0-2.991,2.434-5.425,5.425-5.425h7.734c0.015,0,0.03,0,0.045,0h120.482c4.466,0,8.084-3.618,8.084-8.084\n                                c0-4.466-3.618-8.084-8.084-8.084H274.578l8.055-14.17h25.883h83.265h25.882l8.055,14.17h-15.582\n                                c-4.466,0-8.084,3.618-8.084,8.084c0,4.466,3.618,8.084,8.084,8.084h29.469c0.005,0,0.012,0.001,0.017,0.001\n                                c0.005,0,0.012-0.001,0.017-0.001h7.885c2.991,0,5.425,2.434,5.425,5.425V490.405z\"/>\n                        </g>\n                    </g>\n                    </svg>`;}else if(status.toLowerCase()===\"ready\"||status.toLowerCase()===\"готовое\"){iconHtml=`<svg width=\"12px\" height=\"12px\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n                    <path d=\"M11.3861 1.21065C11.7472 0.929784 12.2528 0.929784 12.6139 1.21065L21.6139 8.21065C21.8575 8.4001 22 8.69141 22 9V20.5C22 21.3284 21.3284 22 20.5 22H15V14C15 13.4477 14.5523 13 14 13H10C9.44772 13 9 13.4477 9 14V22H3.5C2.67157 22 2 21.3284 2 20.5V9C2 8.69141 2.14247 8.4001 2.38606 8.21065L11.3861 1.21065Z\" fill=\"currentColor\"/>\n                    </svg>`;}else if(status.toLowerCase()===\"resale\"||status.toLowerCase()===\"переуступка\"){iconHtml=`<span style=\"font-size: 14px; margin-right: 4px; line-height: 1;\">⥃</span>`;}// Land property type icon — check type field or title\nconst propertyType=item?.propertyType;const isLand=propertyType.includes(\"wOnLUZLMa\");if(isLand){iconHtml=`<svg width=\"12px\" height=\"12px\" id=\"Capa_1\" enable-background=\"new 0 0 480.681 480.681\" viewBox=\"0 0 480.681 480.681\" xmlns=\"http://www.w3.org/2000/svg\"><g><g id=\"_x34_8x48_px_18_\"><g><g><path d=\"m40.057 80.113c-22.132 0-40.057-17.925-40.057-40.056s17.925-40.057 40.057-40.057 40.057 17.925 40.057 40.057-17.926 40.056-40.057 40.056zm0-60.085c-11.016 0-20.028 9.013-20.028 20.028s9.013 20.028 20.028 20.028 20.028-9.013 20.028-20.028-9.013-20.028-20.028-20.028z\" fill=\"currentColor\"></path></g><g><path d=\"m40.057 480.681c-22.132 0-40.057-17.926-40.057-40.057s17.925-40.057 40.057-40.057 40.057 17.925 40.057 40.057c-.001 22.131-17.926 40.057-40.057 40.057zm0-60.085c-11.016 0-20.028 9.013-20.028 20.028 0 11.016 9.013 20.028 20.028 20.028s20.028-9.013 20.028-20.028c0-11.016-9.013-20.028-20.028-20.028z\" fill=\"currentColor\"></path></g><g><path d=\"m440.624 330.468c-22.131 0-40.057-17.925-40.057-40.057 0-22.131 17.925-40.057 40.057-40.057 22.131 0 40.057 17.925 40.057 40.057s-17.926 40.057-40.057 40.057zm0-60.085c-11.016 0-20.028 9.013-20.028 20.028 0 11.016 9.013 20.028 20.028 20.028 11.016 0 20.028-9.013 20.028-20.028s-9.012-20.028-20.028-20.028z\" fill=\"currentColor\"></path></g><g><path d=\"m290.411 480.681c-22.131 0-40.057-17.925-40.057-40.057 0-22.131 17.925-40.057 40.057-40.057 22.131 0 40.057 17.925 40.057 40.057 0 22.131-17.925 40.057-40.057 40.057zm0-60.085c-11.016 0-20.028 9.013-20.028 20.028 0 11.016 9.013 20.028 20.028 20.028 11.016 0 20.028-9.013 20.028-20.028.001-11.016-9.012-20.028-20.028-20.028z\" fill=\"currentColor\"></path></g><g><path d=\"m440.624 80.113c-22.131 0-40.057-17.925-40.057-40.057s17.926-40.056 40.057-40.056 40.057 17.925 40.057 40.057-17.926 40.056-40.057 40.056zm0-60.085c-11.016 0-20.028 9.013-20.028 20.028s9.013 20.028 20.028 20.028c11.016 0 20.028-9.013 20.028-20.028s-9.012-20.028-20.028-20.028z\" fill=\"currentColor\"></path></g><g><path d=\"m70.099 30.043h340.482v20.028h-340.482z\" fill=\"currentColor\"></path></g><g><path d=\"m30.043 70.099h20.028v340.482h-20.028z\" fill=\"currentColor\"></path></g><g><path d=\"m70.099 430.61h190.269v20.028h-190.269z\" fill=\"currentColor\"></path></g><g><path d=\"m430.61 70.099h20.028v190.269h-20.028z\" fill=\"currentColor\"></path></g><g><path d=\"m300.425 410.581h-20.028v-70.099c0-33.147 26.938-60.085 60.085-60.085h70.099v20.028h-70.099c-22.131 0-40.057 17.925-40.057 40.057z\" fill=\"currentColor\"></path></g><g><path d=\"m230.326 284.503-43.261-43.261-43.261 43.261-47.768-47.768 43.261-43.261-43.261-43.261 47.768-47.768 43.261 43.261 43.261-43.261 47.768 47.768-43.261 43.261 43.261 43.261zm-43.261-71.602 43.261 43.361 19.427-19.427-43.261-43.261 43.261-43.361-19.427-19.428-43.261 43.261-43.261-43.261-19.528 19.428 43.261 43.261-43.261 43.261 19.428 19.427z\" fill=\"currentColor\"></path></g></g></g></g></svg>`;}return L.divIcon({className:\"custom-price-marker\",html:`\n                    <div style=\"position:relative; display:flex; flex-direction:column; align-items:center;\">\n                        <div style=\"\n                            background: ${bgColor};\n                            color: ${textColor};\n                            padding: 5px 10px;\n                            border-radius: 100px;\n                            border: 1.5px solid ${borderColor};\n                            font-family: 'Inter', 'TT Norms Pro Medium', sans-serif;\n                            font-size: 13px;\n                            font-weight: 700;\n                            line-height: 1;\n                            white-space: nowrap;\n                            box-shadow: 0 4px 15px rgba(0,0,0,0.2);\n                            transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);\n                            transform: scale(${selected?1.1:1});\n                            z-index: 2;\n                            position: relative;\n                            display: flex;\n                            align-items: center;\n                            gap: 4px;\n                        \">${iconHtml}${displayPrefix}${price}\n                        ${isPartner?`<div style=\"position:absolute; top:-6px; right:-6px; background:${partnerMarkerColor}; color:#fff; width:16px; height:16px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:10px; border:1.5px solid #fff; pointer-events:none;\">★</div>`:\"\"}\n                        </div>\n                        <div style=\"\n                            width: 0; \n                            height: 0; \n                            border-left: 6px solid transparent;\n                            border-right: 6px solid transparent;\n                            border-top: 6px solid ${bgColor};\n                            margin-top: -1px;\n                            filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));\n                            z-index: 1;\n                        \"></div>\n                    </div>`,iconSize:[0,0],iconAnchor:[0,20]});}if(markerStyle===\"dot\"){return L.divIcon({className:\"\",html:`<div style=\"position:relative;width:${size}px;height:${size}px;\"><div style=\"width:${size}px;height:${size}px;border-radius:50%;background:${fill};border:2px solid ${baseBorderColor};box-shadow:0 2px 8px rgba(0,0,0,0.22);\"></div>\n                    ${isPartner&&!selected?`<div style=\"position:absolute; top:-4px; right:-4px; background:${partnerMarkerColor}; color:#fff; width:10px; height:10px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:7px; border:1px solid #fff; pointer-events:none;\">★</div>`:\"\"}</div>`,iconSize:[size,size],iconAnchor:[size/2,size/2]});}return L.divIcon({className:\"\",html:`<div style=\"position:relative;width:${size}px;height:${size}px;\">\n                <div style=\"\n                    width:${size}px;height:${size}px;\n                    border-radius:50% 50% 50% 0;\n                    transform:rotate(-45deg);\n                    background:${fill};\n                    border:2px solid ${baseBorderColor};\n                    box-shadow:0 4px 12px rgba(0,0,0,0.25);\n                    position:absolute;transform-origin:0 0;\n                \"></div>\n                <div style=\"\n                    width:${Math.round(size*.38)}px;height:${Math.round(size*.38)}px;\n                    background:rgba(255,255,255,0.9);border-radius:50%;\n                    position:absolute;top:18%;left:50%;transform:translateX(-50%);\n                    display: flex; align-items: center; justify-content: center;\n                    font-size: 8px; color: #000; font-family: sans-serif;\n                \"></div>\n                ${isPartner&&!selected?`<div style=\"position:absolute; top:-4px; right:-4px; background:${partnerMarkerColor}; color:#fff; width:12px; height:12px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:8px; border:1px solid #fff; pointer-events:none;\">★</div>`:\"\"}\n            </div>`,iconSize:[size,size],iconAnchor:[size/2,size]});},[markerColor,markerSelectedColor,markerBorderColor,partnerMarkerColor,partnerMarkerBorderColor,markerStyle,pricePrefix]);const createSightIcon=useCallback((L,selected,_item)=>{const size=selected?52:44;const pinColor=sightMarkerColor||\"#1E88E5\";const pinBorder=sightMarkerBorderColor||\"#FFFFFF\";const scaleFill=selected?markerSelectedColor||pinColor:pinColor;return L.divIcon({className:\"custom-sight-marker\",html:`<div style=\"width: ${size}px; height: ${size}px; transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); transform: scale(${selected?1.15:1}); transform-origin: bottom center;\">\n                    <svg width=\"${size}\" height=\"${size}\" viewBox=\"0 0 40 40\" style=\"filter: drop-shadow(0px 4px 8px rgba(0,0,0,0.35));\">\n                      <path d=\"M20 2C11.163 2 4 9.163 4 18c0 10.938 16 20 16 20s16-9.062 16-20C36 9.163 28.837 2 20 2z\" fill=\"${scaleFill}\" stroke=\"${pinBorder}\" stroke-width=\"2\"/>\n                      <circle cx=\"20\" cy=\"17\" r=\"6\" fill=\"rgba(255,255,255,0.2)\"/>\n                      <!-- camera icon, centered around 20,16 in the 40x40 pin viewBox -->\n                      <g transform=\"translate(20,16)\" fill=\"${pinBorder}\">\n                        <!-- camera body -->\n                        <rect x=\"-9\" y=\"-5\" width=\"18\" height=\"12\" rx=\"2\" ry=\"2\"/>\n                        <!-- viewfinder bump on top -->\n                        <rect x=\"-3\" y=\"-8\" width=\"6\" height=\"4\" rx=\"1\" ry=\"1\"/>\n                        <!-- lens ring outer -->\n                        <circle cx=\"0\" cy=\"1\" r=\"4\" fill=\"rgba(0,0,0,0.25)\"/>\n                        <!-- lens ring inner -->\n                        <circle cx=\"0\" cy=\"1\" r=\"2.3\" fill=\"${pinBorder}\"/>\n                        <!-- small plus top-left -->\n                        <rect x=\"-8.5\" y=\"-4\" width=\"3\" height=\"1\" rx=\"0.4\"/>\n                        <rect x=\"-7.5\" y=\"-5\" width=\"1\" height=\"3\" rx=\"0.4\"/>\n                      </g>\n                    </svg>\n                </div>`,iconSize:[size,size],iconAnchor:[size/2,size]});},[sightMarkerColor,sightMarkerBorderColor,markerSelectedColor]);useEffect(()=>{if(!mapReady)return;const sId=\"realestate-popup-styles\";let s=document.getElementById(sId);if(!s){s=document.createElement(\"style\");s.id=sId;document.head.appendChild(s);}s.innerHTML=`\n            .custom-sight-marker {\n                transition: opacity 0.3s ease !important;\n            }\n            .sight-markers-hidden .custom-sight-marker {\n                opacity: 0 !important;\n                pointer-events: none !important;\n                transform: scale(0.5) !important;\n            }\n            /* Hide the default Leaflet triangle/tip with absolute priority */\n            .leaflet-popup-tip-container, .leaflet-popup-tip {\n                display: none !important;\n            }\n            .custom-realestate-popup .leaflet-popup-content-wrapper,\n            .custom-realestate-popup-framer .leaflet-popup-content-wrapper {\n                border-radius: ${popupRadius} !important;\n                background: ${popupBackground} !important;\n                border: 1px solid ${popupBorderColor} !important;\n                box-shadow: ${popupShadow} !important;\n                overflow: hidden !important;\n            }\n            .custom-realestate-popup .leaflet-popup-content,\n            .custom-realestate-popup-framer .leaflet-popup-content {\n                overflow: visible !important;\n            }\n            .custom-realestate-popup a.leaflet-popup-close-button,\n            .custom-realestate-popup-framer a.leaflet-popup-close-button {\n                color: ${closeColor} !important;\n                font-size: 20px !important;\n                padding: 6px 8px 0 0 !important;\n            }\n            .custom-realestate-popup-framer {\n                margin-bottom: 0px !important;\n                /* Disable close animation to sync with React content unmounting */\n                transition: none !important;\n            }\n            .custom-realestate-popup-framer .leaflet-popup-content-wrapper {\n                transition: none !important;\n            }\n            \n            /* Custom Zoom Controls - base styles always apply */\n            .leaflet-control-zoom.leaflet-bar {\n                border: none !important;\n                box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;\n                border-radius: 8px !important;\n                margin: 20px !important;\n                overflow: hidden;\n            }\n            /* Conditional: center-right layout override */\n            ${zoomPosition===\"centerright\"?`\n                .leaflet-bottom.leaflet-right {\n                    bottom: 0 !important;\n                    top: 0 !important;\n                    right: 0 !important;\n                    left: auto !important;\n                    display: flex !important;\n                    flex-direction: column !important;\n                    justify-content: center !important;\n                    align-items: flex-end !important;\n                    pointer-events: none;\n                }\n                .leaflet-bottom.leaflet-right .leaflet-control {\n                    pointer-events: all;\n                }\n                .leaflet-control-zoom.leaflet-bar {\n                    margin-bottom: 0 !important;\n                    margin-top: 0 !important;\n                }`:``}\n            .leaflet-control-zoom-in, .leaflet-control-zoom-out {\n                background: #ffffff !important;\n                color: #000000 !important;\n                border: none !important;\n                border-bottom: 1px solid #eeeeee !important;\n                width: 32px !important;\n                height: 32px !important;\n                line-height: 32px !important;\n                font-size: 16px !important;\n                font-weight: 600 !important;\n                display: flex !important;\n                align-items: center !important;\n                justify-content: center !important;\n            }\n            .leaflet-control-zoom-in:hover, .leaflet-control-zoom-out:hover {\n                background: #f5f5f5 !important;\n            }\n            .leaflet-control-zoom-out {\n                border-bottom: none !important;\n            }\n            \n            /* Dynamic Popup Positioning Modifiers */\n            .custom-realestate-popup-framer.popup-shift-down {\n                bottom: auto !important;\n                top: 10px !important;\n                transform-origin: top center !important;\n            }\n            .custom-realestate-popup-framer.popup-shift-right {\n                left: 10px !important;\n                transform-origin: bottom left !important;\n            }\n            .custom-realestate-popup-framer.popup-shift-left {\n                left: auto !important;\n                right: 10px !important;\n                transform-origin: bottom right !important;\n            }\n            .custom-realestate-popup-framer.popup-shift-down.popup-shift-right {\n                transform-origin: top left !important;\n            }\n            .custom-realestate-popup-framer.popup-shift-down.popup-shift-left {\n                transform-origin: top right !important;\n            }\n        `;},[mapReady,popupRadius,popupBackground,popupBorderColor,popupShadow,popupWidth,closeColor]);useEffect(()=>{if(isStatic||typeof window===\"undefined\"||!mapElRef.current)return;let cancelled=false;loadLeaflet().then(L=>{if(cancelled||!L||mapRef.current)return;const map=L.map(mapElRef.current,{zoomControl:false,attributionControl:true,preferCanvas:true}).setView(parsedCenter,clamp(zoom??10,1,20));L.tileLayer(getTileUrl(tileStyle??\"light\"),{maxZoom:20}).addTo(map);// Add zoom controls in the selected position\nconst leafletZoomPos=zoomPosition===\"centerright\"?\"bottomright\":zoomPosition;L.control.zoom({position:leafletZoomPos}).addTo(map);const layer=L.markerClusterGroup({maxClusterRadius:40,spiderfyOnMaxZoom:true,showCoverageOnHover:false,zoomToBoundsOnClick:true,disableClusteringAtZoom:18,iconCreateFunction:function(cluster){const count=cluster.getChildCount();// Using a circle for a modern look matching the app\nreturn L.divIcon({html:`<div style=\"background:${markerSelectedColor||\"#0099FF\"};color:#fff;border-radius:50%;width:36px;height:36px;display:flex;align-items:center;justify-content:center;font-weight:700;font-family:sans-serif;font-size:14px;box-shadow:0 4px 15px rgba(0,0,0,0.2);border:2px solid ${markerBorderColor||\"#fff\"};transform: translate(-50%, -50%);\">${count}</div>`,className:\"custom-cluster-icon\",iconSize:[0,0]});}}).addTo(map);const updateSightVisibility=()=>{const currentZoom=map.getZoom();if(currentZoom<(sightMinZoom??16)){map.getContainer().classList.add(\"sight-markers-hidden\");}else{map.getContainer().classList.remove(\"sight-markers-hidden\");}};map.on(\"zoomend\",updateSightVisibility);updateSightVisibility()// Initial check\n;mapRef.current=map;markersLayerRef.current=layer;setMapReady(true);}).catch(()=>{});return()=>{cancelled=true;try{mapRef.current?.remove();}catch(e){}mapRef.current=null;markersLayerRef.current=null;markerRefsById.current=new Map;hasFittedBoundsRef.current=false;setMapReady(false);};},[isStatic,sightMinZoom,parsedCenter,zoom,tileStyle]);useEffect(()=>{if(!mapReady)return;const map=mapRef.current;const markersLayer=markersLayerRef.current;const L=typeof window!==\"undefined\"?window.L:null;if(!map||!markersLayer||!L)return;// ↓ Отменяем незавершённые чанки из предыдущего рендера.\n// Без этого старые rAF-колбэки добавляют маркеры ПОСЛЕ того как\n// следующий рендер уже обработал удаления — маркеры зависают над кластерами.\nif(pendingChunkCancelRef.current){pendingChunkCancelRef.current();pendingChunkCancelRef.current=null;}const markersToRemove=[];const currentIds=new Set(safeItems.map(it=>String(it.id)));markerRefsById.current.forEach((marker,id)=>{if(!currentIds.has(id)){// Unbind event listeners *before* closing the popup to prevent zombie timeouts!\n// Previously, closing a popup here triggered a 10ms delayed callback that\n// attempted to add the destroyed marker back into the MakerClusterGroup, crashing Leaflet.\nmarker.off(\"popupclose\");try{marker.closePopup();}catch(e){}if(activePopupNodeRef.current?.id===id){setActivePopupNode(null);}if(markersLayer.hasLayer(marker)){// Only ask the ClusterGroup to remove markers it actively controls\nmarkersToRemove.push(marker);}else if(map.hasLayer(marker)){// It was either brought to front due to click, or it's a Sight marker\nmap.removeLayer(marker);}markerRefsById.current.delete(id);}});if(markersToRemove.length>0){markersLayer.removeLayers(markersToRemove);}// Also safeguard case where active ID is gone but loop didn't catch it\nif(activePopupNodeRef.current&&!currentIds.has(activePopupNodeRef.current.id)){setActivePopupNode(null);}const bounds=[];const markersToAdd=[];safeItems.forEach(it=>{const id=String(it.id);let marker=markerRefsById.current.get(id);if(!marker){const isSight=!!it.sight;marker=L.marker([it.latitude,it.longitude],{icon:isSight?createSightIcon(L,false,it):createIcon(L,false,it),title:it.title||\"Listing\",riseOnHover:true});marker._item=it;marker._isSight=isSight;markerRefsById.current.set(id,marker);if(isSight){console.log(`[Sight Map] Added to map directly: ${id} at ${it.latitude}, ${it.longitude} | Zoom: ${map.getZoom()}`);marker.addTo(map);}else{markersToAdd.push(marker);}if(popupEnabled){if(it.framerElement){const div=document.createElement(\"div\");div.style.cssText=\"width:fit-content;height:auto;background:transparent;overflow:visible;\";const scaledWidth=popupWidth*popupScale;const baseOffset=markerStyle===\"dot\"?-8:-30;const scaledOffset=baseOffset*popupScale;const framerPopup=L.popup({maxWidth:scaledWidth+40,minWidth:scaledWidth,closeButton:closeEnabled,className:\"custom-realestate-popup-framer\",offset:[0,markerStyle===\"dot\"?-8:-30],autoPan:false}).setContent(div);marker.on(\"click\",()=>{// Prevent re-rendering/crashing if popup is already open\nif(activePopupNodeRef.current?.id===id){return;}if(!marker._isSight&&markersLayer.hasLayer(marker)){markersLayer.removeLayer(marker);}if(!map.hasLayer(marker)){map.addLayer(marker);}marker.bindPopup(framerPopup).openPopup();});marker.on(\"popupopen\",e=>{marker.setIcon(marker._isSight?createSightIcon(L,true,marker._item):createIcon(L,true,marker._item));marker.setZIndexOffset(1e3);const contentNode=e.popup._contentNode;contentNode.style.cssText=\"height:auto!important;overflow:visible!important;display:block!important;\";div.style.cssText=\"width:fit-content;height:auto;background:transparent;overflow:visible;min-height:0;flex:none;\";// Determine dynamic positioning bounds\nconst popupEl=e.popup._container;if(popupEl){const pt=map.latLngToContainerPoint(marker.getLatLng());const mapSize=map.getSize();const expectedWidth=popupWidth*popupScale;const expectedHeight=380*popupScale// Heuristic for average popup height\n;popupEl.classList.remove(\"popup-shift-down\",\"popup-shift-right\",\"popup-shift-left\");if(pt.y<expectedHeight+60){popupEl.classList.add(\"popup-shift-down\");}if(pt.x<expectedWidth/2+40){popupEl.classList.add(\"popup-shift-right\");}else if(mapSize.x-pt.x<expectedWidth/2+40){popupEl.classList.add(\"popup-shift-left\");}// 100% accurate Auto-Pan using ResizeObserver\n// (Handles asynchronous Framer React Portals and Image loads perfectly)\nconst ro=new ResizeObserver(()=>{if(!mapElRef.current||!map)return;const popRect=popupEl.getBoundingClientRect();if(popRect.width===0||popRect.height===0)return;// Ignore if closing/hidden\nconst mapRect=mapElRef.current.getBoundingClientRect();// Safety padding from map edges\nconst margin=50;let dx=0;let dy=0;// Calculate distances from map boundaries\nconst topDist=popRect.top-mapRect.top;const bottomDist=mapRect.bottom-popRect.bottom;const leftDist=popRect.left-mapRect.left;const rightDist=mapRect.right-popRect.right;if(topDist<margin){dy=topDist-margin// Negative: pan map up\n;}else if(bottomDist<margin){dy=margin-bottomDist// Positive: pan map down\n;}if(leftDist<margin){dx=leftDist-margin// Negative: pan map left\n;}else if(rightDist<margin){dx=margin-rightDist// Positive: pan map right\n;}if(dx!==0||dy!==0){// Ensure it fires outside observer loop\nrequestAnimationFrame(()=>{try{map.panBy([dx,dy],{animate:true});}catch(e){}});}});// Delay observation slightly so CSS flip stabilizes\nsetTimeout(()=>ro.observe(popupEl),10);// Clean up observer when popup closes\nmarker.once(\"popupclose\",()=>{ro.disconnect();});}setActivePopupNode({id,node:div});mapActions?.setActiveCardId(id);});marker.on(\"popupclose\",()=>{marker.setIcon(marker._isSight?createSightIcon(L,false,marker._item):createIcon(L,false,marker._item));marker.setZIndexOffset(0);if(activePopupNodeRef.current?.id===id){setActivePopupNode(null);mapActions?.setActiveCardId(null);}setTimeout(()=>{marker.unbindPopup();if(!marker._isSight){if(map.hasLayer(marker)&&!markersLayer.hasLayer(marker)){map.removeLayer(marker);markersLayer.addLayer(marker);}}},10);});}else{const popupHtml=`\n                            < div style = \"\n                                width: ${popupWidth}px; max - width: 100 %;\n                        padding: 16px;\n                        background:${popupBackground||\"#fff\"};\n                        border - radius:${popupRadius||\"16px\"};\n                        box - sizing: border - box; font - family: sans - serif;\n                        \">\n                            < div style = \"font-size:16px;font-weight:700;color:${priceColor||\"#000\"};\" > ${pricePrefix}${it.price||\"\"}</div >\n                            </div > `;const standardPopup=L.popup({maxWidth:popupWidth+40,minWidth:popupWidth,closeButton:closeEnabled,className:\"custom-realestate-popup\",offset:[0,markerStyle===\"dot\"?-8:-30]}).setContent(popupHtml);marker.on(\"click\",()=>{if(activePopupNodeRef.current?.id===id){const mapZoom=map.getZoom();const targetPoint=map.project([it.latitude,it.longitude],mapZoom);const yOffset=map.getSize().y/2-35;const newCenterPoint=L.point(targetPoint.x,targetPoint.y-yOffset);map.panTo(map.unproject(newCenterPoint,mapZoom),{animate:true});return;}if(!marker._isSight&&markersLayer.hasLayer(marker)){markersLayer.removeLayer(marker);}if(!map.hasLayer(marker)){map.addLayer(marker);}marker.bindPopup(standardPopup).openPopup();const mapZoom=map.getZoom();const targetPoint=map.project([it.latitude,it.longitude],mapZoom);const yOffset=map.getSize().y/2-35;const newCenterPoint=L.point(targetPoint.x,targetPoint.y-yOffset);map.panTo(map.unproject(newCenterPoint,mapZoom),{animate:true,duration:.8,easeLinearity:.1});});marker.on(\"popupopen\",()=>{marker.setIcon(marker._isSight?createSightIcon(L,true,marker._item):createIcon(L,true,marker._item));marker.setZIndexOffset(1e3);mapActions?.setActiveCardId(id);});marker.on(\"popupclose\",()=>{marker.setIcon(marker._isSight?createSightIcon(L,false,marker._item):createIcon(L,false,marker._item));marker.setZIndexOffset(0);mapActions?.setActiveCardId(null);setTimeout(()=>{marker.unbindPopup();if(!marker._isSight){if(map.hasLayer(marker)){map.removeLayer(marker);}if(!markersLayer.hasLayer(marker)){markersLayer.addLayer(marker);}}},100);});}}}else{// Update existing marker\nmarker._item=it;const isActive=activePopupNodeRef.current?.id===id;const oldLatLng=marker.getLatLng();if(oldLatLng.lat!==it.latitude||oldLatLng.lng!==it.longitude){marker.setLatLng([it.latitude,it.longitude]);}const newIcon=marker._isSight?createSightIcon(L,isActive,it):createIcon(L,isActive,it);const oldIcon=marker.options.icon;if(!oldIcon||oldIcon.options?.html!==newIcon.options?.html||oldIcon.options?.className!==newIcon.options?.className){marker.setIcon(newIcon);}if(isActive)marker.setZIndexOffset(1e3);else marker.setZIndexOffset(0);}bounds.push([it.latitude,it.longitude]);});if(markersToAdd.length>0){let chunkCancelled=false;const CHUNK_SIZE=30;let rafHandle=null;const addChunk=start=>{if(chunkCancelled||!markersLayerRef.current)return;const chunk=markersToAdd.slice(start,start+CHUNK_SIZE);if(chunk.length===0)return;try{markersLayerRef.current.addLayers(chunk);}catch(e){/* ignore if map was destroyed */}if(start+CHUNK_SIZE<markersToAdd.length){rafHandle=requestAnimationFrame(()=>addChunk(start+CHUNK_SIZE));}else{pendingChunkCancelRef.current=null// finished cleanly\n;}};// Register cancel function so next effect run can stop in-flight chunks\npendingChunkCancelRef.current=()=>{chunkCancelled=true;if(rafHandle!==null)cancelAnimationFrame(rafHandle);};addChunk(0);}if(fitToMarkers&&bounds.length>0&&!hasFittedBoundsRef.current){try{map.fitBounds(L.latLngBounds(bounds),{padding:[40,40]});const z=map.getZoom();if(Number.isFinite(z)&&z>maxFitZoom)map.setZoom(maxFitZoom);hasFittedBoundsRef.current=true;}catch(e){}}else if(!fitToMarkers&&!hasFittedBoundsRef.current){try{map.setView(parsedCenter,clamp(zoom,1,20));hasFittedBoundsRef.current=true;}catch(e){}}},[mapReady,safeItems,createIcon,popupEnabled,fitToMarkers,maxFitZoom,parsedCenter,zoom]);if(isStatic){return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",background:tileStyle===\"dark\"?\"linear-gradient(135deg,#0f121a,#161b29)\":\"linear-gradient(135deg,#f3f5f7,#e9eef3)\",color:tileStyle===\"dark\"?\"rgba(255,255,255,0.5)\":\"rgba(0,0,0,0.4)\",fontSize:13,fontFamily:\"sans-serif\",...style},children:\"Leaflet Map\"});}return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\",borderRadius:mapRadius,...style},children:[/*#__PURE__*/_jsx(\"div\",{ref:mapElRef,style:{position:\"absolute\",inset:0}}),!safeItems.length&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",pointerEvents:\"none\",color:emptyTextColor,textAlign:\"center\",padding:16,...emptyFont},children:emptyText}),activePopupNodeState&&(()=>{const item=store?.registeredItems?.[activePopupNodeState.id];if(!item)return null;// getElement() — новый factory pattern (рендерит JSX только здесь, не хранит в store)\n// framerElement — fallback для обратной совместимости\nconst content=item.getElement?.()??item.framerElement;if(!content)return null;return /*#__PURE__*/ReactDOM.createPortal(/*#__PURE__*/_jsx(\"div\",{style:{width:\"fit-content\",height:\"auto\",pointerEvents:\"auto\",zoom:popupScale??.5,transformOrigin:\"top center\"},children:content}),activePopupNodeState.node);})(),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",bottom:24,right:24,zIndex:1e3},children:/*#__PURE__*/_jsx(\"div\",{onClick:toggleFullScreen,style:{width:44,height:44,borderRadius:8,background:\"#ffffff\",boxShadow:\"0 2px 10px rgba(0,0,0,0.15)\",cursor:\"pointer\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",color:\"#333\",transition:\"background 0.2s\"},onMouseEnter:e=>e.currentTarget.style.background=\"#f4f4f4\",onMouseLeave:e=>e.currentTarget.style.background=\"#ffffff\",children:isFullScreen?/*#__PURE__*/_jsx(\"svg\",{width:\"20\",height:\"20\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M8 3v3a2 2 0 0 1-2 2H3M21 8h-3a2 2 0 0 1-2-2V3M3 16h3a2 2 0 0 1 2 2v3M16 21v-3a2 2 0 0 1 2-2h3\"})}):/*#__PURE__*/_jsx(\"svg\",{width:\"20\",height:\"20\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7\"})})})})]});}addPropertyControls(RealEstateLeafletMap,{useGlobalStore:{type:ControlType.Boolean,title:\"Global Context\",defaultValue:false},mapRadius:{type:ControlType.BorderRadius,title:\"Map Radius\",defaultValue:\"0px\"},children:{type:ControlType.ComponentInstance,title:\"CMS Content\",hidden:p=>p.useGlobalStore},coordinatesField:{type:ControlType.String,title:\"Coord Field\",defaultValue:\"coordinates\"},priceTemplate:{type:ControlType.String,title:\"Price Mapping\",defaultValue:\"{price}\"},pricePrefix:{type:ControlType.String,title:\"Price Prefix\",defaultValue:\"from \"},centerCoordinates:{type:ControlType.String,title:\"Center Coords\",defaultValue:\"-8.62526, 115.15108\"},zoom:{type:ControlType.Number,title:\"Zoom\",defaultValue:10,min:1,max:20,step:1},fitToMarkers:{type:ControlType.Boolean,title:\"Fit to Markers\",defaultValue:true},zoomPosition:{type:ControlType.Enum,title:\"Zoom Buttons\",options:[\"centerright\",\"bottomright\",\"bottomleft\",\"topright\",\"topleft\"],optionTitles:[\"Center Right\",\"Bottom Right\",\"Bottom Left\",\"Top Right\",\"Top Left\"],defaultValue:\"centerright\",displaySegmentedControl:false},sightMinZoom:{type:ControlType.Number,title:\"Sight Min Zoom\",defaultValue:16,min:1,max:20,step:1,displayStepper:true},maxFitZoom:{type:ControlType.Number,title:\"Max Fit Zoom\",defaultValue:15,min:1,max:20,step:1},tileStyle:{type:ControlType.Enum,title:\"Tiles\",options:[\"light\",\"dark\",\"osm\"],optionTitles:[\"Light\",\"Dark\",\"OSM\"],defaultValue:\"light\",displaySegmentedControl:true},markerStyle:{type:ControlType.Enum,title:\"Marker\",options:[\"default\",\"dot\"],optionTitles:[\"Pin\",\"Dot\"],defaultValue:\"default\",displaySegmentedControl:true},markerColor:{type:ControlType.Color,title:\"Color\",defaultValue:\"#000000\"},markerSelectedColor:{type:ControlType.Color,title:\"Selected\",defaultValue:\"#0099FF\"},markerBorderColor:{type:ControlType.Color,title:\"Border\",defaultValue:\"#FFFFFF\"},partnerMarkerColor:{type:ControlType.Color,title:\"Partner Color\",defaultValue:\"#10B981\"},partnerMarkerBorderColor:{type:ControlType.Color,title:\"Partner Border\",defaultValue:\"#059669\"},sightMarkerColor:{type:ControlType.Color,title:\"Sight Color\",defaultValue:\"#1E88E5\"},sightMarkerBorderColor:{type:ControlType.Color,title:\"Sight Border\",defaultValue:\"#FFFFFF\"},popupEnabled:{type:ControlType.Boolean,title:\"Popup\",defaultValue:true},popupScale:{type:ControlType.Number,title:\"Popup Scale\",defaultValue:.5,min:.3,max:1,step:.05,displayStepper:true},popupWidth:{type:ControlType.Number,title:\"Popup Width\",defaultValue:360,min:200,max:600},popupRadius:{type:ControlType.BorderRadius,title:\"Radius\",defaultValue:\"16px\"},popupBackground:{type:ControlType.Color,title:\"Bg Color\",defaultValue:\"#FFFFFF\"},popupBorderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#EEEEEE\"},popupShadow:{type:ControlType.BoxShadow,title:\"Shadow\",defaultValue:\"0px 10px 30px rgba(0,0,0,0.18)\"},bodyFont:{type:ControlType.Font,title:\"Body Font\",controls:\"extended\"},priceColor:{type:ControlType.Color,title:\"Price Color\",defaultValue:\"#000000\"},closeEnabled:{type:ControlType.Boolean,title:\"Close Btn\",defaultValue:true},closeColor:{type:ControlType.Color,title:\"Close Color\",defaultValue:\"#000000\"},emptyText:{type:ControlType.String,title:\"Empty Text\",defaultValue:\"Connect CMS items to show markers.\"},emptyFont:{type:ControlType.Font,title:\"Empty Font\",controls:\"extended\"},emptyTextColor:{type:ControlType.Color,title:\"Empty Color\",defaultValue:\"#999999\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"RealEstateLeafletMap\",\"slots\":[\"children\"],\"annotations\":{\"framerIntrinsicWidth\":\"800\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"500\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./RealEstateLeafletMap.map"],"mappings":"yTAG6sB,SAAS,IAAa,CAAC,GAAU,IAAS,OAAY,OAAO,QAAQ,QAAQ,KAAK,CAAC,IAAM,EAAE,EAAmxB,OAAzwB,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,EAAE,mBAA0B,QAAQ,QAAQ,EAAE,EAAE,CAAI,IAA6C,EAAmB,IAAI,SAAS,EAAQ,IAAS,CAAC,GAAG,CAAC,IAAM,EAAQ,GAAM,CAAC,GAAG,CAAC,SAAS,cAAc,cAAc,EAAK,IAAI,CAAC,CAAC,IAAM,EAAK,SAAS,cAAc,OAAO,CAAC,EAAK,IAAI,aAAa,EAAK,KAAK,EAAK,SAAS,KAAK,YAAY,EAAK,GAAI,EAAQ,EAAY,CAAC,EAAQ,EAA0B,CAAC,EAAQ,EAAkC,CAAC,IAAM,EAAO,GAAK,IAAI,SAAS,EAAI,IAAM,CAAC,IAAM,EAAO,SAAS,cAAc,SAAS,CAAC,EAAO,IAAI,EAAI,EAAO,MAAM,GAAM,EAAO,OAAO,EAAI,EAAO,QAAQ,EAAI,SAAS,KAAK,YAAY,EAAO,EAAG,CAAC,EAAO,EAAW,CAAC,SAAS,E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