@wandox/sdk 0.1.36 → 0.1.38

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 (109) hide show
  1. package/dist/{V1Workbench-BTDED9f0.js → V1Workbench-CX2TY1nY.js} +207 -208
  2. package/dist/{V1Workbench-dkHeo8tR.cjs → V1Workbench-D4MDOCK8.cjs} +3 -3
  3. package/dist/V2Workbench-3OIxKrwT.cjs +2 -0
  4. package/dist/V2Workbench-B9hpG29_.js +2674 -0
  5. package/dist/{WorkbenchRuntime-C-WMn1Qs.cjs → WorkbenchRuntime-CcgVGiw7.cjs} +5 -5
  6. package/dist/{WorkbenchRuntime-DwnSaeU0.js → WorkbenchRuntime-DFoqujXl.js} +151 -145
  7. package/dist/{arc-DnAFTAlx.cjs → arc-BoXgqEyE.cjs} +1 -1
  8. package/dist/{arc-lrZAmC97.js → arc-DRkZQWMH.js} +1 -1
  9. package/dist/{architectureDiagram-3BPJPVTR-qSATMtIu.js → architectureDiagram-3BPJPVTR-Cvjm2RUg.js} +3 -3
  10. package/dist/{architectureDiagram-3BPJPVTR-CPhTU6Eo.cjs → architectureDiagram-3BPJPVTR-JB1cjWXS.cjs} +1 -1
  11. package/dist/{blockDiagram-GPEHLZMM-XVMF04BT.cjs → blockDiagram-GPEHLZMM-BMrbXpB3.cjs} +1 -1
  12. package/dist/{blockDiagram-GPEHLZMM-CDwrkiVy.js → blockDiagram-GPEHLZMM-LAE7xfhz.js} +3 -3
  13. package/dist/{c4Diagram-AAUBKEIU-CGowpJup.js → c4Diagram-AAUBKEIU-CZcPU-n2.js} +2 -2
  14. package/dist/{c4Diagram-AAUBKEIU-DffwDzj1.cjs → c4Diagram-AAUBKEIU-T_tWuHKf.cjs} +1 -1
  15. package/dist/{channel-CY7r6qlF.js → channel-B8LPCyPH.js} +1 -1
  16. package/dist/{channel-BXFE-BpN.cjs → channel-BaiWA2t8.cjs} +1 -1
  17. package/dist/{chunk-2J33WTMH-D4rEqGzt.cjs → chunk-2J33WTMH-BibdqHFp.cjs} +1 -1
  18. package/dist/{chunk-2J33WTMH-DuCYldMe.js → chunk-2J33WTMH-C5be9lBd.js} +1 -1
  19. package/dist/{chunk-4BX2VUAB-BsCUMKlS.cjs → chunk-4BX2VUAB-D0KvmKPe.cjs} +1 -1
  20. package/dist/{chunk-4BX2VUAB-Cxp0_Qfx.js → chunk-4BX2VUAB-DMFsq4KZ.js} +1 -1
  21. package/dist/{chunk-55IACEB6-XDcbyyvP.cjs → chunk-55IACEB6-CqaRoYMg.cjs} +1 -1
  22. package/dist/{chunk-55IACEB6-BLJmAN4x.js → chunk-55IACEB6-DmSQDD1d.js} +1 -1
  23. package/dist/{chunk-727SXJPM-1bTbq9QM.cjs → chunk-727SXJPM-slxRZHEn.cjs} +1 -1
  24. package/dist/{chunk-727SXJPM-BjPhiU2p.js → chunk-727SXJPM-zPDeBLwO.js} +5 -5
  25. package/dist/{chunk-AQP2D5EJ-CGe-fbI_.js → chunk-AQP2D5EJ-CAbt8thT.js} +3 -3
  26. package/dist/{chunk-AQP2D5EJ-EH5FWOXH.cjs → chunk-AQP2D5EJ-DInpQ3Bk.cjs} +1 -1
  27. package/dist/{chunk-FMBD7UC4-BEhZw-9x.cjs → chunk-FMBD7UC4-7r_t9A1F.cjs} +1 -1
  28. package/dist/{chunk-FMBD7UC4-BrTtqwn9.js → chunk-FMBD7UC4-IX1Bs9Jl.js} +1 -1
  29. package/dist/{chunk-ND2GUHAM-C22ALL-1.js → chunk-ND2GUHAM-BDBw_eej.js} +1 -1
  30. package/dist/{chunk-ND2GUHAM-CTAo-Gfu.cjs → chunk-ND2GUHAM-BKWetS2i.cjs} +1 -1
  31. package/dist/{chunk-QZHKN3VN-R1cC06zp.cjs → chunk-QZHKN3VN-CaXwA0Ch.cjs} +1 -1
  32. package/dist/{chunk-QZHKN3VN-C_Ih-bcC.js → chunk-QZHKN3VN-DYLGrKqP.js} +1 -1
  33. package/dist/{classDiagram-4FO5ZUOK-C_wQW8PQ.js → classDiagram-4FO5ZUOK-BfPbGLow.js} +2 -2
  34. package/dist/{classDiagram-4FO5ZUOK-scM2IOJa.cjs → classDiagram-4FO5ZUOK-C8Col58-.cjs} +1 -1
  35. package/dist/{classDiagram-v2-Q7XG4LA2-B0_wL31A.js → classDiagram-v2-Q7XG4LA2-BBAMvpEX.js} +2 -2
  36. package/dist/{classDiagram-v2-Q7XG4LA2-scM2IOJa.cjs → classDiagram-v2-Q7XG4LA2-C8Col58-.cjs} +1 -1
  37. package/dist/{cose-bilkent-S5V4N54A-DpRpmxlF.cjs → cose-bilkent-S5V4N54A-BAGhd7Pv.cjs} +1 -1
  38. package/dist/{cose-bilkent-S5V4N54A-DXGf68xP.js → cose-bilkent-S5V4N54A-BWdSLpNe.js} +6 -6
  39. package/dist/{dagre-BM42HDAG-DAmZKlMa.js → dagre-BM42HDAG-BeqXhsH3.js} +1 -1
  40. package/dist/{dagre-BM42HDAG-Bllljh6b.cjs → dagre-BM42HDAG-Bx9eEuWz.cjs} +1 -1
  41. package/dist/{diagram-2AECGRRQ-BtVZDvFi.cjs → diagram-2AECGRRQ-C1_rnEMZ.cjs} +1 -1
  42. package/dist/{diagram-2AECGRRQ-e4xTSyXB.js → diagram-2AECGRRQ-CD5HRvtt.js} +2 -2
  43. package/dist/{diagram-5GNKFQAL-DDznFCpC.cjs → diagram-5GNKFQAL-BGP7CKfK.cjs} +1 -1
  44. package/dist/{diagram-5GNKFQAL-B57ntKRP.js → diagram-5GNKFQAL-hnwUnNop.js} +3 -3
  45. package/dist/{diagram-KO2AKTUF-CZHRsaEN.js → diagram-KO2AKTUF-C-lTMkbh.js} +2 -2
  46. package/dist/{diagram-KO2AKTUF-B1_pEYsh.cjs → diagram-KO2AKTUF-Cj5RbuFk.cjs} +1 -1
  47. package/dist/{diagram-LMA3HP47-Dw1iJ4GY.js → diagram-LMA3HP47-DNNxuzUF.js} +2 -2
  48. package/dist/{diagram-LMA3HP47-DCOfsSfF.cjs → diagram-LMA3HP47-qynJFlE9.cjs} +1 -1
  49. package/dist/{diagram-OG6HWLK6-C9iJ1_vk.cjs → diagram-OG6HWLK6-BEw06BpQ.cjs} +1 -1
  50. package/dist/{diagram-OG6HWLK6-DBRyn55R.js → diagram-OG6HWLK6-D-mFnPam.js} +3 -3
  51. package/dist/{erDiagram-TEJ5UH35-CwU_D9zQ.js → erDiagram-TEJ5UH35-DlHPKqjs.js} +4 -4
  52. package/dist/{erDiagram-TEJ5UH35-CQLcSzGq.cjs → erDiagram-TEJ5UH35-ihaFG4EG.cjs} +1 -1
  53. package/dist/{flowDiagram-I6XJVG4X-DeoNy8j_.js → flowDiagram-I6XJVG4X-D7D28W3h.js} +6 -6
  54. package/dist/{flowDiagram-I6XJVG4X-BXfh71rU.cjs → flowDiagram-I6XJVG4X-Rn9cXbM4.cjs} +1 -1
  55. package/dist/{ganttDiagram-6RSMTGT7-zl3WHbE2.cjs → ganttDiagram-6RSMTGT7-BpYlzTOm.cjs} +1 -1
  56. package/dist/{ganttDiagram-6RSMTGT7-Df26R8Yw.js → ganttDiagram-6RSMTGT7-C3CGnJzh.js} +3 -3
  57. package/dist/{gitGraphDiagram-PVQCEYII-D4lV7Wyt.js → gitGraphDiagram-PVQCEYII-CM_EMfS6.js} +3 -3
  58. package/dist/{gitGraphDiagram-PVQCEYII-B1DCGlgk.cjs → gitGraphDiagram-PVQCEYII-DR7ogqPB.cjs} +1 -1
  59. package/dist/index-B86Di0kD.js +2820 -0
  60. package/dist/index-Mn9BkUmO.cjs +1 -0
  61. package/dist/{index-Fogne5nt.cjs → index-OiJ3pN8N.cjs} +182 -182
  62. package/dist/{index-B7ymMLUP.js → index-RR6eNszd.js} +677 -673
  63. package/dist/{infoDiagram-5YYISTIA-CQzoD1R6.cjs → infoDiagram-5YYISTIA-CIxPF8Ny.cjs} +1 -1
  64. package/dist/{infoDiagram-5YYISTIA-BVUPRn39.js → infoDiagram-5YYISTIA-DeiTjOtd.js} +1 -1
  65. package/dist/{ishikawaDiagram-YF4QCWOH-B2szA0Bd.cjs → ishikawaDiagram-YF4QCWOH-1xm7obKK.cjs} +1 -1
  66. package/dist/{ishikawaDiagram-YF4QCWOH-D-w9d_mh.js → ishikawaDiagram-YF4QCWOH-D5sHNiN0.js} +1 -1
  67. package/dist/{journeyDiagram-JHISSGLW-DvxAjmWW.js → journeyDiagram-JHISSGLW-B7vkaR-O.js} +4 -4
  68. package/dist/{journeyDiagram-JHISSGLW-BlZOXaNG.cjs → journeyDiagram-JHISSGLW-Bj3pR1r8.cjs} +1 -1
  69. package/dist/{kanban-definition-UN3LZRKU-uWpfk339.cjs → kanban-definition-UN3LZRKU-C2BvNLvg.cjs} +1 -1
  70. package/dist/{kanban-definition-UN3LZRKU-3ITzwD_V.js → kanban-definition-UN3LZRKU-SSN_awCf.js} +2 -2
  71. package/dist/{linear-xTyNvSvf.cjs → linear-BPGTGVZF.cjs} +1 -1
  72. package/dist/{linear-h0PKX5pS.js → linear-CrtlOpJC.js} +1 -1
  73. package/dist/{mermaid.core-B-oz1JHo.js → mermaid.core-BMFdNVmT.js} +35 -35
  74. package/dist/{mermaid.core-BNCrNPF3.cjs → mermaid.core-CzUM8ZFm.cjs} +3 -3
  75. package/dist/{mindmap-definition-RKZ34NQL-CP2xdC8i.cjs → mindmap-definition-RKZ34NQL-BzoMooEA.cjs} +1 -1
  76. package/dist/{mindmap-definition-RKZ34NQL-iv6ScGf8.js → mindmap-definition-RKZ34NQL-CQ_AvUYl.js} +3 -3
  77. package/dist/{pieDiagram-4H26LBE5-DBlTRpYF.cjs → pieDiagram-4H26LBE5--B008aOr.cjs} +1 -1
  78. package/dist/{pieDiagram-4H26LBE5-DG5ob37D.js → pieDiagram-4H26LBE5-DZA6EYmY.js} +3 -3
  79. package/dist/{quadrantDiagram-W4KKPZXB-BIJcQpbE.cjs → quadrantDiagram-W4KKPZXB-CUgU7n5W.cjs} +1 -1
  80. package/dist/{quadrantDiagram-W4KKPZXB-gdLXyrgM.js → quadrantDiagram-W4KKPZXB-DkJ_1r5Q.js} +2 -2
  81. package/dist/{requirementDiagram-4Y6WPE33-BZupS8ve.cjs → requirementDiagram-4Y6WPE33-C9c_OdBu.cjs} +1 -1
  82. package/dist/{requirementDiagram-4Y6WPE33-Devp3bFn.js → requirementDiagram-4Y6WPE33-D-Rhgay0.js} +3 -3
  83. package/dist/{sankeyDiagram-5OEKKPKP-YmUkqYvM.cjs → sankeyDiagram-5OEKKPKP-CjqPY4DA.cjs} +1 -1
  84. package/dist/{sankeyDiagram-5OEKKPKP-DclF12AE.js → sankeyDiagram-5OEKKPKP-D4c7ZW3L.js} +1 -1
  85. package/dist/{sequenceDiagram-3UESZ5HK-Bp3v1G4L.js → sequenceDiagram-3UESZ5HK-BFZ_dS_o.js} +3 -3
  86. package/dist/{sequenceDiagram-3UESZ5HK-Cc6KiFLH.cjs → sequenceDiagram-3UESZ5HK-CvSm5Cdr.cjs} +1 -1
  87. package/dist/{stateDiagram-AJRCARHV-DzpR85VO.js → stateDiagram-AJRCARHV-_zVtg-ny.js} +2 -2
  88. package/dist/{stateDiagram-AJRCARHV-BhKrmX4f.cjs → stateDiagram-AJRCARHV-l6UNFX0d.cjs} +1 -1
  89. package/dist/{stateDiagram-v2-BHNVJYJU-C0Aq_ia1.cjs → stateDiagram-v2-BHNVJYJU-RSGFy9G6.cjs} +1 -1
  90. package/dist/{stateDiagram-v2-BHNVJYJU-DwsxsR-W.js → stateDiagram-v2-BHNVJYJU-eyWoWwdr.js} +2 -2
  91. package/dist/{timeline-definition-PNZ67QCA-B87x3yay.js → timeline-definition-PNZ67QCA-B9ePHeNX.js} +2 -2
  92. package/dist/{timeline-definition-PNZ67QCA-AdSmOXjp.cjs → timeline-definition-PNZ67QCA-Dz0DlRBT.cjs} +1 -1
  93. package/dist/{vennDiagram-CIIHVFJN-CLpzW4Nc.cjs → vennDiagram-CIIHVFJN-DB7dFqUU.cjs} +1 -1
  94. package/dist/{vennDiagram-CIIHVFJN-GqWq5zHi.js → vennDiagram-CIIHVFJN-DTMVqRLj.js} +1 -1
  95. package/dist/wandox.cjs +1 -1
  96. package/dist/wandox.css +1 -1
  97. package/dist/wandox.js +3 -3
  98. package/dist/wandox.umd.js +642 -642
  99. package/dist/{wardleyDiagram-YWT4CUSO-5_EScJ4X.js → wardleyDiagram-YWT4CUSO-CLgLoevL.js} +2 -2
  100. package/dist/{wardleyDiagram-YWT4CUSO-Cls7iV6P.cjs → wardleyDiagram-YWT4CUSO-llCStOjH.cjs} +1 -1
  101. package/dist/{xychartDiagram-2RQKCTM6-DbdkH607.js → xychartDiagram-2RQKCTM6-B9AnuRIT.js} +2 -2
  102. package/dist/{xychartDiagram-2RQKCTM6-D8JYg9fO.cjs → xychartDiagram-2RQKCTM6-Co8C1pBL.cjs} +1 -1
  103. package/package.json +1 -1
  104. package/dist/V2Workbench-P9muvE1U.js +0 -2170
  105. package/dist/V2Workbench-Un5ZzXV7.cjs +0 -2
  106. package/dist/index-B6ippZgO.js +0 -2520
  107. package/dist/index-C5MgqruW.js +0 -307
  108. package/dist/index-CgghWcty.cjs +0 -1
  109. package/dist/index-D2f85EfC.cjs +0 -1
