1import{bh as u,bf as f,a3 as g,aQ as b,o as m,c as v,L as y,a1 as x,J as h,K as a,ax as n,aj as C,bi as _,d as I,aS as c}from"./DUW55w0f.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"e61f9ba40f6c9f323ca507e3481c5c01202f2b66"};var o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="d6462132-1074-4715-95ef-8527bad79c5b",e._sentryDebugIdIdentifier="sentry-dbid-d6462132-1074-4715-95ef-8527bad79c5b")}catch{}})();const T={slots:{root:"relative [&_pre]:h-[200px]",footer:"h-16 absolute inset-x-px bottom-px rounded-b-md flex items-center justify-center",trigger:"group",triggerIcon:"group-data-[state=open]:rotate-180"},variants:{open:{true:{root:"[&_pre]:h-auto [&_pre]:min-h-[200px] [&_pre]:max-h-[80vh] [&_pre]:pb-12"},false:{root:"[&_pre]:overflow-hidden",footer:"bg-gradient-to-t from-muted"}}}},q={__name:"ProseCodeCollapse",props:_({icon:{type:null,required:!1},name:{type:String,required:!1},openText:{type:String,required:!1},closeText:{type:String,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:["update:open"],setup(e){const o=e,t=u(e,"open",{type:Boolean,default:!1}),{t:l}=f(),i=g(),s=b("prose.codeCollapse",o),r=I(()=>c({extend:c(T),...i.ui?.prose?.codeCollapse||{}})({open:t.value}));return(p,d)=>(m(),v("div",{class:n(r.value.root({class:[a(s)?.root,o.class]}))},[y(p.$slots,"default"),x("div",{class:n(r.value.footer({class:a(s)?.footer}))},[h(C,{icon:e.icon||a(i).ui.icons.chevronDown,color:"neutral",variant:"outline","data-state":t.value?"open":"closed",label:`${t.value?o.closeText||a(l)("prose.codeCollapse.closeText"):o.openText||a(l)("prose.codeCollapse.openText")} ${o.name||a(l)("prose.codeCollapse.name")}`,class:n(r.value.trigger({class:a(s)?.trigger})),ui:{leadingIcon:r.value.triggerIcon({class:a(s)?.triggerIcon})},onClick:d[0]||(d[0]=w=>t.value=!t.value)},null,8,["icon","data-state","label","class","ui"])],2)],2))}};export{q as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.