@glodon-aiot/agent-cli-ui 3.20.0 → 3.21.0-alpha.1
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/index.mjs +132 -134
- package/dist/lib/index.js +4 -4
- package/package.json +4 -4
package/dist/es/index.mjs
CHANGED
|
@@ -1006,7 +1006,7 @@ const CI = (M) => {
|
|
|
1006
1006
|
ghost: !0,
|
|
1007
1007
|
expandIconPosition: "right",
|
|
1008
1008
|
children: (K = j.actions) == null ? void 0 : K.map((W, lM) => {
|
|
1009
|
-
var RM, iM, MN, BM,
|
|
1009
|
+
var RM, iM, MN, BM, x, J, cM, OM, HM, C, B, H;
|
|
1010
1010
|
return /* @__PURE__ */ o(R, {
|
|
1011
1011
|
collapsible: L ? "header" : "icon",
|
|
1012
1012
|
showArrow: L,
|
|
@@ -1035,7 +1035,7 @@ const CI = (M) => {
|
|
|
1035
1035
|
children: ((MN = W[W.length - 1].data) == null ? void 0 : MN.pluginName) || ((BM = W[W.length - 1].data) == null ? void 0 : BM.pluginCode)
|
|
1036
1036
|
}), /* @__PURE__ */ i("span", {
|
|
1037
1037
|
className: "bot-plugin-action",
|
|
1038
|
-
children: ((
|
|
1038
|
+
children: ((x = W[W.length - 1].data) == null ? void 0 : x.funcName) || ((J = W[W.length - 1].data) == null ? void 0 : J.funcCode)
|
|
1039
1039
|
}), (W[W.length - 1].type === "BEFORE_CALL" || W[W.length - 1].type === "FUNCTION_CALL") && /* @__PURE__ */ i("span", {
|
|
1040
1040
|
className: "bot-plugin-result",
|
|
1041
1041
|
children: "执行中"
|
|
@@ -1297,20 +1297,18 @@ const gD = bN((M, N) => {
|
|
|
1297
1297
|
getCurrentText: () => n
|
|
1298
1298
|
})), U(() => {
|
|
1299
1299
|
if (y(e), e) {
|
|
1300
|
-
const
|
|
1301
|
-
|
|
1302
|
-
const J = E.textContent || E.innerText || "";
|
|
1303
|
-
f(J.replace(/[\n\s]+$/, ""));
|
|
1300
|
+
const x = new DOMParser().parseFromString(e, "text/html").body.textContent || "";
|
|
1301
|
+
f(x.replace(/[\n\s]+$/, ""));
|
|
1304
1302
|
} else
|
|
1305
1303
|
f(void 0);
|
|
1306
1304
|
Y.current && (jM(), q());
|
|
1307
1305
|
}, [e]), U(() => {
|
|
1308
1306
|
if (!Y.current)
|
|
1309
1307
|
return;
|
|
1310
|
-
const
|
|
1311
|
-
if (
|
|
1308
|
+
const x = Y.current.getEditor();
|
|
1309
|
+
if (x && x.bounds !== document.body)
|
|
1312
1310
|
try {
|
|
1313
|
-
console.log("设置 bounds"),
|
|
1311
|
+
console.log("设置 bounds"), x.bounds = document.body;
|
|
1314
1312
|
} catch (J) {
|
|
1315
1313
|
console.warn("设置 bounds 失败:", J);
|
|
1316
1314
|
}
|
|
@@ -1319,8 +1317,8 @@ const gD = bN((M, N) => {
|
|
|
1319
1317
|
var HM;
|
|
1320
1318
|
if (!Y.current)
|
|
1321
1319
|
return;
|
|
1322
|
-
const
|
|
1323
|
-
let OM =
|
|
1320
|
+
const x = Y.current.getEditor(), J = x.root;
|
|
1321
|
+
let OM = x.getText().trim().length > 0;
|
|
1324
1322
|
if (!OM) {
|
|
1325
1323
|
const C = J.querySelectorAll("p");
|
|
1326
1324
|
for (const B of Array.from(C)) {
|
|
@@ -1338,19 +1336,19 @@ const gD = bN((M, N) => {
|
|
|
1338
1336
|
}, [L]), U(() => {
|
|
1339
1337
|
if (!Y.current)
|
|
1340
1338
|
return;
|
|
1341
|
-
const
|
|
1342
|
-
|
|
1339
|
+
const x = Y.current.getEditor().root, J = () => {
|
|
1340
|
+
x.classList.add("hide-placeholder");
|
|
1343
1341
|
}, cM = () => {
|
|
1344
1342
|
setTimeout(() => {
|
|
1345
1343
|
eM();
|
|
1346
1344
|
}, 0);
|
|
1347
1345
|
};
|
|
1348
|
-
return
|
|
1349
|
-
|
|
1346
|
+
return x.addEventListener("compositionstart", J), x.addEventListener("compositionend", cM), () => {
|
|
1347
|
+
x.removeEventListener("compositionstart", J), x.removeEventListener("compositionend", cM);
|
|
1350
1348
|
};
|
|
1351
1349
|
}, [Y.current]);
|
|
1352
|
-
const O = (
|
|
1353
|
-
y(
|
|
1350
|
+
const O = (x) => {
|
|
1351
|
+
y(x), setTimeout(() => {
|
|
1354
1352
|
eM();
|
|
1355
1353
|
}, 0);
|
|
1356
1354
|
}, l = () => {
|
|
@@ -1359,57 +1357,57 @@ const gD = bN((M, N) => {
|
|
|
1359
1357
|
}, q = () => {
|
|
1360
1358
|
if (!Y.current || g)
|
|
1361
1359
|
return;
|
|
1362
|
-
const
|
|
1363
|
-
|
|
1364
|
-
|
|
1360
|
+
const x = Y.current.getEditor();
|
|
1361
|
+
x.focus(), setTimeout(() => {
|
|
1362
|
+
x.getLength() > 0 && x.setSelection(x.getLength(), x.getLength());
|
|
1365
1363
|
});
|
|
1366
1364
|
};
|
|
1367
1365
|
U(() => {
|
|
1368
1366
|
if (!Y.current)
|
|
1369
1367
|
return;
|
|
1370
|
-
const
|
|
1371
|
-
D && (
|
|
1372
|
-
|
|
1373
|
-
}),
|
|
1368
|
+
const x = Y.current.getEditor();
|
|
1369
|
+
D && (x.on("text-change", () => {
|
|
1370
|
+
x.getLength() > D && x.deleteText(D, x.getLength()), jM(), mM(), q();
|
|
1371
|
+
}), x.on("selection-change", mM));
|
|
1374
1372
|
}, [Y, D]);
|
|
1375
1373
|
const jM = () => {
|
|
1376
1374
|
if (!Y.current)
|
|
1377
1375
|
return;
|
|
1378
|
-
const
|
|
1376
|
+
const x = Y.current.getEditor(), J = x.getBounds(x.getLength() - 1, x.getLength());
|
|
1379
1377
|
J && (R(J.left), m(J.top));
|
|
1380
|
-
}, mM = (
|
|
1378
|
+
}, mM = (x) => {
|
|
1381
1379
|
if (!Y.current)
|
|
1382
1380
|
return;
|
|
1383
|
-
const J = Y.current.getEditor(), cM =
|
|
1381
|
+
const J = Y.current.getEditor(), cM = x || J.getSelection();
|
|
1384
1382
|
(cM == null ? void 0 : cM.index) !== void 0 && a(cM == null ? void 0 : cM.index);
|
|
1385
1383
|
};
|
|
1386
1384
|
di("1", () => {
|
|
1387
1385
|
var J;
|
|
1388
|
-
const
|
|
1389
|
-
b && I && (
|
|
1386
|
+
const x = (J = Y.current) == null ? void 0 : J.getEditor();
|
|
1387
|
+
b && I && (x == null || x.blur(), setTimeout(() => W()));
|
|
1390
1388
|
}), di("2", () => {
|
|
1391
1389
|
var J;
|
|
1392
|
-
const
|
|
1393
|
-
b && (
|
|
1390
|
+
const x = (J = Y.current) == null ? void 0 : J.getEditor();
|
|
1391
|
+
b && (x == null || x.blur(), setTimeout(() => lM()));
|
|
1394
1392
|
});
|
|
1395
1393
|
const W = () => {
|
|
1396
1394
|
var J;
|
|
1397
1395
|
if (!I)
|
|
1398
1396
|
return;
|
|
1399
|
-
const
|
|
1400
|
-
|
|
1397
|
+
const x = (J = Y.current) == null ? void 0 : J.getEditor();
|
|
1398
|
+
x == null || x.focus(), $(!1), setTimeout(() => x == null ? void 0 : x.insertText(k, Qe.NETWORK));
|
|
1401
1399
|
}, lM = () => {
|
|
1402
1400
|
var J;
|
|
1403
|
-
const
|
|
1404
|
-
|
|
1401
|
+
const x = (J = Y.current) == null ? void 0 : J.getEditor();
|
|
1402
|
+
x == null || x.focus(), $(!1), setTimeout(() => x == null ? void 0 : x.insertText(k, Qe.DOCUMENT));
|
|
1405
1403
|
}, RM = () => {
|
|
1406
1404
|
var J, cM, OM;
|
|
1407
|
-
const
|
|
1408
|
-
return
|
|
1405
|
+
const x = (J = Y.current) == null ? void 0 : J.getEditor();
|
|
1406
|
+
return x && (x == null ? void 0 : x.getLength()) > 2 && !((cM = x.getText()) != null && cM.includes(Qe.NETWORK)) && !((OM = x.getText()) != null && OM.includes(Qe.DOCUMENT));
|
|
1409
1407
|
};
|
|
1410
1408
|
return U(() => {
|
|
1411
|
-
var
|
|
1412
|
-
A ? (
|
|
1409
|
+
var x, J;
|
|
1410
|
+
A ? (x = Y.current) == null || x.getEditor().disable() : (J = Y.current) == null || J.getEditor().enable();
|
|
1413
1411
|
}, [A]), U(() => (window.addEventListener("resize", jM), () => {
|
|
1414
1412
|
window.removeEventListener("resize", jM);
|
|
1415
1413
|
}), []), /* @__PURE__ */ o("div", {
|
|
@@ -1422,8 +1420,8 @@ const gD = bN((M, N) => {
|
|
|
1422
1420
|
"quill-editor-wrapper": !0,
|
|
1423
1421
|
"quill-editor-wrapper__scroll": w >= 200
|
|
1424
1422
|
}),
|
|
1425
|
-
onKeyDownCapture: (
|
|
1426
|
-
!
|
|
1423
|
+
onKeyDownCapture: (x) => {
|
|
1424
|
+
!x.shiftKey && x.code === "Enter" && x.preventDefault();
|
|
1427
1425
|
},
|
|
1428
1426
|
children: [/* @__PURE__ */ i(Vz, {
|
|
1429
1427
|
theme: "snow",
|
|
@@ -1432,8 +1430,8 @@ const gD = bN((M, N) => {
|
|
|
1432
1430
|
bounds: document.body,
|
|
1433
1431
|
onFocus: () => u(!0),
|
|
1434
1432
|
onBlur: () => u(!1),
|
|
1435
|
-
onKeyDown: (
|
|
1436
|
-
if (!
|
|
1433
|
+
onKeyDown: (x) => {
|
|
1434
|
+
if (!x.shiftKey && x.keyCode == 13) {
|
|
1437
1435
|
const J = L == null ? void 0 : L.replace(/[\n\s]+$/, "");
|
|
1438
1436
|
y(J), j && j(n);
|
|
1439
1437
|
}
|
|
@@ -1442,12 +1440,12 @@ const gD = bN((M, N) => {
|
|
|
1442
1440
|
modules: {
|
|
1443
1441
|
toolbar: !1
|
|
1444
1442
|
},
|
|
1445
|
-
onChange: (
|
|
1443
|
+
onChange: (x, J, cM, OM) => {
|
|
1446
1444
|
if (!J)
|
|
1447
1445
|
return;
|
|
1448
|
-
y(
|
|
1446
|
+
y(x);
|
|
1449
1447
|
const HM = OM.getText().replace(/[\n\s]+$/, "");
|
|
1450
|
-
f(HM), z && z(
|
|
1448
|
+
f(HM), z && z(x, OM);
|
|
1451
1449
|
}
|
|
1452
1450
|
}), /* @__PURE__ */ i("div", {
|
|
1453
1451
|
className: "shortcut-direct",
|
|
@@ -1463,9 +1461,9 @@ const gD = bN((M, N) => {
|
|
|
1463
1461
|
autoAdjustOverflow: !0,
|
|
1464
1462
|
placement: "top",
|
|
1465
1463
|
trigger: "hover",
|
|
1466
|
-
getPopupContainer: (
|
|
1467
|
-
onVisibleChange: (
|
|
1468
|
-
$(
|
|
1464
|
+
getPopupContainer: (x) => x.parentNode,
|
|
1465
|
+
onVisibleChange: (x) => {
|
|
1466
|
+
$(x);
|
|
1469
1467
|
},
|
|
1470
1468
|
content: /* @__PURE__ */ o("div", {
|
|
1471
1469
|
className: "shortcut-direct-pannel",
|
|
@@ -2047,7 +2045,7 @@ const SI = (M) => {
|
|
|
2047
2045
|
});
|
|
2048
2046
|
}, iM = (C, B) => O == null ? void 0 : O.postApplicationIdSessionKnowledgeSessionFile(e, C, B), BM = Xz((C) => {
|
|
2049
2047
|
jM("error", C);
|
|
2050
|
-
}, 300),
|
|
2048
|
+
}, 300), x = (C) => {
|
|
2051
2049
|
j && C != null && C.id && (O == null || O.delApplicationIdSessionKnowledgeFileId(e, j, C.id).then((B) => {
|
|
2052
2050
|
const H = n.filter((d) => d.id !== C.id);
|
|
2053
2051
|
f(H), jM("success", "删除成功"), T && T(C.id);
|
|
@@ -2187,7 +2185,7 @@ const SI = (M) => {
|
|
|
2187
2185
|
window.open(`${L}?url=${encodeURIComponent(C == null ? void 0 : C.url)}`);
|
|
2188
2186
|
},
|
|
2189
2187
|
remove: () => {
|
|
2190
|
-
|
|
2188
|
+
x(C);
|
|
2191
2189
|
},
|
|
2192
2190
|
download: () => {
|
|
2193
2191
|
j && (O == null || O.getApplicationIdSessionKnowledgeFileId(e, j, C.id).then((H) => {
|
|
@@ -2742,7 +2740,7 @@ const LD = Vi(void 0), bI = ({
|
|
|
2742
2740
|
var YM, hM, WM, _M;
|
|
2743
2741
|
V ? (hM = sM.data) != null && hM.createdAt && KM((WM = sM.data) == null ? void 0 : WM.createdAt).valueOf() < KM(V).valueOf() && (V = (_M = sM.data) == null ? void 0 : _M.createdAt) : V = (YM = sM.data) == null ? void 0 : YM.createdAt;
|
|
2744
2742
|
}), V;
|
|
2745
|
-
},
|
|
2743
|
+
}, x = Se((S) => {
|
|
2746
2744
|
S.id && k((V) => [...V.map((sM) => {
|
|
2747
2745
|
var YM;
|
|
2748
2746
|
return ((YM = sM.data) == null ? void 0 : YM.id) === S.id && (sM.data = DM({}, S)), sM;
|
|
@@ -2780,7 +2778,7 @@ const LD = Vi(void 0), bI = ({
|
|
|
2780
2778
|
}
|
|
2781
2779
|
w(t);
|
|
2782
2780
|
}, [t]), U(() => {
|
|
2783
|
-
e == null || e.addEventListener("data:updated",
|
|
2781
|
+
e == null || e.addEventListener("data:updated", x);
|
|
2784
2782
|
}, [e]), XN(N, () => ({
|
|
2785
2783
|
create(S) {
|
|
2786
2784
|
return J(S).then((V) => (j == null || j(V), V));
|
|
@@ -2865,7 +2863,7 @@ const LD = Vi(void 0), bI = ({
|
|
|
2865
2863
|
K(V);
|
|
2866
2864
|
return;
|
|
2867
2865
|
}
|
|
2868
|
-
S.rename(g.trim()), S == null || S.addEventListener("data:updated",
|
|
2866
|
+
S.rename(g.trim()), S == null || S.addEventListener("data:updated", x), d();
|
|
2869
2867
|
}, H = () => {
|
|
2870
2868
|
d();
|
|
2871
2869
|
}, d = () => {
|
|
@@ -3503,7 +3501,7 @@ ${t}` : t;
|
|
|
3503
3501
|
sider: jM,
|
|
3504
3502
|
mode: mM,
|
|
3505
3503
|
silencedSeconds: W
|
|
3506
|
-
} = VM(XM), [lM, RM] = r(!1), iM = bM(g), MN = bM(void 0), [BM,
|
|
3504
|
+
} = VM(XM), [lM, RM] = r(!1), iM = bM(g), MN = bM(void 0), [BM, x] = r(0), [J, cM] = r([]), [OM, HM] = r([]), [C, B] = r(0), [H, d] = r(!1);
|
|
3507
3505
|
U(() => {
|
|
3508
3506
|
d(C > 0);
|
|
3509
3507
|
}, [C]);
|
|
@@ -3542,12 +3540,12 @@ ${t}` : t;
|
|
|
3542
3540
|
t.ready ? PN(!1) : PN(!0);
|
|
3543
3541
|
}
|
|
3544
3542
|
}, [t, t == null ? void 0 : t.ready, vt]), U(() => {
|
|
3545
|
-
var
|
|
3543
|
+
var E, G;
|
|
3546
3544
|
t && (iM.current = []), u([]);
|
|
3547
3545
|
const s = Q.current;
|
|
3548
3546
|
if (s && s.scrollTo({
|
|
3549
3547
|
top: 0
|
|
3550
|
-
}), !((
|
|
3548
|
+
}), !((E = t == null ? void 0 : t.data) != null && E.id))
|
|
3551
3549
|
return;
|
|
3552
3550
|
if (WN(!1), EN(!1), (G = t.messages) != null && G.length) {
|
|
3553
3551
|
const MM = [...t.messages.filter((F) => F == null ? void 0 : F.messageId)].reverse();
|
|
@@ -3567,7 +3565,7 @@ ${t}` : t;
|
|
|
3567
3565
|
}, [t]), U(() => {
|
|
3568
3566
|
const s = () => {
|
|
3569
3567
|
var c;
|
|
3570
|
-
(c = t == null ? void 0 : t.data) != null && c.id && (t.promptVariables && le(t.promptVariables.sort((
|
|
3568
|
+
(c = t == null ? void 0 : t.data) != null && c.id && (t.promptVariables && le(t.promptVariables.sort((E, G) => E.key.localeCompare(G.key))), t.knowledges && sz(t.knowledges), A(t.netOpen));
|
|
3571
3569
|
};
|
|
3572
3570
|
return t == null || t.addEventListener("data:updated", s), () => {
|
|
3573
3571
|
t == null || t.removeEventListener("data:updated", s);
|
|
@@ -3576,13 +3574,13 @@ ${t}` : t;
|
|
|
3576
3574
|
var c;
|
|
3577
3575
|
if (!((c = t == null ? void 0 : t.data) != null && c.id))
|
|
3578
3576
|
return;
|
|
3579
|
-
const s = (
|
|
3577
|
+
const s = (E) => {
|
|
3580
3578
|
var G;
|
|
3581
|
-
console.error(
|
|
3579
|
+
console.error(E.message, E.cause, "e.case"), FM.config({
|
|
3582
3580
|
getContainer: () => (v == null ? void 0 : v.current) || document.body,
|
|
3583
3581
|
prefixCls: "gbot-notification"
|
|
3584
3582
|
}), FM.error({
|
|
3585
|
-
message: ((G =
|
|
3583
|
+
message: ((G = E.cause) == null ? void 0 : G.message) || E.message
|
|
3586
3584
|
}), FM.config({
|
|
3587
3585
|
getContainer: void 0,
|
|
3588
3586
|
prefixCls: "gbot-notification"
|
|
@@ -3593,8 +3591,8 @@ ${t}` : t;
|
|
|
3593
3591
|
};
|
|
3594
3592
|
}, [t]);
|
|
3595
3593
|
const az = () => {
|
|
3596
|
-
var
|
|
3597
|
-
if (!((
|
|
3594
|
+
var E;
|
|
3595
|
+
if (!((E = t == null ? void 0 : t.data) != null && E.id) || !(e != null && e.id))
|
|
3598
3596
|
return;
|
|
3599
3597
|
const s = t.data.id, c = g[g.length - 1];
|
|
3600
3598
|
if (c && c.isContext) {
|
|
@@ -3694,7 +3692,7 @@ ${t}` : t;
|
|
|
3694
3692
|
return;
|
|
3695
3693
|
}
|
|
3696
3694
|
(($M = hM[G]) == null ? void 0 : $M.length) > 0 ? rz(F) : mj(F);
|
|
3697
|
-
}), Uj = (s) => new Promise((c,
|
|
3695
|
+
}), Uj = (s) => new Promise((c, E) => tM(void 0, null, function* () {
|
|
3698
3696
|
const MM = (s == null ? void 0 : s.promptVariables).filter((F) => F.type ? !((F.type === SM.User || F.type === void 0) && F.key === "query") && !((F.type === SM.System || F.type === void 0) && F.key === "datetime") : F.key !== "query").map((F) => {
|
|
3699
3697
|
var NM;
|
|
3700
3698
|
const QM = (NM = nN.find((GM) => GM.key === F.key && GM.type === F.type)) == null ? void 0 : NM.value;
|
|
@@ -3708,24 +3706,24 @@ ${t}` : t;
|
|
|
3708
3706
|
if (qN(!1), !((p = t == null ? void 0 : t.data) != null && p.id) || !(e != null && e.id))
|
|
3709
3707
|
return;
|
|
3710
3708
|
const c = ((MM = t.data) == null ? void 0 : MM.id) || "";
|
|
3711
|
-
let
|
|
3709
|
+
let E = [], G = /* @__PURE__ */ new Set();
|
|
3712
3710
|
(F = hM[c]) == null || F.forEach((QM) => {
|
|
3713
|
-
G.has(QM.id) || (
|
|
3714
|
-
}), qN(!0), mj(s,
|
|
3711
|
+
G.has(QM.id) || (E.push(QM), G.add(QM.id));
|
|
3712
|
+
}), qN(!0), mj(s, E);
|
|
3715
3713
|
};
|
|
3716
3714
|
U(() => {
|
|
3717
3715
|
if (!n || !t)
|
|
3718
3716
|
return;
|
|
3719
3717
|
const s = n, c = () => tM(void 0, null, function* () {
|
|
3720
3718
|
Be(!0);
|
|
3721
|
-
const
|
|
3719
|
+
const E = Wj(s, OM, hM[t.id], (e == null ? void 0 : e.type) || 0);
|
|
3722
3720
|
let G;
|
|
3723
3721
|
try {
|
|
3724
3722
|
Y ? G = yield Y == null ? void 0 : Y({
|
|
3725
3723
|
applicationId: e.id,
|
|
3726
3724
|
sessionId: t.id,
|
|
3727
3725
|
message: {
|
|
3728
|
-
content:
|
|
3726
|
+
content: E,
|
|
3729
3727
|
sessionId: t.id,
|
|
3730
3728
|
role: Oi.User,
|
|
3731
3729
|
files: hM[t.id]
|
|
@@ -3746,8 +3744,8 @@ ${t}` : t;
|
|
|
3746
3744
|
}, [n, t]);
|
|
3747
3745
|
const mj = (s, c) => tM(void 0, null, function* () {
|
|
3748
3746
|
var TM, $M, PM;
|
|
3749
|
-
const
|
|
3750
|
-
if (!
|
|
3747
|
+
const E = (TM = t == null ? void 0 : t.data) == null ? void 0 : TM.id;
|
|
3748
|
+
if (!E)
|
|
3751
3749
|
return;
|
|
3752
3750
|
WN(!0), EN(!0);
|
|
3753
3751
|
const G = Wj(s, OM, c, (e == null ? void 0 : e.type) || 0);
|
|
@@ -3761,7 +3759,7 @@ ${t}` : t;
|
|
|
3761
3759
|
p = void 0;
|
|
3762
3760
|
const MM = new we(
|
|
3763
3761
|
G,
|
|
3764
|
-
|
|
3762
|
+
E,
|
|
3765
3763
|
RN.User,
|
|
3766
3764
|
c,
|
|
3767
3765
|
p
|
|
@@ -3769,10 +3767,10 @@ ${t}` : t;
|
|
|
3769
3767
|
);
|
|
3770
3768
|
y(void 0), YM(void 0), iM.current = [MM, ...g], u(iM.current), e.id && $ && $({
|
|
3771
3769
|
applicationId: e.id,
|
|
3772
|
-
sessionId:
|
|
3770
|
+
sessionId: E,
|
|
3773
3771
|
message: MM
|
|
3774
3772
|
});
|
|
3775
|
-
const F = new we("",
|
|
3773
|
+
const F = new we("", E, RN.System);
|
|
3776
3774
|
F.isWaiting = !0, iM.current = [F, ...iM.current], u(iM.current);
|
|
3777
3775
|
const QM = (c == null ? void 0 : c.map((CM) => CM.id)) || [], NM = {
|
|
3778
3776
|
stream: MD.stream,
|
|
@@ -3794,7 +3792,7 @@ ${t}` : t;
|
|
|
3794
3792
|
p && p.length > 0 && (GM.imageContent = p), t.ready || (yield new Promise((CM) => {
|
|
3795
3793
|
t.addEventListener("ready", () => CM(), !0);
|
|
3796
3794
|
})), yield t.send(GM, NM), WM({
|
|
3797
|
-
[
|
|
3795
|
+
[E]: []
|
|
3798
3796
|
}), (PM = _M.current) == null || PM.update(), cM([]), HM([]), Ne(!1);
|
|
3799
3797
|
});
|
|
3800
3798
|
U(() => {
|
|
@@ -3802,11 +3800,11 @@ ${t}` : t;
|
|
|
3802
3800
|
const s = (QM = t == null ? void 0 : t.data) == null ? void 0 : QM.id;
|
|
3803
3801
|
if (!s)
|
|
3804
3802
|
return;
|
|
3805
|
-
let c = null,
|
|
3803
|
+
let c = null, E = null;
|
|
3806
3804
|
const G = () => {
|
|
3807
|
-
c = null,
|
|
3805
|
+
c = null, E && (u([E, ...iM.current]), E = null);
|
|
3808
3806
|
}, p = () => {
|
|
3809
|
-
c !== null && (cancelAnimationFrame(c), c = null,
|
|
3807
|
+
c !== null && (cancelAnimationFrame(c), c = null, E = null);
|
|
3810
3808
|
}, MM = (NM) => {
|
|
3811
3809
|
if (!NM.sessionId || NM.sessionId && NM.sessionId !== MN.current || NM.role === RN.User)
|
|
3812
3810
|
return;
|
|
@@ -3824,7 +3822,7 @@ ${t}` : t;
|
|
|
3824
3822
|
}
|
|
3825
3823
|
const GM = NM.actions || [], TM = new we(NM.content, s, RN.Robot);
|
|
3826
3824
|
if (TM.messageId = NM.messageId || me(), TM.reasoningContent = NM.reasoningContent, TM.searchReference = NM.searchReference, TM.thinkingSecs = NM.thinkingSecs, TM.thinkingStatus = NM.thinkingStatus, TM.actions = GM, TM.isLoading = !0, TM.searchingStatus = NM.searchingStatus, iM.current = iM.current.filter(($M) => !$M.isWaiting).filter(($M) => !$M.isReplying), NM.index === void 0) {
|
|
3827
|
-
|
|
3825
|
+
E = TM, c === null && (c = requestAnimationFrame(G));
|
|
3828
3826
|
return;
|
|
3829
3827
|
}
|
|
3830
3828
|
p(), (NM.code === 11915 || NM.code === 11916) && (EN(!1), WN(!1), TM.isLoading = !1, TM.content = NM.code === 11916 ? "尊敬的用户您好,让我们换个话题再聊聊吧。" : "请您换个问题问我吧~", TM.isSensitive = !0, u([TM, ...iM.current])), NM.index === -2 && (EN(!1), WN(!1), TM.isLoading = !1, TM.content = "回答已中止~", TM.isSuspend = !0, u([TM, ...iM.current])), NM.index === -1 && (EN(!1), WN(!1), TM.isLoading = !1, TM.reference = NM.reference, u([TM, ...iM.current]), e.id && $ && $({
|
|
@@ -3853,21 +3851,21 @@ ${t}` : t;
|
|
|
3853
3851
|
if (!w)
|
|
3854
3852
|
return;
|
|
3855
3853
|
const s = w.questionContextMaxLength || 4e3;
|
|
3856
|
-
|
|
3854
|
+
x(s);
|
|
3857
3855
|
}, [w, R]), U(() => {
|
|
3858
3856
|
b && YM(b.text);
|
|
3859
3857
|
}, [b]);
|
|
3860
|
-
const DN = (s, c,
|
|
3858
|
+
const DN = (s, c, E) => {
|
|
3861
3859
|
sN(v, () => {
|
|
3862
3860
|
gN.open({
|
|
3863
3861
|
type: s,
|
|
3864
3862
|
content: c,
|
|
3865
|
-
key:
|
|
3863
|
+
key: E
|
|
3866
3864
|
});
|
|
3867
3865
|
});
|
|
3868
3866
|
}, Wt = (s) => {
|
|
3869
3867
|
const c = s.size;
|
|
3870
|
-
return c <= 0 ? (DN("error", "该文件为空,请重新上传"), !1) : c > Gj * Ij ? (DN("error", `图片须小于${Gj}M`), !1) : (cM((
|
|
3868
|
+
return c <= 0 ? (DN("error", "该文件为空,请重新上传"), !1) : c > Gj * Ij ? (DN("error", `图片须小于${Gj}M`), !1) : (cM((E) => E.length >= je ? (DN("warning", `图片最多上传${je}张`), E) : [...E, s]), !1);
|
|
3871
3869
|
}, oz = () => {
|
|
3872
3870
|
var s;
|
|
3873
3871
|
return (e.type === IN.Agent && (a == null ? void 0 : a.imageUpload) || e.type === IN.Dialog && ((s = e.arrange) == null ? void 0 : s.length) && !!e.arrange[0].visionOpen && (a == null ? void 0 : a.imageUpload)) && !O;
|
|
@@ -3876,12 +3874,12 @@ ${t}` : t;
|
|
|
3876
3874
|
const c = Array.from(s || []).filter(Boolean);
|
|
3877
3875
|
if (!c.length)
|
|
3878
3876
|
return;
|
|
3879
|
-
const
|
|
3877
|
+
const E = oz(), G = Cz(), p = [], MM = [];
|
|
3880
3878
|
let F = 0, QM = 0, NM = 0;
|
|
3881
3879
|
c.forEach((CM) => {
|
|
3882
3880
|
var Ti, ui, si;
|
|
3883
3881
|
if (((Ti = CM.type) == null ? void 0 : Ti.startsWith("image/")) || !!xi(CM.name)) {
|
|
3884
|
-
|
|
3882
|
+
E ? p.push(CM) : F++;
|
|
3885
3883
|
return;
|
|
3886
3884
|
}
|
|
3887
3885
|
const se = (si = (ui = CM.name) == null ? void 0 : ui.split(".").pop()) == null ? void 0 : si.toLowerCase();
|
|
@@ -3892,12 +3890,12 @@ ${t}` : t;
|
|
|
3892
3890
|
NM++;
|
|
3893
3891
|
});
|
|
3894
3892
|
const GM = [], TM = F + QM + NM;
|
|
3895
|
-
if (!G && !
|
|
3893
|
+
if (!G && !E)
|
|
3896
3894
|
TM && GM.push(`当前不支持上传文件/图片,已忽略${TM}个文件`);
|
|
3897
|
-
else if (G && !
|
|
3895
|
+
else if (G && !E) {
|
|
3898
3896
|
const CM = F + NM;
|
|
3899
3897
|
CM && GM.push(`仅支持上传 .doc/.docx/.pdf 文件,已忽略${CM}个其他类型文件`);
|
|
3900
|
-
} else if (!G &&
|
|
3898
|
+
} else if (!G && E) {
|
|
3901
3899
|
const CM = QM + NM;
|
|
3902
3900
|
CM && GM.push(`仅支持上传图片(.jpg/.jpeg/.png/.bmp),已忽略${CM}个其他类型文件`);
|
|
3903
3901
|
} else
|
|
@@ -3908,37 +3906,37 @@ ${t}` : t;
|
|
|
3908
3906
|
}
|
|
3909
3907
|
MM.length && ((PM = ($M = _M.current) == null ? void 0 : $M.appendFiles) == null || PM.call($M, MM));
|
|
3910
3908
|
}, Rt = (s) => {
|
|
3911
|
-
var
|
|
3912
|
-
const c = (
|
|
3909
|
+
var E;
|
|
3910
|
+
const c = (E = s.clipboardData) == null ? void 0 : E.files;
|
|
3913
3911
|
c && c.length && (s.preventDefault(), s.stopPropagation(), Pt(c));
|
|
3914
3912
|
}, Zt = (s) => {
|
|
3915
3913
|
s.preventDefault();
|
|
3916
3914
|
}, _t = (s) => {
|
|
3917
|
-
var
|
|
3915
|
+
var E;
|
|
3918
3916
|
s.preventDefault(), s.stopPropagation();
|
|
3919
|
-
const c = (
|
|
3917
|
+
const c = (E = s.dataTransfer) == null ? void 0 : E.files;
|
|
3920
3918
|
c && c.length && Pt(c);
|
|
3921
3919
|
}, Jt = () => tM(void 0, null, function* () {
|
|
3922
3920
|
var s;
|
|
3923
|
-
return (s = t == null ? void 0 : t.data) != null && s.id ? t : (ue.current || (ue.current = new Promise((c,
|
|
3921
|
+
return (s = t == null ? void 0 : t.data) != null && s.id ? t : (ue.current || (ue.current = new Promise((c, E) => {
|
|
3924
3922
|
Me(!0), D == null || D({
|
|
3925
3923
|
netOpen: T ? ZN.OPEN : ZN.CLOSE
|
|
3926
3924
|
}).then((G) => {
|
|
3927
3925
|
var p, MM;
|
|
3928
3926
|
I == null || I(G), Me(!1), A(!!((p = G.data) != null && p.netOpen)), Ye(!!((MM = G.data) != null && MM.enableNetOpen)), Uj(G), c(G);
|
|
3929
3927
|
}).catch((G) => {
|
|
3930
|
-
ue.current = null,
|
|
3928
|
+
ue.current = null, E(G);
|
|
3931
3929
|
});
|
|
3932
3930
|
})), ue.current);
|
|
3933
3931
|
}), lz = (s) => tM(void 0, null, function* () {
|
|
3934
3932
|
const c = yield Jt();
|
|
3935
3933
|
return Oz(c, s);
|
|
3936
3934
|
}), Oz = (s, c) => {
|
|
3937
|
-
const
|
|
3935
|
+
const E = xi(c.name);
|
|
3938
3936
|
return new Promise((G) => {
|
|
3939
3937
|
var MM;
|
|
3940
3938
|
const p = {
|
|
3941
|
-
files: [`${me()}.${
|
|
3939
|
+
files: [`${me()}.${E}`],
|
|
3942
3940
|
isv: "minio",
|
|
3943
3941
|
knowledgeId: ((MM = s.data) == null ? void 0 : MM.id) || "",
|
|
3944
3942
|
type: 1
|
|
@@ -3960,15 +3958,15 @@ ${t}` : t;
|
|
|
3960
3958
|
top: s.scrollHeight
|
|
3961
3959
|
});
|
|
3962
3960
|
}, [g]);
|
|
3963
|
-
const Bt = (s, c) => new Promise((
|
|
3961
|
+
const Bt = (s, c) => new Promise((E) => {
|
|
3964
3962
|
if (!c.file.url || !(e != null && e.id))
|
|
3965
|
-
return
|
|
3963
|
+
return E();
|
|
3966
3964
|
const G = NN(DM({}, c.file), {
|
|
3967
3965
|
type: 1
|
|
3968
3966
|
});
|
|
3969
3967
|
R == null || R.postApplicationIdSessionKnowledgeSessionFile(e == null ? void 0 : e.id, s, G).finally(() => {
|
|
3970
3968
|
var p;
|
|
3971
|
-
(p = _M.current) == null || p.update().finally(
|
|
3969
|
+
(p = _M.current) == null || p.update().finally(E);
|
|
3972
3970
|
});
|
|
3973
3971
|
}), Yz = () => {
|
|
3974
3972
|
var s;
|
|
@@ -3987,8 +3985,8 @@ ${t}` : t;
|
|
|
3987
3985
|
const s = Q.current.scrollTop <= -80;
|
|
3988
3986
|
Tz(s);
|
|
3989
3987
|
}, Ez = Se((s) => {
|
|
3990
|
-
var c,
|
|
3991
|
-
(c = _.current) == null || c.update(s), (
|
|
3988
|
+
var c, E;
|
|
3989
|
+
(c = _.current) == null || c.update(s), (E = _.current) == null || E.focus();
|
|
3992
3990
|
}), xz = Se((s) => {
|
|
3993
3991
|
Gt(s);
|
|
3994
3992
|
}), Qz = Se(() => {
|
|
@@ -4004,8 +4002,8 @@ ${t}` : t;
|
|
|
4004
4002
|
MN.current = (s = t == null ? void 0 : t.data) == null ? void 0 : s.id, !Ut && ((c = KN.current) == null || c.clear());
|
|
4005
4003
|
}, [t]);
|
|
4006
4004
|
const hz = () => {
|
|
4007
|
-
var
|
|
4008
|
-
if (!((
|
|
4005
|
+
var E;
|
|
4006
|
+
if (!((E = t == null ? void 0 : t.data) != null && E.id))
|
|
4009
4007
|
return;
|
|
4010
4008
|
const c = g[g.length - 1].messageTime;
|
|
4011
4009
|
t.fetchMessages({
|
|
@@ -4020,11 +4018,11 @@ ${t}` : t;
|
|
|
4020
4018
|
p.length < 10 ? Oe(!1) : Oe(!0), u([...g, ...p.reverse()]);
|
|
4021
4019
|
});
|
|
4022
4020
|
}, Sz = (s) => tM(void 0, null, function* () {
|
|
4023
|
-
var c,
|
|
4021
|
+
var c, E;
|
|
4024
4022
|
if (!((c = t == null ? void 0 : t.data) != null && c.id))
|
|
4025
4023
|
A(s);
|
|
4026
4024
|
else {
|
|
4027
|
-
if (yield t.setNetOpen(s), !((
|
|
4025
|
+
if (yield t.setNetOpen(s), !((E = t.data) != null && E.id))
|
|
4028
4026
|
return;
|
|
4029
4027
|
A(s);
|
|
4030
4028
|
}
|
|
@@ -4038,7 +4036,7 @@ ${t}` : t;
|
|
|
4038
4036
|
fj();
|
|
4039
4037
|
}, [t]), U(() => {
|
|
4040
4038
|
let s = null, c = null;
|
|
4041
|
-
const
|
|
4039
|
+
const E = () => {
|
|
4042
4040
|
var GM, TM;
|
|
4043
4041
|
if (!Q.current)
|
|
4044
4042
|
return;
|
|
@@ -4061,11 +4059,11 @@ ${t}` : t;
|
|
|
4061
4059
|
return;
|
|
4062
4060
|
const p = document.getElementById("chat-main"), MM = (F = Q.current) == null ? void 0 : F.querySelector(".infinite-scroll-component");
|
|
4063
4061
|
!MM || !p || (c = new ResizeObserver(() => {
|
|
4064
|
-
|
|
4062
|
+
E();
|
|
4065
4063
|
}), c.observe(MM), c.observe(p));
|
|
4066
4064
|
};
|
|
4067
4065
|
return s = requestAnimationFrame(() => {
|
|
4068
|
-
|
|
4066
|
+
E(), G();
|
|
4069
4067
|
}), () => {
|
|
4070
4068
|
s !== null && cancelAnimationFrame(s), c == null || c.disconnect();
|
|
4071
4069
|
};
|
|
@@ -4093,8 +4091,8 @@ ${t}` : t;
|
|
|
4093
4091
|
const Ht = () => D == null ? void 0 : D({
|
|
4094
4092
|
netOpen: T ? ZN.OPEN : ZN.CLOSE
|
|
4095
4093
|
}).then((s) => {
|
|
4096
|
-
var c,
|
|
4097
|
-
return I == null || I(s), Me(!1), A(!!((c = s.data) != null && c.netOpen)), Ye(!!((
|
|
4094
|
+
var c, E;
|
|
4095
|
+
return I == null || I(s), Me(!1), A(!!((c = s.data) != null && c.netOpen)), Ye(!!((E = s.data) != null && E.enableNetOpen)), Uj(s), s;
|
|
4098
4096
|
}), Ft = !!g.length, Vt = Xi(() => {
|
|
4099
4097
|
var s;
|
|
4100
4098
|
return e.arrange && ((s = e.arrange[0]) != null && s.openingContent) ? /* @__PURE__ */ i(ID, {
|
|
@@ -4123,7 +4121,7 @@ ${t}` : t;
|
|
|
4123
4121
|
})), U(() => {
|
|
4124
4122
|
var c;
|
|
4125
4123
|
const s = (c = t == null ? void 0 : t.data) == null ? void 0 : c.id;
|
|
4126
|
-
s && WM((
|
|
4124
|
+
s && WM((E) => NN(DM({}, E), {
|
|
4127
4125
|
[s]: []
|
|
4128
4126
|
}));
|
|
4129
4127
|
}, [(Xt = t == null ? void 0 : t.data) == null ? void 0 : Xt.id]), /* @__PURE__ */ o("div", {
|
|
@@ -4210,11 +4208,11 @@ ${t}` : t;
|
|
|
4210
4208
|
data: zM,
|
|
4211
4209
|
layoutBreakpoints: typeof (l == null ? void 0 : l.greeting) == "object" ? l.greeting.layoutBreakpoints : void 0,
|
|
4212
4210
|
onItemClick: (s) => {
|
|
4213
|
-
var
|
|
4211
|
+
var E, G, p;
|
|
4214
4212
|
if (y(s == null ? void 0 : s.question), YM(s == null ? void 0 : s.question), dM)
|
|
4215
4213
|
return;
|
|
4216
4214
|
s != null && s.id && fM(!0);
|
|
4217
|
-
const c = (
|
|
4215
|
+
const c = (E = t == null ? void 0 : t.data) == null ? void 0 : E.id;
|
|
4218
4216
|
a != null && a.fileUpload ? (p = (G = _M.current) == null ? void 0 : G.clear()) == null || p.then(() => {
|
|
4219
4217
|
var MM, F;
|
|
4220
4218
|
s != null && s.id && (c ? (MM = Bt(c, s)) == null || MM.finally(() => {
|
|
@@ -4274,22 +4272,22 @@ ${t}` : t;
|
|
|
4274
4272
|
className: "thumb-40",
|
|
4275
4273
|
file: s,
|
|
4276
4274
|
actions: {
|
|
4277
|
-
upload: (
|
|
4275
|
+
upload: (E) => tM(void 0, null, function* () {
|
|
4278
4276
|
B((G) => G + 1);
|
|
4279
4277
|
try {
|
|
4280
|
-
return yield lz(
|
|
4278
|
+
return yield lz(E);
|
|
4281
4279
|
} finally {
|
|
4282
4280
|
B((G) => Math.max(0, G - 1));
|
|
4283
4281
|
}
|
|
4284
4282
|
}),
|
|
4285
4283
|
remove: () => {
|
|
4286
|
-
cM((
|
|
4284
|
+
cM((E) => E.filter((G, p) => p !== c)), HM((E) => E.filter((G, p) => p !== c));
|
|
4287
4285
|
}
|
|
4288
4286
|
},
|
|
4289
|
-
onUrlChange: (
|
|
4287
|
+
onUrlChange: (E) => {
|
|
4290
4288
|
HM((G) => {
|
|
4291
4289
|
const p = [...G];
|
|
4292
|
-
return p[c] =
|
|
4290
|
+
return p[c] = E, p;
|
|
4293
4291
|
});
|
|
4294
4292
|
}
|
|
4295
4293
|
}, c))
|
|
@@ -4356,22 +4354,22 @@ ${t}` : t;
|
|
|
4356
4354
|
s !== "process" ? (qN(!0), fj()) : qN(!1);
|
|
4357
4355
|
}),
|
|
4358
4356
|
createSession: () => Jt().then((s) => {
|
|
4359
|
-
var
|
|
4360
|
-
return ((
|
|
4357
|
+
var E;
|
|
4358
|
+
return ((E = s.data) == null ? void 0 : E.id) || "";
|
|
4361
4359
|
}),
|
|
4362
4360
|
sid: (ii = t == null ? void 0 : t.data) == null ? void 0 : ii.id,
|
|
4363
4361
|
disabled: Sj || O,
|
|
4364
4362
|
afterFileAdd: (s, c) => {
|
|
4365
|
-
c && WM((
|
|
4366
|
-
const G =
|
|
4363
|
+
c && WM((E) => {
|
|
4364
|
+
const G = E[c] || [];
|
|
4367
4365
|
return {
|
|
4368
4366
|
[c]: [...G, s]
|
|
4369
4367
|
};
|
|
4370
4368
|
});
|
|
4371
4369
|
},
|
|
4372
4370
|
afterFileDelete: (s) => {
|
|
4373
|
-
var
|
|
4374
|
-
const c = (
|
|
4371
|
+
var E;
|
|
4372
|
+
const c = (E = t == null ? void 0 : t.data) == null ? void 0 : E.id;
|
|
4375
4373
|
c && WM((G) => {
|
|
4376
4374
|
const p = G[c] || [];
|
|
4377
4375
|
return {
|
|
@@ -4471,8 +4469,8 @@ ${t}` : t;
|
|
|
4471
4469
|
onTextSend: Gt,
|
|
4472
4470
|
onChange: (s, c) => {
|
|
4473
4471
|
YM(s);
|
|
4474
|
-
const
|
|
4475
|
-
y(
|
|
4472
|
+
const E = c.getText().replace(/[\n\s]+$/, "");
|
|
4473
|
+
y(E), ZM(E), S || V(!0);
|
|
4476
4474
|
},
|
|
4477
4475
|
clearAction: /* @__PURE__ */ i(wM, {
|
|
4478
4476
|
size: 0,
|
|
@@ -4825,7 +4823,7 @@ const $I = bN((M, N) => {
|
|
|
4825
4823
|
}), U(() => {
|
|
4826
4824
|
t && RM(t);
|
|
4827
4825
|
}, [t]);
|
|
4828
|
-
const
|
|
4826
|
+
const x = (J, {
|
|
4829
4827
|
element: cM,
|
|
4830
4828
|
size: OM
|
|
4831
4829
|
}) => {
|
|
@@ -4871,7 +4869,7 @@ const $I = bN((M, N) => {
|
|
|
4871
4869
|
width: (lM == null ? void 0 : lM.width) || "100%",
|
|
4872
4870
|
maxConstraints: [document.body.clientWidth - 45],
|
|
4873
4871
|
minConstraints: [Number(t == null ? void 0 : t.minWidth)],
|
|
4874
|
-
onResize:
|
|
4872
|
+
onResize: x,
|
|
4875
4873
|
handle: /* @__PURE__ */ i("span", {
|
|
4876
4874
|
className: "resize-handle-ew"
|
|
4877
4875
|
}),
|
|
@@ -4914,7 +4912,7 @@ const $I = bN((M, N) => {
|
|
|
4914
4912
|
})]
|
|
4915
4913
|
})
|
|
4916
4914
|
});
|
|
4917
|
-
}), qI = "@glodon-aiot/agent-cli-ui", Mg = "3.
|
|
4915
|
+
}), qI = "@glodon-aiot/agent-cli-ui", Mg = "3.21.0-alpha.1", Ng = "./dist/es/index.mjs", eg = "./dist/lib/index.js", jg = "./dist/src/index.d.ts", tg = {
|
|
4918
4916
|
import: "./dist/es/index.mjs",
|
|
4919
4917
|
require: "./dist/lib/index.js",
|
|
4920
4918
|
types: "./dist/src/index.d.ts"
|
|
@@ -4936,9 +4934,9 @@ const $I = bN((M, N) => {
|
|
|
4936
4934
|
commit: "cz"
|
|
4937
4935
|
}, gg = {
|
|
4938
4936
|
"@ant-design/icons": "^5.3.4",
|
|
4939
|
-
"@glodon-aiot/apis": "^3.
|
|
4940
|
-
"@glodon-aiot/bot-client-sdk": "^3.
|
|
4941
|
-
"@glodon-aiot/react-components": "^3.
|
|
4937
|
+
"@glodon-aiot/apis": "^3.21.0-alpha.1",
|
|
4938
|
+
"@glodon-aiot/bot-client-sdk": "^3.21.0-alpha.1",
|
|
4939
|
+
"@glodon-aiot/react-components": "^3.21.0-alpha.1",
|
|
4942
4940
|
"@matejmazur/react-mathjax": "^0.1.10",
|
|
4943
4941
|
"@react-pdf-viewer/core": "^3.12.0",
|
|
4944
4942
|
"@react-pdf-viewer/default-layout": "^3.12.0",
|
|
@@ -7663,7 +7661,7 @@ const {
|
|
|
7663
7661
|
}));
|
|
7664
7662
|
}), BM = (C) => {
|
|
7665
7663
|
D(C.target.value);
|
|
7666
|
-
},
|
|
7664
|
+
}, x = () => tM(void 0, null, function* () {
|
|
7667
7665
|
if (!j || !q || !jM)
|
|
7668
7666
|
return;
|
|
7669
7667
|
u(!0);
|
|
@@ -7818,7 +7816,7 @@ const {
|
|
|
7818
7816
|
}), /* @__PURE__ */ i(LM, {
|
|
7819
7817
|
type: "primary",
|
|
7820
7818
|
disabled: !t || g,
|
|
7821
|
-
onClick:
|
|
7819
|
+
onClick: x,
|
|
7822
7820
|
className: "sider-btn",
|
|
7823
7821
|
loading: g,
|
|
7824
7822
|
children: g ? "生成中" : "确认生成"
|