import{a as e}from"./rolldown-runtime-C_ttsnZz.js";import{St as r,q as n}from"./index-BT8Vuu3B.js";import{t}from"./MarkerIcon-Bc3X9WQk-CB_UVEds.js";r();var s=n();function i({clusters:e,onClick:r,doesSuperclusterContainActiveMarker:n,children:i}){return(0,s.jsxs)("div",{className:"\n  p-2 border-b border-gray-300\n  bg-white/95 text-xs font-mono\n",children:[(0,s.jsxs)("div",{className:"\n  font-bold mb-2\n",children:["Markers (",e.length,")"]}),e.map((e,n)=>{let i=e.properties.cluster,o=e.properties.cluster_id,a=e.properties.point_count;if(i)return(0,s.jsxs)("div",{onClick:()=>r(e),onKeyDown:n=>"Enter"===n.key&&r(e),role:"button",tabIndex:0,className:"\n  p-1.5 mb-1 border border-primary-200 rounded\n  flex items-center gap-2 cursor-pointer\n  hover:bg-gray-100\n","data-testid":`map-marker-${n}`,children:[(0,s.jsx)("div",{className:"\n  w-6 h-6 rounded-full bg-primary-100 text-white\n  flex items-center justify-center font-bold text-xs\n",children:a}),(0,s.jsxs)("span",{children:["Cluster (",a," markers)"]})]},`cluster-${o}`);let d=e.properties;return(0,s.jsxs)("div",{"data-testid":`map-marker-${n}`,onClick:()=>!d.disableClick&&r(e),onKeyDown:n=>!d.disableClick&&"Enter"===n.key&&r(e),role:"button",tabIndex:0,className:"\n  p-1.5 mb-1 border border-primary-200 rounded\n  flex items-center gap-2 cursor-pointer\n  hover:bg-gray-100\n",children:[(0,s.jsx)("div",{className:"w-6 h-6 flex items-center justify-center",children:(0,s.jsx)(t,{icon:d.icon})}),(0,s.jsx)("span",{children:d.name||d.id})]},`marker-${d.id}`)}),i]})}export{i as default};
//# sourceMappingURL=Testing--n5Ro0Ek-CbrzV6IT.js.map