@wandox/sdk 0.1.42 → 0.1.44

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 (104) hide show
  1. package/dist/{V1Workbench-BPM2Hyia.js → V1Workbench-suiMpaSy.js} +3 -3
  2. package/dist/{V1Workbench-BMtwxYV1.cjs → V1Workbench-w5uRT-8D.cjs} +1 -1
  3. package/dist/V2Workbench-BbhGRt5y.cjs +2 -0
  4. package/dist/{V2Workbench-SLCyuz0m.js → V2Workbench-DGBql7DD.js} +1116 -1086
  5. package/dist/{WorkbenchRuntime-D4TX08P0.js → WorkbenchRuntime-DUBpI-cp.js} +20 -19
  6. package/dist/{WorkbenchRuntime-Bw3YVJyj.cjs → WorkbenchRuntime-Rmi4LVFA.cjs} +4 -4
  7. package/dist/{arc-TMt-ELu0.cjs → arc-4zIblFfo.cjs} +1 -1
  8. package/dist/{arc-CTFudHUx.js → arc-Cl38noTM.js} +1 -1
  9. package/dist/{architectureDiagram-3BPJPVTR-D0nzJigQ.js → architectureDiagram-3BPJPVTR-BIQVHB8I.js} +3 -3
  10. package/dist/{architectureDiagram-3BPJPVTR-ma8wVb-G.cjs → architectureDiagram-3BPJPVTR-LA5hkVHh.cjs} +1 -1
  11. package/dist/{blockDiagram-GPEHLZMM-CrLMJpgy.js → blockDiagram-GPEHLZMM-D2yobjK9.js} +3 -3
  12. package/dist/{blockDiagram-GPEHLZMM-B9SG48zF.cjs → blockDiagram-GPEHLZMM-X036B-vv.cjs} +1 -1
  13. package/dist/{c4Diagram-AAUBKEIU-DYLkOb29.cjs → c4Diagram-AAUBKEIU-Bw3kR0am.cjs} +1 -1
  14. package/dist/{c4Diagram-AAUBKEIU-jGpmbYup.js → c4Diagram-AAUBKEIU-Dc_ETsCN.js} +2 -2
  15. package/dist/{channel-xuGF2XHi.js → channel-BNN9zrc-.js} +1 -1
  16. package/dist/{channel-D9aXObDg.cjs → channel-Bw79WDFR.cjs} +1 -1
  17. package/dist/{chunk-2J33WTMH-DfCPx4TK.js → chunk-2J33WTMH-D4VKVlQk.js} +1 -1
  18. package/dist/{chunk-2J33WTMH-Bb7r3UsS.cjs → chunk-2J33WTMH-DkLYp2tm.cjs} +1 -1
  19. package/dist/{chunk-4BX2VUAB-BVBFGazg.js → chunk-4BX2VUAB-B8QJjAj7.js} +1 -1
  20. package/dist/{chunk-4BX2VUAB-Ujuys49Z.cjs → chunk-4BX2VUAB-Cpi2XH21.cjs} +1 -1
  21. package/dist/{chunk-55IACEB6-CCHNm8Tr.cjs → chunk-55IACEB6-DA1xD2UY.cjs} +1 -1
  22. package/dist/{chunk-55IACEB6-D2bCK212.js → chunk-55IACEB6-ytOGH-Dv.js} +1 -1
  23. package/dist/{chunk-727SXJPM-C72XbFAd.cjs → chunk-727SXJPM-B6DuIutO.cjs} +1 -1
  24. package/dist/{chunk-727SXJPM-Cio-wglM.js → chunk-727SXJPM-D3Xn-zax.js} +5 -5
  25. package/dist/{chunk-AQP2D5EJ-B3kQBTIw.cjs → chunk-AQP2D5EJ-C66yGzdi.cjs} +1 -1
  26. package/dist/{chunk-AQP2D5EJ-Ba8JlV7E.js → chunk-AQP2D5EJ-FbmkrQZO.js} +3 -3
  27. package/dist/{chunk-FMBD7UC4-CYbGgPkz.cjs → chunk-FMBD7UC4-B3H-I7xQ.cjs} +1 -1
  28. package/dist/{chunk-FMBD7UC4-B8AkbgCj.js → chunk-FMBD7UC4-Dt9xtPEU.js} +1 -1
  29. package/dist/{chunk-ND2GUHAM-CHUVXZay.js → chunk-ND2GUHAM-BPUmNalw.js} +1 -1
  30. package/dist/{chunk-ND2GUHAM-BgCWhBGM.cjs → chunk-ND2GUHAM-ZuXSRqU0.cjs} +1 -1
  31. package/dist/{chunk-QZHKN3VN-D8pfWLL2.js → chunk-QZHKN3VN-BlDXTsO2.js} +1 -1
  32. package/dist/{chunk-QZHKN3VN-CvOSWDrJ.cjs → chunk-QZHKN3VN-DGXVe2J2.cjs} +1 -1
  33. package/dist/{classDiagram-4FO5ZUOK-BpqWK41p.js → classDiagram-4FO5ZUOK-C1ukmYlh.js} +2 -2
  34. package/dist/{classDiagram-4FO5ZUOK-BgajT1MN.cjs → classDiagram-4FO5ZUOK-CFo3fxf4.cjs} +1 -1
  35. package/dist/{classDiagram-v2-Q7XG4LA2-BgajT1MN.cjs → classDiagram-v2-Q7XG4LA2-CFo3fxf4.cjs} +1 -1
  36. package/dist/{classDiagram-v2-Q7XG4LA2-DIpkOsLT.js → classDiagram-v2-Q7XG4LA2-CQC1AB0v.js} +2 -2
  37. package/dist/{cose-bilkent-S5V4N54A-Cqi01qNn.js → cose-bilkent-S5V4N54A-BcS7lOC5.js} +2 -2
  38. package/dist/{cose-bilkent-S5V4N54A-CpfHDS3L.cjs → cose-bilkent-S5V4N54A-CZWTRzzd.cjs} +1 -1
  39. package/dist/{dagre-BM42HDAG-CLDIPr-X.cjs → dagre-BM42HDAG-BhH8C473.cjs} +1 -1
  40. package/dist/{dagre-BM42HDAG-C23jgWGl.js → dagre-BM42HDAG-qSMAGmY6.js} +1 -1
  41. package/dist/{diagram-2AECGRRQ-Cj24Od-u.js → diagram-2AECGRRQ-BfepOEAv.js} +2 -2
  42. package/dist/{diagram-2AECGRRQ-CjnokWsQ.cjs → diagram-2AECGRRQ-CR8qnvhs.cjs} +1 -1
  43. package/dist/{diagram-5GNKFQAL-BbiEdciY.js → diagram-5GNKFQAL-BJoGaY78.js} +3 -3
  44. package/dist/{diagram-5GNKFQAL-BfV9uMUl.cjs → diagram-5GNKFQAL-aVotvjHR.cjs} +1 -1
  45. package/dist/{diagram-KO2AKTUF-D9v2ooVA.js → diagram-KO2AKTUF-3nNSri7r.js} +2 -2
  46. package/dist/{diagram-KO2AKTUF-DrZSS2Gv.cjs → diagram-KO2AKTUF-DEA4co2o.cjs} +1 -1
  47. package/dist/{diagram-LMA3HP47-eMKAwWlp.cjs → diagram-LMA3HP47-8rdnFiMg.cjs} +1 -1
  48. package/dist/{diagram-LMA3HP47-rD-lWG_r.js → diagram-LMA3HP47-CAz0us0d.js} +2 -2
  49. package/dist/{diagram-OG6HWLK6-50-uYAg9.cjs → diagram-OG6HWLK6-C99LzU2b.cjs} +1 -1
  50. package/dist/{diagram-OG6HWLK6-CflRan99.js → diagram-OG6HWLK6-jozkRhzb.js} +3 -3
  51. package/dist/{erDiagram-TEJ5UH35-CEHO-wXV.js → erDiagram-TEJ5UH35-1Kx5YkMP.js} +4 -4
  52. package/dist/{erDiagram-TEJ5UH35-BTriOcqX.cjs → erDiagram-TEJ5UH35-DkPa6e0M.cjs} +1 -1
  53. package/dist/{flowDiagram-I6XJVG4X-BLp2Bhui.cjs → flowDiagram-I6XJVG4X-Gg1CtGpP.cjs} +1 -1
  54. package/dist/{flowDiagram-I6XJVG4X-BvOBJzbt.js → flowDiagram-I6XJVG4X-T8H7hwEN.js} +6 -6
  55. package/dist/{ganttDiagram-6RSMTGT7-DHYCnTZk.cjs → ganttDiagram-6RSMTGT7-CNuwutb6.cjs} +1 -1
  56. package/dist/{ganttDiagram-6RSMTGT7-9be6okZP.js → ganttDiagram-6RSMTGT7-Czr7STnE.js} +3 -3
  57. package/dist/{gitGraphDiagram-PVQCEYII-fuLhNOZJ.cjs → gitGraphDiagram-PVQCEYII-CjV9Eh0O.cjs} +1 -1
  58. package/dist/{gitGraphDiagram-PVQCEYII-DysW3J76.js → gitGraphDiagram-PVQCEYII-DtNSDSVT.js} +3 -3
  59. package/dist/{index-DCt5j5lC.cjs → index-BybuJdhH.cjs} +237 -237
  60. package/dist/{index-CN7b3cbE.js → index-CULrPY-R.js} +13913 -13910
  61. package/dist/{index-QIZEllkT.cjs → index-CjKhZ_Yx.cjs} +1 -1
  62. package/dist/{index-BjGp64i-.js → index-GyqBEVXE.js} +2 -2
  63. package/dist/{infoDiagram-5YYISTIA-BQB8CM7E.cjs → infoDiagram-5YYISTIA-CEI_VKlx.cjs} +1 -1
  64. package/dist/{infoDiagram-5YYISTIA-BKiJ4C1R.js → infoDiagram-5YYISTIA-CEjKeC78.js} +1 -1
  65. package/dist/{ishikawaDiagram-YF4QCWOH-CmWN_962.cjs → ishikawaDiagram-YF4QCWOH-1i4mtkJo.cjs} +1 -1
  66. package/dist/{ishikawaDiagram-YF4QCWOH-Cm3nbVdr.js → ishikawaDiagram-YF4QCWOH-C9l-B4kG.js} +1 -1
  67. package/dist/{journeyDiagram-JHISSGLW-BH3kUnoi.js → journeyDiagram-JHISSGLW-B7O46Dgu.js} +4 -4
  68. package/dist/{journeyDiagram-JHISSGLW-Qeh_6e_n.cjs → journeyDiagram-JHISSGLW-DpzVdUF7.cjs} +1 -1
  69. package/dist/{kanban-definition-UN3LZRKU-BQVFSEa2.cjs → kanban-definition-UN3LZRKU-COFtPNqu.cjs} +1 -1
  70. package/dist/{kanban-definition-UN3LZRKU-BcNQilMv.js → kanban-definition-UN3LZRKU-zH3Yz-d7.js} +2 -2
  71. package/dist/{linear-TarjbgsN.cjs → linear-CU0d8aug.cjs} +1 -1
  72. package/dist/{linear-xl1chASq.js → linear-DxO3EuZj.js} +1 -1
  73. package/dist/{mermaid.core-CD8W-83J.cjs → mermaid.core-BTqEX5GB.cjs} +3 -3
  74. package/dist/{mermaid.core-VImUQ-y-.js → mermaid.core-Cngx8sSc.js} +35 -35
  75. package/dist/{mindmap-definition-RKZ34NQL-BJl71t4P.js → mindmap-definition-RKZ34NQL-CZg9VBe3.js} +3 -3
  76. package/dist/{mindmap-definition-RKZ34NQL-DCRQT10I.cjs → mindmap-definition-RKZ34NQL-ZFQ_HBPw.cjs} +1 -1
  77. package/dist/{pieDiagram-4H26LBE5-DwQkQmdD.js → pieDiagram-4H26LBE5-CJgxHt5G.js} +3 -3
  78. package/dist/{pieDiagram-4H26LBE5--tW4dEtH.cjs → pieDiagram-4H26LBE5-CWsfWaV1.cjs} +1 -1
  79. package/dist/{quadrantDiagram-W4KKPZXB-WFcfZghI.cjs → quadrantDiagram-W4KKPZXB-CIJSaEfd.cjs} +1 -1
  80. package/dist/{quadrantDiagram-W4KKPZXB-D41uKlpw.js → quadrantDiagram-W4KKPZXB-DxFABekE.js} +2 -2
  81. package/dist/{requirementDiagram-4Y6WPE33-ChLKzwEb.cjs → requirementDiagram-4Y6WPE33-DwdjgDQQ.cjs} +1 -1
  82. package/dist/{requirementDiagram-4Y6WPE33-npAxQTol.js → requirementDiagram-4Y6WPE33-QsRyaCRI.js} +3 -3
  83. package/dist/{sankeyDiagram-5OEKKPKP-BvcPTB2N.cjs → sankeyDiagram-5OEKKPKP-BW5g9Kw3.cjs} +1 -1
  84. package/dist/{sankeyDiagram-5OEKKPKP-fKgres6H.js → sankeyDiagram-5OEKKPKP-BdcC4vbz.js} +1 -1
  85. package/dist/{sequenceDiagram-3UESZ5HK-LGRgMkGi.cjs → sequenceDiagram-3UESZ5HK-C5j-_k9X.cjs} +1 -1
  86. package/dist/{sequenceDiagram-3UESZ5HK-CpEUV9gb.js → sequenceDiagram-3UESZ5HK-i-yqELfy.js} +3 -3
  87. package/dist/{stateDiagram-AJRCARHV-CHqQN0ix.js → stateDiagram-AJRCARHV-D6PQqJvH.js} +2 -2
  88. package/dist/{stateDiagram-AJRCARHV-XBb-Dtow.cjs → stateDiagram-AJRCARHV-h6h7KAo1.cjs} +1 -1
  89. package/dist/{stateDiagram-v2-BHNVJYJU-C14xhWxp.cjs → stateDiagram-v2-BHNVJYJU-CEoyCvOs.cjs} +1 -1
  90. package/dist/{stateDiagram-v2-BHNVJYJU-Z8Pi0Y3W.js → stateDiagram-v2-BHNVJYJU-DctqGvIN.js} +2 -2
  91. package/dist/{timeline-definition-PNZ67QCA-CQlKM_xI.js → timeline-definition-PNZ67QCA-A9SnZqEh.js} +2 -2
  92. package/dist/{timeline-definition-PNZ67QCA-D6BDxDF0.cjs → timeline-definition-PNZ67QCA-DpB4Tld-.cjs} +1 -1
  93. package/dist/{vennDiagram-CIIHVFJN-CQuhupzV.js → vennDiagram-CIIHVFJN-BRUPmLMF.js} +1 -1
  94. package/dist/{vennDiagram-CIIHVFJN-BNuzvov-.cjs → vennDiagram-CIIHVFJN-C6ihYjn2.cjs} +1 -1
  95. package/dist/wandox.cjs +1 -1
  96. package/dist/wandox.css +1 -1
  97. package/dist/wandox.js +1 -1
  98. package/dist/wandox.umd.js +609 -609
  99. package/dist/{wardleyDiagram-YWT4CUSO-MHRvjUGT.cjs → wardleyDiagram-YWT4CUSO-CLTGIshY.cjs} +1 -1
  100. package/dist/{wardleyDiagram-YWT4CUSO-22zzwPUn.js → wardleyDiagram-YWT4CUSO-Cd43dLV7.js} +2 -2
  101. package/dist/{xychartDiagram-2RQKCTM6-BLOMoiAI.js → xychartDiagram-2RQKCTM6-BwIYOH-S.js} +2 -2
  102. package/dist/{xychartDiagram-2RQKCTM6-CUe-G5Nn.cjs → xychartDiagram-2RQKCTM6-CTpmR13e.cjs} +1 -1
  103. package/package.json +1 -1
  104. package/dist/V2Workbench-Dldh6IwR.cjs +0 -2
