@wandox/sdk 0.1.42 → 0.1.43

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-BMtwxYV1.cjs → V1Workbench-B9o_U8aO.cjs} +1 -1
  2. package/dist/{V1Workbench-BPM2Hyia.js → V1Workbench-DtwjchsP.js} +3 -3
  3. package/dist/V2Workbench-Bh5bDBlV.cjs +2 -0
  4. package/dist/{V2Workbench-SLCyuz0m.js → V2Workbench-etU2xPzD.js} +318 -312
  5. package/dist/{WorkbenchRuntime-Bw3YVJyj.cjs → WorkbenchRuntime-CVhbTmsn.cjs} +4 -4
  6. package/dist/{WorkbenchRuntime-D4TX08P0.js → WorkbenchRuntime-CypElf5G.js} +8 -7
  7. package/dist/{arc-TMt-ELu0.cjs → arc-DZC23cud.cjs} +1 -1
  8. package/dist/{arc-CTFudHUx.js → arc-KzT0EnTt.js} +1 -1
  9. package/dist/{architectureDiagram-3BPJPVTR-ma8wVb-G.cjs → architectureDiagram-3BPJPVTR-5k0jfbGR.cjs} +1 -1
  10. package/dist/{architectureDiagram-3BPJPVTR-D0nzJigQ.js → architectureDiagram-3BPJPVTR-RLP6nQvV.js} +3 -3
  11. package/dist/{blockDiagram-GPEHLZMM-CrLMJpgy.js → blockDiagram-GPEHLZMM-CoJLVb02.js} +3 -3
  12. package/dist/{blockDiagram-GPEHLZMM-B9SG48zF.cjs → blockDiagram-GPEHLZMM-DceAnJoY.cjs} +1 -1
  13. package/dist/{c4Diagram-AAUBKEIU-DYLkOb29.cjs → c4Diagram-AAUBKEIU-MzLmGCqL.cjs} +1 -1
  14. package/dist/{c4Diagram-AAUBKEIU-jGpmbYup.js → c4Diagram-AAUBKEIU-T-T4e0mB.js} +2 -2
  15. package/dist/{channel-xuGF2XHi.js → channel-BiS2QhjX.js} +1 -1
  16. package/dist/{channel-D9aXObDg.cjs → channel-Cm9GGpp6.cjs} +1 -1
  17. package/dist/{chunk-2J33WTMH-DfCPx4TK.js → chunk-2J33WTMH-Cz22cuO_.js} +1 -1
  18. package/dist/{chunk-2J33WTMH-Bb7r3UsS.cjs → chunk-2J33WTMH-DIajlLPT.cjs} +1 -1
  19. package/dist/{chunk-4BX2VUAB-BVBFGazg.js → chunk-4BX2VUAB-BKscTaJM.js} +1 -1
  20. package/dist/{chunk-4BX2VUAB-Ujuys49Z.cjs → chunk-4BX2VUAB-DzYu-_uE.cjs} +1 -1
  21. package/dist/{chunk-55IACEB6-D2bCK212.js → chunk-55IACEB6-DV_bsX8C.js} +1 -1
  22. package/dist/{chunk-55IACEB6-CCHNm8Tr.cjs → chunk-55IACEB6-TLFlN5WW.cjs} +1 -1
  23. package/dist/{chunk-727SXJPM-C72XbFAd.cjs → chunk-727SXJPM-DAmczDb4.cjs} +1 -1
  24. package/dist/{chunk-727SXJPM-Cio-wglM.js → chunk-727SXJPM-kB3sPt2T.js} +5 -5
  25. package/dist/{chunk-AQP2D5EJ-B3kQBTIw.cjs → chunk-AQP2D5EJ-DBd5RxkC.cjs} +1 -1
  26. package/dist/{chunk-AQP2D5EJ-Ba8JlV7E.js → chunk-AQP2D5EJ-j8WzCnfH.js} +3 -3
  27. package/dist/{chunk-FMBD7UC4-CYbGgPkz.cjs → chunk-FMBD7UC4-Bk8fGNrN.cjs} +1 -1
  28. package/dist/{chunk-FMBD7UC4-B8AkbgCj.js → chunk-FMBD7UC4-Bo9GmTwy.js} +1 -1
  29. package/dist/{chunk-ND2GUHAM-BgCWhBGM.cjs → chunk-ND2GUHAM-BlaLxZl9.cjs} +1 -1
  30. package/dist/{chunk-ND2GUHAM-CHUVXZay.js → chunk-ND2GUHAM-_2cK9e6-.js} +1 -1
  31. package/dist/{chunk-QZHKN3VN-CvOSWDrJ.cjs → chunk-QZHKN3VN-BVopp-sz.cjs} +1 -1
  32. package/dist/{chunk-QZHKN3VN-D8pfWLL2.js → chunk-QZHKN3VN-Cz700WiE.js} +1 -1
  33. package/dist/{classDiagram-4FO5ZUOK-BgajT1MN.cjs → classDiagram-4FO5ZUOK-C1_LKqgm.cjs} +1 -1
  34. package/dist/{classDiagram-4FO5ZUOK-BpqWK41p.js → classDiagram-4FO5ZUOK-Duc1S1C3.js} +2 -2
  35. package/dist/{classDiagram-v2-Q7XG4LA2-BgajT1MN.cjs → classDiagram-v2-Q7XG4LA2-C1_LKqgm.cjs} +1 -1
  36. package/dist/{classDiagram-v2-Q7XG4LA2-DIpkOsLT.js → classDiagram-v2-Q7XG4LA2-Cw_N2MCX.js} +2 -2
  37. package/dist/{cose-bilkent-S5V4N54A-CpfHDS3L.cjs → cose-bilkent-S5V4N54A-BKZqIzYg.cjs} +1 -1
  38. package/dist/{cose-bilkent-S5V4N54A-Cqi01qNn.js → cose-bilkent-S5V4N54A-BjpfMxaU.js} +2 -2
  39. package/dist/{dagre-BM42HDAG-C23jgWGl.js → dagre-BM42HDAG-CQThzdC_.js} +1 -1
  40. package/dist/{dagre-BM42HDAG-CLDIPr-X.cjs → dagre-BM42HDAG-Fld12_1l.cjs} +1 -1
  41. package/dist/{diagram-2AECGRRQ-CjnokWsQ.cjs → diagram-2AECGRRQ-BcTGhMXd.cjs} +1 -1
  42. package/dist/{diagram-2AECGRRQ-Cj24Od-u.js → diagram-2AECGRRQ-CIBRIVNG.js} +2 -2
  43. package/dist/{diagram-5GNKFQAL-BfV9uMUl.cjs → diagram-5GNKFQAL-BkLpALBg.cjs} +1 -1
  44. package/dist/{diagram-5GNKFQAL-BbiEdciY.js → diagram-5GNKFQAL-Zaw82XJh.js} +3 -3
  45. package/dist/{diagram-KO2AKTUF-D9v2ooVA.js → diagram-KO2AKTUF-B7xrMmCV.js} +2 -2
  46. package/dist/{diagram-KO2AKTUF-DrZSS2Gv.cjs → diagram-KO2AKTUF-D0_eoN0U.cjs} +1 -1
  47. package/dist/{diagram-LMA3HP47-rD-lWG_r.js → diagram-LMA3HP47-DUjmGtpP.js} +2 -2
  48. package/dist/{diagram-LMA3HP47-eMKAwWlp.cjs → diagram-LMA3HP47-DrKGcq4W.cjs} +1 -1
  49. package/dist/{diagram-OG6HWLK6-CflRan99.js → diagram-OG6HWLK6-DMninHP8.js} +3 -3
  50. package/dist/{diagram-OG6HWLK6-50-uYAg9.cjs → diagram-OG6HWLK6-pShu3fOg.cjs} +1 -1
  51. package/dist/{erDiagram-TEJ5UH35-CEHO-wXV.js → erDiagram-TEJ5UH35-DTfbMMC9.js} +4 -4
  52. package/dist/{erDiagram-TEJ5UH35-BTriOcqX.cjs → erDiagram-TEJ5UH35-Dk-sYhep.cjs} +1 -1
  53. package/dist/{flowDiagram-I6XJVG4X-BvOBJzbt.js → flowDiagram-I6XJVG4X-CLwM_Eg0.js} +6 -6
  54. package/dist/{flowDiagram-I6XJVG4X-BLp2Bhui.cjs → flowDiagram-I6XJVG4X-DppBTRsZ.cjs} +1 -1
  55. package/dist/{ganttDiagram-6RSMTGT7-9be6okZP.js → ganttDiagram-6RSMTGT7-DIa85OV9.js} +3 -3
  56. package/dist/{ganttDiagram-6RSMTGT7-DHYCnTZk.cjs → ganttDiagram-6RSMTGT7-EpoZQLvi.cjs} +1 -1
  57. package/dist/{gitGraphDiagram-PVQCEYII-DysW3J76.js → gitGraphDiagram-PVQCEYII-BRLUWeD3.js} +3 -3
  58. package/dist/{gitGraphDiagram-PVQCEYII-fuLhNOZJ.cjs → gitGraphDiagram-PVQCEYII-CsFY181r.cjs} +1 -1
  59. package/dist/{index-QIZEllkT.cjs → index-B5J1m72V.cjs} +1 -1
  60. package/dist/{index-BjGp64i-.js → index-BGQhNpL1.js} +2 -2
  61. package/dist/{index-DCt5j5lC.cjs → index-Cpei3C6T.cjs} +6 -6
  62. package/dist/{index-CN7b3cbE.js → index-DiKNNTFn.js} +8 -8
  63. package/dist/{infoDiagram-5YYISTIA-BQB8CM7E.cjs → infoDiagram-5YYISTIA-BE2ny8B4.cjs} +1 -1
  64. package/dist/{infoDiagram-5YYISTIA-BKiJ4C1R.js → infoDiagram-5YYISTIA-Cj29jNVn.js} +1 -1
  65. package/dist/{ishikawaDiagram-YF4QCWOH-Cm3nbVdr.js → ishikawaDiagram-YF4QCWOH-CTLGQ4PN.js} +1 -1
  66. package/dist/{ishikawaDiagram-YF4QCWOH-CmWN_962.cjs → ishikawaDiagram-YF4QCWOH-DyRH5JNV.cjs} +1 -1
  67. package/dist/{journeyDiagram-JHISSGLW-BH3kUnoi.js → journeyDiagram-JHISSGLW-BR4Ab1xq.js} +4 -4
  68. package/dist/{journeyDiagram-JHISSGLW-Qeh_6e_n.cjs → journeyDiagram-JHISSGLW-Byy1iuRk.cjs} +1 -1
  69. package/dist/{kanban-definition-UN3LZRKU-BcNQilMv.js → kanban-definition-UN3LZRKU-Cstu6gJZ.js} +2 -2
  70. package/dist/{kanban-definition-UN3LZRKU-BQVFSEa2.cjs → kanban-definition-UN3LZRKU-z4mwtimn.cjs} +1 -1
  71. package/dist/{linear-TarjbgsN.cjs → linear-CgTdlbkV.cjs} +1 -1
  72. package/dist/{linear-xl1chASq.js → linear-DHz5lgrw.js} +1 -1
  73. package/dist/{mermaid.core-CD8W-83J.cjs → mermaid.core-6Rboof0_.cjs} +3 -3
  74. package/dist/{mermaid.core-VImUQ-y-.js → mermaid.core-CS-i9hKc.js} +35 -35
  75. package/dist/{mindmap-definition-RKZ34NQL-DCRQT10I.cjs → mindmap-definition-RKZ34NQL-CQxvbyEf.cjs} +1 -1
  76. package/dist/{mindmap-definition-RKZ34NQL-BJl71t4P.js → mindmap-definition-RKZ34NQL-DBvY1gCG.js} +3 -3
  77. package/dist/{pieDiagram-4H26LBE5--tW4dEtH.cjs → pieDiagram-4H26LBE5-BJTvIeTN.cjs} +1 -1
  78. package/dist/{pieDiagram-4H26LBE5-DwQkQmdD.js → pieDiagram-4H26LBE5-BbulgKyH.js} +3 -3
  79. package/dist/{quadrantDiagram-W4KKPZXB-WFcfZghI.cjs → quadrantDiagram-W4KKPZXB-BGu3SyWz.cjs} +1 -1
  80. package/dist/{quadrantDiagram-W4KKPZXB-D41uKlpw.js → quadrantDiagram-W4KKPZXB-_rv2Qg71.js} +2 -2
  81. package/dist/{requirementDiagram-4Y6WPE33-ChLKzwEb.cjs → requirementDiagram-4Y6WPE33-Bm4ViepU.cjs} +1 -1
  82. package/dist/{requirementDiagram-4Y6WPE33-npAxQTol.js → requirementDiagram-4Y6WPE33-CpZeNXB3.js} +3 -3
  83. package/dist/{sankeyDiagram-5OEKKPKP-BvcPTB2N.cjs → sankeyDiagram-5OEKKPKP-BLxCUGiP.cjs} +1 -1
  84. package/dist/{sankeyDiagram-5OEKKPKP-fKgres6H.js → sankeyDiagram-5OEKKPKP-CZvgmmBP.js} +1 -1
  85. package/dist/{sequenceDiagram-3UESZ5HK-LGRgMkGi.cjs → sequenceDiagram-3UESZ5HK-BBDEZFwB.cjs} +1 -1
  86. package/dist/{sequenceDiagram-3UESZ5HK-CpEUV9gb.js → sequenceDiagram-3UESZ5HK-DwgEjoON.js} +3 -3
  87. package/dist/{stateDiagram-AJRCARHV-XBb-Dtow.cjs → stateDiagram-AJRCARHV-BqcG_ChJ.cjs} +1 -1
  88. package/dist/{stateDiagram-AJRCARHV-CHqQN0ix.js → stateDiagram-AJRCARHV-D3CASY0s.js} +2 -2
  89. package/dist/{stateDiagram-v2-BHNVJYJU-C14xhWxp.cjs → stateDiagram-v2-BHNVJYJU-CC1TA5cE.cjs} +1 -1
  90. package/dist/{stateDiagram-v2-BHNVJYJU-Z8Pi0Y3W.js → stateDiagram-v2-BHNVJYJU-vbr36pvU.js} +2 -2
  91. package/dist/{timeline-definition-PNZ67QCA-D6BDxDF0.cjs → timeline-definition-PNZ67QCA-BVkKzUPo.cjs} +1 -1
  92. package/dist/{timeline-definition-PNZ67QCA-CQlKM_xI.js → timeline-definition-PNZ67QCA-Bm1d-AzB.js} +2 -2
  93. package/dist/{vennDiagram-CIIHVFJN-BNuzvov-.cjs → vennDiagram-CIIHVFJN-4OYsnAtq.cjs} +1 -1
  94. package/dist/{vennDiagram-CIIHVFJN-CQuhupzV.js → vennDiagram-CIIHVFJN-yGUCdugP.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 +276 -276
  99. package/dist/{wardleyDiagram-YWT4CUSO-MHRvjUGT.cjs → wardleyDiagram-YWT4CUSO-DAJJWPai.cjs} +1 -1
  100. package/dist/{wardleyDiagram-YWT4CUSO-22zzwPUn.js → wardleyDiagram-YWT4CUSO-DmASfXP7.js} +2 -2
  101. package/dist/{xychartDiagram-2RQKCTM6-CUe-G5Nn.cjs → xychartDiagram-2RQKCTM6-BKdlhCMk.cjs} +1 -1
  102. package/dist/{xychartDiagram-2RQKCTM6-BLOMoiAI.js → xychartDiagram-2RQKCTM6-C8BTMQrb.js} +2 -2
  103. package/package.json +1 -1
  104. package/dist/V2Workbench-Dldh6IwR.cjs +0 -2
@@ -1,7 +1,7 @@
1
- import { dt as s, af as ze, d0 as e, a_ as rs, ai as $a, a$ as ba, aR as ds, bL as us, b0 as an, d_ as ms, K as Xa, aa as sn, a9 as fa, d6 as es, Q as nn, P as on, a6 as tn, a4 as cn, T as ln, da as hs, dG as S, ci as rn, S as dn, J as wa, c_ as un, cO as mn, dO as hn, cd as pn, cH as xn, cG as _n, as as bn, ap as fn, o as wn, m as yn, v as gn, b1 as ps, b2 as jn, bC as ya, aO as vn, b3 as ga, n as kn, ar as Nn, A as Cn, aq as Sn, bz as Rn, bB as $n, i as sa, aA as In, y as An, cI as En, cJ as Pn, aE as as, b4 as Ln, aZ as Mn, b5 as ss, b6 as Tn, b7 as On, b8 as Dn, b9 as Fn, ek as Vn } from "./index-CN7b3cbE.js";
2
- import { n as Bn, A as zn, l as na, m as ja, p as qn, h as xs, R as va, c as _s, a as bs, d as fs, e as ns, Q as Wn, i as Hn, f as Un, u as Kn, j as Gn, o as os, b as Qn, S as Yn } from "./WorkbenchRuntime-D4TX08P0.js";
3
- import { Drawer as Zn, Divider as Jn } from "./index-BjGp64i-.js";
4
- var Xn = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M864 144H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm0 400H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zM464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm0 400H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16z" } }] }, name: "appstore", theme: "filled" };
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 Fn, b8 as On, b9 as Dn, ek as Vn } from "./index-DiKNNTFn.js";
2
+ import { o as Bn, l as zn, A as qn, m as na, n as ja, q as Wn, h as xs, R as va, c as _s, a as bs, d as fs, e as ns, Q as Hn, i as Un, f as Kn, u as Gn, j as Qn, p as os, b as Yn, S as Zn } from "./WorkbenchRuntime-CypElf5G.js";
3
+ import { Drawer as Jn, Divider as Xn } from "./index-BGQhNpL1.js";
4
+ var eo = { 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
5
  function ka() {
6
6
  return ka = Object.assign ? Object.assign.bind() : function(o) {
7
7
  for (var l = 1; l < arguments.length; l++) {
@@ -12,11 +12,11 @@ function ka() {
12
12
  return o;
13
13
  }, ka.apply(this, arguments);
14
14
  }
15
- const eo = (o, l) => /* @__PURE__ */ s.createElement(ze, ka({}, o, {
15
+ const ao = (o, l) => /* @__PURE__ */ s.createElement(ze, ka({}, o, {
16
16
  ref: l,
17
- icon: Xn
18
- })), ao = /* @__PURE__ */ s.forwardRef(eo);
19
- var so = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M689 165.1L308.2 493.5c-10.9 9.4-10.9 27.5 0 37L689 858.9c14.2 12.2 35 1.2 35-18.5V183.6c0-19.7-20.8-30.7-35-18.5z" } }] }, name: "caret-left", theme: "filled" };
17
+ icon: eo
18
+ })), so = /* @__PURE__ */ s.forwardRef(ao);
19
+ var no = { 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
20
  function Na() {
21
21
  return Na = Object.assign ? Object.assign.bind() : function(o) {
22
22
  for (var l = 1; l < arguments.length; l++) {
@@ -27,11 +27,11 @@ function Na() {
27
27
  return o;
28
28
  }, Na.apply(this, arguments);
29
29
  }
30
- const no = (o, l) => /* @__PURE__ */ s.createElement(ze, Na({}, o, {
30
+ const oo = (o, l) => /* @__PURE__ */ s.createElement(ze, Na({}, o, {
31
31
  ref: l,
32
- icon: so
33
- })), oo = /* @__PURE__ */ s.forwardRef(no);
34
- var to = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z" } }] }, name: "caret-right", theme: "filled" };
32
+ icon: no
33
+ })), to = /* @__PURE__ */ s.forwardRef(oo);
34
+ var co = { 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
35
  function Ca() {
36
36
  return Ca = Object.assign ? Object.assign.bind() : function(o) {
37
37
  for (var l = 1; l < arguments.length; l++) {
@@ -42,11 +42,11 @@ function Ca() {
42
42
  return o;
43
43
  }, Ca.apply(this, arguments);
44
44
  }
45
- const co = (o, l) => /* @__PURE__ */ s.createElement(ze, Ca({}, o, {
45
+ const lo = (o, l) => /* @__PURE__ */ s.createElement(ze, Ca({}, o, {
46
46
  ref: l,
47
- icon: to
48
- })), lo = /* @__PURE__ */ s.forwardRef(co);
49
- var io = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M320 224h-66v-56c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v56h-66c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8h66v56c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-56h66c4.4 0 8-3.6 8-8V232c0-4.4-3.6-8-8-8zm-60 508h-80V292h80v440zm644-436h-66v-96c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v96h-66c-4.4 0-8 3.6-8 8v416c0 4.4 3.6 8 8 8h66v96c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-96h66c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8zm-60 364h-80V364h80v296zM612 404h-66V232c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v172h-66c-4.4 0-8 3.6-8 8v200c0 4.4 3.6 8 8 8h66v172c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V620h66c4.4 0 8-3.6 8-8V412c0-4.4-3.6-8-8-8zm-60 145a3 3 0 01-3 3h-74a3 3 0 01-3-3v-74a3 3 0 013-3h74a3 3 0 013 3v74z" } }] }, name: "sliders", theme: "outlined" };
47
+ icon: co
48
+ })), io = /* @__PURE__ */ s.forwardRef(lo);
49
+ var ro = { 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
50
  function Sa() {
51
51
  return Sa = Object.assign ? Object.assign.bind() : function(o) {
52
52
  for (var l = 1; l < arguments.length; l++) {
@@ -57,11 +57,11 @@ function Sa() {
57
57
  return o;
58
58
  }, Sa.apply(this, arguments);
59
59
  }
60
- const ro = (o, l) => /* @__PURE__ */ s.createElement(ze, Sa({}, o, {
60
+ const uo = (o, l) => /* @__PURE__ */ s.createElement(ze, Sa({}, o, {
61
61
  ref: l,
62
- icon: io
63
- })), ws = /* @__PURE__ */ s.forwardRef(ro);
64
- var uo = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "unordered-list", theme: "outlined" };
62
+ icon: ro
63
+ })), ws = /* @__PURE__ */ s.forwardRef(uo);
64
+ var mo = { 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
65
  function Ra() {
66
66
  return Ra = Object.assign ? Object.assign.bind() : function(o) {
67
67
  for (var l = 1; l < arguments.length; l++) {
@@ -72,10 +72,10 @@ function Ra() {
72
72
  return o;
73
73
  }, Ra.apply(this, arguments);
74
74
  }
75
- const mo = (o, l) => /* @__PURE__ */ s.createElement(ze, Ra({}, o, {
75
+ const ho = (o, l) => /* @__PURE__ */ s.createElement(ze, Ra({}, o, {
76
76
  ref: l,
77
- icon: uo
78
- })), ho = /* @__PURE__ */ s.forwardRef(mo);
77
+ icon: mo
78
+ })), po = /* @__PURE__ */ s.forwardRef(ho);
79
79
  function ys(o) {
80
80
  return {
81
81
  category: null,
@@ -100,15 +100,15 @@ function gs(o) {
100
100
  const l = Math.floor(o / 60), r = String(Math.floor(o % 60)).padStart(2, "0");
101
101
  return `${l}:${r}`;
102
102
  }
103
- const xa = "__all__", ts = "__my__", _a = "__library_all__", po = "__library__:", xo = [
103
+ const xa = "__all__", ts = "__my__", _a = "__library_all__", xo = "__library__:", _o = [
104
104
  { key: "all", label: "全部场景" },
105
105
  { key: "my", label: "我的场景" },
106
106
  { key: "map", label: "使用地图" }
107
107
  ];
108
- function _o(o) {
108
+ function bo(o) {
109
109
  return o === "map" ? "搜索当前地图下的场景" : o === "my" ? "搜索我的场景" : "搜索全部场景";
110
110
  }
111
- function bo({
111
+ function fo({
112
112
  open: o,
113
113
  source: l,
114
114
  categories: r,
@@ -118,19 +118,19 @@ function bo({
118
118
  executing: p,
119
119
  loadingPlaybookId: b,
120
120
  onClose: $,
121
- onSourceChange: T,
122
- onCategoryChange: ae,
123
- onSearchChange: Q,
121
+ onSourceChange: F,
122
+ onCategoryChange: Y,
123
+ onSearchChange: q,
124
124
  onSelectScene: le
125
125
  }) {
126
- const [I, q] = s.useState(null), L = s.useMemo(
126
+ const [I, W] = s.useState(null), L = s.useMemo(
127
127
  () => I ? ys(I) : null,
128
128
  [I]
129
- ), R = s.useCallback((h, D) => {
130
- h.stopPropagation(), q(D);
129
+ ), R = s.useCallback((h, O) => {
130
+ h.stopPropagation(), W(O);
131
131
  }, []);
132
132
  return /* @__PURE__ */ e.jsxs(
133
- Zn,
133
+ Jn,
134
134
  {
135
135
  open: o,
136
136
  onClose: $,
@@ -153,12 +153,12 @@ function bo({
153
153
  {
154
154
  className: "wandox-console-chat__drawer-tabs",
155
155
  "aria-label": "场景来源",
156
- children: xo.map((h) => /* @__PURE__ */ e.jsx(
156
+ children: _o.map((h) => /* @__PURE__ */ e.jsx(
157
157
  "button",
158
158
  {
159
159
  type: "button",
160
160
  className: l === h.key ? "is-active" : "",
161
- onClick: () => T(h.key),
161
+ onClick: () => F(h.key),
162
162
  children: h.label
163
163
  },
164
164
  h.key
@@ -180,13 +180,13 @@ function bo({
180
180
  l !== "my" && /* @__PURE__ */ e.jsxs("aside", { className: "wandox-console-chat__drawer-cats", children: [
181
181
  /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__drawer-catslabel", children: "场景分类" }),
182
182
  r.map((h) => {
183
- const D = h.key === d;
183
+ const O = h.key === d;
184
184
  return /* @__PURE__ */ e.jsxs(
185
185
  "button",
186
186
  {
187
187
  type: "button",
188
- className: `wandox-console-chat__drawer-cat${D ? " wandox-console-chat__drawer-cat--active" : ""}`,
189
- onClick: () => ae(h.key),
188
+ className: `wandox-console-chat__drawer-cat${O ? " wandox-console-chat__drawer-cat--active" : ""}`,
189
+ onClick: () => Y(h.key),
190
190
  children: [
191
191
  /* @__PURE__ */ e.jsx("span", { className: "wandox-console-chat__drawer-cat-name", children: h.name }),
192
192
  /* @__PURE__ */ e.jsx("span", { className: "wandox-console-chat__drawer-cat-count", children: h.count })
@@ -202,13 +202,13 @@ function bo({
202
202
  {
203
203
  allowClear: !0,
204
204
  prefix: /* @__PURE__ */ e.jsx(ba, {}),
205
- placeholder: _o(l),
205
+ placeholder: bo(l),
206
206
  value: _,
207
- onChange: (h) => Q(h.target.value)
207
+ onChange: (h) => q(h.target.value)
208
208
  }
209
209
  ) }),
210
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;
211
+ const O = 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",
@@ -216,7 +216,7 @@ function bo({
216
216
  type: "button",
217
217
  className: "wandox-console-scene",
218
218
  disabled: p || !!b,
219
- "aria-busy": D,
219
+ "aria-busy": O,
220
220
  onClick: () => void le(h),
221
221
  children: /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-scene__body", children: [
222
222
  /* @__PURE__ */ e.jsx("strong", { title: h.title, children: h.title }),
@@ -228,7 +228,7 @@ function bo({
228
228
  children: h.desc
229
229
  }
230
230
  ),
231
- D && /* @__PURE__ */ e.jsx("span", { className: "wandox-console-scene__loading", children: "正在读取场景..." })
231
+ O && /* @__PURE__ */ e.jsx("span", { className: "wandox-console-scene__loading", children: "正在读取场景..." })
232
232
  ] })
233
233
  }
234
234
  ),
@@ -255,14 +255,14 @@ function bo({
255
255
  ds,
256
256
  {
257
257
  playbook: L,
258
- onClose: () => q(null)
258
+ onClose: () => W(null)
259
259
  }
260
260
  )
261
261
  ]
262
262
  }
263
263
  );
264
264
  }
265
- const fo = (o) => {
265
+ const wo = (o) => {
266
266
  const { onError: l } = o;
267
267
  l == null || l(new Error("该场景暂不支持文件上传"));
268
268
  };
@@ -275,35 +275,41 @@ function js({
275
275
  onChange: v,
276
276
  onUpload: p
277
277
  }) {
278
- const b = Bn(o.type), $ = p ?? ((T, ae) => fo);
279
- return /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-field", children: [
280
- /* @__PURE__ */ e.jsxs("label", { htmlFor: `wc-param-${o.name}`, children: [
281
- /* @__PURE__ */ e.jsx("span", { className: "wandox-console-field__label-text", children: o.label || o.name }),
282
- o.description || o.hint ? /* @__PURE__ */ e.jsx(us, { title: o.description || o.hint, children: /* @__PURE__ */ e.jsx(
283
- an,
284
- {
285
- "aria-label": `${o.label || o.name}说明`
286
- }
287
- ) }) : null,
288
- o.required && /* @__PURE__ */ e.jsx("span", { className: "wandox-console-field__required", children: "必填" }),
289
- b && /* @__PURE__ */ e.jsx("span", { className: "wandox-console-field__required", children: "多值" })
290
- ] }),
291
- /* @__PURE__ */ e.jsx(
292
- zn,
293
- {
294
- field: o,
295
- value: l,
296
- uploading: r,
297
- fileNameMap: d,
298
- getOptionState: _,
299
- onChange: v,
300
- onUpload: $,
301
- onDownloadTemplate: (T) => window.open(T.path, "_blank", "noopener,noreferrer")
302
- }
303
- )
304
- ] });
278
+ const b = Bn(o.type), $ = zn(o) === "file", F = p ?? ((Y, q) => wo);
279
+ return /* @__PURE__ */ e.jsxs(
280
+ "div",
281
+ {
282
+ className: `wandox-console-field${$ ? " wandox-console-field--file" : ""}`,
283
+ children: [
284
+ /* @__PURE__ */ e.jsxs("label", { htmlFor: `wc-param-${o.name}`, children: [
285
+ /* @__PURE__ */ e.jsx("span", { className: "wandox-console-field__label-text", children: o.label || o.name }),
286
+ o.description || o.hint ? /* @__PURE__ */ e.jsx(us, { title: o.description || o.hint, children: /* @__PURE__ */ e.jsx(
287
+ an,
288
+ {
289
+ "aria-label": `${o.label || o.name}说明`
290
+ }
291
+ ) }) : null,
292
+ o.required && /* @__PURE__ */ e.jsx("span", { className: "wandox-console-field__required", children: "必填" }),
293
+ b && /* @__PURE__ */ e.jsx("span", { className: "wandox-console-field__required", children: "多值" })
294
+ ] }),
295
+ /* @__PURE__ */ e.jsx(
296
+ qn,
297
+ {
298
+ field: o,
299
+ value: l,
300
+ uploading: r,
301
+ fileNameMap: d,
302
+ getOptionState: _,
303
+ onChange: v,
304
+ onUpload: F,
305
+ onDownloadTemplate: (Y) => window.open(Y.path, "_blank", "noopener,noreferrer")
306
+ }
307
+ )
308
+ ]
309
+ }
310
+ );
305
311
  }
306
- function wo(o) {
312
+ function yo(o) {
307
313
  const l = Array.isArray(o.actions) ? o.actions : [], r = o.ui_payload, d = Array.isArray(r == null ? void 0 : r.actions) ? r.actions : [];
308
314
  return [...l, ...d].map((v) => {
309
315
  const p = v ?? {};
@@ -328,12 +334,12 @@ function wo(o) {
328
334
  };
329
335
  });
330
336
  }
331
- function yo(o) {
337
+ function go(o) {
332
338
  if (Array.isArray(o)) return o;
333
339
  const l = o;
334
340
  return Array.isArray(l == null ? void 0 : l.user_playbooks) ? l.user_playbooks : [];
335
341
  }
336
- function go({
342
+ function jo({
337
343
  agentId: o,
338
344
  agentName: l,
339
345
  playbookId: r,
@@ -343,51 +349,51 @@ function go({
343
349
  useMapCards: p = [],
344
350
  useMapCategories: b = [],
345
351
  playbooks: $ = [],
346
- userPlaybooks: T = [],
347
- agents: ae = [],
348
- onChangeAgent: Q,
352
+ userPlaybooks: F = [],
353
+ agents: Y = [],
354
+ onChangeAgent: q,
349
355
  onBack: le,
350
356
  onSelectScene: I,
351
- onReady: q
357
+ onReady: W
352
358
  }) {
353
- const L = localStorage.getItem("sso_token") || "", R = localStorage.getItem("sso_domain") || "maiduo", h = localStorage.getItem("sso_company") || "", D = s.useRef(null), ie = s.useRef(!1), [F, E] = s.useState(!1), [W, oe] = s.useState(""), [te, H] = s.useState(""), [V, U] = s.useState("map"), [Y, re] = s.useState(xa), [A, B] = s.useState(null), ke = s.useRef(null), pe = s.useRef(null), [de, je] = s.useState(!1), [xe, Re] = s.useState([]), [$e, Ne] = s.useState("");
359
+ const L = localStorage.getItem("sso_token") || "", R = localStorage.getItem("sso_domain") || "maiduo", h = localStorage.getItem("sso_company") || "", O = s.useRef(null), ie = s.useRef(!1), [D, E] = s.useState(!1), [H, oe] = s.useState(""), [te, U] = s.useState(""), [V, K] = s.useState("map"), [Z, 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("");
354
360
  s.useEffect(() => {
355
- if (!A || F) return;
361
+ if (!A || D) return;
356
362
  const a = setTimeout(() => {
357
363
  var n;
358
364
  (n = ke.current) == null || n.focus();
359
365
  }, 120);
360
366
  return () => clearTimeout(a);
361
- }, [A, F]), s.useEffect(() => {
362
- if (!A || F) return;
367
+ }, [A, D]), s.useEffect(() => {
368
+ if (!A || D) return;
363
369
  const a = (n) => {
364
370
  const c = pe.current, i = n.target;
365
371
  !c || !(i instanceof Node) || c.contains(i) || i instanceof Element && i.closest(
366
372
  ".ant-select-dropdown, .ant-picker-dropdown, .ant-tooltip, .ant-dropdown, .ant-popover, .ant-modal-wrap, .ant-drawer-content-wrapper, .ant-message, .ant-notification"
367
- ) || (B(null), K([]), X({}));
373
+ ) || (B(null), G([]), ee({}));
368
374
  };
369
375
  return document.addEventListener("mousedown", a), () => document.removeEventListener("mousedown", a);
370
- }, [A, F]);
371
- const [Z, K] = s.useState([]), [G, X] = s.useState({}), ee = ms(
372
- Z,
373
- G,
374
- X
376
+ }, [A, D]);
377
+ const [J, G] = s.useState([]), [Q, ee] = s.useState({}), ae = ms(
378
+ J,
379
+ Q,
380
+ ee
375
381
  ), _e = s.useMemo(
376
- () => na(Z, G).filter(
377
- (a) => a.required && ja(G[a.name])
382
+ () => na(J, Q).filter(
383
+ (a) => a.required && ja(Q[a.name])
378
384
  ),
379
- [Z, G]
380
- ), [J, x] = s.useState("chat"), [f, ce] = s.useState([]), [w, Ce] = s.useState(null), [ue, Ie] = s.useState("results"), [oa, qe] = s.useState(!1), [be, Pe] = s.useState([]), [ta, We] = s.useState(!1), [Le, Ae] = s.useState([]), [se, t] = s.useState([]), [y, C] = s.useState({}), [k, g] = s.useState(!1), [O, ve] = s.useState(null), [z, P] = s.useState(void 0), [fe, Ee] = s.useState(!1), [me, He] = s.useState(!1);
385
+ [J, Q]
386
+ ), [X, 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), [T, ve] = s.useState(null), [z, P] = s.useState(void 0), [fe, Ee] = s.useState(!1), [me, He] = s.useState(!1);
381
387
  s.useEffect(() => {
382
- q == null || q({
388
+ W == null || W({
383
389
  showInspectionResults: (a) => {
384
390
  x("robot"), Ie("results"), Ce(a || null);
385
391
  }
386
392
  });
387
- }, [q]);
393
+ }, [W]);
388
394
  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(
389
395
  "map"
390
- ), [Cs, Oe] = s.useState(void 0), Ke = s.useRef(0), De = s.useRef(0), [Ge, Pa] = s.useState(
396
+ ), [Cs, Fe] = s.useState(void 0), Ke = s.useRef(0), Oe = s.useRef(0), [Ge, Pa] = s.useState(
391
397
  Xa
392
398
  ), [ia, La] = s.useState({}), [Qe, Ma] = s.useState(
393
399
  () => /* @__PURE__ */ new Set()
@@ -406,12 +412,12 @@ function go({
406
412
  view_count: a.view_count
407
413
  }),
408
414
  []
409
- ), Fe = s.useMemo(() => {
410
- const a = T.map(
415
+ ), De = s.useMemo(() => {
416
+ const a = F.map(
411
417
  (m) => ra(m, ts, "我的场景")
412
418
  ), n = /* @__PURE__ */ new Map();
413
419
  for (const m of $) {
414
- const N = m.category_name || m.category || m.type || "默认场景", j = `${po}${N}`, ge = n.get(j) || [];
420
+ const N = m.category_name || m.category || m.type || "默认场景", j = `${xo}${N}`, ge = n.get(j) || [];
415
421
  ge.push(ra(m, j, N)), n.set(j, ge);
416
422
  }
417
423
  const c = Array.from(n.values()).flat(), i = [
@@ -451,8 +457,8 @@ function go({
451
457
  ra,
452
458
  p,
453
459
  b,
454
- T
455
- ]), da = s.useMemo(() => V === "all" ? Fe.allCategories : V === "map" ? Fe.mapCategories : [], [Fe, V]), Ye = s.useMemo(
460
+ F
461
+ ]), da = s.useMemo(() => V === "all" ? De.allCategories : V === "map" ? De.mapCategories : [], [De, V]), Ye = s.useMemo(
456
462
  () => p.map(
457
463
  (a) => ({
458
464
  category: null,
@@ -479,12 +485,12 @@ function go({
479
485
  const a = /* @__PURE__ */ new Map();
480
486
  for (const n of [
481
487
  ...$,
482
- ...T,
488
+ ...F,
483
489
  ...Ye
484
490
  ])
485
491
  n.playbook_id && a.set(n.playbook_id, n);
486
492
  return Array.from(a.values());
487
- }, [$, T, Ye]), Rs = s.useMemo(() => {
493
+ }, [$, F, Ye]), Rs = s.useMemo(() => {
488
494
  const a = /* @__PURE__ */ new Map();
489
495
  for (const n of $) {
490
496
  const c = n.category_name || n.category || n.type || "默认场景", i = a.get(c) || [];
@@ -512,23 +518,23 @@ function go({
512
518
  }));
513
519
  }, [p, b, Ye]), Is = la === "map" ? $s : Rs, As = s.useMemo(() => {
514
520
  var c;
515
- const a = te.trim().toLowerCase(), n = V === "my" ? Fe.myCards : ((c = da.find((i) => i.key === Y)) == null ? void 0 : c.cards) || [];
521
+ const a = te.trim().toLowerCase(), n = V === "my" ? De.myCards : ((c = da.find((i) => i.key === Z)) == null ? void 0 : c.cards) || [];
516
522
  return a ? n.filter(
517
523
  (i) => i.title.toLowerCase().includes(a) || i.desc.toLowerCase().includes(a)
518
524
  ) : n;
519
525
  }, [
520
526
  da,
521
- Y,
522
- Fe.myCards,
527
+ Z,
528
+ De.myCards,
523
529
  V,
524
530
  te
525
531
  ]), Es = s.useCallback((a) => {
526
532
  const n = Array.isArray(a) ? a : [];
527
533
  vs(n), Se(n.length > 0);
528
534
  }, []), he = s.useMemo(
529
- () => ae.find((a) => a.id === o),
530
- [ae, o]
531
- ), { messageData: Ps, executing: M, stopping: Ls, actions: Ms } = qn({
535
+ () => Y.find((a) => a.id === o),
536
+ [Y, o]
537
+ ), { messageData: Ps, executing: M, stopping: Ls, actions: Ms } = Wn({
532
538
  activeAgent: o,
533
539
  ssoToken: L,
534
540
  ssoDomain: R,
@@ -537,12 +543,12 @@ function go({
537
543
  }), {
538
544
  sendMessage: Ze,
539
545
  executePlaybook: Ta,
540
- respondToProposal: Oa,
546
+ respondToProposal: Fa,
541
547
  stopCurrent: Ts,
542
- retrigger: Da
548
+ retrigger: Oa
543
549
  } = Ms, {
544
550
  messages: we,
545
- messagesTotal: Fa,
551
+ messagesTotal: Da,
546
552
  loading: Va,
547
553
  loadMessages: Ba,
548
554
  loadMoreMessages: za
@@ -616,7 +622,7 @@ function go({
616
622
  }, [o]), s.useEffect(() => {
617
623
  Je && Je !== Ue && ks(Je);
618
624
  }, [Je, Ue]), s.useEffect(() => {
619
- if (J !== "robot" || ue !== "history" || !w) {
625
+ if (X !== "robot" || ue !== "history" || !w) {
620
626
  Pe([]);
621
627
  return;
622
628
  }
@@ -650,7 +656,7 @@ function go({
650
656
  })(), () => {
651
657
  n = !0;
652
658
  };
653
- }, [J, ue, w, f]);
659
+ }, [X, ue, w, f]);
654
660
  const Wa = s.useCallback(async () => {
655
661
  try {
656
662
  const a = await tn({});
@@ -699,7 +705,7 @@ function go({
699
705
  timestamp: i.created_at || "",
700
706
  ui_payload: u,
701
707
  agent_name: i.agent_name || i.agent_id || "",
702
- actions: wo(i)
708
+ actions: yo(i)
703
709
  };
704
710
  }).sort(
705
711
  (i, u) => new Date(u.timestamp || 0).getTime() - new Date(i.timestamp || 0).getTime()
@@ -715,12 +721,12 @@ function go({
715
721
  s.useEffect(() => {
716
722
  Wa(), f.length > 0 && ea();
717
723
  }, [f, Wa, ea]), s.useEffect(() => {
718
- J === "robot" && ue === "results" && Ha();
719
- }, [J, ue, Ha]);
720
- const Os = (a) => {
724
+ X === "robot" && ue === "results" && Ha();
725
+ }, [X, ue, Ha]);
726
+ const Fs = (a) => {
721
727
  ve(a), P(y[a.agent_id]), g(!0);
722
- }, Ds = async () => {
723
- if (!O || !z) {
728
+ }, Os = async () => {
729
+ if (!T || !z) {
724
730
  S.warning("请选择通知渠道");
725
731
  return;
726
732
  }
@@ -728,7 +734,7 @@ function go({
728
734
  Ee(!0), await In(
729
735
  {},
730
736
  {
731
- agent_id: O.agent_id,
737
+ agent_id: T.agent_id,
732
738
  webhook_id: z
733
739
  }
734
740
  ), S.success("绑定成功"), g(!1), await ea();
@@ -737,11 +743,11 @@ function go({
737
743
  } finally {
738
744
  Ee(!1);
739
745
  }
740
- }, Fs = async () => {
741
- if (O)
746
+ }, Ds = async () => {
747
+ if (T)
742
748
  try {
743
749
  Ee(!0), await An(
744
- O.agent_id,
750
+ T.agent_id,
745
751
  {}
746
752
  ), S.success("解绑成功"), g(!1), P(void 0), await ea();
747
753
  } catch (a) {
@@ -778,13 +784,13 @@ function go({
778
784
  },
779
785
  [ne, Ze]
780
786
  ), Bs = s.useCallback((a) => {
781
- U(a), re(
787
+ K(a), re(
782
788
  a === "all" ? _a : a === "map" ? xa : ts
783
- ), H(""), B(null), K([]), X({});
789
+ ), U(""), B(null), G([]), ee({});
784
790
  }, []), zs = s.useCallback(() => {
785
- U("all"), re(_a), H(""), B(null), K([]), X({}), E(!0);
791
+ K("all"), re(_a), U(""), B(null), G([]), ee({}), E(!0);
786
792
  }, []), qs = s.useCallback(() => {
787
- E(!1), B(null), K([]), X({});
793
+ E(!1), B(null), G([]), ee({});
788
794
  }, []), ye = s.useCallback(
789
795
  (a, n = {}) => {
790
796
  B({
@@ -798,13 +804,13 @@ function go({
798
804
  input_fields: a.input_fields || []
799
805
  });
800
806
  const c = hs(a.input_fields || []);
801
- K(c), X(xs(c, n));
807
+ G(c), ee(xs(c, n));
802
808
  },
803
809
  []
804
810
  ), Ws = s.useCallback(
805
811
  async (a) => {
806
812
  var c;
807
- if (M || W) return;
813
+ if (M || H) return;
808
814
  const n = String(a.playbook_id || "").trim();
809
815
  if (!n) {
810
816
  S.error("场景缺少 playbook_id");
@@ -853,7 +859,7 @@ function go({
853
859
  ye,
854
860
  ma,
855
861
  I,
856
- W
862
+ H
857
863
  ]
858
864
  ), Ua = s.useCallback(
859
865
  async (a) => {
@@ -908,16 +914,16 @@ function go({
908
914
  ]
909
915
  ), Us = s.useCallback(async () => {
910
916
  if (!A || M) return;
911
- const n = na(Z, G).filter(
912
- (u) => u.required && ja(G[u.name])
917
+ const n = na(J, Q).filter(
918
+ (u) => u.required && ja(Q[u.name])
913
919
  );
914
920
  if (n.length > 0) {
915
921
  S.warning(`请先填写 ${n.length} 项必填参数`);
916
922
  return;
917
923
  }
918
924
  E(!1), Se(!1);
919
- const c = A, i = G;
920
- B(null), K([]), X({});
925
+ const c = A, i = Q;
926
+ B(null), G([]), ee({});
921
927
  try {
922
928
  const u = c.title || (_ == null ? void 0 : _.trim()) || "执行场景";
923
929
  await ne({
@@ -931,20 +937,20 @@ function go({
931
937
  }
932
938
  }, [
933
939
  A,
934
- Z,
935
- G,
940
+ J,
941
+ Q,
936
942
  M,
937
943
  ne,
938
944
  _,
939
945
  I
940
946
  ]), Ks = s.useCallback((a) => {
941
- De.current += 1, Oe({
947
+ Oe.current += 1, Fe({
942
948
  requestId: ++Ke.current,
943
949
  playbooks: a
944
950
  });
945
951
  }, []), Gs = s.useCallback(() => {
946
- const a = ++De.current;
947
- Oe({
952
+ const a = ++Oe.current;
953
+ Fe({
948
954
  requestId: ++Ke.current,
949
955
  playbooks: [],
950
956
  loading: !0
@@ -956,21 +962,21 @@ function go({
956
962
  const { data: n } = await dn({
957
963
  agent_id: o
958
964
  });
959
- if (a !== De.current) return;
960
- Oe({
965
+ if (a !== Oe.current) return;
966
+ Fe({
961
967
  requestId: ++Ke.current,
962
- playbooks: yo(n)
968
+ playbooks: go(n)
963
969
  });
964
970
  } catch {
965
- if (a !== De.current) return;
966
- S.error("我的场景加载失败"), Oe({
971
+ if (a !== Oe.current) return;
972
+ S.error("我的场景加载失败"), Fe({
967
973
  requestId: ++Ke.current,
968
974
  playbooks: []
969
975
  });
970
976
  }
971
977
  })();
972
978
  }, [o]), Qs = s.useCallback((a) => {
973
- Oe(
979
+ Fe(
974
980
  (n) => (n == null ? void 0 : n.requestId) === a ? void 0 : n
975
981
  );
976
982
  }, []), Ys = /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-chat__scene-quick", children: [
@@ -984,7 +990,7 @@ function go({
984
990
  { key: "map", label: "使用地图" }
985
991
  ],
986
992
  onClick: ({ key: a }) => {
987
- De.current += 1, Ns(a);
993
+ Oe.current += 1, Ns(a);
988
994
  }
989
995
  },
990
996
  trigger: ["click"],
@@ -1136,13 +1142,13 @@ function go({
1136
1142
  async (a) => {
1137
1143
  Se(!1);
1138
1144
  try {
1139
- await Da(a);
1145
+ await Oa(a);
1140
1146
  } catch (n) {
1141
1147
  const c = n instanceof Error ? n.message : "重新生成失败";
1142
1148
  S.error(c);
1143
1149
  }
1144
1150
  },
1145
- [Da]
1151
+ [Oa]
1146
1152
  ), Za = s.useCallback(() => {
1147
1153
  Se((a) => !a);
1148
1154
  }, []), Ja = s.useCallback(
@@ -1172,7 +1178,7 @@ function go({
1172
1178
  "aria-expanded": Te,
1173
1179
  onClick: Za,
1174
1180
  children: [
1175
- /* @__PURE__ */ e.jsx(ho, {}),
1181
+ /* @__PURE__ */ e.jsx(po, {}),
1176
1182
  /* @__PURE__ */ e.jsx("span", { className: "wandox-console-chat__toolbar-toggle-count", children: Me.length })
1177
1183
  ]
1178
1184
  }
@@ -1260,9 +1266,9 @@ function go({
1260
1266
  },
1261
1267
  a.initialParams ?? {}
1262
1268
  ),
1263
- onRespondToProposal: Oa,
1264
- containerRef: D,
1265
- messagesTotal: Fa,
1269
+ onRespondToProposal: Fa,
1270
+ containerRef: O,
1271
+ messagesTotal: Da,
1266
1272
  loadMoreMessages: za,
1267
1273
  loading: Va,
1268
1274
  initialLoadingContent: /* @__PURE__ */ e.jsx(yn, {}),
@@ -1275,7 +1281,7 @@ function go({
1275
1281
  gn,
1276
1282
  {
1277
1283
  messages: we,
1278
- scrollContainerRef: D,
1284
+ scrollContainerRef: O,
1279
1285
  mode: "deepseek"
1280
1286
  }
1281
1287
  )
@@ -1288,10 +1294,10 @@ function go({
1288
1294
  za,
1289
1295
  we,
1290
1296
  Va,
1291
- Fa,
1297
+ Da,
1292
1298
  ha,
1293
1299
  Ja,
1294
- Oa,
1300
+ Fa,
1295
1301
  h,
1296
1302
  R,
1297
1303
  L
@@ -1317,7 +1323,7 @@ function go({
1317
1323
  wa,
1318
1324
  {
1319
1325
  menu: {
1320
- items: ae.map((a) => ({
1326
+ items: Y.map((a) => ({
1321
1327
  key: a.id,
1322
1328
  disabled: a.id === o,
1323
1329
  label: /* @__PURE__ */ e.jsxs("span", { className: "wandox-console-agent-menu-item", children: [
@@ -1326,7 +1332,7 @@ function go({
1326
1332
  a.id === o && /* @__PURE__ */ e.jsx(jn, { className: "wandox-console-agent-menu-item__check" })
1327
1333
  ] })
1328
1334
  })),
1329
- onClick: ({ key: a }) => Q == null ? void 0 : Q(a)
1335
+ onClick: ({ key: a }) => q == null ? void 0 : q(a)
1330
1336
  },
1331
1337
  trigger: ["click"],
1332
1338
  placement: "bottomLeft",
@@ -1354,7 +1360,7 @@ function go({
1354
1360
  disabled: M,
1355
1361
  onClick: zs,
1356
1362
  children: [
1357
- /* @__PURE__ */ e.jsx(ao, {}),
1363
+ /* @__PURE__ */ e.jsx(so, {}),
1358
1364
  /* @__PURE__ */ e.jsx("span", { children: "全部场景" })
1359
1365
  ]
1360
1366
  }
@@ -1366,7 +1372,7 @@ function go({
1366
1372
  "button",
1367
1373
  {
1368
1374
  type: "button",
1369
- className: `wandox-console-chat__topbar-tab ${J === "chat" ? "active" : ""}`,
1375
+ className: `wandox-console-chat__topbar-tab ${X === "chat" ? "active" : ""}`,
1370
1376
  onClick: () => x("chat"),
1371
1377
  children: "智能体会话"
1372
1378
  }
@@ -1375,7 +1381,7 @@ function go({
1375
1381
  "button",
1376
1382
  {
1377
1383
  type: "button",
1378
- className: `wandox-console-chat__topbar-tab ${J === "robot" ? "active" : ""}`,
1384
+ className: `wandox-console-chat__topbar-tab ${X === "robot" ? "active" : ""}`,
1379
1385
  onClick: () => {
1380
1386
  x("robot"), Ce(null);
1381
1387
  },
@@ -1383,7 +1389,7 @@ function go({
1383
1389
  }
1384
1390
  )
1385
1391
  ] }),
1386
- J === "chat" ? Js : /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-chat__robot", children: [
1392
+ X === "chat" ? Js : /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-chat__robot", children: [
1387
1393
  /* @__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
1394
  f.length > 0 && /* @__PURE__ */ e.jsx(
1389
1395
  "button",
@@ -1415,7 +1421,7 @@ function go({
1415
1421
  {
1416
1422
  type: "button",
1417
1423
  className: `wandox-console-chat__robot-chip-bind ${n ? "bound" : ""}`,
1418
- onClick: () => Os(a),
1424
+ onClick: () => Fs(a),
1419
1425
  title: n ? "已绑定通知渠道,点击修改" : "绑定通知渠道",
1420
1426
  children: n ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1421
1427
  /* @__PURE__ */ e.jsx(
@@ -1581,7 +1587,7 @@ function go({
1581
1587
  /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-empty-desc", children: "在上方选择机器人以查看其执行记录" })
1582
1588
  ] }) })
1583
1589
  ] }),
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(
1590
+ X === "chat" && Ia.length > 0 && !(A && !D) && /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__recent", children: /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__recent-bar", children: Ia.map((a, n) => /* @__PURE__ */ e.jsx(
1585
1591
  "button",
1586
1592
  {
1587
1593
  type: "button",
@@ -1595,7 +1601,7 @@ function go({
1595
1601
  },
1596
1602
  `${a.playbook_id || a.name}-${n}`
1597
1603
  )) }) }),
1598
- J === "chat" && /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__input", children: A && !F ? /* @__PURE__ */ e.jsxs(
1604
+ X === "chat" && /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__input", children: A && !D ? /* @__PURE__ */ e.jsxs(
1599
1605
  "div",
1600
1606
  {
1601
1607
  ref: pe,
@@ -1612,7 +1618,7 @@ function go({
1612
1618
  type: "button",
1613
1619
  className: "wandox-console-changescene",
1614
1620
  onClick: () => {
1615
- B(null), K([]), X({});
1621
+ B(null), G([]), ee({});
1616
1622
  },
1617
1623
  children: "重新选择"
1618
1624
  }
@@ -1627,7 +1633,7 @@ function go({
1627
1633
  children: A.desc || A.title
1628
1634
  }
1629
1635
  ),
1630
- Z.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-paramarea", children: [
1636
+ J.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-paramarea", children: [
1631
1637
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-paramhead", children: [
1632
1638
  /* @__PURE__ */ e.jsx(ws, {}),
1633
1639
  /* @__PURE__ */ e.jsx("strong", { children: "确认分析范围" }),
@@ -1638,17 +1644,17 @@ function go({
1638
1644
  ] })
1639
1645
  ] }),
1640
1646
  /* @__PURE__ */ e.jsx("div", { className: "wandox-console-params", children: na(
1641
- Z,
1642
- G
1647
+ J,
1648
+ Q
1643
1649
  ).map((a) => /* @__PURE__ */ e.jsx(
1644
1650
  js,
1645
1651
  {
1646
1652
  field: a,
1647
- value: G[a.name],
1653
+ value: Q[a.name],
1648
1654
  uploading: !1,
1649
1655
  fileNameMap: {},
1650
- getOptionState: ee.getFieldState,
1651
- onChange: (n, c) => X((i) => ({
1656
+ getOptionState: ae.getFieldState,
1657
+ onChange: (n, c) => ee((i) => ({
1652
1658
  ...i,
1653
1659
  [n]: c
1654
1660
  }))
@@ -1697,20 +1703,20 @@ function go({
1697
1703
  }
1698
1704
  ) }),
1699
1705
  /* @__PURE__ */ e.jsx(
1700
- bo,
1706
+ fo,
1701
1707
  {
1702
- open: F,
1708
+ open: D,
1703
1709
  source: V,
1704
1710
  categories: da,
1705
- categoryKey: Y,
1711
+ categoryKey: Z,
1706
1712
  search: te,
1707
1713
  cards: As,
1708
1714
  executing: M,
1709
- loadingPlaybookId: W,
1715
+ loadingPlaybookId: H,
1710
1716
  onClose: qs,
1711
1717
  onSourceChange: Bs,
1712
1718
  onCategoryChange: re,
1713
- onSearchChange: H,
1719
+ onSearchChange: U,
1714
1720
  onSelectScene: Ws
1715
1721
  }
1716
1722
  ),
@@ -1747,13 +1753,13 @@ function go({
1747
1753
  width: 520,
1748
1754
  centered: !0,
1749
1755
  footer: [
1750
- y[(O == null ? void 0 : O.agent_id) || ""] ? /* @__PURE__ */ e.jsx(
1756
+ y[(T == null ? void 0 : T.agent_id) || ""] ? /* @__PURE__ */ e.jsx(
1751
1757
  sa,
1752
1758
  {
1753
1759
  danger: !0,
1754
1760
  loading: fe,
1755
1761
  style: { marginRight: "auto" },
1756
- onClick: Fs,
1762
+ onClick: Ds,
1757
1763
  children: "解除绑定"
1758
1764
  },
1759
1765
  "unbind"
@@ -1775,7 +1781,7 @@ function go({
1775
1781
  type: "primary",
1776
1782
  loading: fe,
1777
1783
  disabled: !z,
1778
- onClick: Ds,
1784
+ onClick: Os,
1779
1785
  children: "保存"
1780
1786
  },
1781
1787
  "ok"
@@ -1804,7 +1810,7 @@ function go({
1804
1810
  color: "#1a1a1a",
1805
1811
  fontWeight: 500
1806
1812
  },
1807
- children: O == null ? void 0 : O.name
1813
+ children: T == null ? void 0 : T.name
1808
1814
  }
1809
1815
  )
1810
1816
  ]
@@ -1836,7 +1842,7 @@ function go({
1836
1842
  })),
1837
1843
  popupRender: (a) => /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1838
1844
  a,
1839
- /* @__PURE__ */ e.jsx(Jn, { style: { margin: "8px 0" } }),
1845
+ /* @__PURE__ */ e.jsx(Xn, { style: { margin: "8px 0" } }),
1840
1846
  /* @__PURE__ */ e.jsx($n, { style: { padding: "0 8px 4px" }, children: /* @__PURE__ */ e.jsx(
1841
1847
  sa,
1842
1848
  {
@@ -1868,7 +1874,7 @@ function go({
1868
1874
  }
1869
1875
  ),
1870
1876
  /* @__PURE__ */ e.jsx(
1871
- Wn,
1877
+ Hn,
1872
1878
  {
1873
1879
  open: me,
1874
1880
  onClose: () => He(!1),
@@ -1880,8 +1886,8 @@ function go({
1880
1886
  ] })
1881
1887
  );
1882
1888
  }
1883
- const { TextArea: jo } = $a, Ve = 5;
1884
- function vo({
1889
+ const { TextArea: vo } = $a, Ve = 5;
1890
+ function ko({
1885
1891
  useMapCards: o,
1886
1892
  useMapCategories: l,
1887
1893
  playbooks: r = [],
@@ -1891,46 +1897,46 @@ function vo({
1891
1897
  useMapError: p,
1892
1898
  onRetry: b,
1893
1899
  onStartAnalysis: $,
1894
- agents: T,
1895
- selectedAgentId: ae,
1896
- onAgentSelect: Q,
1900
+ agents: F,
1901
+ selectedAgentId: Y,
1902
+ onAgentSelect: q,
1897
1903
  onOpenAgentChat: le
1898
1904
  }) {
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(
1905
+ const [I, W] = s.useState(""), [L, R] = s.useState(""), [h, O] = s.useState(null), ie = s.useRef(null), [D, E] = s.useState([]), [H, oe] = s.useState(!1), [te, U] = s.useState(""), V = s.useRef(0), [K, Z] = 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), J = Math.max(
1900
1906
  1,
1901
1907
  Math.ceil(l.length / Ve)
1902
- ), K = Math.min($e, Z - 1), G = l.length > Ve, X = s.useMemo(
1908
+ ), G = Math.min($e, J - 1), Q = l.length > Ve, ee = s.useMemo(
1903
1909
  () => l.slice(
1904
- K * Ve,
1905
- K * Ve + Ve
1910
+ G * Ve,
1911
+ G * Ve + Ve
1906
1912
  ),
1907
- [l, K]
1913
+ [l, G]
1908
1914
  );
1909
1915
  s.useEffect(() => {
1910
1916
  Ne(0);
1911
- }, [ae]);
1912
- const ee = s.useMemo(
1913
- () => o.length > 0 ? o : Hn(r),
1917
+ }, [Y]);
1918
+ const ae = s.useMemo(
1919
+ () => o.length > 0 ? o : Un(r),
1914
1920
  [o, r]
1915
- ), _e = s.useMemo(() => d ? ee.filter((t) => t.categoryKey === d) : ee, [ee, d]), J = s.useMemo(() => {
1921
+ ), _e = s.useMemo(() => d ? ae.filter((t) => t.categoryKey === d) : ae, [ae, d]), X = s.useMemo(() => {
1916
1922
  const t = L.trim().toLowerCase();
1917
1923
  return t ? _e.filter(
1918
1924
  (y) => y.title.toLowerCase().includes(t) || y.desc.toLowerCase().includes(t)
1919
1925
  ) : _e;
1920
- }, [_e, L]), x = v || p && ee.length === 0 || J.length > 0, [f, ce] = s.useState("");
1926
+ }, [_e, L]), x = v || p && ae.length === 0 || X.length > 0, [f, ce] = s.useState("");
1921
1927
  s.useEffect(() => {
1922
- V.current += 1, ce(""), q(""), E([]), Y({}), oe(!1), H("");
1928
+ V.current += 1, ce(""), W(""), E([]), Z({}), oe(!1), U("");
1923
1929
  }, [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]);
1930
+ f && !ae.some((t) => t.playbook_id === f) && (V.current += 1, ce(""), W(""), E([]), Z({}), oe(!1), U(""));
1931
+ }, [f, ae]);
1926
1932
  const w = s.useMemo(
1927
- () => ee.find((t) => t.playbook_id === f) ?? null,
1928
- [ee, f]
1933
+ () => ae.find((t) => t.playbook_id === f) ?? null,
1934
+ [ae, f]
1929
1935
  ), Ce = s.useMemo(
1930
1936
  () => h ? ys(h) : null,
1931
1937
  [h]
1932
1938
  ), ue = s.useCallback((t, y) => {
1933
- t.stopPropagation(), D(y);
1939
+ t.stopPropagation(), O(y);
1934
1940
  }, []);
1935
1941
  s.useEffect(() => {
1936
1942
  if (v || w) return;
@@ -1948,7 +1954,7 @@ function vo({
1948
1954
  return;
1949
1955
  }
1950
1956
  const C = ++V.current;
1951
- ce(y), E([]), Y({}), A({}), ke({}), oe(!0), H("");
1957
+ ce(y), E([]), Z({}), A({}), ke({}), oe(!0), U("");
1952
1958
  try {
1953
1959
  const { data: k } = await fa({
1954
1960
  playbook_id: y
@@ -1959,29 +1965,29 @@ function vo({
1959
1965
  const g = hs(
1960
1966
  Pn(k)
1961
1967
  );
1962
- E(g), Y(xs(g));
1968
+ E(g), Z(xs(g));
1963
1969
  } catch (k) {
1964
1970
  if (C !== V.current) return;
1965
1971
  const g = k instanceof Error ? k.message : "场景参数加载失败";
1966
- H(g), S.error("场景参数加载失败,请稍后重试");
1972
+ U(g), S.error("场景参数加载失败,请稍后重试");
1967
1973
  } finally {
1968
1974
  C === V.current && oe(!1);
1969
1975
  }
1970
1976
  }, []), oa = () => {
1971
- V.current += 1, ce(""), q(""), E([]), Y({}), oe(!1), H("");
1972
- }, qe = ms(F, U, Y), be = s.useMemo(
1973
- () => na(F, U),
1974
- [F, U]
1977
+ V.current += 1, ce(""), W(""), E([]), Z({}), oe(!1), U("");
1978
+ }, qe = ms(D, K, Z), be = s.useMemo(
1979
+ () => na(D, K),
1980
+ [D, K]
1975
1981
  ), Pe = s.useCallback((t, y) => {
1976
- Y((C) => ({ ...C, [t]: y }));
1982
+ Z((C) => ({ ...C, [t]: y }));
1977
1983
  }, []), ta = s.useCallback(
1978
1984
  (t, y) => async ({ file: C, onSuccess: k, onError: g }) => {
1979
- var O, ve;
1985
+ var T, ve;
1980
1986
  A((z) => ({ ...z, [t]: !0 }));
1981
1987
  try {
1982
- const z = C, P = await as(z), fe = (O = P == null ? void 0 : P.data) == null ? void 0 : O.url, Ee = ((ve = P == null ? void 0 : P.data) == null ? void 0 : ve.name) || z.name;
1988
+ const z = C, P = await as(z), fe = (T = P == null ? void 0 : P.data) == null ? void 0 : T.url, Ee = ((ve = P == null ? void 0 : P.data) == null ? void 0 : ve.name) || z.name;
1983
1989
  if (!fe) throw new Error("上传结果缺少文件地址");
1984
- ke((me) => ({ ...me, [fe]: Ee })), Y((me) => {
1990
+ ke((me) => ({ ...me, [fe]: Ee })), Z((me) => {
1985
1991
  if (y <= 1) return { ...me, [t]: fe };
1986
1992
  const He = Array.isArray(me[t]) ? me[t] : me[t] ? [me[t]] : [];
1987
1993
  return { ...me, [t]: [...He, fe] };
@@ -2003,11 +2009,11 @@ function vo({
2003
2009
  const C = await Promise.all(
2004
2010
  y.map(async (k) => {
2005
2011
  var z, P;
2006
- const g = await as(k), O = (z = g == null ? void 0 : g.data) == null ? void 0 : z.url, ve = ((P = g == null ? void 0 : g.data) == null ? void 0 : P.name) || k.name;
2007
- if (!O) throw new Error("上传结果缺少文件地址");
2012
+ const g = await as(k), T = (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;
2013
+ if (!T) throw new Error("上传结果缺少文件地址");
2008
2014
  return {
2009
2015
  type: k.type.startsWith("image/") ? "image" : "file",
2010
- url: O,
2016
+ url: T,
2011
2017
  name: ve,
2012
2018
  mime_type: k.type
2013
2019
  };
@@ -2026,12 +2032,12 @@ function vo({
2026
2032
  de((y) => y.filter((C) => C.url !== t));
2027
2033
  }, []), Ae = s.useMemo(
2028
2034
  () => be.filter(
2029
- (t) => t.required && ja(U[t.name])
2035
+ (t) => t.required && ja(K[t.name])
2030
2036
  ),
2031
- [be, U]
2037
+ [be, K]
2032
2038
  ), se = s.useMemo(
2033
- () => T.find((t) => t.id === ae) ?? T.find((t) => t.current) ?? T[0],
2034
- [T, ae]
2039
+ () => F.find((t) => t.id === Y) ?? F.find((t) => t.current) ?? F[0],
2040
+ [F, Y]
2035
2041
  );
2036
2042
  return /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-view", children: [
2037
2043
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-homecenter", children: [
@@ -2045,7 +2051,7 @@ function vo({
2045
2051
  wa,
2046
2052
  {
2047
2053
  menu: {
2048
- items: T.map((t) => ({
2054
+ items: F.map((t) => ({
2049
2055
  key: t.id,
2050
2056
  disabled: t.id === se.id,
2051
2057
  label: /* @__PURE__ */ e.jsxs("span", { className: "wandox-console-agent-menu-item", children: [
@@ -2054,7 +2060,7 @@ function vo({
2054
2060
  t.id === se.id && /* @__PURE__ */ e.jsx(ga, { className: "wandox-console-agent-menu-item__check" })
2055
2061
  ] })
2056
2062
  })),
2057
- onClick: ({ key: t }) => Q == null ? void 0 : Q(t)
2063
+ onClick: ({ key: t }) => q == null ? void 0 : q(t)
2058
2064
  },
2059
2065
  trigger: ["click"],
2060
2066
  placement: "bottomLeft",
@@ -2114,21 +2120,21 @@ function vo({
2114
2120
  )
2115
2121
  ] }),
2116
2122
  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,
2123
+ vo,
2118
2124
  {
2119
2125
  ref: ie,
2120
2126
  value: I,
2121
- onChange: (t) => q(t.target.value),
2127
+ onChange: (t) => W(t.target.value),
2122
2128
  autoSize: { minRows: 2 },
2123
2129
  variant: "borderless",
2124
2130
  placeholder: "直接描述你的问题,或选择一个场景开始"
2125
2131
  }
2126
2132
  ) }),
2127
- w && W && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-paramarea wandox-console-paramarea--state", children: [
2133
+ w && H && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-paramarea wandox-console-paramarea--state", children: [
2128
2134
  /* @__PURE__ */ e.jsx(Mn, {}),
2129
2135
  /* @__PURE__ */ e.jsx("span", { children: "正在读取场景参数..." })
2130
2136
  ] }),
2131
- w && !W && te && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-paramarea wandox-console-paramarea--state", children: [
2137
+ w && !H && te && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-paramarea wandox-console-paramarea--state", children: [
2132
2138
  /* @__PURE__ */ e.jsx("span", { children: "场景参数加载失败" }),
2133
2139
  /* @__PURE__ */ e.jsxs(
2134
2140
  "button",
@@ -2143,7 +2149,7 @@ function vo({
2143
2149
  }
2144
2150
  )
2145
2151
  ] }),
2146
- w && !W && !te && be.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-paramarea", children: [
2152
+ w && !H && !te && be.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-paramarea", children: [
2147
2153
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-paramhead", children: [
2148
2154
  /* @__PURE__ */ e.jsx(ws, {}),
2149
2155
  /* @__PURE__ */ e.jsx("strong", { children: "确认分析范围" }),
@@ -2157,7 +2163,7 @@ function vo({
2157
2163
  js,
2158
2164
  {
2159
2165
  field: t,
2160
- value: U[t.name],
2166
+ value: K[t.name],
2161
2167
  uploading: !!re[t.name],
2162
2168
  fileNameMap: B,
2163
2169
  getOptionState: qe.getFieldState,
@@ -2202,11 +2208,11 @@ function vo({
2202
2208
  {
2203
2209
  type: "button",
2204
2210
  className: "wandox-console-start",
2205
- disabled: W || !!te || Ae.length > 0,
2211
+ disabled: H || !!te || Ae.length > 0,
2206
2212
  onClick: () => {
2207
2213
  $ == null || $({
2208
2214
  playbookId: w.playbook_id,
2209
- playbookParams: U,
2215
+ playbookParams: K,
2210
2216
  message: w.title,
2211
2217
  attachments: pe
2212
2218
  });
@@ -2230,7 +2236,7 @@ function vo({
2230
2236
  });
2231
2237
  },
2232
2238
  "aria-label": "发送",
2233
- children: /* @__PURE__ */ e.jsx(On, {})
2239
+ children: /* @__PURE__ */ e.jsx(Fn, {})
2234
2240
  }
2235
2241
  ) })
2236
2242
  ]
@@ -2245,7 +2251,7 @@ function vo({
2245
2251
  alt: t.name,
2246
2252
  className: "wandox-console-attach-item__thumb"
2247
2253
  }
2248
- ) : /* @__PURE__ */ e.jsx(Dn, { className: "wandox-console-attach-item__icon" }),
2254
+ ) : /* @__PURE__ */ e.jsx(On, { className: "wandox-console-attach-item__icon" }),
2249
2255
  /* @__PURE__ */ e.jsx(
2250
2256
  "span",
2251
2257
  {
@@ -2266,15 +2272,15 @@ function vo({
2266
2272
  )
2267
2273
  ] }, t.url)) }),
2268
2274
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-scenehead", children: [
2269
- G && /* @__PURE__ */ e.jsx(
2275
+ Q && /* @__PURE__ */ e.jsx(
2270
2276
  "button",
2271
2277
  {
2272
2278
  type: "button",
2273
2279
  className: "wandox-console-chipnav",
2274
2280
  "aria-label": "上一页分类",
2275
- disabled: K === 0,
2281
+ disabled: G === 0,
2276
2282
  onClick: () => Ne((t) => Math.max(0, t - 1)),
2277
- children: /* @__PURE__ */ e.jsx(oo, {})
2283
+ children: /* @__PURE__ */ e.jsx(to, {})
2278
2284
  }
2279
2285
  ),
2280
2286
  /* @__PURE__ */ e.jsx(
@@ -2283,7 +2289,7 @@ function vo({
2283
2289
  className: "wandox-console-chips",
2284
2290
  role: "tablist",
2285
2291
  "aria-label": "场景分类",
2286
- children: X.map((t) => /* @__PURE__ */ e.jsx(
2292
+ children: ee.map((t) => /* @__PURE__ */ e.jsx(
2287
2293
  "button",
2288
2294
  {
2289
2295
  type: "button",
@@ -2297,15 +2303,15 @@ function vo({
2297
2303
  ))
2298
2304
  }
2299
2305
  ),
2300
- G && /* @__PURE__ */ e.jsx(
2306
+ Q && /* @__PURE__ */ e.jsx(
2301
2307
  "button",
2302
2308
  {
2303
2309
  type: "button",
2304
2310
  className: "wandox-console-chipnav",
2305
2311
  "aria-label": "下一页分类",
2306
- disabled: K === Z - 1,
2307
- onClick: () => Ne((t) => Math.min(Z - 1, t + 1)),
2308
- children: /* @__PURE__ */ e.jsx(lo, {})
2312
+ disabled: G === J - 1,
2313
+ onClick: () => Ne((t) => Math.min(J - 1, t + 1)),
2314
+ children: /* @__PURE__ */ e.jsx(io, {})
2309
2315
  }
2310
2316
  ),
2311
2317
  /* @__PURE__ */ e.jsx("div", { className: "wandox-console-scenesearch", children: /* @__PURE__ */ e.jsx(
@@ -2337,7 +2343,7 @@ function vo({
2337
2343
  /* @__PURE__ */ e.jsx("span", { children: "正在加载场景..." })
2338
2344
  ]
2339
2345
  }
2340
- ) : p && ee.length === 0 ? /* @__PURE__ */ e.jsxs(
2346
+ ) : p && ae.length === 0 ? /* @__PURE__ */ e.jsxs(
2341
2347
  "div",
2342
2348
  {
2343
2349
  className: "wandox-console-agents__error",
@@ -2350,11 +2356,11 @@ function vo({
2350
2356
  ] })
2351
2357
  ]
2352
2358
  }
2353
- ) : J.length === 0 ? /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-scene-section__empty", children: [
2359
+ ) : X.length === 0 ? /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-scene-section__empty", children: [
2354
2360
  /* @__PURE__ */ e.jsx(ba, {}),
2355
2361
  /* @__PURE__ */ e.jsx("span", { children: L ? "没有匹配的场景" : "当前分类暂无场景" })
2356
- ] }) : /* @__PURE__ */ e.jsx("div", { className: "wandox-console-scenes-wrap", children: /* @__PURE__ */ e.jsx("div", { className: "wandox-console-scenes", children: J.map((t) => {
2357
- const y = No(t), C = ko(t), k = Co(t.tags);
2362
+ ] }) : /* @__PURE__ */ e.jsx("div", { className: "wandox-console-scenes-wrap", children: /* @__PURE__ */ e.jsx("div", { className: "wandox-console-scenes", children: X.map((t) => {
2363
+ const y = Co(t), C = No(t), k = So(t.tags);
2358
2364
  return /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-scene-wrap", children: [
2359
2365
  /* @__PURE__ */ e.jsx(
2360
2366
  "button",
@@ -2383,14 +2389,14 @@ function vo({
2383
2389
  ),
2384
2390
  (C || k.length > 0) && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-scene__tags", children: [
2385
2391
  C && /* @__PURE__ */ e.jsx("span", { className: "wandox-console-scene__tag wandox-console-scene__tag--featured", children: "精品" }),
2386
- k.map((g, O) => /* @__PURE__ */ e.jsx(
2392
+ k.map((g, T) => /* @__PURE__ */ e.jsx(
2387
2393
  "span",
2388
2394
  {
2389
2395
  className: "wandox-console-scene__tag",
2390
- style: So(g),
2396
+ style: Ro(g),
2391
2397
  children: g.name
2392
2398
  },
2393
- `${g.name}-${O}`
2399
+ `${g.name}-${T}`
2394
2400
  ))
2395
2401
  ] })
2396
2402
  ] })
@@ -2420,23 +2426,23 @@ function vo({
2420
2426
  ds,
2421
2427
  {
2422
2428
  playbook: Ce,
2423
- onClose: () => D(null)
2429
+ onClose: () => O(null)
2424
2430
  }
2425
2431
  )
2426
2432
  ] });
2427
2433
  }
2428
- function ko(o) {
2434
+ function No(o) {
2429
2435
  return o.is_featured === !0 || o.badge === "featured";
2430
2436
  }
2431
- function No(o) {
2437
+ function Co(o) {
2432
2438
  return o.badge === "recommend" ? { text: "推荐", kind: "recommend" } : o.badge === "new" ? { text: "New", kind: "new" } : null;
2433
2439
  }
2434
- function Co(o) {
2440
+ function So(o) {
2435
2441
  return Array.isArray(o) ? o.filter(
2436
2442
  (l) => typeof (l == null ? void 0 : l.name) == "string" && l.name.trim() !== ""
2437
2443
  ) : [];
2438
2444
  }
2439
- function So(o) {
2445
+ function Ro(o) {
2440
2446
  if (!(o.variant !== "soft" || !o.color))
2441
2447
  return {
2442
2448
  color: o.color,
@@ -2450,19 +2456,19 @@ function cs(o, l) {
2450
2456
  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
2457
  return `rgba(${d}, ${_}, ${v}, ${l})`;
2452
2458
  }
2453
- const Ro = [
2459
+ const $o = [
2454
2460
  {
2455
2461
  id: "conversation",
2456
2462
  title: "智能体",
2457
2463
  desc: "与智能体自由对话或选择场景执行任务",
2458
- icon: /* @__PURE__ */ e.jsx(Un, {}),
2464
+ icon: /* @__PURE__ */ e.jsx(Kn, {}),
2459
2465
  accent: "#4f46e5"
2460
2466
  },
2461
2467
  {
2462
2468
  id: "automation",
2463
2469
  title: "自动化",
2464
2470
  desc: "管理与执行自动化流程、定时任务与驾驶舱",
2465
- icon: /* @__PURE__ */ e.jsx(Fn, {}),
2471
+ icon: /* @__PURE__ */ e.jsx(Dn, {}),
2466
2472
  accent: "#4f46e5"
2467
2473
  }
2468
2474
  ], Be = {
@@ -2471,7 +2477,7 @@ const Ro = [
2471
2477
  icon: /* @__PURE__ */ e.jsx(fs, {}),
2472
2478
  accent: "#e0730c"
2473
2479
  };
2474
- function $o({
2480
+ function Io({
2475
2481
  features: o,
2476
2482
  onOpenFeature: l,
2477
2483
  activeId: r
@@ -2512,7 +2518,7 @@ function $o({
2512
2518
  )
2513
2519
  ] });
2514
2520
  }
2515
- function Io({
2521
+ function Ao({
2516
2522
  className: o = "",
2517
2523
  state: l = "idle"
2518
2524
  }) {
@@ -2538,7 +2544,7 @@ function ls({ fading: o }) {
2538
2544
  /* @__PURE__ */ e.jsx("div", { className: "wandox-console-init__halo wandox-console-init__halo--b" }),
2539
2545
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-init__inner", children: [
2540
2546
  /* @__PURE__ */ e.jsx(
2541
- Io,
2547
+ Ao,
2542
2548
  {
2543
2549
  className: "wandox-console-init__companion",
2544
2550
  state: "thinking"
@@ -2593,7 +2599,7 @@ function is({
2593
2599
  }
2594
2600
  );
2595
2601
  }
2596
- function Lo({
2602
+ function Mo({
2597
2603
  agents: o,
2598
2604
  initialAgentId: l,
2599
2605
  initialPlaybookId: r,
@@ -2605,11 +2611,11 @@ function Lo({
2605
2611
  agentLoading: p,
2606
2612
  selectedAgentId: b,
2607
2613
  selectedAgent: $,
2608
- selectAgent: T,
2609
- ...ae
2610
- } = Kn({ presetAgents: o, initialAgentId: l }), [Q, le] = s.useState(null), I = s.useRef(null), q = s.useRef(!1), [L, R] = s.useState("home"), [h, D] = s.useState(
2614
+ selectAgent: F,
2615
+ ...Y
2616
+ } = Gn({ presetAgents: o, initialAgentId: l }), [q, le] = s.useState(null), I = s.useRef(null), W = s.useRef(!1), [L, R] = s.useState("home"), [h, O] = s.useState(
2611
2617
  null
2612
- ), [ie, F] = s.useState(!1), [E, W] = s.useState(null), [oe, te] = s.useState(""), H = $ == null ? void 0 : $.name, V = s.useCallback((x) => {
2618
+ ), [ie, D] = s.useState(!1), [E, H] = s.useState(null), [oe, te] = s.useState(""), U = $ == null ? void 0 : $.name, V = s.useCallback((x) => {
2613
2619
  if (I.current) {
2614
2620
  I.current.showInspectionResults(x);
2615
2621
  return;
@@ -2619,26 +2625,26 @@ function Lo({
2619
2625
  s.useEffect(() => {
2620
2626
  _ == null || _({ showInspectionResults: V });
2621
2627
  }, [V, _]), s.useEffect(() => {
2622
- !Q || I.current || !b || L === "chat" || (W({
2628
+ !q || I.current || !b || L === "chat" || (H({
2623
2629
  agentId: b,
2624
- agentName: H,
2630
+ agentName: U,
2625
2631
  playbookParams: {},
2626
2632
  message: ""
2627
2633
  }), R("chat"));
2628
- }, [L, Q, b, H]), s.useEffect(() => {
2634
+ }, [L, q, b, U]), s.useEffect(() => {
2629
2635
  te("");
2630
2636
  }, [b]);
2631
2637
  const {
2632
- playbooks: U,
2633
- userPlaybooks: Y,
2638
+ playbooks: K,
2639
+ userPlaybooks: Z,
2634
2640
  useMapCategories: re,
2635
2641
  useMapCards: A,
2636
2642
  sceneLoading: B,
2637
2643
  useMapError: ke,
2638
2644
  reload: pe
2639
- } = ae, de = s.useMemo(
2640
- () => re.length > 0 ? re : Gn(U),
2641
- [re, U]
2645
+ } = Y, de = s.useMemo(
2646
+ () => re.length > 0 ? re : Qn(K),
2647
+ [re, K]
2642
2648
  );
2643
2649
  s.useEffect(() => {
2644
2650
  if (de.length === 0) return;
@@ -2653,7 +2659,7 @@ function Lo({
2653
2659
  const x = v.find(
2654
2660
  (f) => f.id === b && os(f, l)
2655
2661
  );
2656
- x && (je.current = !0, W({
2662
+ x && (je.current = !0, H({
2657
2663
  agentId: b,
2658
2664
  agentName: x.name,
2659
2665
  playbookId: r,
@@ -2667,14 +2673,14 @@ function Lo({
2667
2673
  r,
2668
2674
  d,
2669
2675
  b,
2670
- H
2676
+ U
2671
2677
  ]), s.useEffect(() => {
2672
- if (q.current || !l || r || !b || B)
2678
+ if (W.current || !l || r || !b || B)
2673
2679
  return;
2674
2680
  const x = v.find(
2675
2681
  (f) => f.id === b && os(f, l)
2676
2682
  );
2677
- x && (q.current = !0, W({
2683
+ x && (W.current = !0, H({
2678
2684
  agentId: x.id,
2679
2685
  agentName: x.name,
2680
2686
  playbookParams: {},
@@ -2688,39 +2694,39 @@ function Lo({
2688
2694
  const ce = setTimeout(() => Re(!1), 280);
2689
2695
  return () => clearTimeout(ce);
2690
2696
  }, [p, v.length, b, B, xe]);
2691
- const Z = s.useCallback(() => {
2692
- R("home"), D(null), F(!1);
2693
- }, []), K = s.useCallback(
2697
+ const J = s.useCallback(() => {
2698
+ R("home"), O(null), D(!1);
2699
+ }, []), G = s.useCallback(
2694
2700
  (x) => {
2695
2701
  if (x === "conversation") {
2696
- Z();
2702
+ J();
2697
2703
  return;
2698
2704
  }
2699
- F(!1), D(x);
2705
+ D(!1), O(x);
2700
2706
  },
2701
- [Z]
2702
- ), G = (x) => {
2703
- T(x), R("home");
2704
- }, X = (x) => {
2707
+ [J]
2708
+ ), Q = (x) => {
2709
+ F(x), R("home");
2710
+ }, ee = (x) => {
2705
2711
  if (x === b) return;
2706
2712
  const f = v.find((ce) => ce.id === x);
2707
- T(x), W({
2713
+ F(x), H({
2708
2714
  agentId: x,
2709
2715
  agentName: f == null ? void 0 : f.name,
2710
2716
  playbookParams: {},
2711
2717
  message: ""
2712
2718
  });
2713
- }, ee = () => {
2714
- b && (W({
2719
+ }, ae = () => {
2720
+ b && (H({
2715
2721
  agentId: b,
2716
- agentName: H,
2722
+ agentName: U,
2717
2723
  playbookParams: {},
2718
2724
  message: ""
2719
2725
  }), R("chat"));
2720
2726
  }, _e = (x) => {
2721
- W({
2727
+ H({
2722
2728
  agentId: b,
2723
- agentName: H,
2729
+ agentName: U,
2724
2730
  playbookId: x.playbookId,
2725
2731
  playbookParams: x.playbookParams,
2726
2732
  message: x.message,
@@ -2729,7 +2735,7 @@ function Lo({
2729
2735
  };
2730
2736
  return L === "chat" && E ? /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-chat-shell", children: [
2731
2737
  /* @__PURE__ */ e.jsx(
2732
- go,
2738
+ jo,
2733
2739
  {
2734
2740
  agentId: E.agentId,
2735
2741
  agentName: E.agentName,
@@ -2739,13 +2745,13 @@ function Lo({
2739
2745
  initialAttachments: E.attachments,
2740
2746
  useMapCards: A,
2741
2747
  useMapCategories: re,
2742
- playbooks: U,
2743
- userPlaybooks: Y,
2748
+ playbooks: K,
2749
+ userPlaybooks: Z,
2744
2750
  agents: v,
2745
2751
  onReady: (x) => {
2746
- I.current = x, Q && (x.showInspectionResults(Q.robotName), le(null));
2752
+ I.current = x, q && (x.showInspectionResults(q.robotName), le(null));
2747
2753
  },
2748
- onChangeAgent: X,
2754
+ onChangeAgent: ee,
2749
2755
  onBack: () => {
2750
2756
  I.current = null, R("home");
2751
2757
  },
@@ -2762,11 +2768,11 @@ function Lo({
2762
2768
  children: [
2763
2769
  xe && /* @__PURE__ */ e.jsx(ls, { fading: $e }),
2764
2770
  !ie && /* @__PURE__ */ e.jsx(
2765
- $o,
2771
+ Io,
2766
2772
  {
2767
- features: Ro,
2773
+ features: $o,
2768
2774
  activeId: h ?? "conversation",
2769
- onOpenFeature: K
2775
+ onOpenFeature: G
2770
2776
  }
2771
2777
  ),
2772
2778
  /* @__PURE__ */ e.jsxs("main", { className: "wandox-console-main", children: [
@@ -2774,15 +2780,15 @@ function Lo({
2774
2780
  is,
2775
2781
  {
2776
2782
  title: "自动化",
2777
- onBack: () => D(null),
2783
+ onBack: () => O(null),
2778
2784
  hideHeader: !0,
2779
2785
  className: "wandox-console-featureview--automation",
2780
2786
  children: /* @__PURE__ */ e.jsx(
2781
- Qn,
2787
+ Yn,
2782
2788
  {
2783
- onCockpitEnter: () => F(!0),
2784
- onCockpitExit: () => F(!1),
2785
- onInboxEnter: () => F(!0)
2789
+ onCockpitEnter: () => D(!0),
2790
+ onCockpitExit: () => D(!1),
2791
+ onInboxEnter: () => D(!0)
2786
2792
  }
2787
2793
  )
2788
2794
  }
@@ -2791,17 +2797,17 @@ function Lo({
2791
2797
  is,
2792
2798
  {
2793
2799
  title: "通知配置",
2794
- onBack: () => D(null),
2800
+ onBack: () => O(null),
2795
2801
  hideHeader: !0,
2796
- children: /* @__PURE__ */ e.jsx(Yn, {})
2802
+ children: /* @__PURE__ */ e.jsx(Zn, {})
2797
2803
  }
2798
2804
  ),
2799
2805
  !h && /* @__PURE__ */ e.jsx(
2800
- vo,
2806
+ ko,
2801
2807
  {
2802
2808
  useMapCards: A,
2803
2809
  useMapCategories: de,
2804
- playbooks: U,
2810
+ playbooks: K,
2805
2811
  selectedCategoryKey: oe,
2806
2812
  onCategorySelect: te,
2807
2813
  loading: B,
@@ -2810,8 +2816,8 @@ function Lo({
2810
2816
  onStartAnalysis: _e,
2811
2817
  agents: v,
2812
2818
  selectedAgentId: b,
2813
- onAgentSelect: G,
2814
- onOpenAgentChat: ee
2819
+ onAgentSelect: Q,
2820
+ onOpenAgentChat: ae
2815
2821
  }
2816
2822
  )
2817
2823
  ] })
@@ -2820,5 +2826,5 @@ function Lo({
2820
2826
  );
2821
2827
  }
2822
2828
  export {
2823
- Lo as default
2829
+ Mo as default
2824
2830
  };