@glodon-aiot/agent-cli-ui 3.3.6 → 3.4.0-alpha.3

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 (54) hide show
  1. package/dist/es/AgentClientUI.mjs +59 -54
  2. package/dist/es/Dialog/AgentChat/Tools/SessionHistoryDrawer/index.mjs +74 -0
  3. package/dist/es/Dialog/AgentChat/index.mjs +589 -560
  4. package/dist/es/Dialog/SessionList/index.mjs +255 -173
  5. package/dist/es/Dialog/index.mjs +117 -103
  6. package/dist/es/QuillEditor/index.mjs +19 -17
  7. package/dist/es/components/Sider/index.mjs +24 -0
  8. package/dist/es/constant.mjs +2 -0
  9. package/dist/es/index.mjs +100 -99
  10. package/dist/es/packages/agent-cli-ui/package.json.mjs +3 -3
  11. package/dist/es/packages/react-components/dist/es/index.mjs +1 -1
  12. package/dist/es/src/style10.css +1 -1
  13. package/dist/es/src/style11.css +1 -1
  14. package/dist/es/src/style12.css +1 -1
  15. package/dist/es/src/style13.css +1 -1
  16. package/dist/es/src/style14.css +1 -1
  17. package/dist/es/src/style15.css +1 -1
  18. package/dist/es/src/style16.css +1 -1
  19. package/dist/es/src/style17.css +1 -1
  20. package/dist/es/src/style18.css +1 -1
  21. package/dist/es/src/style19.css +1 -1
  22. package/dist/es/src/style20.css +1 -1
  23. package/dist/es/src/style21.css +1 -1
  24. package/dist/es/src/style22.css +1 -1
  25. package/dist/es/src/style23.css +1 -1
  26. package/dist/es/src/style24.css +1 -1
  27. package/dist/es/src/style25.css +1 -1
  28. package/dist/es/src/style26.css +1 -1
  29. package/dist/es/src/style28.css +1 -1
  30. package/dist/es/src/style29.css +1 -1
  31. package/dist/es/src/style30.css +1 -1
  32. package/dist/es/src/style31.css +1 -1
  33. package/dist/es/src/style32.css +1 -0
  34. package/dist/es/src/style33.css +1 -0
  35. package/dist/es/src/style5.css +1 -1
  36. package/dist/es/src/style6.css +1 -1
  37. package/dist/es/src/style7.css +1 -1
  38. package/dist/es/src/style8.css +1 -1
  39. package/dist/es/src/style9.css +1 -1
  40. package/dist/lib/index.css +1 -1
  41. package/dist/lib/index.js +57 -57
  42. package/dist/src/AgentClientUI.d.ts +1 -0
  43. package/dist/src/Dialog/AgentChat/HistoryItem/FileItem/index.d.ts +1 -1
  44. package/dist/src/Dialog/AgentChat/HistoryItem/SessionAction/index.d.ts +1 -1
  45. package/dist/src/Dialog/AgentChat/HistoryItem/index.d.ts +1 -1
  46. package/dist/src/Dialog/AgentChat/PromptSetting/index.d.ts +2 -2
  47. package/dist/src/Dialog/AgentChat/Tools/SessionHistoryDrawer/index.d.ts +2 -2
  48. package/dist/src/Dialog/AgentChat/index.d.ts +8 -3
  49. package/dist/src/Dialog/SessionList/index.d.ts +9 -5
  50. package/dist/src/Dialog/index.d.ts +1 -0
  51. package/dist/src/QuillEditor/index.d.ts +1 -0
  52. package/dist/src/components/KnowledgeList/index.d.ts +1 -1
  53. package/dist/src/types.d.ts +1 -0
  54. package/package.json +3 -3
