@wandox/sdk 0.1.35 → 0.1.37

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 (107) hide show
  1. package/dist/{V1Workbench-Duh15otc.js → V1Workbench-CqWNz8eg.js} +206 -206
  2. package/dist/{V1Workbench-OnGicnM-.cjs → V1Workbench-UL6m_GSU.cjs} +1 -1
  3. package/dist/V2Workbench-a7fIKHSI.js +2352 -0
  4. package/dist/V2Workbench-tUL0KmKo.cjs +2 -0
  5. package/dist/{WorkbenchRuntime-QRXyaZ5I.cjs → WorkbenchRuntime-BPjLWyHy.cjs} +5 -5
  6. package/dist/{WorkbenchRuntime-B2C8SbrZ.js → WorkbenchRuntime-kI4h_Boi.js} +149 -143
  7. package/dist/{arc-CfnbUnJa.cjs → arc-B5N4v9Jv.cjs} +1 -1
  8. package/dist/{arc-C3McnqVx.js → arc-BRgfV2vT.js} +1 -1
  9. package/dist/{architectureDiagram-3BPJPVTR-DKV9z5FO.js → architectureDiagram-3BPJPVTR-DUgD63Rt.js} +3 -3
  10. package/dist/{architectureDiagram-3BPJPVTR-EmeNsmhR.cjs → architectureDiagram-3BPJPVTR-DjM6oFEx.cjs} +1 -1
  11. package/dist/{blockDiagram-GPEHLZMM-CwMlZLrY.js → blockDiagram-GPEHLZMM-6EI7pONG.js} +3 -3
  12. package/dist/{blockDiagram-GPEHLZMM-B3PO97gR.cjs → blockDiagram-GPEHLZMM-Bbk0DebD.cjs} +1 -1
  13. package/dist/{c4Diagram-AAUBKEIU-DDvw0p9i.js → c4Diagram-AAUBKEIU-CPATCWpo.js} +2 -2
  14. package/dist/{c4Diagram-AAUBKEIU-CIJm8DIv.cjs → c4Diagram-AAUBKEIU-UW4tUuYO.cjs} +1 -1
  15. package/dist/{channel-BW_f3mZ1.js → channel-BOuHczM9.js} +1 -1
  16. package/dist/{channel-B6D2dt-a.cjs → channel-BPVKsQR4.cjs} +1 -1
  17. package/dist/{chunk-2J33WTMH-B9LmfIjP.js → chunk-2J33WTMH-BMA-WoY7.js} +1 -1
  18. package/dist/{chunk-2J33WTMH-CAtXTwyr.cjs → chunk-2J33WTMH-JkZNZ2FQ.cjs} +1 -1
  19. package/dist/{chunk-4BX2VUAB-C_E82st1.js → chunk-4BX2VUAB-CoubCo12.js} +1 -1
  20. package/dist/{chunk-4BX2VUAB-TTJvrk_8.cjs → chunk-4BX2VUAB-DJjQ2iym.cjs} +1 -1
  21. package/dist/{chunk-55IACEB6-CuKoQ8P-.js → chunk-55IACEB6-B8_bbLHJ.js} +1 -1
  22. package/dist/{chunk-55IACEB6-Co8MIdgs.cjs → chunk-55IACEB6-k8m2Tb0O.cjs} +1 -1
  23. package/dist/{chunk-727SXJPM-Cup_K8Hg.cjs → chunk-727SXJPM-Dk4Qx6Cj.cjs} +1 -1
  24. package/dist/{chunk-727SXJPM-Cs8uS9SJ.js → chunk-727SXJPM-w5uqNLUJ.js} +5 -5
  25. package/dist/{chunk-AQP2D5EJ-Ck3VZgwQ.js → chunk-AQP2D5EJ-BC_iX9X6.js} +3 -3
  26. package/dist/{chunk-AQP2D5EJ-BJ2GPeyZ.cjs → chunk-AQP2D5EJ-rJ3mY-t4.cjs} +1 -1
  27. package/dist/{chunk-FMBD7UC4-ClCmPgT2.cjs → chunk-FMBD7UC4-C_CgBQVs.cjs} +1 -1
  28. package/dist/{chunk-FMBD7UC4-_xpDdMNi.js → chunk-FMBD7UC4-DZlFTSR3.js} +1 -1
  29. package/dist/{chunk-ND2GUHAM-BahupltG.js → chunk-ND2GUHAM-SOVIggp_.js} +1 -1
  30. package/dist/{chunk-ND2GUHAM-5_kT1SOB.cjs → chunk-ND2GUHAM-rYKw1ewI.cjs} +1 -1
  31. package/dist/{chunk-QZHKN3VN-CdL_F3Vv.js → chunk-QZHKN3VN-BzYA6_MS.js} +1 -1
  32. package/dist/{chunk-QZHKN3VN-Ca5tmmHx.cjs → chunk-QZHKN3VN-D_n03X4c.cjs} +1 -1
  33. package/dist/{classDiagram-4FO5ZUOK-DZ87tNdh.cjs → classDiagram-4FO5ZUOK-Cus7V0-B.cjs} +1 -1
  34. package/dist/{classDiagram-4FO5ZUOK-CnMvmQcX.js → classDiagram-4FO5ZUOK-yY-LWEE5.js} +2 -2
  35. package/dist/{classDiagram-v2-Q7XG4LA2-DZ87tNdh.cjs → classDiagram-v2-Q7XG4LA2-Cus7V0-B.cjs} +1 -1
  36. package/dist/{classDiagram-v2-Q7XG4LA2-90g5yMq9.js → classDiagram-v2-Q7XG4LA2-D_2oVIAG.js} +2 -2
  37. package/dist/{cose-bilkent-S5V4N54A-D9USBZBY.cjs → cose-bilkent-S5V4N54A-C8A50UJc.cjs} +1 -1
  38. package/dist/{cose-bilkent-S5V4N54A-DOMJ8Dw0.js → cose-bilkent-S5V4N54A-DtK_d2nt.js} +6 -6
  39. package/dist/{dagre-BM42HDAG-BruKrkrz.js → dagre-BM42HDAG-B9o52kSq.js} +1 -1
  40. package/dist/{dagre-BM42HDAG-D9xkOYd1.cjs → dagre-BM42HDAG-CctSzO0L.cjs} +1 -1
  41. package/dist/{diagram-2AECGRRQ-B7fBRPEm.js → diagram-2AECGRRQ-DEOJdLIi.js} +2 -2
  42. package/dist/{diagram-2AECGRRQ-CHwHxLjN.cjs → diagram-2AECGRRQ-DeefcALf.cjs} +1 -1
  43. package/dist/{diagram-5GNKFQAL-B3sIjwSe.cjs → diagram-5GNKFQAL-C9cD2jn6.cjs} +1 -1
  44. package/dist/{diagram-5GNKFQAL-C68LRU93.js → diagram-5GNKFQAL-DyxjjnMI.js} +3 -3
  45. package/dist/{diagram-KO2AKTUF-Decii5jM.js → diagram-KO2AKTUF-4juRrpvB.js} +2 -2
  46. package/dist/{diagram-KO2AKTUF-CZkt3wwK.cjs → diagram-KO2AKTUF-Mo7XhFrv.cjs} +1 -1
  47. package/dist/{diagram-LMA3HP47-D7hixvGx.cjs → diagram-LMA3HP47-BFs_xRRv.cjs} +1 -1
  48. package/dist/{diagram-LMA3HP47-BRJpaLnd.js → diagram-LMA3HP47-CxL8EBEI.js} +2 -2
  49. package/dist/{diagram-OG6HWLK6-DwSOhl1j.js → diagram-OG6HWLK6-BX-585Ye.js} +3 -3
  50. package/dist/{diagram-OG6HWLK6-dSSwZ9rN.cjs → diagram-OG6HWLK6-CB1fsChK.cjs} +1 -1
  51. package/dist/{erDiagram-TEJ5UH35-ClUTkoiL.js → erDiagram-TEJ5UH35-DC0Ho0nI.js} +4 -4
  52. package/dist/{erDiagram-TEJ5UH35-CCZ0q594.cjs → erDiagram-TEJ5UH35-vPdDZRYq.cjs} +1 -1
  53. package/dist/{flowDiagram-I6XJVG4X-CfhSJE55.js → flowDiagram-I6XJVG4X-7BW5uO8c.js} +6 -6
  54. package/dist/{flowDiagram-I6XJVG4X-BN-jwNXL.cjs → flowDiagram-I6XJVG4X-BiRLUlz2.cjs} +1 -1
  55. package/dist/{ganttDiagram-6RSMTGT7-CF1liYk-.cjs → ganttDiagram-6RSMTGT7-BMrijLIp.cjs} +1 -1
  56. package/dist/{ganttDiagram-6RSMTGT7-Dq7VvM2M.js → ganttDiagram-6RSMTGT7-Bhohg83R.js} +3 -3
  57. package/dist/{gitGraphDiagram-PVQCEYII-P9t07gif.cjs → gitGraphDiagram-PVQCEYII-Bq_8mOSi.cjs} +1 -1
  58. package/dist/{gitGraphDiagram-PVQCEYII-odnoukk4.js → gitGraphDiagram-PVQCEYII-CwSJFsFx.js} +3 -3
  59. package/dist/{index-CLCe0Dgz.cjs → index-Bl0cgfIz.cjs} +1 -1
  60. package/dist/{index-BQMJ9VDu.cjs → index-BygO8jcH.cjs} +1 -1
  61. package/dist/{index-Cq6GT084.js → index-CQYJcpLn.js} +155 -155
  62. package/dist/{index-4FmQg3Zk.js → index-Dhd78ysx.js} +677 -673
  63. package/dist/{index-CFEgQrfn.js → index-RmIugmM4.js} +38 -38
  64. package/dist/{index-CQgUKSVP.cjs → index-dISfYziG.cjs} +182 -182
  65. package/dist/{infoDiagram-5YYISTIA-vIftEDKa.cjs → infoDiagram-5YYISTIA-B-PYR74F.cjs} +1 -1
  66. package/dist/{infoDiagram-5YYISTIA-CzWTUV3i.js → infoDiagram-5YYISTIA-BNytnCXI.js} +1 -1
  67. package/dist/{ishikawaDiagram-YF4QCWOH-DoFATknv.cjs → ishikawaDiagram-YF4QCWOH-4OKBUv_s.cjs} +1 -1
  68. package/dist/{ishikawaDiagram-YF4QCWOH-5oQSrlLN.js → ishikawaDiagram-YF4QCWOH-BG80wXBr.js} +1 -1
  69. package/dist/{journeyDiagram-JHISSGLW-BHsXT1p8.js → journeyDiagram-JHISSGLW-g82mk2Fe.js} +4 -4
  70. package/dist/{journeyDiagram-JHISSGLW-DUspfQIx.cjs → journeyDiagram-JHISSGLW-yt60VGMo.cjs} +1 -1
  71. package/dist/{kanban-definition-UN3LZRKU-BqKlDwWt.cjs → kanban-definition-UN3LZRKU-BFH_hAyY.cjs} +1 -1
  72. package/dist/{kanban-definition-UN3LZRKU-CbizhZ4A.js → kanban-definition-UN3LZRKU-BmK56MSs.js} +2 -2
  73. package/dist/{linear-O3WIbS9A.js → linear-BpsU0HcQ.js} +1 -1
  74. package/dist/{linear-BeJA81Is.cjs → linear-zILWiTVq.cjs} +1 -1
  75. package/dist/{mermaid.core-EIMF3BAo.cjs → mermaid.core-BvN-J_AM.cjs} +3 -3
  76. package/dist/{mermaid.core-C-YWP2jz.js → mermaid.core-NivSZeQG.js} +35 -35
  77. package/dist/{mindmap-definition-RKZ34NQL-yQ9g46ph.js → mindmap-definition-RKZ34NQL-BXoEIZmG.js} +3 -3
  78. package/dist/{mindmap-definition-RKZ34NQL-DcaDYCfJ.cjs → mindmap-definition-RKZ34NQL-C3LWrNPx.cjs} +1 -1
  79. package/dist/{pieDiagram-4H26LBE5-DDbOWta5.cjs → pieDiagram-4H26LBE5-CN01uXEU.cjs} +1 -1
  80. package/dist/{pieDiagram-4H26LBE5-BPAmrvlh.js → pieDiagram-4H26LBE5-y5XnB67r.js} +3 -3
  81. package/dist/{quadrantDiagram-W4KKPZXB-7EOeN28t.cjs → quadrantDiagram-W4KKPZXB-BdWRtxg8.cjs} +1 -1
  82. package/dist/{quadrantDiagram-W4KKPZXB-CBFKlxRx.js → quadrantDiagram-W4KKPZXB-DoHOsDDM.js} +2 -2
  83. package/dist/{requirementDiagram-4Y6WPE33-BAkakkMp.cjs → requirementDiagram-4Y6WPE33-B6ltwG99.cjs} +1 -1
  84. package/dist/{requirementDiagram-4Y6WPE33-BZk_3wFB.js → requirementDiagram-4Y6WPE33-BUqcv09v.js} +3 -3
  85. package/dist/{sankeyDiagram-5OEKKPKP-CrbL-5cr.js → sankeyDiagram-5OEKKPKP-D3yaTkog.js} +1 -1
  86. package/dist/{sankeyDiagram-5OEKKPKP-DYEggaLM.cjs → sankeyDiagram-5OEKKPKP-Dw_I3L5w.cjs} +1 -1
  87. package/dist/{sequenceDiagram-3UESZ5HK-B2Yk8NuE.js → sequenceDiagram-3UESZ5HK-Dlw7AYVR.js} +3 -3
  88. package/dist/{sequenceDiagram-3UESZ5HK-cky8-ajI.cjs → sequenceDiagram-3UESZ5HK-Dw-Oo3gQ.cjs} +1 -1
  89. package/dist/{stateDiagram-AJRCARHV-DKppy5jM.js → stateDiagram-AJRCARHV-G5aGpm4h.js} +2 -2
  90. package/dist/{stateDiagram-AJRCARHV-4peSgT8x.cjs → stateDiagram-AJRCARHV-RlkILcfR.cjs} +1 -1
  91. package/dist/{stateDiagram-v2-BHNVJYJU-CefiWaGq.cjs → stateDiagram-v2-BHNVJYJU-B5MqneJj.cjs} +1 -1
  92. package/dist/{stateDiagram-v2-BHNVJYJU-DsQP1CsR.js → stateDiagram-v2-BHNVJYJU-U7btkN-c.js} +2 -2
  93. package/dist/{timeline-definition-PNZ67QCA-CFJYzYQn.cjs → timeline-definition-PNZ67QCA-DZWO25QG.cjs} +1 -1
  94. package/dist/{timeline-definition-PNZ67QCA-snDcaYSq.js → timeline-definition-PNZ67QCA-I1bAZF32.js} +2 -2
  95. package/dist/{vennDiagram-CIIHVFJN-BniEMR4w.js → vennDiagram-CIIHVFJN-GqC6bKPW.js} +1 -1
  96. package/dist/{vennDiagram-CIIHVFJN-RPKP_Mb2.cjs → vennDiagram-CIIHVFJN-OMVDPAYS.cjs} +1 -1
  97. package/dist/wandox.cjs +1 -1
  98. package/dist/wandox.css +1 -1
  99. package/dist/wandox.js +3 -3
  100. package/dist/wandox.umd.js +625 -625
  101. package/dist/{wardleyDiagram-YWT4CUSO-msArC69-.cjs → wardleyDiagram-YWT4CUSO-BS6EQ76K.cjs} +1 -1
  102. package/dist/{wardleyDiagram-YWT4CUSO-DvDYViI5.js → wardleyDiagram-YWT4CUSO-B_ri0S8_.js} +2 -2
  103. package/dist/{xychartDiagram-2RQKCTM6-B4nZMXk5.cjs → xychartDiagram-2RQKCTM6-BIi1O5Px.cjs} +1 -1
  104. package/dist/{xychartDiagram-2RQKCTM6-CEcIgPon.js → xychartDiagram-2RQKCTM6-VaspgPkc.js} +2 -2
  105. package/package.json +1 -1
  106. package/dist/V2Workbench-ChqSBXHY.cjs +0 -2
  107. package/dist/V2Workbench-Cwx-XP5u.js +0 -2170
