corp-chat-library-antd-react-socket 1.2.13 → 1.2.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CHAT/hooks/useMarkMessagesRead.d.ts +0 -11
- package/dist/index.js +970 -959
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,12 +2,12 @@ import { jsx as N, jsxs as Fe } from "react/jsx-runtime";
|
|
|
2
2
|
import * as T from "react";
|
|
3
3
|
import re, { useRef as me, cloneElement as Ys, forwardRef as ro, useState as Z, useImperativeHandle as Qs, useEffect as fe, version as Zs, isValidElement as Js, useMemo as Ft, useContext as vt, createContext as rn, useLayoutEffect as ec, useCallback as De } from "react";
|
|
4
4
|
import { Badge as tc, Space as no, Popover as sr, Button as et, Layout as zt, Upload as rc, Input as nc, Divider as ac, Empty as Kr, FloatButton as ic, Modal as oc, Dropdown as sc } from "antd";
|
|
5
|
-
import { SearchOutlined as cc, DragOutlined as Ba, SettingOutlined as lc, BellOutlined as uc, DownloadOutlined as dc, LockOutlined as fc, EyeInvisibleOutlined as hc, PaperClipOutlined as gc, UploadOutlined as mc, SmileOutlined as vc, SendOutlined as pc, CalendarOutlined as yc, CheckOutlined as za, LoadingOutlined as bc, ArrowDownOutlined as Sc, FileFilled as _c, FileTextFilled as Cc, FileZipFilled as xc, FileMarkdownFilled as Ec, FilePptFilled as wc, FileExcelFilled as $c, FileWordFilled as Oc, FilePdfFilled as Tc, FileImageFilled as Fc, CloseOutlined as
|
|
5
|
+
import { SearchOutlined as cc, DragOutlined as Ba, SettingOutlined as lc, BellOutlined as uc, DownloadOutlined as dc, LockOutlined as fc, EyeInvisibleOutlined as hc, PaperClipOutlined as gc, UploadOutlined as mc, SmileOutlined as vc, SendOutlined as pc, CalendarOutlined as yc, CheckOutlined as za, LoadingOutlined as bc, ArrowDownOutlined as Sc, FileFilled as _c, FileTextFilled as Cc, FileZipFilled as xc, FileMarkdownFilled as Ec, FilePptFilled as wc, FileExcelFilled as $c, FileWordFilled as Oc, FilePdfFilled as Tc, FileImageFilled as Fc, CloseOutlined as Mc, MessageOutlined as Pc } from "@ant-design/icons";
|
|
6
6
|
import Rc from "react-draggable";
|
|
7
7
|
import Wa from "react-dom";
|
|
8
8
|
import Ac from "emoji-picker-react";
|
|
9
9
|
import { io as Ic } from "socket.io-client";
|
|
10
|
-
import
|
|
10
|
+
import Pn from "axios";
|
|
11
11
|
import './index.css';const Nc = "_draggableWrapper_1j8hr_17", jc = "_activeChatItem_1j8hr_177", Vc = "_message_1j8hr_187", Lc = "_myMessage_1j8hr_197", Dc = "_otherMessage_1j8hr_205", kc = "_bubble_1j8hr_215", Hc = "_myMessageBubble_1j8hr_229", Bc = "_otherMessageBubble_1j8hr_255", zc = "_senderName_1j8hr_281", Wc = "_time_1j8hr_299", Uc = "_chat_header_1j8hr_315", qc = "_localMessage_1j8hr_349", Gc = "_sending_1j8hr_357", Kc = "_chatcontentLayout_1j8hr_419", Xc = "_chat_content_1j8hr_431", Yc = "_textArea_1j8hr_475", Qc = "_chatItem_1j8hr_511", Zc = "_chat_body_1j8hr_541", Jc = "_antd_empty_1j8hr_569", el = "_chat_inputs_1j8hr_585", tl = "_files_container_1j8hr_623", rl = "_file_1j8hr_623", nl = "_file_circle_1j8hr_653", al = "_self_1j8hr_669", il = "_href_label_1j8hr_675", K = {
|
|
12
12
|
draggableWrapper: Nc,
|
|
13
13
|
"chat-modal__title": "_chat-modal__title_1j8hr_33",
|
|
@@ -196,7 +196,7 @@ function dl(e, t) {
|
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
var fl = /* @__PURE__ */ re.forwardRef(function(e, t) {
|
|
199
|
-
var r, n, a, i = e.inputElement, o = e.children, s = e.prefixCls, c = e.prefix, l = e.suffix, u = e.addonBefore, d = e.addonAfter,
|
|
199
|
+
var r, n, a, i = e.inputElement, o = e.children, s = e.prefixCls, c = e.prefix, l = e.suffix, u = e.addonBefore, d = e.addonAfter, h = e.className, p = e.style, g = e.disabled, m = e.readOnly, f = e.focused, S = e.triggerFocus, v = e.allowClear, y = e.value, E = e.handleReset, C = e.hidden, O = e.classes, _ = e.classNames, F = e.dataAttrs, P = e.styles, M = e.components, R = e.onClear, D = o ?? i, V = M?.affixWrapper || "span", b = M?.groupWrapper || "span", w = M?.wrapper || "span", $ = M?.groupAddon || "span", A = me(null), I = function(Ie) {
|
|
200
200
|
var Ee;
|
|
201
201
|
(Ee = A.current) !== null && Ee !== void 0 && Ee.contains(Ie.target) && S?.();
|
|
202
202
|
}, L = ul(e), k = /* @__PURE__ */ Ys(D, {
|
|
@@ -209,8 +209,8 @@ var fl = /* @__PURE__ */ re.forwardRef(function(e, t) {
|
|
|
209
209
|
};
|
|
210
210
|
}), L) {
|
|
211
211
|
var H = null;
|
|
212
|
-
if (
|
|
213
|
-
var U = !
|
|
212
|
+
if (v) {
|
|
213
|
+
var U = !g && !m && y, q = "".concat(s, "-clear-icon"), ee = J(v) === "object" && v !== null && v !== void 0 && v.clearIcon ? v.clearIcon : "✖";
|
|
214
214
|
H = /* @__PURE__ */ re.createElement("button", {
|
|
215
215
|
type: "button",
|
|
216
216
|
tabIndex: -1,
|
|
@@ -223,23 +223,23 @@ var fl = /* @__PURE__ */ re.forwardRef(function(e, t) {
|
|
|
223
223
|
className: Re(q, x(x({}, "".concat(q, "-hidden"), !U), "".concat(q, "-has-suffix"), !!l))
|
|
224
224
|
}, ee);
|
|
225
225
|
}
|
|
226
|
-
var le = "".concat(s, "-affix-wrapper"), ie = Re(le, x(x(x(x(x({}, "".concat(s, "-disabled"),
|
|
226
|
+
var le = "".concat(s, "-affix-wrapper"), ie = Re(le, x(x(x(x(x({}, "".concat(s, "-disabled"), g), "".concat(le, "-disabled"), g), "".concat(le, "-focused"), f), "".concat(le, "-readonly"), m), "".concat(le, "-input-with-clear-btn"), l && v && y), O?.affixWrapper, _?.affixWrapper, _?.variant), he = (l || v) && /* @__PURE__ */ re.createElement("span", {
|
|
227
227
|
className: Re("".concat(s, "-suffix"), _?.suffix),
|
|
228
|
-
style:
|
|
228
|
+
style: P?.suffix
|
|
229
229
|
}, H, l);
|
|
230
230
|
k = /* @__PURE__ */ re.createElement(V, ct({
|
|
231
231
|
className: ie,
|
|
232
|
-
style:
|
|
232
|
+
style: P?.affixWrapper,
|
|
233
233
|
onClick: I
|
|
234
234
|
}, F?.affixWrapper, {
|
|
235
235
|
ref: A
|
|
236
236
|
}), c && /* @__PURE__ */ re.createElement("span", {
|
|
237
237
|
className: Re("".concat(s, "-prefix"), _?.prefix),
|
|
238
|
-
style:
|
|
238
|
+
style: P?.prefix
|
|
239
239
|
}, c), k, he);
|
|
240
240
|
}
|
|
241
241
|
if (ll(e)) {
|
|
242
|
-
var ue = "".concat(s, "-group"), oe = "".concat(ue, "-addon"), ve = "".concat(ue, "-wrapper"), Ce = Re("".concat(s, "-wrapper"), ue, O?.wrapper, _?.wrapper), Oe = Re(ve, x({}, "".concat(ve, "-disabled"),
|
|
242
|
+
var ue = "".concat(s, "-group"), oe = "".concat(ue, "-addon"), ve = "".concat(ue, "-wrapper"), Ce = Re("".concat(s, "-wrapper"), ue, O?.wrapper, _?.wrapper), Oe = Re(ve, x({}, "".concat(ve, "-disabled"), g), O?.group, _?.groupWrapper);
|
|
243
243
|
k = /* @__PURE__ */ re.createElement(b, {
|
|
244
244
|
className: Oe,
|
|
245
245
|
ref: B
|
|
@@ -252,7 +252,7 @@ var fl = /* @__PURE__ */ re.forwardRef(function(e, t) {
|
|
|
252
252
|
}, d)));
|
|
253
253
|
}
|
|
254
254
|
return /* @__PURE__ */ re.cloneElement(k, {
|
|
255
|
-
className: Re((n = k.props) === null || n === void 0 ? void 0 : n.className,
|
|
255
|
+
className: Re((n = k.props) === null || n === void 0 ? void 0 : n.className, h) || null,
|
|
256
256
|
style: j(j({}, (a = k.props) === null || a === void 0 ? void 0 : a.style), p),
|
|
257
257
|
hidden: C
|
|
258
258
|
});
|
|
@@ -377,17 +377,17 @@ function pn(e) {
|
|
|
377
377
|
function pl(e, t) {
|
|
378
378
|
var r = t || {}, n = r.defaultValue, a = r.value, i = r.onChange, o = r.postState, s = fr(function() {
|
|
379
379
|
return pn(a) ? a : pn(n) ? typeof n == "function" ? n() : n : typeof e == "function" ? e() : e;
|
|
380
|
-
}), c = X(s, 2), l = c[0], u = c[1], d = a !== void 0 ? a : l,
|
|
380
|
+
}), c = X(s, 2), l = c[0], u = c[1], d = a !== void 0 ? a : l, h = o ? o(d) : d, p = dr(i), g = fr([d]), m = X(g, 2), f = m[0], S = m[1];
|
|
381
381
|
Ya(function() {
|
|
382
|
-
var y =
|
|
382
|
+
var y = f[0];
|
|
383
383
|
l !== y && p(l, y);
|
|
384
|
-
}, [
|
|
384
|
+
}, [f]), Ya(function() {
|
|
385
385
|
pn(a) || u(a);
|
|
386
386
|
}, [a]);
|
|
387
|
-
var
|
|
387
|
+
var v = dr(function(y, E) {
|
|
388
388
|
u(y, E), S([d], E);
|
|
389
389
|
});
|
|
390
|
-
return [
|
|
390
|
+
return [h, v];
|
|
391
391
|
}
|
|
392
392
|
function yl(e, t) {
|
|
393
393
|
var r = Object.assign({}, e);
|
|
@@ -411,11 +411,11 @@ function Sl(e, t) {
|
|
|
411
411
|
}, [e, t]);
|
|
412
412
|
}
|
|
413
413
|
var _l = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKeyDown", "onKeyUp", "prefixCls", "disabled", "htmlSize", "className", "maxLength", "suffix", "showCount", "count", "type", "classes", "classNames", "styles", "onCompositionStart", "onCompositionEnd"], Cl = /* @__PURE__ */ ro(function(e, t) {
|
|
414
|
-
var r = e.autoComplete, n = e.onChange, a = e.onFocus, i = e.onBlur, o = e.onPressEnter, s = e.onKeyDown, c = e.onKeyUp, l = e.prefixCls, u = l === void 0 ? "rc-input" : l, d = e.disabled,
|
|
414
|
+
var r = e.autoComplete, n = e.onChange, a = e.onFocus, i = e.onBlur, o = e.onPressEnter, s = e.onKeyDown, c = e.onKeyUp, l = e.prefixCls, u = l === void 0 ? "rc-input" : l, d = e.disabled, h = e.htmlSize, p = e.className, g = e.maxLength, m = e.suffix, f = e.showCount, S = e.count, v = e.type, y = v === void 0 ? "text" : v, E = e.classes, C = e.classNames, O = e.styles, _ = e.onCompositionStart, F = e.onCompositionEnd, P = pt(e, _l), M = Z(!1), R = X(M, 2), D = R[0], V = R[1], b = me(!1), w = me(!1), $ = me(null), A = me(null), I = function(te) {
|
|
415
415
|
$.current && dl($.current, te);
|
|
416
416
|
}, L = pl(e.defaultValue, {
|
|
417
417
|
value: e.value
|
|
418
|
-
}), k = X(L, 2), B = k[0], H = k[1], U = B == null ? "" : String(B), q = Z(null), ee = X(q, 2), le = ee[0], ie = ee[1], he = Sl(S,
|
|
418
|
+
}), k = X(L, 2), B = k[0], H = k[1], U = B == null ? "" : String(B), q = Z(null), ee = X(q, 2), le = ee[0], ie = ee[1], he = Sl(S, f), ue = he.max || g, oe = he.strategy(U), ve = !!ue && oe > ue;
|
|
419
419
|
Qs(t, function() {
|
|
420
420
|
var ae;
|
|
421
421
|
return {
|
|
@@ -475,7 +475,7 @@ var _l = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
|
|
|
475
475
|
V(!0), a?.(te);
|
|
476
476
|
}, We = function(te) {
|
|
477
477
|
w.current && (w.current = !1), V(!1), i?.(te);
|
|
478
|
-
},
|
|
478
|
+
}, Me = function(te) {
|
|
479
479
|
H(""), I(), $.current && Ka($.current, te, n);
|
|
480
480
|
}, we = ve && "".concat(u, "-out-of-range"), xe = function() {
|
|
481
481
|
var te = yl(e, [
|
|
@@ -508,7 +508,7 @@ var _l = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
|
|
|
508
508
|
className: Re(u, x({}, "".concat(u, "-disabled"), d), C?.input),
|
|
509
509
|
style: O?.input,
|
|
510
510
|
ref: $,
|
|
511
|
-
size:
|
|
511
|
+
size: h,
|
|
512
512
|
type: y,
|
|
513
513
|
onCompositionStart: function(lt) {
|
|
514
514
|
b.current = !0, _?.(lt);
|
|
@@ -517,23 +517,23 @@ var _l = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
|
|
|
517
517
|
}));
|
|
518
518
|
}, be = function() {
|
|
519
519
|
var te = Number(ue) > 0;
|
|
520
|
-
if (
|
|
520
|
+
if (m || he.show) {
|
|
521
521
|
var _e = he.showFormatter ? he.showFormatter({
|
|
522
522
|
value: U,
|
|
523
523
|
count: oe,
|
|
524
524
|
maxLength: ue
|
|
525
525
|
}) : "".concat(oe).concat(te ? " / ".concat(ue) : "");
|
|
526
526
|
return /* @__PURE__ */ re.createElement(re.Fragment, null, he.show && /* @__PURE__ */ re.createElement("span", {
|
|
527
|
-
className: Re("".concat(u, "-show-count-suffix"), x({}, "".concat(u, "-show-count-has-suffix"), !!
|
|
527
|
+
className: Re("".concat(u, "-show-count-suffix"), x({}, "".concat(u, "-show-count-has-suffix"), !!m), C?.count),
|
|
528
528
|
style: j({}, O?.count)
|
|
529
|
-
}, _e),
|
|
529
|
+
}, _e), m);
|
|
530
530
|
}
|
|
531
531
|
return null;
|
|
532
532
|
};
|
|
533
|
-
return /* @__PURE__ */ re.createElement(fl, ct({},
|
|
533
|
+
return /* @__PURE__ */ re.createElement(fl, ct({}, P, {
|
|
534
534
|
prefixCls: u,
|
|
535
535
|
className: Re(p, we),
|
|
536
|
-
handleReset:
|
|
536
|
+
handleReset: Me,
|
|
537
537
|
value: U,
|
|
538
538
|
focused: D,
|
|
539
539
|
triggerFocus: I,
|
|
@@ -549,29 +549,29 @@ var Qa;
|
|
|
549
549
|
function xl() {
|
|
550
550
|
if (Qa) return pe;
|
|
551
551
|
Qa = 1;
|
|
552
|
-
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"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"),
|
|
553
|
-
|
|
554
|
-
function
|
|
555
|
-
if (typeof
|
|
556
|
-
var S =
|
|
552
|
+
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"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), g;
|
|
553
|
+
g = Symbol.for("react.module.reference");
|
|
554
|
+
function m(f) {
|
|
555
|
+
if (typeof f == "object" && f !== null) {
|
|
556
|
+
var S = f.$$typeof;
|
|
557
557
|
switch (S) {
|
|
558
558
|
case e:
|
|
559
|
-
switch (
|
|
559
|
+
switch (f = f.type, f) {
|
|
560
560
|
case r:
|
|
561
561
|
case a:
|
|
562
562
|
case n:
|
|
563
563
|
case l:
|
|
564
564
|
case u:
|
|
565
|
-
return
|
|
565
|
+
return f;
|
|
566
566
|
default:
|
|
567
|
-
switch (
|
|
567
|
+
switch (f = f && f.$$typeof, f) {
|
|
568
568
|
case s:
|
|
569
569
|
case o:
|
|
570
570
|
case c:
|
|
571
|
-
case
|
|
571
|
+
case h:
|
|
572
572
|
case d:
|
|
573
573
|
case i:
|
|
574
|
-
return
|
|
574
|
+
return f;
|
|
575
575
|
default:
|
|
576
576
|
return S;
|
|
577
577
|
}
|
|
@@ -581,46 +581,46 @@ function xl() {
|
|
|
581
581
|
}
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
|
-
return pe.ContextConsumer = o, pe.ContextProvider = i, pe.Element = e, pe.ForwardRef = c, pe.Fragment = r, pe.Lazy =
|
|
584
|
+
return pe.ContextConsumer = o, pe.ContextProvider = i, pe.Element = e, pe.ForwardRef = c, pe.Fragment = r, pe.Lazy = h, pe.Memo = d, pe.Portal = t, pe.Profiler = a, pe.StrictMode = n, pe.Suspense = l, pe.SuspenseList = u, pe.isAsyncMode = function() {
|
|
585
585
|
return !1;
|
|
586
586
|
}, pe.isConcurrentMode = function() {
|
|
587
587
|
return !1;
|
|
588
|
-
}, pe.isContextConsumer = function(
|
|
589
|
-
return
|
|
590
|
-
}, pe.isContextProvider = function(
|
|
591
|
-
return
|
|
592
|
-
}, pe.isElement = function(
|
|
593
|
-
return typeof
|
|
594
|
-
}, pe.isForwardRef = function(
|
|
595
|
-
return
|
|
596
|
-
}, pe.isFragment = function(
|
|
597
|
-
return
|
|
598
|
-
}, pe.isLazy = function(
|
|
599
|
-
return
|
|
600
|
-
}, pe.isMemo = function(
|
|
601
|
-
return
|
|
602
|
-
}, pe.isPortal = function(
|
|
603
|
-
return
|
|
604
|
-
}, pe.isProfiler = function(
|
|
605
|
-
return
|
|
606
|
-
}, pe.isStrictMode = function(
|
|
607
|
-
return
|
|
608
|
-
}, pe.isSuspense = function(
|
|
609
|
-
return
|
|
610
|
-
}, pe.isSuspenseList = function(
|
|
611
|
-
return
|
|
612
|
-
}, pe.isValidElementType = function(
|
|
613
|
-
return typeof
|
|
614
|
-
}, pe.typeOf =
|
|
588
|
+
}, pe.isContextConsumer = function(f) {
|
|
589
|
+
return m(f) === o;
|
|
590
|
+
}, pe.isContextProvider = function(f) {
|
|
591
|
+
return m(f) === i;
|
|
592
|
+
}, pe.isElement = function(f) {
|
|
593
|
+
return typeof f == "object" && f !== null && f.$$typeof === e;
|
|
594
|
+
}, pe.isForwardRef = function(f) {
|
|
595
|
+
return m(f) === c;
|
|
596
|
+
}, pe.isFragment = function(f) {
|
|
597
|
+
return m(f) === r;
|
|
598
|
+
}, pe.isLazy = function(f) {
|
|
599
|
+
return m(f) === h;
|
|
600
|
+
}, pe.isMemo = function(f) {
|
|
601
|
+
return m(f) === d;
|
|
602
|
+
}, pe.isPortal = function(f) {
|
|
603
|
+
return m(f) === t;
|
|
604
|
+
}, pe.isProfiler = function(f) {
|
|
605
|
+
return m(f) === a;
|
|
606
|
+
}, pe.isStrictMode = function(f) {
|
|
607
|
+
return m(f) === n;
|
|
608
|
+
}, pe.isSuspense = function(f) {
|
|
609
|
+
return m(f) === l;
|
|
610
|
+
}, pe.isSuspenseList = function(f) {
|
|
611
|
+
return m(f) === u;
|
|
612
|
+
}, pe.isValidElementType = function(f) {
|
|
613
|
+
return typeof f == "string" || typeof f == "function" || f === r || f === a || f === n || f === l || f === u || f === p || typeof f == "object" && f !== null && (f.$$typeof === h || f.$$typeof === d || f.$$typeof === i || f.$$typeof === o || f.$$typeof === c || f.$$typeof === g || f.getModuleId !== void 0);
|
|
614
|
+
}, pe.typeOf = m, pe;
|
|
615
615
|
}
|
|
616
616
|
var ye = {};
|
|
617
617
|
var Za;
|
|
618
618
|
function El() {
|
|
619
619
|
return Za || (Za = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
620
|
-
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"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"),
|
|
620
|
+
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"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), g = !1, m = !1, f = !1, S = !1, v = !1, y;
|
|
621
621
|
y = Symbol.for("react.module.reference");
|
|
622
622
|
function E(W) {
|
|
623
|
-
return !!(typeof W == "string" || typeof W == "function" || W === r || W === a ||
|
|
623
|
+
return !!(typeof W == "string" || typeof W == "function" || W === r || W === a || v || W === n || W === l || W === u || S || W === p || g || m || f || typeof W == "object" && W !== null && (W.$$typeof === h || W.$$typeof === d || W.$$typeof === i || W.$$typeof === o || W.$$typeof === c || // This needs to include all possible module reference object
|
|
624
624
|
// types supported by any Flight configuration anywhere since
|
|
625
625
|
// we don't know which Flight build this will end up being used
|
|
626
626
|
// with.
|
|
@@ -645,7 +645,7 @@ function El() {
|
|
|
645
645
|
case s:
|
|
646
646
|
case o:
|
|
647
647
|
case c:
|
|
648
|
-
case
|
|
648
|
+
case h:
|
|
649
649
|
case d:
|
|
650
650
|
case i:
|
|
651
651
|
return Ue;
|
|
@@ -658,7 +658,7 @@ function El() {
|
|
|
658
658
|
}
|
|
659
659
|
}
|
|
660
660
|
}
|
|
661
|
-
var O = o, _ = i, F = e,
|
|
661
|
+
var O = o, _ = i, F = e, P = c, M = r, R = h, D = d, V = t, b = a, w = n, $ = l, A = u, I = !1, L = !1;
|
|
662
662
|
function k(W) {
|
|
663
663
|
return I || (I = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
664
664
|
}
|
|
@@ -681,7 +681,7 @@ function El() {
|
|
|
681
681
|
return C(W) === r;
|
|
682
682
|
}
|
|
683
683
|
function ie(W) {
|
|
684
|
-
return C(W) ===
|
|
684
|
+
return C(W) === h;
|
|
685
685
|
}
|
|
686
686
|
function he(W) {
|
|
687
687
|
return C(W) === d;
|
|
@@ -701,7 +701,7 @@ function El() {
|
|
|
701
701
|
function Oe(W) {
|
|
702
702
|
return C(W) === u;
|
|
703
703
|
}
|
|
704
|
-
ye.ContextConsumer = O, ye.ContextProvider = _, ye.Element = F, ye.ForwardRef =
|
|
704
|
+
ye.ContextConsumer = O, ye.ContextProvider = _, ye.Element = F, ye.ForwardRef = P, ye.Fragment = M, ye.Lazy = R, ye.Memo = D, ye.Portal = V, ye.Profiler = b, ye.StrictMode = w, ye.Suspense = $, ye.SuspenseList = A, ye.isAsyncMode = k, ye.isConcurrentMode = B, ye.isContextConsumer = H, ye.isContextProvider = U, ye.isElement = q, ye.isForwardRef = ee, ye.isFragment = le, ye.isLazy = ie, ye.isMemo = he, ye.isPortal = ue, ye.isProfiler = oe, ye.isStrictMode = ve, ye.isSuspense = Ce, ye.isSuspenseList = Oe, ye.isValidElementType = E, ye.typeOf = C;
|
|
705
705
|
})()), ye;
|
|
706
706
|
}
|
|
707
707
|
var Ja;
|
|
@@ -724,7 +724,7 @@ function fo(e) {
|
|
|
724
724
|
}
|
|
725
725
|
var Fl = Number(Zs.split(".")[0]), ho = function(t, r) {
|
|
726
726
|
typeof t == "function" ? t(r) : J(t) === "object" && t && "current" in t && (t.current = r);
|
|
727
|
-
},
|
|
727
|
+
}, Ml = function() {
|
|
728
728
|
for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++)
|
|
729
729
|
r[n] = arguments[n];
|
|
730
730
|
var a = r.filter(Boolean);
|
|
@@ -733,7 +733,7 @@ var Fl = Number(Zs.split(".")[0]), ho = function(t, r) {
|
|
|
733
733
|
ho(o, i);
|
|
734
734
|
});
|
|
735
735
|
};
|
|
736
|
-
},
|
|
736
|
+
}, Pl = function(t) {
|
|
737
737
|
var r, n;
|
|
738
738
|
if (!t)
|
|
739
739
|
return !1;
|
|
@@ -763,9 +763,9 @@ function ze(e, t, r, n) {
|
|
|
763
763
|
a = 0;
|
|
764
764
|
}
|
|
765
765
|
ze = function(o, s, c, l) {
|
|
766
|
-
function u(d,
|
|
766
|
+
function u(d, h) {
|
|
767
767
|
ze(o, d, function(p) {
|
|
768
|
-
return this._invoke(d,
|
|
768
|
+
return this._invoke(d, h, p);
|
|
769
769
|
});
|
|
770
770
|
}
|
|
771
771
|
s ? a ? a(o, s, {
|
|
@@ -778,10 +778,10 @@ function ze(e, t, r, n) {
|
|
|
778
778
|
}
|
|
779
779
|
function xa() {
|
|
780
780
|
var e, t, r = typeof Symbol == "function" ? Symbol : {}, n = r.iterator || "@@iterator", a = r.toStringTag || "@@toStringTag";
|
|
781
|
-
function i(p,
|
|
782
|
-
var S =
|
|
783
|
-
return ze(
|
|
784
|
-
var O, _, F,
|
|
781
|
+
function i(p, g, m, f) {
|
|
782
|
+
var S = g && g.prototype instanceof s ? g : s, v = Object.create(S.prototype);
|
|
783
|
+
return ze(v, "_invoke", (function(y, E, C) {
|
|
784
|
+
var O, _, F, P = 0, M = C || [], R = !1, D = {
|
|
785
785
|
p: 0,
|
|
786
786
|
n: 0,
|
|
787
787
|
v: e,
|
|
@@ -792,19 +792,19 @@ function xa() {
|
|
|
792
792
|
}
|
|
793
793
|
};
|
|
794
794
|
function V(b, w) {
|
|
795
|
-
for (_ = b, F = w, t = 0; !R &&
|
|
796
|
-
var $, A =
|
|
795
|
+
for (_ = b, F = w, t = 0; !R && P && !$ && t < M.length; t++) {
|
|
796
|
+
var $, A = M[t], I = D.p, L = A[2];
|
|
797
797
|
b > 3 ? ($ = L === w) && (F = A[(_ = A[4]) ? 5 : (_ = 3, 3)], A[4] = A[5] = e) : A[0] <= I && (($ = b < 2 && I < A[1]) ? (_ = 0, D.v = w, D.n = A[1]) : I < L && ($ = b < 3 || A[0] > w || w > L) && (A[4] = b, A[5] = w, D.n = L, _ = 0));
|
|
798
798
|
}
|
|
799
799
|
if ($ || b > 1) return o;
|
|
800
800
|
throw R = !0, w;
|
|
801
801
|
}
|
|
802
802
|
return function(b, w, $) {
|
|
803
|
-
if (
|
|
803
|
+
if (P > 1) throw TypeError("Generator is already running");
|
|
804
804
|
for (R && w === 1 && V(w, $), _ = w, F = $; (t = _ < 2 ? e : F) || !R; ) {
|
|
805
805
|
O || (_ ? _ < 3 ? (_ > 1 && (D.n = -1), V(_, F)) : D.n = F : D.v = F);
|
|
806
806
|
try {
|
|
807
|
-
if (
|
|
807
|
+
if (P = 2, O) {
|
|
808
808
|
if (_ || (b = "next"), t = O[b]) {
|
|
809
809
|
if (!(t = t.call(O, F))) throw TypeError("iterator result is not an object");
|
|
810
810
|
if (!t.done) return t;
|
|
@@ -815,7 +815,7 @@ function xa() {
|
|
|
815
815
|
} catch (A) {
|
|
816
816
|
O = e, _ = 1, F = A;
|
|
817
817
|
} finally {
|
|
818
|
-
|
|
818
|
+
P = 1;
|
|
819
819
|
}
|
|
820
820
|
}
|
|
821
821
|
return {
|
|
@@ -823,7 +823,7 @@ function xa() {
|
|
|
823
823
|
done: R
|
|
824
824
|
};
|
|
825
825
|
};
|
|
826
|
-
})(p,
|
|
826
|
+
})(p, m, f), !0), v;
|
|
827
827
|
}
|
|
828
828
|
var o = {};
|
|
829
829
|
function s() {
|
|
@@ -836,7 +836,7 @@ function xa() {
|
|
|
836
836
|
var u = [][n] ? t(t([][n]())) : (ze(t = {}, n, function() {
|
|
837
837
|
return this;
|
|
838
838
|
}), t), d = l.prototype = s.prototype = Object.create(u);
|
|
839
|
-
function
|
|
839
|
+
function h(p) {
|
|
840
840
|
return Object.setPrototypeOf ? Object.setPrototypeOf(p, l) : (p.__proto__ = l, ze(p, a, "GeneratorFunction")), p.prototype = Object.create(d), p;
|
|
841
841
|
}
|
|
842
842
|
return c.prototype = l, ze(d, "constructor", l), ze(l, "constructor", c), c.displayName = "GeneratorFunction", ze(l, a, "GeneratorFunction"), ze(d), ze(d, a, "Generator"), ze(d, n, function() {
|
|
@@ -846,7 +846,7 @@ function xa() {
|
|
|
846
846
|
}), (xa = function() {
|
|
847
847
|
return {
|
|
848
848
|
w: i,
|
|
849
|
-
m:
|
|
849
|
+
m: h
|
|
850
850
|
};
|
|
851
851
|
})();
|
|
852
852
|
}
|
|
@@ -934,19 +934,19 @@ function tt() {
|
|
|
934
934
|
catch: function() {
|
|
935
935
|
return l.v;
|
|
936
936
|
},
|
|
937
|
-
abrupt: function(d,
|
|
938
|
-
return c(l.a, a[d],
|
|
937
|
+
abrupt: function(d, h) {
|
|
938
|
+
return c(l.a, a[d], h);
|
|
939
939
|
},
|
|
940
|
-
delegateYield: function(d,
|
|
941
|
-
return s.resultName =
|
|
940
|
+
delegateYield: function(d, h, p) {
|
|
941
|
+
return s.resultName = h, c(l.d, ei(d), p);
|
|
942
942
|
},
|
|
943
943
|
finish: function(d) {
|
|
944
944
|
return c(l.f, d);
|
|
945
945
|
}
|
|
946
|
-
}, c = function(d,
|
|
946
|
+
}, c = function(d, h, p) {
|
|
947
947
|
l.p = s.prev, l.n = s.next;
|
|
948
948
|
try {
|
|
949
|
-
return d(
|
|
949
|
+
return d(h, p);
|
|
950
950
|
} finally {
|
|
951
951
|
s.next = l.n;
|
|
952
952
|
}
|
|
@@ -969,8 +969,8 @@ function tt() {
|
|
|
969
969
|
return new mo(c, l);
|
|
970
970
|
},
|
|
971
971
|
AsyncIterator: Xr,
|
|
972
|
-
async: function(c, l, u, d,
|
|
973
|
-
return (n(l) ? vo : Al)(i(c), l, u, d,
|
|
972
|
+
async: function(c, l, u, d, h) {
|
|
973
|
+
return (n(l) ? vo : Al)(i(c), l, u, d, h);
|
|
974
974
|
},
|
|
975
975
|
keys: Il,
|
|
976
976
|
values: ei
|
|
@@ -1128,8 +1128,8 @@ function Nn(e, t) {
|
|
|
1128
1128
|
}
|
|
1129
1129
|
if (i && o && J(i) === "object" && J(o) === "object") {
|
|
1130
1130
|
var d = Object.keys(i);
|
|
1131
|
-
return d.length !== Object.keys(o).length ? !1 : d.every(function(
|
|
1132
|
-
return a(i[
|
|
1131
|
+
return d.length !== Object.keys(o).length ? !1 : d.every(function(h) {
|
|
1132
|
+
return a(i[h], o[h], l);
|
|
1133
1133
|
});
|
|
1134
1134
|
}
|
|
1135
1135
|
return !1;
|
|
@@ -1358,28 +1358,28 @@ var ai = /* @__PURE__ */ (function(e) {
|
|
|
1358
1358
|
})(/* @__PURE__ */ Dn(Error));
|
|
1359
1359
|
function ql(e, t, r, n, a) {
|
|
1360
1360
|
if (t.first) {
|
|
1361
|
-
var i = new Promise(function(
|
|
1362
|
-
var
|
|
1363
|
-
return n(S), S.length ? p(new ai(S, kn(S))) :
|
|
1364
|
-
},
|
|
1365
|
-
ni(
|
|
1361
|
+
var i = new Promise(function(h, p) {
|
|
1362
|
+
var g = function(S) {
|
|
1363
|
+
return n(S), S.length ? p(new ai(S, kn(S))) : h(a);
|
|
1364
|
+
}, m = Ul(e);
|
|
1365
|
+
ni(m, r, g);
|
|
1366
1366
|
});
|
|
1367
|
-
return i.catch(function(
|
|
1368
|
-
return
|
|
1367
|
+
return i.catch(function(h) {
|
|
1368
|
+
return h;
|
|
1369
1369
|
}), i;
|
|
1370
1370
|
}
|
|
1371
|
-
var o = t.firstFields === !0 ? Object.keys(e) : t.firstFields || [], s = Object.keys(e), c = s.length, l = 0, u = [], d = new Promise(function(
|
|
1372
|
-
var
|
|
1373
|
-
if (u.push.apply(u,
|
|
1374
|
-
return n(u), u.length ? p(new ai(u, kn(u))) :
|
|
1371
|
+
var o = t.firstFields === !0 ? Object.keys(e) : t.firstFields || [], s = Object.keys(e), c = s.length, l = 0, u = [], d = new Promise(function(h, p) {
|
|
1372
|
+
var g = function(f) {
|
|
1373
|
+
if (u.push.apply(u, f), l++, l === c)
|
|
1374
|
+
return n(u), u.length ? p(new ai(u, kn(u))) : h(a);
|
|
1375
1375
|
};
|
|
1376
|
-
s.length || (n(u),
|
|
1377
|
-
var
|
|
1378
|
-
o.indexOf(
|
|
1376
|
+
s.length || (n(u), h(a)), s.forEach(function(m) {
|
|
1377
|
+
var f = e[m];
|
|
1378
|
+
o.indexOf(m) !== -1 ? ni(f, r, g) : Wl(f, r, g);
|
|
1379
1379
|
});
|
|
1380
1380
|
});
|
|
1381
|
-
return d.catch(function(
|
|
1382
|
-
return
|
|
1381
|
+
return d.catch(function(h) {
|
|
1382
|
+
return h;
|
|
1383
1383
|
}), d;
|
|
1384
1384
|
}
|
|
1385
1385
|
function Gl(e) {
|
|
@@ -1425,16 +1425,16 @@ var Nt = "enum", Xl = function(t, r, n, a, i) {
|
|
|
1425
1425
|
}
|
|
1426
1426
|
}
|
|
1427
1427
|
}, Ql = function(t, r, n, a, i) {
|
|
1428
|
-
var o = typeof t.len == "number", s = typeof t.min == "number", c = typeof t.max == "number", l = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, u = r, d = null,
|
|
1429
|
-
if (
|
|
1428
|
+
var o = typeof t.len == "number", s = typeof t.min == "number", c = typeof t.max == "number", l = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, u = r, d = null, h = typeof r == "number", p = typeof r == "string", g = Array.isArray(r);
|
|
1429
|
+
if (h ? d = "number" : p ? d = "string" : g && (d = "array"), !d)
|
|
1430
1430
|
return !1;
|
|
1431
|
-
|
|
1431
|
+
g && (u = r.length), p && (u = r.replace(l, "_").length), o ? u !== t.len && a.push(Ye(i.messages[d].len, t.fullField, t.len)) : s && !c && u < t.min ? a.push(Ye(i.messages[d].min, t.fullField, t.min)) : c && !s && u > t.max ? a.push(Ye(i.messages[d].max, t.fullField, t.max)) : s && c && (u < t.min || u > t.max) && a.push(Ye(i.messages[d].range, t.fullField, t.min, t.max));
|
|
1432
1432
|
}, So = function(t, r, n, a, i, o) {
|
|
1433
1433
|
t.required && (!n.hasOwnProperty(t.field) || Ve(r, o || t.type)) && a.push(Ye(i.messages.required, t.fullField));
|
|
1434
|
-
},
|
|
1434
|
+
}, Mr;
|
|
1435
1435
|
const Zl = (function() {
|
|
1436
|
-
if (
|
|
1437
|
-
return
|
|
1436
|
+
if (Mr)
|
|
1437
|
+
return Mr;
|
|
1438
1438
|
var e = "[a-fA-F\\d:]", t = function(O) {
|
|
1439
1439
|
return O && O.includeBoundaries ? "(?:(?<=\\s|^)(?=".concat(e, ")|(?<=").concat(e, ")(?=\\s|$))") : "";
|
|
1440
1440
|
}, 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 = [
|
|
@@ -1462,8 +1462,8 @@ const Zl = (function() {
|
|
|
1462
1462
|
}, u.v6 = function(C) {
|
|
1463
1463
|
return C && C.exact ? l : new RegExp("".concat(t(C)).concat(o).concat(t(C)), "g");
|
|
1464
1464
|
};
|
|
1465
|
-
var d = "(?:(?:[a-z]+:)?//)",
|
|
1466
|
-
return
|
|
1465
|
+
var d = "(?:(?:[a-z]+:)?//)", h = "(?:\\S+(?::\\S*)?@)?", p = u.v4().source, g = u.v6().source, m = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", f = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", S = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", v = "(?::\\d{2,5})?", y = '(?:[/?#][^\\s"]*)?', E = "(?:".concat(d, "|www\\.)").concat(h, "(?:localhost|").concat(p, "|").concat(g, "|").concat(m).concat(f).concat(S, ")").concat(v).concat(y);
|
|
1466
|
+
return Mr = new RegExp("(?:^".concat(E, "$)"), "i"), Mr;
|
|
1467
1467
|
});
|
|
1468
1468
|
var si = {
|
|
1469
1469
|
// http://emailregex.com/
|
|
@@ -1698,97 +1698,97 @@ var Sr = /* @__PURE__ */ (function() {
|
|
|
1698
1698
|
}, o = r, s = a, c = i;
|
|
1699
1699
|
if (typeof s == "function" && (c = s, s = {}), !this.rules || Object.keys(this.rules).length === 0)
|
|
1700
1700
|
return c && c(null, o), Promise.resolve(o);
|
|
1701
|
-
function l(
|
|
1702
|
-
var
|
|
1701
|
+
function l(g) {
|
|
1702
|
+
var m = [], f = {};
|
|
1703
1703
|
function S(y) {
|
|
1704
1704
|
if (Array.isArray(y)) {
|
|
1705
1705
|
var E;
|
|
1706
|
-
|
|
1706
|
+
m = (E = m).concat.apply(E, Q(y));
|
|
1707
1707
|
} else
|
|
1708
|
-
|
|
1708
|
+
m.push(y);
|
|
1709
1709
|
}
|
|
1710
|
-
for (var
|
|
1711
|
-
S(v
|
|
1712
|
-
|
|
1710
|
+
for (var v = 0; v < g.length; v++)
|
|
1711
|
+
S(g[v]);
|
|
1712
|
+
m.length ? (f = kn(m), c(m, f)) : c(null, o);
|
|
1713
1713
|
}
|
|
1714
1714
|
if (s.messages) {
|
|
1715
1715
|
var u = this.messages();
|
|
1716
1716
|
u === Ln && (u = Vn()), oi(u, s.messages), s.messages = u;
|
|
1717
1717
|
} else
|
|
1718
1718
|
s.messages = this.messages();
|
|
1719
|
-
var d = {},
|
|
1720
|
-
|
|
1721
|
-
var
|
|
1722
|
-
|
|
1723
|
-
var
|
|
1724
|
-
typeof
|
|
1725
|
-
validator:
|
|
1726
|
-
} :
|
|
1727
|
-
rule:
|
|
1728
|
-
value:
|
|
1719
|
+
var d = {}, h = s.keys || Object.keys(this.rules);
|
|
1720
|
+
h.forEach(function(g) {
|
|
1721
|
+
var m = n.rules[g], f = o[g];
|
|
1722
|
+
m.forEach(function(S) {
|
|
1723
|
+
var v = S;
|
|
1724
|
+
typeof v.transform == "function" && (o === r && (o = j({}, o)), f = o[g] = v.transform(f), f != null && (v.type = v.type || (Array.isArray(f) ? "array" : J(f)))), typeof v == "function" ? v = {
|
|
1725
|
+
validator: v
|
|
1726
|
+
} : v = j({}, v), v.validator = n.getValidationMethod(v), v.validator && (v.field = g, v.fullField = v.fullField || g, v.type = n.getType(v), d[g] = d[g] || [], d[g].push({
|
|
1727
|
+
rule: v,
|
|
1728
|
+
value: f,
|
|
1729
1729
|
source: o,
|
|
1730
|
-
field:
|
|
1730
|
+
field: g
|
|
1731
1731
|
}));
|
|
1732
1732
|
});
|
|
1733
1733
|
});
|
|
1734
1734
|
var p = {};
|
|
1735
|
-
return ql(d, s, function(
|
|
1736
|
-
var
|
|
1737
|
-
S = S && (
|
|
1738
|
-
function
|
|
1735
|
+
return ql(d, s, function(g, m) {
|
|
1736
|
+
var f = g.rule, S = (f.type === "object" || f.type === "array") && (J(f.fields) === "object" || J(f.defaultField) === "object");
|
|
1737
|
+
S = S && (f.required || !f.required && g.value), f.field = g.field;
|
|
1738
|
+
function v(_, F) {
|
|
1739
1739
|
return j(j({}, F), {}, {
|
|
1740
|
-
fullField: "".concat(
|
|
1741
|
-
fullFields:
|
|
1740
|
+
fullField: "".concat(f.fullField, ".").concat(_),
|
|
1741
|
+
fullFields: f.fullFields ? [].concat(Q(f.fullFields), [_]) : [_]
|
|
1742
1742
|
});
|
|
1743
1743
|
}
|
|
1744
1744
|
function y() {
|
|
1745
1745
|
var _ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], F = Array.isArray(_) ? _ : [_];
|
|
1746
|
-
!s.suppressWarning && F.length && e.warning("async-validator:", F), F.length &&
|
|
1747
|
-
var
|
|
1748
|
-
if (s.first &&
|
|
1749
|
-
return p[
|
|
1746
|
+
!s.suppressWarning && F.length && e.warning("async-validator:", F), F.length && f.message !== void 0 && (F = [].concat(f.message));
|
|
1747
|
+
var P = F.map(ii(f, o));
|
|
1748
|
+
if (s.first && P.length)
|
|
1749
|
+
return p[f.field] = 1, m(P);
|
|
1750
1750
|
if (!S)
|
|
1751
|
-
|
|
1751
|
+
m(P);
|
|
1752
1752
|
else {
|
|
1753
|
-
if (
|
|
1754
|
-
return
|
|
1755
|
-
var
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
}),
|
|
1753
|
+
if (f.required && !g.value)
|
|
1754
|
+
return f.message !== void 0 ? P = [].concat(f.message).map(ii(f, o)) : s.error && (P = [s.error(f, Ye(s.messages.required, f.field))]), m(P);
|
|
1755
|
+
var M = {};
|
|
1756
|
+
f.defaultField && Object.keys(g.value).map(function(V) {
|
|
1757
|
+
M[V] = f.defaultField;
|
|
1758
|
+
}), M = j(j({}, M), g.rule.fields);
|
|
1759
1759
|
var R = {};
|
|
1760
|
-
Object.keys(
|
|
1761
|
-
var b =
|
|
1762
|
-
R[V] = w.map(
|
|
1760
|
+
Object.keys(M).forEach(function(V) {
|
|
1761
|
+
var b = M[V], w = Array.isArray(b) ? b : [b];
|
|
1762
|
+
R[V] = w.map(v.bind(null, V));
|
|
1763
1763
|
});
|
|
1764
1764
|
var D = new e(R);
|
|
1765
|
-
D.messages(s.messages),
|
|
1765
|
+
D.messages(s.messages), g.rule.options && (g.rule.options.messages = s.messages, g.rule.options.error = s.error), D.validate(g.value, g.rule.options || s, function(V) {
|
|
1766
1766
|
var b = [];
|
|
1767
|
-
|
|
1767
|
+
P && P.length && b.push.apply(b, Q(P)), V && V.length && b.push.apply(b, Q(V)), m(b.length ? b : null);
|
|
1768
1768
|
});
|
|
1769
1769
|
}
|
|
1770
1770
|
}
|
|
1771
1771
|
var E;
|
|
1772
|
-
if (
|
|
1773
|
-
E =
|
|
1774
|
-
else if (
|
|
1772
|
+
if (f.asyncValidator)
|
|
1773
|
+
E = f.asyncValidator(f, g.value, y, g.source, s);
|
|
1774
|
+
else if (f.validator) {
|
|
1775
1775
|
try {
|
|
1776
|
-
E =
|
|
1776
|
+
E = f.validator(f, g.value, y, g.source, s);
|
|
1777
1777
|
} catch (_) {
|
|
1778
1778
|
var C, O;
|
|
1779
1779
|
(C = (O = console).error) === null || C === void 0 || C.call(O, _), s.suppressValidatorError || setTimeout(function() {
|
|
1780
1780
|
throw _;
|
|
1781
1781
|
}, 0), y(_.message);
|
|
1782
1782
|
}
|
|
1783
|
-
E === !0 ? y() : E === !1 ? y(typeof
|
|
1783
|
+
E === !0 ? y() : E === !1 ? y(typeof f.message == "function" ? f.message(f.fullField || f.field) : f.message || "".concat(f.fullField || f.field, " fails")) : E instanceof Array ? y(E) : E instanceof Error && y(E.message);
|
|
1784
1784
|
}
|
|
1785
1785
|
E && E.then && E.then(function() {
|
|
1786
1786
|
return y();
|
|
1787
1787
|
}, function(_) {
|
|
1788
1788
|
return y(_);
|
|
1789
1789
|
});
|
|
1790
|
-
}, function(
|
|
1791
|
-
l(
|
|
1790
|
+
}, function(g) {
|
|
1791
|
+
l(g);
|
|
1792
1792
|
}, o);
|
|
1793
1793
|
}
|
|
1794
1794
|
}, {
|
|
@@ -1902,8 +1902,8 @@ function Lt() {
|
|
|
1902
1902
|
if (!c.has(l)) {
|
|
1903
1903
|
c.add(l);
|
|
1904
1904
|
var d = mt(n, o);
|
|
1905
|
-
u ? n = at(n, o, []) : (!d || J(d) !== "object") && (n = at(n, o, ci(l))), yu(l).forEach(function(
|
|
1906
|
-
i([].concat(Q(o), [
|
|
1905
|
+
u ? n = at(n, o, []) : (!d || J(d) !== "object") && (n = at(n, o, ci(l))), yu(l).forEach(function(h) {
|
|
1906
|
+
i([].concat(Q(o), [h]), c);
|
|
1907
1907
|
});
|
|
1908
1908
|
}
|
|
1909
1909
|
} else
|
|
@@ -1927,9 +1927,9 @@ function Hn(e, t, r, n, a) {
|
|
|
1927
1927
|
}
|
|
1928
1928
|
function Bn() {
|
|
1929
1929
|
return Bn = br(/* @__PURE__ */ tt().mark(function e(t, r, n, a, i) {
|
|
1930
|
-
var o, s, c, l, u, d,
|
|
1931
|
-
return tt().wrap(function(
|
|
1932
|
-
for (; ; ) switch (
|
|
1930
|
+
var o, s, c, l, u, d, h, p, g;
|
|
1931
|
+
return tt().wrap(function(f) {
|
|
1932
|
+
for (; ; ) switch (f.prev = f.next) {
|
|
1933
1933
|
case 0:
|
|
1934
1934
|
return o = j({}, n), delete o.ruleIndex, li.warning = function() {
|
|
1935
1935
|
}, o.validator && (s = o.validator, o.validator = function() {
|
|
@@ -1938,104 +1938,104 @@ function Bn() {
|
|
|
1938
1938
|
} catch (S) {
|
|
1939
1939
|
return console.error(S), Promise.reject(ui);
|
|
1940
1940
|
}
|
|
1941
|
-
}), c = null, o && o.type === "array" && o.defaultField && (c = o.defaultField, delete o.defaultField), l = new li(x({}, t, [o])), u = Lt(_o, a.validateMessages), l.messages(u), d = [],
|
|
1941
|
+
}), c = null, o && o.type === "array" && o.defaultField && (c = o.defaultField, delete o.defaultField), l = new li(x({}, t, [o])), u = Lt(_o, a.validateMessages), l.messages(u), d = [], f.prev = 10, f.next = 13, Promise.resolve(l.validate(x({}, t, r), j({}, a)));
|
|
1942
1942
|
case 13:
|
|
1943
|
-
|
|
1943
|
+
f.next = 18;
|
|
1944
1944
|
break;
|
|
1945
1945
|
case 15:
|
|
1946
|
-
|
|
1946
|
+
f.prev = 15, f.t0 = f.catch(10), f.t0.errors && (d = f.t0.errors.map(function(S, v) {
|
|
1947
1947
|
var y = S.message, E = y === ui ? u.default : y;
|
|
1948
1948
|
return /* @__PURE__ */ T.isValidElement(E) ? (
|
|
1949
1949
|
// Wrap ReactNode with `key`
|
|
1950
1950
|
/* @__PURE__ */ T.cloneElement(E, {
|
|
1951
|
-
key: "error_".concat(
|
|
1951
|
+
key: "error_".concat(v)
|
|
1952
1952
|
})
|
|
1953
1953
|
) : E;
|
|
1954
1954
|
}));
|
|
1955
1955
|
case 18:
|
|
1956
1956
|
if (!(!d.length && c && Array.isArray(r) && r.length > 0)) {
|
|
1957
|
-
|
|
1957
|
+
f.next = 23;
|
|
1958
1958
|
break;
|
|
1959
1959
|
}
|
|
1960
|
-
return
|
|
1961
|
-
return Hn("".concat(t, ".").concat(
|
|
1960
|
+
return f.next = 21, Promise.all(r.map(function(S, v) {
|
|
1961
|
+
return Hn("".concat(t, ".").concat(v), S, c, a, i);
|
|
1962
1962
|
}));
|
|
1963
1963
|
case 21:
|
|
1964
|
-
return
|
|
1965
|
-
return [].concat(Q(S), Q(
|
|
1964
|
+
return h = f.sent, f.abrupt("return", h.reduce(function(S, v) {
|
|
1965
|
+
return [].concat(Q(S), Q(v));
|
|
1966
1966
|
}, []));
|
|
1967
1967
|
case 23:
|
|
1968
1968
|
return p = j(j({}, n), {}, {
|
|
1969
1969
|
name: t,
|
|
1970
1970
|
enum: (n.enum || []).join(", ")
|
|
1971
|
-
}, i),
|
|
1971
|
+
}, i), g = d.map(function(S) {
|
|
1972
1972
|
return typeof S == "string" ? bu(S, p) : S;
|
|
1973
|
-
}),
|
|
1973
|
+
}), f.abrupt("return", g);
|
|
1974
1974
|
case 26:
|
|
1975
1975
|
case "end":
|
|
1976
|
-
return
|
|
1976
|
+
return f.stop();
|
|
1977
1977
|
}
|
|
1978
1978
|
}, e, null, [[10, 15]]);
|
|
1979
1979
|
})), Bn.apply(this, arguments);
|
|
1980
1980
|
}
|
|
1981
1981
|
function Su(e, t, r, n, a, i) {
|
|
1982
1982
|
var o = e.join("."), s = r.map(function(u, d) {
|
|
1983
|
-
var
|
|
1983
|
+
var h = u.validator, p = j(j({}, u), {}, {
|
|
1984
1984
|
ruleIndex: d
|
|
1985
1985
|
});
|
|
1986
|
-
return
|
|
1987
|
-
var S = !1,
|
|
1986
|
+
return h && (p.validator = function(g, m, f) {
|
|
1987
|
+
var S = !1, v = function() {
|
|
1988
1988
|
for (var C = arguments.length, O = new Array(C), _ = 0; _ < C; _++)
|
|
1989
1989
|
O[_] = arguments[_];
|
|
1990
1990
|
Promise.resolve().then(function() {
|
|
1991
|
-
$e(!S, "Your validator function has already return a promise. `callback` will be ignored."), S ||
|
|
1991
|
+
$e(!S, "Your validator function has already return a promise. `callback` will be ignored."), S || f.apply(void 0, O);
|
|
1992
1992
|
});
|
|
1993
|
-
}, y =
|
|
1993
|
+
}, y = h(g, m, v);
|
|
1994
1994
|
S = y && typeof y.then == "function" && typeof y.catch == "function", $e(S, "`callback` is deprecated. Please return a promise instead."), S && y.then(function() {
|
|
1995
|
-
|
|
1995
|
+
f();
|
|
1996
1996
|
}).catch(function(E) {
|
|
1997
|
-
|
|
1997
|
+
f(E || " ");
|
|
1998
1998
|
});
|
|
1999
1999
|
}), p;
|
|
2000
2000
|
}).sort(function(u, d) {
|
|
2001
|
-
var
|
|
2002
|
-
return !!
|
|
2001
|
+
var h = u.warningOnly, p = u.ruleIndex, g = d.warningOnly, m = d.ruleIndex;
|
|
2002
|
+
return !!h == !!g ? p - m : h ? 1 : -1;
|
|
2003
2003
|
}), c;
|
|
2004
2004
|
if (a === !0)
|
|
2005
2005
|
c = new Promise(/* @__PURE__ */ (function() {
|
|
2006
|
-
var u = br(/* @__PURE__ */ tt().mark(function d(
|
|
2007
|
-
var
|
|
2008
|
-
return tt().wrap(function(
|
|
2009
|
-
for (; ; ) switch (
|
|
2006
|
+
var u = br(/* @__PURE__ */ tt().mark(function d(h, p) {
|
|
2007
|
+
var g, m, f;
|
|
2008
|
+
return tt().wrap(function(v) {
|
|
2009
|
+
for (; ; ) switch (v.prev = v.next) {
|
|
2010
2010
|
case 0:
|
|
2011
|
-
|
|
2011
|
+
g = 0;
|
|
2012
2012
|
case 1:
|
|
2013
|
-
if (!(
|
|
2014
|
-
|
|
2013
|
+
if (!(g < s.length)) {
|
|
2014
|
+
v.next = 12;
|
|
2015
2015
|
break;
|
|
2016
2016
|
}
|
|
2017
|
-
return
|
|
2017
|
+
return m = s[g], v.next = 5, Hn(o, t, m, n, i);
|
|
2018
2018
|
case 5:
|
|
2019
|
-
if (
|
|
2020
|
-
|
|
2019
|
+
if (f = v.sent, !f.length) {
|
|
2020
|
+
v.next = 9;
|
|
2021
2021
|
break;
|
|
2022
2022
|
}
|
|
2023
2023
|
return p([{
|
|
2024
|
-
errors:
|
|
2025
|
-
rule:
|
|
2026
|
-
}]),
|
|
2024
|
+
errors: f,
|
|
2025
|
+
rule: m
|
|
2026
|
+
}]), v.abrupt("return");
|
|
2027
2027
|
case 9:
|
|
2028
|
-
|
|
2028
|
+
g += 1, v.next = 1;
|
|
2029
2029
|
break;
|
|
2030
2030
|
case 12:
|
|
2031
|
-
|
|
2031
|
+
h([]);
|
|
2032
2032
|
case 13:
|
|
2033
2033
|
case "end":
|
|
2034
|
-
return
|
|
2034
|
+
return v.stop();
|
|
2035
2035
|
}
|
|
2036
2036
|
}, d);
|
|
2037
2037
|
}));
|
|
2038
|
-
return function(d,
|
|
2038
|
+
return function(d, h) {
|
|
2039
2039
|
return u.apply(this, arguments);
|
|
2040
2040
|
};
|
|
2041
2041
|
})());
|
|
@@ -2098,7 +2098,7 @@ function Wn() {
|
|
|
2098
2098
|
}, e);
|
|
2099
2099
|
})), Wn.apply(this, arguments);
|
|
2100
2100
|
}
|
|
2101
|
-
function
|
|
2101
|
+
function Pe(e) {
|
|
2102
2102
|
return jn(e);
|
|
2103
2103
|
}
|
|
2104
2104
|
function di(e, t) {
|
|
@@ -2157,14 +2157,14 @@ var Oa = /* @__PURE__ */ (function(e) {
|
|
|
2157
2157
|
resetCount: 0
|
|
2158
2158
|
}), x(ne(a), "cancelRegisterFunc", null), x(ne(a), "mounted", !1), x(ne(a), "touched", !1), x(ne(a), "dirty", !1), x(ne(a), "validatePromise", void 0), x(ne(a), "prevValidating", void 0), x(ne(a), "errors", Ze), x(ne(a), "warnings", Ze), x(ne(a), "cancelRegister", function() {
|
|
2159
2159
|
var c = a.props, l = c.preserve, u = c.isListField, d = c.name;
|
|
2160
|
-
a.cancelRegisterFunc && a.cancelRegisterFunc(u, l,
|
|
2160
|
+
a.cancelRegisterFunc && a.cancelRegisterFunc(u, l, Pe(d)), a.cancelRegisterFunc = null;
|
|
2161
2161
|
}), x(ne(a), "getNamePath", function() {
|
|
2162
|
-
var c = a.props, l = c.name, u = c.fieldContext, d = u.prefixName,
|
|
2163
|
-
return l !== void 0 ? [].concat(Q(
|
|
2162
|
+
var c = a.props, l = c.name, u = c.fieldContext, d = u.prefixName, h = d === void 0 ? [] : d;
|
|
2163
|
+
return l !== void 0 ? [].concat(Q(h), Q(l)) : [];
|
|
2164
2164
|
}), x(ne(a), "getRules", function() {
|
|
2165
2165
|
var c = a.props, l = c.rules, u = l === void 0 ? [] : l, d = c.fieldContext;
|
|
2166
|
-
return u.map(function(
|
|
2167
|
-
return typeof
|
|
2166
|
+
return u.map(function(h) {
|
|
2167
|
+
return typeof h == "function" ? h(d) : h;
|
|
2168
2168
|
});
|
|
2169
2169
|
}), x(ne(a), "refresh", function() {
|
|
2170
2170
|
a.mounted && a.setState(function(c) {
|
|
@@ -2183,11 +2183,11 @@ var Oa = /* @__PURE__ */ (function(e) {
|
|
|
2183
2183
|
} else
|
|
2184
2184
|
a.metaCache = null;
|
|
2185
2185
|
}), x(ne(a), "onStoreChange", function(c, l, u) {
|
|
2186
|
-
var d = a.props,
|
|
2187
|
-
switch (u.type === "valueUpdate" && u.source === "external" && !Nn(
|
|
2186
|
+
var d = a.props, h = d.shouldUpdate, p = d.dependencies, g = p === void 0 ? [] : p, m = d.onReset, f = u.store, S = a.getNamePath(), v = a.getValue(c), y = a.getValue(f), E = l && Ht(l, S);
|
|
2187
|
+
switch (u.type === "valueUpdate" && u.source === "external" && !Nn(v, y) && (a.touched = !0, a.dirty = !0, a.validatePromise = null, a.errors = Ze, a.warnings = Ze, a.triggerMetaEvent()), u.type) {
|
|
2188
2188
|
case "reset":
|
|
2189
2189
|
if (!l || E) {
|
|
2190
|
-
a.touched = !1, a.dirty = !1, a.validatePromise = void 0, a.errors = Ze, a.warnings = Ze, a.triggerMetaEvent(),
|
|
2190
|
+
a.touched = !1, a.dirty = !1, a.validatePromise = void 0, a.errors = Ze, a.warnings = Ze, a.triggerMetaEvent(), m?.(), a.refresh();
|
|
2191
2191
|
return;
|
|
2192
2192
|
}
|
|
2193
2193
|
break;
|
|
@@ -2198,7 +2198,7 @@ var Oa = /* @__PURE__ */ (function(e) {
|
|
|
2198
2198
|
* - Reset A, need clean B, C
|
|
2199
2199
|
*/
|
|
2200
2200
|
case "remove": {
|
|
2201
|
-
if (
|
|
2201
|
+
if (h && Sn(h, c, f, v, y, u)) {
|
|
2202
2202
|
a.reRender();
|
|
2203
2203
|
return;
|
|
2204
2204
|
}
|
|
@@ -2213,14 +2213,14 @@ var Oa = /* @__PURE__ */ (function(e) {
|
|
|
2213
2213
|
a.reRender();
|
|
2214
2214
|
return;
|
|
2215
2215
|
}
|
|
2216
|
-
if (
|
|
2216
|
+
if (h && !S.length && Sn(h, c, f, v, y, u)) {
|
|
2217
2217
|
a.reRender();
|
|
2218
2218
|
return;
|
|
2219
2219
|
}
|
|
2220
2220
|
break;
|
|
2221
2221
|
}
|
|
2222
2222
|
case "dependenciesUpdate": {
|
|
2223
|
-
var O =
|
|
2223
|
+
var O = g.map(Pe);
|
|
2224
2224
|
if (O.some(function(_) {
|
|
2225
2225
|
return Ht(u.relatedFields, _);
|
|
2226
2226
|
})) {
|
|
@@ -2230,68 +2230,68 @@ var Oa = /* @__PURE__ */ (function(e) {
|
|
|
2230
2230
|
break;
|
|
2231
2231
|
}
|
|
2232
2232
|
default:
|
|
2233
|
-
if (E || (!
|
|
2233
|
+
if (E || (!g.length || S.length || h) && Sn(h, c, f, v, y, u)) {
|
|
2234
2234
|
a.reRender();
|
|
2235
2235
|
return;
|
|
2236
2236
|
}
|
|
2237
2237
|
break;
|
|
2238
2238
|
}
|
|
2239
|
-
|
|
2239
|
+
h === !0 && a.reRender();
|
|
2240
2240
|
}), x(ne(a), "validateRules", function(c) {
|
|
2241
|
-
var l = a.getNamePath(), u = a.getValue(), d = c || {},
|
|
2242
|
-
var S,
|
|
2243
|
-
return tt().wrap(function(
|
|
2244
|
-
for (; ; ) switch (
|
|
2241
|
+
var l = a.getNamePath(), u = a.getValue(), d = c || {}, h = d.triggerName, p = d.validateOnly, g = p === void 0 ? !1 : p, m = Promise.resolve().then(/* @__PURE__ */ br(/* @__PURE__ */ tt().mark(function f() {
|
|
2242
|
+
var S, v, y, E, C, O, _;
|
|
2243
|
+
return tt().wrap(function(P) {
|
|
2244
|
+
for (; ; ) switch (P.prev = P.next) {
|
|
2245
2245
|
case 0:
|
|
2246
2246
|
if (a.mounted) {
|
|
2247
|
-
|
|
2247
|
+
P.next = 2;
|
|
2248
2248
|
break;
|
|
2249
2249
|
}
|
|
2250
|
-
return
|
|
2250
|
+
return P.abrupt("return", []);
|
|
2251
2251
|
case 2:
|
|
2252
|
-
if (S = a.props,
|
|
2253
|
-
return
|
|
2254
|
-
}).filter(function(
|
|
2255
|
-
var R =
|
|
2252
|
+
if (S = a.props, v = S.validateFirst, y = v === void 0 ? !1 : v, E = S.messageVariables, C = S.validateDebounce, O = a.getRules(), h && (O = O.filter(function(M) {
|
|
2253
|
+
return M;
|
|
2254
|
+
}).filter(function(M) {
|
|
2255
|
+
var R = M.validateTrigger;
|
|
2256
2256
|
if (!R)
|
|
2257
2257
|
return !0;
|
|
2258
2258
|
var D = jn(R);
|
|
2259
|
-
return D.includes(
|
|
2260
|
-
})), !(C &&
|
|
2261
|
-
|
|
2259
|
+
return D.includes(h);
|
|
2260
|
+
})), !(C && h)) {
|
|
2261
|
+
P.next = 10;
|
|
2262
2262
|
break;
|
|
2263
2263
|
}
|
|
2264
|
-
return
|
|
2265
|
-
setTimeout(
|
|
2264
|
+
return P.next = 8, new Promise(function(M) {
|
|
2265
|
+
setTimeout(M, C);
|
|
2266
2266
|
});
|
|
2267
2267
|
case 8:
|
|
2268
|
-
if (a.validatePromise ===
|
|
2269
|
-
|
|
2268
|
+
if (a.validatePromise === m) {
|
|
2269
|
+
P.next = 10;
|
|
2270
2270
|
break;
|
|
2271
2271
|
}
|
|
2272
|
-
return
|
|
2272
|
+
return P.abrupt("return", []);
|
|
2273
2273
|
case 10:
|
|
2274
|
-
return _ = Su(l, u, O, c, y, E), _.catch(function(
|
|
2275
|
-
return
|
|
2274
|
+
return _ = Su(l, u, O, c, y, E), _.catch(function(M) {
|
|
2275
|
+
return M;
|
|
2276
2276
|
}).then(function() {
|
|
2277
|
-
var
|
|
2278
|
-
if (a.validatePromise ===
|
|
2277
|
+
var M = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ze;
|
|
2278
|
+
if (a.validatePromise === m) {
|
|
2279
2279
|
var R;
|
|
2280
2280
|
a.validatePromise = null;
|
|
2281
2281
|
var D = [], V = [];
|
|
2282
|
-
(R =
|
|
2282
|
+
(R = M.forEach) === null || R === void 0 || R.call(M, function(b) {
|
|
2283
2283
|
var w = b.rule.warningOnly, $ = b.errors, A = $ === void 0 ? Ze : $;
|
|
2284
2284
|
w ? V.push.apply(V, Q(A)) : D.push.apply(D, Q(A));
|
|
2285
2285
|
}), a.errors = D, a.warnings = V, a.triggerMetaEvent(), a.reRender();
|
|
2286
2286
|
}
|
|
2287
|
-
}),
|
|
2287
|
+
}), P.abrupt("return", _);
|
|
2288
2288
|
case 13:
|
|
2289
2289
|
case "end":
|
|
2290
|
-
return
|
|
2290
|
+
return P.stop();
|
|
2291
2291
|
}
|
|
2292
|
-
},
|
|
2292
|
+
}, f);
|
|
2293
2293
|
})));
|
|
2294
|
-
return
|
|
2294
|
+
return g || (a.validatePromise = m, a.dirty = !0, a.errors = Ze, a.warnings = Ze, a.triggerMetaEvent(), a.reRender()), m;
|
|
2295
2295
|
}), x(ne(a), "isFieldValidating", function() {
|
|
2296
2296
|
return !!a.validatePromise;
|
|
2297
2297
|
}), x(ne(a), "isFieldTouched", function() {
|
|
@@ -2341,9 +2341,9 @@ var Oa = /* @__PURE__ */ (function(e) {
|
|
|
2341
2341
|
var l = a.props.fieldContext.getFieldsValue, u = a.getNamePath();
|
|
2342
2342
|
return mt(c || l(!0), u);
|
|
2343
2343
|
}), x(ne(a), "getControlled", function() {
|
|
2344
|
-
var c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, l = a.props, u = l.name, d = l.trigger,
|
|
2345
|
-
return x({},
|
|
2346
|
-
},
|
|
2344
|
+
var c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, l = a.props, u = l.name, d = l.trigger, h = l.validateTrigger, p = l.getValueFromEvent, g = l.normalize, m = l.valuePropName, f = l.getValueProps, S = l.fieldContext, v = h !== void 0 ? h : S.validateTrigger, y = a.getNamePath(), E = S.getInternalHooks, C = S.getFieldsValue, O = E(Tt), _ = O.dispatch, F = a.getValue(), P = f || function(b) {
|
|
2345
|
+
return x({}, m, b);
|
|
2346
|
+
}, M = c[d], R = u !== void 0 ? P(F) : {};
|
|
2347
2347
|
process.env.NODE_ENV !== "production" && R && Object.keys(R).forEach(function(b) {
|
|
2348
2348
|
$e(typeof R[b] != "function", "It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(b, ")"));
|
|
2349
2349
|
});
|
|
@@ -2352,13 +2352,13 @@ var Oa = /* @__PURE__ */ (function(e) {
|
|
|
2352
2352
|
a.touched = !0, a.dirty = !0, a.triggerMetaEvent();
|
|
2353
2353
|
for (var b, w = arguments.length, $ = new Array(w), A = 0; A < w; A++)
|
|
2354
2354
|
$[A] = arguments[A];
|
|
2355
|
-
p ? b = p.apply(void 0, $) : b = Eu.apply(void 0, [
|
|
2355
|
+
p ? b = p.apply(void 0, $) : b = Eu.apply(void 0, [m].concat($)), g && (b = g(b, F, C(!0))), b !== F && _({
|
|
2356
2356
|
type: "updateValue",
|
|
2357
2357
|
namePath: y,
|
|
2358
2358
|
value: b
|
|
2359
|
-
}),
|
|
2359
|
+
}), M && M.apply(void 0, $);
|
|
2360
2360
|
};
|
|
2361
|
-
var V = jn(
|
|
2361
|
+
var V = jn(v || []);
|
|
2362
2362
|
return V.forEach(function(b) {
|
|
2363
2363
|
var w = D[b];
|
|
2364
2364
|
D[b] = function() {
|
|
@@ -2413,7 +2413,7 @@ x(Oa, "defaultProps", {
|
|
|
2413
2413
|
valuePropName: "value"
|
|
2414
2414
|
});
|
|
2415
2415
|
function Eo(e) {
|
|
2416
|
-
var t, r = e.name, n = pt(e, wu), a = T.useContext(Wt), i = T.useContext(Yr), o = r !== void 0 ?
|
|
2416
|
+
var t, r = e.name, n = pt(e, wu), a = T.useContext(Wt), i = T.useContext(Yr), o = r !== void 0 ? Pe(r) : void 0, s = (t = n.isListField) !== null && t !== void 0 ? t : !!i, c = "keep";
|
|
2417
2417
|
return s || (c = "_".concat((o || []).join("_"))), process.env.NODE_ENV !== "production" && n.preserve === !1 && s && o.length <= 1 && $e(!1, "`preserve` should not apply on Form.List fields."), /* @__PURE__ */ T.createElement(Oa, ct({
|
|
2418
2418
|
key: c,
|
|
2419
2419
|
name: o,
|
|
@@ -2427,70 +2427,70 @@ function $u(e) {
|
|
|
2427
2427
|
keys: [],
|
|
2428
2428
|
id: 0
|
|
2429
2429
|
}), u = l.current, d = T.useMemo(function() {
|
|
2430
|
-
var
|
|
2431
|
-
return [].concat(Q(
|
|
2432
|
-
}, [s.prefixName, t]),
|
|
2430
|
+
var m = Pe(s.prefixName) || [];
|
|
2431
|
+
return [].concat(Q(m), Q(Pe(t)));
|
|
2432
|
+
}, [s.prefixName, t]), h = T.useMemo(function() {
|
|
2433
2433
|
return j(j({}, s), {}, {
|
|
2434
2434
|
prefixName: d
|
|
2435
2435
|
});
|
|
2436
2436
|
}, [s, d]), p = T.useMemo(function() {
|
|
2437
2437
|
return {
|
|
2438
|
-
getKey: function(
|
|
2439
|
-
var S = d.length,
|
|
2440
|
-
return [u.keys[
|
|
2438
|
+
getKey: function(f) {
|
|
2439
|
+
var S = d.length, v = f[S];
|
|
2440
|
+
return [u.keys[v], f.slice(S + 1)];
|
|
2441
2441
|
}
|
|
2442
2442
|
};
|
|
2443
2443
|
}, [d]);
|
|
2444
2444
|
if (typeof n != "function")
|
|
2445
2445
|
return $e(!1, "Form.List only accepts function as children."), null;
|
|
2446
|
-
var
|
|
2447
|
-
var y =
|
|
2448
|
-
return y === "internal" ? !1 :
|
|
2446
|
+
var g = function(f, S, v) {
|
|
2447
|
+
var y = v.source;
|
|
2448
|
+
return y === "internal" ? !1 : f !== S;
|
|
2449
2449
|
};
|
|
2450
2450
|
return /* @__PURE__ */ T.createElement(Yr.Provider, {
|
|
2451
2451
|
value: p
|
|
2452
2452
|
}, /* @__PURE__ */ T.createElement(Wt.Provider, {
|
|
2453
|
-
value:
|
|
2453
|
+
value: h
|
|
2454
2454
|
}, /* @__PURE__ */ T.createElement(Eo, {
|
|
2455
2455
|
name: [],
|
|
2456
|
-
shouldUpdate:
|
|
2456
|
+
shouldUpdate: g,
|
|
2457
2457
|
rules: a,
|
|
2458
2458
|
validateTrigger: i,
|
|
2459
2459
|
initialValue: r,
|
|
2460
2460
|
isList: !0,
|
|
2461
2461
|
isListField: o ?? !!c
|
|
2462
|
-
}, function(
|
|
2463
|
-
var S =
|
|
2464
|
-
var
|
|
2465
|
-
return
|
|
2462
|
+
}, function(m, f) {
|
|
2463
|
+
var S = m.value, v = S === void 0 ? [] : S, y = m.onChange, E = s.getFieldValue, C = function() {
|
|
2464
|
+
var P = E(d || []);
|
|
2465
|
+
return P || [];
|
|
2466
2466
|
}, O = {
|
|
2467
|
-
add: function(
|
|
2467
|
+
add: function(P, M) {
|
|
2468
2468
|
var R = C();
|
|
2469
|
-
|
|
2469
|
+
M >= 0 && M <= R.length ? (u.keys = [].concat(Q(u.keys.slice(0, M)), [u.id], Q(u.keys.slice(M))), y([].concat(Q(R.slice(0, M)), [P], Q(R.slice(M))))) : (process.env.NODE_ENV !== "production" && (M < 0 || M > R.length) && $e(!1, "The second parameter of the add function should be a valid positive number."), u.keys = [].concat(Q(u.keys), [u.id]), y([].concat(Q(R), [P]))), u.id += 1;
|
|
2470
2470
|
},
|
|
2471
|
-
remove: function(
|
|
2472
|
-
var
|
|
2471
|
+
remove: function(P) {
|
|
2472
|
+
var M = C(), R = new Set(Array.isArray(P) ? P : [P]);
|
|
2473
2473
|
R.size <= 0 || (u.keys = u.keys.filter(function(D, V) {
|
|
2474
2474
|
return !R.has(V);
|
|
2475
|
-
}), y(
|
|
2475
|
+
}), y(M.filter(function(D, V) {
|
|
2476
2476
|
return !R.has(V);
|
|
2477
2477
|
})));
|
|
2478
2478
|
},
|
|
2479
|
-
move: function(
|
|
2480
|
-
if (
|
|
2479
|
+
move: function(P, M) {
|
|
2480
|
+
if (P !== M) {
|
|
2481
2481
|
var R = C();
|
|
2482
|
-
|
|
2482
|
+
P < 0 || P >= R.length || M < 0 || M >= R.length || (u.keys = fi(u.keys, P, M), y(fi(R, P, M)));
|
|
2483
2483
|
}
|
|
2484
2484
|
}
|
|
2485
|
-
}, _ =
|
|
2486
|
-
return Array.isArray(_) || (_ = [], process.env.NODE_ENV !== "production" && $e(!1, "Current value of '".concat(d.join(" > "), "' is not an array type."))), n(_.map(function(F,
|
|
2487
|
-
var
|
|
2488
|
-
return
|
|
2489
|
-
name:
|
|
2490
|
-
key:
|
|
2485
|
+
}, _ = v || [];
|
|
2486
|
+
return Array.isArray(_) || (_ = [], process.env.NODE_ENV !== "production" && $e(!1, "Current value of '".concat(d.join(" > "), "' is not an array type."))), n(_.map(function(F, P) {
|
|
2487
|
+
var M = u.keys[P];
|
|
2488
|
+
return M === void 0 && (u.keys[P] = u.id, M = u.keys[P], u.id += 1), {
|
|
2489
|
+
name: P,
|
|
2490
|
+
key: M,
|
|
2491
2491
|
isListField: !0
|
|
2492
2492
|
};
|
|
2493
|
-
}), O,
|
|
2493
|
+
}), O, f);
|
|
2494
2494
|
})));
|
|
2495
2495
|
}
|
|
2496
2496
|
function Ou(e) {
|
|
@@ -2544,8 +2544,8 @@ var jt = /* @__PURE__ */ (function() {
|
|
|
2544
2544
|
var a = X(n, 2), i = a[0], o = a[1], s = i.split(wo);
|
|
2545
2545
|
return r({
|
|
2546
2546
|
key: s.map(function(c) {
|
|
2547
|
-
var l = c.match(/^([^:]*):(.*)$/), u = X(l, 3), d = u[1],
|
|
2548
|
-
return d === "number" ? Number(
|
|
2547
|
+
var l = c.match(/^([^:]*):(.*)$/), u = X(l, 3), d = u[1], h = u[2];
|
|
2548
|
+
return d === "number" ? Number(h) : h;
|
|
2549
2549
|
}),
|
|
2550
2550
|
value: o
|
|
2551
2551
|
});
|
|
@@ -2662,9 +2662,9 @@ var jt = /* @__PURE__ */ (function() {
|
|
|
2662
2662
|
return r.getFieldEntities(!0);
|
|
2663
2663
|
var a = r.getFieldsMap(!0);
|
|
2664
2664
|
return n.map(function(i) {
|
|
2665
|
-
var o =
|
|
2665
|
+
var o = Pe(i);
|
|
2666
2666
|
return a.get(o) || {
|
|
2667
|
-
INVALIDATE_NAME_PATH:
|
|
2667
|
+
INVALIDATE_NAME_PATH: Pe(i)
|
|
2668
2668
|
};
|
|
2669
2669
|
});
|
|
2670
2670
|
}), x(this, "getFieldsValue", function(n, a) {
|
|
@@ -2674,23 +2674,23 @@ var jt = /* @__PURE__ */ (function() {
|
|
|
2674
2674
|
return r.store;
|
|
2675
2675
|
var c = r.getFieldEntitiesForNamePathList(Array.isArray(i) ? i : null), l = [];
|
|
2676
2676
|
return c.forEach(function(u) {
|
|
2677
|
-
var d,
|
|
2677
|
+
var d, h, p = "INVALIDATE_NAME_PATH" in u ? u.INVALIDATE_NAME_PATH : u.getNamePath();
|
|
2678
2678
|
if (s) {
|
|
2679
|
-
var
|
|
2680
|
-
if ((
|
|
2679
|
+
var g, m;
|
|
2680
|
+
if ((g = (m = u).isList) !== null && g !== void 0 && g.call(m))
|
|
2681
2681
|
return;
|
|
2682
|
-
} else if (!i && (d = (
|
|
2682
|
+
} else if (!i && (d = (h = u).isListField) !== null && d !== void 0 && d.call(h))
|
|
2683
2683
|
return;
|
|
2684
2684
|
if (!o)
|
|
2685
2685
|
l.push(p);
|
|
2686
2686
|
else {
|
|
2687
|
-
var
|
|
2688
|
-
o(
|
|
2687
|
+
var f = "getMeta" in u ? u.getMeta() : null;
|
|
2688
|
+
o(f) && l.push(p);
|
|
2689
2689
|
}
|
|
2690
|
-
}), di(r.store, l.map(
|
|
2690
|
+
}), di(r.store, l.map(Pe));
|
|
2691
2691
|
}), x(this, "getFieldValue", function(n) {
|
|
2692
2692
|
r.warningUnhooked();
|
|
2693
|
-
var a =
|
|
2693
|
+
var a = Pe(n);
|
|
2694
2694
|
return mt(r.store, a);
|
|
2695
2695
|
}), x(this, "getFieldsError", function(n) {
|
|
2696
2696
|
r.warningUnhooked();
|
|
@@ -2701,52 +2701,52 @@ var jt = /* @__PURE__ */ (function() {
|
|
|
2701
2701
|
errors: i.getErrors(),
|
|
2702
2702
|
warnings: i.getWarnings()
|
|
2703
2703
|
} : {
|
|
2704
|
-
name:
|
|
2704
|
+
name: Pe(n[o]),
|
|
2705
2705
|
errors: [],
|
|
2706
2706
|
warnings: []
|
|
2707
2707
|
};
|
|
2708
2708
|
});
|
|
2709
2709
|
}), x(this, "getFieldError", function(n) {
|
|
2710
2710
|
r.warningUnhooked();
|
|
2711
|
-
var a =
|
|
2711
|
+
var a = Pe(n), i = r.getFieldsError([a])[0];
|
|
2712
2712
|
return i.errors;
|
|
2713
2713
|
}), x(this, "getFieldWarning", function(n) {
|
|
2714
2714
|
r.warningUnhooked();
|
|
2715
|
-
var a =
|
|
2715
|
+
var a = Pe(n), i = r.getFieldsError([a])[0];
|
|
2716
2716
|
return i.warnings;
|
|
2717
2717
|
}), x(this, "isFieldsTouched", function() {
|
|
2718
2718
|
r.warningUnhooked();
|
|
2719
2719
|
for (var n = arguments.length, a = new Array(n), i = 0; i < n; i++)
|
|
2720
2720
|
a[i] = arguments[i];
|
|
2721
2721
|
var o = a[0], s = a[1], c, l = !1;
|
|
2722
|
-
a.length === 0 ? c = null : a.length === 1 ? Array.isArray(o) ? (c = o.map(
|
|
2723
|
-
var u = r.getFieldEntities(!0), d = function(
|
|
2724
|
-
return
|
|
2722
|
+
a.length === 0 ? c = null : a.length === 1 ? Array.isArray(o) ? (c = o.map(Pe), l = !1) : (c = null, l = o) : (c = o.map(Pe), l = s);
|
|
2723
|
+
var u = r.getFieldEntities(!0), d = function(f) {
|
|
2724
|
+
return f.isFieldTouched();
|
|
2725
2725
|
};
|
|
2726
2726
|
if (!c)
|
|
2727
|
-
return l ? u.every(function(
|
|
2728
|
-
return d(
|
|
2727
|
+
return l ? u.every(function(m) {
|
|
2728
|
+
return d(m) || m.isList();
|
|
2729
2729
|
}) : u.some(d);
|
|
2730
|
-
var
|
|
2731
|
-
c.forEach(function(
|
|
2732
|
-
|
|
2733
|
-
}), u.forEach(function(
|
|
2734
|
-
var
|
|
2730
|
+
var h = new jt();
|
|
2731
|
+
c.forEach(function(m) {
|
|
2732
|
+
h.set(m, []);
|
|
2733
|
+
}), u.forEach(function(m) {
|
|
2734
|
+
var f = m.getNamePath();
|
|
2735
2735
|
c.forEach(function(S) {
|
|
2736
|
-
S.every(function(
|
|
2737
|
-
return
|
|
2738
|
-
}) &&
|
|
2739
|
-
return [].concat(Q(
|
|
2736
|
+
S.every(function(v, y) {
|
|
2737
|
+
return f[y] === v;
|
|
2738
|
+
}) && h.update(S, function(v) {
|
|
2739
|
+
return [].concat(Q(v), [m]);
|
|
2740
2740
|
});
|
|
2741
2741
|
});
|
|
2742
2742
|
});
|
|
2743
|
-
var p = function(
|
|
2744
|
-
return
|
|
2745
|
-
},
|
|
2746
|
-
var
|
|
2747
|
-
return
|
|
2743
|
+
var p = function(f) {
|
|
2744
|
+
return f.some(d);
|
|
2745
|
+
}, g = h.map(function(m) {
|
|
2746
|
+
var f = m.value;
|
|
2747
|
+
return f;
|
|
2748
2748
|
});
|
|
2749
|
-
return l ?
|
|
2749
|
+
return l ? g.every(p) : g.some(p);
|
|
2750
2750
|
}), x(this, "isFieldTouched", function(n) {
|
|
2751
2751
|
return r.warningUnhooked(), r.isFieldsTouched([n]);
|
|
2752
2752
|
}), x(this, "isFieldsValidating", function(n) {
|
|
@@ -2756,7 +2756,7 @@ var jt = /* @__PURE__ */ (function() {
|
|
|
2756
2756
|
return a.some(function(o) {
|
|
2757
2757
|
return o.isFieldValidating();
|
|
2758
2758
|
});
|
|
2759
|
-
var i = n.map(
|
|
2759
|
+
var i = n.map(Pe);
|
|
2760
2760
|
return a.some(function(o) {
|
|
2761
2761
|
var s = o.getNamePath();
|
|
2762
2762
|
return Ht(i, s) && o.isFieldValidating();
|
|
@@ -2779,16 +2779,16 @@ var jt = /* @__PURE__ */ (function() {
|
|
|
2779
2779
|
l.forEach(function(u) {
|
|
2780
2780
|
var d = u.props.initialValue;
|
|
2781
2781
|
if (d !== void 0) {
|
|
2782
|
-
var
|
|
2782
|
+
var h = u.getNamePath(), p = r.getInitialValue(h);
|
|
2783
2783
|
if (p !== void 0)
|
|
2784
|
-
$e(!1, "Form already set 'initialValues' with path '".concat(
|
|
2784
|
+
$e(!1, "Form already set 'initialValues' with path '".concat(h.join("."), "'. Field can not overwrite it."));
|
|
2785
2785
|
else {
|
|
2786
|
-
var
|
|
2787
|
-
if (
|
|
2788
|
-
$e(!1, "Multiple Field with path '".concat(
|
|
2789
|
-
else if (
|
|
2790
|
-
var
|
|
2791
|
-
!
|
|
2786
|
+
var g = a.get(h);
|
|
2787
|
+
if (g && g.size > 1)
|
|
2788
|
+
$e(!1, "Multiple Field with path '".concat(h.join("."), "' set 'initialValue'. Can not decide which one to pick."));
|
|
2789
|
+
else if (g) {
|
|
2790
|
+
var m = r.getFieldValue(h), f = u.isListField();
|
|
2791
|
+
!f && (!n.skipExist || m === void 0) && r.updateStore(at(r.store, h, Q(g)[0].value));
|
|
2792
2792
|
}
|
|
2793
2793
|
}
|
|
2794
2794
|
}
|
|
@@ -2812,7 +2812,7 @@ var jt = /* @__PURE__ */ (function() {
|
|
|
2812
2812
|
}), r.notifyWatch();
|
|
2813
2813
|
return;
|
|
2814
2814
|
}
|
|
2815
|
-
var i = n.map(
|
|
2815
|
+
var i = n.map(Pe);
|
|
2816
2816
|
i.forEach(function(o) {
|
|
2817
2817
|
var s = r.getInitialValue(o);
|
|
2818
2818
|
r.updateStore(at(r.store, o, s));
|
|
@@ -2825,7 +2825,7 @@ var jt = /* @__PURE__ */ (function() {
|
|
|
2825
2825
|
r.warningUnhooked();
|
|
2826
2826
|
var a = r.store, i = [];
|
|
2827
2827
|
n.forEach(function(o) {
|
|
2828
|
-
var s = o.name, c = pt(o, Tu), l =
|
|
2828
|
+
var s = o.name, c = pt(o, Tu), l = Pe(s);
|
|
2829
2829
|
i.push(l), "value" in c && r.updateStore(at(r.store, l, c.value)), r.notifyObservers(a, [l], {
|
|
2830
2830
|
type: "setField",
|
|
2831
2831
|
data: o
|
|
@@ -2917,7 +2917,7 @@ var jt = /* @__PURE__ */ (function() {
|
|
|
2917
2917
|
relatedFields: [a].concat(Q(i))
|
|
2918
2918
|
}), i;
|
|
2919
2919
|
}), x(this, "updateValue", function(n, a) {
|
|
2920
|
-
var i =
|
|
2920
|
+
var i = Pe(n), o = r.store;
|
|
2921
2921
|
r.updateStore(at(r.store, i, a)), r.notifyObservers(o, [i], {
|
|
2922
2922
|
type: "valueUpdate",
|
|
2923
2923
|
source: "internal"
|
|
@@ -2951,10 +2951,10 @@ var jt = /* @__PURE__ */ (function() {
|
|
|
2951
2951
|
r.getFieldEntities().forEach(function(c) {
|
|
2952
2952
|
var l = c.props.dependencies;
|
|
2953
2953
|
(l || []).forEach(function(u) {
|
|
2954
|
-
var d =
|
|
2954
|
+
var d = Pe(u);
|
|
2955
2955
|
o.update(d, function() {
|
|
2956
|
-
var
|
|
2957
|
-
return
|
|
2956
|
+
var h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : /* @__PURE__ */ new Set();
|
|
2957
|
+
return h.add(c), h;
|
|
2958
2958
|
});
|
|
2959
2959
|
});
|
|
2960
2960
|
});
|
|
@@ -2963,8 +2963,8 @@ var jt = /* @__PURE__ */ (function() {
|
|
|
2963
2963
|
u.forEach(function(d) {
|
|
2964
2964
|
if (!a.has(d)) {
|
|
2965
2965
|
a.add(d);
|
|
2966
|
-
var
|
|
2967
|
-
d.isFieldDirty() &&
|
|
2966
|
+
var h = d.getNamePath();
|
|
2967
|
+
d.isFieldDirty() && h.length && (i.push(h), c(h));
|
|
2968
2968
|
}
|
|
2969
2969
|
});
|
|
2970
2970
|
};
|
|
@@ -2992,12 +2992,12 @@ var jt = /* @__PURE__ */ (function() {
|
|
|
2992
2992
|
r.warningUnhooked();
|
|
2993
2993
|
var i, o;
|
|
2994
2994
|
Array.isArray(n) || typeof n == "string" || typeof a == "string" ? (i = n, o = a) : o = n;
|
|
2995
|
-
var s = !!i, c = s ? i.map(
|
|
2996
|
-
r.getFieldEntities(!0).forEach(function(
|
|
2997
|
-
if (s || c.push(
|
|
2998
|
-
var y =
|
|
2995
|
+
var s = !!i, c = s ? i.map(Pe) : [], l = [], u = String(Date.now()), d = /* @__PURE__ */ new Set(), h = o || {}, p = h.recursive, g = h.dirty;
|
|
2996
|
+
r.getFieldEntities(!0).forEach(function(v) {
|
|
2997
|
+
if (s || c.push(v.getNamePath()), !(!v.props.rules || !v.props.rules.length) && !(g && !v.isFieldDirty())) {
|
|
2998
|
+
var y = v.getNamePath();
|
|
2999
2999
|
if (d.add(y.join(u)), !s || Ht(c, y, p)) {
|
|
3000
|
-
var E =
|
|
3000
|
+
var E = v.validateRules(j({
|
|
3001
3001
|
validateMessages: j(j({}, _o), r.validateMessages)
|
|
3002
3002
|
}, o));
|
|
3003
3003
|
l.push(E.then(function() {
|
|
@@ -3008,9 +3008,9 @@ var jt = /* @__PURE__ */ (function() {
|
|
|
3008
3008
|
};
|
|
3009
3009
|
}).catch(function(C) {
|
|
3010
3010
|
var O, _ = [], F = [];
|
|
3011
|
-
return (O = C.forEach) === null || O === void 0 || O.call(C, function(
|
|
3012
|
-
var
|
|
3013
|
-
|
|
3011
|
+
return (O = C.forEach) === null || O === void 0 || O.call(C, function(P) {
|
|
3012
|
+
var M = P.rule.warningOnly, R = P.errors;
|
|
3013
|
+
M ? F.push.apply(F, Q(R)) : _.push.apply(_, Q(R));
|
|
3014
3014
|
}), _.length ? Promise.reject({
|
|
3015
3015
|
name: y,
|
|
3016
3016
|
errors: _,
|
|
@@ -3024,37 +3024,37 @@ var jt = /* @__PURE__ */ (function() {
|
|
|
3024
3024
|
}
|
|
3025
3025
|
}
|
|
3026
3026
|
});
|
|
3027
|
-
var
|
|
3028
|
-
r.lastValidatePromise =
|
|
3029
|
-
return
|
|
3030
|
-
}).then(function(
|
|
3031
|
-
var y =
|
|
3027
|
+
var m = Ou(l);
|
|
3028
|
+
r.lastValidatePromise = m, m.catch(function(v) {
|
|
3029
|
+
return v;
|
|
3030
|
+
}).then(function(v) {
|
|
3031
|
+
var y = v.map(function(E) {
|
|
3032
3032
|
var C = E.name;
|
|
3033
3033
|
return C;
|
|
3034
3034
|
});
|
|
3035
3035
|
r.notifyObservers(r.store, y, {
|
|
3036
3036
|
type: "validateFinish"
|
|
3037
|
-
}), r.triggerOnFieldsChange(y,
|
|
3037
|
+
}), r.triggerOnFieldsChange(y, v);
|
|
3038
3038
|
});
|
|
3039
|
-
var
|
|
3040
|
-
return r.lastValidatePromise ===
|
|
3041
|
-
}).catch(function(
|
|
3042
|
-
var y =
|
|
3039
|
+
var f = m.then(function() {
|
|
3040
|
+
return r.lastValidatePromise === m ? Promise.resolve(r.getFieldsValue(c)) : Promise.reject([]);
|
|
3041
|
+
}).catch(function(v) {
|
|
3042
|
+
var y = v.filter(function(E) {
|
|
3043
3043
|
return E && E.errors.length;
|
|
3044
3044
|
});
|
|
3045
3045
|
return Promise.reject({
|
|
3046
3046
|
values: r.getFieldsValue(c),
|
|
3047
3047
|
errorFields: y,
|
|
3048
|
-
outOfDate: r.lastValidatePromise !==
|
|
3048
|
+
outOfDate: r.lastValidatePromise !== m
|
|
3049
3049
|
});
|
|
3050
3050
|
});
|
|
3051
|
-
|
|
3052
|
-
return
|
|
3051
|
+
f.catch(function(v) {
|
|
3052
|
+
return v;
|
|
3053
3053
|
});
|
|
3054
|
-
var S = c.filter(function(
|
|
3055
|
-
return d.has(
|
|
3054
|
+
var S = c.filter(function(v) {
|
|
3055
|
+
return d.has(v.join(u));
|
|
3056
3056
|
});
|
|
3057
|
-
return r.triggerOnFieldsChange(S),
|
|
3057
|
+
return r.triggerOnFieldsChange(S), f;
|
|
3058
3058
|
}), x(this, "submit", function() {
|
|
3059
3059
|
r.warningUnhooked(), r.validateFields().then(function(n) {
|
|
3060
3060
|
var a = r.callbacks.onFinish;
|
|
@@ -3092,7 +3092,7 @@ var Un = /* @__PURE__ */ T.createContext({
|
|
|
3092
3092
|
},
|
|
3093
3093
|
unregisterForm: function() {
|
|
3094
3094
|
}
|
|
3095
|
-
}),
|
|
3095
|
+
}), Mu = function(t) {
|
|
3096
3096
|
var r = t.validateMessages, n = t.onFormChange, a = t.onFormFinish, i = t.children, o = T.useContext(Un), s = T.useRef({});
|
|
3097
3097
|
return /* @__PURE__ */ T.createElement(Un.Provider, {
|
|
3098
3098
|
value: j(j({}, o), {}, {
|
|
@@ -3121,8 +3121,8 @@ var Un = /* @__PURE__ */ T.createContext({
|
|
|
3121
3121
|
}
|
|
3122
3122
|
})
|
|
3123
3123
|
}, i);
|
|
3124
|
-
},
|
|
3125
|
-
var n = t.name, a = t.initialValues, i = t.fields, o = t.form, s = t.preserve, c = t.children, l = t.component, u = l === void 0 ? "form" : l, d = t.validateMessages,
|
|
3124
|
+
}, Pu = ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed", "clearOnDestroy"], Ru = function(t, r) {
|
|
3125
|
+
var n = t.name, a = t.initialValues, i = t.fields, o = t.form, s = t.preserve, c = t.children, l = t.component, u = l === void 0 ? "form" : l, d = t.validateMessages, h = t.validateTrigger, p = h === void 0 ? "onChange" : h, g = t.onValuesChange, m = t.onFieldsChange, f = t.onFinish, S = t.onFinishFailed, v = t.clearOnDestroy, y = pt(t, Pu), E = T.useRef(null), C = T.useContext(Un), O = $o(o), _ = X(O, 1), F = _[0], P = F.getInternalHooks(Tt), M = P.useSubscribe, R = P.setInitialValues, D = P.setCallbacks, V = P.setValidateMessages, b = P.setPreserve, w = P.destroyForm;
|
|
3126
3126
|
T.useImperativeHandle(r, function() {
|
|
3127
3127
|
return j(j({}, F), {}, {
|
|
3128
3128
|
nativeElement: E.current
|
|
@@ -3132,16 +3132,16 @@ var Un = /* @__PURE__ */ T.createContext({
|
|
|
3132
3132
|
C.unregisterForm(n);
|
|
3133
3133
|
};
|
|
3134
3134
|
}, [C, F, n]), V(j(j({}, C.validateMessages), d)), D({
|
|
3135
|
-
onValuesChange:
|
|
3135
|
+
onValuesChange: g,
|
|
3136
3136
|
onFieldsChange: function(q) {
|
|
3137
|
-
if (C.triggerFormChange(n, q),
|
|
3137
|
+
if (C.triggerFormChange(n, q), m) {
|
|
3138
3138
|
for (var ee = arguments.length, le = new Array(ee > 1 ? ee - 1 : 0), ie = 1; ie < ee; ie++)
|
|
3139
3139
|
le[ie - 1] = arguments[ie];
|
|
3140
|
-
|
|
3140
|
+
m.apply(void 0, [q].concat(le));
|
|
3141
3141
|
}
|
|
3142
3142
|
},
|
|
3143
3143
|
onFinish: function(q) {
|
|
3144
|
-
C.triggerFormFinish(n, q),
|
|
3144
|
+
C.triggerFormFinish(n, q), f && f(q);
|
|
3145
3145
|
},
|
|
3146
3146
|
onFinishFailed: S
|
|
3147
3147
|
}), b(s);
|
|
@@ -3149,7 +3149,7 @@ var Un = /* @__PURE__ */ T.createContext({
|
|
|
3149
3149
|
R(a, !$.current), $.current || ($.current = !0), T.useEffect(
|
|
3150
3150
|
function() {
|
|
3151
3151
|
return function() {
|
|
3152
|
-
return w(
|
|
3152
|
+
return w(v);
|
|
3153
3153
|
};
|
|
3154
3154
|
},
|
|
3155
3155
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -3161,7 +3161,7 @@ var Un = /* @__PURE__ */ T.createContext({
|
|
|
3161
3161
|
A = c(L, F);
|
|
3162
3162
|
} else
|
|
3163
3163
|
A = c;
|
|
3164
|
-
|
|
3164
|
+
M(!I);
|
|
3165
3165
|
var k = T.useRef();
|
|
3166
3166
|
T.useEffect(function() {
|
|
3167
3167
|
xu(k.current || [], i || []) || F.setFields(i || []), k.current = i;
|
|
@@ -3203,33 +3203,33 @@ function Iu() {
|
|
|
3203
3203
|
t[r] = arguments[r];
|
|
3204
3204
|
var n = t[0], a = t[1], i = a === void 0 ? {} : a, o = Dl(i) ? {
|
|
3205
3205
|
form: i
|
|
3206
|
-
} : i, s = o.form, c = Z(), l = X(c, 2), u = l[0], d = l[1],
|
|
3206
|
+
} : i, s = o.form, c = Z(), l = X(c, 2), u = l[0], d = l[1], h = Ft(function() {
|
|
3207
3207
|
return hi(u);
|
|
3208
|
-
}, [u]), p = me(
|
|
3209
|
-
p.current =
|
|
3210
|
-
var
|
|
3211
|
-
process.env.NODE_ENV !== "production" && $e(t.length === 2 ? s ?
|
|
3212
|
-
var S =
|
|
3213
|
-
return
|
|
3208
|
+
}, [u]), p = me(h);
|
|
3209
|
+
p.current = h;
|
|
3210
|
+
var g = vt(Wt), m = s || g, f = m && m._init;
|
|
3211
|
+
process.env.NODE_ENV !== "production" && $e(t.length === 2 ? s ? f : !0 : f, "useWatch requires a form instance since it can not auto detect from context.");
|
|
3212
|
+
var S = Pe(n), v = me(S);
|
|
3213
|
+
return v.current = S, Au(S), fe(
|
|
3214
3214
|
function() {
|
|
3215
|
-
if (
|
|
3216
|
-
var y =
|
|
3215
|
+
if (f) {
|
|
3216
|
+
var y = m.getFieldsValue, E = m.getInternalHooks, C = E(Tt), O = C.registerWatch, _ = function(R, D) {
|
|
3217
3217
|
var V = o.preserve ? D : R;
|
|
3218
|
-
return typeof n == "function" ? n(V) : mt(V,
|
|
3219
|
-
}, F = O(function(
|
|
3220
|
-
var D = _(
|
|
3218
|
+
return typeof n == "function" ? n(V) : mt(V, v.current);
|
|
3219
|
+
}, F = O(function(M, R) {
|
|
3220
|
+
var D = _(M, R), V = hi(D);
|
|
3221
3221
|
p.current !== V && (p.current = V, d(D));
|
|
3222
|
-
}),
|
|
3223
|
-
return u !==
|
|
3222
|
+
}), P = _(y(), y(!0));
|
|
3223
|
+
return u !== P && d(P), F;
|
|
3224
3224
|
}
|
|
3225
3225
|
},
|
|
3226
3226
|
// We do not need re-register since namePath content is the same
|
|
3227
3227
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3228
|
-
[
|
|
3228
|
+
[f]
|
|
3229
3229
|
), u;
|
|
3230
3230
|
}
|
|
3231
3231
|
var Nu = /* @__PURE__ */ T.forwardRef(Ru), _r = Nu;
|
|
3232
|
-
_r.FormProvider =
|
|
3232
|
+
_r.FormProvider = Mu;
|
|
3233
3233
|
_r.Field = Eo;
|
|
3234
3234
|
_r.List = $u;
|
|
3235
3235
|
_r.useForm = $o;
|
|
@@ -3308,10 +3308,10 @@ function To(e) {
|
|
|
3308
3308
|
var l = nn(t), u = l.firstChild;
|
|
3309
3309
|
if (n) {
|
|
3310
3310
|
if (s) {
|
|
3311
|
-
var d = (t.styles || Ta(l)).filter(function(
|
|
3312
|
-
if (!["prepend", "prependQueue"].includes(
|
|
3311
|
+
var d = (t.styles || Ta(l)).filter(function(h) {
|
|
3312
|
+
if (!["prepend", "prependQueue"].includes(h.getAttribute(gi)))
|
|
3313
3313
|
return !1;
|
|
3314
|
-
var p = Number(
|
|
3314
|
+
var p = Number(h.getAttribute(mi) || 0);
|
|
3315
3315
|
return i >= p;
|
|
3316
3316
|
});
|
|
3317
3317
|
if (d.length)
|
|
@@ -3328,7 +3328,7 @@ function Fo(e) {
|
|
|
3328
3328
|
return n.getAttribute(Oo(t)) === e;
|
|
3329
3329
|
});
|
|
3330
3330
|
}
|
|
3331
|
-
function
|
|
3331
|
+
function Mo(e) {
|
|
3332
3332
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = Fo(e, t);
|
|
3333
3333
|
if (r) {
|
|
3334
3334
|
var n = nn(t);
|
|
@@ -3342,7 +3342,7 @@ function Hu(e, t) {
|
|
|
3342
3342
|
qn.set(e, a), e.removeChild(n);
|
|
3343
3343
|
}
|
|
3344
3344
|
}
|
|
3345
|
-
function
|
|
3345
|
+
function Mt(e, t) {
|
|
3346
3346
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = nn(r), a = Ta(n), i = j(j({}, r), {}, {
|
|
3347
3347
|
styles: a
|
|
3348
3348
|
});
|
|
@@ -3468,8 +3468,8 @@ var Fa = /* @__PURE__ */ (function() {
|
|
|
3468
3468
|
if (!this.has(r)) {
|
|
3469
3469
|
if (this.size() + 1 > e.MAX_CACHE_SIZE + e.MAX_CACHE_OFFSET) {
|
|
3470
3470
|
var i = this.keys.reduce(function(l, u) {
|
|
3471
|
-
var d = X(l, 2),
|
|
3472
|
-
return a.internalGet(u)[1] <
|
|
3471
|
+
var d = X(l, 2), h = d[1];
|
|
3472
|
+
return a.internalGet(u)[1] < h ? [u, a.internalGet(u)[1]] : l;
|
|
3473
3473
|
}, [this.keys[0], this.cacheCallTimes]), o = X(i, 1), s = o[0];
|
|
3474
3474
|
this.delete(s);
|
|
3475
3475
|
}
|
|
@@ -3514,7 +3514,7 @@ var Fa = /* @__PURE__ */ (function() {
|
|
|
3514
3514
|
})();
|
|
3515
3515
|
x(Fa, "MAX_CACHE_SIZE", 20);
|
|
3516
3516
|
x(Fa, "MAX_CACHE_OFFSET", 5);
|
|
3517
|
-
var vi = 0,
|
|
3517
|
+
var vi = 0, Po = /* @__PURE__ */ (function() {
|
|
3518
3518
|
function e(t) {
|
|
3519
3519
|
qe(this, e), x(this, "derivatives", void 0), x(this, "id", void 0), this.derivatives = Array.isArray(t) ? t : [t], this.id = vi, t.length === 0 && $a(t.length > 0, "[Ant Design CSS-in-JS] Theme should have at least one derivative function."), vi += 1;
|
|
3520
3520
|
}
|
|
@@ -3529,7 +3529,7 @@ var vi = 0, Mo = /* @__PURE__ */ (function() {
|
|
|
3529
3529
|
})(), Cn = new Fa();
|
|
3530
3530
|
function Kn(e) {
|
|
3531
3531
|
var t = Array.isArray(e) ? e : [e];
|
|
3532
|
-
return Cn.has(t) || Cn.set(t, new
|
|
3532
|
+
return Cn.has(t) || Cn.set(t, new Po(t)), Cn.get(t);
|
|
3533
3533
|
}
|
|
3534
3534
|
var Gu = /* @__PURE__ */ new WeakMap(), xn = {};
|
|
3535
3535
|
function Ku(e, t) {
|
|
@@ -3544,7 +3544,7 @@ function lr(e) {
|
|
|
3544
3544
|
var t = pi.get(e) || "";
|
|
3545
3545
|
return t || (Object.keys(e).forEach(function(r) {
|
|
3546
3546
|
var n = e[r];
|
|
3547
|
-
t += r, n instanceof
|
|
3547
|
+
t += r, n instanceof Po ? t += n.id : n && J(n) === "object" ? t += lr(n) : t += n;
|
|
3548
3548
|
}), t = mr(t), pi.set(e, t)), t;
|
|
3549
3549
|
}
|
|
3550
3550
|
function yi(e, t) {
|
|
@@ -3581,8 +3581,8 @@ var Hr = function(t) {
|
|
|
3581
3581
|
if (n != null && (s = n.preserve) !== null && s !== void 0 && s[u])
|
|
3582
3582
|
i[u] = d;
|
|
3583
3583
|
else if ((typeof d == "string" || typeof d == "number") && !(n != null && (c = n.ignore) !== null && c !== void 0 && c[u])) {
|
|
3584
|
-
var
|
|
3585
|
-
a[p] = typeof d == "number" && !(n != null && (
|
|
3584
|
+
var h, p = Hr(u, n?.prefix);
|
|
3585
|
+
a[p] = typeof d == "number" && !(n != null && (h = n.unitless) !== null && h !== void 0 && h[u]) ? "".concat(d, "px") : String(d), i[u] = "var(".concat(p, ")");
|
|
3586
3586
|
}
|
|
3587
3587
|
}), [i, Xu(a, r, {
|
|
3588
3588
|
scope: n?.scope
|
|
@@ -3625,23 +3625,23 @@ function id() {
|
|
|
3625
3625
|
}
|
|
3626
3626
|
const od = process.env.NODE_ENV === "production" ? ad : id;
|
|
3627
3627
|
if (process.env.NODE_ENV !== "production" && typeof module < "u" && module && module.hot && typeof window < "u") {
|
|
3628
|
-
var
|
|
3629
|
-
if (
|
|
3630
|
-
var sd =
|
|
3631
|
-
|
|
3628
|
+
var Pr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : null;
|
|
3629
|
+
if (Pr && typeof Pr.webpackHotUpdate == "function") {
|
|
3630
|
+
var sd = Pr.webpackHotUpdate;
|
|
3631
|
+
Pr.webpackHotUpdate = function() {
|
|
3632
3632
|
return Yn = !0, setTimeout(function() {
|
|
3633
3633
|
Yn = !1;
|
|
3634
3634
|
}, 0), sd.apply(void 0, arguments);
|
|
3635
3635
|
};
|
|
3636
3636
|
}
|
|
3637
3637
|
}
|
|
3638
|
-
function
|
|
3639
|
-
var i = T.useContext(Cr), o = i.cache, s = [e].concat(Q(t)), c = Gn(s), l = nd([c]), u = od(), d = function(
|
|
3640
|
-
o.opUpdate(c, function(
|
|
3641
|
-
var S =
|
|
3638
|
+
function Ma(e, t, r, n, a) {
|
|
3639
|
+
var i = T.useContext(Cr), o = i.cache, s = [e].concat(Q(t)), c = Gn(s), l = nd([c]), u = od(), d = function(m) {
|
|
3640
|
+
o.opUpdate(c, function(f) {
|
|
3641
|
+
var S = f || [void 0, void 0], v = X(S, 2), y = v[0], E = y === void 0 ? 0 : y, C = v[1], O = C;
|
|
3642
3642
|
process.env.NODE_ENV !== "production" && C && u && (n?.(O, u), O = null);
|
|
3643
3643
|
var _ = O || r(), F = [E, _];
|
|
3644
|
-
return
|
|
3644
|
+
return m ? m(F) : F;
|
|
3645
3645
|
});
|
|
3646
3646
|
};
|
|
3647
3647
|
T.useMemo(
|
|
@@ -3652,20 +3652,20 @@ function Pa(e, t, r, n, a) {
|
|
|
3652
3652
|
[c]
|
|
3653
3653
|
/* eslint-enable */
|
|
3654
3654
|
);
|
|
3655
|
-
var
|
|
3656
|
-
process.env.NODE_ENV !== "production" && !
|
|
3657
|
-
var p =
|
|
3655
|
+
var h = o.opGet(c);
|
|
3656
|
+
process.env.NODE_ENV !== "production" && !h && (d(), h = o.opGet(c));
|
|
3657
|
+
var p = h[1];
|
|
3658
3658
|
return Zu(function() {
|
|
3659
3659
|
a?.(p);
|
|
3660
|
-
}, function(
|
|
3661
|
-
return d(function(
|
|
3662
|
-
var
|
|
3663
|
-
return
|
|
3660
|
+
}, function(g) {
|
|
3661
|
+
return d(function(m) {
|
|
3662
|
+
var f = X(m, 2), S = f[0], v = f[1];
|
|
3663
|
+
return g && S === 0 && a?.(p), [S + 1, v];
|
|
3664
3664
|
}), function() {
|
|
3665
|
-
o.opUpdate(c, function(
|
|
3666
|
-
var
|
|
3665
|
+
o.opUpdate(c, function(m) {
|
|
3666
|
+
var f = m || [], S = X(f, 2), v = S[0], y = v === void 0 ? 0 : v, E = S[1], C = y - 1;
|
|
3667
3667
|
return C === 0 ? (l(function() {
|
|
3668
|
-
(
|
|
3668
|
+
(g || !o.opGet(c)) && n?.(E, !1);
|
|
3669
3669
|
}), null) : [y - 1, E];
|
|
3670
3670
|
});
|
|
3671
3671
|
};
|
|
@@ -3701,31 +3701,31 @@ var gd = function(t, r, n, a) {
|
|
|
3701
3701
|
return a && (o = a(o)), o;
|
|
3702
3702
|
}, Ao = "token";
|
|
3703
3703
|
function md(e, t) {
|
|
3704
|
-
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = vt(Cr), a = n.cache.instanceId, i = n.container, o = r.salt, s = o === void 0 ? "" : o, c = r.override, l = c === void 0 ? cd : c, u = r.formatToken, d = r.getComputedToken,
|
|
3704
|
+
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = vt(Cr), a = n.cache.instanceId, i = n.container, o = r.salt, s = o === void 0 ? "" : o, c = r.override, l = c === void 0 ? cd : c, u = r.formatToken, d = r.getComputedToken, h = r.cssVar, p = Ku(function() {
|
|
3705
3705
|
return Object.assign.apply(Object, [{}].concat(Q(t)));
|
|
3706
|
-
}, t),
|
|
3707
|
-
var
|
|
3708
|
-
if (
|
|
3709
|
-
var O = Ro(y,
|
|
3710
|
-
prefix:
|
|
3711
|
-
ignore:
|
|
3712
|
-
unitless:
|
|
3713
|
-
preserve:
|
|
3706
|
+
}, t), g = lr(p), m = lr(l), f = h ? lr(h) : "", S = Ma(Ao, [s, e.id, g, m, f], function() {
|
|
3707
|
+
var v, y = d ? d(p, l, e) : gd(p, l, e, u), E = j({}, y), C = "";
|
|
3708
|
+
if (h) {
|
|
3709
|
+
var O = Ro(y, h.key, {
|
|
3710
|
+
prefix: h.prefix,
|
|
3711
|
+
ignore: h.ignore,
|
|
3712
|
+
unitless: h.unitless,
|
|
3713
|
+
preserve: h.preserve
|
|
3714
3714
|
}), _ = X(O, 2);
|
|
3715
3715
|
y = _[0], C = _[1];
|
|
3716
3716
|
}
|
|
3717
3717
|
var F = yi(y, s);
|
|
3718
3718
|
y._tokenKey = F, E._tokenKey = yi(E, s);
|
|
3719
|
-
var
|
|
3720
|
-
y._themeKey =
|
|
3721
|
-
var
|
|
3722
|
-
return y._hashId =
|
|
3723
|
-
}, function(
|
|
3724
|
-
hd(
|
|
3725
|
-
}, function(
|
|
3726
|
-
var y = X(
|
|
3727
|
-
if (
|
|
3728
|
-
var O =
|
|
3719
|
+
var P = (v = h?.key) !== null && v !== void 0 ? v : F;
|
|
3720
|
+
y._themeKey = P, ud(P);
|
|
3721
|
+
var M = "".concat(ld, "-").concat(mr(F));
|
|
3722
|
+
return y._hashId = M, [y, M, E, C, h?.key || ""];
|
|
3723
|
+
}, function(v) {
|
|
3724
|
+
hd(v[0]._themeKey, a);
|
|
3725
|
+
}, function(v) {
|
|
3726
|
+
var y = X(v, 4), E = y[0], C = y[3];
|
|
3727
|
+
if (h && C) {
|
|
3728
|
+
var O = Mt(C, mr("css-variables-".concat(E._themeKey)), {
|
|
3729
3729
|
mark: ot,
|
|
3730
3730
|
prepend: "queue",
|
|
3731
3731
|
attachTo: i,
|
|
@@ -3740,10 +3740,10 @@ var vd = function(t, r, n) {
|
|
|
3740
3740
|
var a = X(t, 5), i = a[2], o = a[3], s = a[4], c = n || {}, l = c.plain;
|
|
3741
3741
|
if (!o)
|
|
3742
3742
|
return null;
|
|
3743
|
-
var u = i._tokenKey, d = -999,
|
|
3743
|
+
var u = i._tokenKey, d = -999, h = {
|
|
3744
3744
|
"data-rc-order": "prependQueue",
|
|
3745
3745
|
"data-rc-priority": "".concat(d)
|
|
3746
|
-
}, p = Zr(o, s, u,
|
|
3746
|
+
}, p = Zr(o, s, u, h, l);
|
|
3747
3747
|
return [d, u, p];
|
|
3748
3748
|
}, pd = {
|
|
3749
3749
|
animationIterationCount: 1,
|
|
@@ -3792,7 +3792,7 @@ var vd = function(t, r, n) {
|
|
|
3792
3792
|
strokeMiterlimit: 1,
|
|
3793
3793
|
strokeOpacity: 1,
|
|
3794
3794
|
strokeWidth: 1
|
|
3795
|
-
}, Io = "comm", No = "rule", jo = "decl", yd = "@import", bd = "@namespace", Sd = "@keyframes", _d = "@layer", Vo = Math.abs,
|
|
3795
|
+
}, Io = "comm", No = "rule", jo = "decl", yd = "@import", bd = "@namespace", Sd = "@keyframes", _d = "@layer", Vo = Math.abs, Pa = String.fromCharCode;
|
|
3796
3796
|
function Lo(e) {
|
|
3797
3797
|
return e.trim();
|
|
3798
3798
|
}
|
|
@@ -3918,13 +3918,13 @@ function Qn(e) {
|
|
|
3918
3918
|
}
|
|
3919
3919
|
return rt;
|
|
3920
3920
|
}
|
|
3921
|
-
function
|
|
3921
|
+
function Md(e, t) {
|
|
3922
3922
|
for (; st() && e + je !== 57; )
|
|
3923
3923
|
if (e + je === 84 && Et() === 47)
|
|
3924
3924
|
break;
|
|
3925
|
-
return "/*" + on(t, rt - 1) + "*" +
|
|
3925
|
+
return "/*" + on(t, rt - 1) + "*" + Pa(e === 47 ? e : st());
|
|
3926
3926
|
}
|
|
3927
|
-
function
|
|
3927
|
+
function Pd(e) {
|
|
3928
3928
|
for (; !vr(Et()); )
|
|
3929
3929
|
st();
|
|
3930
3930
|
return on(e, rt);
|
|
@@ -3933,26 +3933,26 @@ function Rd(e) {
|
|
|
3933
3933
|
return Od(Wr("", null, null, null, [""], e = $d(e), 0, [0], e));
|
|
3934
3934
|
}
|
|
3935
3935
|
function Wr(e, t, r, n, a, i, o, s, c) {
|
|
3936
|
-
for (var l = 0, u = 0, d = o,
|
|
3937
|
-
switch (
|
|
3936
|
+
for (var l = 0, u = 0, d = o, h = 0, p = 0, g = 0, m = 1, f = 1, S = 1, v = 0, y = "", E = a, C = i, O = n, _ = y; f; )
|
|
3937
|
+
switch (g = v, v = st()) {
|
|
3938
3938
|
// (
|
|
3939
3939
|
case 40:
|
|
3940
|
-
if (
|
|
3941
|
-
Cd(_ += Br(En(
|
|
3940
|
+
if (g != 108 && Bt(_, d - 1) == 58) {
|
|
3941
|
+
Cd(_ += Br(En(v), "&", "&\f"), "&\f", Vo(l ? s[l - 1] : 0)) != -1 && (S = -1);
|
|
3942
3942
|
break;
|
|
3943
3943
|
}
|
|
3944
3944
|
// " ' [
|
|
3945
3945
|
case 34:
|
|
3946
3946
|
case 39:
|
|
3947
3947
|
case 91:
|
|
3948
|
-
_ += En(
|
|
3948
|
+
_ += En(v);
|
|
3949
3949
|
break;
|
|
3950
3950
|
// \t \n \r \s
|
|
3951
3951
|
case 9:
|
|
3952
3952
|
case 10:
|
|
3953
3953
|
case 13:
|
|
3954
3954
|
case 32:
|
|
3955
|
-
_ += Td(
|
|
3955
|
+
_ += Td(g);
|
|
3956
3956
|
break;
|
|
3957
3957
|
// \
|
|
3958
3958
|
case 92:
|
|
@@ -3963,38 +3963,38 @@ function Wr(e, t, r, n, a, i, o, s, c) {
|
|
|
3963
3963
|
switch (Et()) {
|
|
3964
3964
|
case 42:
|
|
3965
3965
|
case 47:
|
|
3966
|
-
Rr(Ad(
|
|
3966
|
+
Rr(Ad(Md(st(), zr()), t, r, c), c), (vr(g || 1) == 5 || vr(Et() || 1) == 5) && gt(_) && qt(_, -1, void 0) !== " " && (_ += " ");
|
|
3967
3967
|
break;
|
|
3968
3968
|
default:
|
|
3969
3969
|
_ += "/";
|
|
3970
3970
|
}
|
|
3971
3971
|
break;
|
|
3972
3972
|
// {
|
|
3973
|
-
case 123 *
|
|
3973
|
+
case 123 * m:
|
|
3974
3974
|
s[l++] = gt(_) * S;
|
|
3975
3975
|
// } ; \0
|
|
3976
|
-
case 125 *
|
|
3976
|
+
case 125 * m:
|
|
3977
3977
|
case 59:
|
|
3978
3978
|
case 0:
|
|
3979
|
-
switch (
|
|
3979
|
+
switch (v) {
|
|
3980
3980
|
// \0 }
|
|
3981
3981
|
case 0:
|
|
3982
3982
|
case 125:
|
|
3983
|
-
|
|
3983
|
+
f = 0;
|
|
3984
3984
|
// ;
|
|
3985
3985
|
case 59 + u:
|
|
3986
|
-
S == -1 && (_ = Br(_, /\f/g, "")), p > 0 && (gt(_) - d ||
|
|
3986
|
+
S == -1 && (_ = Br(_, /\f/g, "")), p > 0 && (gt(_) - d || m === 0 && g === 47) && Rr(p > 32 ? _i(_ + ";", n, r, d - 1, c) : _i(Br(_, " ", "") + ";", n, r, d - 2, c), c);
|
|
3987
3987
|
break;
|
|
3988
3988
|
// @ ;
|
|
3989
3989
|
case 59:
|
|
3990
3990
|
_ += ";";
|
|
3991
3991
|
// { rule/at-rule
|
|
3992
3992
|
default:
|
|
3993
|
-
if (Rr(O = Si(_, t, r, l, u, a, s, y, E = [], C = [], d, i), i),
|
|
3993
|
+
if (Rr(O = Si(_, t, r, l, u, a, s, y, E = [], C = [], d, i), i), v === 123)
|
|
3994
3994
|
if (u === 0)
|
|
3995
3995
|
Wr(_, t, O, O, E, i, d, s, C);
|
|
3996
3996
|
else {
|
|
3997
|
-
switch (
|
|
3997
|
+
switch (h) {
|
|
3998
3998
|
// c(ontainer)
|
|
3999
3999
|
case 99:
|
|
4000
4000
|
if (Bt(_, 3) === 110) break;
|
|
@@ -4011,19 +4011,19 @@ function Wr(e, t, r, n, a, i, o, s, c) {
|
|
|
4011
4011
|
u ? Wr(e, O, O, n && Rr(Si(e, O, O, 0, 0, a, s, y, a, E = [], d, C), C), a, C, d, s, n ? E : C) : Wr(_, O, O, O, [""], C, 0, s, C);
|
|
4012
4012
|
}
|
|
4013
4013
|
}
|
|
4014
|
-
l = u = p = 0,
|
|
4014
|
+
l = u = p = 0, m = S = 1, y = _ = "", d = o;
|
|
4015
4015
|
break;
|
|
4016
4016
|
// :
|
|
4017
4017
|
case 58:
|
|
4018
|
-
d = 1 + gt(_), p =
|
|
4018
|
+
d = 1 + gt(_), p = g;
|
|
4019
4019
|
default:
|
|
4020
|
-
if (
|
|
4021
|
-
if (
|
|
4022
|
-
--
|
|
4023
|
-
else if (
|
|
4020
|
+
if (m < 1) {
|
|
4021
|
+
if (v == 123)
|
|
4022
|
+
--m;
|
|
4023
|
+
else if (v == 125 && m++ == 0 && wd() == 125)
|
|
4024
4024
|
continue;
|
|
4025
4025
|
}
|
|
4026
|
-
switch (_ +=
|
|
4026
|
+
switch (_ += Pa(v), v * m) {
|
|
4027
4027
|
// &
|
|
4028
4028
|
case 38:
|
|
4029
4029
|
S = u > 0 ? 1 : (_ += "\f", -1);
|
|
@@ -4034,23 +4034,23 @@ function Wr(e, t, r, n, a, i, o, s, c) {
|
|
|
4034
4034
|
break;
|
|
4035
4035
|
// @
|
|
4036
4036
|
case 64:
|
|
4037
|
-
Et() === 45 && (_ += En(st())),
|
|
4037
|
+
Et() === 45 && (_ += En(st())), h = Et(), u = d = gt(y = _ += Pd(zr())), v++;
|
|
4038
4038
|
break;
|
|
4039
4039
|
// -
|
|
4040
4040
|
case 45:
|
|
4041
|
-
|
|
4041
|
+
g === 45 && gt(_) == 2 && (m = 0);
|
|
4042
4042
|
}
|
|
4043
4043
|
}
|
|
4044
4044
|
return i;
|
|
4045
4045
|
}
|
|
4046
4046
|
function Si(e, t, r, n, a, i, o, s, c, l, u, d) {
|
|
4047
|
-
for (var
|
|
4048
|
-
for (var
|
|
4049
|
-
(E = Lo(
|
|
4047
|
+
for (var h = a - 1, p = a === 0 ? i : [""], g = xd(p), m = 0, f = 0, S = 0; m < n; ++m)
|
|
4048
|
+
for (var v = 0, y = qt(e, h + 1, h = Vo(f = o[m])), E = e; v < g; ++v)
|
|
4049
|
+
(E = Lo(f > 0 ? p[v] + " " + y : Br(y, /&\f/g, p[v]))) && (c[S++] = E);
|
|
4050
4050
|
return Ra(e, t, r, a === 0 ? No : s, c, l, u, d);
|
|
4051
4051
|
}
|
|
4052
4052
|
function Ad(e, t, r, n) {
|
|
4053
|
-
return Ra(e, t, r, Io,
|
|
4053
|
+
return Ra(e, t, r, Io, Pa(Ed()), qt(e, 2, -2), 0, n);
|
|
4054
4054
|
}
|
|
4055
4055
|
function _i(e, t, r, n, a) {
|
|
4056
4056
|
return Ra(e, t, r, jo, qt(e, 0, n), qt(e, n + 1, -1), n, a);
|
|
@@ -4088,15 +4088,15 @@ var Nd = function(t, r, n) {
|
|
|
4088
4088
|
}
|
|
4089
4089
|
}, jd = function(t, r, n) {
|
|
4090
4090
|
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);
|
|
4091
|
-
}, Ci = "data-ant-cssinjs-cache-path", Ho = "_FILE_STYLE__",
|
|
4091
|
+
}, Ci = "data-ant-cssinjs-cache-path", Ho = "_FILE_STYLE__", Pt, Bo = !0;
|
|
4092
4092
|
function Vd() {
|
|
4093
|
-
if (!
|
|
4093
|
+
if (!Pt && (Pt = {}, St())) {
|
|
4094
4094
|
var e = document.createElement("div");
|
|
4095
4095
|
e.className = Ci, e.style.position = "fixed", e.style.visibility = "hidden", e.style.top = "-9999px", document.body.appendChild(e);
|
|
4096
4096
|
var t = getComputedStyle(e).content || "";
|
|
4097
4097
|
t = t.replace(/^"/, "").replace(/"$/, ""), t.split(";").forEach(function(a) {
|
|
4098
4098
|
var i = a.split(":"), o = X(i, 2), s = o[0], c = o[1];
|
|
4099
|
-
|
|
4099
|
+
Pt[s] = c;
|
|
4100
4100
|
});
|
|
4101
4101
|
var r = document.querySelector("style[".concat(Ci, "]"));
|
|
4102
4102
|
if (r) {
|
|
@@ -4107,16 +4107,16 @@ function Vd() {
|
|
|
4107
4107
|
}
|
|
4108
4108
|
}
|
|
4109
4109
|
function Ld(e) {
|
|
4110
|
-
return Vd(), !!
|
|
4110
|
+
return Vd(), !!Pt[e];
|
|
4111
4111
|
}
|
|
4112
4112
|
function Dd(e) {
|
|
4113
|
-
var t =
|
|
4113
|
+
var t = Pt[e], r = null;
|
|
4114
4114
|
if (t && St())
|
|
4115
4115
|
if (Bo)
|
|
4116
4116
|
r = Ho;
|
|
4117
4117
|
else {
|
|
4118
|
-
var n = document.querySelector("style[".concat(ot, '="').concat(
|
|
4119
|
-
n ? r = n.innerHTML : delete
|
|
4118
|
+
var n = document.querySelector("style[".concat(ot, '="').concat(Pt[e], '"]'));
|
|
4119
|
+
n ? r = n.innerHTML : delete Pt[e];
|
|
4120
4120
|
}
|
|
4121
4121
|
return [r, t];
|
|
4122
4122
|
}
|
|
@@ -4141,50 +4141,50 @@ var Hd = function e(t) {
|
|
|
4141
4141
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
4142
4142
|
root: !0,
|
|
4143
4143
|
parentSelectors: []
|
|
4144
|
-
}, a = n.root, i = n.injectHash, o = n.parentSelectors, s = r.hashId, c = r.layer, l = r.path, u = r.hashPriority, d = r.transformers,
|
|
4144
|
+
}, a = n.root, i = n.injectHash, o = n.parentSelectors, s = r.hashId, c = r.layer, l = r.path, u = r.hashPriority, d = r.transformers, h = d === void 0 ? [] : d, p = r.linters, g = p === void 0 ? [] : p, m = "", f = {};
|
|
4145
4145
|
function S(E) {
|
|
4146
4146
|
var C = E.getName(s);
|
|
4147
|
-
if (!
|
|
4147
|
+
if (!f[C]) {
|
|
4148
4148
|
var O = e(E.style, r, {
|
|
4149
4149
|
root: !1,
|
|
4150
4150
|
parentSelectors: o
|
|
4151
4151
|
}), _ = X(O, 1), F = _[0];
|
|
4152
|
-
|
|
4152
|
+
f[C] = "@keyframes ".concat(E.getName(s)).concat(F);
|
|
4153
4153
|
}
|
|
4154
4154
|
}
|
|
4155
|
-
function
|
|
4155
|
+
function v(E) {
|
|
4156
4156
|
var C = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
4157
4157
|
return E.forEach(function(O) {
|
|
4158
|
-
Array.isArray(O) ?
|
|
4158
|
+
Array.isArray(O) ? v(O, C) : O && C.push(O);
|
|
4159
4159
|
}), C;
|
|
4160
4160
|
}
|
|
4161
|
-
var y =
|
|
4161
|
+
var y = v(Array.isArray(t) ? t : [t]);
|
|
4162
4162
|
return y.forEach(function(E) {
|
|
4163
4163
|
var C = typeof E == "string" && !a ? {} : E;
|
|
4164
4164
|
if (typeof C == "string")
|
|
4165
|
-
|
|
4165
|
+
m += "".concat(C, `
|
|
4166
4166
|
`);
|
|
4167
4167
|
else if (C._keyframe)
|
|
4168
4168
|
S(C);
|
|
4169
4169
|
else {
|
|
4170
|
-
var O =
|
|
4171
|
-
var
|
|
4172
|
-
return (F == null || (
|
|
4170
|
+
var O = h.reduce(function(_, F) {
|
|
4171
|
+
var P;
|
|
4172
|
+
return (F == null || (P = F.visit) === null || P === void 0 ? void 0 : P.call(F, _)) || _;
|
|
4173
4173
|
}, C);
|
|
4174
4174
|
Object.keys(O).forEach(function(_) {
|
|
4175
4175
|
var F = O[_];
|
|
4176
4176
|
if (J(F) === "object" && F && (_ !== "animationName" || !F._keyframe) && !kd(F)) {
|
|
4177
|
-
var
|
|
4178
|
-
(a || i) && s ?
|
|
4177
|
+
var P = !1, M = _.trim(), R = !1;
|
|
4178
|
+
(a || i) && s ? M.startsWith("@") ? P = !0 : M === "&" ? M = xi("", s, u) : M = xi(_, s, u) : a && !s && (M === "&" || M === "") && (M = "", R = !0);
|
|
4179
4179
|
var D = e(F, r, {
|
|
4180
4180
|
root: R,
|
|
4181
|
-
injectHash:
|
|
4182
|
-
parentSelectors: [].concat(Q(o), [
|
|
4181
|
+
injectHash: P,
|
|
4182
|
+
parentSelectors: [].concat(Q(o), [M])
|
|
4183
4183
|
}), V = X(D, 2), b = V[0], w = V[1];
|
|
4184
|
-
|
|
4184
|
+
f = j(j({}, f), w), m += "".concat(M).concat(b);
|
|
4185
4185
|
} else {
|
|
4186
4186
|
let I = function(L, k) {
|
|
4187
|
-
process.env.NODE_ENV !== "production" && (J(F) !== "object" || !(F != null && F[zo])) && [Nd, jd].concat(Q(
|
|
4187
|
+
process.env.NODE_ENV !== "production" && (J(F) !== "object" || !(F != null && F[zo])) && [Nd, jd].concat(Q(g)).forEach(function(U) {
|
|
4188
4188
|
return U(L, k, {
|
|
4189
4189
|
path: l,
|
|
4190
4190
|
hashId: s,
|
|
@@ -4194,7 +4194,7 @@ var Hd = function e(t) {
|
|
|
4194
4194
|
var B = L.replace(/[A-Z]/g, function(U) {
|
|
4195
4195
|
return "-".concat(U.toLowerCase());
|
|
4196
4196
|
}), H = k;
|
|
4197
|
-
!pd[L] && typeof H == "number" && H !== 0 && (H = "".concat(H, "px")), L === "animationName" && k !== null && k !== void 0 && k._keyframe && (S(k), H = k.getName(s)),
|
|
4197
|
+
!pd[L] && typeof H == "number" && H !== 0 && (H = "".concat(H, "px")), L === "animationName" && k !== null && k !== void 0 && k._keyframe && (S(k), H = k.getName(s)), m += "".concat(B, ":").concat(H, ";");
|
|
4198
4198
|
};
|
|
4199
4199
|
var $, A = ($ = F?.value) !== null && $ !== void 0 ? $ : F;
|
|
4200
4200
|
J(F) === "object" && F !== null && F !== void 0 && F[Wo] && Array.isArray(A) ? A.forEach(function(L) {
|
|
@@ -4203,10 +4203,10 @@ var Hd = function e(t) {
|
|
|
4203
4203
|
}
|
|
4204
4204
|
});
|
|
4205
4205
|
}
|
|
4206
|
-
}), a ? c && (
|
|
4206
|
+
}), a ? c && (m && (m = "@layer ".concat(c.name, " {").concat(m, "}")), c.dependencies && (f["@layer ".concat(c.name)] = c.dependencies.map(function(E) {
|
|
4207
4207
|
return "@layer ".concat(E, ", ").concat(c.name, ";");
|
|
4208
4208
|
}).join(`
|
|
4209
|
-
`))) :
|
|
4209
|
+
`))) : m = "{".concat(m, "}"), [m, f];
|
|
4210
4210
|
};
|
|
4211
4211
|
function Uo(e, t) {
|
|
4212
4212
|
return mr("".concat(e.join("%")).concat(t));
|
|
@@ -4216,11 +4216,11 @@ function Bd() {
|
|
|
4216
4216
|
}
|
|
4217
4217
|
var qo = "style";
|
|
4218
4218
|
function Jn(e, t) {
|
|
4219
|
-
var r = e.token, n = e.path, a = e.hashId, i = e.layer, o = e.nonce, s = e.clientOnly, c = e.order, l = c === void 0 ? 0 : c, u = T.useContext(Cr), d = u.autoClear,
|
|
4219
|
+
var r = e.token, n = e.path, a = e.hashId, i = e.layer, o = e.nonce, s = e.clientOnly, c = e.order, l = c === void 0 ? 0 : c, u = T.useContext(Cr), d = u.autoClear, h = u.mock, p = u.defaultCache, g = u.hashPriority, m = u.container, f = u.ssrInline, S = u.transformers, v = u.linters, y = u.cache, E = u.layer, C = r._tokenKey, O = [C];
|
|
4220
4220
|
E && O.push("layer"), O.push.apply(O, Q(n));
|
|
4221
4221
|
var _ = Xn;
|
|
4222
|
-
process.env.NODE_ENV !== "production" &&
|
|
4223
|
-
var F =
|
|
4222
|
+
process.env.NODE_ENV !== "production" && h !== void 0 && (_ = h === "client");
|
|
4223
|
+
var F = Ma(
|
|
4224
4224
|
qo,
|
|
4225
4225
|
O,
|
|
4226
4226
|
// Create cache if needed
|
|
@@ -4233,20 +4233,20 @@ function Jn(e, t) {
|
|
|
4233
4233
|
}
|
|
4234
4234
|
var I = t(), L = Hd(I, {
|
|
4235
4235
|
hashId: a,
|
|
4236
|
-
hashPriority:
|
|
4236
|
+
hashPriority: g,
|
|
4237
4237
|
layer: E ? i : void 0,
|
|
4238
4238
|
path: n.join("-"),
|
|
4239
4239
|
transformers: S,
|
|
4240
|
-
linters:
|
|
4240
|
+
linters: v
|
|
4241
4241
|
}), k = X(L, 2), B = k[0], H = k[1], U = Ur(B), q = Uo(O, U);
|
|
4242
4242
|
return [U, C, q, H, s, l];
|
|
4243
4243
|
},
|
|
4244
4244
|
// Remove cache if no need
|
|
4245
4245
|
function(V, b) {
|
|
4246
4246
|
var w = X(V, 3), $ = w[2];
|
|
4247
|
-
(b || d) && Xn &&
|
|
4247
|
+
(b || d) && Xn && Mo($, {
|
|
4248
4248
|
mark: ot,
|
|
4249
|
-
attachTo:
|
|
4249
|
+
attachTo: m
|
|
4250
4250
|
});
|
|
4251
4251
|
},
|
|
4252
4252
|
// Effect: Inject style here
|
|
@@ -4258,7 +4258,7 @@ function Jn(e, t) {
|
|
|
4258
4258
|
var I = {
|
|
4259
4259
|
mark: ot,
|
|
4260
4260
|
prepend: E ? !1 : "queue",
|
|
4261
|
-
attachTo:
|
|
4261
|
+
attachTo: m,
|
|
4262
4262
|
priority: l
|
|
4263
4263
|
}, L = typeof o == "function" ? o() : o;
|
|
4264
4264
|
L && (I.csp = {
|
|
@@ -4268,69 +4268,69 @@ function Jn(e, t) {
|
|
|
4268
4268
|
Object.keys(A).forEach(function(U) {
|
|
4269
4269
|
U.startsWith("@layer") ? k.push(U) : B.push(U);
|
|
4270
4270
|
}), k.forEach(function(U) {
|
|
4271
|
-
|
|
4271
|
+
Mt(Ur(A[U]), "_layer-".concat(U), j(j({}, I), {}, {
|
|
4272
4272
|
prepend: !0
|
|
4273
4273
|
}));
|
|
4274
4274
|
});
|
|
4275
|
-
var H =
|
|
4275
|
+
var H = Mt(w, $, I);
|
|
4276
4276
|
H[xt] = y.instanceId, H.setAttribute(Ut, C), process.env.NODE_ENV !== "production" && H.setAttribute(Wu, O.join("|")), B.forEach(function(U) {
|
|
4277
|
-
|
|
4277
|
+
Mt(Ur(A[U]), "_effect-".concat(U), I);
|
|
4278
4278
|
});
|
|
4279
4279
|
}
|
|
4280
4280
|
}
|
|
4281
|
-
),
|
|
4281
|
+
), P = X(F, 3), M = P[0], R = P[1], D = P[2];
|
|
4282
4282
|
return function(V) {
|
|
4283
4283
|
var b;
|
|
4284
|
-
return !
|
|
4284
|
+
return !f || _ || !p ? b = /* @__PURE__ */ T.createElement(Bd, null) : b = /* @__PURE__ */ T.createElement("style", ct({}, x(x({}, Ut, R), ot, D), {
|
|
4285
4285
|
dangerouslySetInnerHTML: {
|
|
4286
|
-
__html:
|
|
4286
|
+
__html: M
|
|
4287
4287
|
}
|
|
4288
4288
|
})), /* @__PURE__ */ T.createElement(T.Fragment, null, b, V);
|
|
4289
4289
|
};
|
|
4290
4290
|
}
|
|
4291
4291
|
var zd = function(t, r, n) {
|
|
4292
|
-
var a = X(t, 6), i = a[0], o = a[1], s = a[2], c = a[3], l = a[4], u = a[5], d = n || {},
|
|
4292
|
+
var a = X(t, 6), i = a[0], o = a[1], s = a[2], c = a[3], l = a[4], u = a[5], d = n || {}, h = d.plain;
|
|
4293
4293
|
if (l)
|
|
4294
4294
|
return null;
|
|
4295
|
-
var p = i,
|
|
4295
|
+
var p = i, g = {
|
|
4296
4296
|
"data-rc-order": "prependQueue",
|
|
4297
4297
|
"data-rc-priority": "".concat(u)
|
|
4298
4298
|
};
|
|
4299
|
-
return p = Zr(i, o, s,
|
|
4300
|
-
if (!r[
|
|
4301
|
-
r[
|
|
4302
|
-
var
|
|
4303
|
-
|
|
4299
|
+
return p = Zr(i, o, s, g, h), c && Object.keys(c).forEach(function(m) {
|
|
4300
|
+
if (!r[m]) {
|
|
4301
|
+
r[m] = !0;
|
|
4302
|
+
var f = Ur(c[m]), S = Zr(f, o, "_effect-".concat(m), g, h);
|
|
4303
|
+
m.startsWith("@layer") ? p = S + p : p += S;
|
|
4304
4304
|
}
|
|
4305
4305
|
}), [u, s, p];
|
|
4306
4306
|
}, Go = "cssVar", Wd = function(t, r) {
|
|
4307
|
-
var n = t.key, a = t.prefix, i = t.unitless, o = t.ignore, s = t.token, c = t.scope, l = c === void 0 ? "" : c, u = vt(Cr), d = u.cache.instanceId,
|
|
4308
|
-
var
|
|
4307
|
+
var n = t.key, a = t.prefix, i = t.unitless, o = t.ignore, s = t.token, c = t.scope, l = c === void 0 ? "" : c, u = vt(Cr), d = u.cache.instanceId, h = u.container, p = s._tokenKey, g = [].concat(Q(t.path), [n, l, p]), m = Ma(Go, g, function() {
|
|
4308
|
+
var f = r(), S = Ro(f, n, {
|
|
4309
4309
|
prefix: a,
|
|
4310
4310
|
unitless: i,
|
|
4311
4311
|
ignore: o,
|
|
4312
4312
|
scope: l
|
|
4313
|
-
}),
|
|
4313
|
+
}), v = X(S, 2), y = v[0], E = v[1], C = Uo(g, E);
|
|
4314
4314
|
return [y, E, C, n];
|
|
4315
|
-
}, function(
|
|
4316
|
-
var S = X(
|
|
4317
|
-
Xn &&
|
|
4315
|
+
}, function(f) {
|
|
4316
|
+
var S = X(f, 3), v = S[2];
|
|
4317
|
+
Xn && Mo(v, {
|
|
4318
4318
|
mark: ot,
|
|
4319
|
-
attachTo:
|
|
4319
|
+
attachTo: h
|
|
4320
4320
|
});
|
|
4321
|
-
}, function(
|
|
4322
|
-
var S = X(
|
|
4323
|
-
if (
|
|
4324
|
-
var E =
|
|
4321
|
+
}, function(f) {
|
|
4322
|
+
var S = X(f, 3), v = S[1], y = S[2];
|
|
4323
|
+
if (v) {
|
|
4324
|
+
var E = Mt(v, y, {
|
|
4325
4325
|
mark: ot,
|
|
4326
4326
|
prepend: "queue",
|
|
4327
|
-
attachTo:
|
|
4327
|
+
attachTo: h,
|
|
4328
4328
|
priority: -999
|
|
4329
4329
|
});
|
|
4330
4330
|
E[xt] = d, E.setAttribute(Ut, n);
|
|
4331
4331
|
}
|
|
4332
4332
|
});
|
|
4333
|
-
return
|
|
4333
|
+
return m;
|
|
4334
4334
|
}, Ud = function(t, r, n) {
|
|
4335
4335
|
var a = X(t, 4), i = a[1], o = a[2], s = a[3], c = n || {}, l = c.plain;
|
|
4336
4336
|
if (!i)
|
|
@@ -4338,8 +4338,8 @@ var zd = function(t, r, n) {
|
|
|
4338
4338
|
var u = -999, d = {
|
|
4339
4339
|
"data-rc-order": "prependQueue",
|
|
4340
4340
|
"data-rc-priority": "".concat(u)
|
|
4341
|
-
},
|
|
4342
|
-
return [u, o,
|
|
4341
|
+
}, h = Zr(i, s, o, d, l);
|
|
4342
|
+
return [u, o, h];
|
|
4343
4343
|
};
|
|
4344
4344
|
x(x(x({}, qo, zd), Ao, vd), Go, Ud);
|
|
4345
4345
|
function Vt(e) {
|
|
@@ -4781,8 +4781,8 @@ class Ae {
|
|
|
4781
4781
|
a
|
|
4782
4782
|
}) {
|
|
4783
4783
|
if (this._h = t % 360, this._s = r, this._l = n, this.a = typeof a == "number" ? a : 1, r <= 0) {
|
|
4784
|
-
const
|
|
4785
|
-
this.r =
|
|
4784
|
+
const h = Le(n * 255);
|
|
4785
|
+
this.r = h, this.g = h, this.b = h;
|
|
4786
4786
|
}
|
|
4787
4787
|
let i = 0, o = 0, s = 0;
|
|
4788
4788
|
const c = t / 60, l = (1 - Math.abs(2 * n - 1)) * r, u = l * (1 - Math.abs(c % 2 - 1));
|
|
@@ -4986,8 +4986,8 @@ function Jd(e, {
|
|
|
4986
4986
|
colorPrimary: s,
|
|
4987
4987
|
colorBgBase: c,
|
|
4988
4988
|
colorTextBase: l
|
|
4989
|
-
} = e, u = t(s), d = t(n),
|
|
4990
|
-
return Object.assign(Object.assign({},
|
|
4989
|
+
} = e, u = t(s), d = t(n), h = t(a), p = t(i), g = t(o), m = r(c, l), f = e.colorLink || e.colorInfo, S = t(f), v = new Ae(p[1]).mix(new Ae(p[3]), 50).toHexString();
|
|
4990
|
+
return Object.assign(Object.assign({}, m), {
|
|
4991
4991
|
colorPrimaryBg: u[1],
|
|
4992
4992
|
colorPrimaryBgHover: u[2],
|
|
4993
4993
|
colorPrimaryBorder: u[3],
|
|
@@ -5010,7 +5010,7 @@ function Jd(e, {
|
|
|
5010
5010
|
colorSuccessTextActive: d[10],
|
|
5011
5011
|
colorErrorBg: p[1],
|
|
5012
5012
|
colorErrorBgHover: p[2],
|
|
5013
|
-
colorErrorBgFilledHover:
|
|
5013
|
+
colorErrorBgFilledHover: v,
|
|
5014
5014
|
colorErrorBgActive: p[3],
|
|
5015
5015
|
colorErrorBorder: p[3],
|
|
5016
5016
|
colorErrorBorderHover: p[4],
|
|
@@ -5020,26 +5020,26 @@ function Jd(e, {
|
|
|
5020
5020
|
colorErrorTextHover: p[8],
|
|
5021
5021
|
colorErrorText: p[9],
|
|
5022
5022
|
colorErrorTextActive: p[10],
|
|
5023
|
-
colorWarningBg:
|
|
5024
|
-
colorWarningBgHover:
|
|
5025
|
-
colorWarningBorder:
|
|
5026
|
-
colorWarningBorderHover:
|
|
5027
|
-
colorWarningHover:
|
|
5028
|
-
colorWarning:
|
|
5029
|
-
colorWarningActive:
|
|
5030
|
-
colorWarningTextHover:
|
|
5031
|
-
colorWarningText:
|
|
5032
|
-
colorWarningTextActive:
|
|
5033
|
-
colorInfoBg:
|
|
5034
|
-
colorInfoBgHover:
|
|
5035
|
-
colorInfoBorder:
|
|
5036
|
-
colorInfoBorderHover:
|
|
5037
|
-
colorInfoHover:
|
|
5038
|
-
colorInfo:
|
|
5039
|
-
colorInfoActive:
|
|
5040
|
-
colorInfoTextHover:
|
|
5041
|
-
colorInfoText:
|
|
5042
|
-
colorInfoTextActive:
|
|
5023
|
+
colorWarningBg: h[1],
|
|
5024
|
+
colorWarningBgHover: h[2],
|
|
5025
|
+
colorWarningBorder: h[3],
|
|
5026
|
+
colorWarningBorderHover: h[4],
|
|
5027
|
+
colorWarningHover: h[4],
|
|
5028
|
+
colorWarning: h[6],
|
|
5029
|
+
colorWarningActive: h[7],
|
|
5030
|
+
colorWarningTextHover: h[8],
|
|
5031
|
+
colorWarningText: h[9],
|
|
5032
|
+
colorWarningTextActive: h[10],
|
|
5033
|
+
colorInfoBg: g[1],
|
|
5034
|
+
colorInfoBgHover: g[2],
|
|
5035
|
+
colorInfoBorder: g[3],
|
|
5036
|
+
colorInfoBorderHover: g[4],
|
|
5037
|
+
colorInfoHover: g[4],
|
|
5038
|
+
colorInfo: g[6],
|
|
5039
|
+
colorInfoActive: g[7],
|
|
5040
|
+
colorInfoTextHover: g[8],
|
|
5041
|
+
colorInfoText: g[9],
|
|
5042
|
+
colorInfoTextActive: g[10],
|
|
5043
5043
|
colorLinkHover: S[4],
|
|
5044
5044
|
colorLink: S[6],
|
|
5045
5045
|
colorLinkActive: S[7],
|
|
@@ -5216,7 +5216,7 @@ const ns = Kn(uf), fa = {
|
|
|
5216
5216
|
iconPrefixCls: Ia
|
|
5217
5217
|
}), {
|
|
5218
5218
|
Consumer: Wg
|
|
5219
|
-
} = wt,
|
|
5219
|
+
} = wt, Mi = {};
|
|
5220
5220
|
function hf(e) {
|
|
5221
5221
|
const t = T.useContext(wt), {
|
|
5222
5222
|
getPrefixCls: r,
|
|
@@ -5224,8 +5224,8 @@ function hf(e) {
|
|
|
5224
5224
|
getPopupContainer: a
|
|
5225
5225
|
} = t, i = t[e];
|
|
5226
5226
|
return Object.assign(Object.assign({
|
|
5227
|
-
classNames:
|
|
5228
|
-
styles:
|
|
5227
|
+
classNames: Mi,
|
|
5228
|
+
styles: Mi
|
|
5229
5229
|
}, i), {
|
|
5230
5230
|
getPrefixCls: r,
|
|
5231
5231
|
direction: n,
|
|
@@ -5259,7 +5259,7 @@ function mf(e, t) {
|
|
|
5259
5259
|
}
|
|
5260
5260
|
function vf(e, t) {
|
|
5261
5261
|
const r = mf(e, t);
|
|
5262
|
-
St() ?
|
|
5262
|
+
St() ? Mt(r, `${gf}-dynamic-theme`) : process.env.NODE_ENV !== "production" && xr(!1, "ConfigProvider", "SSR do not support dynamic theme with css variables.");
|
|
5263
5263
|
}
|
|
5264
5264
|
const en = /* @__PURE__ */ T.createContext(!1), pf = ({
|
|
5265
5265
|
children: e,
|
|
@@ -5372,7 +5372,7 @@ var _f = /* @__PURE__ */ (function(e) {
|
|
|
5372
5372
|
return function(a) {
|
|
5373
5373
|
return new n(a, r);
|
|
5374
5374
|
};
|
|
5375
|
-
},
|
|
5375
|
+
}, Pi = function(t, r) {
|
|
5376
5376
|
return "".concat([r, t.replace(/([A-Z]+)([A-Z][a-z]+)/g, "$1-$2").replace(/([a-z])([A-Z])/g, "$1-$2")].filter(Boolean).join("-"));
|
|
5377
5377
|
};
|
|
5378
5378
|
function Ri(e, t, r, n) {
|
|
@@ -5523,81 +5523,81 @@ function Ff(e, t) {
|
|
|
5523
5523
|
return Ni.set(t, n), n;
|
|
5524
5524
|
}, t);
|
|
5525
5525
|
}
|
|
5526
|
-
var
|
|
5526
|
+
var Mf = function() {
|
|
5527
5527
|
return {};
|
|
5528
5528
|
};
|
|
5529
|
-
function
|
|
5530
|
-
var t = e.useCSP, r = t === void 0 ?
|
|
5531
|
-
function c(
|
|
5532
|
-
var
|
|
5529
|
+
function Pf(e) {
|
|
5530
|
+
var t = e.useCSP, r = t === void 0 ? Mf : t, n = e.useToken, a = e.usePrefix, i = e.getResetStyles, o = e.getCommonStyle, s = e.getCompUnitless;
|
|
5531
|
+
function c(h, p, g, m) {
|
|
5532
|
+
var f = Array.isArray(h) ? h[0] : h;
|
|
5533
5533
|
function S(F) {
|
|
5534
|
-
return "".concat(String(
|
|
5534
|
+
return "".concat(String(f)).concat(F.slice(0, 1).toUpperCase()).concat(F.slice(1));
|
|
5535
5535
|
}
|
|
5536
|
-
var
|
|
5537
|
-
Object.keys(
|
|
5538
|
-
E[S(F)] =
|
|
5536
|
+
var v = m?.unitless || {}, y = typeof s == "function" ? s(h) : {}, E = j(j({}, y), {}, x({}, S("zIndexPopup"), !0));
|
|
5537
|
+
Object.keys(v).forEach(function(F) {
|
|
5538
|
+
E[S(F)] = v[F];
|
|
5539
5539
|
});
|
|
5540
|
-
var C = j(j({},
|
|
5540
|
+
var C = j(j({}, m), {}, {
|
|
5541
5541
|
unitless: E,
|
|
5542
5542
|
prefixToken: S
|
|
5543
|
-
}), O = u(
|
|
5543
|
+
}), O = u(h, p, g, C), _ = l(f, g, C);
|
|
5544
5544
|
return function(F) {
|
|
5545
|
-
var
|
|
5545
|
+
var P = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : F, M = O(F, P), R = X(M, 2), D = R[1], V = _(P), b = X(V, 2), w = b[0], $ = b[1];
|
|
5546
5546
|
return [w, D, $];
|
|
5547
5547
|
};
|
|
5548
5548
|
}
|
|
5549
|
-
function l(
|
|
5550
|
-
var
|
|
5551
|
-
var F = _.rootCls,
|
|
5549
|
+
function l(h, p, g) {
|
|
5550
|
+
var m = g.unitless, f = g.injectStyle, S = f === void 0 ? !0 : f, v = g.prefixToken, y = g.ignore, E = function(_) {
|
|
5551
|
+
var F = _.rootCls, P = _.cssVar, M = P === void 0 ? {} : P, R = n(), D = R.realToken;
|
|
5552
5552
|
return Wd({
|
|
5553
|
-
path: [
|
|
5554
|
-
prefix:
|
|
5555
|
-
key:
|
|
5556
|
-
unitless:
|
|
5553
|
+
path: [h],
|
|
5554
|
+
prefix: M.prefix,
|
|
5555
|
+
key: M.key,
|
|
5556
|
+
unitless: m,
|
|
5557
5557
|
ignore: y,
|
|
5558
5558
|
token: D,
|
|
5559
5559
|
scope: F
|
|
5560
5560
|
}, function() {
|
|
5561
|
-
var V = Ii(
|
|
5562
|
-
deprecatedTokens:
|
|
5561
|
+
var V = Ii(h, D, p), b = Ri(h, D, V, {
|
|
5562
|
+
deprecatedTokens: g?.deprecatedTokens
|
|
5563
5563
|
});
|
|
5564
5564
|
return Object.keys(V).forEach(function(w) {
|
|
5565
|
-
b[
|
|
5565
|
+
b[v(w)] = b[w], delete b[w];
|
|
5566
5566
|
}), b;
|
|
5567
5567
|
}), null;
|
|
5568
5568
|
}, C = function(_) {
|
|
5569
|
-
var F = n(),
|
|
5570
|
-
return [function(
|
|
5571
|
-
return S &&
|
|
5569
|
+
var F = n(), P = F.cssVar;
|
|
5570
|
+
return [function(M) {
|
|
5571
|
+
return S && P ? /* @__PURE__ */ re.createElement(re.Fragment, null, /* @__PURE__ */ re.createElement(E, {
|
|
5572
5572
|
rootCls: _,
|
|
5573
|
-
cssVar:
|
|
5574
|
-
component:
|
|
5575
|
-
}),
|
|
5576
|
-
},
|
|
5573
|
+
cssVar: P,
|
|
5574
|
+
component: h
|
|
5575
|
+
}), M) : M;
|
|
5576
|
+
}, P?.key];
|
|
5577
5577
|
};
|
|
5578
5578
|
return C;
|
|
5579
5579
|
}
|
|
5580
|
-
function u(
|
|
5581
|
-
var
|
|
5580
|
+
function u(h, p, g) {
|
|
5581
|
+
var m = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, f = Array.isArray(h) ? h : [h, h], S = X(f, 1), v = S[0], y = f.join("-"), E = e.layer || {
|
|
5582
5582
|
name: "antd"
|
|
5583
5583
|
};
|
|
5584
5584
|
return function(C) {
|
|
5585
|
-
var O = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : C, _ = n(), F = _.theme,
|
|
5585
|
+
var O = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : C, _ = n(), F = _.theme, P = _.realToken, M = _.hashId, R = _.token, D = _.cssVar, V = a(), b = V.rootPrefixCls, w = V.iconPrefixCls, $ = r(), A = D ? "css" : "js", I = Ff(function() {
|
|
5586
5586
|
var q = /* @__PURE__ */ new Set();
|
|
5587
|
-
return D && Object.keys(
|
|
5588
|
-
q.add(Hr(ee, D.prefix)), q.add(Hr(ee,
|
|
5587
|
+
return D && Object.keys(m.unitless || {}).forEach(function(ee) {
|
|
5588
|
+
q.add(Hr(ee, D.prefix)), q.add(Hr(ee, Pi(v, D.prefix)));
|
|
5589
5589
|
}), xf(A, q);
|
|
5590
|
-
}, [A,
|
|
5590
|
+
}, [A, v, D?.prefix]), L = $f(A), k = L.max, B = L.min, H = {
|
|
5591
5591
|
theme: F,
|
|
5592
5592
|
token: R,
|
|
5593
|
-
hashId:
|
|
5593
|
+
hashId: M,
|
|
5594
5594
|
nonce: function() {
|
|
5595
5595
|
return $.nonce;
|
|
5596
5596
|
},
|
|
5597
|
-
clientOnly:
|
|
5597
|
+
clientOnly: m.clientOnly,
|
|
5598
5598
|
layer: E,
|
|
5599
5599
|
// antd is always at top of styles
|
|
5600
|
-
order:
|
|
5600
|
+
order: m.order || -999
|
|
5601
5601
|
};
|
|
5602
5602
|
typeof i == "function" && Jn(j(j({}, H), {}, {
|
|
5603
5603
|
clientOnly: !1,
|
|
@@ -5614,13 +5614,13 @@ function Mf(e) {
|
|
|
5614
5614
|
var U = Jn(j(j({}, H), {}, {
|
|
5615
5615
|
path: [y, C, w]
|
|
5616
5616
|
}), function() {
|
|
5617
|
-
if (
|
|
5617
|
+
if (m.injectStyle === !1)
|
|
5618
5618
|
return [];
|
|
5619
|
-
var q = wf(R), ee = q.token, le = q.flush, ie = Ii(
|
|
5620
|
-
deprecatedTokens:
|
|
5619
|
+
var q = wf(R), ee = q.token, le = q.flush, ie = Ii(v, P, g), he = ".".concat(C), ue = Ri(v, P, ie, {
|
|
5620
|
+
deprecatedTokens: m.deprecatedTokens
|
|
5621
5621
|
});
|
|
5622
5622
|
D && ie && J(ie) === "object" && Object.keys(ie).forEach(function(Oe) {
|
|
5623
|
-
ie[Oe] = "var(".concat(Hr(Oe,
|
|
5623
|
+
ie[Oe] = "var(".concat(Hr(Oe, Pi(v, D.prefix)), ")");
|
|
5624
5624
|
});
|
|
5625
5625
|
var oe = Jt(ee, {
|
|
5626
5626
|
componentCls: he,
|
|
@@ -5633,28 +5633,28 @@ function Mf(e) {
|
|
|
5633
5633
|
// @ts-ignore
|
|
5634
5634
|
min: B
|
|
5635
5635
|
}, D ? ie : ue), ve = p(oe, {
|
|
5636
|
-
hashId:
|
|
5636
|
+
hashId: M,
|
|
5637
5637
|
prefixCls: C,
|
|
5638
5638
|
rootPrefixCls: b,
|
|
5639
5639
|
iconPrefixCls: w
|
|
5640
5640
|
});
|
|
5641
|
-
le(
|
|
5642
|
-
var Ce = typeof o == "function" ? o(oe, C, O,
|
|
5643
|
-
return [
|
|
5641
|
+
le(v, ue);
|
|
5642
|
+
var Ce = typeof o == "function" ? o(oe, C, O, m.resetFont) : null;
|
|
5643
|
+
return [m.resetStyle === !1 ? null : Ce, ve];
|
|
5644
5644
|
});
|
|
5645
|
-
return [U,
|
|
5645
|
+
return [U, M];
|
|
5646
5646
|
};
|
|
5647
5647
|
}
|
|
5648
|
-
function d(
|
|
5649
|
-
var
|
|
5648
|
+
function d(h, p, g) {
|
|
5649
|
+
var m = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, f = u(h, p, g, j({
|
|
5650
5650
|
resetStyle: !1,
|
|
5651
5651
|
// Sub Style should default after root one
|
|
5652
5652
|
order: -998
|
|
5653
|
-
},
|
|
5653
|
+
}, m)), S = function(y) {
|
|
5654
5654
|
var E = y.prefixCls, C = y.rootCls, O = C === void 0 ? E : C;
|
|
5655
|
-
return
|
|
5655
|
+
return f(E, O), null;
|
|
5656
5656
|
};
|
|
5657
|
-
return process.env.NODE_ENV !== "production" && (S.displayName = "SubStyle_".concat(String(Array.isArray(
|
|
5657
|
+
return process.env.NODE_ENV !== "production" && (S.displayName = "SubStyle_".concat(String(Array.isArray(h) ? h.join(".") : h))), S;
|
|
5658
5658
|
}
|
|
5659
5659
|
return {
|
|
5660
5660
|
genStyleHooks: c,
|
|
@@ -5681,12 +5681,12 @@ function Ir(e, t) {
|
|
|
5681
5681
|
b: c
|
|
5682
5682
|
} = new Ae(t).toRgb();
|
|
5683
5683
|
for (let l = 0.01; l <= 1; l += 0.01) {
|
|
5684
|
-
const u = Math.round((r - o * (1 - l)) / l), d = Math.round((n - s * (1 - l)) / l),
|
|
5685
|
-
if (Fn(u) && Fn(d) && Fn(
|
|
5684
|
+
const u = Math.round((r - o * (1 - l)) / l), d = Math.round((n - s * (1 - l)) / l), h = Math.round((a - c * (1 - l)) / l);
|
|
5685
|
+
if (Fn(u) && Fn(d) && Fn(h))
|
|
5686
5686
|
return new Ae({
|
|
5687
5687
|
r: u,
|
|
5688
5688
|
g: d,
|
|
5689
|
-
b:
|
|
5689
|
+
b: h,
|
|
5690
5690
|
a: Math.round(l * 100) / 100
|
|
5691
5691
|
}).toRgbString();
|
|
5692
5692
|
}
|
|
@@ -5708,8 +5708,8 @@ function cs(e) {
|
|
|
5708
5708
|
const {
|
|
5709
5709
|
override: t
|
|
5710
5710
|
} = e, r = Af(e, ["override"]), n = Object.assign({}, t);
|
|
5711
|
-
Object.keys(pr).forEach((
|
|
5712
|
-
delete n[
|
|
5711
|
+
Object.keys(pr).forEach((h) => {
|
|
5712
|
+
delete n[h];
|
|
5713
5713
|
});
|
|
5714
5714
|
const a = Object.assign(Object.assign({}, r), n), i = 480, o = 576, s = 768, c = 992, l = 1200, u = 1600;
|
|
5715
5715
|
return a.motion === !1 && (a.motionDurationFast = "0s", a.motionDurationMid = "0s", a.motionDurationSlow = "0s"), Object.assign(Object.assign(Object.assign({}, a), {
|
|
@@ -6027,7 +6027,7 @@ const ds = (e, t = !1) => ({
|
|
|
6027
6027
|
})
|
|
6028
6028
|
}), {
|
|
6029
6029
|
genStyleHooks: hs
|
|
6030
|
-
} =
|
|
6030
|
+
} = Pf({
|
|
6031
6031
|
usePrefix: () => {
|
|
6032
6032
|
const {
|
|
6033
6033
|
getPrefixCls: e,
|
|
@@ -6092,21 +6092,21 @@ function Wf(e, t, r) {
|
|
|
6092
6092
|
if (!e)
|
|
6093
6093
|
return t;
|
|
6094
6094
|
const d = Object.assign({}, s.components);
|
|
6095
|
-
Object.keys(e.components || {}).forEach((
|
|
6096
|
-
d[
|
|
6095
|
+
Object.keys(e.components || {}).forEach((g) => {
|
|
6096
|
+
d[g] = Object.assign(Object.assign({}, d[g]), e.components[g]);
|
|
6097
6097
|
});
|
|
6098
|
-
const
|
|
6098
|
+
const h = `css-var-${c.replace(/:/g, "")}`, p = ((l = o.cssVar) !== null && l !== void 0 ? l : s.cssVar) && Object.assign(Object.assign(Object.assign({
|
|
6099
6099
|
prefix: r?.prefixCls
|
|
6100
6100
|
}, typeof s.cssVar == "object" ? s.cssVar : {}), typeof o.cssVar == "object" ? o.cssVar : {}), {
|
|
6101
|
-
key: typeof o.cssVar == "object" && ((u = o.cssVar) === null || u === void 0 ? void 0 : u.key) ||
|
|
6101
|
+
key: typeof o.cssVar == "object" && ((u = o.cssVar) === null || u === void 0 ? void 0 : u.key) || h
|
|
6102
6102
|
});
|
|
6103
6103
|
return Object.assign(Object.assign(Object.assign({}, s), o), {
|
|
6104
6104
|
token: Object.assign(Object.assign({}, s.token), o.token),
|
|
6105
6105
|
components: d,
|
|
6106
6106
|
cssVar: p
|
|
6107
6107
|
});
|
|
6108
|
-
}, [o, s], (l, u) => l.some((d,
|
|
6109
|
-
const p = u[
|
|
6108
|
+
}, [o, s], (l, u) => l.some((d, h) => {
|
|
6109
|
+
const p = u[h];
|
|
6110
6110
|
return !Nn(d, p, !0);
|
|
6111
6111
|
}));
|
|
6112
6112
|
}
|
|
@@ -6280,15 +6280,15 @@ const ih = (function(e, t, r) {
|
|
|
6280
6280
|
function d() {
|
|
6281
6281
|
o(it, !0);
|
|
6282
6282
|
}
|
|
6283
|
-
var
|
|
6283
|
+
var h = t ? nh : rh;
|
|
6284
6284
|
return _s(function() {
|
|
6285
6285
|
if (i !== Di && i !== Na) {
|
|
6286
|
-
var p =
|
|
6287
|
-
|
|
6286
|
+
var p = h.indexOf(i), g = h[p + 1], m = r(i);
|
|
6287
|
+
m === ws ? o(g, !0) : g && l(function(f) {
|
|
6288
6288
|
function S() {
|
|
6289
|
-
|
|
6289
|
+
f.isCanceled() || o(g, !0);
|
|
6290
6290
|
}
|
|
6291
|
-
|
|
6291
|
+
m === !0 ? S() : Promise.resolve(m).then(S);
|
|
6292
6292
|
});
|
|
6293
6293
|
}
|
|
6294
6294
|
}, [e, i]), T.useEffect(function() {
|
|
@@ -6298,7 +6298,7 @@ const ih = (function(e, t, r) {
|
|
|
6298
6298
|
}, []), [d, i];
|
|
6299
6299
|
});
|
|
6300
6300
|
function oh(e, t, r, n) {
|
|
6301
|
-
var a = n.motionEnter, i = a === void 0 ? !0 : a, o = n.motionAppear, s = o === void 0 ? !0 : o, c = n.motionLeave, l = c === void 0 ? !0 : c, u = n.motionDeadline, d = n.motionLeaveImmediately,
|
|
6301
|
+
var a = n.motionEnter, i = a === void 0 ? !0 : a, o = n.motionAppear, s = o === void 0 ? !0 : o, c = n.motionLeave, l = c === void 0 ? !0 : c, u = n.motionDeadline, d = n.motionLeaveImmediately, h = n.onAppearPrepare, p = n.onEnterPrepare, g = n.onLeavePrepare, m = n.onAppearStart, f = n.onEnterStart, S = n.onLeaveStart, v = n.onAppearActive, y = n.onEnterActive, E = n.onLeaveActive, C = n.onAppearEnd, O = n.onEnterEnd, _ = n.onLeaveEnd, F = n.onVisibleChanged, P = fr(), M = X(P, 2), R = M[0], D = M[1], V = Yf(Ct), b = X(V, 2), w = b[0], $ = b[1], A = fr(null), I = X(A, 2), L = I[0], k = I[1], B = w(), H = me(!1), U = me(null);
|
|
6302
6302
|
function q() {
|
|
6303
6303
|
return r();
|
|
6304
6304
|
}
|
|
@@ -6318,11 +6318,11 @@ function oh(e, t, r, n) {
|
|
|
6318
6318
|
}), he = eh(ie), ue = X(he, 1), oe = ue[0], ve = function(be) {
|
|
6319
6319
|
switch (be) {
|
|
6320
6320
|
case Nr:
|
|
6321
|
-
return x(x(x({}, it,
|
|
6321
|
+
return x(x(x({}, it, h), Dt, m), kt, v);
|
|
6322
6322
|
case jr:
|
|
6323
|
-
return x(x(x({}, it, p), Dt,
|
|
6323
|
+
return x(x(x({}, it, p), Dt, f), kt, y);
|
|
6324
6324
|
case Vr:
|
|
6325
|
-
return x(x(x({}, it,
|
|
6325
|
+
return x(x(x({}, it, g), Dt, S), kt, E);
|
|
6326
6326
|
default:
|
|
6327
6327
|
return {};
|
|
6328
6328
|
}
|
|
@@ -6365,9 +6365,9 @@ function oh(e, t, r, n) {
|
|
|
6365
6365
|
H.current = !1, clearTimeout(U.current);
|
|
6366
6366
|
};
|
|
6367
6367
|
}, []);
|
|
6368
|
-
var
|
|
6368
|
+
var Me = T.useRef(!1);
|
|
6369
6369
|
fe(function() {
|
|
6370
|
-
R && (
|
|
6370
|
+
R && (Me.current = !0), R !== void 0 && B === Ct && ((Me.current || R) && F?.(R), Me.current = !0);
|
|
6371
6371
|
}, [R, B]);
|
|
6372
6372
|
var we = L;
|
|
6373
6373
|
return Ce[it] && Ee === Dt && (we = j({
|
|
@@ -6381,25 +6381,25 @@ function sh(e) {
|
|
|
6381
6381
|
return !!(a.motionName && t && i !== !1);
|
|
6382
6382
|
}
|
|
6383
6383
|
var n = /* @__PURE__ */ T.forwardRef(function(a, i) {
|
|
6384
|
-
var o = a.visible, s = o === void 0 ? !0 : o, c = a.removeOnLeave, l = c === void 0 ? !0 : c, u = a.forceRender, d = a.children,
|
|
6384
|
+
var o = a.visible, s = o === void 0 ? !0 : o, c = a.removeOnLeave, l = c === void 0 ? !0 : c, u = a.forceRender, d = a.children, h = a.motionName, p = a.leavedClassName, g = a.eventProps, m = T.useContext(gs), f = m.motion, S = r(a, f), v = me(), y = me();
|
|
6385
6385
|
function E() {
|
|
6386
6386
|
try {
|
|
6387
|
-
return
|
|
6387
|
+
return v.current instanceof HTMLElement ? v.current : qf(y.current);
|
|
6388
6388
|
} catch {
|
|
6389
6389
|
return null;
|
|
6390
6390
|
}
|
|
6391
6391
|
}
|
|
6392
|
-
var C = oh(S, s, E, a), O = X(C, 4), _ = O[0], F = O[1],
|
|
6393
|
-
|
|
6392
|
+
var C = oh(S, s, E, a), O = X(C, 4), _ = O[0], F = O[1], P = O[2], M = O[3], R = T.useRef(M);
|
|
6393
|
+
M && (R.current = !0);
|
|
6394
6394
|
var D = T.useCallback(function(I) {
|
|
6395
|
-
|
|
6396
|
-
}, [i]), V, b = j(j({},
|
|
6395
|
+
v.current = I, ho(i, I);
|
|
6396
|
+
}, [i]), V, b = j(j({}, g), {}, {
|
|
6397
6397
|
visible: s
|
|
6398
6398
|
});
|
|
6399
6399
|
if (!d)
|
|
6400
6400
|
V = null;
|
|
6401
6401
|
else if (_ === Ct)
|
|
6402
|
-
|
|
6402
|
+
M ? V = d(j({}, b), D) : !l && R.current && p ? V = d(j(j({}, b), {}, {
|
|
6403
6403
|
className: p
|
|
6404
6404
|
}), D) : u || !l && !p ? V = d(j(j({}, b), {}, {
|
|
6405
6405
|
style: {
|
|
@@ -6409,13 +6409,13 @@ function sh(e) {
|
|
|
6409
6409
|
else {
|
|
6410
6410
|
var w;
|
|
6411
6411
|
F === it ? w = "prepare" : $s(F) ? w = "active" : F === Dt && (w = "start");
|
|
6412
|
-
var $ = zi(
|
|
6412
|
+
var $ = zi(h, "".concat(_, "-").concat(w));
|
|
6413
6413
|
V = d(j(j({}, b), {}, {
|
|
6414
|
-
className: Re(zi(
|
|
6415
|
-
style:
|
|
6414
|
+
className: Re(zi(h, _), x(x({}, $, $ && w), h, typeof h == "string")),
|
|
6415
|
+
style: P
|
|
6416
6416
|
}), D);
|
|
6417
6417
|
}
|
|
6418
|
-
if (/* @__PURE__ */ T.isValidElement(V) &&
|
|
6418
|
+
if (/* @__PURE__ */ T.isValidElement(V) && Pl(V)) {
|
|
6419
6419
|
var A = Rl(V);
|
|
6420
6420
|
A || (V = /* @__PURE__ */ T.cloneElement(V, {
|
|
6421
6421
|
ref: D
|
|
@@ -6428,7 +6428,7 @@ function sh(e) {
|
|
|
6428
6428
|
return n.displayName = "CSSMotion", n;
|
|
6429
6429
|
}
|
|
6430
6430
|
const ch = sh(Ss);
|
|
6431
|
-
var ma = "add", va = "keep", pa = "remove",
|
|
6431
|
+
var ma = "add", va = "keep", pa = "remove", Mn = "removed";
|
|
6432
6432
|
function lh(e) {
|
|
6433
6433
|
var t;
|
|
6434
6434
|
return e && J(e) === "object" && "key" in e ? t = e : t = {
|
|
@@ -6445,13 +6445,13 @@ function uh() {
|
|
|
6445
6445
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], r = [], n = 0, a = t.length, i = ya(e), o = ya(t);
|
|
6446
6446
|
i.forEach(function(l) {
|
|
6447
6447
|
for (var u = !1, d = n; d < a; d += 1) {
|
|
6448
|
-
var
|
|
6449
|
-
if (
|
|
6448
|
+
var h = o[d];
|
|
6449
|
+
if (h.key === l.key) {
|
|
6450
6450
|
n < d && (r = r.concat(o.slice(n, d).map(function(p) {
|
|
6451
6451
|
return j(j({}, p), {}, {
|
|
6452
6452
|
status: ma
|
|
6453
6453
|
});
|
|
6454
|
-
})), n = d), r.push(j(j({},
|
|
6454
|
+
})), n = d), r.push(j(j({}, h), {}, {
|
|
6455
6455
|
status: va
|
|
6456
6456
|
})), n += 1, u = !0;
|
|
6457
6457
|
break;
|
|
@@ -6475,8 +6475,8 @@ function uh() {
|
|
|
6475
6475
|
});
|
|
6476
6476
|
return c.forEach(function(l) {
|
|
6477
6477
|
r = r.filter(function(u) {
|
|
6478
|
-
var d = u.key,
|
|
6479
|
-
return d !== l ||
|
|
6478
|
+
var d = u.key, h = u.status;
|
|
6479
|
+
return d !== l || h !== pa;
|
|
6480
6480
|
}), r.forEach(function(u) {
|
|
6481
6481
|
u.key === l && (u.status = va);
|
|
6482
6482
|
});
|
|
@@ -6496,39 +6496,39 @@ function gh(e) {
|
|
|
6496
6496
|
keyEntities: []
|
|
6497
6497
|
}), x(ne(o), "removeKey", function(u) {
|
|
6498
6498
|
o.setState(function(d) {
|
|
6499
|
-
var
|
|
6499
|
+
var h = d.keyEntities.map(function(p) {
|
|
6500
6500
|
return p.key !== u ? p : j(j({}, p), {}, {
|
|
6501
|
-
status:
|
|
6501
|
+
status: Mn
|
|
6502
6502
|
});
|
|
6503
6503
|
});
|
|
6504
6504
|
return {
|
|
6505
|
-
keyEntities:
|
|
6505
|
+
keyEntities: h
|
|
6506
6506
|
};
|
|
6507
6507
|
}, function() {
|
|
6508
|
-
var d = o.state.keyEntities,
|
|
6509
|
-
var
|
|
6510
|
-
return
|
|
6508
|
+
var d = o.state.keyEntities, h = d.filter(function(p) {
|
|
6509
|
+
var g = p.status;
|
|
6510
|
+
return g !== Mn;
|
|
6511
6511
|
}).length;
|
|
6512
|
-
|
|
6512
|
+
h === 0 && o.props.onAllRemoved && o.props.onAllRemoved();
|
|
6513
6513
|
});
|
|
6514
6514
|
}), o;
|
|
6515
6515
|
}
|
|
6516
6516
|
return Ge(i, [{
|
|
6517
6517
|
key: "render",
|
|
6518
6518
|
value: function() {
|
|
6519
|
-
var s = this, c = this.state.keyEntities, l = this.props, u = l.component, d = l.children,
|
|
6519
|
+
var s = this, c = this.state.keyEntities, l = this.props, u = l.component, d = l.children, h = l.onVisibleChanged;
|
|
6520
6520
|
l.onAllRemoved;
|
|
6521
|
-
var p = pt(l, dh),
|
|
6522
|
-
return hh.forEach(function(
|
|
6523
|
-
|
|
6524
|
-
}), delete p.keys, /* @__PURE__ */ T.createElement(
|
|
6525
|
-
var
|
|
6526
|
-
return /* @__PURE__ */ T.createElement(t, ct({},
|
|
6521
|
+
var p = pt(l, dh), g = u || T.Fragment, m = {};
|
|
6522
|
+
return hh.forEach(function(f) {
|
|
6523
|
+
m[f] = p[f], delete p[f];
|
|
6524
|
+
}), delete p.keys, /* @__PURE__ */ T.createElement(g, p, c.map(function(f, S) {
|
|
6525
|
+
var v = f.status, y = pt(f, fh), E = v === ma || v === va;
|
|
6526
|
+
return /* @__PURE__ */ T.createElement(t, ct({}, m, {
|
|
6527
6527
|
key: y.key,
|
|
6528
6528
|
visible: E,
|
|
6529
6529
|
eventProps: y,
|
|
6530
6530
|
onVisibleChanged: function(O) {
|
|
6531
|
-
|
|
6531
|
+
h?.(O, {
|
|
6532
6532
|
key: y.key
|
|
6533
6533
|
}), O || s.removeKey(y.key);
|
|
6534
6534
|
}
|
|
@@ -6542,14 +6542,14 @@ function gh(e) {
|
|
|
6542
6542
|
}], [{
|
|
6543
6543
|
key: "getDerivedStateFromProps",
|
|
6544
6544
|
value: function(s, c) {
|
|
6545
|
-
var l = s.keys, u = c.keyEntities, d = ya(l),
|
|
6545
|
+
var l = s.keys, u = c.keyEntities, d = ya(l), h = uh(u, d);
|
|
6546
6546
|
return {
|
|
6547
|
-
keyEntities:
|
|
6548
|
-
var
|
|
6549
|
-
var
|
|
6550
|
-
return p.key ===
|
|
6547
|
+
keyEntities: h.filter(function(p) {
|
|
6548
|
+
var g = u.find(function(m) {
|
|
6549
|
+
var f = m.key;
|
|
6550
|
+
return p.key === f;
|
|
6551
6551
|
});
|
|
6552
|
-
return !(
|
|
6552
|
+
return !(g && g.status === Mn && p.status === pa);
|
|
6553
6553
|
})
|
|
6554
6554
|
};
|
|
6555
6555
|
}
|
|
@@ -6617,21 +6617,21 @@ const _h = (e) => {
|
|
|
6617
6617
|
direction: l,
|
|
6618
6618
|
space: u,
|
|
6619
6619
|
splitter: d,
|
|
6620
|
-
virtual:
|
|
6620
|
+
virtual: h,
|
|
6621
6621
|
dropdownMatchSelectWidth: p,
|
|
6622
|
-
popupMatchSelectWidth:
|
|
6623
|
-
popupOverflow:
|
|
6624
|
-
legacyLocale:
|
|
6622
|
+
popupMatchSelectWidth: g,
|
|
6623
|
+
popupOverflow: m,
|
|
6624
|
+
legacyLocale: f,
|
|
6625
6625
|
parentContext: S,
|
|
6626
|
-
iconPrefixCls:
|
|
6626
|
+
iconPrefixCls: v,
|
|
6627
6627
|
theme: y,
|
|
6628
6628
|
componentDisabled: E,
|
|
6629
6629
|
segmented: C,
|
|
6630
6630
|
statistic: O,
|
|
6631
6631
|
spin: _,
|
|
6632
6632
|
calendar: F,
|
|
6633
|
-
carousel:
|
|
6634
|
-
cascader:
|
|
6633
|
+
carousel: P,
|
|
6634
|
+
cascader: M,
|
|
6635
6635
|
collapse: R,
|
|
6636
6636
|
typography: D,
|
|
6637
6637
|
checkbox: V,
|
|
@@ -6660,7 +6660,7 @@ const _h = (e) => {
|
|
|
6660
6660
|
switch: Ee,
|
|
6661
6661
|
transfer: Ue,
|
|
6662
6662
|
avatar: We,
|
|
6663
|
-
message:
|
|
6663
|
+
message: Me,
|
|
6664
6664
|
tag: we,
|
|
6665
6665
|
table: xe,
|
|
6666
6666
|
card: be,
|
|
@@ -6694,7 +6694,7 @@ const _h = (e) => {
|
|
|
6694
6694
|
return He;
|
|
6695
6695
|
const ht = ft || S.getPrefixCls("");
|
|
6696
6696
|
return Ne ? `${ht}-${Ne}` : ht;
|
|
6697
|
-
}, [S.getPrefixCls, e.prefixCls]), wr =
|
|
6697
|
+
}, [S.getPrefixCls, e.prefixCls]), wr = v || S.iconPrefixCls || Ia, $r = r || S.csp;
|
|
6698
6698
|
kf(wr, $r);
|
|
6699
6699
|
const Or = Wf(y, S.theme, {
|
|
6700
6700
|
prefixCls: Va("")
|
|
@@ -6705,13 +6705,13 @@ const _h = (e) => {
|
|
|
6705
6705
|
autoInsertSpaceInButton: n,
|
|
6706
6706
|
alert: a,
|
|
6707
6707
|
anchor: i,
|
|
6708
|
-
locale: s ||
|
|
6708
|
+
locale: s || f,
|
|
6709
6709
|
direction: l,
|
|
6710
6710
|
space: u,
|
|
6711
6711
|
splitter: d,
|
|
6712
|
-
virtual:
|
|
6713
|
-
popupMatchSelectWidth:
|
|
6714
|
-
popupOverflow:
|
|
6712
|
+
virtual: h,
|
|
6713
|
+
popupMatchSelectWidth: g ?? p,
|
|
6714
|
+
popupOverflow: m,
|
|
6715
6715
|
getPrefixCls: Va,
|
|
6716
6716
|
iconPrefixCls: wr,
|
|
6717
6717
|
theme: Or,
|
|
@@ -6719,8 +6719,8 @@ const _h = (e) => {
|
|
|
6719
6719
|
statistic: O,
|
|
6720
6720
|
spin: _,
|
|
6721
6721
|
calendar: F,
|
|
6722
|
-
carousel:
|
|
6723
|
-
cascader:
|
|
6722
|
+
carousel: P,
|
|
6723
|
+
cascader: M,
|
|
6724
6724
|
collapse: R,
|
|
6725
6725
|
typography: D,
|
|
6726
6726
|
checkbox: V,
|
|
@@ -6749,7 +6749,7 @@ const _h = (e) => {
|
|
|
6749
6749
|
switch: Ee,
|
|
6750
6750
|
transfer: Ue,
|
|
6751
6751
|
avatar: We,
|
|
6752
|
-
message:
|
|
6752
|
+
message: Me,
|
|
6753
6753
|
tag: we,
|
|
6754
6754
|
table: xe,
|
|
6755
6755
|
card: be,
|
|
@@ -6904,22 +6904,22 @@ const xh = (e) => {
|
|
|
6904
6904
|
}, a)), t && (a = /* @__PURE__ */ re.createElement(wh, null, a)), a;
|
|
6905
6905
|
};
|
|
6906
6906
|
var $h = { icon: { tag: "svg", attrs: { "fill-rule": "evenodd", viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" } }] }, name: "close-circle", theme: "filled" };
|
|
6907
|
-
function
|
|
6907
|
+
function Ms(e) {
|
|
6908
6908
|
var t;
|
|
6909
6909
|
return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
|
|
6910
6910
|
}
|
|
6911
6911
|
function Oh(e) {
|
|
6912
|
-
return
|
|
6912
|
+
return Ms(e) instanceof ShadowRoot;
|
|
6913
6913
|
}
|
|
6914
6914
|
function Th(e) {
|
|
6915
|
-
return Oh(e) ?
|
|
6915
|
+
return Oh(e) ? Ms(e) : null;
|
|
6916
6916
|
}
|
|
6917
6917
|
function Fh(e) {
|
|
6918
6918
|
return e.replace(/-(.)/g, function(t, r) {
|
|
6919
6919
|
return r.toUpperCase();
|
|
6920
6920
|
});
|
|
6921
6921
|
}
|
|
6922
|
-
function
|
|
6922
|
+
function Mh(e, t) {
|
|
6923
6923
|
$e(e, "[@ant-design/icons] ".concat(t));
|
|
6924
6924
|
}
|
|
6925
6925
|
function qi(e) {
|
|
@@ -6950,13 +6950,13 @@ function _a(e, t, r) {
|
|
|
6950
6950
|
return _a(n, "".concat(t, "-").concat(e.tag, "-").concat(a));
|
|
6951
6951
|
}));
|
|
6952
6952
|
}
|
|
6953
|
-
function
|
|
6953
|
+
function Ps(e) {
|
|
6954
6954
|
return yr(e)[0];
|
|
6955
6955
|
}
|
|
6956
6956
|
function Rs(e) {
|
|
6957
6957
|
return e ? Array.isArray(e) ? e : [e] : [];
|
|
6958
6958
|
}
|
|
6959
|
-
var
|
|
6959
|
+
var Ph = `
|
|
6960
6960
|
.anticon {
|
|
6961
6961
|
display: inline-flex;
|
|
6962
6962
|
align-items: center;
|
|
@@ -7012,12 +7012,12 @@ var Mh = `
|
|
|
7012
7012
|
}
|
|
7013
7013
|
}
|
|
7014
7014
|
`, Rh = function(t) {
|
|
7015
|
-
var r = vt(Aa), n = r.csp, a = r.prefixCls, i = r.layer, o =
|
|
7015
|
+
var r = vt(Aa), n = r.csp, a = r.prefixCls, i = r.layer, o = Ph;
|
|
7016
7016
|
a && (o = o.replace(/anticon/g, a)), i && (o = "@layer ".concat(i, ` {
|
|
7017
7017
|
`).concat(o, `
|
|
7018
7018
|
}`)), fe(function() {
|
|
7019
7019
|
var s = t.current, c = Th(s);
|
|
7020
|
-
|
|
7020
|
+
Mt(o, "@ant-design-icons", {
|
|
7021
7021
|
prepend: !i,
|
|
7022
7022
|
csp: n,
|
|
7023
7023
|
attachTo: c
|
|
@@ -7030,7 +7030,7 @@ var Mh = `
|
|
|
7030
7030
|
};
|
|
7031
7031
|
function Ih(e) {
|
|
7032
7032
|
var t = e.primaryColor, r = e.secondaryColor;
|
|
7033
|
-
ur.primaryColor = t, ur.secondaryColor = r ||
|
|
7033
|
+
ur.primaryColor = t, ur.secondaryColor = r || Ps(t), ur.calculated = !!r;
|
|
7034
7034
|
}
|
|
7035
7035
|
function Nh() {
|
|
7036
7036
|
return j({}, ur);
|
|
@@ -7039,8 +7039,8 @@ var tr = function(t) {
|
|
|
7039
7039
|
var r = t.icon, n = t.className, a = t.onClick, i = t.style, o = t.primaryColor, s = t.secondaryColor, c = pt(t, Ah), l = T.useRef(), u = ur;
|
|
7040
7040
|
if (o && (u = {
|
|
7041
7041
|
primaryColor: o,
|
|
7042
|
-
secondaryColor: s ||
|
|
7043
|
-
}), Rh(l),
|
|
7042
|
+
secondaryColor: s || Ps(o)
|
|
7043
|
+
}), Rh(l), Mh(qi(r), "icon should be icon definiton, but got ".concat(r)), !qi(r))
|
|
7044
7044
|
return null;
|
|
7045
7045
|
var d = r;
|
|
7046
7046
|
return d && typeof d.icon == "function" && (d = j(j({}, d), {}, {
|
|
@@ -7075,25 +7075,25 @@ function jh() {
|
|
|
7075
7075
|
var Vh = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
|
|
7076
7076
|
As(Jr.primary);
|
|
7077
7077
|
var un = /* @__PURE__ */ T.forwardRef(function(e, t) {
|
|
7078
|
-
var r = e.className, n = e.icon, a = e.spin, i = e.rotate, o = e.tabIndex, s = e.onClick, c = e.twoToneColor, l = pt(e, Vh), u = T.useContext(Aa), d = u.prefixCls,
|
|
7079
|
-
|
|
7080
|
-
var
|
|
7078
|
+
var r = e.className, n = e.icon, a = e.spin, i = e.rotate, o = e.tabIndex, s = e.onClick, c = e.twoToneColor, l = pt(e, Vh), u = T.useContext(Aa), d = u.prefixCls, h = d === void 0 ? "anticon" : d, p = u.rootClassName, g = Re(p, h, x(x({}, "".concat(h, "-").concat(n.name), !!n.name), "".concat(h, "-spin"), !!a || n.name === "loading"), r), m = o;
|
|
7079
|
+
m === void 0 && s && (m = -1);
|
|
7080
|
+
var f = i ? {
|
|
7081
7081
|
msTransform: "rotate(".concat(i, "deg)"),
|
|
7082
7082
|
transform: "rotate(".concat(i, "deg)")
|
|
7083
|
-
} : void 0, S = Rs(c),
|
|
7083
|
+
} : void 0, S = Rs(c), v = X(S, 2), y = v[0], E = v[1];
|
|
7084
7084
|
return /* @__PURE__ */ T.createElement("span", ct({
|
|
7085
7085
|
role: "img",
|
|
7086
7086
|
"aria-label": n.name
|
|
7087
7087
|
}, l, {
|
|
7088
7088
|
ref: t,
|
|
7089
|
-
tabIndex:
|
|
7089
|
+
tabIndex: m,
|
|
7090
7090
|
onClick: s,
|
|
7091
|
-
className:
|
|
7091
|
+
className: g
|
|
7092
7092
|
}), /* @__PURE__ */ T.createElement(tr, {
|
|
7093
7093
|
icon: n,
|
|
7094
7094
|
primaryColor: y,
|
|
7095
7095
|
secondaryColor: E,
|
|
7096
|
-
style:
|
|
7096
|
+
style: f
|
|
7097
7097
|
}));
|
|
7098
7098
|
});
|
|
7099
7099
|
un.displayName = "AntdIcon";
|
|
@@ -7224,35 +7224,35 @@ const js = (e) => {
|
|
|
7224
7224
|
paddingSM: l,
|
|
7225
7225
|
controlPaddingHorizontalSM: u,
|
|
7226
7226
|
controlPaddingHorizontal: d,
|
|
7227
|
-
colorFillAlter:
|
|
7227
|
+
colorFillAlter: h,
|
|
7228
7228
|
colorPrimaryHover: p,
|
|
7229
|
-
colorPrimary:
|
|
7230
|
-
controlOutlineWidth:
|
|
7231
|
-
controlOutline:
|
|
7229
|
+
colorPrimary: g,
|
|
7230
|
+
controlOutlineWidth: m,
|
|
7231
|
+
controlOutline: f,
|
|
7232
7232
|
colorErrorOutline: S,
|
|
7233
|
-
colorWarningOutline:
|
|
7233
|
+
colorWarningOutline: v,
|
|
7234
7234
|
colorBgContainer: y,
|
|
7235
7235
|
inputFontSize: E,
|
|
7236
7236
|
inputFontSizeLG: C,
|
|
7237
7237
|
inputFontSizeSM: O
|
|
7238
|
-
} = e, _ = E || r, F = O || _,
|
|
7238
|
+
} = e, _ = E || r, F = O || _, P = C || s, M = Math.round((t - _ * n) / 2 * 10) / 10 - a, R = Math.round((i - F * n) / 2 * 10) / 10 - a, D = Math.ceil((o - P * c) / 2 * 10) / 10 - a;
|
|
7239
7239
|
return {
|
|
7240
|
-
paddingBlock: Math.max(
|
|
7240
|
+
paddingBlock: Math.max(M, 0),
|
|
7241
7241
|
paddingBlockSM: Math.max(R, 0),
|
|
7242
7242
|
paddingBlockLG: Math.max(D, 0),
|
|
7243
7243
|
paddingInline: l - a,
|
|
7244
7244
|
paddingInlineSM: u - a,
|
|
7245
7245
|
paddingInlineLG: d - a,
|
|
7246
|
-
addonBg:
|
|
7247
|
-
activeBorderColor:
|
|
7246
|
+
addonBg: h,
|
|
7247
|
+
activeBorderColor: g,
|
|
7248
7248
|
hoverBorderColor: p,
|
|
7249
|
-
activeShadow: `0 0 0 ${
|
|
7250
|
-
errorActiveShadow: `0 0 0 ${
|
|
7251
|
-
warningActiveShadow: `0 0 0 ${
|
|
7249
|
+
activeShadow: `0 0 0 ${m}px ${f}`,
|
|
7250
|
+
errorActiveShadow: `0 0 0 ${m}px ${S}`,
|
|
7251
|
+
warningActiveShadow: `0 0 0 ${m}px ${v}`,
|
|
7252
7252
|
hoverBg: y,
|
|
7253
7253
|
activeBg: y,
|
|
7254
7254
|
inputFontSize: _,
|
|
7255
|
-
inputFontSizeLG:
|
|
7255
|
+
inputFontSizeLG: P,
|
|
7256
7256
|
inputFontSizeSM: F
|
|
7257
7257
|
};
|
|
7258
7258
|
}, Gh = (e) => ({
|
|
@@ -8187,21 +8187,21 @@ const zs = /* @__PURE__ */ ro((e, t) => {
|
|
|
8187
8187
|
suffix: l,
|
|
8188
8188
|
allowClear: u,
|
|
8189
8189
|
addonAfter: d,
|
|
8190
|
-
addonBefore:
|
|
8190
|
+
addonBefore: h,
|
|
8191
8191
|
className: p,
|
|
8192
|
-
style:
|
|
8193
|
-
styles:
|
|
8194
|
-
rootClassName:
|
|
8192
|
+
style: g,
|
|
8193
|
+
styles: m,
|
|
8194
|
+
rootClassName: f,
|
|
8195
8195
|
onChange: S,
|
|
8196
|
-
classNames:
|
|
8196
|
+
classNames: v,
|
|
8197
8197
|
variant: y
|
|
8198
8198
|
} = e, E = dg(e, ["prefixCls", "bordered", "status", "size", "disabled", "onBlur", "onFocus", "suffix", "allowClear", "addonAfter", "addonBefore", "className", "style", "styles", "rootClassName", "onChange", "classNames", "variant"]);
|
|
8199
8199
|
if (process.env.NODE_ENV !== "production") {
|
|
8200
8200
|
const {
|
|
8201
|
-
deprecated:
|
|
8201
|
+
deprecated: Me
|
|
8202
8202
|
} = Kt("Input");
|
|
8203
8203
|
[["bordered", "variant"], ["addonAfter", "Space.Compact"], ["addonBefore", "Space.Compact"]].forEach(([we, xe]) => {
|
|
8204
|
-
|
|
8204
|
+
Me(!(we in e), we, xe);
|
|
8205
8205
|
});
|
|
8206
8206
|
}
|
|
8207
8207
|
const {
|
|
@@ -8209,63 +8209,63 @@ const zs = /* @__PURE__ */ ro((e, t) => {
|
|
|
8209
8209
|
direction: O,
|
|
8210
8210
|
allowClear: _,
|
|
8211
8211
|
autoComplete: F,
|
|
8212
|
-
className:
|
|
8213
|
-
style:
|
|
8212
|
+
className: P,
|
|
8213
|
+
style: M,
|
|
8214
8214
|
classNames: R,
|
|
8215
8215
|
styles: D
|
|
8216
|
-
} = hf("input"), V = C("input", r), b = me(null), w = Hh(V), [$, A, I] = cg(V,
|
|
8216
|
+
} = hf("input"), V = C("input", r), b = me(null), w = Hh(V), [$, A, I] = cg(V, f), [L] = lg(V, w), {
|
|
8217
8217
|
compactSize: k,
|
|
8218
8218
|
compactItemClassnames: B
|
|
8219
|
-
} = Eh(V, O), H = xh((
|
|
8219
|
+
} = Eh(V, O), H = xh((Me) => {
|
|
8220
8220
|
var we;
|
|
8221
|
-
return (we = i ?? k) !== null && we !== void 0 ? we :
|
|
8221
|
+
return (we = i ?? k) !== null && we !== void 0 ? we : Me;
|
|
8222
8222
|
}), U = re.useContext(en), q = o ?? U, {
|
|
8223
8223
|
status: ee,
|
|
8224
8224
|
hasFeedback: le,
|
|
8225
8225
|
feedbackIcon: ie
|
|
8226
8226
|
} = vt(Qr), he = kh(ee, a), ue = ug(e) || !!le, oe = me(ue);
|
|
8227
8227
|
if (process.env.NODE_ENV !== "production") {
|
|
8228
|
-
const
|
|
8228
|
+
const Me = Kt("Input");
|
|
8229
8229
|
fe(() => {
|
|
8230
8230
|
var we;
|
|
8231
|
-
ue && !oe.current && process.env.NODE_ENV !== "production" &&
|
|
8231
|
+
ue && !oe.current && process.env.NODE_ENV !== "production" && Me(document.activeElement === ((we = b.current) === null || we === void 0 ? void 0 : we.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"), oe.current = ue;
|
|
8232
8232
|
}, [ue]);
|
|
8233
8233
|
}
|
|
8234
|
-
const ve = zh(b), Ce = (
|
|
8235
|
-
ve(), s?.(
|
|
8236
|
-
}, Oe = (
|
|
8237
|
-
ve(), c?.(
|
|
8238
|
-
}, W = (
|
|
8239
|
-
ve(), S?.(
|
|
8234
|
+
const ve = zh(b), Ce = (Me) => {
|
|
8235
|
+
ve(), s?.(Me);
|
|
8236
|
+
}, Oe = (Me) => {
|
|
8237
|
+
ve(), c?.(Me);
|
|
8238
|
+
}, W = (Me) => {
|
|
8239
|
+
ve(), S?.(Me);
|
|
8240
8240
|
}, Ie = (le || l) && /* @__PURE__ */ re.createElement(re.Fragment, null, l, le && ie), Ee = Dh(u ?? _), [Ue, We] = Bh("input", y, n);
|
|
8241
8241
|
return $(L(/* @__PURE__ */ re.createElement(Cl, Object.assign({
|
|
8242
|
-
ref:
|
|
8242
|
+
ref: Ml(t, b),
|
|
8243
8243
|
prefixCls: V,
|
|
8244
8244
|
autoComplete: F
|
|
8245
8245
|
}, E, {
|
|
8246
8246
|
disabled: q,
|
|
8247
8247
|
onBlur: Ce,
|
|
8248
8248
|
onFocus: Oe,
|
|
8249
|
-
style: Object.assign(Object.assign({},
|
|
8250
|
-
styles: Object.assign(Object.assign({}, D),
|
|
8249
|
+
style: Object.assign(Object.assign({}, M), g),
|
|
8250
|
+
styles: Object.assign(Object.assign({}, D), m),
|
|
8251
8251
|
suffix: Ie,
|
|
8252
8252
|
allowClear: Ee,
|
|
8253
|
-
className: Re(p,
|
|
8253
|
+
className: Re(p, f, I, w, B, P),
|
|
8254
8254
|
onChange: W,
|
|
8255
|
-
addonBefore:
|
|
8255
|
+
addonBefore: h && /* @__PURE__ */ re.createElement(Ui, {
|
|
8256
8256
|
form: !0,
|
|
8257
8257
|
space: !0
|
|
8258
|
-
},
|
|
8258
|
+
}, h),
|
|
8259
8259
|
addonAfter: d && /* @__PURE__ */ re.createElement(Ui, {
|
|
8260
8260
|
form: !0,
|
|
8261
8261
|
space: !0
|
|
8262
8262
|
}, d),
|
|
8263
|
-
classNames: Object.assign(Object.assign(Object.assign({},
|
|
8263
|
+
classNames: Object.assign(Object.assign(Object.assign({}, v), R), {
|
|
8264
8264
|
input: Re({
|
|
8265
8265
|
[`${V}-sm`]: H === "small",
|
|
8266
8266
|
[`${V}-lg`]: H === "large",
|
|
8267
8267
|
[`${V}-rtl`]: O === "rtl"
|
|
8268
|
-
},
|
|
8268
|
+
}, v?.input, R.input, A),
|
|
8269
8269
|
variant: Re({
|
|
8270
8270
|
[`${V}-${Ue}`]: We
|
|
8271
8271
|
}, Ki(V, he)),
|
|
@@ -8325,21 +8325,21 @@ function hg({ search: e, onSelectChat: t, selectedChatId: r }) {
|
|
|
8325
8325
|
const s = De(
|
|
8326
8326
|
(d) => !d || !o ? null : d.chat_id === o || d.from?.id === o ? "self" : "companion",
|
|
8327
8327
|
[o]
|
|
8328
|
-
), c = De((d,
|
|
8328
|
+
), c = De((d, h, p = !1) => {
|
|
8329
8329
|
if (p) return "Сохранённое";
|
|
8330
|
-
const
|
|
8331
|
-
return `${
|
|
8332
|
-
}, []), l = (d,
|
|
8333
|
-
const d = e.toLowerCase(), p = a.filter((
|
|
8334
|
-
if (
|
|
8330
|
+
const g = h === "self" ? d?.to : d?.from;
|
|
8331
|
+
return `${g?.surname ?? ""} ${g?.name ?? ""}`.trim();
|
|
8332
|
+
}, []), l = (d, h = 100) => d.length <= h ? d : d.substring(0, h) + "...", u = Ft(() => {
|
|
8333
|
+
const d = e.toLowerCase(), p = a.filter((m) => {
|
|
8334
|
+
if (m?.to?.id === o && m?.from?.id === o)
|
|
8335
8335
|
return !0;
|
|
8336
|
-
const
|
|
8337
|
-
return
|
|
8338
|
-
}).sort((
|
|
8339
|
-
const S =
|
|
8340
|
-
return (
|
|
8341
|
-
}),
|
|
8342
|
-
return
|
|
8336
|
+
const f = s(m), S = c(m, f, !1), v = m?.text?.toLowerCase() || "";
|
|
8337
|
+
return m && (S.toLowerCase().includes(d) || v.includes(d));
|
|
8338
|
+
}).sort((m, f) => {
|
|
8339
|
+
const S = m.updated_at || m.created_at;
|
|
8340
|
+
return (f.updated_at || f.created_at) - S;
|
|
8341
|
+
}), g = p.findIndex((m) => o && m.from.id && m.to.id && +m.from.id == +o && +m.to.id == +o);
|
|
8342
|
+
return g !== -1 && p.splice(g, 1), p.unshift({
|
|
8343
8343
|
id: 0,
|
|
8344
8344
|
chat_id: o,
|
|
8345
8345
|
from: { id: o, name: "Вы", surname: "" },
|
|
@@ -8352,24 +8352,24 @@ function hg({ search: e, onSelectChat: t, selectedChatId: r }) {
|
|
|
8352
8352
|
files: []
|
|
8353
8353
|
}), p;
|
|
8354
8354
|
}, [a, e, o, s, c]);
|
|
8355
|
-
return /* @__PURE__ */ N("div", { className: K["chat-list__container"], children: /* @__PURE__ */ N("ul", { className: K["chat-list"], children: u.map((d,
|
|
8356
|
-
const p = s(d),
|
|
8355
|
+
return /* @__PURE__ */ N("div", { className: K["chat-list__container"], children: /* @__PURE__ */ N("ul", { className: K["chat-list"], children: u.map((d, h) => {
|
|
8356
|
+
const p = s(d), g = c(d, p, d.chat_id === o), m = d.chat_id === r, f = d.text;
|
|
8357
8357
|
return /* @__PURE__ */ N("div", { children: /* @__PURE__ */ Fe(
|
|
8358
8358
|
"li",
|
|
8359
8359
|
{
|
|
8360
|
-
className: `${K.chatItem} ${
|
|
8360
|
+
className: `${K.chatItem} ${m ? K.activeChatItem : ""}`,
|
|
8361
8361
|
onClick: () => {
|
|
8362
8362
|
t(d.chat_id ?? null);
|
|
8363
8363
|
},
|
|
8364
8364
|
children: [
|
|
8365
8365
|
/* @__PURE__ */ Fe("div", { children: [
|
|
8366
|
-
/* @__PURE__ */ N("div", { className: K.companionName, children:
|
|
8367
|
-
/* @__PURE__ */ N("div", { className: K["last-message"], children: l(
|
|
8366
|
+
/* @__PURE__ */ N("div", { className: K.companionName, children: g || "Неизвестный" }),
|
|
8367
|
+
/* @__PURE__ */ N("div", { className: K["last-message"], children: l(f, 50) })
|
|
8368
8368
|
] }),
|
|
8369
8369
|
/* @__PURE__ */ N(tc, { count: d.count_unread })
|
|
8370
8370
|
]
|
|
8371
8371
|
}
|
|
8372
|
-
) }, `chat-${d.chat_id}-${
|
|
8372
|
+
) }, `chat-${d.chat_id}-${h}`);
|
|
8373
8373
|
}) }) });
|
|
8374
8374
|
}
|
|
8375
8375
|
function gg({ draggable: e, setDraggable: t, position: r, setPosition: n }) {
|
|
@@ -8450,7 +8450,7 @@ function yg() {
|
|
|
8450
8450
|
(function(r, n) {
|
|
8451
8451
|
e.exports = n();
|
|
8452
8452
|
})(pg, (function() {
|
|
8453
|
-
var r = 1e3, n = 6e4, a = 36e5, i = "millisecond", o = "second", s = "minute", c = "hour", l = "day", u = "week", d = "month",
|
|
8453
|
+
var r = 1e3, n = 6e4, a = 36e5, i = "millisecond", o = "second", s = "minute", c = "hour", l = "day", u = "week", d = "month", h = "quarter", p = "year", g = "date", m = "Invalid Date", f = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, S = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, v = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(b) {
|
|
8454
8454
|
var w = ["th", "st", "nd", "rd"], $ = b % 100;
|
|
8455
8455
|
return "[" + b + (w[($ - 20) % 10] || w[$] || w[0]) + "]";
|
|
8456
8456
|
} }, y = function(b, w, $) {
|
|
@@ -8466,14 +8466,14 @@ function yg() {
|
|
|
8466
8466
|
}, a: function(b) {
|
|
8467
8467
|
return b < 0 ? Math.ceil(b) || 0 : Math.floor(b);
|
|
8468
8468
|
}, p: function(b) {
|
|
8469
|
-
return { M: d, y: p, w: u, d: l, D:
|
|
8469
|
+
return { M: d, y: p, w: u, d: l, D: g, h: c, m: s, s: o, ms: i, Q: h }[b] || String(b || "").toLowerCase().replace(/s$/, "");
|
|
8470
8470
|
}, u: function(b) {
|
|
8471
8471
|
return b === void 0;
|
|
8472
8472
|
} }, C = "en", O = {};
|
|
8473
|
-
O[C] =
|
|
8473
|
+
O[C] = v;
|
|
8474
8474
|
var _ = "$isDayjsObject", F = function(b) {
|
|
8475
8475
|
return b instanceof D || !(!b || !b[_]);
|
|
8476
|
-
},
|
|
8476
|
+
}, P = function b(w, $, A) {
|
|
8477
8477
|
var I;
|
|
8478
8478
|
if (!w) return C;
|
|
8479
8479
|
if (typeof w == "string") {
|
|
@@ -8486,17 +8486,17 @@ function yg() {
|
|
|
8486
8486
|
O[B] = w, I = B;
|
|
8487
8487
|
}
|
|
8488
8488
|
return !A && I && (C = I), I || !A && C;
|
|
8489
|
-
},
|
|
8489
|
+
}, M = function(b, w) {
|
|
8490
8490
|
if (F(b)) return b.clone();
|
|
8491
8491
|
var $ = typeof w == "object" ? w : {};
|
|
8492
8492
|
return $.date = b, $.args = arguments, new D($);
|
|
8493
8493
|
}, R = E;
|
|
8494
|
-
R.l =
|
|
8495
|
-
return
|
|
8494
|
+
R.l = P, R.i = F, R.w = function(b, w) {
|
|
8495
|
+
return M(b, { locale: w.$L, utc: w.$u, x: w.$x, $offset: w.$offset });
|
|
8496
8496
|
};
|
|
8497
8497
|
var D = (function() {
|
|
8498
8498
|
function b($) {
|
|
8499
|
-
this.$L =
|
|
8499
|
+
this.$L = P($.locale, null, !0), this.parse($), this.$x = this.$x || $.x || {}, this[_] = !0;
|
|
8500
8500
|
}
|
|
8501
8501
|
var w = b.prototype;
|
|
8502
8502
|
return w.parse = function($) {
|
|
@@ -8506,7 +8506,7 @@ function yg() {
|
|
|
8506
8506
|
if (R.u(I)) return /* @__PURE__ */ new Date();
|
|
8507
8507
|
if (I instanceof Date) return new Date(I);
|
|
8508
8508
|
if (typeof I == "string" && !/Z$/i.test(I)) {
|
|
8509
|
-
var k = I.match(
|
|
8509
|
+
var k = I.match(f);
|
|
8510
8510
|
if (k) {
|
|
8511
8511
|
var B = k[2] - 1 || 0, H = (k[7] || "0").substring(0, 3);
|
|
8512
8512
|
return L ? new Date(Date.UTC(k[1], B, k[3] || 1, k[4] || 0, k[5] || 0, k[6] || 0, H)) : new Date(k[1], B, k[3] || 1, k[4] || 0, k[5] || 0, k[6] || 0, H);
|
|
@@ -8520,14 +8520,14 @@ function yg() {
|
|
|
8520
8520
|
}, w.$utils = function() {
|
|
8521
8521
|
return R;
|
|
8522
8522
|
}, w.isValid = function() {
|
|
8523
|
-
return this.$d.toString() !==
|
|
8523
|
+
return this.$d.toString() !== m;
|
|
8524
8524
|
}, w.isSame = function($, A) {
|
|
8525
|
-
var I =
|
|
8525
|
+
var I = M($);
|
|
8526
8526
|
return this.startOf(A) <= I && I <= this.endOf(A);
|
|
8527
8527
|
}, w.isAfter = function($, A) {
|
|
8528
|
-
return
|
|
8528
|
+
return M($) < this.startOf(A);
|
|
8529
8529
|
}, w.isBefore = function($, A) {
|
|
8530
|
-
return this.endOf(A) <
|
|
8530
|
+
return this.endOf(A) < M($);
|
|
8531
8531
|
}, w.$g = function($, A, I) {
|
|
8532
8532
|
return R.u($) ? this[A] : this.set(I, $);
|
|
8533
8533
|
}, w.unix = function() {
|
|
@@ -8550,7 +8550,7 @@ function yg() {
|
|
|
8550
8550
|
var ie = this.$locale().weekStart || 0, he = (U < ie ? U + 7 : U) - ie;
|
|
8551
8551
|
return B(L ? ee - he : ee + (6 - he), q);
|
|
8552
8552
|
case l:
|
|
8553
|
-
case
|
|
8553
|
+
case g:
|
|
8554
8554
|
return H(le + "Hours", 0);
|
|
8555
8555
|
case c:
|
|
8556
8556
|
return H(le + "Minutes", 1);
|
|
@@ -8564,10 +8564,10 @@ function yg() {
|
|
|
8564
8564
|
}, w.endOf = function($) {
|
|
8565
8565
|
return this.startOf($, !1);
|
|
8566
8566
|
}, w.$set = function($, A) {
|
|
8567
|
-
var I, L = R.p($), k = "set" + (this.$u ? "UTC" : ""), B = (I = {}, I[l] = k + "Date", I[
|
|
8567
|
+
var I, L = R.p($), k = "set" + (this.$u ? "UTC" : ""), B = (I = {}, I[l] = k + "Date", I[g] = k + "Date", I[d] = k + "Month", I[p] = k + "FullYear", I[c] = k + "Hours", I[s] = k + "Minutes", I[o] = k + "Seconds", I[i] = k + "Milliseconds", I)[L], H = L === l ? this.$D + (A - this.$W) : A;
|
|
8568
8568
|
if (L === d || L === p) {
|
|
8569
|
-
var U = this.clone().set(
|
|
8570
|
-
U.$d[B](H), U.init(), this.$d = U.set(
|
|
8569
|
+
var U = this.clone().set(g, 1);
|
|
8570
|
+
U.$d[B](H), U.init(), this.$d = U.set(g, Math.min(this.$D, U.daysInMonth())).$d;
|
|
8571
8571
|
} else B && this.$d[B](H);
|
|
8572
8572
|
return this.init(), this;
|
|
8573
8573
|
}, w.set = function($, A) {
|
|
@@ -8578,7 +8578,7 @@ function yg() {
|
|
|
8578
8578
|
var I, L = this;
|
|
8579
8579
|
$ = Number($);
|
|
8580
8580
|
var k = R.p(A), B = function(q) {
|
|
8581
|
-
var ee =
|
|
8581
|
+
var ee = M(L);
|
|
8582
8582
|
return R.w(ee.date(ee.date() + Math.round(q * $)), L);
|
|
8583
8583
|
};
|
|
8584
8584
|
if (k === d) return this.set(d, this.$M + $);
|
|
@@ -8591,7 +8591,7 @@ function yg() {
|
|
|
8591
8591
|
return this.add(-1 * $, A);
|
|
8592
8592
|
}, w.format = function($) {
|
|
8593
8593
|
var A = this, I = this.$locale();
|
|
8594
|
-
if (!this.isValid()) return I.invalidDate ||
|
|
8594
|
+
if (!this.isValid()) return I.invalidDate || m;
|
|
8595
8595
|
var L = $ || "YYYY-MM-DDTHH:mm:ssZ", k = R.z(this), B = this.$H, H = this.$m, U = this.$M, q = I.weekdays, ee = I.months, le = I.meridiem, ie = function(oe, ve, Ce, Oe) {
|
|
8596
8596
|
return oe && (oe[ve] || oe(A, L)) || Ce[ve].slice(0, Oe);
|
|
8597
8597
|
}, he = function(oe) {
|
|
@@ -8658,7 +8658,7 @@ function yg() {
|
|
|
8658
8658
|
}, w.utcOffset = function() {
|
|
8659
8659
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
8660
8660
|
}, w.diff = function($, A, I) {
|
|
8661
|
-
var L, k = this, B = R.p(A), H =
|
|
8661
|
+
var L, k = this, B = R.p(A), H = M($), U = (H.utcOffset() - this.utcOffset()) * n, q = this - H, ee = function() {
|
|
8662
8662
|
return R.m(k, H);
|
|
8663
8663
|
};
|
|
8664
8664
|
switch (B) {
|
|
@@ -8668,7 +8668,7 @@ function yg() {
|
|
|
8668
8668
|
case d:
|
|
8669
8669
|
L = ee();
|
|
8670
8670
|
break;
|
|
8671
|
-
case
|
|
8671
|
+
case h:
|
|
8672
8672
|
L = ee() / 3;
|
|
8673
8673
|
break;
|
|
8674
8674
|
case u:
|
|
@@ -8696,7 +8696,7 @@ function yg() {
|
|
|
8696
8696
|
return O[this.$L];
|
|
8697
8697
|
}, w.locale = function($, A) {
|
|
8698
8698
|
if (!$) return this.$L;
|
|
8699
|
-
var I = this.clone(), L =
|
|
8699
|
+
var I = this.clone(), L = P($, A, !0);
|
|
8700
8700
|
return L && (I.$L = L), I;
|
|
8701
8701
|
}, w.clone = function() {
|
|
8702
8702
|
return R.w(this.$d, this);
|
|
@@ -8710,15 +8710,15 @@ function yg() {
|
|
|
8710
8710
|
return this.$d.toUTCString();
|
|
8711
8711
|
}, b;
|
|
8712
8712
|
})(), V = D.prototype;
|
|
8713
|
-
return
|
|
8713
|
+
return M.prototype = V, [["$ms", i], ["$s", o], ["$m", s], ["$H", c], ["$W", l], ["$M", d], ["$y", p], ["$D", g]].forEach((function(b) {
|
|
8714
8714
|
V[b[1]] = function(w) {
|
|
8715
8715
|
return this.$g(w, b[0], b[1]);
|
|
8716
8716
|
};
|
|
8717
|
-
})),
|
|
8718
|
-
return b.$i || (b(w, D,
|
|
8719
|
-
},
|
|
8720
|
-
return
|
|
8721
|
-
},
|
|
8717
|
+
})), M.extend = function(b, w) {
|
|
8718
|
+
return b.$i || (b(w, D, M), b.$i = !0), M;
|
|
8719
|
+
}, M.locale = P, M.isDayjs = F, M.unix = function(b) {
|
|
8720
|
+
return M(1e3 * b);
|
|
8721
|
+
}, M.en = O[C], M.Ls = O, M.p = {}, M;
|
|
8722
8722
|
}));
|
|
8723
8723
|
})(Gr)), Gr.exports;
|
|
8724
8724
|
}
|
|
@@ -8729,15 +8729,15 @@ function Sg({ onSend: e }) {
|
|
|
8729
8729
|
const p = t.trim();
|
|
8730
8730
|
!p && i.length === 0 || (e(p, i), r(""), o([]));
|
|
8731
8731
|
}, [t, i, e]), c = De((p) => {
|
|
8732
|
-
r((
|
|
8732
|
+
r((g) => g + p.emoji), a(!1);
|
|
8733
8733
|
}, []), l = De(
|
|
8734
8734
|
(p) => {
|
|
8735
8735
|
if (p.key === "Enter" && p.shiftKey) {
|
|
8736
8736
|
p.preventDefault();
|
|
8737
|
-
const
|
|
8738
|
-
` + t.substring(
|
|
8737
|
+
const g = p.currentTarget, { selectionStart: m, selectionEnd: f } = g, S = t.substring(0, m) + `
|
|
8738
|
+
` + t.substring(f);
|
|
8739
8739
|
r(S), setTimeout(() => {
|
|
8740
|
-
|
|
8740
|
+
g.selectionStart = g.selectionEnd = m + 1;
|
|
8741
8741
|
}, 0);
|
|
8742
8742
|
} else p.key === "Enter" && !p.shiftKey && (p.preventDefault(), s());
|
|
8743
8743
|
},
|
|
@@ -8745,9 +8745,9 @@ function Sg({ onSend: e }) {
|
|
|
8745
8745
|
), u = De(({ fileList: p }) => {
|
|
8746
8746
|
o(p);
|
|
8747
8747
|
}, []), d = (p) => {
|
|
8748
|
-
const
|
|
8749
|
-
|
|
8750
|
-
},
|
|
8748
|
+
const g = i.indexOf(p), m = i.slice();
|
|
8749
|
+
m.splice(g, 1), o(m);
|
|
8750
|
+
}, h = De(() => !1, []);
|
|
8751
8751
|
return /* @__PURE__ */ Fe("div", { className: K.chat_inputs, children: [
|
|
8752
8752
|
/* @__PURE__ */ N(
|
|
8753
8753
|
sr,
|
|
@@ -8757,7 +8757,7 @@ function Sg({ onSend: e }) {
|
|
|
8757
8757
|
{
|
|
8758
8758
|
fileList: i,
|
|
8759
8759
|
onChange: u,
|
|
8760
|
-
beforeUpload:
|
|
8760
|
+
beforeUpload: h,
|
|
8761
8761
|
onRemove: d,
|
|
8762
8762
|
multiple: !0,
|
|
8763
8763
|
showUploadList: !0,
|
|
@@ -8871,44 +8871,55 @@ const Eg = ({
|
|
|
8871
8871
|
containerRef: n,
|
|
8872
8872
|
markMessagesAsRead: a
|
|
8873
8873
|
}) => {
|
|
8874
|
-
const i = me(null), o = me(/* @__PURE__ */ new Set());
|
|
8874
|
+
const i = me(null), o = me(/* @__PURE__ */ new Set()), s = me(r);
|
|
8875
8875
|
fe(() => {
|
|
8876
|
-
|
|
8877
|
-
|
|
8878
|
-
|
|
8879
|
-
|
|
8880
|
-
|
|
8881
|
-
|
|
8882
|
-
|
|
8883
|
-
|
|
8884
|
-
|
|
8885
|
-
|
|
8876
|
+
const c = n?.current;
|
|
8877
|
+
if (!e.length || !a || !c || !t) return;
|
|
8878
|
+
s.current !== r && (o.current.clear(), s.current = r), i.current?.disconnect(), i.current = null;
|
|
8879
|
+
const l = (h) => {
|
|
8880
|
+
const p = h.getBoundingClientRect(), g = c.getBoundingClientRect();
|
|
8881
|
+
return p.bottom > g.top && p.top < g.bottom + 100;
|
|
8882
|
+
}, u = (h) => {
|
|
8883
|
+
const p = h.filter((g) => o.current.has(g) ? !1 : (o.current.add(g), !0));
|
|
8884
|
+
p.length > 0 && a(p);
|
|
8885
|
+
}, d = setTimeout(() => {
|
|
8886
|
+
const h = e.filter((g) => g.type !== "divider" && g.message).filter((g) => {
|
|
8887
|
+
const m = g.message?.fromId;
|
|
8888
|
+
return m !== void 0 && +m != +t;
|
|
8889
|
+
}).filter((g) => !g.message?.status).map((g) => {
|
|
8890
|
+
const m = g.message?.id;
|
|
8891
|
+
if (!m) return null;
|
|
8892
|
+
const f = c.querySelector(`[data-message-id="${m}"]`);
|
|
8893
|
+
return f ? { id: m, element: f } : null;
|
|
8886
8894
|
}).filter(
|
|
8887
|
-
(
|
|
8895
|
+
(g) => g !== null
|
|
8888
8896
|
);
|
|
8889
|
-
if (
|
|
8890
|
-
|
|
8891
|
-
(
|
|
8892
|
-
|
|
8893
|
-
|
|
8897
|
+
if (h.length === 0) return;
|
|
8898
|
+
u(
|
|
8899
|
+
h.filter(({ element: g }) => l(g)).map(({ id: g }) => g)
|
|
8900
|
+
);
|
|
8901
|
+
const p = new IntersectionObserver(
|
|
8902
|
+
(g) => {
|
|
8903
|
+
const m = [];
|
|
8904
|
+
g.forEach((f) => {
|
|
8894
8905
|
if (f.isIntersecting) {
|
|
8895
|
-
const
|
|
8896
|
-
o.current.has(v) || (
|
|
8906
|
+
const S = f.target, v = Number(S.dataset.messageId);
|
|
8907
|
+
o.current.has(v) || (m.push(v), o.current.add(v), p.unobserve(S));
|
|
8897
8908
|
}
|
|
8898
|
-
}),
|
|
8909
|
+
}), m.length > 0 && a(m);
|
|
8899
8910
|
},
|
|
8900
8911
|
{
|
|
8901
|
-
root:
|
|
8912
|
+
root: c,
|
|
8902
8913
|
threshold: 0.3,
|
|
8903
8914
|
rootMargin: "0px 0px 100px 0px"
|
|
8904
8915
|
}
|
|
8905
8916
|
);
|
|
8906
|
-
i.current =
|
|
8917
|
+
i.current = p, h.forEach(({ element: g }) => p.observe(g));
|
|
8907
8918
|
}, 0);
|
|
8908
|
-
return () =>
|
|
8909
|
-
|
|
8910
|
-
|
|
8911
|
-
}, [r]);
|
|
8919
|
+
return () => {
|
|
8920
|
+
clearTimeout(d), i.current?.disconnect(), i.current = null;
|
|
8921
|
+
};
|
|
8922
|
+
}, [e, t, r, n, a]);
|
|
8912
8923
|
}, wg = ({
|
|
8913
8924
|
containerRef: e,
|
|
8914
8925
|
fetchMoreMessages: t,
|
|
@@ -8920,44 +8931,44 @@ const Eg = ({
|
|
|
8920
8931
|
const c = e.current;
|
|
8921
8932
|
if (!c || !t) return;
|
|
8922
8933
|
const l = new IntersectionObserver(
|
|
8923
|
-
(
|
|
8924
|
-
const
|
|
8925
|
-
if (
|
|
8926
|
-
const
|
|
8927
|
-
i.current = u(
|
|
8934
|
+
(g) => {
|
|
8935
|
+
const m = g.filter((f) => f.isIntersecting).sort((f, S) => f.boundingClientRect.top - S.boundingClientRect.top);
|
|
8936
|
+
if (m.length > 0) {
|
|
8937
|
+
const f = m[0].target;
|
|
8938
|
+
i.current = u(f), o.current = f.offsetTop, s.current = c.scrollTop;
|
|
8928
8939
|
}
|
|
8929
8940
|
},
|
|
8930
8941
|
{ root: c, threshold: 0 }
|
|
8931
|
-
), u = (
|
|
8932
|
-
c.querySelectorAll(".message").forEach((
|
|
8942
|
+
), u = (g) => g.dataset.id, d = () => {
|
|
8943
|
+
c.querySelectorAll(".message").forEach((m) => l.observe(m));
|
|
8933
8944
|
};
|
|
8934
8945
|
d();
|
|
8935
|
-
const
|
|
8936
|
-
const
|
|
8937
|
-
if (
|
|
8938
|
-
const S =
|
|
8939
|
-
(
|
|
8946
|
+
const h = (g, m = 2e3) => {
|
|
8947
|
+
const f = Array.from(g.querySelectorAll("img"));
|
|
8948
|
+
if (f.length === 0) return Promise.resolve();
|
|
8949
|
+
const S = f.filter((v) => !v.complete).map(
|
|
8950
|
+
(v) => new Promise((y) => {
|
|
8940
8951
|
const E = () => {
|
|
8941
|
-
|
|
8952
|
+
v.removeEventListener("load", E), v.removeEventListener("error", E), y();
|
|
8942
8953
|
};
|
|
8943
|
-
|
|
8954
|
+
v.addEventListener("load", E), v.addEventListener("error", E);
|
|
8944
8955
|
})
|
|
8945
8956
|
);
|
|
8946
8957
|
return S.length === 0 ? Promise.resolve() : Promise.race([
|
|
8947
8958
|
Promise.all(S),
|
|
8948
|
-
new Promise((
|
|
8959
|
+
new Promise((v) => setTimeout(v, m))
|
|
8949
8960
|
]);
|
|
8950
8961
|
}, p = async () => {
|
|
8951
8962
|
if (a.current || !r || c.scrollTop > n) return;
|
|
8952
8963
|
a.current = !0;
|
|
8953
|
-
const
|
|
8954
|
-
t(), await
|
|
8964
|
+
const g = i.current, m = o.current, f = s.current ?? c.scrollTop, S = c.scrollHeight;
|
|
8965
|
+
t(), await h(c, 200), requestAnimationFrame(() => {
|
|
8955
8966
|
requestAnimationFrame(() => {
|
|
8956
|
-
if (
|
|
8957
|
-
const
|
|
8967
|
+
if (g != null) {
|
|
8968
|
+
const v = c.scrollHeight, y = `.message[data-id="${g}"]`, E = c.querySelector(y);
|
|
8958
8969
|
if (E) {
|
|
8959
|
-
const O = E.offsetTop - (
|
|
8960
|
-
c.scrollTop = (
|
|
8970
|
+
const O = E.offsetTop - (m || 0), _ = v - S;
|
|
8971
|
+
c.scrollTop = (f || 0) + (O || _);
|
|
8961
8972
|
}
|
|
8962
8973
|
}
|
|
8963
8974
|
l.disconnect(), d(), a.current = !1;
|
|
@@ -8996,7 +9007,7 @@ function Og({ chatId: e }) {
|
|
|
8996
9007
|
who: "",
|
|
8997
9008
|
messages: [],
|
|
8998
9009
|
total: 0
|
|
8999
|
-
}), [d,
|
|
9010
|
+
}), [d, h] = Z(!0), [p, g] = Z(!1), [m, f] = Z(!1), S = De((b) => ({
|
|
9000
9011
|
fromId: b.from_id,
|
|
9001
9012
|
id: b.id,
|
|
9002
9013
|
text: b.text,
|
|
@@ -9008,22 +9019,22 @@ function Og({ chatId: e }) {
|
|
|
9008
9019
|
isSending: b.isSending || !1,
|
|
9009
9020
|
status: b.status || !1,
|
|
9010
9021
|
_raw: b
|
|
9011
|
-
}), [l.who, i]),
|
|
9022
|
+
}), [l.who, i]), v = Ft(() => {
|
|
9012
9023
|
const b = [...l.messages], w = /* @__PURE__ */ new Set();
|
|
9013
9024
|
return b.filter((A) => {
|
|
9014
9025
|
const I = A.id;
|
|
9015
9026
|
return w.has(I?.toString()) ? !1 : (w.add(I?.toString()), !0);
|
|
9016
9027
|
}).map(S);
|
|
9017
9028
|
}, [l, S]), y = Ft(() => {
|
|
9018
|
-
if (!
|
|
9019
|
-
const b =
|
|
9029
|
+
if (!v || v.length === 0) return [];
|
|
9030
|
+
const b = v.length > 1 && Number(v[0].timestamp) > Number(v[v.length - 1].timestamp), w = b ? [...v].slice().reverse() : [...v], $ = [];
|
|
9020
9031
|
let A = null;
|
|
9021
9032
|
for (const I of w) {
|
|
9022
9033
|
const L = Rt(Number(I.timestamp) * 1e3).format("DD.MM.YY");
|
|
9023
9034
|
A !== L && ($.push({ type: "divider", id: `divider-${L}`, timestamp: I.timestamp }), A = L), $.push({ type: "msg", id: I.id.toString(), message: I });
|
|
9024
9035
|
}
|
|
9025
9036
|
return b ? $.slice().reverse() : $;
|
|
9026
|
-
}, [
|
|
9037
|
+
}, [v]), E = Ft(() => i ? v.filter((b) => !b.status && +b.fromId != +i)?.length : [], [v, i]), {
|
|
9027
9038
|
/* info */
|
|
9028
9039
|
chats: C,
|
|
9029
9040
|
// [] - список чатов
|
|
@@ -9034,9 +9045,9 @@ function Og({ chatId: e }) {
|
|
|
9034
9045
|
/* methods */
|
|
9035
9046
|
fetchChatMessages: F,
|
|
9036
9047
|
// подгрузить чат с сообщениями
|
|
9037
|
-
sendSms:
|
|
9048
|
+
sendSms: P,
|
|
9038
9049
|
// отправить сообщение
|
|
9039
|
-
markMessagesAsRead:
|
|
9050
|
+
markMessagesAsRead: M,
|
|
9040
9051
|
userdata: R
|
|
9041
9052
|
} = rr();
|
|
9042
9053
|
Eg({
|
|
@@ -9048,7 +9059,7 @@ function Og({ chatId: e }) {
|
|
|
9048
9059
|
// id открытого чата
|
|
9049
9060
|
containerRef: t,
|
|
9050
9061
|
// контейнер с сообщениями, за которым следим
|
|
9051
|
-
markMessagesAsRead:
|
|
9062
|
+
markMessagesAsRead: M
|
|
9052
9063
|
// метод срабатываемый при попадании непрочитанного сообщения во вьюпорт контейнера со скроллом
|
|
9053
9064
|
}), wg({
|
|
9054
9065
|
containerRef: t,
|
|
@@ -9073,22 +9084,22 @@ function Og({ chatId: e }) {
|
|
|
9073
9084
|
}, [C, e, O, _, y, F]), fe(() => {
|
|
9074
9085
|
R && R?.user && o(R?.user?.id);
|
|
9075
9086
|
}, [R]), fe(() => {
|
|
9076
|
-
t.current &&
|
|
9077
|
-
}, [
|
|
9078
|
-
|
|
9087
|
+
t.current && v.length > 0 && !p && (t.current.scrollTop = t.current.scrollHeight, g(!0));
|
|
9088
|
+
}, [v]), fe(() => {
|
|
9089
|
+
g(!1);
|
|
9079
9090
|
}, [e]), fe(() => {
|
|
9080
|
-
|
|
9091
|
+
h(l?.total - l?.messages?.length > 0);
|
|
9081
9092
|
}, [l]), fe(() => {
|
|
9082
9093
|
const b = t.current;
|
|
9083
9094
|
if (!b) return;
|
|
9084
9095
|
const w = () => {
|
|
9085
9096
|
const { scrollTop: $, scrollHeight: A, clientHeight: I } = b;
|
|
9086
|
-
|
|
9097
|
+
f(A - $ - I > 200);
|
|
9087
9098
|
};
|
|
9088
9099
|
return b.addEventListener("scroll", w), () => b.removeEventListener("scroll", w);
|
|
9089
9100
|
}, []);
|
|
9090
9101
|
const D = (b, w) => {
|
|
9091
|
-
i &&
|
|
9102
|
+
i && P({
|
|
9092
9103
|
to: e,
|
|
9093
9104
|
text: b,
|
|
9094
9105
|
files: w,
|
|
@@ -9183,7 +9194,7 @@ function Og({ chatId: e }) {
|
|
|
9183
9194
|
className: K.antd_empty
|
|
9184
9195
|
}
|
|
9185
9196
|
),
|
|
9186
|
-
|
|
9197
|
+
m && /* @__PURE__ */ N(
|
|
9187
9198
|
ic,
|
|
9188
9199
|
{
|
|
9189
9200
|
shape: "circle",
|
|
@@ -9192,9 +9203,9 @@ function Og({ chatId: e }) {
|
|
|
9192
9203
|
icon: /* @__PURE__ */ N(Sc, {}),
|
|
9193
9204
|
onClick: () => {
|
|
9194
9205
|
if (!t.current) return;
|
|
9195
|
-
t.current.scrollTop = t.current.scrollHeight,
|
|
9206
|
+
t.current.scrollTop = t.current.scrollHeight, f(!1);
|
|
9196
9207
|
const b = y.filter((w) => w.type !== "divider").filter((w) => w?.message?.fromId && i && +w?.message?.fromId != +i).filter((w) => !w?.message?.status).map((w) => w?.message?.id);
|
|
9197
|
-
b.length > 0 &&
|
|
9208
|
+
b.length > 0 && M(b);
|
|
9198
9209
|
}
|
|
9199
9210
|
}
|
|
9200
9211
|
)
|
|
@@ -9204,7 +9215,7 @@ function Og({ chatId: e }) {
|
|
|
9204
9215
|
] });
|
|
9205
9216
|
}
|
|
9206
9217
|
const { Sider: Tg, Content: Fg } = zt;
|
|
9207
|
-
function
|
|
9218
|
+
function Mg() {
|
|
9208
9219
|
const [e, t] = Z(null);
|
|
9209
9220
|
return /* @__PURE__ */ Fe(zt, { className: K["chat-layout"], children: [
|
|
9210
9221
|
/* @__PURE__ */ N(Tg, { width: 220, className: K["chat-sidebar"], children: /* @__PURE__ */ N(vg, { onSelectChat: t, selectedChatId: e }) }),
|
|
@@ -9218,26 +9229,26 @@ function Pg() {
|
|
|
9218
9229
|
) })
|
|
9219
9230
|
] });
|
|
9220
9231
|
}
|
|
9221
|
-
const
|
|
9222
|
-
const a = me(null), i = me(null), [o, s] = Z(!1), [c, l] = Z({ x: 0, y: 0 }), u = !n, d = (
|
|
9232
|
+
const Pg = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
|
|
9233
|
+
const a = me(null), i = me(null), [o, s] = Z(!1), [c, l] = Z({ x: 0, y: 0 }), u = !n, d = (g, m, f) => Math.min(Math.max(g, m), f);
|
|
9223
9234
|
fe(() => {
|
|
9224
9235
|
e && l({ x: 0, y: 0 });
|
|
9225
9236
|
}, [e]), fe(() => {
|
|
9226
9237
|
if (e && n) {
|
|
9227
|
-
const
|
|
9238
|
+
const m = window.innerWidth, f = window.innerHeight, S = a.current ? a.current.offsetWidth : 500, v = a.current ? a.current.offsetHeight : 400;
|
|
9228
9239
|
let y, E;
|
|
9229
9240
|
switch (n) {
|
|
9230
9241
|
case "topLeft":
|
|
9231
9242
|
y = 10, E = 10;
|
|
9232
9243
|
break;
|
|
9233
9244
|
case "topRight":
|
|
9234
|
-
y =
|
|
9245
|
+
y = m - S - 10, E = 10;
|
|
9235
9246
|
break;
|
|
9236
9247
|
case "bottomLeft":
|
|
9237
|
-
y = 10, E =
|
|
9248
|
+
y = 10, E = f - v - 10;
|
|
9238
9249
|
break;
|
|
9239
9250
|
case "bottomRight":
|
|
9240
|
-
y =
|
|
9251
|
+
y = m - S - 10, E = f - v - 10;
|
|
9241
9252
|
break;
|
|
9242
9253
|
default:
|
|
9243
9254
|
y = 0, E = 0;
|
|
@@ -9245,21 +9256,21 @@ const Mg = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
|
|
|
9245
9256
|
l({ x: y, y: E });
|
|
9246
9257
|
}
|
|
9247
9258
|
}, [n, e]);
|
|
9248
|
-
const
|
|
9259
|
+
const h = () => {
|
|
9249
9260
|
if (s(!0), a.current) {
|
|
9250
|
-
const
|
|
9261
|
+
const g = window.innerWidth, m = window.innerHeight, f = a.current.getBoundingClientRect();
|
|
9251
9262
|
i.current = {
|
|
9252
|
-
left: -
|
|
9253
|
-
top: -
|
|
9254
|
-
right:
|
|
9255
|
-
bottom:
|
|
9263
|
+
left: -f.left + 10,
|
|
9264
|
+
top: -f.top + 10,
|
|
9265
|
+
right: g - f.right - 10,
|
|
9266
|
+
bottom: m - f.bottom - 10
|
|
9256
9267
|
};
|
|
9257
9268
|
}
|
|
9258
|
-
}, p = (
|
|
9259
|
-
s(!1), console.log(
|
|
9260
|
-
x: d(
|
|
9261
|
-
y: d(
|
|
9262
|
-
}) : l({ x:
|
|
9269
|
+
}, p = (g, m) => {
|
|
9270
|
+
s(!1), console.log(g), i.current ? l({
|
|
9271
|
+
x: d(m.x, i.current.left, i.current.right),
|
|
9272
|
+
y: d(m.y, i.current.top, i.current.bottom)
|
|
9273
|
+
}) : l({ x: m.x, y: m.y });
|
|
9263
9274
|
};
|
|
9264
9275
|
return /* @__PURE__ */ N(
|
|
9265
9276
|
oc,
|
|
@@ -9276,22 +9287,22 @@ const Mg = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
|
|
|
9276
9287
|
onOk: t,
|
|
9277
9288
|
onCancel: r,
|
|
9278
9289
|
footer: null,
|
|
9279
|
-
closeIcon: /* @__PURE__ */ N(
|
|
9290
|
+
closeIcon: /* @__PURE__ */ N(Mc, {}),
|
|
9280
9291
|
maskClosable: !0,
|
|
9281
9292
|
keyboard: !0,
|
|
9282
9293
|
mask: !1,
|
|
9283
9294
|
className: K.chatModal,
|
|
9284
9295
|
width: 800,
|
|
9285
|
-
modalRender: (
|
|
9296
|
+
modalRender: (g) => u ? /* @__PURE__ */ N(
|
|
9286
9297
|
Rc,
|
|
9287
9298
|
{
|
|
9288
9299
|
handle: ".ant-modal-title",
|
|
9289
9300
|
bounds: i.current || void 0,
|
|
9290
|
-
onStart:
|
|
9301
|
+
onStart: h,
|
|
9291
9302
|
onStop: p,
|
|
9292
9303
|
nodeRef: a,
|
|
9293
9304
|
position: c,
|
|
9294
|
-
children: /* @__PURE__ */ N("div", { ref: a, className: K.draggableWrapper, children:
|
|
9305
|
+
children: /* @__PURE__ */ N("div", { ref: a, className: K.draggableWrapper, children: g })
|
|
9295
9306
|
}
|
|
9296
9307
|
) : /* @__PURE__ */ N(
|
|
9297
9308
|
"div",
|
|
@@ -9304,10 +9315,10 @@ const Mg = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
|
|
|
9304
9315
|
top: c.y,
|
|
9305
9316
|
margin: 0
|
|
9306
9317
|
},
|
|
9307
|
-
children:
|
|
9318
|
+
children: g
|
|
9308
9319
|
}
|
|
9309
9320
|
),
|
|
9310
|
-
children: /* @__PURE__ */ N(
|
|
9321
|
+
children: /* @__PURE__ */ N(Mg, {})
|
|
9311
9322
|
}
|
|
9312
9323
|
);
|
|
9313
9324
|
}, Rg = ({ userdata: e }) => {
|
|
@@ -9329,16 +9340,16 @@ const Mg = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
|
|
|
9329
9340
|
e && e?.user && l(e.user.id);
|
|
9330
9341
|
}, [e]);
|
|
9331
9342
|
const u = De(
|
|
9332
|
-
(
|
|
9343
|
+
(v) => !v || !c ? null : v.chat_id === c || v.from?.id === c ? "self" : "companion",
|
|
9333
9344
|
[c]
|
|
9334
|
-
), d = De((
|
|
9345
|
+
), d = De((v, y, E = !1) => {
|
|
9335
9346
|
if (E) return "Сохранённое";
|
|
9336
|
-
const C = y === "self" ?
|
|
9347
|
+
const C = y === "self" ? v?.to : v?.from;
|
|
9337
9348
|
return `${C?.surname ?? ""} ${C?.name ?? ""}`.trim();
|
|
9338
|
-
}, []),
|
|
9349
|
+
}, []), h = Ft(() => {
|
|
9339
9350
|
if (!Array.isArray(i) || i.length === 0)
|
|
9340
9351
|
return { hasSms: !1, messages: [] };
|
|
9341
|
-
const
|
|
9352
|
+
const v = i.filter((y) => {
|
|
9342
9353
|
const E = y?.from?.id || y?.from_id, C = y?.to?.id || y?.to_id;
|
|
9343
9354
|
return E === c || C === c;
|
|
9344
9355
|
}).filter((y) => y?.count_unread > 0).map((y) => {
|
|
@@ -9356,29 +9367,29 @@ const Mg = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
|
|
|
9356
9367
|
_fullChat: y
|
|
9357
9368
|
};
|
|
9358
9369
|
});
|
|
9359
|
-
return { hasSms:
|
|
9370
|
+
return { hasSms: v.length > 0, messages: v };
|
|
9360
9371
|
}, [i, c, u, d]), p = Ft(() => {
|
|
9361
|
-
if (!
|
|
9362
|
-
const { messages:
|
|
9363
|
-
return
|
|
9372
|
+
if (!h.hasSms) return [];
|
|
9373
|
+
const { messages: v } = h;
|
|
9374
|
+
return v.map((y, E) => ({
|
|
9364
9375
|
key: `message-${E}-${y.id}`,
|
|
9365
9376
|
label: /* @__PURE__ */ Fe("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", gap: "10px" }, children: [
|
|
9366
9377
|
/* @__PURE__ */ N("div", { children: y.name }),
|
|
9367
9378
|
/* @__PURE__ */ N("div", { children: y.countUnread })
|
|
9368
9379
|
] })
|
|
9369
9380
|
}));
|
|
9370
|
-
}, [
|
|
9371
|
-
/* @__PURE__ */ N(
|
|
9381
|
+
}, [h]), g = () => r(!0), m = () => r(!1), f = () => r(!1), S = /* @__PURE__ */ Fe(et, { color: "primary", variant: "solid", onClick: g, children: [
|
|
9382
|
+
/* @__PURE__ */ N(Pc, {}),
|
|
9372
9383
|
a > 0 && /* @__PURE__ */ N("span", { className: K["notification-badge"], children: a })
|
|
9373
9384
|
] });
|
|
9374
9385
|
return /* @__PURE__ */ Fe(no, { style: { padding: 0 }, children: [
|
|
9375
9386
|
p.length > 0 ? /* @__PURE__ */ N(sc, { menu: { items: p }, trigger: ["hover"], children: /* @__PURE__ */ N("div", { children: S }) }) : /* @__PURE__ */ N("div", { children: S }),
|
|
9376
9387
|
/* @__PURE__ */ N(
|
|
9377
|
-
|
|
9388
|
+
Pg,
|
|
9378
9389
|
{
|
|
9379
9390
|
open: t,
|
|
9380
|
-
onOk:
|
|
9381
|
-
onCancel:
|
|
9391
|
+
onOk: m,
|
|
9392
|
+
onCancel: f,
|
|
9382
9393
|
positionCorner: null
|
|
9383
9394
|
}
|
|
9384
9395
|
)
|
|
@@ -10245,32 +10256,32 @@ const Mg = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
|
|
|
10245
10256
|
total: 112
|
|
10246
10257
|
}
|
|
10247
10258
|
};
|
|
10248
|
-
|
|
10259
|
+
Pn.defaults.withCredentials = !0;
|
|
10249
10260
|
const Ag = ({ children: e }) => {
|
|
10250
|
-
const r = me(null), [n, a] = Z(!1), [i, o] = Z("disconnected"), [s, c] = Z(null), l = me(s), [u, d] = Z(""), [
|
|
10261
|
+
const r = me(null), [n, a] = Z(!1), [i, o] = Z("disconnected"), [s, c] = Z(null), l = me(s), [u, d] = Z(""), [h, p] = Z(""), [g, m] = Z(!1), [f, S] = Z(0), [v, y] = Z(null), [E, C] = Z(null), [O, _] = Z(null), [F, P] = Z(null), [M, R] = Z(null), [D, V] = Z(null), [b, w] = Z(null), [$, A] = Z(null), [I, L] = Z([]), k = me(I), [B, H] = Z([]), U = me(B), [q, ee] = Z(0), [le, ie] = Z(0), [he, ue] = Z(!1), [oe, ve] = Z(!1), [Ce, Oe] = Z(!1), [W, Ie] = Z(0), [Ee, Ue] = Z({
|
|
10251
10262
|
message: "",
|
|
10252
10263
|
description: "",
|
|
10253
10264
|
type: "info"
|
|
10254
|
-
}), [We,
|
|
10255
|
-
const z =
|
|
10265
|
+
}), [We, Me] = Z(!1), we = De(() => {
|
|
10266
|
+
const z = Pn;
|
|
10256
10267
|
return z?.default && typeof z.default == "function" ? z.default : z;
|
|
10257
10268
|
}, []), xe = De(() => {
|
|
10258
|
-
if (
|
|
10259
|
-
return
|
|
10269
|
+
if (v && typeof v?.post == "function")
|
|
10270
|
+
return v;
|
|
10260
10271
|
const z = we();
|
|
10261
10272
|
return z && typeof z.post == "function" ? z : null;
|
|
10262
|
-
}, [
|
|
10263
|
-
if (
|
|
10273
|
+
}, [v, we]), be = De((z, G) => {
|
|
10274
|
+
if (Pn.isAxiosError(G)) {
|
|
10264
10275
|
const Y = G.response?.status, ge = G.response?.data;
|
|
10265
10276
|
console.error(`[${z}] axios error`, { status: Y, data: ge, message: G.message });
|
|
10266
10277
|
return;
|
|
10267
10278
|
}
|
|
10268
10279
|
console.error(`[${z}] error`, G);
|
|
10269
10280
|
}, []), ae = De(() => {
|
|
10270
|
-
if (!
|
|
10281
|
+
if (!g || !f || !u || !h)
|
|
10271
10282
|
return;
|
|
10272
10283
|
r.current?.connected && r.current.disconnect();
|
|
10273
|
-
const z = We ? Ic(`${u}:${
|
|
10284
|
+
const z = We ? Ic(`${u}:${f}`, { transports: ["websocket", "polling"], withCredentials: !0 }) : null;
|
|
10274
10285
|
r.current = z, z && (z.on("connect", () => {
|
|
10275
10286
|
console.log("CHAT WEBSOCKET CONNECTED"), a(!0), o("connected");
|
|
10276
10287
|
const G = l.current?.user?.id;
|
|
@@ -10296,7 +10307,7 @@ const Ag = ({ children: e }) => {
|
|
|
10296
10307
|
}), z.on("connect_error", () => {
|
|
10297
10308
|
console.log("CHAT WEBSOCKET CONNECT ERROR");
|
|
10298
10309
|
}));
|
|
10299
|
-
}, [We,
|
|
10310
|
+
}, [We, g, f, u, h, D, b, $]), te = (z) => {
|
|
10300
10311
|
const G = U.current.find((Y) => +Y.chat_id == +z.chat_id);
|
|
10301
10312
|
if (!G)
|
|
10302
10313
|
H((Y) => [...Y, z]);
|
|
@@ -10372,14 +10383,14 @@ const Ag = ({ children: e }) => {
|
|
|
10372
10383
|
} : de);
|
|
10373
10384
|
});
|
|
10374
10385
|
}, nr = De(async (z = null) => {
|
|
10375
|
-
if (ue(!0),
|
|
10386
|
+
if (ue(!0), g)
|
|
10376
10387
|
try {
|
|
10377
10388
|
const G = xe();
|
|
10378
|
-
if (!G || !E || !
|
|
10389
|
+
if (!G || !E || !h) {
|
|
10379
10390
|
console.warn("[fetchChatsList] skipped", {
|
|
10380
10391
|
hasAxios: !!G,
|
|
10381
10392
|
hasPath: !!E,
|
|
10382
|
-
hasCsrf: !!
|
|
10393
|
+
hasCsrf: !!h
|
|
10383
10394
|
});
|
|
10384
10395
|
return;
|
|
10385
10396
|
}
|
|
@@ -10387,12 +10398,12 @@ const Ag = ({ children: e }) => {
|
|
|
10387
10398
|
E,
|
|
10388
10399
|
{
|
|
10389
10400
|
data: { search: z },
|
|
10390
|
-
_token:
|
|
10401
|
+
_token: h
|
|
10391
10402
|
},
|
|
10392
10403
|
{
|
|
10393
10404
|
headers: {
|
|
10394
10405
|
"Content-Type": "application/json",
|
|
10395
|
-
"X-CSRF-TOKEN":
|
|
10406
|
+
"X-CSRF-TOKEN": h
|
|
10396
10407
|
}
|
|
10397
10408
|
}
|
|
10398
10409
|
)).data;
|
|
@@ -10404,24 +10415,24 @@ const Ag = ({ children: e }) => {
|
|
|
10404
10415
|
}
|
|
10405
10416
|
else
|
|
10406
10417
|
L(to?.content?.sms), ie(to?.content?.total_unread), ue(!1);
|
|
10407
|
-
}, [
|
|
10418
|
+
}, [h, v, g, E, be]), dn = De(async (z, G = null) => {
|
|
10408
10419
|
if (!oe)
|
|
10409
|
-
if (ve(!0),
|
|
10420
|
+
if (ve(!0), g)
|
|
10410
10421
|
try {
|
|
10411
10422
|
const Y = xe();
|
|
10412
|
-
if (!Y || !O || !
|
|
10423
|
+
if (!Y || !O || !h) return;
|
|
10413
10424
|
const ge = `${O}/${z}`, se = (await Y.post(
|
|
10414
10425
|
ge,
|
|
10415
10426
|
{
|
|
10416
10427
|
data: {
|
|
10417
10428
|
last_id: G
|
|
10418
10429
|
},
|
|
10419
|
-
_token:
|
|
10430
|
+
_token: h
|
|
10420
10431
|
},
|
|
10421
10432
|
{
|
|
10422
10433
|
headers: {
|
|
10423
10434
|
"Content-Type": "application/json",
|
|
10424
|
-
"X-CSRF-TOKEN":
|
|
10435
|
+
"X-CSRF-TOKEN": h
|
|
10425
10436
|
}
|
|
10426
10437
|
}
|
|
10427
10438
|
)).data;
|
|
@@ -10448,7 +10459,7 @@ const Ag = ({ children: e }) => {
|
|
|
10448
10459
|
messages: Dr?.content?.messages,
|
|
10449
10460
|
total: Dr?.content?.total - Dr?.content?.messages?.length
|
|
10450
10461
|
})), ve(!1);
|
|
10451
|
-
}, [oe,
|
|
10462
|
+
}, [oe, h, v, g, O, be]), fn = De(async ({ to: z, text: G, files: Y, answer: ge, timestamp: de, from_id: se }) => {
|
|
10452
10463
|
lt({
|
|
10453
10464
|
from_id: se,
|
|
10454
10465
|
id: de,
|
|
@@ -10463,9 +10474,9 @@ const Ag = ({ children: e }) => {
|
|
|
10463
10474
|
}, z), Oe(!0);
|
|
10464
10475
|
try {
|
|
10465
10476
|
const Be = xe();
|
|
10466
|
-
if (!Be || !F || !
|
|
10477
|
+
if (!Be || !F || !h) return;
|
|
10467
10478
|
const dt = new FormData();
|
|
10468
|
-
dt.append("_token",
|
|
10479
|
+
dt.append("_token", h), dt.append(
|
|
10469
10480
|
"data",
|
|
10470
10481
|
JSON.stringify({
|
|
10471
10482
|
to: z,
|
|
@@ -10481,7 +10492,7 @@ const Ag = ({ children: e }) => {
|
|
|
10481
10492
|
dt,
|
|
10482
10493
|
{
|
|
10483
10494
|
headers: {
|
|
10484
|
-
"X-CSRF-TOKEN":
|
|
10495
|
+
"X-CSRF-TOKEN": h
|
|
10485
10496
|
}
|
|
10486
10497
|
}
|
|
10487
10498
|
)).data;
|
|
@@ -10491,21 +10502,21 @@ const Ag = ({ children: e }) => {
|
|
|
10491
10502
|
} finally {
|
|
10492
10503
|
Oe(!1);
|
|
10493
10504
|
}
|
|
10494
|
-
}, [
|
|
10505
|
+
}, [h, v, F, be]), hn = De(async (z) => {
|
|
10495
10506
|
for (const G of z)
|
|
10496
|
-
if (
|
|
10507
|
+
if (g)
|
|
10497
10508
|
try {
|
|
10498
10509
|
const Y = xe();
|
|
10499
|
-
if (!Y || !
|
|
10500
|
-
const ge = `${
|
|
10510
|
+
if (!Y || !M || !h) return;
|
|
10511
|
+
const ge = `${M}/${G}`, se = (await Y.post(
|
|
10501
10512
|
ge,
|
|
10502
10513
|
{
|
|
10503
|
-
_token:
|
|
10514
|
+
_token: h
|
|
10504
10515
|
},
|
|
10505
10516
|
{
|
|
10506
10517
|
headers: {
|
|
10507
10518
|
"Content-Type": "application/json",
|
|
10508
|
-
"X-CSRF-TOKEN":
|
|
10519
|
+
"X-CSRF-TOKEN": h
|
|
10509
10520
|
}
|
|
10510
10521
|
}
|
|
10511
10522
|
)).data;
|
|
@@ -10515,9 +10526,9 @@ const Ag = ({ children: e }) => {
|
|
|
10515
10526
|
}
|
|
10516
10527
|
else
|
|
10517
10528
|
console.log(`/api/sms/read/${G}`);
|
|
10518
|
-
}, [
|
|
10529
|
+
}, [h, v, g, M, be]);
|
|
10519
10530
|
return fe(() => {
|
|
10520
|
-
if (We && s && u &&
|
|
10531
|
+
if (We && s && u && f && h) {
|
|
10521
10532
|
const z = setTimeout(() => {
|
|
10522
10533
|
ae(), nr(null).then();
|
|
10523
10534
|
}, 0);
|
|
@@ -10528,10 +10539,10 @@ const Ag = ({ children: e }) => {
|
|
|
10528
10539
|
console.log("Connection conditions not met:", {
|
|
10529
10540
|
hasUserdata: !!s,
|
|
10530
10541
|
hasHTTP_HOST: !!u,
|
|
10531
|
-
hasBFF_PORT: !!
|
|
10532
|
-
hasCSRF_TOKEN: !!
|
|
10542
|
+
hasBFF_PORT: !!f,
|
|
10543
|
+
hasCSRF_TOKEN: !!h
|
|
10533
10544
|
});
|
|
10534
|
-
}, [s, u,
|
|
10545
|
+
}, [s, u, f, h, We, ae, nr]), fe(() => {
|
|
10535
10546
|
U.current = B;
|
|
10536
10547
|
}, [B]), fe(() => {
|
|
10537
10548
|
k.current = I;
|
|
@@ -10571,23 +10582,23 @@ const Ag = ({ children: e }) => {
|
|
|
10571
10582
|
markMessagesAsRead: hn,
|
|
10572
10583
|
userdata: s,
|
|
10573
10584
|
HTTP_HOST: u,
|
|
10574
|
-
CSRF_TOKEN:
|
|
10575
|
-
PRODMODE:
|
|
10576
|
-
PROD_AXIOS_INSTANCE:
|
|
10585
|
+
CSRF_TOKEN: h,
|
|
10586
|
+
PRODMODE: g,
|
|
10587
|
+
PROD_AXIOS_INSTANCE: v,
|
|
10577
10588
|
setUserData: c,
|
|
10578
10589
|
SET_HTTP_HOST: d,
|
|
10579
10590
|
SET_CSRF_TOKEN: p,
|
|
10580
|
-
SET_PRODMODE:
|
|
10591
|
+
SET_PRODMODE: m,
|
|
10581
10592
|
SET_BFF_PORT: S,
|
|
10582
10593
|
setFetchChatsListPath: C,
|
|
10583
10594
|
setFetchChatMessagesPath: _,
|
|
10584
|
-
setSendSmsPath:
|
|
10595
|
+
setSendSmsPath: P,
|
|
10585
10596
|
setMarkMessagesAsReadPath: R,
|
|
10586
10597
|
setSubscribeToChat: V,
|
|
10587
10598
|
setNewSms: w,
|
|
10588
10599
|
setUpdateSms: A,
|
|
10589
10600
|
init: We,
|
|
10590
|
-
setInit:
|
|
10601
|
+
setInit: Me
|
|
10591
10602
|
},
|
|
10592
10603
|
children: e
|
|
10593
10604
|
}
|
|
@@ -10607,16 +10618,16 @@ const Ag = ({ children: e }) => {
|
|
|
10607
10618
|
SET_BFF_PORT: l,
|
|
10608
10619
|
setFetchChatsListPath: u,
|
|
10609
10620
|
setFetchChatMessagesPath: d,
|
|
10610
|
-
setSendSmsPath:
|
|
10621
|
+
setSendSmsPath: h,
|
|
10611
10622
|
setMarkMessagesAsReadPath: p,
|
|
10612
|
-
setSubscribeToChat:
|
|
10613
|
-
setNewSms:
|
|
10614
|
-
setUpdateSms:
|
|
10623
|
+
setSubscribeToChat: g,
|
|
10624
|
+
setNewSms: m,
|
|
10625
|
+
setUpdateSms: f,
|
|
10615
10626
|
setInit: S
|
|
10616
10627
|
} = rr();
|
|
10617
10628
|
return fe(() => {
|
|
10618
|
-
let
|
|
10619
|
-
e && i(e), e && (
|
|
10629
|
+
let v = !1, y = !1, E = !1, C = !1, O = !1;
|
|
10630
|
+
e && i(e), e && (v = !0), t && t?.HTTP_HOST && o(t?.HTTP_HOST), t && t?.CSRF_TOKEN && s(t?.CSRF_TOKEN), t && typeof t?.PRODMODE == "boolean" && c(t?.PRODMODE), t && typeof t?.BFF_PORT == "number" && l(t?.BFF_PORT), t && t?.HTTP_HOST && t?.CSRF_TOKEN && typeof t?.PRODMODE == "boolean" && typeof t?.BFF_PORT == "number" && (y = !0), r && r?.fetchChatsListPath && u(r?.fetchChatsListPath), r && r?.fetchChatMessagesPath && d(r?.fetchChatMessagesPath), r && r?.sendSmsPath && h(r?.sendSmsPath), r && r?.markMessagesAsReadPath && p(r?.markMessagesAsReadPath), r && r?.fetchChatsListPath && r?.fetchChatMessagesPath && r?.sendSmsPath && r?.markMessagesAsReadPath && (E = !0), n && n?.subscribeToChat && g(n?.subscribeToChat), n && n?.subscribeToChat && (C = !0), a && a?.newSms && m(a?.newSms), a && a?.updateSms && f(a?.updateSms), a && a?.newSms && a?.updateSms && (O = !0), v && y && E && C && O && S(!0);
|
|
10620
10631
|
}, [
|
|
10621
10632
|
e,
|
|
10622
10633
|
t,
|
|
@@ -10630,11 +10641,11 @@ const Ag = ({ children: e }) => {
|
|
|
10630
10641
|
l,
|
|
10631
10642
|
u,
|
|
10632
10643
|
d,
|
|
10633
|
-
|
|
10644
|
+
h,
|
|
10634
10645
|
p,
|
|
10635
|
-
v,
|
|
10636
10646
|
g,
|
|
10637
|
-
|
|
10647
|
+
m,
|
|
10648
|
+
f,
|
|
10638
10649
|
S
|
|
10639
10650
|
]), /* @__PURE__ */ N(Rg, { userdata: e });
|
|
10640
10651
|
}, Ug = (e) => {
|