@axiom-lattice/gateway 6.1.0 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/README.md +0 -1
  2. package/dist/{WechatChannelAdapter-7WHE5UGY.mjs → WechatChannelAdapter-QLPJJD6S.mjs} +55 -4
  3. package/dist/WechatChannelAdapter-QLPJJD6S.mjs.map +1 -0
  4. package/dist/a2a-standard-VL5I7B4W.mjs +4188 -0
  5. package/dist/a2a-standard-VL5I7B4W.mjs.map +1 -0
  6. package/dist/{chunk-YKTXW6F6.mjs → chunk-2SR4F3ZD.mjs} +65 -1
  7. package/dist/chunk-2SR4F3ZD.mjs.map +1 -0
  8. package/dist/{chunk-FGSFOXIX.mjs → chunk-L6MBEEII.mjs} +2 -2
  9. package/dist/{chunk-QUT2DS4R.mjs → chunk-W3YH4S6G.mjs} +18 -4
  10. package/dist/chunk-W3YH4S6G.mjs.map +1 -0
  11. package/dist/{chunk-MWWLJMYN.mjs → chunk-XUWD4VKY.mjs} +4 -2
  12. package/dist/chunk-XUWD4VKY.mjs.map +1 -0
  13. package/dist/embed/embed-page-AgentDetailSideApp-NK6VQBXS.js +1 -0
  14. package/dist/embed/embed-page-AgentGovernanceWorkbench-TKVV2GA6.js +1 -0
  15. package/dist/embed/embed-page-LangfuseDashboard-EYK2T2VK.js +1 -0
  16. package/dist/embed/embed-page-MessageGraph-P73B52OR.js +6 -0
  17. package/dist/embed/embed-page-ReactChart-LK6DUA4R.js +1 -0
  18. package/dist/embed/{embed-page-ReactInfographic-5P36JLSX.js → embed-page-ReactInfographic-677NVKOU.js} +1 -1
  19. package/dist/embed/embed-page-SkillFlow-54RIT6M2.js +1 -0
  20. package/dist/embed/{embed-page-TasksSideApp-BQMOLOUF.js → embed-page-TasksSideApp-RK64OPAA.js} +1 -1
  21. package/dist/embed/embed-page-ThreadMaintenancePanel-PI3U76W3.js +1 -0
  22. package/dist/embed/{embed-page-TopologyRuntimeView-OSV75P6Y.js → embed-page-TopologyRuntimeView-X6QPRQE2.js} +1 -1
  23. package/dist/embed/{embed-page-WorkflowAutomationView-KJ6HJ5UT.js → embed-page-WorkflowAutomationView-3PE6YCRK.js} +1 -1
  24. package/dist/embed/embed-page-all-JEPF6WHD.js +1 -0
  25. package/dist/embed/{embed-page-architectureDiagram-VXUJARFQ-THUN2PFL.js → embed-page-architectureDiagram-VXUJARFQ-TYJ3NO2K.js} +1 -1
  26. package/dist/embed/embed-page-aspnet-GIV4ESY6.js +1 -0
  27. package/dist/embed/{embed-page-blockDiagram-VD42YOAC-K7OX6LIO.js → embed-page-blockDiagram-VD42YOAC-L4J3TZWR.js} +1 -1
  28. package/dist/embed/{embed-page-c4Diagram-YG6GDRKO-DJDAF5AO.js → embed-page-c4Diagram-YG6GDRKO-CP2IXU3Z.js} +1 -1
  29. package/dist/embed/{embed-page-chunk-FD2PRLMW.js → embed-page-chunk-2VJ7T35I.js} +1 -1
  30. package/dist/embed/{embed-page-chunk-WTOAQDQN.js → embed-page-chunk-3VNL5M2Q.js} +1 -1
  31. package/dist/embed/{embed-page-chunk-JUZPOR5Y.js → embed-page-chunk-5WWOKLDB.js} +1 -1
  32. package/dist/embed/{embed-page-chunk-HYPA2PHA.js → embed-page-chunk-6IIMW7OG.js} +1 -1
  33. package/dist/embed/embed-page-chunk-767LVAGR.js +7 -0
  34. package/dist/embed/{embed-page-chunk-XKGF5D6L.js → embed-page-chunk-7CJDHJEH.js} +1 -1
  35. package/dist/embed/{embed-page-chunk-J5AHS4PO.js → embed-page-chunk-7GLQRV3J.js} +1 -1
  36. package/dist/embed/embed-page-chunk-A5GIM22E.js +117 -0
  37. package/dist/embed/{embed-page-chunk-SQ4GANYE.js → embed-page-chunk-AEDAOTEO.js} +1 -1
  38. package/dist/embed/{embed-page-chunk-QULNM5O2.js → embed-page-chunk-AICFKU43.js} +1 -1
  39. package/dist/embed/{embed-page-chunk-FGKHXQAJ.js → embed-page-chunk-BD7DUF2M.js} +1 -1
  40. package/dist/embed/embed-page-chunk-D7YTSCUO.js +1 -0
  41. package/dist/embed/{embed-page-chunk-A2AHDN6K.js → embed-page-chunk-DQJVWZOB.js} +1 -1
  42. package/dist/embed/embed-page-chunk-EB43T3BJ.js +6746 -0
  43. package/dist/embed/{embed-page-chunk-DTRFJLVZ.js → embed-page-chunk-F5QVZLK5.js} +1 -1
  44. package/dist/embed/{embed-page-chunk-DBUC6J4G.js → embed-page-chunk-GYO2ELMI.js} +1 -1
  45. package/dist/embed/embed-page-chunk-KF3HZ4TX.js +8 -0
  46. package/dist/embed/{embed-page-chunk-G2RO6IBN.js → embed-page-chunk-KXVXKWED.js} +1 -1
  47. package/dist/embed/embed-page-chunk-MEY3NEJZ.js +211 -0
  48. package/dist/embed/{embed-page-chunk-PLNJRORR.js → embed-page-chunk-NVFNRWRN.js} +1 -1
  49. package/dist/embed/embed-page-chunk-OIML5DX4.js +5 -0
  50. package/dist/embed/{embed-page-chunk-IIEDLN7W.js → embed-page-chunk-OKZPPZMF.js} +1 -1
  51. package/dist/embed/embed-page-chunk-T2HKN7ZS.js +459 -0
  52. package/dist/embed/{embed-page-chunk-V2GBFWLG.js → embed-page-chunk-TSZQWEXD.js} +1 -1
  53. package/dist/embed/embed-page-chunk-US46Q3B7.js +15 -0
  54. package/dist/embed/embed-page-chunk-UV6IYDW5.js +242 -0
  55. package/dist/embed/{embed-page-chunk-WFUFTRWA.js → embed-page-chunk-WK77HIEN.js} +1 -1
  56. package/dist/embed/{embed-page-chunk-XSKNS3LY.js → embed-page-chunk-WWXRO4ZL.js} +1 -1
  57. package/dist/embed/embed-page-chunk-WXMPVIXV.js +59 -0
  58. package/dist/embed/{embed-page-chunk-VY6MAPHR.js → embed-page-chunk-XSKDYUNQ.js} +1 -1
  59. package/dist/embed/{embed-page-chunk-V7R2Y72J.js → embed-page-chunk-YJUCDIYK.js} +1 -1
  60. package/dist/embed/embed-page-chunk-YWJQVBZV.js +1 -0
  61. package/dist/embed/embed-page-chunk-ZQQFWEWO.js +1 -0
  62. package/dist/embed/embed-page-classDiagram-2ON5EDUG-MHNSVPAN.js +1 -0
  63. package/dist/embed/embed-page-classDiagram-v2-WZHVMYZB-QCMEVMYH.js +1 -0
  64. package/dist/embed/embed-page-code-highlighter-DD23LJY3.js +1 -0
  65. package/dist/embed/embed-page-cshtml-RYMZMLKB.js +1 -0
  66. package/dist/embed/{embed-page-dagre-6UL2VRFP-UQFZMKYW.js → embed-page-dagre-6UL2VRFP-LTZ2DVVO.js} +1 -1
  67. package/dist/embed/{embed-page-diagram-PSM6KHXK-4IKXWNA4.js → embed-page-diagram-PSM6KHXK-JHYXSMCB.js} +1 -1
  68. package/dist/embed/{embed-page-diagram-QEK2KX5R-245T32UF.js → embed-page-diagram-QEK2KX5R-2YGDFFTU.js} +1 -1
  69. package/dist/embed/{embed-page-diagram-S2PKOQOG-BOA5MJA5.js → embed-page-diagram-S2PKOQOG-6EW6MDJW.js} +1 -1
  70. package/dist/embed/embed-page-en-3Z4N5KXB.js +1 -0
  71. package/dist/embed/embed-page-en-BLF5THT6.js +1 -0
  72. package/dist/embed/embed-page-en-E35GE7TA.js +1 -0
  73. package/dist/embed/embed-page-en-EKHHBS6L.js +1 -0
  74. package/dist/embed/{embed-page-en-UWBIHR6I.js → embed-page-en-H4P63IAK.js} +1 -1
  75. package/dist/embed/embed-page-en-KAXIJJ4X.js +1 -0
  76. package/dist/embed/embed-page-en-OIICQSPX.js +3 -0
  77. package/dist/embed/embed-page-en-PQOH5CU4.js +1 -0
  78. package/dist/embed/embed-page-en-TMGUHZ6Y.js +1 -0
  79. package/dist/embed/embed-page-en-XJYWUJEL.js +1 -0
  80. package/dist/embed/{embed-page-en-WB2EPS63.js → embed-page-en-ZCNNAMUD.js} +1 -1
  81. package/dist/embed/{embed-page-erDiagram-Q2GNP2WA-S4J4SQPR.js → embed-page-erDiagram-Q2GNP2WA-KSUS6MHW.js} +1 -1
  82. package/dist/embed/{embed-page-flowDiagram-NV44I4VS-ZFIJXKMW.js → embed-page-flowDiagram-NV44I4VS-AYXRDKAJ.js} +1 -1
  83. package/dist/embed/{embed-page-ganttDiagram-JELNMOA3-7MSIEWL4.js → embed-page-ganttDiagram-JELNMOA3-AV7N2N3T.js} +1 -1
  84. package/dist/embed/{embed-page-gitGraphDiagram-NY62KEGX-F6KE6PZK.js → embed-page-gitGraphDiagram-NY62KEGX-IBVOXVO5.js} +1 -1
  85. package/dist/embed/embed-page-infoDiagram-WHAUD3N6-ZULKOSOZ.js +2 -0
  86. package/dist/embed/{embed-page-journeyDiagram-XKPGCS4Q-6VTW6GQ3.js → embed-page-journeyDiagram-XKPGCS4Q-3GILI7Y4.js} +1 -1
  87. package/dist/embed/{embed-page-kanban-definition-3W4ZIXB7-7IZYCLQZ.js → embed-page-kanban-definition-3W4ZIXB7-UGO3J7IH.js} +1 -1
  88. package/dist/embed/embed-page-mermaid-IN3A3YH2.js +18 -0
  89. package/dist/embed/{embed-page-mindmap-definition-VGOIOE7T-GKTOT34A.js → embed-page-mindmap-definition-VGOIOE7T-VXXZJS3Z.js} +1 -1
  90. package/dist/embed/{embed-page-pieDiagram-ADFJNKIX-VDPALO42.js → embed-page-pieDiagram-ADFJNKIX-ZFAWYA2N.js} +1 -1
  91. package/dist/embed/{embed-page-requirementDiagram-UZGBJVZJ-LTZH6RTD.js → embed-page-requirementDiagram-UZGBJVZJ-2QBINXR7.js} +1 -1
  92. package/dist/embed/{embed-page-sequenceDiagram-WL72ISMW-LV6Q4SHW.js → embed-page-sequenceDiagram-WL72ISMW-3MGTESG4.js} +1 -1
  93. package/dist/embed/{embed-page-stateDiagram-FKZM4ZOC-U4NHQDNP.js → embed-page-stateDiagram-FKZM4ZOC-W6VPIMB5.js} +1 -1
  94. package/dist/embed/embed-page-stateDiagram-v2-4FDKWEC3-QYJ47QBY.js +1 -0
  95. package/dist/embed/{embed-page-tsx-PNW7N5T4.js → embed-page-tsx-LGDDERM2.js} +1 -1
  96. package/dist/embed/{embed-page-xychartDiagram-PRI3JC2R-VZSIXBFK.js → embed-page-xychartDiagram-PRI3JC2R-7XKT4R7V.js} +1 -1
  97. package/dist/embed/embed-page-zh-2UVQB4RP.js +3 -0
  98. package/dist/embed/embed-page-zh-6EBUEFKP.js +1 -0
  99. package/dist/embed/embed-page-zh-B3WBWQAV.js +1 -0
  100. package/dist/embed/embed-page-zh-GXE63PQ7.js +1 -0
  101. package/dist/embed/{embed-page-zh-ACZNJ4X4.js → embed-page-zh-IB3422D4.js} +1 -1
  102. package/dist/embed/embed-page-zh-KEMYJJLT.js +1 -0
  103. package/dist/embed/{embed-page-zh-NKHP3CFU.js → embed-page-zh-N2STRBUG.js} +1 -1
  104. package/dist/embed/embed-page-zh-RMGMUSDH.js +1 -0
  105. package/dist/embed/embed-page-zh-XO36BV2R.js +1 -0
  106. package/dist/embed/{embed-page-zh-XEYNKCTC.js → embed-page-zh-Z3URTIHW.js} +1 -1
  107. package/dist/embed/embed-page-zh-ZLK3GLM3.js +1 -0
  108. package/dist/embed/embed-page.js +1 -1
  109. package/dist/index.d.mts +1573 -232
  110. package/dist/index.d.ts +1573 -232
  111. package/dist/index.js +35707 -22367
  112. package/dist/index.js.map +1 -1
  113. package/dist/index.mjs +35226 -24724
  114. package/dist/index.mjs.map +1 -1
  115. package/dist/{open-MDC4VCR7.mjs → open-7ED27I5B.mjs} +43 -80
  116. package/dist/open-7ED27I5B.mjs.map +1 -0
  117. package/dist/{open-exposure-OX5NKWDG.mjs → open-exposure-I3DN2X4E.mjs} +17 -5
  118. package/dist/{open-exposure-OX5NKWDG.mjs.map → open-exposure-I3DN2X4E.mjs.map} +1 -1
  119. package/dist/{open-files-FS5AN6Q6.mjs → open-files-V3R2BFTV.mjs} +4 -4
  120. package/package.json +15 -8
  121. package/dist/WechatChannelAdapter-7WHE5UGY.mjs.map +0 -1
  122. package/dist/a2a-standard-3OZFXDCW.mjs +0 -1413
  123. package/dist/a2a-standard-3OZFXDCW.mjs.map +0 -1
  124. package/dist/chunk-K32XEQLH.mjs +0 -28
  125. package/dist/chunk-K32XEQLH.mjs.map +0 -1
  126. package/dist/chunk-MWWLJMYN.mjs.map +0 -1
  127. package/dist/chunk-QUT2DS4R.mjs.map +0 -1
  128. package/dist/chunk-YKTXW6F6.mjs.map +0 -1
  129. package/dist/embed/embed-page-AgentDetailSideApp-2UFH4RJG.js +0 -1
  130. package/dist/embed/embed-page-AgentGovernanceWorkbench-3JOSRW2V.js +0 -1
  131. package/dist/embed/embed-page-MessageGraph-SPB75EHC.js +0 -6
  132. package/dist/embed/embed-page-ReactChart-EE4A5WKS.js +0 -1
  133. package/dist/embed/embed-page-SkillFlow-H2ARZGEX.js +0 -1
  134. package/dist/embed/embed-page-TeamWorkspace-QXMRVXWU.js +0 -748
  135. package/dist/embed/embed-page-TeamWorkspace-YQFWXDLI.css +0 -1
  136. package/dist/embed/embed-page-all-NEJVJ4G7.js +0 -1
  137. package/dist/embed/embed-page-aspnet-SRK67AH2.js +0 -1
  138. package/dist/embed/embed-page-chunk-D5GP7FHH.js +0 -5
  139. package/dist/embed/embed-page-chunk-E6F5YZBR.js +0 -242
  140. package/dist/embed/embed-page-chunk-ESQ5V77Q.js +0 -1
  141. package/dist/embed/embed-page-chunk-GSCVATOA.js +0 -21
  142. package/dist/embed/embed-page-chunk-MHGVD4EV.js +0 -525
  143. package/dist/embed/embed-page-chunk-U4XSGC4Y.js +0 -7009
  144. package/dist/embed/embed-page-chunk-VXWRPT33.js +0 -2
  145. package/dist/embed/embed-page-classDiagram-2ON5EDUG-VYHHMIKZ.js +0 -1
  146. package/dist/embed/embed-page-classDiagram-v2-WZHVMYZB-5AISLXUF.js +0 -1
  147. package/dist/embed/embed-page-code-highlighter-IPU5ZNPJ.js +0 -1
  148. package/dist/embed/embed-page-cshtml-ZY7LJSTH.js +0 -1
  149. package/dist/embed/embed-page-en-2WLCQIB6.js +0 -1
  150. package/dist/embed/embed-page-en-7WXWAWGG.js +0 -1
  151. package/dist/embed/embed-page-en-FP6DWSG3.js +0 -1
  152. package/dist/embed/embed-page-en-GHTROC4H.js +0 -1
  153. package/dist/embed/embed-page-en-ICVL5QAC.js +0 -1
  154. package/dist/embed/embed-page-en-OLZHSUC3.js +0 -1
  155. package/dist/embed/embed-page-infoDiagram-WHAUD3N6-FQMKXERB.js +0 -2
  156. package/dist/embed/embed-page-mermaid-R7ZBUE3D.js +0 -18
  157. package/dist/embed/embed-page-stateDiagram-v2-4FDKWEC3-G3EWQCOW.js +0 -1
  158. package/dist/embed/embed-page-zh-EYLHUD5G.js +0 -1
  159. package/dist/embed/embed-page-zh-FPYCTKQK.js +0 -1
  160. package/dist/embed/embed-page-zh-OPUVZZSQ.js +0 -1
  161. package/dist/embed/embed-page-zh-VH6J7XZO.js +0 -1
  162. package/dist/embed/embed-page-zh-Y5X5Y2DF.js +0 -1
  163. package/dist/mcpTransportRegistry-VXUVJKBC.mjs +0 -14
  164. package/dist/mcpTransportRegistry-VXUVJKBC.mjs.map +0 -1
  165. package/dist/open-MDC4VCR7.mjs.map +0 -1
  166. /package/dist/{chunk-FGSFOXIX.mjs.map → chunk-L6MBEEII.mjs.map} +0 -0
  167. /package/dist/embed/{embed-page-chunk-34FVRFPW.js → embed-page-chunk-UH47IEAR.js} +0 -0
  168. /package/dist/{open-files-FS5AN6Q6.mjs.map → open-files-V3R2BFTV.mjs.map} +0 -0