@@ -1,7 +1,7 @@
1
- import { ds as s, af as Qe, d9 as Xs, dZ as Js, aE as et, dF as he, c$ as e, N as ze, bK as ss, a$ as st, bB as tt, bA as _s, i as ve, e1 as ks, ai as qe, L as fs, aq as ls, F as at, bM as nt, cs as Ns, a6 as it, a4 as ot, P as lt, aO as Xe, A as dt, by as Ss, y as rt, aA as ct, b9 as ut, ba as Cs, bb as ht, cu as Is, ea as xt, J as mt, b0 as pt, aV as ft, bc as gt, o as wt, v as bt, n as Ps, b4 as yt, bz as xe, b3 as jt, T as vt, ab as _t, aG as gs, eb as kt, a9 as Nt, aH as St, aF as Ct, ck as It, d2 as Pe, d3 as Pt, cY as At, am as Et, a as Rt, ah as $t, G as Mt, l as Lt, aQ as Tt, ct as Dt, ad as Ot, aP as Bt } from "./index-4FmQg3Zk.js";
2
- import { l as zt, h as Wt, A as Vt, m as qt, a as Qt, Q as Ut, k as Ae, f as Ft, e as Gt, g as Kt, u as Zt, p as Ht, b as Yt, S as Xt } from "./WorkbenchRuntime-B2C8SbrZ.js";
3
- import { D as As } from "./index-Cq6GT084.js";
4
- import { Divider as Jt } from "./index-CFEgQrfn.js";
1
+ import { dt as s, af as Qe, da as Xs, d_ as Js, aE as et, dG as he, d0 as e, N as ze, bL as ss, b0 as st, bC as tt, bB as _s, i as ve, e2 as ks, ai as qe, L as fs, aq as ls, F as at, bN as nt, ct as Ns, a6 as it, a4 as ot, P as lt, aO as Xe, A as dt, bz as Ss, y as rt, aA as ct, ba as ut, bb as Cs, bc as ht, cv as Is, eb as xt, J as mt, b1 as pt, aW as ft, bd as gt, o as bt, v as wt, n as Ps, b5 as yt, bA as xe, b4 as jt, T as vt, ab as _t, aG as gs, ec as kt, a9 as Nt, aH as St, aF as Ct, cl as It, d3 as Pe, d4 as Pt, cZ as At, am as Et, a as Rt, ah as Lt, G as $t, l as Mt, aQ as Tt, cu as Dt, ad as Ot, aP as Bt } from "./index-Dhd78ysx.js";
2
+ import { l as zt, h as Wt, A as Vt, m as qt, a as Qt, Q as Ut, k as Ae, f as Ft, e as Gt, g as Kt, u as Zt, p as Ht, b as Yt, S as Xt } from "./WorkbenchRuntime-kI4h_Boi.js";
3
+ import { D as As } from "./index-CQYJcpLn.js";
4
+ import { Divider as Jt } from "./index-RmIugmM4.js";
5
5
  var ea = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "defs", attrs: {}, children: [{ tag: "style", attrs: {} }] }, { tag: "path", attrs: { d: "M952 474H829.8C812.5 327.6 696.4 211.5 550 194.2V72c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v122.2C327.6 211.5 211.5 327.6 194.2 474H72c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h122.2C211.5 696.4 327.6 812.5 474 829.8V952c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V829.8C696.4 812.5 812.5 696.4 829.8 550H952c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM512 756c-134.8 0-244-109.2-244-244s109.2-244 244-244 244 109.2 244 244-109.2 244-244 244z" } }, { tag: "path", attrs: { d: "M512 392c-32.1 0-62.1 12.4-84.8 35.2-22.7 22.7-35.2 52.7-35.2 84.8s12.5 62.1 35.2 84.8C449.9 619.4 480 632 512 632s62.1-12.5 84.8-35.2C619.4 574.1 632 544 632 512s-12.5-62.1-35.2-84.8A118.57 118.57 0 00512 392z" } }] }, name: "aim", theme: "outlined" };
6
6
  function ts() {
7
7
  return ts = Object.assign ? Object.assign.bind() : function(n) {
@@ -46,7 +46,7 @@ function ns() {
46
46
  const la = (n, a) => /* @__PURE__ */ s.createElement(Qe, ns({}, n, {
47
47
  ref: a,
48
48
  icon: oa
49
- })), ws = /* @__PURE__ */ s.forwardRef(la);
49
+ })), bs = /* @__PURE__ */ s.forwardRef(la);
50
50
  var da = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z" } }] }, name: "poweroff", theme: "outlined" };
