import{Q as v,a0 as m,a1 as f,e as d,af as w,q as n,ac as o,s as r,f as b,c as y,am as l,o as u}from"./B3fabVUf.js";const C={slots:{root:"my-5",preview:"flex justify-center border border-muted relative p-4 rounded-md",code:"[&>div>pre]:rounded-t-none [&>div]:my-0"},variants:{code:{true:{preview:"border-b-0 rounded-b-none"}}}},k={__name:"ProseCodePreview",props:{class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(i){const a=i,t=v(),p=m(),e=f("prose.codePreview",a),s=y(()=>l({extend:l(C),...p.ui?.prose?.codePreview||{}})({code:!!t.code}));return(c,P)=>(u(),d("div",{class:o(s.value.root({class:[r(e)?.root,a.class]}))},[w("div",{class:o(s.value.preview({class:[r(e)?.preview]}))},[n(c.$slots,"default")],2),t.code?(u(),d("div",{key:0,class:o(s.value.code({class:[r(e)?.code]}))},[n(c.$slots,"code")],2)):b("",!0)],2))}};export{k as default};
