import{a0 as m,a1 as g,aQ as k,e as o,ac as i,s as c,q as r,c as u,am as d,o as h}from"./B3fabVUf.js";const b={slots:{base:"text-4xl text-highlighted font-bold mb-8 scroll-mt-[calc(45px+var(--ui-header-height))] lg:scroll-mt-(--ui-header-height)",link:"inline-flex items-center gap-2"}},x=["id"],y=["href"],q={__name:"ProseH1",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.h1",s),{headings:t}=k().public?.mdc||{},l=u(()=>d({extend:d(b),...p.ui?.prose?.h1||{}})()),f=u(()=>s.id&&typeof t?.anchorLinks=="object"&&t.anchorLinks.h1);return(n,v)=>(h(),o("h1",{id:e.id,class:i(l.value.base({class:[c(a)?.base,s.class]}))},[e.id&&f.value?(h(),o("a",{key:0,href:`#${e.id}`,class:i(l.value.link({class:c(a)?.link}))},[r(n.$slots,"default")],10,y)):r(n.$slots,"default",{key:1})],10,x))}};export{q as default};
