import{c as t}from"./createLucideIcon-CsWFljth.js";import{C as r}from"./terminal-CuAYwdh-.js";import{G as m}from"./git-merge-CB0ebeXg.js";import{l as g,m as y}from"./use-ws-BIe6kKa2.js";import{C as p}from"./circle-x-BNvrcCvx.js";import{L as h}from"./button-D8qrc3hb.js";import{E as f}from"./eye-BAXsQYWt.js";import{L as k}from"./select-CkTnmILP.js";import{r as b}from"./markdown-9_JKOUHQ.js";const x=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]],N=t("circle-arrow-up",x);const _=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],u=t("circle-dot",_);const w=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]],M=t("circle-stop",w);const v=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],l=t("clock",v);const C=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],U=t("git-branch",C);const S=[["circle",{cx:"5",cy:"6",r:"3",key:"1qnov2"}],["path",{d:"M5 9v12",key:"ih889a"}],["circle",{cx:"19",cy:"18",r:"3",key:"1qljk2"}],["path",{d:"m15 9-3-3 3-3",key:"1lwv8l"}],["path",{d:"M12 6h5a2 2 0 0 1 2 2v7",key:"1yj91y"}]],K=t("git-pull-request-arrow",S);const L=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],$=t("lightbulb",L);const A=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],E=t("play",A),X={idle:{icon:u,className:"text-gray-400"},pending:{icon:l,className:"text-yellow-400"},running:{icon:h,className:"text-blue-400 animate-spin"},waiting:{icon:l,className:"text-amber-400"},completed:{icon:r,className:"text-green-400"},failed:{icon:p,className:"text-red-400"},stopped:{icon:M,className:"text-gray-400"},interrupted:{icon:g,className:"text-orange-400"}},Y={backlog:{icon:k,className:"text-gray-400",labelKey:"kanban.backlog"},planning:{icon:$,className:"text-violet-400",labelKey:"kanban.planning"},in_progress:{icon:E,className:"text-blue-400",labelKey:"kanban.inProgress"},review:{icon:f,className:"text-amber-400",labelKey:"kanban.review"},done:{icon:r,className:"text-green-400",labelKey:"kanban.done"},archived:{icon:y,className:"text-gray-400",labelKey:"kanban.archived"}};function F(e,a){const n=Math.floor((Date.now()-new Date(e).getTime())/1e3);if(n<60)return a("time.now");const i=Math.floor(n/60);if(i<60)return a("time.minutes",{count:i});const o=Math.floor(i/60);if(o<24)return a("time.hours",{count:o});const c=Math.floor(o/24);return c<30?a("time.days",{count:c}):a("time.months",{count:Math.floor(c/30)})}const H={dirty:{icon:u,className:"text-muted-foreground",labelKey:"gitStatus.dirty"},unpushed:{icon:N,className:"text-muted-foreground",labelKey:"gitStatus.unpushed"},pushed:{icon:K,className:"text-muted-foreground",labelKey:"gitStatus.pushed"},merged:{icon:m,className:"text-muted-foreground",labelKey:"gitStatus.merged"},clean:{icon:r,className:"text-muted-foreground",labelKey:"gitStatus.clean"}},q={"claude-opus-4-6":"opus","claude-sonnet-4-5-20250929":"sonnet","claude-sonnet-4-6":"sonnet46","claude-haiku-4-5-20251001":"haiku","gemini-2.0-flash":"gemini20flash","gemini-2.5-flash":"gemini25flash","gemini-2.5-pro":"gemini25pro","gemini-3-flash-preview":"gemini3flash","gemini-3-pro-preview":"gemini3pro","gemini-3-flash":"gemini3flash","gemini-3.1-pro":"gemini3pro"};function J(e,a){const n=q[e]??e;return a(`thread.model.${n}`,{defaultValue:e})}function Q(e){return{idle:e("thread.status.idle"),pending:e("thread.status.pending"),running:e("thread.status.running"),waiting:e("thread.status.waiting"),completed:e("thread.status.completed"),failed:e("thread.status.failed"),stopped:e("thread.status.stopped"),interrupted:e("thread.status.interrupted")}}let d=0;const s=new Set;setInterval(()=>{d++;for(const e of s)e()},6e4);function D(e){return s.add(e),()=>s.delete(e)}function G(){return d}function W(){return b.useSyncExternalStore(D,G)}export{u as C,U as G,E as P,H as a,l as b,Y as c,Q as g,J as r,X as s,F as t,W as u};