@@ -1,748 +0,0 @@
1
- import{d as Be,f as ke,g as _e,h as Fe,i as Oe,l as We,m as je}from"./embed-page-chunk-V2GBFWLG.js";import"./embed-page-chunk-S4XZPBRM.js";import{E as $e,Ga as Ge,J as Ne,N as we,P as Ie,Q as Me,S as De,T as Ae,U as k,V as ne,W as Le,X as Re,Ya as He,Za as Xe,c as Te,ea as ze,j as Z,k as be,l as ye,m as ee,ma as le,n as H,na as Ee,p as B,ra as M,v as Se,va as Pe,w as Ce,y as te}from"./embed-page-chunk-U4XSGC4Y.js";import{r as T}from"./embed-page-chunk-GSCVATOA.js";import{a as I}from"./embed-page-chunk-QV7QAJ4N.js";import"./embed-page-chunk-VW3NF5NT.js";import"./embed-page-chunk-QULNM5O2.js";import{Da as se,Ea as U,Ia as P,Ka as ve,La as z,W as pe,Z as V,aa as E,da as J,fa as ge,ga as W,ja as j,ka as ue,oa as Q,ua as fe,va as xe,ya as he}from"./embed-page-chunk-MHGVD4EV.js";import{a as X}from"./embed-page-chunk-R5QL57JJ.js";import"./embed-page-chunk-QOWM3LMZ.js";import"./embed-page-chunk-EUOOO2LS.js";import"./embed-page-chunk-5JDQ456X.js";import{f as v}from"./embed-page-chunk-QBTAJ2YI.js";var oe=v(X());var ae=v(X());var x=v(I()),ut=M(({token:e,css:t})=>({container:t`
2
- display: flex;
3
- flex-direction: column;
4
- height: 100%;
5
- background: ${e.colorBgContainer};
6
- border-right: 1px solid ${e.colorBorderSecondary};
7
- transition: width 0.3s ease;
8
- overflow: hidden;
9
- `,containerCollapsed:t`
10
- width: 64px;
11
- `,containerExpanded:t`
12
- width: 200px;
13
- `,toggleButton:t`
14
- display: flex;
15
- align-items: center;
16
- justify-content: center;
17
- width: 40px;
18
- height: 40px;
19
- border-radius: ${e.borderRadius}px;
20
- border: none;
21
- background: transparent;
22
- color: ${e.colorTextSecondary};
23
- cursor: pointer;
24
- transition: all 0.2s ease;
25
- margin: ${e.marginSM}px ${e.paddingSM}px;
26
- align-self: flex-end;
27
-
28
- &:hover {
29
- background: ${e.colorBgTextHover};
30
- color: ${e.colorText};
31
- }
32
- `,menuContent:t`
33
- flex: 1;
34
- overflow-y: auto;
35
- overflow-x: hidden;
36
- padding: ${e.paddingXS}px 0;
37
- `,menuGroup:t`
38
- display: flex;
39
- flex-direction: column;
40
- padding: ${e.paddingXS}px ${e.paddingSM}px;
41
- `,groupDivider:t`
42
- height: 1px;
43
- background: ${e.colorBorderSecondary};
44
- margin: ${e.marginXS}px ${e.marginSM}px;
45
- `,groupLabel:t`
46
- font-size: 10px;
47
- font-weight: 600;
48
- color: ${e.colorTextTertiary};
49
- text-transform: uppercase;
50
- letter-spacing: 0.5px;
51
- padding: ${e.paddingXS}px ${e.paddingSM}px;
52
- margin-bottom: ${e.marginXS}px;
53
- `,menuItem:t`
54
- display: flex;
55
- align-items: center;
56
- gap: ${e.marginSM}px;
57
- padding: ${e.paddingSM}px;
58
- border-radius: ${e.borderRadius}px;
59
- cursor: pointer;
60
- transition: all 0.2s ease;
61
- color: ${e.colorTextSecondary};
62
- position: relative;
63
- margin-bottom: ${e.marginXXS}px;
64
-
65
- &:hover {
66
- background: ${e.colorBgTextHover};
67
- color: ${e.colorText};
68
- }
69
-
70
- &.active {
71
- background: ${e.colorPrimaryBg};
72
- color: ${e.colorPrimary};
73
- }
74
- `,menuItemCollapsed:t`
75
- justify-content: center;
76
- padding: ${e.paddingSM}px;
77
- `,menuIcon:t`
78
- display: flex;
79
- align-items: center;
80
- justify-content: center;
81
- flex-shrink: 0;
82
- `,menuLabel:t`
83
- font-size: 13px;
84
- font-weight: 500;
85
- white-space: nowrap;
86
- overflow: hidden;
87
- text-overflow: ellipsis;
88
- `,badge:t`
89
- position: absolute;
90
- top: 4px;
91
- right: 4px;
92
- `,avatar:t`
93
- width: 20px;
94
- height: 20px;
95
- border-radius: 50%;
96
- display: flex;
97
- align-items: center;
98
- justify-content: center;
99
- font-size: 10px;
100
- font-weight: 600;
101
- color: #fff;
102
- flex-shrink: 0;
103
- `})),ft=e=>e.split(/[\s_-]/).map(t=>t.charAt(0)).join("").toUpperCase().slice(0,2),xt=e=>{let t=["#1890ff","#52c41a","#faad14","#f5222d","#722ed1","#13c2c2","#eb2f96","#fa8c16"],i=0;for(let a=0;a<e.length;a++)i=e.charCodeAt(a)+((i<<5)-i);return t[Math.abs(i)%t.length]},ht=e=>{if(e.icon)return e.icon;switch(e.type){case"dashboard":return(0,x.jsx)(Ie,{size:20});case"inbox":return(0,x.jsx)(we,{size:20});case"issues":return(0,x.jsx)(Ce,{size:20});case"org":return(0,x.jsx)(Re,{size:20});case"teammate":return e.data?(0,x.jsx)("div",{style:{width:20,height:20,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:10,fontWeight:600,color:"#fff",background:xt(e.data.name)},children:ft(e.data.name)}):(0,x.jsx)(le,{size:20});default:return(0,x.jsx)(le,{size:20})}},Ve=({items:e,activeItem:t,onItemClick:i})=>{let{styles:a}=ut(),r=T(),[n,c]=(0,ae.useState)(!1),d=e.filter(u=>!u.group),g=e.filter(u=>u.group==="Teammates"),y=e.filter(u=>u.group==="Team"),L=(u,f)=>{let S=(0,x.jsxs)("div",{className:`${a.menuItem} ${n?"":a.menuItemCollapsed} ${t===u.id?"active":""}`,onClick:()=>i(u),children:[(0,x.jsx)("span",{className:a.menuIcon,children:ht(u)}),n&&(0,x.jsx)("span",{className:a.menuLabel,children:u.name}),u.badge&&(0,x.jsx)(J,{count:u.badge,size:"small",className:a.badge,style:{backgroundColor:"#ff4d4f"}})]});return f&&!n?(0,x.jsx)(E,{title:u.name,placement:"right",children:S},u.id):(0,x.jsx)(ae.default.Fragment,{children:S},u.id)},b=(u,f,S)=>u.length===0?null:(0,x.jsxs)(x.Fragment,{children:[S&&(0,x.jsx)("div",{className:a.groupDivider}),(0,x.jsxs)("div",{className:a.menuGroup,children:[n&&f&&(0,x.jsx)("div",{className:a.groupLabel,children:f}),u.map(O=>L(O,!0))]})]});return(0,x.jsxs)("div",{className:`${a.container} ${n?a.containerExpanded:a.containerCollapsed}`,children:[(0,x.jsx)("button",{className:a.toggleButton,onClick:()=>c(!n),title:r(n?"genui.teamMenu.collapse":"genui.teamMenu.expand"),children:n?(0,x.jsx)(ye,{size:16}):(0,x.jsx)(ee,{size:16})}),(0,x.jsxs)("div",{className:a.menuContent,children:[b(d,null,!1),b(g,r("genui.teamMenu.groupTeammates"),d.length>0),b(y,r("genui.teamMenu.groupTeam"),d.length>0||g.length>0)]})]})};var Ue=v(X());function Ye(e,t){let{agentState:i,isLoading:a,error:r,refresh:n}=Ge(e,t,{pollingInterval:5e3,autoStart:!0});return{...(0,Ue.useMemo)(()=>{let d=i?.values?.team||null,g=i?.values?.tasks||[],y=i?.values?.team_mailbox||[],L={totalTasks:g.length,pendingTasks:g.filter(f=>f.status==="pending").length,inProgressTasks:g.filter(f=>f.status==="claimed"||f.status==="in_progress").length,completedTasks:g.filter(f=>f.status==="completed").length,failedTasks:g.filter(f=>f.status==="failed").length,totalActivities:y.length,unreadMessages:y.filter(f=>!f.read).length},b=g.slice().sort((f,S)=>new Date(S.updatedAt).getTime()-new Date(f.updatedAt).getTime()).slice(0,10),u=y.slice().sort((f,S)=>new Date(S.timestamp).getTime()-new Date(f.timestamp).getTime()).slice(0,10);return{team:d,tasks:g,mailbox:y,stats:L,recentTasks:b,recentActivities:u}},[i]),isLoading:a,error:r,refresh:n}}var s=v(I()),{Title:vt,Text:Tt}=z,bt=M(({token:e,css:t})=>({container:t`
104
- padding: ${e.paddingLG}px;
105
- `,header:t`
106
- margin-bottom: ${e.marginLG}px;
107
- `,title:t`
108
- margin: 0 0 ${e.marginSM}px 0 !important;
109
- font-family: "Space Grotesk", sans-serif;
110
- `,subtitle:t`
111
- color: ${e.colorTextSecondary};
112
- font-size: 14px;
113
- `,statsRow:t`
114
- margin-bottom: ${e.marginLG}px;
115
- `,statCard:t`
116
- height: 100%;
117
- border-radius: ${e.borderRadiusLG}px;
118
- transition: all 0.3s ease;
119
-
120
- &:hover {
121
- box-shadow: ${e.boxShadowSecondary};
122
- }
123
- `,contentRow:t`
124
- margin-top: ${e.marginLG}px;
125
- `,sectionCard:t`
126
- height: 100%;
127
- border-radius: ${e.borderRadiusLG}px;
128
- `,compactList:t`
129
- .ant-list-items {
130
- display: flex;
131
- flex-direction: column;
132
- gap: 2px;
133
- }
134
- `,listItem:t`
135
- display: flex;
136
- align-items: center;
137
- padding: 8px 12px;
138
- border-radius: ${e.borderRadius}px;
139
- transition: background 0.2s ease;
140
- cursor: pointer;
141
-
142
- &:hover {
143
- background: ${e.colorBgTextHover};
144
- }
145
- `,activityItem:t`
146
- display: flex;
147
- align-items: flex-start;
148
- gap: 10px;
149
- width: 100%;
150
- `,activityAvatar:t`
151
- width: 22px;
152
- height: 22px;
153
- border-radius: 50%;
154
- display: flex;
155
- align-items: center;
156
- justify-content: center;
157
- font-size: 10px;
158
- font-weight: 600;
159
- color: #fff;
160
- flex-shrink: 0;
161
- margin-top: 2px;
162
- `,activityContent:t`
163
- flex: 1;
164
- min-width: 0;
165
- `,activityText:t`
166
- font-size: 13px;
167
- color: ${e.colorText};
168
- line-height: 1.4;
169
- display: -webkit-box;
170
- -webkit-line-clamp: 2;
171
- -webkit-box-orient: vertical;
172
- overflow: hidden;
173
- text-overflow: ellipsis;
174
- `,activityHighlight:t`
175
- font-weight: 600;
176
- color: ${e.colorText};
177
- `,activityTime:t`
178
- font-size: 12px;
179
- color: ${e.colorTextTertiary};
180
- flex-shrink: 0;
181
- margin-left: 8px;
182
- `,taskItem:t`
183
- display: flex;
184
- align-items: center;
185
- gap: 10px;
186
- width: 100%;
187
- `,taskStatusIcon:t`
188
- width: 16px;
189
- height: 16px;
190
- display: flex;
191
- align-items: center;
192
- justify-content: center;
193
- flex-shrink: 0;
194
- font-size: 14px;
195
- `,taskContent:t`
196
- flex: 1;
197
- min-width: 0;
198
- display: flex;
199
- align-items: center;
200
- gap: 8px;
201
- `,taskTitle:t`
202
- font-size: 13px;
203
- color: ${e.colorText};
204
- display: -webkit-box;
205
- -webkit-line-clamp: 2;
206
- -webkit-box-orient: vertical;
207
- overflow: hidden;
208
- text-overflow: ellipsis;
209
- `,taskAssignee:t`
210
- width: 20px;
211
- height: 20px;
212
- border-radius: 50%;
213
- display: flex;
214
- align-items: center;
215
- justify-content: center;
216
- font-size: 9px;
217
- font-weight: 600;
218
- color: #fff;
219
- flex-shrink: 0;
220
- `,taskTime:t`
221
- font-size: 12px;
222
- color: ${e.colorTextTertiary};
223
- flex-shrink: 0;
224
- `,statusCompleted:t`
225
- color: #22c55e;
226
- `,statusInProgress:t`
227
- color: #f59e0b;
228
- `,statusPending:t`
229
- color: #6b7280;
230
- `,statusFailed:t`
231
- color: #ef4444;
232
- `})),Ke=e=>e.split(/[\s_-]/).map(t=>t.charAt(0)).join("").toUpperCase().slice(0,2),qe=e=>{let t=["#1890ff","#52c41a","#faad14","#f5222d","#722ed1","#13c2c2","#eb2f96","#fa8c16"],i=0;for(let a=0;a<e.length;a++)i=e.charCodeAt(a)+((i<<5)-i);return t[Math.abs(i)%t.length]},Je=(e,t)=>{let i=new Date(e),r=Math.floor((new Date().getTime()-i.getTime())/(1e3*60)),n=Math.floor(r/60),c=Math.floor(n/24);return r<1?t("genui.date.justNow"):r<60?t("genui.date.minutesAgo",{count:r}):n<24?t("genui.date.hoursAgo",{count:n}):c===1?t("genui.date.yesterday"):c<7?t("genui.date.daysAgo",{count:c}):i.toLocaleDateString()},yt=({status:e,className:t})=>{switch(e){case"completed":return(0,s.jsx)("div",{className:t,style:{color:"#22c55e"},children:(0,s.jsx)(B,{size:16})});case"in_progress":case"claimed":return(0,s.jsx)("div",{className:t,style:{color:"#f59e0b"},children:(0,s.jsx)(k,{size:16,className:"animate-spin"})});case"failed":return(0,s.jsx)("div",{className:t,style:{color:"#ef4444"},children:(0,s.jsx)(H,{size:16})});case"pending":default:return(0,s.jsx)("div",{className:t,style:{color:"#6b7280"},children:(0,s.jsx)(te,{size:16})})}},St=({activity:e,styles:t})=>{let i=T(),a=qe(e.from),r=Ke(e.from),n=()=>{let c=e.content,d=60,g=c.length>d?c.slice(0,d)+"...":c;return(0,s.jsxs)("span",{className:t.activityText,children:[(0,s.jsx)("span",{className:t.activityHighlight,children:e.from})," ",e.type==="broadcast"&&(0,s.jsxs)("span",{style:{color:"#1890ff",fontWeight:500},children:[i("genui.teamDashboard.broadcast")," "," "]}),g]})};return(0,s.jsx)("div",{className:t.listItem,children:(0,s.jsxs)("div",{className:t.activityItem,children:[(0,s.jsx)("div",{className:t.activityAvatar,style:{background:a},children:r}),(0,s.jsx)("div",{className:t.activityContent,children:n()}),(0,s.jsx)("span",{className:t.activityTime,children:Je(e.timestamp,i)})]})})},Ct=({task:e,styles:t})=>{let i=T();return(0,s.jsx)(E,{title:e.title,placement:"topLeft",children:(0,s.jsx)("div",{className:t.listItem,children:(0,s.jsxs)("div",{className:t.taskItem,children:[(0,s.jsx)(yt,{status:e.status,className:t.taskStatusIcon}),(0,s.jsxs)("div",{className:t.taskContent,children:[(0,s.jsx)("span",{className:t.taskTitle,children:e.title}),e.assignee&&(0,s.jsx)(E,{title:e.assignee,children:(0,s.jsx)("div",{className:t.taskAssignee,style:{background:qe(e.assignee)},children:Ke(e.assignee)})})]}),(0,s.jsx)("span",{className:t.taskTime,children:Je(e.updatedAt,i)})]})})})},Qe=({stats:e,recentTasks:t,recentActivities:i,team:a})=>{let{styles:r}=bt(),n=T();return(0,s.jsxs)("div",{className:r.container,children:[(0,s.jsxs)("div",{className:r.header,children:[(0,s.jsx)(vt,{level:3,className:r.title,children:n("genui.teamDashboard.title")}),(0,s.jsx)(Tt,{className:r.subtitle,children:a?.teamId?n("genui.teamDashboard.teamSummary",{teamId:a.teamId,tasks:e.totalTasks,activities:e.totalActivities}):n("genui.teamDashboard.subtitle")})]}),(0,s.jsxs)(se,{gutter:[16,16],className:r.statsRow,children:[(0,s.jsx)(j,{span:6,children:(0,s.jsx)(W,{className:r.statCard,children:(0,s.jsx)(U,{title:n("genui.teamDashboard.totalTasks"),value:e.totalTasks,prefix:(0,s.jsx)($e,{size:20}),valueStyle:{color:"#1890ff"}})})}),(0,s.jsx)(j,{span:6,children:(0,s.jsx)(W,{className:r.statCard,children:(0,s.jsx)(U,{title:n("genui.taskStatus.inProgress"),value:e.inProgressTasks,prefix:(0,s.jsx)(k,{size:20,className:"animate-spin"}),valueStyle:{color:"#faad14"}})})}),(0,s.jsx)(j,{span:6,children:(0,s.jsx)(W,{className:r.statCard,children:(0,s.jsx)(U,{title:n("genui.taskStatus.completed"),value:e.completedTasks,prefix:(0,s.jsx)(B,{size:20}),valueStyle:{color:"#52c41a"}})})}),(0,s.jsx)(j,{span:6,children:(0,s.jsx)(W,{className:r.statCard,children:(0,s.jsx)(U,{title:n("genui.teamDashboard.activities"),value:e.totalActivities,prefix:(0,s.jsx)(ne,{size:20}),valueStyle:{color:"#722ed1"}})})})]}),(0,s.jsxs)(se,{gutter:[16,16],className:r.contentRow,children:[(0,s.jsx)(j,{span:12,children:(0,s.jsx)(W,{title:(0,s.jsxs)("span",{children:[(0,s.jsx)(ne,{size:18,style:{marginRight:8,verticalAlign:"middle"}}),n("genui.teamDashboard.recentActivities")]}),className:r.sectionCard,bodyStyle:{padding:0},children:(0,s.jsx)("div",{className:r.compactList,children:i.length===0?(0,s.jsx)("div",{style:{padding:24,textAlign:"center",color:"#999"},children:n("genui.teamDashboard.noRecentActivities")}):i.map(c=>(0,s.jsx)(St,{activity:c,styles:r},c.id))})})}),(0,s.jsx)(j,{span:12,children:(0,s.jsx)(W,{title:(0,s.jsxs)("span",{children:[(0,s.jsx)(Ee,{size:18,style:{marginRight:8,verticalAlign:"middle"}}),n("genui.teamDashboard.recentTasks")]}),className:r.sectionCard,bodyStyle:{padding:0},children:(0,s.jsx)("div",{className:r.compactList,children:t.length===0?(0,s.jsx)("div",{style:{padding:24,textAlign:"center",color:"#999"},children:n("genui.teamDashboard.noRecentTasks")}):t.map(c=>(0,s.jsx)(Ct,{task:c,styles:r},c.id))})})})]})]})};var F=v(X());var Ze=v(X());var o=v(I()),{Title:$t,Text:_,Paragraph:ce}=z,Nt=M(({token:e,css:t})=>({modalContent:t`
233
- padding: 0;
234
- `,header:t`
235
- display: flex;
236
- align-items: center;
237
- gap: ${e.marginSM}px;
238
- margin-bottom: ${e.marginMD}px;
239
- `,statusIcon:t`
240
- width: 20px;
241
- height: 20px;
242
- display: flex;
243
- align-items: center;
244
- justify-content: center;
245
- `,taskId:t`
246
- font-family: "Space Grotesk", sans-serif;
247
- font-size: 14px;
248
- color: ${e.colorTextSecondary};
249
- font-weight: 500;
250
- `,title:t`
251
- font-family: "Space Grotesk", sans-serif;
252
- font-size: 24px;
253
- font-weight: 600;
254
- margin: ${e.marginMD}px 0 !important;
255
- line-height: 1.3;
256
- `,description:t`
257
- font-size: 14px;
258
- line-height: 1.6;
259
- color: ${e.colorText};
260
- background: ${e.colorBgLayout};
261
- padding: ${e.paddingMD}px;
262
- border-radius: ${e.borderRadius}px;
263
- margin-bottom: ${e.marginLG}px;
264
- `,metaSection:t`
265
- display: grid;
266
- grid-template-columns: repeat(2, 1fr);
267
- gap: ${e.marginMD}px;
268
- margin-bottom: ${e.marginLG}px;
269
- `,metaItem:t`
270
- display: flex;
271
- flex-direction: column;
272
- gap: ${e.marginXS}px;
273
- `,metaLabel:t`
274
- font-size: 12px;
275
- color: ${e.colorTextTertiary};
276
- text-transform: uppercase;
277
- letter-spacing: 0.5px;
278
- font-weight: 500;
279
- `,metaValue:t`
280
- font-size: 14px;
281
- color: ${e.colorText};
282
- display: flex;
283
- align-items: center;
284
- gap: ${e.marginXS}px;
285
- `,assigneeAvatar:t`
286
- width: 24px;
287
- height: 24px;
288
- border-radius: 50%;
289
- display: flex;
290
- align-items: center;
291
- justify-content: center;
292
- font-size: 10px;
293
- font-weight: 600;
294
- color: #fff;
295
- `,statusTag:t`
296
- display: inline-flex;
297
- align-items: center;
298
- gap: 4px;
299
- padding: 4px 12px;
300
- border-radius: ${e.borderRadius}px;
301
- font-size: 13px;
302
- font-weight: 500;
303
- `,dependenciesSection:t`
304
- margin-bottom: ${e.marginLG}px;
305
- `,sectionTitle:t`
306
- font-size: 14px;
307
- font-weight: 600;
308
- margin-bottom: ${e.marginSM}px;
309
- color: ${e.colorText};
310
- `,dependencyList:t`
311
- display: flex;
312
- flex-wrap: wrap;
313
- gap: ${e.marginXS}px;
314
- `,dependencyTag:t`
315
- padding: 4px 8px;
316
- border-radius: ${e.borderRadius}px;
317
- font-size: 12px;
318
- background: ${e.colorBgLayout};
319
- border: 1px solid ${e.colorBorderSecondary};
320
- `,tabsContainer:t`
321
- margin-top: ${e.marginLG}px;
322
- `,commentsSection:t`
323
- padding: ${e.paddingMD}px 0;
324
- `,commentItem:t`
325
- display: flex;
326
- gap: ${e.marginMD}px;
327
- padding: ${e.paddingMD}px 0;
328
- border-bottom: 1px solid ${e.colorBorderSecondary};
329
-
330
- &:last-child {
331
- border-bottom: none;
332
- }
333
- `,commentAvatar:t`
334
- width: 32px;
335
- height: 32px;
336
- border-radius: 50%;
337
- display: flex;
338
- align-items: center;
339
- justify-content: center;
340
- font-size: 12px;
341
- font-weight: 600;
342
- color: #fff;
343
- flex-shrink: 0;
344
- `,commentContent:t`
345
- flex: 1;
346
- `,commentHeader:t`
347
- display: flex;
348
- align-items: center;
349
- gap: ${e.marginSM}px;
350
- margin-bottom: ${e.marginXS}px;
351
- `,commentAuthor:t`
352
- font-weight: 600;
353
- font-size: 14px;
354
- color: ${e.colorText};
355
- `,commentTime:t`
356
- font-size: 12px;
357
- color: ${e.colorTextTertiary};
358
- `,commentText:t`
359
- font-size: 14px;
360
- line-height: 1.5;
361
- color: ${e.colorText};
362
- `,resultComment:t`
363
- background: ${e.colorSuccessBg};
364
- border: 1px solid ${e.colorSuccessBorder};
365
- border-radius: ${e.borderRadius}px;
366
- padding: ${e.paddingMD}px;
367
- margin-top: ${e.marginSM}px;
368
- `,errorComment:t`
369
- background: ${e.colorErrorBg};
370
- border: 1px solid ${e.colorErrorBorder};
371
- border-radius: ${e.borderRadius}px;
372
- padding: ${e.paddingMD}px;
373
- margin-top: ${e.marginSM}px;
374
- `,timelineSection:t`
375
- padding: ${e.paddingMD}px 0;
376
- `,timelineItem:t`
377
- .ant-timeline-item-content {
378
- margin-left: 24px !important;
379
- }
380
- `,timelineDot:t`
381
- width: 32px;
382
- height: 32px;
383
- border-radius: 50%;
384
- background: ${e.colorBgLayout};
385
- display: flex;
386
- align-items: center;
387
- justify-content: center;
388
- border: 2px solid ${e.colorBorderSecondary};
389
- `,timelineContent:t`
390
- display: flex;
391
- flex-direction: column;
392
- gap: 4px;
393
- `,timelineTitle:t`
394
- font-size: 14px;
395
- font-weight: 500;
396
- color: ${e.colorText};
397
- `,timelineTime:t`
398
- font-size: 12px;
399
- color: ${e.colorTextSecondary};
400
- `,emptyState:t`
401
- padding: ${e.paddingLG}px;
402
- text-align: center;
403
- color: ${e.colorTextSecondary};
404
- `})),ie=e=>e.split(/[\s_-]/).map(t=>t.charAt(0)).join("").toUpperCase().slice(0,2),re=e=>{let t=["#1890ff","#52c41a","#faad14","#f5222d","#722ed1","#13c2c2","#eb2f96","#fa8c16"],i=0;for(let a=0;a<e.length;a++)i=e.charCodeAt(a)+((i<<5)-i);return t[Math.abs(i)%t.length]},et=(e,t)=>{switch(e){case"completed":return{icon:(0,o.jsx)(B,{size:20}),color:"#22c55e",bgColor:"#f0fdf4",text:t("genui.taskStatus.completed")};case"in_progress":return{icon:(0,o.jsx)(k,{size:20,className:"animate-spin"}),color:"#f59e0b",bgColor:"#fffbeb",text:t("genui.taskStatus.inProgress")};case"claimed":return{icon:(0,o.jsx)(k,{size:20,className:"animate-spin"}),color:"#f59e0b",bgColor:"#fffbeb",text:t("genui.taskStatus.claimed")};case"failed":return{icon:(0,o.jsx)(H,{size:20}),color:"#ef4444",bgColor:"#fef2f2",text:t("genui.taskStatus.failed")};case"pending":default:return{icon:(0,o.jsx)(te,{size:20}),color:"#6b7280",bgColor:"#f3f4f6",text:t("genui.taskStatus.pending")}}},Y=(e,t)=>new Date(e).toLocaleDateString(t,{month:"short",day:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit"}),wt=(e,t)=>{let i=new Date(e),r=new Date().getTime()-i.getTime(),n=Math.floor(r/(1e3*60)),c=Math.floor(r/(1e3*60*60)),d=Math.floor(r/(1e3*60*60*24));return n<1?t("genui.date.justNowLower"):n<60?t("genui.date.minutesAgo",{count:n}):c<24?t("genui.date.hoursAgo",{count:c}):d===1?t("genui.date.yesterdayLower"):d<7?t("genui.date.daysAgo",{count:d}):Y(e,t.locale)},It=({task:e,styles:t})=>{let i=T(),a=[];return e.result&&a.push({id:"result",type:"result",author:e.assignee||i("genui.taskDetail.systemAuthor"),avatar:e.assignee?re(e.assignee):"#1890ff",initials:e.assignee?ie(e.assignee):"SY",content:e.result,time:e.updatedAt}),e.error&&a.push({id:"error",type:"error",author:e.assignee||i("genui.taskDetail.systemAuthor"),avatar:e.assignee?re(e.assignee):"#f5222d",initials:e.assignee?ie(e.assignee):"SY",content:e.error,time:e.updatedAt}),a.push({id:"status-change",type:"status",author:e.assignee||i("genui.taskDetail.systemAuthor"),avatar:e.assignee?re(e.assignee):"#1890ff",initials:e.assignee?ie(e.assignee):"SY",content:i("genui.taskDetail.changedStatus",{status:e.status.replace("_"," ")}),time:e.updatedAt}),a.push({id:"created",type:"created",author:i("genui.taskDetail.systemAuthor"),avatar:"#1890ff",initials:"SY",content:i("genui.taskDetail.taskCreated"),time:e.createdAt}),a.length===0?(0,o.jsx)("div",{className:t.emptyState,children:i("genui.taskDetail.noComments")}):(0,o.jsx)("div",{className:t.commentsSection,children:a.map(r=>(0,o.jsxs)("div",{className:t.commentItem,children:[(0,o.jsx)("div",{className:t.commentAvatar,style:{background:r.avatar},children:r.initials}),(0,o.jsxs)("div",{className:t.commentContent,children:[(0,o.jsxs)("div",{className:t.commentHeader,children:[(0,o.jsx)("span",{className:t.commentAuthor,children:r.author}),(0,o.jsx)("span",{className:t.commentTime,children:wt(r.time,i)})]}),r.type==="result"?(0,o.jsxs)("div",{className:t.resultComment,children:[(0,o.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:8},children:[(0,o.jsx)(B,{size:16,style:{color:"#22c55e"}}),(0,o.jsx)(_,{style:{color:"#22c55e",fontWeight:600},children:i("genui.taskDetail.result")})]}),(0,o.jsx)(ce,{style:{margin:0},children:r.content})]}):r.type==="error"?(0,o.jsxs)("div",{className:t.errorComment,children:[(0,o.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:8},children:[(0,o.jsx)(H,{size:16,style:{color:"#ef4444"}}),(0,o.jsx)(_,{style:{color:"#ef4444",fontWeight:600},children:i("genui.taskDetail.error")})]}),(0,o.jsx)(ce,{style:{margin:0},children:r.content})]}):(0,o.jsx)("div",{className:t.commentText,children:r.content})]})]},r.id))})},Mt=({task:e,styles:t})=>{let i=T(),a=et(e.status,i),r=[{dot:(0,o.jsx)("div",{className:t.timelineDot,children:(0,o.jsx)(Ne,{size:16})}),color:a.color,children:(0,o.jsxs)("div",{className:t.timelineContent,children:[(0,o.jsx)("div",{className:t.timelineTitle,children:i("genui.taskDetail.statusUpdated")}),(0,o.jsx)("div",{className:t.timelineTime,children:i("genui.taskDetail.changedTo",{status:a.text,date:Y(e.updatedAt,i.locale)})})]})},{dot:(0,o.jsx)("div",{className:t.timelineDot,children:(0,o.jsx)(Z,{size:16})}),color:"#6b7280",children:(0,o.jsxs)("div",{className:t.timelineContent,children:[(0,o.jsx)("div",{className:t.timelineTitle,children:i("genui.taskDetail.taskCreatedTitle")}),(0,o.jsx)("div",{className:t.timelineTime,children:Y(e.createdAt,i.locale)})]})}];return(0,o.jsx)("div",{className:t.timelineSection,children:(0,o.jsx)(ve,{mode:"left",items:r,className:t.timelineItem})})},tt=({task:e,visible:t,onClose:i})=>{let{styles:a}=Nt(),r=T(),[n,c]=(0,Ze.useState)("comments");if(!e)return null;let d=et(e.status,r),g=[{key:"comments",label:(0,o.jsxs)("span",{children:[(0,o.jsx)(Le,{size:14,style:{marginRight:6}}),r("genui.taskDetail.comments")]}),children:(0,o.jsx)(It,{task:e,styles:a})},{key:"activity",label:(0,o.jsxs)("span",{children:[(0,o.jsx)(Te,{size:14,style:{marginRight:6}}),r("genui.taskDetail.activity")]}),children:(0,o.jsx)(Mt,{task:e,styles:a})}];return(0,o.jsx)(he,{title:null,open:t,onCancel:i,footer:null,width:720,centered:!0,styles:{content:{borderRadius:12,padding:0,overflow:"hidden"},body:{padding:24}},children:(0,o.jsxs)("div",{className:a.modalContent,children:[(0,o.jsxs)("div",{className:a.header,children:[(0,o.jsx)("div",{className:a.statusIcon,style:{color:d.color},children:d.icon}),(0,o.jsx)(_,{className:a.taskId,children:e.id})]}),(0,o.jsx)($t,{level:3,className:a.title,children:e.title}),e.description&&(0,o.jsx)("div",{className:a.description,children:(0,o.jsx)(ce,{style:{margin:0},children:e.description})}),(0,o.jsxs)("div",{className:a.metaSection,children:[(0,o.jsxs)("div",{className:a.metaItem,children:[(0,o.jsx)(_,{className:a.metaLabel,children:r("genui.taskDetail.field.status")}),(0,o.jsxs)("div",{className:a.statusTag,style:{color:d.color,background:d.bgColor},children:[d.icon,(0,o.jsx)("span",{children:d.text})]})]}),(0,o.jsxs)("div",{className:a.metaItem,children:[(0,o.jsx)(_,{className:a.metaLabel,children:r("genui.taskDetail.field.assignee")}),(0,o.jsx)("div",{className:a.metaValue,children:e.assignee?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:a.assigneeAvatar,style:{background:re(e.assignee)},children:ie(e.assignee)}),(0,o.jsx)("span",{children:e.assignee})]}):(0,o.jsx)("span",{style:{color:"#999"},children:r("genui.taskDetail.unassigned")})})]}),(0,o.jsxs)("div",{className:a.metaItem,children:[(0,o.jsx)(_,{className:a.metaLabel,children:r("genui.taskDetail.field.created")}),(0,o.jsxs)("div",{className:a.metaValue,children:[(0,o.jsx)(Z,{size:14}),(0,o.jsx)("span",{children:Y(e.createdAt,r.locale)})]})]}),(0,o.jsxs)("div",{className:a.metaItem,children:[(0,o.jsx)(_,{className:a.metaLabel,children:r("genui.taskDetail.field.updated")}),(0,o.jsxs)("div",{className:a.metaValue,children:[(0,o.jsx)(Z,{size:14}),(0,o.jsx)("span",{children:Y(e.updatedAt,r.locale)})]})]})]}),(0,o.jsx)(ue,{}),e.dependencies?.length>0&&(0,o.jsxs)("div",{className:a.dependenciesSection,children:[(0,o.jsx)(_,{className:a.sectionTitle,children:r("genui.taskDetail.dependencies")}),(0,o.jsx)("div",{className:a.dependencyList,children:e.dependencies.map(y=>(0,o.jsxs)(P,{className:a.dependencyTag,children:[(0,o.jsx)(De,{size:12})," ",y]},y))})]}),(0,o.jsx)("div",{className:a.tabsContainer,children:(0,o.jsx)(ge,{activeKey:n,onChange:c,items:g})})]})})};var l=v(I()),{Title:Dt,Text:at}=z,it=e=>e.split(/[\s_-]/).map(t=>t.charAt(0)).join("").toUpperCase().slice(0,2),At=M(({token:e,css:t})=>({container:t`
405
- padding: ${e.paddingLG}px;
406
- height: 100%;
407
- display: flex;
408
- flex-direction: column;
409
- `,header:t`
410
- display: flex;
411
- justify-content: space-between;
412
- align-items: center;
413
- margin-bottom: ${e.marginLG}px;
414
- `,title:t`
415
- margin: 0 !important;
416
- font-family: "Space Grotesk", sans-serif;
417
- `,viewToggle:t`
418
- display: flex;
419
- background: white;
420
- border-radius: ${e.borderRadius}px;
421
- padding: 4px;
422
- border: 1px solid ${e.colorBorder};
423
- `,viewToggleButton:t`
424
- width: 32px;
425
- height: 32px;
426
- border-radius: ${e.borderRadiusSM}px;
427
- display: flex;
428
- align-items: center;
429
- justify-content: center;
430
- transition: all 0.2s ease;
431
- cursor: pointer;
432
- border: none;
433
- background: transparent;
434
- color: ${e.colorTextTertiary};
435
-
436
- &.active {
437
- background: ${e.colorBgTextHover};
438
- color: ${e.colorText};
439
- }
440
-
441
- &:hover:not(.active) {
442
- color: ${e.colorTextSecondary};
443
- }
444
- `,content:t`
445
- flex: 1;
446
- overflow: auto;
447
- `,kanbanContainer:t`
448
- display: flex;
449
- gap: ${e.marginMD}px;
450
- padding-bottom: ${e.paddingMD}px;
451
- flex-wrap: wrap;
452
- `,kanbanColumn:t`
453
- min-width: 280px;
454
- max-width: 280px;
455
- background: ${e.colorBgLayout};
456
- border-radius: ${e.borderRadiusLG}px;
457
- padding: ${e.paddingMD}px;
458
- `,columnHeader:t`
459
- display: flex;
460
- justify-content: space-between;
461
- align-items: center;
462
- margin-bottom: ${e.marginMD}px;
463
- padding-bottom: ${e.paddingSM}px;
464
- border-bottom: 2px solid ${e.colorBorderSecondary};
465
- `,columnTitle:t`
466
- font-weight: 600;
467
- font-size: 14px;
468
- display: flex;
469
- align-items: center;
470
- gap: ${e.marginXS}px;
471
- `,taskCard:t`
472
- background: ${e.colorBgContainer};
473
- border-radius: ${e.borderRadius}px;
474
- padding: ${e.paddingSM}px ${e.paddingMD}px;
475
- margin-bottom: ${e.marginSM}px;
476
- cursor: pointer;
477
- transition: all 0.2s ease;
478
- border: 1px solid ${e.colorBorderSecondary};
479
-
480
- &:hover {
481
- box-shadow: ${e.boxShadowSecondary};
482
- border-color: ${e.colorPrimary};
483
- }
484
- `,taskTitle:t`
485
- font-weight: 500;
486
- margin-bottom: ${e.marginXS}px;
487
- font-size: 13px;
488
- `,taskMeta:t`
489
- display: flex;
490
- justify-content: space-between;
491
- align-items: center;
492
- font-size: 12px;
493
- color: ${e.colorTextSecondary};
494
- `,assigneeAvatar:t`
495
- width: 20px;
496
- height: 20px;
497
- border-radius: 50%;
498
- display: flex;
499
- align-items: center;
500
- justify-content: center;
501
- font-size: 9px;
502
- font-weight: 600;
503
- color: #fff;
504
- flex-shrink: 0;
505
- `,listContainer:t`
506
- border: 1px solid ${e.colorBorderSecondary};
507
- border-radius: ${e.borderRadiusLG}px;
508
- overflow: hidden;
509
- `,listGroup:t`
510
- border-bottom: 1px solid ${e.colorBorderSecondary};
511
-
512
- &:last-child {
513
- border-bottom: none;
514
- }
515
- `,listGroupHeader:t`
516
- display: flex;
517
- align-items: center;
518
- gap: ${e.marginSM}px;
519
- padding: ${e.paddingSM}px ${e.paddingMD}px;
520
- background: ${e.colorBgLayout};
521
- cursor: pointer;
522
- user-select: none;
523
-
524
- &:hover {
525
- background: ${e.colorBgTextHover};
526
- }
527
- `,listGroupTitle:t`
528
- font-weight: 600;
529
- font-size: 13px;
530
- text-transform: uppercase;
531
- letter-spacing: 0.5px;
532
- color: ${e.colorText};
533
- `,listGroupCount:t`
534
- font-size: 12px;
535
- color: ${e.colorTextSecondary};
536
- margin-left: auto;
537
- `,listGroupContent:t`
538
- background: ${e.colorBgContainer};
539
- `,listItem:t`
540
- display: flex;
541
- align-items: center;
542
- gap: ${e.marginMD}px;
543
- padding: ${e.paddingSM}px ${e.paddingMD}px;
544
- border-bottom: 1px solid ${e.colorBorderSecondary};
545
- cursor: pointer;
546
- transition: background 0.2s ease;
547
-
548
- &:hover {
549
- background: ${e.colorBgTextHover};
550
- }
551
-
552
- &:last-child {
553
- border-bottom: none;
554
- }
555
- `,listItemIcon:t`
556
- width: 16px;
557
- height: 16px;
558
- display: flex;
559
- align-items: center;
560
- justify-content: center;
561
- flex-shrink: 0;
562
- `,listItemContent:t`
563
- flex: 1;
564
- min-width: 0;
565
- display: flex;
566
- align-items: center;
567
- gap: ${e.marginSM}px;
568
- `,listItemId:t`
569
- font-family: "Space Grotesk", sans-serif;
570
- font-size: 12px;
571
- font-weight: 500;
572
- color: ${e.colorTextSecondary};
573
- flex-shrink: 0;
574
- `,listItemTitle:t`
575
- font-size: 14px;
576
- color: ${e.colorText};
577
- overflow: hidden;
578
- text-overflow: ellipsis;
579
- white-space: nowrap;
580
- `,listItemRight:t`
581
- display: flex;
582
- align-items: center;
583
- gap: ${e.marginMD}px;
584
- flex-shrink: 0;
585
- min-width: 200px;
586
- justify-content: flex-end;
587
- `,listItemAssignee:t`
588
- display: flex;
589
- align-items: center;
590
- gap: ${e.marginXS}px;
591
- width: 120px;
592
- justify-content: flex-start;
593
- `,listItemAssigneeAvatar:t`
594
- width: 20px;
595
- height: 20px;
596
- border-radius: 50%;
597
- display: flex;
598
- align-items: center;
599
- justify-content: center;
600
- font-size: 9px;
601
- font-weight: 600;
602
- color: #fff;
603
- flex-shrink: 0;
604
- `,listItemAssigneeText:t`
605
- font-size: 12px;
606
- color: ${e.colorTextSecondary};
607
- overflow: hidden;
608
- text-overflow: ellipsis;
609
- white-space: nowrap;
610
- `,listItemDate:t`
611
- font-size: 12px;
612
- color: ${e.colorTextTertiary};
613
- flex-shrink: 0;
614
- width: 80px;
615
- text-align: right;
616
- `,emptyState:t`
617
- display: flex;
618
- flex-direction: column;
619
- align-items: center;
620
- justify-content: center;
621
- height: 100%;
622
- color: ${e.colorTextSecondary};
623
- `})),rt=e=>{let t=["#1890ff","#52c41a","#faad14","#f5222d","#722ed1","#13c2c2","#eb2f96","#fa8c16"],i=0;for(let a=0;a<e.length;a++)i=e.charCodeAt(a)+((i<<5)-i);return t[Math.abs(i)%t.length]},Lt=({status:e,size:t=16})=>{switch(e){case"completed":return(0,l.jsx)(B,{size:t,style:{color:"#22c55e"}});case"in_progress":case"claimed":return(0,l.jsx)(k,{size:t,style:{color:"#f59e0b"},className:"animate-spin"});case"failed":return(0,l.jsx)(H,{size:t,style:{color:"#ef4444"}});case"pending":default:return(0,l.jsx)(Se,{size:t,style:{color:"#6b7280"}})}},Rt=(e,t)=>new Date(e).toLocaleDateString(t,{month:"short",day:"numeric",year:"numeric"}),zt=({group:e,styles:t,defaultExpanded:i=!0,onTaskClick:a})=>{let[r,n]=(0,F.useState)(i),c=T();return(0,l.jsxs)("div",{className:t.listGroup,children:[(0,l.jsxs)("div",{className:t.listGroupHeader,onClick:()=>n(!r),children:[r?(0,l.jsx)(be,{size:16}):(0,l.jsx)(ee,{size:16}),(0,l.jsx)("span",{className:t.listGroupTitle,style:{color:e.color},children:e.title}),(0,l.jsx)("span",{className:t.listGroupCount,children:e.tasks.length})]}),r&&(0,l.jsx)("div",{className:t.listGroupContent,children:e.tasks.map(d=>(0,l.jsxs)("div",{className:t.listItem,onClick:()=>a(d),children:[(0,l.jsx)("div",{className:t.listItemIcon,children:(0,l.jsx)(Lt,{status:d.status})}),(0,l.jsxs)("div",{className:t.listItemContent,children:[(0,l.jsx)("span",{className:t.listItemId,children:d.id}),(0,l.jsx)(E,{title:d.title,children:(0,l.jsx)("span",{className:t.listItemTitle,children:d.title})})]}),(0,l.jsxs)("div",{className:t.listItemRight,children:[d.assignee?(0,l.jsx)(E,{title:d.assignee,children:(0,l.jsxs)("div",{className:t.listItemAssignee,children:[(0,l.jsx)("div",{className:t.listItemAssigneeAvatar,style:{background:rt(d.assignee)},children:it(d.assignee)}),(0,l.jsx)("span",{className:t.listItemAssigneeText,children:d.assignee})]})}):(0,l.jsx)("div",{className:t.listItemAssignee,children:(0,l.jsx)("span",{className:t.listItemAssigneeText,children:c("genui.issues.noAssignee")})}),(0,l.jsx)("span",{className:t.listItemDate,children:Rt(d.updatedAt,c.locale)})]})]},d.id))})]})},ot=({tasks:e,teamId:t,teammates:i})=>{let{styles:a}=At(),r=T(),[n,c]=(0,F.useState)("list"),[d,g]=(0,F.useState)(null),[y,L]=(0,F.useState)(!1),b=(0,F.useMemo)(()=>{let p=[{id:"pending",title:r("genui.taskStatus.pending"),color:"#6b7280",statuses:["pending"],tasks:[]},{id:"in_progress",title:r("genui.taskStatus.inProgress"),color:"#f59e0b",statuses:["claimed","in_progress"],tasks:[]},{id:"completed",title:r("genui.taskStatus.completed"),color:"#22c55e",statuses:["completed"],tasks:[]},{id:"failed",title:r("genui.taskStatus.failed"),color:"#ef4444",statuses:["failed"],tasks:[]}];return e?.forEach(h=>{let R=p.find(N=>N.statuses.includes(h.status));R&&R.tasks.push(h)}),p},[e,r]),u=(0,F.useMemo)(()=>{let p={pending:[],claimed:[],in_progress:[],completed:[],failed:[],in_progress_combined:[]};return e?.forEach(h=>{p[h.status]&&p[h.status].push(h),(h.status==="claimed"||h.status==="in_progress")&&p.in_progress_combined.push(h)}),p},[e]),f=()=>{let p=[{id:"pending",title:r("genui.taskStatus.pending"),color:"#7A7A7A"},{id:"in_progress_combined",title:r("genui.taskStatus.inProgress"),color:"#faad14"},{id:"completed",title:r("genui.taskStatus.completed"),color:"#22C55E"},{id:"failed",title:r("genui.taskStatus.failed"),color:"#f5222d"}];return(0,l.jsx)("div",{className:a.kanbanContainer,children:p.map(h=>{let R=u[h.id]||[];return(0,l.jsxs)("div",{className:a.kanbanColumn,children:[(0,l.jsx)("div",{className:a.columnHeader,style:{borderBottomColor:h.color},children:(0,l.jsxs)("span",{className:a.columnTitle,children:[(0,l.jsx)(J,{count:R.length,style:{backgroundColor:h.color}}),(0,l.jsx)("span",{style:{marginLeft:8},children:h.title})]})}),R.map(N=>(0,l.jsxs)("div",{className:a.taskCard,children:[(0,l.jsx)("div",{className:a.taskTitle,children:N.title}),(0,l.jsxs)("div",{className:a.taskMeta,children:[(0,l.jsx)(at,{type:"secondary",children:N.id}),N.assignee&&(0,l.jsx)(E,{title:N.assignee,children:(0,l.jsx)("div",{className:a.assigneeAvatar,style:{background:rt(N.assignee)},children:it(N.assignee)})})]})]},N.id)),R.length===0&&(0,l.jsx)(V,{image:V.PRESENTED_IMAGE_SIMPLE,description:r("genui.taskBoard.emptyColumn")})]},h.id)})})},S=p=>{g(p),L(!0)},O=()=>{L(!1),g(null)},C=()=>(0,l.jsxs)("div",{className:a.listContainer,children:[b.map(p=>(0,l.jsx)(zt,{group:p,styles:a,defaultExpanded:p.id!=="completed",onTaskClick:S},p.id)),b.length===0&&(0,l.jsx)("div",{style:{padding:48,textAlign:"center"},children:(0,l.jsx)(V,{description:r("genui.issues.noIssuesFound")})})]});return(0,l.jsxs)("div",{className:a.container,children:[(0,l.jsxs)("div",{className:a.header,children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(Dt,{level:3,className:a.title,children:r("genui.issues.title")}),(0,l.jsx)(at,{type:"secondary",children:r("genui.issues.summary",{tasks:e?.length||0,teamId:t})})]}),(0,l.jsxs)("div",{className:a.viewToggle,children:[(0,l.jsx)("button",{className:`${a.viewToggleButton} ${n==="list"?"active":""}`,onClick:()=>c("list"),children:(0,l.jsx)(Ae,{size:16})}),(0,l.jsx)("button",{className:`${a.viewToggleButton} ${n==="kanban"?"active":""}`,onClick:()=>c("kanban"),children:(0,l.jsx)(Me,{size:16})})]})]}),(0,l.jsx)("div",{className:a.content,children:e?.length===0?(0,l.jsx)("div",{className:a.emptyState,children:(0,l.jsx)(V,{description:r("genui.issues.noIssuesFound")})}):n==="kanban"?f():C()}),(0,l.jsx)(tt,{task:d,visible:y,onClose:O})]})};var q=v(X());var m=v(I()),{Title:Et,Text:K}=z,st=M(({token:e,css:t})=>({container:t`
624
- height: 100%;
625
- display: flex;
626
- flex-direction: column;
627
- `,header:t`
628
- padding: ${e.paddingLG}px;
629
- border-bottom: 1px solid ${e.colorBorderSecondary};
630
- `,title:t`
631
- margin: 0 !important;
632
- font-family: "Space Grotesk", sans-serif;
633
- `,canvas:t`
634
- flex: 1;
635
- position: relative;
636
- `,nodeCard:t`
637
- padding: ${e.paddingSM}px;
638
- border-radius: ${e.borderRadiusLG}px;
639
- background: ${e.colorBgContainer};
640
- border: 2px solid ${e.colorBorder};
641
- min-width: 180px;
642
- box-shadow: ${e.boxShadow};
643
- transition: all 0.2s ease;
644
-
645
- &:hover {
646
- box-shadow: ${e.boxShadowSecondary};
647
- border-color: ${e.colorPrimary};
648
- }
649
- `,nodeHeader:t`
650
- display: flex;
651
- align-items: center;
652
- gap: ${e.marginSM}px;
653
- margin-bottom: ${e.marginXS}px;
654
- `,nodeTitle:t`
655
- font-weight: 600;
656
- font-size: 14px;
657
- `,nodeRole:t`
658
- font-size: 12px;
659
- color: ${e.colorTextSecondary};
660
- `,nodeStats:t`
661
- display: flex;
662
- gap: ${e.marginXS}px;
663
- margin-top: ${e.marginXS}px;
664
- `,statTag:t`
665
- font-size: 11px;
666
- `,avatar:t`
667
- width: 36px;
668
- height: 36px;
669
- border-radius: 50%;
670
- display: flex;
671
- align-items: center;
672
- justify-content: center;
673
- font-size: 14px;
674
- font-weight: 600;
675
- color: #fff;
676
- `,legend:t`
677
- position: absolute;
678
- top: ${e.paddingMD}px;
679
- left: ${e.paddingMD}px;
680
- background: ${e.colorBgContainer};
681
- padding: ${e.paddingSM}px ${e.paddingMD}px;
682
- border-radius: ${e.borderRadius}px;
683
- box-shadow: ${e.boxShadow};
684
- z-index: 10;
685
- `})),Pt=e=>e.split(/[\s_-]/).map(t=>t.charAt(0)).join("").toUpperCase().slice(0,2),nt=e=>{let t=["#1890ff","#52c41a","#faad14","#f5222d","#722ed1","#13c2c2","#eb2f96","#fa8c16"],i=0;for(let a=0;a<e.length;a++)i=e.charCodeAt(a)+((i<<5)-i);return t[Math.abs(i)%t.length]},Gt=({data:e})=>{let{styles:t}=st(),i=T(),{name:a,role:r,description:n,isLead:c,taskStats:d}=e;return(0,m.jsxs)("div",{className:t.nodeCard,children:[(0,m.jsxs)("div",{className:t.nodeHeader,children:[(0,m.jsx)("div",{className:t.avatar,style:{background:nt(a),border:c?"3px solid #1890ff":"none"},children:Pt(a)}),(0,m.jsxs)("div",{children:[(0,m.jsxs)("div",{className:t.nodeTitle,children:[a,c&&(0,m.jsx)(P,{color:"blue",style:{marginLeft:8,fontSize:10},children:i("genui.teamOrg.lead")})]}),(0,m.jsx)("div",{className:t.nodeRole,children:r})]})]}),n&&(0,m.jsx)(K,{type:"secondary",style:{fontSize:11,display:"block",marginTop:4},children:n.length>50?n.slice(0,50)+"...":n}),d&&(0,m.jsxs)("div",{className:t.nodeStats,children:[d.completed>0&&(0,m.jsxs)(P,{color:"success",className:t.statTag,children:["\u2713 ",d.completed]}),d.inProgress>0&&(0,m.jsxs)(P,{color:"warning",className:t.statTag,children:["\u27F3 ",d.inProgress]}),d.pending>0&&(0,m.jsxs)(P,{className:t.statTag,children:["\u25CB ",d.pending]})]})]})},Bt=({team:e,teammates:t,tasks:i})=>{let{styles:a}=st(),{fitView:r}=Be(),n=T(),c=(0,q.useMemo)(()=>{let C={};return t.forEach(p=>{C[p.name]={completed:0,inProgress:0,pending:0}}),i.forEach(p=>{p.assignee&&C[p.assignee]&&(p.status==="completed"?C[p.assignee].completed++:p.status==="in_progress"||p.status==="claimed"?C[p.assignee].inProgress++:p.status==="pending"&&C[p.assignee].pending++)}),C},[t,i]),{nodes:d,edges:g}=(0,q.useMemo)(()=>{let C=[],p=[],h=e?.teamLeadId||"team_lead",R=0,N=0,w=300;C.push({id:h,type:"teamMember",position:{x:R,y:N},data:{name:h,role:n("genui.teamOrg.teamLead"),isLead:!0,taskStats:c[h]||{completed:0,inProgress:0,pending:0}}});let G=2*Math.PI/t.length;return t.forEach((A,ct)=>{let me=ct*G-Math.PI/2,mt=R+w*Math.cos(me),pt=N+w*Math.sin(me);C.push({id:A.name,type:"teamMember",position:{x:mt,y:pt},data:{name:A.name,role:A.role,description:A.description,isLead:!1,taskStats:c[A.name]||{completed:0,inProgress:0,pending:0}}});let gt=nt(A.name);p.push({id:`e-${h}-${A.name}`,source:h,target:A.name,animated:!0,style:{stroke:gt,strokeWidth:2},type:"smoothstep"})}),{nodes:C,edges:p}},[e,t,c,n]),[y,L,b]=Fe(d),[u,f,S]=Oe(g);q.default.useEffect(()=>{L(d),f(g),setTimeout(()=>r({padding:.2}),100)},[d,g,L,f,r]);let O={teamMember:Gt};return(0,m.jsxs)("div",{className:a.container,children:[(0,m.jsxs)("div",{className:a.header,children:[(0,m.jsx)(Et,{level:3,className:a.title,children:n("genui.teamOrg.title")}),(0,m.jsx)(K,{type:"secondary",children:n("genui.teamOrg.summary",{members:t.length+1,tasks:i.length})})]}),(0,m.jsxs)("div",{className:a.canvas,children:[(0,m.jsxs)(_e,{nodes:y,edges:u,onNodesChange:b,onEdgesChange:S,nodeTypes:O,fitView:!0,attributionPosition:"bottom-right",children:[(0,m.jsx)(We,{color:"#eee",gap:20}),(0,m.jsx)(je,{})]}),(0,m.jsx)("div",{className:a.legend,children:(0,m.jsxs)(Q,{direction:"vertical",size:"small",children:[(0,m.jsx)(K,{strong:!0,style:{fontSize:12},children:n("genui.teamOrg.legend")}),(0,m.jsxs)(Q,{size:"small",children:[(0,m.jsx)("div",{style:{width:12,height:12,borderRadius:"50%",background:"#1890ff",border:"2px solid #1890ff"}}),(0,m.jsx)(K,{style:{fontSize:11},children:n("genui.teamOrg.teamLead")})]}),(0,m.jsxs)(Q,{size:"small",children:[(0,m.jsx)("div",{style:{width:12,height:12,borderRadius:"50%",background:"#52c41a"}}),(0,m.jsx)(K,{style:{fontSize:11},children:n("genui.teamOrg.teammate")})]}),(0,m.jsxs)("div",{style:{marginTop:4,fontSize:10,color:"#666"},children:[n("genui.teamOrg.legendCompleted")," \u2022 ",n("genui.teamOrg.legendInProgress")," \u2022 ",n("genui.teamOrg.legendPending")]})]})})]})]})},lt=e=>(0,m.jsx)(ke,{children:(0,m.jsx)(Bt,{...e})});var D=v(I()),{Title:kt,Text:_t}=z,Ft=M(({token:e,css:t})=>({container:t`
686
- height: 100%;
687
- display: flex;
688
- flex-direction: column;
689
- `,header:t`
690
- padding: ${e.paddingLG}px;
691
- border-bottom: 1px solid ${e.colorBorderSecondary};
692
- display: flex;
693
- align-items: center;
694
- gap: ${e.marginMD}px;
695
- `,avatar:t`
696
- width: 48px;
697
- height: 48px;
698
- border-radius: 50%;
699
- display: flex;
700
- align-items: center;
701
- justify-content: center;
702
- font-size: 18px;
703
- font-weight: 600;
704
- color: #fff;
705
- `,headerInfo:t`
706
- flex: 1;
707
- `,title:t`
708
- margin: 0 !important;
709
- font-family: "Space Grotesk", sans-serif;
710
- `,role:t`
711
- color: ${e.colorTextSecondary};
712
- font-size: 14px;
713
- `,chatContainer:t`
714
- flex: 1;
715
- overflow: hidden;
716
- position: relative;
717
- `,chatWrapper:t`
718
- height: 100%;
719
- display: flex;
720
- flex-direction: column;
721
- `})),Ot=e=>e.split(/[\s_-]/).map(t=>t.charAt(0)).join("").toUpperCase().slice(0,2),Wt=e=>{let t=["#1890ff","#52c41a","#faad14","#f5222d","#722ed1","#13c2c2","#eb2f96","#fa8c16"],i=0;for(let a=0;a<e.length;a++)i=e.charCodeAt(a)+((i<<5)-i);return t[Math.abs(i)%t.length]},dt=({teammate:e,threadId:t,assistantId:i})=>{let{styles:a}=Ft();return(0,D.jsx)(Pe,{threadId:t,assistantId:i,options:{streaming:!0,enableReturnStateWhenStreamCompleted:!0,enableResumeStream:!0},children:(0,D.jsxs)("div",{className:a.container,children:[(0,D.jsxs)("div",{className:a.header,children:[(0,D.jsx)("div",{className:a.avatar,style:{background:Wt(e.name)},children:Ot(e.name)}),(0,D.jsxs)("div",{className:a.headerInfo,children:[(0,D.jsx)(kt,{level:4,className:a.title,children:e.name}),(0,D.jsxs)("div",{children:[(0,D.jsx)(P,{color:"blue",children:e.role}),e.description&&(0,D.jsxs)(_t,{className:a.role,children:["\u2022 ",e.description]})]})]})]}),(0,D.jsx)("div",{className:a.chatContainer,children:(0,D.jsx)("div",{className:a.chatWrapper,children:(0,D.jsx)(He,{showRefreshButton:!0,name:e.name,showHeader:!1,showSender:!0,showHITL:!1})})})]})})};var $=v(I()),{Content:jt}=fe,Ht=M(({token:e,css:t})=>({container:t`
722
- display: flex;
723
- height: 100%;
724
- width: 100%;
725
- background: ${e.colorBgContainer};
726
- `,sider:t`
727
- background: ${e.colorBgContainer} !important;
728
- border-right: 1px solid ${e.colorBorderSecondary};
729
- `,content:t`
730
- flex: 1;
731
- overflow: hidden;
732
- background: ${e.colorBgContainer};
733
- position: relative;
734
- `,contentInner:t`
735
- height: 100%;
736
- overflow: auto;
737
- padding: ${e.paddingLG}px;
738
- `,refreshButton:t`
739
- position: absolute;
740
- top: ${e.paddingMD}px;
741
- right: ${e.paddingMD}px;
742
- z-index: 10;
743
- `,loadingContainer:t`
744
- display: flex;
745
- align-items: center;
746
- justify-content: center;
747
- height: 100%;
748
- `})),Xt=(e,t,i)=>e?`${e}____${t}_${i}`:`standalone_${t}_${i}`,Vt=(e,t)=>`team:${e}:${t}`,Ut=({data:e,context:t})=>{let{styles:i}=Ht(),a=T(),{teamId:r,teammates:n,parent_thread_id:c}=e||{},d=t?.assistant_id||"",{team:g,tasks:y,mailbox:L,stats:b,recentTasks:u,recentActivities:f,isLoading:S,refresh:O}=Ye(c||null,d),[C,p]=(0,oe.useState)("dashboard"),h=(0,oe.useMemo)(()=>{let w=[{id:"dashboard",type:"dashboard",name:a("genui.teamMenu.dashboard")},{id:"inbox",type:"inbox",name:a("genui.teamMenu.inbox"),badge:b.unreadMessages>0?b.unreadMessages:void 0},{id:"issues",type:"issues",name:a("genui.teamMenu.issues"),badge:b.pendingTasks>0?b.pendingTasks:void 0}];return n?.forEach((G,A)=>{w.push({id:`teammate-${A}`,type:"teammate",name:G.name,group:"Teammates",data:G})}),w.push({id:"org",type:"org",name:a("genui.teamMenu.org"),group:"Team"}),w},[n,b,a]),R=w=>{p(w.id)},N=()=>{if(S)return(0,$.jsx)("div",{className:i.loadingContainer,children:(0,$.jsx)(xe,{size:"large"})});let w=h.find(G=>G.id===C);switch(w?.type){case"dashboard":return(0,$.jsx)(Qe,{stats:b,recentTasks:u,recentActivities:f,team:g});case"inbox":return(0,$.jsx)(Xe,{data:{teamMailbox:L,team:{teamId:g?.teamId||r||"",teamLeadId:g?.teamLeadId||"team_lead",teammates:n||[]}}});case"issues":return(0,$.jsx)(ot,{tasks:y,teamId:r||"",teammates:n||[]});case"teammate":if(w.data&&r){let G=Xt(c,r,w.data.name),A=Vt(r,w.data.name);return(0,$.jsx)(dt,{teammate:w.data,threadId:G,assistantId:A})}return null;case"org":return(0,$.jsx)(lt,{team:g,teammates:n||[],tasks:y});default:return null}};return(0,$.jsxs)("div",{className:i.container,children:[(0,$.jsx)(Ve,{items:h,activeItem:C,onItemClick:R}),(0,$.jsxs)(jt,{className:i.content,children:[(0,$.jsx)(pe,{className:i.refreshButton,icon:(0,$.jsx)(ze,{size:16}),onClick:O,loading:S,type:"text",children:a("common.refresh")}),(0,$.jsx)("div",{className:i.contentInner,children:N()})]})]})},xi=Ut;export{Ut as TeamWorkspace,xi as default};