1import{d as o,r as l,au as d,R as c,o as g,c as b,w as u,A as v,O as f,l as t,ai as p,v as m,e as h}from"#entry";const y=o({__name:"Badge",props:{custom:{},to:{},href:{},external:{type:Boolean},target:{},rel:{},noRel:{type:Boolean},prefetchedClass:{},prefetch:{type:Boolean},prefetchOn:{},noPrefetch:{type:Boolean},trailingSlash:{},activeClass:{},exactActiveClass:{},ariaCurrentValue:{},viewTransition:{type:Boolean},replace:{type:Boolean},class:{type:[Boolean,null,String,Object,Array]},variant:{},size:{},onClick:{type:Function},disabled:{type:Boolean},tag:{}},setup(r){const a=l({base:"inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-md border whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3",variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",success:"border-transparent bg-green-500 text-white focus-visible:ring-green-500/20 dark:bg-green-500/60 dark:focus-visible:ring-green-500/40 [a&]:hover:bg-green-600",warning:"border-transparent bg-yellow-500 text-white focus-visible:ring-yellow-500/20 dark:bg-yellow-500/60 dark:focus-visible:ring-yellow-500/40 [a&]:hover:bg-yellow-600",info:"border-transparent bg-blue-500 text-white focus-visible:ring-blue-500/20 dark:bg-blue-500/60 dark:focus-visible:ring-blue-500/40 [a&]:hover:bg-blue-600",ghost:"border-transparent bg-transparent text-foreground [a&]:hover:bg-accent/50",error:"border-transparent bg-red-500 text-white focus-visible:ring-red-500/20 dark:bg-red-500/60 dark:focus-visible:ring-red-500/40 [a&]:hover:bg-red-600"},disabled:{true:"cursor-not-allowed opacity-50"},size:{sm:"px-2 py-0.5 text-xs font-medium",md:"px-2.5 py-[3px] text-sm font-medium",lg:"px-2.5 py-1 text-sm font-semibold"}},defaultVariants:{variant:"default",disabled:!1,size:"sm"}}),e=r,n=d(c(e,"class","variant","onClick","disabled")),i=m(()=>e.tag?e.tag:e.href||e.to?h:e.onClick?"button":e.tag||"div");return(s,x)=>(g(),b(p(t(i)),f({class:t(a)({disabled:r.disabled,size:r.size,variant:r.variant,class:e.class})},t(n),{onClick:r.onClick}),{default:u(()=>[v(s.$slots,"default")]),_:3},16,["class","onClick"]))}}),k=Object.assign(y,{__name:"UiBadge"});export{k as _};
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.