@@ -1,7 +1,6 @@
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-B7ymMLUP.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-DwnSaeU0.js";
3
- import { D as As } from "./index-B6ippZgO.js";
4
- import { Divider as Jt } from "./index-C5MgqruW.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-RR6eNszd.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, d as Gt, g as Kt, u as Zt, p as Ht, b as Yt, S as Xt } from "./WorkbenchRuntime-DFoqujXl.js";
3
+ import { Drawer as As, Divider as Jt } from "./index-B86Di0kD.js";
5
4
  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
5
  function ts() {
7
6
  return ts = Object.assign ? Object.assign.bind() : function(n) {
@@ -46,7 +45,7 @@ function ns() {
46
45
  const la = (n, a) => /* @__PURE__ */ s.createElement(Qe, ns({}, n, {
47
46
  ref: a,
48
47
  icon: oa
49
- })), ws = /* @__PURE__ */ s.forwardRef(la);
48
+ })), bs = /* @__PURE__ */ s.forwardRef(la);
50
49
  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
50
  function is() {
52
51
  return is = Object.assign ? Object.assign.bind() : function(n) {
@@ -96,36 +95,36 @@ function pa({
96
95
  s.useEffect(() => {
97
96
  n && (r(Wt(f, (a == null ? void 0 : a.initial_params) ?? {})), N({}), y({}));
98
97
  }, [f, n, a == null ? void 0 : a.initial_params]);
99
- const w = s.useCallback((b, d) => {
100
- r((c) => ({ ...c, [b]: d }));
98
+ const b = s.useCallback((w, d) => {
99
+ r((c) => ({ ...c, [w]: d }));
101
100
  }, []), O = s.useCallback(
102
- (b, d) => async ({ file: c, onSuccess: I, onError: _ }) => {
103
- var M, P;
104
- N((Q) => ({ ...Q, [b]: !0 }));
101
+ (w, d) => async ({ file: c, onSuccess: I, onError: _ }) => {
102
+ var $, P;
103
+ N((Q) => ({ ...Q, [w]: !0 }));
105
104
  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;
105
+ 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
106
  if (!B) throw new Error("上传结果缺少文件地址");
108
107
  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("上传成功");
108
+ if (d <= 1) return { ...E, [w]: B };
109
+ const U = Array.isArray(E[w]) ? E[w] : E[w] ? [E[w]] : [];
110
+ return { ...E, [w]: [...U, B] };
111
+ }), I == null || I(M), he.success("上传成功");
113
112
  } catch (Q) {
114
- const L = Q instanceof Error ? Q : new Error(ma(Q));
115
- _ == null || _(L), he.error(L.message);
113
+ const M = Q instanceof Error ? Q : new Error(ma(Q));
114
+ _ == null || _(M), he.error(M.message);
116
115
  } finally {
117
- N((Q) => ({ ...Q, [b]: !1 }));
116
+ N((Q) => ({ ...Q, [w]: !1 }));
118
117
  }
119
118
  },
120
119
  []
121
120
  ), W = () => {
122
121
  if (!a) return;
123
- const b = j.filter(
122
+ const w = j.filter(
124
123
  (d) => d.required && qt(g[d.name])
125
124
  );
126
- if (b.length > 0) {
125
+ if (w.length > 0) {
127
126
  he.warning(
128
- `请填写必填参数:${b.map((d) => d.label).join("、")}`
127
+ `请填写必填参数:${w.map((d) => d.label).join("、")}`
129
128
  );
130
129
  return;
131
130
  }
@@ -157,29 +156,29 @@ function pa({
157
156
  ] })
158
157
  ] }),
159
158
  /* @__PURE__ */ e.jsxs(ze, { layout: "vertical", className: "wandox-playbook-params-drawer__form", children: [
160
- j.map((b) => /* @__PURE__ */ e.jsx(
159
+ j.map((w) => /* @__PURE__ */ e.jsx(
161
160
  ze.Item,
162
161
  {
163
- required: b.required,
162
+ required: w.required,
164
163
  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
164
+ w.label,
165
+ w.description || w.hint ? /* @__PURE__ */ e.jsx(ss, { title: w.description || w.hint, children: /* @__PURE__ */ e.jsx(st, { "aria-label": `${w.label}说明` }) }) : null
167
166
  ] }),
168
167
  children: /* @__PURE__ */ e.jsx(
169
168
  Vt,
170
169
  {
171
- field: b,
172
- value: g[b.name],
173
- uploading: !!x[b.name],
170
+ field: w,
171
+ value: g[w.name],
172
+ uploading: !!x[w.name],
174
173
  fileNameMap: v,
175
174
  getOptionState: m.getFieldState,
176
- onChange: w,
175
+ onChange: b,
177
176
  onUpload: O,
178
177
  onDownloadTemplate: (d) => window.open(d.path, "_blank", "noopener,noreferrer")
179
178
  }
180
179
  )
181
180
  },
182
- b.name
181
+ w.name
183
182
  )),
184
183
  j.length === 0 ? /* @__PURE__ */ e.jsxs("div", { className: "wandox-playbook-params-drawer__empty", children: [
185
184
  /* @__PURE__ */ e.jsx(tt, { size: "small" }),
@@ -198,7 +197,7 @@ function fa({
198
197
  }) {
199
198
  const { t: f } = ks(), [g, r] = s.useState(""), [x, N] = s.useState(!1), [v, y] = s.useState(
200
199
  null
201
- ), [m, j] = s.useState(!1), w = n.filter(
200
+ ), [m, j] = s.useState(!1), b = n.filter(
202
201
  (d) => {
203
202
  var c;
204
203
  return d.name.toLowerCase().includes(g.toLowerCase()) || ((c = d.description) == null ? void 0 : c.toLowerCase().includes(g.toLowerCase()));
@@ -217,7 +216,7 @@ function fa({
217
216
  j(!1);
218
217
  }
219
218
  }
220
- }, b = () => {
219
+ }, w = () => {
221
220
  N(!1), y(null);
222
221
  };
223
222
  return /* @__PURE__ */ e.jsxs("div", { className: "wandox-solidified-list", children: [
@@ -231,13 +230,13 @@ function fa({
231
230
  enterButton: !1
232
231
  }
233
232
  ) }),
234
- /* @__PURE__ */ e.jsx("div", { className: "wandox-solidified-list-content", children: w.length === 0 ? /* @__PURE__ */ e.jsx(
233
+ /* @__PURE__ */ e.jsx("div", { className: "wandox-solidified-list-content", children: b.length === 0 ? /* @__PURE__ */ e.jsx(
235
234
  fs,
236
235
  {
237
236
  description: f(g ? "noData" : "solidified.empty"),
238
237
  image: fs.PRESENTED_IMAGE_SIMPLE
239
238
  }
240
- ) : /* @__PURE__ */ e.jsx("div", { className: "wandox-solidified-list-grid", children: w.map((d) => /* @__PURE__ */ e.jsxs(
239
+ ) : /* @__PURE__ */ e.jsx("div", { className: "wandox-solidified-list-grid", children: b.map((d) => /* @__PURE__ */ e.jsxs(
241
240
  "div",
242
241
  {
243
242
  className: `wandox-solidified-card ${l === d.playbook_id ? "active" : ""}`,
@@ -327,7 +326,7 @@ function fa({
327
326
  title: f("solidified.deleteConfirm"),
328
327
  open: x,
329
328
  onOk: W,
330
- onCancel: b,
329
+ onCancel: w,
331
330
  okText: f("confirm"),
332
331
  cancelText: f("cancel"),
333
332
  okButtonProps: { danger: !0, loading: m },
@@ -407,7 +406,7 @@ function ga({
407
406
  }
408
407
  ) });
409
408
  }
410
- function wa({
409
+ function ba({
411
410
  open: n,
412
411
  loading: a,
413
412
  playbooks: o,
@@ -440,7 +439,7 @@ function wa({
440
439
  }
441
440
  );
442
441
  }
443
- const ba = "https://ai.maiduox.com/#/aitools/operation/product";
442
+ const wa = "https://ai.maiduox.com/#/aitools/operation/product";
444
443
  function ya(n) {
445
444
  const {
446
445
  title: a,
@@ -457,9 +456,9 @@ function ya(n) {
457
456
  agentSwitcher: j
458
457
  } = n;
459
458
  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(
459
+ 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
460
  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(
461
+ ), [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
462
  (u) => u.agent_id === x || u.agent_code === x
464
463
  )) || null, [x, N]), ae = s.useMemo(
465
464
  () => Ns(ce),
@@ -522,7 +521,7 @@ function ya(n) {
522
521
  me(t), ne(F[t.agent_id]), J(!0);
523
522
  }, ee = s.useCallback(async (t) => {
524
523
  if (t) {
525
- L(!0);
524
+ M(!0);
526
525
  try {
527
526
  const u = await lt({
528
527
  agent_id: t,
@@ -552,7 +551,7 @@ function ya(n) {
552
551
  } catch {
553
552
  A([]);
554
553
  } finally {
555
- L(!1);
554
+ M(!1);
556
555
  }
557
556
  }
558
557
  }, []), ie = (t) => {
@@ -577,8 +576,8 @@ function ya(n) {
577
576
  failed: "wandox-exec-status--failed"
578
577
  })[t] || "";
579
578
  s.useEffect(() => {
580
- M === "history" && pe && ee(pe);
581
- }, [M, pe, ee]);
579
+ $ === "history" && pe && ee(pe);
580
+ }, [$, pe, ee]);
582
581
  const R = async () => {
583
582
  if (!Z || !X) {
584
583
  he.warning("请选择 Webhook");
@@ -597,7 +596,7 @@ function ya(n) {
597
596
  } finally {
598
597
  de(!1);
599
598
  }
600
- }, $e = async () => {
599
+ }, Le = async () => {
601
600
  if (Z)
602
601
  try {
603
602
  de(!0), await rt(
@@ -609,10 +608,10 @@ function ya(n) {
609
608
  } finally {
610
609
  de(!1);
611
610
  }
612
- }, Me = (t) => {
613
- c(t), b(!0);
614
- }, Le = () => {
615
- b(!1), c(null);
611
+ }, $e = (t) => {
612
+ c(t), w(!0);
613
+ }, Me = () => {
614
+ w(!1), c(null);
616
615
  }, Te = (t) => {
617
616
  if (!t) return "";
618
617
  try {
@@ -666,7 +665,7 @@ ${C}`;
666
665
  {
667
666
  type: "button",
668
667
  className: "wandox-widget-view-detail-btn",
669
- onClick: () => Me(t),
668
+ onClick: () => $e(t),
670
669
  children: [
671
670
  /* @__PURE__ */ e.jsxs(
672
671
  "svg",
@@ -711,9 +710,9 @@ ${C}`;
711
710
  "button",
712
711
  {
713
712
  type: "button",
714
- className: `wandox-inspection-agent-btn ${w ? "wandox-inspection-agent-btn--expanded" : ""}`,
713
+ className: `wandox-inspection-agent-btn ${b ? "wandox-inspection-agent-btn--expanded" : ""}`,
715
714
  onClick: () => {
716
- w ? (O(!1), _(null)) : O(!0);
715
+ b ? (O(!1), _(null)) : O(!0);
717
716
  },
718
717
  children: [
719
718
  /* @__PURE__ */ e.jsxs("span", { className: "wandox-inspection-agent-icon", children: [
@@ -754,7 +753,7 @@ ${C}`;
754
753
  }
755
754
  ) })
756
755
  ] }),
757
- w && /* @__PURE__ */ e.jsxs("div", { className: "wandox-timeline-list", children: [
756
+ b && /* @__PURE__ */ e.jsxs("div", { className: "wandox-timeline-list", children: [
758
757
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-agent-filter-row wandox-agent-filter-row--with-close", children: [
759
758
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-agent-filter-chips", children: [
760
759
  v.length > 0 && /* @__PURE__ */ e.jsx(
@@ -844,7 +843,7 @@ ${C}`;
844
843
  /* @__PURE__ */ e.jsx(
845
844
  "a",
846
845
  {
847
- href: ba,
846
+ href: wa,
848
847
  target: "_blank",
849
848
  rel: "noreferrer",
850
849
  className: "wandox-negative-review-notice-link",
@@ -859,7 +858,7 @@ ${C}`;
859
858
  "button",
860
859
  {
861
860
  type: "button",
862
- className: `wandox-timeline-tab-btn ${M === "results" ? "active" : ""}`,
861
+ className: `wandox-timeline-tab-btn ${$ === "results" ? "active" : ""}`,
863
862
  onClick: () => P("results"),
864
863
  children: [
865
864
  "巡检结果",
@@ -871,13 +870,13 @@ ${C}`;
871
870
  "button",
872
871
  {
873
872
  type: "button",
874
- className: `wandox-timeline-tab-btn ${M === "history" ? "active" : ""}`,
873
+ className: `wandox-timeline-tab-btn ${$ === "history" ? "active" : ""}`,
875
874
  onClick: () => P("history"),
876
875
  children: "执行记录"
877
876
  }
878
877
  )
879
878
  ] }) }),
880
- M === "results" ? /* @__PURE__ */ e.jsx("div", { className: "wandox-timeline-list-content", children: z.length > 0 ? z.sort((t, u) => {
879
+ $ === "results" ? /* @__PURE__ */ e.jsx("div", { className: "wandox-timeline-list-content", children: z.length > 0 ? z.sort((t, u) => {
881
880
  const D = t.timestamp ? new Date(t.timestamp).getTime() : 0;
882
881
  return (u.timestamp ? new Date(u.timestamp).getTime() : 0) - D;
883
882
  }).map(
@@ -982,7 +981,7 @@ ${C}`;
982
981
  ssoToken: f,
983
982
  ssoDomain: l,
984
983
  ssoCompany: g,
985
- onClose: Le,
984
+ onClose: Me,
986
985
  onExecuteComplete: r
987
986
  }
988
987
  ),
@@ -1008,7 +1007,7 @@ ${C}`;
1008
1007
  ),
1009
1008
  /* @__PURE__ */ e.jsx("span", { children: "配置 Webhook 通知" })
1010
1009
  ] }),
1011
- open: be,
1010
+ open: we,
1012
1011
  onCancel: () => {
1013
1012
  J(!1), me(null), ne(void 0);
1014
1013
  },
@@ -1153,7 +1152,7 @@ ${C}`;
1153
1152
  "button",
1154
1153
  {
1155
1154
  type: "button",
1156
- onClick: $e,
1155
+ onClick: Le,
1157
1156
  disabled: V,
1158
1157
  style: {
1159
1158
  marginRight: "auto",
@@ -1265,9 +1264,9 @@ function ja({
1265
1264
  onToggleSidebarMode: m,
1266
1265
  onAgentSelect: j
1267
1266
  }) {
1268
- const w = localStorage.getItem("sso_domain") || "", O = [
1267
+ const b = localStorage.getItem("sso_domain") || "", O = [
1269
1268
  { key: "chat", icon: /* @__PURE__ */ e.jsx(Ft, {}), title: "对话" },
1270
- ...["maiduo", "eccang"].includes(w) ? [
1269
+ ...["maiduo", "eccang"].includes(b) ? [
1271
1270
  {
1272
1271
  key: "plan",
1273
1272
  icon: /* @__PURE__ */ e.jsx(ia, {}),
@@ -1279,8 +1278,8 @@ function ja({
1279
1278
  icon: /* @__PURE__ */ e.jsx(ht, {}),
1280
1279
  title: "专业智能体"
1281
1280
  }
1282
- ], b = [
1283
- ...w === "yunduo" ? [] : [
1281
+ ], w = [
1282
+ ...b === "yunduo" ? [] : [
1284
1283
  { key: "toolbox", icon: /* @__PURE__ */ e.jsx(xa, {}), label: "工具箱" },
1285
1284
  { key: "goals", icon: /* @__PURE__ */ e.jsx(ta, {}), label: "目标追踪" }
1286
1285
  ],
@@ -1367,9 +1366,9 @@ function ja({
1367
1366
  }
1368
1367
  ),
1369
1368
  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";
1369
+ const $ = _.agent_id;
1370
+ if (!$) return null;
1371
+ const P = n === $ && g === "professional";
1373
1372
  return /* @__PURE__ */ e.jsx(
1374
1373
  ss,
1375
1374
  {
@@ -1381,7 +1380,7 @@ function ja({
1381
1380
  type: "button",
1382
1381
  className: `wandox-aside-agent-item${P ? " wandox-aside-agent-item--active" : ""}`,
1383
1382
  onClick: () => {
1384
- j == null || j(M), g !== "professional" && (r == null || r("professional"));
1383
+ j == null || j($), g !== "professional" && (r == null || r("professional"));
1385
1384
  },
1386
1385
  children: [
1387
1386
  /* @__PURE__ */ e.jsx("span", { className: "wandox-aside-agent-icon", children: Ae(_.icon) }),
@@ -1390,7 +1389,7 @@ function ja({
1390
1389
  }
1391
1390
  )
1392
1391
  },
1393
- M
1392
+ $
1394
1393
  );
1395
1394
  }) })
1396
1395
  ] }, d.key);
@@ -1398,7 +1397,7 @@ function ja({
1398
1397
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-aside-bottom", children: [
1399
1398
  /* @__PURE__ */ e.jsx("p", { className: "wandox-aside-group-label", children: "系统功能" }),
1400
1399
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-aside-nav-list wandox-aside-nav-list--bottom", children: [
1401
- b.map((d) => {
1400
+ w.map((d) => {
1402
1401
  const c = d.key !== "toolbox" && g === d.key;
1403
1402
  return /* @__PURE__ */ e.jsxs(
1404
1403
  "button",
@@ -1546,19 +1545,19 @@ function ka({
1546
1545
  if (n) {
1547
1546
  const m = {};
1548
1547
  for (const j of Object.keys(o)) {
1549
- const w = o[j];
1550
- (typeof w == "string" || typeof w == "number") && (m[j] = String(w));
1548
+ const b = o[j];
1549
+ (typeof b == "string" || typeof b == "number") && (m[j] = String(b));
1551
1550
  }
1552
1551
  r(m);
1553
1552
  }
1554
1553
  }, [n, o]);
1555
1554
  const x = (m, j) => {
1556
- r((w) => ({ ...w, [m]: j }));
1555
+ r((b) => ({ ...b, [m]: j }));
1557
1556
  }, N = (m) => {
1558
1557
  m.preventDefault();
1559
1558
  const j = { ...o };
1560
- for (const w of Object.keys(g))
1561
- j[w] = g[w];
1559
+ for (const b of Object.keys(g))
1560
+ j[b] = g[b];
1562
1561
  f(j);
1563
1562
  }, v = (m) => {
1564
1563
  m.target === m.currentTarget && l();
@@ -1571,7 +1570,7 @@ function ka({
1571
1570
  className: "wandox-form-input",
1572
1571
  placeholder: `请输入 ${m}`,
1573
1572
  value: g[m] || "",
1574
- onChange: (w) => x(m, w.target.value)
1573
+ onChange: (b) => x(m, b.target.value)
1575
1574
  }
1576
1575
  )
1577
1576
  ] }, m);
@@ -1623,7 +1622,7 @@ function ka({
1623
1622
  ] })
1624
1623
  ] }) }) : null;
1625
1624
  }
1626
- const bs = [
1625
+ const ws = [
1627
1626
  "要努力呀,为了想要的生活,为了人间的烟火气,为了今天的风和月。",
1628
1627
  "欣赏不来别人视若珍宝的,就该保持沉默。",
1629
1628
  "日子总是有意思的,了无生趣的是打不起精神的你。",
@@ -1912,7 +1911,7 @@ function Ra(n) {
1912
1911
  cards: Array.isArray(o.cards) ? o.cards : []
1913
1912
  })).filter((a) => a.cards.length > 0);
1914
1913
  }
1915
- function $a({
1914
+ function La({
1916
1915
  agentLoading: n,
1917
1916
  mainAgentForHub: a,
1918
1917
  mainAgentQuestions: o,
@@ -1926,36 +1925,36 @@ function $a({
1926
1925
  onHubChatSend: y,
1927
1926
  onHubInputFocus: m,
1928
1927
  onHubInputBlur: j,
1929
- messages: w,
1928
+ messages: b,
1930
1929
  executing: O,
1931
1930
  hubInlineChatInput: W,
1932
- setHubInlineChatInput: b,
1931
+ setHubInlineChatInput: w,
1933
1932
  onHubInlineSend: d,
1934
1933
  onEnterProfessional: c,
1935
1934
  playbooks: I,
1936
1935
  executePlaybook: _,
1937
- onRequestPlaybookParams: M,
1936
+ onRequestPlaybookParams: $,
1938
1937
  onAbort: P,
1939
1938
  onRespondToProposal: Q,
1940
- ssoToken: L,
1939
+ ssoToken: M,
1941
1940
  ssoDomain: B,
1942
1941
  ssoCompany: A
1943
1942
  }) {
1944
1943
  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)],
1944
+ 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(
1945
+ () => ws[Math.floor(Math.random() * ws.length)],
1947
1946
  []
1948
1947
  ), fe = s.useMemo(
1949
1948
  () => ({
1950
- Authorization: `Bearer ${L}`,
1949
+ Authorization: `Bearer ${M}`,
1951
1950
  "X-Tenant-ID": A,
1952
1951
  "X-Domain": B,
1953
1952
  "Content-Type": "application/json"
1954
1953
  }),
1955
- [L, A, B]
1954
+ [M, A, B]
1956
1955
  ), ee = s.useCallback(
1957
1956
  async (i = !1) => {
1958
- if (!(!L || !B)) {
1957
+ if (!(!M || !B)) {
1959
1958
  ne(!0);
1960
1959
  try {
1961
1960
  const k = await fetch(
@@ -1975,15 +1974,15 @@ function $a({
1975
1974
  }
1976
1975
  }
1977
1976
  },
1978
- [fe, B, L]
1977
+ [fe, B, M]
1979
1978
  );
1980
1979
  s.useEffect(() => {
1981
1980
  ee();
1982
1981
  }, [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,
1982
+ !we && z && J(z);
1983
+ }, [z, we]);
1984
+ const ie = Z, q = we || z || ((C = te[0]) == null ? void 0 : C.agent_id) || (a == null ? void 0 : a.agent_id), K = xt({
1985
+ token: M,
1987
1986
  domain: B,
1988
1987
  tenantId: A,
1989
1988
  agentId: q || "",
@@ -2002,7 +2001,7 @@ function $a({
2002
2001
  K.search,
2003
2002
  K.clear
2004
2003
  ]);
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(
2004
+ 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
2005
  (De = te.find((i) => i.agent_id === q)) == null ? void 0 : De.icon
2007
2006
  ), 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
2007
  if (i.bind_type === "agent" && i.bind_agent_code) {
@@ -2109,7 +2108,7 @@ function $a({
2109
2108
  className: "wandox-hub-v2-report",
2110
2109
  onClick: () => {
2111
2110
  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(
2111
+ 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
2112
  `https://ai.wandox.com/trend-report/trend-report-6.html${i.toString() ? `?${i.toString()}` : ""}`,
2114
2113
  "_blank"
2115
2114
  );
@@ -2144,7 +2143,7 @@ function $a({
2144
2143
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-hub-v2-agent-title", children: [
2145
2144
  /* @__PURE__ */ e.jsx("span", { className: "wandox-hub-v2-agent-mark", children: Te }),
2146
2145
  /* @__PURE__ */ e.jsxs("div", { children: [
2147
- /* @__PURE__ */ e.jsx("strong", { children: Le || (a == null ? void 0 : a.name) || "通用问答" }),
2146
+ /* @__PURE__ */ e.jsx("strong", { children: Me || (a == null ? void 0 : a.name) || "通用问答" }),
2148
2147
  /* @__PURE__ */ e.jsx("span", { children: ge || "问什么都行,系统会自动分流到对应的专业能力" })
2149
2148
  ] })
2150
2149
  ] }),
@@ -2167,7 +2166,7 @@ function $a({
2167
2166
  ]
2168
2167
  }
2169
2168
  ),
2170
- $e.map((i) => /* @__PURE__ */ e.jsxs(
2169
+ Le.map((i) => /* @__PURE__ */ e.jsxs(
2171
2170
  "button",
2172
2171
  {
2173
2172
  type: "button",
@@ -2181,11 +2180,11 @@ function $a({
2181
2180
  },
2182
2181
  i.agent_id
2183
2182
  )),
2184
- Me.length > 0 && /* @__PURE__ */ e.jsx(
2183
+ $e.length > 0 && /* @__PURE__ */ e.jsx(
2185
2184
  mt,
2186
2185
  {
2187
2186
  menu: {
2188
- items: Me.map((i) => ({
2187
+ items: $e.map((i) => ({
2189
2188
  key: i.agent_id,
2190
2189
  label: /* @__PURE__ */ e.jsxs("span", { className: "wandox-hub-v2-more-item", children: [
2191
2190
  /* @__PURE__ */ e.jsx("span", { className: "wandox-hub-v2-chip-icon", children: Je(i.icon) }),
@@ -2321,15 +2320,15 @@ function $a({
2321
2320
  ] }),
2322
2321
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-chat-section__body wandox-chat-section__body--hub", children: [
2323
2322
  /* @__PURE__ */ e.jsx(
2324
- wt,
2323
+ bt,
2325
2324
  {
2326
- messages: w,
2325
+ messages: b,
2327
2326
  executing: O,
2328
- ssoToken: L,
2327
+ ssoToken: M,
2329
2328
  ssoDomain: B,
2330
2329
  ssoCompany: A,
2331
2330
  onExecutePlaybook: (i) => _(i),
2332
- onFillPlaybookParams: (i) => M({
2331
+ onFillPlaybookParams: (i) => $({
2333
2332
  playbook_id: i.playbookId,
2334
2333
  name: i.playbookName,
2335
2334
  input_fields: i.inputFields,
@@ -2342,9 +2341,9 @@ function $a({
2342
2341
  }
2343
2342
  ),
2344
2343
  /* @__PURE__ */ e.jsx(
2345
- bt,
2344
+ wt,
2346
2345
  {
2347
- messages: w,
2346
+ messages: b,
2348
2347
  scrollContainerRef: se
2349
2348
  }
2350
2349
  )
@@ -2356,12 +2355,12 @@ function $a({
2356
2355
  onSend: d,
2357
2356
  playbooks: I,
2358
2357
  value: W,
2359
- onValueChange: b,
2358
+ onValueChange: w,
2360
2359
  placeholder: "继续提问…",
2361
- ssoToken: L,
2360
+ ssoToken: M,
2362
2361
  ssoDomain: B,
2363
2362
  ssoCompany: A,
2364
- onRequestPlaybookParams: M
2363
+ onRequestPlaybookParams: $
2365
2364
  }
2366
2365
  ) }),
2367
2366
  /* @__PURE__ */ e.jsx("div", { className: "wandox-hub-chat-footer", children: /* @__PURE__ */ e.jsx(
@@ -2575,7 +2574,7 @@ function $a({
2575
2574
  )
2576
2575
  ] }) });
2577
2576
  }
2578
- function Ma(n) {
2577
+ function $a(n) {
2579
2578
  const a = n.toLocaleDateString("zh-CN", {
2580
2579
  year: "numeric",
2581
2580
  month: "2-digit",
@@ -2590,7 +2589,7 @@ ${o}`;
2590
2589
  function es(n, a) {
2591
2590
  return n.activeAgent === a.activeAgent && n.webhookId === a.webhookId && n.ssoToken === a.ssoToken && n.ssoDomain === a.ssoDomain && n.ssoCompany === a.ssoCompany;
2592
2591
  }
2593
- function La(n) {
2592
+ function Ma(n) {
2594
2593
  const {
2595
2594
  activeAgent: a,
2596
2595
  webhookId: o = "",
@@ -2631,9 +2630,9 @@ function La(n) {
2631
2630
  });
2632
2631
  if (!es(N.current, y)) return;
2633
2632
  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;
2633
+ const j = m.data.map((b) => {
2634
+ 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(($) => {
2635
+ const P = $;
2637
2636
  return {
2638
2637
  label: P.display_name || P.label || "执行",
2639
2638
  action_id: P.action_id,
@@ -2653,27 +2652,27 @@ function La(n) {
2653
2652
  batch_id: P.batch_id,
2654
2653
  outputs: P.outputs
2655
2654
  };
2656
- }), _ = w.outputs;
2655
+ }), _ = b.outputs;
2657
2656
  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 || {},
2657
+ type: b.widget_type || "daily_report",
2658
+ priority: b.priority || "medium",
2659
+ title: b.title || "每日战报",
2660
+ summary: b.summary || "",
2661
+ timestamp: b.created_at ? $a(new Date(b.created_at || "")) : "",
2662
+ data: b.card_data || {},
2664
2663
  actions: I,
2665
- id: w.inbox_id || "",
2666
- agent_id: w.agent_id || "",
2667
- read: !!w.is_read,
2664
+ id: b.inbox_id || "",
2665
+ agent_id: b.agent_id || "",
2666
+ read: !!b.is_read,
2668
2667
  ui_payload: _ || W || {}
2669
2668
  };
2670
2669
  });
2671
2670
  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;
2671
+ const b = j.sort((O, W) => {
2672
+ const w = O.timestamp ? new Date(O.timestamp.replace(/\n/g, " ")).getTime() : 0;
2673
+ return (W.timestamp ? new Date(W.timestamp.replace(/\n/g, " ")).getTime() : 0) - w;
2675
2674
  });
2676
- x(w);
2675
+ x(b);
2677
2676
  } else
2678
2677
  x([]);
2679
2678
  } else
@@ -2692,9 +2691,9 @@ function La(n) {
2692
2691
  };
2693
2692
  }
2694
2693
  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;
2694
+ 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 () => {
2695
+ if (w.current)
2696
+ return w.current;
2698
2697
  const A = (async () => {
2699
2698
  l(!0);
2700
2699
  try {
@@ -2706,12 +2705,12 @@ function Ta() {
2706
2705
  } catch {
2707
2706
  return g(!1), !1;
2708
2707
  } finally {
2709
- l(!1), b.current = null;
2708
+ l(!1), w.current = null;
2710
2709
  }
2711
2710
  })();
2712
- return b.current = A, A;
2711
+ return w.current = A, A;
2713
2712
  }, []), c = s.useCallback(() => f ? Promise.resolve(!0) : d(), [d, f]), I = s.useCallback((A) => {
2714
- x(A), w({
2713
+ x(A), b({
2715
2714
  session_id: A,
2716
2715
  type: "dashboard_intent",
2717
2716
  intents: [],
@@ -2720,7 +2719,7 @@ function Ta() {
2720
2719
  m(!0);
2721
2720
  try {
2722
2721
  const F = await gs(A, { params: U });
2723
- F.success && F.data && (w(F.data), F.data.input_params && v(F.data.input_params));
2722
+ F.success && F.data && (b(F.data), F.data.input_params && v(F.data.input_params));
2724
2723
  } catch {
2725
2724
  } finally {
2726
2725
  m(!1);
@@ -2732,23 +2731,23 @@ function Ta() {
2732
2731
  m(!0);
2733
2732
  try {
2734
2733
  const U = await gs(r, { params: A });
2735
- U.success && U.data && w(U.data);
2734
+ U.success && U.data && b(U.data);
2736
2735
  } catch {
2737
2736
  } finally {
2738
2737
  m(!1);
2739
2738
  }
2740
2739
  })();
2741
- }, [r]), M = s.useCallback((A) => {
2742
- r === A && (x(""), w(null), v([])), d();
2740
+ }, [r]), $ = s.useCallback((A) => {
2741
+ r === A && (x(""), b(null), v([])), d();
2743
2742
  }, [r, d]), P = s.useCallback(() => {
2744
2743
  if (!r) return null;
2745
2744
  const A = n.find((E) => E.playbook_id === r);
2746
2745
  return (A == null ? void 0 : A.name) || null;
2747
2746
  }, [r, n]), Q = s.useCallback((A, E) => {
2748
- w(A), W(E !== void 0 ? E : !0);
2749
- }, []), L = s.useCallback(() => {
2747
+ b(A), W(E !== void 0 ? E : !0);
2748
+ }, []), M = s.useCallback(() => {
2750
2749
  }, []), B = s.useCallback(() => {
2751
- x(""), w(null), v([]);
2750
+ x(""), b(null), v([]);
2752
2751
  }, []);
2753
2752
  return {
2754
2753
  // 状态
@@ -2760,7 +2759,7 @@ function Ta() {
2760
2759
  solidifyInputParams: N,
2761
2760
  solidifyLoading: y,
2762
2761
  dashboardData: j,
2763
- setDashboardData: w,
2762
+ setDashboardData: b,
2764
2763
  dashboardShowSaveButton: O,
2765
2764
  setDashboardShowSaveButton: W,
2766
2765
  // 操作
@@ -2768,10 +2767,10 @@ function Ta() {
2768
2767
  ensureSolidifiedPlaybooksLoaded: c,
2769
2768
  handleSolidifiedPlaybookClick: I,
2770
2769
  handleSolidifyParamsSearch: _,
2771
- handleSolidifiedPlaybookDelete: M,
2770
+ handleSolidifiedPlaybookDelete: $,
2772
2771
  getCurrentSolidifiedPlaybookName: P,
2773
2772
  handleDashboardPreview: Q,
2774
- handleSolidifyComplete: L,
2773
+ handleSolidifyComplete: M,
2775
2774
  clearDashboard: B
2776
2775
  };
2777
2776
  }
@@ -2797,7 +2796,7 @@ const vs = {
2797
2796
  goals: { title: "目标追踪", subtitle: "跟踪关键业务指标和目标进展" },
2798
2797
  settings: { title: "通知配置", subtitle: "配置 Webhook 通知,实时接收系统重要事件" }
2799
2798
  }, Oa = 5 * 60 * 1e3, Ba = 3;
2800
- function Qa(n = {}) {
2799
+ function qa(n = {}) {
2801
2800
  const {
2802
2801
  showAside: a = !0,
2803
2802
  showLogout: o = !1,
@@ -2809,9 +2808,9 @@ function Qa(n = {}) {
2809
2808
  initialPlaybookId: N,
2810
2809
  initialPlaybookParams: v
2811
2810
  } = 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({
2811
+ const { data: L } = await Nt({ playbook_id: h });
2812
+ return L;
2813
+ }, []), w = s.useCallback((h) => St({
2815
2814
  session_id: h.session_id || "",
2816
2815
  name: h.name,
2817
2816
  description: h.description
@@ -2822,15 +2821,15 @@ function Qa(n = {}) {
2822
2821
  activeAgent: c,
2823
2822
  setActiveAgent: I,
2824
2823
  sourceAgents: _,
2825
- playbooks: M,
2824
+ playbooks: $,
2826
2825
  userPlaybooks: P,
2827
2826
  userPlaybooksLoading: Q,
2828
- childAgents: L,
2827
+ childAgents: M,
2829
2828
  agentLoading: B,
2830
2829
  sceneLoading: A,
2831
2830
  loadUserPlaybooks: E,
2832
2831
  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({
2832
+ } = 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
2833
  activeAgent: c,
2835
2834
  webhookId: g,
2836
2835
  ssoToken: y,
@@ -2841,7 +2840,7 @@ function Qa(n = {}) {
2841
2840
  s.useEffect(() => {
2842
2841
  de.current && !re && V((h) => h + 1), de.current = re;
2843
2842
  }, [re]);
2844
- const { widgets: ie, setWidgets: q, loadDailyReports: K } = La({
2843
+ const { widgets: ie, setWidgets: q, loadDailyReports: K } = Ma({
2845
2844
  activeAgent: c,
2846
2845
  webhookId: g,
2847
2846
  ssoToken: y,
@@ -2849,16 +2848,16 @@ function Qa(n = {}) {
2849
2848
  ssoCompany: j
2850
2849
  }), R = Ta();
2851
2850
  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($)), $;
2851
+ const [Le, $e] = s.useState(() => localStorage.getItem("wandox_sidebar_agent_mode") === "true"), Me = s.useCallback(() => {
2852
+ $e((h) => {
2853
+ const L = !h;
2854
+ return localStorage.setItem("wandox_sidebar_agent_mode", String(L)), L;
2856
2855
  });
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(() => {
2856
+ }, []), [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
2857
  ge(!0), u(!1);
2859
- }, []), $s = s.useCallback(() => {
2858
+ }, []), Ls = s.useCallback(() => {
2860
2859
  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) => {
2860
+ }, []), [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
2861
  i(() => h);
2863
2862
  }, []);
2864
2863
  s.useEffect(() => {
@@ -2868,7 +2867,7 @@ function Qa(n = {}) {
2868
2867
  }
2869
2868
  });
2870
2869
  }, [r]), s.useEffect(() => {
2871
- se(!!x), be(!1), Z(!1);
2870
+ se(!!x), we(!1), Z(!1);
2872
2871
  }, [x, N, v]), s.useEffect(() => {
2873
2872
  if (c)
2874
2873
  return X([]), () => {
@@ -2881,15 +2880,15 @@ function Qa(n = {}) {
2881
2880
  }
2882
2881
  if (!c) return;
2883
2882
  Ve.current || (ae.loadMessagesAndDailyReport(), K()), Ve.current = !1;
2884
- let h = 0, $ = null;
2885
- return $ = setInterval(async () => {
2883
+ let h = 0, L = null;
2884
+ return L = setInterval(async () => {
2886
2885
  try {
2887
2886
  await K(), h = 0;
2888
2887
  } catch {
2889
- h++, h >= Ba && $ && (clearInterval($), $ = null);
2888
+ h++, h >= Ba && L && (clearInterval(L), L = null);
2890
2889
  }
2891
2890
  }, Oa), () => {
2892
- $ && clearInterval($);
2891
+ L && clearInterval(L);
2893
2892
  };
2894
2893
  }, [oe, c, g, y, m, j]);
2895
2894
  const Y = _.find((h) => h.is_main) ?? _[0], Oe = (Y == null ? void 0 : Y.questions) || [];
@@ -2898,13 +2897,13 @@ function Qa(n = {}) {
2898
2897
  }, [Y == null ? void 0 : Y.agent_id]), s.useEffect(() => {
2899
2898
  if (Oe.length <= 1 || hs) return;
2900
2899
  let h;
2901
- const $ = setInterval(() => {
2900
+ const L = setInterval(() => {
2902
2901
  Ke(!0), h = setTimeout(() => {
2903
2902
  us((p) => (p + 1) % Oe.length), Ke(!1);
2904
2903
  }, 350);
2905
2904
  }, 3500);
2906
2905
  return () => {
2907
- clearInterval($), clearTimeout(h);
2906
+ clearInterval(L), clearTimeout(h);
2908
2907
  };
2909
2908
  }, [Oe.length, hs]), s.useEffect(() => {
2910
2909
  if (Ge.current && c && c !== "default") {
@@ -2916,59 +2915,59 @@ function Qa(n = {}) {
2916
2915
  !!It(_, x) || se(!1);
2917
2916
  }, [x, _e, c, _]), s.useEffect(() => {
2918
2917
  !x || N || te || !c || c === "default" || !_.find(
2919
- ($) => Pe($, c) && Pe($, x)
2920
- ) || (be(!0), we("professional"), R.clearDashboard(), se(!1));
2918
+ (L) => Pe(L, c) && Pe(L, x)
2919
+ ) || (we(!0), be("professional"), R.clearDashboard(), se(!1));
2921
2920
  }, [x, N, te, c, _, R]), s.useEffect(() => {
2922
2921
  var ps;
2923
2922
  if (!x || !N || J || !c || c === "default" || !U || !_.find(
2924
2923
  (Ie) => Pe(Ie, c) && Pe(Ie, x)
2925
2924
  )) return;
2926
- const $ = M.find((Ie) => Pt(Ie, N));
2927
- if (!$) {
2928
- we("professional"), he.error(`指定的场景(${N})不存在,已切换到智能体界面`), Z(!0), se(!1);
2925
+ const L = $.find((Ie) => Pt(Ie, N));
2926
+ if (!L) {
2927
+ be("professional"), he.error(`指定的场景(${N})不存在,已切换到智能体界面`), Z(!0), se(!1);
2929
2928
  return;
2930
2929
  }
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) => {
2930
+ Z(!0), be("professional"), Ve.current = !0, ee(), R.clearDashboard(), H(null), je("");
2931
+ const p = v || {}, le = Object.keys(p).length > 0, He = (L.input_fields ?? []).filter((Ie) => {
2933
2932
  if (!Ie.required) return !1;
2934
2933
  const Ye = p[Ie.name];
2935
2934
  return Ye == null || Ye === "";
2936
2935
  });
2937
- if ((((ps = $.input_fields) == null ? void 0 : ps.length) ?? 0) > 0 && (!le || He.length > 0)) {
2938
- H($), se(!1);
2936
+ if ((((ps = L.input_fields) == null ? void 0 : ps.length) ?? 0) > 0 && (!le || He.length > 0)) {
2937
+ H(L), se(!1);
2939
2938
  return;
2940
2939
  }
2941
2940
  z({
2942
- message: $.name,
2941
+ message: L.name,
2943
2942
  playbook_id: N,
2944
2943
  playbook_params: p
2945
2944
  }), se(!1);
2946
- }, [x, N, J, c, U, _, M, v]);
2945
+ }, [x, N, J, c, U, _, $, v]);
2947
2946
  const Ze = s.useCallback((h) => {
2948
2947
  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);
2948
+ }, [fe, c, _, ee, G, I, R, q]), Qs = (h, L) => {
2949
+ const p = (L ?? ds).trim() || Oe[cs % Oe.length] || "", le = h || (Y == null ? void 0 : Y.agent_id);
2951
2950
  !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");
2951
+ }, Us = (h, L) => {
2952
+ R.handleDashboardPreview(h, L), be("chat"), I("default");
2954
2953
  }, Fs = () => {
2955
- R.handleSolidifyComplete(), we("chat"), I("default");
2954
+ R.handleSolidifyComplete(), be("chat"), I("default");
2956
2955
  }, Gs = (h) => {
2957
- we(h), (h === "goals" || h === "settings" || h === "plan" || h === "chat") && R.clearDashboard();
2956
+ be(h), (h === "goals" || h === "settings" || h === "plan" || h === "chat") && R.clearDashboard();
2958
2957
  }, Ks = () => {
2959
2958
  u(!1), De(!0), R.ensureSolidifiedPlaybooksLoaded();
2960
2959
  }, Zs = (h) => {
2961
- De(!1), R.handleSolidifiedPlaybookClick(h), we("chat"), I("default"), je(""), H(null);
2960
+ De(!1), R.handleSolidifiedPlaybookClick(h), be("chat"), I("default"), je(""), H(null);
2962
2961
  }, Hs = () => {
2963
- var h, $;
2962
+ var h, L;
2964
2963
  if (R.dashboardData)
2965
2964
  return /* @__PURE__ */ e.jsx(
2966
- Mt,
2965
+ $t,
2967
2966
  {
2968
2967
  data: R.dashboardData,
2969
2968
  showSaveButton: R.dashboardShowSaveButton,
2970
2969
  onSaveSuccess: R.loadSolidifiedPlaybooks,
2971
- onSaveDashboard: b,
2970
+ onSaveDashboard: w,
2972
2971
  onPreviewDashboard: d,
2973
2972
  title: R.getCurrentSolidifiedPlaybookName() || void 0,
2974
2973
  customParamsForm: R.solidifyInputParams.length > 0 ? /* @__PURE__ */ e.jsx(
@@ -2999,21 +2998,21 @@ function Qa(n = {}) {
2999
2998
  initial_params: p.initialParams,
3000
2999
  playbook_type: p.playbookType
3001
3000
  };
3002
- H(le), we("professional");
3001
+ H(le), be("professional");
3003
3002
  }
3004
3003
  }, children: /* @__PURE__ */ e.jsx(
3005
- $a,
3004
+ La,
3006
3005
  {
3007
3006
  agentLoading: F,
3008
3007
  mainAgentForHub: Y,
3009
3008
  mainAgentQuestions: Oe,
3010
3009
  agents: _,
3011
- hubChatOpen: Ls,
3010
+ hubChatOpen: Ms,
3012
3011
  setHubChatOpen: ms,
3013
3012
  hubChatInput: ds,
3014
3013
  setHubChatInput: rs,
3015
3014
  hubScrollIdx: cs,
3016
- hubScrollFading: Ms,
3015
+ hubScrollFading: $s,
3017
3016
  onHubChatSend: Qs,
3018
3017
  onHubInputFocus: () => xs(!0),
3019
3018
  onHubInputBlur: () => xs(!1),
@@ -3025,9 +3024,9 @@ function Qa(n = {}) {
3025
3024
  Y != null && Y.agent_id && (c !== Y.agent_id && I(Y.agent_id), S(p, le, He));
3026
3025
  },
3027
3026
  onEnterProfessional: (p) => {
3028
- p && I(p), je(""), H(null), R.clearDashboard(), q([]), we("professional");
3027
+ p && I(p), je(""), H(null), R.clearDashboard(), q([]), be("professional");
3029
3028
  },
3030
- playbooks: M,
3029
+ playbooks: $,
3031
3030
  executePlaybook: z,
3032
3031
  onRequestPlaybookParams: H,
3033
3032
  clearMessages: ee,
@@ -3049,7 +3048,7 @@ function Qa(n = {}) {
3049
3048
  embedded: !0,
3050
3049
  onHeaderChange: Es,
3051
3050
  onCockpitEnter: Rs,
3052
- onCockpitExit: $s
3051
+ onCockpitExit: Ls
3053
3052
  }
3054
3053
  );
3055
3054
  case "professional":
@@ -3058,7 +3057,7 @@ function Qa(n = {}) {
3058
3057
  ya,
3059
3058
  {
3060
3059
  title: ((h = _.find((p) => Pe(p, c))) == null ? void 0 : h.name) || "Wandox智能体",
3061
- agentSwitcher: $e ? void 0 : /* @__PURE__ */ e.jsxs("div", { style: {
3060
+ agentSwitcher: Le ? void 0 : /* @__PURE__ */ e.jsxs("div", { style: {
3062
3061
  display: "inline-flex",
3063
3062
  alignItems: "center",
3064
3063
  height: 34,
@@ -3069,7 +3068,7 @@ function Qa(n = {}) {
3069
3068
  overflow: "hidden"
3070
3069
  }, children: [
3071
3070
  /* @__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) }),
3071
+ /* @__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
3072
  /* @__PURE__ */ e.jsx(
3074
3073
  Ss,
3075
3074
  {
@@ -3087,7 +3086,7 @@ function Qa(n = {}) {
3087
3086
  "button",
3088
3087
  {
3089
3088
  type: "button",
3090
- onClick: Le,
3089
+ onClick: Me,
3091
3090
  title: "切换为侧边栏选择",
3092
3091
  style: {
3093
3092
  display: "flex",
@@ -3109,7 +3108,7 @@ function Qa(n = {}) {
3109
3108
  onMouseLeave: (p) => {
3110
3109
  p.currentTarget.style.color = "#b0a0c8", p.currentTarget.style.background = "transparent";
3111
3110
  },
3112
- children: /* @__PURE__ */ e.jsx(ws, { style: { fontSize: 13 } })
3111
+ children: /* @__PURE__ */ e.jsx(bs, { style: { fontSize: 13 } })
3113
3112
  }
3114
3113
  )
3115
3114
  ] }),
@@ -3117,7 +3116,7 @@ function Qa(n = {}) {
3117
3116
  widgets: ie,
3118
3117
  activeAgent: c,
3119
3118
  agents: _,
3120
- childAgents: L,
3119
+ childAgents: M,
3121
3120
  ssoDomain: m,
3122
3121
  ssoToken: y,
3123
3122
  ssoCompany: j,
@@ -3130,10 +3129,10 @@ function Qa(n = {}) {
3130
3129
  }
3131
3130
  ),
3132
3131
  /* @__PURE__ */ e.jsx(
3133
- Lt,
3132
+ Mt,
3134
3133
  {
3135
3134
  messages: ae.messages,
3136
- playbooks: M,
3135
+ playbooks: $,
3137
3136
  messagesTotal: ae.messagesTotal,
3138
3137
  loadMoreMessages: ae.loadMoreMessages,
3139
3138
  loading: Vs,
@@ -3178,7 +3177,7 @@ function Qa(n = {}) {
3178
3177
  /* @__PURE__ */ e.jsx(
3179
3178
  Tt,
3180
3179
  {
3181
- playbooks: M,
3180
+ playbooks: $,
3182
3181
  playbookLoading: F,
3183
3182
  onPlaybookClick: z,
3184
3183
  onSelectPlaybook: (p) => {
@@ -3199,7 +3198,7 @@ function Qa(n = {}) {
3199
3198
  stopping: ke,
3200
3199
  onStop: Re,
3201
3200
  onSend: S,
3202
- playbooks: M,
3201
+ playbooks: $,
3203
3202
  recommendations: me,
3204
3203
  value: Se,
3205
3204
  onValueChange: je,
@@ -3243,8 +3242,8 @@ function Qa(n = {}) {
3243
3242
  onToolboxOpen: Ks,
3244
3243
  showLogout: o,
3245
3244
  onLogout: l,
3246
- sidebarAgentMode: $e,
3247
- onToggleSidebarMode: Le,
3245
+ sidebarAgentMode: Le,
3246
+ onToggleSidebarMode: Me,
3248
3247
  onAgentSelect: (h) => Ze(h)
3249
3248
  }
3250
3249
  ),
@@ -3256,7 +3255,7 @@ function Qa(n = {}) {
3256
3255
  onClick: () => ge(!1),
3257
3256
  "aria-label": "展开侧边栏",
3258
3257
  title: "展开侧边栏",
3259
- children: /* @__PURE__ */ e.jsx(ws, {})
3258
+ children: /* @__PURE__ */ e.jsx(bs, {})
3260
3259
  }
3261
3260
  ),
3262
3261
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-workspace", children: [
@@ -3293,7 +3292,7 @@ function Qa(n = {}) {
3293
3292
  /* @__PURE__ */ e.jsx("div", { className: `wandox-workspace-container${oe === "plan" ? " wandox-workspace-container--automation" : ""}`, children: Hs() })
3294
3293
  ] }),
3295
3294
  /* @__PURE__ */ e.jsx(
3296
- wa,
3295
+ ba,
3297
3296
  {
3298
3297
  open: ye,
3299
3298
  loading: R.solidifiedPlaybooksLoading,
@@ -3344,19 +3343,19 @@ function Qa(n = {}) {
3344
3343
  open: !!Ce,
3345
3344
  playbook: Ce,
3346
3345
  onClose: () => H(null),
3347
- onSubmit: (h, $) => {
3346
+ onSubmit: (h, L) => {
3348
3347
  H(null), z({
3349
3348
  message: h.name,
3350
3349
  playbook_id: h.playbook_id,
3351
- playbook_params: $
3350
+ playbook_params: L
3352
3351
  });
3353
3352
  }
3354
3353
  }
3355
3354
  ),
3356
- _e && /* @__PURE__ */ e.jsx($t, {}),
3355
+ _e && /* @__PURE__ */ e.jsx(Lt, {}),
3357
3356
  /* @__PURE__ */ e.jsx(_a, { queueStatus: ce })
3358
3357
  ] }) });
3359
3358
  }
3360
3359
  export {
3361
- Qa as default
3360
+ qa as default
3362
3361
  };