"use strict";const X=require("react/jsx-runtime"),h=require("react"),x=require("./icon-utils-DrY1PlFZ.cjs");function s(...c){return c.filter(Boolean).join(" ")}const f="_icon_yamd4_2",k="_iconXs_yamd4_20",M="_iconSm_yamd4_25",b="_iconMd_yamd4_30",L="_iconLg_yamd4_35",P="_iconXl_yamd4_40",T="_iconPrimary_yamd4_46",$="_iconSecondary_yamd4_50",j="_iconTertiary_yamd4_54",q="_iconInverted_yamd4_58",n={icon:f,iconXs:k,iconSm:M,iconMd:b,iconLg:L,iconXl:P,iconPrimary:T,iconSecondary:$,iconTertiary:j,iconInverted:q},a=h.forwardRef(({name:c,size:o="md",tone:d="primary",className:m,style:y,"aria-label":i,"aria-hidden":l,..._},u)=>{const e=x.getIconUrl(c),r=i!==void 0,S=l??!r,t=typeof o=="number",g=t?{width:`${o}px`,height:`${o}px`}:void 0,v=t?void 0:{xs:n.iconXs,sm:n.iconSm,md:n.iconMd,lg:n.iconLg,xl:n.iconXl}[o],I={primary:n.iconPrimary,secondary:n.iconSecondary,tertiary:n.iconTertiary,inverted:n.iconInverted}[d],p={...{WebkitMaskImage:`url(${e})`,maskImage:`url(${e})`},...g,...y};return X.jsx("span",{ref:u,role:r?"img":void 0,"aria-label":i,"aria-hidden":S||void 0,className:s(n.icon,v,I,m),style:p,..._})});a.displayName="Icon";exports.Icon=a;exports.cn=s;
