import{a as i}from"/build/_shared/chunk-GYJW4R24.js";import{h as d}from"/build/_shared/chunk-4W6Q3ICG.js";import{a as u,z as s}from"/build/_shared/chunk-SYLZIOTS.js";import{d as a}from"/build/_shared/chunk-G5WX4PPA.js";var g=a(s(),1),f=i("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground",rose:"border-transparent bg-rose-500 text-primary-foreground shadow hover:bg-rose-500/80",pink:"border-transparent bg-pink-500 text-primary-foreground shadow hover:bg-pink-500/80",fuchsia:"border-transparent bg-fuchsia-500 text-primary-foreground shadow hover:bg-fuchsia-500/80",purple:"border-transparent bg-purple-500 text-primary-foreground shadow hover:bg-purple-500/80",violet:"border-transparent bg-violet-500 text-primary-foreground shadow hover:bg-violet-500/80",indigo:"border-transparent bg-indigo-500 text-primary-foreground shadow hover:bg-indigo-500/80",blue:"border-transparent bg-blue-500 text-primary-foreground shadow hover:bg-blue-500/80",sky:"border-transparent bg-sky-500 text-primary-foreground shadow hover:bg-sky-500/80",cyan:"border-transparent bg-cyan-500 text-primary-foreground shadow hover:bg-cyan-500/80",teal:"border-transparent bg-teal-500 text-primary-foreground shadow hover:bg-teal-500/80",emerald:"border-transparent bg-emerald-500 text-primary-foreground shadow hover:bg-emerald-500/80",green:"border-transparent bg-green-500 text-primary-foreground shadow hover:bg-green-500/80",lime:"border-transparent bg-lime-500 text-primary-foreground shadow hover:bg-lime-500/80",yellow:"border-transparent bg-yellow-500 text-primary-foreground shadow hover:bg-yellow-500/80",amber:"border-transparent bg-amber-500 text-primary-foreground shadow hover:bg-amber-500/80",orange:"border-transparent bg-orange-500 text-primary-foreground shadow hover:bg-orange-500/80",red:"border-transparent bg-red-500 text-primary-foreground shadow hover:bg-red-500/80"}},defaultVariants:{variant:"default"}});function m({className:r,variant:e,...t}){return(0,g.jsx)("div",{className:d(f({variant:e}),r),...t})}var v=r=>{let e=r.substring(r.length-4),t=r.charCodeAt(r.length-1),n=["pink","rose","fuchsia","purple","violet","indigo","blue","sky","cyan","teal","emerald","green","lime","yellow","amber","orange","red"],b=t%n.length,p=n[b];return{short:e,variant:p}};var o=a(u(),1);function x(r){let e=(0,o.useRef)({value:r,previous:r});return(0,o.useMemo)(()=>(e.current.value!==r&&(e.current.previous=e.current.value,e.current.value=r),e.current.previous),[r])}export{x as a,m as b,v as c};
