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,t as a}from"./MarkerIcon-Bc3X9WQk-CB_UVEds.js";import{n}from"./context-BrD4AniQ-_nW8oMsv.js";var i=r(e(),1),s=o(),l="\n  -ml-6 -z-10 last:-z-20\n";function m({isActive:r=!1,colors:e,icon:o}){let{zoom:m,mapProvider:c}=n(),d=(0,i.useMemo)(()=>"google"===c.name?m-1<11:m<10,[m,c]);return(0,s.jsxs)("div",{className:"\n  relative flex\n",style:{"--background":e?.background,"--fill":e?.fill},children:[(0,s.jsx)("div",{className:t,"data-is-zoomed-out":d,"data-is-active":r,children:(0,s.jsx)(a,{icon:o})}),!d&&(0,s.jsxs)(s.Fragment,{children:[(0,s.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 ${l}`}),(0,s.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 ${l}`})]})]})}export{m as t};
//# sourceMappingURL=Cluster-BHQcO6iC-DIgE4zBB.js.map