@elcrm/form 0.0.56 → 0.0.58
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/index.es.js +703 -704
- package/dist/index.umd.js +25 -25
- package/package.json +7 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import R, { forwardRef as qt, useEffect as Kt } from "react";
|
|
2
2
|
import { createPortal as Nt } from "react-dom";
|
|
3
|
-
import './index.css';const Gt = "0.0.
|
|
3
|
+
import './index.css';const Gt = "0.0.58", Yt = {
|
|
4
4
|
version: Gt
|
|
5
5
|
};
|
|
6
6
|
var Rt = { exports: {} }, pt = {};
|
|
@@ -17,15 +17,15 @@ var Ft;
|
|
|
17
17
|
function zt() {
|
|
18
18
|
if (Ft) return pt;
|
|
19
19
|
Ft = 1;
|
|
20
|
-
var a = R, o = Symbol.for("react.element"), i = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, d = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
|
|
21
|
-
function
|
|
22
|
-
var n, s = {},
|
|
23
|
-
|
|
24
|
-
for (n in l) c.call(l, n) && !
|
|
25
|
-
if (
|
|
26
|
-
return { $$typeof: o, type:
|
|
20
|
+
var a = R, o = Symbol.for("react.element"), i = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, d = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, k = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
21
|
+
function C(b, l, p) {
|
|
22
|
+
var n, s = {}, w = null, j = null;
|
|
23
|
+
p !== void 0 && (w = "" + p), l.key !== void 0 && (w = "" + l.key), l.ref !== void 0 && (j = l.ref);
|
|
24
|
+
for (n in l) c.call(l, n) && !k.hasOwnProperty(n) && (s[n] = l[n]);
|
|
25
|
+
if (b && b.defaultProps) for (n in l = b.defaultProps, l) s[n] === void 0 && (s[n] = l[n]);
|
|
26
|
+
return { $$typeof: o, type: b, key: w, ref: j, props: s, _owner: d.current };
|
|
27
27
|
}
|
|
28
|
-
return pt.Fragment = i, pt.jsx =
|
|
28
|
+
return pt.Fragment = i, pt.jsx = C, pt.jsxs = C, pt;
|
|
29
29
|
}
|
|
30
30
|
var yt = {};
|
|
31
31
|
/**
|
|
@@ -40,7 +40,7 @@ var yt = {};
|
|
|
40
40
|
var Mt;
|
|
41
41
|
function Ht() {
|
|
42
42
|
return Mt || (Mt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
-
var a = R, o = Symbol.for("react.element"), i = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), d = Symbol.for("react.strict_mode"),
|
|
43
|
+
var a = R, o = Symbol.for("react.element"), i = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), d = Symbol.for("react.strict_mode"), k = Symbol.for("react.profiler"), C = Symbol.for("react.provider"), b = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), n = Symbol.for("react.suspense_list"), s = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), F = Symbol.iterator, U = "@@iterator";
|
|
44
44
|
function D(e) {
|
|
45
45
|
if (e === null || typeof e != "object")
|
|
46
46
|
return null;
|
|
@@ -48,7 +48,7 @@ function Ht() {
|
|
|
48
48
|
return typeof t == "function" ? t : null;
|
|
49
49
|
}
|
|
50
50
|
var O = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
|
-
function
|
|
51
|
+
function y(e) {
|
|
52
52
|
{
|
|
53
53
|
for (var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), _ = 1; _ < t; _++)
|
|
54
54
|
r[_ - 1] = arguments[_];
|
|
@@ -57,18 +57,18 @@ function Ht() {
|
|
|
57
57
|
}
|
|
58
58
|
function P(e, t, r) {
|
|
59
59
|
{
|
|
60
|
-
var _ = O.ReactDebugCurrentFrame,
|
|
61
|
-
|
|
62
|
-
var
|
|
60
|
+
var _ = O.ReactDebugCurrentFrame, h = _.getStackAddendum();
|
|
61
|
+
h !== "" && (t += "%s", r = r.concat([h]));
|
|
62
|
+
var x = r.map(function(m) {
|
|
63
63
|
return String(m);
|
|
64
64
|
});
|
|
65
|
-
|
|
65
|
+
x.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, x);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
var K = !1, I = !1,
|
|
68
|
+
var K = !1, I = !1, $ = !1, q = !1, W = !1, N;
|
|
69
69
|
N = Symbol.for("react.module.reference");
|
|
70
70
|
function E(e) {
|
|
71
|
-
return !!(typeof e == "string" || typeof e == "function" || e === c || e ===
|
|
71
|
+
return !!(typeof e == "string" || typeof e == "function" || e === c || e === k || W || e === d || e === p || e === n || q || e === j || K || I || $ || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === s || e.$$typeof === C || e.$$typeof === b || e.$$typeof === l || // This needs to include all possible module reference object
|
|
72
72
|
// types supported by any Flight configuration anywhere since
|
|
73
73
|
// we don't know which Flight build this will end up being used
|
|
74
74
|
// with.
|
|
@@ -78,16 +78,16 @@ function Ht() {
|
|
|
78
78
|
var _ = e.displayName;
|
|
79
79
|
if (_)
|
|
80
80
|
return _;
|
|
81
|
-
var
|
|
82
|
-
return
|
|
81
|
+
var h = t.displayName || t.name || "";
|
|
82
|
+
return h !== "" ? r + "(" + h + ")" : r;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function g(e) {
|
|
85
85
|
return e.displayName || "Context";
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function v(e) {
|
|
88
88
|
if (e == null)
|
|
89
89
|
return null;
|
|
90
|
-
if (typeof e.tag == "number" &&
|
|
90
|
+
if (typeof e.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
91
91
|
return e.displayName || e.name || null;
|
|
92
92
|
if (typeof e == "string")
|
|
93
93
|
return e;
|
|
@@ -96,32 +96,32 @@ function Ht() {
|
|
|
96
96
|
return "Fragment";
|
|
97
97
|
case i:
|
|
98
98
|
return "Portal";
|
|
99
|
-
case
|
|
99
|
+
case k:
|
|
100
100
|
return "Profiler";
|
|
101
101
|
case d:
|
|
102
102
|
return "StrictMode";
|
|
103
|
-
case
|
|
103
|
+
case p:
|
|
104
104
|
return "Suspense";
|
|
105
105
|
case n:
|
|
106
106
|
return "SuspenseList";
|
|
107
107
|
}
|
|
108
108
|
if (typeof e == "object")
|
|
109
109
|
switch (e.$$typeof) {
|
|
110
|
-
case
|
|
110
|
+
case b:
|
|
111
111
|
var t = e;
|
|
112
|
-
return
|
|
113
|
-
case
|
|
112
|
+
return g(t) + ".Consumer";
|
|
113
|
+
case C:
|
|
114
114
|
var r = e;
|
|
115
|
-
return
|
|
115
|
+
return g(r._context) + ".Provider";
|
|
116
116
|
case l:
|
|
117
117
|
return G(e, e.render, "ForwardRef");
|
|
118
118
|
case s:
|
|
119
119
|
var _ = e.displayName || null;
|
|
120
|
-
return _ !== null ? _ :
|
|
121
|
-
case
|
|
122
|
-
var
|
|
120
|
+
return _ !== null ? _ : v(e.type) || "Memo";
|
|
121
|
+
case w: {
|
|
122
|
+
var h = e, x = h._payload, m = h._init;
|
|
123
123
|
try {
|
|
124
|
-
return
|
|
124
|
+
return v(m(x));
|
|
125
125
|
} catch {
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
@@ -188,30 +188,30 @@ function Ht() {
|
|
|
188
188
|
})
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
|
-
B < 0 &&
|
|
191
|
+
B < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
var ce = O.ReactCurrentDispatcher,
|
|
194
|
+
var ce = O.ReactCurrentDispatcher, ue;
|
|
195
195
|
function ne(e, t, r) {
|
|
196
196
|
{
|
|
197
|
-
if (
|
|
197
|
+
if (ue === void 0)
|
|
198
198
|
try {
|
|
199
199
|
throw Error();
|
|
200
|
-
} catch (
|
|
201
|
-
var _ =
|
|
202
|
-
|
|
200
|
+
} catch (h) {
|
|
201
|
+
var _ = h.stack.trim().match(/\n( *(at )?)/);
|
|
202
|
+
ue = _ && _[1] || "";
|
|
203
203
|
}
|
|
204
204
|
return `
|
|
205
|
-
` +
|
|
205
|
+
` + ue + e;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
var
|
|
208
|
+
var de = !1, oe;
|
|
209
209
|
{
|
|
210
210
|
var Ke = typeof WeakMap == "function" ? WeakMap : Map;
|
|
211
211
|
oe = new Ke();
|
|
212
212
|
}
|
|
213
213
|
function je(e, t) {
|
|
214
|
-
if (!e ||
|
|
214
|
+
if (!e || de)
|
|
215
215
|
return "";
|
|
216
216
|
{
|
|
217
217
|
var r = oe.get(e);
|
|
@@ -219,11 +219,11 @@ function Ht() {
|
|
|
219
219
|
return r;
|
|
220
220
|
}
|
|
221
221
|
var _;
|
|
222
|
-
|
|
223
|
-
var
|
|
222
|
+
de = !0;
|
|
223
|
+
var h = Error.prepareStackTrace;
|
|
224
224
|
Error.prepareStackTrace = void 0;
|
|
225
|
-
var
|
|
226
|
-
|
|
225
|
+
var x;
|
|
226
|
+
x = ce.current, ce.current = null, Ue();
|
|
227
227
|
try {
|
|
228
228
|
if (t) {
|
|
229
229
|
var m = function() {
|
|
@@ -259,14 +259,14 @@ function Ht() {
|
|
|
259
259
|
} catch (L) {
|
|
260
260
|
if (L && _ && typeof L.stack == "string") {
|
|
261
261
|
for (var u = L.stack.split(`
|
|
262
|
-
`),
|
|
263
|
-
`), S = u.length - 1, T =
|
|
262
|
+
`), A = _.stack.split(`
|
|
263
|
+
`), S = u.length - 1, T = A.length - 1; S >= 1 && T >= 0 && u[S] !== A[T]; )
|
|
264
264
|
T--;
|
|
265
265
|
for (; S >= 1 && T >= 0; S--, T--)
|
|
266
|
-
if (u[S] !==
|
|
266
|
+
if (u[S] !== A[T]) {
|
|
267
267
|
if (S !== 1 || T !== 1)
|
|
268
268
|
do
|
|
269
|
-
if (S--, T--, T < 0 || u[S] !==
|
|
269
|
+
if (S--, T--, T < 0 || u[S] !== A[T]) {
|
|
270
270
|
var Y = `
|
|
271
271
|
` + u[S].replace(" at new ", " at ");
|
|
272
272
|
return e.displayName && Y.includes("<anonymous>") && (Y = Y.replace("<anonymous>", e.displayName)), typeof e == "function" && oe.set(e, Y), Y;
|
|
@@ -276,7 +276,7 @@ function Ht() {
|
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
} finally {
|
|
279
|
-
|
|
279
|
+
de = !1, ce.current = x, qe(), Error.prepareStackTrace = h;
|
|
280
280
|
}
|
|
281
281
|
var X = e ? e.displayName || e.name : "", J = X ? ne(X) : "";
|
|
282
282
|
return typeof e == "function" && oe.set(e, J), J;
|
|
@@ -296,7 +296,7 @@ function Ht() {
|
|
|
296
296
|
if (typeof e == "string")
|
|
297
297
|
return ne(e);
|
|
298
298
|
switch (e) {
|
|
299
|
-
case
|
|
299
|
+
case p:
|
|
300
300
|
return ne("Suspense");
|
|
301
301
|
case n:
|
|
302
302
|
return ne("SuspenseList");
|
|
@@ -307,10 +307,10 @@ function Ht() {
|
|
|
307
307
|
return Ge(e.render);
|
|
308
308
|
case s:
|
|
309
309
|
return _e(e.type, t, r);
|
|
310
|
-
case
|
|
311
|
-
var _ = e,
|
|
310
|
+
case w: {
|
|
311
|
+
var _ = e, h = _._payload, x = _._init;
|
|
312
312
|
try {
|
|
313
|
-
return _e(
|
|
313
|
+
return _e(x(h), t, r);
|
|
314
314
|
} catch {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
@@ -325,22 +325,22 @@ function Ht() {
|
|
|
325
325
|
} else
|
|
326
326
|
Se.setExtraStackFrame(null);
|
|
327
327
|
}
|
|
328
|
-
function ze(e, t, r, _,
|
|
328
|
+
function ze(e, t, r, _, h) {
|
|
329
329
|
{
|
|
330
|
-
var
|
|
330
|
+
var x = Function.call.bind(ee);
|
|
331
331
|
for (var m in e)
|
|
332
|
-
if (
|
|
332
|
+
if (x(e, m)) {
|
|
333
333
|
var u = void 0;
|
|
334
334
|
try {
|
|
335
335
|
if (typeof e[m] != "function") {
|
|
336
|
-
var
|
|
337
|
-
throw
|
|
336
|
+
var A = Error((_ || "React class") + ": " + r + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
337
|
+
throw A.name = "Invariant Violation", A;
|
|
338
338
|
}
|
|
339
339
|
u = e[m](t, m, _, r, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
340
|
} catch (S) {
|
|
341
341
|
u = S;
|
|
342
342
|
}
|
|
343
|
-
u && !(u instanceof Error) && (ie(
|
|
343
|
+
u && !(u instanceof Error) && (ie(h), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", _ || "React class", r, m, typeof u), ie(null)), u instanceof Error && !(u.message in Ee) && (Ee[u.message] = !0, ie(h), y("Failed %s type: %s", r, u.message), ie(null));
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
@@ -366,7 +366,7 @@ function Ht() {
|
|
|
366
366
|
}
|
|
367
367
|
function Te(e) {
|
|
368
368
|
if (Ze(e))
|
|
369
|
-
return
|
|
369
|
+
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e)), Re(e);
|
|
370
370
|
}
|
|
371
371
|
var Oe = O.ReactCurrentOwner, Ve = {
|
|
372
372
|
key: !0,
|
|
@@ -396,7 +396,7 @@ function Ht() {
|
|
|
396
396
|
function tt(e, t) {
|
|
397
397
|
{
|
|
398
398
|
var r = function() {
|
|
399
|
-
De || (De = !0,
|
|
399
|
+
De || (De = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
|
|
400
400
|
};
|
|
401
401
|
r.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
402
402
|
get: r,
|
|
@@ -407,7 +407,7 @@ function Ht() {
|
|
|
407
407
|
function rt(e, t) {
|
|
408
408
|
{
|
|
409
409
|
var r = function() {
|
|
410
|
-
Pe || (Pe = !0,
|
|
410
|
+
Pe || (Pe = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
|
|
411
411
|
};
|
|
412
412
|
r.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
413
413
|
get: r,
|
|
@@ -415,7 +415,7 @@ function Ht() {
|
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
var at = function(e, t, r, _,
|
|
418
|
+
var at = function(e, t, r, _, h, x, m) {
|
|
419
419
|
var u = {
|
|
420
420
|
// This tag allows us to uniquely identify this as a React Element
|
|
421
421
|
$$typeof: o,
|
|
@@ -425,7 +425,7 @@ function Ht() {
|
|
|
425
425
|
ref: r,
|
|
426
426
|
props: m,
|
|
427
427
|
// Record the component responsible for creating this element.
|
|
428
|
-
_owner:
|
|
428
|
+
_owner: x
|
|
429
429
|
};
|
|
430
430
|
return u._store = {}, Object.defineProperty(u._store, "validated", {
|
|
431
431
|
configurable: !1,
|
|
@@ -441,25 +441,25 @@ function Ht() {
|
|
|
441
441
|
configurable: !1,
|
|
442
442
|
enumerable: !1,
|
|
443
443
|
writable: !1,
|
|
444
|
-
value:
|
|
444
|
+
value: h
|
|
445
445
|
}), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
|
|
446
446
|
};
|
|
447
|
-
function nt(e, t, r, _,
|
|
447
|
+
function nt(e, t, r, _, h) {
|
|
448
448
|
{
|
|
449
|
-
var
|
|
450
|
-
r !== void 0 && (Te(r), u = "" + r), Qe(t) && (Te(t.key), u = "" + t.key), Xe(t) && (
|
|
451
|
-
for (
|
|
452
|
-
ee.call(t,
|
|
449
|
+
var x, m = {}, u = null, A = null;
|
|
450
|
+
r !== void 0 && (Te(r), u = "" + r), Qe(t) && (Te(t.key), u = "" + t.key), Xe(t) && (A = t.ref, et(t, h));
|
|
451
|
+
for (x in t)
|
|
452
|
+
ee.call(t, x) && !Ve.hasOwnProperty(x) && (m[x] = t[x]);
|
|
453
453
|
if (e && e.defaultProps) {
|
|
454
454
|
var S = e.defaultProps;
|
|
455
|
-
for (
|
|
456
|
-
m[
|
|
455
|
+
for (x in S)
|
|
456
|
+
m[x] === void 0 && (m[x] = S[x]);
|
|
457
457
|
}
|
|
458
|
-
if (u ||
|
|
458
|
+
if (u || A) {
|
|
459
459
|
var T = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
460
|
-
u && tt(m, T),
|
|
460
|
+
u && tt(m, T), A && rt(m, T);
|
|
461
461
|
}
|
|
462
|
-
return at(e, u,
|
|
462
|
+
return at(e, u, A, h, _, Oe.current, m);
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
465
|
var me = O.ReactCurrentOwner, Ne = O.ReactDebugCurrentFrame;
|
|
@@ -478,7 +478,7 @@ function Ht() {
|
|
|
478
478
|
function Fe() {
|
|
479
479
|
{
|
|
480
480
|
if (me.current) {
|
|
481
|
-
var e =
|
|
481
|
+
var e = v(me.current.type);
|
|
482
482
|
if (e)
|
|
483
483
|
return `
|
|
484
484
|
|
|
@@ -513,7 +513,7 @@ Check the top-level render call using <` + r + ">.");
|
|
|
513
513
|
return;
|
|
514
514
|
Me[r] = !0;
|
|
515
515
|
var _ = "";
|
|
516
|
-
e && e._owner && e._owner !== me.current && (_ = " It was passed a child from " +
|
|
516
|
+
e && e._owner && e._owner !== me.current && (_ = " It was passed a child from " + v(e._owner.type) + "."), V(e), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', r, _), V(null);
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
519
|
function Ae(e, t) {
|
|
@@ -528,9 +528,9 @@ Check the top-level render call using <` + r + ">.");
|
|
|
528
528
|
else if (ye(e))
|
|
529
529
|
e._store && (e._store.validated = !0);
|
|
530
530
|
else if (e) {
|
|
531
|
-
var
|
|
532
|
-
if (typeof
|
|
533
|
-
for (var
|
|
531
|
+
var h = D(e);
|
|
532
|
+
if (typeof h == "function" && h !== e.entries)
|
|
533
|
+
for (var x = h.call(e), m; !(m = x.next()).done; )
|
|
534
534
|
ye(m.value) && Ie(m.value, t);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
@@ -550,14 +550,14 @@ Check the top-level render call using <` + r + ">.");
|
|
|
550
550
|
else
|
|
551
551
|
return;
|
|
552
552
|
if (r) {
|
|
553
|
-
var _ =
|
|
553
|
+
var _ = v(t);
|
|
554
554
|
ze(r, e.props, "prop", _, e);
|
|
555
555
|
} else if (t.PropTypes !== void 0 && !pe) {
|
|
556
556
|
pe = !0;
|
|
557
|
-
var
|
|
558
|
-
|
|
557
|
+
var h = v(t);
|
|
558
|
+
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", h || "Unknown");
|
|
559
559
|
}
|
|
560
|
-
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved &&
|
|
560
|
+
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
563
|
function st(e) {
|
|
@@ -565,26 +565,26 @@ Check the top-level render call using <` + r + ">.");
|
|
|
565
565
|
for (var t = Object.keys(e.props), r = 0; r < t.length; r++) {
|
|
566
566
|
var _ = t[r];
|
|
567
567
|
if (_ !== "children" && _ !== "key") {
|
|
568
|
-
V(e),
|
|
568
|
+
V(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", _), V(null);
|
|
569
569
|
break;
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
|
-
e.ref !== null && (V(e),
|
|
572
|
+
e.ref !== null && (V(e), y("Invalid attribute `ref` supplied to `React.Fragment`."), V(null));
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
var $e = {};
|
|
576
|
-
function Be(e, t, r, _,
|
|
576
|
+
function Be(e, t, r, _, h, x) {
|
|
577
577
|
{
|
|
578
578
|
var m = E(e);
|
|
579
579
|
if (!m) {
|
|
580
580
|
var u = "";
|
|
581
581
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (u += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
582
|
-
var
|
|
583
|
-
|
|
582
|
+
var A = ot();
|
|
583
|
+
A ? u += A : u += Fe();
|
|
584
584
|
var S;
|
|
585
|
-
e === null ? S = "null" : fe(e) ? S = "array" : e !== void 0 && e.$$typeof === o ? (S = "<" + (
|
|
585
|
+
e === null ? S = "null" : fe(e) ? S = "array" : e !== void 0 && e.$$typeof === o ? (S = "<" + (v(e.type) || "Unknown") + " />", u = " Did you accidentally export a JSX literal instead of a component?") : S = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", S, u);
|
|
586
586
|
}
|
|
587
|
-
var T = nt(e, t, r,
|
|
587
|
+
var T = nt(e, t, r, h, x);
|
|
588
588
|
if (T == null)
|
|
589
589
|
return T;
|
|
590
590
|
if (m) {
|
|
@@ -596,17 +596,17 @@ Check the top-level render call using <` + r + ">.");
|
|
|
596
596
|
Ae(Y[X], e);
|
|
597
597
|
Object.freeze && Object.freeze(Y);
|
|
598
598
|
} else
|
|
599
|
-
|
|
599
|
+
y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
600
600
|
else
|
|
601
601
|
Ae(Y, e);
|
|
602
602
|
}
|
|
603
603
|
if (ee.call(t, "key")) {
|
|
604
|
-
var J =
|
|
604
|
+
var J = v(e), L = Object.keys(t).filter(function(mt) {
|
|
605
605
|
return mt !== "key";
|
|
606
606
|
}), ve = L.length > 0 ? "{key: someKey, " + L.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
607
607
|
if (!$e[J + ve]) {
|
|
608
608
|
var ft = L.length > 0 ? "{" + L.join(": ..., ") + ": ...}" : "{}";
|
|
609
|
-
|
|
609
|
+
y(`A props object containing a "key" prop is being spread into JSX:
|
|
610
610
|
let props = %s;
|
|
611
611
|
<%s {...props} />
|
|
612
612
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -623,17 +623,17 @@ React keys must be passed directly to JSX without using spread:
|
|
|
623
623
|
function ct(e, t, r) {
|
|
624
624
|
return Be(e, t, r, !1);
|
|
625
625
|
}
|
|
626
|
-
var
|
|
627
|
-
yt.Fragment = c, yt.jsx =
|
|
626
|
+
var ut = ct, dt = lt;
|
|
627
|
+
yt.Fragment = c, yt.jsx = ut, yt.jsxs = dt;
|
|
628
628
|
}()), yt;
|
|
629
629
|
}
|
|
630
630
|
process.env.NODE_ENV === "production" ? Rt.exports = zt() : Rt.exports = Ht();
|
|
631
631
|
var f = Rt.exports;
|
|
632
|
-
function
|
|
633
|
-
let
|
|
632
|
+
function da({ name: a, value: o, title: i, style: c, className: d }) {
|
|
633
|
+
let k = {
|
|
634
634
|
field: "progress"
|
|
635
635
|
};
|
|
636
|
-
return c && (
|
|
636
|
+
return c && (k.style = c), d && (k.className = d), /* @__PURE__ */ f.jsxs("dl", { ...k, children: [
|
|
637
637
|
i && /* @__PURE__ */ f.jsx("dt", { children: i }),
|
|
638
638
|
/* @__PURE__ */ f.jsx("dd", {})
|
|
639
639
|
] });
|
|
@@ -697,25 +697,25 @@ function vt({ data: a }) {
|
|
|
697
697
|
be.del(a.key);
|
|
698
698
|
}, 2500));
|
|
699
699
|
}, [a.key]);
|
|
700
|
-
let c, d,
|
|
700
|
+
let c, d, k;
|
|
701
701
|
switch (a.type) {
|
|
702
702
|
case "error":
|
|
703
|
-
c = /* @__PURE__ */ R.createElement(Le.error, null), d = "Ошибка:",
|
|
703
|
+
c = /* @__PURE__ */ R.createElement(Le.error, null), d = "Ошибка:", k = We.e;
|
|
704
704
|
break;
|
|
705
705
|
case "success":
|
|
706
|
-
c = /* @__PURE__ */ R.createElement(Le.success, null), d = "Информация:",
|
|
706
|
+
c = /* @__PURE__ */ R.createElement(Le.success, null), d = "Информация:", k = We.s;
|
|
707
707
|
break;
|
|
708
708
|
case "copy":
|
|
709
|
-
c = /* @__PURE__ */ R.createElement(Le.success, null), d = "Копирование:",
|
|
709
|
+
c = /* @__PURE__ */ R.createElement(Le.success, null), d = "Копирование:", k = We.с;
|
|
710
710
|
break;
|
|
711
711
|
case "remark":
|
|
712
|
-
c = /* @__PURE__ */ R.createElement(Le.success, null), d = "Подсказка:",
|
|
712
|
+
c = /* @__PURE__ */ R.createElement(Le.success, null), d = "Подсказка:", k = We.r;
|
|
713
713
|
break;
|
|
714
714
|
default:
|
|
715
|
-
c = /* @__PURE__ */ R.createElement(Le.success, null), d = "Предупреждение:",
|
|
715
|
+
c = /* @__PURE__ */ R.createElement(Le.success, null), d = "Предупреждение:", k = We.с;
|
|
716
716
|
break;
|
|
717
717
|
}
|
|
718
|
-
return /* @__PURE__ */ R.createElement("li", { className:
|
|
718
|
+
return /* @__PURE__ */ R.createElement("li", { className: k, "data-status": o }, c, /* @__PURE__ */ R.createElement("b", null, d), /* @__PURE__ */ R.createElement("p", null, a.text));
|
|
719
719
|
}
|
|
720
720
|
function ir({ data: a }) {
|
|
721
721
|
let [o, i] = R.useState("show");
|
|
@@ -757,59 +757,59 @@ Le.success = () => /* @__PURE__ */ R.createElement("svg", { viewBox: "0 0 24 24"
|
|
|
757
757
|
var xt;
|
|
758
758
|
((a) => {
|
|
759
759
|
function o({ className: l }) {
|
|
760
|
-
let [
|
|
760
|
+
let [p, n] = R.useState([]);
|
|
761
761
|
return be.set = (s) => {
|
|
762
|
-
n([...
|
|
762
|
+
n([...p, s]);
|
|
763
763
|
}, be.del = (s) => {
|
|
764
|
-
n(
|
|
765
|
-
},
|
|
764
|
+
n(p.filter((w) => w.key !== s));
|
|
765
|
+
}, p.length === 0 ? "" : /* @__PURE__ */ R.createElement("ul", { className: [We.n, l].filter((s) => s).join(" ") }, p.map((s) => s.item));
|
|
766
766
|
}
|
|
767
767
|
a.Init = o;
|
|
768
|
-
function i(l,
|
|
769
|
-
let n = Date.now(), s = { key: n, text: l, hide:
|
|
768
|
+
function i(l, p = !0) {
|
|
769
|
+
let n = Date.now(), s = { key: n, text: l, hide: p, type: "error" };
|
|
770
770
|
be.set({
|
|
771
771
|
item: /* @__PURE__ */ R.createElement(vt, { key: n, data: s }),
|
|
772
772
|
key: n
|
|
773
773
|
});
|
|
774
774
|
}
|
|
775
775
|
a.Error = i;
|
|
776
|
-
function c(l,
|
|
777
|
-
let n = Date.now(), s = { key: n, text: l, hide:
|
|
776
|
+
function c(l, p = !0) {
|
|
777
|
+
let n = Date.now(), s = { key: n, text: l, hide: p, type: "success" };
|
|
778
778
|
be.set({
|
|
779
779
|
item: /* @__PURE__ */ R.createElement(vt, { key: n, data: s }),
|
|
780
780
|
key: n
|
|
781
781
|
});
|
|
782
782
|
}
|
|
783
783
|
a.Success = c;
|
|
784
|
-
function d(l,
|
|
785
|
-
let n = Date.now(), s = { key: n, hide:
|
|
784
|
+
function d(l, p = !0) {
|
|
785
|
+
let n = Date.now(), s = { key: n, hide: p, text: l };
|
|
786
786
|
be.set({ item: /* @__PURE__ */ R.createElement(ir, { key: n, data: s }), key: n });
|
|
787
787
|
}
|
|
788
788
|
a.Custom = d;
|
|
789
|
-
function
|
|
790
|
-
let
|
|
789
|
+
function k(l) {
|
|
790
|
+
let p = Date.now(), n = { key: p, hide: !0, ...l };
|
|
791
791
|
be.set({
|
|
792
|
-
item: /* @__PURE__ */ R.createElement(vt, { key:
|
|
793
|
-
key:
|
|
792
|
+
item: /* @__PURE__ */ R.createElement(vt, { key: p, data: n }),
|
|
793
|
+
key: p
|
|
794
794
|
});
|
|
795
795
|
}
|
|
796
|
-
a.Send =
|
|
797
|
-
function
|
|
798
|
-
let n = Date.now(), s = { key: n, text: l, hide:
|
|
796
|
+
a.Send = k;
|
|
797
|
+
function C(l, p = !0) {
|
|
798
|
+
let n = Date.now(), s = { key: n, text: l, hide: p, type: "remark" };
|
|
799
799
|
be.set({
|
|
800
800
|
item: /* @__PURE__ */ R.createElement(vt, { key: n, data: s }),
|
|
801
801
|
key: n
|
|
802
802
|
});
|
|
803
803
|
}
|
|
804
|
-
a.Remark =
|
|
805
|
-
function
|
|
806
|
-
let n = Date.now(), s = { key: n, text: l, hide:
|
|
804
|
+
a.Remark = C;
|
|
805
|
+
function b(l, p = !0) {
|
|
806
|
+
let n = Date.now(), s = { key: n, text: l, hide: p, type: "copy" };
|
|
807
807
|
be.set({
|
|
808
808
|
item: /* @__PURE__ */ R.createElement(vt, { key: n, data: s }),
|
|
809
809
|
key: n
|
|
810
810
|
});
|
|
811
811
|
}
|
|
812
|
-
a.Copy =
|
|
812
|
+
a.Copy = b;
|
|
813
813
|
})(xt || (xt = {}));
|
|
814
814
|
const he = qt(
|
|
815
815
|
({
|
|
@@ -818,18 +818,18 @@ const he = qt(
|
|
|
818
818
|
type: i = "input",
|
|
819
819
|
title: c,
|
|
820
820
|
error: d,
|
|
821
|
-
before:
|
|
822
|
-
after:
|
|
823
|
-
children:
|
|
821
|
+
before: k,
|
|
822
|
+
after: C,
|
|
823
|
+
children: b
|
|
824
824
|
}, l) => /* @__PURE__ */ f.jsxs(
|
|
825
825
|
"dl",
|
|
826
826
|
{
|
|
827
827
|
"data-field": i,
|
|
828
828
|
...o.props,
|
|
829
|
-
className: [Q.l, ...a.className].filter((
|
|
829
|
+
className: [Q.l, ...a.className].filter((p) => p !== void 0).join(" "),
|
|
830
830
|
children: [
|
|
831
831
|
c ? /* @__PURE__ */ f.jsx("dt", { className: Q.t, children: c }) : "",
|
|
832
|
-
|
|
832
|
+
k,
|
|
833
833
|
/* @__PURE__ */ f.jsx(
|
|
834
834
|
"dd",
|
|
835
835
|
{
|
|
@@ -840,10 +840,10 @@ const he = qt(
|
|
|
840
840
|
d && d.length > 0 ? Q.e : ""
|
|
841
841
|
].join(" "),
|
|
842
842
|
...o.props,
|
|
843
|
-
children:
|
|
843
|
+
children: b
|
|
844
844
|
}
|
|
845
845
|
),
|
|
846
|
-
|
|
846
|
+
C
|
|
847
847
|
]
|
|
848
848
|
}
|
|
849
849
|
)
|
|
@@ -854,63 +854,63 @@ function fa({
|
|
|
854
854
|
onSave: i,
|
|
855
855
|
name: c,
|
|
856
856
|
format: d = "+_(___) ___-__-__",
|
|
857
|
-
placeholder:
|
|
858
|
-
title:
|
|
859
|
-
error:
|
|
857
|
+
placeholder: k = "",
|
|
858
|
+
title: C = "",
|
|
859
|
+
error: b = "",
|
|
860
860
|
hide: l = !1,
|
|
861
|
-
edit:
|
|
861
|
+
edit: p = !0,
|
|
862
862
|
active: n = !0,
|
|
863
863
|
after: s = "",
|
|
864
|
-
show:
|
|
864
|
+
show: w = !0,
|
|
865
865
|
view: j,
|
|
866
866
|
className: F = ""
|
|
867
867
|
}) {
|
|
868
|
-
|
|
869
|
-
let D = d, O = !0,
|
|
868
|
+
p = p !== void 0 ? p : !0, n = n !== void 0 ? n : !0, l = !!(l && (a === "" || a === void 0)) && !(p && n), R.useRef(null);
|
|
869
|
+
let D = d, O = !0, y = 0, P = (g, v) => {
|
|
870
870
|
let M = document.createRange(), B = window.getSelection();
|
|
871
|
-
M.setStart(
|
|
872
|
-
}, K = (
|
|
873
|
-
|
|
874
|
-
window.document.execCommand("insertText", !1,
|
|
875
|
-
}).catch((
|
|
871
|
+
M.setStart(v.childNodes[0], g), M.collapse(!0), B.removeAllRanges(), B.addRange(M), v.focus();
|
|
872
|
+
}, K = (g) => {
|
|
873
|
+
g.preventDefault(), navigator.clipboard.readText().then((v) => {
|
|
874
|
+
window.document.execCommand("insertText", !1, v);
|
|
875
|
+
}).catch((v) => {
|
|
876
876
|
});
|
|
877
|
-
}, I = (
|
|
878
|
-
let
|
|
877
|
+
}, I = (g) => {
|
|
878
|
+
let v = 0, M = "", B = g.replace(/\D/g, "");
|
|
879
879
|
B === "" && (O = !0);
|
|
880
880
|
let te = B.split(""), H = "";
|
|
881
881
|
te.forEach((se) => {
|
|
882
|
-
O && (H += se, O && (
|
|
882
|
+
O && (H += se, O && (y = ("" + H).length, D = d.replace(new RegExp("[0-9]", "g"), "_"), M = ""), y > ("" + H).length && (O = !0, D = d.replace(new RegExp("[0-9]", "g"), "_"), M = ""));
|
|
883
883
|
});
|
|
884
884
|
let ae = D.replace(/\D/g, "");
|
|
885
885
|
return ae.length >= B.length && (B = ae), { q: D.replace(/[_\d]/g, function() {
|
|
886
|
-
return B.charAt(
|
|
887
|
-
}), i:
|
|
888
|
-
},
|
|
889
|
-
|
|
886
|
+
return B.charAt(v++) || "_";
|
|
887
|
+
}), i: v, v: B, f: M };
|
|
888
|
+
}, $ = (g) => {
|
|
889
|
+
g.preventDefault(), navigator.clipboard.writeText(g.target.textContent.replace(/\D/g, "")).then(
|
|
890
890
|
function() {
|
|
891
891
|
xt.Copy("Данные в буфер обмене");
|
|
892
892
|
},
|
|
893
|
-
function(
|
|
893
|
+
function(v) {
|
|
894
894
|
}
|
|
895
895
|
);
|
|
896
|
-
}, q = I(a), W = (
|
|
897
|
-
let
|
|
898
|
-
|
|
899
|
-
}, N = (
|
|
900
|
-
|
|
896
|
+
}, q = I(a), W = (g) => {
|
|
897
|
+
let v = I(g.target.textContent);
|
|
898
|
+
g.target.textContent = v.q, v.i = v.q.lastIndexOf(v.v.substr(-1)), v.i < v.q.length && v.q !== D ? v.i++ : v.i = v.q.indexOf("_"), P(v.i, g.target), o && o({ value: v.q.replace(/\D/g, ""), name: c });
|
|
899
|
+
}, N = (g) => {
|
|
900
|
+
g.key === "Enter" && g.preventDefault();
|
|
901
901
|
};
|
|
902
|
-
const E = (
|
|
903
|
-
Z.Blur(
|
|
904
|
-
value:
|
|
902
|
+
const E = (g) => {
|
|
903
|
+
Z.Blur(g), i && i({
|
|
904
|
+
value: g.target.textContent.replace(/\D/g, ""),
|
|
905
905
|
name: c
|
|
906
906
|
});
|
|
907
907
|
};
|
|
908
908
|
let G = {};
|
|
909
|
-
return
|
|
909
|
+
return p && n ? (G.edit = "true", G.contentEditable = Z.ContentEditable) : G.contentEditable = "false", k && (G.placeholder = k), s && (G.after = s), l ? /* @__PURE__ */ f.jsx(f.Fragment, {}) : /* @__PURE__ */ f.jsx(
|
|
910
910
|
he,
|
|
911
911
|
{
|
|
912
912
|
type: "input",
|
|
913
|
-
title:
|
|
913
|
+
title: C,
|
|
914
914
|
element_blok: { className: [F] },
|
|
915
915
|
element_input: { className: [Q.w] },
|
|
916
916
|
children: /* @__PURE__ */ f.jsx(
|
|
@@ -919,7 +919,7 @@ function fa({
|
|
|
919
919
|
onPaste: K,
|
|
920
920
|
onInput: W,
|
|
921
921
|
onKeyDown: N,
|
|
922
|
-
onContextMenu:
|
|
922
|
+
onContextMenu: $,
|
|
923
923
|
onBlur: E,
|
|
924
924
|
suppressContentEditableWarning: !0,
|
|
925
925
|
...G,
|
|
@@ -939,23 +939,23 @@ function ma({
|
|
|
939
939
|
name: i,
|
|
940
940
|
error: c,
|
|
941
941
|
icon: d,
|
|
942
|
-
edit:
|
|
943
|
-
active:
|
|
944
|
-
title:
|
|
942
|
+
edit: k = !0,
|
|
943
|
+
active: C = !0,
|
|
944
|
+
title: b,
|
|
945
945
|
placeholder: l = "",
|
|
946
|
-
className:
|
|
946
|
+
className: p
|
|
947
947
|
}) {
|
|
948
948
|
let [n, s] = R.useState(a);
|
|
949
|
-
const
|
|
949
|
+
const w = R.useRef(null), [j, F] = R.useState(!1);
|
|
950
950
|
R.useEffect(() => {
|
|
951
951
|
s(a);
|
|
952
952
|
}, [a]);
|
|
953
|
-
let U = (
|
|
954
|
-
s(
|
|
955
|
-
}, D = (
|
|
956
|
-
if (!
|
|
957
|
-
const P =
|
|
958
|
-
|
|
953
|
+
let U = (y) => {
|
|
954
|
+
s(y), o && o({ value: y, name: i });
|
|
955
|
+
}, D = (y) => {
|
|
956
|
+
if (!k || !C) return;
|
|
957
|
+
const P = y.target.getBoundingClientRect(), K = P.left, I = P.top;
|
|
958
|
+
w.position = { x: K, y: I }, F(!0);
|
|
959
959
|
};
|
|
960
960
|
const O = {};
|
|
961
961
|
return l && (O.placeholder = l), d || /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
@@ -963,17 +963,17 @@ function ma({
|
|
|
963
963
|
he,
|
|
964
964
|
{
|
|
965
965
|
type: "date",
|
|
966
|
-
title:
|
|
967
|
-
element_blok: { className: [
|
|
966
|
+
title: b,
|
|
967
|
+
element_blok: { className: [p] },
|
|
968
968
|
element_input: { className: [Q.w] },
|
|
969
|
-
children: /* @__PURE__ */ f.jsx("div", { onClick: D, ...O, children:
|
|
969
|
+
children: /* @__PURE__ */ f.jsx("div", { onClick: D, ...O, children: ur(n, "mm.yyyy") })
|
|
970
970
|
}
|
|
971
971
|
),
|
|
972
972
|
j && Nt(
|
|
973
973
|
/* @__PURE__ */ f.jsx(
|
|
974
974
|
cr,
|
|
975
975
|
{
|
|
976
|
-
position:
|
|
976
|
+
position: w.position,
|
|
977
977
|
onValue: U,
|
|
978
978
|
date: n,
|
|
979
979
|
onOpen: F
|
|
@@ -985,26 +985,26 @@ function ma({
|
|
|
985
985
|
] });
|
|
986
986
|
}
|
|
987
987
|
const cr = ({ onOpen: a, date: o, onValue: i, position: c }) => {
|
|
988
|
-
let d = /* @__PURE__ */ new Date(),
|
|
988
|
+
let d = /* @__PURE__ */ new Date(), k = new Date(o), C = {
|
|
989
989
|
y: parseInt(d.getFullYear()),
|
|
990
990
|
m: parseInt(d.getMonth()) + 1
|
|
991
|
-
},
|
|
992
|
-
y: parseInt(
|
|
993
|
-
m: parseInt(
|
|
994
|
-
}, [l,
|
|
991
|
+
}, b = {
|
|
992
|
+
y: parseInt(k.getFullYear()),
|
|
993
|
+
m: parseInt(k.getMonth()) + 1
|
|
994
|
+
}, [l, p] = R.useState(b.y), n = () => {
|
|
995
995
|
a(!1);
|
|
996
996
|
}, s = () => {
|
|
997
|
-
|
|
998
|
-
},
|
|
999
|
-
|
|
1000
|
-
}, j = (
|
|
1001
|
-
i(l + "-" +
|
|
1002
|
-
}, F = (
|
|
997
|
+
p(l + 1);
|
|
998
|
+
}, w = () => {
|
|
999
|
+
p(l - 1);
|
|
1000
|
+
}, j = (y) => {
|
|
1001
|
+
i(l + "-" + dr(2, y)), n();
|
|
1002
|
+
}, F = (y) => C.y === b.y && C.m === y ? "_FFEB3B" : "", U = Array(12).fill("").map((y, P) => P + 1), D = window.innerHeight - c.y + 33 < 320 ? c.y - 312 : c.y + 33, O = window.innerWidth - c.x < 265 ? c.x - 235 : c.x;
|
|
1003
1003
|
return /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
1004
1004
|
/* @__PURE__ */ f.jsx("div", { className: Ct.o, onClick: n }),
|
|
1005
1005
|
/* @__PURE__ */ f.jsxs("div", { className: Ct.c, style: { top: D + "px", left: O + "px" }, children: [
|
|
1006
1006
|
/* @__PURE__ */ f.jsxs("s", { children: [
|
|
1007
|
-
/* @__PURE__ */ f.jsx("i", { onClick:
|
|
1007
|
+
/* @__PURE__ */ f.jsx("i", { onClick: w, children: /* @__PURE__ */ f.jsx(
|
|
1008
1008
|
"svg",
|
|
1009
1009
|
{
|
|
1010
1010
|
width: "16",
|
|
@@ -1028,21 +1028,21 @@ const cr = ({ onOpen: a, date: o, onValue: i, position: c }) => {
|
|
|
1028
1028
|
}
|
|
1029
1029
|
) })
|
|
1030
1030
|
] }),
|
|
1031
|
-
/* @__PURE__ */ f.jsx("div", { "grid-month": "", children: U.map((
|
|
1031
|
+
/* @__PURE__ */ f.jsx("div", { "grid-month": "", children: U.map((y, P) => /* @__PURE__ */ f.jsx(
|
|
1032
1032
|
"span",
|
|
1033
1033
|
{
|
|
1034
1034
|
onClick: () => {
|
|
1035
|
-
j(
|
|
1035
|
+
j(y);
|
|
1036
1036
|
},
|
|
1037
|
-
color: F(
|
|
1038
|
-
children: /* @__PURE__ */ f.jsx("b", { children: fr(
|
|
1037
|
+
color: F(y),
|
|
1038
|
+
children: /* @__PURE__ */ f.jsx("b", { children: fr(y).abc })
|
|
1039
1039
|
},
|
|
1040
1040
|
P
|
|
1041
1041
|
)) })
|
|
1042
1042
|
] })
|
|
1043
1043
|
] });
|
|
1044
1044
|
};
|
|
1045
|
-
function
|
|
1045
|
+
function ur(a, o) {
|
|
1046
1046
|
o === void 0 ? (o = a, a = /* @__PURE__ */ new Date()) : a = new Date(a);
|
|
1047
1047
|
let i = {
|
|
1048
1048
|
yyyy: a.getFullYear(),
|
|
@@ -1059,7 +1059,7 @@ function dr(a, o) {
|
|
|
1059
1059
|
o = o.replace(c, i[c]);
|
|
1060
1060
|
return o;
|
|
1061
1061
|
}
|
|
1062
|
-
function
|
|
1062
|
+
function dr(a, o) {
|
|
1063
1063
|
let i = o + "";
|
|
1064
1064
|
for (; i.length < a; ) i = "0" + i;
|
|
1065
1065
|
return i;
|
|
@@ -1086,34 +1086,34 @@ function pa({
|
|
|
1086
1086
|
name: i,
|
|
1087
1087
|
placeholder: c = "",
|
|
1088
1088
|
title: d = "",
|
|
1089
|
-
error:
|
|
1090
|
-
hide:
|
|
1091
|
-
edit:
|
|
1089
|
+
error: k = "",
|
|
1090
|
+
hide: C = !1,
|
|
1091
|
+
edit: b = !0,
|
|
1092
1092
|
active: l = !0,
|
|
1093
|
-
after:
|
|
1093
|
+
after: p = "",
|
|
1094
1094
|
show: n = !0,
|
|
1095
1095
|
course: s = 100,
|
|
1096
|
-
view:
|
|
1096
|
+
view: w,
|
|
1097
1097
|
type: j,
|
|
1098
1098
|
onSave: F,
|
|
1099
1099
|
className: U = "",
|
|
1100
1100
|
isClear: D = !1
|
|
1101
1101
|
}) {
|
|
1102
|
-
let O = !!(
|
|
1103
|
-
let
|
|
1104
|
-
|
|
1102
|
+
let O = !!(C && (a === "" || a === void 0)), y = (E) => j === "multi" ? E.replace(/[^+\d.+-]/g, "") : E.replace(/[^+\d.]/g, ""), P = (E, G) => {
|
|
1103
|
+
let g = document.createRange(), v = window.getSelection();
|
|
1104
|
+
g.setStart(G.childNodes[0], E), g.collapse(!0), v.removeAllRanges(), v.addRange(g), G.focus();
|
|
1105
1105
|
}, K = (E) => {
|
|
1106
1106
|
o == null || o({
|
|
1107
|
-
value:
|
|
1107
|
+
value: y(E.target.textContent) * s,
|
|
1108
1108
|
name: i
|
|
1109
|
-
}), E.target.textContent =
|
|
1109
|
+
}), E.target.textContent = y(E.target.textContent), E.target.textContent.length > 0 && P(E.target.textContent.length, E.target);
|
|
1110
1110
|
}, I = (E) => {
|
|
1111
|
-
Z.Blur(E), E.target.textContent === "" && (E.target.textContent = 0), F == null || F({ value:
|
|
1112
|
-
value:
|
|
1111
|
+
Z.Blur(E), E.target.textContent === "" && (E.target.textContent = 0), F == null || F({ value: y(E.target.textContent) * s, name: i }), o == null || o({
|
|
1112
|
+
value: y(E.target.textContent) * s,
|
|
1113
1113
|
name: i
|
|
1114
1114
|
}), E.target.textContent = It(E.target.textContent);
|
|
1115
|
-
},
|
|
1116
|
-
E.target.textContent =
|
|
1115
|
+
}, $ = (E) => {
|
|
1116
|
+
E.target.textContent = y(E.target.textContent);
|
|
1117
1117
|
}, q = (E) => {
|
|
1118
1118
|
E.key === "Enter" && E.preventDefault();
|
|
1119
1119
|
}, W = (E) => {
|
|
@@ -1122,9 +1122,9 @@ function pa({
|
|
|
1122
1122
|
}).catch((G) => {
|
|
1123
1123
|
});
|
|
1124
1124
|
};
|
|
1125
|
-
if (!(
|
|
1125
|
+
if (!(b && l) && !n || !(b && l) && O) return "";
|
|
1126
1126
|
const N = {};
|
|
1127
|
-
return N.inputMode = "decimal", c && (N.placeholder = c),
|
|
1127
|
+
return N.inputMode = "decimal", c && (N.placeholder = c), b && l && (N.edit = ""), /* @__PURE__ */ f.jsx(
|
|
1128
1128
|
he,
|
|
1129
1129
|
{
|
|
1130
1130
|
type: "input",
|
|
@@ -1139,10 +1139,10 @@ function pa({
|
|
|
1139
1139
|
onPaste: W,
|
|
1140
1140
|
onBlur: I,
|
|
1141
1141
|
onKeyDown: q,
|
|
1142
|
-
onFocus:
|
|
1143
|
-
contentEditable:
|
|
1142
|
+
onFocus: $,
|
|
1143
|
+
contentEditable: b && l ? Z.ContentEditable : "false",
|
|
1144
1144
|
suppressContentEditableWarning: !0,
|
|
1145
|
-
"data-after":
|
|
1145
|
+
"data-after": p,
|
|
1146
1146
|
children: !c || a ? It(a) : ""
|
|
1147
1147
|
}
|
|
1148
1148
|
)
|
|
@@ -1158,36 +1158,36 @@ function ya({
|
|
|
1158
1158
|
edit: i = !0,
|
|
1159
1159
|
active: c = !0,
|
|
1160
1160
|
className: d,
|
|
1161
|
-
placeholder:
|
|
1162
|
-
max:
|
|
1163
|
-
min:
|
|
1161
|
+
placeholder: k,
|
|
1162
|
+
max: C,
|
|
1163
|
+
min: b,
|
|
1164
1164
|
onValue: l,
|
|
1165
|
-
icon:
|
|
1165
|
+
icon: p,
|
|
1166
1166
|
name: n = "",
|
|
1167
1167
|
value: s,
|
|
1168
|
-
after:
|
|
1168
|
+
after: w
|
|
1169
1169
|
}) {
|
|
1170
1170
|
let [j, F] = R.useState(
|
|
1171
1171
|
s === void 0 ? /* @__PURE__ */ new Date() : s
|
|
1172
1172
|
);
|
|
1173
1173
|
const U = R.useRef(null), [D, O] = R.useState(!1);
|
|
1174
|
-
let
|
|
1174
|
+
let y = !i && c;
|
|
1175
1175
|
R.useEffect(() => {
|
|
1176
1176
|
F(s === void 0 ? /* @__PURE__ */ new Date() : s);
|
|
1177
1177
|
}, [s]);
|
|
1178
|
-
let P = (
|
|
1179
|
-
F(
|
|
1180
|
-
}, K = (
|
|
1181
|
-
const q =
|
|
1178
|
+
let P = ($) => {
|
|
1179
|
+
F($), l == null || l({ value: $, name: n });
|
|
1180
|
+
}, K = ($) => {
|
|
1181
|
+
const q = $.target.getBoundingClientRect(), W = q.left, N = q.bottom, E = q.top;
|
|
1182
1182
|
U.position = { x: W, b: N, y: E }, O(!0);
|
|
1183
1183
|
};
|
|
1184
1184
|
const I = {};
|
|
1185
|
-
return
|
|
1186
|
-
|
|
1185
|
+
return k && (I.placeholder = k), y ? /* @__PURE__ */ f.jsx(f.Fragment, {}) : /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
1186
|
+
p ? p() : /* @__PURE__ */ f.jsxs(
|
|
1187
1187
|
"dl",
|
|
1188
1188
|
{
|
|
1189
1189
|
"data-field": "date",
|
|
1190
|
-
className: [Q.l, d].filter((
|
|
1190
|
+
className: [Q.l, d].filter(($) => $ !== void 0).join(" "),
|
|
1191
1191
|
children: [
|
|
1192
1192
|
a ? /* @__PURE__ */ f.jsx("dt", { className: Q.t, children: a }) : "",
|
|
1193
1193
|
/* @__PURE__ */ f.jsxs(
|
|
@@ -1199,7 +1199,7 @@ function ya({
|
|
|
1199
1199
|
"data-edit": (i && c) + "",
|
|
1200
1200
|
children: [
|
|
1201
1201
|
yr(j, "dd.mm.yyyy"),
|
|
1202
|
-
|
|
1202
|
+
w
|
|
1203
1203
|
]
|
|
1204
1204
|
}
|
|
1205
1205
|
),
|
|
@@ -1214,8 +1214,8 @@ function ya({
|
|
|
1214
1214
|
position: U.position,
|
|
1215
1215
|
onValue: P,
|
|
1216
1216
|
date: j,
|
|
1217
|
-
max:
|
|
1218
|
-
min:
|
|
1217
|
+
max: C,
|
|
1218
|
+
min: b,
|
|
1219
1219
|
onOpen: O,
|
|
1220
1220
|
className: d
|
|
1221
1221
|
},
|
|
@@ -1231,59 +1231,59 @@ const mr = ({
|
|
|
1231
1231
|
position: i,
|
|
1232
1232
|
max: c,
|
|
1233
1233
|
min: d,
|
|
1234
|
-
className:
|
|
1235
|
-
onOpen:
|
|
1234
|
+
className: k,
|
|
1235
|
+
onOpen: C
|
|
1236
1236
|
}) => {
|
|
1237
|
-
let
|
|
1238
|
-
y: parseInt(
|
|
1239
|
-
d: parseInt(
|
|
1240
|
-
m: parseInt(
|
|
1237
|
+
let b = /* @__PURE__ */ new Date(), l = new Date(a), p = {
|
|
1238
|
+
y: parseInt(b.getFullYear()),
|
|
1239
|
+
d: parseInt(b.getDate()),
|
|
1240
|
+
m: parseInt(b.getMonth()) + 1
|
|
1241
1241
|
}, n = {
|
|
1242
1242
|
y: parseInt(l.getFullYear()),
|
|
1243
1243
|
d: parseInt(l.getDate()),
|
|
1244
1244
|
m: parseInt(l.getMonth()) + 1
|
|
1245
|
-
}, [s,
|
|
1246
|
-
let
|
|
1247
|
-
return
|
|
1245
|
+
}, [s, w] = R.useState({ y: n.y, m: n.m }), j = (g) => {
|
|
1246
|
+
let v = g.getDay();
|
|
1247
|
+
return v === 0 && (v = 7), v - 1;
|
|
1248
1248
|
}, F = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"], U = s.m - 1, D = new Date(s.y, U), O = [];
|
|
1249
|
-
for (let
|
|
1249
|
+
for (let g = 0; g < j(D); g++)
|
|
1250
1250
|
O.push(0);
|
|
1251
1251
|
for (; D.getMonth() === U; )
|
|
1252
1252
|
O.push(D.getDate()), D.setDate(D.getDate() + 1);
|
|
1253
|
-
let
|
|
1254
|
-
|
|
1253
|
+
let y = () => {
|
|
1254
|
+
C(!1);
|
|
1255
1255
|
}, P = () => {
|
|
1256
|
-
|
|
1256
|
+
$(s.m + 1, s.y);
|
|
1257
1257
|
}, K = () => {
|
|
1258
|
-
|
|
1259
|
-
}, I = (
|
|
1258
|
+
$(s.m - 1, s.y);
|
|
1259
|
+
}, I = (g) => {
|
|
1260
1260
|
o(
|
|
1261
|
-
s.y + "-" + At(2, s.m) + "-" + At(2,
|
|
1262
|
-
),
|
|
1263
|
-
},
|
|
1264
|
-
|
|
1261
|
+
s.y + "-" + At(2, s.m) + "-" + At(2, g)
|
|
1262
|
+
), y();
|
|
1263
|
+
}, $ = (g, v) => {
|
|
1264
|
+
v = g > 12 ? v + 1 : g < 1 ? v - 1 : v, g = g > 12 ? 1 : g < 1 ? 12 : g, w({ y: v, m: g });
|
|
1265
1265
|
};
|
|
1266
|
-
const q = (
|
|
1267
|
-
let
|
|
1266
|
+
const q = (g) => p.y === s.y && p.m === s.m && p.d === g ? { "data-active": "true" } : {}, W = (g) => n.y === s.y && n.m === s.m && n.d === g ? { "data-current": "true" } : {}, N = (g) => {
|
|
1267
|
+
let v = !0;
|
|
1268
1268
|
if (c) {
|
|
1269
|
-
let M = c.getTime(), B = new Date(s.y, s.m - 1,
|
|
1270
|
-
M < B && (
|
|
1269
|
+
let M = c.getTime(), B = new Date(s.y, s.m - 1, g).getTime();
|
|
1270
|
+
M < B && (v = !1);
|
|
1271
1271
|
}
|
|
1272
1272
|
if (d) {
|
|
1273
|
-
let M = d.getTime(), B = new Date(s.y, s.m - 1,
|
|
1274
|
-
M > B && (
|
|
1273
|
+
let M = d.getTime(), B = new Date(s.y, s.m - 1, g).getTime();
|
|
1274
|
+
M > B && (v = !1);
|
|
1275
1275
|
}
|
|
1276
|
-
return
|
|
1276
|
+
return v;
|
|
1277
1277
|
};
|
|
1278
1278
|
let E = window.innerHeight - i.y < 320 ? i.y - 312 : i.b, G = window.innerWidth - i.x < 265 ? i.x - 235 : i.x;
|
|
1279
1279
|
return /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
1280
|
-
/* @__PURE__ */ f.jsx("div", { className: Ct.o, onClick: () =>
|
|
1280
|
+
/* @__PURE__ */ f.jsx("div", { className: Ct.o, onClick: () => y() }),
|
|
1281
1281
|
/* @__PURE__ */ f.jsxs(
|
|
1282
1282
|
"div",
|
|
1283
1283
|
{
|
|
1284
1284
|
className: [
|
|
1285
1285
|
Ct.c,
|
|
1286
|
-
|
|
1286
|
+
k && k + "-backdrop"
|
|
1287
1287
|
].join(" "),
|
|
1288
1288
|
style: { top: E + "px", left: G + "px" },
|
|
1289
1289
|
children: [
|
|
@@ -1317,16 +1317,16 @@ const mr = ({
|
|
|
1317
1317
|
) })
|
|
1318
1318
|
] }),
|
|
1319
1319
|
/* @__PURE__ */ f.jsxs("div", { "grid-calendar": "", children: [
|
|
1320
|
-
F.map((
|
|
1321
|
-
O.map((
|
|
1320
|
+
F.map((g, v) => /* @__PURE__ */ f.jsx("p", { children: g }, "v" + v)),
|
|
1321
|
+
O.map((g, v) => /* @__PURE__ */ f.jsx("span", { children: g !== 0 && N(g) ? /* @__PURE__ */ f.jsx(
|
|
1322
1322
|
"b",
|
|
1323
1323
|
{
|
|
1324
|
-
...q(
|
|
1325
|
-
...W(
|
|
1326
|
-
onClick: () => I(
|
|
1327
|
-
children:
|
|
1324
|
+
...q(g),
|
|
1325
|
+
...W(g),
|
|
1326
|
+
onClick: () => I(g),
|
|
1327
|
+
children: g
|
|
1328
1328
|
}
|
|
1329
|
-
) : /* @__PURE__ */ f.jsx("p", { ...q(
|
|
1329
|
+
) : /* @__PURE__ */ f.jsx("p", { ...q(g), ...W(g), children: g !== 0 ? g : "" }) }, v))
|
|
1330
1330
|
] })
|
|
1331
1331
|
]
|
|
1332
1332
|
}
|
|
@@ -1377,14 +1377,14 @@ function va({
|
|
|
1377
1377
|
name: i,
|
|
1378
1378
|
placeholder: c = "",
|
|
1379
1379
|
title: d = "",
|
|
1380
|
-
label:
|
|
1381
|
-
hide:
|
|
1382
|
-
edit:
|
|
1380
|
+
label: k = "",
|
|
1381
|
+
hide: C = !1,
|
|
1382
|
+
edit: b = !0,
|
|
1383
1383
|
active: l = !0,
|
|
1384
|
-
after:
|
|
1384
|
+
after: p = "",
|
|
1385
1385
|
show: n = !0,
|
|
1386
1386
|
maxLength: s,
|
|
1387
|
-
error:
|
|
1387
|
+
error: w = "",
|
|
1388
1388
|
onSave: j,
|
|
1389
1389
|
className: F = "",
|
|
1390
1390
|
isCopy: U = !0
|
|
@@ -1393,25 +1393,25 @@ function va({
|
|
|
1393
1393
|
o == null || o({ value: I.target.innerText, name: i || "" });
|
|
1394
1394
|
}, O = (I) => {
|
|
1395
1395
|
s && I.target.textContent.trim().length >= s && I.key !== "Backspace" && I.preventDefault(), I.key === "Enter" && I.preventDefault();
|
|
1396
|
-
},
|
|
1397
|
-
I.preventDefault(), navigator.clipboard.readText().then((
|
|
1396
|
+
}, y = (I) => {
|
|
1397
|
+
I.preventDefault(), navigator.clipboard.readText().then(($) => {
|
|
1398
1398
|
if (s) {
|
|
1399
1399
|
let q = I.target.textContent.length;
|
|
1400
1400
|
if (q >= s) return;
|
|
1401
|
-
s -= q,
|
|
1401
|
+
s -= q, $ = $.slice(0, s);
|
|
1402
1402
|
}
|
|
1403
1403
|
window.document.execCommand(
|
|
1404
1404
|
"insertText",
|
|
1405
1405
|
!1,
|
|
1406
|
-
|
|
1406
|
+
$.replace(/(\r\n|\n|\r)/gm, " ")
|
|
1407
1407
|
);
|
|
1408
|
-
}).catch((
|
|
1408
|
+
}).catch(($) => {
|
|
1409
1409
|
});
|
|
1410
1410
|
};
|
|
1411
|
-
if (
|
|
1412
|
-
if (!(
|
|
1411
|
+
if (C) return /* @__PURE__ */ f.jsx(f.Fragment, {});
|
|
1412
|
+
if (!(b && l) && !n) return "";
|
|
1413
1413
|
const P = {};
|
|
1414
|
-
c && (P.placeholder = c),
|
|
1414
|
+
c && (P.placeholder = c), b && l && (P.edit = "");
|
|
1415
1415
|
const K = (I) => {
|
|
1416
1416
|
Z.Blur(I), j == null || j({ value: I.target.textContent.trim(), name: i || "" });
|
|
1417
1417
|
};
|
|
@@ -1419,18 +1419,18 @@ function va({
|
|
|
1419
1419
|
he,
|
|
1420
1420
|
{
|
|
1421
1421
|
type: "note",
|
|
1422
|
-
title: d ||
|
|
1423
|
-
error:
|
|
1422
|
+
title: d || k,
|
|
1423
|
+
error: w,
|
|
1424
1424
|
element_blok: { className: [F] },
|
|
1425
1425
|
element_input: { className: [Q.n] },
|
|
1426
1426
|
children: /* @__PURE__ */ f.jsx(
|
|
1427
1427
|
"div",
|
|
1428
1428
|
{
|
|
1429
|
-
onPaste:
|
|
1429
|
+
onPaste: y,
|
|
1430
1430
|
onInput: D,
|
|
1431
1431
|
onBlur: K,
|
|
1432
1432
|
onKeyDown: O,
|
|
1433
|
-
contentEditable:
|
|
1433
|
+
contentEditable: b && l ? Z.ContentEditable : "false",
|
|
1434
1434
|
suppressContentEditableWarning: !0,
|
|
1435
1435
|
...P,
|
|
1436
1436
|
children: a
|
|
@@ -2827,70 +2827,70 @@ function ga({
|
|
|
2827
2827
|
onSave: i,
|
|
2828
2828
|
name: c = "",
|
|
2829
2829
|
placeholder: d = "",
|
|
2830
|
-
title:
|
|
2831
|
-
label:
|
|
2832
|
-
error:
|
|
2830
|
+
title: k = "",
|
|
2831
|
+
label: C = "",
|
|
2832
|
+
error: b = "",
|
|
2833
2833
|
hide: l = !1,
|
|
2834
|
-
edit:
|
|
2834
|
+
edit: p = !0,
|
|
2835
2835
|
active: n = !0,
|
|
2836
2836
|
after: s = "",
|
|
2837
|
-
show:
|
|
2837
|
+
show: w = !0,
|
|
2838
2838
|
view: j,
|
|
2839
2839
|
className: F = ""
|
|
2840
2840
|
}) {
|
|
2841
|
-
|
|
2842
|
-
let D = "+_(___) ___-__-__", O = !0,
|
|
2841
|
+
p = p !== void 0 ? p : !0, n = n !== void 0 ? n : !0, l = !!(l && (a === "" || a === void 0)) && !(p && n), R.useRef(null);
|
|
2842
|
+
let D = "+_(___) ___-__-__", O = !0, y = 0, P = (g, v) => {
|
|
2843
2843
|
let M = document.createRange(), B = window.getSelection();
|
|
2844
|
-
M.setStart(
|
|
2845
|
-
}, K = (
|
|
2846
|
-
let
|
|
2847
|
-
|
|
2848
|
-
}, I = (
|
|
2849
|
-
|
|
2850
|
-
window.document.execCommand("insertText", !1,
|
|
2851
|
-
}).catch((
|
|
2844
|
+
M.setStart(v.childNodes[0], g), M.collapse(!0), B.removeAllRanges(), B.addRange(M), v.focus();
|
|
2845
|
+
}, K = (g) => {
|
|
2846
|
+
let v = $(g.target.textContent);
|
|
2847
|
+
g.target.textContent = v.q, v.i = v.q.lastIndexOf(v.v.substr(-1)), v.i < v.q.length && v.q !== D ? v.i++ : v.i = v.q.indexOf("_"), P(v.i, g.target), o && o({ value: v.q.replace(/\D/g, ""), name: c || "" });
|
|
2848
|
+
}, I = (g) => {
|
|
2849
|
+
g.preventDefault(), navigator.clipboard.readText().then((v) => {
|
|
2850
|
+
window.document.execCommand("insertText", !1, v);
|
|
2851
|
+
}).catch((v) => {
|
|
2852
2852
|
});
|
|
2853
|
-
},
|
|
2854
|
-
let
|
|
2853
|
+
}, $ = (g) => {
|
|
2854
|
+
let v = 0, M = "", B = g.replace(/\D/g, "");
|
|
2855
2855
|
B === "" && (O = !0);
|
|
2856
2856
|
let te = B.split(""), H = "";
|
|
2857
2857
|
te.forEach((se) => {
|
|
2858
|
-
O && (H += se, Et[H] !== void 0 && O ? (O = !1, D = Et[H].mask.replace(new RegExp("[0-9]", "g"), "_"), M = Et[H].code) : (O && (
|
|
2858
|
+
O && (H += se, Et[H] !== void 0 && O ? (O = !1, D = Et[H].mask.replace(new RegExp("[0-9]", "g"), "_"), M = Et[H].code) : (O && (y = ("" + H).length, D = `+${H}_(___) ___-__-__`.replace(
|
|
2859
2859
|
new RegExp("[0-9]", "g"),
|
|
2860
2860
|
"_"
|
|
2861
|
-
), M = ""),
|
|
2861
|
+
), M = ""), y > ("" + H).length && (O = !0, D = `+${H}_(___) ___-__-__`.replace(
|
|
2862
2862
|
new RegExp("[0-9]", "g"),
|
|
2863
2863
|
"_"
|
|
2864
2864
|
), M = "")));
|
|
2865
2865
|
});
|
|
2866
2866
|
let ae = D.replace(/\D/g, "");
|
|
2867
2867
|
return ae.length >= B.length && (B = ae), { q: D.replace(/[_\d]/g, function() {
|
|
2868
|
-
return B.charAt(
|
|
2869
|
-
}), i:
|
|
2870
|
-
}, q = (
|
|
2871
|
-
|
|
2868
|
+
return B.charAt(v++) || "_";
|
|
2869
|
+
}), i: v, v: B, f: M };
|
|
2870
|
+
}, q = (g) => {
|
|
2871
|
+
g.preventDefault(), navigator.clipboard.writeText(g.target.textContent.replace(/\D/g, "")).then(
|
|
2872
2872
|
function() {
|
|
2873
2873
|
xt.Copy("Данные в буфер обмене");
|
|
2874
2874
|
},
|
|
2875
|
-
function(
|
|
2875
|
+
function(v) {
|
|
2876
2876
|
}
|
|
2877
2877
|
);
|
|
2878
|
-
}, W =
|
|
2879
|
-
|
|
2878
|
+
}, W = $(a), N = (g) => {
|
|
2879
|
+
g.key === "Enter" && g.preventDefault();
|
|
2880
2880
|
};
|
|
2881
|
-
const E = (
|
|
2882
|
-
Z.Blur(
|
|
2883
|
-
value:
|
|
2881
|
+
const E = (g) => {
|
|
2882
|
+
Z.Blur(g), i && i({
|
|
2883
|
+
value: g.target.textContent.replace(/\D/g, ""),
|
|
2884
2884
|
name: c || ""
|
|
2885
2885
|
});
|
|
2886
2886
|
};
|
|
2887
2887
|
let G = {};
|
|
2888
|
-
return
|
|
2888
|
+
return p && n ? (G.edit = "true", G.contentEditable = Z.ContentEditable) : G.contentEditable = "false", d && (G.placeholder = d), l ? /* @__PURE__ */ f.jsx(f.Fragment, {}) : /* @__PURE__ */ f.jsx(
|
|
2889
2889
|
he,
|
|
2890
2890
|
{
|
|
2891
2891
|
type: "input",
|
|
2892
|
-
title:
|
|
2893
|
-
error:
|
|
2892
|
+
title: k || C,
|
|
2893
|
+
error: b,
|
|
2894
2894
|
element_blok: { className: F },
|
|
2895
2895
|
element_input: { className: [Q.w] },
|
|
2896
2896
|
children: /* @__PURE__ */ f.jsx(
|
|
@@ -2916,20 +2916,20 @@ function ha({
|
|
|
2916
2916
|
name: i = "",
|
|
2917
2917
|
inputmode: c = "text",
|
|
2918
2918
|
placeholder: d = "",
|
|
2919
|
-
title:
|
|
2920
|
-
label:
|
|
2921
|
-
show:
|
|
2919
|
+
title: k = "",
|
|
2920
|
+
label: C = "",
|
|
2921
|
+
show: b = !0,
|
|
2922
2922
|
hide: l = !1,
|
|
2923
|
-
edit:
|
|
2923
|
+
edit: p = !0,
|
|
2924
2924
|
active: n = !0,
|
|
2925
2925
|
maxLength: s,
|
|
2926
|
-
onSave:
|
|
2926
|
+
onSave: w,
|
|
2927
2927
|
className: j = "",
|
|
2928
2928
|
spellCheck: F = !0,
|
|
2929
2929
|
isCopy: U = !0,
|
|
2930
2930
|
isReload: D = !1,
|
|
2931
2931
|
after: O = "",
|
|
2932
|
-
before:
|
|
2932
|
+
before: y = "",
|
|
2933
2933
|
error: P = ""
|
|
2934
2934
|
}) {
|
|
2935
2935
|
const K = !!(l && (a === "" || a === void 0)), I = (E) => {
|
|
@@ -2938,14 +2938,14 @@ function ha({
|
|
|
2938
2938
|
name: i,
|
|
2939
2939
|
reload: D
|
|
2940
2940
|
});
|
|
2941
|
-
},
|
|
2941
|
+
}, $ = (E) => {
|
|
2942
2942
|
s && E.target.textContent.trim().length >= s && E.key !== "Backspace" && E.preventDefault(), E.key === "Enter" && E.preventDefault();
|
|
2943
2943
|
}, q = (E) => {
|
|
2944
2944
|
E.preventDefault(), navigator.clipboard.readText().then((G) => {
|
|
2945
2945
|
if (s) {
|
|
2946
|
-
let
|
|
2947
|
-
if (
|
|
2948
|
-
s -=
|
|
2946
|
+
let g = E.target.textContent.length;
|
|
2947
|
+
if (g >= s) return;
|
|
2948
|
+
s -= g, G = G.slice(0, s);
|
|
2949
2949
|
}
|
|
2950
2950
|
window.document.execCommand(
|
|
2951
2951
|
"insertText",
|
|
@@ -2955,32 +2955,32 @@ function ha({
|
|
|
2955
2955
|
}).catch((G) => {
|
|
2956
2956
|
});
|
|
2957
2957
|
};
|
|
2958
|
-
if (!(
|
|
2958
|
+
if (!(p && n) && !b || !(p && n) && K) return "";
|
|
2959
2959
|
const W = {};
|
|
2960
|
-
d && (W.placeholder = d),
|
|
2960
|
+
d && (W.placeholder = d), p && n && (W.edit = "");
|
|
2961
2961
|
const N = (E) => {
|
|
2962
|
-
Z.Blur(E),
|
|
2962
|
+
Z.Blur(E), w == null || w({ value: E.target.textContent.trim(), name: i });
|
|
2963
2963
|
};
|
|
2964
2964
|
return /* @__PURE__ */ f.jsxs(
|
|
2965
2965
|
he,
|
|
2966
2966
|
{
|
|
2967
2967
|
type: "input",
|
|
2968
|
-
title:
|
|
2968
|
+
title: k || C,
|
|
2969
2969
|
error: P,
|
|
2970
2970
|
element_blok: { className: [j] },
|
|
2971
2971
|
element_input: { className: [Q.w] },
|
|
2972
2972
|
children: [
|
|
2973
|
-
|
|
2973
|
+
y,
|
|
2974
2974
|
/* @__PURE__ */ f.jsx(
|
|
2975
2975
|
"div",
|
|
2976
2976
|
{
|
|
2977
2977
|
onBlur: N,
|
|
2978
2978
|
onPaste: q,
|
|
2979
2979
|
onInput: I,
|
|
2980
|
-
onKeyDown:
|
|
2980
|
+
onKeyDown: $,
|
|
2981
2981
|
spellCheck: F,
|
|
2982
2982
|
inputMode: c || "text",
|
|
2983
|
-
contentEditable:
|
|
2983
|
+
contentEditable: p && n ? Z.ContentEditable : "false",
|
|
2984
2984
|
suppressContentEditableWarning: !0,
|
|
2985
2985
|
...W,
|
|
2986
2986
|
children: a
|
|
@@ -2997,35 +2997,35 @@ function ka({
|
|
|
2997
2997
|
active: i,
|
|
2998
2998
|
max: c,
|
|
2999
2999
|
edit: d,
|
|
3000
|
-
title:
|
|
3001
|
-
error:
|
|
3002
|
-
show:
|
|
3000
|
+
title: k,
|
|
3001
|
+
error: C,
|
|
3002
|
+
show: b,
|
|
3003
3003
|
hide: l,
|
|
3004
|
-
value:
|
|
3004
|
+
value: p,
|
|
3005
3005
|
placeholder: n,
|
|
3006
3006
|
className: s,
|
|
3007
|
-
maxLength:
|
|
3007
|
+
maxLength: w,
|
|
3008
3008
|
name: j = "",
|
|
3009
3009
|
after: F = "",
|
|
3010
3010
|
before: U = "",
|
|
3011
3011
|
view: D
|
|
3012
3012
|
}) {
|
|
3013
|
-
d = d !== void 0 ? d : !0, i = i !== void 0 ? i : !0, l = !!(l && (
|
|
3014
|
-
let
|
|
3013
|
+
d = d !== void 0 ? d : !0, i = i !== void 0 ? i : !0, l = !!(l && (p === "" || p === void 0)) && !(d && i), n = n !== void 0 ? n : "", c = c !== void 0 ? c : 99;
|
|
3014
|
+
let y = !1, P = (N) => {
|
|
3015
3015
|
a == null || a({ value: N.target.textContent, name: j });
|
|
3016
3016
|
}, K = (N) => {
|
|
3017
|
-
if (!(
|
|
3018
|
-
if (N.which === 17 || N.which === 91) return
|
|
3017
|
+
if (!(y && N.which === 86)) {
|
|
3018
|
+
if (N.which === 17 || N.which === 91) return y = !0;
|
|
3019
3019
|
N.key !== "Backspace" && (N.target.textContent.length === c && N.preventDefault(), N.key === "Enter" && N.preventDefault(), isNaN(N.key) && N.preventDefault());
|
|
3020
3020
|
}
|
|
3021
3021
|
}, I = (N) => {
|
|
3022
|
-
if (N.which === 17 || N.which === 91) return
|
|
3023
|
-
},
|
|
3022
|
+
if (N.which === 17 || N.which === 91) return y = !1;
|
|
3023
|
+
}, $ = (N) => {
|
|
3024
3024
|
N.preventDefault(), navigator.clipboard.readText().then((E) => {
|
|
3025
|
-
if (E = E.replace(/(?!^\+|\d)./g, ""),
|
|
3025
|
+
if (E = E.replace(/(?!^\+|\d)./g, ""), w) {
|
|
3026
3026
|
let G = N.target.textContent.length;
|
|
3027
|
-
if (G >=
|
|
3028
|
-
|
|
3027
|
+
if (G >= w) return;
|
|
3028
|
+
w -= G, E = E.slice(0, w);
|
|
3029
3029
|
}
|
|
3030
3030
|
window.document.execCommand("insertText", !1, "" + E);
|
|
3031
3031
|
}).catch((E) => {
|
|
@@ -3039,14 +3039,14 @@ function ka({
|
|
|
3039
3039
|
he,
|
|
3040
3040
|
{
|
|
3041
3041
|
type: "numeric",
|
|
3042
|
-
title:
|
|
3043
|
-
error:
|
|
3042
|
+
title: k,
|
|
3043
|
+
error: C,
|
|
3044
3044
|
element_blok: { className: [s] },
|
|
3045
3045
|
element_input: { className: [Q.w] },
|
|
3046
3046
|
children: /* @__PURE__ */ f.jsx(
|
|
3047
3047
|
"div",
|
|
3048
3048
|
{
|
|
3049
|
-
onPaste:
|
|
3049
|
+
onPaste: $,
|
|
3050
3050
|
onInput: P,
|
|
3051
3051
|
onBlur: q,
|
|
3052
3052
|
onKeyDown: K,
|
|
@@ -3055,7 +3055,7 @@ function ka({
|
|
|
3055
3055
|
contentEditable: d && i ? Z.ContentEditable : "false",
|
|
3056
3056
|
suppressContentEditableWarning: !0,
|
|
3057
3057
|
...W,
|
|
3058
|
-
children:
|
|
3058
|
+
children: p
|
|
3059
3059
|
}
|
|
3060
3060
|
)
|
|
3061
3061
|
}
|
|
@@ -3075,15 +3075,15 @@ var $t;
|
|
|
3075
3075
|
function vr() {
|
|
3076
3076
|
if ($t) return gt;
|
|
3077
3077
|
$t = 1;
|
|
3078
|
-
var a = R, o = Symbol.for("react.element"), i = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, d = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
|
|
3079
|
-
function
|
|
3080
|
-
var n, s = {},
|
|
3081
|
-
|
|
3082
|
-
for (n in l) c.call(l, n) && !
|
|
3083
|
-
if (
|
|
3084
|
-
return { $$typeof: o, type:
|
|
3078
|
+
var a = R, o = Symbol.for("react.element"), i = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, d = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, k = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
3079
|
+
function C(b, l, p) {
|
|
3080
|
+
var n, s = {}, w = null, j = null;
|
|
3081
|
+
p !== void 0 && (w = "" + p), l.key !== void 0 && (w = "" + l.key), l.ref !== void 0 && (j = l.ref);
|
|
3082
|
+
for (n in l) c.call(l, n) && !k.hasOwnProperty(n) && (s[n] = l[n]);
|
|
3083
|
+
if (b && b.defaultProps) for (n in l = b.defaultProps, l) s[n] === void 0 && (s[n] = l[n]);
|
|
3084
|
+
return { $$typeof: o, type: b, key: w, ref: j, props: s, _owner: d.current };
|
|
3085
3085
|
}
|
|
3086
|
-
return gt.Fragment = i, gt.jsx =
|
|
3086
|
+
return gt.Fragment = i, gt.jsx = C, gt.jsxs = C, gt;
|
|
3087
3087
|
}
|
|
3088
3088
|
var kt = {};
|
|
3089
3089
|
/**
|
|
@@ -3098,7 +3098,7 @@ var kt = {};
|
|
|
3098
3098
|
var Bt;
|
|
3099
3099
|
function gr() {
|
|
3100
3100
|
return Bt || (Bt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
3101
|
-
var a = R, o = Symbol.for("react.element"), i = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), d = Symbol.for("react.strict_mode"),
|
|
3101
|
+
var a = R, o = Symbol.for("react.element"), i = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), d = Symbol.for("react.strict_mode"), k = Symbol.for("react.profiler"), C = Symbol.for("react.provider"), b = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), n = Symbol.for("react.suspense_list"), s = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), F = Symbol.iterator, U = "@@iterator";
|
|
3102
3102
|
function D(e) {
|
|
3103
3103
|
if (e === null || typeof e != "object")
|
|
3104
3104
|
return null;
|
|
@@ -3106,7 +3106,7 @@ function gr() {
|
|
|
3106
3106
|
return typeof t == "function" ? t : null;
|
|
3107
3107
|
}
|
|
3108
3108
|
var O = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
3109
|
-
function
|
|
3109
|
+
function y(e) {
|
|
3110
3110
|
{
|
|
3111
3111
|
for (var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), _ = 1; _ < t; _++)
|
|
3112
3112
|
r[_ - 1] = arguments[_];
|
|
@@ -3115,18 +3115,18 @@ function gr() {
|
|
|
3115
3115
|
}
|
|
3116
3116
|
function P(e, t, r) {
|
|
3117
3117
|
{
|
|
3118
|
-
var _ = O.ReactDebugCurrentFrame,
|
|
3119
|
-
|
|
3120
|
-
var
|
|
3118
|
+
var _ = O.ReactDebugCurrentFrame, h = _.getStackAddendum();
|
|
3119
|
+
h !== "" && (t += "%s", r = r.concat([h]));
|
|
3120
|
+
var x = r.map(function(m) {
|
|
3121
3121
|
return String(m);
|
|
3122
3122
|
});
|
|
3123
|
-
|
|
3123
|
+
x.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, x);
|
|
3124
3124
|
}
|
|
3125
3125
|
}
|
|
3126
|
-
var K = !1, I = !1,
|
|
3126
|
+
var K = !1, I = !1, $ = !1, q = !1, W = !1, N;
|
|
3127
3127
|
N = Symbol.for("react.module.reference");
|
|
3128
3128
|
function E(e) {
|
|
3129
|
-
return !!(typeof e == "string" || typeof e == "function" || e === c || e ===
|
|
3129
|
+
return !!(typeof e == "string" || typeof e == "function" || e === c || e === k || W || e === d || e === p || e === n || q || e === j || K || I || $ || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === s || e.$$typeof === C || e.$$typeof === b || e.$$typeof === l || // This needs to include all possible module reference object
|
|
3130
3130
|
// types supported by any Flight configuration anywhere since
|
|
3131
3131
|
// we don't know which Flight build this will end up being used
|
|
3132
3132
|
// with.
|
|
@@ -3136,16 +3136,16 @@ function gr() {
|
|
|
3136
3136
|
var _ = e.displayName;
|
|
3137
3137
|
if (_)
|
|
3138
3138
|
return _;
|
|
3139
|
-
var
|
|
3140
|
-
return
|
|
3139
|
+
var h = t.displayName || t.name || "";
|
|
3140
|
+
return h !== "" ? r + "(" + h + ")" : r;
|
|
3141
3141
|
}
|
|
3142
|
-
function
|
|
3142
|
+
function g(e) {
|
|
3143
3143
|
return e.displayName || "Context";
|
|
3144
3144
|
}
|
|
3145
|
-
function
|
|
3145
|
+
function v(e) {
|
|
3146
3146
|
if (e == null)
|
|
3147
3147
|
return null;
|
|
3148
|
-
if (typeof e.tag == "number" &&
|
|
3148
|
+
if (typeof e.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
3149
3149
|
return e.displayName || e.name || null;
|
|
3150
3150
|
if (typeof e == "string")
|
|
3151
3151
|
return e;
|
|
@@ -3154,32 +3154,32 @@ function gr() {
|
|
|
3154
3154
|
return "Fragment";
|
|
3155
3155
|
case i:
|
|
3156
3156
|
return "Portal";
|
|
3157
|
-
case
|
|
3157
|
+
case k:
|
|
3158
3158
|
return "Profiler";
|
|
3159
3159
|
case d:
|
|
3160
3160
|
return "StrictMode";
|
|
3161
|
-
case
|
|
3161
|
+
case p:
|
|
3162
3162
|
return "Suspense";
|
|
3163
3163
|
case n:
|
|
3164
3164
|
return "SuspenseList";
|
|
3165
3165
|
}
|
|
3166
3166
|
if (typeof e == "object")
|
|
3167
3167
|
switch (e.$$typeof) {
|
|
3168
|
-
case
|
|
3168
|
+
case b:
|
|
3169
3169
|
var t = e;
|
|
3170
|
-
return
|
|
3171
|
-
case
|
|
3170
|
+
return g(t) + ".Consumer";
|
|
3171
|
+
case C:
|
|
3172
3172
|
var r = e;
|
|
3173
|
-
return
|
|
3173
|
+
return g(r._context) + ".Provider";
|
|
3174
3174
|
case l:
|
|
3175
3175
|
return G(e, e.render, "ForwardRef");
|
|
3176
3176
|
case s:
|
|
3177
3177
|
var _ = e.displayName || null;
|
|
3178
|
-
return _ !== null ? _ :
|
|
3179
|
-
case
|
|
3180
|
-
var
|
|
3178
|
+
return _ !== null ? _ : v(e.type) || "Memo";
|
|
3179
|
+
case w: {
|
|
3180
|
+
var h = e, x = h._payload, m = h._init;
|
|
3181
3181
|
try {
|
|
3182
|
-
return
|
|
3182
|
+
return v(m(x));
|
|
3183
3183
|
} catch {
|
|
3184
3184
|
return null;
|
|
3185
3185
|
}
|
|
@@ -3246,30 +3246,30 @@ function gr() {
|
|
|
3246
3246
|
})
|
|
3247
3247
|
});
|
|
3248
3248
|
}
|
|
3249
|
-
B < 0 &&
|
|
3249
|
+
B < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
3250
3250
|
}
|
|
3251
3251
|
}
|
|
3252
|
-
var ce = O.ReactCurrentDispatcher,
|
|
3252
|
+
var ce = O.ReactCurrentDispatcher, ue;
|
|
3253
3253
|
function ne(e, t, r) {
|
|
3254
3254
|
{
|
|
3255
|
-
if (
|
|
3255
|
+
if (ue === void 0)
|
|
3256
3256
|
try {
|
|
3257
3257
|
throw Error();
|
|
3258
|
-
} catch (
|
|
3259
|
-
var _ =
|
|
3260
|
-
|
|
3258
|
+
} catch (h) {
|
|
3259
|
+
var _ = h.stack.trim().match(/\n( *(at )?)/);
|
|
3260
|
+
ue = _ && _[1] || "";
|
|
3261
3261
|
}
|
|
3262
3262
|
return `
|
|
3263
|
-
` +
|
|
3263
|
+
` + ue + e;
|
|
3264
3264
|
}
|
|
3265
3265
|
}
|
|
3266
|
-
var
|
|
3266
|
+
var de = !1, oe;
|
|
3267
3267
|
{
|
|
3268
3268
|
var Ke = typeof WeakMap == "function" ? WeakMap : Map;
|
|
3269
3269
|
oe = new Ke();
|
|
3270
3270
|
}
|
|
3271
3271
|
function je(e, t) {
|
|
3272
|
-
if (!e ||
|
|
3272
|
+
if (!e || de)
|
|
3273
3273
|
return "";
|
|
3274
3274
|
{
|
|
3275
3275
|
var r = oe.get(e);
|
|
@@ -3277,11 +3277,11 @@ function gr() {
|
|
|
3277
3277
|
return r;
|
|
3278
3278
|
}
|
|
3279
3279
|
var _;
|
|
3280
|
-
|
|
3281
|
-
var
|
|
3280
|
+
de = !0;
|
|
3281
|
+
var h = Error.prepareStackTrace;
|
|
3282
3282
|
Error.prepareStackTrace = void 0;
|
|
3283
|
-
var
|
|
3284
|
-
|
|
3283
|
+
var x;
|
|
3284
|
+
x = ce.current, ce.current = null, Ue();
|
|
3285
3285
|
try {
|
|
3286
3286
|
if (t) {
|
|
3287
3287
|
var m = function() {
|
|
@@ -3317,14 +3317,14 @@ function gr() {
|
|
|
3317
3317
|
} catch (L) {
|
|
3318
3318
|
if (L && _ && typeof L.stack == "string") {
|
|
3319
3319
|
for (var u = L.stack.split(`
|
|
3320
|
-
`),
|
|
3321
|
-
`), S = u.length - 1, T =
|
|
3320
|
+
`), A = _.stack.split(`
|
|
3321
|
+
`), S = u.length - 1, T = A.length - 1; S >= 1 && T >= 0 && u[S] !== A[T]; )
|
|
3322
3322
|
T--;
|
|
3323
3323
|
for (; S >= 1 && T >= 0; S--, T--)
|
|
3324
|
-
if (u[S] !==
|
|
3324
|
+
if (u[S] !== A[T]) {
|
|
3325
3325
|
if (S !== 1 || T !== 1)
|
|
3326
3326
|
do
|
|
3327
|
-
if (S--, T--, T < 0 || u[S] !==
|
|
3327
|
+
if (S--, T--, T < 0 || u[S] !== A[T]) {
|
|
3328
3328
|
var Y = `
|
|
3329
3329
|
` + u[S].replace(" at new ", " at ");
|
|
3330
3330
|
return e.displayName && Y.includes("<anonymous>") && (Y = Y.replace("<anonymous>", e.displayName)), typeof e == "function" && oe.set(e, Y), Y;
|
|
@@ -3334,7 +3334,7 @@ function gr() {
|
|
|
3334
3334
|
}
|
|
3335
3335
|
}
|
|
3336
3336
|
} finally {
|
|
3337
|
-
|
|
3337
|
+
de = !1, ce.current = x, qe(), Error.prepareStackTrace = h;
|
|
3338
3338
|
}
|
|
3339
3339
|
var X = e ? e.displayName || e.name : "", J = X ? ne(X) : "";
|
|
3340
3340
|
return typeof e == "function" && oe.set(e, J), J;
|
|
@@ -3354,7 +3354,7 @@ function gr() {
|
|
|
3354
3354
|
if (typeof e == "string")
|
|
3355
3355
|
return ne(e);
|
|
3356
3356
|
switch (e) {
|
|
3357
|
-
case
|
|
3357
|
+
case p:
|
|
3358
3358
|
return ne("Suspense");
|
|
3359
3359
|
case n:
|
|
3360
3360
|
return ne("SuspenseList");
|
|
@@ -3365,10 +3365,10 @@ function gr() {
|
|
|
3365
3365
|
return Ge(e.render);
|
|
3366
3366
|
case s:
|
|
3367
3367
|
return _e(e.type, t, r);
|
|
3368
|
-
case
|
|
3369
|
-
var _ = e,
|
|
3368
|
+
case w: {
|
|
3369
|
+
var _ = e, h = _._payload, x = _._init;
|
|
3370
3370
|
try {
|
|
3371
|
-
return _e(
|
|
3371
|
+
return _e(x(h), t, r);
|
|
3372
3372
|
} catch {
|
|
3373
3373
|
}
|
|
3374
3374
|
}
|
|
@@ -3383,22 +3383,22 @@ function gr() {
|
|
|
3383
3383
|
} else
|
|
3384
3384
|
Se.setExtraStackFrame(null);
|
|
3385
3385
|
}
|
|
3386
|
-
function ze(e, t, r, _,
|
|
3386
|
+
function ze(e, t, r, _, h) {
|
|
3387
3387
|
{
|
|
3388
|
-
var
|
|
3388
|
+
var x = Function.call.bind(ee);
|
|
3389
3389
|
for (var m in e)
|
|
3390
|
-
if (
|
|
3390
|
+
if (x(e, m)) {
|
|
3391
3391
|
var u = void 0;
|
|
3392
3392
|
try {
|
|
3393
3393
|
if (typeof e[m] != "function") {
|
|
3394
|
-
var
|
|
3395
|
-
throw
|
|
3394
|
+
var A = Error((_ || "React class") + ": " + r + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
3395
|
+
throw A.name = "Invariant Violation", A;
|
|
3396
3396
|
}
|
|
3397
3397
|
u = e[m](t, m, _, r, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
3398
3398
|
} catch (S) {
|
|
3399
3399
|
u = S;
|
|
3400
3400
|
}
|
|
3401
|
-
u && !(u instanceof Error) && (ie(
|
|
3401
|
+
u && !(u instanceof Error) && (ie(h), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", _ || "React class", r, m, typeof u), ie(null)), u instanceof Error && !(u.message in Ee) && (Ee[u.message] = !0, ie(h), y("Failed %s type: %s", r, u.message), ie(null));
|
|
3402
3402
|
}
|
|
3403
3403
|
}
|
|
3404
3404
|
}
|
|
@@ -3424,7 +3424,7 @@ function gr() {
|
|
|
3424
3424
|
}
|
|
3425
3425
|
function Te(e) {
|
|
3426
3426
|
if (Ze(e))
|
|
3427
|
-
return
|
|
3427
|
+
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e)), Re(e);
|
|
3428
3428
|
}
|
|
3429
3429
|
var Oe = O.ReactCurrentOwner, Ve = {
|
|
3430
3430
|
key: !0,
|
|
@@ -3454,7 +3454,7 @@ function gr() {
|
|
|
3454
3454
|
function tt(e, t) {
|
|
3455
3455
|
{
|
|
3456
3456
|
var r = function() {
|
|
3457
|
-
De || (De = !0,
|
|
3457
|
+
De || (De = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
|
|
3458
3458
|
};
|
|
3459
3459
|
r.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
3460
3460
|
get: r,
|
|
@@ -3465,7 +3465,7 @@ function gr() {
|
|
|
3465
3465
|
function rt(e, t) {
|
|
3466
3466
|
{
|
|
3467
3467
|
var r = function() {
|
|
3468
|
-
Pe || (Pe = !0,
|
|
3468
|
+
Pe || (Pe = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
|
|
3469
3469
|
};
|
|
3470
3470
|
r.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
3471
3471
|
get: r,
|
|
@@ -3473,7 +3473,7 @@ function gr() {
|
|
|
3473
3473
|
});
|
|
3474
3474
|
}
|
|
3475
3475
|
}
|
|
3476
|
-
var at = function(e, t, r, _,
|
|
3476
|
+
var at = function(e, t, r, _, h, x, m) {
|
|
3477
3477
|
var u = {
|
|
3478
3478
|
// This tag allows us to uniquely identify this as a React Element
|
|
3479
3479
|
$$typeof: o,
|
|
@@ -3483,7 +3483,7 @@ function gr() {
|
|
|
3483
3483
|
ref: r,
|
|
3484
3484
|
props: m,
|
|
3485
3485
|
// Record the component responsible for creating this element.
|
|
3486
|
-
_owner:
|
|
3486
|
+
_owner: x
|
|
3487
3487
|
};
|
|
3488
3488
|
return u._store = {}, Object.defineProperty(u._store, "validated", {
|
|
3489
3489
|
configurable: !1,
|
|
@@ -3499,25 +3499,25 @@ function gr() {
|
|
|
3499
3499
|
configurable: !1,
|
|
3500
3500
|
enumerable: !1,
|
|
3501
3501
|
writable: !1,
|
|
3502
|
-
value:
|
|
3502
|
+
value: h
|
|
3503
3503
|
}), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
|
|
3504
3504
|
};
|
|
3505
|
-
function nt(e, t, r, _,
|
|
3505
|
+
function nt(e, t, r, _, h) {
|
|
3506
3506
|
{
|
|
3507
|
-
var
|
|
3508
|
-
r !== void 0 && (Te(r), u = "" + r), Qe(t) && (Te(t.key), u = "" + t.key), Xe(t) && (
|
|
3509
|
-
for (
|
|
3510
|
-
ee.call(t,
|
|
3507
|
+
var x, m = {}, u = null, A = null;
|
|
3508
|
+
r !== void 0 && (Te(r), u = "" + r), Qe(t) && (Te(t.key), u = "" + t.key), Xe(t) && (A = t.ref, et(t));
|
|
3509
|
+
for (x in t)
|
|
3510
|
+
ee.call(t, x) && !Ve.hasOwnProperty(x) && (m[x] = t[x]);
|
|
3511
3511
|
if (e && e.defaultProps) {
|
|
3512
3512
|
var S = e.defaultProps;
|
|
3513
|
-
for (
|
|
3514
|
-
m[
|
|
3513
|
+
for (x in S)
|
|
3514
|
+
m[x] === void 0 && (m[x] = S[x]);
|
|
3515
3515
|
}
|
|
3516
|
-
if (u ||
|
|
3516
|
+
if (u || A) {
|
|
3517
3517
|
var T = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
3518
|
-
u && tt(m, T),
|
|
3518
|
+
u && tt(m, T), A && rt(m, T);
|
|
3519
3519
|
}
|
|
3520
|
-
return at(e, u,
|
|
3520
|
+
return at(e, u, A, h, _, Oe.current, m);
|
|
3521
3521
|
}
|
|
3522
3522
|
}
|
|
3523
3523
|
var me = O.ReactCurrentOwner, Ne = O.ReactDebugCurrentFrame;
|
|
@@ -3536,7 +3536,7 @@ function gr() {
|
|
|
3536
3536
|
function Fe() {
|
|
3537
3537
|
{
|
|
3538
3538
|
if (me.current) {
|
|
3539
|
-
var e =
|
|
3539
|
+
var e = v(me.current.type);
|
|
3540
3540
|
if (e)
|
|
3541
3541
|
return `
|
|
3542
3542
|
|
|
@@ -3571,7 +3571,7 @@ Check the top-level render call using <` + r + ">.");
|
|
|
3571
3571
|
return;
|
|
3572
3572
|
Me[r] = !0;
|
|
3573
3573
|
var _ = "";
|
|
3574
|
-
e && e._owner && e._owner !== me.current && (_ = " It was passed a child from " +
|
|
3574
|
+
e && e._owner && e._owner !== me.current && (_ = " It was passed a child from " + v(e._owner.type) + "."), V(e), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', r, _), V(null);
|
|
3575
3575
|
}
|
|
3576
3576
|
}
|
|
3577
3577
|
function Ae(e, t) {
|
|
@@ -3586,9 +3586,9 @@ Check the top-level render call using <` + r + ">.");
|
|
|
3586
3586
|
else if (ye(e))
|
|
3587
3587
|
e._store && (e._store.validated = !0);
|
|
3588
3588
|
else if (e) {
|
|
3589
|
-
var
|
|
3590
|
-
if (typeof
|
|
3591
|
-
for (var
|
|
3589
|
+
var h = D(e);
|
|
3590
|
+
if (typeof h == "function" && h !== e.entries)
|
|
3591
|
+
for (var x = h.call(e), m; !(m = x.next()).done; )
|
|
3592
3592
|
ye(m.value) && Ie(m.value, t);
|
|
3593
3593
|
}
|
|
3594
3594
|
}
|
|
@@ -3608,14 +3608,14 @@ Check the top-level render call using <` + r + ">.");
|
|
|
3608
3608
|
else
|
|
3609
3609
|
return;
|
|
3610
3610
|
if (r) {
|
|
3611
|
-
var _ =
|
|
3611
|
+
var _ = v(t);
|
|
3612
3612
|
ze(r, e.props, "prop", _, e);
|
|
3613
3613
|
} else if (t.PropTypes !== void 0 && !pe) {
|
|
3614
3614
|
pe = !0;
|
|
3615
|
-
var
|
|
3616
|
-
|
|
3615
|
+
var h = v(t);
|
|
3616
|
+
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", h || "Unknown");
|
|
3617
3617
|
}
|
|
3618
|
-
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved &&
|
|
3618
|
+
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
3619
3619
|
}
|
|
3620
3620
|
}
|
|
3621
3621
|
function st(e) {
|
|
@@ -3623,26 +3623,26 @@ Check the top-level render call using <` + r + ">.");
|
|
|
3623
3623
|
for (var t = Object.keys(e.props), r = 0; r < t.length; r++) {
|
|
3624
3624
|
var _ = t[r];
|
|
3625
3625
|
if (_ !== "children" && _ !== "key") {
|
|
3626
|
-
V(e),
|
|
3626
|
+
V(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", _), V(null);
|
|
3627
3627
|
break;
|
|
3628
3628
|
}
|
|
3629
3629
|
}
|
|
3630
|
-
e.ref !== null && (V(e),
|
|
3630
|
+
e.ref !== null && (V(e), y("Invalid attribute `ref` supplied to `React.Fragment`."), V(null));
|
|
3631
3631
|
}
|
|
3632
3632
|
}
|
|
3633
3633
|
var $e = {};
|
|
3634
|
-
function Be(e, t, r, _,
|
|
3634
|
+
function Be(e, t, r, _, h, x) {
|
|
3635
3635
|
{
|
|
3636
3636
|
var m = E(e);
|
|
3637
3637
|
if (!m) {
|
|
3638
3638
|
var u = "";
|
|
3639
3639
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (u += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
3640
|
-
var
|
|
3641
|
-
|
|
3640
|
+
var A = ot();
|
|
3641
|
+
A ? u += A : u += Fe();
|
|
3642
3642
|
var S;
|
|
3643
|
-
e === null ? S = "null" : fe(e) ? S = "array" : e !== void 0 && e.$$typeof === o ? (S = "<" + (
|
|
3643
|
+
e === null ? S = "null" : fe(e) ? S = "array" : e !== void 0 && e.$$typeof === o ? (S = "<" + (v(e.type) || "Unknown") + " />", u = " Did you accidentally export a JSX literal instead of a component?") : S = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", S, u);
|
|
3644
3644
|
}
|
|
3645
|
-
var T = nt(e, t, r,
|
|
3645
|
+
var T = nt(e, t, r, h, x);
|
|
3646
3646
|
if (T == null)
|
|
3647
3647
|
return T;
|
|
3648
3648
|
if (m) {
|
|
@@ -3654,17 +3654,17 @@ Check the top-level render call using <` + r + ">.");
|
|
|
3654
3654
|
Ae(Y[X], e);
|
|
3655
3655
|
Object.freeze && Object.freeze(Y);
|
|
3656
3656
|
} else
|
|
3657
|
-
|
|
3657
|
+
y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
3658
3658
|
else
|
|
3659
3659
|
Ae(Y, e);
|
|
3660
3660
|
}
|
|
3661
3661
|
if (ee.call(t, "key")) {
|
|
3662
|
-
var J =
|
|
3662
|
+
var J = v(e), L = Object.keys(t).filter(function(mt) {
|
|
3663
3663
|
return mt !== "key";
|
|
3664
3664
|
}), ve = L.length > 0 ? "{key: someKey, " + L.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
3665
3665
|
if (!$e[J + ve]) {
|
|
3666
3666
|
var ft = L.length > 0 ? "{" + L.join(": ..., ") + ": ...}" : "{}";
|
|
3667
|
-
|
|
3667
|
+
y(`A props object containing a "key" prop is being spread into JSX:
|
|
3668
3668
|
let props = %s;
|
|
3669
3669
|
<%s {...props} />
|
|
3670
3670
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -3681,8 +3681,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
3681
3681
|
function ct(e, t, r) {
|
|
3682
3682
|
return Be(e, t, r, !1);
|
|
3683
3683
|
}
|
|
3684
|
-
var
|
|
3685
|
-
kt.Fragment = c, kt.jsx =
|
|
3684
|
+
var ut = ct, dt = lt;
|
|
3685
|
+
kt.Fragment = c, kt.jsx = ut, kt.jsxs = dt;
|
|
3686
3686
|
}()), kt;
|
|
3687
3687
|
}
|
|
3688
3688
|
process.env.NODE_ENV === "production" ? Tt.exports = vr() : Tt.exports = gr();
|
|
@@ -3784,15 +3784,15 @@ var Wt;
|
|
|
3784
3784
|
function zr() {
|
|
3785
3785
|
if (Wt) return ht;
|
|
3786
3786
|
Wt = 1;
|
|
3787
|
-
var a = R, o = Symbol.for("react.element"), i = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, d = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
|
|
3788
|
-
function
|
|
3789
|
-
var n, s = {},
|
|
3790
|
-
|
|
3791
|
-
for (n in l) c.call(l, n) && !
|
|
3792
|
-
if (
|
|
3793
|
-
return { $$typeof: o, type:
|
|
3787
|
+
var a = R, o = Symbol.for("react.element"), i = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, d = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, k = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
3788
|
+
function C(b, l, p) {
|
|
3789
|
+
var n, s = {}, w = null, j = null;
|
|
3790
|
+
p !== void 0 && (w = "" + p), l.key !== void 0 && (w = "" + l.key), l.ref !== void 0 && (j = l.ref);
|
|
3791
|
+
for (n in l) c.call(l, n) && !k.hasOwnProperty(n) && (s[n] = l[n]);
|
|
3792
|
+
if (b && b.defaultProps) for (n in l = b.defaultProps, l) s[n] === void 0 && (s[n] = l[n]);
|
|
3793
|
+
return { $$typeof: o, type: b, key: w, ref: j, props: s, _owner: d.current };
|
|
3794
3794
|
}
|
|
3795
|
-
return ht.Fragment = i, ht.jsx =
|
|
3795
|
+
return ht.Fragment = i, ht.jsx = C, ht.jsxs = C, ht;
|
|
3796
3796
|
}
|
|
3797
3797
|
var bt = {};
|
|
3798
3798
|
/**
|
|
@@ -3807,7 +3807,7 @@ var bt = {};
|
|
|
3807
3807
|
var Ut;
|
|
3808
3808
|
function Hr() {
|
|
3809
3809
|
return Ut || (Ut = 1, process.env.NODE_ENV !== "production" && function() {
|
|
3810
|
-
var a = R, o = Symbol.for("react.element"), i = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), d = Symbol.for("react.strict_mode"),
|
|
3810
|
+
var a = R, o = Symbol.for("react.element"), i = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), d = Symbol.for("react.strict_mode"), k = Symbol.for("react.profiler"), C = Symbol.for("react.provider"), b = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), n = Symbol.for("react.suspense_list"), s = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), F = Symbol.iterator, U = "@@iterator";
|
|
3811
3811
|
function D(e) {
|
|
3812
3812
|
if (e === null || typeof e != "object")
|
|
3813
3813
|
return null;
|
|
@@ -3815,7 +3815,7 @@ function Hr() {
|
|
|
3815
3815
|
return typeof t == "function" ? t : null;
|
|
3816
3816
|
}
|
|
3817
3817
|
var O = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
3818
|
-
function
|
|
3818
|
+
function y(e) {
|
|
3819
3819
|
{
|
|
3820
3820
|
for (var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), _ = 1; _ < t; _++)
|
|
3821
3821
|
r[_ - 1] = arguments[_];
|
|
@@ -3824,18 +3824,18 @@ function Hr() {
|
|
|
3824
3824
|
}
|
|
3825
3825
|
function P(e, t, r) {
|
|
3826
3826
|
{
|
|
3827
|
-
var _ = O.ReactDebugCurrentFrame,
|
|
3828
|
-
|
|
3829
|
-
var
|
|
3827
|
+
var _ = O.ReactDebugCurrentFrame, h = _.getStackAddendum();
|
|
3828
|
+
h !== "" && (t += "%s", r = r.concat([h]));
|
|
3829
|
+
var x = r.map(function(m) {
|
|
3830
3830
|
return String(m);
|
|
3831
3831
|
});
|
|
3832
|
-
|
|
3832
|
+
x.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, x);
|
|
3833
3833
|
}
|
|
3834
3834
|
}
|
|
3835
|
-
var K = !1, I = !1,
|
|
3835
|
+
var K = !1, I = !1, $ = !1, q = !1, W = !1, N;
|
|
3836
3836
|
N = Symbol.for("react.module.reference");
|
|
3837
3837
|
function E(e) {
|
|
3838
|
-
return !!(typeof e == "string" || typeof e == "function" || e === c || e ===
|
|
3838
|
+
return !!(typeof e == "string" || typeof e == "function" || e === c || e === k || W || e === d || e === p || e === n || q || e === j || K || I || $ || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === s || e.$$typeof === C || e.$$typeof === b || e.$$typeof === l || // This needs to include all possible module reference object
|
|
3839
3839
|
// types supported by any Flight configuration anywhere since
|
|
3840
3840
|
// we don't know which Flight build this will end up being used
|
|
3841
3841
|
// with.
|
|
@@ -3845,16 +3845,16 @@ function Hr() {
|
|
|
3845
3845
|
var _ = e.displayName;
|
|
3846
3846
|
if (_)
|
|
3847
3847
|
return _;
|
|
3848
|
-
var
|
|
3849
|
-
return
|
|
3848
|
+
var h = t.displayName || t.name || "";
|
|
3849
|
+
return h !== "" ? r + "(" + h + ")" : r;
|
|
3850
3850
|
}
|
|
3851
|
-
function
|
|
3851
|
+
function g(e) {
|
|
3852
3852
|
return e.displayName || "Context";
|
|
3853
3853
|
}
|
|
3854
|
-
function
|
|
3854
|
+
function v(e) {
|
|
3855
3855
|
if (e == null)
|
|
3856
3856
|
return null;
|
|
3857
|
-
if (typeof e.tag == "number" &&
|
|
3857
|
+
if (typeof e.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
3858
3858
|
return e.displayName || e.name || null;
|
|
3859
3859
|
if (typeof e == "string")
|
|
3860
3860
|
return e;
|
|
@@ -3863,32 +3863,32 @@ function Hr() {
|
|
|
3863
3863
|
return "Fragment";
|
|
3864
3864
|
case i:
|
|
3865
3865
|
return "Portal";
|
|
3866
|
-
case
|
|
3866
|
+
case k:
|
|
3867
3867
|
return "Profiler";
|
|
3868
3868
|
case d:
|
|
3869
3869
|
return "StrictMode";
|
|
3870
|
-
case
|
|
3870
|
+
case p:
|
|
3871
3871
|
return "Suspense";
|
|
3872
3872
|
case n:
|
|
3873
3873
|
return "SuspenseList";
|
|
3874
3874
|
}
|
|
3875
3875
|
if (typeof e == "object")
|
|
3876
3876
|
switch (e.$$typeof) {
|
|
3877
|
-
case
|
|
3877
|
+
case b:
|
|
3878
3878
|
var t = e;
|
|
3879
|
-
return
|
|
3880
|
-
case
|
|
3879
|
+
return g(t) + ".Consumer";
|
|
3880
|
+
case C:
|
|
3881
3881
|
var r = e;
|
|
3882
|
-
return
|
|
3882
|
+
return g(r._context) + ".Provider";
|
|
3883
3883
|
case l:
|
|
3884
3884
|
return G(e, e.render, "ForwardRef");
|
|
3885
3885
|
case s:
|
|
3886
3886
|
var _ = e.displayName || null;
|
|
3887
|
-
return _ !== null ? _ :
|
|
3888
|
-
case
|
|
3889
|
-
var
|
|
3887
|
+
return _ !== null ? _ : v(e.type) || "Memo";
|
|
3888
|
+
case w: {
|
|
3889
|
+
var h = e, x = h._payload, m = h._init;
|
|
3890
3890
|
try {
|
|
3891
|
-
return
|
|
3891
|
+
return v(m(x));
|
|
3892
3892
|
} catch {
|
|
3893
3893
|
return null;
|
|
3894
3894
|
}
|
|
@@ -3955,30 +3955,30 @@ function Hr() {
|
|
|
3955
3955
|
})
|
|
3956
3956
|
});
|
|
3957
3957
|
}
|
|
3958
|
-
B < 0 &&
|
|
3958
|
+
B < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
3959
3959
|
}
|
|
3960
3960
|
}
|
|
3961
|
-
var ce = O.ReactCurrentDispatcher,
|
|
3961
|
+
var ce = O.ReactCurrentDispatcher, ue;
|
|
3962
3962
|
function ne(e, t, r) {
|
|
3963
3963
|
{
|
|
3964
|
-
if (
|
|
3964
|
+
if (ue === void 0)
|
|
3965
3965
|
try {
|
|
3966
3966
|
throw Error();
|
|
3967
|
-
} catch (
|
|
3968
|
-
var _ =
|
|
3969
|
-
|
|
3967
|
+
} catch (h) {
|
|
3968
|
+
var _ = h.stack.trim().match(/\n( *(at )?)/);
|
|
3969
|
+
ue = _ && _[1] || "";
|
|
3970
3970
|
}
|
|
3971
3971
|
return `
|
|
3972
|
-
` +
|
|
3972
|
+
` + ue + e;
|
|
3973
3973
|
}
|
|
3974
3974
|
}
|
|
3975
|
-
var
|
|
3975
|
+
var de = !1, oe;
|
|
3976
3976
|
{
|
|
3977
3977
|
var Ke = typeof WeakMap == "function" ? WeakMap : Map;
|
|
3978
3978
|
oe = new Ke();
|
|
3979
3979
|
}
|
|
3980
3980
|
function je(e, t) {
|
|
3981
|
-
if (!e ||
|
|
3981
|
+
if (!e || de)
|
|
3982
3982
|
return "";
|
|
3983
3983
|
{
|
|
3984
3984
|
var r = oe.get(e);
|
|
@@ -3986,11 +3986,11 @@ function Hr() {
|
|
|
3986
3986
|
return r;
|
|
3987
3987
|
}
|
|
3988
3988
|
var _;
|
|
3989
|
-
|
|
3990
|
-
var
|
|
3989
|
+
de = !0;
|
|
3990
|
+
var h = Error.prepareStackTrace;
|
|
3991
3991
|
Error.prepareStackTrace = void 0;
|
|
3992
|
-
var
|
|
3993
|
-
|
|
3992
|
+
var x;
|
|
3993
|
+
x = ce.current, ce.current = null, Ue();
|
|
3994
3994
|
try {
|
|
3995
3995
|
if (t) {
|
|
3996
3996
|
var m = function() {
|
|
@@ -4026,14 +4026,14 @@ function Hr() {
|
|
|
4026
4026
|
} catch (L) {
|
|
4027
4027
|
if (L && _ && typeof L.stack == "string") {
|
|
4028
4028
|
for (var u = L.stack.split(`
|
|
4029
|
-
`),
|
|
4030
|
-
`), S = u.length - 1, T =
|
|
4029
|
+
`), A = _.stack.split(`
|
|
4030
|
+
`), S = u.length - 1, T = A.length - 1; S >= 1 && T >= 0 && u[S] !== A[T]; )
|
|
4031
4031
|
T--;
|
|
4032
4032
|
for (; S >= 1 && T >= 0; S--, T--)
|
|
4033
|
-
if (u[S] !==
|
|
4033
|
+
if (u[S] !== A[T]) {
|
|
4034
4034
|
if (S !== 1 || T !== 1)
|
|
4035
4035
|
do
|
|
4036
|
-
if (S--, T--, T < 0 || u[S] !==
|
|
4036
|
+
if (S--, T--, T < 0 || u[S] !== A[T]) {
|
|
4037
4037
|
var Y = `
|
|
4038
4038
|
` + u[S].replace(" at new ", " at ");
|
|
4039
4039
|
return e.displayName && Y.includes("<anonymous>") && (Y = Y.replace("<anonymous>", e.displayName)), typeof e == "function" && oe.set(e, Y), Y;
|
|
@@ -4043,7 +4043,7 @@ function Hr() {
|
|
|
4043
4043
|
}
|
|
4044
4044
|
}
|
|
4045
4045
|
} finally {
|
|
4046
|
-
|
|
4046
|
+
de = !1, ce.current = x, qe(), Error.prepareStackTrace = h;
|
|
4047
4047
|
}
|
|
4048
4048
|
var X = e ? e.displayName || e.name : "", J = X ? ne(X) : "";
|
|
4049
4049
|
return typeof e == "function" && oe.set(e, J), J;
|
|
@@ -4063,7 +4063,7 @@ function Hr() {
|
|
|
4063
4063
|
if (typeof e == "string")
|
|
4064
4064
|
return ne(e);
|
|
4065
4065
|
switch (e) {
|
|
4066
|
-
case
|
|
4066
|
+
case p:
|
|
4067
4067
|
return ne("Suspense");
|
|
4068
4068
|
case n:
|
|
4069
4069
|
return ne("SuspenseList");
|
|
@@ -4074,10 +4074,10 @@ function Hr() {
|
|
|
4074
4074
|
return Ge(e.render);
|
|
4075
4075
|
case s:
|
|
4076
4076
|
return _e(e.type, t, r);
|
|
4077
|
-
case
|
|
4078
|
-
var _ = e,
|
|
4077
|
+
case w: {
|
|
4078
|
+
var _ = e, h = _._payload, x = _._init;
|
|
4079
4079
|
try {
|
|
4080
|
-
return _e(
|
|
4080
|
+
return _e(x(h), t, r);
|
|
4081
4081
|
} catch {
|
|
4082
4082
|
}
|
|
4083
4083
|
}
|
|
@@ -4092,22 +4092,22 @@ function Hr() {
|
|
|
4092
4092
|
} else
|
|
4093
4093
|
Se.setExtraStackFrame(null);
|
|
4094
4094
|
}
|
|
4095
|
-
function ze(e, t, r, _,
|
|
4095
|
+
function ze(e, t, r, _, h) {
|
|
4096
4096
|
{
|
|
4097
|
-
var
|
|
4097
|
+
var x = Function.call.bind(ee);
|
|
4098
4098
|
for (var m in e)
|
|
4099
|
-
if (
|
|
4099
|
+
if (x(e, m)) {
|
|
4100
4100
|
var u = void 0;
|
|
4101
4101
|
try {
|
|
4102
4102
|
if (typeof e[m] != "function") {
|
|
4103
|
-
var
|
|
4104
|
-
throw
|
|
4103
|
+
var A = Error((_ || "React class") + ": " + r + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
4104
|
+
throw A.name = "Invariant Violation", A;
|
|
4105
4105
|
}
|
|
4106
4106
|
u = e[m](t, m, _, r, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
4107
4107
|
} catch (S) {
|
|
4108
4108
|
u = S;
|
|
4109
4109
|
}
|
|
4110
|
-
u && !(u instanceof Error) && (ie(
|
|
4110
|
+
u && !(u instanceof Error) && (ie(h), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", _ || "React class", r, m, typeof u), ie(null)), u instanceof Error && !(u.message in Ee) && (Ee[u.message] = !0, ie(h), y("Failed %s type: %s", r, u.message), ie(null));
|
|
4111
4111
|
}
|
|
4112
4112
|
}
|
|
4113
4113
|
}
|
|
@@ -4133,7 +4133,7 @@ function Hr() {
|
|
|
4133
4133
|
}
|
|
4134
4134
|
function Te(e) {
|
|
4135
4135
|
if (Ze(e))
|
|
4136
|
-
return
|
|
4136
|
+
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e)), Re(e);
|
|
4137
4137
|
}
|
|
4138
4138
|
var Oe = O.ReactCurrentOwner, Ve = {
|
|
4139
4139
|
key: !0,
|
|
@@ -4163,7 +4163,7 @@ function Hr() {
|
|
|
4163
4163
|
function tt(e, t) {
|
|
4164
4164
|
{
|
|
4165
4165
|
var r = function() {
|
|
4166
|
-
De || (De = !0,
|
|
4166
|
+
De || (De = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
|
|
4167
4167
|
};
|
|
4168
4168
|
r.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
4169
4169
|
get: r,
|
|
@@ -4174,7 +4174,7 @@ function Hr() {
|
|
|
4174
4174
|
function rt(e, t) {
|
|
4175
4175
|
{
|
|
4176
4176
|
var r = function() {
|
|
4177
|
-
Pe || (Pe = !0,
|
|
4177
|
+
Pe || (Pe = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
|
|
4178
4178
|
};
|
|
4179
4179
|
r.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
4180
4180
|
get: r,
|
|
@@ -4182,7 +4182,7 @@ function Hr() {
|
|
|
4182
4182
|
});
|
|
4183
4183
|
}
|
|
4184
4184
|
}
|
|
4185
|
-
var at = function(e, t, r, _,
|
|
4185
|
+
var at = function(e, t, r, _, h, x, m) {
|
|
4186
4186
|
var u = {
|
|
4187
4187
|
// This tag allows us to uniquely identify this as a React Element
|
|
4188
4188
|
$$typeof: o,
|
|
@@ -4192,7 +4192,7 @@ function Hr() {
|
|
|
4192
4192
|
ref: r,
|
|
4193
4193
|
props: m,
|
|
4194
4194
|
// Record the component responsible for creating this element.
|
|
4195
|
-
_owner:
|
|
4195
|
+
_owner: x
|
|
4196
4196
|
};
|
|
4197
4197
|
return u._store = {}, Object.defineProperty(u._store, "validated", {
|
|
4198
4198
|
configurable: !1,
|
|
@@ -4208,25 +4208,25 @@ function Hr() {
|
|
|
4208
4208
|
configurable: !1,
|
|
4209
4209
|
enumerable: !1,
|
|
4210
4210
|
writable: !1,
|
|
4211
|
-
value:
|
|
4211
|
+
value: h
|
|
4212
4212
|
}), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
|
|
4213
4213
|
};
|
|
4214
|
-
function nt(e, t, r, _,
|
|
4214
|
+
function nt(e, t, r, _, h) {
|
|
4215
4215
|
{
|
|
4216
|
-
var
|
|
4217
|
-
r !== void 0 && (Te(r), u = "" + r), Qe(t) && (Te(t.key), u = "" + t.key), Xe(t) && (
|
|
4218
|
-
for (
|
|
4219
|
-
ee.call(t,
|
|
4216
|
+
var x, m = {}, u = null, A = null;
|
|
4217
|
+
r !== void 0 && (Te(r), u = "" + r), Qe(t) && (Te(t.key), u = "" + t.key), Xe(t) && (A = t.ref, et(t));
|
|
4218
|
+
for (x in t)
|
|
4219
|
+
ee.call(t, x) && !Ve.hasOwnProperty(x) && (m[x] = t[x]);
|
|
4220
4220
|
if (e && e.defaultProps) {
|
|
4221
4221
|
var S = e.defaultProps;
|
|
4222
|
-
for (
|
|
4223
|
-
m[
|
|
4222
|
+
for (x in S)
|
|
4223
|
+
m[x] === void 0 && (m[x] = S[x]);
|
|
4224
4224
|
}
|
|
4225
|
-
if (u ||
|
|
4225
|
+
if (u || A) {
|
|
4226
4226
|
var T = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
4227
|
-
u && tt(m, T),
|
|
4227
|
+
u && tt(m, T), A && rt(m, T);
|
|
4228
4228
|
}
|
|
4229
|
-
return at(e, u,
|
|
4229
|
+
return at(e, u, A, h, _, Oe.current, m);
|
|
4230
4230
|
}
|
|
4231
4231
|
}
|
|
4232
4232
|
var me = O.ReactCurrentOwner, Ne = O.ReactDebugCurrentFrame;
|
|
@@ -4245,7 +4245,7 @@ function Hr() {
|
|
|
4245
4245
|
function Fe() {
|
|
4246
4246
|
{
|
|
4247
4247
|
if (me.current) {
|
|
4248
|
-
var e =
|
|
4248
|
+
var e = v(me.current.type);
|
|
4249
4249
|
if (e)
|
|
4250
4250
|
return `
|
|
4251
4251
|
|
|
@@ -4280,7 +4280,7 @@ Check the top-level render call using <` + r + ">.");
|
|
|
4280
4280
|
return;
|
|
4281
4281
|
Me[r] = !0;
|
|
4282
4282
|
var _ = "";
|
|
4283
|
-
e && e._owner && e._owner !== me.current && (_ = " It was passed a child from " +
|
|
4283
|
+
e && e._owner && e._owner !== me.current && (_ = " It was passed a child from " + v(e._owner.type) + "."), V(e), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', r, _), V(null);
|
|
4284
4284
|
}
|
|
4285
4285
|
}
|
|
4286
4286
|
function Ae(e, t) {
|
|
@@ -4295,9 +4295,9 @@ Check the top-level render call using <` + r + ">.");
|
|
|
4295
4295
|
else if (ye(e))
|
|
4296
4296
|
e._store && (e._store.validated = !0);
|
|
4297
4297
|
else if (e) {
|
|
4298
|
-
var
|
|
4299
|
-
if (typeof
|
|
4300
|
-
for (var
|
|
4298
|
+
var h = D(e);
|
|
4299
|
+
if (typeof h == "function" && h !== e.entries)
|
|
4300
|
+
for (var x = h.call(e), m; !(m = x.next()).done; )
|
|
4301
4301
|
ye(m.value) && Ie(m.value, t);
|
|
4302
4302
|
}
|
|
4303
4303
|
}
|
|
@@ -4317,14 +4317,14 @@ Check the top-level render call using <` + r + ">.");
|
|
|
4317
4317
|
else
|
|
4318
4318
|
return;
|
|
4319
4319
|
if (r) {
|
|
4320
|
-
var _ =
|
|
4320
|
+
var _ = v(t);
|
|
4321
4321
|
ze(r, e.props, "prop", _, e);
|
|
4322
4322
|
} else if (t.PropTypes !== void 0 && !pe) {
|
|
4323
4323
|
pe = !0;
|
|
4324
|
-
var
|
|
4325
|
-
|
|
4324
|
+
var h = v(t);
|
|
4325
|
+
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", h || "Unknown");
|
|
4326
4326
|
}
|
|
4327
|
-
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved &&
|
|
4327
|
+
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
4328
4328
|
}
|
|
4329
4329
|
}
|
|
4330
4330
|
function st(e) {
|
|
@@ -4332,26 +4332,26 @@ Check the top-level render call using <` + r + ">.");
|
|
|
4332
4332
|
for (var t = Object.keys(e.props), r = 0; r < t.length; r++) {
|
|
4333
4333
|
var _ = t[r];
|
|
4334
4334
|
if (_ !== "children" && _ !== "key") {
|
|
4335
|
-
V(e),
|
|
4335
|
+
V(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", _), V(null);
|
|
4336
4336
|
break;
|
|
4337
4337
|
}
|
|
4338
4338
|
}
|
|
4339
|
-
e.ref !== null && (V(e),
|
|
4339
|
+
e.ref !== null && (V(e), y("Invalid attribute `ref` supplied to `React.Fragment`."), V(null));
|
|
4340
4340
|
}
|
|
4341
4341
|
}
|
|
4342
4342
|
var $e = {};
|
|
4343
|
-
function Be(e, t, r, _,
|
|
4343
|
+
function Be(e, t, r, _, h, x) {
|
|
4344
4344
|
{
|
|
4345
4345
|
var m = E(e);
|
|
4346
4346
|
if (!m) {
|
|
4347
4347
|
var u = "";
|
|
4348
4348
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (u += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
4349
|
-
var
|
|
4350
|
-
|
|
4349
|
+
var A = ot();
|
|
4350
|
+
A ? u += A : u += Fe();
|
|
4351
4351
|
var S;
|
|
4352
|
-
e === null ? S = "null" : fe(e) ? S = "array" : e !== void 0 && e.$$typeof === o ? (S = "<" + (
|
|
4352
|
+
e === null ? S = "null" : fe(e) ? S = "array" : e !== void 0 && e.$$typeof === o ? (S = "<" + (v(e.type) || "Unknown") + " />", u = " Did you accidentally export a JSX literal instead of a component?") : S = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", S, u);
|
|
4353
4353
|
}
|
|
4354
|
-
var T = nt(e, t, r,
|
|
4354
|
+
var T = nt(e, t, r, h, x);
|
|
4355
4355
|
if (T == null)
|
|
4356
4356
|
return T;
|
|
4357
4357
|
if (m) {
|
|
@@ -4363,17 +4363,17 @@ Check the top-level render call using <` + r + ">.");
|
|
|
4363
4363
|
Ae(Y[X], e);
|
|
4364
4364
|
Object.freeze && Object.freeze(Y);
|
|
4365
4365
|
} else
|
|
4366
|
-
|
|
4366
|
+
y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
4367
4367
|
else
|
|
4368
4368
|
Ae(Y, e);
|
|
4369
4369
|
}
|
|
4370
4370
|
if (ee.call(t, "key")) {
|
|
4371
|
-
var J =
|
|
4371
|
+
var J = v(e), L = Object.keys(t).filter(function(mt) {
|
|
4372
4372
|
return mt !== "key";
|
|
4373
4373
|
}), ve = L.length > 0 ? "{key: someKey, " + L.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
4374
4374
|
if (!$e[J + ve]) {
|
|
4375
4375
|
var ft = L.length > 0 ? "{" + L.join(": ..., ") + ": ...}" : "{}";
|
|
4376
|
-
|
|
4376
|
+
y(`A props object containing a "key" prop is being spread into JSX:
|
|
4377
4377
|
let props = %s;
|
|
4378
4378
|
<%s {...props} />
|
|
4379
4379
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -4390,8 +4390,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
4390
4390
|
function ct(e, t, r) {
|
|
4391
4391
|
return Be(e, t, r, !1);
|
|
4392
4392
|
}
|
|
4393
|
-
var
|
|
4394
|
-
bt.Fragment = c, bt.jsx =
|
|
4393
|
+
var ut = ct, dt = lt;
|
|
4394
|
+
bt.Fragment = c, bt.jsx = ut, bt.jsxs = dt;
|
|
4395
4395
|
}()), bt;
|
|
4396
4396
|
}
|
|
4397
4397
|
process.env.NODE_ENV === "production" ? Ot.exports = zr() : Ot.exports = Hr();
|
|
@@ -4411,38 +4411,38 @@ const Jr = "_btn_1k1b3_1", Zr = "_confirm_1k1b3_15", Vr = "_cancel_1k1b3_20", Xr
|
|
|
4411
4411
|
size: i = "m",
|
|
4412
4412
|
view: c = "confirm",
|
|
4413
4413
|
children: d,
|
|
4414
|
-
isDisabled:
|
|
4415
|
-
className:
|
|
4416
|
-
after:
|
|
4414
|
+
isDisabled: k = !1,
|
|
4415
|
+
className: C,
|
|
4416
|
+
after: b,
|
|
4417
4417
|
before: l,
|
|
4418
|
-
label:
|
|
4418
|
+
label: p,
|
|
4419
4419
|
onRef: n,
|
|
4420
4420
|
awaitText: s = "Ожидайте"
|
|
4421
4421
|
}) => {
|
|
4422
|
-
let [
|
|
4422
|
+
let [w, j] = R.useState(!1);
|
|
4423
4423
|
const F = (D) => {
|
|
4424
4424
|
if (a) return a();
|
|
4425
|
-
|
|
4425
|
+
w || (o ? (j(!0), o(j)) : D.preventDefault());
|
|
4426
4426
|
};
|
|
4427
4427
|
let U = {};
|
|
4428
|
-
return (
|
|
4428
|
+
return (k || w) && (U.disabled = !0), /* @__PURE__ */ St.jsx(
|
|
4429
4429
|
"button",
|
|
4430
4430
|
{
|
|
4431
4431
|
...U,
|
|
4432
4432
|
ref: n,
|
|
4433
4433
|
className: [
|
|
4434
4434
|
wt.btn,
|
|
4435
|
-
|
|
4435
|
+
w ? wt.disabled : wt[c],
|
|
4436
4436
|
i && wt[i],
|
|
4437
|
-
|
|
4437
|
+
C
|
|
4438
4438
|
].filter((D) => D != "").join(" "),
|
|
4439
4439
|
onClick: F,
|
|
4440
|
-
children:
|
|
4440
|
+
children: w ? s : /* @__PURE__ */ St.jsxs(St.Fragment, { children: [
|
|
4441
4441
|
l || "",
|
|
4442
4442
|
" ",
|
|
4443
|
-
|
|
4443
|
+
p,
|
|
4444
4444
|
" ",
|
|
4445
|
-
|
|
4445
|
+
b || ""
|
|
4446
4446
|
] }) || d
|
|
4447
4447
|
}
|
|
4448
4448
|
);
|
|
@@ -4456,13 +4456,13 @@ var jt;
|
|
|
4456
4456
|
function o({
|
|
4457
4457
|
import_modules: n
|
|
4458
4458
|
}) {
|
|
4459
|
-
let [s,
|
|
4459
|
+
let [s, w] = R.useState([]);
|
|
4460
4460
|
return ge.x = (j) => {
|
|
4461
|
-
|
|
4461
|
+
w(j ? s.filter((F) => F.key !== j) : []);
|
|
4462
4462
|
}, Kt(() => {
|
|
4463
4463
|
n && (ge.i = n);
|
|
4464
4464
|
}, []), ge.add = (j, F = Date.now()) => {
|
|
4465
|
-
|
|
4465
|
+
w([...s, { key: F, item: j }]);
|
|
4466
4466
|
}, /* @__PURE__ */ z.jsx(z.Fragment, { children: s.map((j) => j.item) });
|
|
4467
4467
|
}
|
|
4468
4468
|
a.Init = o;
|
|
@@ -4470,81 +4470,81 @@ var jt;
|
|
|
4470
4470
|
return n && (ge.i = n), ge.i;
|
|
4471
4471
|
}
|
|
4472
4472
|
a.Import = i, a.List = Wr, a.Scroll = Ur, a.Form = qr, a.Center = Kr, a.Column = Gr;
|
|
4473
|
-
function c(n, s,
|
|
4473
|
+
function c(n, s, w) {
|
|
4474
4474
|
ge.i ? ge.i(`${n}/modal/${s}.tsx`).then((j) => {
|
|
4475
|
-
j.default.Open(
|
|
4475
|
+
j.default.Open(w);
|
|
4476
4476
|
}) : Lt()(`${n}/modal/${s}.tsx`).then((j) => {
|
|
4477
|
-
j.default.Open(
|
|
4477
|
+
j.default.Open(w);
|
|
4478
4478
|
});
|
|
4479
4479
|
}
|
|
4480
4480
|
a.Open = c;
|
|
4481
|
-
function d({ type: n, name: s, params:
|
|
4481
|
+
function d({ type: n, name: s, params: w }) {
|
|
4482
4482
|
let [j, F] = R.useState(null);
|
|
4483
4483
|
return R.useEffect(() => {
|
|
4484
4484
|
ge.i ? ge.i(`${n}/modal/${s}.tsx`).then((U) => {
|
|
4485
|
-
F(U.default.Icon(
|
|
4485
|
+
F(U.default.Icon(w));
|
|
4486
4486
|
}) : Lt()(`${n}/modal/${s}.tsx`).then((U) => {
|
|
4487
|
-
F(U.default.Icon(
|
|
4487
|
+
F(U.default.Icon(w));
|
|
4488
4488
|
});
|
|
4489
|
-
}, [
|
|
4489
|
+
}, [w.id]), /* @__PURE__ */ z.jsx(z.Fragment, { children: j });
|
|
4490
4490
|
}
|
|
4491
4491
|
a.Icon = d;
|
|
4492
|
-
function
|
|
4492
|
+
function k(n, s) {
|
|
4493
4493
|
ge.add(/* @__PURE__ */ z.jsx(aa, { children: n }, String(Date.now())), s);
|
|
4494
4494
|
}
|
|
4495
|
-
a.Add =
|
|
4496
|
-
function
|
|
4495
|
+
a.Add = k;
|
|
4496
|
+
function C(n) {
|
|
4497
4497
|
ge.x(n);
|
|
4498
4498
|
}
|
|
4499
|
-
a.Close =
|
|
4500
|
-
function
|
|
4499
|
+
a.Close = C;
|
|
4500
|
+
function b(n) {
|
|
4501
4501
|
if (n.target.classList[0] !== "modal") return;
|
|
4502
4502
|
let s = n.target.children[0];
|
|
4503
4503
|
s.setAttribute("shake", !0), setTimeout(() => {
|
|
4504
4504
|
s.setAttribute("shake", !1);
|
|
4505
4505
|
}, 1e3);
|
|
4506
4506
|
}
|
|
4507
|
-
a.Shake =
|
|
4507
|
+
a.Shake = b;
|
|
4508
4508
|
function l(n, s) {
|
|
4509
|
-
const
|
|
4509
|
+
const w = (j) => {
|
|
4510
4510
|
a.Add(
|
|
4511
4511
|
/* @__PURE__ */ z.jsx(n, { ...j }, (/* @__PURE__ */ new Date()).getTime())
|
|
4512
4512
|
);
|
|
4513
4513
|
};
|
|
4514
4514
|
return {
|
|
4515
|
-
Icon: (j) => /* @__PURE__ */ z.jsx("i", { onClick: () =>
|
|
4516
|
-
Open:
|
|
4515
|
+
Icon: (j) => /* @__PURE__ */ z.jsx("i", { onClick: () => w(j), children: s && /* @__PURE__ */ z.jsx(s, {}) }),
|
|
4516
|
+
Open: w
|
|
4517
4517
|
};
|
|
4518
4518
|
}
|
|
4519
4519
|
a.Create = l;
|
|
4520
|
-
function
|
|
4520
|
+
function p({
|
|
4521
4521
|
title: n,
|
|
4522
4522
|
children: s,
|
|
4523
|
-
button:
|
|
4523
|
+
button: w,
|
|
4524
4524
|
tabs: j,
|
|
4525
4525
|
size: F = "m",
|
|
4526
4526
|
className: U = "",
|
|
4527
4527
|
shake: D = !0,
|
|
4528
4528
|
menu: O
|
|
4529
4529
|
}) {
|
|
4530
|
-
const [
|
|
4531
|
-
if (
|
|
4532
|
-
if (
|
|
4533
|
-
return q(!1),
|
|
4534
|
-
if (
|
|
4535
|
-
return
|
|
4530
|
+
const [y, P] = R.useState(!0), K = R.useRef(), I = (q) => {
|
|
4531
|
+
if (w) {
|
|
4532
|
+
if (w.onClick)
|
|
4533
|
+
return q(!1), w.onClick({ setOpen: P });
|
|
4534
|
+
if (w.onSend)
|
|
4535
|
+
return w.onSend({
|
|
4536
4536
|
setOpen: P,
|
|
4537
4537
|
disabled: q
|
|
4538
4538
|
});
|
|
4539
4539
|
}
|
|
4540
|
-
},
|
|
4540
|
+
}, $ = () => {
|
|
4541
4541
|
if (!D) return P(!1);
|
|
4542
4542
|
K.current.setAttribute("shake", !0), setTimeout(() => {
|
|
4543
4543
|
K.current.setAttribute("shake", !1);
|
|
4544
4544
|
}, 1e3);
|
|
4545
4545
|
};
|
|
4546
|
-
return
|
|
4547
|
-
/* @__PURE__ */ z.jsx("div", { className: re.o, onClick:
|
|
4546
|
+
return y ? /* @__PURE__ */ z.jsxs("div", { className: `${re.modal}`, children: [
|
|
4547
|
+
/* @__PURE__ */ z.jsx("div", { className: re.o, onClick: $ }),
|
|
4548
4548
|
/* @__PURE__ */ z.jsxs(
|
|
4549
4549
|
"div",
|
|
4550
4550
|
{
|
|
@@ -4586,13 +4586,13 @@ var jt;
|
|
|
4586
4586
|
)
|
|
4587
4587
|
] }),
|
|
4588
4588
|
s,
|
|
4589
|
-
|
|
4589
|
+
w && /* @__PURE__ */ z.jsx("div", { className: re.b, children: /* @__PURE__ */ z.jsx(
|
|
4590
4590
|
ra,
|
|
4591
4591
|
{
|
|
4592
|
-
label:
|
|
4592
|
+
label: w.label,
|
|
4593
4593
|
onSend: I,
|
|
4594
4594
|
className: re.btn,
|
|
4595
|
-
size:
|
|
4595
|
+
size: w.size
|
|
4596
4596
|
}
|
|
4597
4597
|
) })
|
|
4598
4598
|
]
|
|
@@ -4600,7 +4600,7 @@ var jt;
|
|
|
4600
4600
|
)
|
|
4601
4601
|
] }) : "";
|
|
4602
4602
|
}
|
|
4603
|
-
a.Main =
|
|
4603
|
+
a.Main = p;
|
|
4604
4604
|
})(jt || (jt = {}));
|
|
4605
4605
|
const na = (a, o = ",") => (a = a !== void 0 && a !== "" ? a.split(o) : [], a.filter((i) => i !== "").reduce((i, c) => (i[c] = !0, i), {}));
|
|
4606
4606
|
function ba({
|
|
@@ -4609,20 +4609,20 @@ function ba({
|
|
|
4609
4609
|
name: i,
|
|
4610
4610
|
placeholder: c = "",
|
|
4611
4611
|
separator: d = ",",
|
|
4612
|
-
title:
|
|
4613
|
-
error:
|
|
4614
|
-
hide:
|
|
4612
|
+
title: k,
|
|
4613
|
+
error: C,
|
|
4614
|
+
hide: b = !1,
|
|
4615
4615
|
edit: l = !0,
|
|
4616
|
-
active:
|
|
4616
|
+
active: p = !0,
|
|
4617
4617
|
outFormat: n = "object",
|
|
4618
4618
|
after: s = "",
|
|
4619
|
-
modal:
|
|
4619
|
+
modal: w,
|
|
4620
4620
|
options: j,
|
|
4621
4621
|
className: F
|
|
4622
4622
|
}) {
|
|
4623
|
-
const [U, D] = R.useState(na(a, d)), O = (
|
|
4624
|
-
if (!(l &&
|
|
4625
|
-
let P =
|
|
4623
|
+
const [U, D] = R.useState(na(a, d)), O = (y) => {
|
|
4624
|
+
if (!(l && p) || !w) return;
|
|
4625
|
+
let P = w.split(".");
|
|
4626
4626
|
jt.Open(P[0], P[1], {
|
|
4627
4627
|
callback: (K) => {
|
|
4628
4628
|
if (o)
|
|
@@ -4642,7 +4642,7 @@ function ba({
|
|
|
4642
4642
|
D(
|
|
4643
4643
|
Object.fromEntries(
|
|
4644
4644
|
Object.entries(K).filter(
|
|
4645
|
-
([I,
|
|
4645
|
+
([I, $]) => $ !== !1
|
|
4646
4646
|
)
|
|
4647
4647
|
)
|
|
4648
4648
|
);
|
|
@@ -4653,12 +4653,12 @@ function ba({
|
|
|
4653
4653
|
value: U
|
|
4654
4654
|
});
|
|
4655
4655
|
};
|
|
4656
|
-
return
|
|
4656
|
+
return b ? /* @__PURE__ */ f.jsx(f.Fragment, {}) : /* @__PURE__ */ f.jsx(
|
|
4657
4657
|
he,
|
|
4658
4658
|
{
|
|
4659
4659
|
type: "group",
|
|
4660
|
-
title:
|
|
4661
|
-
error:
|
|
4660
|
+
title: k,
|
|
4661
|
+
error: C,
|
|
4662
4662
|
element_blok: { className: [F] },
|
|
4663
4663
|
element_input: {
|
|
4664
4664
|
className: [Q.g],
|
|
@@ -4666,9 +4666,9 @@ function ba({
|
|
|
4666
4666
|
onClick: O
|
|
4667
4667
|
}
|
|
4668
4668
|
},
|
|
4669
|
-
children: Object.keys(U).map((
|
|
4669
|
+
children: Object.keys(U).map((y) => {
|
|
4670
4670
|
var P;
|
|
4671
|
-
return /* @__PURE__ */ f.jsx("div", { children: (P = j[
|
|
4671
|
+
return /* @__PURE__ */ f.jsx("div", { children: (P = j[y]) == null ? void 0 : P.label }, y);
|
|
4672
4672
|
})
|
|
4673
4673
|
}
|
|
4674
4674
|
);
|
|
@@ -4684,22 +4684,22 @@ function wa({
|
|
|
4684
4684
|
edit: i = !0,
|
|
4685
4685
|
active: c = !0,
|
|
4686
4686
|
hide: d,
|
|
4687
|
-
value:
|
|
4688
|
-
onValue:
|
|
4689
|
-
options:
|
|
4687
|
+
value: k = 0,
|
|
4688
|
+
onValue: C,
|
|
4689
|
+
options: b,
|
|
4690
4690
|
placeholder: l = "",
|
|
4691
|
-
className:
|
|
4691
|
+
className: p,
|
|
4692
4692
|
isIcon: n = !0,
|
|
4693
4693
|
name: s,
|
|
4694
|
-
after:
|
|
4694
|
+
after: w,
|
|
4695
4695
|
view: j,
|
|
4696
4696
|
order: F,
|
|
4697
4697
|
isReload: U = !1
|
|
4698
4698
|
}) {
|
|
4699
|
-
const D = R.useRef(null), [O,
|
|
4699
|
+
const D = R.useRef(null), [O, y] = R.useState(k), [P, K] = R.useState(b), [I, $] = R.useState(!1);
|
|
4700
4700
|
R.useEffect(() => {
|
|
4701
|
-
|
|
4702
|
-
}, [
|
|
4701
|
+
y(k), K(b);
|
|
4702
|
+
}, [k, b]);
|
|
4703
4703
|
const q = Array.isArray(P), W = q ? P.length : Object.keys(P || {}).length, N = (M) => {
|
|
4704
4704
|
var B;
|
|
4705
4705
|
if (q) {
|
|
@@ -4710,26 +4710,26 @@ function wa({
|
|
|
4710
4710
|
} else
|
|
4711
4711
|
return (B = P == null ? void 0 : P[M]) == null ? void 0 : B.n;
|
|
4712
4712
|
};
|
|
4713
|
-
d = !!(d && (
|
|
4713
|
+
d = !!(d && (k === 0 || N(k) === void 0)) && !(i && c);
|
|
4714
4714
|
const G = (M) => {
|
|
4715
|
-
|
|
4716
|
-
},
|
|
4717
|
-
W !== 0 && i && c && (D.position = D.current.getBoundingClientRect(),
|
|
4718
|
-
},
|
|
4719
|
-
return l && (
|
|
4715
|
+
y(M), C && C({ value: M, name: s, reload: U });
|
|
4716
|
+
}, g = (M) => {
|
|
4717
|
+
W !== 0 && i && c && (D.position = D.current.getBoundingClientRect(), $(!0));
|
|
4718
|
+
}, v = {};
|
|
4719
|
+
return l && (v.placeholder = l), d ? "" : /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
4720
4720
|
/* @__PURE__ */ f.jsx(
|
|
4721
4721
|
he,
|
|
4722
4722
|
{
|
|
4723
4723
|
type: "select",
|
|
4724
4724
|
title: a,
|
|
4725
|
-
element_blok: { className: [
|
|
4725
|
+
element_blok: { className: [p] },
|
|
4726
4726
|
error: o,
|
|
4727
4727
|
element_input: {
|
|
4728
4728
|
className: [Dt.f],
|
|
4729
|
-
props: { onClick:
|
|
4729
|
+
props: { onClick: g }
|
|
4730
4730
|
},
|
|
4731
4731
|
ref: D,
|
|
4732
|
-
children: /* @__PURE__ */ f.jsx("div", { ...
|
|
4732
|
+
children: /* @__PURE__ */ f.jsx("div", { ...v, children: N(O) || l || "" })
|
|
4733
4733
|
}
|
|
4734
4734
|
),
|
|
4735
4735
|
I && Nt(
|
|
@@ -4739,10 +4739,10 @@ function wa({
|
|
|
4739
4739
|
parent: D.position,
|
|
4740
4740
|
onValue: G,
|
|
4741
4741
|
view: j,
|
|
4742
|
-
className:
|
|
4742
|
+
className: p,
|
|
4743
4743
|
options: P,
|
|
4744
4744
|
order: F,
|
|
4745
|
-
setOpen:
|
|
4745
|
+
setOpen: $
|
|
4746
4746
|
},
|
|
4747
4747
|
(/* @__PURE__ */ new Date()).getTime()
|
|
4748
4748
|
),
|
|
@@ -4756,19 +4756,19 @@ const sa = ({
|
|
|
4756
4756
|
className: i,
|
|
4757
4757
|
options: c,
|
|
4758
4758
|
order: d,
|
|
4759
|
-
setOpen:
|
|
4759
|
+
setOpen: k
|
|
4760
4760
|
}) => {
|
|
4761
|
-
let
|
|
4762
|
-
|
|
4763
|
-
},
|
|
4764
|
-
|
|
4765
|
-
}, l = window.innerHeight - o.y + o.height < 320 ? o.y - 312 : o.y + 33,
|
|
4761
|
+
let C = () => {
|
|
4762
|
+
k(!1);
|
|
4763
|
+
}, b = (n) => {
|
|
4764
|
+
k(!1), a(n);
|
|
4765
|
+
}, l = window.innerHeight - o.y + o.height < 320 ? o.y - 312 : o.y + 33, p = window.innerWidth - o.x < 265 ? o.x - 235 : o.x;
|
|
4766
4766
|
return /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
4767
4767
|
/* @__PURE__ */ f.jsx(
|
|
4768
4768
|
"div",
|
|
4769
4769
|
{
|
|
4770
4770
|
className: Dt.o,
|
|
4771
|
-
onClick:
|
|
4771
|
+
onClick: C
|
|
4772
4772
|
},
|
|
4773
4773
|
(/* @__PURE__ */ new Date()).getTime()
|
|
4774
4774
|
),
|
|
@@ -4778,73 +4778,72 @@ const sa = ({
|
|
|
4778
4778
|
className: [Dt.l, i].filter((n) => n !== void 0).join(" "),
|
|
4779
4779
|
style: {
|
|
4780
4780
|
top: l + "px",
|
|
4781
|
-
left:
|
|
4781
|
+
left: p + "px",
|
|
4782
4782
|
width: o.width
|
|
4783
4783
|
},
|
|
4784
|
-
children: /* @__PURE__ */ f.jsx(la, { order: d, options: c, link:
|
|
4784
|
+
children: /* @__PURE__ */ f.jsx(la, { order: d, options: c, link: b })
|
|
4785
4785
|
}
|
|
4786
4786
|
)
|
|
4787
4787
|
] });
|
|
4788
4788
|
}, la = ({ order: a, options: o, link: i }) => {
|
|
4789
4789
|
if (Array.isArray(o)) {
|
|
4790
4790
|
const d = o;
|
|
4791
|
-
return a ? /* @__PURE__ */ f.jsx("ul", { children: a.map((
|
|
4792
|
-
const
|
|
4793
|
-
(
|
|
4791
|
+
return a ? /* @__PURE__ */ f.jsx("ul", { children: a.map((k, C) => {
|
|
4792
|
+
const b = d.find(
|
|
4793
|
+
(p) => (p.id || p.i) === k
|
|
4794
4794
|
);
|
|
4795
|
-
if (!
|
|
4796
|
-
const
|
|
4797
|
-
return
|
|
4795
|
+
if (!b || b.s === 0 || !b.n) return null;
|
|
4796
|
+
const l = b.id || b.i;
|
|
4797
|
+
return l === void 0 ? null : /* @__PURE__ */ f.jsx(
|
|
4798
4798
|
"li",
|
|
4799
4799
|
{
|
|
4800
4800
|
onClick: () => {
|
|
4801
|
-
i(
|
|
4801
|
+
i(l);
|
|
4802
4802
|
},
|
|
4803
|
-
children:
|
|
4803
|
+
children: b.n
|
|
4804
4804
|
},
|
|
4805
|
-
C
|
|
4805
|
+
`${l}-${C}`
|
|
4806
4806
|
);
|
|
4807
|
-
}) }) : /* @__PURE__ */ f.jsx("ul", { children: d.
|
|
4808
|
-
|
|
4809
|
-
|
|
4807
|
+
}) }) : /* @__PURE__ */ f.jsx("ul", { children: d.map((k, C) => {
|
|
4808
|
+
if (k.s === 0 || !k.n) return null;
|
|
4809
|
+
const b = k.id || k.i;
|
|
4810
|
+
return b === void 0 ? null : /* @__PURE__ */ f.jsx(
|
|
4810
4811
|
"li",
|
|
4811
4812
|
{
|
|
4812
4813
|
onClick: () => {
|
|
4813
|
-
i(
|
|
4814
|
+
i(b);
|
|
4814
4815
|
},
|
|
4815
|
-
children:
|
|
4816
|
+
children: k.n
|
|
4816
4817
|
},
|
|
4817
|
-
|
|
4818
|
+
`${b}-${C}`
|
|
4818
4819
|
);
|
|
4819
4820
|
}) });
|
|
4820
4821
|
}
|
|
4821
|
-
return a ? /* @__PURE__ */ f.jsx("ul", { children: a.map((d) => {
|
|
4822
|
-
const
|
|
4823
|
-
return !
|
|
4822
|
+
return a ? /* @__PURE__ */ f.jsx("ul", { children: a.map((d, k) => {
|
|
4823
|
+
const C = o[d];
|
|
4824
|
+
return !C || C.s === 0 || !C.n ? null : /* @__PURE__ */ f.jsx(
|
|
4824
4825
|
"li",
|
|
4825
4826
|
{
|
|
4826
4827
|
onClick: () => {
|
|
4827
4828
|
i(d);
|
|
4828
4829
|
},
|
|
4829
|
-
children:
|
|
4830
|
+
children: C.n
|
|
4830
4831
|
},
|
|
4831
|
-
d
|
|
4832
|
+
`${d}-${k}`
|
|
4832
4833
|
);
|
|
4833
|
-
}) }) : /* @__PURE__ */ f.jsx("ul", { children: Object.keys(o || {}).map((d) => {
|
|
4834
|
-
const
|
|
4835
|
-
return !
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
i(d);
|
|
4834
|
+
}) }) : /* @__PURE__ */ f.jsx("ul", { children: Object.keys(o || {}).map((d, k) => {
|
|
4835
|
+
const C = Number(d), b = o[C];
|
|
4836
|
+
return !b || b.s === 0 || !b.n ? null : /* @__PURE__ */ f.jsx(
|
|
4837
|
+
"li",
|
|
4838
|
+
{
|
|
4839
|
+
onClick: () => {
|
|
4840
|
+
i(C);
|
|
4841
|
+
},
|
|
4842
|
+
children: b.n
|
|
4843
4843
|
},
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
)) });
|
|
4844
|
+
`${C}-${k}`
|
|
4845
|
+
);
|
|
4846
|
+
}) });
|
|
4848
4847
|
};
|
|
4849
4848
|
function xa({
|
|
4850
4849
|
value: a,
|
|
@@ -4852,24 +4851,24 @@ function xa({
|
|
|
4852
4851
|
name: i,
|
|
4853
4852
|
placeholder: c = "",
|
|
4854
4853
|
title: d,
|
|
4855
|
-
error:
|
|
4856
|
-
hide:
|
|
4857
|
-
edit:
|
|
4854
|
+
error: k,
|
|
4855
|
+
hide: C = !1,
|
|
4856
|
+
edit: b = !0,
|
|
4858
4857
|
show: l = !0,
|
|
4859
|
-
active:
|
|
4858
|
+
active: p = !0,
|
|
4860
4859
|
after: n = "",
|
|
4861
4860
|
view: s,
|
|
4862
|
-
modal:
|
|
4861
|
+
modal: w,
|
|
4863
4862
|
module: j,
|
|
4864
4863
|
options: F,
|
|
4865
4864
|
className: U
|
|
4866
4865
|
}) {
|
|
4867
|
-
const [D, O] = R.useState(a),
|
|
4868
|
-
if (!(
|
|
4869
|
-
let I =
|
|
4866
|
+
const [D, O] = R.useState(a), y = (K) => {
|
|
4867
|
+
if (!(b && p) || !w) return;
|
|
4868
|
+
let I = w.split(".");
|
|
4870
4869
|
jt.Open(I[0], I[1], {
|
|
4871
|
-
callback: (
|
|
4872
|
-
o && o({ value:
|
|
4870
|
+
callback: ($) => {
|
|
4871
|
+
o && o({ value: $, name: i }), O($);
|
|
4873
4872
|
},
|
|
4874
4873
|
onValue: o,
|
|
4875
4874
|
options: F,
|
|
@@ -4877,16 +4876,16 @@ function xa({
|
|
|
4877
4876
|
value: a
|
|
4878
4877
|
});
|
|
4879
4878
|
}, P = {};
|
|
4880
|
-
return c && (P.placeholder = c),
|
|
4879
|
+
return c && (P.placeholder = c), C ? /* @__PURE__ */ f.jsx(f.Fragment, {}) : /* @__PURE__ */ f.jsx(
|
|
4881
4880
|
he,
|
|
4882
4881
|
{
|
|
4883
4882
|
type: "input",
|
|
4884
4883
|
title: d,
|
|
4885
4884
|
element_blok: { className: [U] },
|
|
4886
|
-
error:
|
|
4885
|
+
error: k,
|
|
4887
4886
|
element_input: {
|
|
4888
4887
|
className: [Q.w],
|
|
4889
|
-
props: { onClick:
|
|
4888
|
+
props: { onClick: y }
|
|
4890
4889
|
},
|
|
4891
4890
|
children: /* @__PURE__ */ f.jsx("div", { ...P, children: D })
|
|
4892
4891
|
}
|
|
@@ -4898,20 +4897,20 @@ function Ca({
|
|
|
4898
4897
|
onSave: i,
|
|
4899
4898
|
name: c,
|
|
4900
4899
|
placeholder: d = "",
|
|
4901
|
-
className:
|
|
4902
|
-
title:
|
|
4903
|
-
error:
|
|
4900
|
+
className: k,
|
|
4901
|
+
title: C,
|
|
4902
|
+
error: b,
|
|
4904
4903
|
edit: l = !0,
|
|
4905
|
-
active:
|
|
4904
|
+
active: p = !0,
|
|
4906
4905
|
reload: n = !1,
|
|
4907
4906
|
native: s = !1,
|
|
4908
|
-
isShow:
|
|
4907
|
+
isShow: w = !1,
|
|
4909
4908
|
maxLength: j,
|
|
4910
4909
|
eyes: F = [],
|
|
4911
4910
|
after: U = ""
|
|
4912
4911
|
}) {
|
|
4913
|
-
const [D, O] = R.useState(
|
|
4914
|
-
let
|
|
4912
|
+
const [D, O] = R.useState(w);
|
|
4913
|
+
let y = (W) => {
|
|
4915
4914
|
o && o({
|
|
4916
4915
|
value: W.target.textContent,
|
|
4917
4916
|
name: c,
|
|
@@ -4936,19 +4935,19 @@ function Ca({
|
|
|
4936
4935
|
}, I = (W) => {
|
|
4937
4936
|
Z.Blur(W), i == null || i({ value: W.target.textContent.trim(), name: c });
|
|
4938
4937
|
};
|
|
4939
|
-
const
|
|
4940
|
-
|
|
4938
|
+
const $ = {};
|
|
4939
|
+
$.field = "password", D && ($.show = ""), k && ($.className = k);
|
|
4941
4940
|
const q = {};
|
|
4942
|
-
return d && (q.placeholder = d), s ? "" : /* @__PURE__ */ f.jsxs("dl", {
|
|
4943
|
-
|
|
4941
|
+
return d && (q.placeholder = d), s ? "" : /* @__PURE__ */ f.jsxs("dl", { ...$, children: [
|
|
4942
|
+
C ? /* @__PURE__ */ f.jsx("dt", { children: C }) : "",
|
|
4944
4943
|
/* @__PURE__ */ f.jsx(
|
|
4945
4944
|
"dd",
|
|
4946
4945
|
{
|
|
4947
4946
|
onPaste: K,
|
|
4948
|
-
onInput:
|
|
4947
|
+
onInput: y,
|
|
4949
4948
|
onKeyDown: P,
|
|
4950
4949
|
onBlur: I,
|
|
4951
|
-
contentEditable: l &&
|
|
4950
|
+
contentEditable: l && p ? Z.ContentEditable : "false",
|
|
4952
4951
|
...q,
|
|
4953
4952
|
suppressContentEditableWarning: !0,
|
|
4954
4953
|
children: a
|
|
@@ -4956,7 +4955,7 @@ function Ca({
|
|
|
4956
4955
|
),
|
|
4957
4956
|
F[0] && /* @__PURE__ */ f.jsx("i", { onClick: () => O(!D), children: D ? F[1] : F[0] }),
|
|
4958
4957
|
U,
|
|
4959
|
-
|
|
4958
|
+
b ? /* @__PURE__ */ f.jsx("em", { children: b }) : ""
|
|
4960
4959
|
] });
|
|
4961
4960
|
}
|
|
4962
4961
|
function ja({
|
|
@@ -4965,17 +4964,17 @@ function ja({
|
|
|
4965
4964
|
value: i,
|
|
4966
4965
|
title: c,
|
|
4967
4966
|
className: d,
|
|
4968
|
-
name:
|
|
4969
|
-
text:
|
|
4970
|
-
id:
|
|
4967
|
+
name: k,
|
|
4968
|
+
text: C,
|
|
4969
|
+
id: b,
|
|
4971
4970
|
reload: l
|
|
4972
4971
|
}) {
|
|
4973
|
-
const [
|
|
4972
|
+
const [p, n] = R.useState(!!i);
|
|
4974
4973
|
R.useEffect(() => {
|
|
4975
4974
|
n(!!i);
|
|
4976
4975
|
}, [i]);
|
|
4977
4976
|
let s = () => {
|
|
4978
|
-
a && a({ value:
|
|
4977
|
+
a && a({ value: p ? 0 : 1, name: k, id: b, reload: l }), n(!p);
|
|
4979
4978
|
};
|
|
4980
4979
|
return /* @__PURE__ */ f.jsxs(
|
|
4981
4980
|
he,
|
|
@@ -4990,8 +4989,8 @@ function ja({
|
|
|
4990
4989
|
}
|
|
4991
4990
|
},
|
|
4992
4991
|
children: [
|
|
4993
|
-
/* @__PURE__ */ f.jsx("div", { "aria-checked": `${
|
|
4994
|
-
/* @__PURE__ */ f.jsx("span", { children:
|
|
4992
|
+
/* @__PURE__ */ f.jsx("div", { "aria-checked": `${p ? "true" : "false"}` }),
|
|
4993
|
+
/* @__PURE__ */ f.jsx("span", { children: C })
|
|
4995
4994
|
]
|
|
4996
4995
|
}
|
|
4997
4996
|
);
|
|
@@ -5018,8 +5017,8 @@ function Ta(a) {
|
|
|
5018
5017
|
return le.u = (d) => {
|
|
5019
5018
|
c.current = { ...c.current, [d.name]: d.value };
|
|
5020
5019
|
}, le.n = (d) => {
|
|
5021
|
-
Object.keys(d).length > 0 ? Object.keys(d).forEach((
|
|
5022
|
-
c.current[
|
|
5020
|
+
Object.keys(d).length > 0 ? Object.keys(d).forEach((k) => {
|
|
5021
|
+
c.current[k] = d[k];
|
|
5023
5022
|
}) : c.current = {}, i(Date.now());
|
|
5024
5023
|
}, le.r = () => {
|
|
5025
5024
|
i(Date.now());
|
|
@@ -5041,7 +5040,7 @@ export {
|
|
|
5041
5040
|
ba as OptionsField,
|
|
5042
5041
|
Ca as PasswordField,
|
|
5043
5042
|
ga as PhoneField,
|
|
5044
|
-
|
|
5043
|
+
da as Progress,
|
|
5045
5044
|
wa as SelectField,
|
|
5046
5045
|
ha as StringField,
|
|
5047
5046
|
va as TextareaField,
|