PageSourceSearch

https://www.whatsbox.io/_nuxt/CJTU8cHN.js

js whatsbox.io collected 2026-10-02 00:12:41 UTC 1,666 bytes, 1 lines download raw bytes

1import{al as d,Y as f,q as g,Z as m,o as v,h as x,r as C,x as h,z as y,e,n,A as b,am as q,g as _,a2 as c}from"./ZHhD047m.js";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"}}}},$={__name:"ProseCodeCollapse",props:q({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(r){const o=r,a=d(r,"open",{type:Boolean,default:!1}),{t:l}=f(),p=g(),t=m("prose.codeCollapse",o),s=_(()=>c({extend:c(T),...p.ui?.prose?.codeCollapse||{}})({open:a.value}));return(u,i)=>(v(),x("div",{class:n(s.value.root({class:[e(t)?.root,o.class]}))},[C(u.$slots,"default"),h("div",{class:n(s.value.footer({class:e(t)?.footer}))},[y(b,{icon:r.icon||e(p).ui.icons.chevronDown,color:"neutral",variant:"outline","data-state":a.value?"open":"closed",label:`${a.value?o.closeText||e(l)("prose.codeCollapse.closeText"):o.openText||e(l)("prose.codeCollapse.openText")} ${o.name||e(l)("prose.codeCollapse.name")}`,class:n(s.value.trigger({class:e(t)?.trigger})),ui:{leadingIcon:s.value.triggerIcon({class:e(t)?.triggerIcon})},onClick:i[0]||(i[0]=B=>a.value=!a.value)},null,8,["icon","data-state","label","class","ui"])],2)],2))}};export{$ 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.