@wandox/sdk 0.1.40 → 0.1.42

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-CItNelpx.cjs → V1Workbench-BMtwxYV1.cjs} +1 -1
  2. package/dist/{V1Workbench-Bkmf1K42.js → V1Workbench-BPM2Hyia.js} +3 -3
  3. package/dist/V2Workbench-Dldh6IwR.cjs +2 -0
  4. package/dist/{V2Workbench-CzVA0I0C.js → V2Workbench-SLCyuz0m.js} +657 -592
  5. package/dist/{WorkbenchRuntime-WgDNtkfm.cjs → WorkbenchRuntime-Bw3YVJyj.cjs} +1 -1
  6. package/dist/{WorkbenchRuntime-BtaB5WWj.js → WorkbenchRuntime-D4TX08P0.js} +2 -2
  7. package/dist/{arc-p2evs-YP.js → arc-CTFudHUx.js} +1 -1
  8. package/dist/{arc-Dp6HGkPf.cjs → arc-TMt-ELu0.cjs} +1 -1
  9. package/dist/{architectureDiagram-3BPJPVTR-S5Nk8_Ym.js → architectureDiagram-3BPJPVTR-D0nzJigQ.js} +3 -3
  10. package/dist/{architectureDiagram-3BPJPVTR-DLW47m6f.cjs → architectureDiagram-3BPJPVTR-ma8wVb-G.cjs} +1 -1
  11. package/dist/{blockDiagram-GPEHLZMM-DaROF8fd.cjs → blockDiagram-GPEHLZMM-B9SG48zF.cjs} +1 -1
  12. package/dist/{blockDiagram-GPEHLZMM-CnAR5dM8.js → blockDiagram-GPEHLZMM-CrLMJpgy.js} +3 -3
  13. package/dist/{c4Diagram-AAUBKEIU-B4dU2Qlc.cjs → c4Diagram-AAUBKEIU-DYLkOb29.cjs} +1 -1
  14. package/dist/{c4Diagram-AAUBKEIU-C-Fj0O2Q.js → c4Diagram-AAUBKEIU-jGpmbYup.js} +2 -2
  15. package/dist/{channel-BBbxPnTi.cjs → channel-D9aXObDg.cjs} +1 -1
  16. package/dist/{channel-BZZ2huJO.js → channel-xuGF2XHi.js} +1 -1
  17. package/dist/{chunk-2J33WTMH-BslFwdPd.cjs → chunk-2J33WTMH-Bb7r3UsS.cjs} +1 -1
  18. package/dist/{chunk-2J33WTMH-BCVkaWvn.js → chunk-2J33WTMH-DfCPx4TK.js} +1 -1
  19. package/dist/{chunk-4BX2VUAB-D6Udw9Mc.js → chunk-4BX2VUAB-BVBFGazg.js} +1 -1
  20. package/dist/{chunk-4BX2VUAB-BHzIlLga.cjs → chunk-4BX2VUAB-Ujuys49Z.cjs} +1 -1
  21. package/dist/{chunk-55IACEB6-0b2j3Xbg.cjs → chunk-55IACEB6-CCHNm8Tr.cjs} +1 -1
  22. package/dist/{chunk-55IACEB6-Cz6uJPeB.js → chunk-55IACEB6-D2bCK212.js} +1 -1
  23. package/dist/{chunk-727SXJPM-BaM2sDB9.cjs → chunk-727SXJPM-C72XbFAd.cjs} +1 -1
  24. package/dist/{chunk-727SXJPM-C36Anem5.js → chunk-727SXJPM-Cio-wglM.js} +5 -5
  25. package/dist/{chunk-AQP2D5EJ-B7gqs7oW.cjs → chunk-AQP2D5EJ-B3kQBTIw.cjs} +1 -1
  26. package/dist/{chunk-AQP2D5EJ-ZE_DySvS.js → chunk-AQP2D5EJ-Ba8JlV7E.js} +3 -3
  27. package/dist/{chunk-FMBD7UC4-DtqMssXQ.js → chunk-FMBD7UC4-B8AkbgCj.js} +1 -1
  28. package/dist/{chunk-FMBD7UC4-DPnttxo-.cjs → chunk-FMBD7UC4-CYbGgPkz.cjs} +1 -1
  29. package/dist/{chunk-ND2GUHAM-CI8ify2b.cjs → chunk-ND2GUHAM-BgCWhBGM.cjs} +1 -1
  30. package/dist/{chunk-ND2GUHAM-GyysshWQ.js → chunk-ND2GUHAM-CHUVXZay.js} +1 -1
  31. package/dist/{chunk-QZHKN3VN-CLLJT-iu.cjs → chunk-QZHKN3VN-CvOSWDrJ.cjs} +1 -1
  32. package/dist/{chunk-QZHKN3VN-CogEQqcp.js → chunk-QZHKN3VN-D8pfWLL2.js} +1 -1
  33. package/dist/{classDiagram-4FO5ZUOK-BYg4Pa6H.cjs → classDiagram-4FO5ZUOK-BgajT1MN.cjs} +1 -1
  34. package/dist/{classDiagram-4FO5ZUOK-BKPODxxw.js → classDiagram-4FO5ZUOK-BpqWK41p.js} +2 -2
  35. package/dist/{classDiagram-v2-Q7XG4LA2-BYg4Pa6H.cjs → classDiagram-v2-Q7XG4LA2-BgajT1MN.cjs} +1 -1
  36. package/dist/{classDiagram-v2-Q7XG4LA2-CEIG7BUg.js → classDiagram-v2-Q7XG4LA2-DIpkOsLT.js} +2 -2
  37. package/dist/{cose-bilkent-S5V4N54A-CIO6lXK4.cjs → cose-bilkent-S5V4N54A-CpfHDS3L.cjs} +1 -1
  38. package/dist/{cose-bilkent-S5V4N54A-Bh_LjYJa.js → cose-bilkent-S5V4N54A-Cqi01qNn.js} +2 -2
  39. package/dist/{dagre-BM42HDAG-B1zhDnbU.js → dagre-BM42HDAG-C23jgWGl.js} +1 -1
  40. package/dist/{dagre-BM42HDAG-B0imV5xh.cjs → dagre-BM42HDAG-CLDIPr-X.cjs} +1 -1
  41. package/dist/{diagram-2AECGRRQ-BXFpQz5l.js → diagram-2AECGRRQ-Cj24Od-u.js} +2 -2
  42. package/dist/{diagram-2AECGRRQ-nWXbUHwt.cjs → diagram-2AECGRRQ-CjnokWsQ.cjs} +1 -1
  43. package/dist/{diagram-5GNKFQAL-BelQYxW2.js → diagram-5GNKFQAL-BbiEdciY.js} +3 -3
  44. package/dist/{diagram-5GNKFQAL-CxxJicHI.cjs → diagram-5GNKFQAL-BfV9uMUl.cjs} +1 -1
  45. package/dist/{diagram-KO2AKTUF-CZEeDH7M.js → diagram-KO2AKTUF-D9v2ooVA.js} +2 -2
  46. package/dist/{diagram-KO2AKTUF-DjnQxEUp.cjs → diagram-KO2AKTUF-DrZSS2Gv.cjs} +1 -1
  47. package/dist/{diagram-LMA3HP47-D6J2F4J0.cjs → diagram-LMA3HP47-eMKAwWlp.cjs} +1 -1
  48. package/dist/{diagram-LMA3HP47-unuJ3SHU.js → diagram-LMA3HP47-rD-lWG_r.js} +2 -2
  49. package/dist/{diagram-OG6HWLK6-BP5DzAWo.cjs → diagram-OG6HWLK6-50-uYAg9.cjs} +1 -1
  50. package/dist/{diagram-OG6HWLK6-lal84-fO.js → diagram-OG6HWLK6-CflRan99.js} +3 -3
  51. package/dist/{erDiagram-TEJ5UH35-BDzac_yS.cjs → erDiagram-TEJ5UH35-BTriOcqX.cjs} +1 -1
  52. package/dist/{erDiagram-TEJ5UH35-eUkSOPMA.js → erDiagram-TEJ5UH35-CEHO-wXV.js} +4 -4
  53. package/dist/{flowDiagram-I6XJVG4X-BsdsU4VU.cjs → flowDiagram-I6XJVG4X-BLp2Bhui.cjs} +1 -1
  54. package/dist/{flowDiagram-I6XJVG4X-DCzTSref.js → flowDiagram-I6XJVG4X-BvOBJzbt.js} +6 -6
  55. package/dist/{ganttDiagram-6RSMTGT7-pyd5uyfC.js → ganttDiagram-6RSMTGT7-9be6okZP.js} +3 -3
  56. package/dist/{ganttDiagram-6RSMTGT7-VdCKv9lI.cjs → ganttDiagram-6RSMTGT7-DHYCnTZk.cjs} +1 -1
  57. package/dist/{gitGraphDiagram-PVQCEYII-uaeRcwRX.js → gitGraphDiagram-PVQCEYII-DysW3J76.js} +3 -3
  58. package/dist/{gitGraphDiagram-PVQCEYII-CHSRixtX.cjs → gitGraphDiagram-PVQCEYII-fuLhNOZJ.cjs} +1 -1
  59. package/dist/{index-DsH5dPnp.js → index-BjGp64i-.js} +2 -2
  60. package/dist/{index-Ca9Ql6S9.js → index-CN7b3cbE.js} +8 -8
  61. package/dist/{index-NH-U1YoC.cjs → index-DCt5j5lC.cjs} +6 -6
  62. package/dist/{index-C6UznrWn.cjs → index-QIZEllkT.cjs} +1 -1
  63. package/dist/{infoDiagram-5YYISTIA-CLtsqBN1.js → infoDiagram-5YYISTIA-BKiJ4C1R.js} +1 -1
  64. package/dist/{infoDiagram-5YYISTIA-BuB-FkRS.cjs → infoDiagram-5YYISTIA-BQB8CM7E.cjs} +1 -1
  65. package/dist/{ishikawaDiagram-YF4QCWOH-14uoP_Zp.js → ishikawaDiagram-YF4QCWOH-Cm3nbVdr.js} +1 -1
  66. package/dist/{ishikawaDiagram-YF4QCWOH-CocvPDlS.cjs → ishikawaDiagram-YF4QCWOH-CmWN_962.cjs} +1 -1
  67. package/dist/{journeyDiagram-JHISSGLW-B7dpJRIo.js → journeyDiagram-JHISSGLW-BH3kUnoi.js} +4 -4
  68. package/dist/{journeyDiagram-JHISSGLW-8xy8wS-h.cjs → journeyDiagram-JHISSGLW-Qeh_6e_n.cjs} +1 -1
  69. package/dist/{kanban-definition-UN3LZRKU-D18GwLQS.cjs → kanban-definition-UN3LZRKU-BQVFSEa2.cjs} +1 -1
  70. package/dist/{kanban-definition-UN3LZRKU-vunuCqsW.js → kanban-definition-UN3LZRKU-BcNQilMv.js} +2 -2
  71. package/dist/{linear-D2jSS9Kp.cjs → linear-TarjbgsN.cjs} +1 -1
  72. package/dist/{linear-sc1nZZBl.js → linear-xl1chASq.js} +1 -1
  73. package/dist/{mermaid.core-CBIohIEC.cjs → mermaid.core-CD8W-83J.cjs} +3 -3
  74. package/dist/{mermaid.core-Cj7H_j_o.js → mermaid.core-VImUQ-y-.js} +35 -35
  75. package/dist/{mindmap-definition-RKZ34NQL-Dwhdy2Lv.js → mindmap-definition-RKZ34NQL-BJl71t4P.js} +3 -3
  76. package/dist/{mindmap-definition-RKZ34NQL-DcYPxTLy.cjs → mindmap-definition-RKZ34NQL-DCRQT10I.cjs} +1 -1
  77. package/dist/{pieDiagram-4H26LBE5-BiBh5z_4.cjs → pieDiagram-4H26LBE5--tW4dEtH.cjs} +1 -1
  78. package/dist/{pieDiagram-4H26LBE5-CZEVmlfR.js → pieDiagram-4H26LBE5-DwQkQmdD.js} +3 -3
  79. package/dist/{quadrantDiagram-W4KKPZXB-BuuPBESZ.js → quadrantDiagram-W4KKPZXB-D41uKlpw.js} +2 -2
  80. package/dist/{quadrantDiagram-W4KKPZXB-DszFlk-S.cjs → quadrantDiagram-W4KKPZXB-WFcfZghI.cjs} +1 -1
  81. package/dist/{requirementDiagram-4Y6WPE33-ByH8B2ZH.cjs → requirementDiagram-4Y6WPE33-ChLKzwEb.cjs} +1 -1
  82. package/dist/{requirementDiagram-4Y6WPE33-CBVeO6ga.js → requirementDiagram-4Y6WPE33-npAxQTol.js} +3 -3
  83. package/dist/{sankeyDiagram-5OEKKPKP-Dhk-rR8_.cjs → sankeyDiagram-5OEKKPKP-BvcPTB2N.cjs} +1 -1
  84. package/dist/{sankeyDiagram-5OEKKPKP-CPMEaHn3.js → sankeyDiagram-5OEKKPKP-fKgres6H.js} +1 -1
  85. package/dist/{sequenceDiagram-3UESZ5HK-CjnhgM39.js → sequenceDiagram-3UESZ5HK-CpEUV9gb.js} +3 -3
  86. package/dist/{sequenceDiagram-3UESZ5HK-nuywC0l5.cjs → sequenceDiagram-3UESZ5HK-LGRgMkGi.cjs} +1 -1
  87. package/dist/{stateDiagram-AJRCARHV-cJ2GiNH4.js → stateDiagram-AJRCARHV-CHqQN0ix.js} +2 -2
  88. package/dist/{stateDiagram-AJRCARHV-0CUDhISM.cjs → stateDiagram-AJRCARHV-XBb-Dtow.cjs} +1 -1
  89. package/dist/{stateDiagram-v2-BHNVJYJU-Bvyir8PP.cjs → stateDiagram-v2-BHNVJYJU-C14xhWxp.cjs} +1 -1
  90. package/dist/{stateDiagram-v2-BHNVJYJU-nlH8p5aD.js → stateDiagram-v2-BHNVJYJU-Z8Pi0Y3W.js} +2 -2
  91. package/dist/{timeline-definition-PNZ67QCA-BR5rGmv7.js → timeline-definition-PNZ67QCA-CQlKM_xI.js} +2 -2
  92. package/dist/{timeline-definition-PNZ67QCA-BJOWbfT_.cjs → timeline-definition-PNZ67QCA-D6BDxDF0.cjs} +1 -1
  93. package/dist/{vennDiagram-CIIHVFJN-CwEezNL4.cjs → vennDiagram-CIIHVFJN-BNuzvov-.cjs} +1 -1
  94. package/dist/{vennDiagram-CIIHVFJN-BdO9p0AW.js → vennDiagram-CIIHVFJN-CQuhupzV.js} +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 +406 -406
  99. package/dist/{wardleyDiagram-YWT4CUSO-Clxin-yE.js → wardleyDiagram-YWT4CUSO-22zzwPUn.js} +2 -2
  100. package/dist/{wardleyDiagram-YWT4CUSO-DNTHPpN6.cjs → wardleyDiagram-YWT4CUSO-MHRvjUGT.cjs} +1 -1
  101. package/dist/{xychartDiagram-2RQKCTM6-V_uIcNZ1.js → xychartDiagram-2RQKCTM6-BLOMoiAI.js} +2 -2
  102. package/dist/{xychartDiagram-2RQKCTM6-BM-DXVP1.cjs → xychartDiagram-2RQKCTM6-CUe-G5Nn.cjs} +1 -1
  103. package/package.json +1 -1
  104. package/dist/V2Workbench-Du9Rjdb9.cjs +0 -2
