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