import{a0 as m,a1 as g,aQ as b,e as i,ac as n,s as c,q as r,c as u,am as d,o as h}from"./B3fabVUf.js";const k={slots:{base:"text-lg text-highlighted font-bold mt-6 mb-2 scroll-mt-[calc(24px+45px+var(--ui-header-height))] lg:scroll-mt-[calc(24px+var(--ui-header-height))] [&>a]:focus-visible:outline-primary",link:""}},v=["id"],y=["href"],q={__name:"ProseH4",props:{id:{type:String,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(e){const s=e,p=m(),a=g("prose.h4",s),{headings:t}=b().public?.mdc||{},o=u(()=>d({extend:d(k),...p.ui?.prose?.h4||{}})()),f=u(()=>s.id&&typeof t?.anchorLinks=="object"&&t.anchorLinks.h4);return(l,x)=>(h(),i("h4",{id:e.id,class:n(o.value.base({class:[c(a)?.base,s.class]}))},[e.id&&f.value?(h(),i("a",{key:0,href:`#${e.id}`,class:n(o.value.link({class:c(a)?.link}))},[r(l.$slots,"default")],10,y)):r(l.$slots,"default",{key:1})],10,v))}};export{q as default};
