import{a as r}from"./rolldown-runtime-C_ttsnZz.js";import{St as e,q as o}from"./index-BT8Vuu3B.js";import{n as t,s as i}from"./index.modern-tyEdEbjo.js";import{n as s,t as a}from"./MarkerIcon-Bc3X9WQk-CB_UVEds.js";import{n}from"./context-BrD4AniQ-_nW8oMsv.js";import{t as l}from"./Cluster-BHQcO6iC-DIgE4zBB.js";e();var c=o();function m({clusters:r,colors:e,clusterIcon:o,onClick:s,doesSuperclusterContainActiveMarker:m}){i();let{activeMarker:p,zoom:d}=n(),u=r=>()=>{r.properties.disableClick||s?.(r)};return r?.map((r,i)=>{let s=r.geometry.coordinates[0],n=r.geometry.coordinates[1];return(0,c.jsxs)(t,{position:{lat:n,lng:s},onClick:u(r),children:[r.properties.cluster&&(0,c.jsx)(l,{colors:e,icon:o,isActive:m(r.properties.cluster_id)}),!r.properties.cluster&&(0,c.jsx)("div",{className:"\n  group/marker cursor-pointer rounded-full\n  relative h-7 w-7 flex items-center justify-center\n  text-base-white ring-1 ring-inset\n  transition-colors\n\n  bg-[var(--background,theme(colors.base.white))]\n  ring-[var(--fill,theme(colors.primary.100))]\n\n  hover:bg-[var(--fill,theme(colors.primary.100))]\n\n  data-[is-zoomed-out=true]:bg-[var(--fill,theme(colors.primary.100))]\n  data-[is-zoomed-out=true]:h-4\n  data-[is-zoomed-out=true]:w-4\n\n  data-[is-active=true]:bg-[var(--fill,theme(colors.primary.100))]\n",style:r.properties.defaultColor?{}:{"--background":e?.background,"--fill":e?.fill},"data-is-cluster":!!r.properties.cluster,"data-is-zoomed-out":d-1<11,"data-is-active":p?.id===r.properties.id,children:(0,c.jsx)(a,{icon:r.properties.icon})})]},`map-marker-${s}-${n}-${i}`)})}export{m as default};
//# sourceMappingURL=Google-CXGCn-oJ-COdi9fhD.js.map