@amateescu/portal-ui-components 0.0.6 → 0.0.7-beta0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -8
- package/dist/Button-BgbkoKxR.js +1314 -0
- package/dist/CircularProgress-BsBIRj7X.js +225 -0
- package/dist/Skeleton-BB4Y_Her.js +5898 -0
- package/dist/components/CustomButton/index.js +10 -1307
- package/dist/components/InfoModal/index.js +151 -150
- package/dist/components/KpiCard/index.js +22 -21
- package/dist/components/LoadingAnimation/index.js +37 -253
- package/dist/components/TotalDataGrid/index.d.ts +2 -0
- package/dist/components/TotalDataGrid/index.js +28059 -0
- package/dist/components/TotalDataGrid/types.d.ts +8 -0
- package/dist/components/TotalDataGrid/types.js +1 -0
- package/dist/{generateUtilityClasses-BjilB7Gl.js → generateUtilityClasses-sdN6xOVt.js} +564 -522
- package/dist/main.d.ts +1 -0
- package/dist/main.js +10 -8
- package/dist/toPropertyKey-DMiYgyB_.js +19113 -0
- package/dist/types/BusinessDayRange.d.ts +4 -0
- package/dist/types/BusinessDayRange.js +1 -0
- package/dist/types/Column.d.ts +11 -0
- package/dist/types/Column.js +1 -0
- package/dist/types/CultureStore.d.ts +35 -0
- package/dist/types/CultureStore.js +1 -0
- package/dist/utils/formatters.d.ts +10 -0
- package/dist/utils/formatters.js +1285 -0
- package/package.json +3 -1
- package/dist/Skeleton-DAEfQTU0.js +0 -25004
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx as _e, jsxs as xn } from "react/jsx-runtime";
|
|
2
2
|
import * as g from "react";
|
|
3
3
|
import P, { useContext as pe, useRef as te, forwardRef as ft, useState as st, useEffect as Ne, useMemo as Se, createRef as ho, Children as vo } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { X as po, Y as Tt, I as Ye, d as M, Z as gt, H as Ae, q as D, $ as yo, a0 as bo, h as lt, C as mt, g as K, m as Xt, R as Fe, k as ht, p as Co, s as xo, y as E, _ as Yt, a as Re, b as Zt, e as Ze, c as Ie, j as ue, D as Eo, i as nr, K as de, L as Je, a1 as Et, J as rr, Q as or, M as Y, a2 as ir, a3 as wo, U as So, E as Fo, a4 as Oo, u as $o, w as En, v as Po, a5 as wn, x as Sn, P as No, B as le, a6 as Ro, a7 as Io, a8 as ke, a9 as Oe, aa as we, A as Fn, t as Vo, T as Jt, ab as To, ac as ar, ad as _o, N as Mo, S as sr, G as ct, W as Lo, V as Ho, ae as Qt, af as Bo, ag as jo, ah as lr } from "../../Skeleton-BB4Y_Her.js";
|
|
5
|
+
import { _ as ne, R as Do } from "../../toPropertyKey-DMiYgyB_.js";
|
|
5
6
|
import { a as se } from "../../index-kNWC7pFF.js";
|
|
6
7
|
import { _ as cr, a as k } from "../../assertThisInitialized-BUtkG-md.js";
|
|
7
8
|
import '../../assets/index3.css';const Ao = (e) => /* @__PURE__ */ g.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ g.createElement("path", { d: "M13 16H12V12H11M12 8H12.01M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), zo = (e) => /* @__PURE__ */ g.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ g.createElement("path", { d: "M5 13L9 17L19 7", stroke: "#12121A", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), Wo = "_flexRowCenter_14ewh_1", qo = "_mr10_14ewh_7", Go = "_text18_14ewh_15", Uo = "_content_14ewh_19", Ge = {
|
|
@@ -155,12 +156,12 @@ function ce() {
|
|
|
155
156
|
try {
|
|
156
157
|
u({}, "");
|
|
157
158
|
} catch {
|
|
158
|
-
u = function(F, R,
|
|
159
|
-
return F[R] =
|
|
159
|
+
u = function(F, R, B) {
|
|
160
|
+
return F[R] = B;
|
|
160
161
|
};
|
|
161
162
|
}
|
|
162
163
|
function l(S, C, F, R) {
|
|
163
|
-
var
|
|
164
|
+
var B = C && C.prototype instanceof y ? C : y, V = Object.create(B.prototype), W = new L(R || []);
|
|
164
165
|
return o(V, "_invoke", {
|
|
165
166
|
value: _(S, F, W)
|
|
166
167
|
}), V;
|
|
@@ -201,8 +202,8 @@ function ce() {
|
|
|
201
202
|
});
|
|
202
203
|
}
|
|
203
204
|
function N(S, C) {
|
|
204
|
-
function F(
|
|
205
|
-
var z = d(S[
|
|
205
|
+
function F(B, V, W, U) {
|
|
206
|
+
var z = d(S[B], S, V);
|
|
206
207
|
if (z.type !== "throw") {
|
|
207
208
|
var J = z.arg, Q = J.value;
|
|
208
209
|
return Q && ne(Q) == "object" && r.call(Q, "__await") ? C.resolve(Q.__await).then(function(oe) {
|
|
@@ -231,16 +232,16 @@ function ce() {
|
|
|
231
232
|
}
|
|
232
233
|
function _(S, C, F) {
|
|
233
234
|
var R = m;
|
|
234
|
-
return function(
|
|
235
|
+
return function(B, V) {
|
|
235
236
|
if (R === p) throw Error("Generator is already running");
|
|
236
237
|
if (R === h) {
|
|
237
|
-
if (
|
|
238
|
+
if (B === "throw") throw V;
|
|
238
239
|
return {
|
|
239
240
|
value: e,
|
|
240
241
|
done: !0
|
|
241
242
|
};
|
|
242
243
|
}
|
|
243
|
-
for (F.method =
|
|
244
|
+
for (F.method = B, F.arg = V; ; ) {
|
|
244
245
|
var W = F.delegate;
|
|
245
246
|
if (W) {
|
|
246
247
|
var U = H(W, F);
|
|
@@ -270,9 +271,9 @@ function ce() {
|
|
|
270
271
|
function H(S, C) {
|
|
271
272
|
var F = C.method, R = S.iterator[F];
|
|
272
273
|
if (R === e) return C.delegate = null, F === "throw" && S.iterator.return && (C.method = "return", C.arg = e, H(S, C), C.method === "throw") || F !== "return" && (C.method = "throw", C.arg = new TypeError("The iterator does not provide a '" + F + "' method")), f;
|
|
273
|
-
var
|
|
274
|
-
if (
|
|
275
|
-
var V =
|
|
274
|
+
var B = d(R, S.iterator, C.arg);
|
|
275
|
+
if (B.type === "throw") return C.method = "throw", C.arg = B.arg, C.delegate = null, f;
|
|
276
|
+
var V = B.arg;
|
|
276
277
|
return V ? V.done ? (C[S.resultName] = V.value, C.next = S.nextLoc, C.method !== "return" && (C.method = "next", C.arg = e), C.delegate = null, f) : V : (C.method = "throw", C.arg = new TypeError("iterator result is not an object"), C.delegate = null, f);
|
|
277
278
|
}
|
|
278
279
|
function A(S) {
|
|
@@ -281,7 +282,7 @@ function ce() {
|
|
|
281
282
|
};
|
|
282
283
|
1 in S && (C.catchLoc = S[1]), 2 in S && (C.finallyLoc = S[2], C.afterLoc = S[3]), this.tryEntries.push(C);
|
|
283
284
|
}
|
|
284
|
-
function
|
|
285
|
+
function j(S) {
|
|
285
286
|
var C = S.completion || {};
|
|
286
287
|
C.type = "normal", delete C.arg, S.completion = C;
|
|
287
288
|
}
|
|
@@ -296,9 +297,9 @@ function ce() {
|
|
|
296
297
|
if (C) return C.call(S);
|
|
297
298
|
if (typeof S.next == "function") return S;
|
|
298
299
|
if (!isNaN(S.length)) {
|
|
299
|
-
var F = -1, R = function
|
|
300
|
-
for (; ++F < S.length; ) if (r.call(S, F)) return
|
|
301
|
-
return
|
|
300
|
+
var F = -1, R = function B() {
|
|
301
|
+
for (; ++F < S.length; ) if (r.call(S, F)) return B.value = S[F], B.done = !1, B;
|
|
302
|
+
return B.value = e, B.done = !0, B;
|
|
302
303
|
};
|
|
303
304
|
return R.next = R;
|
|
304
305
|
}
|
|
@@ -322,9 +323,9 @@ function ce() {
|
|
|
322
323
|
};
|
|
323
324
|
}, T(N.prototype), u(N.prototype, s, function() {
|
|
324
325
|
return this;
|
|
325
|
-
}), t.AsyncIterator = N, t.async = function(S, C, F, R,
|
|
326
|
-
|
|
327
|
-
var V = new N(l(S, C, F, R),
|
|
326
|
+
}), t.AsyncIterator = N, t.async = function(S, C, F, R, B) {
|
|
327
|
+
B === void 0 && (B = Promise);
|
|
328
|
+
var V = new N(l(S, C, F, R), B);
|
|
328
329
|
return t.isGeneratorFunction(C) ? V : V.next().then(function(W) {
|
|
329
330
|
return W.done ? W.value : V.next();
|
|
330
331
|
});
|
|
@@ -335,17 +336,17 @@ function ce() {
|
|
|
335
336
|
}), t.keys = function(S) {
|
|
336
337
|
var C = Object(S), F = [];
|
|
337
338
|
for (var R in C) F.push(R);
|
|
338
|
-
return F.reverse(), function
|
|
339
|
+
return F.reverse(), function B() {
|
|
339
340
|
for (; F.length; ) {
|
|
340
341
|
var V = F.pop();
|
|
341
|
-
if (V in C) return
|
|
342
|
+
if (V in C) return B.value = V, B.done = !1, B;
|
|
342
343
|
}
|
|
343
|
-
return
|
|
344
|
+
return B.done = !0, B;
|
|
344
345
|
};
|
|
345
346
|
}, t.values = G, L.prototype = {
|
|
346
347
|
constructor: L,
|
|
347
348
|
reset: function(C) {
|
|
348
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent = e, this.done = !1, this.delegate = null, this.method = "next", this.arg = e, this.tryEntries.forEach(
|
|
349
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = e, this.done = !1, this.delegate = null, this.method = "next", this.arg = e, this.tryEntries.forEach(j), !C) for (var F in this) F.charAt(0) === "t" && r.call(this, F) && !isNaN(+F.slice(1)) && (this[F] = e);
|
|
349
350
|
},
|
|
350
351
|
stop: function() {
|
|
351
352
|
this.done = !0;
|
|
@@ -359,8 +360,8 @@ function ce() {
|
|
|
359
360
|
function R(J, Q) {
|
|
360
361
|
return W.type = "throw", W.arg = C, F.next = J, Q && (F.method = "next", F.arg = e), !!Q;
|
|
361
362
|
}
|
|
362
|
-
for (var
|
|
363
|
-
var V = this.tryEntries[
|
|
363
|
+
for (var B = this.tryEntries.length - 1; B >= 0; --B) {
|
|
364
|
+
var V = this.tryEntries[B], W = V.completion;
|
|
364
365
|
if (V.tryLoc === "root") return R("end");
|
|
365
366
|
if (V.tryLoc <= this.prev) {
|
|
366
367
|
var U = r.call(V, "catchLoc"), z = r.call(V, "finallyLoc");
|
|
@@ -378,9 +379,9 @@ function ce() {
|
|
|
378
379
|
},
|
|
379
380
|
abrupt: function(C, F) {
|
|
380
381
|
for (var R = this.tryEntries.length - 1; R >= 0; --R) {
|
|
381
|
-
var
|
|
382
|
-
if (
|
|
383
|
-
var V =
|
|
382
|
+
var B = this.tryEntries[R];
|
|
383
|
+
if (B.tryLoc <= this.prev && r.call(B, "finallyLoc") && this.prev < B.finallyLoc) {
|
|
384
|
+
var V = B;
|
|
384
385
|
break;
|
|
385
386
|
}
|
|
386
387
|
}
|
|
@@ -395,17 +396,17 @@ function ce() {
|
|
|
395
396
|
finish: function(C) {
|
|
396
397
|
for (var F = this.tryEntries.length - 1; F >= 0; --F) {
|
|
397
398
|
var R = this.tryEntries[F];
|
|
398
|
-
if (R.finallyLoc === C) return this.complete(R.completion, R.afterLoc),
|
|
399
|
+
if (R.finallyLoc === C) return this.complete(R.completion, R.afterLoc), j(R), f;
|
|
399
400
|
}
|
|
400
401
|
},
|
|
401
402
|
catch: function(C) {
|
|
402
403
|
for (var F = this.tryEntries.length - 1; F >= 0; --F) {
|
|
403
404
|
var R = this.tryEntries[F];
|
|
404
405
|
if (R.tryLoc === C) {
|
|
405
|
-
var
|
|
406
|
-
if (
|
|
407
|
-
var V =
|
|
408
|
-
|
|
406
|
+
var B = R.completion;
|
|
407
|
+
if (B.type === "throw") {
|
|
408
|
+
var V = B.arg;
|
|
409
|
+
j(R);
|
|
409
410
|
}
|
|
410
411
|
return V;
|
|
411
412
|
}
|
|
@@ -444,7 +445,7 @@ function Ve(e) {
|
|
|
444
445
|
});
|
|
445
446
|
};
|
|
446
447
|
}
|
|
447
|
-
var Qe = M({},
|
|
448
|
+
var Qe = M({}, Do), vi = Qe.version, pi = Qe.render, yi = Qe.unmountComponentAtNode, vt;
|
|
448
449
|
try {
|
|
449
450
|
var bi = Number((vi || "").split(".")[0]);
|
|
450
451
|
bi >= 18 && (vt = Qe.createRoot);
|
|
@@ -541,7 +542,7 @@ const Si = (e) => {
|
|
|
541
542
|
}
|
|
542
543
|
}
|
|
543
544
|
};
|
|
544
|
-
}, Fi =
|
|
545
|
+
}, Fi = yo("Wave", (e) => [Si(e)]), Cr = `${bo}-wave-target`;
|
|
545
546
|
function wt(e) {
|
|
546
547
|
return e && e !== "#fff" && e !== "#ffffff" && e !== "rgb(255, 255, 255)" && e !== "rgba(255, 255, 255, 1)" && !/rgba\((?:\d*, ){3}0\)/.test(e) && // any transparent rgba color
|
|
547
548
|
e !== "transparent";
|
|
@@ -582,9 +583,9 @@ const $i = (e) => {
|
|
|
582
583
|
borderTopLeftRadius: _,
|
|
583
584
|
borderTopRightRadius: H,
|
|
584
585
|
borderBottomLeftRadius: A,
|
|
585
|
-
borderBottomRightRadius:
|
|
586
|
+
borderBottomRightRadius: j
|
|
586
587
|
} = I;
|
|
587
|
-
c([_, H,
|
|
588
|
+
c([_, H, j, A].map((L) => St(parseFloat(L))));
|
|
588
589
|
}
|
|
589
590
|
if (g.useEffect(() => {
|
|
590
591
|
if (n) {
|
|
@@ -673,7 +674,7 @@ const $i = (e) => {
|
|
|
673
674
|
if (!l || l.nodeType !== 1 || n)
|
|
674
675
|
return;
|
|
675
676
|
const d = (m) => {
|
|
676
|
-
!
|
|
677
|
+
!Co(m.target) || // No need wave
|
|
677
678
|
!l.getAttribute || l.getAttribute("disabled") || l.disabled || l.className.includes("disabled") || l.className.includes("-leave") || c(m);
|
|
678
679
|
};
|
|
679
680
|
return l.addEventListener("click", d, !0), () => {
|
|
@@ -681,7 +682,7 @@ const $i = (e) => {
|
|
|
681
682
|
};
|
|
682
683
|
}, [n]), !/* @__PURE__ */ P.isValidElement(t))
|
|
683
684
|
return t ?? null;
|
|
684
|
-
const u =
|
|
685
|
+
const u = xo(t) ? Xt(t.ref, i) : i;
|
|
685
686
|
return mr(t, {
|
|
686
687
|
ref: u
|
|
687
688
|
});
|
|
@@ -1248,13 +1249,13 @@ class pt {
|
|
|
1248
1249
|
this.r = n[0], this.g = n[1], this.b = n[2], this.a = n[3];
|
|
1249
1250
|
}
|
|
1250
1251
|
}
|
|
1251
|
-
var
|
|
1252
|
+
var Bi = ["b"], ji = ["v"], Pt = function(t) {
|
|
1252
1253
|
return Math.round(Number(t || 0));
|
|
1253
1254
|
}, Di = function(t) {
|
|
1254
1255
|
if (t instanceof pt)
|
|
1255
1256
|
return t;
|
|
1256
1257
|
if (t && ne(t) === "object" && "h" in t && "b" in t) {
|
|
1257
|
-
var n = t, r = n.b, o = Ze(n,
|
|
1258
|
+
var n = t, r = n.b, o = Ze(n, Bi);
|
|
1258
1259
|
return M(M({}, o), {}, {
|
|
1259
1260
|
v: r
|
|
1260
1261
|
});
|
|
@@ -1275,7 +1276,7 @@ var ji = ["b"], Bi = ["v"], Pt = function(t) {
|
|
|
1275
1276
|
}, {
|
|
1276
1277
|
key: "toHsb",
|
|
1277
1278
|
value: function() {
|
|
1278
|
-
var o = this.toHsv(), i = o.v, a = Ze(o,
|
|
1279
|
+
var o = this.toHsv(), i = o.v, a = Ze(o, ji);
|
|
1279
1280
|
return M(M({}, a), {}, {
|
|
1280
1281
|
b: i,
|
|
1281
1282
|
a: this.a
|
|
@@ -1355,13 +1356,13 @@ function Pr(e) {
|
|
|
1355
1356
|
};
|
|
1356
1357
|
}, []);
|
|
1357
1358
|
var h = function(w) {
|
|
1358
|
-
var O = qi(w), I = O.pageX, $ = O.pageY, T = n.current.getBoundingClientRect(), N = T.x, _ = T.y, H = T.width, A = T.height,
|
|
1359
|
+
var O = qi(w), I = O.pageX, $ = O.pageY, T = n.current.getBoundingClientRect(), N = T.x, _ = T.y, H = T.width, A = T.height, j = t.current.getBoundingClientRect(), L = j.width, G = j.height, S = L / 2, C = G / 2, F = Math.max(0, Math.min(I - N, H)) - S, R = Math.max(0, Math.min($ - _, A)) - C, B = {
|
|
1359
1360
|
x: F,
|
|
1360
1361
|
y: r === "x" ? d.y : R
|
|
1361
1362
|
};
|
|
1362
1363
|
if (L === 0 && G === 0 || L !== G)
|
|
1363
1364
|
return !1;
|
|
1364
|
-
o == null || o(
|
|
1365
|
+
o == null || o(B);
|
|
1365
1366
|
}, f = function(w) {
|
|
1366
1367
|
w.preventDefault(), h(w);
|
|
1367
1368
|
}, y = function(w) {
|
|
@@ -1443,7 +1444,7 @@ var Nr = function(t) {
|
|
|
1443
1444
|
}
|
|
1444
1445
|
})));
|
|
1445
1446
|
}, Ui = function(t, n) {
|
|
1446
|
-
var r =
|
|
1447
|
+
var r = Eo(t, {
|
|
1447
1448
|
value: n
|
|
1448
1449
|
}), o = ue(r, 2), i = o[0], a = o[1], s = Se(function() {
|
|
1449
1450
|
return He(i);
|
|
@@ -1553,8 +1554,8 @@ var Yi = [{
|
|
|
1553
1554
|
}], Zi = /* @__PURE__ */ ft(function(e, t) {
|
|
1554
1555
|
var n = e.value, r = e.defaultValue, o = e.prefixCls, i = o === void 0 ? Ai : o, a = e.onChange, s = e.onChangeComplete, c = e.className, u = e.style, l = e.panelRender, d = e.disabledAlpha, m = d === void 0 ? !1 : d, x = e.disabled, p = x === void 0 ? !1 : x, h = e.components, f = Xi(h), y = ue(f, 1), v = y[0], b = Ui(r || zi, n), w = ue(b, 2), O = w[0], I = w[1], $ = Se(function() {
|
|
1555
1556
|
return O.setA(1).toRgbString();
|
|
1556
|
-
}, [O]), T = function(R,
|
|
1557
|
-
n || I(R), a == null || a(R,
|
|
1557
|
+
}, [O]), T = function(R, B) {
|
|
1558
|
+
n || I(R), a == null || a(R, B);
|
|
1558
1559
|
}, N = function(R) {
|
|
1559
1560
|
return new xe(O.setHue(R));
|
|
1560
1561
|
}, _ = function(R) {
|
|
@@ -1569,7 +1570,7 @@ var Yi = [{
|
|
|
1569
1570
|
type: "alpha",
|
|
1570
1571
|
value: R
|
|
1571
1572
|
});
|
|
1572
|
-
},
|
|
1573
|
+
}, j = function(R) {
|
|
1573
1574
|
s && s(N(R));
|
|
1574
1575
|
}, L = function(R) {
|
|
1575
1576
|
s && s(_(R));
|
|
@@ -1592,7 +1593,7 @@ var Yi = [{
|
|
|
1592
1593
|
max: 359,
|
|
1593
1594
|
value: O.getHue(),
|
|
1594
1595
|
onChange: H,
|
|
1595
|
-
onChangeComplete:
|
|
1596
|
+
onChangeComplete: j
|
|
1596
1597
|
})), !m && /* @__PURE__ */ P.createElement(v, se({}, S, {
|
|
1597
1598
|
type: "alpha",
|
|
1598
1599
|
colors: [{
|
|
@@ -2070,7 +2071,7 @@ const aa = {
|
|
|
2070
2071
|
boxShadow: "none",
|
|
2071
2072
|
background: t
|
|
2072
2073
|
}, yt(e, n, r))
|
|
2073
|
-
}),
|
|
2074
|
+
}), je = (e, t, n, r, o) => ({
|
|
2074
2075
|
[`&${e.componentCls}-variant-${n}`]: Object.assign({
|
|
2075
2076
|
color: t,
|
|
2076
2077
|
boxShadow: "none"
|
|
@@ -2086,7 +2087,7 @@ const aa = {
|
|
|
2086
2087
|
background: e.colorFillSecondary
|
|
2087
2088
|
}, {
|
|
2088
2089
|
background: e.colorFill
|
|
2089
|
-
})),
|
|
2090
|
+
})), je(e, e.textTextColor, "link", {
|
|
2090
2091
|
color: e.colorLinkHover,
|
|
2091
2092
|
background: e.linkHoverBg
|
|
2092
2093
|
}, {
|
|
@@ -2106,7 +2107,7 @@ const aa = {
|
|
|
2106
2107
|
background: e.colorPrimaryBgHover
|
|
2107
2108
|
}, {
|
|
2108
2109
|
background: e.colorPrimaryBorder
|
|
2109
|
-
})),
|
|
2110
|
+
})), je(e, e.colorLink, "text", {
|
|
2110
2111
|
color: e.colorPrimaryTextHover,
|
|
2111
2112
|
background: e.colorPrimaryBg
|
|
2112
2113
|
}, {
|
|
@@ -2135,13 +2136,13 @@ const aa = {
|
|
|
2135
2136
|
background: e.colorErrorBgFilledHover
|
|
2136
2137
|
}, {
|
|
2137
2138
|
background: e.colorErrorBgActive
|
|
2138
|
-
})),
|
|
2139
|
+
})), je(e, e.colorError, "text", {
|
|
2139
2140
|
color: e.colorErrorHover,
|
|
2140
2141
|
background: e.colorErrorBg
|
|
2141
2142
|
}, {
|
|
2142
2143
|
color: e.colorErrorHover,
|
|
2143
2144
|
background: e.colorErrorBgActive
|
|
2144
|
-
})),
|
|
2145
|
+
})), je(e, e.colorError, "link", {
|
|
2145
2146
|
color: e.colorErrorHover
|
|
2146
2147
|
}, {
|
|
2147
2148
|
color: e.colorErrorActive
|
|
@@ -2168,7 +2169,7 @@ const aa = {
|
|
|
2168
2169
|
color: e.defaultActiveColor,
|
|
2169
2170
|
borderColor: e.defaultActiveBorderColor,
|
|
2170
2171
|
background: e.defaultActiveBg
|
|
2171
|
-
})),
|
|
2172
|
+
})), je(e, e.textTextColor, "text", {
|
|
2172
2173
|
color: e.textTextHoverColor,
|
|
2173
2174
|
background: e.textHoverBg
|
|
2174
2175
|
}, {
|
|
@@ -2180,7 +2181,7 @@ const aa = {
|
|
|
2180
2181
|
}, {
|
|
2181
2182
|
background: e.colorPrimaryActive,
|
|
2182
2183
|
color: e.primaryColor
|
|
2183
|
-
})),
|
|
2184
|
+
})), je(e, e.colorLink, "link", {
|
|
2184
2185
|
color: e.colorLinkHover,
|
|
2185
2186
|
background: e.linkHoverBg
|
|
2186
2187
|
}, {
|
|
@@ -2505,16 +2506,16 @@ const Ma = {
|
|
|
2505
2506
|
classNames: T,
|
|
2506
2507
|
style: N = {},
|
|
2507
2508
|
autoInsertSpace: _
|
|
2508
|
-
} = e, H = Ta(e, ["loading", "prefixCls", "color", "variant", "type", "danger", "shape", "size", "styles", "disabled", "className", "rootClassName", "children", "icon", "iconPosition", "ghost", "block", "htmlType", "classNames", "style", "autoInsertSpace"]), A = l || "default", [
|
|
2509
|
+
} = e, H = Ta(e, ["loading", "prefixCls", "color", "variant", "type", "danger", "shape", "size", "styles", "disabled", "className", "rootClassName", "children", "icon", "iconPosition", "ghost", "block", "htmlType", "classNames", "style", "autoInsertSpace"]), A = l || "default", [j, L] = Se(() => {
|
|
2509
2510
|
if (c && u)
|
|
2510
2511
|
return [c, u];
|
|
2511
2512
|
const ie = Ma[A] || [];
|
|
2512
2513
|
return d ? ["danger", ie[1]] : ie;
|
|
2513
|
-
}, [l, c, u, d]), S =
|
|
2514
|
+
}, [l, c, u, d]), S = j === "danger" ? "dangerous" : j, {
|
|
2514
2515
|
getPrefixCls: C,
|
|
2515
2516
|
direction: F,
|
|
2516
2517
|
button: R
|
|
2517
|
-
} = pe(Fe),
|
|
2518
|
+
} = pe(Fe), B = (n = _ ?? (R == null ? void 0 : R.autoInsertSpace)) !== null && n !== void 0 ? n : !0, V = C("btn", s), [W, U, z] = Sa(V), J = pe(wo), Q = h ?? J, oe = pe(wr), ye = Se(() => _a(a), [a]), [me, ot] = st(ye.loading), [We, qe] = st(!1), Ee = Xt(t, /* @__PURE__ */ ho()), Z = vo.count(v) === 1 && !b && !it(L);
|
|
2518
2519
|
Ne(() => {
|
|
2519
2520
|
let ie = null;
|
|
2520
2521
|
ye.delay > 0 ? ie = setTimeout(() => {
|
|
@@ -2525,7 +2526,7 @@ const Ma = {
|
|
|
2525
2526
|
}
|
|
2526
2527
|
return be;
|
|
2527
2528
|
}, [ye]), Ne(() => {
|
|
2528
|
-
if (!Ee || !Ee.current || !
|
|
2529
|
+
if (!Ee || !Ee.current || !B)
|
|
2529
2530
|
return;
|
|
2530
2531
|
const ie = Ee.current.textContent;
|
|
2531
2532
|
Z && Lt(ie) ? We || qe(!0) : We && qe(!1);
|
|
@@ -2549,10 +2550,10 @@ const Ma = {
|
|
|
2549
2550
|
large: "lg",
|
|
2550
2551
|
small: "sm",
|
|
2551
2552
|
middle: void 0
|
|
2552
|
-
}, hn =
|
|
2553
|
+
}, hn = So((ie) => {
|
|
2553
2554
|
var be, xt;
|
|
2554
2555
|
return (xt = (be = x ?? co) !== null && be !== void 0 ? be : oe) !== null && xt !== void 0 ? xt : ie;
|
|
2555
|
-
}), vn = hn && (r = uo[hn]) !== null && r !== void 0 ? r : "", fo = me ? "loading" : b, bt =
|
|
2556
|
+
}), vn = hn && (r = uo[hn]) !== null && r !== void 0 ? r : "", fo = me ? "loading" : b, bt = Fo(H, ["navigate"]), pn = K(V, U, z, {
|
|
2556
2557
|
[`${V}-${m}`]: m !== "default" && m,
|
|
2557
2558
|
// line(253 - 254): Compatible with versions earlier than 5.21.0
|
|
2558
2559
|
[`${V}-${A}`]: A,
|
|
@@ -2563,7 +2564,7 @@ const Ma = {
|
|
|
2563
2564
|
[`${V}-icon-only`]: !v && v !== 0 && !!fo,
|
|
2564
2565
|
[`${V}-background-ghost`]: O && !it(L),
|
|
2565
2566
|
[`${V}-loading`]: me,
|
|
2566
|
-
[`${V}-two-chinese-chars`]: We &&
|
|
2567
|
+
[`${V}-two-chinese-chars`]: We && B && !me,
|
|
2567
2568
|
[`${V}-block`]: I,
|
|
2568
2569
|
[`${V}-rtl`]: F === "rtl",
|
|
2569
2570
|
[`${V}-icon-end`]: w === "end"
|
|
@@ -2575,7 +2576,7 @@ const Ma = {
|
|
|
2575
2576
|
existIcon: !!b,
|
|
2576
2577
|
prefixCls: V,
|
|
2577
2578
|
loading: me
|
|
2578
|
-
}), Cn = v || v === 0 ? Mi(v, Z &&
|
|
2579
|
+
}), Cn = v || v === 0 ? Mi(v, Z && B) : null;
|
|
2579
2580
|
if (bt.href !== void 0)
|
|
2580
2581
|
return W(/* @__PURE__ */ P.createElement("a", Object.assign({}, bt, {
|
|
2581
2582
|
className: K(pn, {
|
|
@@ -2621,7 +2622,7 @@ const Mr = (e) => {
|
|
|
2621
2622
|
isSilent: c,
|
|
2622
2623
|
quitOnNullishReturnValue: u,
|
|
2623
2624
|
actionFn: l
|
|
2624
|
-
} = e, d = g.useRef(!1), m = g.useRef(null), [x, p] =
|
|
2625
|
+
} = e, d = g.useRef(!1), m = g.useRef(null), [x, p] = Oo(!1), h = function() {
|
|
2625
2626
|
i == null || i.apply(void 0, arguments);
|
|
2626
2627
|
};
|
|
2627
2628
|
g.useEffect(() => {
|
|
@@ -2736,14 +2737,14 @@ function Ha(e) {
|
|
|
2736
2737
|
}, r = e.ownerDocument, o = r.defaultView || r.parentWindow;
|
|
2737
2738
|
return n.left += Hn(o), n.top += Hn(o, !0), n;
|
|
2738
2739
|
}
|
|
2739
|
-
const
|
|
2740
|
+
const Ba = /* @__PURE__ */ g.memo(function(e) {
|
|
2740
2741
|
var t = e.children;
|
|
2741
2742
|
return t;
|
|
2742
2743
|
}, function(e, t) {
|
|
2743
2744
|
var n = t.shouldUpdate;
|
|
2744
2745
|
return !n;
|
|
2745
2746
|
});
|
|
2746
|
-
var
|
|
2747
|
+
var ja = {
|
|
2747
2748
|
width: 0,
|
|
2748
2749
|
height: 0,
|
|
2749
2750
|
overflow: "hidden",
|
|
@@ -2751,7 +2752,7 @@ var Ba = {
|
|
|
2751
2752
|
}, Da = {
|
|
2752
2753
|
outline: "none"
|
|
2753
2754
|
}, un = /* @__PURE__ */ P.forwardRef(function(e, t) {
|
|
2754
|
-
var n = e.prefixCls, r = e.className, o = e.style, i = e.title, a = e.ariaId, s = e.footer, c = e.closable, u = e.closeIcon, l = e.onClose, d = e.children, m = e.bodyStyle, x = e.bodyProps, p = e.modalRender, h = e.onMouseDown, f = e.onMouseUp, y = e.holderRef, v = e.visible, b = e.forceRender, w = e.width, O = e.height, I = e.classNames, $ = e.styles, T = P.useContext(Hr), N = T.panel, _ =
|
|
2755
|
+
var n = e.prefixCls, r = e.className, o = e.style, i = e.title, a = e.ariaId, s = e.footer, c = e.closable, u = e.closeIcon, l = e.onClose, d = e.children, m = e.bodyStyle, x = e.bodyProps, p = e.modalRender, h = e.onMouseDown, f = e.onMouseUp, y = e.holderRef, v = e.visible, b = e.forceRender, w = e.width, O = e.height, I = e.classNames, $ = e.styles, T = P.useContext(Hr), N = T.panel, _ = $o(y, N), H = te(), A = te();
|
|
2755
2756
|
P.useImperativeHandle(t, function() {
|
|
2756
2757
|
return {
|
|
2757
2758
|
focus: function() {
|
|
@@ -2770,8 +2771,8 @@ var Ba = {
|
|
|
2770
2771
|
}
|
|
2771
2772
|
};
|
|
2772
2773
|
});
|
|
2773
|
-
var
|
|
2774
|
-
w !== void 0 && (
|
|
2774
|
+
var j = {};
|
|
2775
|
+
w !== void 0 && (j.width = w), O !== void 0 && (j.height = O);
|
|
2775
2776
|
var L = s ? /* @__PURE__ */ P.createElement("div", {
|
|
2776
2777
|
className: K("".concat(n, "-footer"), I == null ? void 0 : I.footer),
|
|
2777
2778
|
style: M({}, $ == null ? void 0 : $.footer)
|
|
@@ -2794,7 +2795,7 @@ var Ba = {
|
|
|
2794
2795
|
}, C, {
|
|
2795
2796
|
className: "".concat(n, "-close"),
|
|
2796
2797
|
disabled: F
|
|
2797
|
-
}), S.closeIcon) : null,
|
|
2798
|
+
}), S.closeIcon) : null, B = /* @__PURE__ */ P.createElement("div", {
|
|
2798
2799
|
className: K("".concat(n, "-content"), I == null ? void 0 : I.content),
|
|
2799
2800
|
style: $ == null ? void 0 : $.content
|
|
2800
2801
|
}, R, G, /* @__PURE__ */ P.createElement("div", se({
|
|
@@ -2807,7 +2808,7 @@ var Ba = {
|
|
|
2807
2808
|
"aria-labelledby": i ? a : null,
|
|
2808
2809
|
"aria-modal": "true",
|
|
2809
2810
|
ref: _,
|
|
2810
|
-
style: M(M({}, o),
|
|
2811
|
+
style: M(M({}, o), j),
|
|
2811
2812
|
className: K(n, r),
|
|
2812
2813
|
onMouseDown: h,
|
|
2813
2814
|
onMouseUp: f
|
|
@@ -2815,16 +2816,16 @@ var Ba = {
|
|
|
2815
2816
|
ref: H,
|
|
2816
2817
|
tabIndex: 0,
|
|
2817
2818
|
style: Da
|
|
2818
|
-
}, /* @__PURE__ */ P.createElement(
|
|
2819
|
+
}, /* @__PURE__ */ P.createElement(Ba, {
|
|
2819
2820
|
shouldUpdate: v || b
|
|
2820
|
-
}, p ? p(
|
|
2821
|
+
}, p ? p(B) : B)), /* @__PURE__ */ P.createElement("div", {
|
|
2821
2822
|
tabIndex: 0,
|
|
2822
2823
|
ref: A,
|
|
2823
|
-
style:
|
|
2824
|
+
style: ja
|
|
2824
2825
|
}));
|
|
2825
2826
|
});
|
|
2826
2827
|
process.env.NODE_ENV !== "production" && (un.displayName = "Panel");
|
|
2827
|
-
var
|
|
2828
|
+
var Br = /* @__PURE__ */ g.forwardRef(function(e, t) {
|
|
2828
2829
|
var n = e.prefixCls, r = e.title, o = e.style, i = e.className, a = e.visible, s = e.forceRender, c = e.destroyOnClose, u = e.motionName, l = e.ariaId, d = e.onVisibleChanged, m = e.mousePosition, x = te(), p = g.useState(), h = ue(p, 2), f = h[0], y = h[1], v = {};
|
|
2829
2830
|
f && (v.transformOrigin = f);
|
|
2830
2831
|
function b() {
|
|
@@ -2853,7 +2854,7 @@ var jr = /* @__PURE__ */ g.forwardRef(function(e, t) {
|
|
|
2853
2854
|
}));
|
|
2854
2855
|
});
|
|
2855
2856
|
});
|
|
2856
|
-
|
|
2857
|
+
Br.displayName = "Content";
|
|
2857
2858
|
var Aa = function(t) {
|
|
2858
2859
|
var n = t.prefixCls, r = t.style, o = t.visible, i = t.maskProps, a = t.motionName, s = t.className;
|
|
2859
2860
|
return /* @__PURE__ */ g.createElement(mt, {
|
|
@@ -2870,11 +2871,11 @@ var Aa = function(t) {
|
|
|
2870
2871
|
}, i));
|
|
2871
2872
|
});
|
|
2872
2873
|
}, za = function(t) {
|
|
2873
|
-
var n = t.prefixCls, r = n === void 0 ? "rc-dialog" : n, o = t.zIndex, i = t.visible, a = i === void 0 ? !1 : i, s = t.keyboard, c = s === void 0 ? !0 : s, u = t.focusTriggerAfterClose, l = u === void 0 ? !0 : u, d = t.wrapStyle, m = t.wrapClassName, x = t.wrapProps, p = t.onClose, h = t.afterOpenChange, f = t.afterClose, y = t.transitionName, v = t.animation, b = t.closable, w = b === void 0 ? !0 : b, O = t.mask, I = O === void 0 ? !0 : O, $ = t.maskTransitionName, T = t.maskAnimation, N = t.maskClosable, _ = N === void 0 ? !0 : N, H = t.maskStyle, A = t.maskProps,
|
|
2874
|
+
var n = t.prefixCls, r = n === void 0 ? "rc-dialog" : n, o = t.zIndex, i = t.visible, a = i === void 0 ? !1 : i, s = t.keyboard, c = s === void 0 ? !0 : s, u = t.focusTriggerAfterClose, l = u === void 0 ? !0 : u, d = t.wrapStyle, m = t.wrapClassName, x = t.wrapProps, p = t.onClose, h = t.afterOpenChange, f = t.afterClose, y = t.transitionName, v = t.animation, b = t.closable, w = b === void 0 ? !0 : b, O = t.mask, I = O === void 0 ? !0 : O, $ = t.maskTransitionName, T = t.maskAnimation, N = t.maskClosable, _ = N === void 0 ? !0 : N, H = t.maskStyle, A = t.maskProps, j = t.rootClassName, L = t.classNames, G = t.styles;
|
|
2874
2875
|
process.env.NODE_ENV !== "production" && (["wrapStyle", "bodyStyle", "maskStyle"].forEach(function(Z) {
|
|
2875
2876
|
En(!(Z in t), "".concat(Z, " is deprecated, please use styles instead."));
|
|
2876
2877
|
}), "wrapClassName" in t && En(!1, "wrapClassName is deprecated, please use classNames instead."));
|
|
2877
|
-
var S = te(), C = te(), F = te(), R = g.useState(a),
|
|
2878
|
+
var S = te(), C = te(), F = te(), R = g.useState(a), B = ue(R, 2), V = B[0], W = B[1], U = Po();
|
|
2878
2879
|
function z() {
|
|
2879
2880
|
wn(C.current, document.activeElement) || (S.current = document.activeElement);
|
|
2880
2881
|
}
|
|
@@ -2934,7 +2935,7 @@ var Aa = function(t) {
|
|
|
2934
2935
|
display: V ? null : "none"
|
|
2935
2936
|
});
|
|
2936
2937
|
return /* @__PURE__ */ g.createElement("div", se({
|
|
2937
|
-
className: K("".concat(r, "-root"),
|
|
2938
|
+
className: K("".concat(r, "-root"), j)
|
|
2938
2939
|
}, tn(t, {
|
|
2939
2940
|
data: !0
|
|
2940
2941
|
})), /* @__PURE__ */ g.createElement(Aa, {
|
|
@@ -2953,7 +2954,7 @@ var Aa = function(t) {
|
|
|
2953
2954
|
ref: C,
|
|
2954
2955
|
onClick: qe,
|
|
2955
2956
|
style: Ee
|
|
2956
|
-
}, x), /* @__PURE__ */ g.createElement(
|
|
2957
|
+
}, x), /* @__PURE__ */ g.createElement(Br, se({}, t, {
|
|
2957
2958
|
onMouseDown: ot,
|
|
2958
2959
|
onMouseUp: We,
|
|
2959
2960
|
ref: F,
|
|
@@ -2965,7 +2966,7 @@ var Aa = function(t) {
|
|
|
2965
2966
|
onVisibleChanged: Q,
|
|
2966
2967
|
motionName: Ln(r, y, v)
|
|
2967
2968
|
}))));
|
|
2968
|
-
},
|
|
2969
|
+
}, jr = function(t) {
|
|
2969
2970
|
var n = t.visible, r = t.getContainer, o = t.forceRender, i = t.destroyOnClose, a = i === void 0 ? !1 : i, s = t.afterClose, c = t.panelRef, u = g.useState(n), l = ue(u, 2), d = l[0], m = l[1], x = g.useMemo(function() {
|
|
2970
2971
|
return {
|
|
2971
2972
|
panel: c
|
|
@@ -2975,7 +2976,7 @@ var Aa = function(t) {
|
|
|
2975
2976
|
n && m(!0);
|
|
2976
2977
|
}, [n]), !o && a && !d ? null : /* @__PURE__ */ g.createElement(Hr.Provider, {
|
|
2977
2978
|
value: x
|
|
2978
|
-
}, /* @__PURE__ */ g.createElement(
|
|
2979
|
+
}, /* @__PURE__ */ g.createElement(No, {
|
|
2979
2980
|
open: n || o || d,
|
|
2980
2981
|
autoDestroy: !1,
|
|
2981
2982
|
getContainer: r,
|
|
@@ -2987,7 +2988,7 @@ var Aa = function(t) {
|
|
|
2987
2988
|
}
|
|
2988
2989
|
}))));
|
|
2989
2990
|
};
|
|
2990
|
-
|
|
2991
|
+
jr.displayName = "Dialog";
|
|
2991
2992
|
var $e = "RC_FORM_INTERNAL_HOOKS", X = function() {
|
|
2992
2993
|
le(!1, "Can not find FormContext. Please make sure you wrap Field under Form.");
|
|
2993
2994
|
}, De = /* @__PURE__ */ g.createContext({
|
|
@@ -3029,7 +3030,7 @@ function Ht(e) {
|
|
|
3029
3030
|
function Wa(e) {
|
|
3030
3031
|
return e && !!e._init;
|
|
3031
3032
|
}
|
|
3032
|
-
function
|
|
3033
|
+
function Bt() {
|
|
3033
3034
|
return {
|
|
3034
3035
|
default: "Validation error on field %s",
|
|
3035
3036
|
required: "%s is required",
|
|
@@ -3082,7 +3083,7 @@ function jt() {
|
|
|
3082
3083
|
}
|
|
3083
3084
|
};
|
|
3084
3085
|
}
|
|
3085
|
-
var
|
|
3086
|
+
var jt = Bt();
|
|
3086
3087
|
function qa(e) {
|
|
3087
3088
|
try {
|
|
3088
3089
|
return Function.toString.call(e).indexOf("[native code]") !== -1;
|
|
@@ -3091,7 +3092,7 @@ function qa(e) {
|
|
|
3091
3092
|
}
|
|
3092
3093
|
}
|
|
3093
3094
|
function Ga(e, t, n) {
|
|
3094
|
-
if (
|
|
3095
|
+
if (Ro()) return Reflect.construct.apply(null, arguments);
|
|
3095
3096
|
var r = [null];
|
|
3096
3097
|
r.push.apply(r, t);
|
|
3097
3098
|
var o = new (e.bind.apply(e, r))();
|
|
@@ -3107,7 +3108,7 @@ function Dt(e) {
|
|
|
3107
3108
|
t.set(r, o);
|
|
3108
3109
|
}
|
|
3109
3110
|
function o() {
|
|
3110
|
-
return Ga(r, arguments,
|
|
3111
|
+
return Ga(r, arguments, Io(this).constructor);
|
|
3111
3112
|
}
|
|
3112
3113
|
return o.prototype = Object.create(r.prototype, {
|
|
3113
3114
|
constructor: {
|
|
@@ -3181,7 +3182,7 @@ function Ka(e, t, n) {
|
|
|
3181
3182
|
t(s, a);
|
|
3182
3183
|
});
|
|
3183
3184
|
}
|
|
3184
|
-
function
|
|
3185
|
+
function Bn(e, t, n) {
|
|
3185
3186
|
var r = 0, o = e.length;
|
|
3186
3187
|
function i(a) {
|
|
3187
3188
|
if (a && a.length) {
|
|
@@ -3199,7 +3200,7 @@ function Xa(e) {
|
|
|
3199
3200
|
t.push.apply(t, D(e[n] || []));
|
|
3200
3201
|
}), t;
|
|
3201
3202
|
}
|
|
3202
|
-
var
|
|
3203
|
+
var jn = /* @__PURE__ */ function(e) {
|
|
3203
3204
|
Yt(n, e);
|
|
3204
3205
|
var t = Zt(n);
|
|
3205
3206
|
function n(r, o) {
|
|
@@ -3212,9 +3213,9 @@ function Ya(e, t, n, r, o) {
|
|
|
3212
3213
|
if (t.first) {
|
|
3213
3214
|
var i = new Promise(function(m, x) {
|
|
3214
3215
|
var p = function(y) {
|
|
3215
|
-
return r(y), y.length ? x(new
|
|
3216
|
+
return r(y), y.length ? x(new jn(y, At(y))) : m(o);
|
|
3216
3217
|
}, h = Xa(e);
|
|
3217
|
-
|
|
3218
|
+
Bn(h, n, p);
|
|
3218
3219
|
});
|
|
3219
3220
|
return i.catch(function(m) {
|
|
3220
3221
|
return m;
|
|
@@ -3223,11 +3224,11 @@ function Ya(e, t, n, r, o) {
|
|
|
3223
3224
|
var a = t.firstFields === !0 ? Object.keys(e) : t.firstFields || [], s = Object.keys(e), c = s.length, u = 0, l = [], d = new Promise(function(m, x) {
|
|
3224
3225
|
var p = function(f) {
|
|
3225
3226
|
if (l.push.apply(l, f), u++, u === c)
|
|
3226
|
-
return r(l), l.length ? x(new
|
|
3227
|
+
return r(l), l.length ? x(new jn(l, At(l))) : m(o);
|
|
3227
3228
|
};
|
|
3228
3229
|
s.length || (r(l), m(o)), s.forEach(function(h) {
|
|
3229
3230
|
var f = e[h];
|
|
3230
|
-
a.indexOf(h) !== -1 ?
|
|
3231
|
+
a.indexOf(h) !== -1 ? Bn(f, n, p) : Ka(f, n, p);
|
|
3231
3232
|
});
|
|
3232
3233
|
});
|
|
3233
3234
|
return d.catch(function(m) {
|
|
@@ -3523,7 +3524,7 @@ const Xe = {
|
|
|
3523
3524
|
};
|
|
3524
3525
|
var tt = /* @__PURE__ */ function() {
|
|
3525
3526
|
function e(t) {
|
|
3526
|
-
Re(this, e), E(this, "rules", null), E(this, "_messages",
|
|
3527
|
+
Re(this, e), E(this, "rules", null), E(this, "_messages", jt), this.define(t);
|
|
3527
3528
|
}
|
|
3528
3529
|
return Ie(e, [{
|
|
3529
3530
|
key: "define",
|
|
@@ -3541,7 +3542,7 @@ var tt = /* @__PURE__ */ function() {
|
|
|
3541
3542
|
}, {
|
|
3542
3543
|
key: "messages",
|
|
3543
3544
|
value: function(n) {
|
|
3544
|
-
return n && (this._messages = An(
|
|
3545
|
+
return n && (this._messages = An(Bt(), n)), this._messages;
|
|
3545
3546
|
}
|
|
3546
3547
|
}, {
|
|
3547
3548
|
key: "validate",
|
|
@@ -3565,7 +3566,7 @@ var tt = /* @__PURE__ */ function() {
|
|
|
3565
3566
|
}
|
|
3566
3567
|
if (s.messages) {
|
|
3567
3568
|
var l = this.messages();
|
|
3568
|
-
l ===
|
|
3569
|
+
l === jt && (l = Bt()), An(l, s.messages), s.messages = l;
|
|
3569
3570
|
} else
|
|
3570
3571
|
s.messages = this.messages();
|
|
3571
3572
|
var d = {}, m = s.keys || Object.keys(this.rules);
|
|
@@ -3605,18 +3606,18 @@ var tt = /* @__PURE__ */ function() {
|
|
|
3605
3606
|
if (f.required && !p.value)
|
|
3606
3607
|
return f.message !== void 0 ? N = [].concat(f.message).map(Dn(f, a)) : s.error && (N = [s.error(f, ge(s.messages.required, f.field))]), h(N);
|
|
3607
3608
|
var _ = {};
|
|
3608
|
-
f.defaultField && Object.keys(p.value).map(function(
|
|
3609
|
-
_[
|
|
3609
|
+
f.defaultField && Object.keys(p.value).map(function(j) {
|
|
3610
|
+
_[j] = f.defaultField;
|
|
3610
3611
|
}), _ = M(M({}, _), p.rule.fields);
|
|
3611
3612
|
var H = {};
|
|
3612
|
-
Object.keys(_).forEach(function(
|
|
3613
|
-
var L = _[
|
|
3614
|
-
H[
|
|
3613
|
+
Object.keys(_).forEach(function(j) {
|
|
3614
|
+
var L = _[j], G = Array.isArray(L) ? L : [L];
|
|
3615
|
+
H[j] = G.map(v.bind(null, j));
|
|
3615
3616
|
});
|
|
3616
3617
|
var A = new e(H);
|
|
3617
|
-
A.messages(s.messages), p.rule.options && (p.rule.options.messages = s.messages, p.rule.options.error = s.error), A.validate(p.value, p.rule.options || s, function(
|
|
3618
|
+
A.messages(s.messages), p.rule.options && (p.rule.options.messages = s.messages, p.rule.options.error = s.error), A.validate(p.value, p.rule.options || s, function(j) {
|
|
3618
3619
|
var L = [];
|
|
3619
|
-
N && N.length && L.push.apply(L, D(N)),
|
|
3620
|
+
N && N.length && L.push.apply(L, D(N)), j && j.length && L.push.apply(L, D(j)), h(L.length ? L : null);
|
|
3620
3621
|
});
|
|
3621
3622
|
}
|
|
3622
3623
|
}
|
|
@@ -3666,7 +3667,7 @@ E(tt, "register", function(t, n) {
|
|
|
3666
3667
|
Xe[t] = n;
|
|
3667
3668
|
});
|
|
3668
3669
|
E(tt, "warning", Dr);
|
|
3669
|
-
E(tt, "messages",
|
|
3670
|
+
E(tt, "messages", jt);
|
|
3670
3671
|
E(tt, "validators", Xe);
|
|
3671
3672
|
var fe = "'${name}' is not a valid ${type}", zr = {
|
|
3672
3673
|
default: "Validation error on field '${name}'",
|
|
@@ -3910,7 +3911,7 @@ function Gn(e, t) {
|
|
|
3910
3911
|
n = we(n, r, o);
|
|
3911
3912
|
}), n;
|
|
3912
3913
|
}
|
|
3913
|
-
function
|
|
3914
|
+
function Be(e, t) {
|
|
3914
3915
|
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
3915
3916
|
return e && e.some(function(r) {
|
|
3916
3917
|
return Wr(t, r, n);
|
|
@@ -3985,7 +3986,7 @@ var dn = /* @__PURE__ */ function(e) {
|
|
|
3985
3986
|
} else
|
|
3986
3987
|
o.metaCache = null;
|
|
3987
3988
|
}), E(k(o), "onStoreChange", function(c, u, l) {
|
|
3988
|
-
var d = o.props, m = d.shouldUpdate, x = d.dependencies, p = x === void 0 ? [] : x, h = d.onReset, f = l.store, y = o.getNamePath(), v = o.getValue(c), b = o.getValue(f), w = u &&
|
|
3989
|
+
var d = o.props, m = d.shouldUpdate, x = d.dependencies, p = x === void 0 ? [] : x, h = d.onReset, f = l.store, y = o.getNamePath(), v = o.getValue(c), b = o.getValue(f), w = u && Be(u, y);
|
|
3989
3990
|
switch (l.type === "valueUpdate" && l.source === "external" && !Fn(v, b) && (o.touched = !0, o.dirty = !0, o.validatePromise = null, o.errors = he, o.warnings = he, o.triggerMetaEvent()), l.type) {
|
|
3990
3991
|
case "reset":
|
|
3991
3992
|
if (!u || w) {
|
|
@@ -4005,7 +4006,7 @@ var dn = /* @__PURE__ */ function(e) {
|
|
|
4005
4006
|
if (w) {
|
|
4006
4007
|
"touched" in O && (o.touched = O.touched), "validating" in O && !("originRCField" in O) && (o.validatePromise = O.validating ? Promise.resolve([]) : null), "errors" in O && (o.errors = O.errors || he), "warnings" in O && (o.warnings = O.warnings || he), o.dirty = !0, o.triggerMetaEvent(), o.reRender();
|
|
4007
4008
|
return;
|
|
4008
|
-
} else if ("value" in O &&
|
|
4009
|
+
} else if ("value" in O && Be(u, y, !0)) {
|
|
4009
4010
|
o.reRender();
|
|
4010
4011
|
return;
|
|
4011
4012
|
}
|
|
@@ -4018,7 +4019,7 @@ var dn = /* @__PURE__ */ function(e) {
|
|
|
4018
4019
|
case "dependenciesUpdate": {
|
|
4019
4020
|
var I = p.map(ee);
|
|
4020
4021
|
if (I.some(function($) {
|
|
4021
|
-
return
|
|
4022
|
+
return Be(l.relatedFields, $);
|
|
4022
4023
|
})) {
|
|
4023
4024
|
o.reRender();
|
|
4024
4025
|
return;
|
|
@@ -4074,11 +4075,11 @@ var dn = /* @__PURE__ */ function(e) {
|
|
|
4074
4075
|
if (o.validatePromise === h) {
|
|
4075
4076
|
var H;
|
|
4076
4077
|
o.validatePromise = null;
|
|
4077
|
-
var A = [],
|
|
4078
|
+
var A = [], j = [];
|
|
4078
4079
|
(H = _.forEach) === null || H === void 0 || H.call(_, function(L) {
|
|
4079
4080
|
var G = L.rule.warningOnly, S = L.errors, C = S === void 0 ? he : S;
|
|
4080
|
-
G ?
|
|
4081
|
-
}), o.errors = A, o.warnings =
|
|
4081
|
+
G ? j.push.apply(j, D(C)) : A.push.apply(A, D(C));
|
|
4082
|
+
}), o.errors = A, o.warnings = j, o.triggerMetaEvent(), o.reRender();
|
|
4082
4083
|
}
|
|
4083
4084
|
}), N.abrupt("return", $);
|
|
4084
4085
|
case 13:
|
|
@@ -4125,7 +4126,7 @@ var dn = /* @__PURE__ */ function(e) {
|
|
|
4125
4126
|
isFunction: !0
|
|
4126
4127
|
});
|
|
4127
4128
|
}
|
|
4128
|
-
var l =
|
|
4129
|
+
var l = Vo(c);
|
|
4129
4130
|
return l.length !== 1 || !/* @__PURE__ */ g.isValidElement(l[0]) ? {
|
|
4130
4131
|
child: l,
|
|
4131
4132
|
isFunction: !1
|
|
@@ -4154,8 +4155,8 @@ var dn = /* @__PURE__ */ function(e) {
|
|
|
4154
4155
|
value: L
|
|
4155
4156
|
}), _ && _.apply(void 0, S);
|
|
4156
4157
|
};
|
|
4157
|
-
var
|
|
4158
|
-
return
|
|
4158
|
+
var j = Ht(v || []);
|
|
4159
|
+
return j.forEach(function(L) {
|
|
4159
4160
|
var G = A[L];
|
|
4160
4161
|
A[L] = function() {
|
|
4161
4162
|
G && G.apply(void 0, arguments);
|
|
@@ -4266,10 +4267,10 @@ function $s(e) {
|
|
|
4266
4267
|
},
|
|
4267
4268
|
remove: function(N) {
|
|
4268
4269
|
var _ = O(), H = new Set(Array.isArray(N) ? N : [N]);
|
|
4269
|
-
H.size <= 0 || (l.keys = l.keys.filter(function(A,
|
|
4270
|
-
return !H.has(
|
|
4271
|
-
}), b(_.filter(function(A,
|
|
4272
|
-
return !H.has(
|
|
4270
|
+
H.size <= 0 || (l.keys = l.keys.filter(function(A, j) {
|
|
4271
|
+
return !H.has(j);
|
|
4272
|
+
}), b(_.filter(function(A, j) {
|
|
4273
|
+
return !H.has(j);
|
|
4273
4274
|
})));
|
|
4274
4275
|
},
|
|
4275
4276
|
move: function(N, _) {
|
|
@@ -4555,7 +4556,7 @@ var Le = /* @__PURE__ */ function() {
|
|
|
4555
4556
|
var i = r.map(ee);
|
|
4556
4557
|
return o.some(function(a) {
|
|
4557
4558
|
var s = a.getNamePath();
|
|
4558
|
-
return
|
|
4559
|
+
return Be(i, s) && a.isFieldValidating();
|
|
4559
4560
|
});
|
|
4560
4561
|
}), E(this, "isFieldValidating", function(r) {
|
|
4561
4562
|
return n.warningUnhooked(), n.isFieldsValidating([r]);
|
|
@@ -4778,7 +4779,7 @@ var Le = /* @__PURE__ */ function() {
|
|
|
4778
4779
|
}
|
|
4779
4780
|
var c = a.filter(function(u) {
|
|
4780
4781
|
var l = u.name;
|
|
4781
|
-
return
|
|
4782
|
+
return Be(r, l);
|
|
4782
4783
|
});
|
|
4783
4784
|
c.length && i(c, a);
|
|
4784
4785
|
}
|
|
@@ -4790,7 +4791,7 @@ var Le = /* @__PURE__ */ function() {
|
|
|
4790
4791
|
n.getFieldEntities(!0).forEach(function(v) {
|
|
4791
4792
|
if (s || c.push(v.getNamePath()), !(!v.props.rules || !v.props.rules.length) && !(p && !v.isFieldDirty())) {
|
|
4792
4793
|
var b = v.getNamePath();
|
|
4793
|
-
if (d.add(b.join(l)), !s ||
|
|
4794
|
+
if (d.add(b.join(l)), !s || Be(c, b, x)) {
|
|
4794
4795
|
var w = v.validateRules(M({
|
|
4795
4796
|
validateMessages: M(M({}, zr), n.validateMessages)
|
|
4796
4797
|
}, a));
|
|
@@ -4916,7 +4917,7 @@ var Ut = /* @__PURE__ */ g.createContext({
|
|
|
4916
4917
|
})
|
|
4917
4918
|
}, i);
|
|
4918
4919
|
}, Vs = ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed", "clearOnDestroy"], Ts = function(t, n) {
|
|
4919
|
-
var r = t.name, o = t.initialValues, i = t.fields, a = t.form, s = t.preserve, c = t.children, u = t.component, l = u === void 0 ? "form" : u, d = t.validateMessages, m = t.validateTrigger, x = m === void 0 ? "onChange" : m, p = t.onValuesChange, h = t.onFieldsChange, f = t.onFinish, y = t.onFinishFailed, v = t.clearOnDestroy, b = Ze(t, Vs), w = g.useRef(null), O = g.useContext(Ut), I = Ur(a), $ = ue(I, 1), T = $[0], N = T.getInternalHooks($e), _ = N.useSubscribe, H = N.setInitialValues, A = N.setCallbacks,
|
|
4920
|
+
var r = t.name, o = t.initialValues, i = t.fields, a = t.form, s = t.preserve, c = t.children, u = t.component, l = u === void 0 ? "form" : u, d = t.validateMessages, m = t.validateTrigger, x = m === void 0 ? "onChange" : m, p = t.onValuesChange, h = t.onFieldsChange, f = t.onFinish, y = t.onFinishFailed, v = t.clearOnDestroy, b = Ze(t, Vs), w = g.useRef(null), O = g.useContext(Ut), I = Ur(a), $ = ue(I, 1), T = $[0], N = T.getInternalHooks($e), _ = N.useSubscribe, H = N.setInitialValues, A = N.setCallbacks, j = N.setValidateMessages, L = N.setPreserve, G = N.destroyForm;
|
|
4920
4921
|
g.useImperativeHandle(n, function() {
|
|
4921
4922
|
return M(M({}, T), {}, {
|
|
4922
4923
|
nativeElement: w.current
|
|
@@ -4925,7 +4926,7 @@ var Ut = /* @__PURE__ */ g.createContext({
|
|
|
4925
4926
|
return O.registerForm(r, T), function() {
|
|
4926
4927
|
O.unregisterForm(r);
|
|
4927
4928
|
};
|
|
4928
|
-
}, [O, T, r]),
|
|
4929
|
+
}, [O, T, r]), j(M(M({}, O.validateMessages), d)), A({
|
|
4929
4930
|
onValuesChange: p,
|
|
4930
4931
|
onFieldsChange: function(z) {
|
|
4931
4932
|
if (O.triggerFormChange(r, z), h) {
|
|
@@ -4956,9 +4957,9 @@ var Ut = /* @__PURE__ */ g.createContext({
|
|
|
4956
4957
|
} else
|
|
4957
4958
|
C = c;
|
|
4958
4959
|
_(!F);
|
|
4959
|
-
var
|
|
4960
|
+
var B = g.useRef();
|
|
4960
4961
|
g.useEffect(function() {
|
|
4961
|
-
Ss(
|
|
4962
|
+
Ss(B.current || [], i || []) || T.setFields(i || []), B.current = i;
|
|
4962
4963
|
}, [i, T]);
|
|
4963
4964
|
var V = g.useMemo(function() {
|
|
4964
4965
|
return M(M({}, T), {}, {
|
|
@@ -5008,11 +5009,11 @@ function Ms() {
|
|
|
5008
5009
|
function() {
|
|
5009
5010
|
if (f) {
|
|
5010
5011
|
var b = h.getFieldsValue, w = h.getInternalHooks, O = w($e), I = O.registerWatch, $ = function(H, A) {
|
|
5011
|
-
var
|
|
5012
|
-
return typeof r == "function" ? r(
|
|
5012
|
+
var j = a.preserve ? A : H;
|
|
5013
|
+
return typeof r == "function" ? r(j) : Oe(j, v.current);
|
|
5013
5014
|
}, T = I(function(_, H) {
|
|
5014
|
-
var A = $(_, H),
|
|
5015
|
-
x.current !==
|
|
5015
|
+
var A = $(_, H), j = kn(A);
|
|
5016
|
+
x.current !== j && (x.current = j, d(A));
|
|
5016
5017
|
}), N = $(b(), b(!0));
|
|
5017
5018
|
return l !== N && d(N), T;
|
|
5018
5019
|
}
|
|
@@ -5043,7 +5044,7 @@ const Hs = (e) => {
|
|
|
5043
5044
|
return /* @__PURE__ */ g.createElement(kt.Provider, {
|
|
5044
5045
|
value: i
|
|
5045
5046
|
}, t);
|
|
5046
|
-
},
|
|
5047
|
+
}, Bs = (e) => {
|
|
5047
5048
|
const {
|
|
5048
5049
|
space: t,
|
|
5049
5050
|
form: n,
|
|
@@ -5093,9 +5094,9 @@ function Yn() {
|
|
|
5093
5094
|
});
|
|
5094
5095
|
}), e;
|
|
5095
5096
|
}
|
|
5096
|
-
const
|
|
5097
|
+
const js = {};
|
|
5097
5098
|
function Ds(e, t) {
|
|
5098
|
-
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
5099
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : js;
|
|
5099
5100
|
const r = Xn(e), o = Xn(t), i = typeof r != "boolean" ? !!(r != null && r.disabled) : !1, a = P.useMemo(() => Object.assign({
|
|
5100
5101
|
closeIcon: /* @__PURE__ */ P.createElement(Jt, null)
|
|
5101
5102
|
}, n), [n]), s = P.useMemo(() => r === !1 ? !1 : r ? Yn(a, o, r) : o === !1 ? !1 : o ? Yn(a, o) : a.closable ? a : !1, [r, o, a]);
|
|
@@ -5116,7 +5117,7 @@ function Ds(e, t) {
|
|
|
5116
5117
|
return [!0, l, i];
|
|
5117
5118
|
}, [s, a]);
|
|
5118
5119
|
}
|
|
5119
|
-
const As = () =>
|
|
5120
|
+
const As = () => To() && window.document.documentElement;
|
|
5120
5121
|
function Zn() {
|
|
5121
5122
|
}
|
|
5122
5123
|
const zs = /* @__PURE__ */ g.createContext({
|
|
@@ -5189,7 +5190,7 @@ const Kr = (e) => {
|
|
|
5189
5190
|
CancelBtn: Jn
|
|
5190
5191
|
})), h = /* @__PURE__ */ P.createElement(Lr, {
|
|
5191
5192
|
value: p
|
|
5192
|
-
}, h)) : h = u, /* @__PURE__ */ P.createElement(
|
|
5193
|
+
}, h)) : h = u, /* @__PURE__ */ P.createElement(_o, {
|
|
5193
5194
|
disabled: !1
|
|
5194
5195
|
}, h);
|
|
5195
5196
|
};
|
|
@@ -5281,7 +5282,7 @@ const qs = (e) => {
|
|
|
5281
5282
|
},
|
|
5282
5283
|
// ======================== Modal ========================
|
|
5283
5284
|
{
|
|
5284
|
-
[t]: Object.assign(Object.assign({},
|
|
5285
|
+
[t]: Object.assign(Object.assign({}, Mo(e)), {
|
|
5285
5286
|
pointerEvents: "none",
|
|
5286
5287
|
position: "relative",
|
|
5287
5288
|
top: 100,
|
|
@@ -5519,7 +5520,7 @@ const Jr = (e) => {
|
|
|
5519
5520
|
styles: O,
|
|
5520
5521
|
children: I,
|
|
5521
5522
|
loading: $
|
|
5522
|
-
} = e, T = ks(e, ["prefixCls", "className", "rootClassName", "open", "wrapClassName", "centered", "getContainer", "focusTriggerAfterClose", "style", "visible", "width", "footer", "classNames", "styles", "children", "loading"]), N = r("modal", c), _ = r(), H = sr(N), [A,
|
|
5523
|
+
} = e, T = ks(e, ["prefixCls", "className", "rootClassName", "open", "wrapClassName", "centered", "getContainer", "focusTriggerAfterClose", "style", "visible", "width", "footer", "classNames", "styles", "children", "loading"]), N = r("modal", c), _ = r(), H = sr(N), [A, j, L] = Zr(N, H), G = K(m, {
|
|
5523
5524
|
[`${N}-centered`]: !!x,
|
|
5524
5525
|
[`${N}-wrap-rtl`]: o === "rtl"
|
|
5525
5526
|
}), S = b !== null && !$ ? /* @__PURE__ */ g.createElement(Kr, Object.assign({}, e, {
|
|
@@ -5531,19 +5532,19 @@ const Jr = (e) => {
|
|
|
5531
5532
|
className: `${N}-close-icon`
|
|
5532
5533
|
}),
|
|
5533
5534
|
closeIconRender: (U) => kr(N, U)
|
|
5534
|
-
}),
|
|
5535
|
-
return A(/* @__PURE__ */ g.createElement(
|
|
5535
|
+
}), B = Ws(`.${N}-content`), [V, W] = mi("Modal", T.zIndex);
|
|
5536
|
+
return A(/* @__PURE__ */ g.createElement(Bs, {
|
|
5536
5537
|
form: !0,
|
|
5537
5538
|
space: !0
|
|
5538
5539
|
}, /* @__PURE__ */ g.createElement(nn.Provider, {
|
|
5539
5540
|
value: W
|
|
5540
|
-
}, /* @__PURE__ */ g.createElement(
|
|
5541
|
+
}, /* @__PURE__ */ g.createElement(jr, Object.assign({
|
|
5541
5542
|
width: v
|
|
5542
5543
|
}, T, {
|
|
5543
5544
|
zIndex: V,
|
|
5544
5545
|
getContainer: p === void 0 ? n : p,
|
|
5545
5546
|
prefixCls: N,
|
|
5546
|
-
rootClassName: K(
|
|
5547
|
+
rootClassName: K(j, l, L, H),
|
|
5547
5548
|
footer: S,
|
|
5548
5549
|
visible: d ?? y,
|
|
5549
5550
|
mousePosition: (t = T.mousePosition) !== null && t !== void 0 ? t : Kt,
|
|
@@ -5556,14 +5557,14 @@ const Jr = (e) => {
|
|
|
5556
5557
|
focusTriggerAfterClose: h,
|
|
5557
5558
|
transitionName: ct(_, "zoom", e.transitionName),
|
|
5558
5559
|
maskTransitionName: ct(_, "fade", e.maskTransitionName),
|
|
5559
|
-
className: K(
|
|
5560
|
+
className: K(j, u, i == null ? void 0 : i.className),
|
|
5560
5561
|
style: Object.assign(Object.assign({}, i == null ? void 0 : i.style), f),
|
|
5561
5562
|
classNames: Object.assign(Object.assign(Object.assign({}, i == null ? void 0 : i.classNames), w), {
|
|
5562
5563
|
wrapper: K(G, w == null ? void 0 : w.wrapper)
|
|
5563
5564
|
}),
|
|
5564
5565
|
styles: Object.assign(Object.assign({}, i == null ? void 0 : i.styles), O),
|
|
5565
|
-
panelRef:
|
|
5566
|
-
}), $ ? /* @__PURE__ */ g.createElement(
|
|
5566
|
+
panelRef: B
|
|
5567
|
+
}), $ ? /* @__PURE__ */ g.createElement(Lo, {
|
|
5567
5568
|
active: !0,
|
|
5568
5569
|
title: !1,
|
|
5569
5570
|
paragraph: {
|
|
@@ -5591,7 +5592,7 @@ const Jr = (e) => {
|
|
|
5591
5592
|
[`${e.antCls}-modal-header`]: {
|
|
5592
5593
|
display: "none"
|
|
5593
5594
|
},
|
|
5594
|
-
[`${l}-body-wrapper`]: Object.assign({},
|
|
5595
|
+
[`${l}-body-wrapper`]: Object.assign({}, Ho()),
|
|
5595
5596
|
[`&${t} ${t}-body`]: {
|
|
5596
5597
|
padding: u
|
|
5597
5598
|
},
|
|
@@ -5754,8 +5755,8 @@ const eo = (e) => {
|
|
|
5754
5755
|
} = e;
|
|
5755
5756
|
if (process.env.NODE_ENV !== "production") {
|
|
5756
5757
|
const A = Ae("Modal");
|
|
5757
|
-
[["visible", "open"], ["bodyStyle", "styles.body"], ["maskStyle", "styles.mask"]].forEach((
|
|
5758
|
-
let [L, G] =
|
|
5758
|
+
[["visible", "open"], ["bodyStyle", "styles.body"], ["maskStyle", "styles.mask"]].forEach((j) => {
|
|
5759
|
+
let [L, G] = j;
|
|
5759
5760
|
A.deprecated(!(L in e), L, G);
|
|
5760
5761
|
});
|
|
5761
5762
|
}
|
|
@@ -5838,7 +5839,7 @@ const Js = (e) => {
|
|
|
5838
5839
|
};
|
|
5839
5840
|
function rt(e) {
|
|
5840
5841
|
const t = Bo();
|
|
5841
|
-
process.env.NODE_ENV !== "production" && !t.holderRender &&
|
|
5842
|
+
process.env.NODE_ENV !== "production" && !t.holderRender && jo("Modal");
|
|
5842
5843
|
const n = document.createDocumentFragment();
|
|
5843
5844
|
let r = Object.assign(Object.assign({}, e), {
|
|
5844
5845
|
close: s,
|
|
@@ -6112,7 +6113,7 @@ ve.destroyAll = function() {
|
|
|
6112
6113
|
ve.config = Qs;
|
|
6113
6114
|
ve._InternalPanelDoNotUseOrYouWillBeFired = ll;
|
|
6114
6115
|
process.env.NODE_ENV !== "production" && (ve.displayName = "Modal");
|
|
6115
|
-
function
|
|
6116
|
+
function hl({ modalOpen: e, contentText: t, setModalOpen: n, title: r, okText: o }) {
|
|
6116
6117
|
return /* @__PURE__ */ _e(
|
|
6117
6118
|
ve,
|
|
6118
6119
|
{
|
|
@@ -6144,5 +6145,5 @@ function ml({ modalOpen: e, contentText: t, setModalOpen: n, title: r, okText: o
|
|
|
6144
6145
|
);
|
|
6145
6146
|
}
|
|
6146
6147
|
export {
|
|
6147
|
-
|
|
6148
|
+
hl as InfoModal
|
|
6148
6149
|
};
|