@@ -1,215 +1,297 @@
1
- var k = (x, P, N) => new Promise((e, o) => {
2
- var v = (p) => {
1
+ var ot = Object.defineProperty;
2
+ var G = Object.getOwnPropertySymbols;
3
+ var it = Object.prototype.hasOwnProperty, lt = Object.prototype.propertyIsEnumerable;
4
+ var $ = (k, r, e) => r in k ? ot(k, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : k[r] = e, q = (k, r) => {
5
+ for (var e in r || (r = {}))
6
+ it.call(r, e) && $(k, e, r[e]);
7
+ if (G)
8
+ for (var e of G(r))
9
+ lt.call(r, e) && $(k, e, r[e]);
10
+ return k;
11
+ };
12
+ var x = (k, r, e) => new Promise((i, O) => {
13
+ var w = (m) => {
3
14
  try {
4
- b(N.next(p));
5
- } catch (s) {
6
- o(s);
15
+ E(e.next(m));
16
+ } catch (u) {
17
+ O(u);
7
18
  }
8
- }, w = (p) => {
19
+ }, T = (m) => {
9
20
  try {
10
- b(N.throw(p));
11
- } catch (s) {
12
- o(s);
21
+ E(e.throw(m));
22
+ } catch (u) {
23
+ O(u);
13
24
  }
14
- }, b = (p) => p.done ? e(p.value) : Promise.resolve(p.value).then(v, w);
15
- b((N = N.apply(x, P)).next());
25
+ }, E = (m) => m.done ? i(m.value) : Promise.resolve(m.value).then(w, T);
26
+ E((e = e.apply(k, r)).next());
16
27
  });
17
- import { jsx as n, jsxs as f } from "react/jsx-runtime";
18
- import { forwardRef as B, useState as L, useContext as q, useEffect as j, useImperativeHandle as G } from "react";
19
- import { Button as J, Popconfirm as _, Input as Q, Space as W } from "antd";
20
- import X from "dayjs";
21
- import Y from "classnames";
22
- import A from "../../components/Iconfont/index.mjs";
23
- import Z from "../../context.mjs";
24
- /* empty css */import { useMemoizedFn as $ } from "ahooks";
25
- import { NET_OPEN_STATUS as H } from "../../constant.mjs";
26
- const u = B((x, P) => {
28
+ import { jsx as n, jsxs as A } from "react/jsx-runtime";
29
+ import { forwardRef as nt, useState as C, useContext as ct, useEffect as P, useImperativeHandle as st, useMemo as rt } from "react";
30
+ import { Button as mt, Popconfirm as J, Input as pt, Space as ht } from "antd";
31
+ import N from "dayjs";
32
+ import ft from "classnames";
33
+ import Q from "../../components/Iconfont/index.mjs";
34
+ import yt from "../../context.mjs";
35
+ /* empty css */import { useMemoizedFn as W } from "ahooks";
36
+ import { NET_OPEN_STATUS as X } from "../../constant.mjs";
37
+ const vt = nt((k, r) => {
27
38
  const {
28
- sider: N,
29
39
  currentSession: e,
30
- setCurrentSession: o,
31
- checkKnowledges: v,
40
+ setCurrentSession: i,
41
+ checkKnowledges: O,
32
42
  application: w,
33
- networkStatus: b
34
- } = x, [p, s] = L(), {
35
- agentClient: m,
36
- mode: O,
37
- features: t
38
- } = q(Z), [r, E] = L([]), [V, D] = L(v), K = $(() => {
39
- var a;
40
- if (!((a = e == null ? void 0 : e.data) != null && a.id))
43
+ networkStatus: T,
44
+ isShowHeader: E = !0,
45
+ sessions: m,
46
+ // 👈 从外部接收
47
+ setSessions: u,
48
+ // 👈 从外部接收
49
+ afterSessionClick: Y,
50
+ sessionId: L
51
+ } = k, [V, H] = C(), {
52
+ agentClient: v,
53
+ mode: Z,
54
+ features: a
55
+ } = ct(yt), [_, K] = C(O), z = W((t) => {
56
+ if (!t.id)
41
57
  return;
42
- const d = r.map((l) => {
43
- var c, i;
44
- return ((c = l.data) == null ? void 0 : c.id) === ((i = e.data) == null ? void 0 : i.id) ? e : l;
58
+ const d = m.map((o) => {
59
+ var c;
60
+ return ((c = o.data) == null ? void 0 : c.id) === t.id && (o.data = q({}, t)), o;
45
61
  });
46
- E([...d]);
62
+ u([...d]);
47
63
  });
48
- j(() => {
49
- m == null || m.getSessions().then((d) => k(void 0, null, function* () {
50
- var a;
51
- if (E([...d]), !((a = e == null ? void 0 : e.data) != null && a.id) && (d != null && d.length) && O === "inlay") {
52
- const l = d[0];
53
- o == null || o(l);
54
- }
64
+ P(() => {
65
+ v == null || v.getSessions().then((t) => x(void 0, null, function* () {
66
+ var d;
67
+ if (u([...t]), !((d = e == null ? void 0 : e.data) != null && d.id) && (t != null && t.length) && Z === "inlay") {
68
+ const o = t[0];
69
+ L || i == null || i(o);
70
+ } else
71
+ e === void 0 && (L || i == null || i(null));
55
72
  }));
56
- }, []), j(() => {
57
- var d;
58
- if (!((d = e == null ? void 0 : e.data) != null && d.id) && v === void 0) {
59
- const a = typeof (t == null ? void 0 : t.knowledges) == "object" && t.knowledges.default || void 0;
60
- D(a);
73
+ }, [L]), P(() => {
74
+ var t;
75
+ if (!((t = e == null ? void 0 : e.data) != null && t.id) && O === void 0) {
76
+ const d = typeof (a == null ? void 0 : a.knowledges) == "object" && a.knowledges.default || void 0;
77
+ K(d);
61
78
  return;
62
79
  }
63
- D(v);
64
- }, [v]), j(() => {
65
- e == null || e.addEventListener("data:updated", K);
66
- }, [e]), G(P, () => ({
67
- create(d) {
68
- return M(d).then((a) => (o == null || o(a), a));
80
+ K(O);
81
+ }, [O]), P(() => {
82
+ e == null || e.addEventListener("data:updated", z);
83
+ }, [e]), st(r, () => ({
84
+ create(t) {
85
+ return B(t).then((d) => (i == null || i(d), d));
69
86
  },
70
- list: () => Promise.resolve(r)
87
+ list: () => Promise.resolve(m)
71
88
  }));
72
- const M = (d) => {
73
- const a = typeof (t == null ? void 0 : t.connectNetwork) == "object" && typeof (t == null ? void 0 : t.connectNetwork.default) == "boolean" ? t.connectNetwork.default : !1;
74
- return new Promise((l) => k(void 0, null, function* () {
75
- var h;
76
- const c = typeof (t == null ? void 0 : t.promptVariables) == "object" ? (t == null ? void 0 : t.promptVariables.default) || [] : void 0, i = yield m == null ? void 0 : m.loadSession("", {
77
- name: d == null ? void 0 : d.name,
89
+ const B = (t) => {
90
+ const d = typeof (a == null ? void 0 : a.connectNetwork) == "object" && typeof (a == null ? void 0 : a.connectNetwork.default) == "boolean" ? a.connectNetwork.default : !1;
91
+ return new Promise((o) => x(void 0, null, function* () {
92
+ var p;
93
+ const c = typeof (a == null ? void 0 : a.promptVariables) == "object" ? (a == null ? void 0 : a.promptVariables.default) || [] : void 0, s = yield v == null ? void 0 : v.loadSession("", {
94
+ name: t == null ? void 0 : t.name,
78
95
  // @ts-ignore netOpen入参是number 响应是boolen
79
96
  // 只有对话有联网 其它没有
80
97
  // 不传netOpen会默认取defaultNetOpen
81
- netOpen: (w == null ? void 0 : w.type) === 0 ? d != null && d.netOpen ? d.netOpen : a ? H.OPEN : H.CLOSE : void 0,
82
- knowledges: (h = e == null ? void 0 : e.data) != null && h.id ? d == null ? void 0 : d.knowledges : V,
98
+ netOpen: (w == null ? void 0 : w.type) === 0 ? t != null && t.netOpen ? t.netOpen : d ? X.OPEN : X.CLOSE : void 0,
99
+ knowledges: (p = e == null ? void 0 : e.data) != null && p.id ? t == null ? void 0 : t.knowledges : _,
83
100
  promptVariables: c
84
101
  });
85
- i == null || i.addEventListener("data:created", () => k(void 0, null, function* () {
86
- E([i, ...r]), l(i);
102
+ s == null || s.addEventListener("data:created", () => x(void 0, null, function* () {
103
+ u([s, ...m]), o(s);
87
104
  }));
88
105
  }));
89
- }, T = () => {
90
- M({
91
- knowledges: V
92
- }).then((d) => {
93
- o == null || o(d);
106
+ }, I = () => {
107
+ B({
108
+ knowledges: _
109
+ }).then((t) => {
110
+ i == null || i(t);
94
111
  });
95
- }, z = (d) => {
96
- m == null || m.removeSession(d, !0).then(() => k(void 0, null, function* () {
97
- var l, c;
98
- const a = r.filter((i) => {
99
- var h, g;
100
- return ((h = i.data) == null ? void 0 : h.id) !== ((g = d.data) == null ? void 0 : g.id);
112
+ }, S = (t) => {
113
+ v == null || v.removeSession(t, !0).then(() => x(void 0, null, function* () {
114
+ var o, c;
115
+ const d = m.filter((s) => {
116
+ var p, g;
117
+ return ((p = s.data) == null ? void 0 : p.id) !== ((g = t.data) == null ? void 0 : g.id);
101
118
  });
102
- ((l = d.data) == null ? void 0 : l.id) === ((c = e == null ? void 0 : e.data) == null ? void 0 : c.id) && (a != null && a.length ? o == null || o(a[0]) : o == null || o(void 0)), E([...a]);
119
+ ((o = t.data) == null ? void 0 : o.id) === ((c = e == null ? void 0 : e.data) == null ? void 0 : c.id) && (d != null && d.length ? i == null || i(d[0]) : i == null || i(null)), u([...d]);
103
120
  }));
104
- }, C = (d) => {
105
- var a;
106
- s((a = d.data) == null ? void 0 : a.name);
107
- }, F = (d) => {
108
- p && (d.rename(p), d == null || d.addEventListener("data:updated", K));
109
- }, R = (d) => k(void 0, null, function* () {
110
- o == null || o(d);
111
- }), U = (d) => {
112
- s(d.target.value);
121
+ }, tt = (t) => {
122
+ var d;
123
+ H((d = t.data) == null ? void 0 : d.name);
124
+ }, et = (t) => {
125
+ V && (t.rename(V), t == null || t.addEventListener("data:updated", z));
126
+ }, at = (t) => x(void 0, null, function* () {
127
+ i == null || i(t), Y == null || Y(t);
128
+ }), dt = (t) => {
129
+ H(t.target.value);
113
130
  };
114
- return j(() => {
115
- var a, l, c, i;
131
+ P(() => {
132
+ var d, o, c, s;
116
133
  if (!(e != null && e.id))
117
134
  return;
118
- const d = {};
119
- typeof (t == null ? void 0 : t.knowledges) == "object" && ((a = t == null ? void 0 : t.knowledges) != null && a.default) && (d.knowledges = (l = t == null ? void 0 : t.knowledges) == null ? void 0 : l.default), typeof (t == null ? void 0 : t.promptVariables) == "object" && ((c = t == null ? void 0 : t.promptVariables) != null && c.default) && (d.promptVariables = (i = t == null ? void 0 : t.promptVariables) == null ? void 0 : i.default), m == null || m.loadSession(e.id, d);
120
- }, [e]), /* @__PURE__ */ n("div", {
135
+ const t = {};
136
+ typeof (a == null ? void 0 : a.knowledges) == "object" && ((d = a == null ? void 0 : a.knowledges) != null && d.default) && (t.knowledges = (o = a == null ? void 0 : a.knowledges) == null ? void 0 : o.default), typeof (a == null ? void 0 : a.promptVariables) == "object" && ((c = a == null ? void 0 : a.promptVariables) != null && c.default) && (t.promptVariables = (s = a == null ? void 0 : a.promptVariables) == null ? void 0 : s.default), v == null || v.loadSession(e.id, t);
137
+ }, [e]);
138
+ const F = W((t) => {
139
+ const d = N().endOf("day"), o = d.subtract(1, "day"), c = d.subtract(7, "day"), s = d.subtract(30, "day"), p = [], g = [], M = [], j = [], b = {};
140
+ return t.forEach((l) => {
141
+ var y;
142
+ const h = N((y = l.data) == null ? void 0 : y.createdAt);
143
+ if (h.isAfter(o))
144
+ g.push(l);
145
+ else if (h.isAfter(c))
146
+ M.push(l);
147
+ else if (h.isAfter(s))
148
+ j.push(l);
149
+ else {
150
+ const f = h.format("YYYY-MM");
151
+ b[f] || (b[f] = []), b[f].push(l);
152
+ }
153
+ }), g.length > 0 && p.push({
154
+ title: "今天",
155
+ sessions: g.sort((l, h) => {
156
+ var y, f;
157
+ return N((y = h.data) == null ? void 0 : y.createdAt).valueOf() - N((f = l.data) == null ? void 0 : f.createdAt).valueOf();
158
+ }),
159
+ key: "today"
160
+ }), M.length > 0 && p.push({
161
+ title: "7天内",
162
+ sessions: M.sort((l, h) => {
163
+ var y, f;
164
+ return N((y = h.data) == null ? void 0 : y.createdAt).valueOf() - N((f = l.data) == null ? void 0 : f.createdAt).valueOf();
165
+ }),
166
+ key: "seven-days"
167
+ }), j.length > 0 && p.push({
168
+ title: "30天内",
169
+ sessions: j.sort((l, h) => {
170
+ var y, f;
171
+ return N((y = h.data) == null ? void 0 : y.createdAt).valueOf() - N((f = l.data) == null ? void 0 : f.createdAt).valueOf();
172
+ }),
173
+ key: "thirty-days"
174
+ }), Object.keys(b).sort((l, h) => h.localeCompare(l)).forEach((l) => {
175
+ const h = b[l].sort((y, f) => {
176
+ var R, U;
177
+ return N((R = f.data) == null ? void 0 : R.createdAt).valueOf() - N((U = y.data) == null ? void 0 : U.createdAt).valueOf();
178
+ });
179
+ p.push({
180
+ title: N(l).format("YYYY年MM月"),
181
+ sessions: h,
182
+ key: `month-${l}`
183
+ });
184
+ }), p;
185
+ }), D = rt(() => F(m), [m, F]);
186
+ return /* @__PURE__ */ n("div", {
121
187
  className: "bot-session-container",
122
- children: N && O === "inlay" && /* @__PURE__ */ f("div", {
188
+ children: /* @__PURE__ */ A("div", {
123
189
  className: "agent-sessions",
124
- children: [/* @__PURE__ */ f("div", {
190
+ children: [E && (a == null ? void 0 : a.siderTitle) && /* @__PURE__ */ n("div", {
125
191
  className: "sessions-header",
126
- children: [/* @__PURE__ */ n("span", {
192
+ children: /* @__PURE__ */ n("div", {
127
193
  className: "session-header-title",
128
- children: "会话列表"
129
- }), /* @__PURE__ */ n(J, {
130
- className: "session-header-btn",
131
- onClick: T,
132
- children: "+ 新建会话"
133
- })]
134
- }), /* @__PURE__ */ n("div", {
194
+ children: (w == null ? void 0 : w.name) || "-"
195
+ })
196
+ }), /* @__PURE__ */ A("div", {
135
197
  className: "sessions-main",
136
- children: r == null ? void 0 : r.map((d) => {
137
- var a, l, c, i, h, g;
138
- return /* @__PURE__ */ n("div", {
139
- className: Y({
140
- "session-item": !0,
141
- "session-item__active": ((a = d.data) == null ? void 0 : a.id) === ((l = e == null ? void 0 : e.data) == null ? void 0 : l.id)
142
- }),
143
- onClick: () => R(d),
144
- children: /* @__PURE__ */ f("div", {
145
- className: "session-item-wrapper",
146
- children: [/* @__PURE__ */ f("div", {
147
- className: "session-item-top",
148
- children: [/* @__PURE__ */ n("span", {
149
- className: "item-top-title",
150
- children: ((c = d.data) == null ? void 0 : c.name) || "-"
151
- }), /* @__PURE__ */ f("div", {
152
- className: "item-top-action",
153
- onClick: (y) => y.stopPropagation(),
154
- children: [/* @__PURE__ */ n(_, {
155
- getPopupContainer: (y) => y.parentNode,
156
- icon: !1,
157
- title: /* @__PURE__ */ n(Q, {
158
- placeholder: "请输入内容",
159
- autoComplete: "off",
160
- showCount: !0,
161
- value: p,
162
- onChange: U,
163
- maxLength: 15
164
- }),
165
- onConfirm: () => F(d),
166
- children: /* @__PURE__ */ n(A, {
167
- type: "icon-bianji2",
168
- onClick: () => C(d),
169
- className: "icon-action",
170
- style: {
171
- marginRight: "8px"
172
- }
173
- })
174
- }), /* @__PURE__ */ n(_, {
175
- getPopupContainer: (y) => y.parentNode,
176
- icon: !1,
177
- title: /* @__PURE__ */ f(W, {
178
- direction: "vertical",
179
- children: [/* @__PURE__ */ n("div", {
180
- children: "删除确认?"
181
- }), /* @__PURE__ */ n("div", {
182
- children: "会话删除后不可恢复,请确认是否删除!"
198
+ children: [E && /* @__PURE__ */ n("div", {
199
+ className: "session-header-btn-wrapper",
200
+ children: /* @__PURE__ */ n(mt, {
201
+ className: "session-header-btn",
202
+ onClick: I,
203
+ type: "primary",
204
+ children: "+ 新会话"
205
+ })
206
+ }), D == null ? void 0 : D.map((t) => {
207
+ var d;
208
+ return /* @__PURE__ */ A("div", {
209
+ className: "session-group",
210
+ children: [/* @__PURE__ */ n("div", {
211
+ className: "group-header",
212
+ style: {
213
+ top: E ? 48 : 0
214
+ },
215
+ children: t.title
216
+ }), (d = t.sessions) == null ? void 0 : d.map((o) => {
217
+ var c, s, p, g, M, j;
218
+ return /* @__PURE__ */ n("div", {
219
+ className: ft({
220
+ "session-item": !0,
221
+ "session-item__active": ((c = o.data) == null ? void 0 : c.id) === ((s = e == null ? void 0 : e.data) == null ? void 0 : s.id)
222
+ }),
223
+ onClick: () => at(o),
224
+ children: /* @__PURE__ */ A("div", {
225
+ className: "session-item-wrapper",
226
+ children: [/* @__PURE__ */ A("div", {
227
+ className: "session-item-top",
228
+ children: [/* @__PURE__ */ n("span", {
229
+ className: "item-top-title",
230
+ children: ((p = o.data) == null ? void 0 : p.name) || "-"
231
+ }), /* @__PURE__ */ A("div", {
232
+ className: "item-top-action",
233
+ onClick: (b) => b.stopPropagation(),
234
+ children: [/* @__PURE__ */ n(J, {
235
+ getPopupContainer: (b) => b.parentNode,
236
+ icon: !1,
237
+ title: /* @__PURE__ */ n(pt, {
238
+ placeholder: "请输入内容",
239
+ autoComplete: "off",
240
+ showCount: !0,
241
+ value: V,
242
+ onChange: dt,
243
+ maxLength: 15
244
+ }),
245
+ onConfirm: () => et(o),
246
+ children: /* @__PURE__ */ n(Q, {
247
+ type: "icon-bianji2",
248
+ onClick: () => tt(o),
249
+ className: "icon-action",
250
+ style: {
251
+ marginRight: "8px"
252
+ }
253
+ })
254
+ }), /* @__PURE__ */ n(J, {
255
+ getPopupContainer: (b) => b.parentNode,
256
+ icon: !1,
257
+ title: /* @__PURE__ */ A(ht, {
258
+ direction: "vertical",
259
+ children: [/* @__PURE__ */ n("div", {
260
+ children: "删除确认?"
261
+ }), /* @__PURE__ */ n("div", {
262
+ children: "会话删除后不可恢复,请确认是否删除!"
263
+ })]
264
+ }),
265
+ onConfirm: () => S(o),
266
+ children: /* @__PURE__ */ n(Q, {
267
+ style: {
268
+ fontSize: "18px"
269
+ },
270
+ className: "icon-action",
271
+ type: "icon-del"
272
+ })
183
273
  })]
184
- }),
185
- onConfirm: () => z(d),
186
- children: /* @__PURE__ */ n(A, {
187
- style: {
188
- fontSize: "18px"
189
- },
190
- className: "icon-action",
191
- type: "icon-del"
192
- })
274
+ })]
275
+ }), /* @__PURE__ */ A("div", {
276
+ className: "session-item-bottom",
277
+ children: [/* @__PURE__ */ n("span", {
278
+ className: "item-bottom-desc",
279
+ children: ((g = o.data) == null ? void 0 : g.finialMessage) || "-"
280
+ }), /* @__PURE__ */ n("span", {
281
+ className: "item-bottom-time",
282
+ children: N((M = o.data) == null ? void 0 : M.createdAt).format("MM/DD HH:mm:ss")
283
+ })]
193
284
  })]
194
- })]
195
- }), /* @__PURE__ */ f("div", {
196
- className: "session-item-bottom",
197
- children: [/* @__PURE__ */ n("span", {
198
- className: "item-bottom-desc",
199
- children: ((i = d.data) == null ? void 0 : i.finialMessage) || "-"
200
- }), /* @__PURE__ */ n("span", {
201
- className: "item-bottom-time",
202
- children: X((h = d.data) == null ? void 0 : h.createdAt).format("MM/DD HH:mm:ss")
203
- })]
204
- })]
205
- })
206
- }, (g = d.data) == null ? void 0 : g.id);
207
- })
285
+ })
286
+ }, (j = o.data) == null ? void 0 : j.id);
287
+ })]
288
+ }, t.key);
289
+ })]
208
290
  })]
209
291
  })
210
292
  });
211
293
  });
212
- u.displayName = "SessionList";
294
+ vt.displayName = "SessionList";
213
295
  export {
214
- u as default
296
+ vt as default
215
297
  };