@elcrm/telegram 0.0.71 → 0.0.72
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/BottomSheet/index.d.ts +2 -6
- package/dist/index.es.js +200 -200
- package/dist/index.umd.js +16 -16
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import $, { useState as le, useEffect as Ge } from "react";
|
|
2
2
|
import './index.css';var Pt = { exports: {} }, Je = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
@@ -13,13 +13,13 @@ var It;
|
|
|
13
13
|
function Kt() {
|
|
14
14
|
if (It) return Je;
|
|
15
15
|
It = 1;
|
|
16
|
-
var n =
|
|
16
|
+
var n = $, o = Symbol.for("react.element"), i = Symbol.for("react.fragment"), f = Object.prototype.hasOwnProperty, v = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, g = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
17
|
function j(_, m, E) {
|
|
18
|
-
var d, R = {}, C = null,
|
|
19
|
-
E !== void 0 && (C = "" + E), m.key !== void 0 && (C = "" + m.key), m.ref !== void 0 && (
|
|
18
|
+
var d, R = {}, C = null, M = null;
|
|
19
|
+
E !== void 0 && (C = "" + E), m.key !== void 0 && (C = "" + m.key), m.ref !== void 0 && (M = m.ref);
|
|
20
20
|
for (d in m) f.call(m, d) && !g.hasOwnProperty(d) && (R[d] = m[d]);
|
|
21
21
|
if (_ && _.defaultProps) for (d in m = _.defaultProps, m) R[d] === void 0 && (R[d] = m[d]);
|
|
22
|
-
return { $$typeof: o, type: _, key: C, ref:
|
|
22
|
+
return { $$typeof: o, type: _, key: C, ref: M, props: R, _owner: v.current };
|
|
23
23
|
}
|
|
24
24
|
return Je.Fragment = i, Je.jsx = j, Je.jsxs = j, Je;
|
|
25
25
|
}
|
|
@@ -33,14 +33,14 @@ var qe = {};
|
|
|
33
33
|
* This source code is licensed under the MIT license found in the
|
|
34
34
|
* LICENSE file in the root directory of this source tree.
|
|
35
35
|
*/
|
|
36
|
-
var
|
|
36
|
+
var $t;
|
|
37
37
|
function Ht() {
|
|
38
|
-
return
|
|
39
|
-
var n =
|
|
38
|
+
return $t || ($t = 1, process.env.NODE_ENV !== "production" && function() {
|
|
39
|
+
var n = $, o = Symbol.for("react.element"), i = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), j = Symbol.for("react.provider"), _ = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), M = Symbol.for("react.offscreen"), oe = Symbol.iterator, ke = "@@iterator";
|
|
40
40
|
function Ee(e) {
|
|
41
41
|
if (e === null || typeof e != "object")
|
|
42
42
|
return null;
|
|
43
|
-
var t =
|
|
43
|
+
var t = oe && e[oe] || e[ke];
|
|
44
44
|
return typeof t == "function" ? t : null;
|
|
45
45
|
}
|
|
46
46
|
var F = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -61,23 +61,23 @@ function Ht() {
|
|
|
61
61
|
p.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, p);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
var Se = !1, xe = !1, h = !1, k = !1, T = !1,
|
|
65
|
-
|
|
66
|
-
function
|
|
67
|
-
return !!(typeof e == "string" || typeof e == "function" || e === f || e === g || T || e === v || e === E || e === d || k || e ===
|
|
64
|
+
var Se = !1, xe = !1, h = !1, k = !1, T = !1, D;
|
|
65
|
+
D = Symbol.for("react.module.reference");
|
|
66
|
+
function W(e) {
|
|
67
|
+
return !!(typeof e == "string" || typeof e == "function" || e === f || e === g || T || e === v || e === E || e === d || k || e === M || Se || xe || h || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === R || e.$$typeof === j || e.$$typeof === _ || e.$$typeof === m || // 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 === D || e.getModuleId !== void 0));
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function ae(e, t, r) {
|
|
74
74
|
var a = e.displayName;
|
|
75
75
|
if (a)
|
|
76
76
|
return a;
|
|
77
77
|
var c = t.displayName || t.name || "";
|
|
78
78
|
return c !== "" ? r + "(" + c + ")" : r;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function ie(e) {
|
|
81
81
|
return e.displayName || "Context";
|
|
82
82
|
}
|
|
83
83
|
function A(e) {
|
|
@@ -105,12 +105,12 @@ function Ht() {
|
|
|
105
105
|
switch (e.$$typeof) {
|
|
106
106
|
case _:
|
|
107
107
|
var t = e;
|
|
108
|
-
return
|
|
108
|
+
return ie(t) + ".Consumer";
|
|
109
109
|
case j:
|
|
110
110
|
var r = e;
|
|
111
|
-
return
|
|
111
|
+
return ie(r._context) + ".Provider";
|
|
112
112
|
case m:
|
|
113
|
-
return
|
|
113
|
+
return ae(e, e.render, "ForwardRef");
|
|
114
114
|
case R:
|
|
115
115
|
var a = e.displayName || null;
|
|
116
116
|
return a !== null ? a : A(e.type) || "Memo";
|
|
@@ -125,14 +125,14 @@ function Ht() {
|
|
|
125
125
|
}
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
128
|
-
var I = Object.assign,
|
|
128
|
+
var I = Object.assign, B = 0, q, K, H, Oe, je, we, Ce;
|
|
129
129
|
function Pe() {
|
|
130
130
|
}
|
|
131
131
|
Pe.__reactDisabledLog = !0;
|
|
132
132
|
function nt() {
|
|
133
133
|
{
|
|
134
|
-
if (
|
|
135
|
-
|
|
134
|
+
if (B === 0) {
|
|
135
|
+
q = console.log, K = console.info, H = console.warn, Oe = console.error, je = console.group, we = console.groupCollapsed, Ce = console.groupEnd;
|
|
136
136
|
var e = {
|
|
137
137
|
configurable: !0,
|
|
138
138
|
enumerable: !0,
|
|
@@ -149,12 +149,12 @@ function Ht() {
|
|
|
149
149
|
groupEnd: e
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
|
-
|
|
152
|
+
B++;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
function ot() {
|
|
156
156
|
{
|
|
157
|
-
if (
|
|
157
|
+
if (B--, B === 0) {
|
|
158
158
|
var e = {
|
|
159
159
|
configurable: !0,
|
|
160
160
|
enumerable: !0,
|
|
@@ -162,13 +162,13 @@ function Ht() {
|
|
|
162
162
|
};
|
|
163
163
|
Object.defineProperties(console, {
|
|
164
164
|
log: I({}, e, {
|
|
165
|
-
value:
|
|
165
|
+
value: q
|
|
166
166
|
}),
|
|
167
167
|
info: I({}, e, {
|
|
168
|
-
value:
|
|
168
|
+
value: K
|
|
169
169
|
}),
|
|
170
170
|
warn: I({}, e, {
|
|
171
|
-
value:
|
|
171
|
+
value: H
|
|
172
172
|
}),
|
|
173
173
|
error: I({}, e, {
|
|
174
174
|
value: Oe
|
|
@@ -184,11 +184,11 @@ function Ht() {
|
|
|
184
184
|
})
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
|
-
|
|
187
|
+
B < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
var ue = F.ReactCurrentDispatcher, ce;
|
|
191
|
-
function
|
|
191
|
+
function Z(e, t, r) {
|
|
192
192
|
{
|
|
193
193
|
if (ce === void 0)
|
|
194
194
|
try {
|
|
@@ -201,16 +201,16 @@ function Ht() {
|
|
|
201
201
|
` + ce + e;
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
var fe = !1,
|
|
204
|
+
var fe = !1, X;
|
|
205
205
|
{
|
|
206
206
|
var at = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
-
|
|
207
|
+
X = new at();
|
|
208
208
|
}
|
|
209
209
|
function Ae(e, t) {
|
|
210
210
|
if (!e || fe)
|
|
211
211
|
return "";
|
|
212
212
|
{
|
|
213
|
-
var r =
|
|
213
|
+
var r = X.get(e);
|
|
214
214
|
if (r !== void 0)
|
|
215
215
|
return r;
|
|
216
216
|
}
|
|
@@ -265,7 +265,7 @@ function Ht() {
|
|
|
265
265
|
if (y--, b--, b < 0 || s[y] !== x[b]) {
|
|
266
266
|
var P = `
|
|
267
267
|
` + s[y].replace(" at new ", " at ");
|
|
268
|
-
return e.displayName && P.includes("<anonymous>") && (P = P.replace("<anonymous>", e.displayName)), typeof e == "function" &&
|
|
268
|
+
return e.displayName && P.includes("<anonymous>") && (P = P.replace("<anonymous>", e.displayName)), typeof e == "function" && X.set(e, P), P;
|
|
269
269
|
}
|
|
270
270
|
while (y >= 1 && b >= 0);
|
|
271
271
|
break;
|
|
@@ -274,8 +274,8 @@ function Ht() {
|
|
|
274
274
|
} finally {
|
|
275
275
|
fe = !1, ue.current = p, ot(), Error.prepareStackTrace = c;
|
|
276
276
|
}
|
|
277
|
-
var
|
|
278
|
-
return typeof e == "function" &&
|
|
277
|
+
var U = e ? e.displayName || e.name : "", N = U ? Z(U) : "";
|
|
278
|
+
return typeof e == "function" && X.set(e, N), N;
|
|
279
279
|
}
|
|
280
280
|
function it(e, t, r) {
|
|
281
281
|
return Ae(e, !1);
|
|
@@ -284,29 +284,29 @@ function Ht() {
|
|
|
284
284
|
var t = e.prototype;
|
|
285
285
|
return !!(t && t.isReactComponent);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function Q(e, t, r) {
|
|
288
288
|
if (e == null)
|
|
289
289
|
return "";
|
|
290
290
|
if (typeof e == "function")
|
|
291
291
|
return Ae(e, st(e));
|
|
292
292
|
if (typeof e == "string")
|
|
293
|
-
return
|
|
293
|
+
return Z(e);
|
|
294
294
|
switch (e) {
|
|
295
295
|
case E:
|
|
296
|
-
return
|
|
296
|
+
return Z("Suspense");
|
|
297
297
|
case d:
|
|
298
|
-
return
|
|
298
|
+
return Z("SuspenseList");
|
|
299
299
|
}
|
|
300
300
|
if (typeof e == "object")
|
|
301
301
|
switch (e.$$typeof) {
|
|
302
302
|
case m:
|
|
303
303
|
return it(e.render);
|
|
304
304
|
case R:
|
|
305
|
-
return
|
|
305
|
+
return Q(e.type, t, r);
|
|
306
306
|
case C: {
|
|
307
307
|
var a = e, c = a._payload, p = a._init;
|
|
308
308
|
try {
|
|
309
|
-
return
|
|
309
|
+
return Q(p(c), t, r);
|
|
310
310
|
} catch {
|
|
311
311
|
}
|
|
312
312
|
}
|
|
@@ -314,9 +314,9 @@ function Ht() {
|
|
|
314
314
|
return "";
|
|
315
315
|
}
|
|
316
316
|
var V = Object.prototype.hasOwnProperty, Te = {}, Ie = F.ReactDebugCurrentFrame;
|
|
317
|
-
function
|
|
317
|
+
function ee(e) {
|
|
318
318
|
if (e) {
|
|
319
|
-
var t = e._owner, r =
|
|
319
|
+
var t = e._owner, r = Q(e.type, e._source, t ? t.type : null);
|
|
320
320
|
Ie.setExtraStackFrame(r);
|
|
321
321
|
} else
|
|
322
322
|
Ie.setExtraStackFrame(null);
|
|
@@ -336,7 +336,7 @@ function Ht() {
|
|
|
336
336
|
} catch (y) {
|
|
337
337
|
s = y;
|
|
338
338
|
}
|
|
339
|
-
s && !(s instanceof Error) && (
|
|
339
|
+
s && !(s instanceof Error) && (ee(c), S("%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).", a || "React class", r, l, typeof s), ee(null)), s instanceof Error && !(s.message in Te) && (Te[s.message] = !0, ee(c), S("Failed %s type: %s", r, s.message), ee(null));
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}
|
|
@@ -352,19 +352,19 @@ function Ht() {
|
|
|
352
352
|
}
|
|
353
353
|
function ft(e) {
|
|
354
354
|
try {
|
|
355
|
-
return
|
|
355
|
+
return $e(e), !1;
|
|
356
356
|
} catch {
|
|
357
357
|
return !0;
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function $e(e) {
|
|
361
361
|
return "" + e;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function De(e) {
|
|
364
364
|
if (ft(e))
|
|
365
|
-
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ct(e)),
|
|
365
|
+
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ct(e)), $e(e);
|
|
366
366
|
}
|
|
367
|
-
var
|
|
367
|
+
var Be = F.ReactCurrentOwner, dt = {
|
|
368
368
|
key: !0,
|
|
369
369
|
ref: !0,
|
|
370
370
|
__self: !0,
|
|
@@ -387,7 +387,7 @@ function Ht() {
|
|
|
387
387
|
return e.key !== void 0;
|
|
388
388
|
}
|
|
389
389
|
function mt(e, t) {
|
|
390
|
-
typeof e.ref == "string" &&
|
|
390
|
+
typeof e.ref == "string" && Be.current;
|
|
391
391
|
}
|
|
392
392
|
function gt(e, t) {
|
|
393
393
|
{
|
|
@@ -443,7 +443,7 @@ function Ht() {
|
|
|
443
443
|
function bt(e, t, r, a, c) {
|
|
444
444
|
{
|
|
445
445
|
var p, l = {}, s = null, x = null;
|
|
446
|
-
r !== void 0 && (
|
|
446
|
+
r !== void 0 && (De(r), s = "" + r), vt(t) && (De(t.key), s = "" + t.key), pt(t) && (x = t.ref, mt(t, c));
|
|
447
447
|
for (p in t)
|
|
448
448
|
V.call(t, p) && !dt.hasOwnProperty(p) && (l[p] = t[p]);
|
|
449
449
|
if (e && e.defaultProps) {
|
|
@@ -455,13 +455,13 @@ function Ht() {
|
|
|
455
455
|
var b = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
456
456
|
s && gt(l, b), x && ht(l, b);
|
|
457
457
|
}
|
|
458
|
-
return yt(e, s, x, c, a,
|
|
458
|
+
return yt(e, s, x, c, a, Be.current, l);
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
461
|
var pe = F.ReactCurrentOwner, Me = F.ReactDebugCurrentFrame;
|
|
462
|
-
function
|
|
462
|
+
function L(e) {
|
|
463
463
|
if (e) {
|
|
464
|
-
var t = e._owner, r =
|
|
464
|
+
var t = e._owner, r = Q(e.type, e._source, t ? t.type : null);
|
|
465
465
|
Me.setExtraStackFrame(r);
|
|
466
466
|
} else
|
|
467
467
|
Me.setExtraStackFrame(null);
|
|
@@ -509,7 +509,7 @@ Check the top-level render call using <` + r + ">.");
|
|
|
509
509
|
return;
|
|
510
510
|
Le[r] = !0;
|
|
511
511
|
var a = "";
|
|
512
|
-
e && e._owner && e._owner !== pe.current && (a = " It was passed a child from " + A(e._owner.type) + "."),
|
|
512
|
+
e && e._owner && e._owner !== pe.current && (a = " It was passed a child from " + A(e._owner.type) + "."), L(e), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', r, a), L(null);
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
515
|
function Ye(e, t) {
|
|
@@ -561,17 +561,17 @@ Check the top-level render call using <` + r + ">.");
|
|
|
561
561
|
for (var t = Object.keys(e.props), r = 0; r < t.length; r++) {
|
|
562
562
|
var a = t[r];
|
|
563
563
|
if (a !== "children" && a !== "key") {
|
|
564
|
-
|
|
564
|
+
L(e), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), L(null);
|
|
565
565
|
break;
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
|
-
e.ref !== null && (
|
|
568
|
+
e.ref !== null && (L(e), S("Invalid attribute `ref` supplied to `React.Fragment`."), L(null));
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
571
|
var Ve = {};
|
|
572
572
|
function ze(e, t, r, a, c, p) {
|
|
573
573
|
{
|
|
574
|
-
var l =
|
|
574
|
+
var l = W(e);
|
|
575
575
|
if (!l) {
|
|
576
576
|
var s = "";
|
|
577
577
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (s += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
@@ -588,8 +588,8 @@ Check the top-level render call using <` + r + ">.");
|
|
|
588
588
|
if (P !== void 0)
|
|
589
589
|
if (a)
|
|
590
590
|
if (de(P)) {
|
|
591
|
-
for (var
|
|
592
|
-
Ye(P[
|
|
591
|
+
for (var U = 0; U < P.length; U++)
|
|
592
|
+
Ye(P[U], e);
|
|
593
593
|
Object.freeze && Object.freeze(P);
|
|
594
594
|
} else
|
|
595
595
|
S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
@@ -625,18 +625,18 @@ React keys must be passed directly to JSX without using spread:
|
|
|
625
625
|
}
|
|
626
626
|
process.env.NODE_ENV === "production" ? Pt.exports = Kt() : Pt.exports = Ht();
|
|
627
627
|
var u = Pt.exports;
|
|
628
|
-
let
|
|
628
|
+
let G = {};
|
|
629
629
|
var At;
|
|
630
630
|
((n) => {
|
|
631
631
|
function o({ children: _ }) {
|
|
632
632
|
const [m, E] = le(!1), [d, R] = le(!1);
|
|
633
|
-
if (
|
|
634
|
-
|
|
633
|
+
if (G.onClose = () => {
|
|
634
|
+
Y.BackButton(!1), R(!0), setTimeout(() => {
|
|
635
635
|
E(!1), R(!1);
|
|
636
636
|
}, 300);
|
|
637
637
|
}, Ge(() => {
|
|
638
|
-
m ?
|
|
639
|
-
callback: () =>
|
|
638
|
+
m ? G.onClose() : (Y.BackButton({
|
|
639
|
+
callback: () => G.onClose()
|
|
640
640
|
}), E(!0));
|
|
641
641
|
}, []), !!m)
|
|
642
642
|
return /* @__PURE__ */ u.jsx("div", { className: `modal-overlay ${d ? "closing" : ""}`, children: /* @__PURE__ */ u.jsx("div", { className: `modal-popup ${d ? "closing" : ""}`, children: /* @__PURE__ */ u.jsx("div", { children: _ }) }) });
|
|
@@ -646,17 +646,17 @@ var At;
|
|
|
646
646
|
import_modules: _
|
|
647
647
|
}) {
|
|
648
648
|
let [m, E] = le([]);
|
|
649
|
-
return
|
|
649
|
+
return G.x = (d) => {
|
|
650
650
|
E(d ? m.filter((R) => R.key !== d) : []);
|
|
651
651
|
}, Ge(() => {
|
|
652
|
-
_ && (
|
|
653
|
-
}, []),
|
|
652
|
+
_ && (G.i = _);
|
|
653
|
+
}, []), G.add = (d, R = Date.now()) => {
|
|
654
654
|
E([...m, { key: R, item: d }]);
|
|
655
655
|
}, /* @__PURE__ */ u.jsx(u.Fragment, { children: m.map((d) => d.item) });
|
|
656
656
|
}
|
|
657
657
|
n.Init = i;
|
|
658
658
|
function f(_, m) {
|
|
659
|
-
|
|
659
|
+
G.add(/* @__PURE__ */ u.jsx(o, { children: _ }, String(Date.now())), m);
|
|
660
660
|
}
|
|
661
661
|
n.Add = f;
|
|
662
662
|
function v(_) {
|
|
@@ -670,11 +670,11 @@ var At;
|
|
|
670
670
|
}
|
|
671
671
|
n.Create = v;
|
|
672
672
|
function g() {
|
|
673
|
-
|
|
673
|
+
G.onClose();
|
|
674
674
|
}
|
|
675
675
|
n.Close = g;
|
|
676
676
|
function j(_, m, E) {
|
|
677
|
-
|
|
677
|
+
G.i && G.i(`${_}/modals/${m}.tsx`).then((d) => {
|
|
678
678
|
d.default.Open(E);
|
|
679
679
|
});
|
|
680
680
|
}
|
|
@@ -688,7 +688,7 @@ const Lt = {
|
|
|
688
688
|
iterations: 7,
|
|
689
689
|
saltLength: 16
|
|
690
690
|
};
|
|
691
|
-
function
|
|
691
|
+
function Dt(n) {
|
|
692
692
|
const o = Wt();
|
|
693
693
|
o.CRYPTO_PARAMS ? o.CRYPTO_PARAMS = { ...o.CRYPTO_PARAMS, ...n } : o.CRYPTO_PARAMS = { ...Lt, ...n };
|
|
694
694
|
}
|
|
@@ -763,10 +763,10 @@ const et = (n) => {
|
|
|
763
763
|
return "";
|
|
764
764
|
}
|
|
765
765
|
};
|
|
766
|
-
var
|
|
766
|
+
var se;
|
|
767
767
|
((n) => {
|
|
768
768
|
n.setKey = (o) => {
|
|
769
|
-
|
|
769
|
+
Dt({ key: o });
|
|
770
770
|
}, n.enCode = (o) => {
|
|
771
771
|
try {
|
|
772
772
|
const i = JSON.stringify(o);
|
|
@@ -784,9 +784,9 @@ var ie;
|
|
|
784
784
|
return !1;
|
|
785
785
|
}
|
|
786
786
|
}, n.setSecurityParams = (o, i) => {
|
|
787
|
-
|
|
787
|
+
Dt({ iterations: o, saltLength: i });
|
|
788
788
|
};
|
|
789
|
-
})(
|
|
789
|
+
})(se || (se = {}));
|
|
790
790
|
var Ke = {};
|
|
791
791
|
/**
|
|
792
792
|
* @license React
|
|
@@ -797,17 +797,17 @@ var Ke = {};
|
|
|
797
797
|
* This source code is licensed under the MIT license found in the
|
|
798
798
|
* LICENSE file in the root directory of this source tree.
|
|
799
799
|
*/
|
|
800
|
-
var
|
|
800
|
+
var Bt;
|
|
801
801
|
function rr() {
|
|
802
|
-
if (
|
|
803
|
-
|
|
804
|
-
var n =
|
|
802
|
+
if (Bt) return Ke;
|
|
803
|
+
Bt = 1;
|
|
804
|
+
var n = $, o = Symbol.for("react.element"), i = Symbol.for("react.fragment"), f = Object.prototype.hasOwnProperty, v = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, g = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
805
805
|
function j(_, m, E) {
|
|
806
|
-
var d, R = {}, C = null,
|
|
807
|
-
E !== void 0 && (C = "" + E), m.key !== void 0 && (C = "" + m.key), m.ref !== void 0 && (
|
|
806
|
+
var d, R = {}, C = null, M = null;
|
|
807
|
+
E !== void 0 && (C = "" + E), m.key !== void 0 && (C = "" + m.key), m.ref !== void 0 && (M = m.ref);
|
|
808
808
|
for (d in m) f.call(m, d) && !g.hasOwnProperty(d) && (R[d] = m[d]);
|
|
809
809
|
if (_ && _.defaultProps) for (d in m = _.defaultProps, m) R[d] === void 0 && (R[d] = m[d]);
|
|
810
|
-
return { $$typeof: o, type: _, key: C, ref:
|
|
810
|
+
return { $$typeof: o, type: _, key: C, ref: M, props: R, _owner: v.current };
|
|
811
811
|
}
|
|
812
812
|
return Ke.Fragment = i, Ke.jsx = j, Ke.jsxs = j, Ke;
|
|
813
813
|
}
|
|
@@ -824,11 +824,11 @@ var Ze = {};
|
|
|
824
824
|
var Ft;
|
|
825
825
|
function nr() {
|
|
826
826
|
return Ft || (Ft = 1, process.env.NODE_ENV !== "production" && function() {
|
|
827
|
-
var n =
|
|
827
|
+
var n = $, o = Symbol.for("react.element"), i = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), j = Symbol.for("react.provider"), _ = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), M = Symbol.for("react.offscreen"), oe = Symbol.iterator, ke = "@@iterator";
|
|
828
828
|
function Ee(e) {
|
|
829
829
|
if (e === null || typeof e != "object")
|
|
830
830
|
return null;
|
|
831
|
-
var t =
|
|
831
|
+
var t = oe && e[oe] || e[ke];
|
|
832
832
|
return typeof t == "function" ? t : null;
|
|
833
833
|
}
|
|
834
834
|
var F = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -849,23 +849,23 @@ function nr() {
|
|
|
849
849
|
p.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, p);
|
|
850
850
|
}
|
|
851
851
|
}
|
|
852
|
-
var Se = !1, xe = !1, h = !1, k = !1, T = !1,
|
|
853
|
-
|
|
854
|
-
function
|
|
855
|
-
return !!(typeof e == "string" || typeof e == "function" || e === f || e === g || T || e === v || e === E || e === d || k || e ===
|
|
852
|
+
var Se = !1, xe = !1, h = !1, k = !1, T = !1, D;
|
|
853
|
+
D = Symbol.for("react.module.reference");
|
|
854
|
+
function W(e) {
|
|
855
|
+
return !!(typeof e == "string" || typeof e == "function" || e === f || e === g || T || e === v || e === E || e === d || k || e === M || Se || xe || h || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === R || e.$$typeof === j || e.$$typeof === _ || e.$$typeof === m || // This needs to include all possible module reference object
|
|
856
856
|
// types supported by any Flight configuration anywhere since
|
|
857
857
|
// we don't know which Flight build this will end up being used
|
|
858
858
|
// with.
|
|
859
|
-
e.$$typeof ===
|
|
859
|
+
e.$$typeof === D || e.getModuleId !== void 0));
|
|
860
860
|
}
|
|
861
|
-
function
|
|
861
|
+
function ae(e, t, r) {
|
|
862
862
|
var a = e.displayName;
|
|
863
863
|
if (a)
|
|
864
864
|
return a;
|
|
865
865
|
var c = t.displayName || t.name || "";
|
|
866
866
|
return c !== "" ? r + "(" + c + ")" : r;
|
|
867
867
|
}
|
|
868
|
-
function
|
|
868
|
+
function ie(e) {
|
|
869
869
|
return e.displayName || "Context";
|
|
870
870
|
}
|
|
871
871
|
function A(e) {
|
|
@@ -893,12 +893,12 @@ function nr() {
|
|
|
893
893
|
switch (e.$$typeof) {
|
|
894
894
|
case _:
|
|
895
895
|
var t = e;
|
|
896
|
-
return
|
|
896
|
+
return ie(t) + ".Consumer";
|
|
897
897
|
case j:
|
|
898
898
|
var r = e;
|
|
899
|
-
return
|
|
899
|
+
return ie(r._context) + ".Provider";
|
|
900
900
|
case m:
|
|
901
|
-
return
|
|
901
|
+
return ae(e, e.render, "ForwardRef");
|
|
902
902
|
case R:
|
|
903
903
|
var a = e.displayName || null;
|
|
904
904
|
return a !== null ? a : A(e.type) || "Memo";
|
|
@@ -913,14 +913,14 @@ function nr() {
|
|
|
913
913
|
}
|
|
914
914
|
return null;
|
|
915
915
|
}
|
|
916
|
-
var I = Object.assign,
|
|
916
|
+
var I = Object.assign, B = 0, q, K, H, Oe, je, we, Ce;
|
|
917
917
|
function Pe() {
|
|
918
918
|
}
|
|
919
919
|
Pe.__reactDisabledLog = !0;
|
|
920
920
|
function nt() {
|
|
921
921
|
{
|
|
922
|
-
if (
|
|
923
|
-
|
|
922
|
+
if (B === 0) {
|
|
923
|
+
q = console.log, K = console.info, H = console.warn, Oe = console.error, je = console.group, we = console.groupCollapsed, Ce = console.groupEnd;
|
|
924
924
|
var e = {
|
|
925
925
|
configurable: !0,
|
|
926
926
|
enumerable: !0,
|
|
@@ -937,12 +937,12 @@ function nr() {
|
|
|
937
937
|
groupEnd: e
|
|
938
938
|
});
|
|
939
939
|
}
|
|
940
|
-
|
|
940
|
+
B++;
|
|
941
941
|
}
|
|
942
942
|
}
|
|
943
943
|
function ot() {
|
|
944
944
|
{
|
|
945
|
-
if (
|
|
945
|
+
if (B--, B === 0) {
|
|
946
946
|
var e = {
|
|
947
947
|
configurable: !0,
|
|
948
948
|
enumerable: !0,
|
|
@@ -950,13 +950,13 @@ function nr() {
|
|
|
950
950
|
};
|
|
951
951
|
Object.defineProperties(console, {
|
|
952
952
|
log: I({}, e, {
|
|
953
|
-
value:
|
|
953
|
+
value: q
|
|
954
954
|
}),
|
|
955
955
|
info: I({}, e, {
|
|
956
|
-
value:
|
|
956
|
+
value: K
|
|
957
957
|
}),
|
|
958
958
|
warn: I({}, e, {
|
|
959
|
-
value:
|
|
959
|
+
value: H
|
|
960
960
|
}),
|
|
961
961
|
error: I({}, e, {
|
|
962
962
|
value: Oe
|
|
@@ -972,11 +972,11 @@ function nr() {
|
|
|
972
972
|
})
|
|
973
973
|
});
|
|
974
974
|
}
|
|
975
|
-
|
|
975
|
+
B < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
976
976
|
}
|
|
977
977
|
}
|
|
978
978
|
var ue = F.ReactCurrentDispatcher, ce;
|
|
979
|
-
function
|
|
979
|
+
function Z(e, t, r) {
|
|
980
980
|
{
|
|
981
981
|
if (ce === void 0)
|
|
982
982
|
try {
|
|
@@ -989,16 +989,16 @@ function nr() {
|
|
|
989
989
|
` + ce + e;
|
|
990
990
|
}
|
|
991
991
|
}
|
|
992
|
-
var fe = !1,
|
|
992
|
+
var fe = !1, X;
|
|
993
993
|
{
|
|
994
994
|
var at = typeof WeakMap == "function" ? WeakMap : Map;
|
|
995
|
-
|
|
995
|
+
X = new at();
|
|
996
996
|
}
|
|
997
997
|
function Ae(e, t) {
|
|
998
998
|
if (!e || fe)
|
|
999
999
|
return "";
|
|
1000
1000
|
{
|
|
1001
|
-
var r =
|
|
1001
|
+
var r = X.get(e);
|
|
1002
1002
|
if (r !== void 0)
|
|
1003
1003
|
return r;
|
|
1004
1004
|
}
|
|
@@ -1053,7 +1053,7 @@ function nr() {
|
|
|
1053
1053
|
if (y--, b--, b < 0 || s[y] !== x[b]) {
|
|
1054
1054
|
var P = `
|
|
1055
1055
|
` + s[y].replace(" at new ", " at ");
|
|
1056
|
-
return e.displayName && P.includes("<anonymous>") && (P = P.replace("<anonymous>", e.displayName)), typeof e == "function" &&
|
|
1056
|
+
return e.displayName && P.includes("<anonymous>") && (P = P.replace("<anonymous>", e.displayName)), typeof e == "function" && X.set(e, P), P;
|
|
1057
1057
|
}
|
|
1058
1058
|
while (y >= 1 && b >= 0);
|
|
1059
1059
|
break;
|
|
@@ -1062,8 +1062,8 @@ function nr() {
|
|
|
1062
1062
|
} finally {
|
|
1063
1063
|
fe = !1, ue.current = p, ot(), Error.prepareStackTrace = c;
|
|
1064
1064
|
}
|
|
1065
|
-
var
|
|
1066
|
-
return typeof e == "function" &&
|
|
1065
|
+
var U = e ? e.displayName || e.name : "", N = U ? Z(U) : "";
|
|
1066
|
+
return typeof e == "function" && X.set(e, N), N;
|
|
1067
1067
|
}
|
|
1068
1068
|
function it(e, t, r) {
|
|
1069
1069
|
return Ae(e, !1);
|
|
@@ -1072,29 +1072,29 @@ function nr() {
|
|
|
1072
1072
|
var t = e.prototype;
|
|
1073
1073
|
return !!(t && t.isReactComponent);
|
|
1074
1074
|
}
|
|
1075
|
-
function
|
|
1075
|
+
function Q(e, t, r) {
|
|
1076
1076
|
if (e == null)
|
|
1077
1077
|
return "";
|
|
1078
1078
|
if (typeof e == "function")
|
|
1079
1079
|
return Ae(e, st(e));
|
|
1080
1080
|
if (typeof e == "string")
|
|
1081
|
-
return
|
|
1081
|
+
return Z(e);
|
|
1082
1082
|
switch (e) {
|
|
1083
1083
|
case E:
|
|
1084
|
-
return
|
|
1084
|
+
return Z("Suspense");
|
|
1085
1085
|
case d:
|
|
1086
|
-
return
|
|
1086
|
+
return Z("SuspenseList");
|
|
1087
1087
|
}
|
|
1088
1088
|
if (typeof e == "object")
|
|
1089
1089
|
switch (e.$$typeof) {
|
|
1090
1090
|
case m:
|
|
1091
1091
|
return it(e.render);
|
|
1092
1092
|
case R:
|
|
1093
|
-
return
|
|
1093
|
+
return Q(e.type, t, r);
|
|
1094
1094
|
case C: {
|
|
1095
1095
|
var a = e, c = a._payload, p = a._init;
|
|
1096
1096
|
try {
|
|
1097
|
-
return
|
|
1097
|
+
return Q(p(c), t, r);
|
|
1098
1098
|
} catch {
|
|
1099
1099
|
}
|
|
1100
1100
|
}
|
|
@@ -1102,9 +1102,9 @@ function nr() {
|
|
|
1102
1102
|
return "";
|
|
1103
1103
|
}
|
|
1104
1104
|
var V = Object.prototype.hasOwnProperty, Te = {}, Ie = F.ReactDebugCurrentFrame;
|
|
1105
|
-
function
|
|
1105
|
+
function ee(e) {
|
|
1106
1106
|
if (e) {
|
|
1107
|
-
var t = e._owner, r =
|
|
1107
|
+
var t = e._owner, r = Q(e.type, e._source, t ? t.type : null);
|
|
1108
1108
|
Ie.setExtraStackFrame(r);
|
|
1109
1109
|
} else
|
|
1110
1110
|
Ie.setExtraStackFrame(null);
|
|
@@ -1124,7 +1124,7 @@ function nr() {
|
|
|
1124
1124
|
} catch (y) {
|
|
1125
1125
|
s = y;
|
|
1126
1126
|
}
|
|
1127
|
-
s && !(s instanceof Error) && (
|
|
1127
|
+
s && !(s instanceof Error) && (ee(c), S("%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).", a || "React class", r, l, typeof s), ee(null)), s instanceof Error && !(s.message in Te) && (Te[s.message] = !0, ee(c), S("Failed %s type: %s", r, s.message), ee(null));
|
|
1128
1128
|
}
|
|
1129
1129
|
}
|
|
1130
1130
|
}
|
|
@@ -1140,19 +1140,19 @@ function nr() {
|
|
|
1140
1140
|
}
|
|
1141
1141
|
function ft(e) {
|
|
1142
1142
|
try {
|
|
1143
|
-
return
|
|
1143
|
+
return $e(e), !1;
|
|
1144
1144
|
} catch {
|
|
1145
1145
|
return !0;
|
|
1146
1146
|
}
|
|
1147
1147
|
}
|
|
1148
|
-
function
|
|
1148
|
+
function $e(e) {
|
|
1149
1149
|
return "" + e;
|
|
1150
1150
|
}
|
|
1151
|
-
function
|
|
1151
|
+
function De(e) {
|
|
1152
1152
|
if (ft(e))
|
|
1153
|
-
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ct(e)),
|
|
1153
|
+
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ct(e)), $e(e);
|
|
1154
1154
|
}
|
|
1155
|
-
var
|
|
1155
|
+
var Be = F.ReactCurrentOwner, dt = {
|
|
1156
1156
|
key: !0,
|
|
1157
1157
|
ref: !0,
|
|
1158
1158
|
__self: !0,
|
|
@@ -1175,7 +1175,7 @@ function nr() {
|
|
|
1175
1175
|
return e.key !== void 0;
|
|
1176
1176
|
}
|
|
1177
1177
|
function mt(e, t) {
|
|
1178
|
-
typeof e.ref == "string" &&
|
|
1178
|
+
typeof e.ref == "string" && Be.current;
|
|
1179
1179
|
}
|
|
1180
1180
|
function gt(e, t) {
|
|
1181
1181
|
{
|
|
@@ -1231,7 +1231,7 @@ function nr() {
|
|
|
1231
1231
|
function bt(e, t, r, a, c) {
|
|
1232
1232
|
{
|
|
1233
1233
|
var p, l = {}, s = null, x = null;
|
|
1234
|
-
r !== void 0 && (
|
|
1234
|
+
r !== void 0 && (De(r), s = "" + r), vt(t) && (De(t.key), s = "" + t.key), pt(t) && (x = t.ref, mt(t));
|
|
1235
1235
|
for (p in t)
|
|
1236
1236
|
V.call(t, p) && !dt.hasOwnProperty(p) && (l[p] = t[p]);
|
|
1237
1237
|
if (e && e.defaultProps) {
|
|
@@ -1243,13 +1243,13 @@ function nr() {
|
|
|
1243
1243
|
var b = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
1244
1244
|
s && gt(l, b), x && ht(l, b);
|
|
1245
1245
|
}
|
|
1246
|
-
return yt(e, s, x, c, a,
|
|
1246
|
+
return yt(e, s, x, c, a, Be.current, l);
|
|
1247
1247
|
}
|
|
1248
1248
|
}
|
|
1249
1249
|
var pe = F.ReactCurrentOwner, Me = F.ReactDebugCurrentFrame;
|
|
1250
|
-
function
|
|
1250
|
+
function L(e) {
|
|
1251
1251
|
if (e) {
|
|
1252
|
-
var t = e._owner, r =
|
|
1252
|
+
var t = e._owner, r = Q(e.type, e._source, t ? t.type : null);
|
|
1253
1253
|
Me.setExtraStackFrame(r);
|
|
1254
1254
|
} else
|
|
1255
1255
|
Me.setExtraStackFrame(null);
|
|
@@ -1297,7 +1297,7 @@ Check the top-level render call using <` + r + ">.");
|
|
|
1297
1297
|
return;
|
|
1298
1298
|
Le[r] = !0;
|
|
1299
1299
|
var a = "";
|
|
1300
|
-
e && e._owner && e._owner !== pe.current && (a = " It was passed a child from " + A(e._owner.type) + "."),
|
|
1300
|
+
e && e._owner && e._owner !== pe.current && (a = " It was passed a child from " + A(e._owner.type) + "."), L(e), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', r, a), L(null);
|
|
1301
1301
|
}
|
|
1302
1302
|
}
|
|
1303
1303
|
function Ye(e, t) {
|
|
@@ -1349,17 +1349,17 @@ Check the top-level render call using <` + r + ">.");
|
|
|
1349
1349
|
for (var t = Object.keys(e.props), r = 0; r < t.length; r++) {
|
|
1350
1350
|
var a = t[r];
|
|
1351
1351
|
if (a !== "children" && a !== "key") {
|
|
1352
|
-
|
|
1352
|
+
L(e), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), L(null);
|
|
1353
1353
|
break;
|
|
1354
1354
|
}
|
|
1355
1355
|
}
|
|
1356
|
-
e.ref !== null && (
|
|
1356
|
+
e.ref !== null && (L(e), S("Invalid attribute `ref` supplied to `React.Fragment`."), L(null));
|
|
1357
1357
|
}
|
|
1358
1358
|
}
|
|
1359
1359
|
var Ve = {};
|
|
1360
1360
|
function ze(e, t, r, a, c, p) {
|
|
1361
1361
|
{
|
|
1362
|
-
var l =
|
|
1362
|
+
var l = W(e);
|
|
1363
1363
|
if (!l) {
|
|
1364
1364
|
var s = "";
|
|
1365
1365
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (s += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
@@ -1376,8 +1376,8 @@ Check the top-level render call using <` + r + ">.");
|
|
|
1376
1376
|
if (P !== void 0)
|
|
1377
1377
|
if (a)
|
|
1378
1378
|
if (de(P)) {
|
|
1379
|
-
for (var
|
|
1380
|
-
Ye(P[
|
|
1379
|
+
for (var U = 0; U < P.length; U++)
|
|
1380
|
+
Ye(P[U], e);
|
|
1381
1381
|
Object.freeze && Object.freeze(P);
|
|
1382
1382
|
} else
|
|
1383
1383
|
S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
@@ -1414,7 +1414,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1414
1414
|
process.env.NODE_ENV === "production" ? rr() : nr();
|
|
1415
1415
|
const or = "0.0.37", Vt = {
|
|
1416
1416
|
version: or
|
|
1417
|
-
},
|
|
1417
|
+
}, te = {}, Tt = {
|
|
1418
1418
|
module: "",
|
|
1419
1419
|
v: Vt.version,
|
|
1420
1420
|
page: "Main",
|
|
@@ -1427,7 +1427,7 @@ function ye() {
|
|
|
1427
1427
|
}
|
|
1428
1428
|
ye().elcrm || (ye().elcrm = {});
|
|
1429
1429
|
Object.assign(ye().elcrm, { router: Vt.version });
|
|
1430
|
-
function
|
|
1430
|
+
function re(n) {
|
|
1431
1431
|
const o = ye();
|
|
1432
1432
|
o.ROUTER_PARAMS ? o.ROUTER_PARAMS = { ...o.ROUTER_PARAMS, ...n } : o.ROUTER_PARAMS = { ...Tt, ...n };
|
|
1433
1433
|
}
|
|
@@ -1441,7 +1441,7 @@ function _e(n) {
|
|
|
1441
1441
|
...n
|
|
1442
1442
|
} : o.ROUTER_PARAMS.LISTENER = { ...n };
|
|
1443
1443
|
}
|
|
1444
|
-
function
|
|
1444
|
+
function ne() {
|
|
1445
1445
|
return ye().ROUTER_PARAMS.LISTENER || Tt.LISTENER;
|
|
1446
1446
|
}
|
|
1447
1447
|
var Re;
|
|
@@ -1450,8 +1450,8 @@ var Re;
|
|
|
1450
1450
|
var h;
|
|
1451
1451
|
let k = sessionStorage.getItem("f");
|
|
1452
1452
|
if (k) {
|
|
1453
|
-
if (k =
|
|
1454
|
-
|
|
1453
|
+
if (k = se.deCode(k), !k) return !1;
|
|
1454
|
+
re({
|
|
1455
1455
|
id: k.id,
|
|
1456
1456
|
tab: k.tab,
|
|
1457
1457
|
page: k.page,
|
|
@@ -1461,7 +1461,7 @@ var Re;
|
|
|
1461
1461
|
module_admin: k.module_admin
|
|
1462
1462
|
});
|
|
1463
1463
|
} else
|
|
1464
|
-
|
|
1464
|
+
re({
|
|
1465
1465
|
id: 0,
|
|
1466
1466
|
tab: "",
|
|
1467
1467
|
page: (h = localStorage.getItem("d")) != null && h.length ? w().page : w().auth,
|
|
@@ -1470,7 +1470,7 @@ var Re;
|
|
|
1470
1470
|
return !0;
|
|
1471
1471
|
}
|
|
1472
1472
|
function i() {
|
|
1473
|
-
|
|
1473
|
+
te.id = 0, te.tab = "", te.page = w().page, te.module = w().module;
|
|
1474
1474
|
}
|
|
1475
1475
|
n.Reset = i;
|
|
1476
1476
|
function f({
|
|
@@ -1478,24 +1478,24 @@ var Re;
|
|
|
1478
1478
|
page: k = w().page,
|
|
1479
1479
|
auth: T = w().auth
|
|
1480
1480
|
}) {
|
|
1481
|
-
|
|
1481
|
+
re({ page: k, module: h, auth: T }), o();
|
|
1482
1482
|
}
|
|
1483
1483
|
n.Default = f;
|
|
1484
1484
|
function v(h) {
|
|
1485
|
-
let k = (
|
|
1486
|
-
const [T,
|
|
1485
|
+
let k = (W) => (re({ page: W }), W);
|
|
1486
|
+
const [T, D] = $.useState(
|
|
1487
1487
|
j() || h && k(h) || w().page
|
|
1488
1488
|
);
|
|
1489
|
-
return _e({ page: (
|
|
1490
|
-
|
|
1489
|
+
return _e({ page: (W) => {
|
|
1490
|
+
D(W);
|
|
1491
1491
|
} }), T;
|
|
1492
1492
|
}
|
|
1493
1493
|
n.usePage = v;
|
|
1494
1494
|
function g(h, k = !0, T = {}) {
|
|
1495
|
-
|
|
1495
|
+
re({ page: h, ...T }), sessionStorage.setItem(
|
|
1496
1496
|
w().STORAGE,
|
|
1497
|
-
|
|
1498
|
-
), k &&
|
|
1497
|
+
se.enCode(w())
|
|
1498
|
+
), k && ne().page(h);
|
|
1499
1499
|
}
|
|
1500
1500
|
n.setPage = g;
|
|
1501
1501
|
function j() {
|
|
@@ -1507,17 +1507,17 @@ var Re;
|
|
|
1507
1507
|
}
|
|
1508
1508
|
n.isPage = _;
|
|
1509
1509
|
function m(h, k) {
|
|
1510
|
-
const [T,
|
|
1510
|
+
const [T, D] = $.useState(
|
|
1511
1511
|
d() || h || w().module
|
|
1512
1512
|
);
|
|
1513
|
-
return _e({ module:
|
|
1513
|
+
return _e({ module: D }), T;
|
|
1514
1514
|
}
|
|
1515
1515
|
n.useModule = m;
|
|
1516
1516
|
function E(h, k = !0) {
|
|
1517
|
-
|
|
1517
|
+
re({ module: h }), sessionStorage.setItem(
|
|
1518
1518
|
w().STORAGE,
|
|
1519
|
-
|
|
1520
|
-
), k &&
|
|
1519
|
+
se.enCode(w())
|
|
1520
|
+
), k && ne().module(h);
|
|
1521
1521
|
}
|
|
1522
1522
|
n.setModule = E;
|
|
1523
1523
|
function d() {
|
|
@@ -1530,34 +1530,34 @@ var Re;
|
|
|
1530
1530
|
n.isModule = R;
|
|
1531
1531
|
function C(h, k) {
|
|
1532
1532
|
if (typeof h != "function") {
|
|
1533
|
-
const [T,
|
|
1534
|
-
return _e({ tabs:
|
|
1535
|
-
|
|
1536
|
-
}, []), [
|
|
1533
|
+
const [T, D] = $.useState(!k), [W, ae] = $.useState(h || oe());
|
|
1534
|
+
return _e({ tabs: ae }), k && $.useEffect(() => {
|
|
1535
|
+
D(!0);
|
|
1536
|
+
}, []), [W, T];
|
|
1537
1537
|
} else
|
|
1538
1538
|
_e({ tabs: h });
|
|
1539
1539
|
}
|
|
1540
1540
|
n.useTabs = C;
|
|
1541
|
-
async function
|
|
1542
|
-
|
|
1541
|
+
async function M(h, k = !0) {
|
|
1542
|
+
re({ tab: h }), sessionStorage.setItem(
|
|
1543
1543
|
w().STORAGE,
|
|
1544
|
-
|
|
1545
|
-
), k && (
|
|
1544
|
+
se.enCode(w())
|
|
1545
|
+
), k && (ne().tabs && ne().tabs(h));
|
|
1546
1546
|
}
|
|
1547
|
-
n.setTabs =
|
|
1548
|
-
function
|
|
1547
|
+
n.setTabs = M;
|
|
1548
|
+
function oe() {
|
|
1549
1549
|
return w().tab;
|
|
1550
1550
|
}
|
|
1551
|
-
n.getTabs =
|
|
1551
|
+
n.getTabs = oe;
|
|
1552
1552
|
function ke(h) {
|
|
1553
1553
|
return w().tab === h;
|
|
1554
1554
|
}
|
|
1555
1555
|
n.isTabs = ke;
|
|
1556
1556
|
function Ee(h) {
|
|
1557
1557
|
if (typeof h != "function") {
|
|
1558
|
-
const [k, T] =
|
|
1559
|
-
return _e({ id: (
|
|
1560
|
-
T(
|
|
1558
|
+
const [k, T] = $.useState(h || be());
|
|
1559
|
+
return _e({ id: (D) => {
|
|
1560
|
+
T(D);
|
|
1561
1561
|
} }), k;
|
|
1562
1562
|
} else
|
|
1563
1563
|
_e({ id: h });
|
|
@@ -1567,10 +1567,10 @@ var Re;
|
|
|
1567
1567
|
}
|
|
1568
1568
|
n.subId = F;
|
|
1569
1569
|
async function S(h, k = !0) {
|
|
1570
|
-
|
|
1570
|
+
re({ id: h }), sessionStorage.setItem(
|
|
1571
1571
|
w().STORAGE,
|
|
1572
|
-
|
|
1573
|
-
), k &&
|
|
1572
|
+
se.enCode(w())
|
|
1573
|
+
), k && ne().id(h);
|
|
1574
1574
|
}
|
|
1575
1575
|
n.setId = S;
|
|
1576
1576
|
function be() {
|
|
@@ -1582,18 +1582,18 @@ var Re;
|
|
|
1582
1582
|
}
|
|
1583
1583
|
n.isId = Se;
|
|
1584
1584
|
async function xe(h) {
|
|
1585
|
-
var k, T,
|
|
1586
|
-
const { page:
|
|
1587
|
-
|
|
1585
|
+
var k, T, D, W, ae, ie, A, I;
|
|
1586
|
+
const { page: B, module: q, tab: K, id: H } = h;
|
|
1587
|
+
B !== void 0 && (te.page = B), q !== void 0 && (te.module = q), K !== void 0 && (te.tab = K), H !== void 0 && (te.id = H), re({ ...te }), H !== void 0 && ((T = (k = ne()).id) == null || T.call(k, H)), K !== void 0 && ((W = (D = ne()).tabs) == null || W.call(D, K)), q !== void 0 && ((ie = (ae = ne()).module) == null || ie.call(ae, q)), B !== void 0 && ((I = (A = ne()).page) == null || I.call(A, B)), sessionStorage.setItem(
|
|
1588
1588
|
w().STORAGE,
|
|
1589
|
-
|
|
1589
|
+
se.enCode(w())
|
|
1590
1590
|
);
|
|
1591
1591
|
}
|
|
1592
1592
|
n.navigate = xe;
|
|
1593
1593
|
})(Re || (Re = {}));
|
|
1594
1594
|
let tt = {};
|
|
1595
1595
|
function ar() {
|
|
1596
|
-
const [n, o] =
|
|
1596
|
+
const [n, o] = $.useState([]);
|
|
1597
1597
|
return tt.set = (i) => {
|
|
1598
1598
|
o([...n, i]);
|
|
1599
1599
|
}, tt.del = (i) => {
|
|
@@ -1608,8 +1608,8 @@ function ir(n) {
|
|
|
1608
1608
|
}
|
|
1609
1609
|
function sr(n) {
|
|
1610
1610
|
const o = n.data;
|
|
1611
|
-
let [i] =
|
|
1612
|
-
|
|
1611
|
+
let [i] = $.useState("show"), [f, v] = $.useState(!1);
|
|
1612
|
+
$.useEffect(() => {
|
|
1613
1613
|
setTimeout(function() {
|
|
1614
1614
|
v(!0), tt.del(o.key);
|
|
1615
1615
|
}, 5e3);
|
|
@@ -1659,7 +1659,7 @@ let rt = {
|
|
|
1659
1659
|
}, He = () => {
|
|
1660
1660
|
};
|
|
1661
1661
|
const zt = ({ children: n, title: o, isOverlay: i = !0 }) => {
|
|
1662
|
-
const [f, v] =
|
|
1662
|
+
const [f, v] = $.useState(!1);
|
|
1663
1663
|
return He = () => {
|
|
1664
1664
|
v(!0), setTimeout(() => {
|
|
1665
1665
|
Jt.onClose();
|
|
@@ -1704,7 +1704,7 @@ const zt = ({ children: n, title: o, isOverlay: i = !0 }) => {
|
|
|
1704
1704
|
onPageChange: v,
|
|
1705
1705
|
direction: g = "row"
|
|
1706
1706
|
}) => {
|
|
1707
|
-
const [j, _] =
|
|
1707
|
+
const [j, _] = $.useState(null), [m, E] = $.useState(
|
|
1708
1708
|
f ? Mt(n || [], f) : 0
|
|
1709
1709
|
);
|
|
1710
1710
|
return Jt.onClose = () => {
|
|
@@ -1743,8 +1743,8 @@ const zt = ({ children: n, title: o, isOverlay: i = !0 }) => {
|
|
|
1743
1743
|
MainButton: {},
|
|
1744
1744
|
BackButton: {}
|
|
1745
1745
|
};
|
|
1746
|
-
let
|
|
1747
|
-
|
|
1746
|
+
let J = {};
|
|
1747
|
+
J.dark = {
|
|
1748
1748
|
"--tg-theme-subtitle-text-color": "#98989e",
|
|
1749
1749
|
"--tg-theme-destructive-text-color": "#e53935",
|
|
1750
1750
|
"--tg-theme-section-separator-color": "#545458",
|
|
@@ -1761,7 +1761,7 @@ z.dark = {
|
|
|
1761
1761
|
"--tg-theme-text-color": "#ffffff",
|
|
1762
1762
|
"--tg-theme-section-bg-color": "#2c2c2e"
|
|
1763
1763
|
};
|
|
1764
|
-
|
|
1764
|
+
J.light = {
|
|
1765
1765
|
"--tg-theme-subtitle-text-color": "#8e8e93",
|
|
1766
1766
|
"--tg-theme-destructive-text-color": "#ff3b30",
|
|
1767
1767
|
"--tg-theme-section-separator-color": "#c8c7cc",
|
|
@@ -1778,7 +1778,7 @@ z.light = {
|
|
|
1778
1778
|
"--tg-theme-text-color": "#000000",
|
|
1779
1779
|
"--tg-theme-section-bg-color": "#ffffff"
|
|
1780
1780
|
};
|
|
1781
|
-
|
|
1781
|
+
J.users = {
|
|
1782
1782
|
"--tg-theme-bg-color": "#000000",
|
|
1783
1783
|
"--tg-theme-text-color": "#ffffff",
|
|
1784
1784
|
"--tg-theme-hint-color": "#98989e",
|
|
@@ -1791,11 +1791,11 @@ const fr = () => {
|
|
|
1791
1791
|
if (location.hostname === "localhost") {
|
|
1792
1792
|
let [n, o] = le(!1), [i, f] = le(!1), [v, g] = le("dark"), [j, _] = le(!1), [m, E] = le(!1);
|
|
1793
1793
|
he.is = !0, he.MainButton.set = o, he.BackButton.set = f, Ge(() => {
|
|
1794
|
-
|
|
1795
|
-
for (let C in
|
|
1794
|
+
J[v]["--tg-theme-bg-color-alpha"] = J[v]["--tg-theme-bg-color"] + "b3", J[v]["--tg-theme-secondary-bg-color-alpha"] = J[v]["--tg-theme-secondary-bg-color"] + "d3";
|
|
1795
|
+
for (let C in J[v])
|
|
1796
1796
|
document.documentElement.style.setProperty(
|
|
1797
1797
|
C,
|
|
1798
|
-
|
|
1798
|
+
J[v][C]
|
|
1799
1799
|
);
|
|
1800
1800
|
Xe.safeAreaInset.bottom === 0 && document.documentElement.style.setProperty(
|
|
1801
1801
|
"--tg-safe-area-inset-bottom",
|
|
@@ -1803,8 +1803,8 @@ const fr = () => {
|
|
|
1803
1803
|
);
|
|
1804
1804
|
}, []);
|
|
1805
1805
|
let d = (C) => {
|
|
1806
|
-
for (let
|
|
1807
|
-
document.documentElement.style.setProperty(
|
|
1806
|
+
for (let M in J[C])
|
|
1807
|
+
document.documentElement.style.setProperty(M, J[C][M]);
|
|
1808
1808
|
g(C), _(!1);
|
|
1809
1809
|
}, R = () => {
|
|
1810
1810
|
_(!1), E(!0);
|
|
@@ -1892,18 +1892,18 @@ const fr = () => {
|
|
|
1892
1892
|
/* @__PURE__ */ u.jsx("fieldset", {}),
|
|
1893
1893
|
/* @__PURE__ */ u.jsx("div", { onClick: i, children: " Сохранить " })
|
|
1894
1894
|
] }) });
|
|
1895
|
-
},
|
|
1895
|
+
}, z = {
|
|
1896
1896
|
state: [!1],
|
|
1897
1897
|
listen: [],
|
|
1898
1898
|
router: (n) => {
|
|
1899
|
-
n === !1 ? (
|
|
1899
|
+
n === !1 ? (Y.WebApp.BackButton.isVisible = !1, Y.WebApp.BackButton.offClick(z.listen[0]), z.listen.shift(), z.state.length !== 1 && z.state.pop()) : (Y.WebApp.BackButton.isVisible = !0, Y.WebApp.BackButton.offClick(z.listen[0]), z.listen.shift(), z.listen.push(() => {
|
|
1900
1900
|
var i;
|
|
1901
|
-
let o =
|
|
1901
|
+
let o = z.state.pop();
|
|
1902
1902
|
o.page !== void 0 ? Re.setPage(o.page) : (i = o.callback) == null || i.call(o);
|
|
1903
|
-
}),
|
|
1903
|
+
}), Y.WebApp.BackButton.onClick(z.listen[0]));
|
|
1904
1904
|
}
|
|
1905
1905
|
};
|
|
1906
|
-
var
|
|
1906
|
+
var Y;
|
|
1907
1907
|
((n) => {
|
|
1908
1908
|
n.WebApp = window.Telegram.WebApp, n.getUser = () => {
|
|
1909
1909
|
var o;
|
|
@@ -1924,10 +1924,10 @@ var M;
|
|
|
1924
1924
|
)));
|
|
1925
1925
|
}
|
|
1926
1926
|
}, n.BackButton = (o) => {
|
|
1927
|
-
he.is ? he.BackButton.set(o) : (
|
|
1927
|
+
he.is ? he.BackButton.set(o) : (z.state.push(o), z.router(o));
|
|
1928
1928
|
};
|
|
1929
|
-
})(
|
|
1930
|
-
const vr = qt, mr = zt, gr =
|
|
1929
|
+
})(Y || (Y = {}));
|
|
1930
|
+
const vr = qt, mr = zt, gr = Y.BackButton, hr = Y.Notice, { Header: yr, toggleBottomSheet: br, Modal: _r, MainButton: Rr, WebApp: Xe, getUser: kr } = Y;
|
|
1931
1931
|
export {
|
|
1932
1932
|
gr as BackButton,
|
|
1933
1933
|
mr as BottomSheet,
|
|
@@ -1937,7 +1937,7 @@ export {
|
|
|
1937
1937
|
_r as Modal,
|
|
1938
1938
|
hr as Notice,
|
|
1939
1939
|
Xe as WebApp,
|
|
1940
|
-
|
|
1940
|
+
Y as default,
|
|
1941
1941
|
kr as getUser,
|
|
1942
1942
|
br as toggleBottomSheet
|
|
1943
1943
|
};
|