@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.
- package/dist/es/AgentClientUI.mjs +59 -54
- package/dist/es/Dialog/AgentChat/Tools/SessionHistoryDrawer/index.mjs +74 -0
- package/dist/es/Dialog/AgentChat/index.mjs +589 -560
- package/dist/es/Dialog/SessionList/index.mjs +255 -173
- package/dist/es/Dialog/index.mjs +117 -103
- package/dist/es/QuillEditor/index.mjs +19 -17
- package/dist/es/components/Sider/index.mjs +24 -0
- package/dist/es/constant.mjs +2 -0
- package/dist/es/index.mjs +100 -99
- package/dist/es/packages/agent-cli-ui/package.json.mjs +3 -3
- package/dist/es/packages/react-components/dist/es/index.mjs +1 -1
- package/dist/es/src/style10.css +1 -1
- package/dist/es/src/style11.css +1 -1
- package/dist/es/src/style12.css +1 -1
- package/dist/es/src/style13.css +1 -1
- package/dist/es/src/style14.css +1 -1
- package/dist/es/src/style15.css +1 -1
- package/dist/es/src/style16.css +1 -1
- package/dist/es/src/style17.css +1 -1
- package/dist/es/src/style18.css +1 -1
- package/dist/es/src/style19.css +1 -1
- package/dist/es/src/style20.css +1 -1
- package/dist/es/src/style21.css +1 -1
- package/dist/es/src/style22.css +1 -1
- package/dist/es/src/style23.css +1 -1
- package/dist/es/src/style24.css +1 -1
- package/dist/es/src/style25.css +1 -1
- package/dist/es/src/style26.css +1 -1
- package/dist/es/src/style28.css +1 -1
- package/dist/es/src/style29.css +1 -1
- package/dist/es/src/style30.css +1 -1
- package/dist/es/src/style31.css +1 -1
- package/dist/es/src/style32.css +1 -0
- package/dist/es/src/style33.css +1 -0
- package/dist/es/src/style5.css +1 -1
- package/dist/es/src/style6.css +1 -1
- package/dist/es/src/style7.css +1 -1
- package/dist/es/src/style8.css +1 -1
- package/dist/es/src/style9.css +1 -1
- package/dist/lib/index.css +1 -1
- package/dist/lib/index.js +57 -57
- package/dist/src/AgentClientUI.d.ts +1 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/FileItem/index.d.ts +1 -1
- package/dist/src/Dialog/AgentChat/HistoryItem/SessionAction/index.d.ts +1 -1
- package/dist/src/Dialog/AgentChat/HistoryItem/index.d.ts +1 -1
- package/dist/src/Dialog/AgentChat/PromptSetting/index.d.ts +2 -2
- package/dist/src/Dialog/AgentChat/Tools/SessionHistoryDrawer/index.d.ts +2 -2
- package/dist/src/Dialog/AgentChat/index.d.ts +8 -3
- package/dist/src/Dialog/SessionList/index.d.ts +9 -5
- package/dist/src/Dialog/index.d.ts +1 -0
- package/dist/src/QuillEditor/index.d.ts +1 -0
- package/dist/src/components/KnowledgeList/index.d.ts +1 -1
- package/dist/src/types.d.ts +1 -0
- package/package.json +3 -3
|
@@ -1,215 +1,297 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
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
|
-
|
|
5
|
-
} catch (
|
|
6
|
-
|
|
15
|
+
E(e.next(m));
|
|
16
|
+
} catch (u) {
|
|
17
|
+
O(u);
|
|
7
18
|
}
|
|
8
|
-
},
|
|
19
|
+
}, T = (m) => {
|
|
9
20
|
try {
|
|
10
|
-
|
|
11
|
-
} catch (
|
|
12
|
-
|
|
21
|
+
E(e.throw(m));
|
|
22
|
+
} catch (u) {
|
|
23
|
+
O(u);
|
|
13
24
|
}
|
|
14
|
-
},
|
|
15
|
-
|
|
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
|
|
18
|
-
import { forwardRef as
|
|
19
|
-
import { Button as
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
/* empty css */import { useMemoizedFn as
|
|
25
|
-
import { NET_OPEN_STATUS as
|
|
26
|
-
const
|
|
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:
|
|
31
|
-
checkKnowledges:
|
|
40
|
+
setCurrentSession: i,
|
|
41
|
+
checkKnowledges: O,
|
|
32
42
|
application: w,
|
|
33
|
-
networkStatus:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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 =
|
|
43
|
-
var c
|
|
44
|
-
return ((c =
|
|
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
|
-
|
|
62
|
+
u([...d]);
|
|
47
63
|
});
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
var
|
|
51
|
-
if (
|
|
52
|
-
const
|
|
53
|
-
|
|
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
|
-
}, []),
|
|
57
|
-
var
|
|
58
|
-
if (!((
|
|
59
|
-
const
|
|
60
|
-
|
|
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
|
-
|
|
64
|
-
}, [
|
|
65
|
-
e == null || e.addEventListener("data:updated",
|
|
66
|
-
}, [e]),
|
|
67
|
-
create(
|
|
68
|
-
return
|
|
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(
|
|
87
|
+
list: () => Promise.resolve(m)
|
|
71
88
|
}));
|
|
72
|
-
const
|
|
73
|
-
const
|
|
74
|
-
return new Promise((
|
|
75
|
-
var
|
|
76
|
-
const c = typeof (
|
|
77
|
-
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 ?
|
|
82
|
-
knowledges: (
|
|
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
|
-
|
|
86
|
-
|
|
102
|
+
s == null || s.addEventListener("data:created", () => x(void 0, null, function* () {
|
|
103
|
+
u([s, ...m]), o(s);
|
|
87
104
|
}));
|
|
88
105
|
}));
|
|
89
|
-
},
|
|
90
|
-
|
|
91
|
-
knowledges:
|
|
92
|
-
}).then((
|
|
93
|
-
|
|
106
|
+
}, I = () => {
|
|
107
|
+
B({
|
|
108
|
+
knowledges: _
|
|
109
|
+
}).then((t) => {
|
|
110
|
+
i == null || i(t);
|
|
94
111
|
});
|
|
95
|
-
},
|
|
96
|
-
|
|
97
|
-
var
|
|
98
|
-
const
|
|
99
|
-
var
|
|
100
|
-
return ((
|
|
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
|
-
((
|
|
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
|
-
},
|
|
105
|
-
var
|
|
106
|
-
|
|
107
|
-
},
|
|
108
|
-
|
|
109
|
-
},
|
|
110
|
-
|
|
111
|
-
}),
|
|
112
|
-
|
|
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
|
-
|
|
115
|
-
var
|
|
131
|
+
P(() => {
|
|
132
|
+
var d, o, c, s;
|
|
116
133
|
if (!(e != null && e.id))
|
|
117
134
|
return;
|
|
118
|
-
const
|
|
119
|
-
typeof (
|
|
120
|
-
}, [e])
|
|
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:
|
|
188
|
+
children: /* @__PURE__ */ A("div", {
|
|
123
189
|
className: "agent-sessions",
|
|
124
|
-
children: [/* @__PURE__ */
|
|
190
|
+
children: [E && (a == null ? void 0 : a.siderTitle) && /* @__PURE__ */ n("div", {
|
|
125
191
|
className: "sessions-header",
|
|
126
|
-
children:
|
|
192
|
+
children: /* @__PURE__ */ n("div", {
|
|
127
193
|
className: "session-header-title",
|
|
128
|
-
children: "
|
|
129
|
-
})
|
|
130
|
-
|
|
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:
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
className:
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
children: /* @__PURE__ */ n(
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
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
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
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
|
-
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
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
|
-
|
|
294
|
+
vt.displayName = "SessionList";
|
|
213
295
|
export {
|
|
214
|
-
|
|
296
|
+
vt as default
|
|
215
297
|
};
|