import{Hy as e,Zv as t,m_ as n}from"./index-DDwwBb9e.js";var r=e(),i={mark:`⚑`,pause:`⏸`,drain:`≈`,cutoff:`✂`,replay:`▶`,write:`✎`,unmark:`✓`,discover:`🔍`,complete:`✔`},a={mark:`Marking aggregates`,pause:`Pausing projections`,drain:`Draining active jobs`,cutoff:`Recording cutoff points`,replay:`Replaying events`,write:`Writing projection states`,unmark:`Unmarking & resuming`,discover:`Discovering aggregates`,complete:`Complete`},o=[`discover`,`mark`,`pause`,`drain`,`cutoff`,`replay`,`write`,`unmark`];function s({currentPhase:e,completedState:a}){let s=e?o.indexOf(e):-1;return(0,r.jsx)(n,{gap:1,flexWrap:`wrap`,children:o.map((e,o)=>{let c=a===`completed`||o<s,l=!a&&o===s,u=i[e]??`·`;return(0,r.jsxs)(n,{gap:1,paddingX:1.5,paddingY:.5,borderRadius:`sm`,bg:l?`orange.subtle`:c?`green.subtle`:`bg.muted`,opacity:c||l?1:.4,children:[(0,r.jsx)(t,{textStyle:`xs`,children:u}),(0,r.jsx)(t,{textStyle:`xs`,fontWeight:l?`semibold`:`normal`,color:l?`orange.fg`:c?`green.fg`:`fg.muted`,children:e})]},e)})})}export{a as n,s as r,i as t};
//# sourceMappingURL=PhaseTimeline-DsnliQC9.js.map