@elcrm/telegram 0.0.85 → 0.0.86
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/Madal/index.d.ts +4 -2
- package/dist/index.es.js +369 -350
- package/dist/index.umd.js +12 -12
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -13,13 +13,13 @@ var Mt;
|
|
|
13
13
|
function Gt() {
|
|
14
14
|
if (Mt) return Ze;
|
|
15
15
|
Mt = 1;
|
|
16
|
-
var r = N, n = Symbol.for("react.element"), a = Symbol.for("react.fragment"), f = Object.prototype.hasOwnProperty, c = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
|
|
17
|
-
function E(
|
|
18
|
-
var
|
|
19
|
-
A !== void 0 && (
|
|
20
|
-
for (
|
|
21
|
-
if (
|
|
22
|
-
return { $$typeof: n, type:
|
|
16
|
+
var r = N, n = Symbol.for("react.element"), a = Symbol.for("react.fragment"), f = Object.prototype.hasOwnProperty, c = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
|
+
function E(S, d, A) {
|
|
18
|
+
var g, m = {}, _ = null, C = null;
|
|
19
|
+
A !== void 0 && (_ = "" + A), d.key !== void 0 && (_ = "" + d.key), d.ref !== void 0 && (C = d.ref);
|
|
20
|
+
for (g in d) f.call(d, g) && !p.hasOwnProperty(g) && (m[g] = d[g]);
|
|
21
|
+
if (S && S.defaultProps) for (g in d = S.defaultProps, d) m[g] === void 0 && (m[g] = d[g]);
|
|
22
|
+
return { $$typeof: n, type: S, key: _, ref: C, props: m, _owner: c.current };
|
|
23
23
|
}
|
|
24
24
|
return Ze.Fragment = a, Ze.jsx = E, Ze.jsxs = E, Ze;
|
|
25
25
|
}
|
|
@@ -36,11 +36,11 @@ var Xe = {};
|
|
|
36
36
|
var Nt;
|
|
37
37
|
function Zt() {
|
|
38
38
|
return Nt || (Nt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
39
|
-
var r = N, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"),
|
|
39
|
+
var r = N, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), E = Symbol.for("react.provider"), S = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), A = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), $ = Symbol.iterator, Ee = "@@iterator";
|
|
40
40
|
function we(e) {
|
|
41
41
|
if (e === null || typeof e != "object")
|
|
42
42
|
return null;
|
|
43
|
-
var t =
|
|
43
|
+
var t = $ && e[$] || e[Ee];
|
|
44
44
|
return typeof t == "function" ? t : null;
|
|
45
45
|
}
|
|
46
46
|
var F = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -61,16 +61,16 @@ function Zt() {
|
|
|
61
61
|
h.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, h);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
var ke = !1,
|
|
65
|
-
|
|
64
|
+
var ke = !1, Pe = !1, Ce = !1, y = !1, k = !1, T;
|
|
65
|
+
T = Symbol.for("react.module.reference");
|
|
66
66
|
function D(e) {
|
|
67
|
-
return !!(typeof e == "string" || typeof e == "function" || e === f || e ===
|
|
67
|
+
return !!(typeof e == "string" || typeof e == "function" || e === f || e === p || k || e === c || e === A || e === g || y || e === C || ke || Pe || Ce || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === m || e.$$typeof === E || e.$$typeof === S || e.$$typeof === d || // This needs to include all possible module reference object
|
|
68
68
|
// types supported by any Flight configuration anywhere since
|
|
69
69
|
// we don't know which Flight build this will end up being used
|
|
70
70
|
// with.
|
|
71
|
-
e.$$typeof ===
|
|
71
|
+
e.$$typeof === T || e.getModuleId !== void 0));
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function V(e, t, o) {
|
|
74
74
|
var i = e.displayName;
|
|
75
75
|
if (i)
|
|
76
76
|
return i;
|
|
@@ -80,7 +80,7 @@ function Zt() {
|
|
|
80
80
|
function G(e) {
|
|
81
81
|
return e.displayName || "Context";
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function I(e) {
|
|
84
84
|
if (e == null)
|
|
85
85
|
return null;
|
|
86
86
|
if (typeof e.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
@@ -92,32 +92,32 @@ function Zt() {
|
|
|
92
92
|
return "Fragment";
|
|
93
93
|
case a:
|
|
94
94
|
return "Portal";
|
|
95
|
-
case
|
|
95
|
+
case p:
|
|
96
96
|
return "Profiler";
|
|
97
97
|
case c:
|
|
98
98
|
return "StrictMode";
|
|
99
99
|
case A:
|
|
100
100
|
return "Suspense";
|
|
101
|
-
case
|
|
101
|
+
case g:
|
|
102
102
|
return "SuspenseList";
|
|
103
103
|
}
|
|
104
104
|
if (typeof e == "object")
|
|
105
105
|
switch (e.$$typeof) {
|
|
106
|
-
case
|
|
106
|
+
case S:
|
|
107
107
|
var t = e;
|
|
108
108
|
return G(t) + ".Consumer";
|
|
109
109
|
case E:
|
|
110
110
|
var o = e;
|
|
111
111
|
return G(o._context) + ".Provider";
|
|
112
|
-
case
|
|
113
|
-
return
|
|
114
|
-
case
|
|
112
|
+
case d:
|
|
113
|
+
return V(e, e.render, "ForwardRef");
|
|
114
|
+
case m:
|
|
115
115
|
var i = e.displayName || null;
|
|
116
|
-
return i !== null ? i :
|
|
117
|
-
case
|
|
116
|
+
return i !== null ? i : I(e.type) || "Memo";
|
|
117
|
+
case _: {
|
|
118
118
|
var v = e, h = v._payload, u = v._init;
|
|
119
119
|
try {
|
|
120
|
-
return
|
|
120
|
+
return I(u(h));
|
|
121
121
|
} catch {
|
|
122
122
|
return null;
|
|
123
123
|
}
|
|
@@ -125,7 +125,7 @@ function Zt() {
|
|
|
125
125
|
}
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
128
|
-
var
|
|
128
|
+
var M = Object.assign, W = 0, Z, X, Q, ee, Te, Ie, $e;
|
|
129
129
|
function Me() {
|
|
130
130
|
}
|
|
131
131
|
Me.__reactDisabledLog = !0;
|
|
@@ -161,25 +161,25 @@ function Zt() {
|
|
|
161
161
|
writable: !0
|
|
162
162
|
};
|
|
163
163
|
Object.defineProperties(console, {
|
|
164
|
-
log:
|
|
164
|
+
log: M({}, e, {
|
|
165
165
|
value: Z
|
|
166
166
|
}),
|
|
167
|
-
info:
|
|
167
|
+
info: M({}, e, {
|
|
168
168
|
value: X
|
|
169
169
|
}),
|
|
170
|
-
warn:
|
|
170
|
+
warn: M({}, e, {
|
|
171
171
|
value: Q
|
|
172
172
|
}),
|
|
173
|
-
error:
|
|
173
|
+
error: M({}, e, {
|
|
174
174
|
value: ee
|
|
175
175
|
}),
|
|
176
|
-
group:
|
|
176
|
+
group: M({}, e, {
|
|
177
177
|
value: Te
|
|
178
178
|
}),
|
|
179
|
-
groupCollapsed:
|
|
179
|
+
groupCollapsed: M({}, e, {
|
|
180
180
|
value: Ie
|
|
181
181
|
}),
|
|
182
|
-
groupEnd:
|
|
182
|
+
groupEnd: M({}, e, {
|
|
183
183
|
value: $e
|
|
184
184
|
})
|
|
185
185
|
});
|
|
@@ -256,25 +256,25 @@ function Zt() {
|
|
|
256
256
|
if (O && i && typeof O.stack == "string") {
|
|
257
257
|
for (var l = O.stack.split(`
|
|
258
258
|
`), j = i.stack.split(`
|
|
259
|
-
`), b = l.length - 1,
|
|
260
|
-
|
|
261
|
-
for (; b >= 1 &&
|
|
262
|
-
if (l[b] !== j[
|
|
263
|
-
if (b !== 1 ||
|
|
259
|
+
`), b = l.length - 1, R = j.length - 1; b >= 1 && R >= 0 && l[b] !== j[R]; )
|
|
260
|
+
R--;
|
|
261
|
+
for (; b >= 1 && R >= 0; b--, R--)
|
|
262
|
+
if (l[b] !== j[R]) {
|
|
263
|
+
if (b !== 1 || R !== 1)
|
|
264
264
|
do
|
|
265
|
-
if (b--,
|
|
266
|
-
var
|
|
265
|
+
if (b--, R--, R < 0 || l[b] !== j[R]) {
|
|
266
|
+
var P = `
|
|
267
267
|
` + l[b].replace(" at new ", " at ");
|
|
268
|
-
return e.displayName &&
|
|
268
|
+
return e.displayName && P.includes("<anonymous>") && (P = P.replace("<anonymous>", e.displayName)), typeof e == "function" && re.set(e, P), P;
|
|
269
269
|
}
|
|
270
|
-
while (b >= 1 &&
|
|
270
|
+
while (b >= 1 && R >= 0);
|
|
271
271
|
break;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
} finally {
|
|
275
275
|
pe = !1, fe.current = h, st(), Error.prepareStackTrace = v;
|
|
276
276
|
}
|
|
277
|
-
var
|
|
277
|
+
var J = e ? e.displayName || e.name : "", B = J ? te(J) : "";
|
|
278
278
|
return typeof e == "function" && re.set(e, B), B;
|
|
279
279
|
}
|
|
280
280
|
function ut(e, t, o) {
|
|
@@ -294,16 +294,16 @@ function Zt() {
|
|
|
294
294
|
switch (e) {
|
|
295
295
|
case A:
|
|
296
296
|
return te("Suspense");
|
|
297
|
-
case
|
|
297
|
+
case g:
|
|
298
298
|
return te("SuspenseList");
|
|
299
299
|
}
|
|
300
300
|
if (typeof e == "object")
|
|
301
301
|
switch (e.$$typeof) {
|
|
302
|
-
case
|
|
302
|
+
case d:
|
|
303
303
|
return ut(e.render);
|
|
304
|
-
case
|
|
304
|
+
case m:
|
|
305
305
|
return ne(e.type, t, o);
|
|
306
|
-
case
|
|
306
|
+
case _: {
|
|
307
307
|
var i = e, v = i._payload, h = i._init;
|
|
308
308
|
try {
|
|
309
309
|
return ne(h(v), t, o);
|
|
@@ -313,7 +313,7 @@ function Zt() {
|
|
|
313
313
|
}
|
|
314
314
|
return "";
|
|
315
315
|
}
|
|
316
|
-
var
|
|
316
|
+
var H = Object.prototype.hasOwnProperty, De = {}, Fe = F.ReactDebugCurrentFrame;
|
|
317
317
|
function oe(e) {
|
|
318
318
|
if (e) {
|
|
319
319
|
var t = e._owner, o = ne(e.type, e._source, t ? t.type : null);
|
|
@@ -323,7 +323,7 @@ function Zt() {
|
|
|
323
323
|
}
|
|
324
324
|
function ft(e, t, o, i, v) {
|
|
325
325
|
{
|
|
326
|
-
var h = Function.call.bind(
|
|
326
|
+
var h = Function.call.bind(H);
|
|
327
327
|
for (var u in e)
|
|
328
328
|
if (h(e, u)) {
|
|
329
329
|
var l = void 0;
|
|
@@ -370,16 +370,16 @@ function Zt() {
|
|
|
370
370
|
__self: !0,
|
|
371
371
|
__source: !0
|
|
372
372
|
}, Ue, Ye;
|
|
373
|
-
function
|
|
374
|
-
if (
|
|
373
|
+
function gt(e) {
|
|
374
|
+
if (H.call(e, "ref")) {
|
|
375
375
|
var t = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
376
376
|
if (t && t.isReactWarning)
|
|
377
377
|
return !1;
|
|
378
378
|
}
|
|
379
379
|
return e.ref !== void 0;
|
|
380
380
|
}
|
|
381
|
-
function
|
|
382
|
-
if (
|
|
381
|
+
function mt(e) {
|
|
382
|
+
if (H.call(e, "key")) {
|
|
383
383
|
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
384
384
|
if (t && t.isReactWarning)
|
|
385
385
|
return !1;
|
|
@@ -443,38 +443,38 @@ function Zt() {
|
|
|
443
443
|
function St(e, t, o, i, v) {
|
|
444
444
|
{
|
|
445
445
|
var h, u = {}, l = null, j = null;
|
|
446
|
-
o !== void 0 && (We(o), l = "" + o),
|
|
446
|
+
o !== void 0 && (We(o), l = "" + o), mt(t) && (We(t.key), l = "" + t.key), gt(t) && (j = t.ref, yt(t, v));
|
|
447
447
|
for (h in t)
|
|
448
|
-
|
|
448
|
+
H.call(t, h) && !ht.hasOwnProperty(h) && (u[h] = t[h]);
|
|
449
449
|
if (e && e.defaultProps) {
|
|
450
450
|
var b = e.defaultProps;
|
|
451
451
|
for (h in b)
|
|
452
452
|
u[h] === void 0 && (u[h] = b[h]);
|
|
453
453
|
}
|
|
454
454
|
if (l || j) {
|
|
455
|
-
var
|
|
456
|
-
l && bt(u,
|
|
455
|
+
var R = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
456
|
+
l && bt(u, R), j && _t(u, R);
|
|
457
457
|
}
|
|
458
458
|
return Rt(e, l, j, v, i, Le.current, u);
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
461
|
var he = F.ReactCurrentOwner, Ve = F.ReactDebugCurrentFrame;
|
|
462
|
-
function
|
|
462
|
+
function z(e) {
|
|
463
463
|
if (e) {
|
|
464
464
|
var t = e._owner, o = ne(e.type, e._source, t ? t.type : null);
|
|
465
465
|
Ve.setExtraStackFrame(o);
|
|
466
466
|
} else
|
|
467
467
|
Ve.setExtraStackFrame(null);
|
|
468
468
|
}
|
|
469
|
-
var
|
|
470
|
-
|
|
471
|
-
function
|
|
469
|
+
var ge;
|
|
470
|
+
ge = !1;
|
|
471
|
+
function me(e) {
|
|
472
472
|
return typeof e == "object" && e !== null && e.$$typeof === n;
|
|
473
473
|
}
|
|
474
474
|
function ze() {
|
|
475
475
|
{
|
|
476
476
|
if (he.current) {
|
|
477
|
-
var e =
|
|
477
|
+
var e = I(he.current.type);
|
|
478
478
|
if (e)
|
|
479
479
|
return `
|
|
480
480
|
|
|
@@ -509,7 +509,7 @@ Check the top-level render call using <` + o + ">.");
|
|
|
509
509
|
return;
|
|
510
510
|
Je[o] = !0;
|
|
511
511
|
var i = "";
|
|
512
|
-
e && e._owner && e._owner !== he.current && (i = " It was passed a child from " +
|
|
512
|
+
e && e._owner && e._owner !== he.current && (i = " It was passed a child from " + I(e._owner.type) + "."), z(e), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', o, i), z(null);
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
515
|
function He(e, t) {
|
|
@@ -519,15 +519,15 @@ Check the top-level render call using <` + o + ">.");
|
|
|
519
519
|
if (ve(e))
|
|
520
520
|
for (var o = 0; o < e.length; o++) {
|
|
521
521
|
var i = e[o];
|
|
522
|
-
|
|
522
|
+
me(i) && qe(i, t);
|
|
523
523
|
}
|
|
524
|
-
else if (
|
|
524
|
+
else if (me(e))
|
|
525
525
|
e._store && (e._store.validated = !0);
|
|
526
526
|
else if (e) {
|
|
527
527
|
var v = we(e);
|
|
528
528
|
if (typeof v == "function" && v !== e.entries)
|
|
529
529
|
for (var h = v.call(e), u; !(u = h.next()).done; )
|
|
530
|
-
|
|
530
|
+
me(u.value) && qe(u.value, t);
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
533
|
}
|
|
@@ -539,18 +539,18 @@ Check the top-level render call using <` + o + ">.");
|
|
|
539
539
|
var o;
|
|
540
540
|
if (typeof t == "function")
|
|
541
541
|
o = t.propTypes;
|
|
542
|
-
else if (typeof t == "object" && (t.$$typeof ===
|
|
542
|
+
else if (typeof t == "object" && (t.$$typeof === d || // Note: Memo only checks outer props here.
|
|
543
543
|
// Inner props are checked in the reconciler.
|
|
544
|
-
t.$$typeof ===
|
|
544
|
+
t.$$typeof === m))
|
|
545
545
|
o = t.propTypes;
|
|
546
546
|
else
|
|
547
547
|
return;
|
|
548
548
|
if (o) {
|
|
549
|
-
var i =
|
|
549
|
+
var i = I(t);
|
|
550
550
|
ft(o, e.props, "prop", i, e);
|
|
551
|
-
} else if (t.PropTypes !== void 0 && !
|
|
552
|
-
|
|
553
|
-
var v =
|
|
551
|
+
} else if (t.PropTypes !== void 0 && !ge) {
|
|
552
|
+
ge = !0;
|
|
553
|
+
var v = I(t);
|
|
554
554
|
x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", v || "Unknown");
|
|
555
555
|
}
|
|
556
556
|
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -561,11 +561,11 @@ Check the top-level render call using <` + o + ">.");
|
|
|
561
561
|
for (var t = Object.keys(e.props), o = 0; o < t.length; o++) {
|
|
562
562
|
var i = t[o];
|
|
563
563
|
if (i !== "children" && i !== "key") {
|
|
564
|
-
|
|
564
|
+
z(e), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), z(null);
|
|
565
565
|
break;
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
|
-
e.ref !== null && (
|
|
568
|
+
e.ref !== null && (z(e), x("Invalid attribute `ref` supplied to `React.Fragment`."), z(null));
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
571
|
var Ke = {};
|
|
@@ -578,39 +578,39 @@ Check the top-level render call using <` + o + ">.");
|
|
|
578
578
|
var j = Et();
|
|
579
579
|
j ? l += j : l += ze();
|
|
580
580
|
var b;
|
|
581
|
-
e === null ? b = "null" : ve(e) ? b = "array" : e !== void 0 && e.$$typeof === n ? (b = "<" + (
|
|
581
|
+
e === null ? b = "null" : ve(e) ? b = "array" : e !== void 0 && e.$$typeof === n ? (b = "<" + (I(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : b = typeof e, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", b, l);
|
|
582
582
|
}
|
|
583
|
-
var
|
|
584
|
-
if (
|
|
585
|
-
return
|
|
583
|
+
var R = St(e, t, o, v, h);
|
|
584
|
+
if (R == null)
|
|
585
|
+
return R;
|
|
586
586
|
if (u) {
|
|
587
|
-
var
|
|
588
|
-
if (
|
|
587
|
+
var P = t.children;
|
|
588
|
+
if (P !== void 0)
|
|
589
589
|
if (i)
|
|
590
|
-
if (ve(
|
|
591
|
-
for (var
|
|
592
|
-
He(
|
|
593
|
-
Object.freeze && Object.freeze(
|
|
590
|
+
if (ve(P)) {
|
|
591
|
+
for (var J = 0; J < P.length; J++)
|
|
592
|
+
He(P[J], e);
|
|
593
|
+
Object.freeze && Object.freeze(P);
|
|
594
594
|
} else
|
|
595
595
|
x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
596
596
|
else
|
|
597
|
-
He(
|
|
597
|
+
He(P, e);
|
|
598
598
|
}
|
|
599
|
-
if (
|
|
600
|
-
var B =
|
|
599
|
+
if (H.call(t, "key")) {
|
|
600
|
+
var B = I(e), O = Object.keys(t).filter(function(Tt) {
|
|
601
601
|
return Tt !== "key";
|
|
602
602
|
}), ye = O.length > 0 ? "{key: someKey, " + O.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
603
603
|
if (!Ke[B + ye]) {
|
|
604
|
-
var
|
|
604
|
+
var Ct = O.length > 0 ? "{" + O.join(": ..., ") + ": ...}" : "{}";
|
|
605
605
|
x(`A props object containing a "key" prop is being spread into JSX:
|
|
606
606
|
let props = %s;
|
|
607
607
|
<%s {...props} />
|
|
608
608
|
React keys must be passed directly to JSX without using spread:
|
|
609
609
|
let props = %s;
|
|
610
|
-
<%s key={someKey} {...props} />`, ye, B,
|
|
610
|
+
<%s key={someKey} {...props} />`, ye, B, Ct, B), Ke[B + ye] = !0;
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
|
-
return e === f ? At(
|
|
613
|
+
return e === f ? At(R) : xt(R), R;
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
616
|
function jt(e, t, o) {
|
|
@@ -619,72 +619,91 @@ React keys must be passed directly to JSX without using spread:
|
|
|
619
619
|
function wt(e, t, o) {
|
|
620
620
|
return Ge(e, t, o, !1);
|
|
621
621
|
}
|
|
622
|
-
var Ot = wt,
|
|
623
|
-
Xe.Fragment = f, Xe.jsx = Ot, Xe.jsxs =
|
|
622
|
+
var Ot = wt, Pt = jt;
|
|
623
|
+
Xe.Fragment = f, Xe.jsx = Ot, Xe.jsxs = Pt;
|
|
624
624
|
}()), Xe;
|
|
625
625
|
}
|
|
626
626
|
process.env.NODE_ENV === "production" ? It.exports = Gt() : It.exports = Zt();
|
|
627
627
|
var s = It.exports;
|
|
628
|
-
let
|
|
628
|
+
let L = {};
|
|
629
629
|
var $t;
|
|
630
630
|
((r) => {
|
|
631
|
-
function n({
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
631
|
+
function n({
|
|
632
|
+
children: S,
|
|
633
|
+
onCallbackModal: d,
|
|
634
|
+
nameModal: A
|
|
635
|
+
}) {
|
|
636
|
+
const [g, m] = ue(!1), [_, C] = ue(!1);
|
|
637
|
+
if (L.onClose = () => {
|
|
638
|
+
Y.BackButton(!1), C(!0), setTimeout(() => {
|
|
639
|
+
m(!1), C(!1), d == null || d(), L.x(A);
|
|
636
640
|
}, 300);
|
|
637
641
|
}, tt(() => {
|
|
638
|
-
|
|
639
|
-
callback: () =>
|
|
640
|
-
}),
|
|
641
|
-
}, []), !!
|
|
642
|
-
return /* @__PURE__ */ s.jsx("div", { className: `modal-overlay ${
|
|
642
|
+
g ? L.onClose() : (Y.BackButton({
|
|
643
|
+
callback: () => L.onClose()
|
|
644
|
+
}), m(!0));
|
|
645
|
+
}, []), !!g)
|
|
646
|
+
return /* @__PURE__ */ s.jsx("div", { className: `modal-overlay ${_ ? "closing" : ""}`, children: /* @__PURE__ */ s.jsx("div", { className: `modal-popup ${_ ? "closing" : ""}`, children: /* @__PURE__ */ s.jsx("div", { children: S }) }) });
|
|
643
647
|
}
|
|
644
648
|
r.Content = n;
|
|
645
649
|
function a({
|
|
646
|
-
import_modules:
|
|
650
|
+
import_modules: S
|
|
647
651
|
}) {
|
|
648
|
-
let [
|
|
649
|
-
return
|
|
650
|
-
A(
|
|
652
|
+
let [d, A] = ue([]);
|
|
653
|
+
return L.x = (g) => {
|
|
654
|
+
A(g ? d.filter((m) => m.key !== g) : []);
|
|
651
655
|
}, tt(() => {
|
|
652
|
-
|
|
653
|
-
}, []),
|
|
654
|
-
A([...
|
|
655
|
-
}, /* @__PURE__ */ s.jsx(s.Fragment, { children:
|
|
656
|
+
S && (L.i = S);
|
|
657
|
+
}, []), L.add = (g, m = Date.now()) => {
|
|
658
|
+
A([...d, { key: m, item: g }]);
|
|
659
|
+
}, /* @__PURE__ */ s.jsx(s.Fragment, { children: d.map((g) => g.item) });
|
|
656
660
|
}
|
|
657
661
|
r.Init = a;
|
|
658
|
-
function f(
|
|
659
|
-
|
|
662
|
+
function f(S, d) {
|
|
663
|
+
L.add(
|
|
664
|
+
/* @__PURE__ */ s.jsx(
|
|
665
|
+
n,
|
|
666
|
+
{
|
|
667
|
+
onCallbackModal: L["callback_modal" + d],
|
|
668
|
+
nameModal: d || "",
|
|
669
|
+
children: S
|
|
670
|
+
},
|
|
671
|
+
String(Date.now())
|
|
672
|
+
),
|
|
673
|
+
d
|
|
674
|
+
);
|
|
660
675
|
}
|
|
661
676
|
r.Add = f;
|
|
662
|
-
function c(
|
|
677
|
+
function c(S, d = Date.now().toString()) {
|
|
663
678
|
return {
|
|
664
|
-
Open: (
|
|
679
|
+
Open: (m) => {
|
|
665
680
|
r.Add(
|
|
666
681
|
/* @__PURE__ */ s.jsx(
|
|
667
|
-
|
|
682
|
+
S,
|
|
668
683
|
{
|
|
669
|
-
...
|
|
670
|
-
|
|
684
|
+
...m,
|
|
685
|
+
onCallbackModal: (_) => {
|
|
686
|
+
var C;
|
|
687
|
+
L.x(d), (C = m.callback) == null || C.call(m, _);
|
|
688
|
+
},
|
|
689
|
+
nameModal: d
|
|
671
690
|
},
|
|
672
691
|
(/* @__PURE__ */ new Date()).getTime()
|
|
673
692
|
),
|
|
674
|
-
|
|
693
|
+
d
|
|
675
694
|
);
|
|
676
695
|
}
|
|
677
696
|
};
|
|
678
697
|
}
|
|
679
698
|
r.Create = c;
|
|
680
|
-
function
|
|
681
|
-
|
|
699
|
+
function p() {
|
|
700
|
+
L.onClose();
|
|
682
701
|
}
|
|
683
|
-
r.Close =
|
|
684
|
-
function E(
|
|
685
|
-
|
|
702
|
+
r.Close = p;
|
|
703
|
+
function E(S, d, A, g) {
|
|
704
|
+
L.i && (g && (L["callback_modal" + d] = g, A.callback = g), L.i(`${S}/modals/${d}.tsx`).then((m) => {
|
|
686
705
|
m.default.Open(A);
|
|
687
|
-
});
|
|
706
|
+
}));
|
|
688
707
|
}
|
|
689
708
|
r.Open = E;
|
|
690
709
|
})($t || ($t = {}));
|
|
@@ -727,12 +746,12 @@ const ot = (r) => {
|
|
|
727
746
|
}, Jt = (r, n) => {
|
|
728
747
|
const a = new Uint8Array(r.length), f = new Uint8Array(r.length);
|
|
729
748
|
let c = 0;
|
|
730
|
-
for (let
|
|
731
|
-
const E =
|
|
732
|
-
c = n[E] +
|
|
749
|
+
for (let p = 0; p < r.length; p++) {
|
|
750
|
+
const E = p % n.length;
|
|
751
|
+
c = n[E] + p + c & 255, f[p] = c;
|
|
733
752
|
}
|
|
734
|
-
for (let
|
|
735
|
-
a[
|
|
753
|
+
for (let p = 0; p < r.length; p++)
|
|
754
|
+
a[p] = r[p] ^ f[p];
|
|
736
755
|
return a;
|
|
737
756
|
}, Xt = (r) => new TextEncoder().encode(r), Qt = (r) => new TextDecoder().decode(r), er = (r) => {
|
|
738
757
|
let n = "";
|
|
@@ -750,7 +769,7 @@ const ot = (r) => {
|
|
|
750
769
|
try {
|
|
751
770
|
const n = ot(
|
|
752
771
|
Date.now().toString() + Math.random()
|
|
753
|
-
).substring(0, nt().saltLength * 2), a = ot(r + n).substring(0, 8), f = zt(nt().key, n), c = Xt(r),
|
|
772
|
+
).substring(0, nt().saltLength * 2), a = ot(r + n).substring(0, 8), f = zt(nt().key, n), c = Xt(r), p = Jt(c, f), E = er(p);
|
|
754
773
|
return `${n}.${E}.${a}`;
|
|
755
774
|
} catch {
|
|
756
775
|
throw new Error("Не удалось зашифровать данные");
|
|
@@ -760,13 +779,13 @@ const ot = (r) => {
|
|
|
760
779
|
const n = r.split(".");
|
|
761
780
|
if (n.length !== 3)
|
|
762
781
|
throw new Error("Неверный формат зашифрованных данных");
|
|
763
|
-
const a = n[0], f = n[1], c = n[2],
|
|
764
|
-
if (ot(
|
|
782
|
+
const a = n[0], f = n[1], c = n[2], p = zt(nt().key, a), E = tr(f), S = Jt(E, p), d = Qt(S);
|
|
783
|
+
if (ot(d + a).substring(
|
|
765
784
|
0,
|
|
766
785
|
8
|
|
767
786
|
) !== c)
|
|
768
787
|
throw new Error("Контрольная сумма не совпадает");
|
|
769
|
-
return
|
|
788
|
+
return d;
|
|
770
789
|
} catch {
|
|
771
790
|
return "";
|
|
772
791
|
}
|
|
@@ -809,13 +828,13 @@ var Ft;
|
|
|
809
828
|
function or() {
|
|
810
829
|
if (Ft) return Qe;
|
|
811
830
|
Ft = 1;
|
|
812
|
-
var r = N, n = Symbol.for("react.element"), a = Symbol.for("react.fragment"), f = Object.prototype.hasOwnProperty, c = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
|
|
813
|
-
function E(
|
|
814
|
-
var
|
|
815
|
-
A !== void 0 && (
|
|
816
|
-
for (
|
|
817
|
-
if (
|
|
818
|
-
return { $$typeof: n, type:
|
|
831
|
+
var r = N, n = Symbol.for("react.element"), a = Symbol.for("react.fragment"), f = Object.prototype.hasOwnProperty, c = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
832
|
+
function E(S, d, A) {
|
|
833
|
+
var g, m = {}, _ = null, C = null;
|
|
834
|
+
A !== void 0 && (_ = "" + A), d.key !== void 0 && (_ = "" + d.key), d.ref !== void 0 && (C = d.ref);
|
|
835
|
+
for (g in d) f.call(d, g) && !p.hasOwnProperty(g) && (m[g] = d[g]);
|
|
836
|
+
if (S && S.defaultProps) for (g in d = S.defaultProps, d) m[g] === void 0 && (m[g] = d[g]);
|
|
837
|
+
return { $$typeof: n, type: S, key: _, ref: C, props: m, _owner: c.current };
|
|
819
838
|
}
|
|
820
839
|
return Qe.Fragment = a, Qe.jsx = E, Qe.jsxs = E, Qe;
|
|
821
840
|
}
|
|
@@ -832,11 +851,11 @@ var rt = {};
|
|
|
832
851
|
var Bt;
|
|
833
852
|
function ar() {
|
|
834
853
|
return Bt || (Bt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
835
|
-
var r = N, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"),
|
|
854
|
+
var r = N, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), E = Symbol.for("react.provider"), S = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), A = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), $ = Symbol.iterator, Ee = "@@iterator";
|
|
836
855
|
function we(e) {
|
|
837
856
|
if (e === null || typeof e != "object")
|
|
838
857
|
return null;
|
|
839
|
-
var t =
|
|
858
|
+
var t = $ && e[$] || e[Ee];
|
|
840
859
|
return typeof t == "function" ? t : null;
|
|
841
860
|
}
|
|
842
861
|
var F = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -857,16 +876,16 @@ function ar() {
|
|
|
857
876
|
h.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, h);
|
|
858
877
|
}
|
|
859
878
|
}
|
|
860
|
-
var ke = !1,
|
|
861
|
-
|
|
879
|
+
var ke = !1, Pe = !1, Ce = !1, y = !1, k = !1, T;
|
|
880
|
+
T = Symbol.for("react.module.reference");
|
|
862
881
|
function D(e) {
|
|
863
|
-
return !!(typeof e == "string" || typeof e == "function" || e === f || e ===
|
|
882
|
+
return !!(typeof e == "string" || typeof e == "function" || e === f || e === p || k || e === c || e === A || e === g || y || e === C || ke || Pe || Ce || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === m || e.$$typeof === E || e.$$typeof === S || e.$$typeof === d || // This needs to include all possible module reference object
|
|
864
883
|
// types supported by any Flight configuration anywhere since
|
|
865
884
|
// we don't know which Flight build this will end up being used
|
|
866
885
|
// with.
|
|
867
|
-
e.$$typeof ===
|
|
886
|
+
e.$$typeof === T || e.getModuleId !== void 0));
|
|
868
887
|
}
|
|
869
|
-
function
|
|
888
|
+
function V(e, t, o) {
|
|
870
889
|
var i = e.displayName;
|
|
871
890
|
if (i)
|
|
872
891
|
return i;
|
|
@@ -876,7 +895,7 @@ function ar() {
|
|
|
876
895
|
function G(e) {
|
|
877
896
|
return e.displayName || "Context";
|
|
878
897
|
}
|
|
879
|
-
function
|
|
898
|
+
function I(e) {
|
|
880
899
|
if (e == null)
|
|
881
900
|
return null;
|
|
882
901
|
if (typeof e.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
@@ -888,32 +907,32 @@ function ar() {
|
|
|
888
907
|
return "Fragment";
|
|
889
908
|
case a:
|
|
890
909
|
return "Portal";
|
|
891
|
-
case
|
|
910
|
+
case p:
|
|
892
911
|
return "Profiler";
|
|
893
912
|
case c:
|
|
894
913
|
return "StrictMode";
|
|
895
914
|
case A:
|
|
896
915
|
return "Suspense";
|
|
897
|
-
case
|
|
916
|
+
case g:
|
|
898
917
|
return "SuspenseList";
|
|
899
918
|
}
|
|
900
919
|
if (typeof e == "object")
|
|
901
920
|
switch (e.$$typeof) {
|
|
902
|
-
case
|
|
921
|
+
case S:
|
|
903
922
|
var t = e;
|
|
904
923
|
return G(t) + ".Consumer";
|
|
905
924
|
case E:
|
|
906
925
|
var o = e;
|
|
907
926
|
return G(o._context) + ".Provider";
|
|
908
|
-
case
|
|
909
|
-
return
|
|
910
|
-
case
|
|
927
|
+
case d:
|
|
928
|
+
return V(e, e.render, "ForwardRef");
|
|
929
|
+
case m:
|
|
911
930
|
var i = e.displayName || null;
|
|
912
|
-
return i !== null ? i :
|
|
913
|
-
case
|
|
931
|
+
return i !== null ? i : I(e.type) || "Memo";
|
|
932
|
+
case _: {
|
|
914
933
|
var v = e, h = v._payload, u = v._init;
|
|
915
934
|
try {
|
|
916
|
-
return
|
|
935
|
+
return I(u(h));
|
|
917
936
|
} catch {
|
|
918
937
|
return null;
|
|
919
938
|
}
|
|
@@ -921,7 +940,7 @@ function ar() {
|
|
|
921
940
|
}
|
|
922
941
|
return null;
|
|
923
942
|
}
|
|
924
|
-
var
|
|
943
|
+
var M = Object.assign, W = 0, Z, X, Q, ee, Te, Ie, $e;
|
|
925
944
|
function Me() {
|
|
926
945
|
}
|
|
927
946
|
Me.__reactDisabledLog = !0;
|
|
@@ -957,25 +976,25 @@ function ar() {
|
|
|
957
976
|
writable: !0
|
|
958
977
|
};
|
|
959
978
|
Object.defineProperties(console, {
|
|
960
|
-
log:
|
|
979
|
+
log: M({}, e, {
|
|
961
980
|
value: Z
|
|
962
981
|
}),
|
|
963
|
-
info:
|
|
982
|
+
info: M({}, e, {
|
|
964
983
|
value: X
|
|
965
984
|
}),
|
|
966
|
-
warn:
|
|
985
|
+
warn: M({}, e, {
|
|
967
986
|
value: Q
|
|
968
987
|
}),
|
|
969
|
-
error:
|
|
988
|
+
error: M({}, e, {
|
|
970
989
|
value: ee
|
|
971
990
|
}),
|
|
972
|
-
group:
|
|
991
|
+
group: M({}, e, {
|
|
973
992
|
value: Te
|
|
974
993
|
}),
|
|
975
|
-
groupCollapsed:
|
|
994
|
+
groupCollapsed: M({}, e, {
|
|
976
995
|
value: Ie
|
|
977
996
|
}),
|
|
978
|
-
groupEnd:
|
|
997
|
+
groupEnd: M({}, e, {
|
|
979
998
|
value: $e
|
|
980
999
|
})
|
|
981
1000
|
});
|
|
@@ -1052,25 +1071,25 @@ function ar() {
|
|
|
1052
1071
|
if (O && i && typeof O.stack == "string") {
|
|
1053
1072
|
for (var l = O.stack.split(`
|
|
1054
1073
|
`), j = i.stack.split(`
|
|
1055
|
-
`), b = l.length - 1,
|
|
1056
|
-
|
|
1057
|
-
for (; b >= 1 &&
|
|
1058
|
-
if (l[b] !== j[
|
|
1059
|
-
if (b !== 1 ||
|
|
1074
|
+
`), b = l.length - 1, R = j.length - 1; b >= 1 && R >= 0 && l[b] !== j[R]; )
|
|
1075
|
+
R--;
|
|
1076
|
+
for (; b >= 1 && R >= 0; b--, R--)
|
|
1077
|
+
if (l[b] !== j[R]) {
|
|
1078
|
+
if (b !== 1 || R !== 1)
|
|
1060
1079
|
do
|
|
1061
|
-
if (b--,
|
|
1062
|
-
var
|
|
1080
|
+
if (b--, R--, R < 0 || l[b] !== j[R]) {
|
|
1081
|
+
var P = `
|
|
1063
1082
|
` + l[b].replace(" at new ", " at ");
|
|
1064
|
-
return e.displayName &&
|
|
1083
|
+
return e.displayName && P.includes("<anonymous>") && (P = P.replace("<anonymous>", e.displayName)), typeof e == "function" && re.set(e, P), P;
|
|
1065
1084
|
}
|
|
1066
|
-
while (b >= 1 &&
|
|
1085
|
+
while (b >= 1 && R >= 0);
|
|
1067
1086
|
break;
|
|
1068
1087
|
}
|
|
1069
1088
|
}
|
|
1070
1089
|
} finally {
|
|
1071
1090
|
pe = !1, fe.current = h, st(), Error.prepareStackTrace = v;
|
|
1072
1091
|
}
|
|
1073
|
-
var
|
|
1092
|
+
var J = e ? e.displayName || e.name : "", B = J ? te(J) : "";
|
|
1074
1093
|
return typeof e == "function" && re.set(e, B), B;
|
|
1075
1094
|
}
|
|
1076
1095
|
function ut(e, t, o) {
|
|
@@ -1090,16 +1109,16 @@ function ar() {
|
|
|
1090
1109
|
switch (e) {
|
|
1091
1110
|
case A:
|
|
1092
1111
|
return te("Suspense");
|
|
1093
|
-
case
|
|
1112
|
+
case g:
|
|
1094
1113
|
return te("SuspenseList");
|
|
1095
1114
|
}
|
|
1096
1115
|
if (typeof e == "object")
|
|
1097
1116
|
switch (e.$$typeof) {
|
|
1098
|
-
case
|
|
1117
|
+
case d:
|
|
1099
1118
|
return ut(e.render);
|
|
1100
|
-
case
|
|
1119
|
+
case m:
|
|
1101
1120
|
return ne(e.type, t, o);
|
|
1102
|
-
case
|
|
1121
|
+
case _: {
|
|
1103
1122
|
var i = e, v = i._payload, h = i._init;
|
|
1104
1123
|
try {
|
|
1105
1124
|
return ne(h(v), t, o);
|
|
@@ -1109,7 +1128,7 @@ function ar() {
|
|
|
1109
1128
|
}
|
|
1110
1129
|
return "";
|
|
1111
1130
|
}
|
|
1112
|
-
var
|
|
1131
|
+
var H = Object.prototype.hasOwnProperty, De = {}, Fe = F.ReactDebugCurrentFrame;
|
|
1113
1132
|
function oe(e) {
|
|
1114
1133
|
if (e) {
|
|
1115
1134
|
var t = e._owner, o = ne(e.type, e._source, t ? t.type : null);
|
|
@@ -1119,7 +1138,7 @@ function ar() {
|
|
|
1119
1138
|
}
|
|
1120
1139
|
function ft(e, t, o, i, v) {
|
|
1121
1140
|
{
|
|
1122
|
-
var h = Function.call.bind(
|
|
1141
|
+
var h = Function.call.bind(H);
|
|
1123
1142
|
for (var u in e)
|
|
1124
1143
|
if (h(e, u)) {
|
|
1125
1144
|
var l = void 0;
|
|
@@ -1166,16 +1185,16 @@ function ar() {
|
|
|
1166
1185
|
__self: !0,
|
|
1167
1186
|
__source: !0
|
|
1168
1187
|
}, Ue, Ye;
|
|
1169
|
-
function
|
|
1170
|
-
if (
|
|
1188
|
+
function gt(e) {
|
|
1189
|
+
if (H.call(e, "ref")) {
|
|
1171
1190
|
var t = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
1172
1191
|
if (t && t.isReactWarning)
|
|
1173
1192
|
return !1;
|
|
1174
1193
|
}
|
|
1175
1194
|
return e.ref !== void 0;
|
|
1176
1195
|
}
|
|
1177
|
-
function
|
|
1178
|
-
if (
|
|
1196
|
+
function mt(e) {
|
|
1197
|
+
if (H.call(e, "key")) {
|
|
1179
1198
|
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
1180
1199
|
if (t && t.isReactWarning)
|
|
1181
1200
|
return !1;
|
|
@@ -1239,38 +1258,38 @@ function ar() {
|
|
|
1239
1258
|
function St(e, t, o, i, v) {
|
|
1240
1259
|
{
|
|
1241
1260
|
var h, u = {}, l = null, j = null;
|
|
1242
|
-
o !== void 0 && (We(o), l = "" + o),
|
|
1261
|
+
o !== void 0 && (We(o), l = "" + o), mt(t) && (We(t.key), l = "" + t.key), gt(t) && (j = t.ref, yt(t));
|
|
1243
1262
|
for (h in t)
|
|
1244
|
-
|
|
1263
|
+
H.call(t, h) && !ht.hasOwnProperty(h) && (u[h] = t[h]);
|
|
1245
1264
|
if (e && e.defaultProps) {
|
|
1246
1265
|
var b = e.defaultProps;
|
|
1247
1266
|
for (h in b)
|
|
1248
1267
|
u[h] === void 0 && (u[h] = b[h]);
|
|
1249
1268
|
}
|
|
1250
1269
|
if (l || j) {
|
|
1251
|
-
var
|
|
1252
|
-
l && bt(u,
|
|
1270
|
+
var R = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
1271
|
+
l && bt(u, R), j && _t(u, R);
|
|
1253
1272
|
}
|
|
1254
1273
|
return Rt(e, l, j, v, i, Le.current, u);
|
|
1255
1274
|
}
|
|
1256
1275
|
}
|
|
1257
1276
|
var he = F.ReactCurrentOwner, Ve = F.ReactDebugCurrentFrame;
|
|
1258
|
-
function
|
|
1277
|
+
function z(e) {
|
|
1259
1278
|
if (e) {
|
|
1260
1279
|
var t = e._owner, o = ne(e.type, e._source, t ? t.type : null);
|
|
1261
1280
|
Ve.setExtraStackFrame(o);
|
|
1262
1281
|
} else
|
|
1263
1282
|
Ve.setExtraStackFrame(null);
|
|
1264
1283
|
}
|
|
1265
|
-
var
|
|
1266
|
-
|
|
1267
|
-
function
|
|
1284
|
+
var ge;
|
|
1285
|
+
ge = !1;
|
|
1286
|
+
function me(e) {
|
|
1268
1287
|
return typeof e == "object" && e !== null && e.$$typeof === n;
|
|
1269
1288
|
}
|
|
1270
1289
|
function ze() {
|
|
1271
1290
|
{
|
|
1272
1291
|
if (he.current) {
|
|
1273
|
-
var e =
|
|
1292
|
+
var e = I(he.current.type);
|
|
1274
1293
|
if (e)
|
|
1275
1294
|
return `
|
|
1276
1295
|
|
|
@@ -1305,7 +1324,7 @@ Check the top-level render call using <` + o + ">.");
|
|
|
1305
1324
|
return;
|
|
1306
1325
|
Je[o] = !0;
|
|
1307
1326
|
var i = "";
|
|
1308
|
-
e && e._owner && e._owner !== he.current && (i = " It was passed a child from " +
|
|
1327
|
+
e && e._owner && e._owner !== he.current && (i = " It was passed a child from " + I(e._owner.type) + "."), z(e), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', o, i), z(null);
|
|
1309
1328
|
}
|
|
1310
1329
|
}
|
|
1311
1330
|
function He(e, t) {
|
|
@@ -1315,15 +1334,15 @@ Check the top-level render call using <` + o + ">.");
|
|
|
1315
1334
|
if (ve(e))
|
|
1316
1335
|
for (var o = 0; o < e.length; o++) {
|
|
1317
1336
|
var i = e[o];
|
|
1318
|
-
|
|
1337
|
+
me(i) && qe(i, t);
|
|
1319
1338
|
}
|
|
1320
|
-
else if (
|
|
1339
|
+
else if (me(e))
|
|
1321
1340
|
e._store && (e._store.validated = !0);
|
|
1322
1341
|
else if (e) {
|
|
1323
1342
|
var v = we(e);
|
|
1324
1343
|
if (typeof v == "function" && v !== e.entries)
|
|
1325
1344
|
for (var h = v.call(e), u; !(u = h.next()).done; )
|
|
1326
|
-
|
|
1345
|
+
me(u.value) && qe(u.value, t);
|
|
1327
1346
|
}
|
|
1328
1347
|
}
|
|
1329
1348
|
}
|
|
@@ -1335,18 +1354,18 @@ Check the top-level render call using <` + o + ">.");
|
|
|
1335
1354
|
var o;
|
|
1336
1355
|
if (typeof t == "function")
|
|
1337
1356
|
o = t.propTypes;
|
|
1338
|
-
else if (typeof t == "object" && (t.$$typeof ===
|
|
1357
|
+
else if (typeof t == "object" && (t.$$typeof === d || // Note: Memo only checks outer props here.
|
|
1339
1358
|
// Inner props are checked in the reconciler.
|
|
1340
|
-
t.$$typeof ===
|
|
1359
|
+
t.$$typeof === m))
|
|
1341
1360
|
o = t.propTypes;
|
|
1342
1361
|
else
|
|
1343
1362
|
return;
|
|
1344
1363
|
if (o) {
|
|
1345
|
-
var i =
|
|
1364
|
+
var i = I(t);
|
|
1346
1365
|
ft(o, e.props, "prop", i, e);
|
|
1347
|
-
} else if (t.PropTypes !== void 0 && !
|
|
1348
|
-
|
|
1349
|
-
var v =
|
|
1366
|
+
} else if (t.PropTypes !== void 0 && !ge) {
|
|
1367
|
+
ge = !0;
|
|
1368
|
+
var v = I(t);
|
|
1350
1369
|
x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", v || "Unknown");
|
|
1351
1370
|
}
|
|
1352
1371
|
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -1357,11 +1376,11 @@ Check the top-level render call using <` + o + ">.");
|
|
|
1357
1376
|
for (var t = Object.keys(e.props), o = 0; o < t.length; o++) {
|
|
1358
1377
|
var i = t[o];
|
|
1359
1378
|
if (i !== "children" && i !== "key") {
|
|
1360
|
-
|
|
1379
|
+
z(e), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), z(null);
|
|
1361
1380
|
break;
|
|
1362
1381
|
}
|
|
1363
1382
|
}
|
|
1364
|
-
e.ref !== null && (
|
|
1383
|
+
e.ref !== null && (z(e), x("Invalid attribute `ref` supplied to `React.Fragment`."), z(null));
|
|
1365
1384
|
}
|
|
1366
1385
|
}
|
|
1367
1386
|
var Ke = {};
|
|
@@ -1374,39 +1393,39 @@ Check the top-level render call using <` + o + ">.");
|
|
|
1374
1393
|
var j = Et();
|
|
1375
1394
|
j ? l += j : l += ze();
|
|
1376
1395
|
var b;
|
|
1377
|
-
e === null ? b = "null" : ve(e) ? b = "array" : e !== void 0 && e.$$typeof === n ? (b = "<" + (
|
|
1396
|
+
e === null ? b = "null" : ve(e) ? b = "array" : e !== void 0 && e.$$typeof === n ? (b = "<" + (I(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : b = typeof e, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", b, l);
|
|
1378
1397
|
}
|
|
1379
|
-
var
|
|
1380
|
-
if (
|
|
1381
|
-
return
|
|
1398
|
+
var R = St(e, t, o, v, h);
|
|
1399
|
+
if (R == null)
|
|
1400
|
+
return R;
|
|
1382
1401
|
if (u) {
|
|
1383
|
-
var
|
|
1384
|
-
if (
|
|
1402
|
+
var P = t.children;
|
|
1403
|
+
if (P !== void 0)
|
|
1385
1404
|
if (i)
|
|
1386
|
-
if (ve(
|
|
1387
|
-
for (var
|
|
1388
|
-
He(
|
|
1389
|
-
Object.freeze && Object.freeze(
|
|
1405
|
+
if (ve(P)) {
|
|
1406
|
+
for (var J = 0; J < P.length; J++)
|
|
1407
|
+
He(P[J], e);
|
|
1408
|
+
Object.freeze && Object.freeze(P);
|
|
1390
1409
|
} else
|
|
1391
1410
|
x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
1392
1411
|
else
|
|
1393
|
-
He(
|
|
1412
|
+
He(P, e);
|
|
1394
1413
|
}
|
|
1395
|
-
if (
|
|
1396
|
-
var B =
|
|
1414
|
+
if (H.call(t, "key")) {
|
|
1415
|
+
var B = I(e), O = Object.keys(t).filter(function(Tt) {
|
|
1397
1416
|
return Tt !== "key";
|
|
1398
1417
|
}), ye = O.length > 0 ? "{key: someKey, " + O.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1399
1418
|
if (!Ke[B + ye]) {
|
|
1400
|
-
var
|
|
1419
|
+
var Ct = O.length > 0 ? "{" + O.join(": ..., ") + ": ...}" : "{}";
|
|
1401
1420
|
x(`A props object containing a "key" prop is being spread into JSX:
|
|
1402
1421
|
let props = %s;
|
|
1403
1422
|
<%s {...props} />
|
|
1404
1423
|
React keys must be passed directly to JSX without using spread:
|
|
1405
1424
|
let props = %s;
|
|
1406
|
-
<%s key={someKey} {...props} />`, ye, B,
|
|
1425
|
+
<%s key={someKey} {...props} />`, ye, B, Ct, B), Ke[B + ye] = !0;
|
|
1407
1426
|
}
|
|
1408
1427
|
}
|
|
1409
|
-
return e === f ? At(
|
|
1428
|
+
return e === f ? At(R) : xt(R), R;
|
|
1410
1429
|
}
|
|
1411
1430
|
}
|
|
1412
1431
|
function jt(e, t, o) {
|
|
@@ -1415,14 +1434,14 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1415
1434
|
function wt(e, t, o) {
|
|
1416
1435
|
return Ge(e, t, o, !1);
|
|
1417
1436
|
}
|
|
1418
|
-
var Ot = wt,
|
|
1419
|
-
rt.Fragment = f, rt.jsx = Ot, rt.jsxs =
|
|
1437
|
+
var Ot = wt, Pt = jt;
|
|
1438
|
+
rt.Fragment = f, rt.jsx = Ot, rt.jsxs = Pt;
|
|
1420
1439
|
}()), rt;
|
|
1421
1440
|
}
|
|
1422
1441
|
process.env.NODE_ENV === "production" ? or() : ar();
|
|
1423
1442
|
const ir = "0.0.39", qt = {
|
|
1424
1443
|
version: ir
|
|
1425
|
-
}, ae = {},
|
|
1444
|
+
}, ae = {}, q = {
|
|
1426
1445
|
module: "",
|
|
1427
1446
|
v: qt.version,
|
|
1428
1447
|
page: "Main",
|
|
@@ -1446,33 +1465,33 @@ Se().elcrm || (Se().elcrm = {});
|
|
|
1446
1465
|
Object.assign(Se().elcrm, { router: qt.version });
|
|
1447
1466
|
function ie(r) {
|
|
1448
1467
|
var n, a, f, c;
|
|
1449
|
-
const
|
|
1450
|
-
if (
|
|
1451
|
-
r.debug ||
|
|
1468
|
+
const p = Se();
|
|
1469
|
+
if (p.ROUTER_PARAMS) {
|
|
1470
|
+
r.debug || p.ROUTER_PARAMS.debug;
|
|
1452
1471
|
const E = {
|
|
1453
|
-
page: (n =
|
|
1454
|
-
module: (a =
|
|
1455
|
-
tab: (f =
|
|
1456
|
-
id: (c =
|
|
1472
|
+
page: (n = p.ROUTER_PARAMS) == null ? void 0 : n.page,
|
|
1473
|
+
module: (a = p.ROUTER_PARAMS) == null ? void 0 : a.module,
|
|
1474
|
+
tab: (f = p.ROUTER_PARAMS) == null ? void 0 : f.tab,
|
|
1475
|
+
id: (c = p.ROUTER_PARAMS) == null ? void 0 : c.id
|
|
1457
1476
|
};
|
|
1458
|
-
|
|
1459
|
-
...
|
|
1477
|
+
p.ROUTER_PARAMS = {
|
|
1478
|
+
...p.ROUTER_PARAMS,
|
|
1460
1479
|
...r,
|
|
1461
1480
|
prev: E
|
|
1462
1481
|
};
|
|
1463
1482
|
} else {
|
|
1464
|
-
r.debug ||
|
|
1483
|
+
r.debug || q.debug;
|
|
1465
1484
|
const E = {
|
|
1466
|
-
page:
|
|
1467
|
-
module:
|
|
1468
|
-
tab:
|
|
1469
|
-
id:
|
|
1485
|
+
page: q == null ? void 0 : q.page,
|
|
1486
|
+
module: q == null ? void 0 : q.module,
|
|
1487
|
+
tab: q == null ? void 0 : q.tab,
|
|
1488
|
+
id: q == null ? void 0 : q.id
|
|
1470
1489
|
};
|
|
1471
|
-
|
|
1490
|
+
p.ROUTER_PARAMS = { ...q, ...r, prev: E };
|
|
1472
1491
|
}
|
|
1473
1492
|
}
|
|
1474
1493
|
function w() {
|
|
1475
|
-
return Se().ROUTER_PARAMS ||
|
|
1494
|
+
return Se().ROUTER_PARAMS || q;
|
|
1476
1495
|
}
|
|
1477
1496
|
function xe(r) {
|
|
1478
1497
|
const n = Se();
|
|
@@ -1482,7 +1501,7 @@ function xe(r) {
|
|
|
1482
1501
|
} : n.ROUTER_PARAMS.LISTENER = { ...r };
|
|
1483
1502
|
}
|
|
1484
1503
|
function se() {
|
|
1485
|
-
return Se().ROUTER_PARAMS.LISTENER ||
|
|
1504
|
+
return Se().ROUTER_PARAMS.LISTENER || q.LISTENER;
|
|
1486
1505
|
}
|
|
1487
1506
|
var ce;
|
|
1488
1507
|
((r) => {
|
|
@@ -1516,80 +1535,80 @@ var ce;
|
|
|
1516
1535
|
function f({
|
|
1517
1536
|
module: y = w().module,
|
|
1518
1537
|
page: k = w().page,
|
|
1519
|
-
auth:
|
|
1538
|
+
auth: T = w().auth,
|
|
1520
1539
|
debug: D = w().debug
|
|
1521
1540
|
}) {
|
|
1522
|
-
ie({ page: k, module: y, auth:
|
|
1541
|
+
ie({ page: k, module: y, auth: T, debug: D }), n();
|
|
1523
1542
|
}
|
|
1524
1543
|
r.Default = f;
|
|
1525
1544
|
function c(y) {
|
|
1526
|
-
let k = (
|
|
1527
|
-
const [
|
|
1545
|
+
let k = (V) => (ie({ page: V }), V);
|
|
1546
|
+
const [T, D] = N.useState(
|
|
1528
1547
|
E() || y && k(y) || w().page
|
|
1529
1548
|
);
|
|
1530
|
-
return xe({ page: (
|
|
1531
|
-
D(
|
|
1532
|
-
} }),
|
|
1549
|
+
return xe({ page: (V) => {
|
|
1550
|
+
D(V);
|
|
1551
|
+
} }), T;
|
|
1533
1552
|
}
|
|
1534
1553
|
r.usePage = c;
|
|
1535
|
-
function
|
|
1536
|
-
ie({ page: y, ...
|
|
1554
|
+
function p(y, k = !0, T = {}) {
|
|
1555
|
+
ie({ page: y, ...T }), sessionStorage.setItem(
|
|
1537
1556
|
w().STORAGE,
|
|
1538
1557
|
le.enCode(w())
|
|
1539
1558
|
), k && se().page(y);
|
|
1540
1559
|
}
|
|
1541
|
-
r.setPage =
|
|
1560
|
+
r.setPage = p;
|
|
1542
1561
|
function E() {
|
|
1543
1562
|
return w().page;
|
|
1544
1563
|
}
|
|
1545
1564
|
r.getPage = E;
|
|
1546
|
-
function
|
|
1565
|
+
function S(y) {
|
|
1547
1566
|
return w().page === y;
|
|
1548
1567
|
}
|
|
1549
|
-
r.isPage =
|
|
1550
|
-
function
|
|
1568
|
+
r.isPage = S;
|
|
1569
|
+
function d() {
|
|
1551
1570
|
return w().prev;
|
|
1552
1571
|
}
|
|
1553
|
-
r.getBack =
|
|
1572
|
+
r.getBack = d;
|
|
1554
1573
|
function A(y, k) {
|
|
1555
|
-
const [
|
|
1556
|
-
|
|
1574
|
+
const [T, D] = N.useState(
|
|
1575
|
+
m() || y || w().module
|
|
1557
1576
|
);
|
|
1558
|
-
return xe({ module: D }),
|
|
1577
|
+
return xe({ module: D }), T;
|
|
1559
1578
|
}
|
|
1560
1579
|
r.useModule = A;
|
|
1561
|
-
function
|
|
1580
|
+
function g(y, k = !0) {
|
|
1562
1581
|
ie({ module: y }), sessionStorage.setItem(
|
|
1563
1582
|
w().STORAGE,
|
|
1564
1583
|
le.enCode(w())
|
|
1565
1584
|
), k && se().module(y);
|
|
1566
1585
|
}
|
|
1567
|
-
r.setModule =
|
|
1568
|
-
function
|
|
1586
|
+
r.setModule = g;
|
|
1587
|
+
function m() {
|
|
1569
1588
|
return w().module || "";
|
|
1570
1589
|
}
|
|
1571
|
-
r.getModule =
|
|
1572
|
-
function
|
|
1590
|
+
r.getModule = m;
|
|
1591
|
+
function _(y) {
|
|
1573
1592
|
return w().module === y;
|
|
1574
1593
|
}
|
|
1575
|
-
r.isModule =
|
|
1576
|
-
function
|
|
1594
|
+
r.isModule = _;
|
|
1595
|
+
function C(y, k) {
|
|
1577
1596
|
if (typeof y != "function") {
|
|
1578
|
-
const [
|
|
1597
|
+
const [T, D] = N.useState(!k), [V, G] = N.useState(y || Ee());
|
|
1579
1598
|
return xe({ tabs: G }), k && N.useEffect(() => {
|
|
1580
1599
|
D(!0);
|
|
1581
|
-
}, []), [
|
|
1600
|
+
}, []), [V, T];
|
|
1582
1601
|
} else
|
|
1583
1602
|
xe({ tabs: y });
|
|
1584
1603
|
}
|
|
1585
|
-
r.useTabs =
|
|
1586
|
-
async function
|
|
1604
|
+
r.useTabs = C;
|
|
1605
|
+
async function $(y, k = !0) {
|
|
1587
1606
|
ie({ tab: y }), sessionStorage.setItem(
|
|
1588
1607
|
w().STORAGE,
|
|
1589
1608
|
le.enCode(w())
|
|
1590
1609
|
), k && (se().tabs && se().tabs(y));
|
|
1591
1610
|
}
|
|
1592
|
-
r.setTabs =
|
|
1611
|
+
r.setTabs = $;
|
|
1593
1612
|
function Ee() {
|
|
1594
1613
|
return w().tab;
|
|
1595
1614
|
}
|
|
@@ -1600,9 +1619,9 @@ var ce;
|
|
|
1600
1619
|
r.isTabs = we;
|
|
1601
1620
|
function F(y) {
|
|
1602
1621
|
if (typeof y != "function") {
|
|
1603
|
-
const [k,
|
|
1622
|
+
const [k, T] = N.useState(y || ke());
|
|
1604
1623
|
return xe({ id: (D) => {
|
|
1605
|
-
|
|
1624
|
+
T(D);
|
|
1606
1625
|
} }), k;
|
|
1607
1626
|
} else
|
|
1608
1627
|
xe({ id: y });
|
|
@@ -1622,19 +1641,19 @@ var ce;
|
|
|
1622
1641
|
return w().id;
|
|
1623
1642
|
}
|
|
1624
1643
|
r.getId = ke;
|
|
1625
|
-
function
|
|
1644
|
+
function Pe(y) {
|
|
1626
1645
|
return Number(w().id) === y;
|
|
1627
1646
|
}
|
|
1628
|
-
r.isId =
|
|
1629
|
-
async function
|
|
1630
|
-
var k,
|
|
1647
|
+
r.isId = Pe;
|
|
1648
|
+
async function Ce(y) {
|
|
1649
|
+
var k, T, D, V, G, I, M, W;
|
|
1631
1650
|
const { page: Z, module: X, tab: Q, id: ee } = y;
|
|
1632
|
-
Z !== void 0 && (ae.page = Z), X !== void 0 && (ae.module = X), Q !== void 0 && (ae.tab = Q), ee !== void 0 && (ae.id = ee), ie({ ...ae }), ee !== void 0 && ((
|
|
1651
|
+
Z !== void 0 && (ae.page = Z), X !== void 0 && (ae.module = X), Q !== void 0 && (ae.tab = Q), ee !== void 0 && (ae.id = ee), ie({ ...ae }), ee !== void 0 && ((T = (k = se()).id) == null || T.call(k, ee)), Q !== void 0 && ((V = (D = se()).tabs) == null || V.call(D, Q)), X !== void 0 && ((I = (G = se()).module) == null || I.call(G, X)), Z !== void 0 && ((W = (M = se()).page) == null || W.call(M, Z)), sessionStorage.setItem(
|
|
1633
1652
|
w().STORAGE,
|
|
1634
1653
|
le.enCode(w())
|
|
1635
1654
|
);
|
|
1636
1655
|
}
|
|
1637
|
-
r.navigate =
|
|
1656
|
+
r.navigate = Ce;
|
|
1638
1657
|
})(ce || (ce = {}));
|
|
1639
1658
|
let at = {};
|
|
1640
1659
|
function sr() {
|
|
@@ -1659,19 +1678,19 @@ function ur(r) {
|
|
|
1659
1678
|
c(!0), at.del(n.key);
|
|
1660
1679
|
}, 5e3);
|
|
1661
1680
|
}, [n.key]);
|
|
1662
|
-
let
|
|
1681
|
+
let p;
|
|
1663
1682
|
switch (n.type) {
|
|
1664
1683
|
case "error":
|
|
1665
|
-
|
|
1684
|
+
p = /* @__PURE__ */ s.jsx("path", { d: "M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm3.53 12.22a.75.75 0 1 1-1.06 1.06L12 13.06l-2.47 2.47a.75.75 0 0 1-1.06-1.06L10.94 12 8.47 9.53a.75.75 0 0 1 1.06-1.06L12 10.94l2.47-2.47a.75.75 0 0 1 1.06 1.06L13.06 12l2.47 2.47Z" });
|
|
1666
1685
|
break;
|
|
1667
1686
|
case "success":
|
|
1668
|
-
|
|
1687
|
+
p = /* @__PURE__ */ s.jsx("path", { d: "M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm5.074 6.482-6.3 7.5a.748.748 0 0 1-.562.268h-.013a.75.75 0 0 1-.557-.248l-2.7-3a.751.751 0 0 1 .88-1.186c.09.045.17.107.234.182l2.123 2.36 5.747-6.84a.75.75 0 0 1 1.148.964Z" });
|
|
1669
1688
|
break;
|
|
1670
1689
|
case "warning":
|
|
1671
|
-
|
|
1690
|
+
p = /* @__PURE__ */ s.jsx("path", { d: "M12 2.625c-5.17 0-9.375 4.206-9.375 9.375 0 5.17 4.206 9.375 9.375 9.375 5.17 0 9.375-4.206 9.375-9.375 0-5.17-4.206-9.375-9.375-9.375Zm0 3.844a1.219 1.219 0 1 1 0 2.437 1.219 1.219 0 0 1 0-2.437Zm2.25 10.593h-4.125a.75.75 0 1 1 0-1.5h1.313v-4.124h-.75a.75.75 0 1 1 0-1.5h1.5a.75.75 0 0 1 .75.75v4.874h1.312a.75.75 0 1 1 0 1.5Z" });
|
|
1672
1691
|
break;
|
|
1673
1692
|
default:
|
|
1674
|
-
|
|
1693
|
+
p = "icon fa fa-exclamation-circle";
|
|
1675
1694
|
break;
|
|
1676
1695
|
}
|
|
1677
1696
|
return /* @__PURE__ */ s.jsx(s.Fragment, { children: f ? /* @__PURE__ */ s.jsx(s.Fragment, {}) : /* @__PURE__ */ s.jsxs(
|
|
@@ -1690,7 +1709,7 @@ function ur(r) {
|
|
|
1690
1709
|
width: "24",
|
|
1691
1710
|
height: "24",
|
|
1692
1711
|
viewBox: "0 0 24 24",
|
|
1693
|
-
children:
|
|
1712
|
+
children: p
|
|
1694
1713
|
}
|
|
1695
1714
|
),
|
|
1696
1715
|
/* @__PURE__ */ s.jsx("span", { className: "text", children: n.text })
|
|
@@ -1709,13 +1728,13 @@ const Ht = ({
|
|
|
1709
1728
|
isOverlay: a = !0,
|
|
1710
1729
|
footer: f = !0,
|
|
1711
1730
|
className: c,
|
|
1712
|
-
onOpen:
|
|
1731
|
+
onOpen: p
|
|
1713
1732
|
}) => {
|
|
1714
|
-
const [E,
|
|
1733
|
+
const [E, S] = N.useState(!1);
|
|
1715
1734
|
return et = () => {
|
|
1716
|
-
|
|
1717
|
-
var
|
|
1718
|
-
|
|
1735
|
+
S(!0), setTimeout(() => {
|
|
1736
|
+
var d;
|
|
1737
|
+
p == null || p(!1), (d = Ae == null ? void 0 : Ae.onClose) == null || d.call(Ae);
|
|
1719
1738
|
}, 300);
|
|
1720
1739
|
}, /* @__PURE__ */ s.jsx(
|
|
1721
1740
|
"div",
|
|
@@ -1726,7 +1745,7 @@ const Ht = ({
|
|
|
1726
1745
|
"div",
|
|
1727
1746
|
{
|
|
1728
1747
|
className: `footer-menu-popup-book ${E ? "closing" : ""} ${c || ""} ${f ? "footer" : ""}`,
|
|
1729
|
-
onClick: (
|
|
1748
|
+
onClick: (d) => d.stopPropagation(),
|
|
1730
1749
|
children: [
|
|
1731
1750
|
/* @__PURE__ */ s.jsxs("div", { className: "footer-menu-header", children: [
|
|
1732
1751
|
/* @__PURE__ */ s.jsx("h3", { children: n }),
|
|
@@ -1755,49 +1774,49 @@ const Ht = ({
|
|
|
1755
1774
|
className: a,
|
|
1756
1775
|
toHide: f = !1,
|
|
1757
1776
|
page: c,
|
|
1758
|
-
onPageChange:
|
|
1777
|
+
onPageChange: p,
|
|
1759
1778
|
direction: E = "row"
|
|
1760
1779
|
}) => {
|
|
1761
|
-
const [
|
|
1780
|
+
const [S, d] = N.useState(null), [A, g] = N.useState(
|
|
1762
1781
|
c ? Lt(r || [], c) : 0
|
|
1763
1782
|
);
|
|
1764
1783
|
return Ae.onClose = () => {
|
|
1765
|
-
|
|
1784
|
+
d(null), g(c ? Lt(r || [], c) : 0);
|
|
1766
1785
|
}, tt(() => {
|
|
1767
1786
|
if (!f)
|
|
1768
1787
|
return;
|
|
1769
|
-
const
|
|
1770
|
-
const
|
|
1771
|
-
|
|
1772
|
-
},
|
|
1773
|
-
const
|
|
1774
|
-
|
|
1788
|
+
const m = document.querySelectorAll("[contenteditable]"), _ = () => {
|
|
1789
|
+
const $ = document.querySelector("footer");
|
|
1790
|
+
$ && ($.style.display = "flex");
|
|
1791
|
+
}, C = () => {
|
|
1792
|
+
const $ = document.querySelector("footer");
|
|
1793
|
+
$ && ($.style.display = "none");
|
|
1775
1794
|
};
|
|
1776
|
-
return
|
|
1777
|
-
|
|
1795
|
+
return m.forEach(($) => {
|
|
1796
|
+
$.addEventListener("focus", C, !0), $.addEventListener("blur", _, !0);
|
|
1778
1797
|
}), () => {
|
|
1779
|
-
|
|
1780
|
-
|
|
1798
|
+
m.forEach(($) => {
|
|
1799
|
+
$.removeEventListener("focus", C, !0), $.removeEventListener("blur", _, !0);
|
|
1781
1800
|
});
|
|
1782
1801
|
};
|
|
1783
1802
|
}, []), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
1784
|
-
|
|
1803
|
+
S,
|
|
1785
1804
|
/* @__PURE__ */ s.jsxs(
|
|
1786
1805
|
"footer",
|
|
1787
1806
|
{
|
|
1788
1807
|
className: `${Wt.h} ${Wt[E]} ${a} `,
|
|
1789
1808
|
children: [
|
|
1790
1809
|
n,
|
|
1791
|
-
r && r.map((
|
|
1810
|
+
r && r.map((m, _) => /* @__PURE__ */ s.jsx(
|
|
1792
1811
|
"div",
|
|
1793
1812
|
{
|
|
1794
|
-
"data-active": A ===
|
|
1813
|
+
"data-active": A === _ ? "true" : "false",
|
|
1795
1814
|
onClick: () => {
|
|
1796
|
-
|
|
1815
|
+
m.page && (g(_), p == null || p(m.page)), m.callback && (m.callback(), g(_)), m.component && (A === _ ? et() : (d(m.component), g(_)));
|
|
1797
1816
|
},
|
|
1798
|
-
children:
|
|
1817
|
+
children: m.icon
|
|
1799
1818
|
},
|
|
1800
|
-
|
|
1819
|
+
_
|
|
1801
1820
|
))
|
|
1802
1821
|
]
|
|
1803
1822
|
}
|
|
@@ -1854,25 +1873,25 @@ K.users = {
|
|
|
1854
1873
|
};
|
|
1855
1874
|
const pr = () => {
|
|
1856
1875
|
if (location.hostname === "localhost") {
|
|
1857
|
-
let [r, n] = ue(!1), [a, f] = ue(!1), [c,
|
|
1876
|
+
let [r, n] = ue(!1), [a, f] = ue(!1), [c, p] = ue("dark"), [E, S] = ue(!1), [d, A] = ue(!1);
|
|
1858
1877
|
Re.is = !0, Re.MainButton.set = n, Re.BackButton.set = f, tt(() => {
|
|
1859
1878
|
K[c]["--tg-theme-bg-color-alpha"] = K[c]["--tg-theme-bg-color"] + "b3", K[c]["--tg-theme-secondary-bg-color-alpha"] = K[c]["--tg-theme-secondary-bg-color"] + "d3";
|
|
1860
|
-
for (let
|
|
1879
|
+
for (let _ in K[c])
|
|
1861
1880
|
document.documentElement.style.setProperty(
|
|
1862
|
-
|
|
1863
|
-
K[c][
|
|
1881
|
+
_,
|
|
1882
|
+
K[c][_]
|
|
1864
1883
|
);
|
|
1865
1884
|
je.safeAreaInset.bottom === 0 && document.documentElement.style.setProperty(
|
|
1866
1885
|
"--tg-safe-area-inset-bottom",
|
|
1867
1886
|
"16px"
|
|
1868
1887
|
);
|
|
1869
1888
|
}, []);
|
|
1870
|
-
let
|
|
1871
|
-
for (let
|
|
1872
|
-
document.documentElement.style.setProperty(
|
|
1873
|
-
|
|
1874
|
-
},
|
|
1875
|
-
|
|
1889
|
+
let g = (_) => {
|
|
1890
|
+
for (let C in K[_])
|
|
1891
|
+
document.documentElement.style.setProperty(C, K[_][C]);
|
|
1892
|
+
p(_), S(!1);
|
|
1893
|
+
}, m = () => {
|
|
1894
|
+
S(!1), A(!0);
|
|
1876
1895
|
};
|
|
1877
1896
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
1878
1897
|
/* @__PURE__ */ s.jsxs("header", { className: "debug", children: [
|
|
@@ -1880,14 +1899,14 @@ const pr = () => {
|
|
|
1880
1899
|
"div",
|
|
1881
1900
|
{
|
|
1882
1901
|
onClick: () => {
|
|
1883
|
-
var
|
|
1884
|
-
a.page === void 0 ? (
|
|
1902
|
+
var _;
|
|
1903
|
+
a.page === void 0 ? (_ = a.callback) == null || _.call(a) : ce.setPage(a.page);
|
|
1885
1904
|
},
|
|
1886
1905
|
className: "b",
|
|
1887
1906
|
children: "Назад"
|
|
1888
1907
|
}
|
|
1889
1908
|
),
|
|
1890
|
-
/* @__PURE__ */ s.jsx("div", { className: "o", onClick: () =>
|
|
1909
|
+
/* @__PURE__ */ s.jsx("div", { className: "o", onClick: () => S(!E), children: "Меню" })
|
|
1891
1910
|
] }),
|
|
1892
1911
|
/* @__PURE__ */ s.jsx(_e.Init, {}),
|
|
1893
1912
|
r && /* @__PURE__ */ s.jsx("div", { className: "mb", children: /* @__PURE__ */ s.jsx(
|
|
@@ -1901,7 +1920,7 @@ const pr = () => {
|
|
|
1901
1920
|
) }),
|
|
1902
1921
|
E ? /* @__PURE__ */ s.jsxs("div", { className: "tm", children: [
|
|
1903
1922
|
/* @__PURE__ */ s.jsxs("ul", { children: [
|
|
1904
|
-
/* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx("button", { onClick:
|
|
1923
|
+
/* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx("button", { onClick: m, children: "Authorization" }) }),
|
|
1905
1924
|
/* @__PURE__ */ s.jsx("li", {})
|
|
1906
1925
|
] }),
|
|
1907
1926
|
/* @__PURE__ */ s.jsxs("ul", { children: [
|
|
@@ -1911,30 +1930,30 @@ const pr = () => {
|
|
|
1911
1930
|
/* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
|
|
1912
1931
|
"button",
|
|
1913
1932
|
{
|
|
1914
|
-
onClick: () =>
|
|
1933
|
+
onClick: () => g("dark"),
|
|
1915
1934
|
children: "Dark"
|
|
1916
1935
|
}
|
|
1917
1936
|
) }),
|
|
1918
1937
|
/* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
|
|
1919
1938
|
"button",
|
|
1920
1939
|
{
|
|
1921
|
-
onClick: () =>
|
|
1940
|
+
onClick: () => g("light"),
|
|
1922
1941
|
children: "Light"
|
|
1923
1942
|
}
|
|
1924
1943
|
) }),
|
|
1925
1944
|
/* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
|
|
1926
1945
|
"button",
|
|
1927
1946
|
{
|
|
1928
|
-
onClick: () =>
|
|
1947
|
+
onClick: () => g("users"),
|
|
1929
1948
|
children: "Users"
|
|
1930
1949
|
}
|
|
1931
1950
|
) })
|
|
1932
1951
|
] })
|
|
1933
1952
|
] }),
|
|
1934
|
-
/* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx("button", { onClick: () =>
|
|
1953
|
+
/* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx("button", { onClick: () => S(!E), children: "Closed" }) })
|
|
1935
1954
|
] })
|
|
1936
1955
|
] }) : "",
|
|
1937
|
-
|
|
1956
|
+
d ? /* @__PURE__ */ s.jsx(vr, { setAuthorization: A }) : ""
|
|
1938
1957
|
] });
|
|
1939
1958
|
} else
|
|
1940
1959
|
return tt(() => {
|
|
@@ -1957,10 +1976,10 @@ const pr = () => {
|
|
|
1957
1976
|
/* @__PURE__ */ s.jsx("fieldset", {}),
|
|
1958
1977
|
/* @__PURE__ */ s.jsx("div", { onClick: a, children: " Сохранить " })
|
|
1959
1978
|
] }) });
|
|
1960
|
-
}, hr = "_p_12hh1_1",
|
|
1979
|
+
}, hr = "_p_12hh1_1", gr = "_s_12hh1_17", Ut = {
|
|
1961
1980
|
p: hr,
|
|
1962
|
-
s:
|
|
1963
|
-
},
|
|
1981
|
+
s: gr
|
|
1982
|
+
}, mr = ({ className: r, children: n, isScroll: a = !0 }) => /* @__PURE__ */ s.jsx(
|
|
1964
1983
|
"div",
|
|
1965
1984
|
{
|
|
1966
1985
|
className: [Ut.p, a && Ut.s, r].filter((f) => f !== void 0).join(" "),
|
|
@@ -1988,7 +2007,7 @@ const pr = () => {
|
|
|
1988
2007
|
}, a = (f) => {
|
|
1989
2008
|
je.openTelegramLink(f);
|
|
1990
2009
|
};
|
|
1991
|
-
return /* @__PURE__ */ s.jsx("div", { className: be.m, children: r.map((f) => /* @__PURE__ */ s.jsx("div", { className: be.g, children: f.items.map((c,
|
|
2010
|
+
return /* @__PURE__ */ s.jsx("div", { className: be.m, children: r.map((f) => /* @__PURE__ */ s.jsx("div", { className: be.g, children: f.items.map((c, p) => /* @__PURE__ */ s.jsxs(
|
|
1992
2011
|
"div",
|
|
1993
2012
|
{
|
|
1994
2013
|
className: be.i,
|
|
@@ -2009,29 +2028,29 @@ const pr = () => {
|
|
|
2009
2028
|
/* @__PURE__ */ s.jsx("span", { className: be.a, children: "›" })
|
|
2010
2029
|
]
|
|
2011
2030
|
},
|
|
2012
|
-
|
|
2031
|
+
p
|
|
2013
2032
|
)) }, f.id)) });
|
|
2014
|
-
},
|
|
2033
|
+
}, U = {
|
|
2015
2034
|
state: [!1],
|
|
2016
2035
|
listen: [],
|
|
2017
2036
|
prev: {},
|
|
2018
2037
|
router: (r) => {
|
|
2019
|
-
r === !1 ? (
|
|
2038
|
+
r === !1 ? (Y.WebApp.BackButton.isVisible = !1, Y.WebApp.BackButton.offClick(U.listen[0]), U.listen.shift(), U.state.length !== 1 && U.state.pop()) : (Y.WebApp.BackButton.isVisible = !0, Y.WebApp.BackButton.offClick(U.listen[0]), U.listen.shift(), U.listen.push(() => {
|
|
2020
2039
|
var a;
|
|
2021
|
-
let n =
|
|
2022
|
-
|
|
2023
|
-
}), je.BackButton.onClick(
|
|
2040
|
+
let n = U.state.pop();
|
|
2041
|
+
U.prev = ce.getPage(), n.page !== void 0 ? ce.setPage(n.page) : (a = n.callback) == null || a.call(n);
|
|
2042
|
+
}), je.BackButton.onClick(U.listen[0]));
|
|
2024
2043
|
}
|
|
2025
2044
|
};
|
|
2026
|
-
var
|
|
2045
|
+
var Y;
|
|
2027
2046
|
((r) => {
|
|
2028
2047
|
r.WebApp = window.Telegram.WebApp, r.getUser = () => {
|
|
2029
2048
|
var n;
|
|
2030
2049
|
return ((n = r.WebApp.initDataUnsafe) == null ? void 0 : n.user) === void 0 ? {} : r.WebApp.initDataUnsafe;
|
|
2031
2050
|
}, r.Notice = {
|
|
2032
2051
|
Send: (n, a, f) => {
|
|
2033
|
-
var c,
|
|
2034
|
-
a !== void 0 ? (_e.Send({ type: n, text: a, thema: f }), (c = r.WebApp.HapticFeedback) == null || c.notificationOccurred(n)) : (_e.Send(n), (
|
|
2052
|
+
var c, p;
|
|
2053
|
+
a !== void 0 ? (_e.Send({ type: n, text: a, thema: f }), (c = r.WebApp.HapticFeedback) == null || c.notificationOccurred(n)) : (_e.Send(n), (p = r.WebApp.HapticFeedback) == null || p.notificationOccurred(n.type));
|
|
2035
2054
|
},
|
|
2036
2055
|
Error: (n) => {
|
|
2037
2056
|
var a;
|
|
@@ -2045,7 +2064,7 @@ var U;
|
|
|
2045
2064
|
var a;
|
|
2046
2065
|
_e.Send({ type: "warning", text: n }), (a = r.WebApp.HapticFeedback) == null || a.notificationOccurred("warning");
|
|
2047
2066
|
}
|
|
2048
|
-
}, r.Header = pr, r.Footer = Kt, r.BottomSheet = Ht, r.toggleBottomSheet = et, r.SafeArea =
|
|
2067
|
+
}, r.Header = pr, r.Footer = Kt, r.BottomSheet = Ht, r.toggleBottomSheet = et, r.SafeArea = mr, r.Loading = _r, r.Modal = $t, r.Menu = wr, r.MainButton = {
|
|
2049
2068
|
callback: [],
|
|
2050
2069
|
set: (n) => {
|
|
2051
2070
|
Re.is ? Re.MainButton.set(n) : (r.WebApp.MainButton.callback.forEach((a) => {
|
|
@@ -2058,16 +2077,16 @@ var U;
|
|
|
2058
2077
|
)));
|
|
2059
2078
|
}
|
|
2060
2079
|
}, r.BackButtonPrev = () => {
|
|
2061
|
-
|
|
2080
|
+
U.prev && (0, r.BackButton)(U.prev);
|
|
2062
2081
|
}, r.BackButton = (n) => {
|
|
2063
|
-
Re.is ? Re.BackButton.set(n) : (
|
|
2082
|
+
Re.is ? Re.BackButton.set(n) : (U.state.push(n), U.router(n));
|
|
2064
2083
|
};
|
|
2065
|
-
})(
|
|
2066
|
-
const
|
|
2084
|
+
})(Y || (Y = {}));
|
|
2085
|
+
const Pr = Kt, Cr = Ht, Tr = Y.BackButton, Ir = Y.Notice, $r = Y.SafeArea, Mr = Y.Loading, Nr = Y.Menu, { Header: Dr, toggleBottomSheet: Fr, Modal: Br, MainButton: Wr, WebApp: je, getUser: Lr } = Y;
|
|
2067
2086
|
export {
|
|
2068
2087
|
Tr as BackButton,
|
|
2069
|
-
|
|
2070
|
-
|
|
2088
|
+
Cr as BottomSheet,
|
|
2089
|
+
Pr as Footer,
|
|
2071
2090
|
Dr as Header,
|
|
2072
2091
|
Mr as Loading,
|
|
2073
2092
|
Wr as MainButton,
|
|
@@ -2076,7 +2095,7 @@ export {
|
|
|
2076
2095
|
Ir as Notice,
|
|
2077
2096
|
$r as SafeArea,
|
|
2078
2097
|
je as WebApp,
|
|
2079
|
-
|
|
2098
|
+
Y as default,
|
|
2080
2099
|
Lr as getUser,
|
|
2081
2100
|
Fr as toggleBottomSheet
|
|
2082
2101
|
};
|