import{_ as C}from"./Ou52Vqik.js";import{G as v,aa as t,x as _,t as n,C as o,k,aj as c,n as $,aR as r,B as f,v as g,ap as s,ai as a,b as y,af as b,u as m}from"./DsxXb4gA.js";import{_ as D}from"./ChL3K-7X.js";import{_ as E}from"./GDfpgsTy.js";import{_ as N}from"./2R9QS7Fj.js";import"./uY6k474J.js";const U={class:"border border-default rounded-lg overflow-hidden group"},z={class:"flex items-center gap-3 p-3 bg-default cursor-pointer select-none list-none [&::-webkit-details-marker]:hidden"},H={class:"font-mono text-sm"},T={key:0,class:"text-xs text-muted font-mono ml-auto"},V={class:"p-3 bg-elevated border-t border-default"},j=v({__name:"DevtoolsHeadEntry",props:{entry:{}},setup(e){const u={server:{color:"info",icon:"i-carbon-cloud"},client:{color:"warning",icon:"i-carbon-laptop"},hydrated:{color:"success",icon:"i-carbon-arrows-horizontal"},stream:{color:"primary",icon:"i-carbon-flow-stream"}};return(w,h)=>{const l=k,d=$,p=D;return t(),_("details",U,[n("summary",z,[o(l,{name:"i-carbon-chevron-right",class:"text-xs transition-transform group-open:rotate-90 shrink-0"}),n("span",H,"#"+c(e.entry.id),1),o(d,{variant:"subtle",size:"xs"},{default:r(()=>[f(c(e.entry.tagCount)+" tags ",1)]),_:1}),o(d,{color:u[e.entry.mode]?.color||"neutral",variant:"subtle",size:"xs"},{default:r(()=>[o(l,{name:u[e.entry.mode]?.icon||"i-carbon-help",class:"text-xs"},null,8,["name"]),f(" "+c(e.entry.mode||"unknown"),1)]),_:1},8,["color"]),e.entry.source?(t(),_("span",T,c(e.entry.source),1)):g("",!0)]),n("div",V,[o(p,{code:JSON.stringify(e.entry.input,null,2),lang:"json"},null,8,["code"])])])}}}),O=Object.assign(j,{__name:"DevtoolsHeadEntry"}),S={class:"space-y-4"},I={class:"flex items-center gap-2"},R={class:"font-medium"},F={class:"space-y-3"},G={class:"flex items-center gap-2"},J={class:"font-medium"},L={class:"flex flex-wrap gap-2"},W=v({__name:"index",setup(e){return(u,w)=>{const h=C,l=k,d=O,p=E,x=N,B=$;return t(),_("div",S,[o(h,{tags:s(a).tags,title:"Resolved Tags"},null,8,["tags"]),o(x,null,{header:r(()=>[n("div",I,[o(l,{name:"i-carbon-list",class:"text-lg"}),n("span",R,"Head Entries ("+c(s(a).entries.length)+")",1)])]),default:r(()=>[n("div",F,[(t(!0),_(y,null,b(s(a).entries,i=>(t(),m(d,{key:i.id,entry:i},null,8,["entry"]))),128)),s(a).entries.length?g("",!0):(t(),m(p,{key:0,icon:"i-carbon-list",title:"No entries detected"}))])]),_:1}),s(a).plugins.length?(t(),m(x,{key:0},{header:r(()=>[n("div",G,[o(l,{name:"i-carbon-plug",class:"text-lg"}),n("span",J,"Plugins ("+c(s(a).plugins.length)+")",1)])]),default:r(()=>[n("div",L,[(t(!0),_(y,null,b(s(a).plugins,i=>(t(),m(B,{key:i,variant:"subtle",size:"xs"},{default:r(()=>[f(c(i),1)]),_:2},1024))),128))])]),_:1})):g("",!0)])}}});export{W as default};
