1import h from"./BVmZIfqo.js";import{u as _,i as B,c as I,m as b,aa as j,W as y,a as m,o as d,F as v,r as z,b as k,f as F}from"./Do1nZpFk.js";import"./D7feWUma.js";import"./olWgQKQP.js";import"./D9vp2FmM.js";import"./BM5aYONo.js";const $={class:"flex -space-x-2 hover:space-x-px"},T={__name:"Index",props:{groups:Array,badges:Array,tags:Array,size:{default:"20px"},userId:Number},emits:["loaded"],setup(n,{emit:g}){const f=y(),{project:l}=_(),s=n,o=g,u=B([]),x=I(()=>s.badges||u.value),c=a=>{const r=a.map(e=>e.tag_id),t=s.groups.filter(e=>e.tags&&e.tags.some(i=>r.includes(i))),p=new Set;t.forEach(e=>{e.exclude&&e.exclude.length&&e.exclude.forEach(i=>p.add(i))}),u.value=t.filter(e=>!p.has(e.id)),o("loaded")};if(b(()=>s.tags,()=>{c(s.tags)},{deep:!0}),s.tags)c(s.tags);else if(s.userId){const a=l.embedProjectId||l.getProject.id.toString();j(`${f.public.apiBase}/api/user/products/tags?user_id=${s.userId}&project_id=${a}&cache=1`,"$c3U2mKLjzG").then(({data:r})=>c(r)).finally(()=>{o("loaded")})}else o("loaded");return(a,r)=>(d(),m("div",$,[(d(!0),m(v,null,z(F(x),t=>(d(),k(h,{key:t.id,badge:t,size:n.size,class:"transition-all duration-200"},null,8,["badge","size"]))),128))]))}};export{T 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.