@yuku123/z-team-component 0.2.54 → 0.2.55

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 (50) hide show
  1. package/dist/{ChangeLogView-Cstbioyw.js → ChangeLogView-R6boINWk.js} +137 -137
  2. package/dist/{ComponentDoc-yvIrAz9-.js → ComponentDoc-DTJyJAy-.js} +121 -121
  3. package/dist/{InvitationManagementPage-CIouC3Fn.js → InvitationManagementPage-BZOxuoM5.js} +1 -1
  4. package/dist/{OnboardingPage-DScwVCi-.js → OnboardingPage-Be3MXW9i.js} +2 -2
  5. package/dist/{ScheduledTasks-Dd2lJrBF.js → ScheduledTasks-CxDbixJe.js} +2957 -2992
  6. package/dist/{SystemShell-DtvyWy0u.js → SystemShell-BEKwj3WF.js} +1 -1
  7. package/dist/{admin-logs-B9KS6VJz.js → admin-logs-DMF0dtG1.js} +2 -2
  8. package/dist/{api-CALqShkO.js → api-DhuqONeb.js} +210 -228
  9. package/dist/{api-CdVRdA0g.js → api-DqNgdbLm.js} +1 -1
  10. package/dist/createWorkspaceWsHandler-BKcAIc4B.js +13034 -0
  11. package/dist/{index-DEx5rtXv.js → index-8Qtz0IKN.js} +2 -2
  12. package/dist/{index-Pk7OkJrk.js → index-B30K72xQ.js} +517 -320
  13. package/dist/{index-7Pe_xBrh.js → index-B7cZdoRq.js} +1 -1
  14. package/dist/{index-C2Wkg1b5.js → index-B8eiFO_f.js} +3 -3
  15. package/dist/{index-DET70T3j.js → index-BKVWW3ba.js} +1 -1
  16. package/dist/{index-aw72ID7y.js → index-BM6XpIcw.js} +1 -1
  17. package/dist/{index-C3B7CbHo.js → index-BOcKPM37.js} +1 -1
  18. package/dist/{index-lftFkqfI.js → index-BP97Ev-W.js} +4 -4
  19. package/dist/{index-C6S3MIu4.js → index-BkX0I2aB.js} +56 -56
  20. package/dist/{index-DC5lxCN8.js → index-C5O0cK8A.js} +6 -6
  21. package/dist/index-C8Wkx3H_.js +8960 -0
  22. package/dist/{index-4YxdJwFm.js → index-CZ9xxAL0.js} +3 -3
  23. package/dist/{index-DLyAy3cr.js → index-CZxihNo5.js} +7 -7
  24. package/dist/{index-DKeYG0Fu.js → index-CbUsvCMy.js} +4 -4
  25. package/dist/{index-CLWgeKwr.js → index-Ct9MzvZV.js} +2 -2
  26. package/dist/{index-CGWttFLb.js → index-CzePRAbT.js} +4 -4
  27. package/dist/{index-CgQH7-9F.js → index-DQk6Pt6U.js} +3 -3
  28. package/dist/{index-DOygBsXO.js → index-DQmgOqd1.js} +1123 -1121
  29. package/dist/{index-D6V-4vNa.js → index-DV8rmjvN.js} +5 -5
  30. package/dist/{index-CKS65_Dw.js → index-DpNZTqcn.js} +3 -3
  31. package/dist/{index-usrA11ZG.js → index-JMzBzwiO.js} +617 -618
  32. package/dist/{index-DJOyOVn_.js → index-Otx98G8z.js} +74 -87
  33. package/dist/{index-C_2o9qgM.js → index-TPTesErt.js} +2 -2
  34. package/dist/index-mXMdvUYD.js +1182 -0
  35. package/dist/index.js +1 -1
  36. package/dist/{instance-f3C-1qYl.js → instance-Cr4_XM2r.js} +1 -1
  37. package/dist/pages.js +1 -1
  38. package/dist/{schedule-DfkgwPdE.js → schedule-BNLns-p4.js} +1 -1
  39. package/dist/{send-default-agent-team-message-d_ECdczr.js → send-default-agent-team-message-C9VWSWKJ.js} +1 -1
  40. package/dist/{sso-user-HcsSzg8P.js → sso-user-Cme2tmGq.js} +1 -1
  41. package/dist/{training-DnNQN0An.js → training-SjRAdtNQ.js} +1 -1
  42. package/dist/{useAppStore-kRZEA5WZ.js → useAppStore-C63xiq3-.js} +1 -1
  43. package/dist/{webide-DPjFYxLl.js → webide-DDFxSedU.js} +1526 -1526
  44. package/dist/z-team-component.css +2 -2
  45. package/package.json +1 -1
  46. package/dist/createWorkspaceWsHandler-CL5-4wFp.js +0 -13037
  47. package/dist/index-DLQoecEe.js +0 -1143
  48. package/dist/index-DWsfQMp8.js +0 -208
  49. package/dist/index-TDZM-Zv3.js +0 -9287
  50. package/dist/index-WIsi8fln.js +0 -339
