import"./xihTtKlq.mjs";import{Cn as e,F as t,Ft as n,Jt as r,S as i,V as a,dn as o,et as s,fn as c,gt as l,l as u,tt as d}from"./DRAiiyBy.mjs";import{t as f}from"./AFfgJ8QW.mjs";var p=f({base:``,variants:{type:{heading:``,display:``,body:``,code:``},size:{xs:``,sm:``,md:``,lg:``,xl:``},strong:{true:``,false:``},variant:{primary:`text-primary`,positive:`text-positive`,"neutral-subtle":`text-neutral-subtle`,"neutral-default":`text-neutral-default`,critical:`text-critical`,caution:`text-caution`}},compoundVariants:[{type:`heading`,size:`xl`,class:`edge-typography-heading-xl`},{type:`heading`,size:`lg`,class:`edge-typography-heading-lg`},{type:`heading`,size:`md`,class:`edge-typography-heading-md`},{type:`heading`,size:`sm`,class:`edge-typography-heading-sm`},{type:`display`,size:`lg`,class:`edge-typography-display-lg`},{type:`display`,size:`md`,class:`edge-typography-display-md`},{type:`display`,size:`sm`,class:`edge-typography-display-sm`},{type:`body`,size:`xs`,strong:!0,class:`edge-typography-body-xs-strong`},{type:`body`,size:`xs`,strong:!1,class:`edge-typography-body-xs`},{type:`body`,size:`sm`,strong:!0,class:`edge-typography-body-sm-strong`},{type:`body`,size:`sm`,strong:!1,class:`edge-typography-body-sm`},{type:`body`,size:`md`,strong:!0,class:`edge-typography-body-md-strong`},{type:`body`,size:`md`,strong:!1,class:`edge-typography-body-md`},{type:`code`,class:`edge-typography-technical-md`}]}),m=new Set([`$$slots`,`$$events`,`$$legacy`]);function h(f,h){c(h,!0);let g=u(h,m),_={xl:`h1`,lg:`h2`,md:`h3`,sm:`h4`},v=r(()=>h.tag||h.size&&h.type===`heading`&&_[h.size]||(h.type===void 0?`span`:void 0)),y=r(()=>p({type:h.type??`body`,size:h.size??(h.type===void 0?`md`:void 0),strong:h.strong,variant:h.variant,class:h.class}));var b=d(),x=n(b);t(x,()=>l(v),!1,(t,r)=>{i(t,()=>({...g,class:l(y),"data-ds-text":!0}));var o=d(),c=n(o);a(c,()=>h.children??e),s(r,o)}),s(f,b),o()}var g=h;export{g as t};