@@ -1,139 +1,139 @@
1
- import { dt as s, af as ze, d0 as e, a_ as rs, ai as $a, a$ as ba, aR as ds, bL as us, b0 as an, d_ as ms, K as Xa, aa as sn, a9 as fa, d6 as es, Q as nn, P as on, a6 as tn, a4 as cn, T as ln, da as hs, dG as S, ci as rn, S as dn, J as wa, c_ as un, cO as mn, dO as hn, cd as pn, cH as xn, cG as _n, as as bn, ap as fn, o as wn, m as yn, v as gn, b1 as ps, b2 as jn, bC as ya, aO as vn, b3 as ga, n as kn, ar as Nn, A as Cn, aq as Sn, bz as Rn, bB as $n, i as sa, aA as In, y as An, cI as En, cJ as Pn, aE as as, b4 as Ln, aZ as Mn, b5 as ss, b6 as Tn, b7 as On, b8 as Dn, b9 as Fn, ek as Vn } from "./index-CN7b3cbE.js";
2
- import { n as Bn, A as zn, l as na, m as ja, p as qn, h as xs, R as va, c as _s, a as bs, d as fs, e as ns, Q as Wn, i as Hn, f as Un, u as Kn, j as Gn, o as os, b as Qn, S as Yn } from "./WorkbenchRuntime-D4TX08P0.js";
3
- import { Drawer as Zn, Divider as Jn } from "./index-BjGp64i-.js";
4
- var Xn = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M864 144H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm0 400H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zM464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm0 400H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16z" } }] }, name: "appstore", theme: "filled" };
5
- function ka() {
6
- return ka = Object.assign ? Object.assign.bind() : function(o) {
1
+ import { dt as s, af as Ge, d0 as e, a_ as ps, ai as La, a$ as ga, aR as xs, bL as _s, b0 as ln, d_ as bs, K as os, aa as rn, a9 as ja, d6 as cs, Q as dn, P as un, a6 as mn, a4 as hn, T as pn, da as fs, aE as va, dG as k, ci as xn, S as _n, J as ka, c_ as bn, cO as fn, dO as wn, cd as yn, cH as gn, cG as jn, as as vn, ap as kn, o as Nn, m as Cn, v as Sn, b1 as ws, b2 as Rn, bC as Na, aO as $n, b3 as Ca, n as An, ar as In, A as En, aq as Pn, bz as Ln, bB as Mn, i as ia, aA as Tn, y as Fn, cI as On, cJ as Dn, b4 as Vn, aZ as Bn, b5 as ls, b6 as zn, b7 as qn, b8 as Wn, b9 as Hn, ek as Un } from "./index-CULrPY-R.js";
2
+ import { o as Kn, l as Gn, A as Qn, m as ra, n as Sa, q as Yn, h as ys, R as Ra, c as gs, a as js, d as vs, e as is, Q as Zn, i as Jn, f as Xn, u as et, j as at, p as rs, b as st, S as nt } from "./WorkbenchRuntime-DUBpI-cp.js";
3
+ import { Drawer as tt, Divider as ot } from "./index-GyqBEVXE.js";
4
+ var ct = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M864 144H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm0 400H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zM464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm0 400H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16z" } }] }, name: "appstore", theme: "filled" };
5
+ function $a() {
6
+ return $a = Object.assign ? Object.assign.bind() : function(t) {
7
7
  for (var l = 1; l < arguments.length; l++) {
8
8
  var r = arguments[l];
9
- for (var d in r)
10
- Object.prototype.hasOwnProperty.call(r, d) && (o[d] = r[d]);
9
+ for (var u in r)
10
+ Object.prototype.hasOwnProperty.call(r, u) && (t[u] = r[u]);
11
11
  }
12
- return o;
13
- }, ka.apply(this, arguments);
12
+ return t;
13
+ }, $a.apply(this, arguments);
14
14
  }
15
- const eo = (o, l) => /* @__PURE__ */ s.createElement(ze, ka({}, o, {
15
+ const lt = (t, l) => /* @__PURE__ */ s.createElement(Ge, $a({}, t, {
16
16
  ref: l,
17
- icon: Xn
18
- })), ao = /* @__PURE__ */ s.forwardRef(eo);
19
- var so = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M689 165.1L308.2 493.5c-10.9 9.4-10.9 27.5 0 37L689 858.9c14.2 12.2 35 1.2 35-18.5V183.6c0-19.7-20.8-30.7-35-18.5z" } }] }, name: "caret-left", theme: "filled" };
20
- function Na() {
21
- return Na = Object.assign ? Object.assign.bind() : function(o) {
17
+ icon: ct
18
+ })), it = /* @__PURE__ */ s.forwardRef(lt);
19
+ var rt = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M689 165.1L308.2 493.5c-10.9 9.4-10.9 27.5 0 37L689 858.9c14.2 12.2 35 1.2 35-18.5V183.6c0-19.7-20.8-30.7-35-18.5z" } }] }, name: "caret-left", theme: "filled" };
20
+ function Aa() {
21
+ return Aa = Object.assign ? Object.assign.bind() : function(t) {
22
22
  for (var l = 1; l < arguments.length; l++) {
23
23
  var r = arguments[l];
24
- for (var d in r)
25
- Object.prototype.hasOwnProperty.call(r, d) && (o[d] = r[d]);
24
+ for (var u in r)
25
+ Object.prototype.hasOwnProperty.call(r, u) && (t[u] = r[u]);
26
26
  }
27
- return o;
28
- }, Na.apply(this, arguments);
27
+ return t;
28
+ }, Aa.apply(this, arguments);
29
29
  }
30
- const no = (o, l) => /* @__PURE__ */ s.createElement(ze, Na({}, o, {
30
+ const dt = (t, l) => /* @__PURE__ */ s.createElement(Ge, Aa({}, t, {
31
31
  ref: l,
32
- icon: so
33
- })), oo = /* @__PURE__ */ s.forwardRef(no);
34
- var to = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z" } }] }, name: "caret-right", theme: "filled" };
35
- function Ca() {
36
- return Ca = Object.assign ? Object.assign.bind() : function(o) {
32
+ icon: rt
33
+ })), ut = /* @__PURE__ */ s.forwardRef(dt);
34
+ var mt = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z" } }] }, name: "caret-right", theme: "filled" };
35
+ function Ia() {
36
+ return Ia = Object.assign ? Object.assign.bind() : function(t) {
37
37
  for (var l = 1; l < arguments.length; l++) {
38
38
  var r = arguments[l];
39
- for (var d in r)
40
- Object.prototype.hasOwnProperty.call(r, d) && (o[d] = r[d]);
39
+ for (var u in r)
40
+ Object.prototype.hasOwnProperty.call(r, u) && (t[u] = r[u]);
41
41
  }
42
- return o;
43
- }, Ca.apply(this, arguments);
42
+ return t;
43
+ }, Ia.apply(this, arguments);
44
44
  }
45
- const co = (o, l) => /* @__PURE__ */ s.createElement(ze, Ca({}, o, {
45
+ const ht = (t, l) => /* @__PURE__ */ s.createElement(Ge, Ia({}, t, {
46
46
  ref: l,
47
- icon: to
48
- })), lo = /* @__PURE__ */ s.forwardRef(co);
49
- var io = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M320 224h-66v-56c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v56h-66c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8h66v56c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-56h66c4.4 0 8-3.6 8-8V232c0-4.4-3.6-8-8-8zm-60 508h-80V292h80v440zm644-436h-66v-96c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v96h-66c-4.4 0-8 3.6-8 8v416c0 4.4 3.6 8 8 8h66v96c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-96h66c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8zm-60 364h-80V364h80v296zM612 404h-66V232c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v172h-66c-4.4 0-8 3.6-8 8v200c0 4.4 3.6 8 8 8h66v172c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V620h66c4.4 0 8-3.6 8-8V412c0-4.4-3.6-8-8-8zm-60 145a3 3 0 01-3 3h-74a3 3 0 01-3-3v-74a3 3 0 013-3h74a3 3 0 013 3v74z" } }] }, name: "sliders", theme: "outlined" };
50
- function Sa() {
51
- return Sa = Object.assign ? Object.assign.bind() : function(o) {
47
+ icon: mt
48
+ })), pt = /* @__PURE__ */ s.forwardRef(ht);
49
+ var xt = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M320 224h-66v-56c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v56h-66c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8h66v56c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-56h66c4.4 0 8-3.6 8-8V232c0-4.4-3.6-8-8-8zm-60 508h-80V292h80v440zm644-436h-66v-96c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v96h-66c-4.4 0-8 3.6-8 8v416c0 4.4 3.6 8 8 8h66v96c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-96h66c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8zm-60 364h-80V364h80v296zM612 404h-66V232c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v172h-66c-4.4 0-8 3.6-8 8v200c0 4.4 3.6 8 8 8h66v172c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V620h66c4.4 0 8-3.6 8-8V412c0-4.4-3.6-8-8-8zm-60 145a3 3 0 01-3 3h-74a3 3 0 01-3-3v-74a3 3 0 013-3h74a3 3 0 013 3v74z" } }] }, name: "sliders", theme: "outlined" };
50
+ function Ea() {
51
+ return Ea = Object.assign ? Object.assign.bind() : function(t) {
52
52
  for (var l = 1; l < arguments.length; l++) {
53
53
  var r = arguments[l];
54
- for (var d in r)
55
- Object.prototype.hasOwnProperty.call(r, d) && (o[d] = r[d]);
54
+ for (var u in r)
55
+ Object.prototype.hasOwnProperty.call(r, u) && (t[u] = r[u]);
56
56
  }
57
- return o;
58
- }, Sa.apply(this, arguments);
57
+ return t;
58
+ }, Ea.apply(this, arguments);
59
59
  }
60
- const ro = (o, l) => /* @__PURE__ */ s.createElement(ze, Sa({}, o, {
60
+ const _t = (t, l) => /* @__PURE__ */ s.createElement(Ge, Ea({}, t, {
61
61
  ref: l,
62
- icon: io
63
- })), ws = /* @__PURE__ */ s.forwardRef(ro);
64
- var uo = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "unordered-list", theme: "outlined" };
65
- function Ra() {
66
- return Ra = Object.assign ? Object.assign.bind() : function(o) {
62
+ icon: xt
63
+ })), ks = /* @__PURE__ */ s.forwardRef(_t);
64
+ var bt = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "unordered-list", theme: "outlined" };
65
+ function Pa() {
66
+ return Pa = Object.assign ? Object.assign.bind() : function(t) {
67
67
  for (var l = 1; l < arguments.length; l++) {
68
68
  var r = arguments[l];
69
- for (var d in r)
70
- Object.prototype.hasOwnProperty.call(r, d) && (o[d] = r[d]);
69
+ for (var u in r)
70
+ Object.prototype.hasOwnProperty.call(r, u) && (t[u] = r[u]);
71
71
  }
72
- return o;
73
- }, Ra.apply(this, arguments);
72
+ return t;
73
+ }, Pa.apply(this, arguments);
74
74
  }
75
- const mo = (o, l) => /* @__PURE__ */ s.createElement(ze, Ra({}, o, {
75
+ const ft = (t, l) => /* @__PURE__ */ s.createElement(Ge, Pa({}, t, {
76
76
  ref: l,
77
- icon: uo
78
- })), ho = /* @__PURE__ */ s.forwardRef(mo);
79
- function ys(o) {
77
+ icon: bt
78
+ })), wt = /* @__PURE__ */ s.forwardRef(ft);
79
+ function Ns(t) {
80
80
  return {
81
81
  category: null,
82
- description: o.desc,
82
+ description: t.desc,
83
83
  domain: "",
84
84
  id: 0,
85
- name: o.title,
86
- playbook_id: o.playbook_id,
85
+ name: t.title,
86
+ playbook_id: t.playbook_id,
87
87
  scope: "",
88
88
  status: "",
89
89
  sub_category: null,
90
90
  tags: null,
91
91
  type: "",
92
92
  version: "",
93
- video_url: o.video_url,
94
- video_duration: o.video_duration,
95
- view_count: o.view_count
93
+ video_url: t.video_url,
94
+ video_duration: t.video_duration,
95
+ view_count: t.view_count
96
96
  };
97
97
  }
98
- function gs(o) {
99
- if (!o || o <= 0) return "0:00";
100
- const l = Math.floor(o / 60), r = String(Math.floor(o % 60)).padStart(2, "0");
98
+ function Cs(t) {
99
+ if (!t || t <= 0) return "0:00";
100
+ const l = Math.floor(t / 60), r = String(Math.floor(t % 60)).padStart(2, "0");
101
101
  return `${l}:${r}`;
102
102
  }
103
- const xa = "__all__", ts = "__my__", _a = "__library_all__", po = "__library__:", xo = [
103
+ const wa = "__all__", ds = "__my__", ya = "__library_all__", yt = "__library__:", gt = [
104
104
  { key: "all", label: "全部场景" },
105
105
  { key: "my", label: "我的场景" },
106
106
  { key: "map", label: "使用地图" }
107
107
  ];
108
- function _o(o) {
109
- return o === "map" ? "搜索当前地图下的场景" : o === "my" ? "搜索我的场景" : "搜索全部场景";
108
+ function jt(t) {
109
+ return t === "map" ? "搜索当前地图下的场景" : t === "my" ? "搜索我的场景" : "搜索全部场景";
110
110
  }
111
- function bo({
112
- open: o,
111
+ function vt({
112
+ open: t,
113
113
  source: l,
114
114
  categories: r,
115
- categoryKey: d,
115
+ categoryKey: u,
116
116
  search: _,
117
- cards: v,
117
+ cards: j,
118
118
  executing: p,
119
- loadingPlaybookId: b,
120
- onClose: $,
121
- onSourceChange: T,
122
- onCategoryChange: ae,
123
- onSearchChange: Q,
124
- onSelectScene: le
119
+ loadingPlaybookId: f,
120
+ onClose: R,
121
+ onSourceChange: F,
122
+ onCategoryChange: Y,
123
+ onSearchChange: z,
124
+ onSelectScene: me
125
125
  }) {
126
- const [I, q] = s.useState(null), L = s.useMemo(
127
- () => I ? ys(I) : null,
128
- [I]
129
- ), R = s.useCallback((h, D) => {
130
- h.stopPropagation(), q(D);
126
+ const [$, q] = s.useState(null), L = s.useMemo(
127
+ () => $ ? Ns($) : null,
128
+ [$]
129
+ ), S = s.useCallback((h, O) => {
130
+ h.stopPropagation(), q(O);
131
131
  }, []);
132
132
  return /* @__PURE__ */ e.jsxs(
133
- Zn,
133
+ tt,
134
134
  {
135
- open: o,
136
- onClose: $,
135
+ open: t,
136
+ onClose: R,
137
137
  placement: "bottom",
138
138
  height: "min(82vh, 780px)",
139
139
  destroyOnClose: !1,
@@ -153,12 +153,12 @@ function bo({
153
153
  {
154
154
  className: "wandox-console-chat__drawer-tabs",
155
155
  "aria-label": "场景来源",
156
- children: xo.map((h) => /* @__PURE__ */ e.jsx(
156
+ children: gt.map((h) => /* @__PURE__ */ e.jsx(
157
157
  "button",
158
158
  {
159
159
  type: "button",
160
160
  className: l === h.key ? "is-active" : "",
161
- onClick: () => T(h.key),
161
+ onClick: () => F(h.key),
162
162
  children: h.label
163
163
  },
164
164
  h.key
@@ -170,9 +170,9 @@ function bo({
170
170
  {
171
171
  type: "button",
172
172
  className: "wandox-console-chat__drawer-close",
173
- onClick: $,
173
+ onClick: R,
174
174
  "aria-label": "关闭",
175
- children: /* @__PURE__ */ e.jsx(rs, {})
175
+ children: /* @__PURE__ */ e.jsx(ps, {})
176
176
  }
177
177
  )
178
178
  ] }),
@@ -180,13 +180,13 @@ function bo({
180
180
  l !== "my" && /* @__PURE__ */ e.jsxs("aside", { className: "wandox-console-chat__drawer-cats", children: [
181
181
  /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__drawer-catslabel", children: "场景分类" }),
182
182
  r.map((h) => {
183
- const D = h.key === d;
183
+ const O = h.key === u;
184
184
  return /* @__PURE__ */ e.jsxs(
185
185
  "button",
186
186
  {
187
187
  type: "button",
188
- className: `wandox-console-chat__drawer-cat${D ? " wandox-console-chat__drawer-cat--active" : ""}`,
189
- onClick: () => ae(h.key),
188
+ className: `wandox-console-chat__drawer-cat${O ? " wandox-console-chat__drawer-cat--active" : ""}`,
189
+ onClick: () => Y(h.key),
190
190
  children: [
191
191
  /* @__PURE__ */ e.jsx("span", { className: "wandox-console-chat__drawer-cat-name", children: h.name }),
192
192
  /* @__PURE__ */ e.jsx("span", { className: "wandox-console-chat__drawer-cat-count", children: h.count })
@@ -198,26 +198,26 @@ function bo({
198
198
  ] }),
199
199
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-chat__drawer-body", children: [
200
200
  /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__drawer-toolbar", children: /* @__PURE__ */ e.jsx(
201
- $a,
201
+ La,
202
202
  {
203
203
  allowClear: !0,
204
- prefix: /* @__PURE__ */ e.jsx(ba, {}),
205
- placeholder: _o(l),
204
+ prefix: /* @__PURE__ */ e.jsx(ga, {}),
205
+ placeholder: jt(l),
206
206
  value: _,
207
- onChange: (h) => Q(h.target.value)
207
+ onChange: (h) => z(h.target.value)
208
208
  }
209
209
  ) }),
210
- v.length === 0 ? /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__drawer-empty", children: _ ? "没有匹配的场景" : "暂无可用场景" }) : /* @__PURE__ */ e.jsx("div", { className: "wandox-console-scenes", children: v.map((h) => {
211
- const D = b === h.playbook_id;
210
+ j.length === 0 ? /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__drawer-empty", children: _ ? "没有匹配的场景" : "暂无可用场景" }) : /* @__PURE__ */ e.jsx("div", { className: "wandox-console-scenes", children: j.map((h) => {
211
+ const O = f === h.playbook_id;
212
212
  return /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-scene-wrap", children: [
213
213
  /* @__PURE__ */ e.jsx(
214
214
  "button",
215
215
  {
216
216
  type: "button",
217
217
  className: "wandox-console-scene",
218
- disabled: p || !!b,
219
- "aria-busy": D,
220
- onClick: () => void le(h),
218
+ disabled: p || !!f,
219
+ "aria-busy": O,
220
+ onClick: () => void me(h),
221
221
  children: /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-scene__body", children: [
222
222
  /* @__PURE__ */ e.jsx("strong", { title: h.title, children: h.title }),
223
223
  h.desc && /* @__PURE__ */ e.jsx(
@@ -228,7 +228,7 @@ function bo({
228
228
  children: h.desc
229
229
  }
230
230
  ),
231
- D && /* @__PURE__ */ e.jsx("span", { className: "wandox-console-scene__loading", children: "正在读取场景..." })
231
+ O && /* @__PURE__ */ e.jsx("span", { className: "wandox-console-scene__loading", children: "正在读取场景..." })
232
232
  ] })
233
233
  }
234
234
  ),
@@ -238,10 +238,10 @@ function bo({
238
238
  type: "button",
239
239
  className: "wandox-console-scene__video",
240
240
  "aria-label": `播放${h.title}演示视频`,
241
- onClick: (ie) => R(ie, h),
241
+ onClick: (he) => S(he, h),
242
242
  children: [
243
243
  "▶ ",
244
- gs(h.video_duration),
244
+ Cs(h.video_duration),
245
245
  " 演示"
246
246
  ]
247
247
  }
@@ -252,7 +252,7 @@ function bo({
252
252
  ] })
253
253
  ] }),
254
254
  /* @__PURE__ */ e.jsx(
255
- ds,
255
+ xs,
256
256
  {
257
257
  playbook: L,
258
258
  onClose: () => q(null)
@@ -262,51 +262,57 @@ function bo({
262
262
  }
263
263
  );
264
264
  }
265
- const fo = (o) => {
266
- const { onError: l } = o;
265
+ const kt = (t) => {
266
+ const { onError: l } = t;
267
267
  l == null || l(new Error("该场景暂不支持文件上传"));
268
268
  };
269
- function js({
270
- field: o,
269
+ function Ss({
270
+ field: t,
271
271
  value: l,
272
272
  uploading: r,
273
- fileNameMap: d,
273
+ fileNameMap: u,
274
274
  getOptionState: _,
275
- onChange: v,
275
+ onChange: j,
276
276
  onUpload: p
277
277
  }) {
278
- const b = Bn(o.type), $ = p ?? ((T, ae) => fo);
279
- return /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-field", children: [
280
- /* @__PURE__ */ e.jsxs("label", { htmlFor: `wc-param-${o.name}`, children: [
281
- /* @__PURE__ */ e.jsx("span", { className: "wandox-console-field__label-text", children: o.label || o.name }),
282
- o.description || o.hint ? /* @__PURE__ */ e.jsx(us, { title: o.description || o.hint, children: /* @__PURE__ */ e.jsx(
283
- an,
284
- {
285
- "aria-label": `${o.label || o.name}说明`
286
- }
287
- ) }) : null,
288
- o.required && /* @__PURE__ */ e.jsx("span", { className: "wandox-console-field__required", children: "必填" }),
289
- b && /* @__PURE__ */ e.jsx("span", { className: "wandox-console-field__required", children: "多值" })
290
- ] }),
291
- /* @__PURE__ */ e.jsx(
292
- zn,
293
- {
294
- field: o,
295
- value: l,
296
- uploading: r,
297
- fileNameMap: d,
298
- getOptionState: _,
299
- onChange: v,
300
- onUpload: $,
301
- onDownloadTemplate: (T) => window.open(T.path, "_blank", "noopener,noreferrer")
302
- }
303
- )
304
- ] });
278
+ const f = Kn(t.type), R = Gn(t) === "file", F = p ?? ((Y, z) => kt);
279
+ return /* @__PURE__ */ e.jsxs(
280
+ "div",
281
+ {
282
+ className: `wandox-console-field${R ? " wandox-console-field--file" : ""}`,
283
+ children: [
284
+ /* @__PURE__ */ e.jsxs("label", { htmlFor: `wc-param-${t.name}`, children: [
285
+ /* @__PURE__ */ e.jsx("span", { className: "wandox-console-field__label-text", children: t.label || t.name }),
286
+ t.description || t.hint ? /* @__PURE__ */ e.jsx(_s, { title: t.description || t.hint, children: /* @__PURE__ */ e.jsx(
287
+ ln,
288
+ {
289
+ "aria-label": `${t.label || t.name}说明`
290
+ }
291
+ ) }) : null,
292
+ t.required && /* @__PURE__ */ e.jsx("span", { className: "wandox-console-field__required", children: "必填" }),
293
+ f && /* @__PURE__ */ e.jsx("span", { className: "wandox-console-field__required", children: "多值" })
294
+ ] }),
295
+ /* @__PURE__ */ e.jsx(
296
+ Qn,
297
+ {
298
+ field: t,
299
+ value: l,
300
+ uploading: r,
301
+ fileNameMap: u,
302
+ getOptionState: _,
303
+ onChange: j,
304
+ onUpload: F,
305
+ onDownloadTemplate: (Y) => window.open(Y.path, "_blank", "noopener,noreferrer")
306
+ }
307
+ )
308
+ ]
309
+ }
310
+ );
305
311
  }
306
- function wo(o) {
307
- const l = Array.isArray(o.actions) ? o.actions : [], r = o.ui_payload, d = Array.isArray(r == null ? void 0 : r.actions) ? r.actions : [];
308
- return [...l, ...d].map((v) => {
309
- const p = v ?? {};
312
+ function Nt(t) {
313
+ const l = Array.isArray(t.actions) ? t.actions : [], r = t.ui_payload, u = Array.isArray(r == null ? void 0 : r.actions) ? r.actions : [];
314
+ return [...l, ...u].map((j) => {
315
+ const p = j ?? {};
310
316
  return {
311
317
  label: p.display_name || p.label || "执行",
312
318
  action_id: p.action_id,
@@ -328,70 +334,70 @@ function wo(o) {
328
334
  };
329
335
  });
330
336
  }
331
- function yo(o) {
332
- if (Array.isArray(o)) return o;
333
- const l = o;
337
+ function Ct(t) {
338
+ if (Array.isArray(t)) return t;
339
+ const l = t;
334
340
  return Array.isArray(l == null ? void 0 : l.user_playbooks) ? l.user_playbooks : [];
335
341
  }
336
- function go({
337
- agentId: o,
342
+ function St({
343
+ agentId: t,
338
344
  agentName: l,
339
345
  playbookId: r,
340
- playbookParams: d,
346
+ playbookParams: u,
341
347
  initialMessage: _,
342
- initialAttachments: v,
348
+ initialAttachments: j,
343
349
  useMapCards: p = [],
344
- useMapCategories: b = [],
345
- playbooks: $ = [],
346
- userPlaybooks: T = [],
347
- agents: ae = [],
348
- onChangeAgent: Q,
349
- onBack: le,
350
- onSelectScene: I,
350
+ useMapCategories: f = [],
351
+ playbooks: R = [],
352
+ userPlaybooks: F = [],
353
+ agents: Y = [],
354
+ onChangeAgent: z,
355
+ onBack: me,
356
+ onSelectScene: $,
351
357
  onReady: q
352
358
  }) {
353
- const L = localStorage.getItem("sso_token") || "", R = localStorage.getItem("sso_domain") || "maiduo", h = localStorage.getItem("sso_company") || "", D = s.useRef(null), ie = s.useRef(!1), [F, E] = s.useState(!1), [W, oe] = s.useState(""), [te, H] = s.useState(""), [V, U] = s.useState("map"), [Y, re] = s.useState(xa), [A, B] = s.useState(null), ke = s.useRef(null), pe = s.useRef(null), [de, je] = s.useState(!1), [xe, Re] = s.useState([]), [$e, Ne] = s.useState("");
359
+ const L = localStorage.getItem("sso_token") || "", S = localStorage.getItem("sso_domain") || "maiduo", h = localStorage.getItem("sso_company") || "", O = s.useRef(null), he = s.useRef(!1), [D, E] = s.useState(!1), [W, le] = s.useState(""), [ie, H] = s.useState(""), [V, U] = s.useState("map"), [Z, pe] = s.useState(wa), [A, B] = s.useState(null), Ne = s.useRef(null), fe = s.useRef(null), [xe, ve] = s.useState(!1), [we, Ae] = s.useState([]), [Ie, Ce] = s.useState("");
354
360
  s.useEffect(() => {
355
- if (!A || F) return;
361
+ if (!A || D) return;
356
362
  const a = setTimeout(() => {
357
363
  var n;
358
- (n = ke.current) == null || n.focus();
364
+ (n = Ne.current) == null || n.focus();
359
365
  }, 120);
360
366
  return () => clearTimeout(a);
361
- }, [A, F]), s.useEffect(() => {
362
- if (!A || F) return;
367
+ }, [A, D]), s.useEffect(() => {
368
+ if (!A || D) return;
363
369
  const a = (n) => {
364
- const c = pe.current, i = n.target;
370
+ const c = fe.current, i = n.target;
365
371
  !c || !(i instanceof Node) || c.contains(i) || i instanceof Element && i.closest(
366
372
  ".ant-select-dropdown, .ant-picker-dropdown, .ant-tooltip, .ant-dropdown, .ant-popover, .ant-modal-wrap, .ant-drawer-content-wrapper, .ant-message, .ant-notification"
367
373
  ) || (B(null), K([]), X({}));
368
374
  };
369
375
  return document.addEventListener("mousedown", a), () => document.removeEventListener("mousedown", a);
370
- }, [A, F]);
371
- const [Z, K] = s.useState([]), [G, X] = s.useState({}), ee = ms(
372
- Z,
376
+ }, [A, D]);
377
+ const [J, K] = s.useState([]), [G, X] = s.useState({}), [se, ye] = s.useState({}), [Ee, b] = s.useState({}), I = bs(
378
+ J,
373
379
  G,
374
380
  X
375
- ), _e = s.useMemo(
376
- () => na(Z, G).filter(
377
- (a) => a.required && ja(G[a.name])
381
+ ), oe = s.useMemo(
382
+ () => ra(J, G).filter(
383
+ (a) => a.required && Sa(G[a.name])
378
384
  ),
379
- [Z, G]
380
- ), [J, x] = s.useState("chat"), [f, ce] = s.useState([]), [w, Ce] = s.useState(null), [ue, Ie] = s.useState("results"), [oa, qe] = s.useState(!1), [be, Pe] = s.useState([]), [ta, We] = s.useState(!1), [Le, Ae] = s.useState([]), [se, t] = s.useState([]), [y, C] = s.useState({}), [k, g] = s.useState(!1), [O, ve] = s.useState(null), [z, P] = s.useState(void 0), [fe, Ee] = s.useState(!1), [me, He] = s.useState(!1);
385
+ [J, G]
386
+ ), [v, Te] = s.useState("chat"), [re, Fe] = s.useState([]), [ee, Se] = s.useState(null), [ne, Oe] = s.useState("results"), [da, Qe] = s.useState(!1), [Pe, Re] = s.useState([]), [de, o] = s.useState(!1), [w, N] = s.useState([]), [g, C] = s.useState([]), [ue, Le] = s.useState({}), [ae, M] = s.useState(!1), [Q, De] = s.useState(null), [te, ke] = s.useState(void 0), [Ye, Ze] = s.useState(!1), [Rs, Ma] = s.useState(!1);
381
387
  s.useEffect(() => {
382
388
  q == null || q({
383
389
  showInspectionResults: (a) => {
384
- x("robot"), Ie("results"), Ce(a || null);
390
+ Te("robot"), Oe("results"), Se(a || null);
385
391
  }
386
392
  });
387
393
  }, [q]);
388
- const [Me, vs] = s.useState([]), [Te, Se] = s.useState(!1), [Ue, ks] = s.useState(void 0), [Ia, Aa] = s.useState([]), [ca, Ea] = s.useState(""), [la, Ns] = s.useState(
394
+ const [Ve, $s] = s.useState([]), [Be, $e] = s.useState(!1), [Je, As] = s.useState(void 0), [Ta, Fa] = s.useState([]), [ua, Oa] = s.useState(""), [ma, Is] = s.useState(
389
395
  "map"
390
- ), [Cs, Oe] = s.useState(void 0), Ke = s.useRef(0), De = s.useRef(0), [Ge, Pa] = s.useState(
391
- Xa
392
- ), [ia, La] = s.useState({}), [Qe, Ma] = s.useState(
396
+ ), [Es, ze] = s.useState(void 0), Xe = s.useRef(0), qe = s.useRef(0), [ea, Da] = s.useState(
397
+ os
398
+ ), [ha, Va] = s.useState({}), [aa, Ba] = s.useState(
393
399
  () => /* @__PURE__ */ new Set()
394
- ), ra = s.useCallback(
400
+ ), pa = s.useCallback(
395
401
  (a, n, c) => ({
396
402
  key: `${n}-${a.playbook_id}`,
397
403
  title: a.name || "未命名场景",
@@ -406,53 +412,53 @@ function go({
406
412
  view_count: a.view_count
407
413
  }),
408
414
  []
409
- ), Fe = s.useMemo(() => {
410
- const a = T.map(
411
- (m) => ra(m, ts, "我的场景")
415
+ ), We = s.useMemo(() => {
416
+ const a = F.map(
417
+ (m) => pa(m, ds, "我的场景")
412
418
  ), n = /* @__PURE__ */ new Map();
413
- for (const m of $) {
414
- const N = m.category_name || m.category || m.type || "默认场景", j = `${po}${N}`, ge = n.get(j) || [];
415
- ge.push(ra(m, j, N)), n.set(j, ge);
419
+ for (const m of R) {
420
+ const y = m.category_name || m.category || m.type || "默认场景", x = `${yt}${y}`, P = n.get(x) || [];
421
+ P.push(pa(m, x, y)), n.set(x, P);
416
422
  }
417
423
  const c = Array.from(n.values()).flat(), i = [
418
424
  {
419
- key: _a,
425
+ key: ya,
420
426
  name: "全部场景",
421
427
  count: c.length,
422
428
  cards: c
423
429
  },
424
- ...Array.from(n, ([m, N]) => {
425
- var j;
430
+ ...Array.from(n, ([m, y]) => {
431
+ var x;
426
432
  return {
427
433
  key: m,
428
- name: ((j = N[0]) == null ? void 0 : j.reason) || "默认场景",
429
- count: N.length,
430
- cards: N
434
+ name: ((x = y[0]) == null ? void 0 : x.reason) || "默认场景",
435
+ count: y.length,
436
+ cards: y
431
437
  };
432
438
  })
433
- ], u = [
439
+ ], d = [
434
440
  {
435
- key: xa,
441
+ key: wa,
436
442
  name: "全部场景",
437
443
  count: p.length,
438
444
  cards: p
439
445
  },
440
- ...b.map((m) => ({
446
+ ...f.map((m) => ({
441
447
  key: m.key,
442
448
  name: m.name,
443
449
  count: m.count,
444
- cards: p.filter((N) => N.categoryKey === m.key)
450
+ cards: p.filter((y) => y.categoryKey === m.key)
445
451
  }))
446
452
  ];
447
- return { allCategories: i, mapCategories: u, myCards: a };
453
+ return { allCategories: i, mapCategories: d, myCards: a };
448
454
  }, [
449
455
  l,
450
- $,
451
- ra,
456
+ R,
457
+ pa,
452
458
  p,
453
- b,
454
- T
455
- ]), da = s.useMemo(() => V === "all" ? Fe.allCategories : V === "map" ? Fe.mapCategories : [], [Fe, V]), Ye = s.useMemo(
459
+ f,
460
+ F
461
+ ]), xa = s.useMemo(() => V === "all" ? We.allCategories : V === "map" ? We.mapCategories : [], [We, V]), sa = s.useMemo(
456
462
  () => p.map(
457
463
  (a) => ({
458
464
  category: null,
@@ -475,18 +481,18 @@ function go({
475
481
  })
476
482
  ),
477
483
  [p]
478
- ), Ss = s.useMemo(() => {
484
+ ), Ps = s.useMemo(() => {
479
485
  const a = /* @__PURE__ */ new Map();
480
486
  for (const n of [
481
- ...$,
482
- ...T,
483
- ...Ye
487
+ ...R,
488
+ ...F,
489
+ ...sa
484
490
  ])
485
491
  n.playbook_id && a.set(n.playbook_id, n);
486
492
  return Array.from(a.values());
487
- }, [$, T, Ye]), Rs = s.useMemo(() => {
493
+ }, [R, F, sa]), Ls = s.useMemo(() => {
488
494
  const a = /* @__PURE__ */ new Map();
489
- for (const n of $) {
495
+ for (const n of R) {
490
496
  const c = n.category_name || n.category || n.type || "默认场景", i = a.get(c) || [];
491
497
  i.push(n), a.set(c, i);
492
498
  }
@@ -498,141 +504,141 @@ function go({
498
504
  playbooks: c
499
505
  }))
500
506
  ];
501
- }, [$]), $s = s.useMemo(() => {
507
+ }, [R]), Ms = s.useMemo(() => {
502
508
  const a = new Map(
503
- Ye.map((n) => [
509
+ sa.map((n) => [
504
510
  n.playbook_id,
505
511
  n
506
512
  ])
507
513
  );
508
- return b.map((n) => ({
514
+ return f.map((n) => ({
509
515
  key: `map:${n.key}`,
510
516
  label: n.name,
511
517
  playbooks: p.filter((c) => c.categoryKey === n.key).map((c) => a.get(c.playbook_id)).filter((c) => !!c)
512
518
  }));
513
- }, [p, b, Ye]), Is = la === "map" ? $s : Rs, As = s.useMemo(() => {
519
+ }, [p, f, sa]), Ts = ma === "map" ? Ms : Ls, Fs = s.useMemo(() => {
514
520
  var c;
515
- const a = te.trim().toLowerCase(), n = V === "my" ? Fe.myCards : ((c = da.find((i) => i.key === Y)) == null ? void 0 : c.cards) || [];
521
+ const a = ie.trim().toLowerCase(), n = V === "my" ? We.myCards : ((c = xa.find((i) => i.key === Z)) == null ? void 0 : c.cards) || [];
516
522
  return a ? n.filter(
517
523
  (i) => i.title.toLowerCase().includes(a) || i.desc.toLowerCase().includes(a)
518
524
  ) : n;
519
525
  }, [
520
- da,
521
- Y,
522
- Fe.myCards,
526
+ xa,
527
+ Z,
528
+ We.myCards,
523
529
  V,
524
- te
525
- ]), Es = s.useCallback((a) => {
530
+ ie
531
+ ]), Os = s.useCallback((a) => {
526
532
  const n = Array.isArray(a) ? a : [];
527
- vs(n), Se(n.length > 0);
528
- }, []), he = s.useMemo(
529
- () => ae.find((a) => a.id === o),
530
- [ae, o]
531
- ), { messageData: Ps, executing: M, stopping: Ls, actions: Ms } = qn({
532
- activeAgent: o,
533
+ $s(n), $e(n.length > 0);
534
+ }, []), _e = s.useMemo(
535
+ () => Y.find((a) => a.id === t),
536
+ [Y, t]
537
+ ), { messageData: Ds, executing: T, stopping: Vs, actions: Bs } = Yn({
538
+ activeAgent: t,
533
539
  ssoToken: L,
534
- ssoDomain: R,
540
+ ssoDomain: S,
535
541
  ssoCompany: h,
536
- onRecommendationsUpdate: Es
542
+ onRecommendationsUpdate: Os
537
543
  }), {
538
- sendMessage: Ze,
539
- executePlaybook: Ta,
540
- respondToProposal: Oa,
541
- stopCurrent: Ts,
542
- retrigger: Da
543
- } = Ms, {
544
- messages: we,
545
- messagesTotal: Fa,
546
- loading: Va,
547
- loadMessages: Ba,
548
- loadMoreMessages: za
549
- } = Ps, Je = s.useMemo(() => {
550
- for (let a = we.length - 1; a >= 0; a--)
551
- if (we[a].role === "assistant") return we[a].id;
552
- }, [we]), Xe = s.useCallback(async () => {
553
- if (!o || !L) {
554
- Aa([]);
544
+ sendMessage: na,
545
+ executePlaybook: za,
546
+ respondToProposal: qa,
547
+ stopCurrent: zs,
548
+ retrigger: Wa
549
+ } = Bs, {
550
+ messages: ge,
551
+ messagesTotal: Ha,
552
+ loading: Ua,
553
+ loadMessages: Ka,
554
+ loadMoreMessages: Ga
555
+ } = Ds, ta = s.useMemo(() => {
556
+ for (let a = ge.length - 1; a >= 0; a--)
557
+ if (ge[a].role === "assistant") return ge[a].id;
558
+ }, [ge]), oa = s.useCallback(async () => {
559
+ if (!t || !L) {
560
+ Fa([]);
555
561
  return;
556
562
  }
557
563
  try {
558
- const a = await sn({
559
- agent_id: o,
564
+ const a = await rn({
565
+ agent_id: t,
560
566
  limit: 8
561
567
  });
562
- Aa(Array.isArray(a.data) ? a.data : []);
568
+ Fa(Array.isArray(a.data) ? a.data : []);
563
569
  } catch {
564
570
  }
565
- }, [o, L]);
571
+ }, [t, L]);
566
572
  s.useEffect(() => {
567
- Xe();
568
- }, [Xe]);
569
- const ne = s.useCallback(
573
+ oa();
574
+ }, [oa]);
575
+ const ce = s.useCallback(
570
576
  async (a) => {
571
- await Ta(a), Xe();
577
+ await za(a), oa();
572
578
  },
573
- [Ta, Xe]
574
- ), qa = s.useCallback(async (a) => {
579
+ [za, oa]
580
+ ), Qa = s.useCallback(async (a) => {
575
581
  const n = String(a.playbook_id || "").trim();
576
582
  if (!n) throw new Error("场景缺少 playbook_id");
577
- const { data: c } = await fa({
583
+ const { data: c } = await ja({
578
584
  playbook_id: n
579
585
  });
580
- return es(a, c);
586
+ return cs(a, c);
581
587
  }, []);
582
588
  s.useEffect(() => {
583
- ie.current || (ie.current = !0, (async () => {
584
- if (await Ba(), r) {
589
+ he.current || (he.current = !0, (async () => {
590
+ if (await Ka(), r) {
585
591
  const a = (_ == null ? void 0 : _.trim()) || "执行场景";
586
- ne({
592
+ ce({
587
593
  message: a,
588
594
  playbook_id: r,
589
- playbook_params: d || {}
595
+ playbook_params: u || {}
590
596
  });
591
- } else _ != null && _.trim() && Ze(_.trim(), void 0, v);
597
+ } else _ != null && _.trim() && na(_.trim(), void 0, j);
592
598
  })());
593
599
  }, [
594
600
  r,
595
601
  _,
596
- v,
597
- d,
598
- ne,
599
- Ba,
600
- Ze
602
+ j,
603
+ u,
604
+ ce,
605
+ Ka,
606
+ na
601
607
  ]), s.useEffect(() => {
602
- if (!o) return;
608
+ if (!t) return;
603
609
  let a = !1;
604
610
  return (async () => {
605
611
  try {
606
- const { data: n } = await nn({ agent_id: o });
612
+ const { data: n } = await dn({ agent_id: t });
607
613
  if (a) return;
608
614
  const c = (n == null ? void 0 : n.children) || [];
609
- ce(c), Ce(null);
615
+ Fe(c), Se(null);
610
616
  } catch {
611
- ce([]);
617
+ Fe([]);
612
618
  }
613
619
  })(), () => {
614
620
  a = !0;
615
621
  };
616
- }, [o]), s.useEffect(() => {
617
- Je && Je !== Ue && ks(Je);
618
- }, [Je, Ue]), s.useEffect(() => {
619
- if (J !== "robot" || ue !== "history" || !w) {
620
- Pe([]);
622
+ }, [t]), s.useEffect(() => {
623
+ ta && ta !== Je && As(ta);
624
+ }, [ta, Je]), s.useEffect(() => {
625
+ if (v !== "robot" || ne !== "history" || !ee) {
626
+ Re([]);
621
627
  return;
622
628
  }
623
- const a = f.find((c) => c.name === w);
629
+ const a = re.find((c) => c.name === ee);
624
630
  if (!a) return;
625
631
  let n = !1;
626
- return qe(!0), (async () => {
632
+ return Qe(!0), (async () => {
627
633
  try {
628
- const c = await on({
634
+ const c = await un({
629
635
  agent_id: a.agent_id,
630
636
  limit: 50
631
637
  });
632
638
  if (n) return;
633
- const u = (Array.isArray(c == null ? void 0 : c.data) ? c.data : []).map(
634
- (m, N) => ({
635
- id: m.id || m.execute_id || `record_${N}`,
639
+ const d = (Array.isArray(c == null ? void 0 : c.data) ? c.data : []).map(
640
+ (m, y) => ({
641
+ id: m.id || m.execute_id || `record_${y}`,
636
642
  action_name: m.action_name || m.display_name || "未知动作",
637
643
  status: m.status || "pending",
638
644
  created_at: m.created_at || "",
@@ -641,20 +647,20 @@ function go({
641
647
  error: m.error
642
648
  })
643
649
  );
644
- Pe(u);
650
+ Re(d);
645
651
  } catch {
646
- Pe([]);
652
+ Re([]);
647
653
  } finally {
648
- n || qe(!1);
654
+ n || Qe(!1);
649
655
  }
650
656
  })(), () => {
651
657
  n = !0;
652
658
  };
653
- }, [J, ue, w, f]);
654
- const Wa = s.useCallback(async () => {
659
+ }, [v, ne, ee, re]);
660
+ const Ya = s.useCallback(async () => {
655
661
  try {
656
- const a = await tn({});
657
- Array.isArray(a == null ? void 0 : a.data) && t(
662
+ const a = await mn({});
663
+ Array.isArray(a == null ? void 0 : a.data) && C(
658
664
  a.data.map((n) => ({
659
665
  webhook_id: n.webhook_id || "",
660
666
  name: n.name || "未命名渠道",
@@ -663,97 +669,97 @@ function go({
663
669
  );
664
670
  } catch {
665
671
  }
666
- }, []), ea = s.useCallback(async () => {
672
+ }, []), ca = s.useCallback(async () => {
667
673
  try {
668
674
  const a = {};
669
675
  await Promise.all(
670
- f.map(async (n) => {
676
+ re.map(async (n) => {
671
677
  var c;
672
678
  try {
673
- const i = await cn(
679
+ const i = await hn(
674
680
  n.agent_id,
675
681
  {}
676
- ), u = (c = i == null ? void 0 : i.data) == null ? void 0 : c.webhook_id;
677
- u && (a[n.agent_id] = u);
682
+ ), d = (c = i == null ? void 0 : i.data) == null ? void 0 : c.webhook_id;
683
+ d && (a[n.agent_id] = d);
678
684
  } catch {
679
685
  }
680
686
  })
681
- ), C(a);
687
+ ), Le(a);
682
688
  } catch {
683
689
  }
684
- }, [f]), Ha = s.useCallback(async () => {
685
- if (o) {
686
- We(!0);
690
+ }, [re]), Za = s.useCallback(async () => {
691
+ if (t) {
692
+ o(!0);
687
693
  try {
688
- const a = await ln({
689
- agent_id: o,
694
+ const a = await pn({
695
+ agent_id: t,
690
696
  limit: 20,
691
697
  use_cache: !1
692
698
  }), c = (Array.isArray(a == null ? void 0 : a.data) ? a.data : []).map((i) => {
693
- const u = i.ui_payload || i.outputs || void 0;
699
+ const d = i.ui_payload || i.outputs || void 0;
694
700
  return {
695
701
  id: i.inbox_id || i.id || "",
696
702
  title: i.title || "巡检结果",
697
703
  summary: i.summary || "",
698
704
  priority: i.priority || "medium",
699
705
  timestamp: i.created_at || "",
700
- ui_payload: u,
706
+ ui_payload: d,
701
707
  agent_name: i.agent_name || i.agent_id || "",
702
- actions: wo(i)
708
+ actions: Nt(i)
703
709
  };
704
710
  }).sort(
705
- (i, u) => new Date(u.timestamp || 0).getTime() - new Date(i.timestamp || 0).getTime()
711
+ (i, d) => new Date(d.timestamp || 0).getTime() - new Date(i.timestamp || 0).getTime()
706
712
  );
707
- Ae(c);
713
+ N(c);
708
714
  } catch {
709
- Ae([]);
715
+ N([]);
710
716
  } finally {
711
- We(!1);
717
+ o(!1);
712
718
  }
713
719
  }
714
- }, [o]);
720
+ }, [t]);
715
721
  s.useEffect(() => {
716
- Wa(), f.length > 0 && ea();
717
- }, [f, Wa, ea]), s.useEffect(() => {
718
- J === "robot" && ue === "results" && Ha();
719
- }, [J, ue, Ha]);
720
- const Os = (a) => {
721
- ve(a), P(y[a.agent_id]), g(!0);
722
- }, Ds = async () => {
723
- if (!O || !z) {
724
- S.warning("请选择通知渠道");
722
+ Ya(), re.length > 0 && ca();
723
+ }, [re, Ya, ca]), s.useEffect(() => {
724
+ v === "robot" && ne === "results" && Za();
725
+ }, [v, ne, Za]);
726
+ const qs = (a) => {
727
+ De(a), ke(ue[a.agent_id]), M(!0);
728
+ }, Ws = async () => {
729
+ if (!Q || !te) {
730
+ k.warning("请选择通知渠道");
725
731
  return;
726
732
  }
727
733
  try {
728
- Ee(!0), await In(
734
+ Ze(!0), await Tn(
729
735
  {},
730
736
  {
731
- agent_id: O.agent_id,
732
- webhook_id: z
737
+ agent_id: Q.agent_id,
738
+ webhook_id: te
733
739
  }
734
- ), S.success("绑定成功"), g(!1), await ea();
740
+ ), k.success("绑定成功"), M(!1), await ca();
735
741
  } catch (a) {
736
- S.error((a == null ? void 0 : a.message) || "绑定失败");
742
+ k.error((a == null ? void 0 : a.message) || "绑定失败");
737
743
  } finally {
738
- Ee(!1);
744
+ Ze(!1);
739
745
  }
740
- }, Fs = async () => {
741
- if (O)
746
+ }, Hs = async () => {
747
+ if (Q)
742
748
  try {
743
- Ee(!0), await An(
744
- O.agent_id,
749
+ Ze(!0), await Fn(
750
+ Q.agent_id,
745
751
  {}
746
- ), S.success("解绑成功"), g(!1), P(void 0), await ea();
752
+ ), k.success("解绑成功"), M(!1), ke(void 0), await ca();
747
753
  } catch (a) {
748
- S.error((a == null ? void 0 : a.message) || "解绑失败");
754
+ k.error((a == null ? void 0 : a.message) || "解绑失败");
749
755
  } finally {
750
- Ee(!1);
756
+ Ze(!1);
751
757
  }
752
- }, ua = s.useMemo(() => w ? Le.filter((a) => {
758
+ }, _a = s.useMemo(() => ee ? w.filter((a) => {
753
759
  var i;
754
760
  const n = (i = a.title) == null ? void 0 : i.match(/^(.+?)\s*巡检结果$/);
755
- return (n ? n[1] : a.agent_name) === w;
756
- }) : Le, [Le, w]), Vs = (a) => {
761
+ return (n ? n[1] : a.agent_name) === ee;
762
+ }) : w, [w, ee]), Us = (a) => {
757
763
  if (!a) return "";
758
764
  try {
759
765
  return new Date(a).toLocaleString("zh-CN", {
@@ -765,27 +771,27 @@ function go({
765
771
  } catch {
766
772
  return a;
767
773
  }
768
- }, ma = s.useCallback(
774
+ }, ba = s.useCallback(
769
775
  (a, n, c) => {
770
- if (Se(!1), n) {
771
- ne({
776
+ if ($e(!1), n) {
777
+ ce({
772
778
  message: a,
773
779
  playbook_id: n
774
780
  });
775
781
  return;
776
782
  }
777
- Ze(a, void 0, c);
783
+ na(a, void 0, c);
778
784
  },
779
- [ne, Ze]
780
- ), Bs = s.useCallback((a) => {
781
- U(a), re(
782
- a === "all" ? _a : a === "map" ? xa : ts
785
+ [ce, na]
786
+ ), Ks = s.useCallback((a) => {
787
+ U(a), pe(
788
+ a === "all" ? ya : a === "map" ? wa : ds
783
789
  ), H(""), B(null), K([]), X({});
784
- }, []), zs = s.useCallback(() => {
785
- U("all"), re(_a), H(""), B(null), K([]), X({}), E(!0);
786
- }, []), qs = s.useCallback(() => {
790
+ }, []), Gs = s.useCallback(() => {
791
+ U("all"), pe(ya), H(""), B(null), K([]), X({}), E(!0);
792
+ }, []), Qs = s.useCallback(() => {
787
793
  E(!1), B(null), K([]), X({});
788
- }, []), ye = s.useCallback(
794
+ }, []), je = s.useCallback(
789
795
  (a, n = {}) => {
790
796
  B({
791
797
  key: a.playbook_id,
@@ -797,20 +803,43 @@ function go({
797
803
  categoryKey: "",
798
804
  input_fields: a.input_fields || []
799
805
  });
800
- const c = hs(a.input_fields || []);
801
- K(c), X(xs(c, n));
806
+ const c = fs(a.input_fields || []);
807
+ K(c), X(ys(c, n)), ye({}), b({});
802
808
  },
803
809
  []
804
- ), Ws = s.useCallback(
810
+ ), Ys = s.useCallback(
811
+ (a, n) => async ({ file: c, onSuccess: i, onError: d }) => {
812
+ var m, y;
813
+ ye((x) => ({ ...x, [a]: !0 }));
814
+ try {
815
+ const x = c, P = await va(x), Me = (m = P == null ? void 0 : P.data) == null ? void 0 : m.url, He = ((y = P == null ? void 0 : P.data) == null ? void 0 : y.name) || x.name;
816
+ if (!Me) throw new Error("上传结果缺少文件地址");
817
+ b((be) => ({ ...be, [Me]: He })), X((be) => {
818
+ if (n <= 1) return { ...be, [a]: Me };
819
+ const cn = Array.isArray(be[a]) ? be[a] : be[a] ? [be[a]] : [];
820
+ return { ...be, [a]: [...cn, Me] };
821
+ }), i == null || i(P), k.success("上传成功");
822
+ } catch (x) {
823
+ const P = x instanceof Error ? x : new Error("上传失败");
824
+ d == null || d(P), k.error(P.message);
825
+ } finally {
826
+ ye((x) => ({
827
+ ...x,
828
+ [a]: !1
829
+ }));
830
+ }
831
+ },
832
+ []
833
+ ), Zs = s.useCallback(
805
834
  async (a) => {
806
835
  var c;
807
- if (M || W) return;
836
+ if (T || W) return;
808
837
  const n = String(a.playbook_id || "").trim();
809
838
  if (!n) {
810
- S.error("场景缺少 playbook_id");
839
+ k.error("场景缺少 playbook_id");
811
840
  return;
812
841
  }
813
- oe(n);
842
+ le(n);
814
843
  try {
815
844
  const i = {
816
845
  category: null,
@@ -823,129 +852,129 @@ function go({
823
852
  scope: "",
824
853
  status: "available",
825
854
  sub_category: null,
826
- tags: a.tags.map((N) => N.name),
855
+ tags: a.tags.map((y) => y.name),
827
856
  type: "",
828
857
  version: "",
829
858
  input_fields: a.input_fields,
830
859
  video_url: a.video_url,
831
860
  video_duration: a.video_duration,
832
861
  view_count: a.view_count
833
- }, { data: u } = await fa({
862
+ }, { data: d } = await ja({
834
863
  playbook_id: n
835
864
  });
836
- if (!u || typeof u != "object" || Array.isArray(u))
865
+ if (!d || typeof d != "object" || Array.isArray(d))
837
866
  throw new Error("场景详情为空");
838
- const m = es(i, u);
867
+ const m = cs(i, d);
839
868
  if (E(!1), (c = m.input_fields) != null && c.length) {
840
- ye(m);
869
+ je(m);
841
870
  return;
842
871
  }
843
- ma(m.name, m.playbook_id), I == null || I(a);
872
+ ba(m.name, m.playbook_id), $ == null || $(a);
844
873
  } catch (i) {
845
- const u = i instanceof Error ? i.message : "场景加载失败";
846
- S.error(u);
874
+ const d = i instanceof Error ? i.message : "场景加载失败";
875
+ k.error(d);
847
876
  } finally {
848
- oe("");
877
+ le("");
849
878
  }
850
879
  },
851
880
  [
852
- M,
853
- ye,
854
- ma,
855
- I,
881
+ T,
882
+ je,
883
+ ba,
884
+ $,
856
885
  W
857
886
  ]
858
- ), Ua = s.useCallback(
887
+ ), Ja = s.useCallback(
859
888
  async (a) => {
860
- if (!M) {
861
- if (Se(!1), a.input_fields && a.input_fields.length > 0) {
862
- ye(a);
889
+ if (!T) {
890
+ if ($e(!1), a.input_fields && a.input_fields.length > 0) {
891
+ je(a);
863
892
  return;
864
893
  }
865
894
  try {
866
- await ne({
895
+ await ce({
867
896
  message: a.name,
868
897
  playbook_id: a.playbook_id
869
898
  });
870
899
  } catch (n) {
871
900
  const c = n instanceof Error ? n.message : "执行失败";
872
- S.error(c);
901
+ k.error(c);
873
902
  }
874
903
  }
875
904
  },
876
- [M, ne, ye]
877
- ), Hs = s.useCallback(
905
+ [T, ce, je]
906
+ ), Js = s.useCallback(
878
907
  async (a) => {
879
908
  var c;
880
- if (M || ca) return;
909
+ if (T || ua) return;
881
910
  const n = String(a.playbook_id || "").trim();
882
911
  if (n) {
883
- Ea(n), Se(!1);
912
+ Oa(n), $e(!1);
884
913
  try {
885
- const i = rn(a), u = await qa(a);
886
- if ((c = u.input_fields) != null && c.length) {
887
- ye(u, i);
914
+ const i = xn(a), d = await Qa(a);
915
+ if ((c = d.input_fields) != null && c.length) {
916
+ je(d, i);
888
917
  return;
889
918
  }
890
- await ne({
891
- message: u.name,
892
- playbook_id: u.playbook_id
919
+ await ce({
920
+ message: d.name,
921
+ playbook_id: d.playbook_id
893
922
  });
894
923
  } catch (i) {
895
- const u = i instanceof Error ? i.message : "场景参数加载失败";
896
- S.error(u);
924
+ const d = i instanceof Error ? i.message : "场景参数加载失败";
925
+ k.error(d);
897
926
  } finally {
898
- Ea("");
927
+ Oa("");
899
928
  }
900
929
  }
901
930
  },
902
931
  [
903
- M,
904
- ne,
905
- ye,
906
- qa,
907
- ca
932
+ T,
933
+ ce,
934
+ je,
935
+ Qa,
936
+ ua
908
937
  ]
909
- ), Us = s.useCallback(async () => {
910
- if (!A || M) return;
911
- const n = na(Z, G).filter(
912
- (u) => u.required && ja(G[u.name])
938
+ ), Xs = s.useCallback(async () => {
939
+ if (!A || T) return;
940
+ const n = ra(J, G).filter(
941
+ (d) => d.required && Sa(G[d.name])
913
942
  );
914
943
  if (n.length > 0) {
915
- S.warning(`请先填写 ${n.length} 项必填参数`);
944
+ k.warning(`请先填写 ${n.length} 项必填参数`);
916
945
  return;
917
946
  }
918
- E(!1), Se(!1);
947
+ E(!1), $e(!1);
919
948
  const c = A, i = G;
920
949
  B(null), K([]), X({});
921
950
  try {
922
- const u = c.title || (_ == null ? void 0 : _.trim()) || "执行场景";
923
- await ne({
924
- message: u,
951
+ const d = c.title || (_ == null ? void 0 : _.trim()) || "执行场景";
952
+ await ce({
953
+ message: d,
925
954
  playbook_id: c.playbook_id,
926
955
  playbook_params: i
927
- }), I == null || I(c);
928
- } catch (u) {
929
- const m = u instanceof Error ? u.message : "执行失败";
930
- S.error(m);
956
+ }), $ == null || $(c);
957
+ } catch (d) {
958
+ const m = d instanceof Error ? d.message : "执行失败";
959
+ k.error(m);
931
960
  }
932
961
  }, [
933
962
  A,
934
- Z,
963
+ J,
935
964
  G,
936
- M,
937
- ne,
965
+ T,
966
+ ce,
938
967
  _,
939
- I
940
- ]), Ks = s.useCallback((a) => {
941
- De.current += 1, Oe({
942
- requestId: ++Ke.current,
968
+ $
969
+ ]), en = s.useCallback((a) => {
970
+ qe.current += 1, ze({
971
+ requestId: ++Xe.current,
943
972
  playbooks: a
944
973
  });
945
- }, []), Gs = s.useCallback(() => {
946
- const a = ++De.current;
947
- Oe({
948
- requestId: ++Ke.current,
974
+ }, []), an = s.useCallback(() => {
975
+ const a = ++qe.current;
976
+ ze({
977
+ requestId: ++Xe.current,
949
978
  playbooks: [],
950
979
  loading: !0
951
980
  }), (async () => {
@@ -953,38 +982,38 @@ function go({
953
982
  window.requestAnimationFrame(() => n());
954
983
  });
955
984
  try {
956
- const { data: n } = await dn({
957
- agent_id: o
985
+ const { data: n } = await _n({
986
+ agent_id: t
958
987
  });
959
- if (a !== De.current) return;
960
- Oe({
961
- requestId: ++Ke.current,
962
- playbooks: yo(n)
988
+ if (a !== qe.current) return;
989
+ ze({
990
+ requestId: ++Xe.current,
991
+ playbooks: Ct(n)
963
992
  });
964
993
  } catch {
965
- if (a !== De.current) return;
966
- S.error("我的场景加载失败"), Oe({
967
- requestId: ++Ke.current,
994
+ if (a !== qe.current) return;
995
+ k.error("我的场景加载失败"), ze({
996
+ requestId: ++Xe.current,
968
997
  playbooks: []
969
998
  });
970
999
  }
971
1000
  })();
972
- }, [o]), Qs = s.useCallback((a) => {
973
- Oe(
1001
+ }, [t]), sn = s.useCallback((a) => {
1002
+ ze(
974
1003
  (n) => (n == null ? void 0 : n.requestId) === a ? void 0 : n
975
1004
  );
976
- }, []), Ys = /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-chat__scene-quick", children: [
1005
+ }, []), nn = /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-chat__scene-quick", children: [
977
1006
  /* @__PURE__ */ e.jsx(
978
- wa,
1007
+ ka,
979
1008
  {
980
1009
  menu: {
981
- selectedKeys: [la],
1010
+ selectedKeys: [ma],
982
1011
  items: [
983
1012
  { key: "all", label: "全部场景" },
984
1013
  { key: "map", label: "使用地图" }
985
1014
  ],
986
1015
  onClick: ({ key: a }) => {
987
- De.current += 1, Ns(a);
1016
+ qe.current += 1, Is(a);
988
1017
  }
989
1018
  },
990
1019
  trigger: ["click"],
@@ -994,9 +1023,9 @@ function go({
994
1023
  {
995
1024
  type: "button",
996
1025
  className: "wandox-console-chat__scene-source",
997
- disabled: M,
1026
+ disabled: T,
998
1027
  children: [
999
- /* @__PURE__ */ e.jsx("span", { children: la === "map" ? "使用地图" : "全部场景" }),
1028
+ /* @__PURE__ */ e.jsx("span", { children: ma === "map" ? "使用地图" : "全部场景" }),
1000
1029
  /* @__PURE__ */ e.jsx(
1001
1030
  "svg",
1002
1031
  {
@@ -1016,32 +1045,32 @@ function go({
1016
1045
  }
1017
1046
  ),
1018
1047
  /* @__PURE__ */ e.jsx("span", { className: "wandox-console-chat__scene-separator", "aria-hidden": !0, children: "|" }),
1019
- /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__scene-categories", children: Is.map((a) => /* @__PURE__ */ e.jsx(
1048
+ /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__scene-categories", children: Ts.map((a) => /* @__PURE__ */ e.jsx(
1020
1049
  "button",
1021
1050
  {
1022
1051
  type: "button",
1023
1052
  className: "wandox-console-chat__choose-scene",
1024
- disabled: M,
1025
- onClick: () => a.key === "__my__" ? Gs() : Ks(a.playbooks),
1053
+ disabled: T,
1054
+ onClick: () => a.key === "__my__" ? an() : en(a.playbooks),
1026
1055
  children: a.label
1027
1056
  },
1028
1057
  a.key
1029
1058
  )) })
1030
- ] }), Ka = s.useCallback(async (a) => {
1059
+ ] }), Xa = s.useCallback(async (a) => {
1031
1060
  var m;
1032
1061
  const n = (m = a.meta_content) != null && m.playbook_id ? "数据报表" : "对话内容", c = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
1033
- if (un(a)) {
1034
- const N = mn(a);
1035
- if (!N) {
1036
- S.warning("没有可导出的表格数据");
1062
+ if (bn(a)) {
1063
+ const y = fn(a);
1064
+ if (!y) {
1065
+ k.warning("没有可导出的表格数据");
1037
1066
  return;
1038
1067
  }
1039
- const j = N.fields.map((pa) => pa.label).join(","), ge = N.rows.map(
1040
- (pa) => N.fields.map((en) => hn(pa[en.name])).join(",")
1041
- ), Xs = `\uFEFF${[j, ...ge].join(`
1068
+ const x = y.fields.map((He) => He.label).join(","), P = y.rows.map(
1069
+ (He) => y.fields.map((be) => wn(He[be.name])).join(",")
1070
+ ), Me = `\uFEFF${[x, ...P].join(`
1042
1071
  `)}`;
1043
- pn(
1044
- new Blob([Xs], { type: "text/csv;charset=utf-8;" }),
1072
+ yn(
1073
+ new Blob([Me], { type: "text/csv;charset=utf-8;" }),
1045
1074
  `${n}_${c}.csv`
1046
1075
  );
1047
1076
  return;
@@ -1050,141 +1079,141 @@ function go({
1050
1079
  `[data-message-id="${a.message_id || a.id}"] .wandox-message-content`
1051
1080
  );
1052
1081
  if (!i) {
1053
- S.warning("无法定位消息内容");
1082
+ k.warning("无法定位消息内容");
1054
1083
  return;
1055
1084
  }
1056
- const u = window.open("", "_blank");
1057
- if (!u) {
1058
- S.warning("请允许弹出窗口");
1085
+ const d = window.open("", "_blank");
1086
+ if (!d) {
1087
+ k.warning("请允许弹出窗口");
1059
1088
  return;
1060
1089
  }
1061
- u.document.write(
1090
+ d.document.write(
1062
1091
  `<!DOCTYPE html><html><head><meta charset="utf-8"><title>${n}_${c}</title><style>body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;padding:20px;color:#333}table{border-collapse:collapse;width:100%}th,td{border:1px solid #d9d9d9;padding:6px 8px;font-size:13px;text-align:left}th{background:#fafafa}img{max-width:100%}pre{white-space:pre-wrap;word-break:break-all;font-size:12px;background:#f5f5f5;padding:12px;border-radius:4px}button,.ant-btn,.ant-tooltip-open{display:none!important}</style></head><body>${i.innerHTML}</body></html>`
1063
- ), u.document.close(), u.onload = () => {
1064
- u.print(), u.close();
1092
+ ), d.document.close(), d.onload = () => {
1093
+ d.print(), d.close();
1065
1094
  };
1066
- }, []), Ga = s.useCallback(
1095
+ }, []), es = s.useCallback(
1067
1096
  (a) => {
1068
- var u, m, N;
1069
- const n = we.find(
1070
- (j) => j.message_id === a || j.id === a
1071
- ), c = xn(n);
1097
+ var d, m, y;
1098
+ const n = ge.find(
1099
+ (x) => x.message_id === a || x.id === a
1100
+ ), c = gn(n);
1072
1101
  if (!c) {
1073
- S.warning("缺少场景 ID,无法配置定时触发");
1102
+ k.warning("缺少场景 ID,无法配置定时触发");
1074
1103
  return;
1075
1104
  }
1076
- const i = ((m = (u = n == null ? void 0 : n.actions) == null ? void 0 : u.find((j) => j.playbook_id === c)) == null ? void 0 : m.display_name) || ((N = n == null ? void 0 : n.meta_content) == null ? void 0 : N.playbook_name) || c;
1077
- Pa({
1105
+ const i = ((m = (d = n == null ? void 0 : n.actions) == null ? void 0 : d.find((x) => x.playbook_id === c)) == null ? void 0 : m.display_name) || ((y = n == null ? void 0 : n.meta_content) == null ? void 0 : y.playbook_name) || c;
1106
+ Da({
1078
1107
  visible: !0,
1079
1108
  messageId: a,
1080
- agentId: o,
1109
+ agentId: t,
1081
1110
  playbookId: c,
1082
1111
  playbookName: i
1083
1112
  });
1084
1113
  },
1085
- [o, we]
1086
- ), Zs = s.useCallback(() => {
1087
- Pa(Xa);
1088
- }, []), aa = s.useCallback(
1114
+ [t, ge]
1115
+ ), tn = s.useCallback(() => {
1116
+ Da(os);
1117
+ }, []), la = s.useCallback(
1089
1118
  (a) => {
1090
1119
  const n = a.message_id;
1091
- return n && Object.prototype.hasOwnProperty.call(ia, n) ? ia[n] : _n(a);
1120
+ return n && Object.prototype.hasOwnProperty.call(ha, n) ? ha[n] : jn(a);
1092
1121
  },
1093
- [ia]
1094
- ), Qa = s.useCallback(
1122
+ [ha]
1123
+ ), as = s.useCallback(
1095
1124
  async (a, n, c) => {
1096
- var N;
1125
+ var y;
1097
1126
  const i = a.message_id;
1098
- if (!i || Qe.has(i)) return !1;
1099
- const u = aa(a), m = En(
1100
- u,
1127
+ if (!i || aa.has(i)) return !1;
1128
+ const d = la(a), m = On(
1129
+ d,
1101
1130
  n
1102
1131
  );
1103
- La((j) => ({
1104
- ...j,
1132
+ Va((x) => ({
1133
+ ...x,
1105
1134
  [i]: m
1106
- })), Ma((j) => new Set(j).add(i));
1135
+ })), Ba((x) => new Set(x).add(i));
1107
1136
  try {
1108
- const j = await bn(
1109
- { domain: R },
1137
+ const x = await vn(
1138
+ { domain: S },
1110
1139
  {
1111
1140
  message_id: i,
1112
1141
  rating: m,
1113
- tags: (N = c == null ? void 0 : c.tags) != null && N.length ? c.tags : void 0,
1142
+ tags: (y = c == null ? void 0 : c.tags) != null && y.length ? c.tags : void 0,
1114
1143
  text: (c == null ? void 0 : c.text) || void 0
1115
1144
  }
1116
1145
  );
1117
- if ((j == null ? void 0 : j.success) === !1)
1118
- throw new Error(j.message || "反馈提交失败");
1146
+ if ((x == null ? void 0 : x.success) === !1)
1147
+ throw new Error(x.message || "反馈提交失败");
1119
1148
  return !0;
1120
- } catch (j) {
1121
- return La((ge) => ({
1122
- ...ge,
1123
- [i]: u
1124
- })), S.error(
1125
- j instanceof Error ? j.message : "反馈提交失败,请稍后重试"
1149
+ } catch (x) {
1150
+ return Va((P) => ({
1151
+ ...P,
1152
+ [i]: d
1153
+ })), k.error(
1154
+ x instanceof Error ? x.message : "反馈提交失败,请稍后重试"
1126
1155
  ), !1;
1127
1156
  } finally {
1128
- Ma((j) => {
1129
- const ge = new Set(j);
1130
- return ge.delete(i), ge;
1157
+ Ba((x) => {
1158
+ const P = new Set(x);
1159
+ return P.delete(i), P;
1131
1160
  });
1132
1161
  }
1133
1162
  },
1134
- [Qe, aa, R]
1135
- ), Ya = s.useCallback(
1163
+ [aa, la, S]
1164
+ ), ss = s.useCallback(
1136
1165
  async (a) => {
1137
- Se(!1);
1166
+ $e(!1);
1138
1167
  try {
1139
- await Da(a);
1168
+ await Wa(a);
1140
1169
  } catch (n) {
1141
1170
  const c = n instanceof Error ? n.message : "重新生成失败";
1142
- S.error(c);
1171
+ k.error(c);
1143
1172
  }
1144
1173
  },
1145
- [Da]
1146
- ), Za = s.useCallback(() => {
1147
- Se((a) => !a);
1148
- }, []), Ja = s.useCallback(
1174
+ [Wa]
1175
+ ), ns = s.useCallback(() => {
1176
+ $e((a) => !a);
1177
+ }, []), ts = s.useCallback(
1149
1178
  (a, n) => {
1150
1179
  if (a.role !== "assistant" || a.execution_status === "executing") return null;
1151
- const i = n && a.id === Ue && Me.length > 0, u = Te ? "隐藏推荐" : i ? `显示推荐(${Me.length})` : "推荐";
1180
+ const i = n && a.id === Je && Ve.length > 0, d = Be ? "隐藏推荐" : i ? `显示推荐(${Ve.length})` : "推荐";
1152
1181
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1153
1182
  /* @__PURE__ */ e.jsx(
1154
- fn,
1183
+ kn,
1155
1184
  {
1156
1185
  msg: a,
1157
- domain: R,
1158
- onExportMessage: Ka,
1186
+ domain: S,
1187
+ onExportMessage: Xa,
1159
1188
  exportIcon: "copy",
1160
1189
  showSolidify: !1,
1161
- onOpenScheduleDialog: Ga,
1162
- onRetrigger: Ya,
1163
- feedbackRating: aa(a),
1164
- feedbackPending: !!a.message_id && Qe.has(a.message_id),
1165
- onFeedback: Qa,
1166
- extraActions: i ? /* @__PURE__ */ e.jsx(us, { title: u, children: /* @__PURE__ */ e.jsxs(
1190
+ onOpenScheduleDialog: es,
1191
+ onRetrigger: ss,
1192
+ feedbackRating: la(a),
1193
+ feedbackPending: !!a.message_id && aa.has(a.message_id),
1194
+ onFeedback: as,
1195
+ extraActions: i ? /* @__PURE__ */ e.jsx(_s, { title: d, children: /* @__PURE__ */ e.jsxs(
1167
1196
  "button",
1168
1197
  {
1169
1198
  type: "button",
1170
- className: `wandox-console-chat__toolbar-toggle${Te ? " is-active" : ""}`,
1171
- "aria-label": u,
1172
- "aria-expanded": Te,
1173
- onClick: Za,
1199
+ className: `wandox-console-chat__toolbar-toggle${Be ? " is-active" : ""}`,
1200
+ "aria-label": d,
1201
+ "aria-expanded": Be,
1202
+ onClick: ns,
1174
1203
  children: [
1175
- /* @__PURE__ */ e.jsx(ho, {}),
1176
- /* @__PURE__ */ e.jsx("span", { className: "wandox-console-chat__toolbar-toggle-count", children: Me.length })
1204
+ /* @__PURE__ */ e.jsx(wt, {}),
1205
+ /* @__PURE__ */ e.jsx("span", { className: "wandox-console-chat__toolbar-toggle-count", children: Ve.length })
1177
1206
  ]
1178
1207
  }
1179
1208
  ) }) : null
1180
1209
  }
1181
1210
  ),
1182
- i && Te && /* @__PURE__ */ e.jsx(
1211
+ i && Be && /* @__PURE__ */ e.jsx(
1183
1212
  "ul",
1184
1213
  {
1185
1214
  className: "wandox-console-chat__recommendations",
1186
1215
  "aria-label": "推荐场景",
1187
- children: Me.map((m, N) => /* @__PURE__ */ e.jsx(
1216
+ children: Ve.map((m, y) => /* @__PURE__ */ e.jsx(
1188
1217
  "li",
1189
1218
  {
1190
1219
  className: "wandox-console-chat__recommendations-item",
@@ -1193,56 +1222,56 @@ function go({
1193
1222
  {
1194
1223
  type: "button",
1195
1224
  className: "wandox-console-chat__recommendations-pill",
1196
- disabled: M,
1225
+ disabled: T,
1197
1226
  onClick: () => {
1198
- Ua(m);
1227
+ Ja(m);
1199
1228
  },
1200
1229
  title: m.description || m.name,
1201
1230
  children: [
1202
1231
  /* @__PURE__ */ e.jsx("span", { className: "wandox-console-chat__recommendations-pill-label", children: m.name }),
1203
- /* @__PURE__ */ e.jsx("span", { className: "wandox-console-chat__recommendations-pill-arrow", children: /* @__PURE__ */ e.jsx(va, {}) })
1232
+ /* @__PURE__ */ e.jsx("span", { className: "wandox-console-chat__recommendations-pill-arrow", children: /* @__PURE__ */ e.jsx(Ra, {}) })
1204
1233
  ]
1205
1234
  }
1206
1235
  )
1207
1236
  },
1208
- `${m.playbook_id || m.name}-${N}`
1237
+ `${m.playbook_id || m.name}-${y}`
1209
1238
  ))
1210
1239
  }
1211
1240
  )
1212
1241
  ] });
1213
1242
  },
1214
1243
  [
1215
- M,
1216
- Qe,
1244
+ T,
1217
1245
  aa,
1218
- Ua,
1219
- Ka,
1220
- Qa,
1221
- Ga,
1222
- Ya,
1223
- Me,
1224
- Ue,
1225
- Te,
1226
- R,
1227
- Za
1246
+ la,
1247
+ Ja,
1248
+ Xa,
1249
+ as,
1250
+ es,
1251
+ ss,
1252
+ Ve,
1253
+ Je,
1254
+ Be,
1255
+ S,
1256
+ ns
1228
1257
  ]
1229
- ), ha = s.useCallback(
1258
+ ), fa = s.useCallback(
1230
1259
  (a, n) => {
1231
- Ne(a), Re(n), je(!0);
1260
+ Ce(a), Ae(n), ve(!0);
1232
1261
  },
1233
1262
  []
1234
- ), Js = s.useMemo(
1263
+ ), on = s.useMemo(
1235
1264
  () => /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-chat__body", children: [
1236
1265
  /* @__PURE__ */ e.jsx(
1237
- wn,
1266
+ Nn,
1238
1267
  {
1239
- messages: we,
1240
- executing: M,
1268
+ messages: ge,
1269
+ executing: T,
1241
1270
  ssoToken: L,
1242
- ssoDomain: R,
1271
+ ssoDomain: S,
1243
1272
  ssoCompany: h,
1244
- onExecutePlaybook: ne,
1245
- onFillPlaybookParams: (a) => ye(
1273
+ onExecutePlaybook: ce,
1274
+ onFillPlaybookParams: (a) => je(
1246
1275
  {
1247
1276
  category: null,
1248
1277
  domain: "",
@@ -1260,40 +1289,40 @@ function go({
1260
1289
  },
1261
1290
  a.initialParams ?? {}
1262
1291
  ),
1263
- onRespondToProposal: Oa,
1264
- containerRef: D,
1265
- messagesTotal: Fa,
1266
- loadMoreMessages: za,
1267
- loading: Va,
1268
- initialLoadingContent: /* @__PURE__ */ e.jsx(yn, {}),
1269
- conversationKey: o,
1270
- messageToolbar: Ja,
1271
- onOpenActionDrawer: ha
1292
+ onRespondToProposal: qa,
1293
+ containerRef: O,
1294
+ messagesTotal: Ha,
1295
+ loadMoreMessages: Ga,
1296
+ loading: Ua,
1297
+ initialLoadingContent: /* @__PURE__ */ e.jsx(Cn, {}),
1298
+ conversationKey: t,
1299
+ messageToolbar: ts,
1300
+ onOpenActionDrawer: fa
1272
1301
  }
1273
1302
  ),
1274
1303
  /* @__PURE__ */ e.jsx(
1275
- gn,
1304
+ Sn,
1276
1305
  {
1277
- messages: we,
1278
- scrollContainerRef: D,
1306
+ messages: ge,
1307
+ scrollContainerRef: O,
1279
1308
  mode: "deepseek"
1280
1309
  }
1281
1310
  )
1282
1311
  ] }),
1283
1312
  [
1284
- o,
1285
- ne,
1286
- M,
1287
- ye,
1288
- za,
1289
- we,
1290
- Va,
1291
- Fa,
1292
- ha,
1293
- Ja,
1294
- Oa,
1313
+ t,
1314
+ ce,
1315
+ T,
1316
+ je,
1317
+ Ga,
1318
+ ge,
1319
+ Ua,
1320
+ Ha,
1321
+ fa,
1322
+ ts,
1323
+ qa,
1295
1324
  h,
1296
- R,
1325
+ S,
1297
1326
  L
1298
1327
  ]
1299
1328
  );
@@ -1306,27 +1335,27 @@ function go({
1306
1335
  {
1307
1336
  type: "button",
1308
1337
  className: "wandox-console-chat__back",
1309
- onClick: le,
1338
+ onClick: me,
1310
1339
  children: [
1311
- /* @__PURE__ */ e.jsx(_s, {}),
1340
+ /* @__PURE__ */ e.jsx(gs, {}),
1312
1341
  /* @__PURE__ */ e.jsx("span", { children: "返回" })
1313
1342
  ]
1314
1343
  }
1315
1344
  ),
1316
1345
  /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__agent-selector", children: /* @__PURE__ */ e.jsx(
1317
- wa,
1346
+ ka,
1318
1347
  {
1319
1348
  menu: {
1320
- items: ae.map((a) => ({
1349
+ items: Y.map((a) => ({
1321
1350
  key: a.id,
1322
- disabled: a.id === o,
1351
+ disabled: a.id === t,
1323
1352
  label: /* @__PURE__ */ e.jsxs("span", { className: "wandox-console-agent-menu-item", children: [
1324
1353
  /* @__PURE__ */ e.jsx("span", { className: "wandox-console-agent-menu-item__icon", children: a.icon }),
1325
1354
  /* @__PURE__ */ e.jsx("span", { className: "wandox-console-agent-menu-item__name", children: a.name }),
1326
- a.id === o && /* @__PURE__ */ e.jsx(jn, { className: "wandox-console-agent-menu-item__check" })
1355
+ a.id === t && /* @__PURE__ */ e.jsx(Rn, { className: "wandox-console-agent-menu-item__check" })
1327
1356
  ] })
1328
1357
  })),
1329
- onClick: ({ key: a }) => Q == null ? void 0 : Q(a)
1358
+ onClick: ({ key: a }) => z == null ? void 0 : z(a)
1330
1359
  },
1331
1360
  trigger: ["click"],
1332
1361
  placement: "bottomLeft",
@@ -1338,9 +1367,9 @@ function go({
1338
1367
  "aria-label": "切换智能体",
1339
1368
  title: "切换智能体",
1340
1369
  children: [
1341
- (he == null ? void 0 : he.icon) && /* @__PURE__ */ e.jsx("span", { className: "wandox-console-chat__title-icon", children: he.icon }),
1342
- /* @__PURE__ */ e.jsx("span", { className: "wandox-console-chat__title-name", children: l || (he == null ? void 0 : he.name) || "智能体" }),
1343
- /* @__PURE__ */ e.jsx(ps, { className: "wandox-console-chat__title-arrow" })
1370
+ (_e == null ? void 0 : _e.icon) && /* @__PURE__ */ e.jsx("span", { className: "wandox-console-chat__title-icon", children: _e.icon }),
1371
+ /* @__PURE__ */ e.jsx("span", { className: "wandox-console-chat__title-name", children: l || (_e == null ? void 0 : _e.name) || "智能体" }),
1372
+ /* @__PURE__ */ e.jsx(ws, { className: "wandox-console-chat__title-arrow" })
1344
1373
  ]
1345
1374
  }
1346
1375
  )
@@ -1351,23 +1380,23 @@ function go({
1351
1380
  {
1352
1381
  type: "button",
1353
1382
  className: "wandox-console-chat__all-scenes",
1354
- disabled: M,
1355
- onClick: zs,
1383
+ disabled: T,
1384
+ onClick: Gs,
1356
1385
  children: [
1357
- /* @__PURE__ */ e.jsx(ao, {}),
1386
+ /* @__PURE__ */ e.jsx(it, {}),
1358
1387
  /* @__PURE__ */ e.jsx("span", { children: "全部场景" })
1359
1388
  ]
1360
1389
  }
1361
1390
  ),
1362
- /* @__PURE__ */ e.jsx(bs, { benefit: he == null ? void 0 : he.packageBenefit })
1391
+ /* @__PURE__ */ e.jsx(js, { benefit: _e == null ? void 0 : _e.packageBenefit })
1363
1392
  ] }),
1364
1393
  /* @__PURE__ */ e.jsxs("nav", { className: "wandox-console-chat__topbar", children: [
1365
1394
  /* @__PURE__ */ e.jsx(
1366
1395
  "button",
1367
1396
  {
1368
1397
  type: "button",
1369
- className: `wandox-console-chat__topbar-tab ${J === "chat" ? "active" : ""}`,
1370
- onClick: () => x("chat"),
1398
+ className: `wandox-console-chat__topbar-tab ${v === "chat" ? "active" : ""}`,
1399
+ onClick: () => Te("chat"),
1371
1400
  children: "智能体会话"
1372
1401
  }
1373
1402
  ),
@@ -1375,38 +1404,38 @@ function go({
1375
1404
  "button",
1376
1405
  {
1377
1406
  type: "button",
1378
- className: `wandox-console-chat__topbar-tab ${J === "robot" ? "active" : ""}`,
1407
+ className: `wandox-console-chat__topbar-tab ${v === "robot" ? "active" : ""}`,
1379
1408
  onClick: () => {
1380
- x("robot"), Ce(null);
1409
+ Te("robot"), Se(null);
1381
1410
  },
1382
1411
  children: /* @__PURE__ */ e.jsx("span", { children: "巡检机器人" })
1383
1412
  }
1384
1413
  )
1385
1414
  ] }),
1386
- J === "chat" ? Js : /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-chat__robot", children: [
1387
- /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-chips", children: f.length === 0 ? /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-empty", children: "该智能体暂无巡检机器人" }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1388
- f.length > 0 && /* @__PURE__ */ e.jsx(
1415
+ v === "chat" ? on : /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-chat__robot", children: [
1416
+ /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-chips", children: re.length === 0 ? /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-empty", children: "该智能体暂无巡检机器人" }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1417
+ re.length > 0 && /* @__PURE__ */ e.jsx(
1389
1418
  "button",
1390
1419
  {
1391
1420
  type: "button",
1392
- className: `wandox-console-chat__robot-chip ${w === null ? "active" : ""}`,
1393
- onClick: () => Ce(null),
1421
+ className: `wandox-console-chat__robot-chip ${ee === null ? "active" : ""}`,
1422
+ onClick: () => Se(null),
1394
1423
  children: "全部"
1395
1424
  }
1396
1425
  ),
1397
- f.map((a) => {
1398
- const n = !!y[a.agent_id];
1426
+ re.map((a) => {
1427
+ const n = !!ue[a.agent_id];
1399
1428
  return /* @__PURE__ */ e.jsxs(
1400
1429
  "div",
1401
1430
  {
1402
- className: `wandox-console-chat__robot-chip-compound ${w === a.name ? "active" : ""}`,
1431
+ className: `wandox-console-chat__robot-chip-compound ${ee === a.name ? "active" : ""}`,
1403
1432
  children: [
1404
1433
  /* @__PURE__ */ e.jsx(
1405
1434
  "button",
1406
1435
  {
1407
1436
  type: "button",
1408
1437
  className: "wandox-console-chat__robot-chip-name",
1409
- onClick: () => Ce(a.name),
1438
+ onClick: () => Se(a.name),
1410
1439
  children: a.name
1411
1440
  }
1412
1441
  ),
@@ -1415,7 +1444,7 @@ function go({
1415
1444
  {
1416
1445
  type: "button",
1417
1446
  className: `wandox-console-chat__robot-chip-bind ${n ? "bound" : ""}`,
1418
- onClick: () => Os(a),
1447
+ onClick: () => qs(a),
1419
1448
  title: n ? "已绑定通知渠道,点击修改" : "绑定通知渠道",
1420
1449
  children: n ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1421
1450
  /* @__PURE__ */ e.jsx(
@@ -1427,7 +1456,7 @@ function go({
1427
1456
  ),
1428
1457
  /* @__PURE__ */ e.jsx("span", { children: "已通知" })
1429
1458
  ] }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1430
- /* @__PURE__ */ e.jsx(fs, {}),
1459
+ /* @__PURE__ */ e.jsx(vs, {}),
1431
1460
  /* @__PURE__ */ e.jsx("span", { children: "通知" })
1432
1461
  ] })
1433
1462
  }
@@ -1443,8 +1472,8 @@ function go({
1443
1472
  "button",
1444
1473
  {
1445
1474
  type: "button",
1446
- className: `wandox-console-chat__robot-tab ${ue === "results" ? "active" : ""}`,
1447
- onClick: () => Ie("results"),
1475
+ className: `wandox-console-chat__robot-tab ${ne === "results" ? "active" : ""}`,
1476
+ onClick: () => Oe("results"),
1448
1477
  children: "巡检结果"
1449
1478
  }
1450
1479
  ),
@@ -1452,35 +1481,35 @@ function go({
1452
1481
  "button",
1453
1482
  {
1454
1483
  type: "button",
1455
- className: `wandox-console-chat__robot-tab ${ue === "history" ? "active" : ""}`,
1456
- onClick: () => Ie("history"),
1484
+ className: `wandox-console-chat__robot-tab ${ne === "history" ? "active" : ""}`,
1485
+ onClick: () => Oe("history"),
1457
1486
  children: [
1458
1487
  "执行记录",
1459
- ue === "history" && w && be.length > 0 && /* @__PURE__ */ e.jsx("span", { className: "wandox-console-chat__robot-tab-badge", children: be.length })
1488
+ ne === "history" && ee && Pe.length > 0 && /* @__PURE__ */ e.jsx("span", { className: "wandox-console-chat__robot-tab-badge", children: Pe.length })
1460
1489
  ]
1461
1490
  }
1462
1491
  )
1463
1492
  ] }),
1464
- /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-content", children: ue === "results" ? ta ? /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-chat__robot-loading", children: [
1465
- /* @__PURE__ */ e.jsx(ya, { size: "small" }),
1493
+ /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-content", children: ne === "results" ? de ? /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-chat__robot-loading", children: [
1494
+ /* @__PURE__ */ e.jsx(Na, { size: "small" }),
1466
1495
  /* @__PURE__ */ e.jsx("span", { children: "加载中..." })
1467
- ] }) : ua.length === 0 ? /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-chat__robot-empty", children: [
1468
- /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-empty-icon", children: /* @__PURE__ */ e.jsx(ns, {}) }),
1469
- /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-empty-title", children: w ? `${w} 暂无巡检结果` : "暂无巡检结果" }),
1496
+ ] }) : _a.length === 0 ? /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-chat__robot-empty", children: [
1497
+ /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-empty-icon", children: /* @__PURE__ */ e.jsx(is, {}) }),
1498
+ /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-empty-title", children: ee ? `${ee} 暂无巡检结果` : "暂无巡检结果" }),
1470
1499
  /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-empty-desc", children: "巡检结果会在机器人执行后展示在这里" })
1471
- ] }) : /* @__PURE__ */ e.jsx("ul", { className: "wandox-console-chat__robot-timeline", children: ua.map((a, n) => {
1500
+ ] }) : /* @__PURE__ */ e.jsx("ul", { className: "wandox-console-chat__robot-timeline", children: _a.map((a, n) => {
1472
1501
  const c = {
1473
1502
  high: "#ff4d4f",
1474
1503
  medium: "#faad14",
1475
1504
  low: "#52c41a"
1476
- }, i = n === ua.length - 1;
1505
+ }, i = n === _a.length - 1;
1477
1506
  return /* @__PURE__ */ e.jsxs(
1478
1507
  "li",
1479
1508
  {
1480
1509
  className: "wandox-console-chat__robot-timeline-item",
1481
1510
  children: [
1482
1511
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-chat__robot-timeline-axis", children: [
1483
- /* @__PURE__ */ e.jsx("span", { className: "wandox-console-chat__robot-timeline-time", children: Vs(a.timestamp) }),
1512
+ /* @__PURE__ */ e.jsx("span", { className: "wandox-console-chat__robot-timeline-time", children: Us(a.timestamp) }),
1484
1513
  /* @__PURE__ */ e.jsx(
1485
1514
  "span",
1486
1515
  {
@@ -1495,13 +1524,13 @@ function go({
1495
1524
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-chat__robot-timeline-card", children: [
1496
1525
  /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-timeline-title", children: a.title }),
1497
1526
  a.summary && /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-timeline-summary", children: a.summary }),
1498
- a.ui_payload && /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-timeline-content wandox-markdown-content", children: /* @__PURE__ */ e.jsx(vn, { payload: a.ui_payload }) }),
1527
+ a.ui_payload && /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-timeline-content wandox-markdown-content", children: /* @__PURE__ */ e.jsx($n, { payload: a.ui_payload }) }),
1499
1528
  a.actions && a.actions.length > 0 && /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-timeline-actions", children: /* @__PURE__ */ e.jsxs(
1500
1529
  "button",
1501
1530
  {
1502
1531
  type: "button",
1503
1532
  className: "wandox-console-chat__robot-timeline-action-btn",
1504
- onClick: () => ha(
1533
+ onClick: () => fa(
1505
1534
  a.title,
1506
1535
  a.actions ?? []
1507
1536
  ),
@@ -1540,10 +1569,10 @@ function go({
1540
1569
  },
1541
1570
  a.id || `result_${n}`
1542
1571
  );
1543
- }) }) : w ? oa ? /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-chat__robot-loading", children: [
1544
- /* @__PURE__ */ e.jsx(ya, { size: "small" }),
1572
+ }) }) : ee ? da ? /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-chat__robot-loading", children: [
1573
+ /* @__PURE__ */ e.jsx(Na, { size: "small" }),
1545
1574
  /* @__PURE__ */ e.jsx("span", { children: "加载中..." })
1546
- ] }) : be.length === 0 ? /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-empty", children: /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-empty-title", children: "暂无执行记录" }) }) : /* @__PURE__ */ e.jsx("ul", { className: "wandox-console-chat__robot-history", children: be.map((a) => /* @__PURE__ */ e.jsxs(
1575
+ ] }) : Pe.length === 0 ? /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-empty", children: /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-empty-title", children: "暂无执行记录" }) }) : /* @__PURE__ */ e.jsx("ul", { className: "wandox-console-chat__robot-history", children: Pe.map((a) => /* @__PURE__ */ e.jsxs(
1547
1576
  "li",
1548
1577
  {
1549
1578
  className: `wandox-console-chat__robot-history-item wandox-console-chat__robot-history-item--${a.status}`,
@@ -1576,29 +1605,29 @@ function go({
1576
1605
  },
1577
1606
  a.id
1578
1607
  )) }) : /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-chat__robot-empty", children: [
1579
- /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-empty-icon", children: /* @__PURE__ */ e.jsx(ns, {}) }),
1608
+ /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-empty-icon", children: /* @__PURE__ */ e.jsx(is, {}) }),
1580
1609
  /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-empty-title", children: "请先选择机器人" }),
1581
1610
  /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-empty-desc", children: "在上方选择机器人以查看其执行记录" })
1582
1611
  ] }) })
1583
1612
  ] }),
1584
- J === "chat" && Ia.length > 0 && !(A && !F) && /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__recent", children: /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__recent-bar", children: Ia.map((a, n) => /* @__PURE__ */ e.jsx(
1613
+ v === "chat" && Ta.length > 0 && !(A && !D) && /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__recent", children: /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__recent-bar", children: Ta.map((a, n) => /* @__PURE__ */ e.jsx(
1585
1614
  "button",
1586
1615
  {
1587
1616
  type: "button",
1588
1617
  className: "wandox-console-chat__recent-chip",
1589
- disabled: M || !!ca,
1618
+ disabled: T || !!ua,
1590
1619
  title: a.description || a.name,
1591
1620
  onClick: () => {
1592
- Hs(a);
1621
+ Js(a);
1593
1622
  },
1594
1623
  children: a.name
1595
1624
  },
1596
1625
  `${a.playbook_id || a.name}-${n}`
1597
1626
  )) }) }),
1598
- J === "chat" && /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__input", children: A && !F ? /* @__PURE__ */ e.jsxs(
1627
+ v === "chat" && /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__input", children: A && !D ? /* @__PURE__ */ e.jsxs(
1599
1628
  "div",
1600
1629
  {
1601
- ref: pe,
1630
+ ref: fe,
1602
1631
  className: "wandox-console-input-playbook wandox-console-prompt",
1603
1632
  children: [
1604
1633
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-prompt__head", children: [
@@ -1621,37 +1650,38 @@ function go({
1621
1650
  /* @__PURE__ */ e.jsx(
1622
1651
  "div",
1623
1652
  {
1624
- ref: ke,
1653
+ ref: Ne,
1625
1654
  tabIndex: -1,
1626
1655
  className: "wandox-console-taskarea wandox-console-taskarea--static",
1627
1656
  children: A.desc || A.title
1628
1657
  }
1629
1658
  ),
1630
- Z.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-paramarea", children: [
1659
+ J.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-paramarea", children: [
1631
1660
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-paramhead", children: [
1632
- /* @__PURE__ */ e.jsx(ws, {}),
1661
+ /* @__PURE__ */ e.jsx(ks, {}),
1633
1662
  /* @__PURE__ */ e.jsx("strong", { children: "确认分析范围" }),
1634
1663
  /* @__PURE__ */ e.jsxs("span", { className: "wandox-console-paramhead__status", children: [
1635
- /* @__PURE__ */ e.jsx(ga, {}),
1664
+ /* @__PURE__ */ e.jsx(Ca, {}),
1636
1665
  " ",
1637
- _e.length > 0 ? `待填 ${_e.length} 项必填参数` : "参数已就绪"
1666
+ oe.length > 0 ? `待填 ${oe.length} 项必填参数` : "参数已就绪"
1638
1667
  ] })
1639
1668
  ] }),
1640
- /* @__PURE__ */ e.jsx("div", { className: "wandox-console-params", children: na(
1641
- Z,
1669
+ /* @__PURE__ */ e.jsx("div", { className: "wandox-console-params", children: ra(
1670
+ J,
1642
1671
  G
1643
1672
  ).map((a) => /* @__PURE__ */ e.jsx(
1644
- js,
1673
+ Ss,
1645
1674
  {
1646
1675
  field: a,
1647
1676
  value: G[a.name],
1648
- uploading: !1,
1649
- fileNameMap: {},
1650
- getOptionState: ee.getFieldState,
1677
+ uploading: !!se[a.name],
1678
+ fileNameMap: Ee,
1679
+ getOptionState: I.getFieldState,
1651
1680
  onChange: (n, c) => X((i) => ({
1652
1681
  ...i,
1653
1682
  [n]: c
1654
- }))
1683
+ })),
1684
+ onUpload: Ys
1655
1685
  },
1656
1686
  a.name
1657
1687
  )) })
@@ -1663,11 +1693,11 @@ function go({
1663
1693
  {
1664
1694
  type: "button",
1665
1695
  className: "wandox-console-start",
1666
- disabled: !A || M || _e.length > 0,
1667
- onClick: Us,
1696
+ disabled: !A || T || oe.length > 0,
1697
+ onClick: Xs,
1668
1698
  children: [
1669
1699
  "开始执行",
1670
- /* @__PURE__ */ e.jsx(va, {})
1700
+ /* @__PURE__ */ e.jsx(Ra, {})
1671
1701
  ]
1672
1702
  }
1673
1703
  )
@@ -1675,107 +1705,107 @@ function go({
1675
1705
  ]
1676
1706
  }
1677
1707
  ) : /* @__PURE__ */ e.jsx(
1678
- kn,
1708
+ An,
1679
1709
  {
1680
- onSend: ma,
1681
- executing: M,
1682
- stopping: Ls,
1683
- onStop: Ts,
1710
+ onSend: ba,
1711
+ executing: T,
1712
+ stopping: Vs,
1713
+ onStop: zs,
1684
1714
  placeholder: " / 快速搜索场景",
1685
1715
  ssoToken: L,
1686
- ssoDomain: R,
1716
+ ssoDomain: S,
1687
1717
  ssoCompany: h,
1688
- leadingActions: Ys,
1718
+ leadingActions: nn,
1689
1719
  uploadButtonAsLeading: !0,
1690
1720
  uploadButtonLabel: "添加文件",
1691
1721
  mentionTriggerChar: "/",
1692
- mentionListRequest: Cs,
1693
- onMentionListRequestHandled: Qs,
1722
+ mentionListRequest: Es,
1723
+ onMentionListRequestHandled: sn,
1694
1724
  autoFocusInput: !A,
1695
- playbooks: Ss,
1696
- onRequestPlaybookParams: ye
1725
+ playbooks: Ps,
1726
+ onRequestPlaybookParams: je
1697
1727
  }
1698
1728
  ) }),
1699
1729
  /* @__PURE__ */ e.jsx(
1700
- bo,
1730
+ vt,
1701
1731
  {
1702
- open: F,
1732
+ open: D,
1703
1733
  source: V,
1704
- categories: da,
1705
- categoryKey: Y,
1706
- search: te,
1707
- cards: As,
1708
- executing: M,
1734
+ categories: xa,
1735
+ categoryKey: Z,
1736
+ search: ie,
1737
+ cards: Fs,
1738
+ executing: T,
1709
1739
  loadingPlaybookId: W,
1710
- onClose: qs,
1711
- onSourceChange: Bs,
1712
- onCategoryChange: re,
1740
+ onClose: Qs,
1741
+ onSourceChange: Ks,
1742
+ onCategoryChange: pe,
1713
1743
  onSearchChange: H,
1714
- onSelectScene: Ws
1744
+ onSelectScene: Zs
1715
1745
  }
1716
1746
  ),
1717
1747
  /* @__PURE__ */ e.jsx(
1718
- Nn,
1748
+ In,
1719
1749
  {
1720
- open: Ge.visible,
1721
- agentId: Ge.agentId,
1722
- playbookId: Ge.playbookId,
1723
- playbookName: Ge.playbookName,
1724
- onClose: Zs
1750
+ open: ea.visible,
1751
+ agentId: ea.agentId,
1752
+ playbookId: ea.playbookId,
1753
+ playbookName: ea.playbookName,
1754
+ onClose: tn
1725
1755
  }
1726
1756
  ),
1727
- L && R && h && /* @__PURE__ */ e.jsx(
1728
- Cn,
1757
+ L && S && h && /* @__PURE__ */ e.jsx(
1758
+ En,
1729
1759
  {
1730
- open: de,
1731
- title: $e,
1732
- actions: xe,
1760
+ open: xe,
1761
+ title: Ie,
1762
+ actions: we,
1733
1763
  ssoToken: L,
1734
- ssoDomain: R,
1764
+ ssoDomain: S,
1735
1765
  ssoCompany: h,
1736
- onClose: () => je(!1)
1766
+ onClose: () => ve(!1)
1737
1767
  }
1738
1768
  ),
1739
1769
  /* @__PURE__ */ e.jsx(
1740
- Sn,
1770
+ Pn,
1741
1771
  {
1742
1772
  title: "配置通知渠道",
1743
- open: k,
1773
+ open: ae,
1744
1774
  onCancel: () => {
1745
- g(!1), ve(null), P(void 0);
1775
+ M(!1), De(null), ke(void 0);
1746
1776
  },
1747
1777
  width: 520,
1748
1778
  centered: !0,
1749
1779
  footer: [
1750
- y[(O == null ? void 0 : O.agent_id) || ""] ? /* @__PURE__ */ e.jsx(
1751
- sa,
1780
+ ue[(Q == null ? void 0 : Q.agent_id) || ""] ? /* @__PURE__ */ e.jsx(
1781
+ ia,
1752
1782
  {
1753
1783
  danger: !0,
1754
- loading: fe,
1784
+ loading: Ye,
1755
1785
  style: { marginRight: "auto" },
1756
- onClick: Fs,
1786
+ onClick: Hs,
1757
1787
  children: "解除绑定"
1758
1788
  },
1759
1789
  "unbind"
1760
1790
  ) : null,
1761
1791
  /* @__PURE__ */ e.jsx(
1762
- sa,
1792
+ ia,
1763
1793
  {
1764
- disabled: fe,
1794
+ disabled: Ye,
1765
1795
  onClick: () => {
1766
- g(!1), ve(null), P(void 0);
1796
+ M(!1), De(null), ke(void 0);
1767
1797
  },
1768
1798
  children: "取消"
1769
1799
  },
1770
1800
  "cancel"
1771
1801
  ),
1772
1802
  /* @__PURE__ */ e.jsx(
1773
- sa,
1803
+ ia,
1774
1804
  {
1775
1805
  type: "primary",
1776
- loading: fe,
1777
- disabled: !z,
1778
- onClick: Ds,
1806
+ loading: Ye,
1807
+ disabled: !te,
1808
+ onClick: Ws,
1779
1809
  children: "保存"
1780
1810
  },
1781
1811
  "ok"
@@ -1804,7 +1834,7 @@ function go({
1804
1834
  color: "#1a1a1a",
1805
1835
  fontWeight: 500
1806
1836
  },
1807
- children: O == null ? void 0 : O.name
1837
+ children: Q == null ? void 0 : Q.name
1808
1838
  }
1809
1839
  )
1810
1840
  ]
@@ -1823,33 +1853,33 @@ function go({
1823
1853
  }
1824
1854
  ),
1825
1855
  /* @__PURE__ */ e.jsx(
1826
- Rn,
1856
+ Ln,
1827
1857
  {
1828
1858
  style: { width: "100%" },
1829
1859
  placeholder: "请选择通知渠道",
1830
- value: z,
1831
- onChange: P,
1832
- disabled: fe,
1833
- options: se.map((a) => ({
1860
+ value: te,
1861
+ onChange: ke,
1862
+ disabled: Ye,
1863
+ options: g.map((a) => ({
1834
1864
  label: `${a.name}(${a.platform === "dingtalk" ? "钉钉" : a.platform === "feishu" ? "飞书" : "企业微信"})`,
1835
1865
  value: a.webhook_id
1836
1866
  })),
1837
1867
  popupRender: (a) => /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1838
1868
  a,
1839
- /* @__PURE__ */ e.jsx(Jn, { style: { margin: "8px 0" } }),
1840
- /* @__PURE__ */ e.jsx($n, { style: { padding: "0 8px 4px" }, children: /* @__PURE__ */ e.jsx(
1841
- sa,
1869
+ /* @__PURE__ */ e.jsx(ot, { style: { margin: "8px 0" } }),
1870
+ /* @__PURE__ */ e.jsx(Mn, { style: { padding: "0 8px 4px" }, children: /* @__PURE__ */ e.jsx(
1871
+ ia,
1842
1872
  {
1843
1873
  type: "text",
1844
1874
  icon: /* @__PURE__ */ e.jsx("span", { children: "+" }),
1845
- onClick: () => He(!0),
1875
+ onClick: () => Ma(!0),
1846
1876
  children: "添加新的通知渠道"
1847
1877
  }
1848
1878
  ) })
1849
1879
  ] })
1850
1880
  }
1851
1881
  ),
1852
- se.length === 0 && /* @__PURE__ */ e.jsx(
1882
+ g.length === 0 && /* @__PURE__ */ e.jsx(
1853
1883
  "div",
1854
1884
  {
1855
1885
  style: {
@@ -1868,193 +1898,193 @@ function go({
1868
1898
  }
1869
1899
  ),
1870
1900
  /* @__PURE__ */ e.jsx(
1871
- Wn,
1901
+ Zn,
1872
1902
  {
1873
- open: me,
1874
- onClose: () => He(!1),
1903
+ open: Rs,
1904
+ onClose: () => Ma(!1),
1875
1905
  onSuccess: (a) => {
1876
- t((n) => [...n, a]), P(a.webhook_id);
1906
+ C((n) => [...n, a]), ke(a.webhook_id);
1877
1907
  }
1878
1908
  }
1879
1909
  )
1880
1910
  ] })
1881
1911
  );
1882
1912
  }
1883
- const { TextArea: jo } = $a, Ve = 5;
1884
- function vo({
1885
- useMapCards: o,
1913
+ const { TextArea: Rt } = La, Ue = 5;
1914
+ function $t({
1915
+ useMapCards: t,
1886
1916
  useMapCategories: l,
1887
1917
  playbooks: r = [],
1888
- selectedCategoryKey: d,
1918
+ selectedCategoryKey: u,
1889
1919
  onCategorySelect: _,
1890
- loading: v,
1920
+ loading: j,
1891
1921
  useMapError: p,
1892
- onRetry: b,
1893
- onStartAnalysis: $,
1894
- agents: T,
1895
- selectedAgentId: ae,
1896
- onAgentSelect: Q,
1897
- onOpenAgentChat: le
1922
+ onRetry: f,
1923
+ onStartAnalysis: R,
1924
+ agents: F,
1925
+ selectedAgentId: Y,
1926
+ onAgentSelect: z,
1927
+ onOpenAgentChat: me
1898
1928
  }) {
1899
- const [I, q] = s.useState(""), [L, R] = s.useState(""), [h, D] = s.useState(null), ie = s.useRef(null), [F, E] = s.useState([]), [W, oe] = s.useState(!1), [te, H] = s.useState(""), V = s.useRef(0), [U, Y] = s.useState({}), [re, A] = s.useState({}), [B, ke] = s.useState({}), [pe, de] = s.useState([]), [je, xe] = s.useState(!1), Re = s.useRef(null), [$e, Ne] = s.useState(0), Z = Math.max(
1929
+ const [$, q] = s.useState(""), [L, S] = s.useState(""), [h, O] = s.useState(null), he = s.useRef(null), [D, E] = s.useState([]), [W, le] = s.useState(!1), [ie, H] = s.useState(""), V = s.useRef(0), [U, Z] = s.useState({}), [pe, A] = s.useState({}), [B, Ne] = s.useState({}), [fe, xe] = s.useState([]), [ve, we] = s.useState(!1), Ae = s.useRef(null), [Ie, Ce] = s.useState(0), J = Math.max(
1900
1930
  1,
1901
- Math.ceil(l.length / Ve)
1902
- ), K = Math.min($e, Z - 1), G = l.length > Ve, X = s.useMemo(
1931
+ Math.ceil(l.length / Ue)
1932
+ ), K = Math.min(Ie, J - 1), G = l.length > Ue, X = s.useMemo(
1903
1933
  () => l.slice(
1904
- K * Ve,
1905
- K * Ve + Ve
1934
+ K * Ue,
1935
+ K * Ue + Ue
1906
1936
  ),
1907
1937
  [l, K]
1908
1938
  );
1909
1939
  s.useEffect(() => {
1910
- Ne(0);
1911
- }, [ae]);
1912
- const ee = s.useMemo(
1913
- () => o.length > 0 ? o : Hn(r),
1914
- [o, r]
1915
- ), _e = s.useMemo(() => d ? ee.filter((t) => t.categoryKey === d) : ee, [ee, d]), J = s.useMemo(() => {
1916
- const t = L.trim().toLowerCase();
1917
- return t ? _e.filter(
1918
- (y) => y.title.toLowerCase().includes(t) || y.desc.toLowerCase().includes(t)
1919
- ) : _e;
1920
- }, [_e, L]), x = v || p && ee.length === 0 || J.length > 0, [f, ce] = s.useState("");
1940
+ Ce(0);
1941
+ }, [Y]);
1942
+ const se = s.useMemo(
1943
+ () => t.length > 0 ? t : Jn(r),
1944
+ [t, r]
1945
+ ), ye = s.useMemo(() => u ? se.filter((o) => o.categoryKey === u) : se, [se, u]), Ee = s.useMemo(() => {
1946
+ const o = L.trim().toLowerCase();
1947
+ return o ? ye.filter(
1948
+ (w) => w.title.toLowerCase().includes(o) || w.desc.toLowerCase().includes(o)
1949
+ ) : ye;
1950
+ }, [ye, L]), b = j || p && se.length === 0 || Ee.length > 0, [I, oe] = s.useState("");
1921
1951
  s.useEffect(() => {
1922
- V.current += 1, ce(""), q(""), E([]), Y({}), oe(!1), H("");
1923
- }, [d]), s.useEffect(() => {
1924
- f && !ee.some((t) => t.playbook_id === f) && (V.current += 1, ce(""), q(""), E([]), Y({}), oe(!1), H(""));
1925
- }, [f, ee]);
1926
- const w = s.useMemo(
1927
- () => ee.find((t) => t.playbook_id === f) ?? null,
1928
- [ee, f]
1929
- ), Ce = s.useMemo(
1930
- () => h ? ys(h) : null,
1952
+ V.current += 1, oe(""), q(""), E([]), Z({}), le(!1), H("");
1953
+ }, [u]), s.useEffect(() => {
1954
+ I && !se.some((o) => o.playbook_id === I) && (V.current += 1, oe(""), q(""), E([]), Z({}), le(!1), H(""));
1955
+ }, [I, se]);
1956
+ const v = s.useMemo(
1957
+ () => se.find((o) => o.playbook_id === I) ?? null,
1958
+ [se, I]
1959
+ ), Te = s.useMemo(
1960
+ () => h ? Ns(h) : null,
1931
1961
  [h]
1932
- ), ue = s.useCallback((t, y) => {
1933
- t.stopPropagation(), D(y);
1962
+ ), re = s.useCallback((o, w) => {
1963
+ o.stopPropagation(), O(w);
1934
1964
  }, []);
1935
1965
  s.useEffect(() => {
1936
- if (v || w) return;
1937
- const t = window.setTimeout(() => {
1938
- var C, k;
1939
- const y = (k = (C = ie.current) == null ? void 0 : C.resizableTextArea) == null ? void 0 : k.textArea;
1940
- y == null || y.focus();
1966
+ if (j || v) return;
1967
+ const o = window.setTimeout(() => {
1968
+ var N, g;
1969
+ const w = (g = (N = he.current) == null ? void 0 : N.resizableTextArea) == null ? void 0 : g.textArea;
1970
+ w == null || w.focus();
1941
1971
  }, 0);
1942
- return () => window.clearTimeout(t);
1943
- }, [v, w]);
1944
- const Ie = s.useCallback(async (t) => {
1945
- const y = String(t.playbook_id || "").trim();
1946
- if (!y) {
1947
- S.error("场景缺少 playbook_id");
1972
+ return () => window.clearTimeout(o);
1973
+ }, [j, v]);
1974
+ const Fe = s.useCallback(async (o) => {
1975
+ const w = String(o.playbook_id || "").trim();
1976
+ if (!w) {
1977
+ k.error("场景缺少 playbook_id");
1948
1978
  return;
1949
1979
  }
1950
- const C = ++V.current;
1951
- ce(y), E([]), Y({}), A({}), ke({}), oe(!0), H("");
1980
+ const N = ++V.current;
1981
+ oe(w), E([]), Z({}), A({}), Ne({}), le(!0), H("");
1952
1982
  try {
1953
- const { data: k } = await fa({
1954
- playbook_id: y
1983
+ const { data: g } = await ja({
1984
+ playbook_id: w
1955
1985
  });
1956
- if (C !== V.current) return;
1957
- if (!k || typeof k != "object" || Array.isArray(k))
1986
+ if (N !== V.current) return;
1987
+ if (!g || typeof g != "object" || Array.isArray(g))
1958
1988
  throw new Error("场景详情为空");
1959
- const g = hs(
1960
- Pn(k)
1989
+ const C = fs(
1990
+ Dn(g)
1961
1991
  );
1962
- E(g), Y(xs(g));
1963
- } catch (k) {
1964
- if (C !== V.current) return;
1965
- const g = k instanceof Error ? k.message : "场景参数加载失败";
1966
- H(g), S.error("场景参数加载失败,请稍后重试");
1992
+ E(C), Z(ys(C));
1993
+ } catch (g) {
1994
+ if (N !== V.current) return;
1995
+ const C = g instanceof Error ? g.message : "场景参数加载失败";
1996
+ H(C), k.error("场景参数加载失败,请稍后重试");
1967
1997
  } finally {
1968
- C === V.current && oe(!1);
1998
+ N === V.current && le(!1);
1969
1999
  }
1970
- }, []), oa = () => {
1971
- V.current += 1, ce(""), q(""), E([]), Y({}), oe(!1), H("");
1972
- }, qe = ms(F, U, Y), be = s.useMemo(
1973
- () => na(F, U),
1974
- [F, U]
1975
- ), Pe = s.useCallback((t, y) => {
1976
- Y((C) => ({ ...C, [t]: y }));
1977
- }, []), ta = s.useCallback(
1978
- (t, y) => async ({ file: C, onSuccess: k, onError: g }) => {
1979
- var O, ve;
1980
- A((z) => ({ ...z, [t]: !0 }));
2000
+ }, []), ee = () => {
2001
+ V.current += 1, oe(""), q(""), E([]), Z({}), le(!1), H("");
2002
+ }, Se = bs(D, U, Z), ne = s.useMemo(
2003
+ () => ra(D, U),
2004
+ [D, U]
2005
+ ), Oe = s.useCallback((o, w) => {
2006
+ Z((N) => ({ ...N, [o]: w }));
2007
+ }, []), da = s.useCallback(
2008
+ (o, w) => async ({ file: N, onSuccess: g, onError: C }) => {
2009
+ var ue, Le;
2010
+ A((ae) => ({ ...ae, [o]: !0 }));
1981
2011
  try {
1982
- const z = C, P = await as(z), fe = (O = P == null ? void 0 : P.data) == null ? void 0 : O.url, Ee = ((ve = P == null ? void 0 : P.data) == null ? void 0 : ve.name) || z.name;
1983
- if (!fe) throw new Error("上传结果缺少文件地址");
1984
- ke((me) => ({ ...me, [fe]: Ee })), Y((me) => {
1985
- if (y <= 1) return { ...me, [t]: fe };
1986
- const He = Array.isArray(me[t]) ? me[t] : me[t] ? [me[t]] : [];
1987
- return { ...me, [t]: [...He, fe] };
1988
- }), k == null || k(P), S.success("上传成功");
1989
- } catch (z) {
1990
- const P = z instanceof Error ? z : new Error("上传失败");
1991
- g == null || g(P), S.error(P.message);
2012
+ const ae = N, M = await va(ae), Q = (ue = M == null ? void 0 : M.data) == null ? void 0 : ue.url, De = ((Le = M == null ? void 0 : M.data) == null ? void 0 : Le.name) || ae.name;
2013
+ if (!Q) throw new Error("上传结果缺少文件地址");
2014
+ Ne((te) => ({ ...te, [Q]: De })), Z((te) => {
2015
+ if (w <= 1) return { ...te, [o]: Q };
2016
+ const ke = Array.isArray(te[o]) ? te[o] : te[o] ? [te[o]] : [];
2017
+ return { ...te, [o]: [...ke, Q] };
2018
+ }), g == null || g(M), k.success("上传成功");
2019
+ } catch (ae) {
2020
+ const M = ae instanceof Error ? ae : new Error("上传失败");
2021
+ C == null || C(M), k.error(M.message);
1992
2022
  } finally {
1993
- A((z) => ({ ...z, [t]: !1 }));
2023
+ A((ae) => ({ ...ae, [o]: !1 }));
1994
2024
  }
1995
2025
  },
1996
2026
  []
1997
- ), We = s.useCallback(
1998
- async (t) => {
1999
- const y = Array.from(t.target.files ?? []);
2000
- if (t.target.value = "", y.length !== 0) {
2001
- xe(!0);
2027
+ ), Qe = s.useCallback(
2028
+ async (o) => {
2029
+ const w = Array.from(o.target.files ?? []);
2030
+ if (o.target.value = "", w.length !== 0) {
2031
+ we(!0);
2002
2032
  try {
2003
- const C = await Promise.all(
2004
- y.map(async (k) => {
2005
- var z, P;
2006
- const g = await as(k), O = (z = g == null ? void 0 : g.data) == null ? void 0 : z.url, ve = ((P = g == null ? void 0 : g.data) == null ? void 0 : P.name) || k.name;
2007
- if (!O) throw new Error("上传结果缺少文件地址");
2033
+ const N = await Promise.all(
2034
+ w.map(async (g) => {
2035
+ var ae, M;
2036
+ const C = await va(g), ue = (ae = C == null ? void 0 : C.data) == null ? void 0 : ae.url, Le = ((M = C == null ? void 0 : C.data) == null ? void 0 : M.name) || g.name;
2037
+ if (!ue) throw new Error("上传结果缺少文件地址");
2008
2038
  return {
2009
- type: k.type.startsWith("image/") ? "image" : "file",
2010
- url: O,
2011
- name: ve,
2012
- mime_type: k.type
2039
+ type: g.type.startsWith("image/") ? "image" : "file",
2040
+ url: ue,
2041
+ name: Le,
2042
+ mime_type: g.type
2013
2043
  };
2014
2044
  })
2015
2045
  );
2016
- de((k) => [...k, ...C]), S.success(`已添加 ${C.length} 个附件`);
2017
- } catch (C) {
2018
- S.error(C instanceof Error ? C.message : "上传失败");
2046
+ xe((g) => [...g, ...N]), k.success(`已添加 ${N.length} 个附件`);
2047
+ } catch (N) {
2048
+ k.error(N instanceof Error ? N.message : "上传失败");
2019
2049
  } finally {
2020
- xe(!1);
2050
+ we(!1);
2021
2051
  }
2022
2052
  }
2023
2053
  },
2024
2054
  []
2025
- ), Le = s.useCallback((t) => {
2026
- de((y) => y.filter((C) => C.url !== t));
2027
- }, []), Ae = s.useMemo(
2028
- () => be.filter(
2029
- (t) => t.required && ja(U[t.name])
2055
+ ), Pe = s.useCallback((o) => {
2056
+ xe((w) => w.filter((N) => N.url !== o));
2057
+ }, []), Re = s.useMemo(
2058
+ () => ne.filter(
2059
+ (o) => o.required && Sa(U[o.name])
2030
2060
  ),
2031
- [be, U]
2032
- ), se = s.useMemo(
2033
- () => T.find((t) => t.id === ae) ?? T.find((t) => t.current) ?? T[0],
2034
- [T, ae]
2061
+ [ne, U]
2062
+ ), de = s.useMemo(
2063
+ () => F.find((o) => o.id === Y) ?? F.find((o) => o.current) ?? F[0],
2064
+ [F, Y]
2035
2065
  );
2036
2066
  return /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-view", children: [
2037
2067
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-homecenter", children: [
2038
2068
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-homecenter-hero", children: [
2039
- se && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-home-header", children: [
2069
+ de && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-home-header", children: [
2040
2070
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-home-header__agent", children: [
2041
- /* @__PURE__ */ e.jsx("span", { className: "wandox-console-home-header__avatar", children: se.icon }),
2071
+ /* @__PURE__ */ e.jsx("span", { className: "wandox-console-home-header__avatar", children: de.icon }),
2042
2072
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-home-header__identity", children: [
2043
2073
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-home-header__selector-row", children: [
2044
2074
  /* @__PURE__ */ e.jsx(
2045
- wa,
2075
+ ka,
2046
2076
  {
2047
2077
  menu: {
2048
- items: T.map((t) => ({
2049
- key: t.id,
2050
- disabled: t.id === se.id,
2078
+ items: F.map((o) => ({
2079
+ key: o.id,
2080
+ disabled: o.id === de.id,
2051
2081
  label: /* @__PURE__ */ e.jsxs("span", { className: "wandox-console-agent-menu-item", children: [
2052
- /* @__PURE__ */ e.jsx("span", { className: "wandox-console-agent-menu-item__icon", children: t.icon }),
2053
- /* @__PURE__ */ e.jsx("span", { className: "wandox-console-agent-menu-item__name", children: t.name }),
2054
- t.id === se.id && /* @__PURE__ */ e.jsx(ga, { className: "wandox-console-agent-menu-item__check" })
2082
+ /* @__PURE__ */ e.jsx("span", { className: "wandox-console-agent-menu-item__icon", children: o.icon }),
2083
+ /* @__PURE__ */ e.jsx("span", { className: "wandox-console-agent-menu-item__name", children: o.name }),
2084
+ o.id === de.id && /* @__PURE__ */ e.jsx(Ca, { className: "wandox-console-agent-menu-item__check" })
2055
2085
  ] })
2056
2086
  })),
2057
- onClick: ({ key: t }) => Q == null ? void 0 : Q(t)
2087
+ onClick: ({ key: o }) => z == null ? void 0 : z(o)
2058
2088
  },
2059
2089
  trigger: ["click"],
2060
2090
  placement: "bottomLeft",
@@ -2065,21 +2095,21 @@ function vo({
2065
2095
  className: "wandox-console-home-header__selector",
2066
2096
  "aria-label": "切换智能体",
2067
2097
  children: [
2068
- /* @__PURE__ */ e.jsx("span", { className: "wandox-console-home-header__name", children: se.name }),
2069
- /* @__PURE__ */ e.jsx(ps, { className: "wandox-console-home-header__arrow" })
2098
+ /* @__PURE__ */ e.jsx("span", { className: "wandox-console-home-header__name", children: de.name }),
2099
+ /* @__PURE__ */ e.jsx(ws, { className: "wandox-console-home-header__arrow" })
2070
2100
  ]
2071
2101
  }
2072
2102
  )
2073
2103
  }
2074
2104
  ),
2075
- /* @__PURE__ */ e.jsx(bs, { benefit: se.packageBenefit })
2105
+ /* @__PURE__ */ e.jsx(js, { benefit: de.packageBenefit })
2076
2106
  ] }),
2077
- se.desc && /* @__PURE__ */ e.jsx(
2107
+ de.desc && /* @__PURE__ */ e.jsx(
2078
2108
  "p",
2079
2109
  {
2080
2110
  className: "wandox-console-home-header__description",
2081
- title: se.desc,
2082
- children: se.desc
2111
+ title: de.desc,
2112
+ children: de.desc
2083
2113
  }
2084
2114
  )
2085
2115
  ] })
@@ -2089,131 +2119,131 @@ function vo({
2089
2119
  {
2090
2120
  type: "button",
2091
2121
  className: "wandox-console-home-header__history",
2092
- onClick: () => le == null ? void 0 : le(),
2122
+ onClick: () => me == null ? void 0 : me(),
2093
2123
  children: [
2094
2124
  /* @__PURE__ */ e.jsx("span", { children: "会话记录" }),
2095
- /* @__PURE__ */ e.jsx(Ln, { className: "wandox-console-home-header__history-arrow" })
2125
+ /* @__PURE__ */ e.jsx(Vn, { className: "wandox-console-home-header__history-arrow" })
2096
2126
  ]
2097
2127
  }
2098
2128
  )
2099
2129
  ] }),
2100
2130
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-prompt", children: [
2101
- w && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-prompt__head", children: [
2131
+ v && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-prompt__head", children: [
2102
2132
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-scenechoice", children: [
2103
2133
  /* @__PURE__ */ e.jsx("span", { children: "已选择场景" }),
2104
- /* @__PURE__ */ e.jsx("strong", { children: w.title })
2134
+ /* @__PURE__ */ e.jsx("strong", { children: v.title })
2105
2135
  ] }),
2106
2136
  /* @__PURE__ */ e.jsx(
2107
2137
  "button",
2108
2138
  {
2109
2139
  type: "button",
2110
2140
  className: "wandox-console-changescene",
2111
- onClick: oa,
2141
+ onClick: ee,
2112
2142
  children: "重新选择"
2113
2143
  }
2114
2144
  )
2115
2145
  ] }),
2116
- w ? /* @__PURE__ */ e.jsx("div", { className: "wandox-console-taskarea wandox-console-taskarea--static", children: w.desc || w.title }) : /* @__PURE__ */ e.jsx("div", { className: "wandox-console-taskarea", children: /* @__PURE__ */ e.jsx(
2117
- jo,
2146
+ v ? /* @__PURE__ */ e.jsx("div", { className: "wandox-console-taskarea wandox-console-taskarea--static", children: v.desc || v.title }) : /* @__PURE__ */ e.jsx("div", { className: "wandox-console-taskarea", children: /* @__PURE__ */ e.jsx(
2147
+ Rt,
2118
2148
  {
2119
- ref: ie,
2120
- value: I,
2121
- onChange: (t) => q(t.target.value),
2149
+ ref: he,
2150
+ value: $,
2151
+ onChange: (o) => q(o.target.value),
2122
2152
  autoSize: { minRows: 2 },
2123
2153
  variant: "borderless",
2124
2154
  placeholder: "直接描述你的问题,或选择一个场景开始"
2125
2155
  }
2126
2156
  ) }),
2127
- w && W && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-paramarea wandox-console-paramarea--state", children: [
2128
- /* @__PURE__ */ e.jsx(Mn, {}),
2157
+ v && W && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-paramarea wandox-console-paramarea--state", children: [
2158
+ /* @__PURE__ */ e.jsx(Bn, {}),
2129
2159
  /* @__PURE__ */ e.jsx("span", { children: "正在读取场景参数..." })
2130
2160
  ] }),
2131
- w && !W && te && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-paramarea wandox-console-paramarea--state", children: [
2161
+ v && !W && ie && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-paramarea wandox-console-paramarea--state", children: [
2132
2162
  /* @__PURE__ */ e.jsx("span", { children: "场景参数加载失败" }),
2133
2163
  /* @__PURE__ */ e.jsxs(
2134
2164
  "button",
2135
2165
  {
2136
2166
  type: "button",
2137
2167
  className: "wandox-console-paramarea__retry",
2138
- onClick: () => void Ie(w),
2168
+ onClick: () => void Fe(v),
2139
2169
  children: [
2140
- /* @__PURE__ */ e.jsx(ss, {}),
2170
+ /* @__PURE__ */ e.jsx(ls, {}),
2141
2171
  "重试"
2142
2172
  ]
2143
2173
  }
2144
2174
  )
2145
2175
  ] }),
2146
- w && !W && !te && be.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-paramarea", children: [
2176
+ v && !W && !ie && ne.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-paramarea", children: [
2147
2177
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-paramhead", children: [
2148
- /* @__PURE__ */ e.jsx(ws, {}),
2178
+ /* @__PURE__ */ e.jsx(ks, {}),
2149
2179
  /* @__PURE__ */ e.jsx("strong", { children: "确认分析范围" }),
2150
2180
  /* @__PURE__ */ e.jsxs("span", { className: "wandox-console-paramhead__status", children: [
2151
- /* @__PURE__ */ e.jsx(ga, {}),
2181
+ /* @__PURE__ */ e.jsx(Ca, {}),
2152
2182
  " ",
2153
- Ae.length > 0 ? `待填 ${Ae.length} 项必填参数` : "参数已就绪"
2183
+ Re.length > 0 ? `待填 ${Re.length} 项必填参数` : "参数已就绪"
2154
2184
  ] })
2155
2185
  ] }),
2156
- /* @__PURE__ */ e.jsx("div", { className: "wandox-console-params", children: be.map((t) => /* @__PURE__ */ e.jsx(
2157
- js,
2186
+ /* @__PURE__ */ e.jsx("div", { className: "wandox-console-params", children: ne.map((o) => /* @__PURE__ */ e.jsx(
2187
+ Ss,
2158
2188
  {
2159
- field: t,
2160
- value: U[t.name],
2161
- uploading: !!re[t.name],
2189
+ field: o,
2190
+ value: U[o.name],
2191
+ uploading: !!pe[o.name],
2162
2192
  fileNameMap: B,
2163
- getOptionState: qe.getFieldState,
2164
- onChange: Pe,
2165
- onUpload: ta
2193
+ getOptionState: Se.getFieldState,
2194
+ onChange: Oe,
2195
+ onUpload: da
2166
2196
  },
2167
- t.name
2197
+ o.name
2168
2198
  )) })
2169
2199
  ] }),
2170
2200
  /* @__PURE__ */ e.jsxs(
2171
2201
  "div",
2172
2202
  {
2173
- className: `wandox-console-prompt__foot${w ? " wandox-console-prompt__foot--scene" : ""}`,
2203
+ className: `wandox-console-prompt__foot${v ? " wandox-console-prompt__foot--scene" : ""}`,
2174
2204
  children: [
2175
- !w && /* @__PURE__ */ e.jsx(
2205
+ !v && /* @__PURE__ */ e.jsx(
2176
2206
  "button",
2177
2207
  {
2178
2208
  type: "button",
2179
2209
  className: "wandox-console-attach",
2180
2210
  onClick: () => {
2181
- var t;
2182
- return (t = Re.current) == null ? void 0 : t.click();
2211
+ var o;
2212
+ return (o = Ae.current) == null ? void 0 : o.click();
2183
2213
  },
2184
- disabled: je,
2185
- title: je ? "上传中…" : "附件",
2186
- children: /* @__PURE__ */ e.jsx(Tn, {})
2214
+ disabled: ve,
2215
+ title: ve ? "上传中…" : "附件",
2216
+ children: /* @__PURE__ */ e.jsx(zn, {})
2187
2217
  }
2188
2218
  ),
2189
2219
  /* @__PURE__ */ e.jsx(
2190
2220
  "input",
2191
2221
  {
2192
- ref: Re,
2222
+ ref: Ae,
2193
2223
  type: "file",
2194
2224
  multiple: !0,
2195
2225
  accept: "image/*,.pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.txt,.csv,.zip",
2196
2226
  hidden: !0,
2197
- onChange: We
2227
+ onChange: Qe
2198
2228
  }
2199
2229
  ),
2200
- w ? /* @__PURE__ */ e.jsxs(
2230
+ v ? /* @__PURE__ */ e.jsxs(
2201
2231
  "button",
2202
2232
  {
2203
2233
  type: "button",
2204
2234
  className: "wandox-console-start",
2205
- disabled: W || !!te || Ae.length > 0,
2235
+ disabled: W || !!ie || Re.length > 0,
2206
2236
  onClick: () => {
2207
- $ == null || $({
2208
- playbookId: w.playbook_id,
2237
+ R == null || R({
2238
+ playbookId: v.playbook_id,
2209
2239
  playbookParams: U,
2210
- message: w.title,
2211
- attachments: pe
2240
+ message: v.title,
2241
+ attachments: fe
2212
2242
  });
2213
2243
  },
2214
2244
  children: [
2215
2245
  "开始执行",
2216
- /* @__PURE__ */ e.jsx(va, {})
2246
+ /* @__PURE__ */ e.jsx(Ra, {})
2217
2247
  ]
2218
2248
  }
2219
2249
  ) : /* @__PURE__ */ e.jsx("div", { className: "wandox-console-prompt__foot-right", children: /* @__PURE__ */ e.jsx(
@@ -2221,37 +2251,37 @@ function vo({
2221
2251
  {
2222
2252
  type: "button",
2223
2253
  className: "wandox-console-prompt__send",
2224
- disabled: !I.trim(),
2254
+ disabled: !$.trim(),
2225
2255
  onClick: () => {
2226
- $ == null || $({
2256
+ R == null || R({
2227
2257
  playbookParams: {},
2228
- message: I.trim(),
2229
- attachments: pe
2258
+ message: $.trim(),
2259
+ attachments: fe
2230
2260
  });
2231
2261
  },
2232
2262
  "aria-label": "发送",
2233
- children: /* @__PURE__ */ e.jsx(On, {})
2263
+ children: /* @__PURE__ */ e.jsx(qn, {})
2234
2264
  }
2235
2265
  ) })
2236
2266
  ]
2237
2267
  }
2238
2268
  )
2239
2269
  ] }),
2240
- pe.length > 0 && /* @__PURE__ */ e.jsx("div", { className: "wandox-console-attachments", children: pe.map((t) => /* @__PURE__ */ e.jsxs("span", { className: "wandox-console-attach-item", children: [
2241
- t.type === "image" ? /* @__PURE__ */ e.jsx(
2270
+ fe.length > 0 && /* @__PURE__ */ e.jsx("div", { className: "wandox-console-attachments", children: fe.map((o) => /* @__PURE__ */ e.jsxs("span", { className: "wandox-console-attach-item", children: [
2271
+ o.type === "image" ? /* @__PURE__ */ e.jsx(
2242
2272
  "img",
2243
2273
  {
2244
- src: t.url,
2245
- alt: t.name,
2274
+ src: o.url,
2275
+ alt: o.name,
2246
2276
  className: "wandox-console-attach-item__thumb"
2247
2277
  }
2248
- ) : /* @__PURE__ */ e.jsx(Dn, { className: "wandox-console-attach-item__icon" }),
2278
+ ) : /* @__PURE__ */ e.jsx(Wn, { className: "wandox-console-attach-item__icon" }),
2249
2279
  /* @__PURE__ */ e.jsx(
2250
2280
  "span",
2251
2281
  {
2252
2282
  className: "wandox-console-attach-item__name",
2253
- title: t.name,
2254
- children: t.name
2283
+ title: o.name,
2284
+ children: o.name
2255
2285
  }
2256
2286
  ),
2257
2287
  /* @__PURE__ */ e.jsx(
@@ -2260,11 +2290,11 @@ function vo({
2260
2290
  type: "button",
2261
2291
  className: "wandox-console-attach-item__remove",
2262
2292
  "aria-label": "移除附件",
2263
- onClick: () => Le(t.url),
2264
- children: /* @__PURE__ */ e.jsx(rs, {})
2293
+ onClick: () => Pe(o.url),
2294
+ children: /* @__PURE__ */ e.jsx(ps, {})
2265
2295
  }
2266
2296
  )
2267
- ] }, t.url)) }),
2297
+ ] }, o.url)) }),
2268
2298
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-scenehead", children: [
2269
2299
  G && /* @__PURE__ */ e.jsx(
2270
2300
  "button",
@@ -2273,8 +2303,8 @@ function vo({
2273
2303
  className: "wandox-console-chipnav",
2274
2304
  "aria-label": "上一页分类",
2275
2305
  disabled: K === 0,
2276
- onClick: () => Ne((t) => Math.max(0, t - 1)),
2277
- children: /* @__PURE__ */ e.jsx(oo, {})
2306
+ onClick: () => Ce((o) => Math.max(0, o - 1)),
2307
+ children: /* @__PURE__ */ e.jsx(ut, {})
2278
2308
  }
2279
2309
  ),
2280
2310
  /* @__PURE__ */ e.jsx(
@@ -2283,17 +2313,17 @@ function vo({
2283
2313
  className: "wandox-console-chips",
2284
2314
  role: "tablist",
2285
2315
  "aria-label": "场景分类",
2286
- children: X.map((t) => /* @__PURE__ */ e.jsx(
2316
+ children: X.map((o) => /* @__PURE__ */ e.jsx(
2287
2317
  "button",
2288
2318
  {
2289
2319
  type: "button",
2290
2320
  role: "tab",
2291
- "aria-selected": d === t.key,
2292
- className: `wandox-console-chip${d === t.key ? " wandox-console-chip--active" : ""}`,
2293
- onClick: () => _ == null ? void 0 : _(t.key),
2294
- children: /* @__PURE__ */ e.jsx("span", { children: t.name })
2321
+ "aria-selected": u === o.key,
2322
+ className: `wandox-console-chip${u === o.key ? " wandox-console-chip--active" : ""}`,
2323
+ onClick: () => _ == null ? void 0 : _(o.key),
2324
+ children: /* @__PURE__ */ e.jsx("span", { children: o.name })
2295
2325
  },
2296
- t.key
2326
+ o.key
2297
2327
  ))
2298
2328
  }
2299
2329
  ),
@@ -2303,197 +2333,197 @@ function vo({
2303
2333
  type: "button",
2304
2334
  className: "wandox-console-chipnav",
2305
2335
  "aria-label": "下一页分类",
2306
- disabled: K === Z - 1,
2307
- onClick: () => Ne((t) => Math.min(Z - 1, t + 1)),
2308
- children: /* @__PURE__ */ e.jsx(lo, {})
2336
+ disabled: K === J - 1,
2337
+ onClick: () => Ce((o) => Math.min(J - 1, o + 1)),
2338
+ children: /* @__PURE__ */ e.jsx(pt, {})
2309
2339
  }
2310
2340
  ),
2311
2341
  /* @__PURE__ */ e.jsx("div", { className: "wandox-console-scenesearch", children: /* @__PURE__ */ e.jsx(
2312
- $a,
2342
+ La,
2313
2343
  {
2314
2344
  allowClear: !0,
2315
- prefix: /* @__PURE__ */ e.jsx(ba, {}),
2345
+ prefix: /* @__PURE__ */ e.jsx(ga, {}),
2316
2346
  placeholder: "搜索当前地图下的场景",
2317
2347
  value: L,
2318
- onChange: (t) => R(t.target.value)
2348
+ onChange: (o) => S(o.target.value)
2319
2349
  }
2320
2350
  ) })
2321
2351
  ] })
2322
2352
  ] }),
2323
- x && /* @__PURE__ */ e.jsxs(
2353
+ b && /* @__PURE__ */ e.jsxs(
2324
2354
  "section",
2325
2355
  {
2326
2356
  className: "wandox-console-scene-section",
2327
2357
  "aria-label": "个性化场景",
2328
2358
  children: [
2329
2359
  /* @__PURE__ */ e.jsx("div", { className: "wandox-console-scene-section__header", children: /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx("h2", { children: "为你推荐" }) }) }),
2330
- v ? /* @__PURE__ */ e.jsxs(
2360
+ j ? /* @__PURE__ */ e.jsxs(
2331
2361
  "div",
2332
2362
  {
2333
2363
  className: "wandox-console-agents__loading",
2334
2364
  style: { justifyContent: "center", padding: "40px 0" },
2335
2365
  children: [
2336
- /* @__PURE__ */ e.jsx(ya, { size: "small" }),
2366
+ /* @__PURE__ */ e.jsx(Na, { size: "small" }),
2337
2367
  /* @__PURE__ */ e.jsx("span", { children: "正在加载场景..." })
2338
2368
  ]
2339
2369
  }
2340
- ) : p && ee.length === 0 ? /* @__PURE__ */ e.jsxs(
2370
+ ) : p && se.length === 0 ? /* @__PURE__ */ e.jsxs(
2341
2371
  "div",
2342
2372
  {
2343
2373
  className: "wandox-console-agents__error",
2344
2374
  style: { alignItems: "center", padding: "32px 0" },
2345
2375
  children: [
2346
2376
  /* @__PURE__ */ e.jsx("span", { children: p }),
2347
- /* @__PURE__ */ e.jsxs("button", { type: "button", onClick: b, children: [
2348
- /* @__PURE__ */ e.jsx(ss, {}),
2377
+ /* @__PURE__ */ e.jsxs("button", { type: "button", onClick: f, children: [
2378
+ /* @__PURE__ */ e.jsx(ls, {}),
2349
2379
  "重试"
2350
2380
  ] })
2351
2381
  ]
2352
2382
  }
2353
- ) : J.length === 0 ? /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-scene-section__empty", children: [
2354
- /* @__PURE__ */ e.jsx(ba, {}),
2383
+ ) : Ee.length === 0 ? /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-scene-section__empty", children: [
2384
+ /* @__PURE__ */ e.jsx(ga, {}),
2355
2385
  /* @__PURE__ */ e.jsx("span", { children: L ? "没有匹配的场景" : "当前分类暂无场景" })
2356
- ] }) : /* @__PURE__ */ e.jsx("div", { className: "wandox-console-scenes-wrap", children: /* @__PURE__ */ e.jsx("div", { className: "wandox-console-scenes", children: J.map((t) => {
2357
- const y = No(t), C = ko(t), k = Co(t.tags);
2386
+ ] }) : /* @__PURE__ */ e.jsx("div", { className: "wandox-console-scenes-wrap", children: /* @__PURE__ */ e.jsx("div", { className: "wandox-console-scenes", children: Ee.map((o) => {
2387
+ const w = It(o), N = At(o), g = Et(o.tags);
2358
2388
  return /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-scene-wrap", children: [
2359
2389
  /* @__PURE__ */ e.jsx(
2360
2390
  "button",
2361
2391
  {
2362
2392
  type: "button",
2363
- className: `wandox-console-scene${C ? " wandox-console-scene--featured" : ""}${f === t.playbook_id ? " wandox-console-scene--selected" : ""}`,
2364
- onClick: () => Ie(t),
2393
+ className: `wandox-console-scene${N ? " wandox-console-scene--featured" : ""}${I === o.playbook_id ? " wandox-console-scene--selected" : ""}`,
2394
+ onClick: () => Fe(o),
2365
2395
  children: /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-scene__body", children: [
2366
2396
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-scene__head", children: [
2367
- /* @__PURE__ */ e.jsx("strong", { title: t.title, children: t.title }),
2368
- y && /* @__PURE__ */ e.jsx(
2397
+ /* @__PURE__ */ e.jsx("strong", { title: o.title, children: o.title }),
2398
+ w && /* @__PURE__ */ e.jsx(
2369
2399
  "span",
2370
2400
  {
2371
- className: `wandox-console-scene__badge wandox-console-scene__badge--${y.kind}`,
2372
- children: y.text
2401
+ className: `wandox-console-scene__badge wandox-console-scene__badge--${w.kind}`,
2402
+ children: w.text
2373
2403
  }
2374
2404
  )
2375
2405
  ] }),
2376
- t.desc && /* @__PURE__ */ e.jsx(
2406
+ o.desc && /* @__PURE__ */ e.jsx(
2377
2407
  "span",
2378
2408
  {
2379
2409
  className: "wandox-console-scene__desc",
2380
- title: t.desc,
2381
- children: t.desc
2410
+ title: o.desc,
2411
+ children: o.desc
2382
2412
  }
2383
2413
  ),
2384
- (C || k.length > 0) && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-scene__tags", children: [
2385
- C && /* @__PURE__ */ e.jsx("span", { className: "wandox-console-scene__tag wandox-console-scene__tag--featured", children: "精品" }),
2386
- k.map((g, O) => /* @__PURE__ */ e.jsx(
2414
+ (N || g.length > 0) && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-scene__tags", children: [
2415
+ N && /* @__PURE__ */ e.jsx("span", { className: "wandox-console-scene__tag wandox-console-scene__tag--featured", children: "精品" }),
2416
+ g.map((C, ue) => /* @__PURE__ */ e.jsx(
2387
2417
  "span",
2388
2418
  {
2389
2419
  className: "wandox-console-scene__tag",
2390
- style: So(g),
2391
- children: g.name
2420
+ style: Pt(C),
2421
+ children: C.name
2392
2422
  },
2393
- `${g.name}-${O}`
2423
+ `${C.name}-${ue}`
2394
2424
  ))
2395
2425
  ] })
2396
2426
  ] })
2397
2427
  }
2398
2428
  ),
2399
- t.video_url && /* @__PURE__ */ e.jsxs(
2429
+ o.video_url && /* @__PURE__ */ e.jsxs(
2400
2430
  "button",
2401
2431
  {
2402
2432
  type: "button",
2403
2433
  className: "wandox-console-scene__video",
2404
- "aria-label": `播放${t.title}演示视频`,
2405
- onClick: (g) => ue(g, t),
2434
+ "aria-label": `播放${o.title}演示视频`,
2435
+ onClick: (C) => re(C, o),
2406
2436
  children: [
2407
2437
  "▶ ",
2408
- gs(t.video_duration),
2438
+ Cs(o.video_duration),
2409
2439
  " 演示"
2410
2440
  ]
2411
2441
  }
2412
2442
  )
2413
- ] }, t.key);
2443
+ ] }, o.key);
2414
2444
  }) }) })
2415
2445
  ]
2416
2446
  }
2417
2447
  )
2418
2448
  ] }),
2419
2449
  /* @__PURE__ */ e.jsx(
2420
- ds,
2450
+ xs,
2421
2451
  {
2422
- playbook: Ce,
2423
- onClose: () => D(null)
2452
+ playbook: Te,
2453
+ onClose: () => O(null)
2424
2454
  }
2425
2455
  )
2426
2456
  ] });
2427
2457
  }
2428
- function ko(o) {
2429
- return o.is_featured === !0 || o.badge === "featured";
2458
+ function At(t) {
2459
+ return t.is_featured === !0 || t.badge === "featured";
2430
2460
  }
2431
- function No(o) {
2432
- return o.badge === "recommend" ? { text: "推荐", kind: "recommend" } : o.badge === "new" ? { text: "New", kind: "new" } : null;
2461
+ function It(t) {
2462
+ return t.badge === "recommend" ? { text: "推荐", kind: "recommend" } : t.badge === "new" ? { text: "New", kind: "new" } : null;
2433
2463
  }
2434
- function Co(o) {
2435
- return Array.isArray(o) ? o.filter(
2464
+ function Et(t) {
2465
+ return Array.isArray(t) ? t.filter(
2436
2466
  (l) => typeof (l == null ? void 0 : l.name) == "string" && l.name.trim() !== ""
2437
2467
  ) : [];
2438
2468
  }
2439
- function So(o) {
2440
- if (!(o.variant !== "soft" || !o.color))
2469
+ function Pt(t) {
2470
+ if (!(t.variant !== "soft" || !t.color))
2441
2471
  return {
2442
- color: o.color,
2443
- borderColor: cs(o.color, 0.28),
2444
- backgroundColor: cs(o.color, 0.08)
2472
+ color: t.color,
2473
+ borderColor: us(t.color, 0.28),
2474
+ backgroundColor: us(t.color, 0.08)
2445
2475
  };
2446
2476
  }
2447
- function cs(o, l) {
2448
- const r = o.trim().replace("#", "");
2449
- if (!/^[0-9a-fA-F]{6}$/.test(r)) return o;
2450
- const d = Number.parseInt(r.slice(0, 2), 16), _ = Number.parseInt(r.slice(2, 4), 16), v = Number.parseInt(r.slice(4, 6), 16);
2451
- return `rgba(${d}, ${_}, ${v}, ${l})`;
2477
+ function us(t, l) {
2478
+ const r = t.trim().replace("#", "");
2479
+ if (!/^[0-9a-fA-F]{6}$/.test(r)) return t;
2480
+ const u = Number.parseInt(r.slice(0, 2), 16), _ = Number.parseInt(r.slice(2, 4), 16), j = Number.parseInt(r.slice(4, 6), 16);
2481
+ return `rgba(${u}, ${_}, ${j}, ${l})`;
2452
2482
  }
2453
- const Ro = [
2483
+ const Lt = [
2454
2484
  {
2455
2485
  id: "conversation",
2456
2486
  title: "智能体",
2457
2487
  desc: "与智能体自由对话或选择场景执行任务",
2458
- icon: /* @__PURE__ */ e.jsx(Un, {}),
2488
+ icon: /* @__PURE__ */ e.jsx(Xn, {}),
2459
2489
  accent: "#4f46e5"
2460
2490
  },
2461
2491
  {
2462
2492
  id: "automation",
2463
2493
  title: "自动化",
2464
2494
  desc: "管理与执行自动化流程、定时任务与驾驶舱",
2465
- icon: /* @__PURE__ */ e.jsx(Fn, {}),
2495
+ icon: /* @__PURE__ */ e.jsx(Hn, {}),
2466
2496
  accent: "#4f46e5"
2467
2497
  }
2468
- ], Be = {
2498
+ ], Ke = {
2469
2499
  id: "notification",
2470
2500
  title: "通知配置",
2471
- icon: /* @__PURE__ */ e.jsx(fs, {}),
2501
+ icon: /* @__PURE__ */ e.jsx(vs, {}),
2472
2502
  accent: "#e0730c"
2473
2503
  };
2474
- function $o({
2475
- features: o,
2504
+ function Mt({
2505
+ features: t,
2476
2506
  onOpenFeature: l,
2477
2507
  activeId: r
2478
2508
  }) {
2479
2509
  return /* @__PURE__ */ e.jsxs("header", { className: "wandox-console-topnav", "aria-label": "控制台顶部导航", children: [
2480
- /* @__PURE__ */ e.jsx("nav", { className: "wandox-console-topnav__pill", "aria-label": "工作台", children: o.map((d) => {
2481
- const _ = r === d.id;
2510
+ /* @__PURE__ */ e.jsx("nav", { className: "wandox-console-topnav__pill", "aria-label": "工作台", children: t.map((u) => {
2511
+ const _ = r === u.id;
2482
2512
  return /* @__PURE__ */ e.jsxs(
2483
2513
  "button",
2484
2514
  {
2485
2515
  type: "button",
2486
2516
  className: `wandox-console-topnav__pill-btn${_ ? " wandox-console-topnav__pill-btn--active" : ""}`,
2487
- title: d.title,
2488
- "aria-label": d.title,
2517
+ title: u.title,
2518
+ "aria-label": u.title,
2489
2519
  "aria-current": _ ? "page" : void 0,
2490
- onClick: () => l(d.id),
2520
+ onClick: () => l(u.id),
2491
2521
  children: [
2492
- /* @__PURE__ */ e.jsx("span", { className: "wandox-console-topnav__pill-icon", children: d.icon }),
2493
- /* @__PURE__ */ e.jsx("span", { className: "wandox-console-topnav__pill-text", children: d.title })
2522
+ /* @__PURE__ */ e.jsx("span", { className: "wandox-console-topnav__pill-icon", children: u.icon }),
2523
+ /* @__PURE__ */ e.jsx("span", { className: "wandox-console-topnav__pill-text", children: u.title })
2494
2524
  ]
2495
2525
  },
2496
- d.id
2526
+ u.id
2497
2527
  );
2498
2528
  }) }),
2499
2529
  /* @__PURE__ */ e.jsx(
@@ -2502,43 +2532,43 @@ function $o({
2502
2532
  type: "button",
2503
2533
  className: "wandox-console-topnav__notify",
2504
2534
  style: {
2505
- "--notify-accent": Be.accent
2535
+ "--notify-accent": Ke.accent
2506
2536
  },
2507
- title: Be.title,
2508
- "aria-label": Be.title,
2509
- onClick: () => l(Be.id),
2510
- children: /* @__PURE__ */ e.jsx("span", { className: "wandox-console-topnav__notify-icon", children: Be.icon })
2537
+ title: Ke.title,
2538
+ "aria-label": Ke.title,
2539
+ onClick: () => l(Ke.id),
2540
+ children: /* @__PURE__ */ e.jsx("span", { className: "wandox-console-topnav__notify-icon", children: Ke.icon })
2511
2541
  }
2512
2542
  )
2513
2543
  ] });
2514
2544
  }
2515
- function Io({
2516
- className: o = "",
2545
+ function Tt({
2546
+ className: t = "",
2517
2547
  state: l = "idle"
2518
2548
  }) {
2519
2549
  return /* @__PURE__ */ e.jsx(
2520
2550
  "img",
2521
2551
  {
2522
- className: `wandox-console-companion${o ? ` ${o}` : ""}`,
2552
+ className: `wandox-console-companion${t ? ` ${t}` : ""}`,
2523
2553
  "data-state": l,
2524
- src: Vn,
2554
+ src: Un,
2525
2555
  alt: "",
2526
2556
  "aria-hidden": "true"
2527
2557
  }
2528
2558
  );
2529
2559
  }
2530
- function ls({ fading: o }) {
2560
+ function ms({ fading: t }) {
2531
2561
  return /* @__PURE__ */ e.jsxs(
2532
2562
  "div",
2533
2563
  {
2534
- className: `wandox-console-init${o ? " wandox-console-init--fading" : ""}`,
2564
+ className: `wandox-console-init${t ? " wandox-console-init--fading" : ""}`,
2535
2565
  "aria-hidden": !0,
2536
2566
  children: [
2537
2567
  /* @__PURE__ */ e.jsx("div", { className: "wandox-console-init__halo wandox-console-init__halo--a" }),
2538
2568
  /* @__PURE__ */ e.jsx("div", { className: "wandox-console-init__halo wandox-console-init__halo--b" }),
2539
2569
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-init__inner", children: [
2540
2570
  /* @__PURE__ */ e.jsx(
2541
- Io,
2571
+ Tt,
2542
2572
  {
2543
2573
  className: "wandox-console-init__companion",
2544
2574
  state: "thinking"
@@ -2561,17 +2591,17 @@ function ls({ fading: o }) {
2561
2591
  }
2562
2592
  );
2563
2593
  }
2564
- function is({
2565
- title: o,
2594
+ function hs({
2595
+ title: t,
2566
2596
  onBack: l,
2567
2597
  hideHeader: r = !1,
2568
- className: d,
2598
+ className: u,
2569
2599
  children: _
2570
2600
  }) {
2571
2601
  return /* @__PURE__ */ e.jsxs(
2572
2602
  "div",
2573
2603
  {
2574
- className: `wandox-console-featureview${d ? ` ${d}` : ""}`,
2604
+ className: `wandox-console-featureview${u ? ` ${u}` : ""}`,
2575
2605
  children: [
2576
2606
  !r && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-featureview__bar", children: [
2577
2607
  /* @__PURE__ */ e.jsxs(
@@ -2581,155 +2611,155 @@ function is({
2581
2611
  className: "wandox-console-featureview__back",
2582
2612
  onClick: l,
2583
2613
  children: [
2584
- /* @__PURE__ */ e.jsx(_s, {}),
2614
+ /* @__PURE__ */ e.jsx(gs, {}),
2585
2615
  "返回控制台"
2586
2616
  ]
2587
2617
  }
2588
2618
  ),
2589
- /* @__PURE__ */ e.jsx("span", { className: "wandox-console-featureview__title", children: o })
2619
+ /* @__PURE__ */ e.jsx("span", { className: "wandox-console-featureview__title", children: t })
2590
2620
  ] }),
2591
2621
  /* @__PURE__ */ e.jsx("div", { className: "wandox-console-featureview__body", children: _ })
2592
2622
  ]
2593
2623
  }
2594
2624
  );
2595
2625
  }
2596
- function Lo({
2597
- agents: o,
2626
+ function Vt({
2627
+ agents: t,
2598
2628
  initialAgentId: l,
2599
2629
  initialPlaybookId: r,
2600
- initialPlaybookParams: d,
2630
+ initialPlaybookParams: u,
2601
2631
  onReady: _
2602
2632
  } = {}) {
2603
2633
  const {
2604
- agents: v,
2634
+ agents: j,
2605
2635
  agentLoading: p,
2606
- selectedAgentId: b,
2607
- selectedAgent: $,
2608
- selectAgent: T,
2609
- ...ae
2610
- } = Kn({ presetAgents: o, initialAgentId: l }), [Q, le] = s.useState(null), I = s.useRef(null), q = s.useRef(!1), [L, R] = s.useState("home"), [h, D] = s.useState(
2636
+ selectedAgentId: f,
2637
+ selectedAgent: R,
2638
+ selectAgent: F,
2639
+ ...Y
2640
+ } = et({ presetAgents: t, initialAgentId: l }), [z, me] = s.useState(null), $ = s.useRef(null), q = s.useRef(!1), [L, S] = s.useState("home"), [h, O] = s.useState(
2611
2641
  null
2612
- ), [ie, F] = s.useState(!1), [E, W] = s.useState(null), [oe, te] = s.useState(""), H = $ == null ? void 0 : $.name, V = s.useCallback((x) => {
2613
- if (I.current) {
2614
- I.current.showInspectionResults(x);
2642
+ ), [he, D] = s.useState(!1), [E, W] = s.useState(null), [le, ie] = s.useState(""), H = R == null ? void 0 : R.name, V = s.useCallback((b) => {
2643
+ if ($.current) {
2644
+ $.current.showInspectionResults(b);
2615
2645
  return;
2616
2646
  }
2617
- le({ robotName: x });
2647
+ me({ robotName: b });
2618
2648
  }, []);
2619
2649
  s.useEffect(() => {
2620
2650
  _ == null || _({ showInspectionResults: V });
2621
2651
  }, [V, _]), s.useEffect(() => {
2622
- !Q || I.current || !b || L === "chat" || (W({
2623
- agentId: b,
2652
+ !z || $.current || !f || L === "chat" || (W({
2653
+ agentId: f,
2624
2654
  agentName: H,
2625
2655
  playbookParams: {},
2626
2656
  message: ""
2627
- }), R("chat"));
2628
- }, [L, Q, b, H]), s.useEffect(() => {
2629
- te("");
2630
- }, [b]);
2657
+ }), S("chat"));
2658
+ }, [L, z, f, H]), s.useEffect(() => {
2659
+ ie("");
2660
+ }, [f]);
2631
2661
  const {
2632
2662
  playbooks: U,
2633
- userPlaybooks: Y,
2634
- useMapCategories: re,
2663
+ userPlaybooks: Z,
2664
+ useMapCategories: pe,
2635
2665
  useMapCards: A,
2636
2666
  sceneLoading: B,
2637
- useMapError: ke,
2638
- reload: pe
2639
- } = ae, de = s.useMemo(
2640
- () => re.length > 0 ? re : Gn(U),
2641
- [re, U]
2667
+ useMapError: Ne,
2668
+ reload: fe
2669
+ } = Y, xe = s.useMemo(
2670
+ () => pe.length > 0 ? pe : at(U),
2671
+ [pe, U]
2642
2672
  );
2643
2673
  s.useEffect(() => {
2644
- if (de.length === 0) return;
2645
- de.some(
2646
- (f) => f.key === oe
2647
- ) || te(de[0].key);
2648
- }, [de]);
2649
- const je = s.useRef(!1);
2674
+ if (xe.length === 0) return;
2675
+ xe.some(
2676
+ (I) => I.key === le
2677
+ ) || ie(xe[0].key);
2678
+ }, [xe]);
2679
+ const ve = s.useRef(!1);
2650
2680
  s.useEffect(() => {
2651
- if (je.current || !r || !b || B)
2681
+ if (ve.current || !r || !f || B)
2652
2682
  return;
2653
- const x = v.find(
2654
- (f) => f.id === b && os(f, l)
2683
+ const b = j.find(
2684
+ (I) => I.id === f && rs(I, l)
2655
2685
  );
2656
- x && (je.current = !0, W({
2657
- agentId: b,
2658
- agentName: x.name,
2686
+ b && (ve.current = !0, W({
2687
+ agentId: f,
2688
+ agentName: b.name,
2659
2689
  playbookId: r,
2660
- playbookParams: d || {},
2690
+ playbookParams: u || {},
2661
2691
  message: ""
2662
- }), R("chat"));
2692
+ }), S("chat"));
2663
2693
  }, [
2664
2694
  B,
2665
- v,
2695
+ j,
2666
2696
  l,
2667
2697
  r,
2668
- d,
2669
- b,
2698
+ u,
2699
+ f,
2670
2700
  H
2671
2701
  ]), s.useEffect(() => {
2672
- if (q.current || !l || r || !b || B)
2702
+ if (q.current || !l || r || !f || B)
2673
2703
  return;
2674
- const x = v.find(
2675
- (f) => f.id === b && os(f, l)
2704
+ const b = j.find(
2705
+ (I) => I.id === f && rs(I, l)
2676
2706
  );
2677
- x && (q.current = !0, W({
2678
- agentId: x.id,
2679
- agentName: x.name,
2707
+ b && (q.current = !0, W({
2708
+ agentId: b.id,
2709
+ agentName: b.name,
2680
2710
  playbookParams: {},
2681
2711
  message: ""
2682
- }), R("chat"));
2683
- }, [v, B, l, r, b]);
2684
- const [xe, Re] = s.useState(!0), [$e, Ne] = s.useState(!1);
2712
+ }), S("chat"));
2713
+ }, [j, B, l, r, f]);
2714
+ const [we, Ae] = s.useState(!0), [Ie, Ce] = s.useState(!1);
2685
2715
  s.useEffect(() => {
2686
- if (!xe || !(!p && v.length > 0 && !!b && !B)) return;
2687
- Ne(!0);
2688
- const ce = setTimeout(() => Re(!1), 280);
2689
- return () => clearTimeout(ce);
2690
- }, [p, v.length, b, B, xe]);
2691
- const Z = s.useCallback(() => {
2692
- R("home"), D(null), F(!1);
2716
+ if (!we || !(!p && j.length > 0 && !!f && !B)) return;
2717
+ Ce(!0);
2718
+ const oe = setTimeout(() => Ae(!1), 280);
2719
+ return () => clearTimeout(oe);
2720
+ }, [p, j.length, f, B, we]);
2721
+ const J = s.useCallback(() => {
2722
+ S("home"), O(null), D(!1);
2693
2723
  }, []), K = s.useCallback(
2694
- (x) => {
2695
- if (x === "conversation") {
2696
- Z();
2724
+ (b) => {
2725
+ if (b === "conversation") {
2726
+ J();
2697
2727
  return;
2698
2728
  }
2699
- F(!1), D(x);
2729
+ D(!1), O(b);
2700
2730
  },
2701
- [Z]
2702
- ), G = (x) => {
2703
- T(x), R("home");
2704
- }, X = (x) => {
2705
- if (x === b) return;
2706
- const f = v.find((ce) => ce.id === x);
2707
- T(x), W({
2708
- agentId: x,
2709
- agentName: f == null ? void 0 : f.name,
2731
+ [J]
2732
+ ), G = (b) => {
2733
+ F(b), S("home");
2734
+ }, X = (b) => {
2735
+ if (b === f) return;
2736
+ const I = j.find((oe) => oe.id === b);
2737
+ F(b), W({
2738
+ agentId: b,
2739
+ agentName: I == null ? void 0 : I.name,
2710
2740
  playbookParams: {},
2711
2741
  message: ""
2712
2742
  });
2713
- }, ee = () => {
2714
- b && (W({
2715
- agentId: b,
2743
+ }, se = () => {
2744
+ f && (W({
2745
+ agentId: f,
2716
2746
  agentName: H,
2717
2747
  playbookParams: {},
2718
2748
  message: ""
2719
- }), R("chat"));
2720
- }, _e = (x) => {
2749
+ }), S("chat"));
2750
+ }, ye = (b) => {
2721
2751
  W({
2722
- agentId: b,
2752
+ agentId: f,
2723
2753
  agentName: H,
2724
- playbookId: x.playbookId,
2725
- playbookParams: x.playbookParams,
2726
- message: x.message,
2727
- attachments: x.attachments
2728
- }), R("chat");
2754
+ playbookId: b.playbookId,
2755
+ playbookParams: b.playbookParams,
2756
+ message: b.message,
2757
+ attachments: b.attachments
2758
+ }), S("chat");
2729
2759
  };
2730
2760
  return L === "chat" && E ? /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-chat-shell", children: [
2731
2761
  /* @__PURE__ */ e.jsx(
2732
- go,
2762
+ St,
2733
2763
  {
2734
2764
  agentId: E.agentId,
2735
2765
  agentName: E.agentName,
@@ -2738,80 +2768,80 @@ function Lo({
2738
2768
  initialMessage: E.message,
2739
2769
  initialAttachments: E.attachments,
2740
2770
  useMapCards: A,
2741
- useMapCategories: re,
2771
+ useMapCategories: pe,
2742
2772
  playbooks: U,
2743
- userPlaybooks: Y,
2744
- agents: v,
2745
- onReady: (x) => {
2746
- I.current = x, Q && (x.showInspectionResults(Q.robotName), le(null));
2773
+ userPlaybooks: Z,
2774
+ agents: j,
2775
+ onReady: (b) => {
2776
+ $.current = b, z && (b.showInspectionResults(z.robotName), me(null));
2747
2777
  },
2748
2778
  onChangeAgent: X,
2749
2779
  onBack: () => {
2750
- I.current = null, R("home");
2780
+ $.current = null, S("home");
2751
2781
  },
2752
2782
  onSelectScene: () => {
2753
2783
  }
2754
2784
  },
2755
2785
  `${E.agentId}:${E.playbookId || "free-chat"}`
2756
2786
  ),
2757
- xe && /* @__PURE__ */ e.jsx(ls, { fading: $e })
2787
+ we && /* @__PURE__ */ e.jsx(ms, { fading: Ie })
2758
2788
  ] }) : /* @__PURE__ */ e.jsxs(
2759
2789
  "div",
2760
2790
  {
2761
- className: `wandox-console${ie ? " wandox-console--secondary" : ""}`,
2791
+ className: `wandox-console${he ? " wandox-console--secondary" : ""}`,
2762
2792
  children: [
2763
- xe && /* @__PURE__ */ e.jsx(ls, { fading: $e }),
2764
- !ie && /* @__PURE__ */ e.jsx(
2765
- $o,
2793
+ we && /* @__PURE__ */ e.jsx(ms, { fading: Ie }),
2794
+ !he && /* @__PURE__ */ e.jsx(
2795
+ Mt,
2766
2796
  {
2767
- features: Ro,
2797
+ features: Lt,
2768
2798
  activeId: h ?? "conversation",
2769
2799
  onOpenFeature: K
2770
2800
  }
2771
2801
  ),
2772
2802
  /* @__PURE__ */ e.jsxs("main", { className: "wandox-console-main", children: [
2773
2803
  h === "automation" && /* @__PURE__ */ e.jsx(
2774
- is,
2804
+ hs,
2775
2805
  {
2776
2806
  title: "自动化",
2777
- onBack: () => D(null),
2807
+ onBack: () => O(null),
2778
2808
  hideHeader: !0,
2779
2809
  className: "wandox-console-featureview--automation",
2780
2810
  children: /* @__PURE__ */ e.jsx(
2781
- Qn,
2811
+ st,
2782
2812
  {
2783
- onCockpitEnter: () => F(!0),
2784
- onCockpitExit: () => F(!1),
2785
- onInboxEnter: () => F(!0)
2813
+ onCockpitEnter: () => D(!0),
2814
+ onCockpitExit: () => D(!1),
2815
+ onInboxEnter: () => D(!0)
2786
2816
  }
2787
2817
  )
2788
2818
  }
2789
2819
  ),
2790
2820
  h === "notification" && /* @__PURE__ */ e.jsx(
2791
- is,
2821
+ hs,
2792
2822
  {
2793
2823
  title: "通知配置",
2794
- onBack: () => D(null),
2824
+ onBack: () => O(null),
2795
2825
  hideHeader: !0,
2796
- children: /* @__PURE__ */ e.jsx(Yn, {})
2826
+ children: /* @__PURE__ */ e.jsx(nt, {})
2797
2827
  }
2798
2828
  ),
2799
2829
  !h && /* @__PURE__ */ e.jsx(
2800
- vo,
2830
+ $t,
2801
2831
  {
2802
2832
  useMapCards: A,
2803
- useMapCategories: de,
2833
+ useMapCategories: xe,
2804
2834
  playbooks: U,
2805
- selectedCategoryKey: oe,
2806
- onCategorySelect: te,
2835
+ selectedCategoryKey: le,
2836
+ onCategorySelect: ie,
2807
2837
  loading: B,
2808
- useMapError: ke,
2809
- onRetry: pe,
2810
- onStartAnalysis: _e,
2811
- agents: v,
2812
- selectedAgentId: b,
2838
+ useMapError: Ne,
2839
+ onRetry: fe,
2840
+ onStartAnalysis: ye,
2841
+ agents: j,
2842
+ selectedAgentId: f,
2813
2843
  onAgentSelect: G,
2814
- onOpenAgentChat: ee
2844
+ onOpenAgentChat: se
2815
2845
  }
2816
2846
  )
2817
2847
  ] })
@@ -2820,5 +2850,5 @@ function Lo({
2820
2850
  );
2821
2851
  }
2822
2852
  export {
2823
- Lo as default
2853
+ Vt as default
2824
2854
  };