import{B as v,f as m,g as f,o as d,c as n,a as w,r as l,n as o,i as r,I as b,k as y,l as i}from"./B96cjQS3.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"}}}},B={__name:"ProseCodePreview",props:{class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(u){const t=u,a=v(),p=m(),e=f("prose.codePreview",t),s=y(()=>i({extend:i(C),...p.ui?.prose?.codePreview||{}})({code:!!a.code}));return(c,P)=>(d(),n("div",{class:o(s.value.root({class:[r(e)?.root,t.class]}))},[w("div",{class:o(s.value.preview({class:[r(e)?.preview]}))},[l(c.$slots,"default")],2),a.code?(d(),n("div",{key:0,class:o(s.value.code({class:[r(e)?.code]}))},[l(c.$slots,"code")],2)):b("",!0)],2))}};export{B as default};
