import{j as n}from"./vendor-query-B2UbickB.js";import{s as p,Z as u,W as m,S as d,ag as h}from"./vendor-icons-CrrAvF2g.js";const a=[{text:"text-rose-400",bg:"bg-rose-400/[0.08]"},{text:"text-pink-400",bg:"bg-pink-400/[0.08]"},{text:"text-fuchsia-400",bg:"bg-fuchsia-400/[0.08]"},{text:"text-purple-400",bg:"bg-purple-400/[0.08]"},{text:"text-violet-400",bg:"bg-violet-400/[0.08]"},{text:"text-indigo-400",bg:"bg-indigo-400/[0.08]"},{text:"text-blue-400",bg:"bg-blue-400/[0.08]"},{text:"text-sky-400",bg:"bg-sky-400/[0.08]"},{text:"text-cyan-400",bg:"bg-cyan-400/[0.08]"},{text:"text-teal-400",bg:"bg-teal-400/[0.08]"},{text:"text-emerald-400",bg:"bg-emerald-400/[0.08]"},{text:"text-green-400",bg:"bg-green-400/[0.08]"},{text:"text-lime-400",bg:"bg-lime-400/[0.08]"},{text:"text-yellow-400",bg:"bg-yellow-400/[0.08]"},{text:"text-amber-400",bg:"bg-amber-400/[0.08]"},{text:"text-orange-400",bg:"bg-orange-400/[0.08]"},{text:"text-red-400",bg:"bg-red-400/[0.08]"},{text:"text-stone-400",bg:"bg-stone-400/[0.08]"},{text:"text-rose-300",bg:"bg-rose-300/[0.08]"},{text:"text-violet-300",bg:"bg-violet-300/[0.08]"},{text:"text-sky-300",bg:"bg-sky-300/[0.08]"},{text:"text-teal-300",bg:"bg-teal-300/[0.08]"},{text:"text-amber-300",bg:"bg-amber-300/[0.08]"},{text:"text-pink-300",bg:"bg-pink-300/[0.08]"}];function f(t){let x=0;for(let g=0;g<t.length;g++)x=(x<<5)-x+t.charCodeAt(g)|0;return Math.abs(x)}function k(t){return a[f(t)%a.length]}const y={certified:h,configured:d,pipeline:m,capability:u,durable:p},w={certified:{text:"text-status-success",bg:"bg-status-success/10"},configured:{text:"text-amber-500/70",bg:"bg-amber-200/[0.12]"}},C={xs:{bulb:"w-4 h-4",icon:"w-2 h-2",text:"text-[9px]",pad:"pr-1.5 pl-0.5",gap:"-ml-1"},sm:{bulb:"w-5 h-5",icon:"w-2.5 h-2.5",text:"text-[11px]",pad:"pr-2 pl-1",gap:"-ml-1.5"},md:{bulb:"w-6 h-6",icon:"w-3 h-3",text:"text-[13px]",pad:"pr-2.5 pl-1.5",gap:"-ml-2"}};function I({type:t,size:x="sm",certified:g,variant:r}){const l=r??(g?"certified":"durable"),i=y[l],b=C[x],e=w[l],s=e?null:k(t),c=(e==null?void 0:e.text)??(s==null?void 0:s.text)??"text-accent/75",o=(e==null?void 0:e.bg)??(s==null?void 0:s.bg)??"bg-accent/[0.08]";return n.jsxs("span",{className:"inline-flex items-center",children:[n.jsx("span",{className:`${b.bulb} rounded-full ${o} inline-flex items-center justify-center shrink-0 z-[1]`,children:n.jsx(i,{className:`${b.icon} ${c}`})}),n.jsx("span",{className:`${b.gap} ${b.pad} ${o} rounded-r-full font-mono text-text-secondary`,style:{fontSize:b.text==="text-[9px]"?"9px":b.text==="text-[11px]"?"11px":"13px",lineHeight:1.4},children:t})]})}export{I as W};
//# sourceMappingURL=WorkflowPill-54px0YiY.js.map
