@mxmweb/aichat 1.4.1 → 1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/adopters/GientechChat/index.d.ts +32 -1
- package/components/defaultStyleSet.d.ts +30 -24
- package/index.js +440 -451
- package/package.json +1 -1
- /package/assets/{aichat.css → style.css} +0 -0
package/index.js
CHANGED
|
@@ -388,7 +388,7 @@ function TI() {
|
|
|
388
388
|
}
|
|
389
389
|
return oe.ref !== void 0;
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function we(oe) {
|
|
392
392
|
if (ne.call(oe, "key")) {
|
|
393
393
|
var Fe = Object.getOwnPropertyDescriptor(oe, "key").get;
|
|
394
394
|
if (Fe && Fe.isReactWarning)
|
|
@@ -453,7 +453,7 @@ function TI() {
|
|
|
453
453
|
function ve(oe, Fe, Be, nt, it) {
|
|
454
454
|
{
|
|
455
455
|
var st, at = {}, rt = null, Vt = null;
|
|
456
|
-
Be !== void 0 && (ge(Be), rt = "" + Be),
|
|
456
|
+
Be !== void 0 && (ge(Be), rt = "" + Be), we(Fe) && (ge(Fe.key), rt = "" + Fe.key), Ae(Fe) && (Vt = Fe.ref, ze(Fe, it));
|
|
457
457
|
for (st in Fe)
|
|
458
458
|
ne.call(Fe, st) && !ke.hasOwnProperty(st) && (at[st] = Fe[st]);
|
|
459
459
|
if (oe && oe.defaultProps) {
|
|
@@ -497,7 +497,7 @@ Check the render method of \`` + oe + "`.";
|
|
|
497
497
|
return "";
|
|
498
498
|
}
|
|
499
499
|
var ie = {};
|
|
500
|
-
function
|
|
500
|
+
function Se(oe) {
|
|
501
501
|
{
|
|
502
502
|
var Fe = Ge();
|
|
503
503
|
if (!Fe) {
|
|
@@ -514,7 +514,7 @@ Check the top-level render call using <` + Be + ">.");
|
|
|
514
514
|
if (!oe._store || oe._store.validated || oe.key != null)
|
|
515
515
|
return;
|
|
516
516
|
oe._store.validated = !0;
|
|
517
|
-
var Be =
|
|
517
|
+
var Be = Se(Fe);
|
|
518
518
|
if (ie[Be])
|
|
519
519
|
return;
|
|
520
520
|
ie[Be] = !0;
|
|
@@ -6745,7 +6745,7 @@ const rB = (e) => {
|
|
|
6745
6745
|
colorPicker: He,
|
|
6746
6746
|
datePicker: Ye,
|
|
6747
6747
|
rangePicker: Ae,
|
|
6748
|
-
flex:
|
|
6748
|
+
flex: we,
|
|
6749
6749
|
wave: ze,
|
|
6750
6750
|
dropdown: he,
|
|
6751
6751
|
warning: le,
|
|
@@ -6765,14 +6765,14 @@ const rB = (e) => {
|
|
|
6765
6765
|
return oe;
|
|
6766
6766
|
const Be = Fe || b.getPrefixCls("");
|
|
6767
6767
|
return lt ? `${Be}-${lt}` : Be;
|
|
6768
|
-
}, [b.getPrefixCls, e.prefixCls]), ie = y || b.iconPrefixCls || dd,
|
|
6769
|
-
DA(ie,
|
|
6768
|
+
}, [b.getPrefixCls, e.prefixCls]), ie = y || b.iconPrefixCls || dd, Se = n || b.csp;
|
|
6769
|
+
DA(ie, Se);
|
|
6770
6770
|
const ye = IA(C, b.theme, {
|
|
6771
6771
|
prefixCls: ce("")
|
|
6772
6772
|
});
|
|
6773
6773
|
process.env.NODE_ENV !== "production" && (Ig = Ig || !!ye);
|
|
6774
6774
|
const Ne = {
|
|
6775
|
-
csp:
|
|
6775
|
+
csp: Se,
|
|
6776
6776
|
autoInsertSpaceInButton: r,
|
|
6777
6777
|
alert: a,
|
|
6778
6778
|
anchor: o,
|
|
@@ -6833,7 +6833,7 @@ const rB = (e) => {
|
|
|
6833
6833
|
colorPicker: He,
|
|
6834
6834
|
datePicker: Ye,
|
|
6835
6835
|
rangePicker: Ae,
|
|
6836
|
-
flex:
|
|
6836
|
+
flex: we,
|
|
6837
6837
|
wave: ze,
|
|
6838
6838
|
dropdown: he,
|
|
6839
6839
|
warning: le,
|
|
@@ -6863,9 +6863,9 @@ const rB = (e) => {
|
|
|
6863
6863
|
layer: mt
|
|
6864
6864
|
} = m.useContext(Bl), Qe = m.useMemo(() => ({
|
|
6865
6865
|
prefixCls: ie,
|
|
6866
|
-
csp:
|
|
6866
|
+
csp: Se,
|
|
6867
6867
|
layer: mt ? "antd" : void 0
|
|
6868
|
-
}), [ie,
|
|
6868
|
+
}), [ie, Se, mt]);
|
|
6869
6869
|
let et = /* @__PURE__ */ m.createElement(m.Fragment, null, /* @__PURE__ */ m.createElement(QA, {
|
|
6870
6870
|
dropdownMatchSelectWidth: h
|
|
6871
6871
|
}), t);
|
|
@@ -10893,7 +10893,7 @@ const nk = {
|
|
|
10893
10893
|
[`${z}-block`]: x,
|
|
10894
10894
|
[`${z}-rtl`]: R === "rtl",
|
|
10895
10895
|
[`${z}-icon-end`]: y === "end"
|
|
10896
|
-
}, Ie, p, v, j), He = Object.assign(Object.assign({}, _), E), Ye = ue(S == null ? void 0 : S.icon, H.icon), Ae = Object.assign(Object.assign({}, (g == null ? void 0 : g.icon) || {}), V.icon || {}),
|
|
10896
|
+
}, Ie, p, v, j), He = Object.assign(Object.assign({}, _), E), Ye = ue(S == null ? void 0 : S.icon, H.icon), Ae = Object.assign(Object.assign({}, (g == null ? void 0 : g.icon) || {}), V.icon || {}), we = b && !re ? /* @__PURE__ */ ae.createElement(Bg, {
|
|
10897
10897
|
prefixCls: z,
|
|
10898
10898
|
className: Ye,
|
|
10899
10899
|
style: Ae
|
|
@@ -10917,7 +10917,7 @@ const nk = {
|
|
|
10917
10917
|
onClick: Pe,
|
|
10918
10918
|
ref: fe,
|
|
10919
10919
|
tabIndex: G ? -1 : 0
|
|
10920
|
-
}),
|
|
10920
|
+
}), we, ze));
|
|
10921
10921
|
let he = /* @__PURE__ */ ae.createElement("button", Object.assign({}, O, {
|
|
10922
10922
|
type: w,
|
|
10923
10923
|
className: ke,
|
|
@@ -10925,7 +10925,7 @@ const nk = {
|
|
|
10925
10925
|
onClick: Pe,
|
|
10926
10926
|
disabled: G,
|
|
10927
10927
|
ref: fe
|
|
10928
|
-
}),
|
|
10928
|
+
}), we, ze, Ie && /* @__PURE__ */ ae.createElement(JT, {
|
|
10929
10929
|
prefixCls: z
|
|
10930
10930
|
}));
|
|
10931
10931
|
return bc(P) || (he = /* @__PURE__ */ ae.createElement(Ll, {
|
|
@@ -15503,7 +15503,7 @@ function x5(e, t) {
|
|
|
15503
15503
|
}, [o, He, ge, be]), Ae = rn(function(ye, Ne) {
|
|
15504
15504
|
var Re;
|
|
15505
15505
|
return typeof l == "function" ? l(ye) : (Re = l && (ye == null ? void 0 : ye[l])) !== null && Re !== void 0 ? Re : Ne;
|
|
15506
|
-
}, [l]),
|
|
15506
|
+
}, [l]), we = rn(i || function(ye) {
|
|
15507
15507
|
return ye;
|
|
15508
15508
|
}, [i]);
|
|
15509
15509
|
function ze(ye, Ne, Re) {
|
|
@@ -15582,7 +15582,7 @@ function x5(e, t) {
|
|
|
15582
15582
|
order: Ne,
|
|
15583
15583
|
key: Re,
|
|
15584
15584
|
item: ye,
|
|
15585
|
-
renderItem:
|
|
15585
|
+
renderItem: we,
|
|
15586
15586
|
itemKey: Re,
|
|
15587
15587
|
registerSize: le,
|
|
15588
15588
|
display: Ne <= be
|
|
@@ -15594,7 +15594,7 @@ function x5(e, t) {
|
|
|
15594
15594
|
display: We
|
|
15595
15595
|
}, ce = v || C5, ie = d ? /* @__PURE__ */ m.createElement(Iu.Provider, {
|
|
15596
15596
|
value: ee(ee({}, dt), Ge)
|
|
15597
|
-
}, d(Ye)) : /* @__PURE__ */ m.createElement(Ys, Te({}, dt, Ge), typeof ce == "function" ? ce(Ye) : ce),
|
|
15597
|
+
}, d(Ye)) : /* @__PURE__ */ m.createElement(Ys, Te({}, dt, Ge), typeof ce == "function" ? ce(Ye) : ce), Se = /* @__PURE__ */ m.createElement(C, Te({
|
|
15598
15598
|
className: ue(!Me && r, h),
|
|
15599
15599
|
style: g,
|
|
15600
15600
|
ref: t
|
|
@@ -15610,7 +15610,7 @@ function x5(e, t) {
|
|
|
15610
15610
|
return Oe ? /* @__PURE__ */ m.createElement(pa, {
|
|
15611
15611
|
onResize: he,
|
|
15612
15612
|
disabled: !ge
|
|
15613
|
-
},
|
|
15613
|
+
}, Se) : Se;
|
|
15614
15614
|
}
|
|
15615
15615
|
var ga = /* @__PURE__ */ m.forwardRef(x5);
|
|
15616
15616
|
ga.displayName = "Overflow";
|
|
@@ -16189,9 +16189,9 @@ function k5(e, t, n, r, a, o, i) {
|
|
|
16189
16189
|
var Me = hl(Math.round(Z / parseFloat(O) * 1e3) / 1e3), ke = hl(Math.round(re / parseFloat(N) * 1e3) / 1e3);
|
|
16190
16190
|
if (Me === 0 || ke === 0 || il(n) && !_l(n))
|
|
16191
16191
|
return;
|
|
16192
|
-
var He = M.offset, Ye = M.targetOffset, Ae = uy(z, He),
|
|
16192
|
+
var He = M.offset, Ye = M.targetOffset, Ae = uy(z, He), we = se(Ae, 2), ze = we[0], he = we[1], le = uy(_, Ye), de = se(le, 2), ve = de[0], Ce = de[1];
|
|
16193
16193
|
_.x -= ve, _.y -= Ce;
|
|
16194
|
-
var We = M.points || [], je = se(We, 2), dt = je[0], Ve = je[1], Ge = dy(Ve), ce = dy(dt), ie = vi(_, Ge),
|
|
16194
|
+
var We = M.points || [], je = se(We, 2), dt = je[0], Ve = je[1], Ge = dy(Ve), ce = dy(dt), ie = vi(_, Ge), Se = vi(z, ce), ye = ee({}, M), Ne = ie.x - Se.x + ze, Re = ie.y - Se.y + he, ft = kt(Ne, Re), mt = kt(Ne, Re, De), Qe = vi(_, ["t", "l"]), et = vi(z, ["t", "l"]), Ke = vi(_, ["b", "r"]), tt = vi(z, ["b", "r"]), lt = M.overflow || {}, oe = lt.adjustX, Fe = lt.adjustY, Be = lt.shiftX, nt = lt.shiftY, it = function(Ca) {
|
|
16195
16195
|
return typeof Ca == "boolean" ? Ca : Ca >= 0;
|
|
16196
16196
|
}, st, at, rt, Vt;
|
|
16197
16197
|
hn();
|
|
@@ -16333,26 +16333,26 @@ function z5() {
|
|
|
16333
16333
|
};
|
|
16334
16334
|
}, [$e]), De = Nd(), Ee = m.useState(null), Oe = se(Ee, 2), ge = Oe[0], Me = Oe[1], ke = m.useRef(null), He = Kt(function($t) {
|
|
16335
16335
|
ke.current = $t, il($t) && ge !== $t && Me($t), $e == null || $e.registerSubPopup(De, $t);
|
|
16336
|
-
}), Ye = m.useState(null), Ae = se(Ye, 2),
|
|
16337
|
-
il($t) &&
|
|
16336
|
+
}), Ye = m.useState(null), Ae = se(Ye, 2), we = Ae[0], ze = Ae[1], he = m.useRef(null), le = Kt(function($t) {
|
|
16337
|
+
il($t) && we !== $t && (ze($t), he.current = $t);
|
|
16338
16338
|
}), de = m.Children.only(i), ve = (de == null ? void 0 : de.props) || {}, Ce = {}, We = Kt(function($t) {
|
|
16339
|
-
var zt, Fn, qn =
|
|
16339
|
+
var zt, Fn, qn = we;
|
|
16340
16340
|
return (qn == null ? void 0 : qn.contains($t)) || ((zt = Du(qn)) === null || zt === void 0 ? void 0 : zt.host) === $t || $t === qn || (ge == null ? void 0 : ge.contains($t)) || ((Fn = Du(ge)) === null || Fn === void 0 ? void 0 : Fn.host) === $t || $t === ge || Object.values(Pe.current).some(function(jn) {
|
|
16341
16341
|
return (jn == null ? void 0 : jn.contains($t)) || $t === jn;
|
|
16342
16342
|
});
|
|
16343
|
-
}), je = sy(o, T, G, q), dt = sy(o, K, Q, J), Ve = m.useState(g || !1), Ge = se(Ve, 2), ce = Ge[0], ie = Ge[1],
|
|
16343
|
+
}), je = sy(o, T, G, q), dt = sy(o, K, Q, J), Ve = m.useState(g || !1), Ge = se(Ve, 2), ce = Ge[0], ie = Ge[1], Se = f ?? ce, ye = Kt(function($t) {
|
|
16344
16344
|
f === void 0 && ie($t);
|
|
16345
16345
|
});
|
|
16346
16346
|
Xt(function() {
|
|
16347
16347
|
ie(f || !1);
|
|
16348
16348
|
}, [f]);
|
|
16349
|
-
var Ne = m.useRef(
|
|
16350
|
-
Ne.current =
|
|
16349
|
+
var Ne = m.useRef(Se);
|
|
16350
|
+
Ne.current = Se;
|
|
16351
16351
|
var Re = m.useRef([]);
|
|
16352
16352
|
Re.current = [];
|
|
16353
16353
|
var ft = Kt(function($t) {
|
|
16354
16354
|
var zt;
|
|
16355
|
-
ye($t), ((zt = Re.current[Re.current.length - 1]) !== null && zt !== void 0 ? zt :
|
|
16355
|
+
ye($t), ((zt = Re.current[Re.current.length - 1]) !== null && zt !== void 0 ? zt : Se) !== $t && (Re.current.push($t), h == null || h($t));
|
|
16356
16356
|
}), mt = m.useRef(), Qe = function() {
|
|
16357
16357
|
clearTimeout(mt.current);
|
|
16358
16358
|
}, et = function(zt) {
|
|
@@ -16366,19 +16366,19 @@ function z5() {
|
|
|
16366
16366
|
}, []);
|
|
16367
16367
|
var Ke = m.useState(!1), tt = se(Ke, 2), lt = tt[0], oe = tt[1];
|
|
16368
16368
|
Xt(function($t) {
|
|
16369
|
-
(!$t ||
|
|
16370
|
-
}, [
|
|
16369
|
+
(!$t || Se) && oe(!0);
|
|
16370
|
+
}, [Se]);
|
|
16371
16371
|
var Fe = m.useState(null), Be = se(Fe, 2), nt = Be[0], it = Be[1], st = m.useState(null), at = se(st, 2), rt = at[0], Vt = at[1], Nt = function(zt) {
|
|
16372
16372
|
Vt([zt.clientX, zt.clientY]);
|
|
16373
|
-
}, At = k5(
|
|
16373
|
+
}, At = k5(Se, ge, V && rt !== null ? rt : we, F, B, R, z), Je = se(At, 11), bt = Je[0], ct = Je[1], Ze = Je[2], wt = Je[3], jt = Je[4], Ht = Je[5], En = Je[6], yn = Je[7], vn = Je[8], pn = Je[9], Cn = Je[10], Bn = B5(be, l, c, u), _n = se(Bn, 2), In = _n[0], kn = _n[1], gr = In.has("click"), wr = kn.has("click") || kn.has("contextMenu"), Yn = Kt(function() {
|
|
16374
16374
|
lt || Cn();
|
|
16375
16375
|
}), zr = function() {
|
|
16376
16376
|
Ne.current && V && wr && et(!1);
|
|
16377
16377
|
};
|
|
16378
|
-
j5(
|
|
16378
|
+
j5(Se, we, ge, Yn, zr), Xt(function() {
|
|
16379
16379
|
Yn();
|
|
16380
16380
|
}, [rt, F]), Xt(function() {
|
|
16381
|
-
|
|
16381
|
+
Se && !(B != null && B[F]) && Yn();
|
|
16382
16382
|
}, [JSON.stringify(R)]);
|
|
16383
16383
|
var Sr = m.useMemo(function() {
|
|
16384
16384
|
var $t = T5(B, o, pn, V);
|
|
@@ -16392,8 +16392,8 @@ function z5() {
|
|
|
16392
16392
|
};
|
|
16393
16393
|
});
|
|
16394
16394
|
var qt = m.useState(0), St = se(qt, 2), Tt = St[0], vt = St[1], pt = m.useState(0), _t = se(pt, 2), gn = _t[0], Mn = _t[1], or = function() {
|
|
16395
|
-
if (j &&
|
|
16396
|
-
var zt =
|
|
16395
|
+
if (j && we) {
|
|
16396
|
+
var zt = we.getBoundingClientRect();
|
|
16397
16397
|
vt(zt.width), Mn(zt.height);
|
|
16398
16398
|
}
|
|
16399
16399
|
}, vr = function() {
|
|
@@ -16426,13 +16426,13 @@ function z5() {
|
|
|
16426
16426
|
qn[jn - 1] = arguments[jn];
|
|
16427
16427
|
(zt = ve.onClick) === null || zt === void 0 || zt.call.apply(zt, [ve, $t].concat(qn));
|
|
16428
16428
|
});
|
|
16429
|
-
var Rt = _5(
|
|
16429
|
+
var Rt = _5(Se, wr, we, ge, x, S, We, et), kt = In.has("hover"), hn = kn.has("hover"), Pn, Ca;
|
|
16430
16430
|
kt && (Ft("onMouseEnter", !0, v, function($t) {
|
|
16431
16431
|
Nt($t);
|
|
16432
16432
|
}), Ft("onPointerEnter", !0, v, function($t) {
|
|
16433
16433
|
Nt($t);
|
|
16434
16434
|
}), Pn = function(zt) {
|
|
16435
|
-
(
|
|
16435
|
+
(Se || lt) && ge !== null && ge !== void 0 && ge.contains(zt.target) && et(!0, v);
|
|
16436
16436
|
}, V && (Ce.onMouseMove = function($t) {
|
|
16437
16437
|
var zt;
|
|
16438
16438
|
(zt = ve.onMouseMove) === null || zt === void 0 || zt.call(ve, $t);
|
|
@@ -16458,7 +16458,7 @@ function z5() {
|
|
|
16458
16458
|
y: En
|
|
16459
16459
|
}, mf = W ? ee({}, W !== !0 ? W : {}) : null;
|
|
16460
16460
|
return /* @__PURE__ */ m.createElement(m.Fragment, null, /* @__PURE__ */ m.createElement(pa, {
|
|
16461
|
-
disabled: !
|
|
16461
|
+
disabled: !Se,
|
|
16462
16462
|
ref: le,
|
|
16463
16463
|
onResize: vr
|
|
16464
16464
|
}, /* @__PURE__ */ m.createElement(xD, {
|
|
@@ -16472,12 +16472,12 @@ function z5() {
|
|
|
16472
16472
|
popup: N,
|
|
16473
16473
|
className: ue(I, Sr),
|
|
16474
16474
|
style: P,
|
|
16475
|
-
target:
|
|
16475
|
+
target: we,
|
|
16476
16476
|
onMouseEnter: Pn,
|
|
16477
16477
|
onMouseLeave: Ca,
|
|
16478
16478
|
onPointerEnter: Pn,
|
|
16479
16479
|
zIndex: M,
|
|
16480
|
-
open:
|
|
16480
|
+
open: Se,
|
|
16481
16481
|
keepDom: lt,
|
|
16482
16482
|
fresh: H,
|
|
16483
16483
|
onClick: L,
|
|
@@ -16686,7 +16686,7 @@ var G5 = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
|
|
|
16686
16686
|
m.useEffect(function() {
|
|
16687
16687
|
Oe(Fp());
|
|
16688
16688
|
}, []);
|
|
16689
|
-
var ge = m.useRef(null), Me = m.useRef(null), ke = m.useRef(null), He = m.useRef(null), Ye = m.useRef(null), Ae = m.useRef(!1),
|
|
16689
|
+
var ge = m.useRef(null), Me = m.useRef(null), ke = m.useRef(null), He = m.useRef(null), Ye = m.useRef(null), Ae = m.useRef(!1), we = l5(), ze = se(we, 3), he = ze[0], le = ze[1], de = ze[2];
|
|
16690
16690
|
m.useImperativeHandle(t, function() {
|
|
16691
16691
|
var qt, St;
|
|
16692
16692
|
return {
|
|
@@ -16712,7 +16712,7 @@ var G5 = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
|
|
|
16712
16712
|
var ie = ln(!1, {
|
|
16713
16713
|
defaultValue: S,
|
|
16714
16714
|
value: w
|
|
16715
|
-
}),
|
|
16715
|
+
}), Se = se(ie, 2), ye = Se[0], Ne = Se[1], Re = Ge ? ye : !1, ft = !p && g;
|
|
16716
16716
|
(b || ft && Re && d === "combobox") && (Re = !1);
|
|
16717
16717
|
var mt = ft ? !1 : Re, Qe = m.useCallback(function(qt) {
|
|
16718
16718
|
var St = qt !== void 0 ? qt : !Re;
|
|
@@ -17478,7 +17478,7 @@ function d4(e, t) {
|
|
|
17478
17478
|
end: wt,
|
|
17479
17479
|
offset: Ze
|
|
17480
17480
|
};
|
|
17481
|
-
}, [_, M, G, L, R, o]), He = ke.scrollHeight, Ye = ke.start, Ae = ke.end,
|
|
17481
|
+
}, [_, M, G, L, R, o]), He = ke.scrollHeight, Ye = ke.start, Ae = ke.end, we = ke.offset;
|
|
17482
17482
|
De.current.start = Ye, De.current.end = Ae, m.useLayoutEffect(function() {
|
|
17483
17483
|
var Je = B.getRecord();
|
|
17484
17484
|
if (Je.size === 1) {
|
|
@@ -17513,7 +17513,7 @@ function d4(e, t) {
|
|
|
17513
17513
|
var bt = Je;
|
|
17514
17514
|
return Number.isNaN(Ge.current) || (bt = Math.min(bt, Ge.current)), bt = Math.max(bt, 0), bt;
|
|
17515
17515
|
}
|
|
17516
|
-
var ie = G <= 0,
|
|
17516
|
+
var ie = G <= 0, Se = G >= Ve, ye = Z <= 0, Ne = Z >= v, Re = $D(ie, Se, ye, Ne), ft = function() {
|
|
17517
17517
|
return {
|
|
17518
17518
|
x: H ? -Z : Z,
|
|
17519
17519
|
y: G
|
|
@@ -17547,7 +17547,7 @@ function d4(e, t) {
|
|
|
17547
17547
|
var Ze = ct + Je;
|
|
17548
17548
|
return Ze;
|
|
17549
17549
|
});
|
|
17550
|
-
}), oe = e4(M, ie,
|
|
17550
|
+
}), oe = e4(M, ie, Se, ye, Ne, !!v, lt), Fe = se(oe, 2), Be = Fe[0], nt = Fe[1];
|
|
17551
17551
|
a4(M, z, function(Je, bt, ct, Ze) {
|
|
17552
17552
|
var wt = Ze;
|
|
17553
17553
|
return Re(Je, bt, ct) ? !1 : !wt || !wt._virtualHandled ? (wt && (wt._virtualHandled = !0), Be({
|
|
@@ -17562,7 +17562,7 @@ function d4(e, t) {
|
|
|
17562
17562
|
});
|
|
17563
17563
|
}), Xt(function() {
|
|
17564
17564
|
function Je(ct) {
|
|
17565
|
-
var Ze = ie && ct.detail < 0, wt =
|
|
17565
|
+
var Ze = ie && ct.detail < 0, wt = Se && ct.detail > 0;
|
|
17566
17566
|
M && !Ze && !wt && ct.preventDefault();
|
|
17567
17567
|
}
|
|
17568
17568
|
var bt = z.current;
|
|
@@ -17575,7 +17575,7 @@ function d4(e, t) {
|
|
|
17575
17575
|
}), function() {
|
|
17576
17576
|
bt.removeEventListener("wheel", Be), bt.removeEventListener("DOMMouseScroll", nt), bt.removeEventListener("MozMousePixelScroll", Je);
|
|
17577
17577
|
};
|
|
17578
|
-
}, [M, ie,
|
|
17578
|
+
}, [M, ie, Se]), Xt(function() {
|
|
17579
17579
|
if (v) {
|
|
17580
17580
|
var Je = tt(Z);
|
|
17581
17581
|
X(Je), Qe({
|
|
@@ -17611,7 +17611,7 @@ function d4(e, t) {
|
|
|
17611
17611
|
end: Ae,
|
|
17612
17612
|
virtual: _,
|
|
17613
17613
|
offsetX: Z,
|
|
17614
|
-
offsetY:
|
|
17614
|
+
offsetY: we,
|
|
17615
17615
|
rtl: H,
|
|
17616
17616
|
getSize: at
|
|
17617
17617
|
}), Vt = Z5(L, Ye, Ae, v, Z, F, f, $e), Nt = null;
|
|
@@ -17635,7 +17635,7 @@ function d4(e, t) {
|
|
|
17635
17635
|
prefixCls: r,
|
|
17636
17636
|
height: He,
|
|
17637
17637
|
offsetX: Z,
|
|
17638
|
-
offsetY:
|
|
17638
|
+
offsetY: we,
|
|
17639
17639
|
scrollWidth: v,
|
|
17640
17640
|
onInnerResize: A,
|
|
17641
17641
|
ref: W,
|
|
@@ -17847,7 +17847,7 @@ var g4 = function(t, n) {
|
|
|
17847
17847
|
}
|
|
17848
17848
|
var $e = te.disabled, Ie = te.title;
|
|
17849
17849
|
te.children;
|
|
17850
|
-
var De = te.style, Ee = te.className, Oe = Pt(te, m4), ge = Nn(Oe, T), Me = R(fe), ke = $e || !Me && F, He = "".concat(N, "-option"), Ye = ue(N, He, Ee, U(U(U(U({}, "".concat(He, "-grouped"), X), "".concat(He, "-active"), H === re && !ke), "".concat(He, "-disabled"), ke), "".concat(He, "-selected"), Me)), Ae = K(Q),
|
|
17850
|
+
var De = te.style, Ee = te.className, Oe = Pt(te, m4), ge = Nn(Oe, T), Me = R(fe), ke = $e || !Me && F, He = "".concat(N, "-option"), Ye = ue(N, He, Ee, U(U(U(U({}, "".concat(He, "-grouped"), X), "".concat(He, "-active"), H === re && !ke), "".concat(He, "-disabled"), ke), "".concat(He, "-selected"), Me)), Ae = K(Q), we = !C || typeof C == "function" || Me, ze = typeof Ae == "number" ? Ae : Ae || fe, he = yy(ze) ? ze.toString() : void 0;
|
|
17851
17851
|
return Ie !== void 0 && (he = Ie), /* @__PURE__ */ m.createElement("div", Te({}, mr(ge), S ? {} : q(Q, re), {
|
|
17852
17852
|
"aria-selected": z(fe),
|
|
17853
17853
|
className: Ye,
|
|
@@ -17863,7 +17863,7 @@ var g4 = function(t, n) {
|
|
|
17863
17863
|
className: "".concat(He, "-content")
|
|
17864
17864
|
}, typeof O == "function" ? O(Q, {
|
|
17865
17865
|
index: re
|
|
17866
|
-
}) : ze), /* @__PURE__ */ m.isValidElement(C) || Me,
|
|
17866
|
+
}) : ze), /* @__PURE__ */ m.isValidElement(C) || Me, we && /* @__PURE__ */ m.createElement(Rd, {
|
|
17867
17867
|
className: "".concat(N, "-option-state"),
|
|
17868
17868
|
customizeIcon: C,
|
|
17869
17869
|
customizeIconProps: {
|
|
@@ -18139,7 +18139,7 @@ var ND = /* @__PURE__ */ m.forwardRef(function(e, t) {
|
|
|
18139
18139
|
}) || Ye.some(function(Qe) {
|
|
18140
18140
|
return Qe[K.value] === J;
|
|
18141
18141
|
}) ? Ye : [ke(J)].concat(_e(Ye));
|
|
18142
|
-
}, [ke, C, r, Ye, J, K]),
|
|
18142
|
+
}, [ke, C, r, Ye, J, K]), we = function Qe(et) {
|
|
18143
18143
|
var Ke = _e(et).sort(function(tt, lt) {
|
|
18144
18144
|
return y(tt, lt, {
|
|
18145
18145
|
searchValue: J
|
|
@@ -18151,7 +18151,7 @@ var ND = /* @__PURE__ */ m.forwardRef(function(e, t) {
|
|
|
18151
18151
|
}) : tt;
|
|
18152
18152
|
});
|
|
18153
18153
|
}, ze = m.useMemo(function() {
|
|
18154
|
-
return y ?
|
|
18154
|
+
return y ? we(Ae) : Ae;
|
|
18155
18155
|
}, [Ae, y, J]), he = m.useMemo(function() {
|
|
18156
18156
|
return q5(ze, {
|
|
18157
18157
|
fieldNames: K,
|
|
@@ -18179,7 +18179,7 @@ var ND = /* @__PURE__ */ m.forwardRef(function(e, t) {
|
|
|
18179
18179
|
}, de = m.useState(null), ve = se(de, 2), Ce = ve[0], We = ve[1], je = m.useState(0), dt = se(je, 2), Ve = dt[0], Ge = dt[1], ce = $ !== void 0 ? $ : r !== "combobox", ie = m.useCallback(function(Qe, et) {
|
|
18180
18180
|
var Ke = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, tt = Ke.source, lt = tt === void 0 ? "keyboard" : tt;
|
|
18181
18181
|
Ge(et), i && r === "combobox" && Qe !== null && lt === "keyboard" && We(String(Qe));
|
|
18182
|
-
}, [i, r]),
|
|
18182
|
+
}, [i, r]), Se = function(et, Ke, tt) {
|
|
18183
18183
|
var lt = function() {
|
|
18184
18184
|
var Nt, At = Oe(et);
|
|
18185
18185
|
return [j ? {
|
|
@@ -18199,19 +18199,19 @@ var ND = /* @__PURE__ */ m.forwardRef(function(e, t) {
|
|
|
18199
18199
|
var Ke, tt = z ? et.selected : !0;
|
|
18200
18200
|
tt ? Ke = z ? [].concat(_e(Ee), [Qe]) : [Qe] : Ke = Ee.filter(function(lt) {
|
|
18201
18201
|
return lt.value !== Qe;
|
|
18202
|
-
}), le(Ke),
|
|
18202
|
+
}), le(Ke), Se(Qe, tt), r === "combobox" ? We("") : (!Pu || g) && (Q(""), We(""));
|
|
18203
18203
|
}), Ne = function(et, Ke) {
|
|
18204
18204
|
le(et);
|
|
18205
18205
|
var tt = Ke.type, lt = Ke.values;
|
|
18206
18206
|
(tt === "remove" || tt === "clear") && lt.forEach(function(oe) {
|
|
18207
|
-
|
|
18207
|
+
Se(oe.value, !1, tt);
|
|
18208
18208
|
});
|
|
18209
18209
|
}, Re = function(et, Ke) {
|
|
18210
18210
|
if (Q(et), We(null), Ke.source === "submit") {
|
|
18211
18211
|
var tt = (et || "").trim();
|
|
18212
18212
|
if (tt) {
|
|
18213
18213
|
var lt = Array.from(new Set([].concat(_e(Me), [tt])));
|
|
18214
|
-
le(lt),
|
|
18214
|
+
le(lt), Se(tt, !0), Q("");
|
|
18215
18215
|
}
|
|
18216
18216
|
return;
|
|
18217
18217
|
}
|
|
@@ -18226,7 +18226,7 @@ var ND = /* @__PURE__ */ m.forwardRef(function(e, t) {
|
|
|
18226
18226
|
}));
|
|
18227
18227
|
var tt = Array.from(new Set([].concat(_e(Me), _e(Ke))));
|
|
18228
18228
|
le(tt), tt.forEach(function(lt) {
|
|
18229
|
-
|
|
18229
|
+
Se(lt, !0);
|
|
18230
18230
|
});
|
|
18231
18231
|
}, mt = m.useMemo(function() {
|
|
18232
18232
|
var Qe = O !== !1 && d !== !1;
|
|
@@ -19750,12 +19750,12 @@ const _D = "SECRET_COMBOBOX_MODE_DO_NOT_USE", LD = (e, t) => {
|
|
|
19750
19750
|
clearIcon: ke
|
|
19751
19751
|
} : S, Ye = Nn(P, ["suffixIcon", "itemIcon"]), Ae = ue(l || c, {
|
|
19752
19752
|
[`${z}-dropdown-${T}`]: T === "rtl"
|
|
19753
|
-
}, i, X, Q, Z),
|
|
19753
|
+
}, i, X, Q, Z), we = _r((Ce) => {
|
|
19754
19754
|
var We;
|
|
19755
19755
|
return (We = h ?? K) !== null && We !== void 0 ? We : Ce;
|
|
19756
19756
|
}), ze = m.useContext(fr), he = p ?? ze, le = ue({
|
|
19757
|
-
[`${z}-lg`]:
|
|
19758
|
-
[`${z}-sm`]:
|
|
19757
|
+
[`${z}-lg`]: we === "large",
|
|
19758
|
+
[`${z}-sm`]: we === "small",
|
|
19759
19759
|
[`${z}-rtl`]: T === "rtl",
|
|
19760
19760
|
[`${z}-${G}`]: J,
|
|
19761
19761
|
[`${z}-in-form-item`]: $e
|
|
@@ -20585,20 +20585,20 @@ const E3 = /* @__PURE__ */ m.forwardRef((e, t) => {
|
|
|
20585
20585
|
popupElement: (Ae = z.current) === null || Ae === void 0 ? void 0 : Ae.popupElement
|
|
20586
20586
|
};
|
|
20587
20587
|
}), process.env.NODE_ENV !== "production" && ([["visible", "open"], ["defaultVisible", "defaultOpen"], ["onVisibleChange", "onOpenChange"], ["afterVisibleChange", "afterOpenChange"], ["arrowPointAtCenter", "arrow={{ pointAtCenter: true }}"], ["overlayStyle", "styles={{ root: {} }}"], ["overlayInnerStyle", "styles={{ body: {} }}"], ["overlayClassName", 'classNames={{ root: "" }}']].forEach((Ye) => {
|
|
20588
|
-
let [Ae,
|
|
20589
|
-
L.deprecated(!(Ae in e), Ae,
|
|
20588
|
+
let [Ae, we] = Ye;
|
|
20589
|
+
L.deprecated(!(Ae in e), Ae, we);
|
|
20590
20590
|
}), process.env.NODE_ENV !== "production" && L(!g || typeof g == "boolean", "usage", "`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."), process.env.NODE_ENV !== "production" && L(!h || typeof h == "boolean" || !("arrowPointAtCenter" in h), "deprecated", "`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));
|
|
20591
20591
|
const [T, K] = ln(!1, {
|
|
20592
20592
|
value: (n = e.open) !== null && n !== void 0 ? n : e.visible,
|
|
20593
20593
|
defaultValue: (r = e.defaultOpen) !== null && r !== void 0 ? r : e.defaultVisible
|
|
20594
20594
|
}), q = !p && !v && p !== 0, G = (Ye) => {
|
|
20595
|
-
var Ae,
|
|
20596
|
-
K(q ? !1 : Ye), q || ((Ae = e.onOpenChange) === null || Ae === void 0 || Ae.call(e, Ye), (
|
|
20595
|
+
var Ae, we;
|
|
20596
|
+
K(q ? !1 : Ye), q || ((Ae = e.onOpenChange) === null || Ae === void 0 || Ae.call(e, Ye), (we = e.onVisibleChange) === null || we === void 0 || we.call(e, Ye));
|
|
20597
20597
|
}, J = m.useMemo(() => {
|
|
20598
20598
|
var Ye, Ae;
|
|
20599
|
-
let
|
|
20600
|
-
return typeof h == "object" && (
|
|
20601
|
-
arrowPointAtCenter:
|
|
20599
|
+
let we = b;
|
|
20600
|
+
return typeof h == "object" && (we = (Ae = (Ye = h.pointAtCenter) !== null && Ye !== void 0 ? Ye : h.arrowPointAtCenter) !== null && Ae !== void 0 ? Ae : b), d || WD({
|
|
20601
|
+
arrowPointAtCenter: we,
|
|
20602
20602
|
autoAdjustOverflow: y,
|
|
20603
20603
|
arrowWidth: F ? A.sizePopupArrow : 0,
|
|
20604
20604
|
borderRadius: A.borderRadius,
|
|
@@ -22307,7 +22307,7 @@ var R_ = ["style", "className", "title", "eventKey", "warnKey", "disabled", "int
|
|
|
22307
22307
|
}, /* @__PURE__ */ m.createElement("i", {
|
|
22308
22308
|
className: "".concat(W, "-arrow")
|
|
22309
22309
|
}));
|
|
22310
|
-
}, [D, J, e, re, W]),
|
|
22310
|
+
}, [D, J, e, re, W]), we = /* @__PURE__ */ m.createElement("div", Te({
|
|
22311
22311
|
role: "menuitem",
|
|
22312
22312
|
style: Oe,
|
|
22313
22313
|
className: "".concat(W, "-title"),
|
|
@@ -22324,7 +22324,7 @@ var R_ = ["style", "className", "title", "eventKey", "warnKey", "disabled", "int
|
|
|
22324
22324
|
}, ne), a, Ae), ze = m.useRef(D);
|
|
22325
22325
|
if (D !== "inline" && z.length > 1 ? ze.current = "vertical" : ze.current = D, !I) {
|
|
22326
22326
|
var he = ze.current;
|
|
22327
|
-
|
|
22327
|
+
we = /* @__PURE__ */ m.createElement(P_, {
|
|
22328
22328
|
mode: he,
|
|
22329
22329
|
prefixCls: W,
|
|
22330
22330
|
visible: !l && re && D !== "inline",
|
|
@@ -22343,7 +22343,7 @@ var R_ = ["style", "className", "title", "eventKey", "warnKey", "disabled", "int
|
|
|
22343
22343
|
),
|
|
22344
22344
|
disabled: T,
|
|
22345
22345
|
onVisibleChange: ke
|
|
22346
|
-
},
|
|
22346
|
+
}, we);
|
|
22347
22347
|
}
|
|
22348
22348
|
var le = /* @__PURE__ */ m.createElement(ga.Item, Te({
|
|
22349
22349
|
ref: t,
|
|
@@ -22354,7 +22354,7 @@ var R_ = ["style", "className", "title", "eventKey", "warnKey", "disabled", "int
|
|
|
22354
22354
|
className: ue(W, "".concat(W, "-").concat(D), r, U(U(U(U({}, "".concat(W, "-open"), re), "".concat(W, "-active"), Ee), "".concat(W, "-selected"), Z), "".concat(W, "-disabled"), T)),
|
|
22355
22355
|
onMouseEnter: Ie,
|
|
22356
22356
|
onMouseLeave: De
|
|
22357
|
-
}),
|
|
22357
|
+
}), we, !I && /* @__PURE__ */ m.createElement(F_, {
|
|
22358
22358
|
id: Ye,
|
|
22359
22359
|
open: re,
|
|
22360
22360
|
keyPath: z
|
|
@@ -22462,7 +22462,7 @@ function Ay(e, t, n, r, a) {
|
|
|
22462
22462
|
var j_ = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items", "children", "direction", "id", "mode", "inlineCollapsed", "disabled", "disabledOverflow", "subMenuOpenDelay", "subMenuCloseDelay", "forceSubMenuRender", "defaultOpenKeys", "openKeys", "activeKey", "defaultActiveFirst", "selectable", "multiple", "defaultSelectedKeys", "selectedKeys", "onSelect", "onDeselect", "inlineIndent", "motion", "defaultMotions", "triggerSubMenuAction", "builtinPlacements", "itemIcon", "expandIcon", "overflowedIndicator", "overflowedIndicatorPopupClassName", "getPopupContainer", "onClick", "onOpenChange", "onKeyDown", "openAnimation", "openTransitionName", "_internalRenderMenuItem", "_internalRenderSubMenuItem", "_internalComponents"], Eo = [], __ = /* @__PURE__ */ m.forwardRef(function(e, t) {
|
|
22463
22463
|
var n, r = e, a = r.prefixCls, o = a === void 0 ? "rc-menu" : a, i = r.rootClassName, s = r.style, l = r.className, c = r.tabIndex, u = c === void 0 ? 0 : c, f = r.items, g = r.children, h = r.direction, p = r.id, v = r.mode, d = v === void 0 ? "vertical" : v, b = r.inlineCollapsed, y = r.disabled, C = r.disabledOverflow, x = r.subMenuOpenDelay, w = x === void 0 ? 0.1 : x, S = r.subMenuCloseDelay, E = S === void 0 ? 0.1 : S, $ = r.forceSubMenuRender, D = r.defaultOpenKeys, O = r.openKeys, N = r.activeKey, I = r.defaultActiveFirst, P = r.selectable, F = P === void 0 ? !0 : P, A = r.multiple, B = A === void 0 ? !1 : A, R = r.defaultSelectedKeys, M = r.selectedKeys, j = r.onSelect, _ = r.onDeselect, H = r.inlineIndent, V = H === void 0 ? 24 : H, L = r.motion, z = r.defaultMotions, W = r.triggerSubMenuAction, T = W === void 0 ? "hover" : W, K = r.builtinPlacements, q = r.itemIcon, G = r.expandIcon, J = r.overflowedIndicator, Q = J === void 0 ? "..." : J, re = r.overflowedIndicatorPopupClassName, Z = r.getPopupContainer, X = r.onClick, te = r.onOpenChange, ne = r.onKeyDown, fe = r.openAnimation, be = r.openTransitionName, xe = r._internalRenderMenuItem, Pe = r._internalRenderSubMenuItem, $e = r._internalComponents, Ie = Pt(r, j_), De = m.useMemo(function() {
|
|
22464
22464
|
return [Ay(g, f, Eo, $e, o), Ay(g, f, Eo, {}, o)];
|
|
22465
|
-
}, [g, f, $e]), Ee = se(De, 2), Oe = Ee[0], ge = Ee[1], Me = m.useState(!1), ke = se(Me, 2), He = ke[0], Ye = ke[1], Ae = m.useRef(),
|
|
22465
|
+
}, [g, f, $e]), Ee = se(De, 2), Oe = Ee[0], ge = Ee[1], Me = m.useState(!1), ke = se(Me, 2), He = ke[0], Ye = ke[1], Ae = m.useRef(), we = h_(p), ze = h === "rtl";
|
|
22466
22466
|
process.env.NODE_ENV !== "production" && Et(!fe && !be, "`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");
|
|
22467
22467
|
var he = ln(D, {
|
|
22468
22468
|
value: O,
|
|
@@ -22477,10 +22477,10 @@ var j_ = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
22477
22477
|
vt ? ji(pt) : pt();
|
|
22478
22478
|
}, We = m.useState(de), je = se(We, 2), dt = je[0], Ve = je[1], Ge = m.useRef(!1), ce = m.useMemo(function() {
|
|
22479
22479
|
return (d === "inline" || d === "vertical") && b ? ["vertical", b] : [d, !1];
|
|
22480
|
-
}, [d, b]), ie = se(ce, 2),
|
|
22480
|
+
}, [d, b]), ie = se(ce, 2), Se = ie[0], ye = ie[1], Ne = Se === "inline", Re = m.useState(Se), ft = se(Re, 2), mt = ft[0], Qe = ft[1], et = m.useState(ye), Ke = se(et, 2), tt = Ke[0], lt = Ke[1];
|
|
22481
22481
|
m.useEffect(function() {
|
|
22482
|
-
Qe(
|
|
22483
|
-
}, [
|
|
22482
|
+
Qe(Se), lt(ye), Ge.current && (Ne ? ve(dt) : Ce(Eo));
|
|
22483
|
+
}, [Se, ye]);
|
|
22484
22484
|
var oe = m.useState(0), Fe = se(oe, 2), Be = Fe[0], nt = Fe[1], it = Be >= Oe.length - 1 || mt !== "horizontal" || C;
|
|
22485
22485
|
m.useEffect(function() {
|
|
22486
22486
|
Ne && Ve(de);
|
|
@@ -22515,7 +22515,7 @@ var j_ = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
22515
22515
|
return {
|
|
22516
22516
|
list: Ae.current,
|
|
22517
22517
|
focus: function(Tt) {
|
|
22518
|
-
var vt, pt = Je(), _t = tv(pt,
|
|
22518
|
+
var vt, pt = Je(), _t = tv(pt, we), gn = _t.elements, Mn = _t.key2element, or = _t.element2key, vr = Up(Ae.current, gn), ir = Ht ?? (vr[0] ? or.get(vr[0]) : (vt = Oe.find(function(Rt) {
|
|
22519
22519
|
return !Rt.props.disabled;
|
|
22520
22520
|
})) === null || vt === void 0 ? void 0 : vt.key), Xn = Mn.get(ir);
|
|
22521
22521
|
if (ir && Xn) {
|
|
@@ -22561,7 +22561,7 @@ var j_ = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
22561
22561
|
}), wr = function(Tt, vt) {
|
|
22562
22562
|
var pt = vt ?? !de.includes(Tt);
|
|
22563
22563
|
gr(Tt, pt);
|
|
22564
|
-
}, Yn = f_(mt, Ht, ze,
|
|
22564
|
+
}, Yn = f_(mt, Ht, ze, we, Ae, Je, At, En, wr, ne);
|
|
22565
22565
|
m.useEffect(function() {
|
|
22566
22566
|
Ye(!0);
|
|
22567
22567
|
}, []);
|
|
@@ -22617,7 +22617,7 @@ var j_ = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
22617
22617
|
return /* @__PURE__ */ m.createElement(Kp.Provider, {
|
|
22618
22618
|
value: zr
|
|
22619
22619
|
}, /* @__PURE__ */ m.createElement(JD.Provider, {
|
|
22620
|
-
value:
|
|
22620
|
+
value: we
|
|
22621
22621
|
}, /* @__PURE__ */ m.createElement(yl, {
|
|
22622
22622
|
prefixCls: o,
|
|
22623
22623
|
rootClassName: i,
|
|
@@ -26774,7 +26774,7 @@ function g8(e) {
|
|
|
26774
26774
|
be(Oe(Ce));
|
|
26775
26775
|
}, Ae = function(Ce) {
|
|
26776
26776
|
p($e(Ce));
|
|
26777
|
-
},
|
|
26777
|
+
}, we = function(Ce) {
|
|
26778
26778
|
p(Ie(Ce));
|
|
26779
26779
|
}, ze = function(Ce) {
|
|
26780
26780
|
p(De(Ce));
|
|
@@ -26801,7 +26801,7 @@ function g8(e) {
|
|
|
26801
26801
|
optionalValue: M,
|
|
26802
26802
|
type: "minute",
|
|
26803
26803
|
onChange: Me,
|
|
26804
|
-
onHover:
|
|
26804
|
+
onHover: we
|
|
26805
26805
|
}, de)), r && /* @__PURE__ */ m.createElement(Ps, Te({
|
|
26806
26806
|
units: Z,
|
|
26807
26807
|
value: H,
|
|
@@ -27172,7 +27172,7 @@ function w8(e, t) {
|
|
|
27172
27172
|
process.env.NODE_ENV !== "production" && Et(!ne || ne.every(function(he) {
|
|
27173
27173
|
return a.isValidate(he);
|
|
27174
27174
|
}), "Invalidate date pass to `value` or `defaultValue`.");
|
|
27175
|
-
var
|
|
27175
|
+
var we = "".concat(F, "-panel"), ze = Ld(e, [
|
|
27176
27176
|
// Week
|
|
27177
27177
|
"showWeek",
|
|
27178
27178
|
// Icons
|
|
@@ -27192,7 +27192,7 @@ function w8(e, t) {
|
|
|
27192
27192
|
}, /* @__PURE__ */ m.createElement("div", {
|
|
27193
27193
|
ref: A,
|
|
27194
27194
|
tabIndex: l,
|
|
27195
|
-
className: ue(
|
|
27195
|
+
className: ue(we, U({}, "".concat(we, "-rtl"), o === "rtl"))
|
|
27196
27196
|
}, /* @__PURE__ */ m.createElement(He, Te({}, ze, {
|
|
27197
27197
|
// Time
|
|
27198
27198
|
showTime: z,
|
|
@@ -27609,11 +27609,11 @@ var P8 = ["active", "showActiveCls", "suffixIcon", "format", "validateFormat", "
|
|
|
27609
27609
|
He(he);
|
|
27610
27610
|
var le = he.key, de = null, ve = null, Ce = be - fe, We = i.slice(fe, be), je = function(ce) {
|
|
27611
27611
|
T(function(ie) {
|
|
27612
|
-
var
|
|
27613
|
-
return
|
|
27612
|
+
var Se = ie + ce;
|
|
27613
|
+
return Se = Math.max(Se, 0), Se = Math.min(Se, X.size() - 1), Se;
|
|
27614
27614
|
});
|
|
27615
27615
|
}, dt = function(ce) {
|
|
27616
|
-
var ie = I8(We),
|
|
27616
|
+
var ie = I8(We), Se = se(ie, 3), ye = Se[0], Ne = Se[1], Re = Se[2], ft = Q.slice(fe, be), mt = Number(ft);
|
|
27617
27617
|
if (isNaN(mt))
|
|
27618
27618
|
return String(Re || (ce > 0 ? ye : Ne));
|
|
27619
27619
|
var Qe = mt + ce, et = Ne - ye + 1;
|
|
@@ -27671,7 +27671,7 @@ var P8 = ["active", "showActiveCls", "suffixIcon", "format", "validateFormat", "
|
|
|
27671
27671
|
};
|
|
27672
27672
|
}
|
|
27673
27673
|
}, [X, i, P, Q, W, fe, be, G, Pe]);
|
|
27674
|
-
var
|
|
27674
|
+
var we = i ? {
|
|
27675
27675
|
onFocus: ge,
|
|
27676
27676
|
onBlur: ke,
|
|
27677
27677
|
onKeyDown: Ye,
|
|
@@ -27690,7 +27690,7 @@ var P8 = ["active", "showActiveCls", "suffixIcon", "format", "validateFormat", "
|
|
|
27690
27690
|
onKeyDown: He,
|
|
27691
27691
|
onBlur: Me
|
|
27692
27692
|
// Replace with format
|
|
27693
|
-
},
|
|
27693
|
+
}, we, {
|
|
27694
27694
|
// Value
|
|
27695
27695
|
value: Q,
|
|
27696
27696
|
onChange: $e
|
|
@@ -27829,19 +27829,19 @@ function B8(e, t) {
|
|
|
27829
27829
|
(b.some(function(hn) {
|
|
27830
27830
|
return !hn;
|
|
27831
27831
|
}) || !Rt) && fe(Rt, kt);
|
|
27832
|
-
}, xe = j$(O, D, s, !0, !1, h, p, R, M), Pe = se(xe, 5), $e = Pe[0], Ie = Pe[1], De = Pe[2], Ee = Pe[3], Oe = Pe[4], ge = De(), Me = A$(b, y, ne), ke = se(Me, 9), He = ke[0], Ye = ke[1], Ae = ke[2],
|
|
27832
|
+
}, xe = j$(O, D, s, !0, !1, h, p, R, M), Pe = se(xe, 5), $e = Pe[0], Ie = Pe[1], De = Pe[2], Ee = Pe[3], Oe = Pe[4], ge = De(), Me = A$(b, y, ne), ke = se(Me, 9), He = ke[0], Ye = ke[1], Ae = ke[2], we = ke[3], ze = ke[4], he = ke[5], le = ke[6], de = ke[7], ve = ke[8], Ce = function(Rt, kt) {
|
|
27833
27833
|
Ye(!0), z == null || z(Rt, {
|
|
27834
|
-
range: $c(kt ??
|
|
27834
|
+
range: $c(kt ?? we)
|
|
27835
27835
|
});
|
|
27836
27836
|
}, We = function(Rt, kt) {
|
|
27837
27837
|
Ye(!1), W == null || W(Rt, {
|
|
27838
|
-
range: $c(kt ??
|
|
27838
|
+
range: $c(kt ?? we)
|
|
27839
27839
|
});
|
|
27840
27840
|
}, je = m.useMemo(function() {
|
|
27841
27841
|
if (!F)
|
|
27842
27842
|
return null;
|
|
27843
27843
|
var Ft = F.disabledTime, Rt = Ft ? function(kt) {
|
|
27844
|
-
var hn = $c(
|
|
27844
|
+
var hn = $c(we), Pn = b$(ge, le, we);
|
|
27845
27845
|
return Ft(kt, hn, {
|
|
27846
27846
|
from: Pn
|
|
27847
27847
|
});
|
|
@@ -27849,13 +27849,13 @@ function B8(e, t) {
|
|
|
27849
27849
|
return ee(ee({}, F), {}, {
|
|
27850
27850
|
disabledTime: Rt
|
|
27851
27851
|
});
|
|
27852
|
-
}, [F,
|
|
27852
|
+
}, [F, we, ge, le]), dt = ln([N, N], {
|
|
27853
27853
|
value: A
|
|
27854
|
-
}), Ve = se(dt, 2), Ge = Ve[0], ce = Ve[1], ie = Ge[
|
|
27855
|
-
var hn = Xs(Ge,
|
|
27854
|
+
}), Ve = se(dt, 2), Ge = Ve[0], ce = Ve[1], ie = Ge[we] || N, Se = ie === "date" && je ? "datetime" : ie, ye = Se === N && Se !== "time", Ne = L$(N, ie, I, P, !0), Re = _$(a, $e, Ie, De, Ee, b, s, He, ne, c), ft = se(Re, 2), mt = ft[0], Qe = ft[1], et = o8(ge, b, le, O, D, C), Ke = C$(ge, c, y), tt = se(Ke, 2), lt = tt[0], oe = tt[1], Fe = B$(O, D, ge, Ge, ne, we, o, ye, j, _, je == null ? void 0 : je.defaultOpenValue, H, x, w), Be = se(Fe, 2), nt = Be[0], it = Be[1], st = Kt(function(Ft, Rt, kt) {
|
|
27855
|
+
var hn = Xs(Ge, we, Rt);
|
|
27856
27856
|
if ((hn[0] !== Ge[0] || hn[1] !== Ge[1]) && ce(hn), B && kt !== !1) {
|
|
27857
27857
|
var Pn = _e(ge);
|
|
27858
|
-
Ft && (Pn[
|
|
27858
|
+
Ft && (Pn[we] = Ft), B(Pn, hn);
|
|
27859
27859
|
}
|
|
27860
27860
|
}), at = function(Rt, kt) {
|
|
27861
27861
|
return (
|
|
@@ -27864,9 +27864,9 @@ function B8(e, t) {
|
|
|
27864
27864
|
);
|
|
27865
27865
|
}, rt = function(Rt, kt) {
|
|
27866
27866
|
var hn = ge;
|
|
27867
|
-
Rt && (hn = at(Rt,
|
|
27867
|
+
Rt && (hn = at(Rt, we)), de(we);
|
|
27868
27868
|
var Pn = he(hn);
|
|
27869
|
-
Ee(hn), mt(
|
|
27869
|
+
Ee(hn), mt(we, Pn === null), Pn === null ? be(!1, {
|
|
27870
27870
|
force: !0
|
|
27871
27871
|
}) : kt || Z.current.focus({
|
|
27872
27872
|
index: Pn
|
|
@@ -27902,19 +27902,19 @@ function B8(e, t) {
|
|
|
27902
27902
|
}, kn = function(Rt) {
|
|
27903
27903
|
rt(Rt);
|
|
27904
27904
|
}, gr = function(Rt) {
|
|
27905
|
-
Ht(Rt ? at(Rt,
|
|
27905
|
+
Ht(Rt ? at(Rt, we) : null), ct("cell");
|
|
27906
27906
|
}, wr = function(Rt) {
|
|
27907
27907
|
be(!0), Ce(Rt);
|
|
27908
27908
|
}, Yn = function() {
|
|
27909
27909
|
Ae("panel");
|
|
27910
27910
|
}, zr = function(Rt) {
|
|
27911
|
-
var kt = Xs(ge,
|
|
27912
|
-
Ee(kt), !v && !i && o ===
|
|
27911
|
+
var kt = Xs(ge, we, Rt);
|
|
27912
|
+
Ee(kt), !v && !i && o === Se && rt(Rt);
|
|
27913
27913
|
}, Sr = function() {
|
|
27914
27914
|
be(!1);
|
|
27915
|
-
}, qt = th(G, J, Q, $c(
|
|
27915
|
+
}, qt = th(G, J, Q, $c(we)), St = ge[we] || null, Tt = Kt(function(Ft) {
|
|
27916
27916
|
return c(Ft, {
|
|
27917
|
-
activeIndex:
|
|
27917
|
+
activeIndex: we
|
|
27918
27918
|
});
|
|
27919
27919
|
}), vt = m.useMemo(function() {
|
|
27920
27920
|
var Ft = mr(a, !1), Rt = Nn(a, [].concat(_e(Object.keys(Ft)), ["onChange", "onCalendarChange", "style", "className", "onPanelChange", "disabledTime"]));
|
|
@@ -27931,7 +27931,7 @@ function B8(e, t) {
|
|
|
27931
27931
|
onPanelMouseDown: Yn,
|
|
27932
27932
|
picker: N,
|
|
27933
27933
|
mode: ie,
|
|
27934
|
-
internalMode:
|
|
27934
|
+
internalMode: Se,
|
|
27935
27935
|
onPanelChange: st,
|
|
27936
27936
|
format: l,
|
|
27937
27937
|
value: St,
|
|
@@ -27939,7 +27939,7 @@ function B8(e, t) {
|
|
|
27939
27939
|
onChange: null,
|
|
27940
27940
|
onSelect: zr,
|
|
27941
27941
|
pickerValue: nt,
|
|
27942
|
-
defaultOpenValue: ii(F == null ? void 0 : F.defaultOpenValue)[
|
|
27942
|
+
defaultOpenValue: ii(F == null ? void 0 : F.defaultOpenValue)[we],
|
|
27943
27943
|
onPickerValueChange: it,
|
|
27944
27944
|
hoverValue: En,
|
|
27945
27945
|
onHover: gr,
|
|
@@ -27967,11 +27967,11 @@ function B8(e, t) {
|
|
|
27967
27967
|
}
|
|
27968
27968
|
Ae("input"), be(!0, {
|
|
27969
27969
|
inherit: !0
|
|
27970
|
-
}),
|
|
27970
|
+
}), we !== kt && ne && !v && i && rt(null, !0), ze(kt), Ce(Rt, kt);
|
|
27971
27971
|
}, or = function(Rt, kt) {
|
|
27972
27972
|
if (be(!1), !v && Ae() === "input") {
|
|
27973
27973
|
var hn = he(ge);
|
|
27974
|
-
mt(
|
|
27974
|
+
mt(we, hn === null);
|
|
27975
27975
|
}
|
|
27976
27976
|
We(Rt, kt);
|
|
27977
27977
|
}, vr = function(Rt, kt) {
|
|
@@ -27986,8 +27986,8 @@ function B8(e, t) {
|
|
|
27986
27986
|
};
|
|
27987
27987
|
}, [u, D, O, q.button, q.input]);
|
|
27988
27988
|
if (Xt(function() {
|
|
27989
|
-
ne &&
|
|
27990
|
-
}, [ne,
|
|
27989
|
+
ne && we !== void 0 && st(null, N, !1);
|
|
27990
|
+
}, [ne, we, N]), Xt(function() {
|
|
27991
27991
|
var Ft = Ae();
|
|
27992
27992
|
!ne && Ft === "input" && (be(!1), rt(null, !0)), !ne && i && !v && Ft === "panel" && (be(!0), rt());
|
|
27993
27993
|
}, [ne]), process.env.NODE_ENV !== "production") {
|
|
@@ -28017,7 +28017,7 @@ function B8(e, t) {
|
|
|
28017
28017
|
// Ref
|
|
28018
28018
|
ref: Z,
|
|
28019
28019
|
suffixIcon: L,
|
|
28020
|
-
activeIndex: He || ne ?
|
|
28020
|
+
activeIndex: He || ne ? we : null,
|
|
28021
28021
|
activeHelp: !!jt,
|
|
28022
28022
|
allHelp: !!jt && bt === "preset",
|
|
28023
28023
|
focused: He,
|
|
@@ -28192,13 +28192,13 @@ function j8(e, t) {
|
|
|
28192
28192
|
}
|
|
28193
28193
|
}, Ee = function(pt) {
|
|
28194
28194
|
_ == null || _(fe(pt));
|
|
28195
|
-
}, Oe = j$(I, N, s, !1, p, v, d, De, Ee), ge = se(Oe, 5), Me = ge[0], ke = ge[1], He = ge[2], Ye = ge[3], Ae = ge[4],
|
|
28195
|
+
}, Oe = j$(I, N, s, !1, p, v, d, De, Ee), ge = se(Oe, 5), Me = ge[0], ke = ge[1], He = ge[2], Ye = ge[3], Ae = ge[4], we = He(), ze = A$([x]), he = se(ze, 4), le = he[0], de = he[1], ve = he[2], Ce = he[3], We = function(pt) {
|
|
28196
28196
|
de(!0), q == null || q(pt, {});
|
|
28197
28197
|
}, je = function(pt) {
|
|
28198
28198
|
de(!1), G == null || G(pt, {});
|
|
28199
28199
|
}, dt = ln(P, {
|
|
28200
28200
|
value: R
|
|
28201
|
-
}), Ve = se(dt, 2), Ge = Ve[0], ce = Ve[1], ie = Ge === "date" && B ? "datetime" : Ge,
|
|
28201
|
+
}), Ve = se(dt, 2), Ge = Ve[0], ce = Ve[1], ie = Ge === "date" && B ? "datetime" : Ge, Se = L$(P, Ge, F, A), ye = y && function(vt, pt) {
|
|
28202
28202
|
y(fe(vt), fe(pt));
|
|
28203
28203
|
}, Ne = _$(
|
|
28204
28204
|
ee(ee({}, a), {}, {
|
|
@@ -28214,7 +28214,7 @@ function j8(e, t) {
|
|
|
28214
28214
|
le,
|
|
28215
28215
|
$e,
|
|
28216
28216
|
c
|
|
28217
|
-
), Re = se(Ne, 2), ft = Re[1], mt = C$(
|
|
28217
|
+
), Re = se(Ne, 2), ft = Re[1], mt = C$(we, c), Qe = se(mt, 2), et = Qe[0], Ke = Qe[1], tt = m.useMemo(function() {
|
|
28218
28218
|
return et.some(function(vt) {
|
|
28219
28219
|
return vt;
|
|
28220
28220
|
});
|
|
@@ -28228,7 +28228,7 @@ function j8(e, t) {
|
|
|
28228
28228
|
}, oe = B$(
|
|
28229
28229
|
I,
|
|
28230
28230
|
N,
|
|
28231
|
-
|
|
28231
|
+
we,
|
|
28232
28232
|
[Ge],
|
|
28233
28233
|
$e,
|
|
28234
28234
|
Ce,
|
|
@@ -28243,7 +28243,7 @@ function j8(e, t) {
|
|
|
28243
28243
|
E
|
|
28244
28244
|
), Fe = se(oe, 2), Be = Fe[0], nt = Fe[1], it = Kt(function(vt, pt, _t) {
|
|
28245
28245
|
if (ce(pt), M && _t !== !1) {
|
|
28246
|
-
var gn = vt ||
|
|
28246
|
+
var gn = vt || we[we.length - 1];
|
|
28247
28247
|
M(gn, pt);
|
|
28248
28248
|
}
|
|
28249
28249
|
}), st = function() {
|
|
@@ -28257,15 +28257,15 @@ function j8(e, t) {
|
|
|
28257
28257
|
force: !0
|
|
28258
28258
|
});
|
|
28259
28259
|
}, Vt = m.useState(null), Nt = se(Vt, 2), At = Nt[0], Je = Nt[1], bt = m.useState(null), ct = se(bt, 2), Ze = ct[0], wt = ct[1], jt = m.useMemo(function() {
|
|
28260
|
-
var vt = [Ze].concat(_e(
|
|
28260
|
+
var vt = [Ze].concat(_e(we)).filter(function(pt) {
|
|
28261
28261
|
return pt;
|
|
28262
28262
|
});
|
|
28263
28263
|
return H ? vt : vt.slice(0, 1);
|
|
28264
|
-
}, [
|
|
28265
|
-
return !H && Ze ? [Ze] :
|
|
28264
|
+
}, [we, Ze, H]), Ht = m.useMemo(function() {
|
|
28265
|
+
return !H && Ze ? [Ze] : we.filter(function(vt) {
|
|
28266
28266
|
return vt;
|
|
28267
28267
|
});
|
|
28268
|
-
}, [
|
|
28268
|
+
}, [we, Ze, H]);
|
|
28269
28269
|
m.useEffect(function() {
|
|
28270
28270
|
$e || wt(null);
|
|
28271
28271
|
}, [$e]);
|
|
@@ -28295,7 +28295,7 @@ function j8(e, t) {
|
|
|
28295
28295
|
multiple: a.multiple
|
|
28296
28296
|
});
|
|
28297
28297
|
}, [a]), wr = /* @__PURE__ */ m.createElement(V$, Te({}, gr, {
|
|
28298
|
-
showNow:
|
|
28298
|
+
showNow: Se,
|
|
28299
28299
|
showTime: B,
|
|
28300
28300
|
disabledDate: w,
|
|
28301
28301
|
onFocus: Bn,
|
|
@@ -28305,7 +28305,7 @@ function j8(e, t) {
|
|
|
28305
28305
|
internalMode: ie,
|
|
28306
28306
|
onPanelChange: it,
|
|
28307
28307
|
format: l,
|
|
28308
|
-
value:
|
|
28308
|
+
value: we,
|
|
28309
28309
|
isInvalid: c,
|
|
28310
28310
|
onChange: null,
|
|
28311
28311
|
onSelect: _n,
|
|
@@ -32545,8 +32545,8 @@ var KL = ["prefixCls", "className", "style", "min", "max", "step", "defaultValue
|
|
|
32545
32545
|
if (!Ge) {
|
|
32546
32546
|
var ie = Q(ce, Ge);
|
|
32547
32547
|
if (gh(ce) && ($ || ie >= 0)) {
|
|
32548
|
-
var
|
|
32549
|
-
ce = iu(ce,
|
|
32548
|
+
var Se = $ || ".";
|
|
32549
|
+
ce = iu(ce, Se, ie);
|
|
32550
32550
|
}
|
|
32551
32551
|
}
|
|
32552
32552
|
return ce;
|
|
@@ -32577,34 +32577,34 @@ var KL = ["prefixCls", "className", "style", "min", "max", "step", "defaultValue
|
|
|
32577
32577
|
}, He = function(Ge) {
|
|
32578
32578
|
return !ke(Ge);
|
|
32579
32579
|
}, Ye = function(Ge, ce) {
|
|
32580
|
-
var ie = Ge,
|
|
32581
|
-
if (!ie.isEmpty() && !ce && (ie = ke(ie) || ie,
|
|
32580
|
+
var ie = Ge, Se = He(ie) || ie.isEmpty();
|
|
32581
|
+
if (!ie.isEmpty() && !ce && (ie = ke(ie) || ie, Se = !0), !g && !f && Se) {
|
|
32582
32582
|
var ye = ie.toString(), Ne = Q(ye, ce);
|
|
32583
32583
|
return Ne >= 0 && (ie = oa(iu(ye, ".", Ne)), He(ie) || (ie = oa(iu(ye, ".", Ne, !0)))), ie.equals(q) || (J(ie), D == null || D(ie.isEmpty() ? null : iC(x, ie)), u === void 0 && xe(ie, ce)), ie;
|
|
32584
32584
|
}
|
|
32585
32585
|
return q;
|
|
32586
|
-
}, Ae = qL(),
|
|
32586
|
+
}, Ae = qL(), we = function Ve(Ge) {
|
|
32587
32587
|
if (ge(), Z.current = Ge, be(Ge), !z.current) {
|
|
32588
32588
|
var ce = re(Ge), ie = oa(ce);
|
|
32589
32589
|
ie.isNaN() || Ye(ie, !0);
|
|
32590
32590
|
}
|
|
32591
32591
|
O == null || O(Ge), Ae(function() {
|
|
32592
|
-
var
|
|
32593
|
-
w || (
|
|
32592
|
+
var Se = Ge;
|
|
32593
|
+
w || (Se = Ge.replace(/。/g, ".")), Se !== Ge && Ve(Se);
|
|
32594
32594
|
});
|
|
32595
32595
|
}, ze = function() {
|
|
32596
32596
|
z.current = !0;
|
|
32597
32597
|
}, he = function() {
|
|
32598
|
-
z.current = !1,
|
|
32598
|
+
z.current = !1, we(M.current.value);
|
|
32599
32599
|
}, le = function(Ge) {
|
|
32600
|
-
|
|
32600
|
+
we(Ge.target.value);
|
|
32601
32601
|
}, de = function(Ge) {
|
|
32602
32602
|
var ce;
|
|
32603
32603
|
if (!(Ge && Ie || !Ge && De)) {
|
|
32604
32604
|
L.current = !1;
|
|
32605
32605
|
var ie = oa(W.current ? oC(l) : l);
|
|
32606
32606
|
Ge || (ie = ie.negate());
|
|
32607
|
-
var
|
|
32607
|
+
var Se = (q || oa(0)).add(ie.toString()), ye = Ye(Se, !1);
|
|
32608
32608
|
I == null || I(iC(x, ye), {
|
|
32609
32609
|
offset: W.current ? oC(l) : l,
|
|
32610
32610
|
type: Ge ? "up" : "down"
|
|
@@ -33901,7 +33901,7 @@ var EO = /* @__PURE__ */ m.forwardRef(function(e, t) {
|
|
|
33901
33901
|
return isFinite(C) ? C : 100;
|
|
33902
33902
|
}, [C]), Ae = m.useMemo(function() {
|
|
33903
33903
|
return w !== null && w <= 0 ? 1 : w;
|
|
33904
|
-
}, [w]),
|
|
33904
|
+
}, [w]), we = m.useMemo(function() {
|
|
33905
33905
|
return typeof R == "boolean" ? R ? Ae : !1 : R >= 0 ? R : !1;
|
|
33906
33906
|
}, [R, Ae]), ze = m.useMemo(function() {
|
|
33907
33907
|
return Object.keys(q || {}).map(function(ct) {
|
|
@@ -33915,7 +33915,7 @@ var EO = /* @__PURE__ */ m.forwardRef(function(e, t) {
|
|
|
33915
33915
|
}).sort(function(ct, Ze) {
|
|
33916
33916
|
return ct.value - Ze.value;
|
|
33917
33917
|
});
|
|
33918
|
-
}, [q]), he = m7(He, Ye, Ae, ze, A,
|
|
33918
|
+
}, [q]), he = m7(He, Ye, Ae, ze, A, we), le = se(he, 2), de = le[0], ve = le[1], Ce = ln(E, {
|
|
33919
33919
|
value: S
|
|
33920
33920
|
}), We = se(Ce, 2), je = We[0], dt = We[1], Ve = m.useMemo(function() {
|
|
33921
33921
|
var ct = je == null ? [] : Array.isArray(je) ? je : [je], Ze = se(ct, 1), wt = Ze[0], jt = wt === void 0 ? He : wt, Ht = je === null ? [] : [jt];
|
|
@@ -33945,7 +33945,7 @@ var EO = /* @__PURE__ */ m.forwardRef(function(e, t) {
|
|
|
33945
33945
|
ct && xe.current.hideHelp();
|
|
33946
33946
|
var Ze = Ge(Ve);
|
|
33947
33947
|
I == null || I(Ze), Et(!I, "[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."), P == null || P(Ze);
|
|
33948
|
-
}),
|
|
33948
|
+
}), Se = function(Ze) {
|
|
33949
33949
|
if (!(u || !Oe || Ve.length <= Me)) {
|
|
33950
33950
|
var wt = _e(Ve);
|
|
33951
33951
|
wt.splice(Ze, 1), N == null || N(Ge(wt)), ce(wt);
|
|
@@ -34088,7 +34088,7 @@ var EO = /* @__PURE__ */ m.forwardRef(function(e, t) {
|
|
|
34088
34088
|
handleRender: J,
|
|
34089
34089
|
activeHandleRender: Q,
|
|
34090
34090
|
onChangeComplete: ie,
|
|
34091
|
-
onDelete: Oe ?
|
|
34091
|
+
onDelete: Oe ? Se : void 0
|
|
34092
34092
|
}), /* @__PURE__ */ m.createElement(s7, {
|
|
34093
34093
|
prefixCls: r,
|
|
34094
34094
|
marks: ze,
|
|
@@ -34503,27 +34503,27 @@ const $O = /* @__PURE__ */ ae.forwardRef((e, t) => {
|
|
|
34503
34503
|
const {
|
|
34504
34504
|
index: ge
|
|
34505
34505
|
} = Oe, Me = Ee.props;
|
|
34506
|
-
function ke(
|
|
34506
|
+
function ke(we, ze, he) {
|
|
34507
34507
|
var le, de, ve, Ce;
|
|
34508
|
-
he && ((de = (le = b)[
|
|
34508
|
+
he && ((de = (le = b)[we]) === null || de === void 0 || de.call(le, ze)), (Ce = (ve = Me)[we]) === null || Ce === void 0 || Ce.call(ve, ze);
|
|
34509
34509
|
}
|
|
34510
34510
|
const He = Object.assign(Object.assign({}, Me), {
|
|
34511
|
-
onMouseEnter: (
|
|
34512
|
-
R(!0), ke("onMouseEnter",
|
|
34511
|
+
onMouseEnter: (we) => {
|
|
34512
|
+
R(!0), ke("onMouseEnter", we);
|
|
34513
34513
|
},
|
|
34514
|
-
onMouseLeave: (
|
|
34515
|
-
R(!1), ke("onMouseLeave",
|
|
34514
|
+
onMouseLeave: (we) => {
|
|
34515
|
+
R(!1), ke("onMouseLeave", we);
|
|
34516
34516
|
},
|
|
34517
|
-
onMouseDown: (
|
|
34518
|
-
j(!0), J(!0), ke("onMouseDown",
|
|
34517
|
+
onMouseDown: (we) => {
|
|
34518
|
+
j(!0), J(!0), ke("onMouseDown", we);
|
|
34519
34519
|
},
|
|
34520
|
-
onFocus: (
|
|
34520
|
+
onFocus: (we) => {
|
|
34521
34521
|
var ze;
|
|
34522
|
-
j(!0), (ze = b.onFocus) === null || ze === void 0 || ze.call(b,
|
|
34522
|
+
j(!0), (ze = b.onFocus) === null || ze === void 0 || ze.call(b, we), ke("onFocus", we, !0);
|
|
34523
34523
|
},
|
|
34524
|
-
onBlur: (
|
|
34524
|
+
onBlur: (we) => {
|
|
34525
34525
|
var ze;
|
|
34526
|
-
j(!1), (ze = b.onBlur) === null || ze === void 0 || ze.call(b,
|
|
34526
|
+
j(!1), (ze = b.onBlur) === null || ze === void 0 || ze.call(b, we), ke("onBlur", we, !0);
|
|
34527
34527
|
}
|
|
34528
34528
|
}), Ye = /* @__PURE__ */ ae.cloneElement(Ee, He), Ae = (!!T || K) && q !== null;
|
|
34529
34529
|
return be ? Ye : /* @__PURE__ */ ae.createElement(cv, Object.assign({}, _, {
|
|
@@ -34782,16 +34782,16 @@ const V7 = (e) => {
|
|
|
34782
34782
|
}, Q = l || g.picker, re = B(), {
|
|
34783
34783
|
onSelect: Z,
|
|
34784
34784
|
multiple: X
|
|
34785
|
-
} = A, te = Z && l === "time" && !X, ne = (Ae,
|
|
34786
|
-
F == null || F(Ae,
|
|
34785
|
+
} = A, te = Z && l === "time" && !X, ne = (Ae, we, ze) => {
|
|
34786
|
+
F == null || F(Ae, we, ze), te && Z(Ae);
|
|
34787
34787
|
};
|
|
34788
34788
|
if (process.env.NODE_ENV !== "production") {
|
|
34789
34789
|
const Ae = tn(c || "DatePicker");
|
|
34790
34790
|
process.env.NODE_ENV !== "production" && Ae(l !== "quarter", "deprecated", `DatePicker.${c} is legacy usage. Please use DatePicker[picker='${l}'] directly.`), Ae.deprecated(!O, "dropdownClassName", "popupClassName"), Ae.deprecated(!("bordered" in g), "bordered", "variant"), Ae.deprecated(!te, "onSelect", "onCalendarChange");
|
|
34791
34791
|
}
|
|
34792
34792
|
const [fe, be] = NO(g, _), xe = PO(b), Pe = _r((Ae) => {
|
|
34793
|
-
var
|
|
34794
|
-
return (
|
|
34793
|
+
var we;
|
|
34794
|
+
return (we = w ?? H) !== null && we !== void 0 ? we : Ae;
|
|
34795
34795
|
}), $e = m.useContext(fr), Ie = N ?? $e, De = an(Jn), {
|
|
34796
34796
|
hasFeedback: Ee,
|
|
34797
34797
|
status: Oe,
|
|
@@ -36996,7 +36996,7 @@ var e9 = ["prefixCls", "defaultValue", "value", "autoSize", "onResize", "classNa
|
|
|
36996
36996
|
var Ae = function(he) {
|
|
36997
36997
|
var le;
|
|
36998
36998
|
E == null || E(he), (le = J()) !== null && le !== void 0 && le.style.height && K(!0);
|
|
36999
|
-
},
|
|
36999
|
+
}, we = !N && !v && !l;
|
|
37000
37000
|
return /* @__PURE__ */ ae.createElement(ph, {
|
|
37001
37001
|
ref: q,
|
|
37002
37002
|
value: M,
|
|
@@ -37010,7 +37010,7 @@ var e9 = ["prefixCls", "defaultValue", "value", "autoSize", "onResize", "classNa
|
|
|
37010
37010
|
disabled: C,
|
|
37011
37011
|
focused: H,
|
|
37012
37012
|
className: ue(b, Pe && "".concat(p, "-out-of-range")),
|
|
37013
|
-
style: ee(ee({}, y), T && !
|
|
37013
|
+
style: ee(ee({}, y), T && !we ? {
|
|
37014
37014
|
height: "auto"
|
|
37015
37015
|
} : {}),
|
|
37016
37016
|
dataAttrs: {
|
|
@@ -38978,45 +38978,45 @@ const FH = /* @__PURE__ */ m.memo(PH);
|
|
|
38978
38978
|
var RH = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "dragOverGapBottom", "isLeaf", "isStart", "isEnd", "expanded", "selected", "checked", "halfChecked", "loading", "domRef", "active", "data", "onMouseMove", "selectable"], $C = "open", OC = "close", AH = "---", Xi = function(t) {
|
|
38979
38979
|
var n, r, a, o = t.eventKey, i = t.className, s = t.style, l = t.dragOver, c = t.dragOverGapTop, u = t.dragOverGapBottom, f = t.isLeaf, g = t.isStart, h = t.isEnd, p = t.expanded, v = t.selected, d = t.checked, b = t.halfChecked, y = t.loading, C = t.domRef, x = t.active, w = t.data, S = t.onMouseMove, E = t.selectable, $ = Pt(t, RH), D = ae.useContext($h), O = ae.useContext(IH), N = ae.useRef(null), I = ae.useState(!1), P = se(I, 2), F = P[0], A = P[1], B = !!(D.disabled || t.disabled || (n = O.nodeDisabled) !== null && n !== void 0 && n.call(O, w)), R = ae.useMemo(function() {
|
|
38980
38980
|
return !D.checkable || t.checkable === !1 ? !1 : D.checkable;
|
|
38981
|
-
}, [D.checkable, t.checkable]), M = function(
|
|
38982
|
-
B || D.onNodeSelect(
|
|
38983
|
-
}, j = function(
|
|
38984
|
-
B || !R || t.disableCheckbox || D.onNodeCheck(
|
|
38981
|
+
}, [D.checkable, t.checkable]), M = function(we) {
|
|
38982
|
+
B || D.onNodeSelect(we, Hn(t));
|
|
38983
|
+
}, j = function(we) {
|
|
38984
|
+
B || !R || t.disableCheckbox || D.onNodeCheck(we, Hn(t), !d);
|
|
38985
38985
|
}, _ = ae.useMemo(function() {
|
|
38986
38986
|
return typeof E == "boolean" ? E : D.selectable;
|
|
38987
|
-
}, [E, D.selectable]), H = function(
|
|
38988
|
-
D.onNodeClick(
|
|
38989
|
-
}, V = function(
|
|
38990
|
-
D.onNodeDoubleClick(
|
|
38991
|
-
}, L = function(
|
|
38992
|
-
D.onNodeMouseEnter(
|
|
38993
|
-
}, z = function(
|
|
38994
|
-
D.onNodeMouseLeave(
|
|
38995
|
-
}, W = function(
|
|
38996
|
-
D.onNodeContextMenu(
|
|
38987
|
+
}, [E, D.selectable]), H = function(we) {
|
|
38988
|
+
D.onNodeClick(we, Hn(t)), _ ? M(we) : j(we);
|
|
38989
|
+
}, V = function(we) {
|
|
38990
|
+
D.onNodeDoubleClick(we, Hn(t));
|
|
38991
|
+
}, L = function(we) {
|
|
38992
|
+
D.onNodeMouseEnter(we, Hn(t));
|
|
38993
|
+
}, z = function(we) {
|
|
38994
|
+
D.onNodeMouseLeave(we, Hn(t));
|
|
38995
|
+
}, W = function(we) {
|
|
38996
|
+
D.onNodeContextMenu(we, Hn(t));
|
|
38997
38997
|
}, T = ae.useMemo(function() {
|
|
38998
38998
|
return !!(D.draggable && (!D.draggable.nodeDraggable || D.draggable.nodeDraggable(w)));
|
|
38999
|
-
}, [D.draggable, w]), K = function(
|
|
39000
|
-
|
|
38999
|
+
}, [D.draggable, w]), K = function(we) {
|
|
39000
|
+
we.stopPropagation(), A(!0), D.onNodeDragStart(we, t);
|
|
39001
39001
|
try {
|
|
39002
|
-
|
|
39002
|
+
we.dataTransfer.setData("text/plain", "");
|
|
39003
39003
|
} catch {
|
|
39004
39004
|
}
|
|
39005
|
-
}, q = function(
|
|
39006
|
-
|
|
39007
|
-
}, G = function(
|
|
39008
|
-
|
|
39009
|
-
}, J = function(
|
|
39010
|
-
|
|
39011
|
-
}, Q = function(
|
|
39012
|
-
|
|
39013
|
-
}, re = function(
|
|
39014
|
-
|
|
39015
|
-
}, Z = function(
|
|
39016
|
-
y || D.onNodeExpand(
|
|
39005
|
+
}, q = function(we) {
|
|
39006
|
+
we.preventDefault(), we.stopPropagation(), D.onNodeDragEnter(we, t);
|
|
39007
|
+
}, G = function(we) {
|
|
39008
|
+
we.preventDefault(), we.stopPropagation(), D.onNodeDragOver(we, t);
|
|
39009
|
+
}, J = function(we) {
|
|
39010
|
+
we.stopPropagation(), D.onNodeDragLeave(we, t);
|
|
39011
|
+
}, Q = function(we) {
|
|
39012
|
+
we.stopPropagation(), A(!1), D.onNodeDragEnd(we, t);
|
|
39013
|
+
}, re = function(we) {
|
|
39014
|
+
we.preventDefault(), we.stopPropagation(), A(!1), D.onNodeDrop(we, t);
|
|
39015
|
+
}, Z = function(we) {
|
|
39016
|
+
y || D.onNodeExpand(we, Hn(t));
|
|
39017
39017
|
}, X = ae.useMemo(function() {
|
|
39018
|
-
var Ae = Dr(D.keyEntities, o) || {},
|
|
39019
|
-
return !!(
|
|
39018
|
+
var Ae = Dr(D.keyEntities, o) || {}, we = Ae.children;
|
|
39019
|
+
return !!(we || []).length;
|
|
39020
39020
|
}, [D.keyEntities, o]), te = ae.useMemo(function() {
|
|
39021
39021
|
return f === !1 ? !1 : f || !D.loadData && !X || D.loadData && t.loaded && !X;
|
|
39022
39022
|
}, [f, D.loadData, X, t.loaded]);
|
|
@@ -39028,17 +39028,17 @@ var RH = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "dragO
|
|
|
39028
39028
|
return (Ae = D.draggable) !== null && Ae !== void 0 && Ae.icon ? /* @__PURE__ */ ae.createElement("span", {
|
|
39029
39029
|
className: "".concat(D.prefixCls, "-draggable-icon")
|
|
39030
39030
|
}, D.draggable.icon) : null;
|
|
39031
|
-
}, [D.draggable]), fe = function(
|
|
39031
|
+
}, [D.draggable]), fe = function(we) {
|
|
39032
39032
|
var ze = t.switcherIcon || D.switcherIcon;
|
|
39033
39033
|
return typeof ze == "function" ? ze(ee(ee({}, t), {}, {
|
|
39034
|
-
isLeaf:
|
|
39034
|
+
isLeaf: we
|
|
39035
39035
|
})) : ze;
|
|
39036
39036
|
}, be = function() {
|
|
39037
39037
|
if (te) {
|
|
39038
|
-
var
|
|
39039
|
-
return
|
|
39038
|
+
var we = fe(!0);
|
|
39039
|
+
return we !== !1 ? /* @__PURE__ */ ae.createElement("span", {
|
|
39040
39040
|
className: ue("".concat(D.prefixCls, "-switcher"), "".concat(D.prefixCls, "-switcher-noop"))
|
|
39041
|
-
},
|
|
39041
|
+
}, we) : null;
|
|
39042
39042
|
}
|
|
39043
39043
|
var ze = fe(!1);
|
|
39044
39044
|
return ze !== !1 ? /* @__PURE__ */ ae.createElement("span", {
|
|
@@ -39064,8 +39064,8 @@ var RH = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "dragO
|
|
|
39064
39064
|
className: ue("".concat(D.prefixCls, "-iconEle"), "".concat(D.prefixCls, "-icon__").concat(Pe || "docu"), U({}, "".concat(D.prefixCls, "-icon_loading"), y))
|
|
39065
39065
|
});
|
|
39066
39066
|
}, [D.prefixCls, Pe, y]), Ie = ae.useMemo(function() {
|
|
39067
|
-
var Ae = !!D.draggable,
|
|
39068
|
-
return
|
|
39067
|
+
var Ae = !!D.draggable, we = !t.disabled && Ae && D.dragOverNodeKey === o;
|
|
39068
|
+
return we ? D.dropIndicatorRender({
|
|
39069
39069
|
dropPosition: D.dropPosition,
|
|
39070
39070
|
dropLevelOffset: D.dropLevelOffset,
|
|
39071
39071
|
indent: D.indent,
|
|
@@ -39073,7 +39073,7 @@ var RH = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "dragO
|
|
|
39073
39073
|
direction: D.direction
|
|
39074
39074
|
}) : null;
|
|
39075
39075
|
}, [D.dropPosition, D.dropLevelOffset, D.indent, D.prefixCls, D.direction, D.draggable, D.dragOverNodeKey, D.dropIndicatorRender]), De = ae.useMemo(function() {
|
|
39076
|
-
var Ae = t.title,
|
|
39076
|
+
var Ae = t.title, we = Ae === void 0 ? AH : Ae, ze = "".concat(D.prefixCls, "-node-content-wrapper"), he;
|
|
39077
39077
|
if (D.showIcon) {
|
|
39078
39078
|
var le = t.icon || D.icon;
|
|
39079
39079
|
he = le ? /* @__PURE__ */ ae.createElement("span", {
|
|
@@ -39081,9 +39081,9 @@ var RH = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "dragO
|
|
|
39081
39081
|
}, typeof le == "function" ? le(t) : le) : $e;
|
|
39082
39082
|
} else D.loadData && y && (he = $e);
|
|
39083
39083
|
var de;
|
|
39084
|
-
return typeof
|
|
39084
|
+
return typeof we == "function" ? de = we(w) : D.titleRender ? de = D.titleRender(w) : de = we, /* @__PURE__ */ ae.createElement("span", {
|
|
39085
39085
|
ref: N,
|
|
39086
|
-
title: typeof
|
|
39086
|
+
title: typeof we == "string" ? we : "",
|
|
39087
39087
|
className: ue(ze, "".concat(ze, "-").concat(Pe || "normal"), U({}, "".concat(D.prefixCls, "-node-selected"), !B && (v || F))),
|
|
39088
39088
|
onMouseEnter: L,
|
|
39089
39089
|
onMouseLeave: z,
|
|
@@ -42699,11 +42699,11 @@ const Hs = `__LIST_IGNORE_${Date.now()}__`, TV = (e, t) => {
|
|
|
42699
42699
|
className: `${X}-drag-container`
|
|
42700
42700
|
}, x))), He()));
|
|
42701
42701
|
}
|
|
42702
|
-
const
|
|
42702
|
+
const we = ue(X, `${X}-select`, {
|
|
42703
42703
|
[`${X}-disabled`]: B,
|
|
42704
42704
|
[`${X}-hidden`]: !x
|
|
42705
42705
|
}), ze = /* @__PURE__ */ m.createElement("div", {
|
|
42706
|
-
className:
|
|
42706
|
+
className: we
|
|
42707
42707
|
}, /* @__PURE__ */ m.createElement(fv, Object.assign({}, te, {
|
|
42708
42708
|
ref: H
|
|
42709
42709
|
})));
|
|
@@ -43729,57 +43729,39 @@ function KV({
|
|
|
43729
43729
|
status: a,
|
|
43730
43730
|
eventsEmit: o
|
|
43731
43731
|
}) {
|
|
43732
|
-
const i = Ue(null)
|
|
43733
|
-
"div",
|
|
43734
|
-
{
|
|
43735
|
-
className: "mb-6",
|
|
43736
|
-
style: { transform: "rotate(180deg)", direction: "ltr" },
|
|
43737
|
-
children: l.istype === "user" ? n ? /* @__PURE__ */ k.jsx("div", { style: { direction: "ltr" }, children: n(l, c) }) : /* @__PURE__ */ k.jsx("div", { style: { direction: "ltr" }, children: /* @__PURE__ */ k.jsx(
|
|
43738
|
-
WV,
|
|
43739
|
-
{
|
|
43740
|
-
...l,
|
|
43741
|
-
sessionContext: r,
|
|
43742
|
-
eventsEmit: o
|
|
43743
|
-
}
|
|
43744
|
-
) }) : t ? /* @__PURE__ */ k.jsx("div", { style: { direction: "ltr" }, children: t(l, c) }) : /* @__PURE__ */ k.jsx("div", { style: { direction: "ltr" }, children: /* @__PURE__ */ k.jsx(
|
|
43745
|
-
qV,
|
|
43746
|
-
{
|
|
43747
|
-
...l,
|
|
43748
|
-
sessionContext: r,
|
|
43749
|
-
eventsEmit: o
|
|
43750
|
-
}
|
|
43751
|
-
) })
|
|
43752
|
-
},
|
|
43753
|
-
l.istype === "user" ? l.queryId : "relatedTo-" + l.queryId
|
|
43754
|
-
);
|
|
43732
|
+
const i = Ue(null);
|
|
43755
43733
|
return /* @__PURE__ */ k.jsxs(
|
|
43756
43734
|
"div",
|
|
43757
43735
|
{
|
|
43758
|
-
style: { direction: "rtl" },
|
|
43759
|
-
className: "max-w-[1000px] min-w-[650px] mx-auto",
|
|
43760
|
-
// messages.length >
|
|
43761
|
-
// <
|
|
43762
|
-
//
|
|
43763
|
-
//
|
|
43764
|
-
//
|
|
43765
|
-
//
|
|
43766
|
-
//
|
|
43767
|
-
//
|
|
43768
|
-
//
|
|
43769
|
-
//
|
|
43770
|
-
// initialTopMostItemIndex={messages.length - 1}
|
|
43771
|
-
// />
|
|
43736
|
+
style: { direction: "rtl", transform: "rotate(180deg)" },
|
|
43737
|
+
className: " max-w-[1000px] min-w-[650px] mx-auto",
|
|
43738
|
+
// messages.length > 50 ? (
|
|
43739
|
+
// <List
|
|
43740
|
+
// height={600}
|
|
43741
|
+
// itemCount={messages.length}
|
|
43742
|
+
// itemSize={80}
|
|
43743
|
+
// width={'100%'}
|
|
43744
|
+
// style={{ direction: 'ltr', transform: 'rotate(180deg)' }}
|
|
43745
|
+
// >
|
|
43746
|
+
// {renderRow}
|
|
43747
|
+
// </List>
|
|
43772
43748
|
// ) : (
|
|
43773
43749
|
children: [
|
|
43774
|
-
e.map((
|
|
43775
|
-
|
|
43750
|
+
e.map((s, l) => /* @__PURE__ */ k.jsx("div", { className: "mb-6", children: s.istype === "user" ? n ? /* @__PURE__ */ k.jsx("div", { style: { direction: "ltr" }, children: n(s, l) }) : /* @__PURE__ */ k.jsx("div", { style: { direction: "ltr" }, children: /* @__PURE__ */ k.jsx(
|
|
43751
|
+
WV,
|
|
43776
43752
|
{
|
|
43777
|
-
|
|
43778
|
-
|
|
43779
|
-
|
|
43780
|
-
}
|
|
43781
|
-
|
|
43782
|
-
|
|
43753
|
+
...s,
|
|
43754
|
+
sessionContext: r,
|
|
43755
|
+
eventsEmit: o
|
|
43756
|
+
}
|
|
43757
|
+
) }) : t ? /* @__PURE__ */ k.jsx("div", { style: { direction: "ltr" }, children: t(s, l) }) : /* @__PURE__ */ k.jsx("div", { style: { direction: "ltr" }, children: /* @__PURE__ */ k.jsx(
|
|
43758
|
+
qV,
|
|
43759
|
+
{
|
|
43760
|
+
...s,
|
|
43761
|
+
sessionContext: r,
|
|
43762
|
+
eventsEmit: o
|
|
43763
|
+
}
|
|
43764
|
+
) }) }, s.istype === "user" ? s.queryId : "relatedTo-" + s.queryId)),
|
|
43783
43765
|
/* @__PURE__ */ k.jsx("div", { ref: i })
|
|
43784
43766
|
]
|
|
43785
43767
|
}
|
|
@@ -44452,7 +44434,7 @@ function tW() {
|
|
|
44452
44434
|
return /* @__PURE__ */ k.jsx("div", { className: "main relative h-full w-full flex items-center justify-center", children: /* @__PURE__ */ k.jsx("div", { className: "text-2xl font-bold", children: "display loading..." }) });
|
|
44453
44435
|
}
|
|
44454
44436
|
function nW() {
|
|
44455
|
-
return /* @__PURE__ */ k.jsx("div", { className: "main relative h-full w-full flex items-center justify-center", children: /* @__PURE__ */ k.jsx("div", { className: "text-2xl font-bold", children: "app error..." }) });
|
|
44437
|
+
return /* @__PURE__ */ k.jsx("div", { className: "main relative h-full w-full bg-transparent! flex items-center justify-center", children: /* @__PURE__ */ k.jsx("div", { className: "text-2xl font-bold", children: "app error..." }) });
|
|
44456
44438
|
}
|
|
44457
44439
|
function rW() {
|
|
44458
44440
|
return /* @__PURE__ */ k.jsx("div", { className: "main relative h-full w-full flex items-center justify-center", children: /* @__PURE__ */ k.jsx("div", { className: "text-2xl font-bold", children: "display error..." }) });
|
|
@@ -44758,128 +44740,135 @@ function O2({
|
|
|
44758
44740
|
]
|
|
44759
44741
|
}
|
|
44760
44742
|
),
|
|
44761
|
-
/* @__PURE__ */ k.jsxs(
|
|
44762
|
-
|
|
44763
|
-
|
|
44764
|
-
|
|
44765
|
-
|
|
44766
|
-
|
|
44767
|
-
|
|
44768
|
-
|
|
44769
|
-
|
|
44770
|
-
|
|
44771
|
-
|
|
44772
|
-
|
|
44773
|
-
|
|
44774
|
-
|
|
44775
|
-
|
|
44776
|
-
|
|
44777
|
-
|
|
44778
|
-
|
|
44779
|
-
|
|
44780
|
-
|
|
44781
|
-
|
|
44782
|
-
|
|
44783
|
-
|
|
44784
|
-
|
|
44785
|
-
|
|
44786
|
-
|
|
44787
|
-
|
|
44788
|
-
|
|
44789
|
-
|
|
44790
|
-
|
|
44791
|
-
|
|
44792
|
-
|
|
44793
|
-
|
|
44794
|
-
|
|
44795
|
-
|
|
44796
|
-
|
|
44797
|
-
|
|
44798
|
-
|
|
44799
|
-
|
|
44800
|
-
|
|
44801
|
-
|
|
44802
|
-
|
|
44803
|
-
|
|
44804
|
-
flexDirection: "column"
|
|
44805
|
-
},
|
|
44806
|
-
onDrop: F,
|
|
44807
|
-
onDragOver: A,
|
|
44808
|
-
onDragLeave: B,
|
|
44809
|
-
children: /* @__PURE__ */ k.jsx(
|
|
44743
|
+
/* @__PURE__ */ k.jsxs(
|
|
44744
|
+
"div",
|
|
44745
|
+
{
|
|
44746
|
+
className: "relative ",
|
|
44747
|
+
style: {
|
|
44748
|
+
width: G === 0 ? "100%" : `calc(100% - ${G})`,
|
|
44749
|
+
borderRadius: W,
|
|
44750
|
+
background: T,
|
|
44751
|
+
fontSize: J,
|
|
44752
|
+
color: re,
|
|
44753
|
+
// fontWeight,
|
|
44754
|
+
// lineHeight,
|
|
44755
|
+
// padding,
|
|
44756
|
+
position: "relative",
|
|
44757
|
+
height: "100%",
|
|
44758
|
+
zIndex: d ? 10 : void 0,
|
|
44759
|
+
display: "flex",
|
|
44760
|
+
flexDirection: "column"
|
|
44761
|
+
},
|
|
44762
|
+
onDrop: F,
|
|
44763
|
+
onDragOver: A,
|
|
44764
|
+
onDragLeave: B,
|
|
44765
|
+
children: [
|
|
44766
|
+
d && /* @__PURE__ */ k.jsx(
|
|
44767
|
+
"div",
|
|
44768
|
+
{
|
|
44769
|
+
style: {
|
|
44770
|
+
position: "absolute",
|
|
44771
|
+
inset: 0,
|
|
44772
|
+
background: H.colors.primary + "14",
|
|
44773
|
+
border: `4px dashed ${H.colors.primary}`,
|
|
44774
|
+
display: "flex",
|
|
44775
|
+
alignItems: "center",
|
|
44776
|
+
justifyContent: "center",
|
|
44777
|
+
zIndex: 9999,
|
|
44778
|
+
pointerEvents: "none",
|
|
44779
|
+
userSelect: "none",
|
|
44780
|
+
borderRadius: W
|
|
44781
|
+
},
|
|
44782
|
+
children: /* @__PURE__ */ k.jsx("div", { style: { color: H.colors.primary, fontSize: Gm.lg, fontWeight: 700 }, children: "\u677E\u5F00\u6587\u4EF6\u4EE5\u4E0A\u4F20" })
|
|
44783
|
+
}
|
|
44784
|
+
),
|
|
44785
|
+
/* @__PURE__ */ k.jsx(
|
|
44810
44786
|
"div",
|
|
44811
44787
|
{
|
|
44812
44788
|
style: {
|
|
44813
44789
|
width: "100%",
|
|
44814
|
-
|
|
44815
|
-
|
|
44816
|
-
|
|
44790
|
+
position: "relative",
|
|
44791
|
+
height: "calc(100% - 155px)",
|
|
44792
|
+
zIndex: d ? 10 : void 0,
|
|
44817
44793
|
display: "flex",
|
|
44818
|
-
flexDirection: "column"
|
|
44819
|
-
height: "100%",
|
|
44820
|
-
overflow: "hidden"
|
|
44794
|
+
flexDirection: "column"
|
|
44821
44795
|
},
|
|
44822
|
-
children:
|
|
44796
|
+
children: /* @__PURE__ */ k.jsx(
|
|
44823
44797
|
"div",
|
|
44824
44798
|
{
|
|
44825
|
-
ref: f,
|
|
44826
|
-
className: "relative px-8",
|
|
44827
44799
|
style: {
|
|
44828
|
-
|
|
44829
|
-
|
|
44800
|
+
width: "100%",
|
|
44801
|
+
minWidth: 520,
|
|
44802
|
+
margin: "0 auto",
|
|
44830
44803
|
flex: 1,
|
|
44831
|
-
overflowY: "scroll",
|
|
44832
|
-
paddingTop: 230,
|
|
44833
|
-
paddingBottom: 20,
|
|
44834
44804
|
display: "flex",
|
|
44835
44805
|
flexDirection: "column",
|
|
44836
|
-
|
|
44806
|
+
height: "100%",
|
|
44807
|
+
overflow: "hidden"
|
|
44837
44808
|
},
|
|
44838
|
-
children:
|
|
44839
|
-
|
|
44840
|
-
|
|
44841
|
-
|
|
44842
|
-
|
|
44843
|
-
|
|
44844
|
-
|
|
44845
|
-
|
|
44846
|
-
|
|
44847
|
-
|
|
44848
|
-
|
|
44849
|
-
|
|
44850
|
-
|
|
44809
|
+
children: e.isNew ? a != null && a.WelcomeComponent ? /* @__PURE__ */ k.jsx(a.WelcomeComponent, {}) : /* @__PURE__ */ k.jsx(aW, {}) : r.display === "loading" ? a != null && a.DisplayLoading ? /* @__PURE__ */ k.jsx(a.DisplayLoading, {}) : /* @__PURE__ */ k.jsx(tW, {}) : r.display === "error" ? a != null && a.DisplayError ? /* @__PURE__ */ k.jsx(a.DisplayError, {}) : /* @__PURE__ */ k.jsx(rW, {}) : /* @__PURE__ */ k.jsxs(
|
|
44810
|
+
"div",
|
|
44811
|
+
{
|
|
44812
|
+
ref: f,
|
|
44813
|
+
className: "relative px-8",
|
|
44814
|
+
style: {
|
|
44815
|
+
direction: "rtl",
|
|
44816
|
+
transform: "rotate(180deg)",
|
|
44817
|
+
flex: 1,
|
|
44818
|
+
overflowY: "scroll",
|
|
44819
|
+
paddingTop: 230,
|
|
44820
|
+
paddingBottom: 20,
|
|
44821
|
+
display: "flex",
|
|
44822
|
+
flexDirection: "column",
|
|
44823
|
+
alignItems: "center"
|
|
44824
|
+
},
|
|
44825
|
+
children: [
|
|
44826
|
+
/* @__PURE__ */ k.jsx("div", { style: { flexGrow: 1, flexShrink: 1, flex: 1 } }),
|
|
44827
|
+
/* @__PURE__ */ k.jsx("div", { style: { width: "100%", maxWidth: 1200 }, children: /* @__PURE__ */ k.jsx(
|
|
44828
|
+
KV,
|
|
44829
|
+
{
|
|
44830
|
+
status: r.display,
|
|
44831
|
+
messages: D,
|
|
44832
|
+
eventsEmit: n,
|
|
44833
|
+
renderAiChatBox: a == null ? void 0 : a.AiChatBox,
|
|
44834
|
+
renderUserChatBox: a == null ? void 0 : a.UserChatBox
|
|
44835
|
+
}
|
|
44836
|
+
) })
|
|
44837
|
+
]
|
|
44838
|
+
}
|
|
44839
|
+
)
|
|
44851
44840
|
}
|
|
44852
44841
|
)
|
|
44853
44842
|
}
|
|
44843
|
+
),
|
|
44844
|
+
/* @__PURE__ */ k.jsx(
|
|
44845
|
+
VV,
|
|
44846
|
+
{
|
|
44847
|
+
value: g,
|
|
44848
|
+
status: r.sender,
|
|
44849
|
+
styles: z,
|
|
44850
|
+
recommandQuestions: o,
|
|
44851
|
+
eventsEmit: (Z, X) => {
|
|
44852
|
+
P(Z, X);
|
|
44853
|
+
},
|
|
44854
|
+
uploadedFiles: p,
|
|
44855
|
+
fileUploadStatus: l,
|
|
44856
|
+
onUpload: (Z) => {
|
|
44857
|
+
Z && Z.length > 0 && v((X) => [
|
|
44858
|
+
...X,
|
|
44859
|
+
...Array.from(Z).map((te) => ({ file: te, type: R(te) }))
|
|
44860
|
+
]);
|
|
44861
|
+
},
|
|
44862
|
+
onRemoveFile: (Z) => {
|
|
44863
|
+
v((X) => X.filter((te, ne) => ne !== Z));
|
|
44864
|
+
},
|
|
44865
|
+
senderConfig: s,
|
|
44866
|
+
onSenderConfigChange: M
|
|
44867
|
+
}
|
|
44854
44868
|
)
|
|
44855
|
-
|
|
44856
|
-
|
|
44857
|
-
|
|
44858
|
-
VV,
|
|
44859
|
-
{
|
|
44860
|
-
value: g,
|
|
44861
|
-
status: r.sender,
|
|
44862
|
-
styles: z,
|
|
44863
|
-
recommandQuestions: o,
|
|
44864
|
-
eventsEmit: (Z, X) => {
|
|
44865
|
-
P(Z, X);
|
|
44866
|
-
},
|
|
44867
|
-
uploadedFiles: p,
|
|
44868
|
-
fileUploadStatus: l,
|
|
44869
|
-
onUpload: (Z) => {
|
|
44870
|
-
Z && Z.length > 0 && v((X) => [
|
|
44871
|
-
...X,
|
|
44872
|
-
...Array.from(Z).map((te) => ({ file: te, type: R(te) }))
|
|
44873
|
-
]);
|
|
44874
|
-
},
|
|
44875
|
-
onRemoveFile: (Z) => {
|
|
44876
|
-
v((X) => X.filter((te, ne) => ne !== Z));
|
|
44877
|
-
},
|
|
44878
|
-
senderConfig: s,
|
|
44879
|
-
onSenderConfigChange: M
|
|
44880
|
-
}
|
|
44881
|
-
)
|
|
44882
|
-
] })
|
|
44869
|
+
]
|
|
44870
|
+
}
|
|
44871
|
+
)
|
|
44883
44872
|
]
|
|
44884
44873
|
}
|
|
44885
44874
|
)
|
|
@@ -47519,24 +47508,24 @@ var lN = function(e, t) {
|
|
|
47519
47508
|
var ne = [], fe = K(_[0]), be = fe ? fe.ownerDocument.querySelector("body") : document.querySelector("body");
|
|
47520
47509
|
rN(_);
|
|
47521
47510
|
var xe = _.map(function(ge) {
|
|
47522
|
-
var Me = L[ge].rect, ke = z[ge].rect, He = L[ge].opacity, Ye = z[ge].opacity, Ae = ke.width < 1 || ke.height < 1,
|
|
47523
|
-
if (!gx(Me) && !gx(ke) || !
|
|
47524
|
-
var ze, he, le, de = vx(
|
|
47511
|
+
var Me = L[ge].rect, ke = z[ge].rect, He = L[ge].opacity, Ye = z[ge].opacity, Ae = ke.width < 1 || ke.height < 1, we = z[ge].element;
|
|
47512
|
+
if (!gx(Me) && !gx(ke) || !we) return !1;
|
|
47513
|
+
var ze, he, le, de = vx(we), ve = (le = (he = (ze = { flipperSpring: T, flippedSpring: de.spring }) === void 0 ? {} : ze).flippedSpring, co({}, wv.noWobble, ux(he.flipperSpring), ux(le))), Ce = de.stagger === !0 ? "default" : de.stagger, We = { element: we, id: ge, stagger: Ce, springConfig: ve };
|
|
47525
47514
|
if (H[ge] && H[ge].shouldFlip && !H[ge].shouldFlip(re.previous, re.current)) return !1;
|
|
47526
47515
|
var je = Math.abs(Me.left - ke.left) + Math.abs(Me.top - ke.top), dt = Math.abs(Me.width - ke.width) + Math.abs(Me.height - ke.height), Ve = Math.abs(Ye - He);
|
|
47527
47516
|
if (Me.height === 0 && ke.height === 0 || Me.width === 0 && ke.width === 0 || je < 0.5 && dt < 0.5 && Ve < 0.01) return !1;
|
|
47528
|
-
var Ge = tK(z[ge].transform), ce = { matrix: Ge }, ie = { matrix: [] },
|
|
47529
|
-
de.translate && (
|
|
47517
|
+
var Ge = tK(z[ge].transform), ce = { matrix: Ge }, ie = { matrix: [] }, Se = [Ge];
|
|
47518
|
+
de.translate && (Se.push(aK(Me.left - ke.left)), Se.push(oK(Me.top - ke.top))), de.scale && (Se.push(nK(Math.max(Me.width, 1) / Math.max(ke.width, 1))), Se.push(rK(Math.max(Me.height, 1) / Math.max(ke.height, 1)))), de.opacity && (ie.opacity = He, ce.opacity = Ye);
|
|
47530
47519
|
var ye = [];
|
|
47531
47520
|
if (!H[ge] || !H[ge].shouldInvert || H[ge].shouldInvert(re.previous, re.current)) {
|
|
47532
47521
|
var Ne = function(Ke, tt) {
|
|
47533
47522
|
return Mi(Ke.querySelectorAll("[" + Vh + '="' + tt + '"]'));
|
|
47534
|
-
}(
|
|
47523
|
+
}(we, ge);
|
|
47535
47524
|
ye = Ne.map(function(Ke) {
|
|
47536
47525
|
return [Ke, vx(Ke)];
|
|
47537
47526
|
});
|
|
47538
47527
|
}
|
|
47539
|
-
ie.matrix = mx(
|
|
47528
|
+
ie.matrix = mx(Se.reduce(eK)), ce.matrix = mx(ce.matrix);
|
|
47540
47529
|
var Re, ft = function(Ke) {
|
|
47541
47530
|
var tt = Ke.element, lt = Ke.invertedChildren, oe = Ke.body;
|
|
47542
47531
|
return function(Fe) {
|
|
@@ -47557,20 +47546,20 @@ var lN = function(e, t) {
|
|
|
47557
47546
|
}({ invertedChildren: lt, matrix: Be, body: oe });
|
|
47558
47547
|
}
|
|
47559
47548
|
};
|
|
47560
|
-
}({ element:
|
|
47549
|
+
}({ element: we, invertedChildren: ye, body: be });
|
|
47561
47550
|
if (H[ge] && H[ge].onComplete) {
|
|
47562
47551
|
var mt = H[ge].onComplete;
|
|
47563
47552
|
Re = function() {
|
|
47564
|
-
return mt(
|
|
47553
|
+
return mt(we, re);
|
|
47565
47554
|
};
|
|
47566
47555
|
}
|
|
47567
47556
|
var Qe = mu(ie.opacity) && mu(ce.opacity) && ie.opacity !== ce.opacity, et = !1;
|
|
47568
47557
|
return co({}, We, { stagger: Ce, springConfig: ve, getOnUpdateFunc: function(Ke) {
|
|
47569
47558
|
var tt = Ke.spring, lt = Ke.onAnimationEnd;
|
|
47570
47559
|
return V[ge] = { destroy: tt.destroy.bind(tt), onAnimationEnd: lt }, function(oe) {
|
|
47571
|
-
H[ge] && H[ge].onSpringUpdate && H[ge].onSpringUpdate(oe.getCurrentValue()), et || (et = !0, H[ge] && H[ge].onStart && H[ge].onStart(
|
|
47560
|
+
H[ge] && H[ge].onSpringUpdate && H[ge].onSpringUpdate(oe.getCurrentValue()), et || (et = !0, H[ge] && H[ge].onStart && H[ge].onStart(we, re));
|
|
47572
47561
|
var Fe = oe.getCurrentValue();
|
|
47573
|
-
if (be.contains(
|
|
47562
|
+
if (be.contains(we)) {
|
|
47574
47563
|
var Be = { matrix: [] };
|
|
47575
47564
|
Be.matrix = ie.matrix.map(function(nt, it) {
|
|
47576
47565
|
return xv(nt, ce.matrix[it], Fe);
|
|
@@ -47578,14 +47567,14 @@ var lN = function(e, t) {
|
|
|
47578
47567
|
} else oe.destroy();
|
|
47579
47568
|
};
|
|
47580
47569
|
}, initializeFlip: function() {
|
|
47581
|
-
ft({ matrix: ie.matrix, opacity: Qe ? ie.opacity : void 0, forceMinVals: Ae }), H[ge] && H[ge].onStartImmediate && H[ge].onStartImmediate(
|
|
47570
|
+
ft({ matrix: ie.matrix, opacity: Qe ? ie.opacity : void 0, forceMinVals: Ae }), H[ge] && H[ge].onStartImmediate && H[ge].onStartImmediate(we, re), de.transformOrigin ? we.style.transformOrigin = de.transformOrigin : W && (we.style.transformOrigin = "0 0"), ye.forEach(function(Ke) {
|
|
47582
47571
|
var tt = Ke[0], lt = Ke[1];
|
|
47583
47572
|
lt.transformOrigin ? tt.style.transformOrigin = lt.transformOrigin : W && (tt.style.transformOrigin = "0 0");
|
|
47584
47573
|
});
|
|
47585
47574
|
}, onAnimationEnd: function(Ke) {
|
|
47586
|
-
delete V[ge], tN(Re) && Re(),
|
|
47575
|
+
delete V[ge], tN(Re) && Re(), we.style.transform = "", ye.forEach(function(tt) {
|
|
47587
47576
|
tt[0].style.transform = "";
|
|
47588
|
-
}), Ae &&
|
|
47577
|
+
}), Ae && we && (we.style.minHeight = "", we.style.minWidth = ""), Ke || (ne.push(ge), ne.length >= xe.length && j(ne));
|
|
47589
47578
|
}, delayUntil: de.delayUntil });
|
|
47590
47579
|
}).filter(Boolean);
|
|
47591
47580
|
if (xe.forEach(function(ge) {
|
|
@@ -49007,7 +48996,7 @@ var eU = (e, t, n) => {
|
|
|
49007
48996
|
} = n;
|
|
49008
48997
|
if (ke.length === 0)
|
|
49009
48998
|
throw new Error('Cannot apply a "split_node" operation at path ['.concat(ke, "] because the root node cannot be split."));
|
|
49010
|
-
var Ae = gt.get(e, ke),
|
|
48999
|
+
var Ae = gt.get(e, ke), we = gt.parent(e, ke), ze = ke[ke.length - 1], he;
|
|
49011
49000
|
if (Dt.isText(Ae)) {
|
|
49012
49001
|
var le = Ae.text.slice(0, He), de = Ae.text.slice(He);
|
|
49013
49002
|
Ae.text = le, he = Rs(Rs({}, Ye), {}, {
|
|
@@ -49019,7 +49008,7 @@ var eU = (e, t, n) => {
|
|
|
49019
49008
|
children: Ce
|
|
49020
49009
|
});
|
|
49021
49010
|
}
|
|
49022
|
-
if (
|
|
49011
|
+
if (we.children.splice(ze + 1, 0, he), t)
|
|
49023
49012
|
for (var [We, je] of Le.points(t))
|
|
49024
49013
|
t[je] = Zt.transform(We, n);
|
|
49025
49014
|
break;
|
|
@@ -54825,9 +54814,9 @@ var eZ = (e) => /* @__PURE__ */ ae.createElement(ae.Fragment, null, QN(e)), tZ =
|
|
|
54825
54814
|
if (fe)
|
|
54826
54815
|
return;
|
|
54827
54816
|
if (be || T.preventDefault(), X && Le.isExpanded(X) && te.startsWith("delete")) {
|
|
54828
|
-
var
|
|
54817
|
+
var we = te.endsWith("Backward") ? "backward" : "forward";
|
|
54829
54818
|
Y.deleteFragment(d, {
|
|
54830
|
-
direction:
|
|
54819
|
+
direction: we
|
|
54831
54820
|
});
|
|
54832
54821
|
return;
|
|
54833
54822
|
}
|
|
@@ -59442,10 +59431,10 @@ function qQ(e = O2) {
|
|
|
59442
59431
|
}), [E, $] = yt([]);
|
|
59443
59432
|
function D(ce, ie) {
|
|
59444
59433
|
if (!ie) return ce;
|
|
59445
|
-
const
|
|
59434
|
+
const Se = Array.isArray(ce) ? [...ce] : { ...ce };
|
|
59446
59435
|
for (const ye in ie)
|
|
59447
|
-
ie[ye] !== void 0 && ie[ye] !== null && Object.prototype.hasOwnProperty.call(ie, ye) && (typeof ce[ye] == "object" && ce[ye] !== null && !Array.isArray(ce[ye]) && typeof ie[ye] == "object" && ie[ye] !== null && !Array.isArray(ie[ye]) ?
|
|
59448
|
-
return
|
|
59436
|
+
ie[ye] !== void 0 && ie[ye] !== null && Object.prototype.hasOwnProperty.call(ie, ye) && (typeof ce[ye] == "object" && ce[ye] !== null && !Array.isArray(ce[ye]) && typeof ie[ye] == "object" && ie[ye] !== null && !Array.isArray(ie[ye]) ? Se[ye] = D(ce[ye], ie[ye]) : Se[ye] = ie[ye]);
|
|
59437
|
+
return Se;
|
|
59449
59438
|
}
|
|
59450
59439
|
const [O, N] = yt(() => D(tw, i.senderConfig));
|
|
59451
59440
|
xt(() => {
|
|
@@ -59455,32 +59444,32 @@ function qQ(e = O2) {
|
|
|
59455
59444
|
xt(() => {
|
|
59456
59445
|
if (!f) return;
|
|
59457
59446
|
const ce = c.find((ye) => ye.id === f);
|
|
59458
|
-
let ie = [],
|
|
59447
|
+
let ie = [], Se = !1;
|
|
59459
59448
|
if (ce && ce.messages) {
|
|
59460
59449
|
const ye = [...ce.messages || []].reverse().find((Ne) => Ne.istype === "ai");
|
|
59461
59450
|
if (ye != null && ye.reference && ye.resultType === 5) {
|
|
59462
|
-
|
|
59451
|
+
Se = !0;
|
|
59463
59452
|
try {
|
|
59464
59453
|
ie = JSON.parse(ye.reference).map((Re) => xe(Re));
|
|
59465
59454
|
} catch {
|
|
59466
59455
|
}
|
|
59467
59456
|
}
|
|
59468
59457
|
}
|
|
59469
|
-
|
|
59458
|
+
Se && A({ uploadedFiles: ie });
|
|
59470
59459
|
}, [c]), xt(() => {
|
|
59471
59460
|
A({ uploadedFiles: [] });
|
|
59472
59461
|
}, [f]);
|
|
59473
59462
|
const [B, R] = ae.useState(() => {
|
|
59474
59463
|
var ie;
|
|
59475
59464
|
if (!v || v.length === 0) return;
|
|
59476
|
-
const ce = v.find((
|
|
59465
|
+
const ce = v.find((Se) => Se.isDefault);
|
|
59477
59466
|
return ce ? ce.id : (ie = v[0]) == null ? void 0 : ie.id;
|
|
59478
59467
|
});
|
|
59479
59468
|
ae.useEffect(() => {
|
|
59480
59469
|
if (!v || v.length === 0) return;
|
|
59481
59470
|
const ce = v.some((ie) => ie.id === B);
|
|
59482
59471
|
if (!B || !ce) {
|
|
59483
|
-
const ie = v.find((
|
|
59472
|
+
const ie = v.find((Se) => Se.isDefault);
|
|
59484
59473
|
R(ie ? ie.id : v[0].id);
|
|
59485
59474
|
}
|
|
59486
59475
|
}, [v]);
|
|
@@ -59499,7 +59488,7 @@ function qQ(e = O2) {
|
|
|
59499
59488
|
ce[ie.id] = ie;
|
|
59500
59489
|
}), ce;
|
|
59501
59490
|
}, [v]), te = Mt(() => {
|
|
59502
|
-
const ce = c.find((
|
|
59491
|
+
const ce = c.find((Se) => Se.id === f) || {
|
|
59503
59492
|
id: f,
|
|
59504
59493
|
messages: []
|
|
59505
59494
|
}, ie = ce.configId ? X[ce.configId] : null;
|
|
@@ -59528,8 +59517,8 @@ function qQ(e = O2) {
|
|
|
59528
59517
|
return !1;
|
|
59529
59518
|
}, [te.configId, X, b]);
|
|
59530
59519
|
function be(ce, ie) {
|
|
59531
|
-
const
|
|
59532
|
-
return ce.forEach((ye) =>
|
|
59520
|
+
const Se = /* @__PURE__ */ new Map();
|
|
59521
|
+
return ce.forEach((ye) => Se.set(ye.uid, xe(ye))), ie.forEach((ye) => Se.set(ye.uid, xe(ye))), Array.from(Se.values());
|
|
59533
59522
|
}
|
|
59534
59523
|
function xe(ce) {
|
|
59535
59524
|
if (!ce || ce.file && ce.file.name) return ce;
|
|
@@ -59549,8 +59538,8 @@ function qQ(e = O2) {
|
|
|
59549
59538
|
}
|
|
59550
59539
|
xt(() => {
|
|
59551
59540
|
if (_.current && _.current !== f) {
|
|
59552
|
-
const ie = _.current,
|
|
59553
|
-
|
|
59541
|
+
const ie = _.current, Se = s.find((Re) => Re.sessionId === ie && Re.isNew), ye = c.find((Re) => Re.id === ie && Re.isNew), Ne = ye && ye.messages && ye.messages.length > 0;
|
|
59542
|
+
Se && !Ne && (l((Re) => Re.filter((ft) => ft.sessionId !== ie)), u((Re) => Re.filter((ft) => ft.id !== ie)));
|
|
59554
59543
|
}
|
|
59555
59544
|
_.current = f;
|
|
59556
59545
|
const ce = te.messages && te.messages.length > 0 ? te.messages[te.messages.length - 1].recommendQuestion : [];
|
|
@@ -59564,8 +59553,8 @@ function qQ(e = O2) {
|
|
|
59564
59553
|
headers: { Authorization: n }
|
|
59565
59554
|
})
|
|
59566
59555
|
]).then(([ce, ie]) => {
|
|
59567
|
-
const
|
|
59568
|
-
l(
|
|
59556
|
+
const Se = ce.data.data.records || [];
|
|
59557
|
+
l(Se), f || He(), d(ie.data.data || []), S((ye) => ({ ...ye, app: "ready" }));
|
|
59569
59558
|
}).catch((ce) => {
|
|
59570
59559
|
S((ie) => ({ ...ie, app: "error" }));
|
|
59571
59560
|
});
|
|
@@ -59578,15 +59567,15 @@ function qQ(e = O2) {
|
|
|
59578
59567
|
S((Be) => ({ ...Be, display: "ready" }));
|
|
59579
59568
|
return;
|
|
59580
59569
|
}
|
|
59581
|
-
const ie = ((Fe = ce.data.data) == null ? void 0 : Fe.queryReplyPairList) || [],
|
|
59582
|
-
if (mt &&
|
|
59583
|
-
const Be = [...
|
|
59584
|
-
Be !== -1 && (
|
|
59570
|
+
const ie = ((Fe = ce.data.data) == null ? void 0 : Fe.queryReplyPairList) || [], Se = ZV(ie), { sessionId: ye, searchConfigDTO: Ne, filePath: Re, configId: ft, reference: mt, uploadedFiles: Qe, fileList: et, currentFiles: Ke } = ce.data.data;
|
|
59571
|
+
if (mt && Se.length > 0) {
|
|
59572
|
+
const Be = [...Se].reverse().findIndex((nt) => nt.istype === "ai");
|
|
59573
|
+
Be !== -1 && (Se[Se.length - 1 - Be].reference = mt);
|
|
59585
59574
|
}
|
|
59586
59575
|
const tt = Ke || et || Qe;
|
|
59587
|
-
if (tt &&
|
|
59588
|
-
const Be = [...
|
|
59589
|
-
Be !== -1 && (console.log(
|
|
59576
|
+
if (tt && Se.length > 0) {
|
|
59577
|
+
const Be = [...Se].reverse().findIndex((nt) => nt.istype === "user");
|
|
59578
|
+
Be !== -1 && (console.log(Se[Se.length - 1 - Be].currentFiles, "filesData"), Se[Se.length - 1 - Be].currentFiles = tt);
|
|
59590
59579
|
}
|
|
59591
59580
|
s.find((Be) => Be.sessionId === ye) && l(
|
|
59592
59581
|
(Be) => Be.map(
|
|
@@ -59604,7 +59593,7 @@ function qQ(e = O2) {
|
|
|
59604
59593
|
u((Be) => {
|
|
59605
59594
|
const nt = Be.filter((st) => st.id !== f);
|
|
59606
59595
|
return [
|
|
59607
|
-
{ id: f, messages:
|
|
59596
|
+
{ id: f, messages: Se, ...oe },
|
|
59608
59597
|
...nt
|
|
59609
59598
|
];
|
|
59610
59599
|
}), S((Be) => ({ ...Be, display: "ready" }));
|
|
@@ -59614,10 +59603,10 @@ function qQ(e = O2) {
|
|
|
59614
59603
|
}, [f, r, n]), xt(() => {
|
|
59615
59604
|
const ce = F.uploadedFiles.length;
|
|
59616
59605
|
N((ie) => {
|
|
59617
|
-
const
|
|
59606
|
+
const Se = Array.isArray(ie.actions) ? ie.actions : [];
|
|
59618
59607
|
return {
|
|
59619
59608
|
...ie,
|
|
59620
|
-
actions:
|
|
59609
|
+
actions: Se.map(
|
|
59621
59610
|
(Ne) => Ne.name === "history" ? { ...Ne, badgeCount: ce } : Ne
|
|
59622
59611
|
)
|
|
59623
59612
|
};
|
|
@@ -59630,10 +59619,10 @@ function qQ(e = O2) {
|
|
|
59630
59619
|
I.length && u((ce) => {
|
|
59631
59620
|
if (!ce[0]) return ce;
|
|
59632
59621
|
const { messages: ie } = ce[0];
|
|
59633
|
-
for (let
|
|
59634
|
-
if (ie[
|
|
59635
|
-
const ye = ie[
|
|
59636
|
-
ie[
|
|
59622
|
+
for (let Se = ie.length - 1; Se >= 0; Se--)
|
|
59623
|
+
if (ie[Se].istype === "user") {
|
|
59624
|
+
const ye = ie[Se].currentFiles || [];
|
|
59625
|
+
ie[Se].currentFiles = I.map((Ne) => {
|
|
59637
59626
|
var ft, mt, Qe;
|
|
59638
59627
|
const Re = ye.find((et) => et.uid === Ne.uid);
|
|
59639
59628
|
return {
|
|
@@ -59652,7 +59641,7 @@ function qQ(e = O2) {
|
|
|
59652
59641
|
});
|
|
59653
59642
|
}, [I]);
|
|
59654
59643
|
let Pe = null, $e = null;
|
|
59655
|
-
const Ie = (ce, ie,
|
|
59644
|
+
const Ie = (ce, ie, Se, ye) => {
|
|
59656
59645
|
const Ne = ce.join(",");
|
|
59657
59646
|
let Re = 0;
|
|
59658
59647
|
$e = () => {
|
|
@@ -59675,7 +59664,7 @@ function qQ(e = O2) {
|
|
|
59675
59664
|
if (G.current) return;
|
|
59676
59665
|
if (mt.data.success) {
|
|
59677
59666
|
const Qe = mt.data.data;
|
|
59678
|
-
G.current || ie(Qe), Qe.every((Ke) => Ke.status === 3) ? G.current ||
|
|
59667
|
+
G.current || ie(Qe), Qe.every((Ke) => Ke.status === 3) ? G.current || Se() : G.current || setTimeout(ft, $I);
|
|
59679
59668
|
} else
|
|
59680
59669
|
G.current || ye(mt.data.errorMsg || "\u67E5\u8BE2\u6587\u4EF6\u72B6\u6001\u5931\u8D25");
|
|
59681
59670
|
} catch {
|
|
@@ -59686,8 +59675,8 @@ function qQ(e = O2) {
|
|
|
59686
59675
|
};
|
|
59687
59676
|
ft();
|
|
59688
59677
|
}, De = (ce, ie) => {
|
|
59689
|
-
u((
|
|
59690
|
-
const ye = [...
|
|
59678
|
+
u((Se) => {
|
|
59679
|
+
const ye = [...Se];
|
|
59691
59680
|
return ye[0] && (ye[0] = {
|
|
59692
59681
|
...ye[0],
|
|
59693
59682
|
messages: ye[0].messages.map((Ne) => Ne.queryId === ce ? {
|
|
@@ -59700,16 +59689,16 @@ function qQ(e = O2) {
|
|
|
59700
59689
|
var ie;
|
|
59701
59690
|
if (ce)
|
|
59702
59691
|
try {
|
|
59703
|
-
const
|
|
59692
|
+
const Se = await en.get(`${r}/qa/ai/recommendQuestion?queryId=${ce}`, {
|
|
59704
59693
|
headers: { Authorization: n }
|
|
59705
59694
|
});
|
|
59706
|
-
p(((ie =
|
|
59695
|
+
p(((ie = Se.data) == null ? void 0 : ie.data) || []);
|
|
59707
59696
|
} catch {
|
|
59708
59697
|
p([]);
|
|
59709
59698
|
}
|
|
59710
59699
|
};
|
|
59711
59700
|
function Oe(ce) {
|
|
59712
|
-
const { content: ie, audioUrl:
|
|
59701
|
+
const { content: ie, audioUrl: Se, filePaths: ye, queryId: Ne } = ce;
|
|
59713
59702
|
if (!ie) return;
|
|
59714
59703
|
const Re = (typeof ye == "string" && ye ? JSON.parse(ye) : ye || []).map((mt) => mt.uid), ft = Date.now();
|
|
59715
59704
|
re({ now: ft }), f && (S((mt) => ({
|
|
@@ -59727,8 +59716,8 @@ function qQ(e = O2) {
|
|
|
59727
59716
|
name: te.label || "",
|
|
59728
59717
|
queryId: Ne,
|
|
59729
59718
|
sessionId: String(f || ""),
|
|
59730
|
-
type:
|
|
59731
|
-
audioUrl:
|
|
59719
|
+
type: Se ? "audioUrl" : "text",
|
|
59720
|
+
audioUrl: Se
|
|
59732
59721
|
},
|
|
59733
59722
|
(mt) => {
|
|
59734
59723
|
Ee(Ne);
|
|
@@ -59737,16 +59726,16 @@ function qQ(e = O2) {
|
|
|
59737
59726
|
}
|
|
59738
59727
|
async function ge(ce, ie) {
|
|
59739
59728
|
if (!f) return;
|
|
59740
|
-
const
|
|
59741
|
-
if (
|
|
59729
|
+
const Se = s.find((ye) => ye.sessionId === f);
|
|
59730
|
+
if (Se && Se.isNew) {
|
|
59742
59731
|
let ye = !1;
|
|
59743
|
-
const Ne = b ||
|
|
59732
|
+
const Ne = b || Se.configId, Re = ce && ce.content ? ce.content.slice(0, 20) : Se.label || "\u672A\u547D\u540D\u4F1A\u8BDD";
|
|
59744
59733
|
if (await new Promise((ft, mt) => {
|
|
59745
59734
|
jq(
|
|
59746
59735
|
{ url: r, token: n },
|
|
59747
|
-
{ label: Re, sessionId:
|
|
59736
|
+
{ label: Re, sessionId: Se.sessionId, sysType: "INT_SESSION", configId: Ne },
|
|
59748
59737
|
(Qe) => {
|
|
59749
|
-
Qe && Qe.data && Qe.data.sessionId ? (l((et) => et.map((Ke) => Ke.sessionId ===
|
|
59738
|
+
Qe && Qe.data && Qe.data.sessionId ? (l((et) => et.map((Ke) => Ke.sessionId === Se.sessionId ? { ...Ke, isNew: !1, configId: Ne, label: Re } : Ke)), u((et) => et.map((Ke) => Ke.id === Se.sessionId ? { ...Ke, isNew: !1, configId: Ne, label: Re } : Ke)), ye = !0, ft()) : (zn.error("\u521B\u5EFA\u4F1A\u8BDD\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"), mt());
|
|
59750
59739
|
}
|
|
59751
59740
|
);
|
|
59752
59741
|
}), !ye) return;
|
|
@@ -59755,7 +59744,7 @@ function qQ(e = O2) {
|
|
|
59755
59744
|
}
|
|
59756
59745
|
Me(f, ce, ie);
|
|
59757
59746
|
}
|
|
59758
|
-
function Me(ce, ie,
|
|
59747
|
+
function Me(ce, ie, Se, ye) {
|
|
59759
59748
|
const Ne = "query-" + hr(32), Re = s.find((Ke) => Ke.sessionId === ce), ft = ye || (Re == null ? void 0 : Re.configId) || te.configId;
|
|
59760
59749
|
console.log("\u52A9\u624B\u914D\u7F6E\u8BE6\u60C5", ft);
|
|
59761
59750
|
const mt = ie && ie.content ? ie.content.slice(0, 20) : "\u672A\u547D\u540D\u4F1A\u8BDD";
|
|
@@ -59838,7 +59827,7 @@ function qQ(e = O2) {
|
|
|
59838
59827
|
},
|
|
59839
59828
|
// onComplete: 全部解析成功后才发起AI请求
|
|
59840
59829
|
() => {
|
|
59841
|
-
|
|
59830
|
+
Se == null || Se(), S((st) => ({ ...st, sender: "processing", display: "processing" })), P((st) => st.map((at) => {
|
|
59842
59831
|
const rt = Be.find((Vt) => Vt.uid === at.uid);
|
|
59843
59832
|
return rt ? {
|
|
59844
59833
|
...at,
|
|
@@ -59903,7 +59892,7 @@ function qQ(e = O2) {
|
|
|
59903
59892
|
const et = Date.now();
|
|
59904
59893
|
l(
|
|
59905
59894
|
(Ke) => Ke.map((tt) => tt.sessionId === ce ? { ...tt, gmtModified: et } : tt)
|
|
59906
|
-
),
|
|
59895
|
+
), Se == null || Se(), J(
|
|
59907
59896
|
{
|
|
59908
59897
|
configId: ft,
|
|
59909
59898
|
content: ie.content || ie.text || "",
|
|
@@ -59930,7 +59919,7 @@ function qQ(e = O2) {
|
|
|
59930
59919
|
});
|
|
59931
59920
|
}
|
|
59932
59921
|
function He(ce) {
|
|
59933
|
-
const ie = hr(32),
|
|
59922
|
+
const ie = hr(32), Se = {
|
|
59934
59923
|
sessionId: ie,
|
|
59935
59924
|
label: "\u672A\u547D\u540D\u4F1A\u8BDD",
|
|
59936
59925
|
gmtModified: Date.now(),
|
|
@@ -59940,40 +59929,40 @@ function qQ(e = O2) {
|
|
|
59940
59929
|
isNew: !0
|
|
59941
59930
|
// 标记为新会话
|
|
59942
59931
|
};
|
|
59943
|
-
l((ye) => [{ ...
|
|
59932
|
+
l((ye) => [{ ...Se, messages: [] }, ...ye]), u((ye) => [{ id: ie, messages: [], ...Se }, ...ye]), g(ie);
|
|
59944
59933
|
}
|
|
59945
59934
|
const Ye = (ce) => {
|
|
59946
59935
|
var Ne;
|
|
59947
59936
|
const ie = /* @__PURE__ */ new Set([
|
|
59948
59937
|
...F.uploadedFiles.map((Re) => Re.file.name),
|
|
59949
59938
|
...E.map((Re) => Re.file.name)
|
|
59950
|
-
]),
|
|
59939
|
+
]), Se = [], ye = /* @__PURE__ */ new Set();
|
|
59951
59940
|
Array.from(ce).forEach((Re) => {
|
|
59952
|
-
ie.has(Re.name) ? ye.add(Re.name) : (
|
|
59941
|
+
ie.has(Re.name) ? ye.add(Re.name) : (Se.push({
|
|
59953
59942
|
file: Re,
|
|
59954
59943
|
type: Js(Re.name),
|
|
59955
59944
|
status: "pending",
|
|
59956
59945
|
preview: Re.type.startsWith("image") ? URL.createObjectURL(Re) : void 0
|
|
59957
59946
|
}), ie.add(Re.name));
|
|
59958
|
-
}), ye.size > 0 && zn.warning(`\u4E0D\u80FD\u4E0A\u4F20\u540C\u540D\u6587\u4EF6: ${Array.from(ye).join(", ")}`),
|
|
59959
|
-
}, Ae = (ce, ie,
|
|
59947
|
+
}), ye.size > 0 && zn.warning(`\u4E0D\u80FD\u4E0A\u4F20\u540C\u540D\u6587\u4EF6: ${Array.from(ye).join(", ")}`), Se.length > 0 && ($((Re) => [...Re, ...Se]), (Ne = H.current) == null || Ne.call(H, Se));
|
|
59948
|
+
}, Ae = (ce, ie, Se) => {
|
|
59960
59949
|
var ye;
|
|
59961
|
-
(ye = V.current) == null || ye.call(V, ce, ie,
|
|
59950
|
+
(ye = V.current) == null || ye.call(V, ce, ie, Se);
|
|
59962
59951
|
};
|
|
59963
|
-
function
|
|
59952
|
+
function we(ce) {
|
|
59964
59953
|
if (ce != null && ce.sessionId && ce.sessionId !== f) {
|
|
59965
|
-
g(ce.sessionId), S((
|
|
59966
|
-
const ie = c.find((
|
|
59954
|
+
g(ce.sessionId), S((Se) => ({ ...Se, sender: "ready" }));
|
|
59955
|
+
const ie = c.find((Se) => Se.id === ce.sessionId);
|
|
59967
59956
|
if (ie && ie.messages && ie.messages.length > 0) {
|
|
59968
|
-
const
|
|
59969
|
-
|
|
59957
|
+
const Se = [...ie.messages].reverse().find((ye) => ye.istype === "ai");
|
|
59958
|
+
Se && Se.recommendQuestion ? p(Se.recommendQuestion) : p([]);
|
|
59970
59959
|
} else
|
|
59971
59960
|
p([]);
|
|
59972
59961
|
}
|
|
59973
59962
|
}
|
|
59974
|
-
const ze = async (ce) => new Promise((ie,
|
|
59963
|
+
const ze = async (ce) => new Promise((ie, Se) => {
|
|
59975
59964
|
kq({ url: r, token: n }, { sessionId: ce }, (ye) => {
|
|
59976
|
-
ye ? (zn.success("\u5220\u9664\u6210\u529F!"), ie(ye)) : (zn.error("\u5220\u9664\u5931\u8D25!"),
|
|
59965
|
+
ye ? (zn.success("\u5220\u9664\u6210\u529F!"), ie(ye)) : (zn.error("\u5220\u9664\u5931\u8D25!"), Se(ye));
|
|
59977
59966
|
});
|
|
59978
59967
|
}), he = async () => {
|
|
59979
59968
|
try {
|
|
@@ -59987,7 +59976,7 @@ function qQ(e = O2) {
|
|
|
59987
59976
|
} catch (ce) {
|
|
59988
59977
|
throw zn.error("\u5237\u65B0\u4F1A\u8BDD\u5217\u8868\u5931\u8D25"), ce;
|
|
59989
59978
|
}
|
|
59990
|
-
}, le = async (ce, ie) => new Promise((
|
|
59979
|
+
}, le = async (ce, ie) => new Promise((Se, ye) => {
|
|
59991
59980
|
Tq({ url: r, token: n }, { label: ie, sessionId: ce }, (Ne) => {
|
|
59992
59981
|
if (Ne) {
|
|
59993
59982
|
const Re = Date.now();
|
|
@@ -59995,20 +59984,20 @@ function qQ(e = O2) {
|
|
|
59995
59984
|
(ft) => ft.map(
|
|
59996
59985
|
(mt) => mt.sessionId === ce ? { ...mt, label: ie, gmtModified: Re } : mt
|
|
59997
59986
|
)
|
|
59998
|
-
), zn.success("\u91CD\u547D\u540D\u6210\u529F!"),
|
|
59987
|
+
), zn.success("\u91CD\u547D\u540D\u6210\u529F!"), Se(Ne);
|
|
59999
59988
|
} else
|
|
60000
59989
|
zn.error("\u91CD\u547D\u540D\u5931\u8D25"), ye(Ne);
|
|
60001
59990
|
});
|
|
60002
59991
|
}), de = (ce) => {
|
|
60003
59992
|
l((ie) => {
|
|
60004
|
-
const
|
|
60005
|
-
return f === ce && (
|
|
59993
|
+
const Se = ie.filter((ye) => ye.sessionId !== ce);
|
|
59994
|
+
return f === ce && (Se.length > 0 ? g(Se[0].sessionId) : He()), Se;
|
|
60006
59995
|
});
|
|
60007
59996
|
}, ve = (ce, ie) => {
|
|
60008
|
-
const
|
|
59997
|
+
const Se = Date.now();
|
|
60009
59998
|
l(
|
|
60010
59999
|
(ye) => ye.map(
|
|
60011
|
-
(Ne) => Ne.sessionId === ce ? { ...Ne, label: ie, gmtModified:
|
|
60000
|
+
(Ne) => Ne.sessionId === ce ? { ...Ne, label: ie, gmtModified: Se } : Ne
|
|
60012
60001
|
)
|
|
60013
60002
|
);
|
|
60014
60003
|
}, Ce = (ce) => {
|
|
@@ -60016,11 +60005,11 @@ function qQ(e = O2) {
|
|
|
60016
60005
|
De(L.queryId, 0);
|
|
60017
60006
|
});
|
|
60018
60007
|
}, We = (ce, ie) => {
|
|
60019
|
-
var
|
|
60008
|
+
var Se, ye;
|
|
60020
60009
|
switch (console.log(`[Event] ${ce}`, ie), ce) {
|
|
60021
60010
|
// --- 对话列表事件 ---
|
|
60022
60011
|
case "conversation:item_click":
|
|
60023
|
-
|
|
60012
|
+
we(ie);
|
|
60024
60013
|
break;
|
|
60025
60014
|
case "files:finished_animation_complete":
|
|
60026
60015
|
P([]);
|
|
@@ -60060,7 +60049,7 @@ function qQ(e = O2) {
|
|
|
60060
60049
|
G.current = !0, Pe && (Pe.abort(), Pe = null), $e && ($e(), $e = null), S((Ne) => ({ ...Ne, display: "ready", sender: "ready" })), P([]), Z == null || Z();
|
|
60061
60050
|
break;
|
|
60062
60051
|
case "sender:clear":
|
|
60063
|
-
(
|
|
60052
|
+
(Se = ie.clearFn) == null || Se.call(ie);
|
|
60064
60053
|
break;
|
|
60065
60054
|
case "sender:configChange":
|
|
60066
60055
|
ie && ie.all && j(ie.all);
|
|
@@ -60156,7 +60145,7 @@ function qQ(e = O2) {
|
|
|
60156
60145
|
{
|
|
60157
60146
|
eventsEmit: We,
|
|
60158
60147
|
assistantList: v,
|
|
60159
|
-
styles: a,
|
|
60148
|
+
styles: a || {},
|
|
60160
60149
|
selectedId: B,
|
|
60161
60150
|
onSelectAssistant: R
|
|
60162
60151
|
}
|
|
@@ -60173,7 +60162,7 @@ function qQ(e = O2) {
|
|
|
60173
60162
|
eventsEmit: We,
|
|
60174
60163
|
defaultAnswer: ((Re = te == null ? void 0 : te.searchConfigDTO) == null ? void 0 : Re.defaultAnswer) || "\u4E0D\u77E5\u9053\u4EC0\u4E48\u539F\u56E0\u6211\u4EEC\u6CA1\u80FD\u67E5\u5230\u4F60\u8981\u7684\u95EE\u9898*-*",
|
|
60175
60164
|
is_download: ne,
|
|
60176
|
-
styles: a
|
|
60165
|
+
styles: a || {}
|
|
60177
60166
|
}
|
|
60178
60167
|
);
|
|
60179
60168
|
},
|
|
@@ -60189,14 +60178,14 @@ function qQ(e = O2) {
|
|
|
60189
60178
|
),
|
|
60190
60179
|
AppLoading: () => /* @__PURE__ */ k.jsx(CI, {}),
|
|
60191
60180
|
UserChatBox: (ce, ie) => {
|
|
60192
|
-
var
|
|
60181
|
+
var Se;
|
|
60193
60182
|
return /* @__PURE__ */ k.jsx(
|
|
60194
60183
|
vI,
|
|
60195
60184
|
{
|
|
60196
60185
|
...ce,
|
|
60197
60186
|
eventsEmit: We,
|
|
60198
|
-
isLast: ie === (((
|
|
60199
|
-
styles: a
|
|
60187
|
+
isLast: ie === (((Se = te == null ? void 0 : te.messages) == null ? void 0 : Se.length) || 0) - 2,
|
|
60188
|
+
styles: a || {}
|
|
60200
60189
|
}
|
|
60201
60190
|
);
|
|
60202
60191
|
},
|
|
@@ -60207,7 +60196,7 @@ function qQ(e = O2) {
|
|
|
60207
60196
|
return xt(() => {
|
|
60208
60197
|
N((ce) => {
|
|
60209
60198
|
const ie = Array.isArray(ce.switchs) ? ce.switchs.map(
|
|
60210
|
-
(
|
|
60199
|
+
(Se) => Se.name === "reasoning" ? { ...Se, enabled: fe } : Se
|
|
60211
60200
|
) : [];
|
|
60212
60201
|
return {
|
|
60213
60202
|
...ce,
|
|
@@ -60224,7 +60213,7 @@ function qQ(e = O2) {
|
|
|
60224
60213
|
currentFiles: E,
|
|
60225
60214
|
onUpload: Ye,
|
|
60226
60215
|
onRemoveFile: Ae,
|
|
60227
|
-
styles: a,
|
|
60216
|
+
styles: a || {},
|
|
60228
60217
|
eventsEmit: We
|
|
60229
60218
|
}
|
|
60230
60219
|
),
|
|
@@ -60237,7 +60226,7 @@ function qQ(e = O2) {
|
|
|
60237
60226
|
sidebar: je,
|
|
60238
60227
|
recommandQuestions: h,
|
|
60239
60228
|
eventsEmit: We,
|
|
60240
|
-
styles: a,
|
|
60229
|
+
styles: a || {},
|
|
60241
60230
|
senderConfig: O,
|
|
60242
60231
|
fileUploadStatus: I,
|
|
60243
60232
|
CustomComponents: Ge,
|
|
@@ -60561,9 +60550,9 @@ function KQ(e = O2) {
|
|
|
60561
60550
|
type: jV(ye.fileName || ye.fileName)
|
|
60562
60551
|
}))
|
|
60563
60552
|
}), D((ye) => ({ ...ye, sender: "processing", display: "analyzing" })), A((ye) => ye.map((Ne) => ({ ...Ne, status: "parsing" })));
|
|
60564
|
-
const
|
|
60553
|
+
const Se = ce.data.data.map((ye) => ye.uid);
|
|
60565
60554
|
Pe(
|
|
60566
|
-
|
|
60555
|
+
Se,
|
|
60567
60556
|
(ye) => {
|
|
60568
60557
|
A((Ne) => Ne.map((Re) => {
|
|
60569
60558
|
const ft = ye.find(
|
|
@@ -60591,7 +60580,7 @@ function KQ(e = O2) {
|
|
|
60591
60580
|
{
|
|
60592
60581
|
configId: l || fe.configId,
|
|
60593
60582
|
content: le.content || le.text || "",
|
|
60594
|
-
fileUids:
|
|
60583
|
+
fileUids: Se,
|
|
60595
60584
|
lastDate: ye,
|
|
60596
60585
|
name: fe.label || "",
|
|
60597
60586
|
queryId: ve,
|
|
@@ -60613,10 +60602,10 @@ function KQ(e = O2) {
|
|
|
60613
60602
|
);
|
|
60614
60603
|
} else {
|
|
60615
60604
|
const ie = ce.data.errorMsg || "\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25";
|
|
60616
|
-
D((
|
|
60605
|
+
D((Se) => ({ ...Se, display: "error", sender: "ready" })), A((Se) => Se.map((ye) => ({ ...ye, status: "error", message: ie })));
|
|
60617
60606
|
}
|
|
60618
60607
|
} catch {
|
|
60619
|
-
D((ie) => ({ ...ie, display: "error", sender: "ready" })), A((ie) => ie.map((
|
|
60608
|
+
D((ie) => ({ ...ie, display: "error", sender: "ready" })), A((ie) => ie.map((Se) => ({ ...Se, status: "error", message: "\u7F51\u7EDC\u9519\u8BEF" })));
|
|
60620
60609
|
}
|
|
60621
60610
|
return;
|
|
60622
60611
|
}
|
|
@@ -60780,14 +60769,14 @@ function KQ(e = O2) {
|
|
|
60780
60769
|
if (zn.success("\u6587\u4EF6\u5DF2\u4ECE\u4E34\u65F6\u77E5\u8BC6\u5E93\u79FB\u9664"), Ge && Array.isArray(Ge.data && Ge.data.data)) {
|
|
60781
60770
|
const ce = Ge.data.data.map((ie) => {
|
|
60782
60771
|
var ye;
|
|
60783
|
-
const
|
|
60772
|
+
const Se = ie.name || ie.fileName || "";
|
|
60784
60773
|
return {
|
|
60785
60774
|
file: {
|
|
60786
|
-
name:
|
|
60775
|
+
name: Se,
|
|
60787
60776
|
size: Number((ye = ie.size) == null ? void 0 : ye.replace("MB", "")) * 1024 * 1024 || 0,
|
|
60788
60777
|
type: ie.type
|
|
60789
60778
|
},
|
|
60790
|
-
type: Js(
|
|
60779
|
+
type: Js(Se),
|
|
60791
60780
|
status: "uploaded",
|
|
60792
60781
|
url: ie.filePath,
|
|
60793
60782
|
convertedFilePath: ie.convertedFilePath,
|
|
@@ -60811,7 +60800,7 @@ function KQ(e = O2) {
|
|
|
60811
60800
|
default:
|
|
60812
60801
|
i == null || i(le, de);
|
|
60813
60802
|
}
|
|
60814
|
-
},
|
|
60803
|
+
}, we = void 0, he = { ...{
|
|
60815
60804
|
AiChatBox: (le, de) => {
|
|
60816
60805
|
var We, je;
|
|
60817
60806
|
const Ce = de === (((We = fe == null ? void 0 : fe.messages) == null ? void 0 : We.length) || 0) - 1 ? $.display : "ready";
|
|
@@ -60882,7 +60871,7 @@ function KQ(e = O2) {
|
|
|
60882
60871
|
activeSessionId: p,
|
|
60883
60872
|
status: $,
|
|
60884
60873
|
chatData: fe,
|
|
60885
|
-
sidebar:
|
|
60874
|
+
sidebar: we,
|
|
60886
60875
|
recommandQuestions: d,
|
|
60887
60876
|
eventsEmit: Ae,
|
|
60888
60877
|
styles: o,
|