import{f as m,g as f,a6 as b,o as c,c as d,n as t,i as e,a as v,b as y,H as x,r as u,k as p,l as h}from"./B96cjQS3.js";const k={slots:{base:["relative text-xl text-highlighted font-bold mt-8 mb-3 scroll-mt-[calc(32px+45px+var(--ui-header-height))] lg:scroll-mt-[calc(32px+var(--ui-header-height))] [&>a]:focus-visible:outline-primary [&>a>code]:border-dashed hover:[&>a>code]:border-primary hover:[&>a>code]:text-primary [&>a>code]:text-lg/6 [&>a>code]:font-bold","[&>a>code]:transition-colors"],leading:["absolute -ms-8 top-0.5 opacity-0 group-hover:opacity-100 group-focus:opacity-100 p-1 bg-elevated hover:text-primary rounded-md hidden lg:flex text-muted","transition"],leadingIcon:"size-4 shrink-0",link:"group lg:ps-2 lg:-ms-2"}},C=["id"],I=["href"],q={__name:"ProseH3",props:{id:{type:String,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(a){const l=a,i=m(),s=f("prose.h3",l),{headings:n}=b().public?.mdc||{},o=p(()=>h({extend:h(k),...i.ui?.prose?.h3||{}})()),g=p(()=>l.id&&typeof n?.anchorLinks=="object"&&n.anchorLinks.h3);return(r,_)=>(c(),d("h3",{id:a.id,class:t(o.value.base({class:[e(s)?.base,l.class]}))},[a.id&&g.value?(c(),d("a",{key:0,href:`#${a.id}`,class:t(o.value.link({class:e(s)?.link}))},[v("span",{class:t(o.value.leading({class:e(s)?.leading}))},[y(x,{name:e(i).ui.icons.hash,class:t(o.value.leadingIcon({class:e(s)?.leadingIcon}))},null,8,["name","class"])],2),u(r.$slots,"default")],10,I)):u(r.$slots,"default",{key:1})],10,C))}};export{q as default};
