1import{A as x,v as $,o as f,b as i,m as _,i as t,q as p,k as d,t as s,w as a,y as o}from"./web-Daoi1TEa.js";import{c as M}from"./index-CxOCE76-.js";import{c as b}from"./utils-_qghvgfj.js";import{Badge as B}from"./badge-DupErldJ.js";var C=s('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M12 5l0 14"></path><path d="M18 11l-6 -6"></path><path d="M6 11l6 -6">'),y=s('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M17 7l-10 10"></path><path d="M8 7l9 0l0 9">'),j=s('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M5 12l14 0"></path><path d="M13 18l6 -6"></path><path d="M13 6l6 6">'),T=s('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M7 7l10 10"></path><path d="M17 8l0 9l-9 0">'),D=s('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M12 5l0 14"></path><path d="M18 13l-6 6"></path><path d="M6 13l6 6">'),E=s('<span class="flex gap-1"><!$><!/><!$><!/>');const I=M("",{variants:{variant:{success:"bg-success text-success-foreground hover:bg-success",warning:"bg-warning text-warning-foreground hover:bg-warning",error:"bg-error text-error-foreground hover:bg-error"}}}),g={increase:r=>(()=>{var e=t(C);return a(()=>o(e,"class",r.class)),e})(),moderateIncrease:r=>(()=>{var e=t(y);return a(()=>o(e,"class",r.class)),e})(),unchanged:r=>(()=>{var e=t(j);return a(()=>o(e,"class",r.class)),e})(),moderateDecrease:r=>(()=>{var e=t(T);return a(()=>o(e,"class",r.class)),e})(),decrease:r=>(()=>{var e=t(D);return a(()=>o(e,"class",r.class)),e})()},S={increase:"success",moderateIncrease:"success",unchanged:"warning",moderateDecrease:"error",decrease:"error"},z=r=>{const[e,h]=x(r,["class","children","deltaType"]);let l=g[e.deltaType];return $(f(()=>e.deltaType,()=>{l=g[e.deltaType]})),i(B,_({get class(){return b(I({variant:S[e.deltaType]}),e.class)}},h,{get children(){var n=t(E),w=n.firstChild,[c,u]=p(w.nextSibling),v=c.nextSibling,[m,k]=p(v.nextSibling);return d(n,i(l,{class:"size-4"}),c,u),d(n,()=>e.children,m,k),n}}))};export{z as BadgeDelta};
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.