@@ -16,7 +16,7 @@ import { MqApp as Q } from "@yuku123/z-mq-component";
16
16
  import { OssApp as Y } from "@yuku123/z-oss-component";
17
17
  import { ZkbApp as J } from "@yuku123/z-kb-component";
18
18
  import { ScriptProductizationPage as o } from "@yuku123/z-agent-component";
19
- import "./index-TDZM-Zv3.js";
19
+ import "./index-C8Wkx3H_.js";
20
20
  const c = (p, r) => T(() => p().then((A) => ({ default: A[r] }))), X = c(() => import("@yuku123/z-config-component"), "ComponentDocPage"), $ = c(() => import("@yuku123/z-mist-component"), "ComponentDocPage"), ee = c(() => import("@yuku123/z-meta-component"), "ComponentDocPage"), te = c(() => import("@yuku123/z-msg-component"), "ComponentDocPage"), ce = c(() => import("@yuku123/z-rpc-component"), "ComponentDocPage"), ae = c(() => import("@yuku123/z-kb-component"), "ComponentDocPage"), oe = c(() => import("@yuku123/z-oss-component"), "ComponentDocPage"), ie = c(() => import("@yuku123/z-vector-component"), "ComponentDocPage"), ne = c(() => import("@yuku123/z-graph-component"), "ComponentDocPage"), se = c(() => import("@yuku123/z-gw-component"), "ComponentDocPage"), pe = c(() => import("@yuku123/z-cache-component"), "ComponentDocPage"), re = c(() => import("@yuku123/z-mq-component"), "ComponentDocPage"), le = [
21
21
  {
22
22
  title: "配置中心",
@@ -1,14 +1,14 @@
1
1
  import { jsx as s, jsxs as C } from "react/jsx-runtime";
2
2
  import { f as z, r as v } from "./ctc-sso-DtJHC-2M.js";
3
- import { r as L, h as N, s as T } from "./sso-user-HcsSzg8P.js";
3
+ import { r as L, h as N, s as T } from "./sso-user-Cme2tmGq.js";
4
4
  import { CheckCircleFilled as q } from "@ant-design/icons";
5
5
  import { Spin as R } from "antd";
6
6
  import W from "query-string";
7
7
  import { useMemo as P, useState as p, useCallback as A, useEffect as U } from "react";
8
8
  import { useLocation as F } from "react-router-dom";
9
9
  import { h as H } from "./history-BlrA1eaW.js";
10
- import { c as Y, e as B } from "./api-CALqShkO.js";
11
- import { u as m } from "./useAppStore-kRZEA5WZ.js";
10
+ import { c as Y, e as B } from "./api-DhuqONeb.js";
11
+ import { u as m } from "./useAppStore-C63xiq3-.js";
12
12
  /* empty css */
13
13
  import { b as G } from "./mobile-client-O3yr9h6t.js";
14
14
  function ne() {
@@ -1,5 +1,5 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { C as r } from "./ChangeLogView-Cstbioyw.js";
2
+ import { C as r } from "./ChangeLogView-R6boINWk.js";
3
3
  function n() {
4
4
  return /* @__PURE__ */ e(r, { variant: "page" });
5
5
  }
@@ -2,7 +2,7 @@ import { jsxs as r, jsx as n, Fragment as H } from "react/jsx-runtime";
2
2
  import { BookOutlined as V, ReloadOutlined as Ne, SearchOutlined as fe, CloseOutlined as ge, CaretDownOutlined as ve, CaretRightOutlined as Te } from "@ant-design/icons";
3
3
  import { message as Se, Spin as F } from "antd";
4
4
  import { useState as k, useRef as M, useEffect as G, useCallback as C } from "react";
5
- import { a as A, B as R, u as E } from "./api-CALqShkO.js";
5
+ import { a as A, B as R, u as E } from "./api-DhuqONeb.js";
6
6
  function B(a) {
7
7
  const l = new URLSearchParams();
8
8
  Object.entries(a).forEach(([N, s]) => {
@@ -2,7 +2,7 @@ import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
2
  import { CopyOutlined as se, ReloadOutlined as Ne, PlusOutlined as xe, DeleteOutlined as $e, ClearOutlined as Le, CloseOutlined as Oe, SendOutlined as Ue, RobotOutlined as ve, CloudServerOutlined as Re, MessageOutlined as De, KeyOutlined as He, ApiOutlined as Fe, ToolOutlined as je, BarChartOutlined as qe } from "@ant-design/icons";
3
3
  import { Tooltip as Q, Tabs as Te, Button as R, Modal as de, Input as Se, Drawer as we, Spin as Y, Statistic as E, Table as Ae, message as G, Tag as J, Select as Ge, Checkbox as Je } from "antd";
4
4
  import { useState as x, useEffect as X, useCallback as j, useRef as me, useMemo as Be, Suspense as We, lazy as Qe } from "react";
5
- import { u as ze } from "./useAppStore-kRZEA5WZ.js";
5
+ import { u as ze } from "./useAppStore-C63xiq3-.js";
6
6
  import { AgentAppList as Ve, McpPage as Ye, SkillMarket as Xe } from "@yuku123/z-agent-component";
7
7
  const re = "ft_gateway_default_ak", Me = "system-default", Z = "", he = "";
8
8
  function ee(a = {}) {
@@ -1,16 +1,16 @@
1
1
  import { jsx as r, jsxs as x } from "react/jsx-runtime";
2
2
  import { f as z, r as T } from "./ctc-sso-DtJHC-2M.js";
3
- import { r as D, h as U, s as F } from "./sso-user-HcsSzg8P.js";
3
+ import { r as D, h as U, s as F } from "./sso-user-Cme2tmGq.js";
4
4
  import { CheckCircleFilled as W } from "@ant-design/icons";
5
5
  import { Result as B, Button as H, Spin as G } from "antd";
6
6
  import J from "query-string";
7
7
  import { useState as d, useRef as K, useCallback as O, useMemo as R, useEffect as E } from "react";
8
8
  import { useLocation as Q } from "react-router-dom";
9
9
  import { h as b } from "./history-BlrA1eaW.js";
10
- import { d as V, e as X } from "./api-CALqShkO.js";
11
- import { u as s } from "./useAppStore-kRZEA5WZ.js";
10
+ import { d as V, e as X } from "./api-DhuqONeb.js";
11
+ import { u as s } from "./useAppStore-C63xiq3-.js";
12
12
  import { b as Y } from "./mobile-client-O3yr9h6t.js";
13
- import { s as Z } from "./send-default-agent-team-message-d_ECdczr.js";
13
+ import { s as Z } from "./send-default-agent-team-message-C9VWSWKJ.js";
14
14
  function de() {
15
15
  const h = Q(), f = J.parse(h.search), c = String(
16
16
  f.scenarioCode ?? f.scenario_code ?? ""
@@ -1,8 +1,8 @@
1
1
  import { jsxs as n, jsx as a } from "react/jsx-runtime";
2
2
  import { FilePptOutlined as P, EditOutlined as O, ScheduleOutlined as A, FileImageOutlined as $, CloseOutlined as F } from "@ant-design/icons";
3
- import { useState as m, useCallback as x } from "react";
4
- import { h as w } from "./history-BlrA1eaW.js";
5
- const R = "_portalRoot_1sa2c_7", q = "_portalHeader_1sa2c_47", B = "_brandRow_1sa2c_53", D = "_brandLogo_1sa2c_59", L = "_brandTitle_1sa2c_63", M = "_brandSubtitle_1sa2c_70", G = "_portalMain_1sa2c_76", H = "_sectionTitle_1sa2c_85", j = "_cardGrid_1sa2c_92", K = "_scenarioCard_1sa2c_98", W = "_cardTop_1sa2c_114", z = "_cardIcon_1sa2c_119", Z = "_cardInfo_1sa2c_123", Q = "_cardTitle_1sa2c_127", J = "_cardTags_1sa2c_134", U = "_tag_1sa2c_139", X = "_cardDesc_1sa2c_148", Y = "_cardAction_1sa2c_154", V = "_btnCreate_1sa2c_159", ee = "_portalFooter_1sa2c_184", ae = "_linkWorkspace_1sa2c_190", oe = "_modalOverlay_1sa2c_206", te = "_modalBox_1sa2c_217", re = "_modalHeader_1sa2c_226", ne = "_modalIcon_1sa2c_239", ce = "_modalClose_1sa2c_242", le = "_modalBody_1sa2c_255", ie = "_modalDesc_1sa2c_258", se = "_fieldGroup_1sa2c_264", de = "_fieldLabel_1sa2c_269", _e = "_required_1sa2c_274", pe = "_fieldInput_1sa2c_278", me = "_fieldInputError_1sa2c_298", ue = "_fieldTextarea_1sa2c_301", fe = "_fieldTextareaError_1sa2c_325", he = "_fieldError_1sa2c_328", ge = "_modalFooter_1sa2c_333", Ce = "_btnCancel_1sa2c_339", be = "_btnConfirm_1sa2c_354", e = {
3
+ import { useState as p, useCallback as x } from "react";
4
+ import { h as v } from "./history-BlrA1eaW.js";
5
+ const R = "_portalRoot_1mw0k_2", q = "_portalHeader_1mw0k_11", B = "_brandRow_1mw0k_15", D = "_brandLogo_1mw0k_21", L = "_brandTitle_1mw0k_25", M = "_brandSubtitle_1mw0k_34", G = "_portalMain_1mw0k_40", H = "_sectionTitle_1mw0k_47", j = "_cardGrid_1mw0k_53", K = "_scenarioCard_1mw0k_59", W = "_cardTop_1mw0k_75", z = "_cardIcon_1mw0k_80", Z = "_cardInfo_1mw0k_84", Q = "_cardTitle_1mw0k_87", J = "_cardTags_1mw0k_93", U = "_tag_1mw0k_98", X = "_cardDesc_1mw0k_106", Y = "_cardAction_1mw0k_112", V = "_btnCreate_1mw0k_117", ee = "_portalFooter_1mw0k_136", ae = "_linkWorkspace_1mw0k_140", oe = "_modalOverlay_1mw0k_154", te = "_modalBox_1mw0k_165", re = "_modalHeader_1mw0k_174", ne = "_modalIcon_1mw0k_187", le = "_modalClose_1mw0k_190", ie = "_modalBody_1mw0k_203", ce = "_modalDesc_1mw0k_206", de = "_fieldGroup_1mw0k_212", se = "_fieldLabel_1mw0k_217", me = "_required_1mw0k_222", _e = "_fieldInput_1mw0k_226", pe = "_fieldInputError_1mw0k_244", ue = "_fieldTextarea_1mw0k_247", fe = "_fieldTextareaError_1mw0k_270", ke = "_fieldError_1mw0k_273", he = "_modalFooter_1mw0k_278", ge = "_btnCancel_1mw0k_284", we = "_btnConfirm_1mw0k_297", e = {
6
6
  portalRoot: R,
7
7
  portalHeader: q,
8
8
  brandRow: B,
@@ -28,21 +28,21 @@ const R = "_portalRoot_1sa2c_7", q = "_portalHeader_1sa2c_47", B = "_brandRow_1s
28
28
  modalBox: te,
29
29
  modalHeader: re,
30
30
  modalIcon: ne,
31
- modalClose: ce,
32
- modalBody: le,
33
- modalDesc: ie,
34
- fieldGroup: se,
35
- fieldLabel: de,
36
- required: _e,
37
- fieldInput: pe,
38
- fieldInputError: me,
31
+ modalClose: le,
32
+ modalBody: ie,
33
+ modalDesc: ce,
34
+ fieldGroup: de,
35
+ fieldLabel: se,
36
+ required: me,
37
+ fieldInput: _e,
38
+ fieldInputError: pe,
39
39
  fieldTextarea: ue,
40
40
  fieldTextareaError: fe,
41
- fieldError: he,
42
- modalFooter: ge,
43
- btnCancel: Ce,
44
- btnConfirm: be
45
- }, Ne = window.ZTEAM_USE_KAPI === !0 ? "/kapi/z-team/api" : "/z-team/api", Te = [
41
+ fieldError: ke,
42
+ modalFooter: he,
43
+ btnCancel: ge,
44
+ btnConfirm: we
45
+ }, Ce = window.ZTEAM_USE_KAPI === !0 ? "/kapi/z-team/api" : "/z-team/api", be = [
46
46
  {
47
47
  key: "ppt-creation",
48
48
  icon: /* @__PURE__ */ a(P, {}),
@@ -122,23 +122,23 @@ const R = "_portalRoot_1sa2c_7", q = "_portalHeader_1sa2c_47", B = "_brandRow_1s
122
122
  }
123
123
  }
124
124
  ];
125
- function ye({
125
+ function Ne({
126
126
  scenario: o,
127
- onClose: c,
128
- onCreated: d
127
+ onClose: l,
128
+ onCreated: s
129
129
  }) {
130
- var g, C, b, N, T;
131
- const [r, s] = m(""), [u, f] = m(!1), [l, i] = m(""), E = !!((g = o.inputConfig) != null && g.multiline), h = x(async () => {
132
- var y, k, I;
130
+ var h, g, w, C, b;
131
+ const [r, d] = p(""), [u, f] = p(!1), [i, c] = p(""), E = !!((h = o.inputConfig) != null && h.multiline), k = x(async () => {
132
+ var N, T, y;
133
133
  const t = r.trim();
134
- if ((y = o.inputConfig) != null && y.required && !t) {
135
- i(`请填写${o.inputConfig.label}`);
134
+ if ((N = o.inputConfig) != null && N.required && !t) {
135
+ c(`请填写${o.inputConfig.label}`);
136
136
  return;
137
137
  }
138
- i(""), f(!0);
138
+ c(""), f(!0);
139
139
  try {
140
- const _ = ((k = t.split(`
141
- `)[0]) == null ? void 0 : k.trim()) ?? "", S = _.length > 0 ? _.length > 32 ? `${_.slice(0, 32)}…` : _ : `${Date.now()}`, v = `${o.title}-${S}`, p = await (await fetch(`${Ne}/scenario-instances/`, {
140
+ const m = ((T = t.split(`
141
+ `)[0]) == null ? void 0 : T.trim()) ?? "", S = m.length > 0 ? m.length > 32 ? `${m.slice(0, 32)}…` : m : `${Date.now()}`, I = `${o.title}-${S}`, _ = await (await fetch(`${Ce}/scenario-instances/`, {
142
142
  method: "POST",
143
143
  credentials: "include",
144
144
  headers: {
@@ -146,9 +146,9 @@ function ye({
146
146
  "Content-Type": "application/json"
147
147
  },
148
148
  body: JSON.stringify({
149
- name: v,
149
+ name: I,
150
150
  description: `${o.title}:${t.length > 120 ? `${t.slice(0, 120)}…` : t}`,
151
- workspace_path: v,
151
+ workspace_path: I,
152
152
  scenario_code: o.scenarioCode,
153
153
  extend_params: {
154
154
  [o.inputConfig.paramKey]: t,
@@ -156,34 +156,34 @@ function ye({
156
156
  }
157
157
  })
158
158
  })).json();
159
- p.success && ((I = p.data) != null && I.id) ? d(p.data.id) : i(p.message || "创建失败,请重试");
159
+ _.success && ((y = _.data) != null && y.id) ? s(_.data.id) : c(_.message || "创建失败,请重试");
160
160
  } catch {
161
- i("网络错误,请检查服务是否可用");
161
+ c("网络错误,请检查服务是否可用");
162
162
  } finally {
163
163
  f(!1);
164
164
  }
165
- }, [r, o, d]);
166
- return /* @__PURE__ */ a("div", { className: e.modalOverlay, onClick: c, children: /* @__PURE__ */ n("div", { className: e.modalBox, onClick: (t) => t.stopPropagation(), children: [
165
+ }, [r, o, s]);
166
+ return /* @__PURE__ */ a("div", { className: e.modalOverlay, onClick: l, children: /* @__PURE__ */ n("div", { className: e.modalBox, onClick: (t) => t.stopPropagation(), children: [
167
167
  /* @__PURE__ */ n("div", { className: e.modalHeader, children: [
168
168
  /* @__PURE__ */ a("span", { className: e.modalIcon, children: o.icon }),
169
169
  /* @__PURE__ */ a("h3", { children: o.title }),
170
- /* @__PURE__ */ a("button", { className: e.modalClose, onClick: c, children: /* @__PURE__ */ a(F, {}) })
170
+ /* @__PURE__ */ a("button", { className: e.modalClose, onClick: l, children: /* @__PURE__ */ a(F, {}) })
171
171
  ] }),
172
172
  /* @__PURE__ */ n("div", { className: e.modalBody, children: [
173
173
  /* @__PURE__ */ a("p", { className: e.modalDesc, children: o.description }),
174
174
  /* @__PURE__ */ n("div", { className: e.fieldGroup, children: [
175
175
  /* @__PURE__ */ n("label", { className: e.fieldLabel, children: [
176
- (C = o.inputConfig) == null ? void 0 : C.label,
177
- ((b = o.inputConfig) == null ? void 0 : b.required) && /* @__PURE__ */ a("span", { className: e.required, children: "*" })
176
+ (g = o.inputConfig) == null ? void 0 : g.label,
177
+ ((w = o.inputConfig) == null ? void 0 : w.required) && /* @__PURE__ */ a("span", { className: e.required, children: "*" })
178
178
  ] }),
179
179
  E ? /* @__PURE__ */ a(
180
180
  "textarea",
181
181
  {
182
- className: `${e.fieldTextarea} ${l ? e.fieldTextareaError : ""}`,
182
+ className: `${e.fieldTextarea} ${i ? e.fieldTextareaError : ""}`,
183
183
  value: r,
184
- placeholder: (N = o.inputConfig) == null ? void 0 : N.placeholder,
184
+ placeholder: (C = o.inputConfig) == null ? void 0 : C.placeholder,
185
185
  onChange: (t) => {
186
- s(t.target.value), l && i("");
186
+ d(t.target.value), i && c("");
187
187
  },
188
188
  rows: 5,
189
189
  autoFocus: !0
@@ -191,29 +191,29 @@ function ye({
191
191
  ) : /* @__PURE__ */ a(
192
192
  "input",
193
193
  {
194
- className: `${e.fieldInput} ${l ? e.fieldInputError : ""}`,
194
+ className: `${e.fieldInput} ${i ? e.fieldInputError : ""}`,
195
195
  type: "text",
196
196
  value: r,
197
- placeholder: (T = o.inputConfig) == null ? void 0 : T.placeholder,
197
+ placeholder: (b = o.inputConfig) == null ? void 0 : b.placeholder,
198
198
  onChange: (t) => {
199
- s(t.target.value), l && i("");
199
+ d(t.target.value), i && c("");
200
200
  },
201
201
  onKeyDown: (t) => {
202
- t.key === "Enter" && h();
202
+ t.key === "Enter" && k();
203
203
  },
204
204
  autoFocus: !0
205
205
  }
206
206
  ),
207
- l && /* @__PURE__ */ a("p", { className: e.fieldError, children: l })
207
+ i && /* @__PURE__ */ a("p", { className: e.fieldError, children: i })
208
208
  ] })
209
209
  ] }),
210
210
  /* @__PURE__ */ n("div", { className: e.modalFooter, children: [
211
- /* @__PURE__ */ a("button", { className: e.btnCancel, onClick: c, children: "取消" }),
211
+ /* @__PURE__ */ a("button", { className: e.btnCancel, onClick: l, children: "取消" }),
212
212
  /* @__PURE__ */ a(
213
213
  "button",
214
214
  {
215
215
  className: e.btnConfirm,
216
- onClick: h,
216
+ onClick: k,
217
217
  disabled: u,
218
218
  children: u ? "创建中..." : "确认并开始"
219
219
  }
@@ -222,10 +222,10 @@ function ye({
222
222
  ] }) });
223
223
  }
224
224
  function Ee() {
225
- const [o, c] = m(
225
+ const [o, l] = p(
226
226
  null
227
- ), d = x((r) => {
228
- localStorage.setItem("ft_last_project_id", String(r)), localStorage.removeItem("ft_last_file_path"), w.push("/workspace");
227
+ ), s = x((r) => {
228
+ localStorage.setItem("ft_last_project_id", String(r)), localStorage.removeItem("ft_last_file_path"), v.push("/workspace");
229
229
  }, []);
230
230
  return /* @__PURE__ */ n("div", { className: e.portalRoot, children: [
231
231
  /* @__PURE__ */ n("header", { className: e.portalHeader, children: [
@@ -237,12 +237,12 @@ function Ee() {
237
237
  ] }),
238
238
  /* @__PURE__ */ n("main", { className: e.portalMain, children: [
239
239
  /* @__PURE__ */ a("h2", { className: e.sectionTitle, children: "可用场景" }),
240
- /* @__PURE__ */ a("div", { className: e.cardGrid, children: Te.map((r) => /* @__PURE__ */ n("div", { className: e.scenarioCard, children: [
240
+ /* @__PURE__ */ a("div", { className: e.cardGrid, children: be.map((r) => /* @__PURE__ */ n("div", { className: e.scenarioCard, children: [
241
241
  /* @__PURE__ */ n("div", { className: e.cardTop, children: [
242
242
  /* @__PURE__ */ a("span", { className: e.cardIcon, children: r.icon }),
243
243
  /* @__PURE__ */ n("div", { className: e.cardInfo, children: [
244
244
  /* @__PURE__ */ a("h3", { className: e.cardTitle, children: r.title }),
245
- /* @__PURE__ */ a("div", { className: e.cardTags, children: r.tags.map((s) => /* @__PURE__ */ a("span", { className: e.tag, children: s }, s)) })
245
+ /* @__PURE__ */ a("div", { className: e.cardTags, children: r.tags.map((d) => /* @__PURE__ */ a("span", { className: e.tag, children: d }, d)) })
246
246
  ] })
247
247
  ] }),
248
248
  /* @__PURE__ */ a("p", { className: e.cardDesc, children: r.description }),
@@ -250,7 +250,7 @@ function Ee() {
250
250
  "button",
251
251
  {
252
252
  className: e.btnCreate,
253
- onClick: () => c(r),
253
+ onClick: () => l(r),
254
254
  children: "创建"
255
255
  }
256
256
  ) })
@@ -260,16 +260,16 @@ function Ee() {
260
260
  "button",
261
261
  {
262
262
  className: e.linkWorkspace,
263
- onClick: () => w.push("/workspace"),
263
+ onClick: () => v.push("/workspace"),
264
264
  children: "进入工作台 →"
265
265
  }
266
266
  ) }),
267
267
  o && /* @__PURE__ */ a(
268
- ye,
268
+ Ne,
269
269
  {
270
270
  scenario: o,
271
- onClose: () => c(null),
272
- onCreated: d
271
+ onClose: () => l(null),
272
+ onCreated: s
273
273
  }
274
274
  )
275
275
  ] });
@@ -1,18 +1,18 @@
1
1
  import { jsxs as d, jsx as t } from "react/jsx-runtime";
2
2
  import { r as q, f as le } from "./ctc-sso-DtJHC-2M.js";
3
- import { r as de, h as K, s as X } from "./sso-user-HcsSzg8P.js";
3
+ import { r as de, h as K, s as X } from "./sso-user-Cme2tmGq.js";
4
4
  import { ArrowLeftOutlined as ue, PlusOutlined as pe, LogoutOutlined as me, SearchOutlined as he } from "@ant-design/icons";
5
5
  import { Spin as M, Button as D, Input as fe, Empty as J, Tag as ge, message as be } from "antd";
6
6
  import Q from "query-string";
7
7
  import { useState as S, useRef as E, useEffect as y, useMemo as Y, useCallback as B } from "react";
8
8
  import { useLocation as ke } from "react-router-dom";
9
9
  import { h as R } from "./history-BlrA1eaW.js";
10
- import { c as we, C as Se } from "./createWorkspaceWsHandler-CL5-4wFp.js";
11
- import { u as c, f as ye, T as ve } from "./useAppStore-kRZEA5WZ.js";
12
- import { o as Te, q as Ne, v as je, w as Ce, e as ee } from "./api-CALqShkO.js";
13
- import { l as xe, j as Pe } from "./instance-f3C-1qYl.js";
10
+ import { c as we, C as Se } from "./createWorkspaceWsHandler-BKcAIc4B.js";
11
+ import { u as c, f as ye, T as ve } from "./useAppStore-C63xiq3-.js";
12
+ import { o as Te, q as Ne, v as je, w as Ce, e as ee } from "./api-DhuqONeb.js";
13
+ import { l as xe, j as Pe } from "./instance-Cr4_XM2r.js";
14
14
  /* empty css */
15
- import { s as _e } from "./admin-logs-B9KS6VJz.js";
15
+ import { s as _e } from "./admin-logs-DMF0dtG1.js";
16
16
  const ae = 2e4;
17
17
  function Ee(l, o = ae, n = globalThis) {
18
18
  let s = null;