import{a as r}from"./rolldown-runtime-C_ttsnZz.js";import{St as e,q as t}from"./index-BT8Vuu3B.js";import{n as o,t as i}from"./MarkerIcon-Bc3X9WQk-CB_UVEds.js";import{n as s}from"./context-BrD4AniQ-_nW8oMsv.js";import{t as a}from"./Cluster-BHQcO6iC-DIgE4zBB.js";import{s as n}from"./maplibre-CUYkxr-D-BaX6BEaK.js";e();var l=t();function c({clusters:r,colors:e,clusterIcon:t,onClick:o,doesSuperclusterContainActiveMarker:c}){let{activeMarker:m,zoom:p}=s(),u=r=>e=>{e.originalEvent.stopPropagation(),!r.properties.disableClick&&o?.(r)};return r?.map((r,o)=>{let s=r.geometry.coordinates[0],d=r.geometry.coordinates[1];return(0,l.jsxs)(n,{anchor:"bottom",longitude:s,latitude:d,onClick:u(r),children:[r.properties.cluster&&r.properties.cluster_id&&(0,l.jsx)(a,{colors:e,icon:t,isActive:c(r.properties.cluster_id)}),!r.properties.cluster&&(0,l.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":p<10,"data-is-active":m?.id===r.properties.id,children:(0,l.jsx)(i,{icon:r.properties.icon})})]},`map-marker-${s}-${d}-${o}`)})}export{c as default};
//# sourceMappingURL=Maptiler-DqeshLom-Dn_1CuX7.js.map