import{_ as a}from"./cCUm7iY-.js";import{j as s,o as i,l as c,m,w as u,d,t as f,i as l}from"./Bh-tMwKs.js";const _=s({__name:"StateBadge",props:{state:{}},setup(t){const n=t,o=l(()=>{const e=n.state.toLowerCase();return e.includes("done")||e.includes("complete")||e.includes("merged")?"success":e.includes("fail")||e.includes("error")?"error":e.includes("retry")||e.includes("wait")?"warning":"neutral"});return(e,p)=>{const r=a;return i(),c(r,{color:m(o),variant:"subtle",size:"sm"},{default:u(()=>[d(f(t.state),1)]),_:1},8,["color"])}}}),D=Object.assign(_,{__name:"StateBadge"});function S(t){return new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"medium"}).format(new Date(t))}function T(t){return new Intl.NumberFormat().format(t)}function h(t){return new Intl.DateTimeFormat(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date(t))}function x(t){const n=Math.round(t);return n<60?`${n}s`:`${Math.floor(n/60)}m ${n%60}s`}export{D as _,T as a,h as b,x as c,S as f};
