@glodon-aiot/agent-cli-ui 3.7.0-alpha.2 → 3.7.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.
@@ -1,4 +1,4 @@
1
- var I = (L, P, g) => new Promise((d, N) => {
1
+ var I = (L, P, g) => new Promise((c, N) => {
2
2
  var R = (h) => {
3
3
  try {
4
4
  C(g.next(h));
@@ -11,7 +11,7 @@ var I = (L, P, g) => new Promise((d, N) => {
11
11
  } catch (S) {
12
12
  N(S);
13
13
  }
14
- }, C = (h) => h.done ? d(h.value) : Promise.resolve(h.value).then(R, A);
14
+ }, C = (h) => h.done ? c(h.value) : Promise.resolve(h.value).then(R, A);
15
15
  C((g = g.apply(L, P)).next());
16
16
  });
17
17
  import { jsx as r, Fragment as le, jsxs as b } from "react/jsx-runtime";
@@ -20,16 +20,16 @@ import { forwardRef as he, useState as E, useRef as G, useContext as pe, useEffe
20
20
  import { LoadingOutlined as ye, CloseCircleFilled as Ce, CloudUploadOutlined as be } from "@ant-design/icons";
21
21
  /* empty css */import Se from "lodash/debounce";
22
22
  import Ne from "./FileCard/index.mjs";
23
- import { IFileOrigin as Fe } from "@glodon-aiot/apis";
24
- import we from "./ClearModal/index.mjs";
23
+ import { IFileOrigin as we } from "@glodon-aiot/apis";
24
+ import Fe from "./ClearModal/index.mjs";
25
25
  import j from "../../../../components/Iconfont/index.mjs";
26
26
  import ve from "../../../../context.mjs";
27
- import { isValidImageUrlWithAnyExtension as Ie, extractFileName as Ee, FILE_NAME_MAX_LENGTH as X, fileTypes as ze } from "../../../../utils/index.mjs";
28
- import { MB as Ae } from "../../../../constant.mjs";
29
- const Ue = he((L, P) => {
27
+ import { isValidImageUrlWithAnyExtension as Ie, FILE_NAME_MAX_LENGTH as X, fileTypes as Ee } from "../../../../utils/index.mjs";
28
+ import { MB as ze } from "../../../../constant.mjs";
29
+ const Ae = he((L, P) => {
30
30
  const {
31
31
  appId: g,
32
- sid: d,
32
+ sid: c,
33
33
  onStatusChange: N,
34
34
  createSession: R,
35
35
  disabled: A = !1,
@@ -40,22 +40,22 @@ const Ue = he((L, P) => {
40
40
  afterFilesClear: K,
41
41
  docViewerUrl: q,
42
42
  isFirstSession: J
43
- } = L, [c, m] = E([]), f = G(c), [Q, U] = E([]), [Y, T] = E(!1), [F, k] = E(""), w = G(D), [$, B] = E(!1), {
43
+ } = L, [d, m] = E([]), f = G(d), [Q, U] = E([]), [Y, T] = E(!1), [w, k] = E(""), F = G(D), [$, B] = E(!1), {
44
44
  Dragger: Z
45
45
  } = W, {
46
46
  service: a,
47
47
  popupContainer: t
48
48
  } = pe(ve);
49
49
  z(() => {
50
- w.current = D;
50
+ F.current = D;
51
51
  }, [D]), xe(P, () => ({
52
52
  update: H,
53
53
  clear: _
54
54
  })), z(() => {
55
55
  J || (U([]), m([]), H());
56
- }, [d]);
57
- const H = () => d ? new Promise((e, i) => {
58
- a == null || a.getApplicationIdSessionKnowledgeFiles(g, d, {
56
+ }, [c]);
57
+ const H = () => c ? new Promise((e, i) => {
58
+ a == null || a.getApplicationIdSessionKnowledgeFiles(g, c, {
59
59
  //1是未开启
60
60
  enabled: 1
61
61
  }).then((s) => {
@@ -64,12 +64,12 @@ const Ue = he((L, P) => {
64
64
  e();
65
65
  });
66
66
  }) : Promise.resolve(), ee = (e) => I(void 0, null, function* () {
67
- d && (e == null || e.map((i) => I(void 0, null, function* () {
67
+ c && (e == null || e.map((i) => I(void 0, null, function* () {
68
68
  var s;
69
69
  try {
70
- if (yield a == null ? void 0 : a.checkFileReady(g, d, i.id)) {
70
+ if (yield a == null ? void 0 : a.checkFileReady(g, c, i.id)) {
71
71
  const l = [...f.current], p = e.findIndex((u) => u.id === i.id);
72
- p !== -1 && (l[p].status = 2), m(l), C && C(i, d);
72
+ p !== -1 && (l[p].status = 2), m(l), C && C(i, c);
73
73
  }
74
74
  } catch (n) {
75
75
  if (((s = n.cause) == null ? void 0 : s.code) === -101) {
@@ -81,8 +81,8 @@ const Ue = he((L, P) => {
81
81
  })));
82
82
  });
83
83
  z(() => {
84
- N && N(F);
85
- }, [F]);
84
+ N && N(w);
85
+ }, [w]);
86
86
  const O = (e) => I(void 0, null, function* () {
87
87
  if (e.size <= 0)
88
88
  return o.config({
@@ -92,7 +92,7 @@ const Ue = he((L, P) => {
92
92
  getContainer: void 0,
93
93
  prefixCls: "gbot-message"
94
94
  }), !1;
95
- if (Ee(e.name).length > X)
95
+ if (e.name.length > X)
96
96
  return o.config({
97
97
  getContainer: () => (t == null ? void 0 : t.current) || document.body,
98
98
  prefixCls: "gbot-message"
@@ -100,7 +100,7 @@ const Ue = he((L, P) => {
100
100
  getContainer: void 0,
101
101
  prefixCls: "gbot-message"
102
102
  }), !1;
103
- if (e.size > 50 * Ae)
103
+ if (e.size > 50 * ze)
104
104
  return o.config({
105
105
  getContainer: () => (t == null ? void 0 : t.current) || document.body,
106
106
  prefixCls: "gbot-message"
@@ -108,7 +108,7 @@ const Ue = he((L, P) => {
108
108
  getContainer: void 0,
109
109
  prefixCls: "gbot-message"
110
110
  }), !1;
111
- if (ze.some((n) => n === e.type)) {
111
+ if (Ee.some((n) => n === e.type)) {
112
112
  const n = e;
113
113
  n.status = 1, m((l) => l.length >= 10 ? l : [...l, n]);
114
114
  } else
@@ -116,24 +116,24 @@ const Ue = he((L, P) => {
116
116
  return !1;
117
117
  });
118
118
  z(() => {
119
- if (c.length < 10 ? T(!1) : T(!0), !c.length) {
119
+ if (d.length < 10 ? T(!1) : T(!0), !d.length) {
120
120
  k("");
121
121
  return;
122
122
  }
123
- const e = c.find((n) => n.status === 1), i = c.find((n) => n.status === 3);
124
- c.every((n) => n.status === 2) ? k("successed") : e ? k("process") : i && k("failed"), S && S(c);
125
- }, [c]), z(() => {
126
- f.current = c;
127
- const e = c.filter((i) => !Q.includes(i));
128
- se(e), U(c);
129
- }, [c]);
123
+ const e = d.find((n) => n.status === 1), i = d.find((n) => n.status === 3);
124
+ d.every((n) => n.status === 2) ? k("successed") : e ? k("process") : i && k("failed"), S && S(d);
125
+ }, [d]), z(() => {
126
+ f.current = d;
127
+ const e = d.filter((i) => !Q.includes(i));
128
+ se(e), U(d);
129
+ }, [d]);
130
130
  const te = (e, i, s) => I(void 0, null, function* () {
131
131
  var p;
132
132
  const n = [...f.current], l = f.current.findIndex((u) => u === s);
133
133
  l !== -1 && (n[l].id = i), m(n);
134
134
  try {
135
- const u = yield a == null ? void 0 : a.checkFileReady(g, e, i, () => w.current, void 0, (x) => {
136
- const y = [...f.current], v = f.current.findIndex((de) => de === s);
135
+ const u = yield a == null ? void 0 : a.checkFileReady(g, e, i, () => F.current, void 0, (x) => {
136
+ const y = [...f.current], v = f.current.findIndex((ce) => ce === s);
137
137
  y[v].url = x.url, m(y);
138
138
  });
139
139
  if (u) {
@@ -147,11 +147,11 @@ const Ue = he((L, P) => {
147
147
  return;
148
148
  }
149
149
  }
150
- }), ne = () => d ? Promise.resolve(d) : R(), se = (e) => {
150
+ }), ne = () => c ? Promise.resolve(c) : R(), se = (e) => {
151
151
  e.length && ne().then((i) => {
152
152
  e == null || e.forEach((s) => {
153
153
  var n;
154
- w.current = !0, (n = ce(i, s)) == null || n.then((l) => {
154
+ F.current = !0, (n = de(i, s)) == null || n.then((l) => {
155
155
  var u;
156
156
  if (!l)
157
157
  return;
@@ -160,9 +160,9 @@ const Ue = he((L, P) => {
160
160
  name: s.name,
161
161
  size: s.size,
162
162
  type: 1,
163
- origin: Fe.AECPILOT
163
+ origin: we.AECPILOT
164
164
  };
165
- w.current && ((u = re(i, p)) == null || u.then((x) => te(i, x, s)));
165
+ F.current && ((u = re(i, p)) == null || u.then((x) => te(i, x, s)));
166
166
  });
167
167
  });
168
168
  });
@@ -175,8 +175,8 @@ const Ue = he((L, P) => {
175
175
  prefixCls: "gbot-message"
176
176
  });
177
177
  }, 300), ie = (e) => {
178
- d && e != null && e.id && (a == null || a.delApplicationIdSessionKnowledgeFileId(g, d, e.id).then((i) => {
179
- const s = c.filter((n) => n.id !== e.id);
178
+ c && e != null && e.id && (a == null || a.delApplicationIdSessionKnowledgeFileId(g, c, e.id).then((i) => {
179
+ const s = d.filter((n) => n.id !== e.id);
180
180
  m(s), o.config({
181
181
  getContainer: () => (t == null ? void 0 : t.current) || document.body,
182
182
  prefixCls: "gbot-message"
@@ -220,7 +220,7 @@ const Ue = he((L, P) => {
220
220
  }), /* @__PURE__ */ r(M, {
221
221
  className: "action",
222
222
  type: "link",
223
- disabled: !c.length,
223
+ disabled: !d.length,
224
224
  onClick: () => {
225
225
  B(!0);
226
226
  },
@@ -238,7 +238,7 @@ const Ue = he((L, P) => {
238
238
  })]
239
239
  })]
240
240
  })
241
- }), ce = (e, i) => {
241
+ }), de = (e, i) => {
242
242
  if (!e)
243
243
  throw Error("session is not exist.");
244
244
  return a == null ? void 0 : a.uploadFile(e, i).catch(() => (o.config({
@@ -253,7 +253,7 @@ const Ue = he((L, P) => {
253
253
  children: /* @__PURE__ */ r(ue, {
254
254
  size: "small",
255
255
  color: "#9C24F2",
256
- count: F === "successed" ? c.length : F === "process" ? /* @__PURE__ */ r(fe, {
256
+ count: w === "successed" ? d.length : w === "process" ? /* @__PURE__ */ r(fe, {
257
257
  className: "file-action file-process",
258
258
  indicator: /* @__PURE__ */ r(ye, {
259
259
  style: {
@@ -261,7 +261,7 @@ const Ue = he((L, P) => {
261
261
  },
262
262
  spin: !0
263
263
  })
264
- }) : F === "failed" ? /* @__PURE__ */ r(Ce, {
264
+ }) : w === "failed" ? /* @__PURE__ */ r(Ce, {
265
265
  style: {
266
266
  color: "#dc4446",
267
267
  fontSize: 14
@@ -276,16 +276,16 @@ const Ue = he((L, P) => {
276
276
  })
277
277
  }), _ = () => new Promise((e) => {
278
278
  const i = f.current;
279
- if (!d)
279
+ if (!c)
280
280
  return e();
281
281
  const s = [];
282
282
  i.filter((n) => n.id).forEach((n) => s.push({
283
283
  id: n.id,
284
284
  status: n.status
285
- })), a == null || a.delApplicationIdSessionKnowledgeFile(g, d, {
285
+ })), a == null || a.delApplicationIdSessionKnowledgeFile(g, c, {
286
286
  files: s
287
287
  }).then(() => {
288
- U([]), m([]), f.current = [], K && K(), w.current = !1, e();
288
+ U([]), m([]), f.current = [], K && K(), F.current = !1, e();
289
289
  });
290
290
  });
291
291
  return /* @__PURE__ */ b("div", {
@@ -303,7 +303,7 @@ const Ue = he((L, P) => {
303
303
  getPopupContainer: () => (t == null ? void 0 : t.current) || document.body,
304
304
  content: /* @__PURE__ */ r("div", {
305
305
  className: "file-upload",
306
- children: c.length > 0 ? /* @__PURE__ */ r("div", {
306
+ children: d.length > 0 ? /* @__PURE__ */ r("div", {
307
307
  className: "upload-wrapper",
308
308
  children: /* @__PURE__ */ r("div", {
309
309
  className: "input-files",
@@ -311,7 +311,7 @@ const Ue = he((L, P) => {
311
311
  display: "flex",
312
312
  flexDirection: "column"
313
313
  },
314
- children: c == null ? void 0 : c.map((e, i) => /* @__PURE__ */ r(Ne, {
314
+ children: d == null ? void 0 : d.map((e, i) => /* @__PURE__ */ r(Ne, {
315
315
  file: e,
316
316
  actions: {
317
317
  preview: () => {
@@ -341,7 +341,7 @@ const Ue = he((L, P) => {
341
341
  ie(e);
342
342
  },
343
343
  download: () => {
344
- d && (a == null || a.getApplicationIdSessionKnowledgeFileId(g, d, e.id).then((s) => {
344
+ c && (a == null || a.getApplicationIdSessionKnowledgeFileId(g, c, e.id).then((s) => {
345
345
  if (!(s != null && s.url)) {
346
346
  o.config({
347
347
  getContainer: () => (t == null ? void 0 : t.current) || document.body,
@@ -399,7 +399,7 @@ const Ue = he((L, P) => {
399
399
  title: ae,
400
400
  trigger: "click",
401
401
  children: V
402
- }), $ && /* @__PURE__ */ r(we, {
402
+ }), $ && /* @__PURE__ */ r(Fe, {
403
403
  isvisible: $,
404
404
  onClose: (e) => {
405
405
  e === "clear" && _(), B(!1);
@@ -407,7 +407,7 @@ const Ue = he((L, P) => {
407
407
  })]
408
408
  });
409
409
  });
410
- Ue.displayName = "UploadFiles";
410
+ Ae.displayName = "UploadFiles";
411
411
  export {
412
- Ue as default
412
+ Ae as default
413
413
  };
@@ -1,4 +1,4 @@
1
- const e = "@glodon-aiot/agent-cli-ui", t = "3.7.0-alpha.2", s = "./dist/es/index.mjs", i = "./dist/lib/index.js", o = "./dist/src/index.d.ts", n = {
1
+ const e = "@glodon-aiot/agent-cli-ui", t = "3.7.0-alpha.3", s = "./dist/es/index.mjs", i = "./dist/lib/index.js", o = "./dist/src/index.d.ts", n = {
2
2
  import: "./dist/es/index.mjs",
3
3
  require: "./dist/lib/index.js",
4
4
  types: "./dist/src/index.d.ts"
@@ -25,8 +25,8 @@ const e = "@glodon-aiot/agent-cli-ui", t = "3.7.0-alpha.2", s = "./dist/es/index
25
25
  webpack: "*"
26
26
  }, p = {
27
27
  "@ant-design/icons": "^5.3.4",
28
- "@glodon-aiot/apis": "^3.7.0-alpha.2",
29
- "@glodon-aiot/bot-client-sdk": "^3.7.0-alpha.2",
28
+ "@glodon-aiot/apis": "^3.7.0-alpha.3",
29
+ "@glodon-aiot/bot-client-sdk": "^3.7.0-alpha.3",
30
30
  "@matejmazur/react-mathjax": "^0.1.10",
31
31
  "@react-pdf-viewer/core": "^3.12.0",
32
32
  "@react-pdf-viewer/default-layout": "^3.12.0",
@@ -1 +1 @@
1
- .gbot-dialog-modal .file-preview{width:auto;border-radius:6px;border:1px solid #e8e9eb;background:#ffffff;position:relative;display:inline-block;max-height:80px}.gbot-dialog-modal .file-preview .file-icon{height:100%;width:48px}.gbot-dialog-modal .file-preview.small{height:30px;width:150px;padding:3px 6px 3px 3px}.gbot-dialog-modal .file-preview.small .file-icon{width:24px}.gbot-dialog-modal .file-preview .file-desc{flex:1;overflow:hidden}.gbot-dialog-modal .file-preview .file-desc .file-desc-name{color:#5c5f66;font-size:12px;font-style:normal;font-weight:700;line-height:150%;margin-bottom:4px}.gbot-dialog-modal .file-preview .file-action{position:absolute;right:-8px;top:-8px}.gbot-dialog-modal .file-preview .file-process{background-color:#f7f7f9;border-radius:8px;width:16px;height:16px;line-height:16px;text-align:center;display:inline-flex;align-items:center;justify-content:center}.gbot-dialog-modal .file-preview .file-remove{display:inline-block;border-radius:10px;width:20px;height:20px;line-height:20px;text-align:center;color:#84868c;border:1px solid #e8e9eb;display:inline-flex;align-items:center;justify-content:center;background-color:#f7f7f9}.gbot-dialog-modal .file-preview .file-remove:hover{background-color:#fff;color:#b452ff}.gbot-dialog-modal .file-remove-tooltip .gbot-tooltip-content .gbot-tooltip-inner{padding:12px}
1
+ .gbot-dialog-modal .history-item{margin-bottom:16px}.gbot-dialog-modal .history-item .history-item-user{width:100%}.gbot-dialog-modal .history-item .history-item-user .item-user-panel{display:flex;justify-content:flex-end}.gbot-dialog-modal .history-item .history-item-user .item-user-panel .user-panel-main{max-width:100%}.gbot-dialog-modal .history-item .history-item-user .item-user-panel .user-panel-main .item-user-content{background:#f9f2ff;padding:12px;border-radius:12px 2px 12px 12px;border:1px solid #9c24f2;display:inline-block;width:auto;max-width:100%;color:#070c14;word-wrap:break-word}.gbot-dialog-modal .history-item .history-item-user .item-user-file{display:flex-end;margin-top:10px}.gbot-dialog-modal .history-item .history-item-user .item-user-images{display:flex;justify-content:flex-end}.gbot-dialog-modal .history-item .history-item-user ::selection{background-color:#b1d7ffb3;color:#fff}.gbot-dialog-modal .history-item .history-item-bot{width:100%;border-radius:2px 12px 12px;background:white;padding:0 12px}.gbot-dialog-modal .history-item .history-item-bot .item-bot-plugin{padding-top:12px}.gbot-dialog-modal .history-item .history-item-bot .item-bot-plugin .bot-plugin-status .plugin-status-success{display:inline-block;width:14px;height:14px;color:#fff;background:#47d1cb;border-radius:50%;font-size:10px;display:flex;align-items:center;justify-content:center}.gbot-dialog-modal .history-item .history-item-bot .item-bot-plugin .bot-plugin-status .plugin-status-error{display:inline-block;width:14px;height:14px;color:#fff;background:#f95b81;border-radius:50%;font-size:10px;display:flex;align-items:center;justify-content:center}.gbot-dialog-modal .history-item .history-item-bot .item-bot-plugin .bot-plugin-status .plugin-status-loading{display:inline-block;width:14px;height:14px;color:#477bff;border-radius:50%;font-size:10px;display:flex;align-items:center;justify-content:center}.gbot-dialog-modal .history-item .history-item-bot .item-bot-plugin .bot-plugin-title{font-weight:700;color:#000000a6}.gbot-dialog-modal .history-item .history-item-bot .item-bot-plugin .bot-plugin-action{border:1px solid #00000026;border-radius:4px;color:#000000e0;padding:1px 8px}.gbot-dialog-modal .history-item .history-item-bot .item-bot-plugin .gbot-collapse-header{padding:0;height:38px;display:flex;align-items:center}.gbot-dialog-modal .history-item .history-item-bot .item-bot-plugin .gbot-collapse-content-box{padding:0}.gbot-dialog-modal .history-item .history-item-bot .item-bot-plugin .bot-plugin-content{height:32px;line-height:32px;font-weight:700}.gbot-dialog-modal .history-item .history-item-bot .item-bot-plugin .bot-plugin-json{background:white}.gbot-dialog-modal .history-item .history-item-bot .item-bot-net{padding-top:12px}.gbot-dialog-modal .history-item .history-item-bot .item-bot-content{width:100%;border-radius:2px 12px 12px;background:white;padding:12px 0;word-wrap:break-word}.gbot-dialog-modal .history-item .history-item-bot .item-bot-content .content-think{margin-bottom:12px}.gbot-dialog-modal .history-item .history-item-bot .item-bot-content .content-think .think-top{font-size:14px;line-height:24px;color:#070c14;display:flex;align-items:center;margin-bottom:12px;cursor:pointer}.gbot-dialog-modal .history-item .history-item-bot .item-bot-content .content-think .think-top img{width:24px;margin-right:4px}.gbot-dialog-modal .history-item .history-item-bot .item-bot-content .content-think .think-top .think-action{margin-left:8px}.gbot-dialog-modal .history-item .history-item-bot .item-bot-content .content-think .think-bottom{font-size:14px;line-height:150%;color:#999;position:relative}.gbot-dialog-modal .history-item .history-item-bot .item-bot-content .content-think .think-bottom .bottom-left{background:#d9d9d9;width:1px;position:absolute;left:10px;top:4px;bottom:4px}.gbot-dialog-modal .history-item .history-item-bot .item-bot-content .content-think .think-bottom .bottom-left .thinking{position:absolute;left:-5px;top:0;width:12px;height:12px;background:#b752ea;border-radius:50%}.gbot-dialog-modal .history-item .history-item-bot .item-bot-content .content-think .think-bottom .bottom-left .thinked{position:absolute;z-index:100;left:-5px;top:0;width:12px;height:12px;background:#04d68d;border-radius:50%;color:#fff;display:flex;align-items:center;justify-content:center;font-size:8px}.gbot-dialog-modal .history-item .history-item-bot .item-bot-content .content-think .think-bottom .bottom-right{padding-left:22px}.gbot-dialog-modal .history-item .gbot-collapse-item{border-radius:4px;background-color:#f5f5f5;margin-bottom:8px;padding:0 0 0 8px}.gbot-dialog-modal .history-item .gbot-collapse-item .gbot-collapse-content{padding-bottom:8px}.gbot-dialog-modal .history-item .gbot-collapse-item:last-child{margin-bottom:0}.gbot-dialog-modal .history-item .gbot-collapse-header-text{width:100%}.gbot-dialog-modal.inlay .history-item__user{display:flex;justify-content:flex-end}.gbot-dialog-modal.inlay .history-item-user,.gbot-dialog-modal.inlay .history-item-bot{max-width:calc(100% - 64px)}.gbot-dialog-modal .session-item-overlay-popover .gbot-popover-inner-content{padding:6px}.gbot-dialog-modal .session-item-overlay-popover .gbot-popover-arrow{display:none}
@@ -1 +1 @@
1
- .gbot-dialog-modal.inlay .questions,.gbot-dialog-modal.float .questions{width:100%}.gbot-dialog-modal .questions .question-tip{display:flex;align-items:center;margin-bottom:10px;height:24px;color:#84868c}.gbot-dialog-modal .questions .question-tip img{width:24px;height:24px}.gbot-dialog-modal .questions .question-row{max-height:260px;overflow-y:auto}.gbot-dialog-modal .questions .question-pannel{background:white;padding:12px;border-radius:8px;width:100%;cursor:pointer;border:1px solid transparent}.gbot-dialog-modal .questions .question-pannel .question-top{font-size:16px;height:32px;color:#070c14;font-weight:700;display:flex;width:100%}.gbot-dialog-modal .questions .question-pannel .question-top .question-top-tip{flex:0 0 24px;margin-right:8px}.gbot-dialog-modal .questions .question-pannel .question-top .question-top-title{flex:0 0 1;overflow:hidden;display:flex;align-items:center}.gbot-dialog-modal .questions .question-pannel .question-top .question-top-type{margin-left:8px;flex:0 0 24px}.gbot-dialog-modal .questions .question-pannel .question-top .question-only-plus-file{margin-left:0}.gbot-dialog-modal .questions .question-pannel .question-top img{width:24px}.gbot-dialog-modal .questions .question-pannel .not-have-top{display:none}.gbot-dialog-modal .questions .question-pannel .question-bottom{font-size:14px;color:#070c14;line-height:21px}.gbot-dialog-modal .questions .question-pannel .multiline-question{height:56px;margin-top:-7px}.gbot-dialog-modal .questions .question-pannel__active{border:1px solid #b452ff;transition:all .25s}.gbot-dialog-modal .questions .multiline-question-pannel{padding:16px 12px}.gbot-dialog-modal .recommend-tooltip-overlay .gbot-tooltip-inner{max-width:400px;max-height:300px;overflow-y:auto}
1
+ .gbot-dialog-modal .file-preview{width:auto;border-radius:6px;border:1px solid #e8e9eb;background:#ffffff;position:relative;display:inline-block;max-height:80px}.gbot-dialog-modal .file-preview .file-icon{height:100%;width:48px}.gbot-dialog-modal .file-preview.small{height:30px;width:150px;padding:3px 6px 3px 3px}.gbot-dialog-modal .file-preview.small .file-icon{width:24px}.gbot-dialog-modal .file-preview .file-desc{flex:1;overflow:hidden}.gbot-dialog-modal .file-preview .file-desc .file-desc-name{color:#5c5f66;font-size:12px;font-style:normal;font-weight:700;line-height:150%;margin-bottom:4px}.gbot-dialog-modal .file-preview .file-action{position:absolute;right:-8px;top:-8px}.gbot-dialog-modal .file-preview .file-process{background-color:#f7f7f9;border-radius:8px;width:16px;height:16px;line-height:16px;text-align:center;display:inline-flex;align-items:center;justify-content:center}.gbot-dialog-modal .file-preview .file-remove{display:inline-block;border-radius:10px;width:20px;height:20px;line-height:20px;text-align:center;color:#84868c;border:1px solid #e8e9eb;display:inline-flex;align-items:center;justify-content:center;background-color:#f7f7f9}.gbot-dialog-modal .file-preview .file-remove:hover{background-color:#fff;color:#b452ff}.gbot-dialog-modal .file-remove-tooltip .gbot-tooltip-content .gbot-tooltip-inner{padding:12px}
@@ -1 +1 @@
1
- .gbot-dialog-modal .history-item{margin-bottom:16px}.gbot-dialog-modal .history-item .history-item-user{width:100%}.gbot-dialog-modal .history-item .history-item-user .item-user-panel{display:flex;justify-content:flex-end}.gbot-dialog-modal .history-item .history-item-user .item-user-panel .user-panel-main{max-width:100%}.gbot-dialog-modal .history-item .history-item-user .item-user-panel .user-panel-main .item-user-content{background:#f9f2ff;padding:12px;border-radius:12px 2px 12px 12px;border:1px solid #9c24f2;display:inline-block;width:auto;max-width:100%;color:#070c14;word-wrap:break-word}.gbot-dialog-modal .history-item .history-item-user .item-user-file{display:flex-end;margin-top:10px}.gbot-dialog-modal .history-item .history-item-user .item-user-images{display:flex;justify-content:flex-end}.gbot-dialog-modal .history-item .history-item-user ::selection{background-color:#b1d7ffb3;color:#fff}.gbot-dialog-modal .history-item .history-item-bot{width:100%;border-radius:2px 12px 12px;background:white;padding:0 12px}.gbot-dialog-modal .history-item .history-item-bot .item-bot-plugin{padding-top:12px}.gbot-dialog-modal .history-item .history-item-bot .item-bot-plugin .bot-plugin-status .plugin-status-success{display:inline-block;width:14px;height:14px;color:#fff;background:#47d1cb;border-radius:50%;font-size:10px;display:flex;align-items:center;justify-content:center}.gbot-dialog-modal .history-item .history-item-bot .item-bot-plugin .bot-plugin-status .plugin-status-error{display:inline-block;width:14px;height:14px;color:#fff;background:#f95b81;border-radius:50%;font-size:10px;display:flex;align-items:center;justify-content:center}.gbot-dialog-modal .history-item .history-item-bot .item-bot-plugin .bot-plugin-status .plugin-status-loading{display:inline-block;width:14px;height:14px;color:#477bff;border-radius:50%;font-size:10px;display:flex;align-items:center;justify-content:center}.gbot-dialog-modal .history-item .history-item-bot .item-bot-plugin .bot-plugin-title{font-weight:700;color:#000000a6}.gbot-dialog-modal .history-item .history-item-bot .item-bot-plugin .bot-plugin-action{border:1px solid #00000026;border-radius:4px;color:#000000e0;padding:1px 8px}.gbot-dialog-modal .history-item .history-item-bot .item-bot-plugin .gbot-collapse-header{padding:0;height:38px;display:flex;align-items:center}.gbot-dialog-modal .history-item .history-item-bot .item-bot-plugin .gbot-collapse-content-box{padding:0}.gbot-dialog-modal .history-item .history-item-bot .item-bot-plugin .bot-plugin-content{height:32px;line-height:32px;font-weight:700}.gbot-dialog-modal .history-item .history-item-bot .item-bot-plugin .bot-plugin-json{background:white}.gbot-dialog-modal .history-item .history-item-bot .item-bot-net{padding-top:12px}.gbot-dialog-modal .history-item .history-item-bot .item-bot-content{width:100%;border-radius:2px 12px 12px;background:white;padding:12px 0;word-wrap:break-word}.gbot-dialog-modal .history-item .history-item-bot .item-bot-content .content-think{margin-bottom:12px}.gbot-dialog-modal .history-item .history-item-bot .item-bot-content .content-think .think-top{font-size:14px;line-height:24px;color:#070c14;display:flex;align-items:center;margin-bottom:12px;cursor:pointer}.gbot-dialog-modal .history-item .history-item-bot .item-bot-content .content-think .think-top img{width:24px;margin-right:4px}.gbot-dialog-modal .history-item .history-item-bot .item-bot-content .content-think .think-top .think-action{margin-left:8px}.gbot-dialog-modal .history-item .history-item-bot .item-bot-content .content-think .think-bottom{font-size:14px;line-height:150%;color:#999;position:relative}.gbot-dialog-modal .history-item .history-item-bot .item-bot-content .content-think .think-bottom .bottom-left{background:#d9d9d9;width:1px;position:absolute;left:10px;top:4px;bottom:4px}.gbot-dialog-modal .history-item .history-item-bot .item-bot-content .content-think .think-bottom .bottom-left .thinking{position:absolute;left:-5px;top:0;width:12px;height:12px;background:#b752ea;border-radius:50%}.gbot-dialog-modal .history-item .history-item-bot .item-bot-content .content-think .think-bottom .bottom-left .thinked{position:absolute;z-index:100;left:-5px;top:0;width:12px;height:12px;background:#04d68d;border-radius:50%;color:#fff;display:flex;align-items:center;justify-content:center;font-size:8px}.gbot-dialog-modal .history-item .history-item-bot .item-bot-content .content-think .think-bottom .bottom-right{padding-left:22px}.gbot-dialog-modal .history-item .gbot-collapse-item{border-radius:4px;background-color:#f5f5f5;margin-bottom:8px;padding:0 0 0 8px}.gbot-dialog-modal .history-item .gbot-collapse-item .gbot-collapse-content{padding-bottom:8px}.gbot-dialog-modal .history-item .gbot-collapse-item:last-child{margin-bottom:0}.gbot-dialog-modal .history-item .gbot-collapse-header-text{width:100%}.gbot-dialog-modal.inlay .history-item__user{display:flex;justify-content:flex-end}.gbot-dialog-modal.inlay .history-item-user,.gbot-dialog-modal.inlay .history-item-bot{max-width:calc(100% - 64px)}.gbot-dialog-modal .session-item-overlay-popover .gbot-popover-inner-content{padding:6px}.gbot-dialog-modal .session-item-overlay-popover .gbot-popover-arrow{display:none}
1
+ .gbot-dialog-modal.inlay .questions,.gbot-dialog-modal.float .questions{width:100%}.gbot-dialog-modal .questions .question-tip{display:flex;align-items:center;margin-bottom:10px;height:24px;color:#84868c}.gbot-dialog-modal .questions .question-tip img{width:24px;height:24px}.gbot-dialog-modal .questions .question-row{max-height:260px;overflow-y:auto}.gbot-dialog-modal .questions .question-pannel{background:white;padding:12px;border-radius:8px;width:100%;cursor:pointer;border:1px solid transparent}.gbot-dialog-modal .questions .question-pannel .question-top{font-size:16px;height:32px;color:#070c14;font-weight:700;display:flex;width:100%}.gbot-dialog-modal .questions .question-pannel .question-top .question-top-tip{flex:0 0 24px;margin-right:8px}.gbot-dialog-modal .questions .question-pannel .question-top .question-top-title{flex:0 0 1;overflow:hidden;display:flex;align-items:center}.gbot-dialog-modal .questions .question-pannel .question-top .question-top-type{margin-left:8px;flex:0 0 24px}.gbot-dialog-modal .questions .question-pannel .question-top .question-only-plus-file{margin-left:0}.gbot-dialog-modal .questions .question-pannel .question-top img{width:24px}.gbot-dialog-modal .questions .question-pannel .not-have-top{display:none}.gbot-dialog-modal .questions .question-pannel .question-bottom{font-size:14px;color:#070c14;line-height:21px}.gbot-dialog-modal .questions .question-pannel .multiline-question{height:56px;margin-top:-7px}.gbot-dialog-modal .questions .question-pannel__active{border:1px solid #b452ff;transition:all .25s}.gbot-dialog-modal .questions .multiline-question-pannel{padding:16px 12px}.gbot-dialog-modal .recommend-tooltip-overlay .gbot-tooltip-inner{max-width:400px;max-height:300px;overflow-y:auto}
@@ -1 +1 @@
1
- .gbot-dialog-modal .quill-editor{position:relative}.gbot-dialog-modal .quill-editor .ql-container{border-radius:4px}.gbot-dialog-modal .quill-editor .ql-container:hover{border:1px solid none;outline:0}.gbot-dialog-modal .quill-editor .quill-editor-send{position:absolute;left:8px;right:8px;bottom:34px;height:0;display:flex;justify-content:space-between}.gbot-dialog-modal .quill-editor .ql-editor:before{font-style:normal;font-weight:400}.gbot-dialog-modal .quill-editor .ql-editor.hide-placeholder:before{display:none!important}.gbot-dialog-modal .quill-editor .shortcut-direct{width:15px;height:15px;display:flex;align-items:center;justify-content:center}.gbot-dialog-modal .quill-editor .shortcut-direct .gbot-popover-inner-content{padding:0}.gbot-dialog-modal .quill-editor .shortcut-direct .shortcut-direct-pannel{width:180px;padding:4px 0}.gbot-dialog-modal .quill-editor .shortcut-direct .shortcut-direct-pannel .shortcut-direct-item{display:flex;align-items:center;justify-content:space-between;padding:4px 12px;cursor:pointer}.gbot-dialog-modal .quill-editor .shortcut-direct .shortcut-direct-pannel .shortcut-direct-item .title{color:#393939}.gbot-dialog-modal .quill-editor .shortcut-direct .shortcut-direct-pannel .shortcut-direct-item .text{color:#84868c}.gbot-dialog-modal .quill-editor .shortcut-direct .shortcut-direct-pannel .shortcut-direct-item:hover{background:#f9f2ff}.gbot-dialog-modal .quill-editor .shortcut-direct .shortcut-direct-pannel .shortcut-direct-item__disabled{display:flex;align-items:center;justify-content:space-between;padding:4px 12px;cursor:not-allowed}.gbot-dialog-modal .quill-editor .shortcut-direct .shortcut-direct-pannel .shortcut-direct-item__disabled .title,.gbot-dialog-modal .quill-editor .shortcut-direct .shortcut-direct-pannel .shortcut-direct-item__disabled .text{color:#b8babf}.gbot-dialog-modal .quill-editor__active .ql-container{transition:all .3s,height 0;border:1px solid #b452ff;outline:0;box-shadow:none}.gbot-dialog-modal.inlay .quill-editor .quill-editor-wrapper{max-height:344px;position:relative}.gbot-dialog-modal.inlay .quill-editor .quill-editor-wrapper .ql-editor{min-height:134px;padding-bottom:32px}.gbot-dialog-modal.inlay .quill-editor .quill-editor-wrapper__scroll{overflow-y:auto;scrollbar-width:none}.gbot-dialog-modal.float .quill-editor .quill-editor-wrapper{max-height:200px;position:relative}.gbot-dialog-modal.float .quill-editor .quill-editor-wrapper .ql-editor{min-height:134px;padding-bottom:24px}.gbot-dialog-modal.float .quill-editor .quill-editor-wrapper__scroll{overflow-y:auto;scrollbar-width:none}
1
+ .gbot-dialog-modal .prompt-modal .title{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:500;text-align:left;color:#161616}.gbot-dialog-modal .prompt-modal .content{font-size:14px;font-weight:400;line-height:22px;text-align:justified;color:#393939}
@@ -1 +1 @@
1
- .gbot-dialog-modal .prompt-modal .title{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:500;text-align:left;color:#161616}.gbot-dialog-modal .prompt-modal .content{font-size:14px;font-weight:400;line-height:22px;text-align:justified;color:#393939}
1
+ .gbot-dialog-modal .session-list-component{position:relative;z-index:1}.gbot-dialog-modal .session-list-component .session-list-overlay .gbot-popover-inner-content{padding:8px 10px}.gbot-dialog-modal .session-list-component .list-overlay-action:hover{color:#9c24f2}
@@ -1 +1 @@
1
- .gbot-dialog-modal .session-list-component{position:relative;z-index:1}.gbot-dialog-modal .session-list-component .session-list-overlay .gbot-popover-inner-content{padding:8px 10px}.gbot-dialog-modal .session-list-component .list-overlay-action:hover{color:#9c24f2}
1
+ .gbot-dialog-modal .prompt-setting-panel{display:flex;align-items:center;justify-content:center}.gbot-dialog-modal .agent-prompt{margin:12px 12px 0;padding:12px;border-radius:4px;border:1px solid #e8e9eb;background:#fff;flex:1;max-width:824px}.gbot-dialog-modal .agent-prompt .prompt-header{font-size:16px;line-height:24px;font-weight:600;color:#84868c}.gbot-dialog-modal .agent-prompt .prompt-header .prompt-btn{color:#84868c}.gbot-dialog-modal .agent-prompt .prompt-header .prompt-title{color:#5c5f66;font-style:normal;line-height:150%}.gbot-dialog-modal .agent-prompt .prompt-form{margin:12px 12px 0}.gbot-dialog-modal .agent-prompt .prompt-form .gbot-form-item{margin-left:15px}.gbot-dialog-modal .agent-prompt .prompt-form .gbot-collapse{max-height:254px;overflow:auto}.gbot-dialog-modal .agent-prompt .prompt-form .prompt-variables-collapse{border-radius:4px;opacity:1;background:#FFFFFF;width:100%}.gbot-dialog-modal .agent-prompt .prompt-form .gbot-collapse-ghost>.gbot-collapse-item>.gbot-collapse-content>.gbot-collapse-content-box{padding-top:0;padding-bottom:0}.gbot-dialog-modal .agent-prompt .icon-prompt-question{cursor:pointer}.gbot-dialog-modal .prompt-form{margin:12px 12px 0}.gbot-dialog-modal .prompt-form .gbot-form-item{margin-left:15px}.gbot-dialog-modal .prompt-form .gbot-collapse{max-height:254px;overflow:auto}.gbot-dialog-modal .prompt-form .prompt-variables-collapse{border-radius:4px;opacity:1;background:#FFFFFF;width:100%}.gbot-dialog-modal .prompt-form .gbot-collapse-ghost>.gbot-collapse-item>.gbot-collapse-content>.gbot-collapse-content-box{padding-top:0;padding-bottom:0}.gbot-dialog-modal .icon-prompt-question{cursor:pointer}
@@ -1 +1 @@
1
- .gbot-dialog-modal .prompt-setting-panel{display:flex;align-items:center;justify-content:center}.gbot-dialog-modal .agent-prompt{margin:12px 12px 0;padding:12px;border-radius:4px;border:1px solid #e8e9eb;background:#fff;flex:1;max-width:824px}.gbot-dialog-modal .agent-prompt .prompt-header{font-size:16px;line-height:24px;font-weight:600;color:#84868c}.gbot-dialog-modal .agent-prompt .prompt-header .prompt-btn{color:#84868c}.gbot-dialog-modal .agent-prompt .prompt-header .prompt-title{color:#5c5f66;font-style:normal;line-height:150%}.gbot-dialog-modal .agent-prompt .prompt-form{margin:12px 12px 0}.gbot-dialog-modal .agent-prompt .prompt-form .gbot-form-item{margin-left:15px}.gbot-dialog-modal .agent-prompt .prompt-form .gbot-collapse{max-height:254px;overflow:auto}.gbot-dialog-modal .agent-prompt .prompt-form .prompt-variables-collapse{border-radius:4px;opacity:1;background:#FFFFFF;width:100%}.gbot-dialog-modal .agent-prompt .prompt-form .gbot-collapse-ghost>.gbot-collapse-item>.gbot-collapse-content>.gbot-collapse-content-box{padding-top:0;padding-bottom:0}.gbot-dialog-modal .agent-prompt .icon-prompt-question{cursor:pointer}.gbot-dialog-modal .prompt-form{margin:12px 12px 0}.gbot-dialog-modal .prompt-form .gbot-form-item{margin-left:15px}.gbot-dialog-modal .prompt-form .gbot-collapse{max-height:254px;overflow:auto}.gbot-dialog-modal .prompt-form .prompt-variables-collapse{border-radius:4px;opacity:1;background:#FFFFFF;width:100%}.gbot-dialog-modal .prompt-form .gbot-collapse-ghost>.gbot-collapse-item>.gbot-collapse-content>.gbot-collapse-content-box{padding-top:0;padding-bottom:0}.gbot-dialog-modal .icon-prompt-question{cursor:pointer}
1
+ .gbot-dialog-modal .quill-editor{position:relative}.gbot-dialog-modal .quill-editor .ql-container{border-radius:4px}.gbot-dialog-modal .quill-editor .ql-container:hover{border:1px solid none;outline:0}.gbot-dialog-modal .quill-editor .quill-editor-send{position:absolute;left:8px;right:8px;bottom:34px;height:0;display:flex;justify-content:space-between}.gbot-dialog-modal .quill-editor .ql-editor:before{font-style:normal;font-weight:400}.gbot-dialog-modal .quill-editor .ql-editor.hide-placeholder:before{display:none!important}.gbot-dialog-modal .quill-editor .shortcut-direct{width:15px;height:15px;display:flex;align-items:center;justify-content:center}.gbot-dialog-modal .quill-editor .shortcut-direct .gbot-popover-inner-content{padding:0}.gbot-dialog-modal .quill-editor .shortcut-direct .shortcut-direct-pannel{width:180px;padding:4px 0}.gbot-dialog-modal .quill-editor .shortcut-direct .shortcut-direct-pannel .shortcut-direct-item{display:flex;align-items:center;justify-content:space-between;padding:4px 12px;cursor:pointer}.gbot-dialog-modal .quill-editor .shortcut-direct .shortcut-direct-pannel .shortcut-direct-item .title{color:#393939}.gbot-dialog-modal .quill-editor .shortcut-direct .shortcut-direct-pannel .shortcut-direct-item .text{color:#84868c}.gbot-dialog-modal .quill-editor .shortcut-direct .shortcut-direct-pannel .shortcut-direct-item:hover{background:#f9f2ff}.gbot-dialog-modal .quill-editor .shortcut-direct .shortcut-direct-pannel .shortcut-direct-item__disabled{display:flex;align-items:center;justify-content:space-between;padding:4px 12px;cursor:not-allowed}.gbot-dialog-modal .quill-editor .shortcut-direct .shortcut-direct-pannel .shortcut-direct-item__disabled .title,.gbot-dialog-modal .quill-editor .shortcut-direct .shortcut-direct-pannel .shortcut-direct-item__disabled .text{color:#b8babf}.gbot-dialog-modal .quill-editor__active .ql-container{transition:all .3s,height 0;border:1px solid #b452ff;outline:0;box-shadow:none}.gbot-dialog-modal.inlay .quill-editor .quill-editor-wrapper{max-height:344px;position:relative}.gbot-dialog-modal.inlay .quill-editor .quill-editor-wrapper .ql-editor{min-height:134px;padding-bottom:32px}.gbot-dialog-modal.inlay .quill-editor .quill-editor-wrapper__scroll{overflow-y:auto;scrollbar-width:none}.gbot-dialog-modal.float .quill-editor .quill-editor-wrapper{max-height:200px;position:relative}.gbot-dialog-modal.float .quill-editor .quill-editor-wrapper .ql-editor{min-height:134px;padding-bottom:24px}.gbot-dialog-modal.float .quill-editor .quill-editor-wrapper__scroll{overflow-y:auto;scrollbar-width:none}
@@ -1 +1 @@
1
- .gbot-dialog-modal .input-progress{display:flex}.gbot-dialog-modal .input-progress .progress-point{display:flex;align-items:center;margin-right:8px}.gbot-dialog-modal .input-progress .progress-point .point{width:6px;height:6px;border-radius:50%}.gbot-dialog-modal .input-progress .progress-point .point1{background:#9c24f2;animation:gbot-animation1 1s ease-in infinite}.gbot-dialog-modal .input-progress .progress-point .point2{background:#c47dff;margin:0 3px;animation:gbot-animation2 1s ease-in infinite}.gbot-dialog-modal .input-progress .progress-point .point3{background:#ead4ff;animation:gbot-animation3 1s ease-in infinite}.gbot-dialog-modal .input-progress .progress-waiting{color:#9c24f2}@keyframes gbot-animation1{0%{opacity:0}33%{opacity:1}to{opacity:1}}@keyframes gbot-animation2{0%,33%{opacity:0}67%{opacity:1}to{opacity:1}}@keyframes gbot-animation3{0%,67%{opacity:0}to{opacity:1}}
1
+ .gbot-dialog-modal .json-display{margin:0;padding:4px}
@@ -1 +1 @@
1
- .gbot-dialog-modal .json-display{margin:0;padding:4px}
1
+ .gbot-dialog-modal .input-progress{display:flex}.gbot-dialog-modal .input-progress .progress-point{display:flex;align-items:center;margin-right:8px}.gbot-dialog-modal .input-progress .progress-point .point{width:6px;height:6px;border-radius:50%}.gbot-dialog-modal .input-progress .progress-point .point1{background:#9c24f2;animation:gbot-animation1 1s ease-in infinite}.gbot-dialog-modal .input-progress .progress-point .point2{background:#c47dff;margin:0 3px;animation:gbot-animation2 1s ease-in infinite}.gbot-dialog-modal .input-progress .progress-point .point3{background:#ead4ff;animation:gbot-animation3 1s ease-in infinite}.gbot-dialog-modal .input-progress .progress-waiting{color:#9c24f2}@keyframes gbot-animation1{0%{opacity:0}33%{opacity:1}to{opacity:1}}@keyframes gbot-animation2{0%,33%{opacity:0}67%{opacity:1}to{opacity:1}}@keyframes gbot-animation3{0%,67%{opacity:0}to{opacity:1}}
@@ -1 +1 @@
1
- .gbot-dialog-modal .session-action{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #e8e9eb;color:#84868c}.gbot-dialog-modal .session-action .session-action-again{cursor:pointer;user-select:none}.gbot-dialog-modal .session-action .session-action-again:hover{color:#b452ff}.gbot-dialog-modal .session-action .session-action-comment{border-radius:4px;padding:4px}.gbot-dialog-modal .session-action .session-action-comment .action-comment-feedback{font-size:16px}.gbot-dialog-modal .session-action .session-action-comment .action-comment-feedback .comment-feedback-item{display:inline-block;width:100%;height:100%;cursor:pointer}.gbot-dialog-modal .session-action .session-action-comment .action-comment-feedback .comment-feedback-item:hover{color:#b452ff}.gbot-dialog-modal .session-action .session-action-comment .action-comment-feedback .comment-feedback-item__active{color:#9c24f2}.gbot-dialog-modal .cai-pannel{width:260px;overflow:hidden}.gbot-dialog-modal .cai-pannel .cai-error{color:#f33e3e;margin-bottom:12px}.gbot-dialog-modal .cai-pannel .cai-title{margin-bottom:12px}.gbot-dialog-modal .cai-pannel .cai-title .cai-require{color:#f33e3e}.gbot-dialog-modal .cai-pannel .cai-title .cai-question{color:#070c14;text-align:center;font-size:14px}.gbot-dialog-modal .cai-pannel .cai-list{display:flex;flex-wrap:wrap}.gbot-dialog-modal .cai-pannel .cai-list .cai-item{padding:6px 8px;border-radius:4px;border:1px solid #e8e9eb;margin-bottom:12px;margin-right:12px;cursor:pointer}.gbot-dialog-modal .cai-pannel .cai-list .cai-item:hover{color:#b452ff;border:1px solid #b452ff}.gbot-dialog-modal .cai-pannel .cai-list .cai-item__active{color:#8614cc;border:1px solid #8614cc}.gbot-dialog-modal .chat-item:last-child{margin-bottom:0}
1
+ .gbot-dialog-modal .search-reference .bot-net-panel{user-select:none;margin-bottom:10px;width:180px;height:32px;background:white;line-height:32px;display:flex;justify-content:space-between;padding:0 12px;cursor:pointer}.gbot-dialog-modal .search-reference .bot-net-main{background:white;padding:12px;line-height:22px}.gbot-dialog-modal .search-reference .bot-net-main .text .link{cursor:pointer;color:#0f64ff}.gbot-dialog-modal .search-reference .think-top{font-size:14px;line-height:24px;color:#070c14;display:flex;align-items:center;margin-bottom:12px;cursor:pointer}.gbot-dialog-modal .search-reference .think-top img{width:24px;margin-right:4px}.gbot-dialog-modal .search-reference .think-top .think-action{margin-left:8px}.gbot-dialog-modal .search-reference .thinking{width:12px;height:12px;background:#b752ea;border-radius:50%;margin:6px}.gbot-dialog-modal .search-reference .thinked{width:12px;height:12px;background:#04d68d;border-radius:50%;color:#fff;display:flex;align-items:center;justify-content:center;font-size:8px;margin:6px}.gbot-dialog-modal .search-reference .thinked.error{background:#f33e3e}.gbot-dialog-modal .search-reference .item-bot-plugin{line-height:24px}.gbot-dialog-modal .search-reference .item-bot-plugin .bot-plugin-status .icon-search{font-size:24px}.gbot-dialog-modal .search-reference .item-bot-plugin .bot-plugin-status .plugin-status-success{display:inline-block;width:14px;height:14px;color:#fff;background:#47d1cb;border-radius:50%;font-size:10px;display:flex;align-items:center;justify-content:center}.gbot-dialog-modal .search-reference .item-bot-plugin .bot-plugin-status .plugin-status-error{display:inline-block;width:14px;height:14px;color:#fff;background:#f95b81;border-radius:50%;font-size:10px;display:flex;align-items:center;justify-content:center}.gbot-dialog-modal .search-reference .item-bot-plugin .bot-plugin-status .plugin-status-loading{display:inline-block;width:14px;height:14px;color:#477bff;border-radius:50%;font-size:10px;display:flex;align-items:center;justify-content:center}.gbot-dialog-modal .search-reference .item-bot-plugin .bot-plugin-title{font-weight:700;color:#000000a6}.gbot-dialog-modal .search-reference .item-bot-plugin .bot-plugin-action{border:1px solid #00000026;border-radius:4px;color:#000000e0;padding:1px 8px}.gbot-dialog-modal .search-reference .item-bot-plugin .gbot-collapse-header{padding:0;height:38px;display:flex;align-items:center}.gbot-dialog-modal .search-reference .item-bot-plugin .gbot-collapse-content-box{padding:0}.gbot-dialog-modal .search-reference .item-bot-plugin .bot-plugin-content{height:32px;line-height:32px;font-weight:700}.gbot-dialog-modal .search-reference .item-bot-plugin .bot-plugin-json{background:white}.gbot-dialog-modal .search-reference .gbot-collapse-item{padding:0 8px}.gbot-dialog-modal .search-reference-list{margin-right:8px;border-radius:6px}.gbot-dialog-modal .search-reference-list-item{display:flex;flex-direction:column;padding:12px 8px 8px;gap:0px 10px;flex-wrap:wrap;align-content:flex-start;border-radius:6px;background:#ffffff;box-sizing:border-box;border:1px solid #e5e7eb;margin-bottom:8px}.gbot-dialog-modal .search-reference-list-item :last-child{margin-bottom:0}.gbot-dialog-modal .search-reference-list-item :hover{cursor:pointer}.gbot-dialog-modal .search-reference-list-item-footer{display:flex;justify-content:space-between;padding:0;row-gap:0px;flex-wrap:wrap;align-content:flex-start;z-index:0;line-height:24px;align-items:center}.gbot-dialog-modal .search-reference-list-item-footer .logo{width:24px;height:24px}.gbot-dialog-modal .search-reference-list-item-footer .name{font-family:Roboto;font-size:12x;font-weight:400;line-height:24px;letter-spacing:normal;color:#4b5563}.gbot-dialog-modal .search-reference-list-item-footer .time{font-family:Roboto;font-size:12x;font-weight:400;line-height:24px;letter-spacing:normal;color:#9ca3af}.gbot-dialog-modal .search-reference-list-item-title{font-family:Roboto;font-size:16px;font-weight:600;line-height:28px;letter-spacing:normal;color:#000}.gbot-dialog-modal .search-reference-list-item-title .number{margin-right:4px}.gbot-dialog-modal .search-reference-list-item-content{font-family:Roboto;font-size:14px;font-weight:400;line-height:24px;letter-spacing:normal;color:#4b5563;padding:0 8px;display:inline-block}
@@ -1 +1 @@
1
- .gbot-dialog-modal .search-reference .bot-net-panel{user-select:none;margin-bottom:10px;width:180px;height:32px;background:white;line-height:32px;display:flex;justify-content:space-between;padding:0 12px;cursor:pointer}.gbot-dialog-modal .search-reference .bot-net-main{background:white;padding:12px;line-height:22px}.gbot-dialog-modal .search-reference .bot-net-main .text .link{cursor:pointer;color:#0f64ff}.gbot-dialog-modal .search-reference .think-top{font-size:14px;line-height:24px;color:#070c14;display:flex;align-items:center;margin-bottom:12px;cursor:pointer}.gbot-dialog-modal .search-reference .think-top img{width:24px;margin-right:4px}.gbot-dialog-modal .search-reference .think-top .think-action{margin-left:8px}.gbot-dialog-modal .search-reference .thinking{width:12px;height:12px;background:#b752ea;border-radius:50%;margin:6px}.gbot-dialog-modal .search-reference .thinked{width:12px;height:12px;background:#04d68d;border-radius:50%;color:#fff;display:flex;align-items:center;justify-content:center;font-size:8px;margin:6px}.gbot-dialog-modal .search-reference .thinked.error{background:#f33e3e}.gbot-dialog-modal .search-reference .item-bot-plugin{line-height:24px}.gbot-dialog-modal .search-reference .item-bot-plugin .bot-plugin-status .icon-search{font-size:24px}.gbot-dialog-modal .search-reference .item-bot-plugin .bot-plugin-status .plugin-status-success{display:inline-block;width:14px;height:14px;color:#fff;background:#47d1cb;border-radius:50%;font-size:10px;display:flex;align-items:center;justify-content:center}.gbot-dialog-modal .search-reference .item-bot-plugin .bot-plugin-status .plugin-status-error{display:inline-block;width:14px;height:14px;color:#fff;background:#f95b81;border-radius:50%;font-size:10px;display:flex;align-items:center;justify-content:center}.gbot-dialog-modal .search-reference .item-bot-plugin .bot-plugin-status .plugin-status-loading{display:inline-block;width:14px;height:14px;color:#477bff;border-radius:50%;font-size:10px;display:flex;align-items:center;justify-content:center}.gbot-dialog-modal .search-reference .item-bot-plugin .bot-plugin-title{font-weight:700;color:#000000a6}.gbot-dialog-modal .search-reference .item-bot-plugin .bot-plugin-action{border:1px solid #00000026;border-radius:4px;color:#000000e0;padding:1px 8px}.gbot-dialog-modal .search-reference .item-bot-plugin .gbot-collapse-header{padding:0;height:38px;display:flex;align-items:center}.gbot-dialog-modal .search-reference .item-bot-plugin .gbot-collapse-content-box{padding:0}.gbot-dialog-modal .search-reference .item-bot-plugin .bot-plugin-content{height:32px;line-height:32px;font-weight:700}.gbot-dialog-modal .search-reference .item-bot-plugin .bot-plugin-json{background:white}.gbot-dialog-modal .search-reference .gbot-collapse-item{padding:0 8px}.gbot-dialog-modal .search-reference-list{margin-right:8px;border-radius:6px}.gbot-dialog-modal .search-reference-list-item{display:flex;flex-direction:column;padding:12px 8px 8px;gap:0px 10px;flex-wrap:wrap;align-content:flex-start;border-radius:6px;background:#ffffff;box-sizing:border-box;border:1px solid #e5e7eb;margin-bottom:8px}.gbot-dialog-modal .search-reference-list-item :last-child{margin-bottom:0}.gbot-dialog-modal .search-reference-list-item :hover{cursor:pointer}.gbot-dialog-modal .search-reference-list-item-footer{display:flex;justify-content:space-between;padding:0;row-gap:0px;flex-wrap:wrap;align-content:flex-start;z-index:0;line-height:24px;align-items:center}.gbot-dialog-modal .search-reference-list-item-footer .logo{width:24px;height:24px}.gbot-dialog-modal .search-reference-list-item-footer .name{font-family:Roboto;font-size:12x;font-weight:400;line-height:24px;letter-spacing:normal;color:#4b5563}.gbot-dialog-modal .search-reference-list-item-footer .time{font-family:Roboto;font-size:12x;font-weight:400;line-height:24px;letter-spacing:normal;color:#9ca3af}.gbot-dialog-modal .search-reference-list-item-title{font-family:Roboto;font-size:16px;font-weight:600;line-height:28px;letter-spacing:normal;color:#000}.gbot-dialog-modal .search-reference-list-item-title .number{margin-right:4px}.gbot-dialog-modal .search-reference-list-item-content{font-family:Roboto;font-size:14px;font-weight:400;line-height:24px;letter-spacing:normal;color:#4b5563;padding:0 8px;display:inline-block}
1
+ .gbot-dialog-modal .session-action{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #e8e9eb;color:#84868c}.gbot-dialog-modal .session-action .session-action-again{cursor:pointer;user-select:none}.gbot-dialog-modal .session-action .session-action-again:hover{color:#b452ff}.gbot-dialog-modal .session-action .session-action-comment{border-radius:4px;padding:4px}.gbot-dialog-modal .session-action .session-action-comment .action-comment-feedback{font-size:16px}.gbot-dialog-modal .session-action .session-action-comment .action-comment-feedback .comment-feedback-item{display:inline-block;width:100%;height:100%;cursor:pointer}.gbot-dialog-modal .session-action .session-action-comment .action-comment-feedback .comment-feedback-item:hover{color:#b452ff}.gbot-dialog-modal .session-action .session-action-comment .action-comment-feedback .comment-feedback-item__active{color:#9c24f2}.gbot-dialog-modal .cai-pannel{width:260px;overflow:hidden}.gbot-dialog-modal .cai-pannel .cai-error{color:#f33e3e;margin-bottom:12px}.gbot-dialog-modal .cai-pannel .cai-title{margin-bottom:12px}.gbot-dialog-modal .cai-pannel .cai-title .cai-require{color:#f33e3e}.gbot-dialog-modal .cai-pannel .cai-title .cai-question{color:#070c14;text-align:center;font-size:14px}.gbot-dialog-modal .cai-pannel .cai-list{display:flex;flex-wrap:wrap}.gbot-dialog-modal .cai-pannel .cai-list .cai-item{padding:6px 8px;border-radius:4px;border:1px solid #e8e9eb;margin-bottom:12px;margin-right:12px;cursor:pointer}.gbot-dialog-modal .cai-pannel .cai-list .cai-item:hover{color:#b452ff;border:1px solid #b452ff}.gbot-dialog-modal .cai-pannel .cai-list .cai-item__active{color:#8614cc;border:1px solid #8614cc}.gbot-dialog-modal .chat-item:last-child{margin-bottom:0}
@@ -1 +1 @@
1
- .gbot-dialog-modal .file-card{height:38px;min-width:232px;max-width:600px;display:flex;padding:6px 12px 6px 6px;align-items:center;gap:4px;border-radius:6px;background:#ffffff;position:relative}.gbot-dialog-modal .file-card .analysis{display:flex;justify-content:center;align-items:center;gap:8px;font-size:12px;font-weight:400;line-height:22px;text-align:left;color:#84868c}.gbot-dialog-modal .file-card .file-icon{height:100%;width:24px}.gbot-dialog-modal .file-card.small{height:30px;width:150px;padding:3px 6px 3px 3px}.gbot-dialog-modal .file-card.small .file-icon{width:24px}.gbot-dialog-modal .file-card .file-desc{flex:1;overflow:hidden}.gbot-dialog-modal .file-card .file-desc .file-desc-name{color:#5c5f66;font-size:12px;font-style:normal;font-weight:700;line-height:150%}.gbot-dialog-modal .file-card .file-desc .file-desc-name:hover{cursor:pointer}.gbot-dialog-modal .file-card .file-desc .file-desc-name:hover .gbot-typography{color:#b452ff}.gbot-dialog-modal .file-card .file-desc .file-desc-size{color:#84868c;font-size:10px;font-style:normal;font-weight:400;line-height:150%}.gbot-dialog-modal .file-card .file-process{background-color:#f7f7f9;border-radius:8px;width:16px;height:16px;line-height:16px;text-align:center;display:inline-flex;align-items:center;justify-content:center}.gbot-dialog-modal .file-card .file-remove{cursor:pointer;display:inline-block;width:16px;height:16px;line-height:16px;text-align:center;color:#151b26;display:inline-flex;align-items:center;justify-content:center}.gbot-dialog-modal .file-card .file-remove:hover{background-color:#fff;color:#b452ff}.gbot-dialog-modal .file-card .file-failed{display:inline-block;width:16px;height:16px;line-height:16px;text-align:center;color:#dc4446;display:inline-flex;align-items:center;justify-content:center}
1
+ .gbot-dialog-modal .clear-modal .title{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:500;text-align:left;color:#161616}.gbot-dialog-modal .clear-modal .content{font-size:14px;font-weight:400;line-height:22px;text-align:justified;color:#393939}
@@ -1 +1 @@
1
- .gbot-dialog-modal .clear-modal .title{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:500;text-align:left;color:#161616}.gbot-dialog-modal .clear-modal .content{font-size:14px;font-weight:400;line-height:22px;text-align:justified;color:#393939}
1
+ .gbot-dialog-modal .file-card{height:38px;min-width:232px;max-width:600px;display:flex;padding:6px 12px 6px 6px;align-items:center;gap:4px;border-radius:6px;background:#ffffff;position:relative}.gbot-dialog-modal .file-card .analysis{display:flex;justify-content:center;align-items:center;gap:8px;font-size:12px;font-weight:400;line-height:22px;text-align:left;color:#84868c}.gbot-dialog-modal .file-card .file-icon{height:100%;width:24px}.gbot-dialog-modal .file-card.small{height:30px;width:150px;padding:3px 6px 3px 3px}.gbot-dialog-modal .file-card.small .file-icon{width:24px}.gbot-dialog-modal .file-card .file-desc{flex:1;overflow:hidden}.gbot-dialog-modal .file-card .file-desc .file-desc-name{color:#5c5f66;font-size:12px;font-style:normal;font-weight:700;line-height:150%}.gbot-dialog-modal .file-card .file-desc .file-desc-name:hover{cursor:pointer}.gbot-dialog-modal .file-card .file-desc .file-desc-name:hover .gbot-typography{color:#b452ff}.gbot-dialog-modal .file-card .file-desc .file-desc-size{color:#84868c;font-size:10px;font-style:normal;font-weight:400;line-height:150%}.gbot-dialog-modal .file-card .file-process{background-color:#f7f7f9;border-radius:8px;width:16px;height:16px;line-height:16px;text-align:center;display:inline-flex;align-items:center;justify-content:center}.gbot-dialog-modal .file-card .file-remove{cursor:pointer;display:inline-block;width:16px;height:16px;line-height:16px;text-align:center;color:#151b26;display:inline-flex;align-items:center;justify-content:center}.gbot-dialog-modal .file-card .file-remove:hover{background-color:#fff;color:#b452ff}.gbot-dialog-modal .file-card .file-failed{display:inline-block;width:16px;height:16px;line-height:16px;text-align:center;color:#dc4446;display:inline-flex;align-items:center;justify-content:center}
@@ -1 +1 @@
1
- .gbot-dialog-modal .chat-header{height:56px;padding:0 24px;border-bottom:1px solid #e8e9eb;display:flex;align-items:center;justify-content:space-between;background:white}.gbot-dialog-modal .chat-header .header-title{color:#151b26;font-size:16px;font-style:normal;font-weight:700;line-height:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
1
+ .gbot-dialog-modal .sider-container{height:100%;width:100%;display:flex;flex-direction:column}
@@ -1 +1 @@
1
- .gbot-dialog-modal .sider-container{height:100%;width:100%;display:flex;flex-direction:column}
1
+ .gbot-dialog-modal .chat-header{height:56px;padding:0 24px;border-bottom:1px solid #e8e9eb;display:flex;align-items:center;justify-content:space-between;background:white}.gbot-dialog-modal .chat-header .header-title{color:#151b26;font-size:16px;font-style:normal;font-weight:700;line-height:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@@ -1,37 +1,33 @@
1
1
  import { KB as o, MB as c, GB as s } from "../constant.mjs";
2
- const d = (t) => {
3
- if (t)
4
- return t.split(".").pop();
5
- }, m = (t) => {
6
- var e = t.match(/^.*\.(jpg|jpeg|png|bmp|JPG|JPEG|PNG|BMP)$/);
7
- return e ? e[1] : null;
8
- }, x = (t) => t < o ? t + " B" : t < c ? (t / o).toFixed(1) + " KB" : t < s ? (t / c).toFixed(1) + " MB" : (t / s).toFixed(1) + " GB", g = (t) => t == null ? void 0 : t.replace(/[\r\n]+/gm, ""), l = (t) => {
9
- const e = /(.+)(?=\.\w+$)/, n = t == null ? void 0 : t.match(e);
10
- return n && n[1] ? n[1] : "";
11
- }, w = (t) => new Promise((e, n) => {
12
- const r = new FileReader();
13
- r.readAsDataURL(t), r.onload = () => e(r.result), r.onerror = (a) => n(a);
14
- }), p = (t) => JSON.parse(window.atob(t.split(".")[1])), B = (t) => {
15
- const e = p(t).exp;
16
- return (/* @__PURE__ */ new Date()).valueOf() / 1e3 >= e;
2
+ const m = (e) => {
3
+ if (e)
4
+ return e.split(".").pop();
5
+ }, d = (e) => {
6
+ var t = e.match(/^.*\.(jpg|jpeg|png|bmp|JPG|JPEG|PNG|BMP)$/);
7
+ return t ? t[1] : null;
8
+ }, l = (e) => e < o ? e + " B" : e < c ? (e / o).toFixed(1) + " KB" : e < s ? (e / c).toFixed(1) + " MB" : (e / s).toFixed(1) + " GB", x = (e) => e == null ? void 0 : e.replace(/[\r\n]+/gm, ""), g = (e) => new Promise((t, r) => {
9
+ const n = new FileReader();
10
+ n.readAsDataURL(e), n.onload = () => t(n.result), n.onerror = (a) => r(a);
11
+ }), p = (e) => JSON.parse(window.atob(e.split(".")[1])), w = (e) => {
12
+ const t = p(e).exp;
13
+ return (/* @__PURE__ */ new Date()).valueOf() / 1e3 >= t;
17
14
  };
18
- var i = /* @__PURE__ */ ((t) => (t.NETWORK = "请你优先从网络中搜索", t.DOCUMENT = "请你优先从以上文件中搜索", t))(i || {});
19
- const E = 100, F = (t) => /^https?:\/\/.*?\..+$/.test(t), T = ["application/pdf", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/msword", "application/wps-office.docx"];
20
- function h(t) {
21
- return t.replace(/([\\])/g, "\\$1");
15
+ var i = /* @__PURE__ */ ((e) => (e.NETWORK = "请你优先从网络中搜索", e.DOCUMENT = "请你优先从以上文件中搜索", e))(i || {});
16
+ const B = 100, E = (e) => /^https?:\/\/.*?\..+$/.test(e), f = ["application/pdf", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/msword", "application/wps-office.docx"];
17
+ function T(e) {
18
+ return e.replace(/([\\])/g, "\\$1");
22
19
  }
23
20
  export {
24
- E as FILE_NAME_MAX_LENGTH,
21
+ B as FILE_NAME_MAX_LENGTH,
25
22
  p as JWT,
26
- h as escapeSlash,
27
- l as extractFileName,
28
- T as fileTypes,
29
- x as formatFileSize,
30
- w as getBase64,
31
- d as getFileExtension,
32
- m as getImageExtension,
33
- B as isExpired,
34
- F as isValidImageUrlWithAnyExtension,
35
- g as removeNewlines,
23
+ T as escapeSlash,
24
+ f as fileTypes,
25
+ l as formatFileSize,
26
+ g as getBase64,
27
+ m as getFileExtension,
28
+ d as getImageExtension,
29
+ w as isExpired,
30
+ E as isValidImageUrlWithAnyExtension,
31
+ x as removeNewlines,
36
32
  i as shortCutEnum
37
33
  };