51
51
  function is() {
52
52
  return is = Object.assign ? Object.assign.bind() : function(n) {
@@ -96,36 +96,36 @@ function pa({
96
96
  s.useEffect(() => {
97
97
  n && (r(Wt(f, (a == null ? void 0 : a.initial_params) ?? {})), N({}), y({}));
98
98
  }, [f, n, a == null ? void 0 : a.initial_params]);
99
- const w = s.useCallback((b, d) => {
100
- r((c) => ({ ...c, [b]: d }));
99
+ const b = s.useCallback((w, d) => {
100
+ r((c) => ({ ...c, [w]: d }));
101
101
  }, []), O = s.useCallback(
102
- (b, d) => async ({ file: c, onSuccess: I, onError: _ }) => {
103
- var M, P;
104
- N((Q) => ({ ...Q, [b]: !0 }));
102
+ (w, d) => async ({ file: c, onSuccess: I, onError: _ }) => {
103
+ var $, P;
104
+ N((Q) => ({ ...Q, [w]: !0 }));
105
105
  try {
106
- const Q = c, L = await et(Q), B = (M = L == null ? void 0 : L.data) == null ? void 0 : M.url, A = ((P = L == null ? void 0 : L.data) == null ? void 0 : P.name) || Q.name;
106
+ const Q = c, M = await et(Q), B = ($ = M == null ? void 0 : M.data) == null ? void 0 : $.url, A = ((P = M == null ? void 0 : M.data) == null ? void 0 : P.name) || Q.name;
107
107
  if (!B) throw new Error("上传结果缺少文件地址");
108
108
  y((E) => ({ ...E, [B]: A })), r((E) => {
109
- if (d <= 1) return { ...E, [b]: B };
110
- const U = Array.isArray(E[b]) ? E[b] : E[b] ? [E[b]] : [];
111
- return { ...E, [b]: [...U, B] };
112
- }), I == null || I(L), he.success("上传成功");
109
+ if (d <= 1) return { ...E, [w]: B };
110
+ const U = Array.isArray(E[w]) ? E[w] : E[w] ? [E[w]] : [];
111
+ return { ...E, [w]: [...U, B] };
112
+ }), I == null || I(M), he.success("上传成功");
113
113
  } catch (Q) {
114
- const L = Q instanceof Error ? Q : new Error(ma(Q));
115
- _ == null || _(L), he.error(L.message);
114
+ const M = Q instanceof Error ? Q : new Error(ma(Q));
115
+ _ == null || _(M), he.error(M.message);
116
116
  } finally {
117
- N((Q) => ({ ...Q, [b]: !1 }));
117
+ N((Q) => ({ ...Q, [w]: !1 }));
118
118
  }
119
119
  },
120
120
  []
121
121
  ), W = () => {
122
122
  if (!a) return;
123
- const b = j.filter(
123
+ const w = j.filter(
124
124
  (d) => d.required && qt(g[d.name])
125
125
  );
126
- if (b.length > 0) {
126
+ if (w.length > 0) {
127
127
  he.warning(
128
- `请填写必填参数:${b.map((d) => d.label).join("、")}`
128
+ `请填写必填参数:${w.map((d) => d.label).join("、")}`
129
129
  );
130
130
  return;
131
131
  }
@@ -157,29 +157,29 @@ function pa({
157
157
  ] })
158
158
  ] }),
159
159
  /* @__PURE__ */ e.jsxs(ze, { layout: "vertical", className: "wandox-playbook-params-drawer__form", children: [
160
- j.map((b) => /* @__PURE__ */ e.jsx(
160
+ j.map((w) => /* @__PURE__ */ e.jsx(
161
161
  ze.Item,
162
162
  {
163
- required: b.required,
163
+ required: w.required,
164
164
  label: /* @__PURE__ */ e.jsxs("span", { className: "wandox-playbook-params-drawer__label", children: [
165
- b.label,
166
- b.description || b.hint ? /* @__PURE__ */ e.jsx(ss, { title: b.description || b.hint, children: /* @__PURE__ */ e.jsx(st, { "aria-label": `${b.label}说明` }) }) : null
165
+ w.label,
166
+ w.description || w.hint ? /* @__PURE__ */ e.jsx(ss, { title: w.description || w.hint, children: /* @__PURE__ */ e.jsx(st, { "aria-label": `${w.label}说明` }) }) : null
167
167
  ] }),
168
168
  children: /* @__PURE__ */ e.jsx(
169
169
  Vt,
170
170
  {
171
- field: b,
172
- value: g[b.name],
173
- uploading: !!x[b.name],
171
+ field: w,
172
+ value: g[w.name],
173
+ uploading: !!x[w.name],
174
174
  fileNameMap: v,
175
175
  getOptionState: m.getFieldState,
176
- onChange: w,
176
+ onChange: b,
177
177
  onUpload: O,
178
178
  onDownloadTemplate: (d) => window.open(d.path, "_blank", "noopener,noreferrer")
179
179
  }
180
180
  )
181
181
  },
182
- b.name
182
+ w.name
183
183
  )),
184
184
  j.length === 0 ? /* @__PURE__ */ e.jsxs("div", { className: "wandox-playbook-params-drawer__empty", children: [
185
185
  /* @__PURE__ */ e.jsx(tt, { size: "small" }),
@@ -198,7 +198,7 @@ function fa({
198
198
  }) {
199
199
  const { t: f } = ks(), [g, r] = s.useState(""), [x, N] = s.useState(!1), [v, y] = s.useState(
200
200
  null
201
- ), [m, j] = s.useState(!1), w = n.filter(
201
+ ), [m, j] = s.useState(!1), b = n.filter(
202
202
  (d) => {
203
203
  var c;
204
204
  return d.name.toLowerCase().includes(g.toLowerCase()) || ((c = d.description) == null ? void 0 : c.toLowerCase().includes(g.toLowerCase()));
@@ -217,7 +217,7 @@ function fa({
217
217
  j(!1);
218
218
  }
219
219
  }
220
- }, b = () => {
220
+ }, w = () => {
221
221
  N(!1), y(null);
222
222
  };
223
223
  return /* @__PURE__ */ e.jsxs("div", { className: "wandox-solidified-list", children: [
@@ -231,13 +231,13 @@ function fa({
231
231
  enterButton: !1
232
232
  }
233
233
  ) }),
234
- /* @__PURE__ */ e.jsx("div", { className: "wandox-solidified-list-content", children: w.length === 0 ? /* @__PURE__ */ e.jsx(
234
+ /* @__PURE__ */ e.jsx("div", { className: "wandox-solidified-list-content", children: b.length === 0 ? /* @__PURE__ */ e.jsx(
235
235
  fs,
236
236
  {
237
237
  description: f(g ? "noData" : "solidified.empty"),
238
238
  image: fs.PRESENTED_IMAGE_SIMPLE
239
239
  }
240
- ) : /* @__PURE__ */ e.jsx("div", { className: "wandox-solidified-list-grid", children: w.map((d) => /* @__PURE__ */ e.jsxs(
240
+ ) : /* @__PURE__ */ e.jsx("div", { className: "wandox-solidified-list-grid", children: b.map((d) => /* @__PURE__ */ e.jsxs(
241
241
  "div",
242
242
  {
243
243
  className: `wandox-solidified-card ${l === d.playbook_id ? "active" : ""}`,
@@ -327,7 +327,7 @@ function fa({
327
327
  title: f("solidified.deleteConfirm"),
328
328
  open: x,
329
329
  onOk: W,
330
- onCancel: b,
330
+ onCancel: w,
331
331
  okText: f("confirm"),
332
332
  cancelText: f("cancel"),
333
333
  okButtonProps: { danger: !0, loading: m },
@@ -407,7 +407,7 @@ function ga({
407
407
  }
408
408
  ) });
409
409
  }
410
- function wa({
410
+ function ba({
411
411
  open: n,
412
412
  loading: a,
413
413
  playbooks: o,
@@ -440,7 +440,7 @@ function wa({
440
440
  }
441
441
  );
442
442
  }
443
- const ba = "https://ai.maiduox.com/#/aitools/operation/product";
443
+ const wa = "https://ai.maiduox.com/#/aitools/operation/product";
444
444
  function ya(n) {
445
445
  const {
446
446
  title: a,
@@ -457,9 +457,9 @@ function ya(n) {
457
457
  agentSwitcher: j
458
458
  } = n;
459
459
  n.onWidgetsUpdate, n.count, ks();
460
- const [w, O] = s.useState(!1), [W, b] = s.useState(!1), [d, c] = s.useState(null), [I, _] = s.useState(null), [M, P] = s.useState("results"), [Q, L] = s.useState(!1), [B, A] = s.useState([]), [E, U] = s.useState(
460
+ const [b, O] = s.useState(!1), [W, w] = s.useState(!1), [d, c] = s.useState(null), [I, _] = s.useState(null), [$, P] = s.useState("results"), [Q, M] = s.useState(!1), [B, A] = s.useState([]), [E, U] = s.useState(
461
461
  null
462
- ), [F, _e] = s.useState({}), [se, te] = s.useState([]), [be, J] = s.useState(!1), [Z, me] = s.useState(null), [X, ne] = s.useState(void 0), [V, de] = s.useState(!1), [re, ke] = s.useState(!1), G = s.useMemo(() => (v || []).map((t) => t.name), [v]), ce = s.useMemo(() => !x || x === "default" ? null : (N == null ? void 0 : N.find(
462
+ ), [F, _e] = s.useState({}), [se, te] = s.useState([]), [we, J] = s.useState(!1), [Z, me] = s.useState(null), [X, ne] = s.useState(void 0), [V, de] = s.useState(!1), [re, ke] = s.useState(!1), G = s.useMemo(() => (v || []).map((t) => t.name), [v]), ce = s.useMemo(() => !x || x === "default" ? null : (N == null ? void 0 : N.find(
463
463
  (u) => u.agent_id === x || u.agent_code === x
464
464
  )) || null, [x, N]), ae = s.useMemo(
465
465
  () => Ns(ce),
@@ -522,7 +522,7 @@ function ya(n) {
522
522
  me(t), ne(F[t.agent_id]), J(!0);
523
523
  }, ee = s.useCallback(async (t) => {
524
524
  if (t) {
525
- L(!0);
525
+ M(!0);
526
526
  try {
527
527
  const u = await lt({
528
528
  agent_id: t,
@@ -552,7 +552,7 @@ function ya(n) {
552
552
  } catch {
553
553
  A([]);
554
554
  } finally {
555
- L(!1);
555
+ M(!1);
556
556
  }
557
557
  }
558
558
  }, []), ie = (t) => {
@@ -577,8 +577,8 @@ function ya(n) {
577
577
  failed: "wandox-exec-status--failed"
578
578
  })[t] || "";
579
579
  s.useEffect(() => {
580
- M === "history" && pe && ee(pe);
581
- }, [M, pe, ee]);
580
+ $ === "history" && pe && ee(pe);
581
+ }, [$, pe, ee]);
582
582
  const R = async () => {
583
583
  if (!Z || !X) {
584
584
  he.warning("请选择 Webhook");
@@ -597,7 +597,7 @@ function ya(n) {
597
597
  } finally {
598
598
  de(!1);
599
599
  }
600
- }, $e = async () => {
600
+ }, Le = async () => {
601
601
  if (Z)
602
602
  try {
603
603
  de(!0), await rt(
@@ -609,10 +609,10 @@ function ya(n) {
609
609
  } finally {
610
610
  de(!1);
611
611
  }
612
- }, Me = (t) => {
613
- c(t), b(!0);
614
- }, Le = () => {
615
- b(!1), c(null);
612
+ }, $e = (t) => {
613
+ c(t), w(!0);
614
+ }, Me = () => {
615
+ w(!1), c(null);
616
616
  }, Te = (t) => {
617
617
  if (!t) return "";
618
618
  try {
@@ -666,7 +666,7 @@ ${C}`;
666
666
  {
667
667
  type: "button",
668
668
  className: "wandox-widget-view-detail-btn",
669
- onClick: () => Me(t),
669
+ onClick: () => $e(t),
670
670
  children: [
671
671
  /* @__PURE__ */ e.jsxs(
672
672
  "svg",
@@ -711,9 +711,9 @@ ${C}`;
711
711
  "button",
712
712
  {
713
713
  type: "button",
714
- className: `wandox-inspection-agent-btn ${w ? "wandox-inspection-agent-btn--expanded" : ""}`,
714
+ className: `wandox-inspection-agent-btn ${b ? "wandox-inspection-agent-btn--expanded" : ""}`,
715
715
  onClick: () => {
716
- w ? (O(!1), _(null)) : O(!0);
716
+ b ? (O(!1), _(null)) : O(!0);
717
717
  },
718
718
  children: [
719
719
  /* @__PURE__ */ e.jsxs("span", { className: "wandox-inspection-agent-icon", children: [
@@ -754,7 +754,7 @@ ${C}`;
754
754
  }
755
755
  ) })
756
756
  ] }),
757
- w && /* @__PURE__ */ e.jsxs("div", { className: "wandox-timeline-list", children: [
757
+ b && /* @__PURE__ */ e.jsxs("div", { className: "wandox-timeline-list", children: [
758
758
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-agent-filter-row wandox-agent-filter-row--with-close", children: [
759
759
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-agent-filter-chips", children: [
760
760
  v.length > 0 && /* @__PURE__ */ e.jsx(
@@ -844,7 +844,7 @@ ${C}`;
844
844
  /* @__PURE__ */ e.jsx(
845
845
  "a",
846
846
  {
847
- href: ba,
847
+ href: wa,
848
848
  target: "_blank",
849
849
  rel: "noreferrer",
850
850
  className: "wandox-negative-review-notice-link",
@@ -859,7 +859,7 @@ ${C}`;
859
859
  "button",
860
860
  {
861
861
  type: "button",
862
- className: `wandox-timeline-tab-btn ${M === "results" ? "active" : ""}`,
862
+ className: `wandox-timeline-tab-btn ${$ === "results" ? "active" : ""}`,
863
863
  onClick: () => P("results"),
864
864
  children: [
865
865
  "巡检结果",
@@ -871,13 +871,13 @@ ${C}`;
871
871
  "button",
872
872
  {
873
873
  type: "button",
874
- className: `wandox-timeline-tab-btn ${M === "history" ? "active" : ""}`,
874
+ className: `wandox-timeline-tab-btn ${$ === "history" ? "active" : ""}`,
875
875
  onClick: () => P("history"),
876
876
  children: "执行记录"
877
877
  }
878
878
  )
879
879
  ] }) }),
880
- M === "results" ? /* @__PURE__ */ e.jsx("div", { className: "wandox-timeline-list-content", children: z.length > 0 ? z.sort((t, u) => {
880
+ $ === "results" ? /* @__PURE__ */ e.jsx("div", { className: "wandox-timeline-list-content", children: z.length > 0 ? z.sort((t, u) => {
881
881
  const D = t.timestamp ? new Date(t.timestamp).getTime() : 0;
882
882
  return (u.timestamp ? new Date(u.timestamp).getTime() : 0) - D;
883
883
  }).map(
@@ -982,7 +982,7 @@ ${C}`;
982
982
  ssoToken: f,
983
983
  ssoDomain: l,
984
984
  ssoCompany: g,
985
- onClose: Le,
985
+ onClose: Me,
986
986
  onExecuteComplete: r
987
987
  }
988
988
  ),
@@ -1008,7 +1008,7 @@ ${C}`;
1008
1008
  ),
1009
1009
  /* @__PURE__ */ e.jsx("span", { children: "配置 Webhook 通知" })
1010
1010
  ] }),
1011
- open: be,
1011
+ open: we,
1012
1012
  onCancel: () => {
1013
1013
  J(!1), me(null), ne(void 0);
1014
1014
  },
@@ -1153,7 +1153,7 @@ ${C}`;
1153
1153
  "button",
1154
1154
  {
1155
1155
  type: "button",
1156
- onClick: $e,
1156
+ onClick: Le,
1157
1157
  disabled: V,
1158
1158
  style: {
1159
1159
  marginRight: "auto",
@@ -1265,9 +1265,9 @@ function ja({
1265
1265
  onToggleSidebarMode: m,
1266
1266
  onAgentSelect: j
1267
1267
  }) {
1268
- const w = localStorage.getItem("sso_domain") || "", O = [
1268
+ const b = localStorage.getItem("sso_domain") || "", O = [
1269
1269
  { key: "chat", icon: /* @__PURE__ */ e.jsx(Ft, {}), title: "对话" },
1270
- ...["maiduo", "eccang"].includes(w) ? [
1270
+ ...["maiduo", "eccang"].includes(b) ? [
1271
1271
  {
1272
1272
  key: "plan",
1273
1273
  icon: /* @__PURE__ */ e.jsx(ia, {}),
@@ -1279,8 +1279,8 @@ function ja({
1279
1279
  icon: /* @__PURE__ */ e.jsx(ht, {}),
1280
1280
  title: "专业智能体"
1281
1281
  }
1282
- ], b = [
1283
- ...w === "yunduo" ? [] : [
1282
+ ], w = [
1283
+ ...b === "yunduo" ? [] : [
1284
1284
  { key: "toolbox", icon: /* @__PURE__ */ e.jsx(xa, {}), label: "工具箱" },
1285
1285
  { key: "goals", icon: /* @__PURE__ */ e.jsx(ta, {}), label: "目标追踪" }
1286
1286
  ],
@@ -1367,9 +1367,9 @@ function ja({
1367
1367
  }
1368
1368
  ),
1369
1369
  I && (y || o) && /* @__PURE__ */ e.jsx("div", { className: "wandox-aside-agent-list", children: a.map((_) => {
1370
- const M = _.agent_id;
1371
- if (!M) return null;
1372
- const P = n === M && g === "professional";
1370
+ const $ = _.agent_id;
1371
+ if (!$) return null;
1372
+ const P = n === $ && g === "professional";
1373
1373
  return /* @__PURE__ */ e.jsx(
1374
1374
  ss,
1375
1375
  {
@@ -1381,7 +1381,7 @@ function ja({
1381
1381
  type: "button",
1382
1382
  className: `wandox-aside-agent-item${P ? " wandox-aside-agent-item--active" : ""}`,
1383
1383
  onClick: () => {
1384
- j == null || j(M), g !== "professional" && (r == null || r("professional"));
1384
+ j == null || j($), g !== "professional" && (r == null || r("professional"));
1385
1385
  },
1386
1386
  children: [
1387
1387
  /* @__PURE__ */ e.jsx("span", { className: "wandox-aside-agent-icon", children: Ae(_.icon) }),
@@ -1390,7 +1390,7 @@ function ja({
1390
1390
  }
1391
1391
  )
1392
1392
  },
1393
- M
1393
+ $
1394
1394
  );
1395
1395
  }) })
1396
1396
  ] }, d.key);
@@ -1398,7 +1398,7 @@ function ja({
1398
1398
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-aside-bottom", children: [
1399
1399
  /* @__PURE__ */ e.jsx("p", { className: "wandox-aside-group-label", children: "系统功能" }),
1400
1400
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-aside-nav-list wandox-aside-nav-list--bottom", children: [
1401
- b.map((d) => {
1401
+ w.map((d) => {
1402
1402
  const c = d.key !== "toolbox" && g === d.key;
1403
1403
  return /* @__PURE__ */ e.jsxs(
1404
1404
  "button",
@@ -1546,19 +1546,19 @@ function ka({
1546
1546
  if (n) {
1547
1547
  const m = {};
1548
1548
  for (const j of Object.keys(o)) {
1549
- const w = o[j];
1550
- (typeof w == "string" || typeof w == "number") && (m[j] = String(w));
1549
+ const b = o[j];
1550
+ (typeof b == "string" || typeof b == "number") && (m[j] = String(b));
1551
1551
  }
1552
1552
  r(m);
1553
1553
  }
1554
1554
  }, [n, o]);
1555
1555
  const x = (m, j) => {
1556
- r((w) => ({ ...w, [m]: j }));
1556
+ r((b) => ({ ...b, [m]: j }));
1557
1557
  }, N = (m) => {
1558
1558
  m.preventDefault();
1559
1559
  const j = { ...o };
1560
- for (const w of Object.keys(g))
1561
- j[w] = g[w];
1560
+ for (const b of Object.keys(g))
1561
+ j[b] = g[b];
1562
1562
  f(j);
1563
1563
  }, v = (m) => {
1564
1564
  m.target === m.currentTarget && l();
@@ -1571,7 +1571,7 @@ function ka({
1571
1571
  className: "wandox-form-input",
1572
1572
  placeholder: `请输入 ${m}`,
1573
1573
  value: g[m] || "",
1574
- onChange: (w) => x(m, w.target.value)
1574
+ onChange: (b) => x(m, b.target.value)
1575
1575
  }
1576
1576
  )
1577
1577
  ] }, m);
@@ -1623,7 +1623,7 @@ function ka({
1623
1623
  ] })
1624
1624
  ] }) }) : null;
1625
1625
  }
1626
- const bs = [
1626
+ const ws = [
1627
1627
  "要努力呀,为了想要的生活,为了人间的烟火气,为了今天的风和月。",
1628
1628
  "欣赏不来别人视若珍宝的,就该保持沉默。",
1629
1629
  "日子总是有意思的,了无生趣的是打不起精神的你。",
@@ -1912,7 +1912,7 @@ function Ra(n) {
1912
1912
  cards: Array.isArray(o.cards) ? o.cards : []
1913
1913
  })).filter((a) => a.cards.length > 0);
1914
1914
  }
1915
- function $a({
1915
+ function La({
1916
1916
  agentLoading: n,
1917
1917
  mainAgentForHub: a,
1918
1918
  mainAgentQuestions: o,
@@ -1926,36 +1926,36 @@ function $a({
1926
1926
  onHubChatSend: y,
1927
1927
  onHubInputFocus: m,
1928
1928
  onHubInputBlur: j,
1929
- messages: w,
1929
+ messages: b,
1930
1930
  executing: O,
1931
1931
  hubInlineChatInput: W,
1932
- setHubInlineChatInput: b,
1932
+ setHubInlineChatInput: w,
1933
1933
  onHubInlineSend: d,
1934
1934
  onEnterProfessional: c,
1935
1935
  playbooks: I,
1936
1936
  executePlaybook: _,
1937
- onRequestPlaybookParams: M,
1937
+ onRequestPlaybookParams: $,
1938
1938
  onAbort: P,
1939
1939
  onRespondToProposal: Q,
1940
- ssoToken: L,
1940
+ ssoToken: M,
1941
1941
  ssoDomain: B,
1942
1942
  ssoCompany: A
1943
1943
  }) {
1944
1944
  var D, C, ye, De, Ne;
1945
- const E = n && !a, U = localStorage.getItem("sso_username") || "", F = localStorage.getItem("sso_user_id") || "", _e = s.useRef(null), se = s.useRef(null), te = s.useMemo(() => [], []), [be, J] = s.useState(""), [Z, me] = s.useState([]), [X, ne] = s.useState(!1), [V, de] = s.useState("idle"), [re, ke] = s.useState(0), [G, ce] = s.useState(null), [ae, Ee] = s.useState(!1), S = l[0], z = (S == null ? void 0 : S.agent_code) || (S == null ? void 0 : S.agent_id) || "", pe = (D = S == null ? void 0 : S.questions) != null && D.length ? S.questions : o, Re = B !== "yunduo" && pe[N % Math.max(pe.length, 1)] || "今天仓库订单处理的怎么样了?", We = s.useMemo(
1946
- () => bs[Math.floor(Math.random() * bs.length)],
1945
+ const E = n && !a, U = localStorage.getItem("sso_username") || "", F = localStorage.getItem("sso_user_id") || "", _e = s.useRef(null), se = s.useRef(null), te = s.useMemo(() => [], []), [we, J] = s.useState(""), [Z, me] = s.useState([]), [X, ne] = s.useState(!1), [V, de] = s.useState("idle"), [re, ke] = s.useState(0), [G, ce] = s.useState(null), [ae, Ee] = s.useState(!1), S = l[0], z = (S == null ? void 0 : S.agent_code) || (S == null ? void 0 : S.agent_id) || "", pe = (D = S == null ? void 0 : S.questions) != null && D.length ? S.questions : o, Re = B !== "yunduo" && pe[N % Math.max(pe.length, 1)] || "今天仓库订单处理的怎么样了?", We = s.useMemo(
1946
+ () => ws[Math.floor(Math.random() * ws.length)],
1947
1947
  []
1948
1948
  ), fe = s.useMemo(
1949
1949
  () => ({
1950
- Authorization: `Bearer ${L}`,
1950
+ Authorization: `Bearer ${M}`,
1951
1951
  "X-Tenant-ID": A,
1952
1952
  "X-Domain": B,
1953
1953
  "Content-Type": "application/json"
1954
1954
  }),
1955
- [L, A, B]
1955
+ [M, A, B]
1956
1956
  ), ee = s.useCallback(
1957
1957
  async (i = !1) => {
1958
- if (!(!L || !B)) {
1958
+ if (!(!M || !B)) {
1959
1959
  ne(!0);
1960
1960
  try {
1961
1961
  const k = await fetch(
@@ -1975,15 +1975,15 @@ function $a({
1975
1975
  }
1976
1976
  }
1977
1977
  },
1978
- [fe, B, L]
1978
+ [fe, B, M]
1979
1979
  );
1980
1980
  s.useEffect(() => {
1981
1981
  ee();
1982
1982
  }, [ee]), s.useEffect(() => {
1983
- !be && z && J(z);
1984
- }, [z, be]);
1985
- const ie = Z, q = be || z || ((C = te[0]) == null ? void 0 : C.agent_id) || (a == null ? void 0 : a.agent_id), K = xt({
1986
- token: L,
1983
+ !we && z && J(z);
1984
+ }, [z, we]);
1985
+ const ie = Z, q = we || z || ((C = te[0]) == null ? void 0 : C.agent_id) || (a == null ? void 0 : a.agent_id), K = xt({
1986
+ token: M,
1987
1987
  domain: B,
1988
1988
  tenantId: A,
1989
1989
  agentId: q || "",
@@ -2002,7 +2002,7 @@ function $a({
2002
2002
  K.search,
2003
2003
  K.clear
2004
2004
  ]);
2005
- const R = ie.length > 0 && ie.every((i) => i.cards.length === 1), $e = te.slice(0, 3), Me = te.slice(3), Le = q === z ? S == null ? void 0 : S.name : (ye = te.find((i) => i.agent_id === q)) == null ? void 0 : ye.name, Te = q === z ? S != null && S.icon ? Ae(S.icon) : Ae("robot") : Je(
2005
+ const R = ie.length > 0 && ie.every((i) => i.cards.length === 1), Le = te.slice(0, 3), $e = te.slice(3), Me = q === z ? S == null ? void 0 : S.name : (ye = te.find((i) => i.agent_id === q)) == null ? void 0 : ye.name, Te = q === z ? S != null && S.icon ? Ae(S.icon) : Ae("robot") : Je(
2006
2006
  (De = te.find((i) => i.agent_id === q)) == null ? void 0 : De.icon
2007
2007
  ), ge = q === z ? S == null ? void 0 : S.description : (Ne = te.find((i) => i.agent_id === q)) == null ? void 0 : Ne.description, t = (i, k) => {
2008
2008
  if (i.bind_type === "agent" && i.bind_agent_code) {
@@ -2109,7 +2109,7 @@ function $a({
2109
2109
  className: "wandox-hub-v2-report",
2110
2110
  onClick: () => {
2111
2111
  const i = new URLSearchParams();
2112
- L && i.append("authorization", L), B && i.append("x-domain", B), A && i.append("x-tenant-id", A), F && i.append("user_id", F), U && i.append("username", U), window.open(
2112
+ M && i.append("authorization", M), B && i.append("x-domain", B), A && i.append("x-tenant-id", A), F && i.append("user_id", F), U && i.append("username", U), window.open(
2113
2113
  `https://ai.wandox.com/trend-report/trend-report-6.html${i.toString() ? `?${i.toString()}` : ""}`,
2114
2114
  "_blank"
2115
2115
  );
@@ -2144,7 +2144,7 @@ function $a({
2144
2144
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-hub-v2-agent-title", children: [
2145
2145
  /* @__PURE__ */ e.jsx("span", { className: "wandox-hub-v2-agent-mark", children: Te }),
2146
2146
  /* @__PURE__ */ e.jsxs("div", { children: [
2147
- /* @__PURE__ */ e.jsx("strong", { children: Le || (a == null ? void 0 : a.name) || "通用问答" }),
2147
+ /* @__PURE__ */ e.jsx("strong", { children: Me || (a == null ? void 0 : a.name) || "通用问答" }),
2148
2148
  /* @__PURE__ */ e.jsx("span", { children: ge || "问什么都行,系统会自动分流到对应的专业能力" })
2149
2149
  ] })
2150
2150
  ] }),
@@ -2167,7 +2167,7 @@ function $a({
2167
2167
  ]
2168
2168
  }
2169
2169
  ),
2170
- $e.map((i) => /* @__PURE__ */ e.jsxs(
2170
+ Le.map((i) => /* @__PURE__ */ e.jsxs(
2171
2171
  "button",
2172
2172
  {
2173
2173
  type: "button",
@@ -2181,11 +2181,11 @@ function $a({
2181
2181
  },
2182
2182
  i.agent_id
2183
2183
  )),
2184
- Me.length > 0 && /* @__PURE__ */ e.jsx(
2184
+ $e.length > 0 && /* @__PURE__ */ e.jsx(
2185
2185
  mt,
2186
2186
  {
2187
2187
  menu: {
2188
- items: Me.map((i) => ({
2188
+ items: $e.map((i) => ({
2189
2189
  key: i.agent_id,
2190
2190
  label: /* @__PURE__ */ e.jsxs("span", { className: "wandox-hub-v2-more-item", children: [
2191
2191
  /* @__PURE__ */ e.jsx("span", { className: "wandox-hub-v2-chip-icon", children: Je(i.icon) }),
@@ -2321,15 +2321,15 @@ function $a({
2321
2321
  ] }),
2322
2322
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-chat-section__body wandox-chat-section__body--hub", children: [
2323
2323
  /* @__PURE__ */ e.jsx(
2324
- wt,
2324
+ bt,
2325
2325
  {
2326
- messages: w,
2326
+ messages: b,
2327
2327
  executing: O,
2328
- ssoToken: L,
2328
+ ssoToken: M,
2329
2329
  ssoDomain: B,
2330
2330
  ssoCompany: A,
2331
2331
  onExecutePlaybook: (i) => _(i),
2332
- onFillPlaybookParams: (i) => M({
2332
+ onFillPlaybookParams: (i) => $({
2333
2333
  playbook_id: i.playbookId,
2334
2334
  name: i.playbookName,
2335
2335
  input_fields: i.inputFields,
@@ -2342,9 +2342,9 @@ function $a({
2342
2342
  }
2343
2343
  ),
2344
2344
  /* @__PURE__ */ e.jsx(
2345
- bt,
2345
+ wt,
2346
2346
  {
2347
- messages: w,
2347
+ messages: b,
2348
2348
  scrollContainerRef: se
2349
2349
  }
2350
2350
  )
@@ -2356,12 +2356,12 @@ function $a({
2356
2356
  onSend: d,
2357
2357
  playbooks: I,
2358
2358
  value: W,
2359
- onValueChange: b,
2359
+ onValueChange: w,
2360
2360
  placeholder: "继续提问…",
2361
- ssoToken: L,
2361
+ ssoToken: M,
2362
2362
  ssoDomain: B,
2363
2363
  ssoCompany: A,
2364
- onRequestPlaybookParams: M
2364
+ onRequestPlaybookParams: $
2365
2365
  }
2366
2366
  ) }),
2367
2367
  /* @__PURE__ */ e.jsx("div", { className: "wandox-hub-chat-footer", children: /* @__PURE__ */ e.jsx(
@@ -2575,7 +2575,7 @@ function $a({
2575
2575
  )
2576
2576
  ] }) });
2577
2577
  }
2578
- function Ma(n) {
2578
+ function $a(n) {
2579
2579
  const a = n.toLocaleDateString("zh-CN", {
2580
2580
  year: "numeric",
2581
2581
  month: "2-digit",
@@ -2590,7 +2590,7 @@ ${o}`;
2590
2590
  function es(n, a) {
2591
2591
  return n.activeAgent === a.activeAgent && n.webhookId === a.webhookId && n.ssoToken === a.ssoToken && n.ssoDomain === a.ssoDomain && n.ssoCompany === a.ssoCompany;
2592
2592
  }
2593
- function La(n) {
2593
+ function Ma(n) {
2594
2594
  const {
2595
2595
  activeAgent: a,
2596
2596
  webhookId: o = "",
@@ -2631,9 +2631,9 @@ function La(n) {
2631
2631
  });
2632
2632
  if (!es(N.current, y)) return;
2633
2633
  if (m != null && m.data && Array.isArray(m.data)) {
2634
- const j = m.data.map((w) => {
2635
- const O = Array.isArray(w.actions) ? w.actions || [] : [], W = w.ui_payload, b = W == null ? void 0 : W.actions, d = Array.isArray(b) ? b : [], I = [...O, ...d].map((M) => {
2636
- const P = M;
2634
+ const j = m.data.map((b) => {
2635
+ const O = Array.isArray(b.actions) ? b.actions || [] : [], W = b.ui_payload, w = W == null ? void 0 : W.actions, d = Array.isArray(w) ? w : [], I = [...O, ...d].map(($) => {
2636
+ const P = $;
2637
2637
  return {
2638
2638
  label: P.display_name || P.label || "执行",
2639
2639
  action_id: P.action_id,
@@ -2653,27 +2653,27 @@ function La(n) {
2653
2653
  batch_id: P.batch_id,
2654
2654
  outputs: P.outputs
2655
2655
  };
2656
- }), _ = w.outputs;
2656
+ }), _ = b.outputs;
2657
2657
  return {
2658
- type: w.widget_type || "daily_report",
2659
- priority: w.priority || "medium",
2660
- title: w.title || "每日战报",
2661
- summary: w.summary || "",
2662
- timestamp: w.created_at ? Ma(new Date(w.created_at || "")) : "",
2663
- data: w.card_data || {},
2658
+ type: b.widget_type || "daily_report",
2659
+ priority: b.priority || "medium",
2660
+ title: b.title || "每日战报",
2661
+ summary: b.summary || "",
2662
+ timestamp: b.created_at ? $a(new Date(b.created_at || "")) : "",
2663
+ data: b.card_data || {},
2664
2664
  actions: I,
2665
- id: w.inbox_id || "",
2666
- agent_id: w.agent_id || "",
2667
- read: !!w.is_read,
2665
+ id: b.inbox_id || "",
2666
+ agent_id: b.agent_id || "",
2667
+ read: !!b.is_read,
2668
2668
  ui_payload: _ || W || {}
2669
2669
  };
2670
2670
  });
2671
2671
  if (j.length > 0) {
2672
- const w = j.sort((O, W) => {
2673
- const b = O.timestamp ? new Date(O.timestamp.replace(/\n/g, " ")).getTime() : 0;
2674
- return (W.timestamp ? new Date(W.timestamp.replace(/\n/g, " ")).getTime() : 0) - b;
2672
+ const b = j.sort((O, W) => {
2673
+ const w = O.timestamp ? new Date(O.timestamp.replace(/\n/g, " ")).getTime() : 0;
2674
+ return (W.timestamp ? new Date(W.timestamp.replace(/\n/g, " ")).getTime() : 0) - w;
2675
2675
  });
2676
- x(w);
2676
+ x(b);
2677
2677
  } else
2678
2678
  x([]);
2679
2679
  } else
@@ -2692,9 +2692,9 @@ function La(n) {
2692
2692
  };
2693
2693
  }
2694
2694
  function Ta() {
2695
- const [n, a] = s.useState([]), [o, l] = s.useState(!1), [f, g] = s.useState(!1), [r, x] = s.useState(""), [N, v] = s.useState([]), [y, m] = s.useState(!1), [j, w] = s.useState(null), [O, W] = s.useState(!0), b = s.useRef(null), d = s.useCallback(async () => {
2696
- if (b.current)
2697
- return b.current;
2695
+ const [n, a] = s.useState([]), [o, l] = s.useState(!1), [f, g] = s.useState(!1), [r, x] = s.useState(""), [N, v] = s.useState([]), [y, m] = s.useState(!1), [j, b] = s.useState(null), [O, W] = s.useState(!0), w = s.useRef(null), d = s.useCallback(async () => {
2696
+ if (w.current)
2697
+ return w.current;
2698
2698
  const A = (async () => {
2699
2699
  l(!0);
2700
2700
  try {
@@ -2706,12 +2706,12 @@ function Ta() {
2706
2706
  } catch {
2707
2707
  return g(!1), !1;
2708
2708
  } finally {
2709
- l(!1), b.current = null;
2709
+ l(!1), w.current = null;
2710
2710
  }
2711
2711
  })();
2712
- return b.current = A, A;
2712
+ return w.current = A, A;
2713
2713
  }, []), c = s.useCallback(() => f ? Promise.resolve(!0) : d(), [d, f]), I = s.useCallback((A) => {
2714
- x(A), w({
2714
+ x(A), b({
2715
2715
  session_id: A,
2716
2716
  type: "dashboard_intent",
2717
2717
  intents: [],
@@ -2720,7 +2720,7 @@ function Ta() {
2720
2720
  m(!0);
2721
2721
  try {
2722
2722
  const F = await gs(A, { params: U });
2723
- F.success && F.data && (w(F.data), F.data.input_params && v(F.data.input_params));
2723
+ F.success && F.data && (b(F.data), F.data.input_params && v(F.data.input_params));
2724
2724
  } catch {
2725
2725
  } finally {
2726
2726
  m(!1);
@@ -2732,23 +2732,23 @@ function Ta() {
2732
2732
  m(!0);
2733
2733
  try {
2734
2734
  const U = await gs(r, { params: A });
2735
- U.success && U.data && w(U.data);
2735
+ U.success && U.data && b(U.data);
2736
2736
  } catch {
2737
2737
  } finally {
2738
2738
  m(!1);
2739
2739
  }
2740
2740
  })();
2741
- }, [r]), M = s.useCallback((A) => {
2742
- r === A && (x(""), w(null), v([])), d();
2741
+ }, [r]), $ = s.useCallback((A) => {
2742
+ r === A && (x(""), b(null), v([])), d();
2743
2743
  }, [r, d]), P = s.useCallback(() => {
2744
2744
  if (!r) return null;
2745
2745
  const A = n.find((E) => E.playbook_id === r);
2746
2746
  return (A == null ? void 0 : A.name) || null;
2747
2747
  }, [r, n]), Q = s.useCallback((A, E) => {
2748
- w(A), W(E !== void 0 ? E : !0);
2749
- }, []), L = s.useCallback(() => {
2748
+ b(A), W(E !== void 0 ? E : !0);
2749
+ }, []), M = s.useCallback(() => {
2750
2750
  }, []), B = s.useCallback(() => {
2751
- x(""), w(null), v([]);
2751
+ x(""), b(null), v([]);
2752
2752
  }, []);
2753
2753
  return {
2754
2754
  // 状态
@@ -2760,7 +2760,7 @@ function Ta() {
2760
2760
  solidifyInputParams: N,
2761
2761
  solidifyLoading: y,
2762
2762
  dashboardData: j,
2763
- setDashboardData: w,
2763
+ setDashboardData: b,
2764
2764
  dashboardShowSaveButton: O,
2765
2765
  setDashboardShowSaveButton: W,
2766
2766
  // 操作
@@ -2768,10 +2768,10 @@ function Ta() {
2768
2768
  ensureSolidifiedPlaybooksLoaded: c,
2769
2769
  handleSolidifiedPlaybookClick: I,
2770
2770
  handleSolidifyParamsSearch: _,
2771
- handleSolidifiedPlaybookDelete: M,
2771
+ handleSolidifiedPlaybookDelete: $,
2772
2772
  getCurrentSolidifiedPlaybookName: P,
2773
2773
  handleDashboardPreview: Q,
2774
- handleSolidifyComplete: L,
2774
+ handleSolidifyComplete: M,
2775
2775
  clearDashboard: B
2776
2776
  };
2777
2777
  }
@@ -2809,9 +2809,9 @@ function Qa(n = {}) {
2809
2809
  initialPlaybookId: N,
2810
2810
  initialPlaybookParams: v
2811
2811
  } = n, y = localStorage.getItem("sso_token") || "", m = localStorage.getItem("sso_domain") || "maiduo", j = localStorage.getItem("sso_company") || "", O = `${Is()}/api/v1/oss/upload2`, W = s.useCallback(async (h) => {
2812
- const { data: $ } = await Nt({ playbook_id: h });
2813
- return $;
2814
- }, []), b = s.useCallback((h) => St({
2812
+ const { data: L } = await Nt({ playbook_id: h });
2813
+ return L;
2814
+ }, []), w = s.useCallback((h) => St({
2815
2815
  session_id: h.session_id || "",
2816
2816
  name: h.name,
2817
2817
  description: h.description
@@ -2822,15 +2822,15 @@ function Qa(n = {}) {
2822
2822
  activeAgent: c,
2823
2823
  setActiveAgent: I,
2824
2824
  sourceAgents: _,
2825
- playbooks: M,
2825
+ playbooks: $,
2826
2826
  userPlaybooks: P,
2827
2827
  userPlaybooksLoading: Q,
2828
- childAgents: L,
2828
+ childAgents: M,
2829
2829
  agentLoading: B,
2830
2830
  sceneLoading: A,
2831
2831
  loadUserPlaybooks: E,
2832
2832
  playbooksLoaded: U
2833
- } = Zt({ presetAgents: f, initialAgentId: x }), F = B || A, [_e, se] = s.useState(() => !!x), [te, be] = s.useState(!1), [J, Z] = s.useState(!1), [me, X] = s.useState([]), [ne, V] = s.useState(0), de = s.useRef(!1), { executing: re, stopping: ke, executingRef: G, queueStatus: ce, messageData: ae, actions: Ee } = Ht({
2833
+ } = Zt({ presetAgents: f, initialAgentId: x }), F = B || A, [_e, se] = s.useState(() => !!x), [te, we] = s.useState(!1), [J, Z] = s.useState(!1), [me, X] = s.useState([]), [ne, V] = s.useState(0), de = s.useRef(!1), { executing: re, stopping: ke, executingRef: G, queueStatus: ce, messageData: ae, actions: Ee } = Ht({
2834
2834
  activeAgent: c,
2835
2835
  webhookId: g,
2836
2836
  ssoToken: y,
@@ -2841,7 +2841,7 @@ function Qa(n = {}) {
2841
2841
  s.useEffect(() => {
2842
2842
  de.current && !re && V((h) => h + 1), de.current = re;
2843
2843
  }, [re]);
2844
- const { widgets: ie, setWidgets: q, loadDailyReports: K } = La({
2844
+ const { widgets: ie, setWidgets: q, loadDailyReports: K } = Ma({
2845
2845
  activeAgent: c,
2846
2846
  webhookId: g,
2847
2847
  ssoToken: y,
@@ -2849,16 +2849,16 @@ function Qa(n = {}) {
2849
2849
  ssoCompany: j
2850
2850
  }), R = Ta();
2851
2851
  Da();
2852
- const [$e, Me] = s.useState(() => localStorage.getItem("wandox_sidebar_agent_mode") === "true"), Le = s.useCallback(() => {
2853
- Me((h) => {
2854
- const $ = !h;
2855
- return localStorage.setItem("wandox_sidebar_agent_mode", String($)), $;
2852
+ const [Le, $e] = s.useState(() => localStorage.getItem("wandox_sidebar_agent_mode") === "true"), Me = s.useCallback(() => {
2853
+ $e((h) => {
2854
+ const L = !h;
2855
+ return localStorage.setItem("wandox_sidebar_agent_mode", String(L)), L;
2856
2856
  });
2857
- }, []), [Te, ge] = s.useState(!1), [t, u] = s.useState(!1), [D, C] = s.useState(!1), [ye, De] = s.useState(!1), [Ne, i] = s.useState(null), [k, ue] = s.useState(!1), [T, Ue] = s.useState(null), [Se, je] = s.useState(""), [Ce, H] = s.useState(null), [oe, we] = s.useState("chat"), [Fe, Es] = s.useState(null), Rs = s.useCallback(() => {
2857
+ }, []), [Te, ge] = s.useState(!1), [t, u] = s.useState(!1), [D, C] = s.useState(!1), [ye, De] = s.useState(!1), [Ne, i] = s.useState(null), [k, ue] = s.useState(!1), [T, Ue] = s.useState(null), [Se, je] = s.useState(""), [Ce, H] = s.useState(null), [oe, be] = s.useState("chat"), [Fe, Es] = s.useState(null), Rs = s.useCallback(() => {
2858
2858
  ge(!0), u(!1);
2859
- }, []), $s = s.useCallback(() => {
2859
+ }, []), Ls = s.useCallback(() => {
2860
2860
  ge(!1), u(!1);
2861
- }, []), [ds, rs] = s.useState(""), [cs, us] = s.useState(0), [Ms, Ke] = s.useState(!1), [hs, xs] = s.useState(!1), [Ls, ms] = s.useState(!1), [Ts, Ds] = s.useState(""), Ge = s.useRef(null), Ve = s.useRef(!1), [Os, Bs] = s.useState(null), [zs, Ws] = s.useState(!1), Vs = F || ae.loading, qs = s.useCallback((h) => {
2861
+ }, []), [ds, rs] = s.useState(""), [cs, us] = s.useState(0), [$s, Ke] = s.useState(!1), [hs, xs] = s.useState(!1), [Ms, ms] = s.useState(!1), [Ts, Ds] = s.useState(""), Ge = s.useRef(null), Ve = s.useRef(!1), [Os, Bs] = s.useState(null), [zs, Ws] = s.useState(!1), Vs = F || ae.loading, qs = s.useCallback((h) => {
2862
2862
  i(() => h);
2863
2863
  }, []);
2864
2864
  s.useEffect(() => {
@@ -2868,7 +2868,7 @@ function Qa(n = {}) {
2868
2868
  }
2869
2869
  });
2870
2870
  }, [r]), s.useEffect(() => {
2871
- se(!!x), be(!1), Z(!1);
2871
+ se(!!x), we(!1), Z(!1);
2872
2872
  }, [x, N, v]), s.useEffect(() => {
2873
2873
  if (c)
2874
2874
  return X([]), () => {
@@ -2881,15 +2881,15 @@ function Qa(n = {}) {
2881
2881
  }
2882
2882
  if (!c) return;
2883
2883
  Ve.current || (ae.loadMessagesAndDailyReport(), K()), Ve.current = !1;
2884
- let h = 0, $ = null;
2885
- return $ = setInterval(async () => {
2884
+ let h = 0, L = null;
2885
+ return L = setInterval(async () => {
2886
2886
  try {
2887
2887
  await K(), h = 0;
2888
2888
  } catch {
2889
- h++, h >= Ba && $ && (clearInterval($), $ = null);
2889
+ h++, h >= Ba && L && (clearInterval(L), L = null);
2890
2890
  }
2891
2891
  }, Oa), () => {
2892
- $ && clearInterval($);
2892
+ L && clearInterval(L);
2893
2893
  };
2894
2894
  }, [oe, c, g, y, m, j]);
2895
2895
  const Y = _.find((h) => h.is_main) ?? _[0], Oe = (Y == null ? void 0 : Y.questions) || [];
@@ -2898,13 +2898,13 @@ function Qa(n = {}) {
2898
2898
  }, [Y == null ? void 0 : Y.agent_id]), s.useEffect(() => {
2899
2899
  if (Oe.length <= 1 || hs) return;
2900
2900
  let h;
2901
- const $ = setInterval(() => {
2901
+ const L = setInterval(() => {
2902
2902
  Ke(!0), h = setTimeout(() => {
2903
2903
  us((p) => (p + 1) % Oe.length), Ke(!1);
2904
2904
  }, 350);
2905
2905
  }, 3500);
2906
2906
  return () => {
2907
- clearInterval($), clearTimeout(h);
2907
+ clearInterval(L), clearTimeout(h);
2908
2908
  };
2909
2909
  }, [Oe.length, hs]), s.useEffect(() => {
2910
2910
  if (Ge.current && c && c !== "default") {
@@ -2916,59 +2916,59 @@ function Qa(n = {}) {
2916
2916
  !!It(_, x) || se(!1);
2917
2917
  }, [x, _e, c, _]), s.useEffect(() => {
2918
2918
  !x || N || te || !c || c === "default" || !_.find(
2919
- ($) => Pe($, c) && Pe($, x)
2920
- ) || (be(!0), we("professional"), R.clearDashboard(), se(!1));
2919
+ (L) => Pe(L, c) && Pe(L, x)
2920
+ ) || (we(!0), be("professional"), R.clearDashboard(), se(!1));
2921
2921
  }, [x, N, te, c, _, R]), s.useEffect(() => {
2922
2922
  var ps;
2923
2923
  if (!x || !N || J || !c || c === "default" || !U || !_.find(
2924
2924
  (Ie) => Pe(Ie, c) && Pe(Ie, x)
2925
2925
  )) return;
2926
- const $ = M.find((Ie) => Pt(Ie, N));
2927
- if (!$) {
2928
- we("professional"), he.error(`指定的场景(${N})不存在,已切换到智能体界面`), Z(!0), se(!1);
2926
+ const L = $.find((Ie) => Pt(Ie, N));
2927
+ if (!L) {
2928
+ be("professional"), he.error(`指定的场景(${N})不存在,已切换到智能体界面`), Z(!0), se(!1);
2929
2929
  return;
2930
2930
  }
2931
- Z(!0), we("professional"), Ve.current = !0, ee(), R.clearDashboard(), H(null), je("");
2932
- const p = v || {}, le = Object.keys(p).length > 0, He = ($.input_fields ?? []).filter((Ie) => {
2931
+ Z(!0), be("professional"), Ve.current = !0, ee(), R.clearDashboard(), H(null), je("");
2932
+ const p = v || {}, le = Object.keys(p).length > 0, He = (L.input_fields ?? []).filter((Ie) => {
2933
2933
  if (!Ie.required) return !1;
2934
2934
  const Ye = p[Ie.name];
2935
2935
  return Ye == null || Ye === "";
2936
2936
  });
2937
- if ((((ps = $.input_fields) == null ? void 0 : ps.length) ?? 0) > 0 && (!le || He.length > 0)) {
2938
- H($), se(!1);
2937
+ if ((((ps = L.input_fields) == null ? void 0 : ps.length) ?? 0) > 0 && (!le || He.length > 0)) {
2938
+ H(L), se(!1);
2939
2939
  return;
2940
2940
  }
2941
2941
  z({
2942
- message: $.name,
2942
+ message: L.name,
2943
2943
  playbook_id: N,
2944
2944
  playbook_params: p
2945
2945
  }), se(!1);
2946
- }, [x, N, J, c, U, _, M, v]);
2946
+ }, [x, N, J, c, U, _, $, v]);
2947
2947
  const Ze = s.useCallback((h) => {
2948
2948
  At(_, c, h) || (G.current && (fe(), he.info("已中止当前场景,切换智能体")), I(h), je(""), H(null), R.clearDashboard(), ee(), q([]));
2949
- }, [fe, c, _, ee, G, I, R, q]), Qs = (h, $) => {
2950
- const p = ($ ?? ds).trim() || Oe[cs % Oe.length] || "", le = h || (Y == null ? void 0 : Y.agent_id);
2949
+ }, [fe, c, _, ee, G, I, R, q]), Qs = (h, L) => {
2950
+ const p = (L ?? ds).trim() || Oe[cs % Oe.length] || "", le = h || (Y == null ? void 0 : Y.agent_id);
2951
2951
  !p || !le || (rs(""), ms(!0), ee(), c === le ? S(p) : (Ve.current = !0, Ge.current = p, I(le)));
2952
- }, Us = (h, $) => {
2953
- R.handleDashboardPreview(h, $), we("chat"), I("default");
2952
+ }, Us = (h, L) => {
2953
+ R.handleDashboardPreview(h, L), be("chat"), I("default");
2954
2954
  }, Fs = () => {
2955
- R.handleSolidifyComplete(), we("chat"), I("default");
2955
+ R.handleSolidifyComplete(), be("chat"), I("default");
2956
2956
  }, Gs = (h) => {
2957
- we(h), (h === "goals" || h === "settings" || h === "plan" || h === "chat") && R.clearDashboard();
2957
+ be(h), (h === "goals" || h === "settings" || h === "plan" || h === "chat") && R.clearDashboard();
2958
2958
  }, Ks = () => {
2959
2959
  u(!1), De(!0), R.ensureSolidifiedPlaybooksLoaded();
2960
2960
  }, Zs = (h) => {
2961
- De(!1), R.handleSolidifiedPlaybookClick(h), we("chat"), I("default"), je(""), H(null);
2961
+ De(!1), R.handleSolidifiedPlaybookClick(h), be("chat"), I("default"), je(""), H(null);
2962
2962
  }, Hs = () => {
2963
- var h, $;
2963
+ var h, L;
2964
2964
  if (R.dashboardData)
2965
2965
  return /* @__PURE__ */ e.jsx(
2966
- Mt,
2966
+ $t,
2967
2967
  {
2968
2968
  data: R.dashboardData,
2969
2969
  showSaveButton: R.dashboardShowSaveButton,
2970
2970
  onSaveSuccess: R.loadSolidifiedPlaybooks,
2971
- onSaveDashboard: b,
2971
+ onSaveDashboard: w,
2972
2972
  onPreviewDashboard: d,
2973
2973
  title: R.getCurrentSolidifiedPlaybookName() || void 0,
2974
2974
  customParamsForm: R.solidifyInputParams.length > 0 ? /* @__PURE__ */ e.jsx(
@@ -2999,21 +2999,21 @@ function Qa(n = {}) {
2999
2999
  initial_params: p.initialParams,
3000
3000
  playbook_type: p.playbookType
3001
3001
  };
3002
- H(le), we("professional");
3002
+ H(le), be("professional");
3003
3003
  }
3004
3004
  }, children: /* @__PURE__ */ e.jsx(
3005
- $a,
3005
+ La,
3006
3006
  {
3007
3007
  agentLoading: F,
3008
3008
  mainAgentForHub: Y,
3009
3009
  mainAgentQuestions: Oe,
3010
3010
  agents: _,
3011
- hubChatOpen: Ls,
3011
+ hubChatOpen: Ms,
3012
3012
  setHubChatOpen: ms,
3013
3013
  hubChatInput: ds,
3014
3014
  setHubChatInput: rs,
3015
3015
  hubScrollIdx: cs,
3016
- hubScrollFading: Ms,
3016
+ hubScrollFading: $s,
3017
3017
  onHubChatSend: Qs,
3018
3018
  onHubInputFocus: () => xs(!0),
3019
3019
  onHubInputBlur: () => xs(!1),
@@ -3025,9 +3025,9 @@ function Qa(n = {}) {
3025
3025
  Y != null && Y.agent_id && (c !== Y.agent_id && I(Y.agent_id), S(p, le, He));
3026
3026
  },
3027
3027
  onEnterProfessional: (p) => {
3028
- p && I(p), je(""), H(null), R.clearDashboard(), q([]), we("professional");
3028
+ p && I(p), je(""), H(null), R.clearDashboard(), q([]), be("professional");
3029
3029
  },
3030
- playbooks: M,
3030
+ playbooks: $,
3031
3031
  executePlaybook: z,
3032
3032
  onRequestPlaybookParams: H,
3033
3033
  clearMessages: ee,
@@ -3049,7 +3049,7 @@ function Qa(n = {}) {
3049
3049
  embedded: !0,
3050
3050
  onHeaderChange: Es,
3051
3051
  onCockpitEnter: Rs,
3052
- onCockpitExit: $s
3052
+ onCockpitExit: Ls
3053
3053
  }
3054
3054
  );
3055
3055
  case "professional":
@@ -3058,7 +3058,7 @@ function Qa(n = {}) {
3058
3058
  ya,
3059
3059
  {
3060
3060
  title: ((h = _.find((p) => Pe(p, c))) == null ? void 0 : h.name) || "Wandox智能体",
3061
- agentSwitcher: $e ? void 0 : /* @__PURE__ */ e.jsxs("div", { style: {
3061
+ agentSwitcher: Le ? void 0 : /* @__PURE__ */ e.jsxs("div", { style: {
3062
3062
  display: "inline-flex",
3063
3063
  alignItems: "center",
3064
3064
  height: 34,
@@ -3069,7 +3069,7 @@ function Qa(n = {}) {
3069
3069
  overflow: "hidden"
3070
3070
  }, children: [
3071
3071
  /* @__PURE__ */ e.jsxs("div", { style: { display: "flex", alignItems: "center", padding: "0 0 0 8px" }, children: [
3072
- /* @__PURE__ */ e.jsx("div", { style: { width: 22, height: 22, flexShrink: 0 }, children: Ae(($ = _.find((p) => Pe(p, c))) == null ? void 0 : $.icon) }),
3072
+ /* @__PURE__ */ e.jsx("div", { style: { width: 22, height: 22, flexShrink: 0 }, children: Ae((L = _.find((p) => Pe(p, c))) == null ? void 0 : L.icon) }),
3073
3073
  /* @__PURE__ */ e.jsx(
3074
3074
  Ss,
3075
3075
  {
@@ -3087,7 +3087,7 @@ function Qa(n = {}) {
3087
3087
  "button",
3088
3088
  {
3089
3089
  type: "button",
3090
- onClick: Le,
3090
+ onClick: Me,
3091
3091
  title: "切换为侧边栏选择",
3092
3092
  style: {
3093
3093
  display: "flex",
@@ -3109,7 +3109,7 @@ function Qa(n = {}) {
3109
3109
  onMouseLeave: (p) => {
3110
3110
  p.currentTarget.style.color = "#b0a0c8", p.currentTarget.style.background = "transparent";
3111
3111
  },
3112
- children: /* @__PURE__ */ e.jsx(ws, { style: { fontSize: 13 } })
3112
+ children: /* @__PURE__ */ e.jsx(bs, { style: { fontSize: 13 } })
3113
3113
  }
3114
3114
  )
3115
3115
  ] }),
@@ -3117,7 +3117,7 @@ function Qa(n = {}) {
3117
3117
  widgets: ie,
3118
3118
  activeAgent: c,
3119
3119
  agents: _,
3120
- childAgents: L,
3120
+ childAgents: M,
3121
3121
  ssoDomain: m,
3122
3122
  ssoToken: y,
3123
3123
  ssoCompany: j,
@@ -3130,10 +3130,10 @@ function Qa(n = {}) {
3130
3130
  }
3131
3131
  ),
3132
3132
  /* @__PURE__ */ e.jsx(
3133
- Lt,
3133
+ Mt,
3134
3134
  {
3135
3135
  messages: ae.messages,
3136
- playbooks: M,
3136
+ playbooks: $,
3137
3137
  messagesTotal: ae.messagesTotal,
3138
3138
  loadMoreMessages: ae.loadMoreMessages,
3139
3139
  loading: Vs,
@@ -3178,7 +3178,7 @@ function Qa(n = {}) {
3178
3178
  /* @__PURE__ */ e.jsx(
3179
3179
  Tt,
3180
3180
  {
3181
- playbooks: M,
3181
+ playbooks: $,
3182
3182
  playbookLoading: F,
3183
3183
  onPlaybookClick: z,
3184
3184
  onSelectPlaybook: (p) => {
@@ -3199,7 +3199,7 @@ function Qa(n = {}) {
3199
3199
  stopping: ke,
3200
3200
  onStop: Re,
3201
3201
  onSend: S,
3202
- playbooks: M,
3202
+ playbooks: $,
3203
3203
  recommendations: me,
3204
3204
  value: Se,
3205
3205
  onValueChange: je,
@@ -3243,8 +3243,8 @@ function Qa(n = {}) {
3243
3243
  onToolboxOpen: Ks,
3244
3244
  showLogout: o,
3245
3245
  onLogout: l,
3246
- sidebarAgentMode: $e,
3247
- onToggleSidebarMode: Le,
3246
+ sidebarAgentMode: Le,
3247
+ onToggleSidebarMode: Me,
3248
3248
  onAgentSelect: (h) => Ze(h)
3249
3249
  }
3250
3250
  ),
@@ -3256,7 +3256,7 @@ function Qa(n = {}) {
3256
3256
  onClick: () => ge(!1),
3257
3257
  "aria-label": "展开侧边栏",
3258
3258
  title: "展开侧边栏",
3259
- children: /* @__PURE__ */ e.jsx(ws, {})
3259
+ children: /* @__PURE__ */ e.jsx(bs, {})
3260
3260
  }
3261
3261
  ),
3262
3262
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-workspace", children: [
@@ -3293,7 +3293,7 @@ function Qa(n = {}) {
3293
3293
  /* @__PURE__ */ e.jsx("div", { className: `wandox-workspace-container${oe === "plan" ? " wandox-workspace-container--automation" : ""}`, children: Hs() })
3294
3294
  ] }),
3295
3295
  /* @__PURE__ */ e.jsx(
3296
- wa,
3296
+ ba,
3297
3297
  {
3298
3298
  open: ye,
3299
3299
  loading: R.solidifiedPlaybooksLoading,
@@ -3344,16 +3344,16 @@ function Qa(n = {}) {
3344
3344
  open: !!Ce,
3345
3345
  playbook: Ce,
3346
3346
  onClose: () => H(null),
3347
- onSubmit: (h, $) => {
3347
+ onSubmit: (h, L) => {
3348
3348
  H(null), z({
3349
3349
  message: h.name,
3350
3350
  playbook_id: h.playbook_id,
3351
- playbook_params: $
3351
+ playbook_params: L
3352
3352
  });
3353
3353
  }
3354
3354
  }
3355
3355
  ),
3356
- _e && /* @__PURE__ */ e.jsx($t, {}),
3356
+ _e && /* @__PURE__ */ e.jsx(Lt, {}),
3357
3357
  /* @__PURE__ */ e.jsx(_a, { queueStatus: ce })
3358
3358
  ] }) });
3359
3359
  }