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