@@ -1,78 +1,78 @@
1
- import { dt as s, af as ze, d0 as e, a_ as rs, ai as Ra, a$ as _a, aR as ds, bL as us, b0 as an, d_ as ms, K as Xa, aa as sn, a9 as ba, d6 as es, Q as nn, P as on, a6 as tn, a4 as cn, T as ln, da as hs, dG as C, ci as rn, S as dn, J as fa, c_ as un, cO as mn, dO as hn, cd as xn, cH as pn, cG as _n, as as bn, ap as fn, o as wn, m as yn, v as gn, b1 as xs, b2 as jn, bC as wa, aO as vn, b3 as ya, 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 En, cI as An, cJ as Pn, aE as as, b4 as Mn, aZ as Ln, b5 as ss, b6 as Tn, b7 as On, b8 as Dn, b9 as Fn, ek as Vn } from "./index-Ca9Ql6S9.js";
2
- import { n as Bn, A as zn, l as na, m as ga, p as qn, h as ps, R as ja, 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-BtaB5WWj.js";
3
- import { Drawer as Zn, Divider as Jn } from "./index-DsH5dPnp.js";
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
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 va() {
6
- return va = Object.assign ? Object.assign.bind() : function(o) {
5
+ function ka() {
6
+ return ka = Object.assign ? Object.assign.bind() : function(o) {
7
7
  for (var l = 1; l < arguments.length; l++) {
8
- var u = arguments[l];
9
- for (var r in u)
10
- Object.prototype.hasOwnProperty.call(u, r) && (o[r] = u[r]);
8
+ var r = arguments[l];
9
+ for (var d in r)
10
+ Object.prototype.hasOwnProperty.call(r, d) && (o[d] = r[d]);
11
11
  }
12
12
  return o;
13
- }, va.apply(this, arguments);
13
+ }, ka.apply(this, arguments);
14
14
  }
15
- const eo = (o, l) => /* @__PURE__ */ s.createElement(ze, va({}, o, {
15
+ const eo = (o, l) => /* @__PURE__ */ s.createElement(ze, ka({}, o, {
16
16
  ref: l,
17
17
  icon: Xn
18
18
  })), ao = /* @__PURE__ */ s.forwardRef(eo);
19
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 ka() {
21
- return ka = Object.assign ? Object.assign.bind() : function(o) {
20
+ function Na() {
21
+ return Na = Object.assign ? Object.assign.bind() : function(o) {
22
22
  for (var l = 1; l < arguments.length; l++) {
23
- var u = arguments[l];
24
- for (var r in u)
25
- Object.prototype.hasOwnProperty.call(u, r) && (o[r] = u[r]);
23
+ var r = arguments[l];
24
+ for (var d in r)
25
+ Object.prototype.hasOwnProperty.call(r, d) && (o[d] = r[d]);
26
26
  }
27
27
  return o;
28
- }, ka.apply(this, arguments);
28
+ }, Na.apply(this, arguments);
29
29
  }
30
- const no = (o, l) => /* @__PURE__ */ s.createElement(ze, ka({}, o, {
30
+ const no = (o, l) => /* @__PURE__ */ s.createElement(ze, Na({}, o, {
31
31
  ref: l,
32
32
  icon: so
33
33
  })), oo = /* @__PURE__ */ s.forwardRef(no);
34
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 Na() {
36
- return Na = Object.assign ? Object.assign.bind() : function(o) {
35
+ function Ca() {
36
+ return Ca = Object.assign ? Object.assign.bind() : function(o) {
37
37
  for (var l = 1; l < arguments.length; l++) {
38
- var u = arguments[l];
39
- for (var r in u)
40
- Object.prototype.hasOwnProperty.call(u, r) && (o[r] = u[r]);
38
+ var r = arguments[l];
39
+ for (var d in r)
40
+ Object.prototype.hasOwnProperty.call(r, d) && (o[d] = r[d]);
41
41
  }
42
42
  return o;
43
- }, Na.apply(this, arguments);
43
+ }, Ca.apply(this, arguments);
44
44
  }
45
- const co = (o, l) => /* @__PURE__ */ s.createElement(ze, Na({}, o, {
45
+ const co = (o, l) => /* @__PURE__ */ s.createElement(ze, Ca({}, o, {
46
46
  ref: l,
47
47
  icon: to
48
48
  })), lo = /* @__PURE__ */ s.forwardRef(co);
49
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 Ca() {
51
- return Ca = Object.assign ? Object.assign.bind() : function(o) {
50
+ function Sa() {
51
+ return Sa = Object.assign ? Object.assign.bind() : function(o) {
52
52
  for (var l = 1; l < arguments.length; l++) {
53
- var u = arguments[l];
54
- for (var r in u)
55
- Object.prototype.hasOwnProperty.call(u, r) && (o[r] = u[r]);
53
+ var r = arguments[l];
54
+ for (var d in r)
55
+ Object.prototype.hasOwnProperty.call(r, d) && (o[d] = r[d]);
56
56
  }
57
57
  return o;
58
- }, Ca.apply(this, arguments);
58
+ }, Sa.apply(this, arguments);
59
59
  }
60
- const ro = (o, l) => /* @__PURE__ */ s.createElement(ze, Ca({}, o, {
60
+ const ro = (o, l) => /* @__PURE__ */ s.createElement(ze, Sa({}, o, {
61
61
  ref: l,
62
62
  icon: io
63
63
  })), ws = /* @__PURE__ */ s.forwardRef(ro);
64
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 Sa() {
66
- return Sa = Object.assign ? Object.assign.bind() : function(o) {
65
+ function Ra() {
66
+ return Ra = Object.assign ? Object.assign.bind() : function(o) {
67
67
  for (var l = 1; l < arguments.length; l++) {
68
- var u = arguments[l];
69
- for (var r in u)
70
- Object.prototype.hasOwnProperty.call(u, r) && (o[r] = u[r]);
68
+ var r = arguments[l];
69
+ for (var d in r)
70
+ Object.prototype.hasOwnProperty.call(r, d) && (o[d] = r[d]);
71
71
  }
72
72
  return o;
73
- }, Sa.apply(this, arguments);
73
+ }, Ra.apply(this, arguments);
74
74
  }
75
- const mo = (o, l) => /* @__PURE__ */ s.createElement(ze, Sa({}, o, {
75
+ const mo = (o, l) => /* @__PURE__ */ s.createElement(ze, Ra({}, o, {
76
76
  ref: l,
77
77
  icon: uo
78
78
  })), ho = /* @__PURE__ */ s.forwardRef(mo);
@@ -97,10 +97,10 @@ function ys(o) {
97
97
  }
98
98
  function gs(o) {
99
99
  if (!o || o <= 0) return "0:00";
100
- const l = Math.floor(o / 60), u = String(Math.floor(o % 60)).padStart(2, "0");
101
- return `${l}:${u}`;
100
+ const l = Math.floor(o / 60), r = String(Math.floor(o % 60)).padStart(2, "0");
101
+ return `${l}:${r}`;
102
102
  }
103
- const xa = "__all__", ts = "__my__", pa = "__library_all__", xo = "__library__:", po = [
103
+ const xa = "__all__", ts = "__my__", _a = "__library_all__", po = "__library__:", xo = [
104
104
  { key: "all", label: "全部场景" },
105
105
  { key: "my", label: "我的场景" },
106
106
  { key: "map", label: "使用地图" }
@@ -111,29 +111,29 @@ function _o(o) {
111
111
  function bo({
112
112
  open: o,
113
113
  source: l,
114
- categories: u,
115
- categoryKey: r,
116
- search: p,
117
- cards: k,
118
- executing: P,
119
- loadingPlaybookId: _,
120
- onClose: R,
114
+ categories: r,
115
+ categoryKey: d,
116
+ search: _,
117
+ cards: v,
118
+ executing: p,
119
+ loadingPlaybookId: b,
120
+ onClose: $,
121
121
  onSourceChange: T,
122
122
  onCategoryChange: ae,
123
123
  onSearchChange: Q,
124
124
  onSelectScene: le
125
125
  }) {
126
- const [$, q] = s.useState(null), M = s.useMemo(
127
- () => $ ? ys($) : null,
128
- [$]
129
- ), S = s.useCallback((h, D) => {
126
+ const [I, q] = s.useState(null), L = s.useMemo(
127
+ () => I ? ys(I) : null,
128
+ [I]
129
+ ), R = s.useCallback((h, D) => {
130
130
  h.stopPropagation(), q(D);
131
131
  }, []);
132
132
  return /* @__PURE__ */ e.jsxs(
133
133
  Zn,
134
134
  {
135
135
  open: o,
136
- onClose: R,
136
+ onClose: $,
137
137
  placement: "bottom",
138
138
  height: "min(82vh, 780px)",
139
139
  destroyOnClose: !1,
@@ -153,7 +153,7 @@ function bo({
153
153
  {
154
154
  className: "wandox-console-chat__drawer-tabs",
155
155
  "aria-label": "场景来源",
156
- children: po.map((h) => /* @__PURE__ */ e.jsx(
156
+ children: xo.map((h) => /* @__PURE__ */ e.jsx(
157
157
  "button",
158
158
  {
159
159
  type: "button",
@@ -170,7 +170,7 @@ function bo({
170
170
  {
171
171
  type: "button",
172
172
  className: "wandox-console-chat__drawer-close",
173
- onClick: R,
173
+ onClick: $,
174
174
  "aria-label": "关闭",
175
175
  children: /* @__PURE__ */ e.jsx(rs, {})
176
176
  }
@@ -179,8 +179,8 @@ function bo({
179
179
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-chat__drawer-middle", children: [
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
- u.map((h) => {
183
- const D = h.key === r;
182
+ r.map((h) => {
183
+ const D = h.key === d;
184
184
  return /* @__PURE__ */ e.jsxs(
185
185
  "button",
186
186
  {
@@ -198,24 +198,24 @@ 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
- Ra,
201
+ $a,
202
202
  {
203
203
  allowClear: !0,
204
- prefix: /* @__PURE__ */ e.jsx(_a, {}),
204
+ prefix: /* @__PURE__ */ e.jsx(ba, {}),
205
205
  placeholder: _o(l),
206
- value: p,
206
+ value: _,
207
207
  onChange: (h) => Q(h.target.value)
208
208
  }
209
209
  ) }),
210
- k.length === 0 ? /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__drawer-empty", children: p ? "没有匹配的场景" : "暂无可用场景" }) : /* @__PURE__ */ e.jsx("div", { className: "wandox-console-scenes", children: k.map((h) => {
211
- const D = _ === h.playbook_id;
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;
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 || !!_,
218
+ disabled: p || !!b,
219
219
  "aria-busy": D,
220
220
  onClick: () => void le(h),
221
221
  children: /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-scene__body", children: [
@@ -238,7 +238,7 @@ function bo({
238
238
  type: "button",
239
239
  className: "wandox-console-scene__video",
240
240
  "aria-label": `播放${h.title}演示视频`,
241
- onClick: (ie) => S(ie, h),
241
+ onClick: (ie) => R(ie, h),
242
242
  children: [
243
243
  "▶ ",
244
244
  gs(h.video_duration),
@@ -254,7 +254,7 @@ function bo({
254
254
  /* @__PURE__ */ e.jsx(
255
255
  ds,
256
256
  {
257
- playbook: M,
257
+ playbook: L,
258
258
  onClose: () => q(null)
259
259
  }
260
260
  )
@@ -269,13 +269,13 @@ const fo = (o) => {
269
269
  function js({
270
270
  field: o,
271
271
  value: l,
272
- uploading: u,
273
- fileNameMap: r,
274
- getOptionState: p,
275
- onChange: k,
276
- onUpload: P
272
+ uploading: r,
273
+ fileNameMap: d,
274
+ getOptionState: _,
275
+ onChange: v,
276
+ onUpload: p
277
277
  }) {
278
- const _ = Bn(o.type), R = P ?? ((T, ae) => fo);
278
+ const b = Bn(o.type), $ = p ?? ((T, ae) => fo);
279
279
  return /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-field", children: [
280
280
  /* @__PURE__ */ e.jsxs("label", { htmlFor: `wc-param-${o.name}`, children: [
281
281
  /* @__PURE__ */ e.jsx("span", { className: "wandox-console-field__label-text", children: o.label || o.name }),
@@ -286,73 +286,98 @@ function js({
286
286
  }
287
287
  ) }) : null,
288
288
  o.required && /* @__PURE__ */ e.jsx("span", { className: "wandox-console-field__required", children: "必填" }),
289
- _ && /* @__PURE__ */ e.jsx("span", { className: "wandox-console-field__required", children: "多值" })
289
+ b && /* @__PURE__ */ e.jsx("span", { className: "wandox-console-field__required", children: "多值" })
290
290
  ] }),
291
291
  /* @__PURE__ */ e.jsx(
292
292
  zn,
293
293
  {
294
294
  field: o,
295
295
  value: l,
296
- uploading: u,
297
- fileNameMap: r,
298
- getOptionState: p,
299
- onChange: k,
300
- onUpload: R,
296
+ uploading: r,
297
+ fileNameMap: d,
298
+ getOptionState: _,
299
+ onChange: v,
300
+ onUpload: $,
301
301
  onDownloadTemplate: (T) => window.open(T.path, "_blank", "noopener,noreferrer")
302
302
  }
303
303
  )
304
304
  ] });
305
305
  }
306
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 ?? {};
310
+ return {
311
+ label: p.display_name || p.label || "执行",
312
+ action_id: p.action_id,
313
+ playbook_id: p.playbook_id,
314
+ display_name: p.display_name,
315
+ display_icon: p.display_icon ?? void 0,
316
+ params: p.params,
317
+ params_fields_map: p.params_fields_map,
318
+ type: p.type,
319
+ url: p.url,
320
+ style: p.style,
321
+ status: p.action_status || p.status || void 0,
322
+ sort_order: p.sort_order,
323
+ executed_job_id: p.executed_job_id,
324
+ supports_batch: p.supports_batch === !0,
325
+ batch_max_items: p.batch_max_items,
326
+ batch_id: p.batch_id,
327
+ outputs: p.outputs
328
+ };
329
+ });
330
+ }
331
+ function yo(o) {
307
332
  if (Array.isArray(o)) return o;
308
333
  const l = o;
309
334
  return Array.isArray(l == null ? void 0 : l.user_playbooks) ? l.user_playbooks : [];
310
335
  }
311
- function yo({
336
+ function go({
312
337
  agentId: o,
313
338
  agentName: l,
314
- playbookId: u,
315
- playbookParams: r,
316
- initialMessage: p,
317
- initialAttachments: k,
318
- useMapCards: P = [],
319
- useMapCategories: _ = [],
320
- playbooks: R = [],
339
+ playbookId: r,
340
+ playbookParams: d,
341
+ initialMessage: _,
342
+ initialAttachments: v,
343
+ useMapCards: p = [],
344
+ useMapCategories: b = [],
345
+ playbooks: $ = [],
321
346
  userPlaybooks: T = [],
322
347
  agents: ae = [],
323
348
  onChangeAgent: Q,
324
349
  onBack: le,
325
- onSelectScene: $,
350
+ onSelectScene: I,
326
351
  onReady: q
327
352
  }) {
328
- const M = localStorage.getItem("sso_token") || "", S = 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), [I, B] = s.useState(null), ke = s.useRef(null), xe = s.useRef(null), [de, je] = s.useState(!1), [pe, Re] = s.useState([]), [$e, Ne] = s.useState("");
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("");
329
354
  s.useEffect(() => {
330
- if (!I || F) return;
355
+ if (!A || F) return;
331
356
  const a = setTimeout(() => {
332
357
  var n;
333
358
  (n = ke.current) == null || n.focus();
334
359
  }, 120);
335
360
  return () => clearTimeout(a);
336
- }, [I, F]), s.useEffect(() => {
337
- if (!I || F) return;
361
+ }, [A, F]), s.useEffect(() => {
362
+ if (!A || F) return;
338
363
  const a = (n) => {
339
- const c = xe.current, i = n.target;
364
+ const c = pe.current, i = n.target;
340
365
  !c || !(i instanceof Node) || c.contains(i) || i instanceof Element && i.closest(
341
366
  ".ant-select-dropdown, .ant-picker-dropdown, .ant-tooltip, .ant-dropdown, .ant-popover, .ant-modal-wrap, .ant-drawer-content-wrapper, .ant-message, .ant-notification"
342
367
  ) || (B(null), K([]), X({}));
343
368
  };
344
369
  return document.addEventListener("mousedown", a), () => document.removeEventListener("mousedown", a);
345
- }, [I, F]);
370
+ }, [A, F]);
346
371
  const [Z, K] = s.useState([]), [G, X] = s.useState({}), ee = ms(
347
372
  Z,
348
373
  G,
349
374
  X
350
375
  ), _e = s.useMemo(
351
376
  () => na(Z, G).filter(
352
- (a) => a.required && ga(G[a.name])
377
+ (a) => a.required && ja(G[a.name])
353
378
  ),
354
379
  [Z, G]
355
- ), [J, x] = s.useState("chat"), [b, ce] = s.useState([]), [f, Ce] = s.useState(null), [ue, Ie] = s.useState("results"), [oa, qe] = s.useState(!1), [be, Pe] = s.useState([]), [ta, We] = s.useState(!1), [Me, Ee] = s.useState([]), [se, t] = s.useState([]), [w, N] = s.useState({}), [j, y] = s.useState(!1), [O, ve] = s.useState(null), [z, A] = s.useState(void 0), [fe, Ae] = s.useState(!1), [me, He] = s.useState(!1);
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);
356
381
  s.useEffect(() => {
357
382
  q == null || q({
358
383
  showInspectionResults: (a) => {
@@ -360,11 +385,11 @@ function yo({
360
385
  }
361
386
  });
362
387
  }, [q]);
363
- const [Le, vs] = s.useState([]), [Te, Se] = s.useState(!1), [Ue, ks] = s.useState(void 0), [$a, Ia] = s.useState([]), [ca, Ea] = s.useState(""), [la, Ns] = s.useState(
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(
364
389
  "map"
365
- ), [Cs, Oe] = s.useState(void 0), Ke = s.useRef(0), De = s.useRef(0), [Ge, Aa] = s.useState(
390
+ ), [Cs, Oe] = s.useState(void 0), Ke = s.useRef(0), De = s.useRef(0), [Ge, Pa] = s.useState(
366
391
  Xa
367
- ), [ia, Pa] = s.useState({}), [Qe, Ma] = s.useState(
392
+ ), [ia, La] = s.useState({}), [Qe, Ma] = s.useState(
368
393
  () => /* @__PURE__ */ new Set()
369
394
  ), ra = s.useCallback(
370
395
  (a, n, c) => ({
@@ -385,50 +410,50 @@ function yo({
385
410
  const a = T.map(
386
411
  (m) => ra(m, ts, "我的场景")
387
412
  ), n = /* @__PURE__ */ new Map();
388
- for (const m of R) {
389
- const v = m.category_name || m.category || m.type || "默认场景", g = `${xo}${v}`, ge = n.get(g) || [];
390
- ge.push(ra(m, g, v)), n.set(g, ge);
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);
391
416
  }
392
417
  const c = Array.from(n.values()).flat(), i = [
393
418
  {
394
- key: pa,
419
+ key: _a,
395
420
  name: "全部场景",
396
421
  count: c.length,
397
422
  cards: c
398
423
  },
399
- ...Array.from(n, ([m, v]) => {
400
- var g;
424
+ ...Array.from(n, ([m, N]) => {
425
+ var j;
401
426
  return {
402
427
  key: m,
403
- name: ((g = v[0]) == null ? void 0 : g.reason) || "默认场景",
404
- count: v.length,
405
- cards: v
428
+ name: ((j = N[0]) == null ? void 0 : j.reason) || "默认场景",
429
+ count: N.length,
430
+ cards: N
406
431
  };
407
432
  })
408
- ], d = [
433
+ ], u = [
409
434
  {
410
435
  key: xa,
411
436
  name: "全部场景",
412
- count: P.length,
413
- cards: P
437
+ count: p.length,
438
+ cards: p
414
439
  },
415
- ..._.map((m) => ({
440
+ ...b.map((m) => ({
416
441
  key: m.key,
417
442
  name: m.name,
418
443
  count: m.count,
419
- cards: P.filter((v) => v.categoryKey === m.key)
444
+ cards: p.filter((N) => N.categoryKey === m.key)
420
445
  }))
421
446
  ];
422
- return { allCategories: i, mapCategories: d, myCards: a };
447
+ return { allCategories: i, mapCategories: u, myCards: a };
423
448
  }, [
424
449
  l,
425
- R,
450
+ $,
426
451
  ra,
427
- P,
428
- _,
452
+ p,
453
+ b,
429
454
  T
430
455
  ]), da = s.useMemo(() => V === "all" ? Fe.allCategories : V === "map" ? Fe.mapCategories : [], [Fe, V]), Ye = s.useMemo(
431
- () => P.map(
456
+ () => p.map(
432
457
  (a) => ({
433
458
  category: null,
434
459
  category_name: a.reason,
@@ -449,19 +474,19 @@ function yo({
449
474
  version: ""
450
475
  })
451
476
  ),
452
- [P]
477
+ [p]
453
478
  ), Ss = s.useMemo(() => {
454
479
  const a = /* @__PURE__ */ new Map();
455
480
  for (const n of [
456
- ...R,
481
+ ...$,
457
482
  ...T,
458
483
  ...Ye
459
484
  ])
460
485
  n.playbook_id && a.set(n.playbook_id, n);
461
486
  return Array.from(a.values());
462
- }, [R, T, Ye]), Rs = s.useMemo(() => {
487
+ }, [$, T, Ye]), Rs = s.useMemo(() => {
463
488
  const a = /* @__PURE__ */ new Map();
464
- for (const n of R) {
489
+ for (const n of $) {
465
490
  const c = n.category_name || n.category || n.type || "默认场景", i = a.get(c) || [];
466
491
  i.push(n), a.set(c, i);
467
492
  }
@@ -473,19 +498,19 @@ function yo({
473
498
  playbooks: c
474
499
  }))
475
500
  ];
476
- }, [R]), $s = s.useMemo(() => {
501
+ }, [$]), $s = s.useMemo(() => {
477
502
  const a = new Map(
478
503
  Ye.map((n) => [
479
504
  n.playbook_id,
480
505
  n
481
506
  ])
482
507
  );
483
- return _.map((n) => ({
508
+ return b.map((n) => ({
484
509
  key: `map:${n.key}`,
485
510
  label: n.name,
486
- playbooks: P.filter((c) => c.categoryKey === n.key).map((c) => a.get(c.playbook_id)).filter((c) => !!c)
511
+ playbooks: p.filter((c) => c.categoryKey === n.key).map((c) => a.get(c.playbook_id)).filter((c) => !!c)
487
512
  }));
488
- }, [P, _, Ye]), Is = la === "map" ? $s : Rs, Es = s.useMemo(() => {
513
+ }, [p, b, Ye]), Is = la === "map" ? $s : Rs, As = s.useMemo(() => {
489
514
  var c;
490
515
  const a = te.trim().toLowerCase(), n = V === "my" ? Fe.myCards : ((c = da.find((i) => i.key === Y)) == null ? void 0 : c.cards) || [];
491
516
  return a ? n.filter(
@@ -497,36 +522,36 @@ function yo({
497
522
  Fe.myCards,
498
523
  V,
499
524
  te
500
- ]), As = s.useCallback((a) => {
525
+ ]), Es = s.useCallback((a) => {
501
526
  const n = Array.isArray(a) ? a : [];
502
527
  vs(n), Se(n.length > 0);
503
528
  }, []), he = s.useMemo(
504
529
  () => ae.find((a) => a.id === o),
505
530
  [ae, o]
506
- ), { messageData: Ps, executing: L, stopping: Ms, actions: Ls } = qn({
531
+ ), { messageData: Ps, executing: M, stopping: Ls, actions: Ms } = qn({
507
532
  activeAgent: o,
508
- ssoToken: M,
509
- ssoDomain: S,
533
+ ssoToken: L,
534
+ ssoDomain: R,
510
535
  ssoCompany: h,
511
- onRecommendationsUpdate: As
536
+ onRecommendationsUpdate: Es
512
537
  }), {
513
538
  sendMessage: Ze,
514
- executePlaybook: La,
515
- respondToProposal: Ta,
539
+ executePlaybook: Ta,
540
+ respondToProposal: Oa,
516
541
  stopCurrent: Ts,
517
- retrigger: Oa
518
- } = Ls, {
542
+ retrigger: Da
543
+ } = Ms, {
519
544
  messages: we,
520
- messagesTotal: Da,
521
- loading: Fa,
522
- loadMessages: Va,
523
- loadMoreMessages: Ba
545
+ messagesTotal: Fa,
546
+ loading: Va,
547
+ loadMessages: Ba,
548
+ loadMoreMessages: za
524
549
  } = Ps, Je = s.useMemo(() => {
525
550
  for (let a = we.length - 1; a >= 0; a--)
526
551
  if (we[a].role === "assistant") return we[a].id;
527
552
  }, [we]), Xe = s.useCallback(async () => {
528
- if (!o || !M) {
529
- Ia([]);
553
+ if (!o || !L) {
554
+ Aa([]);
530
555
  return;
531
556
  }
532
557
  try {
@@ -534,44 +559,44 @@ function yo({
534
559
  agent_id: o,
535
560
  limit: 8
536
561
  });
537
- Ia(Array.isArray(a.data) ? a.data : []);
562
+ Aa(Array.isArray(a.data) ? a.data : []);
538
563
  } catch {
539
564
  }
540
- }, [o, M]);
565
+ }, [o, L]);
541
566
  s.useEffect(() => {
542
567
  Xe();
543
568
  }, [Xe]);
544
569
  const ne = s.useCallback(
545
570
  async (a) => {
546
- await La(a), Xe();
571
+ await Ta(a), Xe();
547
572
  },
548
- [La, Xe]
549
- ), za = s.useCallback(async (a) => {
573
+ [Ta, Xe]
574
+ ), qa = s.useCallback(async (a) => {
550
575
  const n = String(a.playbook_id || "").trim();
551
576
  if (!n) throw new Error("场景缺少 playbook_id");
552
- const { data: c } = await ba({
577
+ const { data: c } = await fa({
553
578
  playbook_id: n
554
579
  });
555
580
  return es(a, c);
556
581
  }, []);
557
582
  s.useEffect(() => {
558
583
  ie.current || (ie.current = !0, (async () => {
559
- if (await Va(), u) {
560
- const a = (p == null ? void 0 : p.trim()) || "执行场景";
584
+ if (await Ba(), r) {
585
+ const a = (_ == null ? void 0 : _.trim()) || "执行场景";
561
586
  ne({
562
587
  message: a,
563
- playbook_id: u,
564
- playbook_params: r || {}
588
+ playbook_id: r,
589
+ playbook_params: d || {}
565
590
  });
566
- } else p != null && p.trim() && Ze(p.trim(), void 0, k);
591
+ } else _ != null && _.trim() && Ze(_.trim(), void 0, v);
567
592
  })());
568
593
  }, [
569
- u,
570
- p,
571
- k,
572
594
  r,
595
+ _,
596
+ v,
597
+ d,
573
598
  ne,
574
- Va,
599
+ Ba,
575
600
  Ze
576
601
  ]), s.useEffect(() => {
577
602
  if (!o) return;
@@ -591,11 +616,11 @@ function yo({
591
616
  }, [o]), s.useEffect(() => {
592
617
  Je && Je !== Ue && ks(Je);
593
618
  }, [Je, Ue]), s.useEffect(() => {
594
- if (J !== "robot" || ue !== "history" || !f) {
619
+ if (J !== "robot" || ue !== "history" || !w) {
595
620
  Pe([]);
596
621
  return;
597
622
  }
598
- const a = b.find((c) => c.name === f);
623
+ const a = f.find((c) => c.name === w);
599
624
  if (!a) return;
600
625
  let n = !1;
601
626
  return qe(!0), (async () => {
@@ -605,9 +630,9 @@ function yo({
605
630
  limit: 50
606
631
  });
607
632
  if (n) return;
608
- const d = (Array.isArray(c == null ? void 0 : c.data) ? c.data : []).map(
609
- (m, v) => ({
610
- id: m.id || m.execute_id || `record_${v}`,
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}`,
611
636
  action_name: m.action_name || m.display_name || "未知动作",
612
637
  status: m.status || "pending",
613
638
  created_at: m.created_at || "",
@@ -616,7 +641,7 @@ function yo({
616
641
  error: m.error
617
642
  })
618
643
  );
619
- Pe(d);
644
+ Pe(u);
620
645
  } catch {
621
646
  Pe([]);
622
647
  } finally {
@@ -625,8 +650,8 @@ function yo({
625
650
  })(), () => {
626
651
  n = !0;
627
652
  };
628
- }, [J, ue, f, b]);
629
- const qa = s.useCallback(async () => {
653
+ }, [J, ue, w, f]);
654
+ const Wa = s.useCallback(async () => {
630
655
  try {
631
656
  const a = await tn({});
632
657
  Array.isArray(a == null ? void 0 : a.data) && t(
@@ -642,21 +667,21 @@ function yo({
642
667
  try {
643
668
  const a = {};
644
669
  await Promise.all(
645
- b.map(async (n) => {
670
+ f.map(async (n) => {
646
671
  var c;
647
672
  try {
648
673
  const i = await cn(
649
674
  n.agent_id,
650
675
  {}
651
- ), d = (c = i == null ? void 0 : i.data) == null ? void 0 : c.webhook_id;
652
- d && (a[n.agent_id] = d);
676
+ ), u = (c = i == null ? void 0 : i.data) == null ? void 0 : c.webhook_id;
677
+ u && (a[n.agent_id] = u);
653
678
  } catch {
654
679
  }
655
680
  })
656
- ), N(a);
681
+ ), C(a);
657
682
  } catch {
658
683
  }
659
- }, [b]), Wa = s.useCallback(async () => {
684
+ }, [f]), Ha = s.useCallback(async () => {
660
685
  if (o) {
661
686
  We(!0);
662
687
  try {
@@ -665,69 +690,70 @@ function yo({
665
690
  limit: 20,
666
691
  use_cache: !1
667
692
  }), c = (Array.isArray(a == null ? void 0 : a.data) ? a.data : []).map((i) => {
668
- const d = i.ui_payload || i.outputs || void 0;
693
+ const u = i.ui_payload || i.outputs || void 0;
669
694
  return {
670
695
  id: i.inbox_id || i.id || "",
671
696
  title: i.title || "巡检结果",
672
697
  summary: i.summary || "",
673
698
  priority: i.priority || "medium",
674
699
  timestamp: i.created_at || "",
675
- ui_payload: d,
676
- agent_name: i.agent_name || i.agent_id || ""
700
+ ui_payload: u,
701
+ agent_name: i.agent_name || i.agent_id || "",
702
+ actions: wo(i)
677
703
  };
678
704
  }).sort(
679
- (i, d) => new Date(d.timestamp || 0).getTime() - new Date(i.timestamp || 0).getTime()
705
+ (i, u) => new Date(u.timestamp || 0).getTime() - new Date(i.timestamp || 0).getTime()
680
706
  );
681
- Ee(c);
707
+ Ae(c);
682
708
  } catch {
683
- Ee([]);
709
+ Ae([]);
684
710
  } finally {
685
711
  We(!1);
686
712
  }
687
713
  }
688
714
  }, [o]);
689
715
  s.useEffect(() => {
690
- qa(), b.length > 0 && ea();
691
- }, [b, qa, ea]), s.useEffect(() => {
692
- J === "robot" && ue === "results" && Wa();
693
- }, [J, ue, Wa]);
716
+ Wa(), f.length > 0 && ea();
717
+ }, [f, Wa, ea]), s.useEffect(() => {
718
+ J === "robot" && ue === "results" && Ha();
719
+ }, [J, ue, Ha]);
694
720
  const Os = (a) => {
695
- ve(a), A(w[a.agent_id]), y(!0);
721
+ ve(a), P(y[a.agent_id]), g(!0);
696
722
  }, Ds = async () => {
697
723
  if (!O || !z) {
698
- C.warning("请选择通知渠道");
724
+ S.warning("请选择通知渠道");
699
725
  return;
700
726
  }
701
727
  try {
702
- Ae(!0), await In(
728
+ Ee(!0), await In(
703
729
  {},
704
730
  {
705
731
  agent_id: O.agent_id,
706
732
  webhook_id: z
707
733
  }
708
- ), C.success("绑定成功"), y(!1), await ea();
734
+ ), S.success("绑定成功"), g(!1), await ea();
709
735
  } catch (a) {
710
- C.error((a == null ? void 0 : a.message) || "绑定失败");
736
+ S.error((a == null ? void 0 : a.message) || "绑定失败");
711
737
  } finally {
712
- Ae(!1);
738
+ Ee(!1);
713
739
  }
714
740
  }, Fs = async () => {
715
741
  if (O)
716
742
  try {
717
- Ae(!0), await En(
743
+ Ee(!0), await An(
718
744
  O.agent_id,
719
745
  {}
720
- ), C.success("解绑成功"), y(!1), A(void 0), await ea();
746
+ ), S.success("解绑成功"), g(!1), P(void 0), await ea();
721
747
  } catch (a) {
722
- C.error((a == null ? void 0 : a.message) || "解绑失败");
748
+ S.error((a == null ? void 0 : a.message) || "解绑失败");
723
749
  } finally {
724
- Ae(!1);
750
+ Ee(!1);
725
751
  }
726
- }, ua = s.useMemo(() => f ? Me.filter((a) => {
752
+ }, ua = s.useMemo(() => w ? Le.filter((a) => {
727
753
  var i;
728
754
  const n = (i = a.title) == null ? void 0 : i.match(/^(.+?)\s*巡检结果$/);
729
- return (n ? n[1] : a.agent_name) === f;
730
- }) : Me, [Me, f]), Vs = (a) => {
755
+ return (n ? n[1] : a.agent_name) === w;
756
+ }) : Le, [Le, w]), Vs = (a) => {
731
757
  if (!a) return "";
732
758
  try {
733
759
  return new Date(a).toLocaleString("zh-CN", {
@@ -753,10 +779,10 @@ function yo({
753
779
  [ne, Ze]
754
780
  ), Bs = s.useCallback((a) => {
755
781
  U(a), re(
756
- a === "all" ? pa : a === "map" ? xa : ts
782
+ a === "all" ? _a : a === "map" ? xa : ts
757
783
  ), H(""), B(null), K([]), X({});
758
784
  }, []), zs = s.useCallback(() => {
759
- U("all"), re(pa), H(""), B(null), K([]), X({}), E(!0);
785
+ U("all"), re(_a), H(""), B(null), K([]), X({}), E(!0);
760
786
  }, []), qs = s.useCallback(() => {
761
787
  E(!1), B(null), K([]), X({});
762
788
  }, []), ye = s.useCallback(
@@ -772,16 +798,16 @@ function yo({
772
798
  input_fields: a.input_fields || []
773
799
  });
774
800
  const c = hs(a.input_fields || []);
775
- K(c), X(ps(c, n));
801
+ K(c), X(xs(c, n));
776
802
  },
777
803
  []
778
804
  ), Ws = s.useCallback(
779
805
  async (a) => {
780
806
  var c;
781
- if (L || W) return;
807
+ if (M || W) return;
782
808
  const n = String(a.playbook_id || "").trim();
783
809
  if (!n) {
784
- C.error("场景缺少 playbook_id");
810
+ S.error("场景缺少 playbook_id");
785
811
  return;
786
812
  }
787
813
  oe(n);
@@ -797,41 +823,41 @@ function yo({
797
823
  scope: "",
798
824
  status: "available",
799
825
  sub_category: null,
800
- tags: a.tags.map((v) => v.name),
826
+ tags: a.tags.map((N) => N.name),
801
827
  type: "",
802
828
  version: "",
803
829
  input_fields: a.input_fields,
804
830
  video_url: a.video_url,
805
831
  video_duration: a.video_duration,
806
832
  view_count: a.view_count
807
- }, { data: d } = await ba({
833
+ }, { data: u } = await fa({
808
834
  playbook_id: n
809
835
  });
810
- if (!d || typeof d != "object" || Array.isArray(d))
836
+ if (!u || typeof u != "object" || Array.isArray(u))
811
837
  throw new Error("场景详情为空");
812
- const m = es(i, d);
838
+ const m = es(i, u);
813
839
  if (E(!1), (c = m.input_fields) != null && c.length) {
814
840
  ye(m);
815
841
  return;
816
842
  }
817
- ma(m.name, m.playbook_id), $ == null || $(a);
843
+ ma(m.name, m.playbook_id), I == null || I(a);
818
844
  } catch (i) {
819
- const d = i instanceof Error ? i.message : "场景加载失败";
820
- C.error(d);
845
+ const u = i instanceof Error ? i.message : "场景加载失败";
846
+ S.error(u);
821
847
  } finally {
822
848
  oe("");
823
849
  }
824
850
  },
825
851
  [
826
- L,
852
+ M,
827
853
  ye,
828
854
  ma,
829
- $,
855
+ I,
830
856
  W
831
857
  ]
832
- ), Ha = s.useCallback(
858
+ ), Ua = s.useCallback(
833
859
  async (a) => {
834
- if (!L) {
860
+ if (!M) {
835
861
  if (Se(!1), a.input_fields && a.input_fields.length > 0) {
836
862
  ye(a);
837
863
  return;
@@ -843,74 +869,74 @@ function yo({
843
869
  });
844
870
  } catch (n) {
845
871
  const c = n instanceof Error ? n.message : "执行失败";
846
- C.error(c);
872
+ S.error(c);
847
873
  }
848
874
  }
849
875
  },
850
- [L, ne, ye]
876
+ [M, ne, ye]
851
877
  ), Hs = s.useCallback(
852
878
  async (a) => {
853
879
  var c;
854
- if (L || ca) return;
880
+ if (M || ca) return;
855
881
  const n = String(a.playbook_id || "").trim();
856
882
  if (n) {
857
883
  Ea(n), Se(!1);
858
884
  try {
859
- const i = rn(a), d = await za(a);
860
- if ((c = d.input_fields) != null && c.length) {
861
- ye(d, i);
885
+ const i = rn(a), u = await qa(a);
886
+ if ((c = u.input_fields) != null && c.length) {
887
+ ye(u, i);
862
888
  return;
863
889
  }
864
890
  await ne({
865
- message: d.name,
866
- playbook_id: d.playbook_id
891
+ message: u.name,
892
+ playbook_id: u.playbook_id
867
893
  });
868
894
  } catch (i) {
869
- const d = i instanceof Error ? i.message : "场景参数加载失败";
870
- C.error(d);
895
+ const u = i instanceof Error ? i.message : "场景参数加载失败";
896
+ S.error(u);
871
897
  } finally {
872
898
  Ea("");
873
899
  }
874
900
  }
875
901
  },
876
902
  [
877
- L,
903
+ M,
878
904
  ne,
879
905
  ye,
880
- za,
906
+ qa,
881
907
  ca
882
908
  ]
883
909
  ), Us = s.useCallback(async () => {
884
- if (!I || L) return;
910
+ if (!A || M) return;
885
911
  const n = na(Z, G).filter(
886
- (d) => d.required && ga(G[d.name])
912
+ (u) => u.required && ja(G[u.name])
887
913
  );
888
914
  if (n.length > 0) {
889
- C.warning(`请先填写 ${n.length} 项必填参数`);
915
+ S.warning(`请先填写 ${n.length} 项必填参数`);
890
916
  return;
891
917
  }
892
918
  E(!1), Se(!1);
893
- const c = I, i = G;
919
+ const c = A, i = G;
894
920
  B(null), K([]), X({});
895
921
  try {
896
- const d = c.title || (p == null ? void 0 : p.trim()) || "执行场景";
922
+ const u = c.title || (_ == null ? void 0 : _.trim()) || "执行场景";
897
923
  await ne({
898
- message: d,
924
+ message: u,
899
925
  playbook_id: c.playbook_id,
900
926
  playbook_params: i
901
- }), $ == null || $(c);
902
- } catch (d) {
903
- const m = d instanceof Error ? d.message : "执行失败";
904
- C.error(m);
927
+ }), I == null || I(c);
928
+ } catch (u) {
929
+ const m = u instanceof Error ? u.message : "执行失败";
930
+ S.error(m);
905
931
  }
906
932
  }, [
907
- I,
933
+ A,
908
934
  Z,
909
935
  G,
910
- L,
936
+ M,
911
937
  ne,
912
- p,
913
- $
938
+ _,
939
+ I
914
940
  ]), Ks = s.useCallback((a) => {
915
941
  De.current += 1, Oe({
916
942
  requestId: ++Ke.current,
@@ -933,11 +959,11 @@ function yo({
933
959
  if (a !== De.current) return;
934
960
  Oe({
935
961
  requestId: ++Ke.current,
936
- playbooks: wo(n)
962
+ playbooks: yo(n)
937
963
  });
938
964
  } catch {
939
965
  if (a !== De.current) return;
940
- C.error("我的场景加载失败"), Oe({
966
+ S.error("我的场景加载失败"), Oe({
941
967
  requestId: ++Ke.current,
942
968
  playbooks: []
943
969
  });
@@ -949,7 +975,7 @@ function yo({
949
975
  );
950
976
  }, []), Ys = /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-chat__scene-quick", children: [
951
977
  /* @__PURE__ */ e.jsx(
952
- fa,
978
+ wa,
953
979
  {
954
980
  menu: {
955
981
  selectedKeys: [la],
@@ -968,7 +994,7 @@ function yo({
968
994
  {
969
995
  type: "button",
970
996
  className: "wandox-console-chat__scene-source",
971
- disabled: L,
997
+ disabled: M,
972
998
  children: [
973
999
  /* @__PURE__ */ e.jsx("span", { children: la === "map" ? "使用地图" : "全部场景" }),
974
1000
  /* @__PURE__ */ e.jsx(
@@ -995,26 +1021,26 @@ function yo({
995
1021
  {
996
1022
  type: "button",
997
1023
  className: "wandox-console-chat__choose-scene",
998
- disabled: L,
1024
+ disabled: M,
999
1025
  onClick: () => a.key === "__my__" ? Gs() : Ks(a.playbooks),
1000
1026
  children: a.label
1001
1027
  },
1002
1028
  a.key
1003
1029
  )) })
1004
- ] }), Ua = s.useCallback(async (a) => {
1030
+ ] }), Ka = s.useCallback(async (a) => {
1005
1031
  var m;
1006
1032
  const n = (m = a.meta_content) != null && m.playbook_id ? "数据报表" : "对话内容", c = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
1007
1033
  if (un(a)) {
1008
- const v = mn(a);
1009
- if (!v) {
1010
- C.warning("没有可导出的表格数据");
1034
+ const N = mn(a);
1035
+ if (!N) {
1036
+ S.warning("没有可导出的表格数据");
1011
1037
  return;
1012
1038
  }
1013
- const g = v.fields.map((ha) => ha.label).join(","), ge = v.rows.map(
1014
- (ha) => v.fields.map((en) => hn(ha[en.name])).join(",")
1015
- ), Xs = `\uFEFF${[g, ...ge].join(`
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(`
1016
1042
  `)}`;
1017
- xn(
1043
+ pn(
1018
1044
  new Blob([Xs], { type: "text/csv;charset=utf-8;" }),
1019
1045
  `${n}_${c}.csv`
1020
1046
  );
@@ -1024,31 +1050,31 @@ function yo({
1024
1050
  `[data-message-id="${a.message_id || a.id}"] .wandox-message-content`
1025
1051
  );
1026
1052
  if (!i) {
1027
- C.warning("无法定位消息内容");
1053
+ S.warning("无法定位消息内容");
1028
1054
  return;
1029
1055
  }
1030
- const d = window.open("", "_blank");
1031
- if (!d) {
1032
- C.warning("请允许弹出窗口");
1056
+ const u = window.open("", "_blank");
1057
+ if (!u) {
1058
+ S.warning("请允许弹出窗口");
1033
1059
  return;
1034
1060
  }
1035
- d.document.write(
1061
+ u.document.write(
1036
1062
  `<!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>`
1037
- ), d.document.close(), d.onload = () => {
1038
- d.print(), d.close();
1063
+ ), u.document.close(), u.onload = () => {
1064
+ u.print(), u.close();
1039
1065
  };
1040
- }, []), Ka = s.useCallback(
1066
+ }, []), Ga = s.useCallback(
1041
1067
  (a) => {
1042
- var d, m, v;
1068
+ var u, m, N;
1043
1069
  const n = we.find(
1044
- (g) => g.message_id === a || g.id === a
1045
- ), c = pn(n);
1070
+ (j) => j.message_id === a || j.id === a
1071
+ ), c = xn(n);
1046
1072
  if (!c) {
1047
- C.warning("缺少场景 ID,无法配置定时触发");
1073
+ S.warning("缺少场景 ID,无法配置定时触发");
1048
1074
  return;
1049
1075
  }
1050
- const i = ((m = (d = n == null ? void 0 : n.actions) == null ? void 0 : d.find((g) => g.playbook_id === c)) == null ? void 0 : m.display_name) || ((v = n == null ? void 0 : n.meta_content) == null ? void 0 : v.playbook_name) || c;
1051
- Aa({
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({
1052
1078
  visible: !0,
1053
1079
  messageId: a,
1054
1080
  agentId: o,
@@ -1058,96 +1084,96 @@ function yo({
1058
1084
  },
1059
1085
  [o, we]
1060
1086
  ), Zs = s.useCallback(() => {
1061
- Aa(Xa);
1087
+ Pa(Xa);
1062
1088
  }, []), aa = s.useCallback(
1063
1089
  (a) => {
1064
1090
  const n = a.message_id;
1065
1091
  return n && Object.prototype.hasOwnProperty.call(ia, n) ? ia[n] : _n(a);
1066
1092
  },
1067
1093
  [ia]
1068
- ), Ga = s.useCallback(
1094
+ ), Qa = s.useCallback(
1069
1095
  async (a, n, c) => {
1070
- var v;
1096
+ var N;
1071
1097
  const i = a.message_id;
1072
1098
  if (!i || Qe.has(i)) return !1;
1073
- const d = aa(a), m = An(
1074
- d,
1099
+ const u = aa(a), m = En(
1100
+ u,
1075
1101
  n
1076
1102
  );
1077
- Pa((g) => ({
1078
- ...g,
1103
+ La((j) => ({
1104
+ ...j,
1079
1105
  [i]: m
1080
- })), Ma((g) => new Set(g).add(i));
1106
+ })), Ma((j) => new Set(j).add(i));
1081
1107
  try {
1082
- const g = await bn(
1083
- { domain: S },
1108
+ const j = await bn(
1109
+ { domain: R },
1084
1110
  {
1085
1111
  message_id: i,
1086
1112
  rating: m,
1087
- tags: (v = c == null ? void 0 : c.tags) != null && v.length ? c.tags : void 0,
1113
+ tags: (N = c == null ? void 0 : c.tags) != null && N.length ? c.tags : void 0,
1088
1114
  text: (c == null ? void 0 : c.text) || void 0
1089
1115
  }
1090
1116
  );
1091
- if ((g == null ? void 0 : g.success) === !1)
1092
- throw new Error(g.message || "反馈提交失败");
1117
+ if ((j == null ? void 0 : j.success) === !1)
1118
+ throw new Error(j.message || "反馈提交失败");
1093
1119
  return !0;
1094
- } catch (g) {
1095
- return Pa((ge) => ({
1120
+ } catch (j) {
1121
+ return La((ge) => ({
1096
1122
  ...ge,
1097
- [i]: d
1098
- })), C.error(
1099
- g instanceof Error ? g.message : "反馈提交失败,请稍后重试"
1123
+ [i]: u
1124
+ })), S.error(
1125
+ j instanceof Error ? j.message : "反馈提交失败,请稍后重试"
1100
1126
  ), !1;
1101
1127
  } finally {
1102
- Ma((g) => {
1103
- const ge = new Set(g);
1128
+ Ma((j) => {
1129
+ const ge = new Set(j);
1104
1130
  return ge.delete(i), ge;
1105
1131
  });
1106
1132
  }
1107
1133
  },
1108
- [Qe, aa, S]
1109
- ), Qa = s.useCallback(
1134
+ [Qe, aa, R]
1135
+ ), Ya = s.useCallback(
1110
1136
  async (a) => {
1111
1137
  Se(!1);
1112
1138
  try {
1113
- await Oa(a);
1139
+ await Da(a);
1114
1140
  } catch (n) {
1115
1141
  const c = n instanceof Error ? n.message : "重新生成失败";
1116
- C.error(c);
1142
+ S.error(c);
1117
1143
  }
1118
1144
  },
1119
- [Oa]
1120
- ), Ya = s.useCallback(() => {
1145
+ [Da]
1146
+ ), Za = s.useCallback(() => {
1121
1147
  Se((a) => !a);
1122
- }, []), Za = s.useCallback(
1148
+ }, []), Ja = s.useCallback(
1123
1149
  (a, n) => {
1124
1150
  if (a.role !== "assistant" || a.execution_status === "executing") return null;
1125
- const i = n && a.id === Ue && Le.length > 0, d = Te ? "隐藏推荐" : i ? `显示推荐(${Le.length})` : "推荐";
1151
+ const i = n && a.id === Ue && Me.length > 0, u = Te ? "隐藏推荐" : i ? `显示推荐(${Me.length})` : "推荐";
1126
1152
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1127
1153
  /* @__PURE__ */ e.jsx(
1128
1154
  fn,
1129
1155
  {
1130
1156
  msg: a,
1131
- domain: S,
1132
- onExportMessage: Ua,
1157
+ domain: R,
1158
+ onExportMessage: Ka,
1133
1159
  exportIcon: "copy",
1134
1160
  showSolidify: !1,
1135
- onOpenScheduleDialog: Ka,
1136
- onRetrigger: Qa,
1161
+ onOpenScheduleDialog: Ga,
1162
+ onRetrigger: Ya,
1137
1163
  feedbackRating: aa(a),
1138
1164
  feedbackPending: !!a.message_id && Qe.has(a.message_id),
1139
- onFeedback: Ga,
1140
- extraActions: i ? /* @__PURE__ */ e.jsx(us, { title: d, children: /* @__PURE__ */ e.jsxs(
1165
+ onFeedback: Qa,
1166
+ extraActions: i ? /* @__PURE__ */ e.jsx(us, { title: u, children: /* @__PURE__ */ e.jsxs(
1141
1167
  "button",
1142
1168
  {
1143
1169
  type: "button",
1144
1170
  className: `wandox-console-chat__toolbar-toggle${Te ? " is-active" : ""}`,
1145
- "aria-label": d,
1171
+ "aria-label": u,
1146
1172
  "aria-expanded": Te,
1147
- onClick: Ya,
1173
+ onClick: Za,
1148
1174
  children: [
1149
1175
  /* @__PURE__ */ e.jsx(ho, {}),
1150
- /* @__PURE__ */ e.jsx("span", { className: "wandox-console-chat__toolbar-toggle-count", children: Le.length })
1176
+ /* @__PURE__ */ e.jsx("span", { className: "wandox-console-chat__toolbar-toggle-count", children: Me.length })
1151
1177
  ]
1152
1178
  }
1153
1179
  ) }) : null
@@ -1158,7 +1184,7 @@ function yo({
1158
1184
  {
1159
1185
  className: "wandox-console-chat__recommendations",
1160
1186
  "aria-label": "推荐场景",
1161
- children: Le.map((m, v) => /* @__PURE__ */ e.jsx(
1187
+ children: Me.map((m, N) => /* @__PURE__ */ e.jsx(
1162
1188
  "li",
1163
1189
  {
1164
1190
  className: "wandox-console-chat__recommendations-item",
@@ -1167,40 +1193,40 @@ function yo({
1167
1193
  {
1168
1194
  type: "button",
1169
1195
  className: "wandox-console-chat__recommendations-pill",
1170
- disabled: L,
1196
+ disabled: M,
1171
1197
  onClick: () => {
1172
- Ha(m);
1198
+ Ua(m);
1173
1199
  },
1174
1200
  title: m.description || m.name,
1175
1201
  children: [
1176
1202
  /* @__PURE__ */ e.jsx("span", { className: "wandox-console-chat__recommendations-pill-label", children: m.name }),
1177
- /* @__PURE__ */ e.jsx("span", { className: "wandox-console-chat__recommendations-pill-arrow", children: /* @__PURE__ */ e.jsx(ja, {}) })
1203
+ /* @__PURE__ */ e.jsx("span", { className: "wandox-console-chat__recommendations-pill-arrow", children: /* @__PURE__ */ e.jsx(va, {}) })
1178
1204
  ]
1179
1205
  }
1180
1206
  )
1181
1207
  },
1182
- `${m.playbook_id || m.name}-${v}`
1208
+ `${m.playbook_id || m.name}-${N}`
1183
1209
  ))
1184
1210
  }
1185
1211
  )
1186
1212
  ] });
1187
1213
  },
1188
1214
  [
1189
- L,
1215
+ M,
1190
1216
  Qe,
1191
1217
  aa,
1192
- Ha,
1193
1218
  Ua,
1194
- Ga,
1195
1219
  Ka,
1196
1220
  Qa,
1197
- Le,
1221
+ Ga,
1222
+ Ya,
1223
+ Me,
1198
1224
  Ue,
1199
1225
  Te,
1200
- S,
1201
- Ya
1226
+ R,
1227
+ Za
1202
1228
  ]
1203
- ), Ja = s.useCallback(
1229
+ ), ha = s.useCallback(
1204
1230
  (a, n) => {
1205
1231
  Ne(a), Re(n), je(!0);
1206
1232
  },
@@ -1211,9 +1237,9 @@ function yo({
1211
1237
  wn,
1212
1238
  {
1213
1239
  messages: we,
1214
- executing: L,
1215
- ssoToken: M,
1216
- ssoDomain: S,
1240
+ executing: M,
1241
+ ssoToken: L,
1242
+ ssoDomain: R,
1217
1243
  ssoCompany: h,
1218
1244
  onExecutePlaybook: ne,
1219
1245
  onFillPlaybookParams: (a) => ye(
@@ -1234,15 +1260,15 @@ function yo({
1234
1260
  },
1235
1261
  a.initialParams ?? {}
1236
1262
  ),
1237
- onRespondToProposal: Ta,
1263
+ onRespondToProposal: Oa,
1238
1264
  containerRef: D,
1239
- messagesTotal: Da,
1240
- loadMoreMessages: Ba,
1241
- loading: Fa,
1265
+ messagesTotal: Fa,
1266
+ loadMoreMessages: za,
1267
+ loading: Va,
1242
1268
  initialLoadingContent: /* @__PURE__ */ e.jsx(yn, {}),
1243
1269
  conversationKey: o,
1244
- messageToolbar: Za,
1245
- onOpenActionDrawer: Ja
1270
+ messageToolbar: Ja,
1271
+ onOpenActionDrawer: ha
1246
1272
  }
1247
1273
  ),
1248
1274
  /* @__PURE__ */ e.jsx(
@@ -1257,18 +1283,18 @@ function yo({
1257
1283
  [
1258
1284
  o,
1259
1285
  ne,
1260
- L,
1286
+ M,
1261
1287
  ye,
1262
- Ba,
1288
+ za,
1263
1289
  we,
1290
+ Va,
1264
1291
  Fa,
1265
- Da,
1292
+ ha,
1266
1293
  Ja,
1267
- Za,
1268
- Ta,
1294
+ Oa,
1269
1295
  h,
1270
- S,
1271
- M
1296
+ R,
1297
+ L
1272
1298
  ]
1273
1299
  );
1274
1300
  return (
@@ -1288,7 +1314,7 @@ function yo({
1288
1314
  }
1289
1315
  ),
1290
1316
  /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__agent-selector", children: /* @__PURE__ */ e.jsx(
1291
- fa,
1317
+ wa,
1292
1318
  {
1293
1319
  menu: {
1294
1320
  items: ae.map((a) => ({
@@ -1314,7 +1340,7 @@ function yo({
1314
1340
  children: [
1315
1341
  (he == null ? void 0 : he.icon) && /* @__PURE__ */ e.jsx("span", { className: "wandox-console-chat__title-icon", children: he.icon }),
1316
1342
  /* @__PURE__ */ e.jsx("span", { className: "wandox-console-chat__title-name", children: l || (he == null ? void 0 : he.name) || "智能体" }),
1317
- /* @__PURE__ */ e.jsx(xs, { className: "wandox-console-chat__title-arrow" })
1343
+ /* @__PURE__ */ e.jsx(ps, { className: "wandox-console-chat__title-arrow" })
1318
1344
  ]
1319
1345
  }
1320
1346
  )
@@ -1325,7 +1351,7 @@ function yo({
1325
1351
  {
1326
1352
  type: "button",
1327
1353
  className: "wandox-console-chat__all-scenes",
1328
- disabled: L,
1354
+ disabled: M,
1329
1355
  onClick: zs,
1330
1356
  children: [
1331
1357
  /* @__PURE__ */ e.jsx(ao, {}),
@@ -1358,22 +1384,22 @@ function yo({
1358
1384
  )
1359
1385
  ] }),
1360
1386
  J === "chat" ? Js : /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-chat__robot", children: [
1361
- /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-chips", children: b.length === 0 ? /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-empty", children: "该智能体暂无巡检机器人" }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1362
- b.length > 0 && /* @__PURE__ */ e.jsx(
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(
1363
1389
  "button",
1364
1390
  {
1365
1391
  type: "button",
1366
- className: `wandox-console-chat__robot-chip ${f === null ? "active" : ""}`,
1392
+ className: `wandox-console-chat__robot-chip ${w === null ? "active" : ""}`,
1367
1393
  onClick: () => Ce(null),
1368
1394
  children: "全部"
1369
1395
  }
1370
1396
  ),
1371
- b.map((a) => {
1372
- const n = !!w[a.agent_id];
1397
+ f.map((a) => {
1398
+ const n = !!y[a.agent_id];
1373
1399
  return /* @__PURE__ */ e.jsxs(
1374
1400
  "div",
1375
1401
  {
1376
- className: `wandox-console-chat__robot-chip-compound ${f === a.name ? "active" : ""}`,
1402
+ className: `wandox-console-chat__robot-chip-compound ${w === a.name ? "active" : ""}`,
1377
1403
  children: [
1378
1404
  /* @__PURE__ */ e.jsx(
1379
1405
  "button",
@@ -1430,17 +1456,17 @@ function yo({
1430
1456
  onClick: () => Ie("history"),
1431
1457
  children: [
1432
1458
  "执行记录",
1433
- ue === "history" && f && be.length > 0 && /* @__PURE__ */ e.jsx("span", { className: "wandox-console-chat__robot-tab-badge", children: be.length })
1459
+ ue === "history" && w && be.length > 0 && /* @__PURE__ */ e.jsx("span", { className: "wandox-console-chat__robot-tab-badge", children: be.length })
1434
1460
  ]
1435
1461
  }
1436
1462
  )
1437
1463
  ] }),
1438
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: [
1439
- /* @__PURE__ */ e.jsx(wa, { size: "small" }),
1465
+ /* @__PURE__ */ e.jsx(ya, { size: "small" }),
1440
1466
  /* @__PURE__ */ e.jsx("span", { children: "加载中..." })
1441
1467
  ] }) : ua.length === 0 ? /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-chat__robot-empty", children: [
1442
1468
  /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-empty-icon", children: /* @__PURE__ */ e.jsx(ns, {}) }),
1443
- /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-empty-title", children: f ? `${f} 暂无巡检结果` : "暂无巡检结果" }),
1469
+ /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-empty-title", children: w ? `${w} 暂无巡检结果` : "暂无巡检结果" }),
1444
1470
  /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-empty-desc", children: "巡检结果会在机器人执行后展示在这里" })
1445
1471
  ] }) : /* @__PURE__ */ e.jsx("ul", { className: "wandox-console-chat__robot-timeline", children: ua.map((a, n) => {
1446
1472
  const c = {
@@ -1469,14 +1495,53 @@ function yo({
1469
1495
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-chat__robot-timeline-card", children: [
1470
1496
  /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-timeline-title", children: a.title }),
1471
1497
  a.summary && /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-timeline-summary", children: a.summary }),
1472
- 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 }) })
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 }) }),
1499
+ a.actions && a.actions.length > 0 && /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-timeline-actions", children: /* @__PURE__ */ e.jsxs(
1500
+ "button",
1501
+ {
1502
+ type: "button",
1503
+ className: "wandox-console-chat__robot-timeline-action-btn",
1504
+ onClick: () => ha(
1505
+ a.title,
1506
+ a.actions ?? []
1507
+ ),
1508
+ children: [
1509
+ /* @__PURE__ */ e.jsxs(
1510
+ "svg",
1511
+ {
1512
+ width: "14",
1513
+ height: "14",
1514
+ viewBox: "0 0 24 24",
1515
+ fill: "none",
1516
+ xmlns: "http://www.w3.org/2000/svg",
1517
+ role: "img",
1518
+ children: [
1519
+ /* @__PURE__ */ e.jsx("title", { children: "快速执行" }),
1520
+ /* @__PURE__ */ e.jsx(
1521
+ "path",
1522
+ {
1523
+ d: "M13 2L3 14H12L11 22L21 10H12L13 2Z",
1524
+ fill: "currentColor"
1525
+ }
1526
+ )
1527
+ ]
1528
+ }
1529
+ ),
1530
+ /* @__PURE__ */ e.jsxs("span", { children: [
1531
+ "快速执行 (",
1532
+ a.actions.length,
1533
+ ")"
1534
+ ] })
1535
+ ]
1536
+ }
1537
+ ) })
1473
1538
  ] })
1474
1539
  ]
1475
1540
  },
1476
1541
  a.id || `result_${n}`
1477
1542
  );
1478
- }) }) : f ? oa ? /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-chat__robot-loading", children: [
1479
- /* @__PURE__ */ e.jsx(wa, { size: "small" }),
1543
+ }) }) : w ? oa ? /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-chat__robot-loading", children: [
1544
+ /* @__PURE__ */ e.jsx(ya, { size: "small" }),
1480
1545
  /* @__PURE__ */ e.jsx("span", { children: "加载中..." })
1481
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(
1482
1547
  "li",
@@ -1516,12 +1581,12 @@ function yo({
1516
1581
  /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-empty-desc", children: "在上方选择机器人以查看其执行记录" })
1517
1582
  ] }) })
1518
1583
  ] }),
1519
- J === "chat" && $a.length > 0 && !(I && !F) && /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__recent", children: /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__recent-bar", children: $a.map((a, n) => /* @__PURE__ */ e.jsx(
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(
1520
1585
  "button",
1521
1586
  {
1522
1587
  type: "button",
1523
1588
  className: "wandox-console-chat__recent-chip",
1524
- disabled: L || !!ca,
1589
+ disabled: M || !!ca,
1525
1590
  title: a.description || a.name,
1526
1591
  onClick: () => {
1527
1592
  Hs(a);
@@ -1530,16 +1595,16 @@ function yo({
1530
1595
  },
1531
1596
  `${a.playbook_id || a.name}-${n}`
1532
1597
  )) }) }),
1533
- J === "chat" && /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__input", children: I && !F ? /* @__PURE__ */ e.jsxs(
1598
+ J === "chat" && /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__input", children: A && !F ? /* @__PURE__ */ e.jsxs(
1534
1599
  "div",
1535
1600
  {
1536
- ref: xe,
1601
+ ref: pe,
1537
1602
  className: "wandox-console-input-playbook wandox-console-prompt",
1538
1603
  children: [
1539
1604
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-prompt__head", children: [
1540
1605
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-scenechoice", children: [
1541
1606
  /* @__PURE__ */ e.jsx("span", { children: "已选择场景" }),
1542
- /* @__PURE__ */ e.jsx("strong", { children: I.title })
1607
+ /* @__PURE__ */ e.jsx("strong", { children: A.title })
1543
1608
  ] }),
1544
1609
  /* @__PURE__ */ e.jsx(
1545
1610
  "button",
@@ -1559,7 +1624,7 @@ function yo({
1559
1624
  ref: ke,
1560
1625
  tabIndex: -1,
1561
1626
  className: "wandox-console-taskarea wandox-console-taskarea--static",
1562
- children: I.desc || I.title
1627
+ children: A.desc || A.title
1563
1628
  }
1564
1629
  ),
1565
1630
  Z.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-paramarea", children: [
@@ -1567,7 +1632,7 @@ function yo({
1567
1632
  /* @__PURE__ */ e.jsx(ws, {}),
1568
1633
  /* @__PURE__ */ e.jsx("strong", { children: "确认分析范围" }),
1569
1634
  /* @__PURE__ */ e.jsxs("span", { className: "wandox-console-paramhead__status", children: [
1570
- /* @__PURE__ */ e.jsx(ya, {}),
1635
+ /* @__PURE__ */ e.jsx(ga, {}),
1571
1636
  " ",
1572
1637
  _e.length > 0 ? `待填 ${_e.length} 项必填参数` : "参数已就绪"
1573
1638
  ] })
@@ -1598,11 +1663,11 @@ function yo({
1598
1663
  {
1599
1664
  type: "button",
1600
1665
  className: "wandox-console-start",
1601
- disabled: !I || L || _e.length > 0,
1666
+ disabled: !A || M || _e.length > 0,
1602
1667
  onClick: Us,
1603
1668
  children: [
1604
1669
  "开始执行",
1605
- /* @__PURE__ */ e.jsx(ja, {})
1670
+ /* @__PURE__ */ e.jsx(va, {})
1606
1671
  ]
1607
1672
  }
1608
1673
  )
@@ -1613,12 +1678,12 @@ function yo({
1613
1678
  kn,
1614
1679
  {
1615
1680
  onSend: ma,
1616
- executing: L,
1617
- stopping: Ms,
1681
+ executing: M,
1682
+ stopping: Ls,
1618
1683
  onStop: Ts,
1619
- placeholder: " / 快速调用场景",
1620
- ssoToken: M,
1621
- ssoDomain: S,
1684
+ placeholder: " / 快速搜索场景",
1685
+ ssoToken: L,
1686
+ ssoDomain: R,
1622
1687
  ssoCompany: h,
1623
1688
  leadingActions: Ys,
1624
1689
  uploadButtonAsLeading: !0,
@@ -1626,7 +1691,7 @@ function yo({
1626
1691
  mentionTriggerChar: "/",
1627
1692
  mentionListRequest: Cs,
1628
1693
  onMentionListRequestHandled: Qs,
1629
- autoFocusInput: !I,
1694
+ autoFocusInput: !A,
1630
1695
  playbooks: Ss,
1631
1696
  onRequestPlaybookParams: ye
1632
1697
  }
@@ -1639,8 +1704,8 @@ function yo({
1639
1704
  categories: da,
1640
1705
  categoryKey: Y,
1641
1706
  search: te,
1642
- cards: Es,
1643
- executing: L,
1707
+ cards: As,
1708
+ executing: M,
1644
1709
  loadingPlaybookId: W,
1645
1710
  onClose: qs,
1646
1711
  onSourceChange: Bs,
@@ -1659,14 +1724,14 @@ function yo({
1659
1724
  onClose: Zs
1660
1725
  }
1661
1726
  ),
1662
- M && S && h && /* @__PURE__ */ e.jsx(
1727
+ L && R && h && /* @__PURE__ */ e.jsx(
1663
1728
  Cn,
1664
1729
  {
1665
1730
  open: de,
1666
1731
  title: $e,
1667
- actions: pe,
1668
- ssoToken: M,
1669
- ssoDomain: S,
1732
+ actions: xe,
1733
+ ssoToken: L,
1734
+ ssoDomain: R,
1670
1735
  ssoCompany: h,
1671
1736
  onClose: () => je(!1)
1672
1737
  }
@@ -1675,14 +1740,14 @@ function yo({
1675
1740
  Sn,
1676
1741
  {
1677
1742
  title: "配置通知渠道",
1678
- open: j,
1743
+ open: k,
1679
1744
  onCancel: () => {
1680
- y(!1), ve(null), A(void 0);
1745
+ g(!1), ve(null), P(void 0);
1681
1746
  },
1682
1747
  width: 520,
1683
1748
  centered: !0,
1684
1749
  footer: [
1685
- w[(O == null ? void 0 : O.agent_id) || ""] ? /* @__PURE__ */ e.jsx(
1750
+ y[(O == null ? void 0 : O.agent_id) || ""] ? /* @__PURE__ */ e.jsx(
1686
1751
  sa,
1687
1752
  {
1688
1753
  danger: !0,
@@ -1698,7 +1763,7 @@ function yo({
1698
1763
  {
1699
1764
  disabled: fe,
1700
1765
  onClick: () => {
1701
- y(!1), ve(null), A(void 0);
1766
+ g(!1), ve(null), P(void 0);
1702
1767
  },
1703
1768
  children: "取消"
1704
1769
  },
@@ -1763,7 +1828,7 @@ function yo({
1763
1828
  style: { width: "100%" },
1764
1829
  placeholder: "请选择通知渠道",
1765
1830
  value: z,
1766
- onChange: A,
1831
+ onChange: P,
1767
1832
  disabled: fe,
1768
1833
  options: se.map((a) => ({
1769
1834
  label: `${a.name}(${a.platform === "dingtalk" ? "钉钉" : a.platform === "feishu" ? "飞书" : "企业微信"})`,
@@ -1808,30 +1873,30 @@ function yo({
1808
1873
  open: me,
1809
1874
  onClose: () => He(!1),
1810
1875
  onSuccess: (a) => {
1811
- t((n) => [...n, a]), A(a.webhook_id);
1876
+ t((n) => [...n, a]), P(a.webhook_id);
1812
1877
  }
1813
1878
  }
1814
1879
  )
1815
1880
  ] })
1816
1881
  );
1817
1882
  }
1818
- const { TextArea: go } = Ra, Ve = 5;
1819
- function jo({
1883
+ const { TextArea: jo } = $a, Ve = 5;
1884
+ function vo({
1820
1885
  useMapCards: o,
1821
1886
  useMapCategories: l,
1822
- playbooks: u = [],
1823
- selectedCategoryKey: r,
1824
- onCategorySelect: p,
1825
- loading: k,
1826
- useMapError: P,
1827
- onRetry: _,
1828
- onStartAnalysis: R,
1887
+ playbooks: r = [],
1888
+ selectedCategoryKey: d,
1889
+ onCategorySelect: _,
1890
+ loading: v,
1891
+ useMapError: p,
1892
+ onRetry: b,
1893
+ onStartAnalysis: $,
1829
1894
  agents: T,
1830
1895
  selectedAgentId: ae,
1831
1896
  onAgentSelect: Q,
1832
1897
  onOpenAgentChat: le
1833
1898
  }) {
1834
- const [$, q] = s.useState(""), [M, S] = 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, I] = s.useState({}), [B, ke] = s.useState({}), [xe, de] = s.useState([]), [je, pe] = s.useState(!1), Re = s.useRef(null), [$e, Ne] = s.useState(0), Z = Math.max(
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(
1835
1900
  1,
1836
1901
  Math.ceil(l.length / Ve)
1837
1902
  ), K = Math.min($e, Z - 1), G = l.length > Ve, X = s.useMemo(
@@ -1845,123 +1910,123 @@ function jo({
1845
1910
  Ne(0);
1846
1911
  }, [ae]);
1847
1912
  const ee = s.useMemo(
1848
- () => o.length > 0 ? o : Hn(u),
1849
- [o, u]
1850
- ), _e = s.useMemo(() => r ? ee.filter((t) => t.categoryKey === r) : ee, [ee, r]), J = s.useMemo(() => {
1851
- const t = M.trim().toLowerCase();
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();
1852
1917
  return t ? _e.filter(
1853
- (w) => w.title.toLowerCase().includes(t) || w.desc.toLowerCase().includes(t)
1918
+ (y) => y.title.toLowerCase().includes(t) || y.desc.toLowerCase().includes(t)
1854
1919
  ) : _e;
1855
- }, [_e, M]), x = k || P && ee.length === 0 || J.length > 0, [b, ce] = s.useState("");
1920
+ }, [_e, L]), x = v || p && ee.length === 0 || J.length > 0, [f, ce] = s.useState("");
1856
1921
  s.useEffect(() => {
1857
1922
  V.current += 1, ce(""), q(""), E([]), Y({}), oe(!1), H("");
1858
- }, [r]), s.useEffect(() => {
1859
- b && !ee.some((t) => t.playbook_id === b) && (V.current += 1, ce(""), q(""), E([]), Y({}), oe(!1), H(""));
1860
- }, [b, ee]);
1861
- const f = s.useMemo(
1862
- () => ee.find((t) => t.playbook_id === b) ?? null,
1863
- [ee, b]
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]
1864
1929
  ), Ce = s.useMemo(
1865
1930
  () => h ? ys(h) : null,
1866
1931
  [h]
1867
- ), ue = s.useCallback((t, w) => {
1868
- t.stopPropagation(), D(w);
1932
+ ), ue = s.useCallback((t, y) => {
1933
+ t.stopPropagation(), D(y);
1869
1934
  }, []);
1870
1935
  s.useEffect(() => {
1871
- if (k || f) return;
1936
+ if (v || w) return;
1872
1937
  const t = window.setTimeout(() => {
1873
- var N, j;
1874
- const w = (j = (N = ie.current) == null ? void 0 : N.resizableTextArea) == null ? void 0 : j.textArea;
1875
- w == null || w.focus();
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();
1876
1941
  }, 0);
1877
1942
  return () => window.clearTimeout(t);
1878
- }, [k, f]);
1943
+ }, [v, w]);
1879
1944
  const Ie = s.useCallback(async (t) => {
1880
- const w = String(t.playbook_id || "").trim();
1881
- if (!w) {
1882
- C.error("场景缺少 playbook_id");
1945
+ const y = String(t.playbook_id || "").trim();
1946
+ if (!y) {
1947
+ S.error("场景缺少 playbook_id");
1883
1948
  return;
1884
1949
  }
1885
- const N = ++V.current;
1886
- ce(w), E([]), Y({}), I({}), ke({}), oe(!0), H("");
1950
+ const C = ++V.current;
1951
+ ce(y), E([]), Y({}), A({}), ke({}), oe(!0), H("");
1887
1952
  try {
1888
- const { data: j } = await ba({
1889
- playbook_id: w
1953
+ const { data: k } = await fa({
1954
+ playbook_id: y
1890
1955
  });
1891
- if (N !== V.current) return;
1892
- if (!j || typeof j != "object" || Array.isArray(j))
1956
+ if (C !== V.current) return;
1957
+ if (!k || typeof k != "object" || Array.isArray(k))
1893
1958
  throw new Error("场景详情为空");
1894
- const y = hs(
1895
- Pn(j)
1959
+ const g = hs(
1960
+ Pn(k)
1896
1961
  );
1897
- E(y), Y(ps(y));
1898
- } catch (j) {
1899
- if (N !== V.current) return;
1900
- const y = j instanceof Error ? j.message : "场景参数加载失败";
1901
- H(y), C.error("场景参数加载失败,请稍后重试");
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("场景参数加载失败,请稍后重试");
1902
1967
  } finally {
1903
- N === V.current && oe(!1);
1968
+ C === V.current && oe(!1);
1904
1969
  }
1905
1970
  }, []), oa = () => {
1906
1971
  V.current += 1, ce(""), q(""), E([]), Y({}), oe(!1), H("");
1907
1972
  }, qe = ms(F, U, Y), be = s.useMemo(
1908
1973
  () => na(F, U),
1909
1974
  [F, U]
1910
- ), Pe = s.useCallback((t, w) => {
1911
- Y((N) => ({ ...N, [t]: w }));
1975
+ ), Pe = s.useCallback((t, y) => {
1976
+ Y((C) => ({ ...C, [t]: y }));
1912
1977
  }, []), ta = s.useCallback(
1913
- (t, w) => async ({ file: N, onSuccess: j, onError: y }) => {
1978
+ (t, y) => async ({ file: C, onSuccess: k, onError: g }) => {
1914
1979
  var O, ve;
1915
- I((z) => ({ ...z, [t]: !0 }));
1980
+ A((z) => ({ ...z, [t]: !0 }));
1916
1981
  try {
1917
- const z = N, A = await as(z), fe = (O = A == null ? void 0 : A.data) == null ? void 0 : O.url, Ae = ((ve = A == null ? void 0 : A.data) == null ? void 0 : ve.name) || z.name;
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;
1918
1983
  if (!fe) throw new Error("上传结果缺少文件地址");
1919
- ke((me) => ({ ...me, [fe]: Ae })), Y((me) => {
1920
- if (w <= 1) return { ...me, [t]: fe };
1984
+ ke((me) => ({ ...me, [fe]: Ee })), Y((me) => {
1985
+ if (y <= 1) return { ...me, [t]: fe };
1921
1986
  const He = Array.isArray(me[t]) ? me[t] : me[t] ? [me[t]] : [];
1922
1987
  return { ...me, [t]: [...He, fe] };
1923
- }), j == null || j(A), C.success("上传成功");
1988
+ }), k == null || k(P), S.success("上传成功");
1924
1989
  } catch (z) {
1925
- const A = z instanceof Error ? z : new Error("上传失败");
1926
- y == null || y(A), C.error(A.message);
1990
+ const P = z instanceof Error ? z : new Error("上传失败");
1991
+ g == null || g(P), S.error(P.message);
1927
1992
  } finally {
1928
- I((z) => ({ ...z, [t]: !1 }));
1993
+ A((z) => ({ ...z, [t]: !1 }));
1929
1994
  }
1930
1995
  },
1931
1996
  []
1932
1997
  ), We = s.useCallback(
1933
1998
  async (t) => {
1934
- const w = Array.from(t.target.files ?? []);
1935
- if (t.target.value = "", w.length !== 0) {
1936
- pe(!0);
1999
+ const y = Array.from(t.target.files ?? []);
2000
+ if (t.target.value = "", y.length !== 0) {
2001
+ xe(!0);
1937
2002
  try {
1938
- const N = await Promise.all(
1939
- w.map(async (j) => {
1940
- var z, A;
1941
- const y = await as(j), O = (z = y == null ? void 0 : y.data) == null ? void 0 : z.url, ve = ((A = y == null ? void 0 : y.data) == null ? void 0 : A.name) || j.name;
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;
1942
2007
  if (!O) throw new Error("上传结果缺少文件地址");
1943
2008
  return {
1944
- type: j.type.startsWith("image/") ? "image" : "file",
2009
+ type: k.type.startsWith("image/") ? "image" : "file",
1945
2010
  url: O,
1946
2011
  name: ve,
1947
- mime_type: j.type
2012
+ mime_type: k.type
1948
2013
  };
1949
2014
  })
1950
2015
  );
1951
- de((j) => [...j, ...N]), C.success(`已添加 ${N.length} 个附件`);
1952
- } catch (N) {
1953
- C.error(N instanceof Error ? N.message : "上传失败");
2016
+ de((k) => [...k, ...C]), S.success(`已添加 ${C.length} 个附件`);
2017
+ } catch (C) {
2018
+ S.error(C instanceof Error ? C.message : "上传失败");
1954
2019
  } finally {
1955
- pe(!1);
2020
+ xe(!1);
1956
2021
  }
1957
2022
  }
1958
2023
  },
1959
2024
  []
1960
- ), Me = s.useCallback((t) => {
1961
- de((w) => w.filter((N) => N.url !== t));
1962
- }, []), Ee = s.useMemo(
2025
+ ), Le = s.useCallback((t) => {
2026
+ de((y) => y.filter((C) => C.url !== t));
2027
+ }, []), Ae = s.useMemo(
1963
2028
  () => be.filter(
1964
- (t) => t.required && ga(U[t.name])
2029
+ (t) => t.required && ja(U[t.name])
1965
2030
  ),
1966
2031
  [be, U]
1967
2032
  ), se = s.useMemo(
@@ -1977,7 +2042,7 @@ function jo({
1977
2042
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-home-header__identity", children: [
1978
2043
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-home-header__selector-row", children: [
1979
2044
  /* @__PURE__ */ e.jsx(
1980
- fa,
2045
+ wa,
1981
2046
  {
1982
2047
  menu: {
1983
2048
  items: T.map((t) => ({
@@ -1986,7 +2051,7 @@ function jo({
1986
2051
  label: /* @__PURE__ */ e.jsxs("span", { className: "wandox-console-agent-menu-item", children: [
1987
2052
  /* @__PURE__ */ e.jsx("span", { className: "wandox-console-agent-menu-item__icon", children: t.icon }),
1988
2053
  /* @__PURE__ */ e.jsx("span", { className: "wandox-console-agent-menu-item__name", children: t.name }),
1989
- t.id === se.id && /* @__PURE__ */ e.jsx(ya, { className: "wandox-console-agent-menu-item__check" })
2054
+ t.id === se.id && /* @__PURE__ */ e.jsx(ga, { className: "wandox-console-agent-menu-item__check" })
1990
2055
  ] })
1991
2056
  })),
1992
2057
  onClick: ({ key: t }) => Q == null ? void 0 : Q(t)
@@ -2001,7 +2066,7 @@ function jo({
2001
2066
  "aria-label": "切换智能体",
2002
2067
  children: [
2003
2068
  /* @__PURE__ */ e.jsx("span", { className: "wandox-console-home-header__name", children: se.name }),
2004
- /* @__PURE__ */ e.jsx(xs, { className: "wandox-console-home-header__arrow" })
2069
+ /* @__PURE__ */ e.jsx(ps, { className: "wandox-console-home-header__arrow" })
2005
2070
  ]
2006
2071
  }
2007
2072
  )
@@ -2027,16 +2092,16 @@ function jo({
2027
2092
  onClick: () => le == null ? void 0 : le(),
2028
2093
  children: [
2029
2094
  /* @__PURE__ */ e.jsx("span", { children: "会话记录" }),
2030
- /* @__PURE__ */ e.jsx(Mn, { className: "wandox-console-home-header__history-arrow" })
2095
+ /* @__PURE__ */ e.jsx(Ln, { className: "wandox-console-home-header__history-arrow" })
2031
2096
  ]
2032
2097
  }
2033
2098
  )
2034
2099
  ] }),
2035
2100
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-prompt", children: [
2036
- f && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-prompt__head", children: [
2101
+ w && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-prompt__head", children: [
2037
2102
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-scenechoice", children: [
2038
2103
  /* @__PURE__ */ e.jsx("span", { children: "已选择场景" }),
2039
- /* @__PURE__ */ e.jsx("strong", { children: f.title })
2104
+ /* @__PURE__ */ e.jsx("strong", { children: w.title })
2040
2105
  ] }),
2041
2106
  /* @__PURE__ */ e.jsx(
2042
2107
  "button",
@@ -2048,29 +2113,29 @@ function jo({
2048
2113
  }
2049
2114
  )
2050
2115
  ] }),
2051
- f ? /* @__PURE__ */ e.jsx("div", { className: "wandox-console-taskarea wandox-console-taskarea--static", children: f.desc || f.title }) : /* @__PURE__ */ e.jsx("div", { className: "wandox-console-taskarea", children: /* @__PURE__ */ e.jsx(
2052
- go,
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,
2053
2118
  {
2054
2119
  ref: ie,
2055
- value: $,
2120
+ value: I,
2056
2121
  onChange: (t) => q(t.target.value),
2057
2122
  autoSize: { minRows: 2 },
2058
2123
  variant: "borderless",
2059
2124
  placeholder: "直接描述你的问题,或选择一个场景开始"
2060
2125
  }
2061
2126
  ) }),
2062
- f && W && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-paramarea wandox-console-paramarea--state", children: [
2063
- /* @__PURE__ */ e.jsx(Ln, {}),
2127
+ w && W && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-paramarea wandox-console-paramarea--state", children: [
2128
+ /* @__PURE__ */ e.jsx(Mn, {}),
2064
2129
  /* @__PURE__ */ e.jsx("span", { children: "正在读取场景参数..." })
2065
2130
  ] }),
2066
- f && !W && te && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-paramarea wandox-console-paramarea--state", children: [
2131
+ w && !W && te && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-paramarea wandox-console-paramarea--state", children: [
2067
2132
  /* @__PURE__ */ e.jsx("span", { children: "场景参数加载失败" }),
2068
2133
  /* @__PURE__ */ e.jsxs(
2069
2134
  "button",
2070
2135
  {
2071
2136
  type: "button",
2072
2137
  className: "wandox-console-paramarea__retry",
2073
- onClick: () => void Ie(f),
2138
+ onClick: () => void Ie(w),
2074
2139
  children: [
2075
2140
  /* @__PURE__ */ e.jsx(ss, {}),
2076
2141
  "重试"
@@ -2078,14 +2143,14 @@ function jo({
2078
2143
  }
2079
2144
  )
2080
2145
  ] }),
2081
- f && !W && !te && be.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-paramarea", children: [
2146
+ w && !W && !te && be.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-paramarea", children: [
2082
2147
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-paramhead", children: [
2083
2148
  /* @__PURE__ */ e.jsx(ws, {}),
2084
2149
  /* @__PURE__ */ e.jsx("strong", { children: "确认分析范围" }),
2085
2150
  /* @__PURE__ */ e.jsxs("span", { className: "wandox-console-paramhead__status", children: [
2086
- /* @__PURE__ */ e.jsx(ya, {}),
2151
+ /* @__PURE__ */ e.jsx(ga, {}),
2087
2152
  " ",
2088
- Ee.length > 0 ? `待填 ${Ee.length} 项必填参数` : "参数已就绪"
2153
+ Ae.length > 0 ? `待填 ${Ae.length} 项必填参数` : "参数已就绪"
2089
2154
  ] })
2090
2155
  ] }),
2091
2156
  /* @__PURE__ */ e.jsx("div", { className: "wandox-console-params", children: be.map((t) => /* @__PURE__ */ e.jsx(
@@ -2105,9 +2170,9 @@ function jo({
2105
2170
  /* @__PURE__ */ e.jsxs(
2106
2171
  "div",
2107
2172
  {
2108
- className: `wandox-console-prompt__foot${f ? " wandox-console-prompt__foot--scene" : ""}`,
2173
+ className: `wandox-console-prompt__foot${w ? " wandox-console-prompt__foot--scene" : ""}`,
2109
2174
  children: [
2110
- !f && /* @__PURE__ */ e.jsx(
2175
+ !w && /* @__PURE__ */ e.jsx(
2111
2176
  "button",
2112
2177
  {
2113
2178
  type: "button",
@@ -2132,23 +2197,23 @@ function jo({
2132
2197
  onChange: We
2133
2198
  }
2134
2199
  ),
2135
- f ? /* @__PURE__ */ e.jsxs(
2200
+ w ? /* @__PURE__ */ e.jsxs(
2136
2201
  "button",
2137
2202
  {
2138
2203
  type: "button",
2139
2204
  className: "wandox-console-start",
2140
- disabled: W || !!te || Ee.length > 0,
2205
+ disabled: W || !!te || Ae.length > 0,
2141
2206
  onClick: () => {
2142
- R == null || R({
2143
- playbookId: f.playbook_id,
2207
+ $ == null || $({
2208
+ playbookId: w.playbook_id,
2144
2209
  playbookParams: U,
2145
- message: f.title,
2146
- attachments: xe
2210
+ message: w.title,
2211
+ attachments: pe
2147
2212
  });
2148
2213
  },
2149
2214
  children: [
2150
2215
  "开始执行",
2151
- /* @__PURE__ */ e.jsx(ja, {})
2216
+ /* @__PURE__ */ e.jsx(va, {})
2152
2217
  ]
2153
2218
  }
2154
2219
  ) : /* @__PURE__ */ e.jsx("div", { className: "wandox-console-prompt__foot-right", children: /* @__PURE__ */ e.jsx(
@@ -2156,12 +2221,12 @@ function jo({
2156
2221
  {
2157
2222
  type: "button",
2158
2223
  className: "wandox-console-prompt__send",
2159
- disabled: !$.trim(),
2224
+ disabled: !I.trim(),
2160
2225
  onClick: () => {
2161
- R == null || R({
2226
+ $ == null || $({
2162
2227
  playbookParams: {},
2163
- message: $.trim(),
2164
- attachments: xe
2228
+ message: I.trim(),
2229
+ attachments: pe
2165
2230
  });
2166
2231
  },
2167
2232
  "aria-label": "发送",
@@ -2172,7 +2237,7 @@ function jo({
2172
2237
  }
2173
2238
  )
2174
2239
  ] }),
2175
- xe.length > 0 && /* @__PURE__ */ e.jsx("div", { className: "wandox-console-attachments", children: xe.map((t) => /* @__PURE__ */ e.jsxs("span", { className: "wandox-console-attach-item", children: [
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: [
2176
2241
  t.type === "image" ? /* @__PURE__ */ e.jsx(
2177
2242
  "img",
2178
2243
  {
@@ -2195,7 +2260,7 @@ function jo({
2195
2260
  type: "button",
2196
2261
  className: "wandox-console-attach-item__remove",
2197
2262
  "aria-label": "移除附件",
2198
- onClick: () => Me(t.url),
2263
+ onClick: () => Le(t.url),
2199
2264
  children: /* @__PURE__ */ e.jsx(rs, {})
2200
2265
  }
2201
2266
  )
@@ -2223,9 +2288,9 @@ function jo({
2223
2288
  {
2224
2289
  type: "button",
2225
2290
  role: "tab",
2226
- "aria-selected": r === t.key,
2227
- className: `wandox-console-chip${r === t.key ? " wandox-console-chip--active" : ""}`,
2228
- onClick: () => p == null ? void 0 : p(t.key),
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),
2229
2294
  children: /* @__PURE__ */ e.jsx("span", { children: t.name })
2230
2295
  },
2231
2296
  t.key
@@ -2244,13 +2309,13 @@ function jo({
2244
2309
  }
2245
2310
  ),
2246
2311
  /* @__PURE__ */ e.jsx("div", { className: "wandox-console-scenesearch", children: /* @__PURE__ */ e.jsx(
2247
- Ra,
2312
+ $a,
2248
2313
  {
2249
2314
  allowClear: !0,
2250
- prefix: /* @__PURE__ */ e.jsx(_a, {}),
2315
+ prefix: /* @__PURE__ */ e.jsx(ba, {}),
2251
2316
  placeholder: "搜索当前地图下的场景",
2252
- value: M,
2253
- onChange: (t) => S(t.target.value)
2317
+ value: L,
2318
+ onChange: (t) => R(t.target.value)
2254
2319
  }
2255
2320
  ) })
2256
2321
  ] })
@@ -2262,49 +2327,49 @@ function jo({
2262
2327
  "aria-label": "个性化场景",
2263
2328
  children: [
2264
2329
  /* @__PURE__ */ e.jsx("div", { className: "wandox-console-scene-section__header", children: /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx("h2", { children: "为你推荐" }) }) }),
2265
- k ? /* @__PURE__ */ e.jsxs(
2330
+ v ? /* @__PURE__ */ e.jsxs(
2266
2331
  "div",
2267
2332
  {
2268
2333
  className: "wandox-console-agents__loading",
2269
2334
  style: { justifyContent: "center", padding: "40px 0" },
2270
2335
  children: [
2271
- /* @__PURE__ */ e.jsx(wa, { size: "small" }),
2336
+ /* @__PURE__ */ e.jsx(ya, { size: "small" }),
2272
2337
  /* @__PURE__ */ e.jsx("span", { children: "正在加载场景..." })
2273
2338
  ]
2274
2339
  }
2275
- ) : P && ee.length === 0 ? /* @__PURE__ */ e.jsxs(
2340
+ ) : p && ee.length === 0 ? /* @__PURE__ */ e.jsxs(
2276
2341
  "div",
2277
2342
  {
2278
2343
  className: "wandox-console-agents__error",
2279
2344
  style: { alignItems: "center", padding: "32px 0" },
2280
2345
  children: [
2281
- /* @__PURE__ */ e.jsx("span", { children: P }),
2282
- /* @__PURE__ */ e.jsxs("button", { type: "button", onClick: _, children: [
2346
+ /* @__PURE__ */ e.jsx("span", { children: p }),
2347
+ /* @__PURE__ */ e.jsxs("button", { type: "button", onClick: b, children: [
2283
2348
  /* @__PURE__ */ e.jsx(ss, {}),
2284
2349
  "重试"
2285
2350
  ] })
2286
2351
  ]
2287
2352
  }
2288
2353
  ) : J.length === 0 ? /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-scene-section__empty", children: [
2289
- /* @__PURE__ */ e.jsx(_a, {}),
2290
- /* @__PURE__ */ e.jsx("span", { children: M ? "没有匹配的场景" : "当前分类暂无场景" })
2354
+ /* @__PURE__ */ e.jsx(ba, {}),
2355
+ /* @__PURE__ */ e.jsx("span", { children: L ? "没有匹配的场景" : "当前分类暂无场景" })
2291
2356
  ] }) : /* @__PURE__ */ e.jsx("div", { className: "wandox-console-scenes-wrap", children: /* @__PURE__ */ e.jsx("div", { className: "wandox-console-scenes", children: J.map((t) => {
2292
- const w = ko(t), N = vo(t), j = No(t.tags);
2357
+ const y = No(t), C = ko(t), k = Co(t.tags);
2293
2358
  return /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-scene-wrap", children: [
2294
2359
  /* @__PURE__ */ e.jsx(
2295
2360
  "button",
2296
2361
  {
2297
2362
  type: "button",
2298
- className: `wandox-console-scene${N ? " wandox-console-scene--featured" : ""}${b === t.playbook_id ? " wandox-console-scene--selected" : ""}`,
2363
+ className: `wandox-console-scene${C ? " wandox-console-scene--featured" : ""}${f === t.playbook_id ? " wandox-console-scene--selected" : ""}`,
2299
2364
  onClick: () => Ie(t),
2300
2365
  children: /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-scene__body", children: [
2301
2366
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-scene__head", children: [
2302
2367
  /* @__PURE__ */ e.jsx("strong", { title: t.title, children: t.title }),
2303
- w && /* @__PURE__ */ e.jsx(
2368
+ y && /* @__PURE__ */ e.jsx(
2304
2369
  "span",
2305
2370
  {
2306
- className: `wandox-console-scene__badge wandox-console-scene__badge--${w.kind}`,
2307
- children: w.text
2371
+ className: `wandox-console-scene__badge wandox-console-scene__badge--${y.kind}`,
2372
+ children: y.text
2308
2373
  }
2309
2374
  )
2310
2375
  ] }),
@@ -2316,16 +2381,16 @@ function jo({
2316
2381
  children: t.desc
2317
2382
  }
2318
2383
  ),
2319
- (N || j.length > 0) && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-scene__tags", children: [
2320
- N && /* @__PURE__ */ e.jsx("span", { className: "wandox-console-scene__tag wandox-console-scene__tag--featured", children: "精品" }),
2321
- j.map((y, O) => /* @__PURE__ */ e.jsx(
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(
2322
2387
  "span",
2323
2388
  {
2324
2389
  className: "wandox-console-scene__tag",
2325
- style: Co(y),
2326
- children: y.name
2390
+ style: So(g),
2391
+ children: g.name
2327
2392
  },
2328
- `${y.name}-${O}`
2393
+ `${g.name}-${O}`
2329
2394
  ))
2330
2395
  ] })
2331
2396
  ] })
@@ -2337,7 +2402,7 @@ function jo({
2337
2402
  type: "button",
2338
2403
  className: "wandox-console-scene__video",
2339
2404
  "aria-label": `播放${t.title}演示视频`,
2340
- onClick: (y) => ue(y, t),
2405
+ onClick: (g) => ue(g, t),
2341
2406
  children: [
2342
2407
  "▶ ",
2343
2408
  gs(t.video_duration),
@@ -2360,18 +2425,18 @@ function jo({
2360
2425
  )
2361
2426
  ] });
2362
2427
  }
2363
- function vo(o) {
2428
+ function ko(o) {
2364
2429
  return o.is_featured === !0 || o.badge === "featured";
2365
2430
  }
2366
- function ko(o) {
2431
+ function No(o) {
2367
2432
  return o.badge === "recommend" ? { text: "推荐", kind: "recommend" } : o.badge === "new" ? { text: "New", kind: "new" } : null;
2368
2433
  }
2369
- function No(o) {
2434
+ function Co(o) {
2370
2435
  return Array.isArray(o) ? o.filter(
2371
2436
  (l) => typeof (l == null ? void 0 : l.name) == "string" && l.name.trim() !== ""
2372
2437
  ) : [];
2373
2438
  }
2374
- function Co(o) {
2439
+ function So(o) {
2375
2440
  if (!(o.variant !== "soft" || !o.color))
2376
2441
  return {
2377
2442
  color: o.color,
@@ -2380,12 +2445,12 @@ function Co(o) {
2380
2445
  };
2381
2446
  }
2382
2447
  function cs(o, l) {
2383
- const u = o.trim().replace("#", "");
2384
- if (!/^[0-9a-fA-F]{6}$/.test(u)) return o;
2385
- const r = Number.parseInt(u.slice(0, 2), 16), p = Number.parseInt(u.slice(2, 4), 16), k = Number.parseInt(u.slice(4, 6), 16);
2386
- return `rgba(${r}, ${p}, ${k}, ${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})`;
2387
2452
  }
2388
- const So = [
2453
+ const Ro = [
2389
2454
  {
2390
2455
  id: "conversation",
2391
2456
  title: "智能体",
@@ -2406,29 +2471,29 @@ const So = [
2406
2471
  icon: /* @__PURE__ */ e.jsx(fs, {}),
2407
2472
  accent: "#e0730c"
2408
2473
  };
2409
- function Ro({
2474
+ function $o({
2410
2475
  features: o,
2411
2476
  onOpenFeature: l,
2412
- activeId: u
2477
+ activeId: r
2413
2478
  }) {
2414
2479
  return /* @__PURE__ */ e.jsxs("header", { className: "wandox-console-topnav", "aria-label": "控制台顶部导航", children: [
2415
- /* @__PURE__ */ e.jsx("nav", { className: "wandox-console-topnav__pill", "aria-label": "工作台", children: o.map((r) => {
2416
- const p = u === r.id;
2480
+ /* @__PURE__ */ e.jsx("nav", { className: "wandox-console-topnav__pill", "aria-label": "工作台", children: o.map((d) => {
2481
+ const _ = r === d.id;
2417
2482
  return /* @__PURE__ */ e.jsxs(
2418
2483
  "button",
2419
2484
  {
2420
2485
  type: "button",
2421
- className: `wandox-console-topnav__pill-btn${p ? " wandox-console-topnav__pill-btn--active" : ""}`,
2422
- title: r.title,
2423
- "aria-label": r.title,
2424
- "aria-current": p ? "page" : void 0,
2425
- onClick: () => l(r.id),
2486
+ className: `wandox-console-topnav__pill-btn${_ ? " wandox-console-topnav__pill-btn--active" : ""}`,
2487
+ title: d.title,
2488
+ "aria-label": d.title,
2489
+ "aria-current": _ ? "page" : void 0,
2490
+ onClick: () => l(d.id),
2426
2491
  children: [
2427
- /* @__PURE__ */ e.jsx("span", { className: "wandox-console-topnav__pill-icon", children: r.icon }),
2428
- /* @__PURE__ */ e.jsx("span", { className: "wandox-console-topnav__pill-text", children: r.title })
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 })
2429
2494
  ]
2430
2495
  },
2431
- r.id
2496
+ d.id
2432
2497
  );
2433
2498
  }) }),
2434
2499
  /* @__PURE__ */ e.jsx(
@@ -2447,7 +2512,7 @@ function Ro({
2447
2512
  )
2448
2513
  ] });
2449
2514
  }
2450
- function $o({
2515
+ function Io({
2451
2516
  className: o = "",
2452
2517
  state: l = "idle"
2453
2518
  }) {
@@ -2473,7 +2538,7 @@ function ls({ fading: o }) {
2473
2538
  /* @__PURE__ */ e.jsx("div", { className: "wandox-console-init__halo wandox-console-init__halo--b" }),
2474
2539
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-init__inner", children: [
2475
2540
  /* @__PURE__ */ e.jsx(
2476
- $o,
2541
+ Io,
2477
2542
  {
2478
2543
  className: "wandox-console-init__companion",
2479
2544
  state: "thinking"
@@ -2499,16 +2564,16 @@ function ls({ fading: o }) {
2499
2564
  function is({
2500
2565
  title: o,
2501
2566
  onBack: l,
2502
- hideHeader: u = !1,
2503
- className: r,
2504
- children: p
2567
+ hideHeader: r = !1,
2568
+ className: d,
2569
+ children: _
2505
2570
  }) {
2506
2571
  return /* @__PURE__ */ e.jsxs(
2507
2572
  "div",
2508
2573
  {
2509
- className: `wandox-console-featureview${r ? ` ${r}` : ""}`,
2574
+ className: `wandox-console-featureview${d ? ` ${d}` : ""}`,
2510
2575
  children: [
2511
- !u && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-featureview__bar", children: [
2576
+ !r && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-featureview__bar", children: [
2512
2577
  /* @__PURE__ */ e.jsxs(
2513
2578
  "button",
2514
2579
  {
@@ -2523,54 +2588,54 @@ function is({
2523
2588
  ),
2524
2589
  /* @__PURE__ */ e.jsx("span", { className: "wandox-console-featureview__title", children: o })
2525
2590
  ] }),
2526
- /* @__PURE__ */ e.jsx("div", { className: "wandox-console-featureview__body", children: p })
2591
+ /* @__PURE__ */ e.jsx("div", { className: "wandox-console-featureview__body", children: _ })
2527
2592
  ]
2528
2593
  }
2529
2594
  );
2530
2595
  }
2531
- function Po({
2596
+ function Lo({
2532
2597
  agents: o,
2533
2598
  initialAgentId: l,
2534
- initialPlaybookId: u,
2535
- initialPlaybookParams: r,
2536
- onReady: p
2599
+ initialPlaybookId: r,
2600
+ initialPlaybookParams: d,
2601
+ onReady: _
2537
2602
  } = {}) {
2538
2603
  const {
2539
- agents: k,
2540
- agentLoading: P,
2541
- selectedAgentId: _,
2542
- selectedAgent: R,
2604
+ agents: v,
2605
+ agentLoading: p,
2606
+ selectedAgentId: b,
2607
+ selectedAgent: $,
2543
2608
  selectAgent: T,
2544
2609
  ...ae
2545
- } = Kn({ presetAgents: o, initialAgentId: l }), [Q, le] = s.useState(null), $ = s.useRef(null), q = s.useRef(!1), [M, S] = s.useState("home"), [h, D] = s.useState(
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(
2546
2611
  null
2547
- ), [ie, F] = s.useState(!1), [E, W] = s.useState(null), [oe, te] = s.useState(""), H = R == null ? void 0 : R.name, V = s.useCallback((x) => {
2548
- if ($.current) {
2549
- $.current.showInspectionResults(x);
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);
2550
2615
  return;
2551
2616
  }
2552
2617
  le({ robotName: x });
2553
2618
  }, []);
2554
2619
  s.useEffect(() => {
2555
- p == null || p({ showInspectionResults: V });
2556
- }, [V, p]), s.useEffect(() => {
2557
- !Q || $.current || !_ || M === "chat" || (W({
2558
- agentId: _,
2620
+ _ == null || _({ showInspectionResults: V });
2621
+ }, [V, _]), s.useEffect(() => {
2622
+ !Q || I.current || !b || L === "chat" || (W({
2623
+ agentId: b,
2559
2624
  agentName: H,
2560
2625
  playbookParams: {},
2561
2626
  message: ""
2562
- }), S("chat"));
2563
- }, [M, Q, _, H]), s.useEffect(() => {
2627
+ }), R("chat"));
2628
+ }, [L, Q, b, H]), s.useEffect(() => {
2564
2629
  te("");
2565
- }, [_]);
2630
+ }, [b]);
2566
2631
  const {
2567
2632
  playbooks: U,
2568
2633
  userPlaybooks: Y,
2569
2634
  useMapCategories: re,
2570
- useMapCards: I,
2635
+ useMapCards: A,
2571
2636
  sceneLoading: B,
2572
2637
  useMapError: ke,
2573
- reload: xe
2638
+ reload: pe
2574
2639
  } = ae, de = s.useMemo(
2575
2640
  () => re.length > 0 ? re : Gn(U),
2576
2641
  [re, U]
@@ -2578,53 +2643,53 @@ function Po({
2578
2643
  s.useEffect(() => {
2579
2644
  if (de.length === 0) return;
2580
2645
  de.some(
2581
- (b) => b.key === oe
2646
+ (f) => f.key === oe
2582
2647
  ) || te(de[0].key);
2583
2648
  }, [de]);
2584
2649
  const je = s.useRef(!1);
2585
2650
  s.useEffect(() => {
2586
- if (je.current || !u || !_ || B)
2651
+ if (je.current || !r || !b || B)
2587
2652
  return;
2588
- const x = k.find(
2589
- (b) => b.id === _ && os(b, l)
2653
+ const x = v.find(
2654
+ (f) => f.id === b && os(f, l)
2590
2655
  );
2591
2656
  x && (je.current = !0, W({
2592
- agentId: _,
2657
+ agentId: b,
2593
2658
  agentName: x.name,
2594
- playbookId: u,
2595
- playbookParams: r || {},
2659
+ playbookId: r,
2660
+ playbookParams: d || {},
2596
2661
  message: ""
2597
- }), S("chat"));
2662
+ }), R("chat"));
2598
2663
  }, [
2599
2664
  B,
2600
- k,
2665
+ v,
2601
2666
  l,
2602
- u,
2603
2667
  r,
2604
- _,
2668
+ d,
2669
+ b,
2605
2670
  H
2606
2671
  ]), s.useEffect(() => {
2607
- if (q.current || !l || u || !_ || B)
2672
+ if (q.current || !l || r || !b || B)
2608
2673
  return;
2609
- const x = k.find(
2610
- (b) => b.id === _ && os(b, l)
2674
+ const x = v.find(
2675
+ (f) => f.id === b && os(f, l)
2611
2676
  );
2612
2677
  x && (q.current = !0, W({
2613
2678
  agentId: x.id,
2614
2679
  agentName: x.name,
2615
2680
  playbookParams: {},
2616
2681
  message: ""
2617
- }), S("chat"));
2618
- }, [k, B, l, u, _]);
2619
- const [pe, Re] = s.useState(!0), [$e, Ne] = s.useState(!1);
2682
+ }), R("chat"));
2683
+ }, [v, B, l, r, b]);
2684
+ const [xe, Re] = s.useState(!0), [$e, Ne] = s.useState(!1);
2620
2685
  s.useEffect(() => {
2621
- if (!pe || !(!P && k.length > 0 && !!_ && !B)) return;
2686
+ if (!xe || !(!p && v.length > 0 && !!b && !B)) return;
2622
2687
  Ne(!0);
2623
2688
  const ce = setTimeout(() => Re(!1), 280);
2624
2689
  return () => clearTimeout(ce);
2625
- }, [P, k.length, _, B, pe]);
2690
+ }, [p, v.length, b, B, xe]);
2626
2691
  const Z = s.useCallback(() => {
2627
- S("home"), D(null), F(!1);
2692
+ R("home"), D(null), F(!1);
2628
2693
  }, []), K = s.useCallback(
2629
2694
  (x) => {
2630
2695
  if (x === "conversation") {
@@ -2635,36 +2700,36 @@ function Po({
2635
2700
  },
2636
2701
  [Z]
2637
2702
  ), G = (x) => {
2638
- T(x), S("home");
2703
+ T(x), R("home");
2639
2704
  }, X = (x) => {
2640
- if (x === _) return;
2641
- const b = k.find((ce) => ce.id === x);
2705
+ if (x === b) return;
2706
+ const f = v.find((ce) => ce.id === x);
2642
2707
  T(x), W({
2643
2708
  agentId: x,
2644
- agentName: b == null ? void 0 : b.name,
2709
+ agentName: f == null ? void 0 : f.name,
2645
2710
  playbookParams: {},
2646
2711
  message: ""
2647
2712
  });
2648
2713
  }, ee = () => {
2649
- _ && (W({
2650
- agentId: _,
2714
+ b && (W({
2715
+ agentId: b,
2651
2716
  agentName: H,
2652
2717
  playbookParams: {},
2653
2718
  message: ""
2654
- }), S("chat"));
2719
+ }), R("chat"));
2655
2720
  }, _e = (x) => {
2656
2721
  W({
2657
- agentId: _,
2722
+ agentId: b,
2658
2723
  agentName: H,
2659
2724
  playbookId: x.playbookId,
2660
2725
  playbookParams: x.playbookParams,
2661
2726
  message: x.message,
2662
2727
  attachments: x.attachments
2663
- }), S("chat");
2728
+ }), R("chat");
2664
2729
  };
2665
- return M === "chat" && E ? /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-chat-shell", children: [
2730
+ return L === "chat" && E ? /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-chat-shell", children: [
2666
2731
  /* @__PURE__ */ e.jsx(
2667
- yo,
2732
+ go,
2668
2733
  {
2669
2734
  agentId: E.agentId,
2670
2735
  agentName: E.agentName,
@@ -2672,34 +2737,34 @@ function Po({
2672
2737
  playbookParams: E.playbookParams,
2673
2738
  initialMessage: E.message,
2674
2739
  initialAttachments: E.attachments,
2675
- useMapCards: I,
2740
+ useMapCards: A,
2676
2741
  useMapCategories: re,
2677
2742
  playbooks: U,
2678
2743
  userPlaybooks: Y,
2679
- agents: k,
2744
+ agents: v,
2680
2745
  onReady: (x) => {
2681
- $.current = x, Q && (x.showInspectionResults(Q.robotName), le(null));
2746
+ I.current = x, Q && (x.showInspectionResults(Q.robotName), le(null));
2682
2747
  },
2683
2748
  onChangeAgent: X,
2684
2749
  onBack: () => {
2685
- $.current = null, S("home");
2750
+ I.current = null, R("home");
2686
2751
  },
2687
2752
  onSelectScene: () => {
2688
2753
  }
2689
2754
  },
2690
2755
  `${E.agentId}:${E.playbookId || "free-chat"}`
2691
2756
  ),
2692
- pe && /* @__PURE__ */ e.jsx(ls, { fading: $e })
2757
+ xe && /* @__PURE__ */ e.jsx(ls, { fading: $e })
2693
2758
  ] }) : /* @__PURE__ */ e.jsxs(
2694
2759
  "div",
2695
2760
  {
2696
2761
  className: `wandox-console${ie ? " wandox-console--secondary" : ""}`,
2697
2762
  children: [
2698
- pe && /* @__PURE__ */ e.jsx(ls, { fading: $e }),
2763
+ xe && /* @__PURE__ */ e.jsx(ls, { fading: $e }),
2699
2764
  !ie && /* @__PURE__ */ e.jsx(
2700
- Ro,
2765
+ $o,
2701
2766
  {
2702
- features: So,
2767
+ features: Ro,
2703
2768
  activeId: h ?? "conversation",
2704
2769
  onOpenFeature: K
2705
2770
  }
@@ -2732,19 +2797,19 @@ function Po({
2732
2797
  }
2733
2798
  ),
2734
2799
  !h && /* @__PURE__ */ e.jsx(
2735
- jo,
2800
+ vo,
2736
2801
  {
2737
- useMapCards: I,
2802
+ useMapCards: A,
2738
2803
  useMapCategories: de,
2739
2804
  playbooks: U,
2740
2805
  selectedCategoryKey: oe,
2741
2806
  onCategorySelect: te,
2742
2807
  loading: B,
2743
2808
  useMapError: ke,
2744
- onRetry: xe,
2809
+ onRetry: pe,
2745
2810
  onStartAnalysis: _e,
2746
- agents: k,
2747
- selectedAgentId: _,
2811
+ agents: v,
2812
+ selectedAgentId: b,
2748
2813
  onAgentSelect: G,
2749
2814
  onOpenAgentChat: ee
2750
2815
  }
@@ -2755,5 +2820,5 @@ function Po({
2755
2820
  );
2756
2821
  }
2757
2822
  export {
2758
- Po as default
2823
+ Lo as default
2759
2824
  };