PageSourceSearch

https://ditheritv3.netlify.app/_nuxt/mWw0MntW.js

js ditheritv3.netlify.app collected 2026-10-03 10:40:31 UTC 2,975 bytes, 1 lines download raw bytes

1import{T as w,a as I,b as T,c as B,d as L}from"./Cpv4R9Bo.js";import{a8 as M,al as q,a9 as z,aa as G,a1 as U,b7 as $,l as y,b5 as D,o as n,x as d,w as f,b as m,y as a,z as i,c as h,r as x,a as F,t as N,F as S,a2 as P,ao as j,I as A,m as V,ag as _}from"./BYXglTKb.js";import E from"./Cxmmvt3F.js";import"./BzhtglvI.js";import"./BM1JuYy8.js";import"./CFfQEWb3.js";const K={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:j({defaultValue:{type:String,required:!1,default:"0"},sync:{type:String,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},{modelValue:{type:String},modelModifiers:{}}),emits:["update:modelValue"],setup(p){const c=p,C=M(),s=q(p,"modelValue"),k=z(),r=G("prose.codeGroup",c),o=V(()=>_({extend:_(K),...k.ui?.prose?.codeGroup||{}})()),g=A(1),v=V(()=>(g.value,C.default?.()?.flatMap(b).filter(Boolean)||[]));function b(e,t){return typeof e.type=="symbol"?e.children?.map(b):{label:e.props?.filename||e.props?.label||`${t}`,icon:e.props?.icon,component:e}}return U(()=>{if(c.sync){const e=`code-group-${c.sync}`,t=$(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))})}}),D(()=>g.value++),(e,t)=>(n(),d(a(L),{modelValue:s.value,"onUpdate:modelValue":t[0]||(t[0]=l=>s.value=l),"default-value":p.defaultValue,"unmount-on-hide":!1,class:i(o.value.root({class:[a(r)?.root,c.class]}))},{default:f(()=>[m(a(T),{class:i(o.value.list({class:a(r)?.list}))},{default:f(()=>[m(a(w),{class:i(o.value.indicator({class:a(r)?.indicator}))},null,8,["class"]),(n(!0),h(S,null,x(v.value,(l,u)=>(n(),d(a(I),{key:u,value:String(u),class:i(o.value.trigger({class:a(r)?.trigger}))},{default:f(()=>[m(E,{icon:l.icon,filename:l.label,class:i(o.value.triggerIcon({class:a(r)?.triggerIcon}))},null,8,["icon","filename","class"]),F("span",{class:i(o.value.triggerLabel({class:a(r)?.triggerLabel}))},N(l.label),3)]),_:2},1032,["value","class"]))),128))]),_:1},8,["class"]),(n(!0),h(S,null,x(v.value,(l,u)=>(n(),d(a(B),{key:u,value:String(u),"as-child":""},{default:f(()=>[(n(),d(P(l.component),{"hide-header":"",tabindex:"-1"}))]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","default-value","class"]))}};export{X 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.