ysyt-react-agent-lib 1.0.41 → 1.0.43
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/{ConsultModel-D5rnswQ3.js → ConsultModel-DdA6DK5i.js} +1 -1
- package/dist/{ConsultModel-auIgUAQc.mjs → ConsultModel-m9z1-KFl.mjs} +2 -2
- package/dist/{TransferModel-BbnphIiA.mjs → TransferModel-DYXxr2aN.mjs} +2 -2
- package/dist/{TransferModel-Cn5hbx_g.js → TransferModel-Dn7WXAck.js} +1 -1
- package/dist/{index-651TDSua.js → index-BrRclavg.js} +1 -1
- package/dist/{index-__CB8hjC.mjs → index-BtK2tKiF.mjs} +406 -396
- package/dist/{index-BKB-RHX0.mjs → index-D856ey_n.mjs} +1 -1
- package/dist/{index-BjhXVBDu.js → index-DdYgxBvO.js} +51 -51
- package/dist/ysyt-react-agent-lib.cjs.js +1 -1
- package/dist/ysyt-react-agent-lib.es.js +1 -1
- package/package.json +2 -2
|
@@ -247,7 +247,7 @@ function Ie(e, A) {
|
|
|
247
247
|
}
|
|
248
248
|
return r;
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function Ra(e, A, t) {
|
|
251
251
|
var n = c.useRef({});
|
|
252
252
|
return (!("value" in n.current) || t(n.current.condition, A)) && (n.current.value = e(), n.current.condition = A), n.current.value;
|
|
253
253
|
}
|
|
@@ -383,7 +383,7 @@ function NE() {
|
|
|
383
383
|
}
|
|
384
384
|
return new GE(e);
|
|
385
385
|
}
|
|
386
|
-
var
|
|
386
|
+
var xa = /* @__PURE__ */ c.createContext({
|
|
387
387
|
hashPriority: "low",
|
|
388
388
|
cache: NE(),
|
|
389
389
|
defaultCache: !0
|
|
@@ -576,7 +576,7 @@ var Vu = Ht();
|
|
|
576
576
|
function hA(e) {
|
|
577
577
|
return typeof e == "number" ? "".concat(e, "px") : e;
|
|
578
578
|
}
|
|
579
|
-
function
|
|
579
|
+
function Os(e, A, t) {
|
|
580
580
|
var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, r = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1;
|
|
581
581
|
if (r)
|
|
582
582
|
return e;
|
|
@@ -588,7 +588,7 @@ function Us(e, A, t) {
|
|
|
588
588
|
}).join(" ");
|
|
589
589
|
return "<style ".concat(o, ">").concat(e, "</style>");
|
|
590
590
|
}
|
|
591
|
-
var
|
|
591
|
+
var gs = function(A) {
|
|
592
592
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
593
593
|
return "--".concat(t ? "".concat(t, "-") : "").concat(A).replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g, "$1-$2").replace(/([a-z])([A-Z0-9])/g, "$1-$2").toLowerCase();
|
|
594
594
|
}, HE = function(A, t, n) {
|
|
@@ -603,7 +603,7 @@ var ds = function(A) {
|
|
|
603
603
|
if (n != null && (a = n.preserve) !== null && a !== void 0 && a[u])
|
|
604
604
|
i[u] = V;
|
|
605
605
|
else if ((typeof V == "string" || typeof V == "number") && !(n != null && (s = n.ignore) !== null && s !== void 0 && s[u])) {
|
|
606
|
-
var d, h =
|
|
606
|
+
var d, h = gs(u, n == null ? void 0 : n.prefix);
|
|
607
607
|
r[h] = typeof V == "number" && !(n != null && (d = n.unitless) !== null && d !== void 0 && d[u]) ? "".concat(V, "px") : String(V), i[u] = "var(".concat(h, ")");
|
|
608
608
|
}
|
|
609
609
|
}), [i, HE(r, t, {
|
|
@@ -661,10 +661,10 @@ function tI() {
|
|
|
661
661
|
}
|
|
662
662
|
const nI = process.env.NODE_ENV === "production" ? eI : tI;
|
|
663
663
|
if (process.env.NODE_ENV !== "production" && typeof module < "u" && module && module.hot && typeof window < "u") {
|
|
664
|
-
var
|
|
665
|
-
if (
|
|
666
|
-
var rI =
|
|
667
|
-
|
|
664
|
+
var Ja = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : null;
|
|
665
|
+
if (Ja && typeof Ja.webpackHotUpdate == "function") {
|
|
666
|
+
var rI = Ja.webpackHotUpdate;
|
|
667
|
+
Ja.webpackHotUpdate = function() {
|
|
668
668
|
return du = !0, setTimeout(function() {
|
|
669
669
|
du = !1;
|
|
670
670
|
}, 0), rI.apply(void 0, arguments);
|
|
@@ -672,7 +672,7 @@ if (process.env.NODE_ENV !== "production" && typeof module < "u" && module && mo
|
|
|
672
672
|
}
|
|
673
673
|
}
|
|
674
674
|
function Vd(e, A, t, n, r) {
|
|
675
|
-
var i = c.useContext(
|
|
675
|
+
var i = c.useContext(xa), o = i.cache, a = [e].concat(yA(A)), s = cu(a), l = AI([s]), u = nI(), V = function(C) {
|
|
676
676
|
o.opUpdate(s, function(f) {
|
|
677
677
|
var q = f || [void 0, void 0], I = W(q, 2), w = I[0], B = w === void 0 ? 0 : w, M = I[1], g = M;
|
|
678
678
|
process.env.NODE_ENV !== "production" && M && u && (n == null || n(g, u), g = null);
|
|
@@ -737,7 +737,7 @@ var uI = function(A, t, n, r) {
|
|
|
737
737
|
return r && (o = r(o)), o;
|
|
738
738
|
}, Xq = "token";
|
|
739
739
|
function VI(e, A) {
|
|
740
|
-
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = dt(
|
|
740
|
+
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = dt(xa), r = n.cache.instanceId, i = n.container, o = t.salt, a = o === void 0 ? "" : o, s = t.override, l = s === void 0 ? iI : s, u = t.formatToken, V = t.getComputedToken, d = t.cssVar, h = LE(function() {
|
|
741
741
|
return Object.assign.apply(Object, [{}].concat(yA(A)));
|
|
742
742
|
}, A), m = Xo(h), C = Xo(l), f = d ? Xo(d) : "", q = Vd(Xq, [a, e.id, m, C, f], function() {
|
|
743
743
|
var I, w = V ? V(h, l, e) : uI(h, l, e, u), B = O({}, w), M = "";
|
|
@@ -779,7 +779,7 @@ var dI = function(A, t, n) {
|
|
|
779
779
|
var u = i._tokenKey, V = -999, d = {
|
|
780
780
|
"data-rc-order": "prependQueue",
|
|
781
781
|
"data-rc-priority": "".concat(V)
|
|
782
|
-
}, h =
|
|
782
|
+
}, h = Os(o, a, u, d, l);
|
|
783
783
|
return [V, u, h];
|
|
784
784
|
};
|
|
785
785
|
function UA() {
|
|
@@ -842,7 +842,7 @@ var gI = {
|
|
|
842
842
|
function tm(e) {
|
|
843
843
|
return e.trim();
|
|
844
844
|
}
|
|
845
|
-
function
|
|
845
|
+
function hs(e, A, t) {
|
|
846
846
|
return e.replace(A, t);
|
|
847
847
|
}
|
|
848
848
|
function mI(e, A, t) {
|
|
@@ -860,7 +860,7 @@ function zn(e) {
|
|
|
860
860
|
function CI(e) {
|
|
861
861
|
return e.length;
|
|
862
862
|
}
|
|
863
|
-
function
|
|
863
|
+
function Pa(e, A) {
|
|
864
864
|
return A.push(e), e;
|
|
865
865
|
}
|
|
866
866
|
var fl = 1, io = 1, nm = 0, Sn = 0, ft = 0, Eo = "";
|
|
@@ -879,7 +879,7 @@ function Gn() {
|
|
|
879
879
|
function Nr() {
|
|
880
880
|
return Ni(Eo, Sn);
|
|
881
881
|
}
|
|
882
|
-
function
|
|
882
|
+
function ps() {
|
|
883
883
|
return Sn;
|
|
884
884
|
}
|
|
885
885
|
function ql(e, A) {
|
|
@@ -940,7 +940,7 @@ function MI(e) {
|
|
|
940
940
|
function wI(e, A) {
|
|
941
941
|
for (; --A && Gn() && !(ft < 48 || ft > 102 || ft > 57 && ft < 65 || ft > 70 && ft < 97); )
|
|
942
942
|
;
|
|
943
|
-
return ql(e,
|
|
943
|
+
return ql(e, ps() + (A < 6 && Nr() == 32 && Gn() == 32));
|
|
944
944
|
}
|
|
945
945
|
function gu(e) {
|
|
946
946
|
for (; Gn(); )
|
|
@@ -976,15 +976,15 @@ function BI(e) {
|
|
|
976
976
|
return ql(e, Sn);
|
|
977
977
|
}
|
|
978
978
|
function QI(e) {
|
|
979
|
-
return yI(
|
|
979
|
+
return yI(fs("", null, null, null, [""], e = II(e), 0, [0], e));
|
|
980
980
|
}
|
|
981
|
-
function
|
|
981
|
+
function fs(e, A, t, n, r, i, o, a, s) {
|
|
982
982
|
for (var l = 0, u = 0, V = o, d = 0, h = 0, m = 0, C = 1, f = 1, q = 1, I = 0, w = "", B = r, M = i, g = n, Q = w; f; )
|
|
983
983
|
switch (m = I, I = Gn()) {
|
|
984
984
|
// (
|
|
985
985
|
case 40:
|
|
986
986
|
if (m != 108 && Ni(Q, V - 1) == 58) {
|
|
987
|
-
mI(Q +=
|
|
987
|
+
mI(Q += hs(uc(I), "&", "&\f"), "&\f", em(l ? a[l - 1] : 0)) != -1 && (q = -1);
|
|
988
988
|
break;
|
|
989
989
|
}
|
|
990
990
|
// " ' [
|
|
@@ -1002,14 +1002,14 @@ function ps(e, A, t, n, r, i, o, a, s) {
|
|
|
1002
1002
|
break;
|
|
1003
1003
|
// \
|
|
1004
1004
|
case 92:
|
|
1005
|
-
Q += wI(
|
|
1005
|
+
Q += wI(ps() - 1, 7);
|
|
1006
1006
|
continue;
|
|
1007
1007
|
// /
|
|
1008
1008
|
case 47:
|
|
1009
1009
|
switch (Nr()) {
|
|
1010
1010
|
case 42:
|
|
1011
1011
|
case 47:
|
|
1012
|
-
|
|
1012
|
+
Pa(bI(SI(Gn(), ps()), A, t, s), s), (da(m || 1) == 5 || da(Nr() || 1) == 5) && zn(Q) && ro(Q, -1, void 0) !== " " && (Q += " ");
|
|
1013
1013
|
break;
|
|
1014
1014
|
default:
|
|
1015
1015
|
Q += "/";
|
|
@@ -1029,16 +1029,16 @@ function ps(e, A, t, n, r, i, o, a, s) {
|
|
|
1029
1029
|
f = 0;
|
|
1030
1030
|
// ;
|
|
1031
1031
|
case 59 + u:
|
|
1032
|
-
q == -1 && (Q =
|
|
1032
|
+
q == -1 && (Q = hs(Q, /\f/g, "")), h > 0 && (zn(Q) - V || C === 0 && m === 47) && Pa(h > 32 ? Gg(Q + ";", n, t, V - 1, s) : Gg(hs(Q, " ", "") + ";", n, t, V - 2, s), s);
|
|
1033
1033
|
break;
|
|
1034
1034
|
// @ ;
|
|
1035
1035
|
case 59:
|
|
1036
1036
|
Q += ";";
|
|
1037
1037
|
// { rule/at-rule
|
|
1038
1038
|
default:
|
|
1039
|
-
if (
|
|
1039
|
+
if (Pa(g = kg(Q, A, t, l, u, r, a, w, B = [], M = [], V, i), i), I === 123)
|
|
1040
1040
|
if (u === 0)
|
|
1041
|
-
|
|
1041
|
+
fs(Q, A, g, g, B, i, V, a, M);
|
|
1042
1042
|
else {
|
|
1043
1043
|
switch (d) {
|
|
1044
1044
|
// c(ontainer)
|
|
@@ -1054,7 +1054,7 @@ function ps(e, A, t, n, r, i, o, a, s) {
|
|
|
1054
1054
|
case 109:
|
|
1055
1055
|
case 115:
|
|
1056
1056
|
}
|
|
1057
|
-
u ?
|
|
1057
|
+
u ? fs(e, g, g, n && Pa(kg(e, g, g, 0, 0, r, a, w, r, B = [], V, M), M), r, M, V, a, n ? B : M) : fs(Q, g, g, g, [""], M, 0, a, M);
|
|
1058
1058
|
}
|
|
1059
1059
|
}
|
|
1060
1060
|
l = u = h = 0, C = q = 1, w = Q = "", V = o;
|
|
@@ -1080,7 +1080,7 @@ function ps(e, A, t, n, r, i, o, a, s) {
|
|
|
1080
1080
|
break;
|
|
1081
1081
|
// @
|
|
1082
1082
|
case 64:
|
|
1083
|
-
Nr() === 45 && (Q += uc(Gn())), d = Nr(), u = V = zn(w = Q += BI(
|
|
1083
|
+
Nr() === 45 && (Q += uc(Gn())), d = Nr(), u = V = zn(w = Q += BI(ps())), I++;
|
|
1084
1084
|
break;
|
|
1085
1085
|
// -
|
|
1086
1086
|
case 45:
|
|
@@ -1092,7 +1092,7 @@ function ps(e, A, t, n, r, i, o, a, s) {
|
|
|
1092
1092
|
function kg(e, A, t, n, r, i, o, a, s, l, u, V) {
|
|
1093
1093
|
for (var d = r - 1, h = r === 0 ? i : [""], m = CI(h), C = 0, f = 0, q = 0; C < n; ++C)
|
|
1094
1094
|
for (var I = 0, w = ro(e, d + 1, d = em(f = o[C])), B = e; I < m; ++I)
|
|
1095
|
-
(B = tm(f > 0 ? h[I] + " " + w :
|
|
1095
|
+
(B = tm(f > 0 ? h[I] + " " + w : hs(w, /&\f/g, h[I]))) && (s[q++] = B);
|
|
1096
1096
|
return gd(e, A, t, r === 0 ? _q : a, s, l, u, V);
|
|
1097
1097
|
}
|
|
1098
1098
|
function bI(e, A, t, n) {
|
|
@@ -1167,7 +1167,7 @@ function UI(e) {
|
|
|
1167
1167
|
return [t, A];
|
|
1168
1168
|
}
|
|
1169
1169
|
var am = "_skip_check_", sm = "_multi_value_";
|
|
1170
|
-
function
|
|
1170
|
+
function qs(e) {
|
|
1171
1171
|
var A = hu(QI(e), RI);
|
|
1172
1172
|
return A.replace(/\{%%%\:[^;];}/g, ";");
|
|
1173
1173
|
}
|
|
@@ -1262,7 +1262,7 @@ function GI() {
|
|
|
1262
1262
|
}
|
|
1263
1263
|
var cm = "style";
|
|
1264
1264
|
function pu(e, A) {
|
|
1265
|
-
var t = e.token, n = e.path, r = e.hashId, i = e.layer, o = e.nonce, a = e.clientOnly, s = e.order, l = s === void 0 ? 0 : s, u = c.useContext(
|
|
1265
|
+
var t = e.token, n = e.path, r = e.hashId, i = e.layer, o = e.nonce, a = e.clientOnly, s = e.order, l = s === void 0 ? 0 : s, u = c.useContext(xa), V = u.autoClear, d = u.mock, h = u.defaultCache, m = u.hashPriority, C = u.container, f = u.ssrInline, q = u.transformers, I = u.linters, w = u.cache, B = u.layer, M = t._tokenKey, g = [M];
|
|
1266
1266
|
B && g.push("layer"), g.push.apply(g, yA(n));
|
|
1267
1267
|
var Q = Vu;
|
|
1268
1268
|
process.env.NODE_ENV !== "production" && d !== void 0 && (Q = d === "client");
|
|
@@ -1284,7 +1284,7 @@ function pu(e, A) {
|
|
|
1284
1284
|
path: n.join("-"),
|
|
1285
1285
|
transformers: q,
|
|
1286
1286
|
linters: I
|
|
1287
|
-
}), K = W(N, 2), Y = K[0], k = K[1], P =
|
|
1287
|
+
}), K = W(N, 2), Y = K[0], k = K[1], P = qs(Y), Z = lm(g, P);
|
|
1288
1288
|
return [P, M, Z, k, a, l];
|
|
1289
1289
|
},
|
|
1290
1290
|
// Remove cache if no need
|
|
@@ -1314,13 +1314,13 @@ function pu(e, A) {
|
|
|
1314
1314
|
Object.keys(F).forEach(function(P) {
|
|
1315
1315
|
P.startsWith("@layer") ? K.push(P) : Y.push(P);
|
|
1316
1316
|
}), K.forEach(function(P) {
|
|
1317
|
-
pr(
|
|
1317
|
+
pr(qs(F[P]), "_layer-".concat(P), O(O({}, G), {}, {
|
|
1318
1318
|
prepend: !0
|
|
1319
1319
|
}));
|
|
1320
1320
|
});
|
|
1321
1321
|
var k = pr(x, T, G);
|
|
1322
1322
|
k[Yr] = w.instanceId, k.setAttribute(no, M), process.env.NODE_ENV !== "production" && k.setAttribute(YE, g.join("|")), Y.forEach(function(P) {
|
|
1323
|
-
pr(
|
|
1323
|
+
pr(qs(F[P]), "_effect-".concat(P), G);
|
|
1324
1324
|
});
|
|
1325
1325
|
}
|
|
1326
1326
|
}
|
|
@@ -1342,15 +1342,15 @@ var YI = function(A, t, n) {
|
|
|
1342
1342
|
"data-rc-order": "prependQueue",
|
|
1343
1343
|
"data-rc-priority": "".concat(u)
|
|
1344
1344
|
};
|
|
1345
|
-
return h =
|
|
1345
|
+
return h = Os(i, o, a, m, d), s && Object.keys(s).forEach(function(C) {
|
|
1346
1346
|
if (!t[C]) {
|
|
1347
1347
|
t[C] = !0;
|
|
1348
|
-
var f =
|
|
1348
|
+
var f = qs(s[C]), q = Os(f, o, "_effect-".concat(C), m, d);
|
|
1349
1349
|
C.startsWith("@layer") ? h = q + h : h += q;
|
|
1350
1350
|
}
|
|
1351
1351
|
}), [u, a, h];
|
|
1352
1352
|
}, um = "cssVar", NI = function(A, t) {
|
|
1353
|
-
var n = A.key, r = A.prefix, i = A.unitless, o = A.ignore, a = A.token, s = A.scope, l = s === void 0 ? "" : s, u = dt(
|
|
1353
|
+
var n = A.key, r = A.prefix, i = A.unitless, o = A.ignore, a = A.token, s = A.scope, l = s === void 0 ? "" : s, u = dt(xa), V = u.cache.instanceId, d = u.container, h = a._tokenKey, m = [].concat(yA(A.path), [n, l, h]), C = Vd(um, m, function() {
|
|
1354
1354
|
var f = t(), q = zq(f, n, {
|
|
1355
1355
|
prefix: r,
|
|
1356
1356
|
unitless: i,
|
|
@@ -1384,7 +1384,7 @@ var YI = function(A, t, n) {
|
|
|
1384
1384
|
var u = -999, V = {
|
|
1385
1385
|
"data-rc-order": "prependQueue",
|
|
1386
1386
|
"data-rc-priority": "".concat(u)
|
|
1387
|
-
}, d =
|
|
1387
|
+
}, d = Os(i, a, o, V, l);
|
|
1388
1388
|
return [u, o, d];
|
|
1389
1389
|
};
|
|
1390
1390
|
U(U(U({}, cm, YI), Xq, dI), um, ZI);
|
|
@@ -1537,7 +1537,7 @@ function Ft(e, A) {
|
|
|
1537
1537
|
function JI(e) {
|
|
1538
1538
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1539
1539
|
}
|
|
1540
|
-
var
|
|
1540
|
+
var Wa = { exports: {} }, He = {};
|
|
1541
1541
|
/**
|
|
1542
1542
|
* @license React
|
|
1543
1543
|
* react-is.production.min.js
|
|
@@ -1717,7 +1717,7 @@ function WI() {
|
|
|
1717
1717
|
}
|
|
1718
1718
|
var Lg;
|
|
1719
1719
|
function zI() {
|
|
1720
|
-
return Lg || (Lg = 1, process.env.NODE_ENV === "production" ?
|
|
1720
|
+
return Lg || (Lg = 1, process.env.NODE_ENV === "production" ? Wa.exports = PI() : Wa.exports = WI()), Wa.exports;
|
|
1721
1721
|
}
|
|
1722
1722
|
var gc = zI(), XI = Symbol.for("react.element"), $I = Symbol.for("react.transitional.element"), _I = Symbol.for("react.fragment");
|
|
1723
1723
|
function gm(e) {
|
|
@@ -1742,7 +1742,7 @@ var Ay = Number(CE.split(".")[0]), hd = function(A, t) {
|
|
|
1742
1742
|
}, pi = function() {
|
|
1743
1743
|
for (var A = arguments.length, t = new Array(A), n = 0; n < A; n++)
|
|
1744
1744
|
t[n] = arguments[n];
|
|
1745
|
-
return
|
|
1745
|
+
return Ra(function() {
|
|
1746
1746
|
return Ln.apply(void 0, t);
|
|
1747
1747
|
}, t, function(r, i) {
|
|
1748
1748
|
return r.length !== i.length || r.every(function(o, a) {
|
|
@@ -2029,7 +2029,7 @@ function uy(e) {
|
|
|
2029
2029
|
var g = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : M, Q = n(), v = Q.theme, E = Q.realToken, p = Q.hashId, y = Q.token, b = Q.cssVar, S = r(), R = S.rootPrefixCls, x = S.iconPrefixCls, T = t(), F = b ? "css" : "js", G = ly(function() {
|
|
2030
2030
|
var Z = /* @__PURE__ */ new Set();
|
|
2031
2031
|
return b && Object.keys(C.unitless || {}).forEach(function(H) {
|
|
2032
|
-
Z.add(
|
|
2032
|
+
Z.add(gs(H, b.prefix)), Z.add(gs(H, Zg(I, b.prefix)));
|
|
2033
2033
|
}), HI(F, Z);
|
|
2034
2034
|
}, [F, I, b == null ? void 0 : b.prefix]), N = oy(F), K = N.max, Y = N.min, k = {
|
|
2035
2035
|
theme: v,
|
|
@@ -2064,7 +2064,7 @@ function uy(e) {
|
|
|
2064
2064
|
deprecatedTokens: C.deprecatedTokens
|
|
2065
2065
|
});
|
|
2066
2066
|
b && z && ne(z) === "object" && Object.keys(z).forEach(function(VA) {
|
|
2067
|
-
z[VA] = "var(".concat(
|
|
2067
|
+
z[VA] = "var(".concat(gs(VA, Zg(I, b.prefix)), ")");
|
|
2068
2068
|
});
|
|
2069
2069
|
var nA = At(H, {
|
|
2070
2070
|
componentCls: J,
|
|
@@ -2107,7 +2107,7 @@ function uy(e) {
|
|
|
2107
2107
|
};
|
|
2108
2108
|
}
|
|
2109
2109
|
const Lr = ["blue", "purple", "cyan", "green", "magenta", "pink", "red", "orange", "yellow", "volcano", "geekblue", "lime", "gold"];
|
|
2110
|
-
function
|
|
2110
|
+
function ms(e) {
|
|
2111
2111
|
return (e + 8) / e;
|
|
2112
2112
|
}
|
|
2113
2113
|
function Vy(e) {
|
|
@@ -2117,7 +2117,7 @@ function Vy(e) {
|
|
|
2117
2117
|
});
|
|
2118
2118
|
return A[1] = e, A.map((t) => ({
|
|
2119
2119
|
size: t,
|
|
2120
|
-
lineHeight:
|
|
2120
|
+
lineHeight: ms(t)
|
|
2121
2121
|
}));
|
|
2122
2122
|
}
|
|
2123
2123
|
const dy = "5.24.0", qm = {
|
|
@@ -2506,7 +2506,7 @@ class Xe {
|
|
|
2506
2506
|
this.r = t[0], this.g = t[1], this.b = t[2], this.a = t[3];
|
|
2507
2507
|
}
|
|
2508
2508
|
}
|
|
2509
|
-
var
|
|
2509
|
+
var za = 2, $g = 0.16, gy = 0.05, hy = 0.05, py = 0.15, mm = 5, Cm = 4, fy = [{
|
|
2510
2510
|
index: 7,
|
|
2511
2511
|
amount: 15
|
|
2512
2512
|
}, {
|
|
@@ -2539,7 +2539,7 @@ var Wa = 2, $g = 0.16, gy = 0.05, hy = 0.05, py = 0.15, mm = 5, Cm = 4, fy = [{
|
|
|
2539
2539
|
}];
|
|
2540
2540
|
function _g(e, A, t) {
|
|
2541
2541
|
var n;
|
|
2542
|
-
return Math.round(e.h) >= 60 && Math.round(e.h) <= 240 ? n = t ? Math.round(e.h) -
|
|
2542
|
+
return Math.round(e.h) >= 60 && Math.round(e.h) <= 240 ? n = t ? Math.round(e.h) - za * A : Math.round(e.h) + za * A : n = t ? Math.round(e.h) + za * A : Math.round(e.h) - za * A, n < 0 ? n += 360 : n >= 360 && (n -= 360), n;
|
|
2543
2543
|
}
|
|
2544
2544
|
function Ah(e, A, t) {
|
|
2545
2545
|
if (e.h === 0 && e.s === 0)
|
|
@@ -2606,8 +2606,8 @@ var yu = ["#f6ffed", "#d9f7be", "#b7eb8f", "#95de64", "#73d13d", "#52c41a", "#38
|
|
|
2606
2606
|
yu.primary = yu[5];
|
|
2607
2607
|
var Mu = ["#e6fffb", "#b5f5ec", "#87e8de", "#5cdbd3", "#36cfc9", "#13c2c2", "#08979c", "#006d75", "#00474f", "#002329"];
|
|
2608
2608
|
Mu.primary = Mu[5];
|
|
2609
|
-
var
|
|
2610
|
-
|
|
2609
|
+
var ks = ["#e6f4ff", "#bae0ff", "#91caff", "#69b1ff", "#4096ff", "#1677ff", "#0958d9", "#003eb3", "#002c8c", "#001d66"];
|
|
2610
|
+
ks.primary = ks[5];
|
|
2611
2611
|
var wu = ["#f0f5ff", "#d6e4ff", "#adc6ff", "#85a5ff", "#597ef7", "#2f54eb", "#1d39c4", "#10239e", "#061178", "#030852"];
|
|
2612
2612
|
wu.primary = wu[5];
|
|
2613
2613
|
var Su = ["#f9f0ff", "#efdbff", "#d3adf7", "#b37feb", "#9254de", "#722ed1", "#531dab", "#391085", "#22075e", "#120338"];
|
|
@@ -2625,7 +2625,7 @@ var fc = {
|
|
|
2625
2625
|
lime: Iu,
|
|
2626
2626
|
green: yu,
|
|
2627
2627
|
cyan: Mu,
|
|
2628
|
-
blue:
|
|
2628
|
+
blue: ks,
|
|
2629
2629
|
geekblue: wu,
|
|
2630
2630
|
purple: Su,
|
|
2631
2631
|
magenta: Bu,
|
|
@@ -3152,7 +3152,7 @@ function Er(e) {
|
|
|
3152
3152
|
getPopupContainer: r
|
|
3153
3153
|
});
|
|
3154
3154
|
}
|
|
3155
|
-
const
|
|
3155
|
+
const Gs = {
|
|
3156
3156
|
overflow: "hidden",
|
|
3157
3157
|
whiteSpace: "nowrap",
|
|
3158
3158
|
textOverflow: "ellipsis"
|
|
@@ -3170,7 +3170,7 @@ const ks = {
|
|
|
3170
3170
|
// font-feature-settings: @font-feature-settings-base;
|
|
3171
3171
|
fontFamily: A ? "inherit" : e.fontFamily
|
|
3172
3172
|
};
|
|
3173
|
-
},
|
|
3173
|
+
}, Da = () => ({
|
|
3174
3174
|
display: "inline-flex",
|
|
3175
3175
|
alignItems: "center",
|
|
3176
3176
|
color: "inherit",
|
|
@@ -3255,7 +3255,7 @@ const ks = {
|
|
|
3255
3255
|
}), xu = (e, A) => ({
|
|
3256
3256
|
"&:focus-visible": Object.assign({}, Cl(e, A))
|
|
3257
3257
|
}), wm = (e) => ({
|
|
3258
|
-
[`.${e}`]: Object.assign(Object.assign({},
|
|
3258
|
+
[`.${e}`]: Object.assign(Object.assign({}, Da()), {
|
|
3259
3259
|
[`.${e} .${e}-icon`]: {
|
|
3260
3260
|
display: "block"
|
|
3261
3261
|
}
|
|
@@ -3556,19 +3556,19 @@ const Qm = {
|
|
|
3556
3556
|
gradientColor: "Gradient"
|
|
3557
3557
|
}
|
|
3558
3558
|
};
|
|
3559
|
-
let
|
|
3560
|
-
const ih = () =>
|
|
3559
|
+
let Cs = Object.assign({}, oo.Modal), vs = [];
|
|
3560
|
+
const ih = () => vs.reduce((e, A) => Object.assign(Object.assign({}, e), A), oo.Modal);
|
|
3561
3561
|
function Ky(e) {
|
|
3562
3562
|
if (e) {
|
|
3563
3563
|
const A = Object.assign({}, e);
|
|
3564
|
-
return
|
|
3565
|
-
|
|
3564
|
+
return vs.push(A), Cs = ih(), () => {
|
|
3565
|
+
vs = vs.filter((t) => t !== A), Cs = ih();
|
|
3566
3566
|
};
|
|
3567
3567
|
}
|
|
3568
|
-
|
|
3568
|
+
Cs = Object.assign({}, oo.Modal);
|
|
3569
3569
|
}
|
|
3570
3570
|
function Dk() {
|
|
3571
|
-
return
|
|
3571
|
+
return Cs;
|
|
3572
3572
|
}
|
|
3573
3573
|
const qd = /* @__PURE__ */ hl(void 0), md = (e, A) => {
|
|
3574
3574
|
const t = c.useContext(qd), n = c.useMemo(() => {
|
|
@@ -3667,7 +3667,7 @@ function _y(e, A, t) {
|
|
|
3667
3667
|
const l = o.cssVar || a.cssVar, u = !!(typeof o.cssVar == "object" && (!((r = o.cssVar) === null || r === void 0) && r.key) || s);
|
|
3668
3668
|
process.env.NODE_ENV !== "production" && i(!l || u, "breaking", "Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.");
|
|
3669
3669
|
}
|
|
3670
|
-
return
|
|
3670
|
+
return Ra(() => {
|
|
3671
3671
|
var l, u;
|
|
3672
3672
|
if (!e)
|
|
3673
3673
|
return A;
|
|
@@ -3737,7 +3737,7 @@ function qa(e) {
|
|
|
3737
3737
|
function tM(e) {
|
|
3738
3738
|
return e && ne(e) === "object" && qa(e.nativeElement) ? e.nativeElement : qa(e) ? e : null;
|
|
3739
3739
|
}
|
|
3740
|
-
function
|
|
3740
|
+
function Es(e) {
|
|
3741
3741
|
var A = tM(e);
|
|
3742
3742
|
if (A)
|
|
3743
3743
|
return A;
|
|
@@ -3777,7 +3777,7 @@ function oM(e) {
|
|
|
3777
3777
|
});
|
|
3778
3778
|
return [i, o];
|
|
3779
3779
|
}
|
|
3780
|
-
var Tr = "none",
|
|
3780
|
+
var Tr = "none", Xa = "appear", $a = "enter", _a = "leave", sh = "none", Un = "prepare", Gi = "start", Yi = "active", Cd = "end", Dm = "prepared";
|
|
3781
3781
|
function lh(e, A) {
|
|
3782
3782
|
var t = {};
|
|
3783
3783
|
return t[e.toLowerCase()] = A.toLowerCase(), t["Webkit".concat(e)] = "webkit".concat(A), t["Moz".concat(e)] = "moz".concat(A), t["ms".concat(e)] = "MS".concat(A), t["O".concat(e)] = "o".concat(A.toLowerCase()), t;
|
|
@@ -3794,16 +3794,16 @@ if (Ht()) {
|
|
|
3794
3794
|
var lM = document.createElement("div");
|
|
3795
3795
|
Tm = lM.style;
|
|
3796
3796
|
}
|
|
3797
|
-
var
|
|
3797
|
+
var As = {};
|
|
3798
3798
|
function Fm(e) {
|
|
3799
|
-
if (
|
|
3800
|
-
return
|
|
3799
|
+
if (As[e])
|
|
3800
|
+
return As[e];
|
|
3801
3801
|
var A = sM[e];
|
|
3802
3802
|
if (A)
|
|
3803
3803
|
for (var t = Object.keys(A), n = t.length, r = 0; r < n; r += 1) {
|
|
3804
3804
|
var i = t[r];
|
|
3805
3805
|
if (Object.prototype.hasOwnProperty.call(A, i) && i in Tm)
|
|
3806
|
-
return
|
|
3806
|
+
return As[e] = A[i], As[e];
|
|
3807
3807
|
}
|
|
3808
3808
|
return "";
|
|
3809
3809
|
}
|
|
@@ -3933,16 +3933,16 @@ function pM(e, A, t, n) {
|
|
|
3933
3933
|
var IA = Z();
|
|
3934
3934
|
if (!(DA && !DA.deadline && DA.target !== IA)) {
|
|
3935
3935
|
var uA = H.current, SA;
|
|
3936
|
-
kA ===
|
|
3936
|
+
kA === Xa && uA ? SA = M == null ? void 0 : M(IA, DA) : kA === $a && uA ? SA = g == null ? void 0 : g(IA, DA) : kA === _a && uA && (SA = Q == null ? void 0 : Q(IA, DA)), uA && SA !== !1 && L();
|
|
3937
3937
|
}
|
|
3938
3938
|
}
|
|
3939
3939
|
}), J = cM(z), eA = W(J, 1), nA = eA[0], iA = function(kA) {
|
|
3940
3940
|
switch (kA) {
|
|
3941
|
-
case za:
|
|
3942
|
-
return U(U(U({}, Un, d), Gi, C), Yi, I);
|
|
3943
3941
|
case Xa:
|
|
3944
|
-
return U(U(U({}, Un,
|
|
3942
|
+
return U(U(U({}, Un, d), Gi, C), Yi, I);
|
|
3945
3943
|
case $a:
|
|
3944
|
+
return U(U(U({}, Un, h), Gi, f), Yi, w);
|
|
3945
|
+
case _a:
|
|
3946
3946
|
return U(U(U({}, Un, m), Gi, q), Yi, B);
|
|
3947
3947
|
default:
|
|
3948
3948
|
return {};
|
|
@@ -3972,15 +3972,15 @@ function pM(e, A, t, n) {
|
|
|
3972
3972
|
var DA = k.current;
|
|
3973
3973
|
k.current = !0;
|
|
3974
3974
|
var kA;
|
|
3975
|
-
!DA && A && a && (kA =
|
|
3975
|
+
!DA && A && a && (kA = Xa), DA && A && i && (kA = $a), (DA && !A && l || !DA && V && !A && l) && (kA = _a);
|
|
3976
3976
|
var IA = iA(kA);
|
|
3977
3977
|
kA && (e || IA[Un]) ? (T(kA), oA()) : T(Tr), MA.current = A;
|
|
3978
3978
|
}
|
|
3979
3979
|
}, [A]), _e(function() {
|
|
3980
3980
|
// Cancel appear
|
|
3981
|
-
(Y ===
|
|
3982
|
-
Y ===
|
|
3983
|
-
Y ===
|
|
3981
|
+
(Y === Xa && !a || // Cancel enter
|
|
3982
|
+
Y === $a && !i || // Cancel leave
|
|
3983
|
+
Y === _a && !l) && T(Tr);
|
|
3984
3984
|
}, [a, i, l]), _e(function() {
|
|
3985
3985
|
return function() {
|
|
3986
3986
|
k.current = !1, clearTimeout(P.current);
|
|
@@ -4005,7 +4005,7 @@ function fM(e) {
|
|
|
4005
4005
|
var o = r.visible, a = o === void 0 ? !0 : o, s = r.removeOnLeave, l = s === void 0 ? !0 : s, u = r.forceRender, V = r.children, d = r.motionName, h = r.leavedClassName, m = r.eventProps, C = c.useContext(xm), f = C.motion, q = t(r, f), I = RA(), w = RA();
|
|
4006
4006
|
function B() {
|
|
4007
4007
|
try {
|
|
4008
|
-
return I.current instanceof HTMLElement ? I.current :
|
|
4008
|
+
return I.current instanceof HTMLElement ? I.current : Es(w.current);
|
|
4009
4009
|
} catch {
|
|
4010
4010
|
return null;
|
|
4011
4011
|
}
|
|
@@ -4213,9 +4213,9 @@ const BM = process.env.NODE_ENV !== "production" ? (e) => {
|
|
|
4213
4213
|
/* istanbul ignore next */
|
|
4214
4214
|
null
|
|
4215
4215
|
), QM = ["getTargetContainer", "getPopupContainer", "renderEmpty", "input", "pagination", "form", "select", "button"];
|
|
4216
|
-
let
|
|
4217
|
-
function
|
|
4218
|
-
return
|
|
4216
|
+
let Ys, Hm, Jm, Pm;
|
|
4217
|
+
function Is() {
|
|
4218
|
+
return Ys || fa;
|
|
4219
4219
|
}
|
|
4220
4220
|
function bM() {
|
|
4221
4221
|
return Hm || ml;
|
|
@@ -4230,11 +4230,11 @@ const xM = (e) => {
|
|
|
4230
4230
|
theme: n,
|
|
4231
4231
|
holderRender: r
|
|
4232
4232
|
} = e;
|
|
4233
|
-
A !== void 0 && (
|
|
4233
|
+
A !== void 0 && (Ys = A), t !== void 0 && (Hm = t), "holderRender" in e && (Pm = r), n && (RM(n) ? (process.env.NODE_ENV !== "production" && qi(!1, "ConfigProvider", "`config` of css variable theme is not work in v5. Please use new `theme` config instead."), Hy(Is(), n)) : Jm = n);
|
|
4234
4234
|
}, Wm = () => ({
|
|
4235
|
-
getPrefixCls: (e, A) => A || (e ? `${
|
|
4235
|
+
getPrefixCls: (e, A) => A || (e ? `${Is()}-${e}` : Is()),
|
|
4236
4236
|
getIconPrefixCls: bM,
|
|
4237
|
-
getRootPrefixCls: () =>
|
|
4237
|
+
getRootPrefixCls: () => Ys || Is(),
|
|
4238
4238
|
getTheme: () => Jm,
|
|
4239
4239
|
holderRender: Pm
|
|
4240
4240
|
}), DM = (e) => {
|
|
@@ -4317,7 +4317,7 @@ const xM = (e) => {
|
|
|
4317
4317
|
floatButtonGroup: aA,
|
|
4318
4318
|
variant: CA,
|
|
4319
4319
|
inputNumber: vA,
|
|
4320
|
-
treeSelect:
|
|
4320
|
+
treeSelect: ge
|
|
4321
4321
|
} = e, Le = c.useCallback((ZA, D) => {
|
|
4322
4322
|
const {
|
|
4323
4323
|
prefixCls: lA
|
|
@@ -4405,7 +4405,7 @@ const xM = (e) => {
|
|
|
4405
4405
|
floatButtonGroup: aA,
|
|
4406
4406
|
variant: CA,
|
|
4407
4407
|
inputNumber: vA,
|
|
4408
|
-
treeSelect:
|
|
4408
|
+
treeSelect: ge
|
|
4409
4409
|
};
|
|
4410
4410
|
process.env.NODE_ENV !== "production" && gt("ConfigProvider")(!("autoInsertSpaceInButton" in e), "deprecated", "`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");
|
|
4411
4411
|
const BA = Object.assign({}, q);
|
|
@@ -4417,12 +4417,12 @@ const xM = (e) => {
|
|
|
4417
4417
|
}), typeof n < "u" && (BA.button = Object.assign({
|
|
4418
4418
|
autoInsertSpace: n
|
|
4419
4419
|
}, BA.button));
|
|
4420
|
-
const le =
|
|
4420
|
+
const le = Ra(() => BA, BA, (ZA, D) => {
|
|
4421
4421
|
const lA = Object.keys(ZA), dA = Object.keys(D);
|
|
4422
4422
|
return lA.length !== dA.length || lA.some((GA) => ZA[GA] !== D[GA]);
|
|
4423
4423
|
}), {
|
|
4424
4424
|
layer: ye
|
|
4425
|
-
} = c.useContext(
|
|
4425
|
+
} = c.useContext(xa), FA = c.useMemo(() => ({
|
|
4426
4426
|
prefixCls: Qe,
|
|
4427
4427
|
csp: me,
|
|
4428
4428
|
layer: ye ? "antd" : void 0
|
|
@@ -4491,7 +4491,7 @@ Object.defineProperty(Ir, "SizeContext", {
|
|
|
4491
4491
|
get: () => (process.env.NODE_ENV !== "production" && qi(!1, "ConfigProvider", "ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."), ao)
|
|
4492
4492
|
});
|
|
4493
4493
|
process.env.NODE_ENV !== "production" && (Ir.displayName = "ConfigProvider");
|
|
4494
|
-
var
|
|
4494
|
+
var es = { exports: {} }, To = {};
|
|
4495
4495
|
/**
|
|
4496
4496
|
* @license React
|
|
4497
4497
|
* react-jsx-runtime.production.min.js
|
|
@@ -4963,7 +4963,7 @@ function FM() {
|
|
|
4963
4963
|
function vA(D) {
|
|
4964
4964
|
return typeof D == "object" && D !== null && D.$$typeof === A;
|
|
4965
4965
|
}
|
|
4966
|
-
function
|
|
4966
|
+
function ge() {
|
|
4967
4967
|
{
|
|
4968
4968
|
if (Ce.current) {
|
|
4969
4969
|
var D = S(Ce.current.type);
|
|
@@ -4981,7 +4981,7 @@ Check the render method of \`` + D + "`.";
|
|
|
4981
4981
|
var Qe = {};
|
|
4982
4982
|
function me(D) {
|
|
4983
4983
|
{
|
|
4984
|
-
var lA =
|
|
4984
|
+
var lA = ge();
|
|
4985
4985
|
if (!lA) {
|
|
4986
4986
|
var dA = typeof D == "string" ? D : D.displayName || D.name;
|
|
4987
4987
|
dA && (lA = `
|
|
@@ -5068,7 +5068,7 @@ Check the top-level render call using <` + dA + ">.");
|
|
|
5068
5068
|
var ie = "";
|
|
5069
5069
|
(D === void 0 || typeof D == "object" && D !== null && Object.keys(D).length === 0) && (ie += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
5070
5070
|
var Ne = Le();
|
|
5071
|
-
Ne ? ie += Ne : ie +=
|
|
5071
|
+
Ne ? ie += Ne : ie += ge();
|
|
5072
5072
|
var pe;
|
|
5073
5073
|
D === null ? pe = "null" : kA(D) ? pe = "array" : D !== void 0 && D.$$typeof === A ? (pe = "<" + (S(D.type) || "Unknown") + " />", ie = " Did you accidentally export a JSX literal instead of a component?") : pe = typeof D, I("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", pe, ie);
|
|
5074
5074
|
}
|
|
@@ -5117,7 +5117,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
5117
5117
|
}
|
|
5118
5118
|
var ph;
|
|
5119
5119
|
function UM() {
|
|
5120
|
-
return ph || (ph = 1, process.env.NODE_ENV === "production" ?
|
|
5120
|
+
return ph || (ph = 1, process.env.NODE_ENV === "production" ? es.exports = TM() : es.exports = FM()), es.exports;
|
|
5121
5121
|
}
|
|
5122
5122
|
var sA = UM();
|
|
5123
5123
|
const fh = {};
|
|
@@ -5376,9 +5376,9 @@ function qh(e, A) {
|
|
|
5376
5376
|
function Ec(e, A, t) {
|
|
5377
5377
|
return t = t || " ", e.length > A ? e : (A -= e.length, e + (t += t.repeat(A)).slice(0, A));
|
|
5378
5378
|
}
|
|
5379
|
-
let mh = class
|
|
5379
|
+
let mh = class ys extends Error {
|
|
5380
5380
|
constructor(A, t, n, r) {
|
|
5381
|
-
super(), this.message = A, this.expected = t, this.found = n, this.location = r, this.name = "SyntaxError", typeof Object.setPrototypeOf == "function" ? Object.setPrototypeOf(this,
|
|
5381
|
+
super(), this.message = A, this.expected = t, this.found = n, this.location = r, this.name = "SyntaxError", typeof Object.setPrototypeOf == "function" ? Object.setPrototypeOf(this, ys.prototype) : this.__proto__ = ys.prototype, typeof Error.captureStackTrace == "function" && Error.captureStackTrace(this, ys);
|
|
5382
5382
|
}
|
|
5383
5383
|
static buildMessage(A, t) {
|
|
5384
5384
|
function n(s) {
|
|
@@ -5916,9 +5916,9 @@ let $m = class {
|
|
|
5916
5916
|
constructor() {
|
|
5917
5917
|
super();
|
|
5918
5918
|
}
|
|
5919
|
-
}, vd = class
|
|
5919
|
+
}, vd = class Ms {
|
|
5920
5920
|
constructor(A, t, n, r, i, o, a) {
|
|
5921
|
-
this.headers = {}, this.extraHeaders = [], this.options =
|
|
5921
|
+
this.headers = {}, this.extraHeaders = [], this.options = Ms.getDefaultOptions(), i && (this.options = Object.assign(Object.assign({}, this.options), i), this.options.optionTags && this.options.optionTags.length && (this.options.optionTags = this.options.optionTags.slice()), this.options.routeSet && this.options.routeSet.length && (this.options.routeSet = this.options.routeSet.slice())), o && o.length && (this.extraHeaders = o.slice()), a && (this.body = { body: a.content, contentType: a.contentType }), this.method = A, this.ruri = t.clone(), this.fromURI = n.clone(), this.fromTag = this.options.fromTag ? this.options.fromTag : Il(), this.from = Ms.makeNameAddrHeader(this.fromURI, this.options.fromDisplayName, this.fromTag), this.toURI = r.clone(), this.toTag = this.options.toTag, this.to = Ms.makeNameAddrHeader(this.toURI, this.options.toDisplayName, this.toTag), this.callId = this.options.callId ? this.options.callId : this.options.callIdPrefix + ti(15), this.cseq = this.options.cseq, this.setHeader("route", this.options.routeSet), this.setHeader("via", ""), this.setHeader("to", this.to.toString()), this.setHeader("from", this.from.toString()), this.setHeader("cseq", this.cseq + " " + this.method), this.setHeader("call-id", this.callId), this.setHeader("max-forwards", "70");
|
|
5922
5922
|
}
|
|
5923
5923
|
static getDefaultOptions() {
|
|
5924
5924
|
return { callId: "", callIdPrefix: "", cseq: 1, toDisplayName: "", toTag: "", fromDisplayName: "", fromTag: "", forceRport: !1, hackViaTcp: !1, optionTags: ["outbound"], routeSet: [], userAgentString: "sip.js", viaHost: "" };
|
|
@@ -5986,7 +5986,7 @@ let $m = class {
|
|
|
5986
5986
|
function _m(e) {
|
|
5987
5987
|
return e === "application/sdp" ? "session" : "render";
|
|
5988
5988
|
}
|
|
5989
|
-
function
|
|
5989
|
+
function Ns(e) {
|
|
5990
5990
|
const A = typeof e == "string" ? e : e.body, t = typeof e == "string" ? "application/sdp" : e.contentType;
|
|
5991
5991
|
return { contentDisposition: _m(t), contentType: t, content: A };
|
|
5992
5992
|
}
|
|
@@ -6452,7 +6452,7 @@ let Nu = class tC {
|
|
|
6452
6452
|
getOffer(A) {
|
|
6453
6453
|
const t = this.setupSessionDescriptionHandler(), n = A.sessionDescriptionHandlerOptions, r = A.sessionDescriptionHandlerModifiers;
|
|
6454
6454
|
try {
|
|
6455
|
-
return t.getDescription(n, r).then((i) =>
|
|
6455
|
+
return t.getDescription(n, r).then((i) => Ns(i)).catch((i) => {
|
|
6456
6456
|
this.logger.error("Session.getOffer: SDH getDescription rejected...");
|
|
6457
6457
|
const o = i instanceof Error ? i : new Error("Session.getOffer unknown error.");
|
|
6458
6458
|
throw this.logger.error(o.message), o;
|
|
@@ -6509,7 +6509,7 @@ let Nu = class tC {
|
|
|
6509
6509
|
return this.logger.error(a.message), Promise.reject(a);
|
|
6510
6510
|
}
|
|
6511
6511
|
try {
|
|
6512
|
-
return n.setDescription(A.content, r, i).then(() => n.getDescription(r, i)).then((o) =>
|
|
6512
|
+
return n.setDescription(A.content, r, i).then(() => n.getDescription(r, i)).then((o) => Ns(o)).catch((o) => {
|
|
6513
6513
|
this.logger.error("Session.setOfferAndGetAnswer: SDH setDescription or getDescription rejected...");
|
|
6514
6514
|
const a = o instanceof Error ? o : new Error("Session.setOfferAndGetAnswer unknown error.");
|
|
6515
6515
|
throw this.logger.error(a.message), a;
|
|
@@ -6657,7 +6657,7 @@ let Zu = class extends Nu {
|
|
|
6657
6657
|
}
|
|
6658
6658
|
const t = A.statusCode || 480, n = A.reasonPhrase ? A.reasonPhrase : El(t), r = A.extraHeaders || [];
|
|
6659
6659
|
if (t < 300 || t > 699) throw new TypeError("Invalid statusCode: " + t);
|
|
6660
|
-
const i = A.body ?
|
|
6660
|
+
const i = A.body ? Ns(A.body) : void 0;
|
|
6661
6661
|
return t < 400 ? this.incomingInviteRequest.redirect([], { statusCode: t, reasonPhrase: n, extraHeaders: r, body: i }) : this.incomingInviteRequest.reject({ statusCode: t, reasonPhrase: n, extraHeaders: r, body: i }), this.stateTransition(cA.Terminated), Promise.resolve();
|
|
6662
6662
|
}
|
|
6663
6663
|
_onCancel(A) {
|
|
@@ -6708,7 +6708,7 @@ let Zu = class extends Nu {
|
|
|
6708
6708
|
return this.waitingForPrack ? this.waitForArrivalOfPrack().then(() => clearTimeout(this.userNoAnswerTimer)).then(() => this.generateResponseOfferAnswer(this.incomingInviteRequest, t)).then((r) => this.incomingInviteRequest.accept({ statusCode: 200, body: r, extraHeaders: n })) : (clearTimeout(this.userNoAnswerTimer), this.generateResponseOfferAnswer(this.incomingInviteRequest, t).then((r) => this.incomingInviteRequest.accept({ statusCode: 200, body: r, extraHeaders: n })));
|
|
6709
6709
|
}
|
|
6710
6710
|
sendProgress(A = {}) {
|
|
6711
|
-
const t = A.statusCode || 180, n = A.reasonPhrase, r = (A.extraHeaders || []).slice(), i = A.body ?
|
|
6711
|
+
const t = A.statusCode || 180, n = A.reasonPhrase, r = (A.extraHeaders || []).slice(), i = A.body ? Ns(A.body) : void 0;
|
|
6712
6712
|
if (t === 183 && !i) return this.sendProgressWithSDP(A);
|
|
6713
6713
|
try {
|
|
6714
6714
|
const o = this.incomingInviteRequest.progress({ statusCode: t, reasonPhrase: n, extraHeaders: r, body: i });
|
|
@@ -6972,7 +6972,7 @@ let Zu = class extends Nu {
|
|
|
6972
6972
|
this.logger.log("Inviter.onTrying"), this.state === cA.Establishing || this.logger.error(`Trying received while in state ${this.state}, dropping response`);
|
|
6973
6973
|
}
|
|
6974
6974
|
};
|
|
6975
|
-
var Ze, ze,
|
|
6975
|
+
var Ze, ze, he, Tt, Rt, ws, AA;
|
|
6976
6976
|
(function(e) {
|
|
6977
6977
|
e.Initial = "Initial", e.Registered = "Registered", e.Unregistered = "Unregistered", e.Terminated = "Terminated";
|
|
6978
6978
|
})(Ze = Ze || (Ze = {}));
|
|
@@ -7174,7 +7174,7 @@ _n.defaultExpires = 600, _n.defaultRefreshFrequency = 99, function(e) {
|
|
|
7174
7174
|
e.Initial = "Initial", e.NotifyWait = "NotifyWait", e.Pending = "Pending", e.Active = "Active", e.Terminated = "Terminated";
|
|
7175
7175
|
}(ze = ze || (ze = {})), function(e) {
|
|
7176
7176
|
e.Connecting = "Connecting", e.Connected = "Connected", e.Disconnecting = "Disconnecting", e.Disconnected = "Disconnected";
|
|
7177
|
-
}(
|
|
7177
|
+
}(he = he || (he = {})), function(e) {
|
|
7178
7178
|
e.Started = "Started", e.Stopped = "Stopped";
|
|
7179
7179
|
}(Tt = Tt || (Tt = {}));
|
|
7180
7180
|
class pt {
|
|
@@ -7506,7 +7506,7 @@ function rC(e, A) {
|
|
|
7506
7506
|
}
|
|
7507
7507
|
r.warn('error parsing first line of SIP message: "' + a + '"');
|
|
7508
7508
|
};
|
|
7509
|
-
})(
|
|
7509
|
+
})(ws = ws || (ws = {}));
|
|
7510
7510
|
class Ic extends mi {
|
|
7511
7511
|
constructor(A) {
|
|
7512
7512
|
super(A || "Unspecified transport error.");
|
|
@@ -8289,7 +8289,7 @@ class _M extends Yt {
|
|
|
8289
8289
|
super(un, A.userAgentCore, r, t);
|
|
8290
8290
|
}
|
|
8291
8291
|
}
|
|
8292
|
-
class
|
|
8292
|
+
class Zs extends rr {
|
|
8293
8293
|
constructor(A, t, n) {
|
|
8294
8294
|
const r = A.userAgentCore !== void 0 ? A.userAgentCore : A;
|
|
8295
8295
|
super(sn, r, t, n);
|
|
@@ -8373,7 +8373,7 @@ class lC extends rr {
|
|
|
8373
8373
|
super(sn, r, t, n);
|
|
8374
8374
|
}
|
|
8375
8375
|
}
|
|
8376
|
-
class
|
|
8376
|
+
class Ks extends so {
|
|
8377
8377
|
constructor(A, t, n, r) {
|
|
8378
8378
|
super(t, n), this.initialTransaction = A, this._signalingState = TA.Initial, this.ackWait = !1, this.ackProcessing = !1, this.delegate = r, A instanceof Xt && (this.ackWait = !0), this.early || this.start2xxRetransmissionTimer(), this.signalingStateTransition(A.request), this.logger = t.loggerFactory.getLogger("sip.invite-dialog"), this.logger.log(`INVITE dialog ${this.id} constructed`);
|
|
8379
8379
|
}
|
|
@@ -8488,7 +8488,7 @@ class Zs extends so {
|
|
|
8488
8488
|
break;
|
|
8489
8489
|
case HA.NOTIFY:
|
|
8490
8490
|
{
|
|
8491
|
-
const t = new
|
|
8491
|
+
const t = new Zs(this, A);
|
|
8492
8492
|
this.delegate && this.delegate.onNotify ? this.delegate.onNotify(t) : t.accept();
|
|
8493
8493
|
}
|
|
8494
8494
|
break;
|
|
@@ -8658,7 +8658,7 @@ class iw extends Yt {
|
|
|
8658
8658
|
if (!r) {
|
|
8659
8659
|
const o = this.transaction;
|
|
8660
8660
|
if (!(o instanceof Kr)) throw new Error("Transaction not instance of InviteClientTransaction.");
|
|
8661
|
-
r = new
|
|
8661
|
+
r = new Ks(o, this.core, n), this.earlyDialogs.set(r.id, r);
|
|
8662
8662
|
}
|
|
8663
8663
|
if (!r.reliableSequenceGuard(A)) return void this.logger.warn("1xx INVITE reliable response received out of order or is a retransmission, dropping.");
|
|
8664
8664
|
r.signalingState !== TA.Initial && r.signalingState !== TA.HaveLocalOffer || r.signalingStateTransition(A);
|
|
@@ -8685,7 +8685,7 @@ class iw extends Yt {
|
|
|
8685
8685
|
else {
|
|
8686
8686
|
const o = this.transaction;
|
|
8687
8687
|
if (!(o instanceof Kr)) throw new Error("Transaction not instance of InviteClientTransaction.");
|
|
8688
|
-
r = new
|
|
8688
|
+
r = new Ks(o, this.core, n), this.confirmedDialogs.set(r.id, r);
|
|
8689
8689
|
}
|
|
8690
8690
|
r.signalingState !== TA.Initial && r.signalingState !== TA.HaveLocalOffer || r.signalingStateTransition(A);
|
|
8691
8691
|
const i = r;
|
|
@@ -8722,7 +8722,7 @@ class yc extends rr {
|
|
|
8722
8722
|
const s = this.transaction;
|
|
8723
8723
|
if (!(s instanceof Xt)) throw new Error("Transaction not instance of InviteClientTransaction.");
|
|
8724
8724
|
const l = so.initialDialogStateForUserAgentServer(this.message, this.toTag);
|
|
8725
|
-
this.confirmedDialog = new
|
|
8725
|
+
this.confirmedDialog = new Ks(s, this.core, l);
|
|
8726
8726
|
}
|
|
8727
8727
|
const t = this.message.getHeaders("record-route").map((s) => `Record-Route: ${s}`), n = `Contact: ${this.core.configuration.contact.toString()}`, r = "Allow: " + Zr.toString();
|
|
8728
8728
|
if (!A.body) {
|
|
@@ -8739,7 +8739,7 @@ class yc extends rr {
|
|
|
8739
8739
|
const a = this.transaction;
|
|
8740
8740
|
if (!(a instanceof Xt)) throw new Error("Transaction not instance of InviteClientTransaction.");
|
|
8741
8741
|
const s = so.initialDialogStateForUserAgentServer(this.message, this.toTag, !0);
|
|
8742
|
-
this.earlyDialog = new
|
|
8742
|
+
this.earlyDialog = new Ks(a, this.core, s);
|
|
8743
8743
|
}
|
|
8744
8744
|
const t = this.message.getHeaders("record-route").map((a) => `Record-Route: ${a}`), n = `Contact: ${this.core.configuration.contact}`;
|
|
8745
8745
|
A.extraHeaders = A.extraHeaders || [], A.extraHeaders = A.extraHeaders.concat(t), A.extraHeaders.push(n);
|
|
@@ -8877,7 +8877,7 @@ class vh extends so {
|
|
|
8877
8877
|
default:
|
|
8878
8878
|
this.logger.warn("Unrecognized subscription state.");
|
|
8879
8879
|
}
|
|
8880
|
-
const o = new
|
|
8880
|
+
const o = new Zs(this, A);
|
|
8881
8881
|
this.delegate && this.delegate.onNotify ? this.delegate.onNotify(o) : o.accept();
|
|
8882
8882
|
}
|
|
8883
8883
|
onRefresh(A) {
|
|
@@ -9084,7 +9084,7 @@ class Vw {
|
|
|
9084
9084
|
if (!r || !r.event) return void this.replyStateless(A, { statusCode: 489 });
|
|
9085
9085
|
const i = A.callId + A.toTag + r.event, o = this.subscribers.get(i);
|
|
9086
9086
|
if (o) {
|
|
9087
|
-
const a = new
|
|
9087
|
+
const a = new Zs(this, A);
|
|
9088
9088
|
return void o.onNotify(a);
|
|
9089
9089
|
}
|
|
9090
9090
|
}
|
|
@@ -9123,7 +9123,7 @@ class Vw {
|
|
|
9123
9123
|
break;
|
|
9124
9124
|
case HA.NOTIFY:
|
|
9125
9125
|
{
|
|
9126
|
-
const t = new
|
|
9126
|
+
const t = new Zs(this, A);
|
|
9127
9127
|
this.delegate.onNotify ? this.delegate.onNotify(t) : t.reject({ statusCode: 405 });
|
|
9128
9128
|
}
|
|
9129
9129
|
break;
|
|
@@ -9480,7 +9480,7 @@ function dw(e) {
|
|
|
9480
9480
|
}
|
|
9481
9481
|
class Ml {
|
|
9482
9482
|
constructor(A, t) {
|
|
9483
|
-
if (this._state =
|
|
9483
|
+
if (this._state = he.Disconnected, this.transitioningState = !1, this._stateEventEmitter = new ma(), this.logger = A, t) {
|
|
9484
9484
|
const i = t, o = i == null ? void 0 : i.wsServers, a = i == null ? void 0 : i.maxReconnectionAttempts;
|
|
9485
9485
|
o !== void 0 && this.logger.warn('The transport option "wsServers" as has apparently been specified and has been deprecated. It will no longer be available starting with SIP.js release 0.16.0. Please update accordingly.'), a !== void 0 && this.logger.warn('The transport option "maxReconnectionAttempts" as has apparently been specified and has been deprecated. It will no longer be available starting with SIP.js release 0.16.0. Please update accordingly.'), o && !t.server && (typeof o == "string" && (t.server = o), o instanceof Array && (t.server = o[0]));
|
|
9486
9486
|
}
|
|
@@ -9515,34 +9515,34 @@ class Ml {
|
|
|
9515
9515
|
return this._disconnect();
|
|
9516
9516
|
}
|
|
9517
9517
|
isConnected() {
|
|
9518
|
-
return this.state ===
|
|
9518
|
+
return this.state === he.Connected;
|
|
9519
9519
|
}
|
|
9520
9520
|
send(A) {
|
|
9521
9521
|
return this._send(A);
|
|
9522
9522
|
}
|
|
9523
9523
|
_connect() {
|
|
9524
9524
|
switch (this.logger.log(`Connecting ${this.server}`), this.state) {
|
|
9525
|
-
case
|
|
9526
|
-
if (this.transitioningState) return Promise.reject(this.transitionLoopDetectedError(
|
|
9525
|
+
case he.Connecting:
|
|
9526
|
+
if (this.transitioningState) return Promise.reject(this.transitionLoopDetectedError(he.Connecting));
|
|
9527
9527
|
if (!this.connectPromise) throw new Error("Connect promise must be defined.");
|
|
9528
9528
|
return this.connectPromise;
|
|
9529
|
-
case
|
|
9530
|
-
if (this.transitioningState) return Promise.reject(this.transitionLoopDetectedError(
|
|
9529
|
+
case he.Connected:
|
|
9530
|
+
if (this.transitioningState) return Promise.reject(this.transitionLoopDetectedError(he.Connecting));
|
|
9531
9531
|
if (this.connectPromise) throw new Error("Connect promise must not be defined.");
|
|
9532
9532
|
return Promise.resolve();
|
|
9533
|
-
case
|
|
9533
|
+
case he.Disconnecting:
|
|
9534
9534
|
if (this.connectPromise) throw new Error("Connect promise must not be defined.");
|
|
9535
9535
|
try {
|
|
9536
|
-
this.transitionState(
|
|
9536
|
+
this.transitionState(he.Connecting);
|
|
9537
9537
|
} catch (t) {
|
|
9538
9538
|
if (t instanceof Uo) return Promise.reject(t);
|
|
9539
9539
|
throw t;
|
|
9540
9540
|
}
|
|
9541
9541
|
break;
|
|
9542
|
-
case
|
|
9542
|
+
case he.Disconnected:
|
|
9543
9543
|
if (this.connectPromise) throw new Error("Connect promise must not be defined.");
|
|
9544
9544
|
try {
|
|
9545
|
-
this.transitionState(
|
|
9545
|
+
this.transitionState(he.Connecting);
|
|
9546
9546
|
} catch (t) {
|
|
9547
9547
|
if (t instanceof Uo) return Promise.reject(t);
|
|
9548
9548
|
throw t;
|
|
@@ -9556,7 +9556,7 @@ class Ml {
|
|
|
9556
9556
|
A = new WebSocket(this.server, "sip"), A.binaryType = "arraybuffer", A.addEventListener("close", (t) => this.onWebSocketClose(t, A)), A.addEventListener("error", (t) => this.onWebSocketError(t, A)), A.addEventListener("open", (t) => this.onWebSocketOpen(t, A)), A.addEventListener("message", (t) => this.onWebSocketMessage(t, A)), this._ws = A;
|
|
9557
9557
|
} catch (t) {
|
|
9558
9558
|
return this._ws = void 0, this.logger.error("WebSocket construction failed."), this.logger.error(t.toString()), new Promise((n, r) => {
|
|
9559
|
-
this.connectResolve = n, this.connectReject = r, this.transitionState(
|
|
9559
|
+
this.connectResolve = n, this.connectReject = r, this.transitionState(he.Disconnected, t);
|
|
9560
9560
|
});
|
|
9561
9561
|
}
|
|
9562
9562
|
return this.connectPromise = new Promise((t, n) => {
|
|
@@ -9567,30 +9567,30 @@ class Ml {
|
|
|
9567
9567
|
}
|
|
9568
9568
|
_disconnect() {
|
|
9569
9569
|
switch (this.logger.log(`Disconnecting ${this.server}`), this.state) {
|
|
9570
|
-
case
|
|
9570
|
+
case he.Connecting:
|
|
9571
9571
|
if (this.disconnectPromise) throw new Error("Disconnect promise must not be defined.");
|
|
9572
9572
|
try {
|
|
9573
|
-
this.transitionState(
|
|
9573
|
+
this.transitionState(he.Disconnecting);
|
|
9574
9574
|
} catch (t) {
|
|
9575
9575
|
if (t instanceof Uo) return Promise.reject(t);
|
|
9576
9576
|
throw t;
|
|
9577
9577
|
}
|
|
9578
9578
|
break;
|
|
9579
|
-
case
|
|
9579
|
+
case he.Connected:
|
|
9580
9580
|
if (this.disconnectPromise) throw new Error("Disconnect promise must not be defined.");
|
|
9581
9581
|
try {
|
|
9582
|
-
this.transitionState(
|
|
9582
|
+
this.transitionState(he.Disconnecting);
|
|
9583
9583
|
} catch (t) {
|
|
9584
9584
|
if (t instanceof Uo) return Promise.reject(t);
|
|
9585
9585
|
throw t;
|
|
9586
9586
|
}
|
|
9587
9587
|
break;
|
|
9588
|
-
case
|
|
9589
|
-
if (this.transitioningState) return Promise.reject(this.transitionLoopDetectedError(
|
|
9588
|
+
case he.Disconnecting:
|
|
9589
|
+
if (this.transitioningState) return Promise.reject(this.transitionLoopDetectedError(he.Disconnecting));
|
|
9590
9590
|
if (!this.disconnectPromise) throw new Error("Disconnect promise must be defined.");
|
|
9591
9591
|
return this.disconnectPromise;
|
|
9592
|
-
case
|
|
9593
|
-
if (this.transitioningState) return Promise.reject(this.transitionLoopDetectedError(
|
|
9592
|
+
case he.Disconnected:
|
|
9593
|
+
if (this.transitioningState) return Promise.reject(this.transitionLoopDetectedError(he.Disconnecting));
|
|
9594
9594
|
if (this.disconnectPromise) throw new Error("Disconnect promise must not be defined.");
|
|
9595
9595
|
return Promise.resolve();
|
|
9596
9596
|
default:
|
|
@@ -9611,7 +9611,7 @@ class Ml {
|
|
|
9611
9611
|
if (this.configuration.traceSip === !0 && this.logger.log(`Sending WebSocket message:
|
|
9612
9612
|
|
|
9613
9613
|
` + A + `
|
|
9614
|
-
`), this._state !==
|
|
9614
|
+
`), this._state !== he.Connected) return Promise.reject(new Error("Not connected."));
|
|
9615
9615
|
if (!this._ws) throw new Error("WebSocket undefined.");
|
|
9616
9616
|
try {
|
|
9617
9617
|
this._ws.send(A);
|
|
@@ -9623,7 +9623,7 @@ class Ml {
|
|
|
9623
9623
|
onWebSocketClose(A, t) {
|
|
9624
9624
|
if (t !== this._ws) return;
|
|
9625
9625
|
const n = `WebSocket closed ${this.server} (code: ${A.code})`, r = this.disconnectPromise ? void 0 : new Error(n);
|
|
9626
|
-
r && this.logger.warn("WebSocket closed unexpectedly"), this.logger.log(n), this._ws = void 0, this.transitionState(
|
|
9626
|
+
r && this.logger.warn("WebSocket closed unexpectedly"), this.logger.log(n), this._ws = void 0, this.transitionState(he.Disconnected, r);
|
|
9627
9627
|
}
|
|
9628
9628
|
onWebSocketError(A, t) {
|
|
9629
9629
|
t === this._ws && this.logger.error("WebSocket error occurred.");
|
|
@@ -9648,7 +9648,7 @@ class Ml {
|
|
|
9648
9648
|
|
|
9649
9649
|
` + r + `
|
|
9650
9650
|
`);
|
|
9651
|
-
if (this.state ===
|
|
9651
|
+
if (this.state === he.Connected) {
|
|
9652
9652
|
if (this.onMessage) try {
|
|
9653
9653
|
this.onMessage(r);
|
|
9654
9654
|
} catch (i) {
|
|
@@ -9658,7 +9658,7 @@ class Ml {
|
|
|
9658
9658
|
} else this.logger.warn("Received empty message, discarding...");
|
|
9659
9659
|
}
|
|
9660
9660
|
onWebSocketOpen(A, t) {
|
|
9661
|
-
t === this._ws && this._state ===
|
|
9661
|
+
t === this._ws && this._state === he.Connecting && (this.logger.log(`WebSocket opened ${this.server}`), this.transitionState(he.Connected));
|
|
9662
9662
|
}
|
|
9663
9663
|
transitionLoopDetectedError(A) {
|
|
9664
9664
|
let t = "A state transition loop has been detected.";
|
|
@@ -9670,17 +9670,17 @@ class Ml {
|
|
|
9670
9670
|
};
|
|
9671
9671
|
if (this.transitioningState) throw this.transitionLoopDetectedError(A);
|
|
9672
9672
|
switch (this.transitioningState = !0, this._state) {
|
|
9673
|
-
case
|
|
9674
|
-
A !==
|
|
9673
|
+
case he.Connecting:
|
|
9674
|
+
A !== he.Connected && A !== he.Disconnecting && A !== he.Disconnected && n();
|
|
9675
9675
|
break;
|
|
9676
|
-
case
|
|
9677
|
-
A !==
|
|
9676
|
+
case he.Connected:
|
|
9677
|
+
A !== he.Disconnecting && A !== he.Disconnected && n();
|
|
9678
9678
|
break;
|
|
9679
|
-
case
|
|
9680
|
-
A !==
|
|
9679
|
+
case he.Disconnecting:
|
|
9680
|
+
A !== he.Connecting && A !== he.Disconnected && n();
|
|
9681
9681
|
break;
|
|
9682
|
-
case
|
|
9683
|
-
A !==
|
|
9682
|
+
case he.Disconnected:
|
|
9683
|
+
A !== he.Connecting && n();
|
|
9684
9684
|
break;
|
|
9685
9685
|
default:
|
|
9686
9686
|
throw new Error("Unknown state.");
|
|
@@ -9688,27 +9688,27 @@ class Ml {
|
|
|
9688
9688
|
const r = this._state;
|
|
9689
9689
|
this._state = A;
|
|
9690
9690
|
const i = this.connectResolve, o = this.connectReject;
|
|
9691
|
-
r ===
|
|
9691
|
+
r === he.Connecting && (this.connectPromise = void 0, this.connectResolve = void 0, this.connectReject = void 0);
|
|
9692
9692
|
const a = this.disconnectResolve, s = this.disconnectReject;
|
|
9693
|
-
if (r ===
|
|
9693
|
+
if (r === he.Disconnecting && (this.disconnectPromise = void 0, this.disconnectResolve = void 0, this.disconnectReject = void 0), this.connectTimeout && (clearTimeout(this.connectTimeout), this.connectTimeout = void 0), this.logger.log(`Transitioned from ${r} to ${this._state}`), this._stateEventEmitter.emit(this._state), A === he.Connected && (this.startSendingKeepAlives(), this.onConnect)) try {
|
|
9694
9694
|
this.onConnect();
|
|
9695
9695
|
} catch (l) {
|
|
9696
9696
|
throw this.logger.error(l.toString()), this.logger.error("Exception thrown by onConnect callback"), l;
|
|
9697
9697
|
}
|
|
9698
|
-
if (r ===
|
|
9698
|
+
if (r === he.Connected && (this.stopSendingKeepAlives(), this.onDisconnect)) try {
|
|
9699
9699
|
t ? this.onDisconnect(t) : this.onDisconnect();
|
|
9700
9700
|
} catch (l) {
|
|
9701
9701
|
throw this.logger.error(l.toString()), this.logger.error("Exception thrown by onDisconnect callback"), l;
|
|
9702
9702
|
}
|
|
9703
|
-
if (r ===
|
|
9703
|
+
if (r === he.Connecting) {
|
|
9704
9704
|
if (!i) throw new Error("Connect resolve undefined.");
|
|
9705
9705
|
if (!o) throw new Error("Connect reject undefined.");
|
|
9706
|
-
A ===
|
|
9706
|
+
A === he.Connected ? i() : o(t || new Error("Connect aborted."));
|
|
9707
9707
|
}
|
|
9708
|
-
if (r ===
|
|
9708
|
+
if (r === he.Disconnecting) {
|
|
9709
9709
|
if (!a) throw new Error("Disconnect resolve undefined.");
|
|
9710
9710
|
if (!s) throw new Error("Disconnect reject undefined.");
|
|
9711
|
-
A ===
|
|
9711
|
+
A === he.Disconnected ? a() : s(t || new Error("Disconnect aborted."));
|
|
9712
9712
|
}
|
|
9713
9713
|
this.transitioningState = !1;
|
|
9714
9714
|
}
|
|
@@ -9943,7 +9943,7 @@ class Ki {
|
|
|
9943
9943
|
this.state !== Tt.Stopped && (this.delegate && this.delegate.onDisconnect && this.delegate.onDisconnect(A), A && this.options.reconnectionAttempts > 0 && this.attemptReconnection());
|
|
9944
9944
|
}
|
|
9945
9945
|
onTransportMessage(A) {
|
|
9946
|
-
const t =
|
|
9946
|
+
const t = ws.parseMessage(A, this.getLogger("sip.Parser"));
|
|
9947
9947
|
if (!t) return void this.logger.warn("Failed to parse incoming message. Dropping.");
|
|
9948
9948
|
if (this.state === Tt.Stopped && t instanceof Zi) return void this.logger.warn(`Received ${t.method} request while stopped. Dropping.`);
|
|
9949
9949
|
const n = () => {
|
|
@@ -10192,7 +10192,7 @@ const Mh = (() => {
|
|
|
10192
10192
|
(t < n || l === 1) && (l = 0.99), A && A({ percent: Number(l.toFixed(2)), transferredBytes: n, totalBytes: t }, s), r.enqueue(s), await o();
|
|
10193
10193
|
}();
|
|
10194
10194
|
} }) });
|
|
10195
|
-
}, Ho = (e) => e !== null && typeof e == "object",
|
|
10195
|
+
}, Ho = (e) => e !== null && typeof e == "object", ts = (...e) => {
|
|
10196
10196
|
for (const A of e) if ((!Ho(A) || Array.isArray(A)) && A !== void 0) throw new TypeError("The `options` argument must be an object");
|
|
10197
10197
|
return Ed({}, ...e);
|
|
10198
10198
|
}, dC = (e = {}, A = {}) => {
|
|
@@ -10200,10 +10200,10 @@ const Mh = (() => {
|
|
|
10200
10200
|
for (const [i, o] of r.entries()) n && o === "undefined" || o === void 0 ? t.delete(i) : t.set(i, o);
|
|
10201
10201
|
return t;
|
|
10202
10202
|
};
|
|
10203
|
-
function
|
|
10203
|
+
function ns(e, A, t) {
|
|
10204
10204
|
return Object.hasOwn(A, t) && A[t] === void 0 ? [] : Ed(e[t] ?? [], A[t] ?? []);
|
|
10205
10205
|
}
|
|
10206
|
-
const gC = (e = {}, A = {}) => ({ beforeRequest:
|
|
10206
|
+
const gC = (e = {}, A = {}) => ({ beforeRequest: ns(e, A, "beforeRequest"), beforeRetry: ns(e, A, "beforeRetry"), afterResponse: ns(e, A, "afterResponse"), beforeError: ns(e, A, "beforeError") }), Ed = (...e) => {
|
|
10207
10207
|
let A = {}, t = {}, n = {};
|
|
10208
10208
|
for (const r of e) if (Array.isArray(r)) Array.isArray(A) || (A = []), A = [...A, ...r];
|
|
10209
10209
|
else if (Ho(r)) {
|
|
@@ -10358,9 +10358,9 @@ let Bh = class hC {
|
|
|
10358
10358
|
};
|
|
10359
10359
|
/*! MIT License © Sindre Sorhus */
|
|
10360
10360
|
const Ku = (e) => {
|
|
10361
|
-
const A = (t, n) => Bh.create(t,
|
|
10362
|
-
for (const t of uC) A[t] = (n, r) => Bh.create(n,
|
|
10363
|
-
return A.create = (t) => Ku(
|
|
10361
|
+
const A = (t, n) => Bh.create(t, ts(e, n));
|
|
10362
|
+
for (const t of uC) A[t] = (n, r) => Bh.create(n, ts(e, r, { method: t }));
|
|
10363
|
+
return A.create = (t) => Ku(ts(t)), A.extend = (t) => (typeof t == "function" && (t = t(e ?? {})), Ku(ts(e, t))), A.stop = VC, A;
|
|
10364
10364
|
};
|
|
10365
10365
|
var Mc, Mw = Ku(), ww = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, pC = { exports: {} };
|
|
10366
10366
|
/**
|
|
@@ -10512,12 +10512,12 @@ var Sw = pC.exports;
|
|
|
10512
10512
|
const fC = (e, A) => {
|
|
10513
10513
|
const t = Date.now(), n = `${e}:${t}:${Sw.md5(`${A}${t}`)}`, r = new TextEncoder().encode(n);
|
|
10514
10514
|
return btoa(String.fromCharCode(...r));
|
|
10515
|
-
},
|
|
10516
|
-
let
|
|
10515
|
+
}, Ss = "/v1/aicc/bmserver", Jo = "/v1/aicc/ccs";
|
|
10516
|
+
let Bs = "", Id = "", yd = "", Qh = "";
|
|
10517
10517
|
async function ur(e, A) {
|
|
10518
10518
|
const t = function() {
|
|
10519
10519
|
const r = fC(Id, yd);
|
|
10520
|
-
return Mw.create({ prefixUrl: `${
|
|
10520
|
+
return Mw.create({ prefixUrl: `${Bs}/api`, timeout: !1, headers: { Authorization: r }, hooks: { afterResponse: [async (i, o, a) => {
|
|
10521
10521
|
const s = await a.clone().json();
|
|
10522
10522
|
if (s.code !== 0) throw new Error(JSON.stringify(s) || "请求失败");
|
|
10523
10523
|
return a.json = async () => s, a;
|
|
@@ -10552,16 +10552,16 @@ let Bw = class {
|
|
|
10552
10552
|
var n;
|
|
10553
10553
|
let t;
|
|
10554
10554
|
switch (A) {
|
|
10555
|
-
case
|
|
10555
|
+
case he.Connecting:
|
|
10556
10556
|
t = mn.WEB_RTC_CONNECTING;
|
|
10557
10557
|
break;
|
|
10558
|
-
case
|
|
10558
|
+
case he.Connected:
|
|
10559
10559
|
t = mn.WEB_RTC_CONNECTED, this.reconnectAttempts = 0, qA.isRtcReconnecting = !1, this.reconnectTimer && (clearTimeout(this.reconnectTimer), this.reconnectTimer = null);
|
|
10560
10560
|
break;
|
|
10561
|
-
case
|
|
10561
|
+
case he.Disconnecting:
|
|
10562
10562
|
t = mn.WEB_RTC_DISCONNECTING;
|
|
10563
10563
|
break;
|
|
10564
|
-
case
|
|
10564
|
+
case he.Disconnected: {
|
|
10565
10565
|
if (this.isManuallyStopped) return void console.warn("[SIP] 手动断开,不触发重连");
|
|
10566
10566
|
t = mn.WEB_RTC_DISCONNECTED;
|
|
10567
10567
|
const r = _.get("answerDevice");
|
|
@@ -10730,7 +10730,7 @@ let Bw = class {
|
|
|
10730
10730
|
}
|
|
10731
10731
|
try {
|
|
10732
10732
|
const t = Date.now();
|
|
10733
|
-
return await ur(`${
|
|
10733
|
+
return await ur(`${Ss}/config/ping`, {}), { rtt: Date.now() - t || 1 };
|
|
10734
10734
|
} catch {
|
|
10735
10735
|
}
|
|
10736
10736
|
}
|
|
@@ -10740,7 +10740,7 @@ let Bw = class {
|
|
|
10740
10740
|
* Copyright 2019 Google LLC
|
|
10741
10741
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
10742
10742
|
*/
|
|
10743
|
-
const
|
|
10743
|
+
const Qs = globalThis, wd = Qs.ShadowRoot && (Qs.ShadyCSS === void 0 || Qs.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Sd = Symbol(), Rh = /* @__PURE__ */ new WeakMap();
|
|
10744
10744
|
let qC = class {
|
|
10745
10745
|
constructor(A, t, n) {
|
|
10746
10746
|
if (this._$cssResult$ = !0, n !== Sd) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -10770,7 +10770,7 @@ const yr = (e, ...A) => {
|
|
|
10770
10770
|
let t = "";
|
|
10771
10771
|
for (const n of A.cssRules) t += n.cssText;
|
|
10772
10772
|
return ((n) => new qC(typeof n == "string" ? n : n + "", void 0, Sd))(t);
|
|
10773
|
-
})(e) : e, { is: Qw, defineProperty: bw, getOwnPropertyDescriptor: Rw, getOwnPropertyNames: xw, getOwnPropertySymbols: Dw, getPrototypeOf: Tw } = Object, jr = globalThis, Dh = jr.trustedTypes, Fw = Dh ? Dh.emptyScript : "", wc = jr.reactiveElementPolyfillSupport, _o = (e, A) => e,
|
|
10773
|
+
})(e) : e, { is: Qw, defineProperty: bw, getOwnPropertyDescriptor: Rw, getOwnPropertyNames: xw, getOwnPropertySymbols: Dw, getPrototypeOf: Tw } = Object, jr = globalThis, Dh = jr.trustedTypes, Fw = Dh ? Dh.emptyScript : "", wc = jr.reactiveElementPolyfillSupport, _o = (e, A) => e, js = { toAttribute(e, A) {
|
|
10774
10774
|
switch (A) {
|
|
10775
10775
|
case Boolean:
|
|
10776
10776
|
e = e ? Fw : null;
|
|
@@ -10798,7 +10798,7 @@ const yr = (e, ...A) => {
|
|
|
10798
10798
|
}
|
|
10799
10799
|
}
|
|
10800
10800
|
return t;
|
|
10801
|
-
} }, Bd = (e, A) => !Qw(e, A), Th = { attribute: !0, type: String, converter:
|
|
10801
|
+
} }, Bd = (e, A) => !Qw(e, A), Th = { attribute: !0, type: String, converter: js, reflect: !1, useDefault: !1, hasChanged: Bd };
|
|
10802
10802
|
/**
|
|
10803
10803
|
* @license
|
|
10804
10804
|
* Copyright 2017 Google LLC
|
|
@@ -10892,7 +10892,7 @@ let Oi = class extends HTMLElement {
|
|
|
10892
10892
|
return ((A, t) => {
|
|
10893
10893
|
if (wd) A.adoptedStyleSheets = t.map((n) => n instanceof CSSStyleSheet ? n : n.styleSheet);
|
|
10894
10894
|
else for (const n of t) {
|
|
10895
|
-
const r = document.createElement("style"), i =
|
|
10895
|
+
const r = document.createElement("style"), i = Qs.litNonce;
|
|
10896
10896
|
i !== void 0 && r.setAttribute("nonce", i), r.textContent = n.cssText, A.appendChild(r);
|
|
10897
10897
|
}
|
|
10898
10898
|
})(e, this.constructor.elementStyles), e;
|
|
@@ -10920,7 +10920,7 @@ let Oi = class extends HTMLElement {
|
|
|
10920
10920
|
var r;
|
|
10921
10921
|
const t = this.constructor.elementProperties.get(e), n = this.constructor._$Eu(e, t);
|
|
10922
10922
|
if (n !== void 0 && t.reflect === !0) {
|
|
10923
|
-
const i = (((r = t.converter) == null ? void 0 : r.toAttribute) !== void 0 ? t.converter :
|
|
10923
|
+
const i = (((r = t.converter) == null ? void 0 : r.toAttribute) !== void 0 ? t.converter : js).toAttribute(A, t.type);
|
|
10924
10924
|
this._$Em = e, i == null ? this.removeAttribute(n) : this.setAttribute(n, i), this._$Em = null;
|
|
10925
10925
|
}
|
|
10926
10926
|
}
|
|
@@ -10928,7 +10928,7 @@ let Oi = class extends HTMLElement {
|
|
|
10928
10928
|
var r, i;
|
|
10929
10929
|
const t = this.constructor, n = t._$Eh.get(e);
|
|
10930
10930
|
if (n !== void 0 && this._$Em !== n) {
|
|
10931
|
-
const o = t.getPropertyOptions(n), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((r = o.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? o.converter :
|
|
10931
|
+
const o = t.getPropertyOptions(n), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((r = o.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? o.converter : js;
|
|
10932
10932
|
this._$Em = n;
|
|
10933
10933
|
const s = a.fromAttribute(A, o.type);
|
|
10934
10934
|
this[n] = s ?? ((i = this._$Ej) == null ? void 0 : i.get(n)) ?? s, this._$Em = null;
|
|
@@ -11020,7 +11020,7 @@ Oi.elementStyles = [], Oi.shadowRootOptions = { mode: "open" }, Oi[_o("elementPr
|
|
|
11020
11020
|
* Copyright 2017 Google LLC
|
|
11021
11021
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
11022
11022
|
*/
|
|
11023
|
-
const Aa = globalThis,
|
|
11023
|
+
const Aa = globalThis, Ls = Aa.trustedTypes, Fh = Ls ? Ls.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, mC = "$lit$", Or = `lit$${Math.random().toFixed(9).slice(2)}$`, CC = "?" + Or, Uw = `<${CC}>`, Vi = document, va = () => Vi.createComment(""), Ea = (e) => e === null || typeof e != "object" && typeof e != "function", ju = Array.isArray, Sc = `[
|
|
11024
11024
|
\f\r]`, ko = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Uh = /-->/g, Oh = />/g, Xr = RegExp(`>|${Sc}(?:([^\\s"'>=/]+)(${Sc}*=${Sc}*(?:[^
|
|
11025
11025
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), kh = /'/g, Gh = /"/g, vC = /^(?:script|style|textarea|title)$/i, _A = /* @__PURE__ */ ((e) => (A, ...t) => ({ _$litType$: e, strings: A, values: t }))(1), lo = Symbol.for("lit-noChange"), qt = Symbol.for("lit-nothing"), Yh = /* @__PURE__ */ new WeakMap(), ni = Vi.createTreeWalker(Vi, 129);
|
|
11026
11026
|
function EC(e, A) {
|
|
@@ -11058,7 +11058,7 @@ class Ia {
|
|
|
11058
11058
|
if (vC.test(r.tagName)) {
|
|
11059
11059
|
const V = r.textContent.split(Or), d = V.length - 1;
|
|
11060
11060
|
if (d > 0) {
|
|
11061
|
-
r.textContent =
|
|
11061
|
+
r.textContent = Ls ? Ls.emptyScript : "";
|
|
11062
11062
|
for (let h = 0; h < d; h++) r.append(V[h], va()), ni.nextNode(), s.push({ type: 2, index: ++i });
|
|
11063
11063
|
r.append(V[d], va());
|
|
11064
11064
|
}
|
|
@@ -11100,7 +11100,7 @@ class kw {
|
|
|
11100
11100
|
for (; s !== void 0; ) {
|
|
11101
11101
|
if (o === s.index) {
|
|
11102
11102
|
let l;
|
|
11103
|
-
s.type === 2 ? l = new
|
|
11103
|
+
s.type === 2 ? l = new Ta(i, i.nextSibling, this, A) : s.type === 1 ? l = new s.ctor(i, s.name, s.strings, this, A) : s.type === 6 && (l = new Zw(i, this, A)), this._$AV.push(l), s = n[++a];
|
|
11104
11104
|
}
|
|
11105
11105
|
o !== (s == null ? void 0 : s.index) && (i = ni.nextNode(), o++);
|
|
11106
11106
|
}
|
|
@@ -11111,7 +11111,7 @@ class kw {
|
|
|
11111
11111
|
for (const n of this._$AV) n !== void 0 && (n.strings !== void 0 ? (n._$AI(A, n, t), t += n.strings.length - 2) : n._$AI(A[t])), t++;
|
|
11112
11112
|
}
|
|
11113
11113
|
}
|
|
11114
|
-
class
|
|
11114
|
+
class Ta {
|
|
11115
11115
|
get _$AU() {
|
|
11116
11116
|
var A;
|
|
11117
11117
|
return ((A = this._$AM) == null ? void 0 : A._$AU) ?? this._$Cv;
|
|
@@ -11159,7 +11159,7 @@ class Da {
|
|
|
11159
11159
|
ju(this._$AH) || (this._$AH = [], this._$AR());
|
|
11160
11160
|
const t = this._$AH;
|
|
11161
11161
|
let n, r = 0;
|
|
11162
|
-
for (const i of A) r === t.length ? t.push(n = new
|
|
11162
|
+
for (const i of A) r === t.length ? t.push(n = new Ta(this.O(va()), this.O(va()), this, this.options)) : n = t[r], n._$AI(i), r++;
|
|
11163
11163
|
r < t.length && (this._$AR(n && n._$AB.nextSibling, r), t.length = r);
|
|
11164
11164
|
}
|
|
11165
11165
|
_$AR(A = this._$AA.nextSibling, t) {
|
|
@@ -11241,13 +11241,13 @@ class Zw {
|
|
|
11241
11241
|
}
|
|
11242
11242
|
}
|
|
11243
11243
|
const Bc = Aa.litHtmlPolyfillSupport;
|
|
11244
|
-
Bc == null || Bc(Ia,
|
|
11244
|
+
Bc == null || Bc(Ia, Ta), (Aa.litHtmlVersions ?? (Aa.litHtmlVersions = [])).push("3.3.1");
|
|
11245
11245
|
const _r = (e, A, t) => {
|
|
11246
11246
|
const n = (t == null ? void 0 : t.renderBefore) ?? A;
|
|
11247
11247
|
let r = n._$litPart$;
|
|
11248
11248
|
if (r === void 0) {
|
|
11249
11249
|
const i = (t == null ? void 0 : t.renderBefore) ?? null;
|
|
11250
|
-
n._$litPart$ = r = new
|
|
11250
|
+
n._$litPart$ = r = new Ta(A.insertBefore(va(), i), i, void 0, t ?? {});
|
|
11251
11251
|
}
|
|
11252
11252
|
return r._$AI(e), r;
|
|
11253
11253
|
/**
|
|
@@ -11285,7 +11285,7 @@ var Uq;
|
|
|
11285
11285
|
cn._$litElement$ = !0, cn.finalized = !0, (Uq = si.litElementHydrateSupport) == null || Uq.call(si, { LitElement: cn });
|
|
11286
11286
|
const Qc = si.litElementPolyfillSupport;
|
|
11287
11287
|
Qc == null || Qc({ LitElement: cn }), (si.litElementVersions ?? (si.litElementVersions = [])).push("4.2.1");
|
|
11288
|
-
const Kw = { statusColor: { [at.IDLE]: "#1D92E9", [at.BUSY]: "#F5212D", [at.OFFLINE]: "#8c8c8c", [at.RINGING]: "#e9b91d" } }, Tn = ["call_number"], Lu = ["call_number"], jw = ["reject"], Mi = ["hold", "hangup", "mute", "transfer", "consult", "satisfaction", "dtmf"], Lw = ["consult_transfer", "conference", "consult_retrieve"], Hw = ["hangup"], Jw = ["hangup"], bc = ["answer", "reject"],
|
|
11288
|
+
const Kw = { statusColor: { [at.IDLE]: "#1D92E9", [at.BUSY]: "#F5212D", [at.OFFLINE]: "#8c8c8c", [at.RINGING]: "#e9b91d" } }, Tn = ["call_number"], Lu = ["call_number"], jw = ["reject"], Mi = ["hold", "hangup", "mute", "transfer", "consult", "satisfaction", "dtmf"], Lw = ["consult_transfer", "conference", "consult_retrieve"], Hw = ["hangup"], Jw = ["hangup"], bc = ["answer", "reject"], rs = ["hangup", "consult", "transfer", "hold", "mute", "satisfaction", "dtmf"];
|
|
11289
11289
|
function Be(e, A, t, n) {
|
|
11290
11290
|
var r, i = arguments.length, o = i < 3 ? A : n;
|
|
11291
11291
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(e, A, t, n);
|
|
@@ -11301,7 +11301,7 @@ const Mr = (e) => (A, t) => {
|
|
|
11301
11301
|
t !== void 0 ? t.addInitializer(() => {
|
|
11302
11302
|
customElements.define(e, A);
|
|
11303
11303
|
}) : customElements.define(e, A);
|
|
11304
|
-
}, Pw = { attribute: !0, type: String, converter:
|
|
11304
|
+
}, Pw = { attribute: !0, type: String, converter: js, reflect: !1, hasChanged: Bd }, Ww = (e = Pw, A, t) => {
|
|
11305
11305
|
const { kind: n, metadata: r } = t;
|
|
11306
11306
|
let i = globalThis.litPropertyMetadata.get(r);
|
|
11307
11307
|
if (i === void 0 && globalThis.litPropertyMetadata.set(r, i = /* @__PURE__ */ new Map()), n === "setter" && ((e = Object.create(e)).wrapped = !0), i.set(t.name, e), n === "accessor") {
|
|
@@ -11836,7 +11836,7 @@ let Rr = (zi = class extends cn {
|
|
|
11836
11836
|
`, zi);
|
|
11837
11837
|
Be([st({ type: String })], Rr.prototype, "placeholder", void 0), Be([st({ type: String })], Rr.prototype, "value", void 0), Be([st({ type: String })], Rr.prototype, "width", void 0), Be([fr()], Rr.prototype, "open", void 0), Be([fr()], Rr.prototype, "animating", void 0), Be([fr()], Rr.prototype, "selectedContent", void 0), Rr = Be([Mr("my-select")], Rr);
|
|
11838
11838
|
var Xi;
|
|
11839
|
-
let
|
|
11839
|
+
let is = (Xi = class extends cn {
|
|
11840
11840
|
constructor() {
|
|
11841
11841
|
super(...arguments), this.isDialerVisible = !1, this.inputValue = "", this.keys = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "*", "0", "#"], this.handleDocumentClick = (A) => {
|
|
11842
11842
|
var t;
|
|
@@ -11918,7 +11918,7 @@ let rs = (Xi = class extends cn {
|
|
|
11918
11918
|
font-weight: bold;
|
|
11919
11919
|
}
|
|
11920
11920
|
`, Xi);
|
|
11921
|
-
Be([fr()],
|
|
11921
|
+
Be([fr()], is.prototype, "isDialerVisible", void 0), Be([fr()], is.prototype, "inputValue", void 0), is = Be([Mr("my-phone-dialer")], is);
|
|
11922
11922
|
var $i;
|
|
11923
11923
|
let wi = ($i = class extends cn {
|
|
11924
11924
|
constructor() {
|
|
@@ -12114,7 +12114,7 @@ class Qd {
|
|
|
12114
12114
|
async _getInCallCrmDetail(A) {
|
|
12115
12115
|
var t;
|
|
12116
12116
|
try {
|
|
12117
|
-
const { phone: n } = A.data, r = await ((i) => ur(`${
|
|
12117
|
+
const { phone: n } = A.data, r = await ((i) => ur(`${Ss}/crm/popups`, i))({ phone: n });
|
|
12118
12118
|
(t = A.success) == null || t.call(A, r);
|
|
12119
12119
|
} catch (n) {
|
|
12120
12120
|
throw new Error(n.message);
|
|
@@ -12159,7 +12159,7 @@ class Qd {
|
|
|
12159
12159
|
async getAgentState(A) {
|
|
12160
12160
|
var t;
|
|
12161
12161
|
try {
|
|
12162
|
-
const n = await ur(`${
|
|
12162
|
+
const n = await ur(`${Ss}/agent/statecfg/list`, {}), r = (n.data || []).filter((i) => i.enable === 0).filter((i) => i.state !== 0 && i.state !== 3).filter((i) => i.state_name !== "通话中").map((i) => ({ state: i.state, state_name: i.state_name })).reverse();
|
|
12163
12163
|
(t = A.success) == null || t.call(A, { ...n, data: r });
|
|
12164
12164
|
} catch (n) {
|
|
12165
12165
|
throw new Error(n.message);
|
|
@@ -12170,7 +12170,7 @@ class Qd {
|
|
|
12170
12170
|
try {
|
|
12171
12171
|
this.roleData.agentInfo(), this.roleData.requestInfo(A), this.roleData.setAgentExplicit(A.data.number);
|
|
12172
12172
|
const { agent_id: n } = qA.agentInfo;
|
|
12173
|
-
await ((r) => ur(`${
|
|
12173
|
+
await ((r) => ur(`${Ss}/agent/update`, r))({ agent_id: n, out_display_number: A.data.number }), _.updateSelectOutNumber(A.data.number), (t = A.success) == null || t.call(A, { code: 0, msg: "请求成功" });
|
|
12174
12174
|
} catch (n) {
|
|
12175
12175
|
throw new Error(n.message);
|
|
12176
12176
|
}
|
|
@@ -12875,9 +12875,17 @@ class Qt {
|
|
|
12875
12875
|
const { state: s, state_name: l } = i;
|
|
12876
12876
|
qA.stateObject = { state: s, state_name: l }, l === "振铃中" && _.updateDisplayText(it.AGENT_RINGING), bA.emit(gA.AGENT_STATE, { state: s, state_name: l });
|
|
12877
12877
|
}
|
|
12878
|
-
if (r === ve.OUT_CALL_INCOMING_CALL
|
|
12878
|
+
if (r === ve.OUT_CALL_INCOMING_CALL) {
|
|
12879
|
+
try {
|
|
12880
|
+
await this.getCustomerInfo(i.data.customer_phone);
|
|
12881
|
+
} catch (s) {
|
|
12882
|
+
console.error(s);
|
|
12883
|
+
}
|
|
12884
|
+
bA.emit(gA.OUT_INCOMING_CALL, { customer_phone: this.outNumber, session_id: i.session_id }), qA.sessionId = i.session_id, _.updateActionConfigs(jw);
|
|
12885
|
+
}
|
|
12886
|
+
if (r === ve.OUT_CALL_END && (_.updateDisplayText(""), i.device_type === 1 && i.agent_no === qA.agentInfo.agent_no ? (this.putAgentState(), _.reset(), bA.emit(gA.OUT_HANGUP, { session_id: i.session_id }), _.updateActionConfigs(Tn)) : i.device_type === 2 && i.agent_no === qA.agentInfo.agent_no ? (_.reset(), bA.emit(gA.OUR_SIDE_CONSULT_HANGUP, { session_id: i.session_id }), this.putAgentState(), _.updateActionConfigs(Tn)) : i.device_type === 2 && i.agent_no !== qA.agentInfo.agent_no ? (_.updateDisplayText(it.CALLING), bA.emit(gA.OTHER_SIDE_CONSULT_HANGUP, { session_id: i.session_id }), _.updateActionConfigs(Mi)) : i.device_type === 3 && i.agent_no === qA.agentInfo.agent_no ? (this.putAgentState(), _.reset(), bA.emit(gA.THREE_WAY_OUR_SIDE_HANGUP, { session_id: i.session_id }), _.updateActionConfigs(Tn)) : i.device_type === 4 && i.agent_no === qA.agentInfo.agent_no && (this.putAgentState(), _.reset(), bA.emit(gA.TRANSFER_END, { session_id: i.session_id }), _.updateActionConfigs(Tn))), r === ve.OUT_CALL_RINGING && i.type === 1 && (bA.emit(gA.OUT_RINGING, { session_id: qA.sessionId, type: i.type }), _.updateDisplayText(it.RINGING)), r === ve.OUT_CALL_ANSWER && (bA.emit(gA.OUT_OFF_ANSWER, { session_id: qA.sessionId }), _.updateOutCallIsAnswer(!0), _.updateDisplayText(it.CALLING), _.updateActionConfigs(Mi)), r === ve.CONSULT_RINGING && (bA.emit(gA.CONSULT_RINGING, { session_id: i.session_id }), _.updateDisplayText(it.AGENT_RINGING), _.updateActionConfigs([])), r === ve.CONSULT_ANSWER && (bA.emit(gA.CONSULT_OFF_HOOK, { session_id: i.session_id }), _.updateConsultIsAnswer(!0), _.updateDisplayText(it.CONSULTING), _.updateActionConfigs(Lw)), r === ve.CONSULT_FAIL && (bA.emit(gA.CONSULT_FAILED, { custom_reason: i.custom_reason }), _.updateDisplayText(it.CALLING), _.updateActionConfigs(Mi)), r === ve.CONSULT_CALL_IN && (bA.emit(gA.CONSULT_INCOMING, { agent_no: i.agent_no, agent_mane: i.agent_name, session_id: i.session_id }), qA.sessionId = i.session_id, _.updateIsCalling(!0), _.updateDirection(En.CONSULT), _.updateDisplayText(it.CONSULT_CALL_IN), _.updateActionConfigs(bc), qA.enableBrowserAlert && ea.show("📞 咨询来电", `坐席 [${i.agent_name}] 正在咨询...`, () => {
|
|
12879
12887
|
bA.emit(Ge.NOTIFICATION_CLICK, { agent_mane: i.agent_name, agent_no: i.agent_no });
|
|
12880
|
-
})), r === ve.CONSULT_CALL_IN_SUCCESS && (bA.emit(gA.CONSULT_CALL_IN_SUCCESS, { session_id: i.session_id }), _.updateConsultIsAnswer(!0), _.updateDisplayText(it.CALLING), _.updateActionConfigs(Hw)), r === ve.CONSULT_RETURN_CALL_SUCCESS && (i.status === "success" ? (_.updateConsultIsAnswer(!1), bA.emit(gA.CONSULT_RETURN_CALL_SUCCESS), _.updateDisplayText(it.CALLING), bA.emit(gA.OTHER_SIDE_CONSULT_HANGUP), _.updateActionConfigs(Mi)) : bA.emit(Ge.FAIL_NOTIFICATION, "媒体失败")), r === ve.MUTE && (o === 0 ? (_.updateIsMuted(!0), bA.emit(gA.MUTE_SUCCESS), _.updateDisplayText(it.MUTING)) : (bA.emit(gA.MUTE_FAILED, a), bA.emit(Ge.FAIL_NOTIFICATION, a))), r === ve.UNMUTE && (o === 0 ? (_.updateIsMuted(!1), bA.emit(gA.UNMUTE_SUCCESS), _.updateDisplayText(it.CALLING)) : (bA.emit(gA.UNMUTE_FAILED, a), bA.emit(Ge.FAIL_NOTIFICATION, a))), r === ve.CALL_HOLD && (o === 0 ? (_.updateIsHold(!0), _.updateDisplayText(it.HOLDING), bA.emit(gA.HOLD_SUCCESS)) : (bA.emit(gA.HOLD_FAILED, a), bA.emit(Ge.FAIL_NOTIFICATION, a))), r === ve.CALL_UNHOLD && (o === 0 ? (_.updateDisplayText(it.CALLING), _.updateIsHold(!1), bA.emit(gA.UNHOLD_SUCCESS)) : (bA.emit(gA.UNHOLD_FAILED, a), bA.emit(Ge.FAIL_NOTIFICATION, a))), r === ve.CONSULT_TRANSFER && (o === 0 ? bA.emit(gA.CONSULT_TRANSFER_SUCCESS) : (bA.emit(gA.CONSULT_TRANSFER_FAILED, a), bA.emit(Ge.FAIL_NOTIFICATION, a))), r === ve.CONSULT_TRANSFER_FAILED && bA.emit(gA.CONSULT_TRANSFER_FAILED, i.status), r === ve.CONSULT_TRANSFER_OFF_HOOK && (_.updateDirection(En.INCOMING), _.updateDisplayText(it.CALLING), bA.emit(gA.CONSULT_TRANSFER_OFF_HOOK), _.updateActionConfigs(
|
|
12888
|
+
})), r === ve.CONSULT_CALL_IN_SUCCESS && (bA.emit(gA.CONSULT_CALL_IN_SUCCESS, { session_id: i.session_id }), _.updateConsultIsAnswer(!0), _.updateDisplayText(it.CALLING), _.updateActionConfigs(Hw)), r === ve.CONSULT_RETURN_CALL_SUCCESS && (i.status === "success" ? (_.updateConsultIsAnswer(!1), bA.emit(gA.CONSULT_RETURN_CALL_SUCCESS), _.updateDisplayText(it.CALLING), bA.emit(gA.OTHER_SIDE_CONSULT_HANGUP), _.updateActionConfigs(Mi)) : bA.emit(Ge.FAIL_NOTIFICATION, "媒体失败")), r === ve.MUTE && (o === 0 ? (_.updateIsMuted(!0), bA.emit(gA.MUTE_SUCCESS), _.updateDisplayText(it.MUTING)) : (bA.emit(gA.MUTE_FAILED, a), bA.emit(Ge.FAIL_NOTIFICATION, a))), r === ve.UNMUTE && (o === 0 ? (_.updateIsMuted(!1), bA.emit(gA.UNMUTE_SUCCESS), _.updateDisplayText(it.CALLING)) : (bA.emit(gA.UNMUTE_FAILED, a), bA.emit(Ge.FAIL_NOTIFICATION, a))), r === ve.CALL_HOLD && (o === 0 ? (_.updateIsHold(!0), _.updateDisplayText(it.HOLDING), bA.emit(gA.HOLD_SUCCESS)) : (bA.emit(gA.HOLD_FAILED, a), bA.emit(Ge.FAIL_NOTIFICATION, a))), r === ve.CALL_UNHOLD && (o === 0 ? (_.updateDisplayText(it.CALLING), _.updateIsHold(!1), bA.emit(gA.UNHOLD_SUCCESS)) : (bA.emit(gA.UNHOLD_FAILED, a), bA.emit(Ge.FAIL_NOTIFICATION, a))), r === ve.CONSULT_TRANSFER && (o === 0 ? bA.emit(gA.CONSULT_TRANSFER_SUCCESS) : (bA.emit(gA.CONSULT_TRANSFER_FAILED, a), bA.emit(Ge.FAIL_NOTIFICATION, a))), r === ve.CONSULT_TRANSFER_FAILED && bA.emit(gA.CONSULT_TRANSFER_FAILED, i.status), r === ve.CONSULT_TRANSFER_OFF_HOOK && (_.updateDirection(En.INCOMING), _.updateDisplayText(it.CALLING), bA.emit(gA.CONSULT_TRANSFER_OFF_HOOK), _.updateActionConfigs(rs), _.updateIncomingIsAnswer(!0), _.updateConsultIsAnswer(!1)), r === ve.INCOMING_CALL) {
|
|
12881
12889
|
qA.sessionId = i.session_id;
|
|
12882
12890
|
try {
|
|
12883
12891
|
await this.getCustomerInfo(i.customer_phone);
|
|
@@ -12888,12 +12896,12 @@ class Qt {
|
|
|
12888
12896
|
bA.emit(Ge.NOTIFICATION_CLICK, { customer_phone: i.customer_phone });
|
|
12889
12897
|
});
|
|
12890
12898
|
}
|
|
12891
|
-
if (r === ve.INCOMING_CALL_OFF_HOOK && (_.updateIncomingIsAnswer(!0), bA.emit(gA.INCOMING_CALL_OFF_HOOK, { session_id: qA.sessionId }), _.updateActionConfigs(
|
|
12899
|
+
if (r === ve.INCOMING_CALL_OFF_HOOK && (_.updateIncomingIsAnswer(!0), bA.emit(gA.INCOMING_CALL_OFF_HOOK, { session_id: qA.sessionId }), _.updateActionConfigs(rs), _.updateDisplayText(it.CALLING)), r === ve.INCOMING_CALL_END && (_.updateDisplayText(""), i.device_type === 1 && i.agent_no === qA.agentInfo.agent_no ? (this.putAgentState(), _.reset(), bA.emit(gA.INCOMING_CALL_END, { session_id: i.session_id }), _.updateActionConfigs(Tn)) : i.device_type === 2 && i.agent_no === qA.agentInfo.agent_no ? (_.reset(), bA.emit(gA.OUR_SIDE_CONSULT_HANGUP, { session_id: i.session_id }), this.putAgentState(), _.updateActionConfigs(Tn)) : i.device_type === 2 && i.agent_no !== qA.agentInfo.agent_no ? (_.updateDisplayText(it.CALLING), bA.emit(gA.OTHER_SIDE_CONSULT_HANGUP, { session_id: i.session_id }), _.updateActionConfigs(Mi)) : i.device_type === 3 && i.agent_no === qA.agentInfo.agent_no ? (this.putAgentState(), _.reset(), bA.emit(gA.THREE_WAY_OUR_SIDE_HANGUP, { session_id: i.session_id }), _.updateActionConfigs(Tn)) : i.device_type === 4 && i.agent_no === qA.agentInfo.agent_no && (this.putAgentState(), _.reset(), bA.emit(gA.TRANSFER_END, { session_id: i.session_id }), _.updateActionConfigs(Tn))), r === ve.SATISFACTION_EVALUATION && (o === 0 ? bA.emit(gA.SATISFACTION_EVALUATION_SUCCESS) : (bA.emit(gA.SATISFACTION_EVALUATION_FAILED, a), bA.emit(Ge.FAIL_NOTIFICATION, a))), r === ve.CONSULT_THREE_WAY && (o !== 0 ? (bA.emit(gA.CONSULT_THREE_WAY_FAILED, a), bA.emit(Ge.FAIL_NOTIFICATION, a)) : o === 0 && _.updateIsMeeting(!0)), r === ve.CONSULT_THREE_WAY_RESULT && (i.status === "success" ? (_.updateDirection(En.MEETING), _.updateDisplayText(it.MEETING), _.updateActionConfigs(Jw), bA.emit(gA.CONSULT_THREE_WAY_SUCCESS)) : (bA.emit(gA.CONSULT_THREE_WAY_FAILED, { conf_name: i.conf_name }), _.updateIsMeeting(!1))), r === ve.TRANSFER_INCOMING_CALL && (i.agent_no === qA.agentInfo.agent_no ? (_.updateDisplayText(it.TRANSFERRING), bA.emit(gA.TRANSFER_PROGRESS), _.updateActionConfigs([]), _.updateTransferIsAnswer(!0)) : (qA.sessionId = i.session_id, bA.emit(gA.TRANSFER_INCOMING_CALL, { agent_no: i.agent_no, agent_name: i.agent_name, session_id: i.session_id }), _.updateIsCalling(!0), _.updateDirection(En.TRANSFER), _.updateDisplayText(it.TRANSFER_INCOMING_CALL), _.updateActionConfigs(bc), qA.enableBrowserAlert && ea.show("📞 转接来电", `坐席 [${i.agent_no}] 正在转接...`, () => {
|
|
12892
12900
|
bA.emit(Ge.NOTIFICATION_CLICK, { agent_no: i.agent_no });
|
|
12893
|
-
}))), r === ve.TRANSFER_OFF_HOOK && (bA.emit(gA.TRANSFER_OFF_HOOK, { session_id: qA.sessionId }), _.updateTransferIsAnswer(!1), _.updateDisplayText(it.CALLING), _.updateActionConfigs(
|
|
12901
|
+
}))), r === ve.TRANSFER_OFF_HOOK && (bA.emit(gA.TRANSFER_OFF_HOOK, { session_id: qA.sessionId }), _.updateTransferIsAnswer(!1), _.updateDisplayText(it.CALLING), _.updateActionConfigs(rs)), r === ve.TRANSFER_FAILED && i.status === "failed") {
|
|
12894
12902
|
bA.emit(gA.TRANSFER_FAILED, "未知原因");
|
|
12895
12903
|
const s = _.get("direction");
|
|
12896
|
-
s === En.OUTGOING ? _.updateActionConfigs(Mi) : s === En.INCOMING && _.updateActionConfigs(
|
|
12904
|
+
s === En.OUTGOING ? _.updateActionConfigs(Mi) : s === En.INCOMING && _.updateActionConfigs(rs);
|
|
12897
12905
|
}
|
|
12898
12906
|
r === ve.KICK_OFFLINE && bA.emit(Ge.KICK_OFF);
|
|
12899
12907
|
}, this.ws.onclose = () => {
|
|
@@ -12925,7 +12933,7 @@ class Qt {
|
|
|
12925
12933
|
}
|
|
12926
12934
|
sendMessage(A) {
|
|
12927
12935
|
var t;
|
|
12928
|
-
((t = this.ws) == null ? void 0 : t.readyState) === WebSocket.OPEN ? (A.type === 100 && (this.outNumber = A.data.customer_phone
|
|
12936
|
+
((t = this.ws) == null ? void 0 : t.readyState) === WebSocket.OPEN ? (A.type === 100 && (this.outNumber = A.data.customer_phone), this.ws.send(JSON.stringify(A)), A.type !== 0 && Zh("%cWebSocket 发送消息:", "color: green; font-weight: bold;", A)) : console.warn("WebSocket 未连接,消息未发送");
|
|
12929
12937
|
}
|
|
12930
12938
|
close() {
|
|
12931
12939
|
var A;
|
|
@@ -13056,7 +13064,7 @@ class _w {
|
|
|
13056
13064
|
Qt.__internalSend({ type: ve.TRANSFER, data: { session_id: n, transfer_type: 2, transfer_dest: A } });
|
|
13057
13065
|
}
|
|
13058
13066
|
}
|
|
13059
|
-
var Cn, Xn, ut, eo, Gr,
|
|
13067
|
+
var Cn, Xn, ut, eo, Gr, ba, to, dl, gl, IC;
|
|
13060
13068
|
const gr = class gr {
|
|
13061
13069
|
constructor() {
|
|
13062
13070
|
Wn(this, gl);
|
|
@@ -13065,7 +13073,7 @@ const gr = class gr {
|
|
|
13065
13073
|
Wn(this, ut);
|
|
13066
13074
|
Wn(this, eo, null);
|
|
13067
13075
|
Wn(this, Gr, !1);
|
|
13068
|
-
Wn(this,
|
|
13076
|
+
Wn(this, ba);
|
|
13069
13077
|
Wn(this, to, !1);
|
|
13070
13078
|
Wn(this, dl, (A) => {
|
|
13071
13079
|
const { type: t, data: n } = A;
|
|
@@ -13075,7 +13083,7 @@ const gr = class gr {
|
|
|
13075
13083
|
clearInterval(Re(this, eo)), Dn(this, eo, setInterval(async () => {
|
|
13076
13084
|
const A = await Mg(this, gl, IC).call(this);
|
|
13077
13085
|
Md.updateRttObject(A);
|
|
13078
|
-
}, 2e3)), ea.requestMediaPermissions(), Dn(this,
|
|
13086
|
+
}, 2e3)), ea.requestMediaPermissions(), Dn(this, ba, _.subscribeKey("answerDevice", (A) => {
|
|
13079
13087
|
A === 1 ? this.initWebRtc() : Dn(this, Cn, null);
|
|
13080
13088
|
})), this.on(Ge.KICK_OFF, () => {
|
|
13081
13089
|
this.destroy();
|
|
@@ -13091,7 +13099,7 @@ const gr = class gr {
|
|
|
13091
13099
|
if (!this._instance) {
|
|
13092
13100
|
if (!A) throw new Error("首次调用必须传入配置参数");
|
|
13093
13101
|
const { url: t, appKey: n, appSecret: r, agentNo: i } = A;
|
|
13094
|
-
|
|
13102
|
+
Bs = t || "https://aicc.yescloudy.com", Id = n, yd = r, Qh = i, gr._creatingInstance = !0, this._instance = new gr(), delete gr._creatingInstance, window.addEventListener("beforeunload", () => {
|
|
13095
13103
|
var o;
|
|
13096
13104
|
(o = this._instance) == null || o.destroy();
|
|
13097
13105
|
});
|
|
@@ -13117,8 +13125,8 @@ const gr = class gr {
|
|
|
13117
13125
|
const { agent_no: o, current_answer_device: a, current_state: s, out_display_number: l, out_display_select_switch: u } = qA.agentInfo;
|
|
13118
13126
|
s === at.IDLE ? (_.updateActionConfigs(Tn), qA.stateObject = { state: s, state_name: "空闲" }) : s === at.BUSY && (_.updateActionConfigs(Lu), qA.stateObject = { state: s, state_name: "忙碌" }), u === 1 ? _.updateSelectOutNumber(l) : _.updateSelectOutNumber("");
|
|
13119
13127
|
let V = "";
|
|
13120
|
-
const d = new URL(
|
|
13121
|
-
V =
|
|
13128
|
+
const d = new URL(Bs).host;
|
|
13129
|
+
V = Bs.includes("https") ? `wss://${d}` : `ws://${d}`, Qt.getInstance(`${V}/ccs-ws/api/v1/ws/call/${o}?Authorization=`), _.updateAnswerDevice(a), a === 1 && await this.initWebRtc(), Dn(this, ut, new _w(Re(this, Cn))), A && r && (Dn(this, Gr, !0), new Xw({ container: r, rttHTML: i, statusParams: { state: at.IDLE, statusName: "空闲" } }, this, Re(this, ut))), qA.enableBrowserAlert = t, t && ea.requestPermission(), bA.emit(Ge.AGENT_INIT_STATUS, !0), Dn(this, to, !0);
|
|
13122
13130
|
} catch {
|
|
13123
13131
|
Re(this, Gr) && an("初始化失败"), bA.emit(Ge.AGENT_INIT_STATUS, !1), Dn(this, to, !1);
|
|
13124
13132
|
}
|
|
@@ -13138,7 +13146,7 @@ const gr = class gr {
|
|
|
13138
13146
|
}
|
|
13139
13147
|
async destroy() {
|
|
13140
13148
|
var A;
|
|
13141
|
-
gr._instance && (await this.destroyRtc(), clearInterval(Re(this, eo)), Qt.__internalClose(), this.offAll(), (A = Re(this,
|
|
13149
|
+
gr._instance && (await this.destroyRtc(), clearInterval(Re(this, eo)), Qt.__internalClose(), this.offAll(), (A = Re(this, ba)) == null || A.call(this), Dn(this, Cn, null), Dn(this, Gr, !1), gr._instance = null, _.reset(), _.updateSelectOutNumber(""));
|
|
13142
13150
|
}
|
|
13143
13151
|
get call_api() {
|
|
13144
13152
|
const A = (t) => (...n) => {
|
|
@@ -13168,10 +13176,10 @@ const gr = class gr {
|
|
|
13168
13176
|
return _.get("customerObject");
|
|
13169
13177
|
}
|
|
13170
13178
|
};
|
|
13171
|
-
Cn = new WeakMap(), Xn = new WeakMap(), ut = new WeakMap(), eo = new WeakMap(), Gr = new WeakMap(),
|
|
13179
|
+
Cn = new WeakMap(), Xn = new WeakMap(), ut = new WeakMap(), eo = new WeakMap(), Gr = new WeakMap(), ba = new WeakMap(), to = new WeakMap(), dl = new WeakMap(), gl = new WeakSet(), IC = async function() {
|
|
13172
13180
|
return Re(this, Cn) ? Re(this, Cn).getNetworkStats() : {};
|
|
13173
13181
|
}, gr._instance = null;
|
|
13174
|
-
let
|
|
13182
|
+
let ya = gr;
|
|
13175
13183
|
var $t = function() {
|
|
13176
13184
|
return $t = Object.assign || function(A) {
|
|
13177
13185
|
for (var t, n = 1, r = arguments.length; n < r; n++) {
|
|
@@ -13210,7 +13218,7 @@ function Vr(e, A) {
|
|
|
13210
13218
|
function be(e, A, t) {
|
|
13211
13219
|
return e.replace(A, t);
|
|
13212
13220
|
}
|
|
13213
|
-
function
|
|
13221
|
+
function bs(e, A, t) {
|
|
13214
13222
|
return e.indexOf(A, t);
|
|
13215
13223
|
}
|
|
13216
13224
|
function bt(e, A) {
|
|
@@ -13260,7 +13268,7 @@ function Yn() {
|
|
|
13260
13268
|
function li() {
|
|
13261
13269
|
return bt(yo, Bn);
|
|
13262
13270
|
}
|
|
13263
|
-
function
|
|
13271
|
+
function Rs() {
|
|
13264
13272
|
return Bn;
|
|
13265
13273
|
}
|
|
13266
13274
|
function bl(e, A) {
|
|
@@ -13321,7 +13329,7 @@ function u1(e) {
|
|
|
13321
13329
|
function V1(e, A) {
|
|
13322
13330
|
for (; --A && Yn() && !(mt < 48 || mt > 102 || mt > 57 && mt < 65 || mt > 70 && mt < 97); )
|
|
13323
13331
|
;
|
|
13324
|
-
return bl(e,
|
|
13332
|
+
return bl(e, Rs() + (A < 6 && li() == 32 && Yn() == 32));
|
|
13325
13333
|
}
|
|
13326
13334
|
function Pu(e) {
|
|
13327
13335
|
for (; Yn(); )
|
|
@@ -13357,15 +13365,15 @@ function g1(e) {
|
|
|
13357
13365
|
return bl(e, Bn);
|
|
13358
13366
|
}
|
|
13359
13367
|
function h1(e) {
|
|
13360
|
-
return c1(
|
|
13368
|
+
return c1(xs("", null, null, null, [""], e = l1(e), 0, [0], e));
|
|
13361
13369
|
}
|
|
13362
|
-
function
|
|
13370
|
+
function xs(e, A, t, n, r, i, o, a, s) {
|
|
13363
13371
|
for (var l = 0, u = 0, V = o, d = 0, h = 0, m = 0, C = 1, f = 1, q = 1, I = 0, w = "", B = r, M = i, g = n, Q = w; f; )
|
|
13364
13372
|
switch (m = I, I = Yn()) {
|
|
13365
13373
|
// (
|
|
13366
13374
|
case 40:
|
|
13367
13375
|
if (m != 108 && bt(Q, V - 1) == 58) {
|
|
13368
|
-
|
|
13376
|
+
bs(Q += be(Tc(I), "&", "&\f"), "&\f", wC(l ? a[l - 1] : 0)) != -1 && (q = -1);
|
|
13369
13377
|
break;
|
|
13370
13378
|
}
|
|
13371
13379
|
// " ' [
|
|
@@ -13383,14 +13391,14 @@ function Rs(e, A, t, n, r, i, o, a, s) {
|
|
|
13383
13391
|
break;
|
|
13384
13392
|
// \
|
|
13385
13393
|
case 92:
|
|
13386
|
-
Q += V1(
|
|
13394
|
+
Q += V1(Rs() - 1, 7);
|
|
13387
13395
|
continue;
|
|
13388
13396
|
// /
|
|
13389
13397
|
case 47:
|
|
13390
13398
|
switch (li()) {
|
|
13391
13399
|
case 42:
|
|
13392
13400
|
case 47:
|
|
13393
|
-
Po(p1(d1(Yn(),
|
|
13401
|
+
Po(p1(d1(Yn(), Rs()), A, t, s), s);
|
|
13394
13402
|
break;
|
|
13395
13403
|
default:
|
|
13396
13404
|
Q += "/";
|
|
@@ -13419,7 +13427,7 @@ function Rs(e, A, t, n, r, i, o, a, s) {
|
|
|
13419
13427
|
default:
|
|
13420
13428
|
if (Po(g = jh(Q, A, t, l, u, r, a, w, B = [], M = [], V, i), i), I === 123)
|
|
13421
13429
|
if (u === 0)
|
|
13422
|
-
|
|
13430
|
+
xs(Q, A, g, g, B, i, V, a, M);
|
|
13423
13431
|
else
|
|
13424
13432
|
switch (d === 99 && bt(Q, 3) === 110 ? 100 : d) {
|
|
13425
13433
|
// d l m s
|
|
@@ -13427,10 +13435,10 @@ function Rs(e, A, t, n, r, i, o, a, s) {
|
|
|
13427
13435
|
case 108:
|
|
13428
13436
|
case 109:
|
|
13429
13437
|
case 115:
|
|
13430
|
-
|
|
13438
|
+
xs(e, g, g, n && Po(jh(e, g, g, 0, 0, r, a, w, r, B = [], V, M), M), r, M, V, a, n ? B : M);
|
|
13431
13439
|
break;
|
|
13432
13440
|
default:
|
|
13433
|
-
|
|
13441
|
+
xs(Q, g, g, g, [""], M, 0, a, M);
|
|
13434
13442
|
}
|
|
13435
13443
|
}
|
|
13436
13444
|
l = u = h = 0, C = q = 1, w = Q = "", V = o;
|
|
@@ -13456,7 +13464,7 @@ function Rs(e, A, t, n, r, i, o, a, s) {
|
|
|
13456
13464
|
break;
|
|
13457
13465
|
// @
|
|
13458
13466
|
case 64:
|
|
13459
|
-
li() === 45 && (Q += Tc(Yn())), d = li(), u = V = Ar(w = Q += g1(
|
|
13467
|
+
li() === 45 && (Q += Tc(Yn())), d = li(), u = V = Ar(w = Q += g1(Rs())), I++;
|
|
13460
13468
|
break;
|
|
13461
13469
|
// -
|
|
13462
13470
|
case 45:
|
|
@@ -13587,7 +13595,7 @@ function bC(e, A, t) {
|
|
|
13587
13595
|
case 3616:
|
|
13588
13596
|
return t && t.some(function(n, r) {
|
|
13589
13597
|
return A = r, Vr(n.props, /grid-\w+-end/);
|
|
13590
|
-
}) ? ~
|
|
13598
|
+
}) ? ~bs(e + (t = t[A].value), "span", 0) ? e : et + be(e, "-start", "") + e + et + "grid-row-span:" + (~bs(t, "span", 0) ? Vr(t, /\d+/) : +Vr(t, /\d+/) - +Vr(e, /\d+/)) + ";" : et + be(e, "-start", "") + e;
|
|
13591
13599
|
// grid-(row|column)-end
|
|
13592
13600
|
case 4896:
|
|
13593
13601
|
case 4128:
|
|
@@ -13624,7 +13632,7 @@ function bC(e, A, t) {
|
|
|
13624
13632
|
return be(e, /(.+:)(.+)-([^]+)/, "$1" + Pe + "$2-$3$1" + ta + (bt(e, A + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
13625
13633
|
// (s)tretch
|
|
13626
13634
|
case 115:
|
|
13627
|
-
return ~
|
|
13635
|
+
return ~bs(e, "stretch", 0) ? bC(be(e, "stretch", "fill-available"), A, t) + e : e;
|
|
13628
13636
|
}
|
|
13629
13637
|
break;
|
|
13630
13638
|
// grid-(column|row)
|
|
@@ -13768,7 +13776,7 @@ var v1 = {
|
|
|
13768
13776
|
strokeOpacity: 1,
|
|
13769
13777
|
strokeWidth: 1
|
|
13770
13778
|
}, gi = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", RC = "active", xC = "data-styled-version", Rl = "6.1.19", Dd = `/*!sc*/
|
|
13771
|
-
`, Js = typeof window < "u" && typeof document < "u", E1 = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), Hh = /invalid hook call/i,
|
|
13779
|
+
`, Js = typeof window < "u" && typeof document < "u", E1 = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), Hh = /invalid hook call/i, os = /* @__PURE__ */ new Set(), I1 = function(e, A) {
|
|
13772
13780
|
if (process.env.NODE_ENV !== "production") {
|
|
13773
13781
|
var t = A ? ' with the id of "'.concat(A, '"') : "", n = "The component ".concat(e).concat(t, ` has been created dynamically.
|
|
13774
13782
|
`) + `You may see this warning because you've called styled inside another component.
|
|
@@ -13779,10 +13787,10 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
|
|
|
13779
13787
|
var i = !0;
|
|
13780
13788
|
console.error = function(o) {
|
|
13781
13789
|
for (var a = [], s = 1; s < arguments.length; s++) a[s - 1] = arguments[s];
|
|
13782
|
-
Hh.test(o) ? (i = !1,
|
|
13783
|
-
}, RA(), i && !
|
|
13790
|
+
Hh.test(o) ? (i = !1, os.delete(n)) : r.apply(void 0, di([o], a, !1));
|
|
13791
|
+
}, RA(), i && !os.has(n) && (console.warn(n), os.add(n));
|
|
13784
13792
|
} catch (o) {
|
|
13785
|
-
Hh.test(o.message) &&
|
|
13793
|
+
Hh.test(o.message) && os.delete(n);
|
|
13786
13794
|
} finally {
|
|
13787
13795
|
console.error = r;
|
|
13788
13796
|
}
|
|
@@ -13795,13 +13803,13 @@ var Wu = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "as
|
|
|
13795
13803
|
function Jh(e) {
|
|
13796
13804
|
return e.replace(M1, "-").replace(w1, "");
|
|
13797
13805
|
}
|
|
13798
|
-
var S1 = /(a)(d)/gi,
|
|
13806
|
+
var S1 = /(a)(d)/gi, as = 52, Ph = function(e) {
|
|
13799
13807
|
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
13800
13808
|
};
|
|
13801
13809
|
function zu(e) {
|
|
13802
13810
|
var A, t = "";
|
|
13803
|
-
for (A = Math.abs(e); A >
|
|
13804
|
-
return (Ph(A %
|
|
13811
|
+
for (A = Math.abs(e); A > as; A = A / as | 0) t = Ph(A % as) + t;
|
|
13812
|
+
return (Ph(A % as) + t).replace(S1, "$1-$2");
|
|
13805
13813
|
}
|
|
13806
13814
|
var Fc, DC = 5381, ei = function(e, A) {
|
|
13807
13815
|
for (var t = A.length; t; ) e = 33 * e ^ A.charCodeAt(--t);
|
|
@@ -13950,14 +13958,14 @@ var k1 = function() {
|
|
|
13950
13958
|
for (var n = this.groupSizes[A], r = this.indexOfGroup(A), i = r + n, o = r; o < i; o++) t += "".concat(this.tag.getRule(o)).concat(Dd);
|
|
13951
13959
|
return t;
|
|
13952
13960
|
}, e;
|
|
13953
|
-
}(), G1 = 1 << 30,
|
|
13954
|
-
if (
|
|
13955
|
-
for (; Ps.has(
|
|
13956
|
-
var A =
|
|
13961
|
+
}(), G1 = 1 << 30, Ds = /* @__PURE__ */ new Map(), Ps = /* @__PURE__ */ new Map(), Ts = 1, ss = function(e) {
|
|
13962
|
+
if (Ds.has(e)) return Ds.get(e);
|
|
13963
|
+
for (; Ps.has(Ts); ) Ts++;
|
|
13964
|
+
var A = Ts++;
|
|
13957
13965
|
if (process.env.NODE_ENV !== "production" && ((0 | A) < 0 || A > G1)) throw Mo(16, "".concat(A));
|
|
13958
|
-
return
|
|
13966
|
+
return Ds.set(e, A), Ps.set(A, e), A;
|
|
13959
13967
|
}, Y1 = function(e, A) {
|
|
13960
|
-
|
|
13968
|
+
Ts = A + 1, Ds.set(e, A), Ps.set(A, e);
|
|
13961
13969
|
}, N1 = "style[".concat(gi, "][").concat(xC, '="').concat(Rl, '"]'), Z1 = new RegExp("^".concat(gi, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), K1 = function(e, A, t) {
|
|
13962
13970
|
for (var n, r = t.split(","), i = 0, o = r.length; i < o; i++) (n = r[i]) && e.registerName(A, n);
|
|
13963
13971
|
}, j1 = function(e, A) {
|
|
@@ -14060,7 +14068,7 @@ var NC = function(e) {
|
|
|
14060
14068
|
});
|
|
14061
14069
|
}
|
|
14062
14070
|
return e.registerId = function(A) {
|
|
14063
|
-
return
|
|
14071
|
+
return ss(A);
|
|
14064
14072
|
}, e.prototype.rehydrate = function() {
|
|
14065
14073
|
!this.server && Js && $h(this);
|
|
14066
14074
|
}, e.prototype.reconstructWithOptions = function(A, t) {
|
|
@@ -14076,17 +14084,17 @@ var NC = function(e) {
|
|
|
14076
14084
|
}, e.prototype.hasNameForId = function(A, t) {
|
|
14077
14085
|
return this.names.has(A) && this.names.get(A).has(t);
|
|
14078
14086
|
}, e.prototype.registerName = function(A, t) {
|
|
14079
|
-
if (
|
|
14087
|
+
if (ss(A), this.names.has(A)) this.names.get(A).add(t);
|
|
14080
14088
|
else {
|
|
14081
14089
|
var n = /* @__PURE__ */ new Set();
|
|
14082
14090
|
n.add(t), this.names.set(A, n);
|
|
14083
14091
|
}
|
|
14084
14092
|
}, e.prototype.insertRules = function(A, t, n) {
|
|
14085
|
-
this.registerName(A, t), this.getTag().insertRules(
|
|
14093
|
+
this.registerName(A, t), this.getTag().insertRules(ss(A), n);
|
|
14086
14094
|
}, e.prototype.clearNames = function(A) {
|
|
14087
14095
|
this.names.has(A) && this.names.get(A).clear();
|
|
14088
14096
|
}, e.prototype.clearRules = function(A) {
|
|
14089
|
-
this.getTag().clearGroup(
|
|
14097
|
+
this.getTag().clearGroup(ss(A)), this.clearNames(A);
|
|
14090
14098
|
}, e.prototype.clearTag = function() {
|
|
14091
14099
|
this.tag = void 0;
|
|
14092
14100
|
}, e;
|
|
@@ -14324,10 +14332,10 @@ function zC(e) {
|
|
|
14324
14332
|
process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
14325
14333
|
Perhaps you're looking to import 'styled-components/native'?
|
|
14326
14334
|
Read more about this at https://www.styled-components.com/docs/basics#react-native`);
|
|
14327
|
-
var
|
|
14328
|
-
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[
|
|
14335
|
+
var ls = "__sc-".concat(gi, "__");
|
|
14336
|
+
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[ls] || (window[ls] = 0), window[ls] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
14329
14337
|
|
|
14330
|
-
See https://s-c.sh/2BAXzed for more info.`), window[
|
|
14338
|
+
See https://s-c.sh/2BAXzed for more info.`), window[ls] += 1);
|
|
14331
14339
|
const iS = ht.div`
|
|
14332
14340
|
display: flex;
|
|
14333
14341
|
height: ${({ height: e }) => e || "45px"};
|
|
@@ -17245,7 +17253,7 @@ function Ul(e) {
|
|
|
17245
17253
|
arrowOffsetVertical: t ? o0 : n
|
|
17246
17254
|
};
|
|
17247
17255
|
}
|
|
17248
|
-
function
|
|
17256
|
+
function cs(e, A) {
|
|
17249
17257
|
return e ? A : {};
|
|
17250
17258
|
}
|
|
17251
17259
|
function jd(e, A, t) {
|
|
@@ -17275,7 +17283,7 @@ function jd(e, A, t) {
|
|
|
17275
17283
|
background: A
|
|
17276
17284
|
}
|
|
17277
17285
|
})]
|
|
17278
|
-
},
|
|
17286
|
+
}, cs(!!s.top, {
|
|
17279
17287
|
[[`&-placement-top > ${n}-arrow`, `&-placement-topLeft > ${n}-arrow`, `&-placement-topRight > ${n}-arrow`].join(",")]: {
|
|
17280
17288
|
bottom: a,
|
|
17281
17289
|
transform: "translateY(100%) rotate(180deg)"
|
|
@@ -17305,7 +17313,7 @@ function jd(e, A, t) {
|
|
|
17305
17313
|
}
|
|
17306
17314
|
}
|
|
17307
17315
|
}
|
|
17308
|
-
})),
|
|
17316
|
+
})), cs(!!s.bottom, {
|
|
17309
17317
|
[[`&-placement-bottom > ${n}-arrow`, `&-placement-bottomLeft > ${n}-arrow`, `&-placement-bottomRight > ${n}-arrow`].join(",")]: {
|
|
17310
17318
|
top: a,
|
|
17311
17319
|
transform: "translateY(-100%)"
|
|
@@ -17335,7 +17343,7 @@ function jd(e, A, t) {
|
|
|
17335
17343
|
}
|
|
17336
17344
|
}
|
|
17337
17345
|
}
|
|
17338
|
-
})),
|
|
17346
|
+
})), cs(!!s.left, {
|
|
17339
17347
|
[[`&-placement-left > ${n}-arrow`, `&-placement-leftTop > ${n}-arrow`, `&-placement-leftBottom > ${n}-arrow`].join(",")]: {
|
|
17340
17348
|
right: {
|
|
17341
17349
|
_skip_check_: !0,
|
|
@@ -17356,7 +17364,7 @@ function jd(e, A, t) {
|
|
|
17356
17364
|
[`&-placement-leftBottom > ${n}-arrow`]: {
|
|
17357
17365
|
bottom: i
|
|
17358
17366
|
}
|
|
17359
|
-
})),
|
|
17367
|
+
})), cs(!!s.right, {
|
|
17360
17368
|
[[`&-placement-right > ${n}-arrow`, `&-placement-rightTop > ${n}-arrow`, `&-placement-rightBottom > ${n}-arrow`].join(",")]: {
|
|
17361
17369
|
left: {
|
|
17362
17370
|
_skip_check_: !0,
|
|
@@ -18091,7 +18099,7 @@ const kl = (e, A) => {
|
|
|
18091
18099
|
display: "flex",
|
|
18092
18100
|
"&-content": Object.assign({
|
|
18093
18101
|
flex: "auto"
|
|
18094
|
-
},
|
|
18102
|
+
}, Gs),
|
|
18095
18103
|
"&-state": {
|
|
18096
18104
|
flex: "none",
|
|
18097
18105
|
display: "flex",
|
|
@@ -18223,7 +18231,7 @@ const kl = (e, A) => {
|
|
|
18223
18231
|
// fix whitespace wrapping. custom tags display all whitespace within.
|
|
18224
18232
|
textOverflow: "ellipsis"
|
|
18225
18233
|
},
|
|
18226
|
-
"&-remove": Object.assign(Object.assign({},
|
|
18234
|
+
"&-remove": Object.assign(Object.assign({}, Da()), {
|
|
18227
18235
|
display: "inline-flex",
|
|
18228
18236
|
alignItems: "center",
|
|
18229
18237
|
color: s,
|
|
@@ -18863,20 +18871,20 @@ const VQ = (e) => {
|
|
|
18863
18871
|
fontWeight: "normal",
|
|
18864
18872
|
position: "relative",
|
|
18865
18873
|
userSelect: "none"
|
|
18866
|
-
},
|
|
18874
|
+
}, Gs), {
|
|
18867
18875
|
// https://github.com/ant-design/ant-design/issues/40421
|
|
18868
18876
|
[`> ${A}-typography`]: {
|
|
18869
18877
|
display: "inline"
|
|
18870
18878
|
}
|
|
18871
18879
|
}),
|
|
18872
18880
|
// ======================= Placeholder =======================
|
|
18873
|
-
[`${t}-selection-placeholder`]: Object.assign(Object.assign({},
|
|
18881
|
+
[`${t}-selection-placeholder`]: Object.assign(Object.assign({}, Gs), {
|
|
18874
18882
|
flex: 1,
|
|
18875
18883
|
color: e.colorTextPlaceholder,
|
|
18876
18884
|
pointerEvents: "none"
|
|
18877
18885
|
}),
|
|
18878
18886
|
// ========================== Arrow ==========================
|
|
18879
|
-
[`${t}-arrow`]: Object.assign(Object.assign({},
|
|
18887
|
+
[`${t}-arrow`]: Object.assign(Object.assign({}, Da()), {
|
|
18880
18888
|
position: "absolute",
|
|
18881
18889
|
top: "50%",
|
|
18882
18890
|
insetInlineStart: "auto",
|
|
@@ -19977,14 +19985,14 @@ function Ci(e) {
|
|
|
19977
19985
|
});
|
|
19978
19986
|
};
|
|
19979
19987
|
}
|
|
19980
|
-
var
|
|
19988
|
+
var Fa = O({}, kq), WQ = Fa.version, Yc = Fa.render, zQ = Fa.unmountComponentAtNode, Gl;
|
|
19981
19989
|
try {
|
|
19982
19990
|
var XQ = Number((WQ || "").split(".")[0]);
|
|
19983
|
-
XQ >= 18 && (Gl =
|
|
19991
|
+
XQ >= 18 && (Gl = Fa.createRoot);
|
|
19984
19992
|
} catch {
|
|
19985
19993
|
}
|
|
19986
19994
|
function Cf(e) {
|
|
19987
|
-
var A =
|
|
19995
|
+
var A = Fa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
19988
19996
|
A && ne(A) === "object" && (A.usingClientEntryPoint = e);
|
|
19989
19997
|
}
|
|
19990
19998
|
var Xs = "__rc_react_root__";
|
|
@@ -20528,10 +20536,10 @@ var Bi = "enum", vb = function(A, t, n, r, i) {
|
|
|
20528
20536
|
m && (u = t.length), h && (u = t.replace(l, "_").length), o ? u !== A.len && r.push(ln(i.messages[V].len, A.fullField, A.len)) : a && !s && u < A.min ? r.push(ln(i.messages[V].min, A.fullField, A.min)) : s && !a && u > A.max ? r.push(ln(i.messages[V].max, A.fullField, A.max)) : a && s && (u < A.min || u > A.max) && r.push(ln(i.messages[V].range, A.fullField, A.min, A.max));
|
|
20529
20537
|
}, I0 = function(A, t, n, r, i, o) {
|
|
20530
20538
|
A.required && (!n.hasOwnProperty(A.field) || Mt(t, o || A.type)) && r.push(ln(i.messages.required, A.fullField));
|
|
20531
|
-
},
|
|
20539
|
+
}, us;
|
|
20532
20540
|
const yb = function() {
|
|
20533
|
-
if (
|
|
20534
|
-
return
|
|
20541
|
+
if (us)
|
|
20542
|
+
return us;
|
|
20535
20543
|
var e = "[a-fA-F\\d:]", A = function(g) {
|
|
20536
20544
|
return g && g.includeBoundaries ? "(?:(?<=\\s|^)(?=".concat(e, ")|(?<=").concat(e, ")(?=\\s|$))") : "";
|
|
20537
20545
|
}, t = "(?: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}", r = [
|
|
@@ -20560,7 +20568,7 @@ const yb = function() {
|
|
|
20560
20568
|
return M && M.exact ? l : new RegExp("".concat(A(M)).concat(o).concat(A(M)), "g");
|
|
20561
20569
|
};
|
|
20562
20570
|
var V = "(?:(?:[a-z]+:)?//)", d = "(?:\\S+(?::\\S*)?@)?", h = u.v4().source, m = u.v6().source, C = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", f = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", q = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", I = "(?::\\d{2,5})?", w = '(?:[/?#][^\\s"]*)?', B = "(?:".concat(V, "|www\\.)").concat(d, "(?:localhost|").concat(h, "|").concat(m, "|").concat(C).concat(f).concat(q, ")").concat(I).concat(w);
|
|
20563
|
-
return
|
|
20571
|
+
return us = new RegExp("(?:^".concat(B, "$)"), "i"), us;
|
|
20564
20572
|
};
|
|
20565
20573
|
var Mf = {
|
|
20566
20574
|
// http://emailregex.com/
|
|
@@ -20766,7 +20774,7 @@ const na = {
|
|
|
20766
20774
|
required: Yb,
|
|
20767
20775
|
any: Sb
|
|
20768
20776
|
};
|
|
20769
|
-
var
|
|
20777
|
+
var Ua = /* @__PURE__ */ function() {
|
|
20770
20778
|
function e(A) {
|
|
20771
20779
|
Ct(this, e), U(this, "rules", null), U(this, "_messages", UV), this.define(A);
|
|
20772
20780
|
}
|
|
@@ -20905,14 +20913,14 @@ var Fa = /* @__PURE__ */ function() {
|
|
|
20905
20913
|
}
|
|
20906
20914
|
}]), e;
|
|
20907
20915
|
}();
|
|
20908
|
-
U(
|
|
20916
|
+
U(Ua, "register", function(A, t) {
|
|
20909
20917
|
if (typeof t != "function")
|
|
20910
20918
|
throw new Error("Cannot register a validator by type, validator is not a function");
|
|
20911
20919
|
na[A] = t;
|
|
20912
20920
|
});
|
|
20913
|
-
U(
|
|
20914
|
-
U(
|
|
20915
|
-
U(
|
|
20921
|
+
U(Ua, "warning", E0);
|
|
20922
|
+
U(Ua, "messages", UV);
|
|
20923
|
+
U(Ua, "validators", na);
|
|
20916
20924
|
var rn = "'${name}' is not a valid ${type}", y0 = {
|
|
20917
20925
|
default: "Validation error on field '${name}'",
|
|
20918
20926
|
required: "'${name}' is required",
|
|
@@ -20959,7 +20967,7 @@ var rn = "'${name}' is not a valid ${type}", y0 = {
|
|
|
20959
20967
|
pattern: {
|
|
20960
20968
|
mismatch: "'${name}' does not match pattern ${pattern}"
|
|
20961
20969
|
}
|
|
20962
|
-
}, wf =
|
|
20970
|
+
}, wf = Ua;
|
|
20963
20971
|
function Zb(e, A) {
|
|
20964
20972
|
return e.replace(/\\?\$\{\w+\}/g, function(t) {
|
|
20965
20973
|
if (t.startsWith("\\"))
|
|
@@ -22275,12 +22283,12 @@ function nR() {
|
|
|
22275
22283
|
[f]
|
|
22276
22284
|
), u;
|
|
22277
22285
|
}
|
|
22278
|
-
var rR = /* @__PURE__ */ c.forwardRef(eR),
|
|
22279
|
-
|
|
22280
|
-
|
|
22281
|
-
|
|
22282
|
-
|
|
22283
|
-
|
|
22286
|
+
var rR = /* @__PURE__ */ c.forwardRef(eR), Oa = rR;
|
|
22287
|
+
Oa.FormProvider = _b;
|
|
22288
|
+
Oa.Field = w0;
|
|
22289
|
+
Oa.List = Wb;
|
|
22290
|
+
Oa.useForm = B0;
|
|
22291
|
+
Oa.useWatch = nR;
|
|
22284
22292
|
function Vn(e, A) {
|
|
22285
22293
|
var t = Object.assign({}, e);
|
|
22286
22294
|
return Array.isArray(A) && A.forEach(function(n) {
|
|
@@ -22363,8 +22371,8 @@ const sR = (e, A) => {
|
|
|
22363
22371
|
})), f !== void 0 ? /* @__PURE__ */ c.createElement("span", {
|
|
22364
22372
|
className: `${g}-label`
|
|
22365
22373
|
}, f) : null)));
|
|
22366
|
-
},
|
|
22367
|
-
process.env.NODE_ENV !== "production" && (
|
|
22374
|
+
}, Ma = /* @__PURE__ */ c.forwardRef(sR);
|
|
22375
|
+
process.env.NODE_ENV !== "production" && (Ma.displayName = "Radio");
|
|
22368
22376
|
function lR() {
|
|
22369
22377
|
var e = O({}, c);
|
|
22370
22378
|
return e.useId;
|
|
@@ -22417,13 +22425,13 @@ const zd = xf ? (
|
|
|
22417
22425
|
"value" in e || p(Z), Z !== P && (B == null || B(k));
|
|
22418
22426
|
}, [E, p, B]), b = t("radio", i), S = `${b}-group`, R = ir(b), [x, T, F] = XC(b, R);
|
|
22419
22427
|
let G = V;
|
|
22420
|
-
s && s.length > 0 && (G = s.map((k) => typeof k == "string" || typeof k == "number" ? /* @__PURE__ */ c.createElement(
|
|
22428
|
+
s && s.length > 0 && (G = s.map((k) => typeof k == "string" || typeof k == "number" ? /* @__PURE__ */ c.createElement(Ma, {
|
|
22421
22429
|
key: k.toString(),
|
|
22422
22430
|
prefixCls: b,
|
|
22423
22431
|
disabled: u,
|
|
22424
22432
|
value: k,
|
|
22425
22433
|
checked: E === k
|
|
22426
|
-
}, k) : /* @__PURE__ */ c.createElement(
|
|
22434
|
+
}, k) : /* @__PURE__ */ c.createElement(Ma, {
|
|
22427
22435
|
key: `radio-group-value-options-${k.value}`,
|
|
22428
22436
|
prefixCls: b,
|
|
22429
22437
|
disabled: k.disabled || u,
|
|
@@ -22477,13 +22485,13 @@ const dR = (e, A) => {
|
|
|
22477
22485
|
} = e, r = VR(e, ["prefixCls"]), i = t("radio", n);
|
|
22478
22486
|
return /* @__PURE__ */ c.createElement(NQ, {
|
|
22479
22487
|
value: "button"
|
|
22480
|
-
}, /* @__PURE__ */ c.createElement(
|
|
22488
|
+
}, /* @__PURE__ */ c.createElement(Ma, Object.assign({
|
|
22481
22489
|
prefixCls: i
|
|
22482
22490
|
}, r, {
|
|
22483
22491
|
type: "radio",
|
|
22484
22492
|
ref: A
|
|
22485
22493
|
})));
|
|
22486
|
-
}, gR = /* @__PURE__ */ c.forwardRef(dR), Yl =
|
|
22494
|
+
}, gR = /* @__PURE__ */ c.forwardRef(dR), Yl = Ma;
|
|
22487
22495
|
Yl.Button = gR;
|
|
22488
22496
|
Yl.Group = uR;
|
|
22489
22497
|
Yl.__ANT_RADIO = !0;
|
|
@@ -23028,7 +23036,7 @@ function DR() {
|
|
|
23028
23036
|
return e.calculated ? [e.primaryColor, e.secondaryColor] : e.primaryColor;
|
|
23029
23037
|
}
|
|
23030
23038
|
var TR = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
|
|
23031
|
-
U0(
|
|
23039
|
+
U0(ks.primary);
|
|
23032
23040
|
var Dt = /* @__PURE__ */ c.forwardRef(function(e, A) {
|
|
23033
23041
|
var t = e.className, n = e.icon, r = e.spin, i = e.rotate, o = e.tabIndex, a = e.onClick, s = e.twoToneColor, l = Ie(e, TR), u = c.useContext(fd), V = u.prefixCls, d = V === void 0 ? "anticon" : V, h = u.rootClassName, m = tA(h, d, U(U({}, "".concat(d, "-").concat(n.name), !!n.name), "".concat(d, "-spin"), !!r || n.name === "loading"), t), C = o;
|
|
23034
23042
|
C === void 0 && a && (C = -1);
|
|
@@ -23109,7 +23117,7 @@ var OR = function(e, A) {
|
|
|
23109
23117
|
A.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (t[n[r]] = e[n[r]]);
|
|
23110
23118
|
return t;
|
|
23111
23119
|
};
|
|
23112
|
-
const
|
|
23120
|
+
const ka = /* @__PURE__ */ Qn((e, A) => {
|
|
23113
23121
|
const {
|
|
23114
23122
|
prefixCls: t,
|
|
23115
23123
|
bordered: n = !0,
|
|
@@ -23218,7 +23226,7 @@ const Oa = /* @__PURE__ */ Qn((e, A) => {
|
|
|
23218
23226
|
})
|
|
23219
23227
|
}))));
|
|
23220
23228
|
});
|
|
23221
|
-
process.env.NODE_ENV !== "production" && (
|
|
23229
|
+
process.env.NODE_ENV !== "production" && (ka.displayName = "Input");
|
|
23222
23230
|
const kR = (e) => {
|
|
23223
23231
|
const {
|
|
23224
23232
|
componentCls: A,
|
|
@@ -23284,7 +23292,7 @@ const NR = /* @__PURE__ */ c.forwardRef((e, A) => {
|
|
|
23284
23292
|
}, h = (m) => {
|
|
23285
23293
|
m.key === "Backspace" && !t && r(i - 1), V();
|
|
23286
23294
|
};
|
|
23287
|
-
return /* @__PURE__ */ c.createElement(
|
|
23295
|
+
return /* @__PURE__ */ c.createElement(ka, Object.assign({
|
|
23288
23296
|
type: o === !0 ? "password" : "text"
|
|
23289
23297
|
}, a, {
|
|
23290
23298
|
ref: u,
|
|
@@ -23304,7 +23312,7 @@ var ZR = function(e, A) {
|
|
|
23304
23312
|
A.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (t[n[r]] = e[n[r]]);
|
|
23305
23313
|
return t;
|
|
23306
23314
|
};
|
|
23307
|
-
function
|
|
23315
|
+
function Vs(e) {
|
|
23308
23316
|
return (e || "").split("");
|
|
23309
23317
|
}
|
|
23310
23318
|
const KR = /* @__PURE__ */ c.forwardRef((e, A) => {
|
|
@@ -23354,9 +23362,9 @@ const KR = /* @__PURE__ */ c.forwardRef((e, A) => {
|
|
|
23354
23362
|
},
|
|
23355
23363
|
nativeElement: x.current
|
|
23356
23364
|
}));
|
|
23357
|
-
const F = (L) => s ? s(L) : L, [G, N] = c.useState(
|
|
23365
|
+
const F = (L) => s ? s(L) : L, [G, N] = c.useState(Vs(F(i || "")));
|
|
23358
23366
|
c.useEffect(() => {
|
|
23359
|
-
o !== void 0 && N(
|
|
23367
|
+
o !== void 0 && N(Vs(o));
|
|
23360
23368
|
}, [o]);
|
|
23361
23369
|
const K = ot((L) => {
|
|
23362
23370
|
N(L), f && f(L), a && L.length === n && L.every((z) => z) && L.some((z, J) => G[J] !== z) && a(L.join(""));
|
|
@@ -23364,11 +23372,11 @@ const KR = /* @__PURE__ */ c.forwardRef((e, A) => {
|
|
|
23364
23372
|
let J = yA(G);
|
|
23365
23373
|
for (let nA = 0; nA < L; nA += 1)
|
|
23366
23374
|
J[nA] || (J[nA] = "");
|
|
23367
|
-
z.length <= 1 ? J[L] = z : J = J.slice(0, L).concat(
|
|
23375
|
+
z.length <= 1 ? J[L] = z : J = J.slice(0, L).concat(Vs(z)), J = J.slice(0, n);
|
|
23368
23376
|
for (let nA = J.length - 1; nA >= 0 && !J[nA]; nA -= 1)
|
|
23369
23377
|
J.pop();
|
|
23370
23378
|
const eA = F(J.map((nA) => nA || " ").join(""));
|
|
23371
|
-
return J =
|
|
23379
|
+
return J = Vs(eA).map((nA, iA) => nA === " " && !J[iA] ? J[iA] : nA), J;
|
|
23372
23380
|
}), k = (L, z) => {
|
|
23373
23381
|
var J;
|
|
23374
23382
|
const eA = Y(L, z), nA = Math.min(L + z.length, n - 1);
|
|
@@ -23488,7 +23496,7 @@ const WR = (e) => e ? /* @__PURE__ */ c.createElement(Y0, null) : /* @__PURE__ *
|
|
|
23488
23496
|
prefixCls: M,
|
|
23489
23497
|
suffix: Q
|
|
23490
23498
|
});
|
|
23491
|
-
return I && (E.size = I), /* @__PURE__ */ c.createElement(
|
|
23499
|
+
return I && (E.size = I), /* @__PURE__ */ c.createElement(ka, Object.assign({
|
|
23492
23500
|
ref: Ln(A, V)
|
|
23493
23501
|
}, E));
|
|
23494
23502
|
});
|
|
@@ -23549,7 +23557,7 @@ function Wk(e) {
|
|
|
23549
23557
|
function Of(e) {
|
|
23550
23558
|
return typeof e == "string";
|
|
23551
23559
|
}
|
|
23552
|
-
function
|
|
23560
|
+
function ds(e) {
|
|
23553
23561
|
return e === "text" || e === "link";
|
|
23554
23562
|
}
|
|
23555
23563
|
function ex(e, A) {
|
|
@@ -24381,7 +24389,7 @@ const Wc = () => ({
|
|
|
24381
24389
|
});
|
|
24382
24390
|
}, z0 = (e) => {
|
|
24383
24391
|
var A, t, n, r, i, o;
|
|
24384
|
-
const a = (A = e.contentFontSize) !== null && A !== void 0 ? A : e.fontSize, s = (t = e.contentFontSizeSM) !== null && t !== void 0 ? t : e.fontSize, l = (n = e.contentFontSizeLG) !== null && n !== void 0 ? n : e.fontSizeLG, u = (r = e.contentLineHeight) !== null && r !== void 0 ? r :
|
|
24392
|
+
const a = (A = e.contentFontSize) !== null && A !== void 0 ? A : e.fontSize, s = (t = e.contentFontSizeSM) !== null && t !== void 0 ? t : e.fontSize, l = (n = e.contentFontSizeLG) !== null && n !== void 0 ? n : e.fontSizeLG, u = (r = e.contentLineHeight) !== null && r !== void 0 ? r : ms(a), V = (i = e.contentLineHeightSM) !== null && i !== void 0 ? i : ms(s), d = (o = e.contentLineHeightLG) !== null && o !== void 0 ? o : ms(l), h = Bx(new Ix(e.colorBgSolid), "#fff") ? "#000" : "#fff", m = Lr.reduce((C, f) => Object.assign(Object.assign({}, C), {
|
|
24385
24393
|
[`${f}ShadowColor`]: `0 ${hA(e.controlOutlineWidth)} 0 ${Lo(e[`${f}1`], e.colorBgContainer)}`
|
|
24386
24394
|
}), {});
|
|
24387
24395
|
return Object.assign(Object.assign({}, m), {
|
|
@@ -24462,7 +24470,7 @@ const Wc = () => ({
|
|
|
24462
24470
|
pointerEvents: "none"
|
|
24463
24471
|
},
|
|
24464
24472
|
// https://github.com/ant-design/ant-design/issues/51380
|
|
24465
|
-
[`${A}-icon > svg`]:
|
|
24473
|
+
[`${A}-icon > svg`]: Da(),
|
|
24466
24474
|
"> a": {
|
|
24467
24475
|
color: "currentColor"
|
|
24468
24476
|
},
|
|
@@ -24984,7 +24992,7 @@ const _x = {
|
|
|
24984
24992
|
style: K,
|
|
24985
24993
|
classNames: Y,
|
|
24986
24994
|
styles: k
|
|
24987
|
-
} = Er("button"), P = (t = v ?? G) !== null && t !== void 0 ? t : !0, Z = T("btn", i), [H, L, z] = Lx(Z), J = dt(qr), eA = h ?? J, nA = dt(Z0), iA = wn(() => $x(r), [r]), [X, VA] = De(iA.loading), [j, oA] = De(!1), rA = RA(null), mA = pi(A, rA), MA = yE.count(f) === 1 && !q && !
|
|
24995
|
+
} = Er("button"), P = (t = v ?? G) !== null && t !== void 0 ? t : !0, Z = T("btn", i), [H, L, z] = Lx(Z), J = dt(qr), eA = h ?? J, nA = dt(Z0), iA = wn(() => $x(r), [r]), [X, VA] = De(iA.loading), [j, oA] = De(!1), rA = RA(null), mA = pi(A, rA), MA = yE.count(f) === 1 && !q && !ds(S), pA = RA(!0);
|
|
24988
24996
|
$.useEffect(() => (pA.current = !1, () => {
|
|
24989
24997
|
pA.current = !0;
|
|
24990
24998
|
}), []), _e(() => {
|
|
@@ -25014,7 +25022,7 @@ const _x = {
|
|
|
25014
25022
|
}, [e.onClick, X, eA]);
|
|
25015
25023
|
if (process.env.NODE_ENV !== "production") {
|
|
25016
25024
|
const wA = gt("Button");
|
|
25017
|
-
process.env.NODE_ENV !== "production" && wA(!(typeof q == "string" && q.length > 2), "breaking", `\`icon\` is using ReactNode instead of string naming in v4. Please check \`${q}\` at https://ant.design/components/icon`), process.env.NODE_ENV !== "production" && wA(!(w &&
|
|
25025
|
+
process.env.NODE_ENV !== "production" && wA(!(typeof q == "string" && q.length > 2), "breaking", `\`icon\` is using ReactNode instead of string naming in v4. Please check \`${q}\` at https://ant.design/components/icon`), process.env.NODE_ENV !== "production" && wA(!(w && ds(S)), "usage", "`link` or `text` button can't be a `ghost` button.");
|
|
25018
25026
|
}
|
|
25019
25027
|
const {
|
|
25020
25028
|
compactSize: DA,
|
|
@@ -25035,7 +25043,7 @@ const _x = {
|
|
|
25035
25043
|
[`${Z}-variant-${S}`]: S,
|
|
25036
25044
|
[`${Z}-${SA}`]: SA,
|
|
25037
25045
|
[`${Z}-icon-only`]: !f && f !== 0 && !!KA,
|
|
25038
|
-
[`${Z}-background-ghost`]: w && !
|
|
25046
|
+
[`${Z}-background-ghost`]: w && !ds(S),
|
|
25039
25047
|
[`${Z}-loading`]: X,
|
|
25040
25048
|
[`${Z}-two-chinese-chars`]: j && P && !X,
|
|
25041
25049
|
[`${Z}-block`]: B,
|
|
@@ -25076,7 +25084,7 @@ const _x = {
|
|
|
25076
25084
|
}), Ve, Ae, kA && /* @__PURE__ */ $.createElement(zx, {
|
|
25077
25085
|
prefixCls: Z
|
|
25078
25086
|
}));
|
|
25079
|
-
return
|
|
25087
|
+
return ds(S) || (xA = /* @__PURE__ */ $.createElement(Pd, {
|
|
25080
25088
|
component: "Button",
|
|
25081
25089
|
disabled: X
|
|
25082
25090
|
}, xA)), H(xA);
|
|
@@ -25167,7 +25175,7 @@ const $0 = /* @__PURE__ */ c.forwardRef((e, A) => {
|
|
|
25167
25175
|
}, K = (Y) => {
|
|
25168
25176
|
I.current = !1, m == null || m(Y);
|
|
25169
25177
|
};
|
|
25170
|
-
return /* @__PURE__ */ c.createElement(
|
|
25178
|
+
return /* @__PURE__ */ c.createElement(ka, Object.assign({
|
|
25171
25179
|
ref: Ln(Q, A),
|
|
25172
25180
|
onPressEnter: y
|
|
25173
25181
|
}, G, {
|
|
@@ -25523,8 +25531,8 @@ function yD(e, A) {
|
|
|
25523
25531
|
offsetHeight: -1
|
|
25524
25532
|
}), u = !a && /* @__PURE__ */ c.isValidElement(s) && Pr(s), V = u ? fi(s) : null, d = pi(V, r), h = function() {
|
|
25525
25533
|
var q;
|
|
25526
|
-
return
|
|
25527
|
-
(r.current && ne(r.current) === "object" ?
|
|
25534
|
+
return Es(r.current) || // Support `nativeElement` format
|
|
25535
|
+
(r.current && ne(r.current) === "object" ? Es((q = r.current) === null || q === void 0 ? void 0 : q.nativeElement) : null) || Es(i.current);
|
|
25528
25536
|
};
|
|
25529
25537
|
c.useImperativeHandle(A, function() {
|
|
25530
25538
|
return h();
|
|
@@ -25962,7 +25970,7 @@ const kD = /* @__PURE__ */ Qn((e, A) => {
|
|
|
25962
25970
|
}, b),
|
|
25963
25971
|
ref: R
|
|
25964
25972
|
}))));
|
|
25965
|
-
}), vi =
|
|
25973
|
+
}), vi = ka;
|
|
25966
25974
|
vi.Group = hR;
|
|
25967
25975
|
vi.Search = $0;
|
|
25968
25976
|
vi.TextArea = kD;
|
|
@@ -26250,30 +26258,30 @@ function Jf(e, A, t, n) {
|
|
|
26250
26258
|
motionName: n
|
|
26251
26259
|
} : null);
|
|
26252
26260
|
}
|
|
26253
|
-
function
|
|
26261
|
+
function Ga(e) {
|
|
26254
26262
|
return e.ownerDocument.defaultView;
|
|
26255
26263
|
}
|
|
26256
26264
|
function WV(e) {
|
|
26257
26265
|
for (var A = [], t = e == null ? void 0 : e.parentElement, n = ["hidden", "scroll", "clip", "auto"]; t; ) {
|
|
26258
|
-
var r =
|
|
26266
|
+
var r = Ga(t).getComputedStyle(t), i = r.overflowX, o = r.overflowY, a = r.overflow;
|
|
26259
26267
|
[i, o, a].some(function(s) {
|
|
26260
26268
|
return n.includes(s);
|
|
26261
26269
|
}) && A.push(t), t = t.parentElement;
|
|
26262
26270
|
}
|
|
26263
26271
|
return A;
|
|
26264
26272
|
}
|
|
26265
|
-
function
|
|
26273
|
+
function wa(e) {
|
|
26266
26274
|
var A = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
|
26267
26275
|
return Number.isNaN(e) ? A : e;
|
|
26268
26276
|
}
|
|
26269
26277
|
function No(e) {
|
|
26270
|
-
return
|
|
26278
|
+
return wa(parseFloat(e), 0);
|
|
26271
26279
|
}
|
|
26272
26280
|
function Pf(e, A) {
|
|
26273
26281
|
var t = O({}, e);
|
|
26274
26282
|
return (A || []).forEach(function(n) {
|
|
26275
26283
|
if (!(n instanceof HTMLBodyElement || n instanceof HTMLHtmlElement)) {
|
|
26276
|
-
var r =
|
|
26284
|
+
var r = Ga(n).getComputedStyle(n), i = r.overflow, o = r.overflowClipMargin, a = r.borderTopWidth, s = r.borderBottomWidth, l = r.borderLeftWidth, u = r.borderRightWidth, V = n.getBoundingClientRect(), d = n.offsetHeight, h = n.clientHeight, m = n.offsetWidth, C = n.clientWidth, f = No(a), q = No(s), I = No(l), w = No(u), B = wa(Math.round(V.width / m * 1e3) / 1e3), M = wa(Math.round(V.height / d * 1e3) / 1e3), g = (m - C - I - w) * B, Q = (d - h - f - q) * M, v = f * M, E = q * M, p = I * B, y = w * B, b = 0, S = 0;
|
|
26277
26285
|
if (i === "clip") {
|
|
26278
26286
|
var R = No(o);
|
|
26279
26287
|
b = R * B, S = R * M;
|
|
@@ -26334,12 +26342,12 @@ function $D(e, A, t, n, r, i, o) {
|
|
|
26334
26342
|
var C = ot(function() {
|
|
26335
26343
|
if (A && t && e) {
|
|
26336
26344
|
let hn = function(bo, sr) {
|
|
26337
|
-
var Sr = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : SA, Ro = k.x + bo,
|
|
26345
|
+
var Sr = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : SA, Ro = k.x + bo, ja = k.y + sr, rc = Ro + j, ic = ja + VA, oc = Math.max(Ro, Sr.left), zA = Math.max(ja, Sr.top), qe = Math.min(rc, Sr.right), nt = Math.min(ic, Sr.bottom);
|
|
26338
26346
|
return Math.max(0, (qe - oc) * (nt - zA));
|
|
26339
26347
|
}, Ii = function() {
|
|
26340
26348
|
XA = k.y + le, ie = XA + VA, Ne = k.x + BA, pe = Ne + j;
|
|
26341
26349
|
};
|
|
26342
|
-
var I, w, B, M, g = A, Q = g.ownerDocument, v =
|
|
26350
|
+
var I, w, B, M, g = A, Q = g.ownerDocument, v = Ga(g), E = v.getComputedStyle(g), p = E.position, y = g.style.left, b = g.style.top, S = g.style.right, R = g.style.bottom, x = g.style.overflow, T = O(O({}, r[n]), i), F = Q.createElement("div");
|
|
26343
26351
|
(I = g.parentElement) === null || I === void 0 || I.appendChild(F), F.style.left = "".concat(g.offsetLeft, "px"), F.style.top = "".concat(g.offsetTop, "px"), F.style.position = p, F.style.height = "".concat(g.offsetHeight, "px"), F.style.width = "".concat(g.offsetWidth, "px"), g.style.left = "0", g.style.top = "0", g.style.right = "auto", g.style.bottom = "auto", g.style.overflow = "hidden";
|
|
26344
26352
|
var G;
|
|
26345
26353
|
if (Array.isArray(t))
|
|
@@ -26376,12 +26384,12 @@ function $D(e, A, t, n, r, i, o) {
|
|
|
26376
26384
|
g.style.left = "auto", g.style.top = "auto", g.style.right = "0", g.style.bottom = "0";
|
|
26377
26385
|
var ee = g.getBoundingClientRect();
|
|
26378
26386
|
g.style.left = y, g.style.top = b, g.style.right = S, g.style.bottom = R, g.style.overflow = x, (M = g.parentElement) === null || M === void 0 || M.removeChild(F);
|
|
26379
|
-
var re =
|
|
26387
|
+
var re = wa(Math.round(j / parseFloat(H) * 1e3) / 1e3), jA = wa(Math.round(VA / parseFloat(Z) * 1e3) / 1e3);
|
|
26380
26388
|
if (re === 0 || jA === 0 || qa(t) && !Ld(t))
|
|
26381
26389
|
return;
|
|
26382
26390
|
var YA = T.offset, $A = T.targetOffset, Ve = zf(k, YA), Ae = W(Ve, 2), xA = Ae[0], wA = Ae[1], ae = zf(G, $A), se = W(ae, 2), Ce = se[0], Te = se[1];
|
|
26383
26391
|
G.x -= Ce, G.y -= Te;
|
|
26384
|
-
var aA = T.points || [], CA = W(aA, 2), vA = CA[0],
|
|
26392
|
+
var aA = T.points || [], CA = W(aA, 2), vA = CA[0], ge = CA[1], Le = Xf(ge), Qe = Xf(vA), me = bi(G, Le), PA = bi(k, Qe), te = O({}, T), BA = me.x - PA.x + xA, le = me.y - PA.y + wA, ye = hn(BA, le), FA = hn(BA, le, uA), EA = bi(G, ["t", "l"]), JA = bi(k, ["t", "l"]), WA = bi(G, ["b", "r"]), ZA = bi(k, ["b", "r"]), D = T.overflow || {}, lA = D.adjustX, dA = D.adjustY, GA = D.shiftX, LA = D.shiftY, ce = function(sr) {
|
|
26385
26393
|
return typeof sr == "boolean" ? sr : sr >= 0;
|
|
26386
26394
|
}, XA, ie, Ne, pe;
|
|
26387
26395
|
Ii();
|
|
@@ -26465,7 +26473,7 @@ function _D(e, A, t, n, r) {
|
|
|
26465
26473
|
let V = function() {
|
|
26466
26474
|
n(), r();
|
|
26467
26475
|
};
|
|
26468
|
-
var i = A, o = t, a = WV(i), s = WV(o), l =
|
|
26476
|
+
var i = A, o = t, a = WV(i), s = WV(o), l = Ga(o), u = new Set([l].concat(yA(a), yA(s)));
|
|
26469
26477
|
return u.forEach(function(d) {
|
|
26470
26478
|
d.addEventListener("scroll", V, {
|
|
26471
26479
|
passive: !0
|
|
@@ -26491,7 +26499,7 @@ function AT(e, A, t, n, r, i, o, a) {
|
|
|
26491
26499
|
}, d = function(B) {
|
|
26492
26500
|
var M;
|
|
26493
26501
|
s.current && !o(((M = B.composedPath) === null || M === void 0 || (M = M.call(B)) === null || M === void 0 ? void 0 : M[0]) || B.target) && !l.current && a(!1);
|
|
26494
|
-
}, h =
|
|
26502
|
+
}, h = Ga(n);
|
|
26495
26503
|
h.addEventListener("pointerdown", V, !0), h.addEventListener("mousedown", d, !0), h.addEventListener("contextmenu", d, !0);
|
|
26496
26504
|
var m = el(t);
|
|
26497
26505
|
if (m && (m.addEventListener("mousedown", d, !0), m.addEventListener("contextmenu", d, !0)), process.env.NODE_ENV !== "production") {
|
|
@@ -26530,7 +26538,7 @@ function tT() {
|
|
|
26530
26538
|
return (It == null ? void 0 : It.contains(zA)) || ((qe = el(It)) === null || qe === void 0 ? void 0 : qe.host) === zA || zA === It || (KA == null ? void 0 : KA.contains(zA)) || ((nt = el(KA)) === null || nt === void 0 ? void 0 : nt.host) === zA || zA === KA || Object.values(OA.current).some(function(lt) {
|
|
26531
26539
|
return (lt == null ? void 0 : lt.contains(zA)) || zA === lt;
|
|
26532
26540
|
});
|
|
26533
|
-
}), aA = Jf(i, L, eA, J), CA = Jf(i, z, iA, nA), vA = c.useState(d || !1),
|
|
26541
|
+
}), aA = Jf(i, L, eA, J), CA = Jf(i, z, iA, nA), vA = c.useState(d || !1), ge = W(vA, 2), Le = ge[0], Qe = ge[1], me = V ?? Le, PA = ot(function(zA) {
|
|
26534
26542
|
V === void 0 && Qe(zA);
|
|
26535
26543
|
});
|
|
26536
26544
|
tt(function() {
|
|
@@ -26602,11 +26610,11 @@ function tT() {
|
|
|
26602
26610
|
}, [GA]);
|
|
26603
26611
|
function Et(zA, qe, nt, It) {
|
|
26604
26612
|
Ce[zA] = function(lt) {
|
|
26605
|
-
var
|
|
26613
|
+
var La;
|
|
26606
26614
|
It == null || It(lt), EA(qe, nt);
|
|
26607
|
-
for (var ac = arguments.length, Ig = new Array(ac > 1 ? ac - 1 : 0),
|
|
26608
|
-
Ig[
|
|
26609
|
-
(
|
|
26615
|
+
for (var ac = arguments.length, Ig = new Array(ac > 1 ? ac - 1 : 0), Ha = 1; Ha < ac; Ha++)
|
|
26616
|
+
Ig[Ha - 1] = arguments[Ha];
|
|
26617
|
+
(La = se[zA]) === null || La === void 0 || La.call.apply(La, [se, lt].concat(Ig));
|
|
26610
26618
|
};
|
|
26611
26619
|
}
|
|
26612
26620
|
(An || dn) && (Ce.onClick = function(zA) {
|
|
@@ -26637,8 +26645,8 @@ function tT() {
|
|
|
26637
26645
|
}), X && (Ce.className = tA(se.className, X));
|
|
26638
26646
|
var sr = c.useRef(!1);
|
|
26639
26647
|
sr.current || (sr.current = v || me || ZA);
|
|
26640
|
-
var Sr = O(O({}, se), Ce), Ro = {},
|
|
26641
|
-
|
|
26648
|
+
var Sr = O(O({}, se), Ce), Ro = {}, ja = ["onContextMenu", "onClick", "onMouseDown", "onTouchStart", "onMouseEnter", "onMouseLeave", "onFocus", "onBlur"];
|
|
26649
|
+
ja.forEach(function(zA) {
|
|
26642
26650
|
j[zA] && (Ro[zA] = function() {
|
|
26643
26651
|
for (var qe, nt = arguments.length, It = new Array(nt), lt = 0; lt < nt; lt++)
|
|
26644
26652
|
It[lt] = arguments[lt];
|
|
@@ -27231,14 +27239,14 @@ function wT(e, A) {
|
|
|
27231
27239
|
registerSize: wA,
|
|
27232
27240
|
display: te <= MA
|
|
27233
27241
|
}));
|
|
27234
|
-
},
|
|
27242
|
+
}, ge = {
|
|
27235
27243
|
order: Te ? MA : Number.MAX_SAFE_INTEGER,
|
|
27236
27244
|
className: "".concat(IA, "-rest"),
|
|
27237
27245
|
registerSize: ae,
|
|
27238
27246
|
display: Te
|
|
27239
27247
|
}, Le = C || MT, Qe = f ? /* @__PURE__ */ c.createElement(ol.Provider, {
|
|
27240
|
-
value: O(O({}, CA),
|
|
27241
|
-
}, f(YA)) : /* @__PURE__ */ c.createElement(ia, UA({}, CA,
|
|
27248
|
+
value: O(O({}, CA), ge)
|
|
27249
|
+
}, f(YA)) : /* @__PURE__ */ c.createElement(ia, UA({}, CA, ge), typeof Le == "function" ? Le(YA) : Le), me = /* @__PURE__ */ c.createElement(w, UA({
|
|
27242
27250
|
className: tA(!ee && n, h),
|
|
27243
27251
|
style: d,
|
|
27244
27252
|
ref: A
|
|
@@ -27277,8 +27285,8 @@ function BT(e, A) {
|
|
|
27277
27285
|
r !== void 0 && (t[n] = r);
|
|
27278
27286
|
}), t;
|
|
27279
27287
|
}
|
|
27280
|
-
function
|
|
27281
|
-
var A = e.children, t = e.locked, n = Ie(e, ST), r = c.useContext(jn), i =
|
|
27288
|
+
function Sa(e) {
|
|
27289
|
+
var A = e.children, t = e.locked, n = Ie(e, ST), r = c.useContext(jn), i = Ra(function() {
|
|
27282
27290
|
return BT(r, n);
|
|
27283
27291
|
}, [r, n], function(o, a) {
|
|
27284
27292
|
return !t && (o[0] !== a[0] || !ca(o[1], a[1], !0));
|
|
@@ -27318,14 +27326,14 @@ function bT(e) {
|
|
|
27318
27326
|
});
|
|
27319
27327
|
return _f(e, A) && t.unshift(e), t;
|
|
27320
27328
|
}
|
|
27321
|
-
var zV = oe.LEFT, XV = oe.RIGHT, $V = oe.UP,
|
|
27329
|
+
var zV = oe.LEFT, XV = oe.RIGHT, $V = oe.UP, Fs = oe.DOWN, Us = oe.ENTER, Iv = oe.ESC, Ko = oe.HOME, jo = oe.END, Aq = [$V, Fs, zV, XV];
|
|
27322
27330
|
function RT(e, A, t, n) {
|
|
27323
27331
|
var r, i = "prev", o = "next", a = "children", s = "parent";
|
|
27324
|
-
if (e === "inline" && n ===
|
|
27332
|
+
if (e === "inline" && n === Us)
|
|
27325
27333
|
return {
|
|
27326
27334
|
inlineTrigger: !0
|
|
27327
27335
|
};
|
|
27328
|
-
var l = U(U({}, $V, i),
|
|
27336
|
+
var l = U(U({}, $V, i), Fs, o), u = U(U(U(U({}, zV, t ? o : i), XV, t ? i : o), Fs, a), Us, a), V = U(U(U(U(U(U({}, $V, i), Fs, o), Us, a), Iv, s), zV, t ? a : s), XV, t ? s : a), d = {
|
|
27329
27337
|
inline: l,
|
|
27330
27338
|
horizontal: u,
|
|
27331
27339
|
vertical: V,
|
|
@@ -27412,7 +27420,7 @@ function TT(e, A, t, n, r, i, o, a, s, l) {
|
|
|
27412
27420
|
};
|
|
27413
27421
|
}, []), function(h) {
|
|
27414
27422
|
var m = h.which;
|
|
27415
|
-
if ([].concat(Aq, [
|
|
27423
|
+
if ([].concat(Aq, [Us, Iv, Ko, jo]).includes(m)) {
|
|
27416
27424
|
var C = i(), f = _V(C, n), q = f, I = q.elements, w = q.key2element, B = q.element2key, M = w.get(A), g = DT(M, I), Q = B.get(g), v = RT(e, o(Q, !0).length === 1, t, m);
|
|
27417
27425
|
if (!v && m !== Ko && m !== jo)
|
|
27418
27426
|
return;
|
|
@@ -27801,7 +27809,7 @@ function _T(e) {
|
|
|
27801
27809
|
var w = I.onVisibleChanged;
|
|
27802
27810
|
return I.onVisibleChanged = function(B) {
|
|
27803
27811
|
return !d.current && !B && f(!0), w == null ? void 0 : w(B);
|
|
27804
|
-
}, C ? null : /* @__PURE__ */ c.createElement(
|
|
27812
|
+
}, C ? null : /* @__PURE__ */ c.createElement(Sa, {
|
|
27805
27813
|
mode: i,
|
|
27806
27814
|
locked: !d.current
|
|
27807
27815
|
}, /* @__PURE__ */ c.createElement(Io, UA({
|
|
@@ -27883,7 +27891,7 @@ var AF = ["style", "className", "title", "eventKey", "warnKey", "disabled", "int
|
|
|
27883
27891
|
popupOffset: h,
|
|
27884
27892
|
popupStyle: m,
|
|
27885
27893
|
popup: /* @__PURE__ */ c.createElement(
|
|
27886
|
-
|
|
27894
|
+
Sa,
|
|
27887
27895
|
{
|
|
27888
27896
|
mode: xA === "horizontal" ? "vertical" : xA
|
|
27889
27897
|
},
|
|
@@ -27915,13 +27923,13 @@ var AF = ["style", "className", "title", "eventKey", "warnKey", "disabled", "int
|
|
|
27915
27923
|
active: uA,
|
|
27916
27924
|
open: X,
|
|
27917
27925
|
disabled: L
|
|
27918
|
-
})), /* @__PURE__ */ c.createElement(
|
|
27926
|
+
})), /* @__PURE__ */ c.createElement(Sa, {
|
|
27919
27927
|
onItemClick: ee,
|
|
27920
27928
|
mode: E === "horizontal" ? "vertical" : E,
|
|
27921
27929
|
itemIcon: eA,
|
|
27922
27930
|
expandIcon: nA
|
|
27923
27931
|
}, wA);
|
|
27924
|
-
}),
|
|
27932
|
+
}), Ya = /* @__PURE__ */ c.forwardRef(function(e, A) {
|
|
27925
27933
|
var t = e.eventKey, n = e.children, r = Bo(t), i = ag(n, r), o = $l();
|
|
27926
27934
|
c.useEffect(function() {
|
|
27927
27935
|
if (o)
|
|
@@ -27936,7 +27944,7 @@ var AF = ["style", "className", "title", "eventKey", "warnKey", "disabled", "int
|
|
|
27936
27944
|
value: r
|
|
27937
27945
|
}, a);
|
|
27938
27946
|
});
|
|
27939
|
-
process.env.NODE_ENV !== "production" && (
|
|
27947
|
+
process.env.NODE_ENV !== "production" && (Ya.displayName = "SubMenu");
|
|
27940
27948
|
function sg(e) {
|
|
27941
27949
|
var A = e.className, t = e.style, n = c.useContext(jn), r = n.prefixCls, i = $l();
|
|
27942
27950
|
return i ? null : /* @__PURE__ */ c.createElement("li", {
|
|
@@ -28006,7 +28014,7 @@ function rq(e, A, t, n, r) {
|
|
|
28006
28014
|
divider: sg,
|
|
28007
28015
|
item: _l,
|
|
28008
28016
|
group: Ac,
|
|
28009
|
-
submenu:
|
|
28017
|
+
submenu: Ya
|
|
28010
28018
|
}, n);
|
|
28011
28019
|
return A && (i = ed(A, o, r)), ag(i, t);
|
|
28012
28020
|
}
|
|
@@ -28026,18 +28034,18 @@ var oF = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
28026
28034
|
se(fe), oA == null || oA(fe);
|
|
28027
28035
|
}
|
|
28028
28036
|
Me ? iu(Fe) : Fe();
|
|
28029
|
-
}, Te = c.useState(ae), aA = W(Te, 2), CA = aA[0], vA = aA[1],
|
|
28037
|
+
}, Te = c.useState(ae), aA = W(Te, 2), CA = aA[0], vA = aA[1], ge = c.useRef(!1), Le = c.useMemo(function() {
|
|
28030
28038
|
return (f === "inline" || f === "vertical") && q ? ["vertical", q] : [f, !1];
|
|
28031
28039
|
}, [f, q]), Qe = W(Le, 2), me = Qe[0], PA = Qe[1], te = me === "inline", BA = c.useState(me), le = W(BA, 2), ye = le[0], FA = le[1], EA = c.useState(PA), JA = W(EA, 2), WA = JA[0], ZA = JA[1];
|
|
28032
28040
|
c.useEffect(function() {
|
|
28033
|
-
FA(me), ZA(PA),
|
|
28041
|
+
FA(me), ZA(PA), ge.current && (te ? se(CA) : Ce($r));
|
|
28034
28042
|
}, [me, PA]);
|
|
28035
28043
|
var D = c.useState(0), lA = W(D, 2), dA = lA[0], GA = lA[1], LA = dA >= SA.length - 1 || ye !== "horizontal" || w;
|
|
28036
28044
|
c.useEffect(function() {
|
|
28037
28045
|
te && vA(ae);
|
|
28038
28046
|
}, [ae]), c.useEffect(function() {
|
|
28039
|
-
return
|
|
28040
|
-
|
|
28047
|
+
return ge.current = !0, function() {
|
|
28048
|
+
ge.current = !1;
|
|
28041
28049
|
};
|
|
28042
28050
|
}, []);
|
|
28043
28051
|
var ce = OT(), XA = ce.registerPath, ie = ce.unregisterPath, Ne = ce.refreshOverflowKeys, pe = ce.isSubPathKey, we = ce.getKeyPath, fA = ce.getKeys, QA = ce.getSubPathKeys, ue = c.useMemo(function() {
|
|
@@ -28126,7 +28134,7 @@ var oF = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
28126
28134
|
SA.map(function(NA, fe) {
|
|
28127
28135
|
return (
|
|
28128
28136
|
// Always wrap provider to avoid sub node re-mount
|
|
28129
|
-
/* @__PURE__ */ c.createElement(
|
|
28137
|
+
/* @__PURE__ */ c.createElement(Sa, {
|
|
28130
28138
|
key: NA.key,
|
|
28131
28139
|
overflowDisabled: fe > dA
|
|
28132
28140
|
}, NA)
|
|
@@ -28149,7 +28157,7 @@ var oF = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
28149
28157
|
},
|
|
28150
28158
|
renderRawRest: function(fe) {
|
|
28151
28159
|
var Me = fe.length, Fe = Me ? SA.slice(-Me) : null;
|
|
28152
|
-
return /* @__PURE__ */ c.createElement(
|
|
28160
|
+
return /* @__PURE__ */ c.createElement(Ya, {
|
|
28153
28161
|
eventKey: Ad,
|
|
28154
28162
|
title: iA,
|
|
28155
28163
|
disabled: LA,
|
|
@@ -28169,7 +28177,7 @@ var oF = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
28169
28177
|
value: Jn
|
|
28170
28178
|
}, /* @__PURE__ */ c.createElement(fv.Provider, {
|
|
28171
28179
|
value: Ve
|
|
28172
|
-
}, /* @__PURE__ */ c.createElement(
|
|
28180
|
+
}, /* @__PURE__ */ c.createElement(Sa, {
|
|
28173
28181
|
prefixCls: i,
|
|
28174
28182
|
rootClassName: o,
|
|
28175
28183
|
mode: ye,
|
|
@@ -28203,11 +28211,11 @@ var oF = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
28203
28211
|
}, /* @__PURE__ */ c.createElement(Cv.Provider, {
|
|
28204
28212
|
value: ue
|
|
28205
28213
|
}, KA)))));
|
|
28206
|
-
}),
|
|
28207
|
-
|
|
28208
|
-
|
|
28209
|
-
|
|
28210
|
-
|
|
28214
|
+
}), Na = aF;
|
|
28215
|
+
Na.Item = _l;
|
|
28216
|
+
Na.SubMenu = Ya;
|
|
28217
|
+
Na.ItemGroup = Ac;
|
|
28218
|
+
Na.Divider = sg;
|
|
28211
28219
|
var sF = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "bars", theme: "outlined" }, lF = function(A, t) {
|
|
28212
28220
|
return /* @__PURE__ */ c.createElement(Dt, UA({}, A, {
|
|
28213
28221
|
ref: t,
|
|
@@ -28896,9 +28904,9 @@ const xF = /* @__PURE__ */ c.forwardRef((e, A) => {
|
|
|
28896
28904
|
return OA(/* @__PURE__ */ c.createElement(Ol.Provider, {
|
|
28897
28905
|
value: re
|
|
28898
28906
|
}, jA));
|
|
28899
|
-
}),
|
|
28900
|
-
process.env.NODE_ENV !== "production" && (
|
|
28901
|
-
|
|
28907
|
+
}), Za = xF;
|
|
28908
|
+
process.env.NODE_ENV !== "production" && (Za.displayName = "Tooltip");
|
|
28909
|
+
Za._InternalPanelDoNotUseOrYouWillBeFired = bF;
|
|
28902
28910
|
const Dv = (e) => {
|
|
28903
28911
|
var A;
|
|
28904
28912
|
const {
|
|
@@ -28942,7 +28950,7 @@ const Dv = (e) => {
|
|
|
28942
28950
|
}), Nn(r, {
|
|
28943
28951
|
className: tA(/* @__PURE__ */ c.isValidElement(r) ? (A = r.props) === null || A === void 0 ? void 0 : A.className : "", `${s}-item-icon`)
|
|
28944
28952
|
}), h(d));
|
|
28945
|
-
return V || (I = /* @__PURE__ */ c.createElement(
|
|
28953
|
+
return V || (I = /* @__PURE__ */ c.createElement(Za, Object.assign({}, f, {
|
|
28946
28954
|
placement: u === "rtl" ? "left" : "right",
|
|
28947
28955
|
classNames: {
|
|
28948
28956
|
root: `${s}-inline-collapsed-tooltip`
|
|
@@ -29430,7 +29438,7 @@ const ll = /* @__PURE__ */ c.createContext(null), TF = /* @__PURE__ */ c.forward
|
|
|
29430
29438
|
color: r
|
|
29431
29439
|
}
|
|
29432
29440
|
},
|
|
29433
|
-
[`${A}-item-group-title`]: Object.assign(Object.assign({},
|
|
29441
|
+
[`${A}-item-group-title`]: Object.assign(Object.assign({}, Gs), {
|
|
29434
29442
|
paddingInline: h
|
|
29435
29443
|
})
|
|
29436
29444
|
}
|
|
@@ -29466,7 +29474,7 @@ const ll = /* @__PURE__ */ c.createContext(null), TF = /* @__PURE__ */ c.forward
|
|
|
29466
29474
|
transition: [`opacity ${t} ${r}`, `margin ${t}`, `color ${t}`].join(",")
|
|
29467
29475
|
}
|
|
29468
29476
|
},
|
|
29469
|
-
[`${A}-item-icon`]: Object.assign({},
|
|
29477
|
+
[`${A}-item-icon`]: Object.assign({}, Da()),
|
|
29470
29478
|
[`&${A}-item-only-child`]: {
|
|
29471
29479
|
[`> ${o}, > ${A}-item-icon`]: {
|
|
29472
29480
|
marginInlineEnd: 0
|
|
@@ -29979,7 +29987,7 @@ const ll = /* @__PURE__ */ c.createContext(null), TF = /* @__PURE__ */ c.forward
|
|
|
29979
29987
|
}), [o]), [h] = kl("Menu");
|
|
29980
29988
|
return /* @__PURE__ */ c.createElement(sl.Provider, {
|
|
29981
29989
|
value: d
|
|
29982
|
-
}, /* @__PURE__ */ c.createElement(
|
|
29990
|
+
}, /* @__PURE__ */ c.createElement(Ya, Object.assign({}, Vn(e, ["icon"]), {
|
|
29983
29991
|
title: V,
|
|
29984
29992
|
popupClassName: tA(a, t, `${a}-${i || l}`),
|
|
29985
29993
|
popupStyle: Object.assign({
|
|
@@ -30066,7 +30074,7 @@ const ZF = {
|
|
|
30066
30074
|
value: null
|
|
30067
30075
|
}, /* @__PURE__ */ c.createElement(sl.Provider, {
|
|
30068
30076
|
value: Y
|
|
30069
|
-
}, /* @__PURE__ */ c.createElement(
|
|
30077
|
+
}, /* @__PURE__ */ c.createElement(Na, Object.assign({
|
|
30070
30078
|
getPopupContainer: o,
|
|
30071
30079
|
overflowedIndicator: /* @__PURE__ */ c.createElement(cg, null),
|
|
30072
30080
|
overflowedIndicatorPopupClassName: tA(R, `${R}-${h}`, g),
|
|
@@ -30102,7 +30110,7 @@ Qo.SubMenu = Tv;
|
|
|
30102
30110
|
Qo.Divider = Rv;
|
|
30103
30111
|
Qo.ItemGroup = Ac;
|
|
30104
30112
|
process.env.NODE_ENV !== "production" && (Qo.displayName = "Menu");
|
|
30105
|
-
const
|
|
30113
|
+
const Ka = (e) => {
|
|
30106
30114
|
var A;
|
|
30107
30115
|
const {
|
|
30108
30116
|
menu: t,
|
|
@@ -30218,9 +30226,9 @@ const Za = (e) => {
|
|
|
30218
30226
|
return iA && (VA = /* @__PURE__ */ c.createElement(Ol.Provider, {
|
|
30219
30227
|
value: X
|
|
30220
30228
|
}, VA)), T(VA);
|
|
30221
|
-
}, jF = dv(
|
|
30222
|
-
|
|
30223
|
-
process.env.NODE_ENV !== "production" && (
|
|
30229
|
+
}, jF = dv(Ka, "align", void 0, "dropdown", (e) => e), LF = (e) => /* @__PURE__ */ c.createElement(jF, Object.assign({}, e), /* @__PURE__ */ c.createElement("span", null));
|
|
30230
|
+
Ka._InternalPanelDoNotUseOrYouWillBeFired = LF;
|
|
30231
|
+
process.env.NODE_ENV !== "production" && (Ka.displayName = "Dropdown");
|
|
30224
30232
|
function uq(e) {
|
|
30225
30233
|
return ["small", "middle", "large"].includes(e);
|
|
30226
30234
|
}
|
|
@@ -30393,10 +30401,10 @@ const Uv = (e) => {
|
|
|
30393
30401
|
className: P,
|
|
30394
30402
|
size: Y,
|
|
30395
30403
|
block: !0
|
|
30396
|
-
}, F), L, /* @__PURE__ */ c.createElement(
|
|
30404
|
+
}, F), L, /* @__PURE__ */ c.createElement(Ka, Object.assign({}, K), z));
|
|
30397
30405
|
};
|
|
30398
30406
|
Uv.__ANT_BUTTON = !0;
|
|
30399
|
-
const Ov =
|
|
30407
|
+
const Ov = Ka;
|
|
30400
30408
|
Ov.Button = Uv;
|
|
30401
30409
|
const XF = /* @__PURE__ */ $.createContext({});
|
|
30402
30410
|
var $F = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z" } }] }, name: "check-circle", theme: "filled" }, _F = function(A, t) {
|
|
@@ -30955,7 +30963,7 @@ function Hv(e) {
|
|
|
30955
30963
|
function IU(e) {
|
|
30956
30964
|
return Hv(e);
|
|
30957
30965
|
}
|
|
30958
|
-
let vn = null, oi = (e) => e(),
|
|
30966
|
+
let vn = null, oi = (e) => e(), Ba = [], Qa = {};
|
|
30959
30967
|
function qq() {
|
|
30960
30968
|
const {
|
|
30961
30969
|
getContainer: e,
|
|
@@ -30963,7 +30971,7 @@ function qq() {
|
|
|
30963
30971
|
rtl: t,
|
|
30964
30972
|
maxCount: n,
|
|
30965
30973
|
top: r
|
|
30966
|
-
} =
|
|
30974
|
+
} = Qa, i = (e == null ? void 0 : e()) || document.body;
|
|
30967
30975
|
return {
|
|
30968
30976
|
getContainer: () => i,
|
|
30969
30977
|
duration: A,
|
|
@@ -30978,7 +30986,7 @@ const yU = /* @__PURE__ */ $.forwardRef((e, A) => {
|
|
|
30978
30986
|
sync: n
|
|
30979
30987
|
} = e, {
|
|
30980
30988
|
getPrefixCls: r
|
|
30981
|
-
} = dt(je), i =
|
|
30989
|
+
} = dt(je), i = Qa.prefixCls || r("message"), o = dt(XF), [a, s] = Hv(Object.assign(Object.assign(Object.assign({}, t), {
|
|
30982
30990
|
prefixCls: i
|
|
30983
30991
|
}), o.message));
|
|
30984
30992
|
return $.useImperativeHandle(A, () => {
|
|
@@ -31028,7 +31036,7 @@ function ec() {
|
|
|
31028
31036
|
});
|
|
31029
31037
|
return;
|
|
31030
31038
|
}
|
|
31031
|
-
vn.instance && (
|
|
31039
|
+
vn.instance && (Ba.forEach((e) => {
|
|
31032
31040
|
const {
|
|
31033
31041
|
type: A,
|
|
31034
31042
|
skipped: t
|
|
@@ -31037,7 +31045,7 @@ function ec() {
|
|
|
31037
31045
|
switch (A) {
|
|
31038
31046
|
case "open": {
|
|
31039
31047
|
oi(() => {
|
|
31040
|
-
const n = vn.instance.open(Object.assign(Object.assign({},
|
|
31048
|
+
const n = vn.instance.open(Object.assign(Object.assign({}, Qa), e.config));
|
|
31041
31049
|
n == null || n.then(e.resolve), e.setCloseFn(n);
|
|
31042
31050
|
});
|
|
31043
31051
|
break;
|
|
@@ -31055,10 +31063,10 @@ function ec() {
|
|
|
31055
31063
|
r == null || r.then(e.resolve), e.setCloseFn(r);
|
|
31056
31064
|
});
|
|
31057
31065
|
}
|
|
31058
|
-
}),
|
|
31066
|
+
}), Ba = []);
|
|
31059
31067
|
}
|
|
31060
31068
|
function wU(e) {
|
|
31061
|
-
|
|
31069
|
+
Qa = Object.assign(Object.assign({}, Qa), e), oi(() => {
|
|
31062
31070
|
var A;
|
|
31063
31071
|
(A = vn == null ? void 0 : vn.sync) === null || A === void 0 || A.call(vn);
|
|
31064
31072
|
});
|
|
@@ -31074,7 +31082,7 @@ function SU(e) {
|
|
|
31074
31082
|
n = i;
|
|
31075
31083
|
}
|
|
31076
31084
|
};
|
|
31077
|
-
return
|
|
31085
|
+
return Ba.push(r), () => {
|
|
31078
31086
|
n ? oi(() => {
|
|
31079
31087
|
n();
|
|
31080
31088
|
}) : r.skipped = !0;
|
|
@@ -31095,7 +31103,7 @@ function BU(e, A) {
|
|
|
31095
31103
|
i = a;
|
|
31096
31104
|
}
|
|
31097
31105
|
};
|
|
31098
|
-
return
|
|
31106
|
+
return Ba.push(o), () => {
|
|
31099
31107
|
i ? oi(() => {
|
|
31100
31108
|
i();
|
|
31101
31109
|
}) : o.skipped = !0;
|
|
@@ -31104,7 +31112,7 @@ function BU(e, A) {
|
|
|
31104
31112
|
return ec(), n;
|
|
31105
31113
|
}
|
|
31106
31114
|
const QU = (e) => {
|
|
31107
|
-
|
|
31115
|
+
Ba.push({
|
|
31108
31116
|
type: "destroy",
|
|
31109
31117
|
key: e
|
|
31110
31118
|
}), ec();
|
|
@@ -31219,7 +31227,7 @@ const UU = /* @__PURE__ */ c.forwardRef((e, A) => {
|
|
|
31219
31227
|
}, G = (Y) => {
|
|
31220
31228
|
T(Y);
|
|
31221
31229
|
}, N = cl(i), K = cl(o);
|
|
31222
|
-
return v(/* @__PURE__ */ c.createElement(
|
|
31230
|
+
return v(/* @__PURE__ */ c.createElement(Za, Object.assign({
|
|
31223
31231
|
placement: s,
|
|
31224
31232
|
trigger: l,
|
|
31225
31233
|
mouseEnterDelay: V,
|
|
@@ -31857,14 +31865,14 @@ var oO = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
|
|
|
31857
31865
|
return y;
|
|
31858
31866
|
var NA = (Se = u[0]) === null || Se === void 0 ? void 0 : Se.value;
|
|
31859
31867
|
return typeof NA == "string" || typeof NA == "number" ? String(NA) : "";
|
|
31860
|
-
}, [y, f, u]), Ce = f === "combobox" && typeof w == "function" && w() || null, Te = typeof B == "function" && B(), aA = pi(ee, Te == null || (t = Te.props) === null || t === void 0 ? void 0 : t.ref), CA = c.useState(!1), vA = W(CA, 2),
|
|
31868
|
+
}, [y, f, u]), Ce = f === "combobox" && typeof w == "function" && w() || null, Te = typeof B == "function" && B(), aA = pi(ee, Te == null || (t = Te.props) === null || t === void 0 ? void 0 : t.ref), CA = c.useState(!1), vA = W(CA, 2), ge = vA[0], Le = vA[1];
|
|
31861
31869
|
tt(function() {
|
|
31862
31870
|
Le(!0);
|
|
31863
31871
|
}, []);
|
|
31864
31872
|
var Qe = Ft(!1, {
|
|
31865
31873
|
defaultValue: g,
|
|
31866
31874
|
value: M
|
|
31867
|
-
}), me = W(Qe, 2), PA = me[0], te = me[1], BA =
|
|
31875
|
+
}), me = W(Qe, 2), PA = me[0], te = me[1], BA = ge ? PA : !1, le = !m && d;
|
|
31868
31876
|
(q || le && BA && f === "combobox") && (BA = !1);
|
|
31869
31877
|
var ye = le ? !1 : BA, FA = c.useCallback(function(Se) {
|
|
31870
31878
|
var NA = Se !== void 0 ? Se : !BA;
|
|
@@ -32675,11 +32683,11 @@ function IO(e, A) {
|
|
|
32675
32683
|
return Sq(wA.width, C);
|
|
32676
32684
|
}, [wA.width, C]), CA = c.useMemo(function() {
|
|
32677
32685
|
return Sq(wA.height, jA);
|
|
32678
|
-
}, [wA.height, jA]), vA = jA - i,
|
|
32679
|
-
|
|
32686
|
+
}, [wA.height, jA]), vA = jA - i, ge = RA(vA);
|
|
32687
|
+
ge.current = vA;
|
|
32680
32688
|
function Le(fA) {
|
|
32681
32689
|
var QA = fA;
|
|
32682
|
-
return Number.isNaN(
|
|
32690
|
+
return Number.isNaN(ge.current) || (QA = Math.min(QA, ge.current)), QA = Math.max(QA, 0), QA;
|
|
32683
32691
|
}
|
|
32684
32692
|
var Qe = eA <= 0, me = eA >= vA, PA = VA <= 0, te = VA >= C, BA = tE(Qe, me, PA, te), le = function() {
|
|
32685
32693
|
return {
|
|
@@ -32851,7 +32859,7 @@ function Bq(e) {
|
|
|
32851
32859
|
return typeof e == "string" || typeof e == "number";
|
|
32852
32860
|
}
|
|
32853
32861
|
var wO = function(A, t) {
|
|
32854
|
-
var n = kU(), r = n.prefixCls, i = n.id, o = n.open, a = n.multiple, s = n.mode, l = n.searchValue, u = n.toggleOpen, V = n.notFoundContent, d = n.onPopupScroll, h = c.useContext(fg), m = h.maxCount, C = h.flattenOptions, f = h.onActiveValue, q = h.defaultActiveFirstOption, I = h.onSelect, w = h.menuItemSelectedIcon, B = h.rawValues, M = h.fieldNames, g = h.virtual, Q = h.direction, v = h.listHeight, E = h.listItemHeight, p = h.optionRender, y = "".concat(r, "-item"), b =
|
|
32862
|
+
var n = kU(), r = n.prefixCls, i = n.id, o = n.open, a = n.multiple, s = n.mode, l = n.searchValue, u = n.toggleOpen, V = n.notFoundContent, d = n.onPopupScroll, h = c.useContext(fg), m = h.maxCount, C = h.flattenOptions, f = h.onActiveValue, q = h.defaultActiveFirstOption, I = h.onSelect, w = h.menuItemSelectedIcon, B = h.rawValues, M = h.fieldNames, g = h.virtual, Q = h.direction, v = h.listHeight, E = h.listItemHeight, p = h.optionRender, y = "".concat(r, "-item"), b = Ra(function() {
|
|
32855
32863
|
return C;
|
|
32856
32864
|
}, [o, C], function(iA, X) {
|
|
32857
32865
|
return X[0] && iA[1] !== X[1];
|
|
@@ -33344,9 +33352,9 @@ var iE = /* @__PURE__ */ c.forwardRef(function(e, A) {
|
|
|
33344
33352
|
Z ? ZA : ZA[0]
|
|
33345
33353
|
);
|
|
33346
33354
|
}
|
|
33347
|
-
}, ae = c.useState(null), se = W(ae, 2), Ce = se[0], Te = se[1], aA = c.useState(0), CA = W(aA, 2), vA = CA[0],
|
|
33355
|
+
}, ae = c.useState(null), se = W(ae, 2), Ce = se[0], Te = se[1], aA = c.useState(0), CA = W(aA, 2), vA = CA[0], ge = CA[1], Le = v !== void 0 ? v : n !== "combobox", Qe = c.useCallback(function(FA, EA) {
|
|
33348
33356
|
var JA = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, WA = JA.source, ZA = WA === void 0 ? "keyboard" : WA;
|
|
33349
|
-
|
|
33357
|
+
ge(EA), o && n === "combobox" && FA !== null && ZA === "keyboard" && Te(String(FA));
|
|
33350
33358
|
}, [o, n]), me = function(EA, JA, WA) {
|
|
33351
33359
|
var ZA = function() {
|
|
33352
33360
|
var pe, we = SA(EA);
|
|
@@ -34173,7 +34181,7 @@ const gk = (e) => {
|
|
|
34173
34181
|
aa = e.makeCall;
|
|
34174
34182
|
}, hk = () => {
|
|
34175
34183
|
aa = void 0;
|
|
34176
|
-
}, Xk = (e) => aa == null ? void 0 : aa(e), $k = () =>
|
|
34184
|
+
}, Xk = (e) => aa == null ? void 0 : aa(e), $k = () => ya.getInstance().getRealTimeCustomerInfo();
|
|
34177
34185
|
var Ui = {}, Tq;
|
|
34178
34186
|
function pk() {
|
|
34179
34187
|
if (Tq) return Ui;
|
|
@@ -34293,7 +34301,7 @@ const Mk = {
|
|
|
34293
34301
|
consult_transfer: "咨询转接",
|
|
34294
34302
|
consult_retrieve: "取回通话",
|
|
34295
34303
|
conference: "三方会议"
|
|
34296
|
-
}, Sk = Oq(() => import("./ConsultModel-
|
|
34304
|
+
}, Sk = Oq(() => import("./ConsultModel-m9z1-KFl.mjs")), Bk = Oq(() => import("./TransferModel-DYXxr2aN.mjs")), _k = (e) => {
|
|
34297
34305
|
var se, Ce, Te;
|
|
34298
34306
|
const {
|
|
34299
34307
|
style: A,
|
|
@@ -34319,7 +34327,7 @@ const Mk = {
|
|
|
34319
34327
|
return "#1D92E9";
|
|
34320
34328
|
}
|
|
34321
34329
|
};
|
|
34322
|
-
_e(() => ((async () => (v(!0), h.current =
|
|
34330
|
+
_e(() => ((async () => (v(!0), h.current = ya.getInstance({
|
|
34323
34331
|
agentNo: n,
|
|
34324
34332
|
appKey: r,
|
|
34325
34333
|
appSecret: i,
|
|
@@ -34359,7 +34367,7 @@ const Mk = {
|
|
|
34359
34367
|
var aA, CA;
|
|
34360
34368
|
(aA = h.current) == null || aA.on(Ge.EVENT_ALL, ({
|
|
34361
34369
|
event: vA,
|
|
34362
|
-
data:
|
|
34370
|
+
data: ge
|
|
34363
34371
|
}) => {
|
|
34364
34372
|
switch (vA) {
|
|
34365
34373
|
// 播放等待音
|
|
@@ -34371,8 +34379,8 @@ const Mk = {
|
|
|
34371
34379
|
}
|
|
34372
34380
|
case gA.OUT_INCOMING_CALL: {
|
|
34373
34381
|
a == null || a(gA.OUT_INCOMING_CALL, {
|
|
34374
|
-
customer_phone:
|
|
34375
|
-
session_id:
|
|
34382
|
+
customer_phone: ge.customer_phone,
|
|
34383
|
+
session_id: ge.session_id
|
|
34376
34384
|
});
|
|
34377
34385
|
return;
|
|
34378
34386
|
}
|
|
@@ -34392,10 +34400,12 @@ const Mk = {
|
|
|
34392
34400
|
case gA.TRANSFER_INCOMING_CALL:
|
|
34393
34401
|
case gA.INCOMING_CALL: {
|
|
34394
34402
|
(vA === gA.CONSULT_INCOMING || vA === gA.TRANSFER_INCOMING_CALL) && (a == null || a(vA, {
|
|
34395
|
-
agent_no:
|
|
34396
|
-
agent_name:
|
|
34397
|
-
|
|
34398
|
-
|
|
34403
|
+
agent_no: ge.agent_no,
|
|
34404
|
+
agent_name: ge.agent_name,
|
|
34405
|
+
session_id: ge.session_id
|
|
34406
|
+
})), vA === gA.INCOMING_CALL && (console.log(ya.getInstance().getRealTimeCustomerInfo()), a == null || a(gA.INCOMING_CALL, {
|
|
34407
|
+
customer_phone: ge.customer_phone,
|
|
34408
|
+
session_id: ge.session_id
|
|
34399
34409
|
})), oA(q);
|
|
34400
34410
|
return;
|
|
34401
34411
|
}
|
|
@@ -34405,7 +34415,7 @@ const Mk = {
|
|
|
34405
34415
|
case gA.CONSULT_CALL_IN_SUCCESS:
|
|
34406
34416
|
case gA.INCOMING_CALL_OFF_HOOK: {
|
|
34407
34417
|
a == null || a(vA, {
|
|
34408
|
-
session_id:
|
|
34418
|
+
session_id: ge.session_id
|
|
34409
34419
|
}), rA(q);
|
|
34410
34420
|
return;
|
|
34411
34421
|
}
|
|
@@ -34415,13 +34425,13 @@ const Mk = {
|
|
|
34415
34425
|
case gA.OUR_SIDE_CONSULT_HANGUP:
|
|
34416
34426
|
case gA.INCOMING_CALL_END: {
|
|
34417
34427
|
a == null || a(vA, {
|
|
34418
|
-
session_id:
|
|
34428
|
+
session_id: ge.session_id
|
|
34419
34429
|
}), rA(q), rA(C);
|
|
34420
34430
|
return;
|
|
34421
34431
|
}
|
|
34422
34432
|
case gA.REJECT:
|
|
34423
34433
|
a == null || a(vA, {
|
|
34424
|
-
session_id:
|
|
34434
|
+
session_id: ge.session_id
|
|
34425
34435
|
});
|
|
34426
34436
|
return;
|
|
34427
34437
|
default:
|
|
@@ -34438,12 +34448,12 @@ const Mk = {
|
|
|
34438
34448
|
}).on(Ge.AGENT_INIT_STATUS, (vA) => {
|
|
34439
34449
|
if (vA) {
|
|
34440
34450
|
const {
|
|
34441
|
-
default_device:
|
|
34451
|
+
default_device: ge,
|
|
34442
34452
|
init_state: Le,
|
|
34443
34453
|
out_display_select_switch: Qe,
|
|
34444
34454
|
out_display_data: me
|
|
34445
34455
|
} = h.current.getAgentData();
|
|
34446
|
-
k(Qe === 1), Qe === 1 && Z((me || "").split("#")), b(
|
|
34456
|
+
k(Qe === 1), Qe === 1 && Z((me || "").split("#")), b(ge), R(Le === 1 ? "空闲" : "忙碌"), OA();
|
|
34447
34457
|
}
|
|
34448
34458
|
}).on(Ge.SELECT_EXTERNAL_NUMBER, (vA) => {
|
|
34449
34459
|
L(vA);
|
|
@@ -34469,9 +34479,9 @@ const Mk = {
|
|
|
34469
34479
|
}));
|
|
34470
34480
|
} catch (vA) {
|
|
34471
34481
|
const {
|
|
34472
|
-
msg:
|
|
34482
|
+
msg: ge
|
|
34473
34483
|
} = JSON.parse(vA.message);
|
|
34474
|
-
rt.warning(
|
|
34484
|
+
rt.warning(ge);
|
|
34475
34485
|
}
|
|
34476
34486
|
}, MA = async (aA, CA) => {
|
|
34477
34487
|
var vA;
|
|
@@ -34485,10 +34495,10 @@ const Mk = {
|
|
|
34485
34495
|
R(CA), p((/* @__PURE__ */ new Date()).getTime()), rt.success("切换状态成功");
|
|
34486
34496
|
}
|
|
34487
34497
|
}));
|
|
34488
|
-
} catch (
|
|
34498
|
+
} catch (ge) {
|
|
34489
34499
|
const {
|
|
34490
34500
|
msg: Le
|
|
34491
|
-
} = JSON.parse(
|
|
34501
|
+
} = JSON.parse(ge.message);
|
|
34492
34502
|
rt.warning(Le);
|
|
34493
34503
|
}
|
|
34494
34504
|
}, pA = async (aA) => {
|
|
@@ -34504,9 +34514,9 @@ const Mk = {
|
|
|
34504
34514
|
}));
|
|
34505
34515
|
} catch (vA) {
|
|
34506
34516
|
const {
|
|
34507
|
-
msg:
|
|
34517
|
+
msg: ge
|
|
34508
34518
|
} = JSON.parse(vA.message);
|
|
34509
|
-
rt.warning(
|
|
34519
|
+
rt.warning(ge);
|
|
34510
34520
|
}
|
|
34511
34521
|
}, OA = async () => {
|
|
34512
34522
|
var aA;
|
|
@@ -34528,9 +34538,9 @@ const Mk = {
|
|
|
34528
34538
|
await ((CA = h.current) == null ? void 0 : CA.call_api.makeCall(aA));
|
|
34529
34539
|
} catch (vA) {
|
|
34530
34540
|
const {
|
|
34531
|
-
msg:
|
|
34541
|
+
msg: ge
|
|
34532
34542
|
} = JSON.parse(vA.message);
|
|
34533
|
-
rt.warning(
|
|
34543
|
+
rt.warning(ge);
|
|
34534
34544
|
}
|
|
34535
34545
|
}, kA = async () => {
|
|
34536
34546
|
var aA;
|
|
@@ -34581,9 +34591,9 @@ const Mk = {
|
|
|
34581
34591
|
await ((CA = h.current) == null ? void 0 : CA.call_api.consultCall(aA));
|
|
34582
34592
|
} catch (vA) {
|
|
34583
34593
|
const {
|
|
34584
|
-
msg:
|
|
34594
|
+
msg: ge
|
|
34585
34595
|
} = JSON.parse(vA.message);
|
|
34586
|
-
rt.warning(
|
|
34596
|
+
rt.warning(ge);
|
|
34587
34597
|
}
|
|
34588
34598
|
}, re = async () => {
|
|
34589
34599
|
var aA;
|
|
@@ -34651,9 +34661,9 @@ const Mk = {
|
|
|
34651
34661
|
await ((CA = h.current) == null ? void 0 : CA.call_api.transferAgent(aA));
|
|
34652
34662
|
} catch (vA) {
|
|
34653
34663
|
const {
|
|
34654
|
-
msg:
|
|
34664
|
+
msg: ge
|
|
34655
34665
|
} = JSON.parse(vA.message);
|
|
34656
|
-
rt.warning(
|
|
34666
|
+
rt.warning(ge);
|
|
34657
34667
|
}
|
|
34658
34668
|
}, wA = async (aA) => {
|
|
34659
34669
|
var CA;
|
|
@@ -34661,9 +34671,9 @@ const Mk = {
|
|
|
34661
34671
|
await ((CA = h.current) == null ? void 0 : CA.call_api.transferOutline(aA));
|
|
34662
34672
|
} catch (vA) {
|
|
34663
34673
|
const {
|
|
34664
|
-
msg:
|
|
34674
|
+
msg: ge
|
|
34665
34675
|
} = JSON.parse(vA.message);
|
|
34666
|
-
rt.warning(
|
|
34676
|
+
rt.warning(ge);
|
|
34667
34677
|
}
|
|
34668
34678
|
};
|
|
34669
34679
|
_e(() => (gk({
|
|
@@ -34920,7 +34930,7 @@ const Mk = {
|
|
|
34920
34930
|
children: ae.map(({
|
|
34921
34931
|
name: aA,
|
|
34922
34932
|
icon: CA
|
|
34923
|
-
}) => /* @__PURE__ */ sA.jsx(
|
|
34933
|
+
}) => /* @__PURE__ */ sA.jsx(Za, {
|
|
34924
34934
|
title: wk[aA],
|
|
34925
34935
|
children: CA
|
|
34926
34936
|
}, aA))
|