import{_ as k}from"./Heading-DT8fK42U-BBz359Il.js";import{h as s,F as w}from"./index-DscFWUNz.js";import{c as i}from"./clsx-eK3rPvPS-BT_IL7Fz.js";import{K as _}from"./Icon-oHNRs_Az-BbbmR1N5.js";import{s as x}from"./reuse-CX4AQDkS-Cyh-fyjG.js";import{m as I}from"./markdown-DL-PkOqb-zRCMnbWa.js";import{i as h,K}from"./InternalUnderlinedBadgeText-dfa2g8TL-B5v3VETx.js";import{i as c}from"./isObject-DvSELytj-B0RigBxT.js";/*!
 * KoliBri - The accessible HTML-Standard
 */const d=l=>{const{class:n,style:a,label:o,icon:e}=l;return s(_,{class:i("icon",n),style:a,label:o||"",icons:e})},j=({label:l,hideLabel:n,allowMarkdown:a,badgeText:o})=>{if(n||!h(l))return null;const e="kol-span__label";return a?s("span",{class:i(e,"md"),innerHTML:I(l)}):o?s("span",{class:i(e)},s(K,{label:l,badgeText:o})):s("span",{class:i(e)},l)},F=({hideLabel:l,label:n,badgeText:a,allowMarkdown:o},e)=>{const r=!x(n);return s(w,null,r&&s(j,{label:n,hideLabel:l,badgeText:a,allowMarkdown:o}),s("span",{"aria-hidden":r?"true":void 0,class:"kol-span__label",hidden:r},e),h(a)&&a.length>0&&s("kbd",{class:"badge-text-hint","aria-hidden":"true"},a))},C=(l,n)=>{const{class:a,label:o,hideLabel:e=!1,badgeText:r,allowMarkdown:u,icons:t}=l,g=k(l,["class","label","hideLabel","badgeText","allowMarkdown","icons"]);let m=null,p=null,b=null,f=null;return c(t)?(m=t.top,p=t.left,b=t.right,f=t.bottom):h(t)&&(p={icon:t}),s("span",Object.assign({class:i("kol-span",{"kol-span--hide-label":e},a)},g),c(m)&&s(d,Object.assign({class:"top"},m)),s("span",{class:"kol-span__container"},c(p)&&s(d,Object.assign({class:"left"},p)),s(F,{label:o,hideLabel:e,allowMarkdown:u,badgeText:r},n),c(b)&&s(d,Object.assign({class:"right"},b))),c(f)&&s(d,Object.assign({class:"bottom"},f)))};export{C as K};
//# sourceMappingURL=Span-43sGxXr7-LxLqNQk3.js.map
