PageSourceSearch

https://mychar.gg/_nuxt/BApzvnWx.js

js mychar.gg collected 2026-10-08 16:09:52 UTC 2,938 bytes, 2 lines download raw bytes

1import{a as C,b as T,T as w,c as B,d as I}from"./B_a_6uHO.js";import{a_ as L,a$ as M,b0 as $,L as q,Q as b,$ as z,an as D,m as U,S as y,cd as G,U as d,W as o,aD as c,aK as m,aT as h,X as u,Y as n,bd as x,aV as K,bn as N,bl as S,by as A,b6 as V}from"./CZO_kbxe.js";import E from"./XsAubeL1.js";import"./lsVrTZZc.js";const F={slots:{root:"relative group *:not-first:!my-0 *:not-first:!static my-5",list:"relative flex items-center gap-1 border border-muted bg-default border-b-0 rounded-t-md overflow-x-auto p-2",indicator:"absolute left-0 inset-y-2 w-(--reka-tabs-indicator-size) translate-x-(--reka-tabs-indicator-position) transition-[translate,width] duration-200 bg-elevated rounded-md shadow-xs",trigger:["relative inline-flex items-center gap-1.5 text-default data-[state=active]:text-highlighted hover:bg-elevated/50 px-2 py-1.5 text-sm rounded-md disabled:cursor-not-allowed disabled:opacity-75 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary focus:outline-none","transition-colors"],triggerIcon:"size-4 shrink-0",triggerLabel:"truncate"}},X={__name:"ProseCodeGroup",props:L({defaultValue:{type:String,required:!1,default:"0"},sync:{type:String,required:!1},class:{type:null,required:!1},ui:{type:null,required:!1}},{modelValue:{type:String},modelModifiers:{}}),emits:["update:modelValue"],setup(f){const a=f,_=M(),s=$(f,"modelValue"),k=q(),r=b(()=>V({extend:V(F),...k.ui?.prose?.codeGroup||{}})()),p=z(1),g=b(()=>(p.value,_.default?.()?.flatMap(v).filter(Boolean)||[]));function v(e,t){return typeof e.type=="symbol"?e.children?.map(v):{label:e.props?.filename||e.props?.label||`${t}`,icon:e.props?.icon,component:e}}return D(()=>
1{if(a.sync){const e=`code-group-${a.sync}`,t=U(e,()=>localStorage.getItem(e));y(t,()=>{t.value&&(s.value=t.value)},{immediate:!0}),y(s,()=>{s.value&&(t.value=s.value,localStorage.setItem(e,s.value))})}}),G(()=>p.value++),(e,t)=>(o(),d(u(I),{modelValue:s.value,"onUpdate:modelValue":t[0]||(t[0]=l=>s.value=l),"default-value":f.defaultValue,"unmount-on-hide":!1,class:n(r.value.root({class:[a.ui?.root,a.class]}))},{default:c(()=>[m(u(w),{class:n(r.value.list({class:a.ui?.list}))},{default:c(()=>[m(u(C),{class:n(r.value.indicator({class:a.ui?.indicator}))},null,8,["class"]),(o(!0),h(S,null,x(g.value,(l,i)=>(o(),d(u(T),{key:i,value:String(i),class:n(r.value.trigger({class:a.ui?.trigger}))},{default:c(()=>[m(E,{icon:l.icon,filename:l.label,class:n(r.value.triggerIcon({class:a.ui?.triggerIcon}))},null,8,["icon","filename","class"]),K("span",{class:n(r.value.triggerLabel({class:a.ui?.triggerLabel}))},N(l.label),3)]),_:2},1032,["value","class"]))),128))]),_:1},8,["class"]),(o(!0),h(S,null,x(g.value,(l,i)=>(o(),d(u(B),{key:i,value:String(i),"as-child":""},{default:c(()=>[(o(),d(A(l.component),{"hide-header":"",tabindex:"-1"}))]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","default-value","class"]))}};export{X as default};
2//# sourceMappingURL=BApzvnWx.js.map

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.