corp-chat-library-antd-react-socket 1.2.27 → 1.2.28
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/README.md +3 -0
- package/dist/CHAT/hooks/useInfiniteScrollUp.d.ts +1 -1
- package/dist/CHAT/types/types.d.ts +1 -0
- package/dist/index.js +733 -722
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as T, jsxs as me, Fragment as Wa } from "react/jsx-runtime";
|
|
2
2
|
import * as F from "react";
|
|
3
|
-
import le, { useRef as fe, cloneElement as nc, forwardRef as ao, useState as ee, useImperativeHandle as ac, useEffect as ge, version as ic, isValidElement as oc, useMemo as
|
|
3
|
+
import le, { useRef as fe, cloneElement as nc, forwardRef as ao, useState as ee, useImperativeHandle as ac, useEffect as ge, version as ic, isValidElement as oc, useMemo as $t, useContext as bt, createContext as nn, useLayoutEffect as sc, useCallback as De } from "react";
|
|
4
4
|
import { Skeleton as tt, Avatar as io, Badge as cc, Space as oo, Popover as cr, Button as rt, Layout as zt, Upload as lc, Input as uc, Divider as dc, Dropdown as so, Empty as Xr, FloatButton as fc, Modal as hc } from "antd";
|
|
5
5
|
import { SearchOutlined as mc, DragOutlined as Ua, SettingOutlined as gc, BellOutlined as pc, DownloadOutlined as vc, LockOutlined as yc, EyeInvisibleOutlined as bc, CloseOutlined as co, PaperClipOutlined as Sc, UploadOutlined as _c, SmileOutlined as Cc, SendOutlined as xc, CalendarOutlined as wc, LoadingOutlined as Ec, ArrowDownOutlined as $c, FileFilled as Tc, FileTextFilled as Oc, FileZipFilled as Fc, FileMarkdownFilled as Mc, FilePptFilled as Rc, FileExcelFilled as Pc, FileWordFilled as Nc, FilePdfFilled as Ac, FileImageFilled as Ic, MessageOutlined as kc } from "@ant-design/icons";
|
|
6
6
|
import Lc from "react-draggable";
|
|
@@ -234,7 +234,7 @@ function Jl(e, t) {
|
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
236
|
var eu = /* @__PURE__ */ le.forwardRef(function(e, t) {
|
|
237
|
-
var r, n, a, i = e.inputElement, o = e.children, s = e.prefixCls, l = e.prefix, c = e.suffix, u = e.addonBefore, f = e.addonAfter, m = e.className, v = e.style, p = e.disabled, h = e.readOnly, d = e.focused, b = e.triggerFocus, g = e.allowClear, y = e.value,
|
|
237
|
+
var r, n, a, i = e.inputElement, o = e.children, s = e.prefixCls, l = e.prefix, c = e.suffix, u = e.addonBefore, f = e.addonAfter, m = e.className, v = e.style, p = e.disabled, h = e.readOnly, d = e.focused, b = e.triggerFocus, g = e.allowClear, y = e.value, x = e.handleReset, _ = e.hidden, C = e.classes, S = e.classNames, $ = e.dataAttrs, P = e.styles, R = e.components, N = e.onClear, D = o ?? i, j = R?.affixWrapper || "span", O = R?.groupWrapper || "span", M = R?.wrapper || "span", E = R?.groupAddon || "span", A = fe(null), I = function(L) {
|
|
238
238
|
var Y;
|
|
239
239
|
(Y = A.current) !== null && Y !== void 0 && Y.contains(L.target) && b?.();
|
|
240
240
|
}, B = Zl(e), H = /* @__PURE__ */ nc(D, {
|
|
@@ -253,7 +253,7 @@ var eu = /* @__PURE__ */ le.forwardRef(function(e, t) {
|
|
|
253
253
|
type: "button",
|
|
254
254
|
tabIndex: -1,
|
|
255
255
|
onClick: function(L) {
|
|
256
|
-
|
|
256
|
+
x?.(L), N?.();
|
|
257
257
|
},
|
|
258
258
|
onMouseDown: function(L) {
|
|
259
259
|
return L.preventDefault();
|
|
@@ -261,7 +261,7 @@ var eu = /* @__PURE__ */ le.forwardRef(function(e, t) {
|
|
|
261
261
|
className: ke(z, w(w({}, "".concat(z, "-hidden"), !X), "".concat(z, "-has-suffix"), !!c))
|
|
262
262
|
}, re);
|
|
263
263
|
}
|
|
264
|
-
var
|
|
264
|
+
var ie = "".concat(s, "-affix-wrapper"), ue = ke(ie, w(w(w(w(w({}, "".concat(s, "-disabled"), p), "".concat(ie, "-disabled"), p), "".concat(ie, "-focused"), d), "".concat(ie, "-readonly"), h), "".concat(ie, "-input-with-clear-btn"), c && g && y), C?.affixWrapper, S?.affixWrapper, S?.variant), ce = (c || g) && /* @__PURE__ */ le.createElement("span", {
|
|
265
265
|
className: ke("".concat(s, "-suffix"), S?.suffix),
|
|
266
266
|
style: P?.suffix
|
|
267
267
|
}, G, c);
|
|
@@ -277,12 +277,12 @@ var eu = /* @__PURE__ */ le.forwardRef(function(e, t) {
|
|
|
277
277
|
}, l), H, ce);
|
|
278
278
|
}
|
|
279
279
|
if (Ql(e)) {
|
|
280
|
-
var ve = "".concat(s, "-group"), pe = "".concat(ve, "-addon"), be = "".concat(ve, "-wrapper"),
|
|
280
|
+
var ve = "".concat(s, "-group"), pe = "".concat(ve, "-addon"), be = "".concat(ve, "-wrapper"), Ce = ke("".concat(s, "-wrapper"), ve, C?.wrapper, S?.wrapper), $e = ke(be, w({}, "".concat(be, "-disabled"), p), C?.group, S?.groupWrapper);
|
|
281
281
|
H = /* @__PURE__ */ le.createElement(O, {
|
|
282
282
|
className: $e,
|
|
283
283
|
ref: q
|
|
284
284
|
}, /* @__PURE__ */ le.createElement(M, {
|
|
285
|
-
className:
|
|
285
|
+
className: Ce
|
|
286
286
|
}, u && /* @__PURE__ */ le.createElement(E, {
|
|
287
287
|
className: pe
|
|
288
288
|
}, u), H, f && /* @__PURE__ */ le.createElement(E, {
|
|
@@ -360,7 +360,7 @@ function au(e, t) {
|
|
|
360
360
|
}
|
|
361
361
|
return r;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function St(e, t) {
|
|
364
364
|
if (e == null) return {};
|
|
365
365
|
var r, n, a = au(e, t);
|
|
366
366
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -379,10 +379,10 @@ function fr(e) {
|
|
|
379
379
|
}, []);
|
|
380
380
|
return r;
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function wt() {
|
|
383
383
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
384
384
|
}
|
|
385
|
-
var Qa = process.env.NODE_ENV !== "test" &&
|
|
385
|
+
var Qa = process.env.NODE_ENV !== "test" && wt() ? F.useLayoutEffect : F.useEffect, yo = function(t, r) {
|
|
386
386
|
var n = F.useRef(!0);
|
|
387
387
|
Qa(function() {
|
|
388
388
|
return t(n.current);
|
|
@@ -422,8 +422,8 @@ function iu(e, t) {
|
|
|
422
422
|
}, [d]), Za(function() {
|
|
423
423
|
_n(a) || u(a);
|
|
424
424
|
}, [a]);
|
|
425
|
-
var g = fr(function(y,
|
|
426
|
-
u(y,
|
|
425
|
+
var g = fr(function(y, x) {
|
|
426
|
+
u(y, x), b([f], x);
|
|
427
427
|
});
|
|
428
428
|
return [m, g];
|
|
429
429
|
}
|
|
@@ -438,7 +438,7 @@ function cu(e, t) {
|
|
|
438
438
|
return F.useMemo(function() {
|
|
439
439
|
var r = {};
|
|
440
440
|
t && (r.show = ne(t) === "object" && t.formatter ? t.formatter : !!t), r = k(k({}, r), e);
|
|
441
|
-
var n = r, a = n.show, i =
|
|
441
|
+
var n = r, a = n.show, i = St(n, su);
|
|
442
442
|
return k(k({}, i), {}, {
|
|
443
443
|
show: !!a,
|
|
444
444
|
showFormatter: typeof a == "function" ? a : void 0,
|
|
@@ -449,11 +449,11 @@ function cu(e, t) {
|
|
|
449
449
|
}, [e, t]);
|
|
450
450
|
}
|
|
451
451
|
var lu = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKeyDown", "onKeyUp", "prefixCls", "disabled", "htmlSize", "className", "maxLength", "suffix", "showCount", "count", "type", "classes", "classNames", "styles", "onCompositionStart", "onCompositionEnd"], uu = /* @__PURE__ */ ao(function(e, t) {
|
|
452
|
-
var r = e.autoComplete, n = e.onChange, a = e.onFocus, i = e.onBlur, o = e.onPressEnter, s = e.onKeyDown, l = e.onKeyUp, c = e.prefixCls, u = c === void 0 ? "rc-input" : c, f = e.disabled, m = e.htmlSize, v = e.className, p = e.maxLength, h = e.suffix, d = e.showCount, b = e.count, g = e.type, y = g === void 0 ? "text" : g,
|
|
452
|
+
var r = e.autoComplete, n = e.onChange, a = e.onFocus, i = e.onBlur, o = e.onPressEnter, s = e.onKeyDown, l = e.onKeyUp, c = e.prefixCls, u = c === void 0 ? "rc-input" : c, f = e.disabled, m = e.htmlSize, v = e.className, p = e.maxLength, h = e.suffix, d = e.showCount, b = e.count, g = e.type, y = g === void 0 ? "text" : g, x = e.classes, _ = e.classNames, C = e.styles, S = e.onCompositionStart, $ = e.onCompositionEnd, P = St(e, lu), R = ee(!1), N = J(R, 2), D = N[0], j = N[1], O = fe(!1), M = fe(!1), E = fe(null), A = fe(null), I = function(Z) {
|
|
453
453
|
E.current && Jl(E.current, Z);
|
|
454
454
|
}, B = iu(e.defaultValue, {
|
|
455
455
|
value: e.value
|
|
456
|
-
}), H = J(B, 2), q = H[0], G = H[1], X = q == null ? "" : String(q), z = ee(null), re = J(z, 2),
|
|
456
|
+
}), H = J(B, 2), q = H[0], G = H[1], X = q == null ? "" : String(q), z = ee(null), re = J(z, 2), ie = re[0], ue = re[1], ce = cu(b, d), ve = ce.max || p, pe = ce.strategy(X), be = !!ve && pe > ve;
|
|
457
457
|
ac(t, function() {
|
|
458
458
|
var he;
|
|
459
459
|
return {
|
|
@@ -462,9 +462,9 @@ var lu = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
|
|
|
462
462
|
var Oe;
|
|
463
463
|
(Oe = E.current) === null || Oe === void 0 || Oe.blur();
|
|
464
464
|
},
|
|
465
|
-
setSelectionRange: function(Oe, at,
|
|
465
|
+
setSelectionRange: function(Oe, at, Xe) {
|
|
466
466
|
var je;
|
|
467
|
-
(je = E.current) === null || je === void 0 || je.setSelectionRange(Oe, at,
|
|
467
|
+
(je = E.current) === null || je === void 0 || je.setSelectionRange(Oe, at, Xe);
|
|
468
468
|
},
|
|
469
469
|
select: function() {
|
|
470
470
|
var Oe;
|
|
@@ -478,31 +478,31 @@ var lu = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
|
|
|
478
478
|
return he && f ? !1 : he;
|
|
479
479
|
});
|
|
480
480
|
}, [f]);
|
|
481
|
-
var
|
|
482
|
-
var
|
|
481
|
+
var Ce = function(Z, Oe, at) {
|
|
482
|
+
var Xe = Oe;
|
|
483
483
|
if (!O.current && ce.exceedFormatter && ce.max && ce.strategy(Oe) > ce.max) {
|
|
484
|
-
if (
|
|
484
|
+
if (Xe = ce.exceedFormatter(Oe, {
|
|
485
485
|
max: ce.max
|
|
486
|
-
}), Oe !==
|
|
487
|
-
var je,
|
|
488
|
-
ue([((je = E.current) === null || je === void 0 ? void 0 : je.selectionStart) || 0, ((
|
|
486
|
+
}), Oe !== Xe) {
|
|
487
|
+
var je, _t;
|
|
488
|
+
ue([((je = E.current) === null || je === void 0 ? void 0 : je.selectionStart) || 0, ((_t = E.current) === null || _t === void 0 ? void 0 : _t.selectionEnd) || 0]);
|
|
489
489
|
}
|
|
490
490
|
} else if (at.source === "compositionEnd")
|
|
491
491
|
return;
|
|
492
|
-
G(
|
|
492
|
+
G(Xe), E.current && Ya(E.current, Z, n, Xe);
|
|
493
493
|
};
|
|
494
494
|
ge(function() {
|
|
495
|
-
if (
|
|
495
|
+
if (ie) {
|
|
496
496
|
var he;
|
|
497
|
-
(he = E.current) === null || he === void 0 || he.setSelectionRange.apply(he, te(
|
|
497
|
+
(he = E.current) === null || he === void 0 || he.setSelectionRange.apply(he, te(ie));
|
|
498
498
|
}
|
|
499
|
-
}, [
|
|
499
|
+
}, [ie]);
|
|
500
500
|
var $e = function(Z) {
|
|
501
|
-
|
|
501
|
+
Ce(Z, Z.target.value, {
|
|
502
502
|
source: "change"
|
|
503
503
|
});
|
|
504
504
|
}, K = function(Z) {
|
|
505
|
-
O.current = !1,
|
|
505
|
+
O.current = !1, Ce(Z, Z.currentTarget.value, {
|
|
506
506
|
source: "compositionEnd"
|
|
507
507
|
}), $?.(Z);
|
|
508
508
|
}, L = function(Z) {
|
|
@@ -511,11 +511,11 @@ var lu = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
|
|
|
511
511
|
Z.key === "Enter" && (M.current = !1), l?.(Z);
|
|
512
512
|
}, Te = function(Z) {
|
|
513
513
|
j(!0), a?.(Z);
|
|
514
|
-
},
|
|
514
|
+
}, qe = function(Z) {
|
|
515
515
|
M.current && (M.current = !1), j(!1), i?.(Z);
|
|
516
|
-
},
|
|
516
|
+
}, xe = function(Z) {
|
|
517
517
|
G(""), I(), E.current && Ya(E.current, Z, n);
|
|
518
|
-
},
|
|
518
|
+
}, Me = be && "".concat(u, "-out-of-range"), Re = function() {
|
|
519
519
|
var Z = ou(e, [
|
|
520
520
|
"prefixCls",
|
|
521
521
|
"onPressEnter",
|
|
@@ -540,11 +540,11 @@ var lu = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
|
|
|
540
540
|
}, Z, {
|
|
541
541
|
onChange: $e,
|
|
542
542
|
onFocus: Te,
|
|
543
|
-
onBlur:
|
|
543
|
+
onBlur: qe,
|
|
544
544
|
onKeyDown: L,
|
|
545
545
|
onKeyUp: Y,
|
|
546
546
|
className: ke(u, w({}, "".concat(u, "-disabled"), f), _?.input),
|
|
547
|
-
style:
|
|
547
|
+
style: C?.input,
|
|
548
548
|
ref: E,
|
|
549
549
|
size: m,
|
|
550
550
|
type: y,
|
|
@@ -553,7 +553,7 @@ var lu = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
|
|
|
553
553
|
},
|
|
554
554
|
onCompositionEnd: K
|
|
555
555
|
}));
|
|
556
|
-
},
|
|
556
|
+
}, Ne = function() {
|
|
557
557
|
var Z = Number(ve) > 0;
|
|
558
558
|
if (h || ce.show) {
|
|
559
559
|
var Oe = ce.showFormatter ? ce.showFormatter({
|
|
@@ -563,29 +563,29 @@ var lu = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
|
|
|
563
563
|
}) : "".concat(pe).concat(Z ? " / ".concat(ve) : "");
|
|
564
564
|
return /* @__PURE__ */ le.createElement(le.Fragment, null, ce.show && /* @__PURE__ */ le.createElement("span", {
|
|
565
565
|
className: ke("".concat(u, "-show-count-suffix"), w({}, "".concat(u, "-show-count-has-suffix"), !!h), _?.count),
|
|
566
|
-
style: k({},
|
|
566
|
+
style: k({}, C?.count)
|
|
567
567
|
}, Oe), h);
|
|
568
568
|
}
|
|
569
569
|
return null;
|
|
570
570
|
};
|
|
571
571
|
return /* @__PURE__ */ le.createElement(eu, ht({}, P, {
|
|
572
572
|
prefixCls: u,
|
|
573
|
-
className: ke(v,
|
|
574
|
-
handleReset:
|
|
573
|
+
className: ke(v, Me),
|
|
574
|
+
handleReset: xe,
|
|
575
575
|
value: X,
|
|
576
576
|
focused: D,
|
|
577
577
|
triggerFocus: I,
|
|
578
|
-
suffix:
|
|
578
|
+
suffix: Ne(),
|
|
579
579
|
disabled: f,
|
|
580
|
-
classes:
|
|
580
|
+
classes: x,
|
|
581
581
|
classNames: _,
|
|
582
|
-
styles:
|
|
582
|
+
styles: C,
|
|
583
583
|
ref: A
|
|
584
|
-
}),
|
|
585
|
-
}), Mr = { exports: {} },
|
|
584
|
+
}), Re());
|
|
585
|
+
}), Mr = { exports: {} }, Se = {};
|
|
586
586
|
var Ja;
|
|
587
587
|
function du() {
|
|
588
|
-
if (Ja) return
|
|
588
|
+
if (Ja) return Se;
|
|
589
589
|
Ja = 1;
|
|
590
590
|
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), o = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), p;
|
|
591
591
|
p = Symbol.for("react.module.reference");
|
|
@@ -619,45 +619,45 @@ function du() {
|
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
return
|
|
622
|
+
return Se.ContextConsumer = o, Se.ContextProvider = i, Se.Element = e, Se.ForwardRef = l, Se.Fragment = r, Se.Lazy = m, Se.Memo = f, Se.Portal = t, Se.Profiler = a, Se.StrictMode = n, Se.Suspense = c, Se.SuspenseList = u, Se.isAsyncMode = function() {
|
|
623
623
|
return !1;
|
|
624
|
-
},
|
|
624
|
+
}, Se.isConcurrentMode = function() {
|
|
625
625
|
return !1;
|
|
626
|
-
},
|
|
626
|
+
}, Se.isContextConsumer = function(d) {
|
|
627
627
|
return h(d) === o;
|
|
628
|
-
},
|
|
628
|
+
}, Se.isContextProvider = function(d) {
|
|
629
629
|
return h(d) === i;
|
|
630
|
-
},
|
|
630
|
+
}, Se.isElement = function(d) {
|
|
631
631
|
return typeof d == "object" && d !== null && d.$$typeof === e;
|
|
632
|
-
},
|
|
632
|
+
}, Se.isForwardRef = function(d) {
|
|
633
633
|
return h(d) === l;
|
|
634
|
-
},
|
|
634
|
+
}, Se.isFragment = function(d) {
|
|
635
635
|
return h(d) === r;
|
|
636
|
-
},
|
|
636
|
+
}, Se.isLazy = function(d) {
|
|
637
637
|
return h(d) === m;
|
|
638
|
-
},
|
|
638
|
+
}, Se.isMemo = function(d) {
|
|
639
639
|
return h(d) === f;
|
|
640
|
-
},
|
|
640
|
+
}, Se.isPortal = function(d) {
|
|
641
641
|
return h(d) === t;
|
|
642
|
-
},
|
|
642
|
+
}, Se.isProfiler = function(d) {
|
|
643
643
|
return h(d) === a;
|
|
644
|
-
},
|
|
644
|
+
}, Se.isStrictMode = function(d) {
|
|
645
645
|
return h(d) === n;
|
|
646
|
-
},
|
|
646
|
+
}, Se.isSuspense = function(d) {
|
|
647
647
|
return h(d) === c;
|
|
648
|
-
},
|
|
648
|
+
}, Se.isSuspenseList = function(d) {
|
|
649
649
|
return h(d) === u;
|
|
650
|
-
},
|
|
650
|
+
}, Se.isValidElementType = function(d) {
|
|
651
651
|
return typeof d == "string" || typeof d == "function" || d === r || d === a || d === n || d === c || d === u || d === v || typeof d == "object" && d !== null && (d.$$typeof === m || d.$$typeof === f || d.$$typeof === i || d.$$typeof === o || d.$$typeof === l || d.$$typeof === p || d.getModuleId !== void 0);
|
|
652
|
-
},
|
|
652
|
+
}, Se.typeOf = h, Se;
|
|
653
653
|
}
|
|
654
|
-
var
|
|
654
|
+
var _e = {};
|
|
655
655
|
var ei;
|
|
656
656
|
function fu() {
|
|
657
657
|
return ei || (ei = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
658
658
|
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), o = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), p = !1, h = !1, d = !1, b = !1, g = !1, y;
|
|
659
659
|
y = Symbol.for("react.module.reference");
|
|
660
|
-
function
|
|
660
|
+
function x(K) {
|
|
661
661
|
return !!(typeof K == "string" || typeof K == "function" || K === r || K === a || g || K === n || K === c || K === u || b || K === v || p || h || d || typeof K == "object" && K !== null && (K.$$typeof === m || K.$$typeof === f || K.$$typeof === i || K.$$typeof === o || K.$$typeof === l || // This needs to include all possible module reference object
|
|
662
662
|
// types supported by any Flight configuration anywhere since
|
|
663
663
|
// we don't know which Flight build this will end up being used
|
|
@@ -696,7 +696,7 @@ function fu() {
|
|
|
696
696
|
}
|
|
697
697
|
}
|
|
698
698
|
}
|
|
699
|
-
var
|
|
699
|
+
var C = o, S = i, $ = e, P = l, R = r, N = m, D = f, j = t, O = a, M = n, E = c, A = u, I = !1, B = !1;
|
|
700
700
|
function H(K) {
|
|
701
701
|
return I || (I = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
702
702
|
}
|
|
@@ -715,7 +715,7 @@ function fu() {
|
|
|
715
715
|
function re(K) {
|
|
716
716
|
return _(K) === l;
|
|
717
717
|
}
|
|
718
|
-
function
|
|
718
|
+
function ie(K) {
|
|
719
719
|
return _(K) === r;
|
|
720
720
|
}
|
|
721
721
|
function ue(K) {
|
|
@@ -733,14 +733,14 @@ function fu() {
|
|
|
733
733
|
function be(K) {
|
|
734
734
|
return _(K) === n;
|
|
735
735
|
}
|
|
736
|
-
function
|
|
736
|
+
function Ce(K) {
|
|
737
737
|
return _(K) === c;
|
|
738
738
|
}
|
|
739
739
|
function $e(K) {
|
|
740
740
|
return _(K) === u;
|
|
741
741
|
}
|
|
742
|
-
|
|
743
|
-
})()),
|
|
742
|
+
_e.ContextConsumer = C, _e.ContextProvider = S, _e.Element = $, _e.ForwardRef = P, _e.Fragment = R, _e.Lazy = N, _e.Memo = D, _e.Portal = j, _e.Profiler = O, _e.StrictMode = M, _e.Suspense = E, _e.SuspenseList = A, _e.isAsyncMode = H, _e.isConcurrentMode = q, _e.isContextConsumer = G, _e.isContextProvider = X, _e.isElement = z, _e.isForwardRef = re, _e.isFragment = ie, _e.isLazy = ue, _e.isMemo = ce, _e.isPortal = ve, _e.isProfiler = pe, _e.isStrictMode = be, _e.isSuspense = Ce, _e.isSuspenseList = $e, _e.isValidElementType = x, _e.typeOf = _;
|
|
743
|
+
})()), _e;
|
|
744
744
|
}
|
|
745
745
|
var ti;
|
|
746
746
|
function hu() {
|
|
@@ -793,16 +793,16 @@ var Su = function(t) {
|
|
|
793
793
|
function xo(e, t) {
|
|
794
794
|
this.v = e, this.k = t;
|
|
795
795
|
}
|
|
796
|
-
function
|
|
796
|
+
function Ke(e, t, r, n) {
|
|
797
797
|
var a = Object.defineProperty;
|
|
798
798
|
try {
|
|
799
799
|
a({}, "", {});
|
|
800
800
|
} catch {
|
|
801
801
|
a = 0;
|
|
802
802
|
}
|
|
803
|
-
|
|
803
|
+
Ke = function(o, s, l, c) {
|
|
804
804
|
function u(f, m) {
|
|
805
|
-
|
|
805
|
+
Ke(o, f, function(v) {
|
|
806
806
|
return this._invoke(f, m, v);
|
|
807
807
|
});
|
|
808
808
|
}
|
|
@@ -812,21 +812,21 @@ function Xe(e, t, r, n) {
|
|
|
812
812
|
configurable: !c,
|
|
813
813
|
writable: !c
|
|
814
814
|
}) : o[s] = l : (u("next", 0), u("throw", 1), u("return", 2));
|
|
815
|
-
},
|
|
815
|
+
}, Ke(e, t, r, n);
|
|
816
816
|
}
|
|
817
817
|
function Ta() {
|
|
818
818
|
var e, t, r = typeof Symbol == "function" ? Symbol : {}, n = r.iterator || "@@iterator", a = r.toStringTag || "@@toStringTag";
|
|
819
819
|
function i(v, p, h, d) {
|
|
820
820
|
var b = p && p.prototype instanceof s ? p : s, g = Object.create(b.prototype);
|
|
821
|
-
return
|
|
822
|
-
var
|
|
821
|
+
return Ke(g, "_invoke", (function(y, x, _) {
|
|
822
|
+
var C, S, $, P = 0, R = _ || [], N = !1, D = {
|
|
823
823
|
p: 0,
|
|
824
824
|
n: 0,
|
|
825
825
|
v: e,
|
|
826
826
|
a: j,
|
|
827
827
|
f: j.bind(e, 4),
|
|
828
828
|
d: function(M, E) {
|
|
829
|
-
return
|
|
829
|
+
return C = M, S = 0, $ = e, D.n = E, o;
|
|
830
830
|
}
|
|
831
831
|
};
|
|
832
832
|
function j(O, M) {
|
|
@@ -840,18 +840,18 @@ function Ta() {
|
|
|
840
840
|
return function(O, M, E) {
|
|
841
841
|
if (P > 1) throw TypeError("Generator is already running");
|
|
842
842
|
for (N && M === 1 && j(M, E), S = M, $ = E; (t = S < 2 ? e : $) || !N; ) {
|
|
843
|
-
|
|
843
|
+
C || (S ? S < 3 ? (S > 1 && (D.n = -1), j(S, $)) : D.n = $ : D.v = $);
|
|
844
844
|
try {
|
|
845
|
-
if (P = 2,
|
|
846
|
-
if (S || (O = "next"), t =
|
|
847
|
-
if (!(t = t.call(
|
|
845
|
+
if (P = 2, C) {
|
|
846
|
+
if (S || (O = "next"), t = C[O]) {
|
|
847
|
+
if (!(t = t.call(C, $))) throw TypeError("iterator result is not an object");
|
|
848
848
|
if (!t.done) return t;
|
|
849
849
|
$ = t.value, S < 2 && (S = 0);
|
|
850
|
-
} else S === 1 && (t =
|
|
851
|
-
|
|
852
|
-
} else if ((t = (N = D.n < 0) ? $ : y.call(
|
|
850
|
+
} else S === 1 && (t = C.return) && t.call(C), S < 2 && ($ = TypeError("The iterator does not provide a '" + O + "' method"), S = 1);
|
|
851
|
+
C = e;
|
|
852
|
+
} else if ((t = (N = D.n < 0) ? $ : y.call(x, D)) !== o) break;
|
|
853
853
|
} catch (A) {
|
|
854
|
-
|
|
854
|
+
C = e, S = 1, $ = A;
|
|
855
855
|
} finally {
|
|
856
856
|
P = 1;
|
|
857
857
|
}
|
|
@@ -871,15 +871,15 @@ function Ta() {
|
|
|
871
871
|
function c() {
|
|
872
872
|
}
|
|
873
873
|
t = Object.getPrototypeOf;
|
|
874
|
-
var u = [][n] ? t(t([][n]())) : (
|
|
874
|
+
var u = [][n] ? t(t([][n]())) : (Ke(t = {}, n, function() {
|
|
875
875
|
return this;
|
|
876
876
|
}), t), f = c.prototype = s.prototype = Object.create(u);
|
|
877
877
|
function m(v) {
|
|
878
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(v, c) : (v.__proto__ = c,
|
|
878
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(v, c) : (v.__proto__ = c, Ke(v, a, "GeneratorFunction")), v.prototype = Object.create(f), v;
|
|
879
879
|
}
|
|
880
|
-
return l.prototype = c,
|
|
880
|
+
return l.prototype = c, Ke(f, "constructor", c), Ke(c, "constructor", l), l.displayName = "GeneratorFunction", Ke(c, a, "GeneratorFunction"), Ke(f), Ke(f, a, "Generator"), Ke(f, n, function() {
|
|
881
881
|
return this;
|
|
882
|
-
}),
|
|
882
|
+
}), Ke(f, "toString", function() {
|
|
883
883
|
return "[object Generator]";
|
|
884
884
|
}), (Ta = function() {
|
|
885
885
|
return {
|
|
@@ -906,9 +906,9 @@ function Yr(e, t) {
|
|
|
906
906
|
}
|
|
907
907
|
}
|
|
908
908
|
var n;
|
|
909
|
-
this.next || (
|
|
909
|
+
this.next || (Ke(Yr.prototype), Ke(Yr.prototype, typeof Symbol == "function" && Symbol.asyncIterator || "@asyncIterator", function() {
|
|
910
910
|
return this;
|
|
911
|
-
})),
|
|
911
|
+
})), Ke(this, "_invoke", function(a, i, o) {
|
|
912
912
|
function s() {
|
|
913
913
|
return new t(function(l, c) {
|
|
914
914
|
r(a, o, l, c);
|
|
@@ -1135,20 +1135,20 @@ function Eo() {
|
|
|
1135
1135
|
function $o(e, t, r) {
|
|
1136
1136
|
!t && !jn[r] && (e(!1, r), jn[r] = !0);
|
|
1137
1137
|
}
|
|
1138
|
-
function
|
|
1138
|
+
function Pe(e, t) {
|
|
1139
1139
|
$o(Ma, e, t);
|
|
1140
1140
|
}
|
|
1141
1141
|
function $u(e, t) {
|
|
1142
1142
|
$o(Eu, e, t);
|
|
1143
1143
|
}
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1144
|
+
Pe.preMessage = wu;
|
|
1145
|
+
Pe.resetWarned = Eo;
|
|
1146
|
+
Pe.noteOnce = $u;
|
|
1147
1147
|
function Vn(e, t) {
|
|
1148
1148
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, n = /* @__PURE__ */ new Set();
|
|
1149
1149
|
function a(i, o) {
|
|
1150
1150
|
var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1, l = n.has(i);
|
|
1151
|
-
if (
|
|
1151
|
+
if (Pe(!l, "Warning: There may be circular references"), l)
|
|
1152
1152
|
return !1;
|
|
1153
1153
|
if (i === o)
|
|
1154
1154
|
return !0;
|
|
@@ -1174,8 +1174,8 @@ function Vn(e, t) {
|
|
|
1174
1174
|
}
|
|
1175
1175
|
return a(e, t);
|
|
1176
1176
|
}
|
|
1177
|
-
var
|
|
1178
|
-
|
|
1177
|
+
var Pt = "RC_FORM_INTERNAL_HOOKS", Ee = function() {
|
|
1178
|
+
Pe(!1, "Can not find FormContext. Please make sure you wrap Field under Form.");
|
|
1179
1179
|
}, Wt = /* @__PURE__ */ F.createContext({
|
|
1180
1180
|
getFieldValue: Ee,
|
|
1181
1181
|
getFieldsValue: Ee,
|
|
@@ -1355,7 +1355,7 @@ function nt(e) {
|
|
|
1355
1355
|
function Ru(e) {
|
|
1356
1356
|
return e === "string" || e === "url" || e === "hex" || e === "email" || e === "date" || e === "pattern";
|
|
1357
1357
|
}
|
|
1358
|
-
function
|
|
1358
|
+
function ze(e, t) {
|
|
1359
1359
|
return !!(e == null || t === "array" && Array.isArray(e) && !e.length || Ru(t) && typeof e == "string" && !e);
|
|
1360
1360
|
}
|
|
1361
1361
|
function Pu(e, t, r) {
|
|
@@ -1468,13 +1468,13 @@ var It = "enum", Lu = function(t, r, n, a, i) {
|
|
|
1468
1468
|
return !1;
|
|
1469
1469
|
p && (u = r.length), v && (u = r.replace(c, "_").length), o ? u !== t.len && a.push(nt(i.messages[f].len, t.fullField, t.len)) : s && !l && u < t.min ? a.push(nt(i.messages[f].min, t.fullField, t.min)) : l && !s && u > t.max ? a.push(nt(i.messages[f].max, t.fullField, t.max)) : s && l && (u < t.min || u > t.max) && a.push(nt(i.messages[f].range, t.fullField, t.min, t.max));
|
|
1470
1470
|
}, Oo = function(t, r, n, a, i, o) {
|
|
1471
|
-
t.required && (!n.hasOwnProperty(t.field) ||
|
|
1471
|
+
t.required && (!n.hasOwnProperty(t.field) || ze(r, o || t.type)) && a.push(nt(i.messages.required, t.fullField));
|
|
1472
1472
|
}, Rr;
|
|
1473
1473
|
const Du = (function() {
|
|
1474
1474
|
if (Rr)
|
|
1475
1475
|
return Rr;
|
|
1476
|
-
var e = "[a-fA-F\\d:]", t = function(
|
|
1477
|
-
return
|
|
1476
|
+
var e = "[a-fA-F\\d:]", t = function(C) {
|
|
1477
|
+
return C && C.includeBoundaries ? "(?:(?<=\\s|^)(?=".concat(e, ")|(?<=").concat(e, ")(?=\\s|$))") : "";
|
|
1478
1478
|
}, r = "(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}", n = "[a-fA-F\\d]{1,4}", a = [
|
|
1479
1479
|
"(?:".concat(n, ":){7}(?:").concat(n, "|:)"),
|
|
1480
1480
|
// 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
|
@@ -1492,16 +1492,16 @@ const Du = (function() {
|
|
|
1492
1492
|
// 1:: 1::3:4:5:6:7:8 1::8 1::
|
|
1493
1493
|
"(?::(?:(?::".concat(n, "){0,5}:").concat(r, "|(?::").concat(n, "){1,7}|:))")
|
|
1494
1494
|
// ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::
|
|
1495
|
-
], i = "(?:%[0-9a-zA-Z]{1,})?", o = "(?:".concat(a.join("|"), ")").concat(i), s = new RegExp("(?:^".concat(r, "$)|(?:^").concat(o, "$)")), l = new RegExp("^".concat(r, "$")), c = new RegExp("^".concat(o, "$")), u = function(
|
|
1496
|
-
return
|
|
1495
|
+
], i = "(?:%[0-9a-zA-Z]{1,})?", o = "(?:".concat(a.join("|"), ")").concat(i), s = new RegExp("(?:^".concat(r, "$)|(?:^").concat(o, "$)")), l = new RegExp("^".concat(r, "$")), c = new RegExp("^".concat(o, "$")), u = function(C) {
|
|
1496
|
+
return C && C.exact ? s : new RegExp("(?:".concat(t(C)).concat(r).concat(t(C), ")|(?:").concat(t(C)).concat(o).concat(t(C), ")"), "g");
|
|
1497
1497
|
};
|
|
1498
1498
|
u.v4 = function(_) {
|
|
1499
1499
|
return _ && _.exact ? l : new RegExp("".concat(t(_)).concat(r).concat(t(_)), "g");
|
|
1500
1500
|
}, u.v6 = function(_) {
|
|
1501
1501
|
return _ && _.exact ? c : new RegExp("".concat(t(_)).concat(o).concat(t(_)), "g");
|
|
1502
1502
|
};
|
|
1503
|
-
var f = "(?:(?:[a-z]+:)?//)", m = "(?:\\S+(?::\\S*)?@)?", v = u.v4().source, p = u.v6().source, h = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", d = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", b = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", g = "(?::\\d{2,5})?", y = '(?:[/?#][^\\s"]*)?',
|
|
1504
|
-
return Rr = new RegExp("(?:^".concat(
|
|
1503
|
+
var f = "(?:(?:[a-z]+:)?//)", m = "(?:\\S+(?::\\S*)?@)?", v = u.v4().source, p = u.v6().source, h = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", d = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", b = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", g = "(?::\\d{2,5})?", y = '(?:[/?#][^\\s"]*)?', x = "(?:".concat(f, "|www\\.)").concat(m, "(?:localhost|").concat(v, "|").concat(p, "|").concat(h).concat(d).concat(b, ")").concat(g).concat(y);
|
|
1504
|
+
return Rr = new RegExp("(?:^".concat(x, "$)"), "i"), Rr;
|
|
1505
1505
|
});
|
|
1506
1506
|
var li = {
|
|
1507
1507
|
// http://emailregex.com/
|
|
@@ -1572,7 +1572,7 @@ const ye = {
|
|
|
1572
1572
|
var zu = function(t, r, n, a, i) {
|
|
1573
1573
|
var o = [], s = t.required || !t.required && a.hasOwnProperty(t.field);
|
|
1574
1574
|
if (s) {
|
|
1575
|
-
if (
|
|
1575
|
+
if (ze(r) && !t.required)
|
|
1576
1576
|
return n();
|
|
1577
1577
|
ye.required(t, r, a, o, i);
|
|
1578
1578
|
}
|
|
@@ -1588,7 +1588,7 @@ var zu = function(t, r, n, a, i) {
|
|
|
1588
1588
|
}, Uu = function(t, r, n, a, i) {
|
|
1589
1589
|
var o = [], s = t.required || !t.required && a.hasOwnProperty(t.field);
|
|
1590
1590
|
if (s) {
|
|
1591
|
-
if (
|
|
1591
|
+
if (ze(r) && !t.required)
|
|
1592
1592
|
return n();
|
|
1593
1593
|
ye.required(t, r, a, o, i), r !== void 0 && ye.type(t, r, a, o, i);
|
|
1594
1594
|
}
|
|
@@ -1596,9 +1596,9 @@ var zu = function(t, r, n, a, i) {
|
|
|
1596
1596
|
}, qu = function(t, r, n, a, i) {
|
|
1597
1597
|
var o = [], s = t.required || !t.required && a.hasOwnProperty(t.field);
|
|
1598
1598
|
if (s) {
|
|
1599
|
-
if (
|
|
1599
|
+
if (ze(r, "date") && !t.required)
|
|
1600
1600
|
return n();
|
|
1601
|
-
if (ye.required(t, r, a, o, i), !
|
|
1601
|
+
if (ye.required(t, r, a, o, i), !ze(r, "date")) {
|
|
1602
1602
|
var l;
|
|
1603
1603
|
r instanceof Date ? l = r : l = new Date(r), ye.type(t, l, a, o, i), l && ye.range(t, l.getTime(), a, o, i);
|
|
1604
1604
|
}
|
|
@@ -1607,7 +1607,7 @@ var zu = function(t, r, n, a, i) {
|
|
|
1607
1607
|
}, Gu = "enum", Ku = function(t, r, n, a, i) {
|
|
1608
1608
|
var o = [], s = t.required || !t.required && a.hasOwnProperty(t.field);
|
|
1609
1609
|
if (s) {
|
|
1610
|
-
if (
|
|
1610
|
+
if (ze(r) && !t.required)
|
|
1611
1611
|
return n();
|
|
1612
1612
|
ye.required(t, r, a, o, i), r !== void 0 && ye[Gu](t, r, a, o, i);
|
|
1613
1613
|
}
|
|
@@ -1615,7 +1615,7 @@ var zu = function(t, r, n, a, i) {
|
|
|
1615
1615
|
}, Xu = function(t, r, n, a, i) {
|
|
1616
1616
|
var o = [], s = t.required || !t.required && a.hasOwnProperty(t.field);
|
|
1617
1617
|
if (s) {
|
|
1618
|
-
if (
|
|
1618
|
+
if (ze(r) && !t.required)
|
|
1619
1619
|
return n();
|
|
1620
1620
|
ye.required(t, r, a, o, i), r !== void 0 && (ye.type(t, r, a, o, i), ye.range(t, r, a, o, i));
|
|
1621
1621
|
}
|
|
@@ -1623,7 +1623,7 @@ var zu = function(t, r, n, a, i) {
|
|
|
1623
1623
|
}, Yu = function(t, r, n, a, i) {
|
|
1624
1624
|
var o = [], s = t.required || !t.required && a.hasOwnProperty(t.field);
|
|
1625
1625
|
if (s) {
|
|
1626
|
-
if (
|
|
1626
|
+
if (ze(r) && !t.required)
|
|
1627
1627
|
return n();
|
|
1628
1628
|
ye.required(t, r, a, o, i), r !== void 0 && (ye.type(t, r, a, o, i), ye.range(t, r, a, o, i));
|
|
1629
1629
|
}
|
|
@@ -1631,7 +1631,7 @@ var zu = function(t, r, n, a, i) {
|
|
|
1631
1631
|
}, Qu = function(t, r, n, a, i) {
|
|
1632
1632
|
var o = [], s = t.required || !t.required && a.hasOwnProperty(t.field);
|
|
1633
1633
|
if (s) {
|
|
1634
|
-
if (
|
|
1634
|
+
if (ze(r) && !t.required)
|
|
1635
1635
|
return n();
|
|
1636
1636
|
ye.required(t, r, a, o, i), r !== void 0 && ye.type(t, r, a, o, i);
|
|
1637
1637
|
}
|
|
@@ -1639,7 +1639,7 @@ var zu = function(t, r, n, a, i) {
|
|
|
1639
1639
|
}, Zu = function(t, r, n, a, i) {
|
|
1640
1640
|
var o = [], s = t.required || !t.required && a.hasOwnProperty(t.field);
|
|
1641
1641
|
if (s) {
|
|
1642
|
-
if (r === "" && (r = void 0),
|
|
1642
|
+
if (r === "" && (r = void 0), ze(r) && !t.required)
|
|
1643
1643
|
return n();
|
|
1644
1644
|
ye.required(t, r, a, o, i), r !== void 0 && (ye.type(t, r, a, o, i), ye.range(t, r, a, o, i));
|
|
1645
1645
|
}
|
|
@@ -1647,7 +1647,7 @@ var zu = function(t, r, n, a, i) {
|
|
|
1647
1647
|
}, Ju = function(t, r, n, a, i) {
|
|
1648
1648
|
var o = [], s = t.required || !t.required && a.hasOwnProperty(t.field);
|
|
1649
1649
|
if (s) {
|
|
1650
|
-
if (
|
|
1650
|
+
if (ze(r) && !t.required)
|
|
1651
1651
|
return n();
|
|
1652
1652
|
ye.required(t, r, a, o, i), r !== void 0 && ye.type(t, r, a, o, i);
|
|
1653
1653
|
}
|
|
@@ -1655,17 +1655,17 @@ var zu = function(t, r, n, a, i) {
|
|
|
1655
1655
|
}, ed = function(t, r, n, a, i) {
|
|
1656
1656
|
var o = [], s = t.required || !t.required && a.hasOwnProperty(t.field);
|
|
1657
1657
|
if (s) {
|
|
1658
|
-
if (
|
|
1658
|
+
if (ze(r, "string") && !t.required)
|
|
1659
1659
|
return n();
|
|
1660
|
-
ye.required(t, r, a, o, i),
|
|
1660
|
+
ye.required(t, r, a, o, i), ze(r, "string") || ye.pattern(t, r, a, o, i);
|
|
1661
1661
|
}
|
|
1662
1662
|
n(o);
|
|
1663
1663
|
}, td = function(t, r, n, a, i) {
|
|
1664
1664
|
var o = [], s = t.required || !t.required && a.hasOwnProperty(t.field);
|
|
1665
1665
|
if (s) {
|
|
1666
|
-
if (
|
|
1666
|
+
if (ze(r) && !t.required)
|
|
1667
1667
|
return n();
|
|
1668
|
-
ye.required(t, r, a, o, i),
|
|
1668
|
+
ye.required(t, r, a, o, i), ze(r) || ye.type(t, r, a, o, i);
|
|
1669
1669
|
}
|
|
1670
1670
|
n(o);
|
|
1671
1671
|
}, rd = function(t, r, n, a, i) {
|
|
@@ -1674,17 +1674,17 @@ var zu = function(t, r, n, a, i) {
|
|
|
1674
1674
|
}, nd = function(t, r, n, a, i) {
|
|
1675
1675
|
var o = [], s = t.required || !t.required && a.hasOwnProperty(t.field);
|
|
1676
1676
|
if (s) {
|
|
1677
|
-
if (
|
|
1677
|
+
if (ze(r, "string") && !t.required)
|
|
1678
1678
|
return n();
|
|
1679
|
-
ye.required(t, r, a, o, i, "string"),
|
|
1679
|
+
ye.required(t, r, a, o, i, "string"), ze(r, "string") || (ye.type(t, r, a, o, i), ye.range(t, r, a, o, i), ye.pattern(t, r, a, o, i), t.whitespace === !0 && ye.whitespace(t, r, a, o, i));
|
|
1680
1680
|
}
|
|
1681
1681
|
n(o);
|
|
1682
1682
|
}, xn = function(t, r, n, a, i) {
|
|
1683
1683
|
var o = t.type, s = [], l = t.required || !t.required && a.hasOwnProperty(t.field);
|
|
1684
1684
|
if (l) {
|
|
1685
|
-
if (
|
|
1685
|
+
if (ze(r, o) && !t.required)
|
|
1686
1686
|
return n();
|
|
1687
|
-
ye.required(t, r, a, s, i, o),
|
|
1687
|
+
ye.required(t, r, a, s, i, o), ze(r, o) || ye.type(t, r, a, s, i);
|
|
1688
1688
|
}
|
|
1689
1689
|
n(s);
|
|
1690
1690
|
};
|
|
@@ -1740,8 +1740,8 @@ var _r = /* @__PURE__ */ (function() {
|
|
|
1740
1740
|
var h = [], d = {};
|
|
1741
1741
|
function b(y) {
|
|
1742
1742
|
if (Array.isArray(y)) {
|
|
1743
|
-
var
|
|
1744
|
-
h = (
|
|
1743
|
+
var x;
|
|
1744
|
+
h = (x = h).concat.apply(x, te(y));
|
|
1745
1745
|
} else
|
|
1746
1746
|
h.push(y);
|
|
1747
1747
|
}
|
|
@@ -1806,21 +1806,21 @@ var _r = /* @__PURE__ */ (function() {
|
|
|
1806
1806
|
});
|
|
1807
1807
|
}
|
|
1808
1808
|
}
|
|
1809
|
-
var
|
|
1809
|
+
var x;
|
|
1810
1810
|
if (d.asyncValidator)
|
|
1811
|
-
|
|
1811
|
+
x = d.asyncValidator(d, p.value, y, p.source, s);
|
|
1812
1812
|
else if (d.validator) {
|
|
1813
1813
|
try {
|
|
1814
|
-
|
|
1814
|
+
x = d.validator(d, p.value, y, p.source, s);
|
|
1815
1815
|
} catch (S) {
|
|
1816
|
-
var _,
|
|
1817
|
-
(_ = (
|
|
1816
|
+
var _, C;
|
|
1817
|
+
(_ = (C = console).error) === null || _ === void 0 || _.call(C, S), s.suppressValidatorError || setTimeout(function() {
|
|
1818
1818
|
throw S;
|
|
1819
1819
|
}, 0), y(S.message);
|
|
1820
1820
|
}
|
|
1821
|
-
|
|
1821
|
+
x === !0 ? y() : x === !1 ? y(typeof d.message == "function" ? d.message(d.fullField || d.field) : d.message || "".concat(d.fullField || d.field, " fails")) : x instanceof Array ? y(x) : x instanceof Error && y(x.message);
|
|
1822
1822
|
}
|
|
1823
|
-
|
|
1823
|
+
x && x.then && x.then(function() {
|
|
1824
1824
|
return y();
|
|
1825
1825
|
}, function(S) {
|
|
1826
1826
|
return y(S);
|
|
@@ -1904,7 +1904,7 @@ var Je = "'${name}' is not a valid ${type}", Fo = {
|
|
|
1904
1904
|
function ad(e) {
|
|
1905
1905
|
return po(e) || go(e) || $a(e) || vo();
|
|
1906
1906
|
}
|
|
1907
|
-
function
|
|
1907
|
+
function yt(e, t) {
|
|
1908
1908
|
for (var r = e, n = 0; n < t.length; n += 1) {
|
|
1909
1909
|
if (r == null)
|
|
1910
1910
|
return;
|
|
@@ -1920,7 +1920,7 @@ function Mo(e, t, r, n) {
|
|
|
1920
1920
|
}
|
|
1921
1921
|
function lt(e, t, r) {
|
|
1922
1922
|
var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
|
|
1923
|
-
return t.length && n && r === void 0 && !
|
|
1923
|
+
return t.length && n && r === void 0 && !yt(e, t.slice(0, -1)) ? e : Mo(e, t, r, n);
|
|
1924
1924
|
}
|
|
1925
1925
|
function id(e) {
|
|
1926
1926
|
return ne(e) === "object" && e !== null && Object.getPrototypeOf(e) === Object.prototype;
|
|
@@ -1935,11 +1935,11 @@ function jt() {
|
|
|
1935
1935
|
var n = ui(t[0]);
|
|
1936
1936
|
return t.forEach(function(a) {
|
|
1937
1937
|
function i(o, s) {
|
|
1938
|
-
var l = new Set(s), c =
|
|
1938
|
+
var l = new Set(s), c = yt(a, o), u = Array.isArray(c);
|
|
1939
1939
|
if (u || id(c)) {
|
|
1940
1940
|
if (!l.has(c)) {
|
|
1941
1941
|
l.add(c);
|
|
1942
|
-
var f =
|
|
1942
|
+
var f = yt(n, o);
|
|
1943
1943
|
u ? n = lt(n, o, []) : (!f || ne(f) !== "object") && (n = lt(n, o, ui(c))), od(c).forEach(function(m) {
|
|
1944
1944
|
i([].concat(te(o), [m]), l);
|
|
1945
1945
|
});
|
|
@@ -1982,13 +1982,13 @@ function qn() {
|
|
|
1982
1982
|
break;
|
|
1983
1983
|
case 15:
|
|
1984
1984
|
d.prev = 15, d.t0 = d.catch(10), d.t0.errors && (f = d.t0.errors.map(function(b, g) {
|
|
1985
|
-
var y = b.message,
|
|
1986
|
-
return /* @__PURE__ */ F.isValidElement(
|
|
1985
|
+
var y = b.message, x = y === fi ? u.default : y;
|
|
1986
|
+
return /* @__PURE__ */ F.isValidElement(x) ? (
|
|
1987
1987
|
// Wrap ReactNode with `key`
|
|
1988
|
-
/* @__PURE__ */ F.cloneElement(
|
|
1988
|
+
/* @__PURE__ */ F.cloneElement(x, {
|
|
1989
1989
|
key: "error_".concat(g)
|
|
1990
1990
|
})
|
|
1991
|
-
) :
|
|
1991
|
+
) : x;
|
|
1992
1992
|
}));
|
|
1993
1993
|
case 18:
|
|
1994
1994
|
if (!(!f.length && l && Array.isArray(r) && r.length > 0)) {
|
|
@@ -2023,16 +2023,16 @@ function cd(e, t, r, n, a, i) {
|
|
|
2023
2023
|
});
|
|
2024
2024
|
return m && (v.validator = function(p, h, d) {
|
|
2025
2025
|
var b = !1, g = function() {
|
|
2026
|
-
for (var _ = arguments.length,
|
|
2027
|
-
|
|
2026
|
+
for (var _ = arguments.length, C = new Array(_), S = 0; S < _; S++)
|
|
2027
|
+
C[S] = arguments[S];
|
|
2028
2028
|
Promise.resolve().then(function() {
|
|
2029
|
-
|
|
2029
|
+
Pe(!b, "Your validator function has already return a promise. `callback` will be ignored."), b || d.apply(void 0, C);
|
|
2030
2030
|
});
|
|
2031
2031
|
}, y = m(p, h, g);
|
|
2032
|
-
b = y && typeof y.then == "function" && typeof y.catch == "function",
|
|
2032
|
+
b = y && typeof y.then == "function" && typeof y.catch == "function", Pe(b, "`callback` is deprecated. Please return a promise instead."), b && y.then(function() {
|
|
2033
2033
|
d();
|
|
2034
|
-
}).catch(function(
|
|
2035
|
-
d(
|
|
2034
|
+
}).catch(function(x) {
|
|
2035
|
+
d(x || " ");
|
|
2036
2036
|
});
|
|
2037
2037
|
}), v;
|
|
2038
2038
|
}).sort(function(u, f) {
|
|
@@ -2142,7 +2142,7 @@ function Ie(e) {
|
|
|
2142
2142
|
function hi(e, t) {
|
|
2143
2143
|
var r = {};
|
|
2144
2144
|
return t.forEach(function(n) {
|
|
2145
|
-
var a =
|
|
2145
|
+
var a = yt(e, n);
|
|
2146
2146
|
r = lt(r, n, a);
|
|
2147
2147
|
}), r;
|
|
2148
2148
|
}
|
|
@@ -2221,10 +2221,10 @@ var Ra = /* @__PURE__ */ (function(e) {
|
|
|
2221
2221
|
} else
|
|
2222
2222
|
a.metaCache = null;
|
|
2223
2223
|
}), w(de(a), "onStoreChange", function(l, c, u) {
|
|
2224
|
-
var f = a.props, m = f.shouldUpdate, v = f.dependencies, p = v === void 0 ? [] : v, h = f.onReset, d = u.store, b = a.getNamePath(), g = a.getValue(l), y = a.getValue(d),
|
|
2224
|
+
var f = a.props, m = f.shouldUpdate, v = f.dependencies, p = v === void 0 ? [] : v, h = f.onReset, d = u.store, b = a.getNamePath(), g = a.getValue(l), y = a.getValue(d), x = c && Ht(c, b);
|
|
2225
2225
|
switch (u.type === "valueUpdate" && u.source === "external" && !Vn(g, y) && (a.touched = !0, a.dirty = !0, a.validatePromise = null, a.errors = it, a.warnings = it, a.triggerMetaEvent()), u.type) {
|
|
2226
2226
|
case "reset":
|
|
2227
|
-
if (!c ||
|
|
2227
|
+
if (!c || x) {
|
|
2228
2228
|
a.touched = !1, a.dirty = !1, a.validatePromise = void 0, a.errors = it, a.warnings = it, a.triggerMetaEvent(), h?.(), a.refresh();
|
|
2229
2229
|
return;
|
|
2230
2230
|
}
|
|
@@ -2244,7 +2244,7 @@ var Ra = /* @__PURE__ */ (function(e) {
|
|
|
2244
2244
|
}
|
|
2245
2245
|
case "setField": {
|
|
2246
2246
|
var _ = u.data;
|
|
2247
|
-
if (
|
|
2247
|
+
if (x) {
|
|
2248
2248
|
"touched" in _ && (a.touched = _.touched), "validating" in _ && !("originRCField" in _) && (a.validatePromise = _.validating ? Promise.resolve([]) : null), "errors" in _ && (a.errors = _.errors || it), "warnings" in _ && (a.warnings = _.warnings || it), a.dirty = !0, a.triggerMetaEvent(), a.reRender();
|
|
2249
2249
|
return;
|
|
2250
2250
|
} else if ("value" in _ && Ht(c, b, !0)) {
|
|
@@ -2258,8 +2258,8 @@ var Ra = /* @__PURE__ */ (function(e) {
|
|
|
2258
2258
|
break;
|
|
2259
2259
|
}
|
|
2260
2260
|
case "dependenciesUpdate": {
|
|
2261
|
-
var
|
|
2262
|
-
if (
|
|
2261
|
+
var C = p.map(Ie);
|
|
2262
|
+
if (C.some(function(S) {
|
|
2263
2263
|
return Ht(u.relatedFields, S);
|
|
2264
2264
|
})) {
|
|
2265
2265
|
a.reRender();
|
|
@@ -2268,7 +2268,7 @@ var Ra = /* @__PURE__ */ (function(e) {
|
|
|
2268
2268
|
break;
|
|
2269
2269
|
}
|
|
2270
2270
|
default:
|
|
2271
|
-
if (
|
|
2271
|
+
if (x || (!p.length || b.length || m) && wn(m, l, d, g, y, u)) {
|
|
2272
2272
|
a.reRender();
|
|
2273
2273
|
return;
|
|
2274
2274
|
}
|
|
@@ -2277,7 +2277,7 @@ var Ra = /* @__PURE__ */ (function(e) {
|
|
|
2277
2277
|
m === !0 && a.reRender();
|
|
2278
2278
|
}), w(de(a), "validateRules", function(l) {
|
|
2279
2279
|
var c = a.getNamePath(), u = a.getValue(), f = l || {}, m = f.triggerName, v = f.validateOnly, p = v === void 0 ? !1 : v, h = Promise.resolve().then(/* @__PURE__ */ Sr(/* @__PURE__ */ st().mark(function d() {
|
|
2280
|
-
var b, g, y,
|
|
2280
|
+
var b, g, y, x, _, C, S;
|
|
2281
2281
|
return st().wrap(function(P) {
|
|
2282
2282
|
for (; ; ) switch (P.prev = P.next) {
|
|
2283
2283
|
case 0:
|
|
@@ -2287,7 +2287,7 @@ var Ra = /* @__PURE__ */ (function(e) {
|
|
|
2287
2287
|
}
|
|
2288
2288
|
return P.abrupt("return", []);
|
|
2289
2289
|
case 2:
|
|
2290
|
-
if (b = a.props, g = b.validateFirst, y = g === void 0 ? !1 : g,
|
|
2290
|
+
if (b = a.props, g = b.validateFirst, y = g === void 0 ? !1 : g, x = b.messageVariables, _ = b.validateDebounce, C = a.getRules(), m && (C = C.filter(function(R) {
|
|
2291
2291
|
return R;
|
|
2292
2292
|
}).filter(function(R) {
|
|
2293
2293
|
var N = R.validateTrigger;
|
|
@@ -2309,7 +2309,7 @@ var Ra = /* @__PURE__ */ (function(e) {
|
|
|
2309
2309
|
}
|
|
2310
2310
|
return P.abrupt("return", []);
|
|
2311
2311
|
case 10:
|
|
2312
|
-
return S = cd(c, u,
|
|
2312
|
+
return S = cd(c, u, C, l, y, x), S.catch(function(R) {
|
|
2313
2313
|
return R;
|
|
2314
2314
|
}).then(function() {
|
|
2315
2315
|
var R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : it;
|
|
@@ -2337,7 +2337,7 @@ var Ra = /* @__PURE__ */ (function(e) {
|
|
|
2337
2337
|
}), w(de(a), "isFieldDirty", function() {
|
|
2338
2338
|
if (a.dirty || a.props.initialValue !== void 0)
|
|
2339
2339
|
return !0;
|
|
2340
|
-
var l = a.props.fieldContext, c = l.getInternalHooks(
|
|
2340
|
+
var l = a.props.fieldContext, c = l.getInternalHooks(Pt), u = c.getInitialValue;
|
|
2341
2341
|
return u(a.getNamePath()) !== void 0;
|
|
2342
2342
|
}), w(de(a), "getErrors", function() {
|
|
2343
2343
|
return a.errors;
|
|
@@ -2377,13 +2377,13 @@ var Ra = /* @__PURE__ */ (function(e) {
|
|
|
2377
2377
|
};
|
|
2378
2378
|
}), w(de(a), "getValue", function(l) {
|
|
2379
2379
|
var c = a.props.fieldContext.getFieldsValue, u = a.getNamePath();
|
|
2380
|
-
return
|
|
2380
|
+
return yt(l || c(!0), u);
|
|
2381
2381
|
}), w(de(a), "getControlled", function() {
|
|
2382
|
-
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = a.props, u = c.name, f = c.trigger, m = c.validateTrigger, v = c.getValueFromEvent, p = c.normalize, h = c.valuePropName, d = c.getValueProps, b = c.fieldContext, g = m !== void 0 ? m : b.validateTrigger, y = a.getNamePath(),
|
|
2382
|
+
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = a.props, u = c.name, f = c.trigger, m = c.validateTrigger, v = c.getValueFromEvent, p = c.normalize, h = c.valuePropName, d = c.getValueProps, b = c.fieldContext, g = m !== void 0 ? m : b.validateTrigger, y = a.getNamePath(), x = b.getInternalHooks, _ = b.getFieldsValue, C = x(Pt), S = C.dispatch, $ = a.getValue(), P = d || function(O) {
|
|
2383
2383
|
return w({}, h, O);
|
|
2384
2384
|
}, R = l[f], N = u !== void 0 ? P($) : {};
|
|
2385
2385
|
process.env.NODE_ENV !== "production" && N && Object.keys(N).forEach(function(O) {
|
|
2386
|
-
|
|
2386
|
+
Pe(typeof N[O] != "function", "It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(O, ")"));
|
|
2387
2387
|
});
|
|
2388
2388
|
var D = k(k({}, l), N);
|
|
2389
2389
|
D[f] = function() {
|
|
@@ -2410,7 +2410,7 @@ var Ra = /* @__PURE__ */ (function(e) {
|
|
|
2410
2410
|
};
|
|
2411
2411
|
}), D;
|
|
2412
2412
|
}), n.fieldContext) {
|
|
2413
|
-
var i = n.fieldContext.getInternalHooks, o = i(
|
|
2413
|
+
var i = n.fieldContext.getInternalHooks, o = i(Pt), s = o.initEntityValue;
|
|
2414
2414
|
s(de(a));
|
|
2415
2415
|
}
|
|
2416
2416
|
return a;
|
|
@@ -2420,7 +2420,7 @@ var Ra = /* @__PURE__ */ (function(e) {
|
|
|
2420
2420
|
value: function() {
|
|
2421
2421
|
var a = this.props, i = a.shouldUpdate, o = a.fieldContext;
|
|
2422
2422
|
if (this.mounted = !0, o) {
|
|
2423
|
-
var s = o.getInternalHooks, l = s(
|
|
2423
|
+
var s = o.getInternalHooks, l = s(Pt), c = l.registerField;
|
|
2424
2424
|
this.cancelRegisterFunc = c(this);
|
|
2425
2425
|
}
|
|
2426
2426
|
i === !0 && this.reRender();
|
|
@@ -2439,7 +2439,7 @@ var Ra = /* @__PURE__ */ (function(e) {
|
|
|
2439
2439
|
key: "render",
|
|
2440
2440
|
value: function() {
|
|
2441
2441
|
var a = this.state.resetCount, i = this.props.children, o = this.getOnlyChild(i), s = o.child, l = o.isFunction, c;
|
|
2442
|
-
return l ? c = s : /* @__PURE__ */ F.isValidElement(s) ? c = /* @__PURE__ */ F.cloneElement(s, this.getControlled(s.props)) : (
|
|
2442
|
+
return l ? c = s : /* @__PURE__ */ F.isValidElement(s) ? c = /* @__PURE__ */ F.cloneElement(s, this.getControlled(s.props)) : (Pe(!s, "`children` of Field is not validate ReactElement."), c = s), /* @__PURE__ */ F.createElement(F.Fragment, {
|
|
2443
2443
|
key: a
|
|
2444
2444
|
}, c);
|
|
2445
2445
|
}
|
|
@@ -2451,8 +2451,8 @@ w(Ra, "defaultProps", {
|
|
|
2451
2451
|
valuePropName: "value"
|
|
2452
2452
|
});
|
|
2453
2453
|
function Po(e) {
|
|
2454
|
-
var t, r = e.name, n =
|
|
2455
|
-
return s || (l = "_".concat((o || []).join("_"))), process.env.NODE_ENV !== "production" && n.preserve === !1 && s && o.length <= 1 &&
|
|
2454
|
+
var t, r = e.name, n = St(e, hd), a = F.useContext(Wt), i = F.useContext(Qr), o = r !== void 0 ? Ie(r) : void 0, s = (t = n.isListField) !== null && t !== void 0 ? t : !!i, l = "keep";
|
|
2455
|
+
return s || (l = "_".concat((o || []).join("_"))), process.env.NODE_ENV !== "production" && n.preserve === !1 && s && o.length <= 1 && Pe(!1, "`preserve` should not apply on Form.List fields."), /* @__PURE__ */ F.createElement(Ra, ht({
|
|
2456
2456
|
key: l,
|
|
2457
2457
|
name: o,
|
|
2458
2458
|
isListField: s
|
|
@@ -2480,7 +2480,7 @@ function md(e) {
|
|
|
2480
2480
|
};
|
|
2481
2481
|
}, [f]);
|
|
2482
2482
|
if (typeof n != "function")
|
|
2483
|
-
return
|
|
2483
|
+
return Pe(!1, "Form.List only accepts function as children."), null;
|
|
2484
2484
|
var p = function(d, b, g) {
|
|
2485
2485
|
var y = g.source;
|
|
2486
2486
|
return y === "internal" ? !1 : d !== b;
|
|
@@ -2498,13 +2498,13 @@ function md(e) {
|
|
|
2498
2498
|
isList: !0,
|
|
2499
2499
|
isListField: o ?? !!l
|
|
2500
2500
|
}, function(h, d) {
|
|
2501
|
-
var b = h.value, g = b === void 0 ? [] : b, y = h.onChange,
|
|
2502
|
-
var P =
|
|
2501
|
+
var b = h.value, g = b === void 0 ? [] : b, y = h.onChange, x = s.getFieldValue, _ = function() {
|
|
2502
|
+
var P = x(f || []);
|
|
2503
2503
|
return P || [];
|
|
2504
|
-
},
|
|
2504
|
+
}, C = {
|
|
2505
2505
|
add: function(P, R) {
|
|
2506
2506
|
var N = _();
|
|
2507
|
-
R >= 0 && R <= N.length ? (u.keys = [].concat(te(u.keys.slice(0, R)), [u.id], te(u.keys.slice(R))), y([].concat(te(N.slice(0, R)), [P], te(N.slice(R))))) : (process.env.NODE_ENV !== "production" && (R < 0 || R > N.length) &&
|
|
2507
|
+
R >= 0 && R <= N.length ? (u.keys = [].concat(te(u.keys.slice(0, R)), [u.id], te(u.keys.slice(R))), y([].concat(te(N.slice(0, R)), [P], te(N.slice(R))))) : (process.env.NODE_ENV !== "production" && (R < 0 || R > N.length) && Pe(!1, "The second parameter of the add function should be a valid positive number."), u.keys = [].concat(te(u.keys), [u.id]), y([].concat(te(N), [P]))), u.id += 1;
|
|
2508
2508
|
},
|
|
2509
2509
|
remove: function(P) {
|
|
2510
2510
|
var R = _(), N = new Set(Array.isArray(P) ? P : [P]);
|
|
@@ -2521,14 +2521,14 @@ function md(e) {
|
|
|
2521
2521
|
}
|
|
2522
2522
|
}
|
|
2523
2523
|
}, S = g || [];
|
|
2524
|
-
return Array.isArray(S) || (S = [], process.env.NODE_ENV !== "production" &&
|
|
2524
|
+
return Array.isArray(S) || (S = [], process.env.NODE_ENV !== "production" && Pe(!1, "Current value of '".concat(f.join(" > "), "' is not an array type."))), n(S.map(function($, P) {
|
|
2525
2525
|
var R = u.keys[P];
|
|
2526
2526
|
return R === void 0 && (u.keys[P] = u.id, R = u.keys[P], u.id += 1), {
|
|
2527
2527
|
name: P,
|
|
2528
2528
|
key: R,
|
|
2529
2529
|
isListField: !0
|
|
2530
2530
|
};
|
|
2531
|
-
}),
|
|
2531
|
+
}), C, d);
|
|
2532
2532
|
})));
|
|
2533
2533
|
}
|
|
2534
2534
|
function gd(e) {
|
|
@@ -2622,7 +2622,7 @@ var kt = /* @__PURE__ */ (function() {
|
|
|
2622
2622
|
getInternalHooks: r.getInternalHooks
|
|
2623
2623
|
};
|
|
2624
2624
|
}), w(this, "getInternalHooks", function(n) {
|
|
2625
|
-
return n ===
|
|
2625
|
+
return n === Pt ? (r.formHooked = !0, {
|
|
2626
2626
|
dispatch: r.dispatch,
|
|
2627
2627
|
initEntityValue: r.initEntityValue,
|
|
2628
2628
|
registerField: r.registerField,
|
|
@@ -2635,7 +2635,7 @@ var kt = /* @__PURE__ */ (function() {
|
|
|
2635
2635
|
setPreserve: r.setPreserve,
|
|
2636
2636
|
getInitialValue: r.getInitialValue,
|
|
2637
2637
|
registerWatch: r.registerWatch
|
|
2638
|
-
}) : (
|
|
2638
|
+
}) : (Pe(!1, "`getInternalHooks` is internal usage. Should not call directly."), null);
|
|
2639
2639
|
}), w(this, "useSubscribe", function(n) {
|
|
2640
2640
|
r.subscribable = n;
|
|
2641
2641
|
}), w(this, "prevWithoutPreserves", null), w(this, "setInitialValues", function(n, a) {
|
|
@@ -2643,7 +2643,7 @@ var kt = /* @__PURE__ */ (function() {
|
|
|
2643
2643
|
var i, o = jt(n, r.store);
|
|
2644
2644
|
(i = r.prevWithoutPreserves) === null || i === void 0 || i.map(function(s) {
|
|
2645
2645
|
var l = s.key;
|
|
2646
|
-
o = lt(o, l,
|
|
2646
|
+
o = lt(o, l, yt(n, l));
|
|
2647
2647
|
}), r.prevWithoutPreserves = null, r.updateStore(o);
|
|
2648
2648
|
}
|
|
2649
2649
|
}), w(this, "destroyForm", function(n) {
|
|
@@ -2656,7 +2656,7 @@ var kt = /* @__PURE__ */ (function() {
|
|
|
2656
2656
|
}), r.prevWithoutPreserves = a;
|
|
2657
2657
|
}
|
|
2658
2658
|
}), w(this, "getInitialValue", function(n) {
|
|
2659
|
-
var a =
|
|
2659
|
+
var a = yt(r.initialValues, n);
|
|
2660
2660
|
return n.length ? jt(a) : a;
|
|
2661
2661
|
}), w(this, "setCallbacks", function(n) {
|
|
2662
2662
|
r.callbacks = n;
|
|
@@ -2680,7 +2680,7 @@ var kt = /* @__PURE__ */ (function() {
|
|
|
2680
2680
|
}
|
|
2681
2681
|
}), w(this, "timeoutId", null), w(this, "warningUnhooked", function() {
|
|
2682
2682
|
process.env.NODE_ENV !== "production" && !r.timeoutId && typeof window < "u" && (r.timeoutId = setTimeout(function() {
|
|
2683
|
-
r.timeoutId = null, r.formHooked ||
|
|
2683
|
+
r.timeoutId = null, r.formHooked || Pe(!1, "Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?");
|
|
2684
2684
|
}));
|
|
2685
2685
|
}), w(this, "updateStore", function(n) {
|
|
2686
2686
|
r.store = n;
|
|
@@ -2729,7 +2729,7 @@ var kt = /* @__PURE__ */ (function() {
|
|
|
2729
2729
|
}), w(this, "getFieldValue", function(n) {
|
|
2730
2730
|
r.warningUnhooked();
|
|
2731
2731
|
var a = Ie(n);
|
|
2732
|
-
return
|
|
2732
|
+
return yt(r.store, a);
|
|
2733
2733
|
}), w(this, "getFieldsError", function(n) {
|
|
2734
2734
|
r.warningUnhooked();
|
|
2735
2735
|
var a = r.getFieldEntitiesForNamePathList(n);
|
|
@@ -2819,11 +2819,11 @@ var kt = /* @__PURE__ */ (function() {
|
|
|
2819
2819
|
if (f !== void 0) {
|
|
2820
2820
|
var m = u.getNamePath(), v = r.getInitialValue(m);
|
|
2821
2821
|
if (v !== void 0)
|
|
2822
|
-
|
|
2822
|
+
Pe(!1, "Form already set 'initialValues' with path '".concat(m.join("."), "'. Field can not overwrite it."));
|
|
2823
2823
|
else {
|
|
2824
2824
|
var p = a.get(m);
|
|
2825
2825
|
if (p && p.size > 1)
|
|
2826
|
-
|
|
2826
|
+
Pe(!1, "Multiple Field with path '".concat(m.join("."), "' set 'initialValue'. Can not decide which one to pick."));
|
|
2827
2827
|
else if (p) {
|
|
2828
2828
|
var h = r.getFieldValue(m), d = u.isListField();
|
|
2829
2829
|
!d && (!n.skipExist || h === void 0) && r.updateStore(lt(r.store, m, te(p)[0].value));
|
|
@@ -2863,7 +2863,7 @@ var kt = /* @__PURE__ */ (function() {
|
|
|
2863
2863
|
r.warningUnhooked();
|
|
2864
2864
|
var a = r.store, i = [];
|
|
2865
2865
|
n.forEach(function(o) {
|
|
2866
|
-
var s = o.name, l =
|
|
2866
|
+
var s = o.name, l = St(o, pd), c = Ie(s);
|
|
2867
2867
|
i.push(c), "value" in l && r.updateStore(lt(r.store, c, l.value)), r.notifyObservers(a, [c], {
|
|
2868
2868
|
type: "setField",
|
|
2869
2869
|
data: o
|
|
@@ -2883,7 +2883,7 @@ var kt = /* @__PURE__ */ (function() {
|
|
|
2883
2883
|
}), w(this, "initEntityValue", function(n) {
|
|
2884
2884
|
var a = n.props.initialValue;
|
|
2885
2885
|
if (a !== void 0) {
|
|
2886
|
-
var i = n.getNamePath(), o =
|
|
2886
|
+
var i = n.getNamePath(), o = yt(r.store, i);
|
|
2887
2887
|
o === void 0 && r.updateStore(lt(r.store, i, a));
|
|
2888
2888
|
}
|
|
2889
2889
|
}), w(this, "isMergedPreserve", function(n) {
|
|
@@ -3035,18 +3035,18 @@ var kt = /* @__PURE__ */ (function() {
|
|
|
3035
3035
|
if (s || l.push(g.getNamePath()), !(!g.props.rules || !g.props.rules.length) && !(p && !g.isFieldDirty())) {
|
|
3036
3036
|
var y = g.getNamePath();
|
|
3037
3037
|
if (f.add(y.join(u)), !s || Ht(l, y, v)) {
|
|
3038
|
-
var
|
|
3038
|
+
var x = g.validateRules(k({
|
|
3039
3039
|
validateMessages: k(k({}, Fo), r.validateMessages)
|
|
3040
3040
|
}, o));
|
|
3041
|
-
c.push(
|
|
3041
|
+
c.push(x.then(function() {
|
|
3042
3042
|
return {
|
|
3043
3043
|
name: y,
|
|
3044
3044
|
errors: [],
|
|
3045
3045
|
warnings: []
|
|
3046
3046
|
};
|
|
3047
3047
|
}).catch(function(_) {
|
|
3048
|
-
var
|
|
3049
|
-
return (
|
|
3048
|
+
var C, S = [], $ = [];
|
|
3049
|
+
return (C = _.forEach) === null || C === void 0 || C.call(_, function(P) {
|
|
3050
3050
|
var R = P.rule.warningOnly, N = P.errors;
|
|
3051
3051
|
R ? $.push.apply($, te(N)) : S.push.apply(S, te(N));
|
|
3052
3052
|
}), S.length ? Promise.reject({
|
|
@@ -3066,8 +3066,8 @@ var kt = /* @__PURE__ */ (function() {
|
|
|
3066
3066
|
r.lastValidatePromise = h, h.catch(function(g) {
|
|
3067
3067
|
return g;
|
|
3068
3068
|
}).then(function(g) {
|
|
3069
|
-
var y = g.map(function(
|
|
3070
|
-
var _ =
|
|
3069
|
+
var y = g.map(function(x) {
|
|
3070
|
+
var _ = x.name;
|
|
3071
3071
|
return _;
|
|
3072
3072
|
});
|
|
3073
3073
|
r.notifyObservers(r.store, y, {
|
|
@@ -3077,8 +3077,8 @@ var kt = /* @__PURE__ */ (function() {
|
|
|
3077
3077
|
var d = h.then(function() {
|
|
3078
3078
|
return r.lastValidatePromise === h ? Promise.resolve(r.getFieldsValue(l)) : Promise.reject([]);
|
|
3079
3079
|
}).catch(function(g) {
|
|
3080
|
-
var y = g.filter(function(
|
|
3081
|
-
return
|
|
3080
|
+
var y = g.filter(function(x) {
|
|
3081
|
+
return x && x.errors.length;
|
|
3082
3082
|
});
|
|
3083
3083
|
return Promise.reject({
|
|
3084
3084
|
values: r.getFieldsValue(l),
|
|
@@ -3160,10 +3160,10 @@ var Xn = /* @__PURE__ */ F.createContext({
|
|
|
3160
3160
|
})
|
|
3161
3161
|
}, i);
|
|
3162
3162
|
}, bd = ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed", "clearOnDestroy"], Sd = function(t, r) {
|
|
3163
|
-
var n = t.name, a = t.initialValues, i = t.fields, o = t.form, s = t.preserve, l = t.children, c = t.component, u = c === void 0 ? "form" : c, f = t.validateMessages, m = t.validateTrigger, v = m === void 0 ? "onChange" : m, p = t.onValuesChange, h = t.onFieldsChange, d = t.onFinish, b = t.onFinishFailed, g = t.clearOnDestroy, y =
|
|
3163
|
+
var n = t.name, a = t.initialValues, i = t.fields, o = t.form, s = t.preserve, l = t.children, c = t.component, u = c === void 0 ? "form" : c, f = t.validateMessages, m = t.validateTrigger, v = m === void 0 ? "onChange" : m, p = t.onValuesChange, h = t.onFieldsChange, d = t.onFinish, b = t.onFinishFailed, g = t.clearOnDestroy, y = St(t, bd), x = F.useRef(null), _ = F.useContext(Xn), C = Ao(o), S = J(C, 1), $ = S[0], P = $.getInternalHooks(Pt), R = P.useSubscribe, N = P.setInitialValues, D = P.setCallbacks, j = P.setValidateMessages, O = P.setPreserve, M = P.destroyForm;
|
|
3164
3164
|
F.useImperativeHandle(r, function() {
|
|
3165
3165
|
return k(k({}, $), {}, {
|
|
3166
|
-
nativeElement:
|
|
3166
|
+
nativeElement: x.current
|
|
3167
3167
|
});
|
|
3168
3168
|
}), F.useEffect(function() {
|
|
3169
3169
|
return _.registerForm(n, $), function() {
|
|
@@ -3173,9 +3173,9 @@ var Xn = /* @__PURE__ */ F.createContext({
|
|
|
3173
3173
|
onValuesChange: p,
|
|
3174
3174
|
onFieldsChange: function(z) {
|
|
3175
3175
|
if (_.triggerFormChange(n, z), h) {
|
|
3176
|
-
for (var re = arguments.length,
|
|
3177
|
-
|
|
3178
|
-
h.apply(void 0, [z].concat(
|
|
3176
|
+
for (var re = arguments.length, ie = new Array(re > 1 ? re - 1 : 0), ue = 1; ue < re; ue++)
|
|
3177
|
+
ie[ue - 1] = arguments[ue];
|
|
3178
|
+
h.apply(void 0, [z].concat(ie));
|
|
3179
3179
|
}
|
|
3180
3180
|
},
|
|
3181
3181
|
onFinish: function(z) {
|
|
@@ -3214,7 +3214,7 @@ var Xn = /* @__PURE__ */ F.createContext({
|
|
|
3214
3214
|
value: q
|
|
3215
3215
|
}, A));
|
|
3216
3216
|
return u === !1 ? G : /* @__PURE__ */ F.createElement(u, ht({}, y, {
|
|
3217
|
-
ref:
|
|
3217
|
+
ref: x,
|
|
3218
3218
|
onSubmit: function(z) {
|
|
3219
3219
|
z.preventDefault(), z.stopPropagation(), $.submit();
|
|
3220
3220
|
},
|
|
@@ -3233,7 +3233,7 @@ function gi(e) {
|
|
|
3233
3233
|
}
|
|
3234
3234
|
var _d = process.env.NODE_ENV !== "production" ? function(e) {
|
|
3235
3235
|
var t = e.join("__RC_FIELD_FORM_SPLIT__"), r = fe(t);
|
|
3236
|
-
|
|
3236
|
+
Pe(r.current === t, "`useWatch` is not support dynamic `namePath`. Please provide static instead.");
|
|
3237
3237
|
} : function() {
|
|
3238
3238
|
};
|
|
3239
3239
|
function Cd() {
|
|
@@ -3241,20 +3241,20 @@ function Cd() {
|
|
|
3241
3241
|
t[r] = arguments[r];
|
|
3242
3242
|
var n = t[0], a = t[1], i = a === void 0 ? {} : a, o = Tu(i) ? {
|
|
3243
3243
|
form: i
|
|
3244
|
-
} : i, s = o.form, l = ee(), c = J(l, 2), u = c[0], f = c[1], m =
|
|
3244
|
+
} : i, s = o.form, l = ee(), c = J(l, 2), u = c[0], f = c[1], m = $t(function() {
|
|
3245
3245
|
return gi(u);
|
|
3246
3246
|
}, [u]), v = fe(m);
|
|
3247
3247
|
v.current = m;
|
|
3248
|
-
var p =
|
|
3249
|
-
process.env.NODE_ENV !== "production" &&
|
|
3248
|
+
var p = bt(Wt), h = s || p, d = h && h._init;
|
|
3249
|
+
process.env.NODE_ENV !== "production" && Pe(t.length === 2 ? s ? d : !0 : d, "useWatch requires a form instance since it can not auto detect from context.");
|
|
3250
3250
|
var b = Ie(n), g = fe(b);
|
|
3251
3251
|
return g.current = b, _d(b), ge(
|
|
3252
3252
|
function() {
|
|
3253
3253
|
if (d) {
|
|
3254
|
-
var y = h.getFieldsValue,
|
|
3254
|
+
var y = h.getFieldsValue, x = h.getInternalHooks, _ = x(Pt), C = _.registerWatch, S = function(N, D) {
|
|
3255
3255
|
var j = o.preserve ? D : N;
|
|
3256
|
-
return typeof n == "function" ? n(j) :
|
|
3257
|
-
}, $ =
|
|
3256
|
+
return typeof n == "function" ? n(j) : yt(j, g.current);
|
|
3257
|
+
}, $ = C(function(R, N) {
|
|
3258
3258
|
var D = S(R, N), j = gi(D);
|
|
3259
3259
|
v.current !== j && (v.current = j, f(D));
|
|
3260
3260
|
}), P = S(y(), y(!0));
|
|
@@ -3339,7 +3339,7 @@ function Pa(e) {
|
|
|
3339
3339
|
}
|
|
3340
3340
|
function ko(e) {
|
|
3341
3341
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3342
|
-
if (!
|
|
3342
|
+
if (!wt())
|
|
3343
3343
|
return null;
|
|
3344
3344
|
var r = t.csp, n = t.prepend, a = t.priority, i = a === void 0 ? 0 : a, o = Od(n), s = o === "prependQueue", l = document.createElement("style");
|
|
3345
3345
|
l.setAttribute(pi, o), s && i && l.setAttribute(vi, "".concat(i)), r != null && r.nonce && (l.nonce = r?.nonce), l.innerHTML = e;
|
|
@@ -3380,7 +3380,7 @@ function Fd(e, t) {
|
|
|
3380
3380
|
Yn.set(e, a), e.removeChild(n);
|
|
3381
3381
|
}
|
|
3382
3382
|
}
|
|
3383
|
-
function
|
|
3383
|
+
function Nt(e, t) {
|
|
3384
3384
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = an(r), a = Pa(n), i = k(k({}, r), {}, {
|
|
3385
3385
|
styles: a
|
|
3386
3386
|
});
|
|
@@ -3429,19 +3429,19 @@ var Rd = /* @__PURE__ */ (function() {
|
|
|
3429
3429
|
i === null ? this.cache.delete(r) : this.cache.set(r, i);
|
|
3430
3430
|
}
|
|
3431
3431
|
}]), e;
|
|
3432
|
-
})(), Ut = "data-token-hash", dt = "data-css-hash", Pd = "data-cache-path",
|
|
3432
|
+
})(), Ut = "data-token-hash", dt = "data-css-hash", Pd = "data-cache-path", Tt = "__cssinjs_instance__";
|
|
3433
3433
|
function Nd() {
|
|
3434
3434
|
var e = Math.random().toString(12).slice(2);
|
|
3435
3435
|
if (typeof document < "u" && document.head && document.body) {
|
|
3436
3436
|
var t = document.body.querySelectorAll("style[".concat(dt, "]")) || [], r = document.head.firstChild;
|
|
3437
3437
|
Array.from(t).forEach(function(a) {
|
|
3438
|
-
a[
|
|
3438
|
+
a[Tt] = a[Tt] || e, a[Tt] === e && document.head.insertBefore(a, r);
|
|
3439
3439
|
});
|
|
3440
3440
|
var n = {};
|
|
3441
3441
|
Array.from(document.querySelectorAll("style[".concat(dt, "]"))).forEach(function(a) {
|
|
3442
3442
|
var i = a.getAttribute(dt);
|
|
3443
3443
|
if (n[i]) {
|
|
3444
|
-
if (a[
|
|
3444
|
+
if (a[Tt] === e) {
|
|
3445
3445
|
var o;
|
|
3446
3446
|
(o = a.parentNode) === null || o === void 0 || o.removeChild(a);
|
|
3447
3447
|
}
|
|
@@ -3588,8 +3588,8 @@ function ur(e) {
|
|
|
3588
3588
|
function Si(e, t) {
|
|
3589
3589
|
return pr("".concat(t, "_").concat(ur(e)));
|
|
3590
3590
|
}
|
|
3591
|
-
var Jn =
|
|
3592
|
-
function
|
|
3591
|
+
var Jn = wt();
|
|
3592
|
+
function Ae(e) {
|
|
3593
3593
|
return typeof e == "number" ? "".concat(e, "px") : e;
|
|
3594
3594
|
}
|
|
3595
3595
|
function Jr(e, t, r) {
|
|
@@ -3676,9 +3676,9 @@ if (process.env.NODE_ENV !== "production" && typeof module < "u" && module && mo
|
|
|
3676
3676
|
function Aa(e, t, r, n, a) {
|
|
3677
3677
|
var i = F.useContext(xr), o = i.cache, s = [e].concat(te(t)), l = Qn(s), c = Ud([l]), u = Kd(), f = function(h) {
|
|
3678
3678
|
o.opUpdate(l, function(d) {
|
|
3679
|
-
var b = d || [void 0, void 0], g = J(b, 2), y = g[0],
|
|
3680
|
-
process.env.NODE_ENV !== "production" && _ && u && (n?.(
|
|
3681
|
-
var S =
|
|
3679
|
+
var b = d || [void 0, void 0], g = J(b, 2), y = g[0], x = y === void 0 ? 0 : y, _ = g[1], C = _;
|
|
3680
|
+
process.env.NODE_ENV !== "production" && _ && u && (n?.(C, u), C = null);
|
|
3681
|
+
var S = C || r(), $ = [x, S];
|
|
3682
3682
|
return h ? h($) : $;
|
|
3683
3683
|
});
|
|
3684
3684
|
};
|
|
@@ -3701,23 +3701,23 @@ function Aa(e, t, r, n, a) {
|
|
|
3701
3701
|
return p && b === 0 && a?.(v), [b + 1, g];
|
|
3702
3702
|
}), function() {
|
|
3703
3703
|
o.opUpdate(l, function(h) {
|
|
3704
|
-
var d = h || [], b = J(d, 2), g = b[0], y = g === void 0 ? 0 : g,
|
|
3704
|
+
var d = h || [], b = J(d, 2), g = b[0], y = g === void 0 ? 0 : g, x = b[1], _ = y - 1;
|
|
3705
3705
|
return _ === 0 ? (c(function() {
|
|
3706
|
-
(p || !o.opGet(l)) && n?.(
|
|
3707
|
-
}), null) : [y - 1,
|
|
3706
|
+
(p || !o.opGet(l)) && n?.(x, !1);
|
|
3707
|
+
}), null) : [y - 1, x];
|
|
3708
3708
|
});
|
|
3709
3709
|
};
|
|
3710
3710
|
}, [l]), v;
|
|
3711
3711
|
}
|
|
3712
|
-
var Yd = {}, Qd = process.env.NODE_ENV !== "production" ? "css-dev-only-do-not-override" : "css",
|
|
3712
|
+
var Yd = {}, Qd = process.env.NODE_ENV !== "production" ? "css-dev-only-do-not-override" : "css", Rt = /* @__PURE__ */ new Map();
|
|
3713
3713
|
function Zd(e) {
|
|
3714
|
-
|
|
3714
|
+
Rt.set(e, (Rt.get(e) || 0) + 1);
|
|
3715
3715
|
}
|
|
3716
3716
|
function Jd(e, t) {
|
|
3717
3717
|
if (typeof document < "u") {
|
|
3718
3718
|
var r = document.querySelectorAll("style[".concat(Ut, '="').concat(e, '"]'));
|
|
3719
3719
|
r.forEach(function(n) {
|
|
3720
|
-
if (n[
|
|
3720
|
+
if (n[Tt] === t) {
|
|
3721
3721
|
var a;
|
|
3722
3722
|
(a = n.parentNode) === null || a === void 0 || a.removeChild(n);
|
|
3723
3723
|
}
|
|
@@ -3726,12 +3726,12 @@ function Jd(e, t) {
|
|
|
3726
3726
|
}
|
|
3727
3727
|
var ef = 0;
|
|
3728
3728
|
function tf(e, t) {
|
|
3729
|
-
|
|
3729
|
+
Rt.set(e, (Rt.get(e) || 0) - 1);
|
|
3730
3730
|
var r = /* @__PURE__ */ new Set();
|
|
3731
|
-
|
|
3731
|
+
Rt.forEach(function(n, a) {
|
|
3732
3732
|
n <= 0 && r.add(a);
|
|
3733
|
-
}),
|
|
3734
|
-
Jd(n, t),
|
|
3733
|
+
}), Rt.size - r.size > ef && r.forEach(function(n) {
|
|
3734
|
+
Jd(n, t), Rt.delete(n);
|
|
3735
3735
|
});
|
|
3736
3736
|
}
|
|
3737
3737
|
var rf = function(t, r, n, a) {
|
|
@@ -3739,37 +3739,37 @@ var rf = function(t, r, n, a) {
|
|
|
3739
3739
|
return a && (o = a(o)), o;
|
|
3740
3740
|
}, Ho = "token";
|
|
3741
3741
|
function nf(e, t) {
|
|
3742
|
-
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n =
|
|
3742
|
+
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = bt(xr), a = n.cache.instanceId, i = n.container, o = r.salt, s = o === void 0 ? "" : o, l = r.override, c = l === void 0 ? Yd : l, u = r.formatToken, f = r.getComputedToken, m = r.cssVar, v = kd(function() {
|
|
3743
3743
|
return Object.assign.apply(Object, [{}].concat(te(t)));
|
|
3744
3744
|
}, t), p = ur(v), h = ur(c), d = m ? ur(m) : "", b = Aa(Ho, [s, e.id, p, h, d], function() {
|
|
3745
|
-
var g, y = f ? f(v, c, e) : rf(v, c, e, u),
|
|
3745
|
+
var g, y = f ? f(v, c, e) : rf(v, c, e, u), x = k({}, y), _ = "";
|
|
3746
3746
|
if (m) {
|
|
3747
|
-
var
|
|
3747
|
+
var C = Do(y, m.key, {
|
|
3748
3748
|
prefix: m.prefix,
|
|
3749
3749
|
ignore: m.ignore,
|
|
3750
3750
|
unitless: m.unitless,
|
|
3751
3751
|
preserve: m.preserve
|
|
3752
|
-
}), S = J(
|
|
3752
|
+
}), S = J(C, 2);
|
|
3753
3753
|
y = S[0], _ = S[1];
|
|
3754
3754
|
}
|
|
3755
3755
|
var $ = Si(y, s);
|
|
3756
|
-
y._tokenKey = $,
|
|
3756
|
+
y._tokenKey = $, x._tokenKey = Si(x, s);
|
|
3757
3757
|
var P = (g = m?.key) !== null && g !== void 0 ? g : $;
|
|
3758
3758
|
y._themeKey = P, Zd(P);
|
|
3759
3759
|
var R = "".concat(Qd, "-").concat(pr($));
|
|
3760
|
-
return y._hashId = R, [y, R,
|
|
3760
|
+
return y._hashId = R, [y, R, x, _, m?.key || ""];
|
|
3761
3761
|
}, function(g) {
|
|
3762
3762
|
tf(g[0]._themeKey, a);
|
|
3763
3763
|
}, function(g) {
|
|
3764
|
-
var y = J(g, 4),
|
|
3764
|
+
var y = J(g, 4), x = y[0], _ = y[3];
|
|
3765
3765
|
if (m && _) {
|
|
3766
|
-
var
|
|
3766
|
+
var C = Nt(_, pr("css-variables-".concat(x._themeKey)), {
|
|
3767
3767
|
mark: dt,
|
|
3768
3768
|
prepend: "queue",
|
|
3769
3769
|
attachTo: i,
|
|
3770
3770
|
priority: -999
|
|
3771
3771
|
});
|
|
3772
|
-
|
|
3772
|
+
C[Tt] = a, C.setAttribute(Ut, x._themeKey);
|
|
3773
3773
|
}
|
|
3774
3774
|
});
|
|
3775
3775
|
return b;
|
|
@@ -3846,7 +3846,7 @@ function Bt(e, t) {
|
|
|
3846
3846
|
function qt(e, t, r) {
|
|
3847
3847
|
return e.slice(t, r);
|
|
3848
3848
|
}
|
|
3849
|
-
function
|
|
3849
|
+
function vt(e) {
|
|
3850
3850
|
return e.length;
|
|
3851
3851
|
}
|
|
3852
3852
|
function ff(e) {
|
|
@@ -3868,7 +3868,7 @@ function mf() {
|
|
|
3868
3868
|
function ft() {
|
|
3869
3869
|
return He = ct < Go ? Bt(Zt, ct++) : 0, Gt++, He === 10 && (Gt = 1, on++), He;
|
|
3870
3870
|
}
|
|
3871
|
-
function
|
|
3871
|
+
function Ot() {
|
|
3872
3872
|
return Bt(Zt, ct);
|
|
3873
3873
|
}
|
|
3874
3874
|
function Wr() {
|
|
@@ -3916,7 +3916,7 @@ function vr(e) {
|
|
|
3916
3916
|
return 0;
|
|
3917
3917
|
}
|
|
3918
3918
|
function gf(e) {
|
|
3919
|
-
return on = Gt = 1, Go =
|
|
3919
|
+
return on = Gt = 1, Go = vt(Zt = e), ct = 0, [];
|
|
3920
3920
|
}
|
|
3921
3921
|
function pf(e) {
|
|
3922
3922
|
return Zt = "", e;
|
|
@@ -3925,14 +3925,14 @@ function On(e) {
|
|
|
3925
3925
|
return qo(sn(ct - 1, ta(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
3926
3926
|
}
|
|
3927
3927
|
function vf(e) {
|
|
3928
|
-
for (; (He =
|
|
3928
|
+
for (; (He = Ot()) && He < 33; )
|
|
3929
3929
|
ft();
|
|
3930
3930
|
return vr(e) > 2 || vr(He) > 3 ? "" : " ";
|
|
3931
3931
|
}
|
|
3932
3932
|
function yf(e, t) {
|
|
3933
3933
|
for (; --t && ft() && !(He < 48 || He > 102 || He > 57 && He < 65 || He > 70 && He < 97); )
|
|
3934
3934
|
;
|
|
3935
|
-
return sn(e, Wr() + (t < 6 &&
|
|
3935
|
+
return sn(e, Wr() + (t < 6 && Ot() == 32 && ft() == 32));
|
|
3936
3936
|
}
|
|
3937
3937
|
function ta(e) {
|
|
3938
3938
|
for (; ft(); )
|
|
@@ -3958,12 +3958,12 @@ function ta(e) {
|
|
|
3958
3958
|
}
|
|
3959
3959
|
function bf(e, t) {
|
|
3960
3960
|
for (; ft() && e + He !== 57; )
|
|
3961
|
-
if (e + He === 84 &&
|
|
3961
|
+
if (e + He === 84 && Ot() === 47)
|
|
3962
3962
|
break;
|
|
3963
3963
|
return "/*" + sn(t, ct - 1) + "*" + Ia(e === 47 ? e : ft());
|
|
3964
3964
|
}
|
|
3965
3965
|
function Sf(e) {
|
|
3966
|
-
for (; !vr(
|
|
3966
|
+
for (; !vr(Ot()); )
|
|
3967
3967
|
ft();
|
|
3968
3968
|
return sn(e, ct);
|
|
3969
3969
|
}
|
|
@@ -3971,7 +3971,7 @@ function _f(e) {
|
|
|
3971
3971
|
return pf(Ur("", null, null, null, [""], e = gf(e), 0, [0], e));
|
|
3972
3972
|
}
|
|
3973
3973
|
function Ur(e, t, r, n, a, i, o, s, l) {
|
|
3974
|
-
for (var c = 0, u = 0, f = o, m = 0, v = 0, p = 0, h = 1, d = 1, b = 1, g = 0, y = "",
|
|
3974
|
+
for (var c = 0, u = 0, f = o, m = 0, v = 0, p = 0, h = 1, d = 1, b = 1, g = 0, y = "", x = a, _ = i, C = n, S = y; d; )
|
|
3975
3975
|
switch (p = g, g = ft()) {
|
|
3976
3976
|
// (
|
|
3977
3977
|
case 40:
|
|
@@ -3998,10 +3998,10 @@ function Ur(e, t, r, n, a, i, o, s, l) {
|
|
|
3998
3998
|
continue;
|
|
3999
3999
|
// /
|
|
4000
4000
|
case 47:
|
|
4001
|
-
switch (
|
|
4001
|
+
switch (Ot()) {
|
|
4002
4002
|
case 42:
|
|
4003
4003
|
case 47:
|
|
4004
|
-
Nr(Cf(bf(ft(), Wr()), t, r, l), l), (vr(p || 1) == 5 || vr(
|
|
4004
|
+
Nr(Cf(bf(ft(), Wr()), t, r, l), l), (vr(p || 1) == 5 || vr(Ot() || 1) == 5) && vt(S) && qt(S, -1, void 0) !== " " && (S += " ");
|
|
4005
4005
|
break;
|
|
4006
4006
|
default:
|
|
4007
4007
|
S += "/";
|
|
@@ -4009,7 +4009,7 @@ function Ur(e, t, r, n, a, i, o, s, l) {
|
|
|
4009
4009
|
break;
|
|
4010
4010
|
// {
|
|
4011
4011
|
case 123 * h:
|
|
4012
|
-
s[c++] =
|
|
4012
|
+
s[c++] = vt(S) * b;
|
|
4013
4013
|
// } ; \0
|
|
4014
4014
|
case 125 * h:
|
|
4015
4015
|
case 59:
|
|
@@ -4021,16 +4021,16 @@ function Ur(e, t, r, n, a, i, o, s, l) {
|
|
|
4021
4021
|
d = 0;
|
|
4022
4022
|
// ;
|
|
4023
4023
|
case 59 + u:
|
|
4024
|
-
b == -1 && (S = zr(S, /\f/g, "")), v > 0 && (
|
|
4024
|
+
b == -1 && (S = zr(S, /\f/g, "")), v > 0 && (vt(S) - f || h === 0 && p === 47) && Nr(v > 32 ? xi(S + ";", n, r, f - 1, l) : xi(zr(S, " ", "") + ";", n, r, f - 2, l), l);
|
|
4025
4025
|
break;
|
|
4026
4026
|
// @ ;
|
|
4027
4027
|
case 59:
|
|
4028
4028
|
S += ";";
|
|
4029
4029
|
// { rule/at-rule
|
|
4030
4030
|
default:
|
|
4031
|
-
if (Nr(
|
|
4031
|
+
if (Nr(C = Ci(S, t, r, c, u, a, s, y, x = [], _ = [], f, i), i), g === 123)
|
|
4032
4032
|
if (u === 0)
|
|
4033
|
-
Ur(S, t,
|
|
4033
|
+
Ur(S, t, C, C, x, i, f, s, _);
|
|
4034
4034
|
else {
|
|
4035
4035
|
switch (m) {
|
|
4036
4036
|
// c(ontainer)
|
|
@@ -4046,14 +4046,14 @@ function Ur(e, t, r, n, a, i, o, s, l) {
|
|
|
4046
4046
|
case 109:
|
|
4047
4047
|
case 115:
|
|
4048
4048
|
}
|
|
4049
|
-
u ? Ur(e,
|
|
4049
|
+
u ? Ur(e, C, C, n && Nr(Ci(e, C, C, 0, 0, a, s, y, a, x = [], f, _), _), a, _, f, s, n ? x : _) : Ur(S, C, C, C, [""], _, 0, s, _);
|
|
4050
4050
|
}
|
|
4051
4051
|
}
|
|
4052
4052
|
c = u = v = 0, h = b = 1, y = S = "", f = o;
|
|
4053
4053
|
break;
|
|
4054
4054
|
// :
|
|
4055
4055
|
case 58:
|
|
4056
|
-
f = 1 +
|
|
4056
|
+
f = 1 + vt(S), v = p;
|
|
4057
4057
|
default:
|
|
4058
4058
|
if (h < 1) {
|
|
4059
4059
|
if (g == 123)
|
|
@@ -4068,23 +4068,23 @@ function Ur(e, t, r, n, a, i, o, s, l) {
|
|
|
4068
4068
|
break;
|
|
4069
4069
|
// ,
|
|
4070
4070
|
case 44:
|
|
4071
|
-
s[c++] = (
|
|
4071
|
+
s[c++] = (vt(S) - 1) * b, b = 1;
|
|
4072
4072
|
break;
|
|
4073
4073
|
// @
|
|
4074
4074
|
case 64:
|
|
4075
|
-
|
|
4075
|
+
Ot() === 45 && (S += On(ft())), m = Ot(), u = f = vt(y = S += Sf(Wr())), g++;
|
|
4076
4076
|
break;
|
|
4077
4077
|
// -
|
|
4078
4078
|
case 45:
|
|
4079
|
-
p === 45 &&
|
|
4079
|
+
p === 45 && vt(S) == 2 && (h = 0);
|
|
4080
4080
|
}
|
|
4081
4081
|
}
|
|
4082
4082
|
return i;
|
|
4083
4083
|
}
|
|
4084
4084
|
function Ci(e, t, r, n, a, i, o, s, l, c, u, f) {
|
|
4085
4085
|
for (var m = a - 1, v = a === 0 ? i : [""], p = ff(v), h = 0, d = 0, b = 0; h < n; ++h)
|
|
4086
|
-
for (var g = 0, y = qt(e, m + 1, m = Uo(d = o[h])),
|
|
4087
|
-
(
|
|
4086
|
+
for (var g = 0, y = qt(e, m + 1, m = Uo(d = o[h])), x = e; g < p; ++g)
|
|
4087
|
+
(x = qo(d > 0 ? v[g] + " " + y : zr(y, /&\f/g, v[g]))) && (l[b++] = x);
|
|
4088
4088
|
return ka(e, t, r, a === 0 ? zo : s, l, c, u, f);
|
|
4089
4089
|
}
|
|
4090
4090
|
function Cf(e, t, r, n) {
|
|
@@ -4111,13 +4111,13 @@ function xf(e, t, r, n) {
|
|
|
4111
4111
|
case lf:
|
|
4112
4112
|
return e.return = e.value + "{" + ra(e.children, n) + "}";
|
|
4113
4113
|
case zo:
|
|
4114
|
-
if (!
|
|
4114
|
+
if (!vt(e.value = e.props.join(","))) return "";
|
|
4115
4115
|
}
|
|
4116
|
-
return
|
|
4116
|
+
return vt(r = ra(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
|
|
4117
4117
|
}
|
|
4118
4118
|
function Ko(e, t) {
|
|
4119
4119
|
var r = t.path, n = t.parentSelectors;
|
|
4120
|
-
|
|
4120
|
+
Pe(!1, "[Ant Design CSS-in-JS] ".concat(r ? "Error in ".concat(r, ": ") : "").concat(e).concat(n.length ? " Selector: ".concat(n.join(" | ")) : ""));
|
|
4121
4121
|
}
|
|
4122
4122
|
var wf = function(t, r, n) {
|
|
4123
4123
|
if (t === "content") {
|
|
@@ -4126,15 +4126,15 @@ var wf = function(t, r, n) {
|
|
|
4126
4126
|
}
|
|
4127
4127
|
}, Ef = function(t, r, n) {
|
|
4128
4128
|
t === "animation" && n.hashId && r !== "none" && Ko("You seem to be using hashed animation '".concat(r, "', in which case 'animationName' with Keyframe as value is recommended."), n);
|
|
4129
|
-
}, wi = "data-ant-cssinjs-cache-path", Xo = "_FILE_STYLE__",
|
|
4129
|
+
}, wi = "data-ant-cssinjs-cache-path", Xo = "_FILE_STYLE__", At, Yo = !0;
|
|
4130
4130
|
function $f() {
|
|
4131
|
-
if (!
|
|
4131
|
+
if (!At && (At = {}, wt())) {
|
|
4132
4132
|
var e = document.createElement("div");
|
|
4133
4133
|
e.className = wi, e.style.position = "fixed", e.style.visibility = "hidden", e.style.top = "-9999px", document.body.appendChild(e);
|
|
4134
4134
|
var t = getComputedStyle(e).content || "";
|
|
4135
4135
|
t = t.replace(/^"/, "").replace(/"$/, ""), t.split(";").forEach(function(a) {
|
|
4136
4136
|
var i = a.split(":"), o = J(i, 2), s = o[0], l = o[1];
|
|
4137
|
-
|
|
4137
|
+
At[s] = l;
|
|
4138
4138
|
});
|
|
4139
4139
|
var r = document.querySelector("style[".concat(wi, "]"));
|
|
4140
4140
|
if (r) {
|
|
@@ -4145,16 +4145,16 @@ function $f() {
|
|
|
4145
4145
|
}
|
|
4146
4146
|
}
|
|
4147
4147
|
function Tf(e) {
|
|
4148
|
-
return $f(), !!
|
|
4148
|
+
return $f(), !!At[e];
|
|
4149
4149
|
}
|
|
4150
4150
|
function Of(e) {
|
|
4151
|
-
var t =
|
|
4152
|
-
if (t &&
|
|
4151
|
+
var t = At[e], r = null;
|
|
4152
|
+
if (t && wt())
|
|
4153
4153
|
if (Yo)
|
|
4154
4154
|
r = Xo;
|
|
4155
4155
|
else {
|
|
4156
|
-
var n = document.querySelector("style[".concat(dt, '="').concat(
|
|
4157
|
-
n ? r = n.innerHTML : delete
|
|
4156
|
+
var n = document.querySelector("style[".concat(dt, '="').concat(At[e], '"]'));
|
|
4157
|
+
n ? r = n.innerHTML : delete At[e];
|
|
4158
4158
|
}
|
|
4159
4159
|
return [r, t];
|
|
4160
4160
|
}
|
|
@@ -4180,37 +4180,37 @@ var Mf = function e(t) {
|
|
|
4180
4180
|
root: !0,
|
|
4181
4181
|
parentSelectors: []
|
|
4182
4182
|
}, a = n.root, i = n.injectHash, o = n.parentSelectors, s = r.hashId, l = r.layer, c = r.path, u = r.hashPriority, f = r.transformers, m = f === void 0 ? [] : f, v = r.linters, p = v === void 0 ? [] : v, h = "", d = {};
|
|
4183
|
-
function b(
|
|
4184
|
-
var _ =
|
|
4183
|
+
function b(x) {
|
|
4184
|
+
var _ = x.getName(s);
|
|
4185
4185
|
if (!d[_]) {
|
|
4186
|
-
var
|
|
4186
|
+
var C = e(x.style, r, {
|
|
4187
4187
|
root: !1,
|
|
4188
4188
|
parentSelectors: o
|
|
4189
|
-
}), S = J(
|
|
4190
|
-
d[_] = "@keyframes ".concat(
|
|
4189
|
+
}), S = J(C, 1), $ = S[0];
|
|
4190
|
+
d[_] = "@keyframes ".concat(x.getName(s)).concat($);
|
|
4191
4191
|
}
|
|
4192
4192
|
}
|
|
4193
|
-
function g(
|
|
4193
|
+
function g(x) {
|
|
4194
4194
|
var _ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
4195
|
-
return
|
|
4196
|
-
Array.isArray(
|
|
4195
|
+
return x.forEach(function(C) {
|
|
4196
|
+
Array.isArray(C) ? g(C, _) : C && _.push(C);
|
|
4197
4197
|
}), _;
|
|
4198
4198
|
}
|
|
4199
4199
|
var y = g(Array.isArray(t) ? t : [t]);
|
|
4200
|
-
return y.forEach(function(
|
|
4201
|
-
var _ = typeof
|
|
4200
|
+
return y.forEach(function(x) {
|
|
4201
|
+
var _ = typeof x == "string" && !a ? {} : x;
|
|
4202
4202
|
if (typeof _ == "string")
|
|
4203
4203
|
h += "".concat(_, `
|
|
4204
4204
|
`);
|
|
4205
4205
|
else if (_._keyframe)
|
|
4206
4206
|
b(_);
|
|
4207
4207
|
else {
|
|
4208
|
-
var
|
|
4208
|
+
var C = m.reduce(function(S, $) {
|
|
4209
4209
|
var P;
|
|
4210
4210
|
return ($ == null || (P = $.visit) === null || P === void 0 ? void 0 : P.call($, S)) || S;
|
|
4211
4211
|
}, _);
|
|
4212
|
-
Object.keys(
|
|
4213
|
-
var $ =
|
|
4212
|
+
Object.keys(C).forEach(function(S) {
|
|
4213
|
+
var $ = C[S];
|
|
4214
4214
|
if (ne($) === "object" && $ && (S !== "animationName" || !$._keyframe) && !Ff($)) {
|
|
4215
4215
|
var P = !1, R = S.trim(), N = !1;
|
|
4216
4216
|
(a || i) && s ? R.startsWith("@") ? P = !0 : R === "&" ? R = Ei("", s, u) : R = Ei(S, s, u) : a && !s && (R === "&" || R === "") && (R = "", N = !0);
|
|
@@ -4241,8 +4241,8 @@ var Mf = function e(t) {
|
|
|
4241
4241
|
}
|
|
4242
4242
|
});
|
|
4243
4243
|
}
|
|
4244
|
-
}), a ? l && (h && (h = "@layer ".concat(l.name, " {").concat(h, "}")), l.dependencies && (d["@layer ".concat(l.name)] = l.dependencies.map(function(
|
|
4245
|
-
return "@layer ".concat(
|
|
4244
|
+
}), a ? l && (h && (h = "@layer ".concat(l.name, " {").concat(h, "}")), l.dependencies && (d["@layer ".concat(l.name)] = l.dependencies.map(function(x) {
|
|
4245
|
+
return "@layer ".concat(x, ", ").concat(l.name, ";");
|
|
4246
4246
|
}).join(`
|
|
4247
4247
|
`))) : h = "{".concat(h, "}"), [h, d];
|
|
4248
4248
|
};
|
|
@@ -4254,16 +4254,16 @@ function Rf() {
|
|
|
4254
4254
|
}
|
|
4255
4255
|
var es = "style";
|
|
4256
4256
|
function na(e, t) {
|
|
4257
|
-
var r = e.token, n = e.path, a = e.hashId, i = e.layer, o = e.nonce, s = e.clientOnly, l = e.order, c = l === void 0 ? 0 : l, u = F.useContext(xr), f = u.autoClear, m = u.mock, v = u.defaultCache, p = u.hashPriority, h = u.container, d = u.ssrInline, b = u.transformers, g = u.linters, y = u.cache,
|
|
4258
|
-
|
|
4257
|
+
var r = e.token, n = e.path, a = e.hashId, i = e.layer, o = e.nonce, s = e.clientOnly, l = e.order, c = l === void 0 ? 0 : l, u = F.useContext(xr), f = u.autoClear, m = u.mock, v = u.defaultCache, p = u.hashPriority, h = u.container, d = u.ssrInline, b = u.transformers, g = u.linters, y = u.cache, x = u.layer, _ = r._tokenKey, C = [_];
|
|
4258
|
+
x && C.push("layer"), C.push.apply(C, te(n));
|
|
4259
4259
|
var S = Jn;
|
|
4260
4260
|
process.env.NODE_ENV !== "production" && m !== void 0 && (S = m === "client");
|
|
4261
4261
|
var $ = Aa(
|
|
4262
4262
|
es,
|
|
4263
|
-
|
|
4263
|
+
C,
|
|
4264
4264
|
// Create cache if needed
|
|
4265
4265
|
function() {
|
|
4266
|
-
var j =
|
|
4266
|
+
var j = C.join("|");
|
|
4267
4267
|
if (Tf(j)) {
|
|
4268
4268
|
var O = Of(j), M = J(O, 2), E = M[0], A = M[1];
|
|
4269
4269
|
if (E)
|
|
@@ -4272,11 +4272,11 @@ function na(e, t) {
|
|
|
4272
4272
|
var I = t(), B = Mf(I, {
|
|
4273
4273
|
hashId: a,
|
|
4274
4274
|
hashPriority: p,
|
|
4275
|
-
layer:
|
|
4275
|
+
layer: x ? i : void 0,
|
|
4276
4276
|
path: n.join("-"),
|
|
4277
4277
|
transformers: b,
|
|
4278
4278
|
linters: g
|
|
4279
|
-
}), H = J(B, 2), q = H[0], G = H[1], X = qr(q), z = Jo(
|
|
4279
|
+
}), H = J(B, 2), q = H[0], G = H[1], X = qr(q), z = Jo(C, X);
|
|
4280
4280
|
return [X, _, z, G, s, c];
|
|
4281
4281
|
},
|
|
4282
4282
|
// Remove cache if no need
|
|
@@ -4295,7 +4295,7 @@ function na(e, t) {
|
|
|
4295
4295
|
if (S && M !== Xo) {
|
|
4296
4296
|
var I = {
|
|
4297
4297
|
mark: dt,
|
|
4298
|
-
prepend:
|
|
4298
|
+
prepend: x ? !1 : "queue",
|
|
4299
4299
|
attachTo: h,
|
|
4300
4300
|
priority: c
|
|
4301
4301
|
}, B = typeof o == "function" ? o() : o;
|
|
@@ -4306,13 +4306,13 @@ function na(e, t) {
|
|
|
4306
4306
|
Object.keys(A).forEach(function(X) {
|
|
4307
4307
|
X.startsWith("@layer") ? H.push(X) : q.push(X);
|
|
4308
4308
|
}), H.forEach(function(X) {
|
|
4309
|
-
|
|
4309
|
+
Nt(qr(A[X]), "_layer-".concat(X), k(k({}, I), {}, {
|
|
4310
4310
|
prepend: !0
|
|
4311
4311
|
}));
|
|
4312
4312
|
});
|
|
4313
|
-
var G =
|
|
4314
|
-
G[
|
|
4315
|
-
|
|
4313
|
+
var G = Nt(M, E, I);
|
|
4314
|
+
G[Tt] = y.instanceId, G.setAttribute(Ut, _), process.env.NODE_ENV !== "production" && G.setAttribute(Pd, C.join("|")), q.forEach(function(X) {
|
|
4315
|
+
Nt(qr(A[X]), "_effect-".concat(X), I);
|
|
4316
4316
|
});
|
|
4317
4317
|
}
|
|
4318
4318
|
}
|
|
@@ -4342,14 +4342,14 @@ var Pf = function(t, r, n) {
|
|
|
4342
4342
|
}
|
|
4343
4343
|
}), [u, s, v];
|
|
4344
4344
|
}, ts = "cssVar", Nf = function(t, r) {
|
|
4345
|
-
var n = t.key, a = t.prefix, i = t.unitless, o = t.ignore, s = t.token, l = t.scope, c = l === void 0 ? "" : l, u =
|
|
4345
|
+
var n = t.key, a = t.prefix, i = t.unitless, o = t.ignore, s = t.token, l = t.scope, c = l === void 0 ? "" : l, u = bt(xr), f = u.cache.instanceId, m = u.container, v = s._tokenKey, p = [].concat(te(t.path), [n, c, v]), h = Aa(ts, p, function() {
|
|
4346
4346
|
var d = r(), b = Do(d, n, {
|
|
4347
4347
|
prefix: a,
|
|
4348
4348
|
unitless: i,
|
|
4349
4349
|
ignore: o,
|
|
4350
4350
|
scope: c
|
|
4351
|
-
}), g = J(b, 2), y = g[0],
|
|
4352
|
-
return [y,
|
|
4351
|
+
}), g = J(b, 2), y = g[0], x = g[1], _ = Jo(p, x);
|
|
4352
|
+
return [y, x, _, n];
|
|
4353
4353
|
}, function(d) {
|
|
4354
4354
|
var b = J(d, 3), g = b[2];
|
|
4355
4355
|
Jn && jo(g, {
|
|
@@ -4359,13 +4359,13 @@ var Pf = function(t, r, n) {
|
|
|
4359
4359
|
}, function(d) {
|
|
4360
4360
|
var b = J(d, 3), g = b[1], y = b[2];
|
|
4361
4361
|
if (g) {
|
|
4362
|
-
var
|
|
4362
|
+
var x = Nt(g, y, {
|
|
4363
4363
|
mark: dt,
|
|
4364
4364
|
prepend: "queue",
|
|
4365
4365
|
attachTo: m,
|
|
4366
4366
|
priority: -999
|
|
4367
4367
|
});
|
|
4368
|
-
|
|
4368
|
+
x[Tt] = f, x.setAttribute(Ut, n);
|
|
4369
4369
|
}
|
|
4370
4370
|
});
|
|
4371
4371
|
return h;
|
|
@@ -4387,13 +4387,13 @@ Lt(["borderTop", "borderBottom"]), Lt(["borderTop"]), Lt(["borderBottom"]), Lt([
|
|
|
4387
4387
|
var La = /* @__PURE__ */ nn({});
|
|
4388
4388
|
function rs() {
|
|
4389
4389
|
}
|
|
4390
|
-
let
|
|
4390
|
+
let xt = null;
|
|
4391
4391
|
function If() {
|
|
4392
|
-
|
|
4392
|
+
xt = null, Eo();
|
|
4393
4393
|
}
|
|
4394
4394
|
let ns = rs;
|
|
4395
4395
|
process.env.NODE_ENV !== "production" && (ns = (e, t, r) => {
|
|
4396
|
-
|
|
4396
|
+
Pe(e, `[antd: ${t}] ${r}`), process.env.NODE_ENV === "test" && If();
|
|
4397
4397
|
});
|
|
4398
4398
|
const wr = ns, as = /* @__PURE__ */ F.createContext({}), Kt = process.env.NODE_ENV !== "production" ? (e) => {
|
|
4399
4399
|
const {
|
|
@@ -4401,8 +4401,8 @@ const wr = ns, as = /* @__PURE__ */ F.createContext({}), Kt = process.env.NODE_E
|
|
|
4401
4401
|
} = F.useContext(as), r = (n, a, i) => {
|
|
4402
4402
|
if (!n)
|
|
4403
4403
|
if (t === !1 && a === "deprecated") {
|
|
4404
|
-
const o =
|
|
4405
|
-
|
|
4404
|
+
const o = xt;
|
|
4405
|
+
xt || (xt = {}), xt[e] = xt[e] || [], xt[e].includes(i || "") || xt[e].push(i || ""), o || console.warn("[antd] There exists deprecated usage in your code:", xt);
|
|
4406
4406
|
} else
|
|
4407
4407
|
process.env.NODE_ENV !== "production" && wr(n, e, i);
|
|
4408
4408
|
};
|
|
@@ -5248,15 +5248,15 @@ const ds = Zn(Zf), pa = {
|
|
|
5248
5248
|
override: yr
|
|
5249
5249
|
},
|
|
5250
5250
|
hashed: !0
|
|
5251
|
-
}, fs = /* @__PURE__ */ le.createContext(pa), va = "ant", ja = "anticon", Jf = ["outlined", "borderless", "filled", "underlined"], eh = (e, t) => t || (e ? `${va}-${e}` : va),
|
|
5251
|
+
}, fs = /* @__PURE__ */ le.createContext(pa), va = "ant", ja = "anticon", Jf = ["outlined", "borderless", "filled", "underlined"], eh = (e, t) => t || (e ? `${va}-${e}` : va), Mt = /* @__PURE__ */ F.createContext({
|
|
5252
5252
|
// We provide a default function for Context without provider
|
|
5253
5253
|
getPrefixCls: eh,
|
|
5254
5254
|
iconPrefixCls: ja
|
|
5255
5255
|
}), {
|
|
5256
5256
|
Consumer: Ng
|
|
5257
|
-
} =
|
|
5257
|
+
} = Mt, Pi = {};
|
|
5258
5258
|
function th(e) {
|
|
5259
|
-
const t = F.useContext(
|
|
5259
|
+
const t = F.useContext(Mt), {
|
|
5260
5260
|
getPrefixCls: r,
|
|
5261
5261
|
direction: n,
|
|
5262
5262
|
getPopupContainer: a
|
|
@@ -5297,7 +5297,7 @@ function nh(e, t) {
|
|
|
5297
5297
|
}
|
|
5298
5298
|
function ah(e, t) {
|
|
5299
5299
|
const r = nh(e, t);
|
|
5300
|
-
|
|
5300
|
+
wt() ? Nt(r, `${rh}-dynamic-theme`) : process.env.NODE_ENV !== "production" && wr(!1, "ConfigProvider", "SSR do not support dynamic theme with css variables.");
|
|
5301
5301
|
}
|
|
5302
5302
|
const tn = /* @__PURE__ */ F.createContext(!1), ih = ({
|
|
5303
5303
|
children: e,
|
|
@@ -5317,7 +5317,7 @@ const tn = /* @__PURE__ */ F.createContext(!1), ih = ({
|
|
|
5317
5317
|
}, e);
|
|
5318
5318
|
};
|
|
5319
5319
|
function sh() {
|
|
5320
|
-
const e =
|
|
5320
|
+
const e = bt(tn), t = bt(Xt);
|
|
5321
5321
|
return {
|
|
5322
5322
|
componentDisabled: e,
|
|
5323
5323
|
componentSize: t
|
|
@@ -5419,7 +5419,7 @@ function Ai(e, t, r, n) {
|
|
|
5419
5419
|
var i = n.deprecatedTokens;
|
|
5420
5420
|
i.forEach(function(s) {
|
|
5421
5421
|
var l = J(s, 2), c = l[0], u = l[1];
|
|
5422
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
5422
|
+
if (process.env.NODE_ENV !== "production" && Pe(!(a != null && a[c]), "Component Token `".concat(String(c), "` of ").concat(String(e), " is deprecated. Please use `").concat(String(u), "` instead.")), a != null && a[c] || a != null && a[u]) {
|
|
5423
5423
|
var f;
|
|
5424
5424
|
(f = a[u]) !== null && f !== void 0 || (a[u] = a?.[c]);
|
|
5425
5425
|
}
|
|
@@ -5494,14 +5494,14 @@ function mh(e) {
|
|
|
5494
5494
|
for (var r = arguments.length, n = new Array(r), a = 0; a < r; a++)
|
|
5495
5495
|
n[a] = arguments[a];
|
|
5496
5496
|
return "max(".concat(n.map(function(i) {
|
|
5497
|
-
return
|
|
5497
|
+
return Ae(i);
|
|
5498
5498
|
}).join(","), ")");
|
|
5499
5499
|
},
|
|
5500
5500
|
min: function() {
|
|
5501
5501
|
for (var r = arguments.length, n = new Array(r), a = 0; a < r; a++)
|
|
5502
5502
|
n[a] = arguments[a];
|
|
5503
5503
|
return "min(".concat(n.map(function(i) {
|
|
5504
|
-
return
|
|
5504
|
+
return Ae(i);
|
|
5505
5505
|
}).join(","), ")");
|
|
5506
5506
|
}
|
|
5507
5507
|
};
|
|
@@ -5571,21 +5571,21 @@ function bh(e) {
|
|
|
5571
5571
|
function b($) {
|
|
5572
5572
|
return "".concat(String(d)).concat($.slice(0, 1).toUpperCase()).concat($.slice(1));
|
|
5573
5573
|
}
|
|
5574
|
-
var g = h?.unitless || {}, y = typeof s == "function" ? s(m) : {},
|
|
5574
|
+
var g = h?.unitless || {}, y = typeof s == "function" ? s(m) : {}, x = k(k({}, y), {}, w({}, b("zIndexPopup"), !0));
|
|
5575
5575
|
Object.keys(g).forEach(function($) {
|
|
5576
|
-
|
|
5576
|
+
x[b($)] = g[$];
|
|
5577
5577
|
});
|
|
5578
5578
|
var _ = k(k({}, h), {}, {
|
|
5579
|
-
unitless:
|
|
5579
|
+
unitless: x,
|
|
5580
5580
|
prefixToken: b
|
|
5581
|
-
}),
|
|
5581
|
+
}), C = u(m, v, p, _), S = c(d, p, _);
|
|
5582
5582
|
return function($) {
|
|
5583
|
-
var P = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : $, R =
|
|
5583
|
+
var P = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : $, R = C($, P), N = J(R, 2), D = N[1], j = S(P), O = J(j, 2), M = O[0], E = O[1];
|
|
5584
5584
|
return [M, D, E];
|
|
5585
5585
|
};
|
|
5586
5586
|
}
|
|
5587
5587
|
function c(m, v, p) {
|
|
5588
|
-
var h = p.unitless, d = p.injectStyle, b = d === void 0 ? !0 : d, g = p.prefixToken, y = p.ignore,
|
|
5588
|
+
var h = p.unitless, d = p.injectStyle, b = d === void 0 ? !0 : d, g = p.prefixToken, y = p.ignore, x = function(S) {
|
|
5589
5589
|
var $ = S.rootCls, P = S.cssVar, R = P === void 0 ? {} : P, N = n(), D = N.realToken;
|
|
5590
5590
|
return Nf({
|
|
5591
5591
|
path: [m],
|
|
@@ -5606,7 +5606,7 @@ function bh(e) {
|
|
|
5606
5606
|
}, _ = function(S) {
|
|
5607
5607
|
var $ = n(), P = $.cssVar;
|
|
5608
5608
|
return [function(R) {
|
|
5609
|
-
return b && P ? /* @__PURE__ */ le.createElement(le.Fragment, null, /* @__PURE__ */ le.createElement(
|
|
5609
|
+
return b && P ? /* @__PURE__ */ le.createElement(le.Fragment, null, /* @__PURE__ */ le.createElement(x, {
|
|
5610
5610
|
rootCls: S,
|
|
5611
5611
|
cssVar: P,
|
|
5612
5612
|
component: m
|
|
@@ -5616,11 +5616,11 @@ function bh(e) {
|
|
|
5616
5616
|
return _;
|
|
5617
5617
|
}
|
|
5618
5618
|
function u(m, v, p) {
|
|
5619
|
-
var h = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, d = Array.isArray(m) ? m : [m, m], b = J(d, 1), g = b[0], y = d.join("-"),
|
|
5619
|
+
var h = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, d = Array.isArray(m) ? m : [m, m], b = J(d, 1), g = b[0], y = d.join("-"), x = e.layer || {
|
|
5620
5620
|
name: "antd"
|
|
5621
5621
|
};
|
|
5622
5622
|
return function(_) {
|
|
5623
|
-
var
|
|
5623
|
+
var C = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _, S = n(), $ = S.theme, P = S.realToken, R = S.hashId, N = S.token, D = S.cssVar, j = a(), O = j.rootPrefixCls, M = j.iconPrefixCls, E = r(), A = D ? "css" : "js", I = vh(function() {
|
|
5624
5624
|
var z = /* @__PURE__ */ new Set();
|
|
5625
5625
|
return D && Object.keys(h.unitless || {}).forEach(function(re) {
|
|
5626
5626
|
z.add(Br(re, D.prefix)), z.add(Br(re, Ni(g, D.prefix)));
|
|
@@ -5633,7 +5633,7 @@ function bh(e) {
|
|
|
5633
5633
|
return E.nonce;
|
|
5634
5634
|
},
|
|
5635
5635
|
clientOnly: h.clientOnly,
|
|
5636
|
-
layer:
|
|
5636
|
+
layer: x,
|
|
5637
5637
|
// antd is always at top of styles
|
|
5638
5638
|
order: h.order || -999
|
|
5639
5639
|
};
|
|
@@ -5654,7 +5654,7 @@ function bh(e) {
|
|
|
5654
5654
|
}), function() {
|
|
5655
5655
|
if (h.injectStyle === !1)
|
|
5656
5656
|
return [];
|
|
5657
|
-
var z = hh(N), re = z.token,
|
|
5657
|
+
var z = hh(N), re = z.token, ie = z.flush, ue = ki(g, P, p), ce = ".".concat(_), ve = Ai(g, P, ue, {
|
|
5658
5658
|
deprecatedTokens: h.deprecatedTokens
|
|
5659
5659
|
});
|
|
5660
5660
|
D && ue && ne(ue) === "object" && Object.keys(ue).forEach(function($e) {
|
|
@@ -5676,9 +5676,9 @@ function bh(e) {
|
|
|
5676
5676
|
rootPrefixCls: O,
|
|
5677
5677
|
iconPrefixCls: M
|
|
5678
5678
|
});
|
|
5679
|
-
|
|
5680
|
-
var
|
|
5681
|
-
return [h.resetStyle === !1 ? null :
|
|
5679
|
+
ie(g, ve);
|
|
5680
|
+
var Ce = typeof o == "function" ? o(pe, _, C, h.resetFont) : null;
|
|
5681
|
+
return [h.resetStyle === !1 ? null : Ce, be];
|
|
5682
5682
|
});
|
|
5683
5683
|
return [X, R];
|
|
5684
5684
|
};
|
|
@@ -5689,8 +5689,8 @@ function bh(e) {
|
|
|
5689
5689
|
// Sub Style should default after root one
|
|
5690
5690
|
order: -998
|
|
5691
5691
|
}, h)), b = function(y) {
|
|
5692
|
-
var
|
|
5693
|
-
return d(
|
|
5692
|
+
var x = y.prefixCls, _ = y.rootCls, C = _ === void 0 ? x : _;
|
|
5693
|
+
return d(x, C), null;
|
|
5694
5694
|
};
|
|
5695
5695
|
return process.env.NODE_ENV !== "production" && (b.displayName = "SubStyle_".concat(String(Array.isArray(m) ? m.join(".") : m))), b;
|
|
5696
5696
|
}
|
|
@@ -6070,7 +6070,7 @@ const bs = (e, t = !1) => ({
|
|
|
6070
6070
|
const {
|
|
6071
6071
|
getPrefixCls: e,
|
|
6072
6072
|
iconPrefixCls: t
|
|
6073
|
-
} =
|
|
6073
|
+
} = bt(Mt);
|
|
6074
6074
|
return {
|
|
6075
6075
|
rootPrefixCls: e(),
|
|
6076
6076
|
iconPrefixCls: t
|
|
@@ -6089,7 +6089,7 @@ const bs = (e, t = !1) => ({
|
|
|
6089
6089
|
useCSP: () => {
|
|
6090
6090
|
const {
|
|
6091
6091
|
csp: e
|
|
6092
|
-
} =
|
|
6092
|
+
} = bt(Mt);
|
|
6093
6093
|
return e ?? {};
|
|
6094
6094
|
},
|
|
6095
6095
|
getResetStyles: (e, t) => {
|
|
@@ -6166,7 +6166,7 @@ function Ah(e) {
|
|
|
6166
6166
|
}
|
|
6167
6167
|
var Ih = ["children"], Cs = /* @__PURE__ */ F.createContext({});
|
|
6168
6168
|
function kh(e) {
|
|
6169
|
-
var t = e.children, r =
|
|
6169
|
+
var t = e.children, r = St(e, Ih);
|
|
6170
6170
|
return /* @__PURE__ */ F.createElement(Cs.Provider, {
|
|
6171
6171
|
value: r
|
|
6172
6172
|
}, t);
|
|
@@ -6194,7 +6194,7 @@ function jh(e) {
|
|
|
6194
6194
|
});
|
|
6195
6195
|
return [i, o];
|
|
6196
6196
|
}
|
|
6197
|
-
var
|
|
6197
|
+
var Et = "none", kr = "appear", Lr = "enter", jr = "leave", Hi = "none", ut = "prepare", Vt = "start", Dt = "active", Va = "end", xs = "prepared";
|
|
6198
6198
|
function Bi(e, t) {
|
|
6199
6199
|
var r = {};
|
|
6200
6200
|
return r[e.toLowerCase()] = t.toLowerCase(), r["Webkit".concat(e)] = "webkit".concat(t), r["Moz".concat(e)] = "moz".concat(t), r["ms".concat(e)] = "MS".concat(t), r["O".concat(e)] = "o".concat(t.toLowerCase()), r;
|
|
@@ -6206,8 +6206,8 @@ function Vh(e, t) {
|
|
|
6206
6206
|
};
|
|
6207
6207
|
return e && ("AnimationEvent" in t || delete r.animationend.animation, "TransitionEvent" in t || delete r.transitionend.transition), r;
|
|
6208
6208
|
}
|
|
6209
|
-
var Dh = Vh(
|
|
6210
|
-
if (
|
|
6209
|
+
var Dh = Vh(wt(), typeof window < "u" ? window : {}), ws = {};
|
|
6210
|
+
if (wt()) {
|
|
6211
6211
|
var Hh = document.createElement("div");
|
|
6212
6212
|
ws = Hh.style;
|
|
6213
6213
|
}
|
|
@@ -6249,7 +6249,7 @@ const Bh = (function(e) {
|
|
|
6249
6249
|
};
|
|
6250
6250
|
}, []), [n, r];
|
|
6251
6251
|
});
|
|
6252
|
-
var Fs =
|
|
6252
|
+
var Fs = wt() ? sc : ge, Ms = function(t) {
|
|
6253
6253
|
return +setTimeout(t, 16);
|
|
6254
6254
|
}, Rs = function(t) {
|
|
6255
6255
|
return clearTimeout(t);
|
|
@@ -6336,81 +6336,81 @@ const Gh = (function(e, t, r) {
|
|
|
6336
6336
|
}, []), [f, i];
|
|
6337
6337
|
});
|
|
6338
6338
|
function Kh(e, t, r, n) {
|
|
6339
|
-
var a = n.motionEnter, i = a === void 0 ? !0 : a, o = n.motionAppear, s = o === void 0 ? !0 : o, l = n.motionLeave, c = l === void 0 ? !0 : l, u = n.motionDeadline, f = n.motionLeaveImmediately, m = n.onAppearPrepare, v = n.onEnterPrepare, p = n.onLeavePrepare, h = n.onAppearStart, d = n.onEnterStart, b = n.onLeaveStart, g = n.onAppearActive, y = n.onEnterActive,
|
|
6339
|
+
var a = n.motionEnter, i = a === void 0 ? !0 : a, o = n.motionAppear, s = o === void 0 ? !0 : o, l = n.motionLeave, c = l === void 0 ? !0 : l, u = n.motionDeadline, f = n.motionLeaveImmediately, m = n.onAppearPrepare, v = n.onEnterPrepare, p = n.onLeavePrepare, h = n.onAppearStart, d = n.onEnterStart, b = n.onLeaveStart, g = n.onAppearActive, y = n.onEnterActive, x = n.onLeaveActive, _ = n.onAppearEnd, C = n.onEnterEnd, S = n.onLeaveEnd, $ = n.onVisibleChanged, P = hr(), R = J(P, 2), N = R[0], D = R[1], j = jh(Et), O = J(j, 2), M = O[0], E = O[1], A = hr(null), I = J(A, 2), B = I[0], H = I[1], q = M(), G = fe(!1), X = fe(null);
|
|
6340
6340
|
function z() {
|
|
6341
6341
|
return r();
|
|
6342
6342
|
}
|
|
6343
6343
|
var re = fe(!1);
|
|
6344
|
-
function
|
|
6345
|
-
E(
|
|
6344
|
+
function ie() {
|
|
6345
|
+
E(Et), H(null, !0);
|
|
6346
6346
|
}
|
|
6347
|
-
var ue = fr(function(
|
|
6348
|
-
var
|
|
6349
|
-
if (
|
|
6347
|
+
var ue = fr(function(Re) {
|
|
6348
|
+
var Ne = M();
|
|
6349
|
+
if (Ne !== Et) {
|
|
6350
6350
|
var he = z();
|
|
6351
|
-
if (!(
|
|
6351
|
+
if (!(Re && !Re.deadline && Re.target !== he)) {
|
|
6352
6352
|
var Z = re.current, Oe;
|
|
6353
|
-
|
|
6353
|
+
Ne === kr && Z ? Oe = _?.(he, Re) : Ne === Lr && Z ? Oe = C?.(he, Re) : Ne === jr && Z && (Oe = S?.(he, Re)), Z && Oe !== !1 && ie();
|
|
6354
6354
|
}
|
|
6355
6355
|
}
|
|
6356
|
-
}), ce = Bh(ue), ve = J(ce, 1), pe = ve[0], be = function(
|
|
6357
|
-
switch (
|
|
6356
|
+
}), ce = Bh(ue), ve = J(ce, 1), pe = ve[0], be = function(Ne) {
|
|
6357
|
+
switch (Ne) {
|
|
6358
6358
|
case kr:
|
|
6359
6359
|
return w(w(w({}, ut, m), Vt, h), Dt, g);
|
|
6360
6360
|
case Lr:
|
|
6361
6361
|
return w(w(w({}, ut, v), Vt, d), Dt, y);
|
|
6362
6362
|
case jr:
|
|
6363
|
-
return w(w(w({}, ut, p), Vt, b), Dt,
|
|
6363
|
+
return w(w(w({}, ut, p), Vt, b), Dt, x);
|
|
6364
6364
|
default:
|
|
6365
6365
|
return {};
|
|
6366
6366
|
}
|
|
6367
|
-
},
|
|
6367
|
+
}, Ce = F.useMemo(function() {
|
|
6368
6368
|
return be(q);
|
|
6369
|
-
}, [q]), $e = Gh(q, !e, function(
|
|
6370
|
-
if (
|
|
6371
|
-
var
|
|
6372
|
-
return
|
|
6369
|
+
}, [q]), $e = Gh(q, !e, function(Re) {
|
|
6370
|
+
if (Re === ut) {
|
|
6371
|
+
var Ne = Ce[ut];
|
|
6372
|
+
return Ne ? Ne(z()) : Ns;
|
|
6373
6373
|
}
|
|
6374
|
-
if (Y in
|
|
6374
|
+
if (Y in Ce) {
|
|
6375
6375
|
var he;
|
|
6376
|
-
H(((he =
|
|
6376
|
+
H(((he = Ce[Y]) === null || he === void 0 ? void 0 : he.call(Ce, z(), null)) || null);
|
|
6377
6377
|
}
|
|
6378
|
-
return Y === Dt && q !==
|
|
6378
|
+
return Y === Dt && q !== Et && (pe(z()), u > 0 && (clearTimeout(X.current), X.current = setTimeout(function() {
|
|
6379
6379
|
ue({
|
|
6380
6380
|
deadline: !0
|
|
6381
6381
|
});
|
|
6382
|
-
}, u))), Y === xs &&
|
|
6382
|
+
}, u))), Y === xs && ie(), qh;
|
|
6383
6383
|
}), K = J($e, 2), L = K[0], Y = K[1], Te = As(Y);
|
|
6384
6384
|
re.current = Te;
|
|
6385
|
-
var
|
|
6385
|
+
var qe = fe(null);
|
|
6386
6386
|
Fs(function() {
|
|
6387
|
-
if (!(G.current &&
|
|
6387
|
+
if (!(G.current && qe.current === t)) {
|
|
6388
6388
|
D(t);
|
|
6389
|
-
var
|
|
6389
|
+
var Re = G.current;
|
|
6390
6390
|
G.current = !0;
|
|
6391
|
-
var
|
|
6392
|
-
!
|
|
6393
|
-
var he = be(
|
|
6394
|
-
|
|
6391
|
+
var Ne;
|
|
6392
|
+
!Re && t && s && (Ne = kr), Re && t && i && (Ne = Lr), (Re && !t && c || !Re && f && !t && c) && (Ne = jr);
|
|
6393
|
+
var he = be(Ne);
|
|
6394
|
+
Ne && (e || he[ut]) ? (E(Ne), L()) : E(Et), qe.current = t;
|
|
6395
6395
|
}
|
|
6396
6396
|
}, [t]), ge(function() {
|
|
6397
6397
|
// Cancel appear
|
|
6398
6398
|
(q === kr && !s || // Cancel enter
|
|
6399
6399
|
q === Lr && !i || // Cancel leave
|
|
6400
|
-
q === jr && !c) && E(
|
|
6400
|
+
q === jr && !c) && E(Et);
|
|
6401
6401
|
}, [s, i, c]), ge(function() {
|
|
6402
6402
|
return function() {
|
|
6403
6403
|
G.current = !1, clearTimeout(X.current);
|
|
6404
6404
|
};
|
|
6405
6405
|
}, []);
|
|
6406
|
-
var
|
|
6406
|
+
var xe = F.useRef(!1);
|
|
6407
6407
|
ge(function() {
|
|
6408
|
-
N && (
|
|
6408
|
+
N && (xe.current = !0), N !== void 0 && q === Et && ((xe.current || N) && $?.(N), xe.current = !0);
|
|
6409
6409
|
}, [N, q]);
|
|
6410
|
-
var
|
|
6411
|
-
return
|
|
6410
|
+
var Me = B;
|
|
6411
|
+
return Ce[ut] && Y === Vt && (Me = k({
|
|
6412
6412
|
transition: "none"
|
|
6413
|
-
},
|
|
6413
|
+
}, Me)), [q, Y, Me, N ?? t];
|
|
6414
6414
|
}
|
|
6415
6415
|
function Xh(e) {
|
|
6416
6416
|
var t = e;
|
|
@@ -6420,14 +6420,14 @@ function Xh(e) {
|
|
|
6420
6420
|
}
|
|
6421
6421
|
var n = /* @__PURE__ */ F.forwardRef(function(a, i) {
|
|
6422
6422
|
var o = a.visible, s = o === void 0 ? !0 : o, l = a.removeOnLeave, c = l === void 0 ? !0 : l, u = a.forceRender, f = a.children, m = a.motionName, v = a.leavedClassName, p = a.eventProps, h = F.useContext(Cs), d = h.motion, b = r(a, d), g = fe(), y = fe();
|
|
6423
|
-
function
|
|
6423
|
+
function x() {
|
|
6424
6424
|
try {
|
|
6425
6425
|
return g.current instanceof HTMLElement ? g.current : Ah(y.current);
|
|
6426
6426
|
} catch {
|
|
6427
6427
|
return null;
|
|
6428
6428
|
}
|
|
6429
6429
|
}
|
|
6430
|
-
var _ = Kh(b, s,
|
|
6430
|
+
var _ = Kh(b, s, x, a), C = J(_, 4), S = C[0], $ = C[1], P = C[2], R = C[3], N = F.useRef(R);
|
|
6431
6431
|
R && (N.current = !0);
|
|
6432
6432
|
var D = F.useCallback(function(I) {
|
|
6433
6433
|
g.current = I, _o(i, I);
|
|
@@ -6436,7 +6436,7 @@ function Xh(e) {
|
|
|
6436
6436
|
});
|
|
6437
6437
|
if (!f)
|
|
6438
6438
|
j = null;
|
|
6439
|
-
else if (S ===
|
|
6439
|
+
else if (S === Et)
|
|
6440
6440
|
R ? j = f(k({}, O), D) : !c && N.current && v ? j = f(k(k({}, O), {}, {
|
|
6441
6441
|
className: v
|
|
6442
6442
|
}), D) : u || !c && !v ? j = f(k(k({}, O), {}, {
|
|
@@ -6556,24 +6556,24 @@ function rm(e) {
|
|
|
6556
6556
|
value: function() {
|
|
6557
6557
|
var s = this, l = this.state.keyEntities, c = this.props, u = c.component, f = c.children, m = c.onVisibleChanged;
|
|
6558
6558
|
c.onAllRemoved;
|
|
6559
|
-
var v =
|
|
6559
|
+
var v = St(c, Jh), p = u || F.Fragment, h = {};
|
|
6560
6560
|
return tm.forEach(function(d) {
|
|
6561
6561
|
h[d] = v[d], delete v[d];
|
|
6562
6562
|
}), delete v.keys, /* @__PURE__ */ F.createElement(p, v, l.map(function(d, b) {
|
|
6563
|
-
var g = d.status, y =
|
|
6563
|
+
var g = d.status, y = St(d, em), x = g === ba || g === Sa;
|
|
6564
6564
|
return /* @__PURE__ */ F.createElement(t, ht({}, h, {
|
|
6565
6565
|
key: y.key,
|
|
6566
|
-
visible:
|
|
6566
|
+
visible: x,
|
|
6567
6567
|
eventProps: y,
|
|
6568
|
-
onVisibleChanged: function(
|
|
6569
|
-
m?.(
|
|
6568
|
+
onVisibleChanged: function(C) {
|
|
6569
|
+
m?.(C, {
|
|
6570
6570
|
key: y.key
|
|
6571
|
-
}),
|
|
6571
|
+
}), C || s.removeKey(y.key);
|
|
6572
6572
|
}
|
|
6573
|
-
}), function(_,
|
|
6573
|
+
}), function(_, C) {
|
|
6574
6574
|
return f(k(k({}, _), {}, {
|
|
6575
6575
|
index: b
|
|
6576
|
-
}),
|
|
6576
|
+
}), C);
|
|
6577
6577
|
});
|
|
6578
6578
|
}));
|
|
6579
6579
|
}
|
|
@@ -6663,9 +6663,9 @@ const lm = (e) => {
|
|
|
6663
6663
|
parentContext: b,
|
|
6664
6664
|
iconPrefixCls: g,
|
|
6665
6665
|
theme: y,
|
|
6666
|
-
componentDisabled:
|
|
6666
|
+
componentDisabled: x,
|
|
6667
6667
|
segmented: _,
|
|
6668
|
-
statistic:
|
|
6668
|
+
statistic: C,
|
|
6669
6669
|
spin: S,
|
|
6670
6670
|
calendar: $,
|
|
6671
6671
|
carousel: P,
|
|
@@ -6685,30 +6685,30 @@ const lm = (e) => {
|
|
|
6685
6685
|
modal: X,
|
|
6686
6686
|
progress: z,
|
|
6687
6687
|
result: re,
|
|
6688
|
-
slider:
|
|
6688
|
+
slider: ie,
|
|
6689
6689
|
breadcrumb: ue,
|
|
6690
6690
|
menu: ce,
|
|
6691
6691
|
pagination: ve,
|
|
6692
6692
|
input: pe,
|
|
6693
6693
|
textArea: be,
|
|
6694
|
-
empty:
|
|
6694
|
+
empty: Ce,
|
|
6695
6695
|
badge: $e,
|
|
6696
6696
|
radio: K,
|
|
6697
6697
|
rate: L,
|
|
6698
6698
|
switch: Y,
|
|
6699
6699
|
transfer: Te,
|
|
6700
|
-
avatar:
|
|
6701
|
-
message:
|
|
6702
|
-
tag:
|
|
6703
|
-
table:
|
|
6704
|
-
card:
|
|
6700
|
+
avatar: qe,
|
|
6701
|
+
message: xe,
|
|
6702
|
+
tag: Me,
|
|
6703
|
+
table: Re,
|
|
6704
|
+
card: Ne,
|
|
6705
6705
|
tabs: he,
|
|
6706
6706
|
timeline: Z,
|
|
6707
6707
|
timePicker: Oe,
|
|
6708
6708
|
upload: at,
|
|
6709
|
-
notification:
|
|
6709
|
+
notification: Xe,
|
|
6710
6710
|
tree: je,
|
|
6711
|
-
colorPicker:
|
|
6711
|
+
colorPicker: _t,
|
|
6712
6712
|
datePicker: Er,
|
|
6713
6713
|
rangePicker: nr,
|
|
6714
6714
|
flex: fn,
|
|
@@ -6724,22 +6724,22 @@ const lm = (e) => {
|
|
|
6724
6724
|
variant: yn,
|
|
6725
6725
|
inputNumber: W,
|
|
6726
6726
|
treeSelect: U
|
|
6727
|
-
} = e, Q = F.useCallback((Ve,
|
|
6727
|
+
} = e, Q = F.useCallback((Ve, Ue) => {
|
|
6728
6728
|
const {
|
|
6729
|
-
prefixCls:
|
|
6729
|
+
prefixCls: gt
|
|
6730
6730
|
} = e;
|
|
6731
|
-
if (
|
|
6732
|
-
return
|
|
6733
|
-
const
|
|
6734
|
-
return Ve ? `${
|
|
6735
|
-
}, [b.getPrefixCls, e.prefixCls]),
|
|
6736
|
-
Oh(
|
|
6737
|
-
const
|
|
6731
|
+
if (Ue)
|
|
6732
|
+
return Ue;
|
|
6733
|
+
const pt = gt || b.getPrefixCls("");
|
|
6734
|
+
return Ve ? `${pt}-${Ve}` : pt;
|
|
6735
|
+
}, [b.getPrefixCls, e.prefixCls]), oe = g || b.iconPrefixCls || ja, se = r || b.csp;
|
|
6736
|
+
Oh(oe, se);
|
|
6737
|
+
const ae = Ph(y, b.theme, {
|
|
6738
6738
|
prefixCls: Q("")
|
|
6739
6739
|
});
|
|
6740
|
-
process.env.NODE_ENV !== "production" && (wa = wa || !!
|
|
6741
|
-
const
|
|
6742
|
-
csp:
|
|
6740
|
+
process.env.NODE_ENV !== "production" && (wa = wa || !!ae);
|
|
6741
|
+
const Fe = {
|
|
6742
|
+
csp: se,
|
|
6743
6743
|
autoInsertSpaceInButton: n,
|
|
6744
6744
|
alert: a,
|
|
6745
6745
|
anchor: i,
|
|
@@ -6751,10 +6751,10 @@ const lm = (e) => {
|
|
|
6751
6751
|
popupMatchSelectWidth: p ?? v,
|
|
6752
6752
|
popupOverflow: h,
|
|
6753
6753
|
getPrefixCls: Q,
|
|
6754
|
-
iconPrefixCls:
|
|
6755
|
-
theme:
|
|
6754
|
+
iconPrefixCls: oe,
|
|
6755
|
+
theme: ae,
|
|
6756
6756
|
segmented: _,
|
|
6757
|
-
statistic:
|
|
6757
|
+
statistic: C,
|
|
6758
6758
|
spin: S,
|
|
6759
6759
|
calendar: $,
|
|
6760
6760
|
carousel: P,
|
|
@@ -6776,28 +6776,28 @@ const lm = (e) => {
|
|
|
6776
6776
|
modal: X,
|
|
6777
6777
|
progress: z,
|
|
6778
6778
|
result: re,
|
|
6779
|
-
slider:
|
|
6779
|
+
slider: ie,
|
|
6780
6780
|
breadcrumb: ue,
|
|
6781
6781
|
menu: ce,
|
|
6782
6782
|
pagination: ve,
|
|
6783
|
-
empty:
|
|
6783
|
+
empty: Ce,
|
|
6784
6784
|
badge: $e,
|
|
6785
6785
|
radio: K,
|
|
6786
6786
|
rate: L,
|
|
6787
6787
|
switch: Y,
|
|
6788
6788
|
transfer: Te,
|
|
6789
|
-
avatar:
|
|
6790
|
-
message:
|
|
6791
|
-
tag:
|
|
6792
|
-
table:
|
|
6793
|
-
card:
|
|
6789
|
+
avatar: qe,
|
|
6790
|
+
message: xe,
|
|
6791
|
+
tag: Me,
|
|
6792
|
+
table: Re,
|
|
6793
|
+
card: Ne,
|
|
6794
6794
|
tabs: he,
|
|
6795
6795
|
timeline: Z,
|
|
6796
6796
|
timePicker: Oe,
|
|
6797
6797
|
upload: at,
|
|
6798
|
-
notification:
|
|
6798
|
+
notification: Xe,
|
|
6799
6799
|
tree: je,
|
|
6800
|
-
colorPicker:
|
|
6800
|
+
colorPicker: _t,
|
|
6801
6801
|
datePicker: Er,
|
|
6802
6802
|
rangePicker: nr,
|
|
6803
6803
|
flex: fn,
|
|
@@ -6815,54 +6815,54 @@ const lm = (e) => {
|
|
|
6815
6815
|
treeSelect: U
|
|
6816
6816
|
};
|
|
6817
6817
|
process.env.NODE_ENV !== "production" && Kt("ConfigProvider")(!("autoInsertSpaceInButton" in e), "deprecated", "`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");
|
|
6818
|
-
const
|
|
6819
|
-
Object.keys(
|
|
6820
|
-
|
|
6818
|
+
const we = Object.assign({}, b);
|
|
6819
|
+
Object.keys(Fe).forEach((Ve) => {
|
|
6820
|
+
Fe[Ve] !== void 0 && (we[Ve] = Fe[Ve]);
|
|
6821
6821
|
}), om.forEach((Ve) => {
|
|
6822
|
-
const
|
|
6823
|
-
|
|
6824
|
-
}), typeof n < "u" && (
|
|
6822
|
+
const Ue = e[Ve];
|
|
6823
|
+
Ue && (we[Ve] = Ue);
|
|
6824
|
+
}), typeof n < "u" && (we.button = Object.assign({
|
|
6825
6825
|
autoInsertSpace: n
|
|
6826
|
-
},
|
|
6827
|
-
const
|
|
6828
|
-
const
|
|
6829
|
-
return
|
|
6826
|
+
}, we.button));
|
|
6827
|
+
const Ye = bo(() => we, we, (Ve, Ue) => {
|
|
6828
|
+
const gt = Object.keys(Ve), pt = Object.keys(Ue);
|
|
6829
|
+
return gt.length !== pt.length || gt.some((Fr) => Ve[Fr] !== Ue[Fr]);
|
|
6830
6830
|
}), {
|
|
6831
|
-
layer:
|
|
6832
|
-
} = F.useContext(xr),
|
|
6833
|
-
prefixCls:
|
|
6834
|
-
csp:
|
|
6835
|
-
layer:
|
|
6836
|
-
}), [
|
|
6837
|
-
let
|
|
6831
|
+
layer: Ge
|
|
6832
|
+
} = F.useContext(xr), mt = F.useMemo(() => ({
|
|
6833
|
+
prefixCls: oe,
|
|
6834
|
+
csp: se,
|
|
6835
|
+
layer: Ge ? "antd" : void 0
|
|
6836
|
+
}), [oe, se, Ge]);
|
|
6837
|
+
let Be = /* @__PURE__ */ F.createElement(F.Fragment, null, /* @__PURE__ */ F.createElement(am, {
|
|
6838
6838
|
dropdownMatchSelectWidth: v
|
|
6839
6839
|
}), t);
|
|
6840
6840
|
const Ha = F.useMemo(() => {
|
|
6841
|
-
var Ve,
|
|
6842
|
-
return jt(((Ve = cn.Form) === null || Ve === void 0 ? void 0 : Ve.defaultValidateMessages) || {}, ((
|
|
6843
|
-
}, [
|
|
6844
|
-
Object.keys(Ha).length > 0 && (
|
|
6841
|
+
var Ve, Ue, gt, pt;
|
|
6842
|
+
return jt(((Ve = cn.Form) === null || Ve === void 0 ? void 0 : Ve.defaultValidateMessages) || {}, ((gt = (Ue = Ye.locale) === null || Ue === void 0 ? void 0 : Ue.Form) === null || gt === void 0 ? void 0 : gt.defaultValidateMessages) || {}, ((pt = Ye.form) === null || pt === void 0 ? void 0 : pt.validateMessages) || {}, o?.validateMessages || {});
|
|
6843
|
+
}, [Ye, o?.validateMessages]);
|
|
6844
|
+
Object.keys(Ha).length > 0 && (Be = /* @__PURE__ */ F.createElement(kf.Provider, {
|
|
6845
6845
|
value: Ha
|
|
6846
|
-
},
|
|
6846
|
+
}, Be)), s && (Be = /* @__PURE__ */ F.createElement(ss, {
|
|
6847
6847
|
locale: s,
|
|
6848
6848
|
_ANT_MARK__: os
|
|
6849
|
-
},
|
|
6850
|
-
value:
|
|
6851
|
-
},
|
|
6849
|
+
}, Be)), Be = /* @__PURE__ */ F.createElement(La.Provider, {
|
|
6850
|
+
value: mt
|
|
6851
|
+
}, Be), l && (Be = /* @__PURE__ */ F.createElement(oh, {
|
|
6852
6852
|
size: l
|
|
6853
|
-
},
|
|
6853
|
+
}, Be)), Be = /* @__PURE__ */ F.createElement(nm, null, Be);
|
|
6854
6854
|
const Js = F.useMemo(() => {
|
|
6855
|
-
const Ve =
|
|
6856
|
-
algorithm:
|
|
6857
|
-
token:
|
|
6858
|
-
components:
|
|
6855
|
+
const Ve = ae || {}, {
|
|
6856
|
+
algorithm: Ue,
|
|
6857
|
+
token: gt,
|
|
6858
|
+
components: pt,
|
|
6859
6859
|
cssVar: Fr
|
|
6860
|
-
} = Ve, ec = im(Ve, ["algorithm", "token", "components", "cssVar"]), Ba =
|
|
6861
|
-
Object.entries(
|
|
6862
|
-
const
|
|
6863
|
-
"algorithm" in
|
|
6860
|
+
} = Ve, ec = im(Ve, ["algorithm", "token", "components", "cssVar"]), Ba = Ue && (!Array.isArray(Ue) || Ue.length > 0) ? Zn(Ue) : ds, bn = {};
|
|
6861
|
+
Object.entries(pt || {}).forEach(([tc, rc]) => {
|
|
6862
|
+
const Ct = Object.assign({}, rc);
|
|
6863
|
+
"algorithm" in Ct && (Ct.algorithm === !0 ? Ct.theme = Ba : (Array.isArray(Ct.algorithm) || typeof Ct.algorithm == "function") && (Ct.theme = Zn(Ct.algorithm)), delete Ct.algorithm), bn[tc] = Ct;
|
|
6864
6864
|
});
|
|
6865
|
-
const za = Object.assign(Object.assign({}, yr),
|
|
6865
|
+
const za = Object.assign(Object.assign({}, yr), gt);
|
|
6866
6866
|
return Object.assign(Object.assign({}, ec), {
|
|
6867
6867
|
theme: Ba,
|
|
6868
6868
|
token: za,
|
|
@@ -6872,24 +6872,24 @@ const lm = (e) => {
|
|
|
6872
6872
|
}, bn),
|
|
6873
6873
|
cssVar: Fr
|
|
6874
6874
|
});
|
|
6875
|
-
}, [
|
|
6876
|
-
return y && (
|
|
6875
|
+
}, [ae]);
|
|
6876
|
+
return y && (Be = /* @__PURE__ */ F.createElement(fs.Provider, {
|
|
6877
6877
|
value: Js
|
|
6878
|
-
},
|
|
6879
|
-
value:
|
|
6880
|
-
},
|
|
6881
|
-
disabled:
|
|
6882
|
-
},
|
|
6883
|
-
value:
|
|
6884
|
-
},
|
|
6878
|
+
}, Be)), Ye.warning && (Be = /* @__PURE__ */ F.createElement(as.Provider, {
|
|
6879
|
+
value: Ye.warning
|
|
6880
|
+
}, Be)), x !== void 0 && (Be = /* @__PURE__ */ F.createElement(ih, {
|
|
6881
|
+
disabled: x
|
|
6882
|
+
}, Be)), /* @__PURE__ */ F.createElement(Mt.Provider, {
|
|
6883
|
+
value: Ye
|
|
6884
|
+
}, Be);
|
|
6885
6885
|
}, er = (e) => {
|
|
6886
|
-
const t = F.useContext(
|
|
6886
|
+
const t = F.useContext(Mt), r = F.useContext(is);
|
|
6887
6887
|
return /* @__PURE__ */ F.createElement(um, Object.assign({
|
|
6888
6888
|
parentContext: t,
|
|
6889
6889
|
legacyLocale: r
|
|
6890
6890
|
}, e));
|
|
6891
6891
|
};
|
|
6892
|
-
er.ConfigContext =
|
|
6892
|
+
er.ConfigContext = Mt;
|
|
6893
6893
|
er.SizeContext = Xt;
|
|
6894
6894
|
er.config = lm;
|
|
6895
6895
|
er.useConfig = sh;
|
|
@@ -6958,7 +6958,7 @@ function vm(e) {
|
|
|
6958
6958
|
});
|
|
6959
6959
|
}
|
|
6960
6960
|
function ym(e, t) {
|
|
6961
|
-
|
|
6961
|
+
Pe(e, "[@ant-design/icons] ".concat(t));
|
|
6962
6962
|
}
|
|
6963
6963
|
function Ki(e) {
|
|
6964
6964
|
return ne(e) === "object" && typeof e.name == "string" && typeof e.theme == "string" && (ne(e.icon) === "object" || typeof e.icon == "function");
|
|
@@ -7050,12 +7050,12 @@ var bm = `
|
|
|
7050
7050
|
}
|
|
7051
7051
|
}
|
|
7052
7052
|
`, Sm = function(t) {
|
|
7053
|
-
var r =
|
|
7053
|
+
var r = bt(La), n = r.csp, a = r.prefixCls, i = r.layer, o = bm;
|
|
7054
7054
|
a && (o = o.replace(/anticon/g, a)), i && (o = "@layer ".concat(i, ` {
|
|
7055
7055
|
`).concat(o, `
|
|
7056
7056
|
}`)), ge(function() {
|
|
7057
7057
|
var s = t.current, l = pm(s);
|
|
7058
|
-
|
|
7058
|
+
Nt(o, "@ant-design-icons", {
|
|
7059
7059
|
prepend: !i,
|
|
7060
7060
|
csp: n,
|
|
7061
7061
|
attachTo: l
|
|
@@ -7074,7 +7074,7 @@ function xm() {
|
|
|
7074
7074
|
return k({}, dr);
|
|
7075
7075
|
}
|
|
7076
7076
|
var tr = function(t) {
|
|
7077
|
-
var r = t.icon, n = t.className, a = t.onClick, i = t.style, o = t.primaryColor, s = t.secondaryColor, l =
|
|
7077
|
+
var r = t.icon, n = t.className, a = t.onClick, i = t.style, o = t.primaryColor, s = t.secondaryColor, l = St(t, _m), c = F.useRef(), u = dr;
|
|
7078
7078
|
if (o && (u = {
|
|
7079
7079
|
primaryColor: o,
|
|
7080
7080
|
secondaryColor: s || Vs(o)
|
|
@@ -7113,12 +7113,12 @@ function wm() {
|
|
|
7113
7113
|
var Em = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
|
|
7114
7114
|
Hs(en.primary);
|
|
7115
7115
|
var dn = /* @__PURE__ */ F.forwardRef(function(e, t) {
|
|
7116
|
-
var r = e.className, n = e.icon, a = e.spin, i = e.rotate, o = e.tabIndex, s = e.onClick, l = e.twoToneColor, c =
|
|
7116
|
+
var r = e.className, n = e.icon, a = e.spin, i = e.rotate, o = e.tabIndex, s = e.onClick, l = e.twoToneColor, c = St(e, Em), u = F.useContext(La), f = u.prefixCls, m = f === void 0 ? "anticon" : f, v = u.rootClassName, p = ke(v, m, w(w({}, "".concat(m, "-").concat(n.name), !!n.name), "".concat(m, "-spin"), !!a || n.name === "loading"), r), h = o;
|
|
7117
7117
|
h === void 0 && s && (h = -1);
|
|
7118
7118
|
var d = i ? {
|
|
7119
7119
|
msTransform: "rotate(".concat(i, "deg)"),
|
|
7120
7120
|
transform: "rotate(".concat(i, "deg)")
|
|
7121
|
-
} : void 0, b = Ds(l), g = J(b, 2), y = g[0],
|
|
7121
|
+
} : void 0, b = Ds(l), g = J(b, 2), y = g[0], x = g[1];
|
|
7122
7122
|
return /* @__PURE__ */ F.createElement("span", ht({
|
|
7123
7123
|
role: "img",
|
|
7124
7124
|
"aria-label": n.name
|
|
@@ -7130,7 +7130,7 @@ var dn = /* @__PURE__ */ F.forwardRef(function(e, t) {
|
|
|
7130
7130
|
}), /* @__PURE__ */ F.createElement(tr, {
|
|
7131
7131
|
icon: n,
|
|
7132
7132
|
primaryColor: y,
|
|
7133
|
-
secondaryColor:
|
|
7133
|
+
secondaryColor: x,
|
|
7134
7134
|
style: d
|
|
7135
7135
|
}));
|
|
7136
7136
|
});
|
|
@@ -7167,7 +7167,7 @@ const Om = (e, t) => t || e, Fm = (e) => {
|
|
|
7167
7167
|
const {
|
|
7168
7168
|
variant: i,
|
|
7169
7169
|
[e]: o
|
|
7170
|
-
} = F.useContext(
|
|
7170
|
+
} = F.useContext(Mt), s = F.useContext(Ed), l = o?.variant;
|
|
7171
7171
|
let c;
|
|
7172
7172
|
typeof t < "u" ? c = t : r === !1 ? c = "borderless" : c = (a = (n = s ?? l) !== null && n !== void 0 ? n : i) !== null && a !== void 0 ? a : "outlined";
|
|
7173
7173
|
const u = Jf.includes(c);
|
|
@@ -7270,10 +7270,10 @@ const Ws = (e) => {
|
|
|
7270
7270
|
colorErrorOutline: b,
|
|
7271
7271
|
colorWarningOutline: g,
|
|
7272
7272
|
colorBgContainer: y,
|
|
7273
|
-
inputFontSize:
|
|
7273
|
+
inputFontSize: x,
|
|
7274
7274
|
inputFontSizeLG: _,
|
|
7275
|
-
inputFontSizeSM:
|
|
7276
|
-
} = e, S =
|
|
7275
|
+
inputFontSizeSM: C
|
|
7276
|
+
} = e, S = x || r, $ = C || S, P = _ || s, R = Math.round((t - S * n) / 2 * 10) / 10 - a, N = Math.round((i - $ * n) / 2 * 10) / 10 - a, D = Math.ceil((o - P * l) / 2 * 10) / 10 - a;
|
|
7277
7277
|
return {
|
|
7278
7278
|
paddingBlock: Math.max(R, 0),
|
|
7279
7279
|
paddingBlockSM: Math.max(N, 0),
|
|
@@ -7369,7 +7369,7 @@ const Ws = (e) => {
|
|
|
7369
7369
|
[`${e.componentCls}-group`]: {
|
|
7370
7370
|
"&-addon": {
|
|
7371
7371
|
background: e.addonBg,
|
|
7372
|
-
border: `${
|
|
7372
|
+
border: `${Ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`
|
|
7373
7373
|
},
|
|
7374
7374
|
"&-addon:first-child": {
|
|
7375
7375
|
borderInlineEnd: 0
|
|
@@ -7498,21 +7498,21 @@ const Ws = (e) => {
|
|
|
7498
7498
|
color: e.colorTextDisabled
|
|
7499
7499
|
},
|
|
7500
7500
|
"&-addon:first-child": {
|
|
7501
|
-
borderInlineStart: `${
|
|
7502
|
-
borderTop: `${
|
|
7503
|
-
borderBottom: `${
|
|
7501
|
+
borderInlineStart: `${Ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,
|
|
7502
|
+
borderTop: `${Ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,
|
|
7503
|
+
borderBottom: `${Ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`
|
|
7504
7504
|
},
|
|
7505
7505
|
"&-addon:last-child": {
|
|
7506
|
-
borderInlineEnd: `${
|
|
7507
|
-
borderTop: `${
|
|
7508
|
-
borderBottom: `${
|
|
7506
|
+
borderInlineEnd: `${Ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,
|
|
7507
|
+
borderTop: `${Ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,
|
|
7508
|
+
borderBottom: `${Ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`
|
|
7509
7509
|
}
|
|
7510
7510
|
}
|
|
7511
7511
|
}
|
|
7512
7512
|
})
|
|
7513
7513
|
}), Gs = (e, t) => ({
|
|
7514
7514
|
background: e.colorBgContainer,
|
|
7515
|
-
borderWidth: `${
|
|
7515
|
+
borderWidth: `${Ae(e.lineWidth)} 0`,
|
|
7516
7516
|
borderStyle: `${e.lineType} none`,
|
|
7517
7517
|
borderColor: `transparent transparent ${t.borderColor} transparent`,
|
|
7518
7518
|
borderRadius: 0,
|
|
@@ -7589,13 +7589,13 @@ const Ws = (e) => {
|
|
|
7589
7589
|
paddingInlineLG: a
|
|
7590
7590
|
} = e;
|
|
7591
7591
|
return {
|
|
7592
|
-
padding: `${
|
|
7592
|
+
padding: `${Ae(t)} ${Ae(a)}`,
|
|
7593
7593
|
fontSize: e.inputFontSizeLG,
|
|
7594
7594
|
lineHeight: r,
|
|
7595
7595
|
borderRadius: n
|
|
7596
7596
|
};
|
|
7597
7597
|
}, Xs = (e) => ({
|
|
7598
|
-
padding: `${
|
|
7598
|
+
padding: `${Ae(e.paddingBlockSM)} ${Ae(e.paddingInlineSM)}`,
|
|
7599
7599
|
fontSize: e.inputFontSizeSM,
|
|
7600
7600
|
borderRadius: e.borderRadiusSM
|
|
7601
7601
|
}), Ys = (e) => Object.assign(Object.assign({
|
|
@@ -7603,7 +7603,7 @@ const Ws = (e) => {
|
|
|
7603
7603
|
display: "inline-block",
|
|
7604
7604
|
width: "100%",
|
|
7605
7605
|
minWidth: 0,
|
|
7606
|
-
padding: `${
|
|
7606
|
+
padding: `${Ae(e.paddingBlock)} ${Ae(e.paddingInline)}`,
|
|
7607
7607
|
color: e.colorText,
|
|
7608
7608
|
fontSize: e.inputFontSize,
|
|
7609
7609
|
lineHeight: e.lineHeight,
|
|
@@ -7666,7 +7666,7 @@ const Ws = (e) => {
|
|
|
7666
7666
|
},
|
|
7667
7667
|
"&-addon": {
|
|
7668
7668
|
position: "relative",
|
|
7669
|
-
padding: `0 ${
|
|
7669
|
+
padding: `0 ${Ae(e.paddingInline)}`,
|
|
7670
7670
|
color: e.colorText,
|
|
7671
7671
|
fontWeight: "normal",
|
|
7672
7672
|
fontSize: e.inputFontSize,
|
|
@@ -7676,18 +7676,18 @@ const Ws = (e) => {
|
|
|
7676
7676
|
lineHeight: 1,
|
|
7677
7677
|
// Reset Select's style in addon
|
|
7678
7678
|
[`${r}-select`]: {
|
|
7679
|
-
margin: `${
|
|
7679
|
+
margin: `${Ae(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Ae(e.calc(e.paddingInline).mul(-1).equal())}`,
|
|
7680
7680
|
[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]: {
|
|
7681
7681
|
[`${r}-select-selector`]: {
|
|
7682
7682
|
backgroundColor: "inherit",
|
|
7683
|
-
border: `${
|
|
7683
|
+
border: `${Ae(e.lineWidth)} ${e.lineType} transparent`,
|
|
7684
7684
|
boxShadow: "none"
|
|
7685
7685
|
}
|
|
7686
7686
|
}
|
|
7687
7687
|
},
|
|
7688
7688
|
// https://github.com/ant-design/ant-design/issues/31333
|
|
7689
7689
|
[`${r}-cascader-picker`]: {
|
|
7690
|
-
margin: `-9px ${
|
|
7690
|
+
margin: `-9px ${Ae(e.calc(e.paddingInline).mul(-1).equal())}`,
|
|
7691
7691
|
backgroundColor: "transparent",
|
|
7692
7692
|
[`${r}-cascader-input`]: {
|
|
7693
7693
|
textAlign: "start",
|
|
@@ -7904,7 +7904,7 @@ const Ws = (e) => {
|
|
|
7904
7904
|
visibility: "hidden"
|
|
7905
7905
|
},
|
|
7906
7906
|
"&-has-suffix": {
|
|
7907
|
-
margin: `0 ${
|
|
7907
|
+
margin: `0 ${Ae(e.inputAffixPadding)}`
|
|
7908
7908
|
}
|
|
7909
7909
|
}
|
|
7910
7910
|
};
|
|
@@ -8233,18 +8233,18 @@ const Qs = /* @__PURE__ */ ao((e, t) => {
|
|
|
8233
8233
|
onChange: b,
|
|
8234
8234
|
classNames: g,
|
|
8235
8235
|
variant: y
|
|
8236
|
-
} = e,
|
|
8236
|
+
} = e, x = Jm(e, ["prefixCls", "bordered", "status", "size", "disabled", "onBlur", "onFocus", "suffix", "allowClear", "addonAfter", "addonBefore", "className", "style", "styles", "rootClassName", "onChange", "classNames", "variant"]);
|
|
8237
8237
|
if (process.env.NODE_ENV !== "production") {
|
|
8238
8238
|
const {
|
|
8239
|
-
deprecated:
|
|
8239
|
+
deprecated: xe
|
|
8240
8240
|
} = Kt("Input");
|
|
8241
|
-
[["bordered", "variant"], ["addonAfter", "Space.Compact"], ["addonBefore", "Space.Compact"]].forEach(([
|
|
8242
|
-
|
|
8241
|
+
[["bordered", "variant"], ["addonAfter", "Space.Compact"], ["addonBefore", "Space.Compact"]].forEach(([Me, Re]) => {
|
|
8242
|
+
xe(!(Me in e), Me, Re);
|
|
8243
8243
|
});
|
|
8244
8244
|
}
|
|
8245
8245
|
const {
|
|
8246
8246
|
getPrefixCls: _,
|
|
8247
|
-
direction:
|
|
8247
|
+
direction: C,
|
|
8248
8248
|
allowClear: S,
|
|
8249
8249
|
autoComplete: $,
|
|
8250
8250
|
className: P,
|
|
@@ -8254,35 +8254,35 @@ const Qs = /* @__PURE__ */ ao((e, t) => {
|
|
|
8254
8254
|
} = th("input"), j = _("input", r), O = fe(null), M = Fm(j), [E, A, I] = Ym(j, d), [B] = Qm(j, M), {
|
|
8255
8255
|
compactSize: H,
|
|
8256
8256
|
compactItemClassnames: q
|
|
8257
|
-
} = fm(j,
|
|
8258
|
-
var
|
|
8259
|
-
return (
|
|
8257
|
+
} = fm(j, C), G = dm((xe) => {
|
|
8258
|
+
var Me;
|
|
8259
|
+
return (Me = i ?? H) !== null && Me !== void 0 ? Me : xe;
|
|
8260
8260
|
}), X = le.useContext(tn), z = o ?? X, {
|
|
8261
8261
|
status: re,
|
|
8262
|
-
hasFeedback:
|
|
8262
|
+
hasFeedback: ie,
|
|
8263
8263
|
feedbackIcon: ue
|
|
8264
|
-
} =
|
|
8264
|
+
} = bt(Zr), ce = Om(re, a), ve = Zm(e) || !!ie, pe = fe(ve);
|
|
8265
8265
|
if (process.env.NODE_ENV !== "production") {
|
|
8266
|
-
const
|
|
8266
|
+
const xe = Kt("Input");
|
|
8267
8267
|
ge(() => {
|
|
8268
|
-
var
|
|
8269
|
-
ve && !pe.current && process.env.NODE_ENV !== "production" &&
|
|
8268
|
+
var Me;
|
|
8269
|
+
ve && !pe.current && process.env.NODE_ENV !== "production" && xe(document.activeElement === ((Me = O.current) === null || Me === void 0 ? void 0 : Me.input), "usage", "When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"), pe.current = ve;
|
|
8270
8270
|
}, [ve]);
|
|
8271
8271
|
}
|
|
8272
|
-
const be = Rm(O),
|
|
8273
|
-
be(), s?.(
|
|
8274
|
-
}, $e = (
|
|
8275
|
-
be(), l?.(
|
|
8276
|
-
}, K = (
|
|
8277
|
-
be(), b?.(
|
|
8278
|
-
}, L = (
|
|
8272
|
+
const be = Rm(O), Ce = (xe) => {
|
|
8273
|
+
be(), s?.(xe);
|
|
8274
|
+
}, $e = (xe) => {
|
|
8275
|
+
be(), l?.(xe);
|
|
8276
|
+
}, K = (xe) => {
|
|
8277
|
+
be(), b?.(xe);
|
|
8278
|
+
}, L = (ie || c) && /* @__PURE__ */ le.createElement(le.Fragment, null, c, ie && ue), Y = Tm(u ?? S), [Te, qe] = Mm("input", y, n);
|
|
8279
8279
|
return E(B(/* @__PURE__ */ le.createElement(uu, Object.assign({
|
|
8280
8280
|
ref: yu(t, O),
|
|
8281
8281
|
prefixCls: j,
|
|
8282
8282
|
autoComplete: $
|
|
8283
|
-
},
|
|
8283
|
+
}, x, {
|
|
8284
8284
|
disabled: z,
|
|
8285
|
-
onBlur:
|
|
8285
|
+
onBlur: Ce,
|
|
8286
8286
|
onFocus: $e,
|
|
8287
8287
|
style: Object.assign(Object.assign({}, R), p),
|
|
8288
8288
|
styles: Object.assign(Object.assign({}, D), h),
|
|
@@ -8302,25 +8302,25 @@ const Qs = /* @__PURE__ */ ao((e, t) => {
|
|
|
8302
8302
|
input: ke({
|
|
8303
8303
|
[`${j}-sm`]: G === "small",
|
|
8304
8304
|
[`${j}-lg`]: G === "large",
|
|
8305
|
-
[`${j}-rtl`]:
|
|
8305
|
+
[`${j}-rtl`]: C === "rtl"
|
|
8306
8306
|
}, g?.input, N.input, A),
|
|
8307
8307
|
variant: ke({
|
|
8308
|
-
[`${j}-${Te}`]:
|
|
8308
|
+
[`${j}-${Te}`]: qe
|
|
8309
8309
|
}, Yi(j, ce)),
|
|
8310
8310
|
affixWrapper: ke({
|
|
8311
8311
|
[`${j}-affix-wrapper-sm`]: G === "small",
|
|
8312
8312
|
[`${j}-affix-wrapper-lg`]: G === "large",
|
|
8313
|
-
[`${j}-affix-wrapper-rtl`]:
|
|
8313
|
+
[`${j}-affix-wrapper-rtl`]: C === "rtl"
|
|
8314
8314
|
}, A),
|
|
8315
8315
|
wrapper: ke({
|
|
8316
|
-
[`${j}-group-rtl`]:
|
|
8316
|
+
[`${j}-group-rtl`]: C === "rtl"
|
|
8317
8317
|
}, A),
|
|
8318
8318
|
groupWrapper: ke({
|
|
8319
8319
|
[`${j}-group-wrapper-sm`]: G === "small",
|
|
8320
8320
|
[`${j}-group-wrapper-lg`]: G === "large",
|
|
8321
|
-
[`${j}-group-wrapper-rtl`]:
|
|
8322
|
-
[`${j}-group-wrapper-${Te}`]:
|
|
8323
|
-
}, Yi(`${j}-group-wrapper`, ce,
|
|
8321
|
+
[`${j}-group-wrapper-rtl`]: C === "rtl",
|
|
8322
|
+
[`${j}-group-wrapper-${Te}`]: qe
|
|
8323
|
+
}, Yi(`${j}-group-wrapper`, ce, ie), A)
|
|
8324
8324
|
})
|
|
8325
8325
|
}))));
|
|
8326
8326
|
});
|
|
@@ -8345,7 +8345,7 @@ function eg({ onSearchChange: e }) {
|
|
|
8345
8345
|
) });
|
|
8346
8346
|
}
|
|
8347
8347
|
const Zs = nn(void 0), rr = () => {
|
|
8348
|
-
const e =
|
|
8348
|
+
const e = bt(Zs);
|
|
8349
8349
|
if (!e) throw new Error("useChatSocket must be used within ChatSocketProvider");
|
|
8350
8350
|
return e;
|
|
8351
8351
|
};
|
|
@@ -8361,7 +8361,7 @@ function rg() {
|
|
|
8361
8361
|
} }, y = function(O, M, E) {
|
|
8362
8362
|
var A = String(O);
|
|
8363
8363
|
return !A || A.length >= M ? O : "" + Array(M + 1 - A.length).join(E) + O;
|
|
8364
|
-
},
|
|
8364
|
+
}, x = { s: y, z: function(O) {
|
|
8365
8365
|
var M = -O.utcOffset(), E = Math.abs(M), A = Math.floor(E / 60), I = E % 60;
|
|
8366
8366
|
return (M <= 0 ? "+" : "-") + y(A, 2, "0") + ":" + y(I, 2, "0");
|
|
8367
8367
|
}, m: function O(M, E) {
|
|
@@ -8374,8 +8374,8 @@ function rg() {
|
|
|
8374
8374
|
return { M: f, y: v, w: u, d: c, D: p, h: l, m: s, s: o, ms: i, Q: m }[O] || String(O || "").toLowerCase().replace(/s$/, "");
|
|
8375
8375
|
}, u: function(O) {
|
|
8376
8376
|
return O === void 0;
|
|
8377
|
-
} }, _ = "en",
|
|
8378
|
-
|
|
8377
|
+
} }, _ = "en", C = {};
|
|
8378
|
+
C[_] = g;
|
|
8379
8379
|
var S = "$isDayjsObject", $ = function(O) {
|
|
8380
8380
|
return O instanceof D || !(!O || !O[S]);
|
|
8381
8381
|
}, P = function O(M, E, A) {
|
|
@@ -8383,19 +8383,19 @@ function rg() {
|
|
|
8383
8383
|
if (!M) return _;
|
|
8384
8384
|
if (typeof M == "string") {
|
|
8385
8385
|
var B = M.toLowerCase();
|
|
8386
|
-
|
|
8386
|
+
C[B] && (I = B), E && (C[B] = E, I = B);
|
|
8387
8387
|
var H = M.split("-");
|
|
8388
8388
|
if (!I && H.length > 1) return O(H[0]);
|
|
8389
8389
|
} else {
|
|
8390
8390
|
var q = M.name;
|
|
8391
|
-
|
|
8391
|
+
C[q] = M, I = q;
|
|
8392
8392
|
}
|
|
8393
8393
|
return !A && I && (_ = I), I || !A && _;
|
|
8394
8394
|
}, R = function(O, M) {
|
|
8395
8395
|
if ($(O)) return O.clone();
|
|
8396
8396
|
var E = typeof M == "object" ? M : {};
|
|
8397
8397
|
return E.date = O, E.args = arguments, new D(E);
|
|
8398
|
-
}, N =
|
|
8398
|
+
}, N = x;
|
|
8399
8399
|
N.l = P, N.i = $, N.w = function(O, M) {
|
|
8400
8400
|
return R(O, { locale: M.$L, utc: M.$u, x: M.$x, $offset: M.$offset });
|
|
8401
8401
|
};
|
|
@@ -8445,7 +8445,7 @@ function rg() {
|
|
|
8445
8445
|
return B ? be : be.endOf(c);
|
|
8446
8446
|
}, G = function(ve, pe) {
|
|
8447
8447
|
return N.w(I.toDate()[ve].apply(I.toDate("s"), (B ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(pe)), I);
|
|
8448
|
-
}, X = this.$W, z = this.$M, re = this.$D,
|
|
8448
|
+
}, X = this.$W, z = this.$M, re = this.$D, ie = "set" + (this.$u ? "UTC" : "");
|
|
8449
8449
|
switch (H) {
|
|
8450
8450
|
case v:
|
|
8451
8451
|
return B ? q(1, 0) : q(31, 11);
|
|
@@ -8456,13 +8456,13 @@ function rg() {
|
|
|
8456
8456
|
return q(B ? re - ce : re + (6 - ce), z);
|
|
8457
8457
|
case c:
|
|
8458
8458
|
case p:
|
|
8459
|
-
return G(
|
|
8459
|
+
return G(ie + "Hours", 0);
|
|
8460
8460
|
case l:
|
|
8461
|
-
return G(
|
|
8461
|
+
return G(ie + "Minutes", 1);
|
|
8462
8462
|
case s:
|
|
8463
|
-
return G(
|
|
8463
|
+
return G(ie + "Seconds", 2);
|
|
8464
8464
|
case o:
|
|
8465
|
-
return G(
|
|
8465
|
+
return G(ie + "Milliseconds", 3);
|
|
8466
8466
|
default:
|
|
8467
8467
|
return this.clone();
|
|
8468
8468
|
}
|
|
@@ -8497,17 +8497,17 @@ function rg() {
|
|
|
8497
8497
|
}, M.format = function(E) {
|
|
8498
8498
|
var A = this, I = this.$locale();
|
|
8499
8499
|
if (!this.isValid()) return I.invalidDate || h;
|
|
8500
|
-
var B = E || "YYYY-MM-DDTHH:mm:ssZ", H = N.z(this), q = this.$H, G = this.$m, X = this.$M, z = I.weekdays, re = I.months,
|
|
8501
|
-
return pe && (pe[be] || pe(A, B)) ||
|
|
8500
|
+
var B = E || "YYYY-MM-DDTHH:mm:ssZ", H = N.z(this), q = this.$H, G = this.$m, X = this.$M, z = I.weekdays, re = I.months, ie = I.meridiem, ue = function(pe, be, Ce, $e) {
|
|
8501
|
+
return pe && (pe[be] || pe(A, B)) || Ce[be].slice(0, $e);
|
|
8502
8502
|
}, ce = function(pe) {
|
|
8503
8503
|
return N.s(q % 12 || 12, pe, "0");
|
|
8504
|
-
}, ve =
|
|
8504
|
+
}, ve = ie || function(pe, be, Ce) {
|
|
8505
8505
|
var $e = pe < 12 ? "AM" : "PM";
|
|
8506
|
-
return
|
|
8506
|
+
return Ce ? $e.toLowerCase() : $e;
|
|
8507
8507
|
};
|
|
8508
8508
|
return B.replace(b, (function(pe, be) {
|
|
8509
|
-
return be || (function(
|
|
8510
|
-
switch (
|
|
8509
|
+
return be || (function(Ce) {
|
|
8510
|
+
switch (Ce) {
|
|
8511
8511
|
case "YY":
|
|
8512
8512
|
return String(A.$y).slice(-2);
|
|
8513
8513
|
case "YYYY":
|
|
@@ -8598,7 +8598,7 @@ function rg() {
|
|
|
8598
8598
|
}, M.daysInMonth = function() {
|
|
8599
8599
|
return this.endOf(f).$D;
|
|
8600
8600
|
}, M.$locale = function() {
|
|
8601
|
-
return
|
|
8601
|
+
return C[this.$L];
|
|
8602
8602
|
}, M.locale = function(E, A) {
|
|
8603
8603
|
if (!E) return this.$L;
|
|
8604
8604
|
var I = this.clone(), B = P(E, A, !0);
|
|
@@ -8623,12 +8623,12 @@ function rg() {
|
|
|
8623
8623
|
return O.$i || (O(M, D, R), O.$i = !0), R;
|
|
8624
8624
|
}, R.locale = P, R.isDayjs = $, R.unix = function(O) {
|
|
8625
8625
|
return R(1e3 * O);
|
|
8626
|
-
}, R.en =
|
|
8626
|
+
}, R.en = C[_], R.Ls = C, R.p = {}, R;
|
|
8627
8627
|
}));
|
|
8628
8628
|
})(Kr)), Kr.exports;
|
|
8629
8629
|
}
|
|
8630
8630
|
var ng = rg();
|
|
8631
|
-
const
|
|
8631
|
+
const Ft = /* @__PURE__ */ ho(ng);
|
|
8632
8632
|
function ag({ search: e, onSelectChat: t, selectedChatId: r }) {
|
|
8633
8633
|
const {
|
|
8634
8634
|
/* socket */
|
|
@@ -8651,20 +8651,20 @@ function ag({ search: e, onSelectChat: t, selectedChatId: r }) {
|
|
|
8651
8651
|
return `${g?.surname ?? ""} ${g?.name ?? ""}`.trim();
|
|
8652
8652
|
}, []), u = (h, d = 100) => h.length <= d ? h : h.substring(0, d) + "...", f = (h) => {
|
|
8653
8653
|
if (!h || !Number.isFinite(h)) return null;
|
|
8654
|
-
const d =
|
|
8654
|
+
const d = Ft(h * 1e3);
|
|
8655
8655
|
return {
|
|
8656
8656
|
date: d.format("DD.MM.YY"),
|
|
8657
8657
|
time: d.format("HH:mm")
|
|
8658
8658
|
};
|
|
8659
|
-
}, m = (h) => !h.text?.trim() && Array.isArray(h.files) && h.files.length > 0, v = (h) => h.trim().split(/\s+/).filter(Boolean).slice(0, 2).map((d) => d[0]?.toUpperCase()).join(""), p =
|
|
8659
|
+
}, m = (h) => !h.text?.trim() && Array.isArray(h.files) && h.files.length > 0, v = (h) => h.trim().split(/\s+/).filter(Boolean).slice(0, 2).map((d) => d[0]?.toUpperCase()).join(""), p = $t(() => {
|
|
8660
8660
|
const h = e.toLowerCase(), b = a.filter((y) => {
|
|
8661
8661
|
if (y?.to?.id === s && y?.from?.id === s)
|
|
8662
8662
|
return !0;
|
|
8663
|
-
const
|
|
8664
|
-
return y && (_.toLowerCase().includes(h) ||
|
|
8665
|
-
}).sort((y,
|
|
8663
|
+
const x = l(y), _ = c(y, x, !1), C = y?.text?.toLowerCase() || "";
|
|
8664
|
+
return y && (_.toLowerCase().includes(h) || C.includes(h));
|
|
8665
|
+
}).sort((y, x) => {
|
|
8666
8666
|
const _ = y.updated_at || y.created_at;
|
|
8667
|
-
return (
|
|
8667
|
+
return (x.updated_at || x.created_at) - _;
|
|
8668
8668
|
}), g = b.findIndex((y) => s && y.from.id && y.to.id && +y.from.id == +s && +y.to.id == +s);
|
|
8669
8669
|
return g !== -1 && b.splice(g, 1), b.unshift({
|
|
8670
8670
|
id: 0,
|
|
@@ -8690,16 +8690,16 @@ function ag({ search: e, onSelectChat: t, selectedChatId: r }) {
|
|
|
8690
8690
|
] })
|
|
8691
8691
|
] })
|
|
8692
8692
|
] }) }, `chat-list-skeleton-${d}`)) : p.map((h, d) => {
|
|
8693
|
-
const b = l(h), g = c(h, b, h.chat_id === s), y = v(g),
|
|
8693
|
+
const b = l(h), g = c(h, b, h.chat_id === s), y = v(g), x = h.chat_id === r, _ = b === "self", C = h.id === 0 && h.chat_id === s, S = m(h), $ = S ? "Файл" : h.text?.trim() || "", P = f(h.updated_at || h.created_at);
|
|
8694
8694
|
return /* @__PURE__ */ T("div", { children: /* @__PURE__ */ me(
|
|
8695
8695
|
"li",
|
|
8696
8696
|
{
|
|
8697
|
-
className: `${V.chatItem} ${
|
|
8697
|
+
className: `${V.chatItem} ${x ? V.activeChatItem : ""}`,
|
|
8698
8698
|
onClick: () => {
|
|
8699
|
-
t(
|
|
8699
|
+
t(x ? null : h.chat_id ?? null);
|
|
8700
8700
|
},
|
|
8701
8701
|
children: [
|
|
8702
|
-
/* @__PURE__ */ T(io, { className: V.chatListAvatar, size: 36, children:
|
|
8702
|
+
/* @__PURE__ */ T(io, { className: V.chatListAvatar, size: 36, children: C ? /* @__PURE__ */ T(lo, { size: 18, strokeWidth: 2 }) : y }),
|
|
8703
8703
|
/* @__PURE__ */ me("div", { className: V.chatItemContent, children: [
|
|
8704
8704
|
/* @__PURE__ */ T("div", { className: V.companionName, children: g || "Неизвестный" }),
|
|
8705
8705
|
/* @__PURE__ */ me("div", { className: V["last-message"], children: [
|
|
@@ -8709,7 +8709,7 @@ function ag({ search: e, onSelectChat: t, selectedChatId: r }) {
|
|
|
8709
8709
|
P ? /* @__PURE__ */ me("div", { className: V.lastMessageDateTime, children: [
|
|
8710
8710
|
/* @__PURE__ */ T("span", { className: V.lastMessageDate, children: P.date }),
|
|
8711
8711
|
/* @__PURE__ */ T("span", { className: V.lastMessageTime, children: P.time }),
|
|
8712
|
-
_ && !
|
|
8712
|
+
_ && !C ? /* @__PURE__ */ T("span", { className: `${V.lastMessageStatus} ${h.status ? V.lastMessageStatusRead : ""}`, children: h.status ? /* @__PURE__ */ T(uo, { size: 16, strokeWidth: 2 }) : /* @__PURE__ */ T(fo, { size: 16, strokeWidth: 2 }) }) : null
|
|
8713
8713
|
] }) : null
|
|
8714
8714
|
] }),
|
|
8715
8715
|
/* @__PURE__ */ T(cc, { count: h.count_unread })
|
|
@@ -8928,7 +8928,7 @@ function ug({ message: e, answeredMessage: t, onAnswerClick: r, pasteFileIcon: n
|
|
|
8928
8928
|
/* @__PURE__ */ T("p", { className: V.href_label, children: v?.name })
|
|
8929
8929
|
] }, `file-${v.id}-${p}`)) }),
|
|
8930
8930
|
/* @__PURE__ */ me("div", { className: V.time, style: { display: "flex", justifyContent: "flex-end", height: "18px" }, children: [
|
|
8931
|
-
/* @__PURE__ */ T("div", { children:
|
|
8931
|
+
/* @__PURE__ */ T("div", { children: Ft(+o * 1e3).format("HH:mm") }),
|
|
8932
8932
|
!s && /* @__PURE__ */ T(
|
|
8933
8933
|
"span",
|
|
8934
8934
|
{
|
|
@@ -8980,7 +8980,7 @@ function dg({ message: e, answeredMessage: t, onReply: r, onAnswerClick: n, past
|
|
|
8980
8980
|
/* @__PURE__ */ T("div", { className: `${V.file_circle}`, children: a(m.extension) }),
|
|
8981
8981
|
/* @__PURE__ */ T("p", { className: V.href_label, children: m?.name })
|
|
8982
8982
|
] }, `file-${m.id}-${v}`)) }),
|
|
8983
|
-
/* @__PURE__ */ T("div", { className: V.time, children:
|
|
8983
|
+
/* @__PURE__ */ T("div", { className: V.time, children: Ft(+l * 1e3).format("HH:mm") })
|
|
8984
8984
|
] }) }) });
|
|
8985
8985
|
}
|
|
8986
8986
|
const fg = ({
|
|
@@ -9067,9 +9067,9 @@ const fg = ({
|
|
|
9067
9067
|
const b = Array.from(h.querySelectorAll("img"));
|
|
9068
9068
|
if (b.length === 0) return Promise.resolve();
|
|
9069
9069
|
const g = b.filter((y) => !y.complete).map(
|
|
9070
|
-
(y) => new Promise((
|
|
9070
|
+
(y) => new Promise((x) => {
|
|
9071
9071
|
const _ = () => {
|
|
9072
|
-
y.removeEventListener("load", _), y.removeEventListener("error", _),
|
|
9072
|
+
y.removeEventListener("load", _), y.removeEventListener("error", _), x();
|
|
9073
9073
|
};
|
|
9074
9074
|
y.addEventListener("load", _), y.addEventListener("error", _);
|
|
9075
9075
|
})
|
|
@@ -9082,13 +9082,17 @@ const fg = ({
|
|
|
9082
9082
|
if (a || i.current || !r || c.scrollTop > n) return;
|
|
9083
9083
|
i.current = !0;
|
|
9084
9084
|
const h = o.current, d = s.current, b = l.current ?? c.scrollTop, g = c.scrollHeight;
|
|
9085
|
-
|
|
9085
|
+
if (await t() === !1) {
|
|
9086
|
+
i.current = !1;
|
|
9087
|
+
return;
|
|
9088
|
+
}
|
|
9089
|
+
await v(c, 200), requestAnimationFrame(() => {
|
|
9086
9090
|
requestAnimationFrame(() => {
|
|
9087
9091
|
if (h != null) {
|
|
9088
|
-
const
|
|
9089
|
-
if (
|
|
9090
|
-
const
|
|
9091
|
-
c.scrollTop = (b || 0) + (
|
|
9092
|
+
const x = c.scrollHeight, _ = `.message[data-id="${h}"]`, C = c.querySelector(_);
|
|
9093
|
+
if (C) {
|
|
9094
|
+
const $ = C.offsetTop - (d || 0), P = x - g;
|
|
9095
|
+
c.scrollTop = (b || 0) + ($ || P);
|
|
9092
9096
|
}
|
|
9093
9097
|
}
|
|
9094
9098
|
u.disconnect(), m(), i.current = !1;
|
|
@@ -9128,7 +9132,7 @@ function gg({ chatId: e }) {
|
|
|
9128
9132
|
who: "",
|
|
9129
9133
|
messages: [],
|
|
9130
9134
|
total: 0
|
|
9131
|
-
}), [f, m] = ee(!0), [v, p] = ee(!1), [h, d] = ee(!1), [b, g] = ee(!1), [y,
|
|
9135
|
+
}), [f, m] = ee(!0), [v, p] = ee(!1), [h, d] = ee(!1), [b, g] = ee(!1), [y, x] = ee(null), _ = fe(null), C = fe(null), S = fe(/* @__PURE__ */ new Set()), $ = fe(null), {
|
|
9132
9136
|
chats: P,
|
|
9133
9137
|
loadingChat: R,
|
|
9134
9138
|
loadingSendSms: N,
|
|
@@ -9155,24 +9159,24 @@ function gg({ chatId: e }) {
|
|
|
9155
9159
|
isSending: L.isSending || !1,
|
|
9156
9160
|
status: L.status || !1,
|
|
9157
9161
|
_raw: L
|
|
9158
|
-
}), [c.who, i]), z =
|
|
9162
|
+
}), [c.who, i]), z = $t(() => {
|
|
9159
9163
|
const L = /* @__PURE__ */ new Set();
|
|
9160
9164
|
return [...c.messages].filter((Y) => {
|
|
9161
9165
|
const Te = Y.id?.toString();
|
|
9162
9166
|
return L.has(Te) ? !1 : (L.add(Te), !0);
|
|
9163
9167
|
}).map(X);
|
|
9164
|
-
}, [c.messages, X]), re =
|
|
9168
|
+
}, [c.messages, X]), re = $t(() => z.reduce((L, Y) => (L[Y.id] = Y, L), {}), [z]), ie = $t(() => {
|
|
9165
9169
|
if (!z || z.length === 0) return [];
|
|
9166
9170
|
const L = z.length > 1 && Number(z[0].timestamp) > Number(z[z.length - 1].timestamp), Y = L ? [...z].slice().reverse() : [...z], Te = [];
|
|
9167
|
-
let
|
|
9168
|
-
for (const
|
|
9169
|
-
const
|
|
9170
|
-
|
|
9171
|
+
let qe = null;
|
|
9172
|
+
for (const xe of Y) {
|
|
9173
|
+
const Me = Ft(Number(xe.timestamp) * 1e3).format("DD.MM.YY");
|
|
9174
|
+
qe !== Me && (Te.push({ type: "divider", id: `divider-${Me}`, timestamp: xe.timestamp }), qe = Me), Te.push({ type: "msg", id: xe.id.toString(), message: xe });
|
|
9171
9175
|
}
|
|
9172
9176
|
return L ? Te.slice().reverse() : Te;
|
|
9173
|
-
}, [z]), ue =
|
|
9177
|
+
}, [z]), ue = $t(() => i ? z.filter((L) => !L.status && +L.fromId != +i)?.length : 0, [z, i]);
|
|
9174
9178
|
fg({
|
|
9175
|
-
messagesWithDividers:
|
|
9179
|
+
messagesWithDividers: ie,
|
|
9176
9180
|
currentUserId: i,
|
|
9177
9181
|
chatId: e,
|
|
9178
9182
|
containerRef: t,
|
|
@@ -9181,17 +9185,17 @@ function gg({ chatId: e }) {
|
|
|
9181
9185
|
containerRef: t,
|
|
9182
9186
|
fetchMoreMessages: () => {
|
|
9183
9187
|
const L = c.messages[0]?.id;
|
|
9184
|
-
!L || S.current.has(L)
|
|
9188
|
+
return !L || S.current.has(L) ? !1 : (S.current.add(L), D(e, L), !0);
|
|
9185
9189
|
},
|
|
9186
9190
|
hasMore: f,
|
|
9187
9191
|
offset: 500,
|
|
9188
|
-
disabled: b || !!
|
|
9192
|
+
disabled: b || !!C.current
|
|
9189
9193
|
}), mg({
|
|
9190
|
-
messagesWithDividers:
|
|
9194
|
+
messagesWithDividers: ie,
|
|
9191
9195
|
containerRef: t,
|
|
9192
9196
|
offset: 500
|
|
9193
9197
|
}), ge(() => {
|
|
9194
|
-
p(!1),
|
|
9198
|
+
p(!1), x(null), g(!1), S.current.clear(), C.current = null, u({
|
|
9195
9199
|
chat_id: 0,
|
|
9196
9200
|
who: "",
|
|
9197
9201
|
messages: [],
|
|
@@ -9207,23 +9211,23 @@ function gg({ chatId: e }) {
|
|
|
9207
9211
|
}, [E]), ge(() => {
|
|
9208
9212
|
t.current && z.length > 0 && !v && (t.current.scrollTop = t.current.scrollHeight, p(!0));
|
|
9209
9213
|
}, [z, v]), ge(() => {
|
|
9210
|
-
if (!
|
|
9211
|
-
const L =
|
|
9214
|
+
if (!C.current) return;
|
|
9215
|
+
const L = C.current;
|
|
9212
9216
|
requestAnimationFrame(() => {
|
|
9213
9217
|
requestAnimationFrame(() => {
|
|
9214
|
-
|
|
9218
|
+
Ce(L) && (C.current = null, $.current && window.clearTimeout($.current), $.current = window.setTimeout(() => {
|
|
9215
9219
|
g(!1);
|
|
9216
9220
|
}, 1200));
|
|
9217
9221
|
});
|
|
9218
9222
|
});
|
|
9219
|
-
}, [
|
|
9220
|
-
m(c?.total - c?.messages?.length > 0);
|
|
9223
|
+
}, [ie]), ge(() => {
|
|
9224
|
+
m(c.hasMoreBefore !== !1 && c?.total - c?.messages?.length > 0);
|
|
9221
9225
|
}, [c]), ge(() => {
|
|
9222
9226
|
const L = t.current;
|
|
9223
9227
|
if (!L) return;
|
|
9224
9228
|
const Y = () => {
|
|
9225
|
-
const { scrollTop: Te, scrollHeight:
|
|
9226
|
-
d(
|
|
9229
|
+
const { scrollTop: Te, scrollHeight: qe, clientHeight: xe } = L;
|
|
9230
|
+
d(qe - Te - xe > 200);
|
|
9227
9231
|
};
|
|
9228
9232
|
return L.addEventListener("scroll", Y), () => L.removeEventListener("scroll", Y);
|
|
9229
9233
|
}, []);
|
|
@@ -9233,9 +9237,9 @@ function gg({ chatId: e }) {
|
|
|
9233
9237
|
text: L,
|
|
9234
9238
|
files: Y,
|
|
9235
9239
|
answer: y?.id ?? null,
|
|
9236
|
-
timestamp: Number(
|
|
9240
|
+
timestamp: Number(Ft().unix()),
|
|
9237
9241
|
from_id: i
|
|
9238
|
-
}),
|
|
9242
|
+
}), x(null));
|
|
9239
9243
|
}, ve = (L) => L ? {
|
|
9240
9244
|
id: L.id,
|
|
9241
9245
|
text: L.text || "",
|
|
@@ -9244,7 +9248,7 @@ function gg({ chatId: e }) {
|
|
|
9244
9248
|
id: L.id,
|
|
9245
9249
|
text: L.text || "",
|
|
9246
9250
|
senderName: i && +L.from_id == +i ? "Вы" : c.who
|
|
9247
|
-
} : null, be = (L) => L?.answer ? ve(re[L.answer]) || pe(L.answerMessage) : null,
|
|
9251
|
+
} : null, be = (L) => L?.answer ? ve(re[L.answer]) || pe(L.answerMessage) : null, Ce = (L) => {
|
|
9248
9252
|
const Y = t.current?.querySelector(
|
|
9249
9253
|
`.message[data-id="${L}"]`
|
|
9250
9254
|
);
|
|
@@ -9252,8 +9256,13 @@ function gg({ chatId: e }) {
|
|
|
9252
9256
|
Y.classList.remove(V.messageHighlighted);
|
|
9253
9257
|
}, 4e3), !0) : !1;
|
|
9254
9258
|
}, $e = async (L) => {
|
|
9255
|
-
if (
|
|
9256
|
-
|
|
9259
|
+
if (g(!0), C.current = L, Ce(L)) {
|
|
9260
|
+
$.current && window.clearTimeout($.current), $.current = window.setTimeout(() => {
|
|
9261
|
+
C.current = null, g(!1);
|
|
9262
|
+
}, 1600);
|
|
9263
|
+
return;
|
|
9264
|
+
}
|
|
9265
|
+
await j(e, L) || (C.current = null, g(!1));
|
|
9257
9266
|
}, K = (L) => {
|
|
9258
9267
|
switch (L) {
|
|
9259
9268
|
case "jpg":
|
|
@@ -9326,8 +9335,8 @@ function gg({ chatId: e }) {
|
|
|
9326
9335
|
/* @__PURE__ */ T("div", { className: `${V.chatSkeletonRow} ${V.chatSkeletonRowSelf}`, children: /* @__PURE__ */ T(tt.Button, { active: !0, className: V.chatSkeletonBubbleSelf }) }),
|
|
9327
9336
|
/* @__PURE__ */ T("div", { className: V.chatSkeletonRow, children: /* @__PURE__ */ T(tt.Button, { active: !0, className: V.chatSkeletonBubbleWide }) }),
|
|
9328
9337
|
/* @__PURE__ */ T("div", { className: `${V.chatSkeletonRow} ${V.chatSkeletonRowSelf}`, children: /* @__PURE__ */ T(tt.Button, { active: !0, className: V.chatSkeletonBubble }) })
|
|
9329
|
-
] }) :
|
|
9330
|
-
(L) => L.type === "divider" && !L?.message ? /* @__PURE__ */ T(a, { children: L.timestamp ?
|
|
9338
|
+
] }) : ie && ie.length > 0 ? ie.map(
|
|
9339
|
+
(L) => L.type === "divider" && !L?.message ? /* @__PURE__ */ T(a, { children: L.timestamp ? Ft(+L.timestamp * 1e3).format("DD.MM.YY").toString() : "" }, L.id) : L?.message?.fromId && i && +L?.message?.fromId == +i ? /* @__PURE__ */ T(
|
|
9331
9340
|
r,
|
|
9332
9341
|
{
|
|
9333
9342
|
message: L?.message,
|
|
@@ -9341,7 +9350,7 @@ function gg({ chatId: e }) {
|
|
|
9341
9350
|
{
|
|
9342
9351
|
message: L?.message,
|
|
9343
9352
|
answeredMessage: be(L?.message),
|
|
9344
|
-
onReply:
|
|
9353
|
+
onReply: x,
|
|
9345
9354
|
onAnswerClick: $e,
|
|
9346
9355
|
pasteFileIcon: K
|
|
9347
9356
|
},
|
|
@@ -9365,14 +9374,14 @@ function gg({ chatId: e }) {
|
|
|
9365
9374
|
onClick: () => {
|
|
9366
9375
|
if (!t.current) return;
|
|
9367
9376
|
t.current.scrollTop = t.current.scrollHeight, d(!1);
|
|
9368
|
-
const L =
|
|
9377
|
+
const L = ie.filter((Y) => Y.type !== "divider").filter((Y) => Y?.message?.fromId && i && +Y?.message?.fromId != +i).filter((Y) => !Y?.message?.status).map((Y) => Y?.message?.id);
|
|
9369
9378
|
L.length > 0 && M(L);
|
|
9370
9379
|
}
|
|
9371
9380
|
}
|
|
9372
9381
|
)
|
|
9373
9382
|
] })
|
|
9374
9383
|
] }),
|
|
9375
|
-
/* @__PURE__ */ T(l, { className: V["chat-input__footer"], children: /* @__PURE__ */ T(cg, { onSend: ce, replyTo: y, onCancelReply: () =>
|
|
9384
|
+
/* @__PURE__ */ T(l, { className: V["chat-input__footer"], children: /* @__PURE__ */ T(cg, { onSend: ce, replyTo: y, onCancelReply: () => x(null) }) })
|
|
9376
9385
|
] });
|
|
9377
9386
|
}
|
|
9378
9387
|
const { Sider: pg, Content: vg } = zt;
|
|
@@ -9397,24 +9406,24 @@ const bg = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
|
|
|
9397
9406
|
}, [e]), ge(() => {
|
|
9398
9407
|
if (e && n) {
|
|
9399
9408
|
const h = window.innerWidth, d = window.innerHeight, b = a.current ? a.current.offsetWidth : 500, g = a.current ? a.current.offsetHeight : 400;
|
|
9400
|
-
let y,
|
|
9409
|
+
let y, x;
|
|
9401
9410
|
switch (n) {
|
|
9402
9411
|
case "topLeft":
|
|
9403
|
-
y = 10,
|
|
9412
|
+
y = 10, x = 10;
|
|
9404
9413
|
break;
|
|
9405
9414
|
case "topRight":
|
|
9406
|
-
y = h - b - 10,
|
|
9415
|
+
y = h - b - 10, x = 10;
|
|
9407
9416
|
break;
|
|
9408
9417
|
case "bottomLeft":
|
|
9409
|
-
y = 10,
|
|
9418
|
+
y = 10, x = d - g - 10;
|
|
9410
9419
|
break;
|
|
9411
9420
|
case "bottomRight":
|
|
9412
|
-
y = h - b - 10,
|
|
9421
|
+
y = h - b - 10, x = d - g - 10;
|
|
9413
9422
|
break;
|
|
9414
9423
|
default:
|
|
9415
|
-
y = 0,
|
|
9424
|
+
y = 0, x = 0;
|
|
9416
9425
|
}
|
|
9417
|
-
c({ x: y, y:
|
|
9426
|
+
c({ x: y, y: x });
|
|
9418
9427
|
}
|
|
9419
9428
|
}, [n, e]);
|
|
9420
9429
|
const m = () => {
|
|
@@ -9503,18 +9512,18 @@ const bg = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
|
|
|
9503
9512
|
const u = De(
|
|
9504
9513
|
(g) => !g || !l ? null : g.chat_id === l || g.from?.id === l ? "self" : "companion",
|
|
9505
9514
|
[l]
|
|
9506
|
-
), f = De((g, y,
|
|
9507
|
-
if (
|
|
9515
|
+
), f = De((g, y, x = !1) => {
|
|
9516
|
+
if (x) return "Сохранённое";
|
|
9508
9517
|
const _ = y === "self" ? g?.to : g?.from;
|
|
9509
9518
|
return `${_?.surname ?? ""} ${_?.name ?? ""}`.trim();
|
|
9510
|
-
}, []), m =
|
|
9519
|
+
}, []), m = $t(() => {
|
|
9511
9520
|
if (!Array.isArray(i) || i.length === 0)
|
|
9512
9521
|
return { hasSms: !1, messages: [] };
|
|
9513
9522
|
const g = i.filter((y) => {
|
|
9514
|
-
const
|
|
9515
|
-
return
|
|
9523
|
+
const x = y?.from?.id || y?.from_id, _ = y?.to?.id || y?.to_id;
|
|
9524
|
+
return x === l || _ === l;
|
|
9516
9525
|
}).filter((y) => y?.count_unread > 0).map((y) => {
|
|
9517
|
-
const
|
|
9526
|
+
const x = u(y), _ = f(y, x, !1);
|
|
9518
9527
|
return {
|
|
9519
9528
|
id: y.chat_id || y.id,
|
|
9520
9529
|
name: _ || "Неизвестный",
|
|
@@ -9522,18 +9531,18 @@ const bg = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
|
|
|
9522
9531
|
// Теперь фамилия включена в displayName
|
|
9523
9532
|
content: y.text || y.last_message || "(без текста)",
|
|
9524
9533
|
chatId: y.chat_id,
|
|
9525
|
-
role:
|
|
9534
|
+
role: x,
|
|
9526
9535
|
// Добавляем роль для отладки
|
|
9527
9536
|
countUnread: y.count_unread,
|
|
9528
9537
|
_fullChat: y
|
|
9529
9538
|
};
|
|
9530
9539
|
});
|
|
9531
9540
|
return { hasSms: g.length > 0, messages: g };
|
|
9532
|
-
}, [i, l, u, f]), v =
|
|
9541
|
+
}, [i, l, u, f]), v = $t(() => {
|
|
9533
9542
|
if (!m.hasSms) return [];
|
|
9534
9543
|
const { messages: g } = m;
|
|
9535
|
-
return g.map((y,
|
|
9536
|
-
key: `message-${
|
|
9544
|
+
return g.map((y, x) => ({
|
|
9545
|
+
key: `message-${x}-${y.id}`,
|
|
9537
9546
|
label: /* @__PURE__ */ me("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", gap: "10px" }, children: [
|
|
9538
9547
|
/* @__PURE__ */ T("div", { children: y.name }),
|
|
9539
9548
|
/* @__PURE__ */ T("div", { children: y.countUnread })
|
|
@@ -10419,33 +10428,33 @@ const bg = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
|
|
|
10419
10428
|
};
|
|
10420
10429
|
In.defaults.withCredentials = !0;
|
|
10421
10430
|
const _g = ({ children: e, onNewMessage: t, onMessageUpdated: r }) => {
|
|
10422
|
-
const a = fe(null), i = fe(t), o = fe(r), [s, l] = ee(!1), [c, u] = ee("disconnected"), [f, m] = ee(null), v = fe(f), [p, h] = ee(""), [d, b] = ee(""), [g, y] = ee(!1), [
|
|
10431
|
+
const a = fe(null), i = fe(t), o = fe(r), [s, l] = ee(!1), [c, u] = ee("disconnected"), [f, m] = ee(null), v = fe(f), [p, h] = ee(""), [d, b] = ee(""), [g, y] = ee(!1), [x, _] = ee(0), [C, S] = ee(null), [$, P] = ee(null), [R, N] = ee(null), [D, j] = ee(null), [O, M] = ee(null), [E, A] = ee(null), [I, B] = ee(null), [H, q] = ee(null), [G, X] = ee(null), [z, re] = ee([]), ie = fe(z), [ue, ce] = ee([]), ve = fe(ue), [pe, be] = ee(0), [Ce, $e] = ee(0), [K, L] = ee(!1), [Y, Te] = ee(!1), [qe, xe] = ee(!1), [Me, Re] = ee(0), [Ne, he] = ee({
|
|
10423
10432
|
message: "",
|
|
10424
10433
|
description: "",
|
|
10425
10434
|
type: "info"
|
|
10426
10435
|
}), [Z, Oe] = ee(!1), at = De(() => {
|
|
10427
10436
|
const W = In;
|
|
10428
10437
|
return W?.default && typeof W.default == "function" ? W.default : W;
|
|
10429
|
-
}, []),
|
|
10430
|
-
if (
|
|
10431
|
-
return
|
|
10438
|
+
}, []), Xe = De(() => {
|
|
10439
|
+
if (C && typeof C?.post == "function")
|
|
10440
|
+
return C;
|
|
10432
10441
|
const W = at();
|
|
10433
10442
|
return W && typeof W.post == "function" ? W : null;
|
|
10434
|
-
}, [
|
|
10443
|
+
}, [C, at]), je = De((W, U) => {
|
|
10435
10444
|
if (In.isAxiosError(U)) {
|
|
10436
|
-
const Q = U.response?.status,
|
|
10437
|
-
console.error(`[${W}] axios error`, { status: Q, data:
|
|
10445
|
+
const Q = U.response?.status, oe = U.response?.data;
|
|
10446
|
+
console.error(`[${W}] axios error`, { status: Q, data: oe, message: U.message });
|
|
10438
10447
|
return;
|
|
10439
10448
|
}
|
|
10440
10449
|
console.error(`[${W}] error`, U);
|
|
10441
|
-
}, []),
|
|
10450
|
+
}, []), _t = De((W) => {
|
|
10442
10451
|
const U = W.replace(/\/+$/, "");
|
|
10443
10452
|
return U.endsWith("/context") ? U.replace(/\/context$/, "/chat/messages") : U.endsWith("/chat/messages") ? U : `${U}/chat/messages`;
|
|
10444
10453
|
}, []), Er = De(() => {
|
|
10445
|
-
if (!g || !
|
|
10454
|
+
if (!g || !x || !p || !d)
|
|
10446
10455
|
return;
|
|
10447
10456
|
a.current?.connected && a.current.disconnect();
|
|
10448
|
-
const W = Z ? Vc(`${p}:${
|
|
10457
|
+
const W = Z ? Vc(`${p}:${x}`, { transports: ["websocket", "polling"], withCredentials: !0 }) : null;
|
|
10449
10458
|
a.current = W, W && (W.on("connect", () => {
|
|
10450
10459
|
console.log("CHAT WEBSOCKET CONNECTED"), l(!0), u("connected");
|
|
10451
10460
|
const U = v.current?.user?.id;
|
|
@@ -10455,13 +10464,13 @@ const _g = ({ children: e, onNewMessage: t, onMessageUpdated: r }) => {
|
|
|
10455
10464
|
}
|
|
10456
10465
|
W.emit(I ?? "", U);
|
|
10457
10466
|
}), W.on(H ?? "", (U) => {
|
|
10458
|
-
i.current?.(U), U.left && $r(U.left, !1), typeof U.left?.total_unread == "number" && $e(U.left.total_unread), U.right && Tr(U.right),
|
|
10467
|
+
i.current?.(U), U.left && $r(U.left, !1), typeof U.left?.total_unread == "number" && $e(U.left.total_unread), U.right && Tr(U.right), Re(Ft().unix()), he({
|
|
10459
10468
|
message: "Новое уведомление.",
|
|
10460
10469
|
description: "",
|
|
10461
10470
|
type: "success"
|
|
10462
10471
|
});
|
|
10463
10472
|
}), W.on(G ?? "", (U) => {
|
|
10464
|
-
o.current?.(U), U.sms && typeof U.sms.to == "number" && Or(U.sms, U.sms.to, !0),
|
|
10473
|
+
o.current?.(U), U.sms && typeof U.sms.to == "number" && Or(U.sms, U.sms.to, !0), Re(Ft().unix()), he({
|
|
10465
10474
|
message: "Новое уведомление.",
|
|
10466
10475
|
description: "",
|
|
10467
10476
|
type: "success"
|
|
@@ -10471,7 +10480,7 @@ const _g = ({ children: e, onNewMessage: t, onMessageUpdated: r }) => {
|
|
|
10471
10480
|
}), W.on("connect_error", () => {
|
|
10472
10481
|
console.log("CHAT WEBSOCKET CONNECT ERROR");
|
|
10473
10482
|
}));
|
|
10474
|
-
}, [Z, g,
|
|
10483
|
+
}, [Z, g, x, p, d, I, H, G]);
|
|
10475
10484
|
ge(() => {
|
|
10476
10485
|
i.current = t;
|
|
10477
10486
|
}, [t]), ge(() => {
|
|
@@ -10486,104 +10495,106 @@ const _g = ({ children: e, onNewMessage: t, onMessageUpdated: r }) => {
|
|
|
10486
10495
|
...U,
|
|
10487
10496
|
messages: [...W.messages, ...U.messages]
|
|
10488
10497
|
};
|
|
10489
|
-
ce((
|
|
10498
|
+
ce((oe) => oe.map((se) => se.chat_id === Q.chat_id ? Q : se));
|
|
10490
10499
|
}
|
|
10491
|
-
}, fn = (W, U, Q,
|
|
10492
|
-
ce((
|
|
10493
|
-
const
|
|
10494
|
-
return
|
|
10495
|
-
...
|
|
10500
|
+
}, fn = (W, U, Q, oe, se) => {
|
|
10501
|
+
ce((ae) => {
|
|
10502
|
+
const Fe = ae.findIndex((we) => +we.chat_id == +W);
|
|
10503
|
+
return Fe === -1 ? [
|
|
10504
|
+
...ae,
|
|
10496
10505
|
{
|
|
10497
10506
|
chat_id: W,
|
|
10498
10507
|
who: Q ?? "",
|
|
10499
10508
|
messages: U,
|
|
10500
|
-
total:
|
|
10509
|
+
total: oe ?? U.length,
|
|
10510
|
+
hasMoreBefore: se
|
|
10501
10511
|
}
|
|
10502
|
-
] :
|
|
10503
|
-
if (
|
|
10504
|
-
const
|
|
10505
|
-
return [...
|
|
10506
|
-
|
|
10507
|
-
...
|
|
10508
|
-
...
|
|
10512
|
+
] : ae.map((we, Ye) => {
|
|
10513
|
+
if (Ye !== Fe) return we;
|
|
10514
|
+
const Ge = /* @__PURE__ */ new Map();
|
|
10515
|
+
return [...we.messages, ...U].forEach((mt) => {
|
|
10516
|
+
Ge.set(mt.id, {
|
|
10517
|
+
...Ge.get(mt.id),
|
|
10518
|
+
...mt
|
|
10509
10519
|
});
|
|
10510
10520
|
}), {
|
|
10511
|
-
...
|
|
10512
|
-
who: Q ??
|
|
10513
|
-
total: typeof
|
|
10514
|
-
|
|
10521
|
+
...we,
|
|
10522
|
+
who: Q ?? we.who,
|
|
10523
|
+
total: typeof oe == "number" ? oe : we.total,
|
|
10524
|
+
hasMoreBefore: typeof se == "boolean" ? se : we.hasMoreBefore,
|
|
10525
|
+
messages: Array.from(Ge.values()).sort((mt, Be) => Number(mt.created_at) - Number(Be.created_at))
|
|
10515
10526
|
};
|
|
10516
10527
|
});
|
|
10517
10528
|
});
|
|
10518
10529
|
}, $r = (W, U = !0) => {
|
|
10519
10530
|
re((Q) => {
|
|
10520
|
-
let
|
|
10521
|
-
return U ?
|
|
10531
|
+
let oe = -1;
|
|
10532
|
+
return U ? oe = Q.findIndex((se) => se.chat_id === W.chat_id) : oe = Q.findIndex((se) => se.chat_id === W.from.id), oe === -1 ? [
|
|
10522
10533
|
Q[0],
|
|
10523
10534
|
W,
|
|
10524
10535
|
...Q.slice(1)
|
|
10525
|
-
] : Q.map((
|
|
10536
|
+
] : Q.map((se, ae) => ae === oe ? {
|
|
10526
10537
|
...W,
|
|
10527
|
-
count_unread: U ?
|
|
10528
|
-
} :
|
|
10538
|
+
count_unread: U ? se.count_unread : W.count_unread
|
|
10539
|
+
} : se);
|
|
10529
10540
|
});
|
|
10530
10541
|
}, Tr = (W, U = null) => {
|
|
10531
10542
|
ce((Q) => {
|
|
10532
|
-
const
|
|
10533
|
-
return
|
|
10534
|
-
...
|
|
10535
|
-
messages: [...
|
|
10536
|
-
} :
|
|
10543
|
+
const oe = U || W.from_id, se = Q.findIndex((ae) => ae.chat_id === oe);
|
|
10544
|
+
return se === -1 ? Q : Q.map((ae, Fe) => Fe === se ? {
|
|
10545
|
+
...ae,
|
|
10546
|
+
messages: [...ae.messages, W]
|
|
10547
|
+
} : ae);
|
|
10537
10548
|
});
|
|
10538
|
-
}, hn = (W, U, Q,
|
|
10539
|
-
ce((
|
|
10540
|
-
const
|
|
10541
|
-
return
|
|
10542
|
-
if (
|
|
10543
|
-
const
|
|
10544
|
-
...
|
|
10549
|
+
}, hn = (W, U, Q, oe) => {
|
|
10550
|
+
ce((se) => {
|
|
10551
|
+
const ae = se.findIndex((Fe) => Fe.chat_id === oe);
|
|
10552
|
+
return ae === -1 ? se : se.map((Fe, we) => {
|
|
10553
|
+
if (we === ae) {
|
|
10554
|
+
const Ye = Fe.messages.map((Ge) => Ge.created_at === U ? {
|
|
10555
|
+
...Ge,
|
|
10545
10556
|
id: W,
|
|
10546
10557
|
isSending: !1,
|
|
10547
10558
|
files: Q
|
|
10548
|
-
} :
|
|
10559
|
+
} : Ge);
|
|
10549
10560
|
return {
|
|
10550
|
-
...
|
|
10551
|
-
messages:
|
|
10561
|
+
...Fe,
|
|
10562
|
+
messages: Ye
|
|
10552
10563
|
};
|
|
10553
10564
|
}
|
|
10554
|
-
return
|
|
10565
|
+
return Fe;
|
|
10555
10566
|
});
|
|
10556
10567
|
});
|
|
10557
10568
|
}, Or = (W, U, Q = !0) => {
|
|
10558
|
-
ce((
|
|
10559
|
-
let
|
|
10560
|
-
return Q ?
|
|
10561
|
-
if (
|
|
10562
|
-
const
|
|
10563
|
-
...
|
|
10569
|
+
ce((oe) => {
|
|
10570
|
+
let se = -1;
|
|
10571
|
+
return Q ? se = oe.findIndex((ae) => ae.chat_id === U) : se = oe.findIndex((ae) => ae.chat_id === W.from), se === -1 ? oe : oe.map((ae, Fe) => {
|
|
10572
|
+
if (Fe === se) {
|
|
10573
|
+
const we = ae.messages.map((Ye) => Ye.created_at === W.created_at ? {
|
|
10574
|
+
...Ye,
|
|
10564
10575
|
status: W.status
|
|
10565
|
-
} :
|
|
10576
|
+
} : Ye);
|
|
10566
10577
|
return {
|
|
10567
|
-
...
|
|
10568
|
-
messages:
|
|
10578
|
+
...ae,
|
|
10579
|
+
messages: we
|
|
10569
10580
|
};
|
|
10570
10581
|
}
|
|
10571
|
-
return
|
|
10582
|
+
return ae;
|
|
10572
10583
|
});
|
|
10573
10584
|
});
|
|
10574
10585
|
}, mn = (W, U) => {
|
|
10575
10586
|
re((Q) => {
|
|
10576
|
-
let
|
|
10577
|
-
return
|
|
10578
|
-
...
|
|
10587
|
+
let oe = -1;
|
|
10588
|
+
return oe = Q.findIndex((se) => se.chat_id === W), Q.map((se, ae) => ae === oe ? {
|
|
10589
|
+
...se,
|
|
10579
10590
|
count_unread: U
|
|
10580
|
-
} :
|
|
10591
|
+
} : se);
|
|
10581
10592
|
});
|
|
10582
10593
|
}, ar = De(async (W = null) => {
|
|
10583
10594
|
if (Z)
|
|
10584
10595
|
if (L(!0), g)
|
|
10585
10596
|
try {
|
|
10586
|
-
const U =
|
|
10597
|
+
const U = Xe();
|
|
10587
10598
|
if (!U || !$ || !d) {
|
|
10588
10599
|
console.warn("[fetchChatsList] skipped", {
|
|
10589
10600
|
hasAxios: !!U,
|
|
@@ -10592,7 +10603,7 @@ const _g = ({ children: e, onNewMessage: t, onMessageUpdated: r }) => {
|
|
|
10592
10603
|
});
|
|
10593
10604
|
return;
|
|
10594
10605
|
}
|
|
10595
|
-
const
|
|
10606
|
+
const oe = (await U.post(
|
|
10596
10607
|
$,
|
|
10597
10608
|
{
|
|
10598
10609
|
data: { search: W },
|
|
@@ -10605,7 +10616,7 @@ const _g = ({ children: e, onNewMessage: t, onMessageUpdated: r }) => {
|
|
|
10605
10616
|
}
|
|
10606
10617
|
}
|
|
10607
10618
|
)).data;
|
|
10608
|
-
|
|
10619
|
+
oe?.content && (re(oe?.content?.sms), $e(oe?.content?.total_unread));
|
|
10609
10620
|
} catch (U) {
|
|
10610
10621
|
je("fetchChatsList", U);
|
|
10611
10622
|
} finally {
|
|
@@ -10613,14 +10624,14 @@ const _g = ({ children: e, onNewMessage: t, onMessageUpdated: r }) => {
|
|
|
10613
10624
|
}
|
|
10614
10625
|
else
|
|
10615
10626
|
await new Promise((U) => setTimeout(U, 700)), re(no?.content?.sms), $e(no?.content?.total_unread), L(!1);
|
|
10616
|
-
}, [d,
|
|
10627
|
+
}, [d, C, g, $, Z, je]), gn = De(async (W, U = null) => {
|
|
10617
10628
|
if (Z && !Y)
|
|
10618
10629
|
if (Te(!0), g)
|
|
10619
10630
|
try {
|
|
10620
|
-
const Q =
|
|
10631
|
+
const Q = Xe();
|
|
10621
10632
|
if (!Q || !R || !d) return;
|
|
10622
|
-
const
|
|
10623
|
-
|
|
10633
|
+
const oe = `${R}/${W}`, ae = (await Q.post(
|
|
10634
|
+
oe,
|
|
10624
10635
|
{
|
|
10625
10636
|
data: {
|
|
10626
10637
|
last_id: U
|
|
@@ -10634,11 +10645,11 @@ const _g = ({ children: e, onNewMessage: t, onMessageUpdated: r }) => {
|
|
|
10634
10645
|
}
|
|
10635
10646
|
}
|
|
10636
10647
|
)).data;
|
|
10637
|
-
|
|
10648
|
+
ae?.content && (be(W), nr({
|
|
10638
10649
|
chat_id: W,
|
|
10639
|
-
who:
|
|
10640
|
-
messages:
|
|
10641
|
-
total:
|
|
10650
|
+
who: ae?.content?.who,
|
|
10651
|
+
messages: ae?.content?.messages,
|
|
10652
|
+
total: ae?.content?.total
|
|
10642
10653
|
}));
|
|
10643
10654
|
} catch (Q) {
|
|
10644
10655
|
je("fetchChatMessages", Q);
|
|
@@ -10657,14 +10668,14 @@ const _g = ({ children: e, onNewMessage: t, onMessageUpdated: r }) => {
|
|
|
10657
10668
|
messages: Dr?.content?.messages,
|
|
10658
10669
|
total: Dr?.content?.total - Dr?.content?.messages?.length
|
|
10659
10670
|
})), Te(!1);
|
|
10660
|
-
}, [Y, d,
|
|
10671
|
+
}, [Y, d, C, g, R, Z, je]), pn = De(async (W, U) => {
|
|
10661
10672
|
if (!Z) return !1;
|
|
10662
10673
|
if (g) {
|
|
10663
10674
|
try {
|
|
10664
|
-
const Q =
|
|
10665
|
-
if (!Q || !
|
|
10666
|
-
const
|
|
10667
|
-
`${
|
|
10675
|
+
const Q = Xe(), oe = D ? _t(D) : R ? _t(R) : null;
|
|
10676
|
+
if (!Q || !oe || !d) return !1;
|
|
10677
|
+
const Fe = (await Q.post(
|
|
10678
|
+
`${oe}/${W}/${U}`,
|
|
10668
10679
|
{
|
|
10669
10680
|
_token: d
|
|
10670
10681
|
},
|
|
@@ -10674,9 +10685,9 @@ const _g = ({ children: e, onNewMessage: t, onMessageUpdated: r }) => {
|
|
|
10674
10685
|
"X-CSRF-TOKEN": d
|
|
10675
10686
|
}
|
|
10676
10687
|
}
|
|
10677
|
-
)).data?.content,
|
|
10678
|
-
if (Array.isArray(
|
|
10679
|
-
return be(W), fn(W,
|
|
10688
|
+
)).data?.content, we = Fe?.messages;
|
|
10689
|
+
if (Array.isArray(we) && we.length > 0)
|
|
10690
|
+
return be(W), fn(W, we, Fe?.who, Fe?.total, Fe?.has_more_before), !0;
|
|
10680
10691
|
} catch (Q) {
|
|
10681
10692
|
je("fetchMessageContext", Q);
|
|
10682
10693
|
}
|
|
@@ -10688,61 +10699,61 @@ const _g = ({ children: e, onNewMessage: t, onMessageUpdated: r }) => {
|
|
|
10688
10699
|
g,
|
|
10689
10700
|
R,
|
|
10690
10701
|
D,
|
|
10691
|
-
|
|
10702
|
+
Xe,
|
|
10692
10703
|
Z,
|
|
10693
10704
|
je,
|
|
10694
|
-
|
|
10695
|
-
]), vn = De(async ({ to: W, text: U, files: Q, answer:
|
|
10705
|
+
_t
|
|
10706
|
+
]), vn = De(async ({ to: W, text: U, files: Q, answer: oe, timestamp: se, from_id: ae }) => {
|
|
10696
10707
|
Tr({
|
|
10697
|
-
from_id:
|
|
10698
|
-
id:
|
|
10708
|
+
from_id: ae,
|
|
10709
|
+
id: se,
|
|
10699
10710
|
text: U,
|
|
10700
10711
|
files: [],
|
|
10701
|
-
created_at:
|
|
10702
|
-
updated_at:
|
|
10703
|
-
answer:
|
|
10712
|
+
created_at: se,
|
|
10713
|
+
updated_at: se,
|
|
10714
|
+
answer: oe,
|
|
10704
10715
|
status: !1,
|
|
10705
10716
|
isLocal: !0,
|
|
10706
10717
|
isSending: !0
|
|
10707
|
-
}, W),
|
|
10718
|
+
}, W), xe(!0);
|
|
10708
10719
|
try {
|
|
10709
|
-
const
|
|
10710
|
-
if (!
|
|
10711
|
-
const
|
|
10712
|
-
|
|
10720
|
+
const Fe = Xe();
|
|
10721
|
+
if (!Fe || !O || !d) return;
|
|
10722
|
+
const we = new FormData();
|
|
10723
|
+
we.append("_token", d), we.append(
|
|
10713
10724
|
"data",
|
|
10714
10725
|
JSON.stringify({
|
|
10715
10726
|
to: W,
|
|
10716
10727
|
text: U,
|
|
10717
|
-
answer:
|
|
10718
|
-
timestamp:
|
|
10728
|
+
answer: oe,
|
|
10729
|
+
timestamp: se
|
|
10719
10730
|
})
|
|
10720
|
-
), Q && Q.length > 0 && Q.forEach((
|
|
10721
|
-
|
|
10731
|
+
), Q && Q.length > 0 && Q.forEach((mt) => {
|
|
10732
|
+
mt.originFileObj && we.append("file[]", mt.originFileObj);
|
|
10722
10733
|
});
|
|
10723
|
-
const
|
|
10734
|
+
const Ge = (await Fe.post(
|
|
10724
10735
|
O,
|
|
10725
|
-
|
|
10736
|
+
we,
|
|
10726
10737
|
{
|
|
10727
10738
|
headers: {
|
|
10728
10739
|
"X-CSRF-TOKEN": d
|
|
10729
10740
|
}
|
|
10730
10741
|
}
|
|
10731
10742
|
)).data;
|
|
10732
|
-
|
|
10733
|
-
} catch (
|
|
10734
|
-
je("sendSms",
|
|
10743
|
+
Ge && (hn(Ge.id, Ge.timestamp, Ge.files, W), $r(Ge.left, !0));
|
|
10744
|
+
} catch (Fe) {
|
|
10745
|
+
je("sendSms", Fe);
|
|
10735
10746
|
} finally {
|
|
10736
|
-
|
|
10747
|
+
xe(!1);
|
|
10737
10748
|
}
|
|
10738
|
-
}, [d,
|
|
10749
|
+
}, [d, C, O, je]), yn = De(async (W) => {
|
|
10739
10750
|
for (const U of W)
|
|
10740
10751
|
if (g)
|
|
10741
10752
|
try {
|
|
10742
|
-
const Q =
|
|
10753
|
+
const Q = Xe();
|
|
10743
10754
|
if (!Q || !E || !d) return;
|
|
10744
|
-
const
|
|
10745
|
-
|
|
10755
|
+
const oe = `${E}/${U}`, ae = (await Q.post(
|
|
10756
|
+
oe,
|
|
10746
10757
|
{
|
|
10747
10758
|
_token: d
|
|
10748
10759
|
},
|
|
@@ -10753,15 +10764,15 @@ const _g = ({ children: e, onNewMessage: t, onMessageUpdated: r }) => {
|
|
|
10753
10764
|
}
|
|
10754
10765
|
}
|
|
10755
10766
|
)).data;
|
|
10756
|
-
|
|
10767
|
+
ae && (Or(ae?.sms, ae?.from, !1), mn(ae?.sms?.from, ae?.sms?.count_unread), $e(ae?.sms?.total_unread));
|
|
10757
10768
|
} catch (Q) {
|
|
10758
10769
|
je("markMessagesAsRead", Q);
|
|
10759
10770
|
}
|
|
10760
10771
|
else
|
|
10761
10772
|
console.log(`/api/sms/read/${U}`);
|
|
10762
|
-
}, [d,
|
|
10773
|
+
}, [d, C, g, E, je]);
|
|
10763
10774
|
return ge(() => {
|
|
10764
|
-
if (Z && f && (!g || p &&
|
|
10775
|
+
if (Z && f && (!g || p && x && d)) {
|
|
10765
10776
|
const U = setTimeout(() => {
|
|
10766
10777
|
Er(), ar(null).then();
|
|
10767
10778
|
}, 0);
|
|
@@ -10772,13 +10783,13 @@ const _g = ({ children: e, onNewMessage: t, onMessageUpdated: r }) => {
|
|
|
10772
10783
|
console.log("Connection conditions not met:", {
|
|
10773
10784
|
hasUserdata: !!f,
|
|
10774
10785
|
hasHTTP_HOST: !!p,
|
|
10775
|
-
hasBFF_PORT: !!
|
|
10786
|
+
hasBFF_PORT: !!x,
|
|
10776
10787
|
hasCSRF_TOKEN: !!d
|
|
10777
10788
|
});
|
|
10778
|
-
}, [f, p,
|
|
10789
|
+
}, [f, p, x, d, g, Z, Er, ar]), ge(() => {
|
|
10779
10790
|
ve.current = ue;
|
|
10780
10791
|
}, [ue]), ge(() => {
|
|
10781
|
-
|
|
10792
|
+
ie.current = z;
|
|
10782
10793
|
}, [z]), ge(() => {
|
|
10783
10794
|
if (!p) return;
|
|
10784
10795
|
const W = at();
|
|
@@ -10800,15 +10811,15 @@ const _g = ({ children: e, onNewMessage: t, onMessageUpdated: r }) => {
|
|
|
10800
10811
|
value: {
|
|
10801
10812
|
connected: s,
|
|
10802
10813
|
connectionStatus: c,
|
|
10803
|
-
isAlertVisibleKey:
|
|
10804
|
-
alertInfo:
|
|
10805
|
-
totalUnread:
|
|
10814
|
+
isAlertVisibleKey: Me,
|
|
10815
|
+
alertInfo: Ne,
|
|
10816
|
+
totalUnread: Ce,
|
|
10806
10817
|
chatsList: z,
|
|
10807
10818
|
chats: ue,
|
|
10808
10819
|
currentChatId: pe,
|
|
10809
10820
|
loadingChatList: K,
|
|
10810
10821
|
loadingChat: Y,
|
|
10811
|
-
loadingSendSms:
|
|
10822
|
+
loadingSendSms: qe,
|
|
10812
10823
|
fetchChatsList: ar,
|
|
10813
10824
|
fetchChatMessages: gn,
|
|
10814
10825
|
fetchMessageContext: pn,
|
|
@@ -10818,7 +10829,7 @@ const _g = ({ children: e, onNewMessage: t, onMessageUpdated: r }) => {
|
|
|
10818
10829
|
HTTP_HOST: p,
|
|
10819
10830
|
CSRF_TOKEN: d,
|
|
10820
10831
|
PRODMODE: g,
|
|
10821
|
-
PROD_AXIOS_INSTANCE:
|
|
10832
|
+
PROD_AXIOS_INSTANCE: C,
|
|
10822
10833
|
setUserData: m,
|
|
10823
10834
|
SET_HTTP_HOST: h,
|
|
10824
10835
|
SET_CSRF_TOKEN: b,
|
|
@@ -10862,9 +10873,9 @@ const _g = ({ children: e, onNewMessage: t, onMessageUpdated: r }) => {
|
|
|
10862
10873
|
setInit: g
|
|
10863
10874
|
} = rr();
|
|
10864
10875
|
return ge(() => {
|
|
10865
|
-
let y = !1,
|
|
10876
|
+
let y = !1, x = !1, _ = !1, C = !1, S = !1;
|
|
10866
10877
|
const $ = t?.PRODMODE === !0;
|
|
10867
|
-
e && i(e), e && (y = !0), t && t?.HTTP_HOST && o(t?.HTTP_HOST), t && t?.CSRF_TOKEN && s(t?.CSRF_TOKEN), t && typeof t?.PRODMODE == "boolean" && l(t?.PRODMODE), t && typeof t?.BFF_PORT == "number" && c(t?.BFF_PORT), t && typeof t?.PRODMODE == "boolean" && (
|
|
10878
|
+
e && i(e), e && (y = !0), t && t?.HTTP_HOST && o(t?.HTTP_HOST), t && t?.CSRF_TOKEN && s(t?.CSRF_TOKEN), t && typeof t?.PRODMODE == "boolean" && l(t?.PRODMODE), t && typeof t?.BFF_PORT == "number" && c(t?.BFF_PORT), t && typeof t?.PRODMODE == "boolean" && (x = $ ? !!(t?.HTTP_HOST && t?.CSRF_TOKEN && typeof t?.BFF_PORT == "number") : !0), r && r?.fetchChatsListPath && u(r?.fetchChatsListPath), r && r?.fetchChatMessagesPath && f(r?.fetchChatMessagesPath), r && r?.fetchMessageContextPath && m(r?.fetchMessageContextPath), r && r?.sendSmsPath && v(r?.sendSmsPath), r && r?.markMessagesAsReadPath && p(r?.markMessagesAsReadPath), r && (_ = $ ? !!(r?.fetchChatsListPath && r?.fetchChatMessagesPath && r?.sendSmsPath && r?.markMessagesAsReadPath) : !0), n && n?.subscribeToChat && h(n?.subscribeToChat), n && (C = $ ? !!n?.subscribeToChat : !0), a && a?.newSms && d(a?.newSms), a && a?.updateSms && b(a?.updateSms), a && (S = $ ? !!(a?.newSms && a?.updateSms) : !0), y && x && _ && C && S && g(!0);
|
|
10868
10879
|
}, [
|
|
10869
10880
|
e,
|
|
10870
10881
|
t,
|