@elcrm/telegram 0.0.62 → 0.0.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +301 -299
- package/dist/index.umd.js +19 -19
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import P, { useState as
|
|
2
|
-
import './index.css';var
|
|
1
|
+
import P, { useState as Ot, useEffect as Tt } from "react";
|
|
2
|
+
import './index.css';var jt = { exports: {} }, Ve = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
5
|
* react-jsx-runtime.production.min.js
|
|
@@ -9,19 +9,19 @@ import './index.css';var Tt = { exports: {} }, Ve = {};
|
|
|
9
9
|
* This source code is licensed under the MIT license found in the
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
|
-
var
|
|
12
|
+
var Pt;
|
|
13
13
|
function Wt() {
|
|
14
|
-
if (
|
|
15
|
-
|
|
16
|
-
var n = P, o = Symbol.for("react.element"), l = Symbol.for("react.fragment"),
|
|
17
|
-
function
|
|
14
|
+
if (Pt) return Ve;
|
|
15
|
+
Pt = 1;
|
|
16
|
+
var n = P, o = Symbol.for("react.element"), l = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, m = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
|
+
function C(_, d, k) {
|
|
18
18
|
var v, x = {}, I = null, A = null;
|
|
19
19
|
k !== void 0 && (I = "" + k), d.key !== void 0 && (I = "" + d.key), d.ref !== void 0 && (A = d.ref);
|
|
20
|
-
for (v in d)
|
|
20
|
+
for (v in d) c.call(d, v) && !y.hasOwnProperty(v) && (x[v] = d[v]);
|
|
21
21
|
if (_ && _.defaultProps) for (v in d = _.defaultProps, d) x[v] === void 0 && (x[v] = d[v]);
|
|
22
22
|
return { $$typeof: o, type: _, key: I, ref: A, props: x, _owner: m.current };
|
|
23
23
|
}
|
|
24
|
-
return Ve.Fragment = l, Ve.jsx =
|
|
24
|
+
return Ve.Fragment = l, Ve.jsx = C, Ve.jsxs = C, Ve;
|
|
25
25
|
}
|
|
26
26
|
var ze = {};
|
|
27
27
|
/**
|
|
@@ -33,10 +33,10 @@ var ze = {};
|
|
|
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 At;
|
|
37
37
|
function Vt() {
|
|
38
|
-
return
|
|
39
|
-
var n = P, o = Symbol.for("react.element"), l = Symbol.for("react.portal"),
|
|
38
|
+
return At || (At = 1, process.env.NODE_ENV !== "production" && function() {
|
|
39
|
+
var n = P, o = Symbol.for("react.element"), l = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), C = Symbol.for("react.provider"), _ = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), k = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), V = Symbol.iterator, Re = "@@iterator";
|
|
40
40
|
function _e(e) {
|
|
41
41
|
if (e === null || typeof e != "object")
|
|
42
42
|
return null;
|
|
@@ -61,10 +61,10 @@ function Vt() {
|
|
|
61
61
|
p.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, p);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
var ke = !1, Ee = !1, h = !1, E = !1,
|
|
64
|
+
var ke = !1, Ee = !1, h = !1, E = !1, F = !1, M;
|
|
65
65
|
M = Symbol.for("react.module.reference");
|
|
66
66
|
function U(e) {
|
|
67
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
67
|
+
return !!(typeof e == "string" || typeof e == "function" || e === c || e === y || F || e === m || e === k || e === v || E || e === A || ke || Ee || h || typeof e == "object" && e !== null && (e.$$typeof === I || e.$$typeof === x || e.$$typeof === C || e.$$typeof === _ || 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.
|
|
@@ -88,7 +88,7 @@ function Vt() {
|
|
|
88
88
|
if (typeof e == "string")
|
|
89
89
|
return e;
|
|
90
90
|
switch (e) {
|
|
91
|
-
case
|
|
91
|
+
case c:
|
|
92
92
|
return "Fragment";
|
|
93
93
|
case l:
|
|
94
94
|
return "Portal";
|
|
@@ -106,7 +106,7 @@ function Vt() {
|
|
|
106
106
|
case _:
|
|
107
107
|
var t = e;
|
|
108
108
|
return ae(t) + ".Consumer";
|
|
109
|
-
case
|
|
109
|
+
case C:
|
|
110
110
|
var r = e;
|
|
111
111
|
return ae(r._context) + ".Provider";
|
|
112
112
|
case d:
|
|
@@ -125,18 +125,18 @@ function Vt() {
|
|
|
125
125
|
}
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
128
|
-
var
|
|
129
|
-
function
|
|
128
|
+
var D = Object.assign, N = 0, q, K, G, Se, xe, Oe, Te;
|
|
129
|
+
function je() {
|
|
130
130
|
}
|
|
131
|
-
|
|
132
|
-
function
|
|
131
|
+
je.__reactDisabledLog = !0;
|
|
132
|
+
function Qe() {
|
|
133
133
|
{
|
|
134
134
|
if (N === 0) {
|
|
135
135
|
q = console.log, K = console.info, G = console.warn, Se = console.error, xe = console.group, Oe = console.groupCollapsed, Te = console.groupEnd;
|
|
136
136
|
var e = {
|
|
137
137
|
configurable: !0,
|
|
138
138
|
enumerable: !0,
|
|
139
|
-
value:
|
|
139
|
+
value: je,
|
|
140
140
|
writable: !0
|
|
141
141
|
};
|
|
142
142
|
Object.defineProperties(console, {
|
|
@@ -152,7 +152,7 @@ function Vt() {
|
|
|
152
152
|
N++;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function et() {
|
|
156
156
|
{
|
|
157
157
|
if (N--, N === 0) {
|
|
158
158
|
var e = {
|
|
@@ -161,25 +161,25 @@ function Vt() {
|
|
|
161
161
|
writable: !0
|
|
162
162
|
};
|
|
163
163
|
Object.defineProperties(console, {
|
|
164
|
-
log:
|
|
164
|
+
log: D({}, e, {
|
|
165
165
|
value: q
|
|
166
166
|
}),
|
|
167
|
-
info:
|
|
167
|
+
info: D({}, e, {
|
|
168
168
|
value: K
|
|
169
169
|
}),
|
|
170
|
-
warn:
|
|
170
|
+
warn: D({}, e, {
|
|
171
171
|
value: G
|
|
172
172
|
}),
|
|
173
|
-
error:
|
|
173
|
+
error: D({}, e, {
|
|
174
174
|
value: Se
|
|
175
175
|
}),
|
|
176
|
-
group:
|
|
176
|
+
group: D({}, e, {
|
|
177
177
|
value: xe
|
|
178
178
|
}),
|
|
179
|
-
groupCollapsed:
|
|
179
|
+
groupCollapsed: D({}, e, {
|
|
180
180
|
value: Oe
|
|
181
181
|
}),
|
|
182
|
-
groupEnd:
|
|
182
|
+
groupEnd: D({}, e, {
|
|
183
183
|
value: Te
|
|
184
184
|
})
|
|
185
185
|
});
|
|
@@ -203,10 +203,10 @@ function Vt() {
|
|
|
203
203
|
}
|
|
204
204
|
var ue = !1, H;
|
|
205
205
|
{
|
|
206
|
-
var
|
|
207
|
-
H = new
|
|
206
|
+
var tt = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
+
H = new tt();
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function Ce(e, t) {
|
|
210
210
|
if (!e || ue)
|
|
211
211
|
return "";
|
|
212
212
|
{
|
|
@@ -219,7 +219,7 @@ function Vt() {
|
|
|
219
219
|
var f = Error.prepareStackTrace;
|
|
220
220
|
Error.prepareStackTrace = void 0;
|
|
221
221
|
var p;
|
|
222
|
-
p = se.current, se.current = null,
|
|
222
|
+
p = se.current, se.current = null, Qe();
|
|
223
223
|
try {
|
|
224
224
|
if (t) {
|
|
225
225
|
var s = function() {
|
|
@@ -272,15 +272,15 @@ function Vt() {
|
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
} finally {
|
|
275
|
-
ue = !1, se.current = p,
|
|
275
|
+
ue = !1, se.current = p, et(), Error.prepareStackTrace = f;
|
|
276
276
|
}
|
|
277
277
|
var W = e ? e.displayName || e.name : "", L = W ? X(W) : "";
|
|
278
278
|
return typeof e == "function" && H.set(e, L), L;
|
|
279
279
|
}
|
|
280
|
-
function
|
|
281
|
-
return
|
|
280
|
+
function rt(e, t, r) {
|
|
281
|
+
return Ce(e, !1);
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function nt(e) {
|
|
284
284
|
var t = e.prototype;
|
|
285
285
|
return !!(t && t.isReactComponent);
|
|
286
286
|
}
|
|
@@ -288,7 +288,7 @@ function Vt() {
|
|
|
288
288
|
if (e == null)
|
|
289
289
|
return "";
|
|
290
290
|
if (typeof e == "function")
|
|
291
|
-
return
|
|
291
|
+
return Ce(e, nt(e));
|
|
292
292
|
if (typeof e == "string")
|
|
293
293
|
return X(e);
|
|
294
294
|
switch (e) {
|
|
@@ -300,7 +300,7 @@ function Vt() {
|
|
|
300
300
|
if (typeof e == "object")
|
|
301
301
|
switch (e.$$typeof) {
|
|
302
302
|
case d:
|
|
303
|
-
return
|
|
303
|
+
return rt(e.render);
|
|
304
304
|
case x:
|
|
305
305
|
return Q(e.type, t, r);
|
|
306
306
|
case I: {
|
|
@@ -321,7 +321,7 @@ function Vt() {
|
|
|
321
321
|
} else
|
|
322
322
|
Pe.setExtraStackFrame(null);
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function ot(e, t, r, a, f) {
|
|
325
325
|
{
|
|
326
326
|
var p = Function.call.bind(z);
|
|
327
327
|
for (var s in e)
|
|
@@ -340,17 +340,17 @@ function Vt() {
|
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
|
-
var
|
|
343
|
+
var at = Array.isArray;
|
|
344
344
|
function ce(e) {
|
|
345
|
-
return
|
|
345
|
+
return at(e);
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function it(e) {
|
|
348
348
|
{
|
|
349
349
|
var t = typeof Symbol == "function" && Symbol.toStringTag, r = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
350
350
|
return r;
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function st(e) {
|
|
354
354
|
try {
|
|
355
355
|
return Ae(e), !1;
|
|
356
356
|
} catch {
|
|
@@ -361,16 +361,16 @@ function Vt() {
|
|
|
361
361
|
return "" + e;
|
|
362
362
|
}
|
|
363
363
|
function Be(e) {
|
|
364
|
-
if (
|
|
365
|
-
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
364
|
+
if (st(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.", it(e)), Ae(e);
|
|
366
366
|
}
|
|
367
|
-
var Ie = $.ReactCurrentOwner,
|
|
367
|
+
var Ie = $.ReactCurrentOwner, lt = {
|
|
368
368
|
key: !0,
|
|
369
369
|
ref: !0,
|
|
370
370
|
__self: !0,
|
|
371
371
|
__source: !0
|
|
372
|
-
},
|
|
373
|
-
function
|
|
372
|
+
}, Fe, De;
|
|
373
|
+
function ut(e) {
|
|
374
374
|
if (z.call(e, "ref")) {
|
|
375
375
|
var t = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
376
376
|
if (t && t.isReactWarning)
|
|
@@ -378,7 +378,7 @@ function Vt() {
|
|
|
378
378
|
}
|
|
379
379
|
return e.ref !== void 0;
|
|
380
380
|
}
|
|
381
|
-
function
|
|
381
|
+
function ct(e) {
|
|
382
382
|
if (z.call(e, "key")) {
|
|
383
383
|
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
384
384
|
if (t && t.isReactWarning)
|
|
@@ -386,13 +386,13 @@ function Vt() {
|
|
|
386
386
|
}
|
|
387
387
|
return e.key !== void 0;
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function ft(e, t) {
|
|
390
390
|
typeof e.ref == "string" && Ie.current;
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function dt(e, t) {
|
|
393
393
|
{
|
|
394
394
|
var r = function() {
|
|
395
|
-
|
|
395
|
+
Fe || (Fe = !0, S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
|
|
396
396
|
};
|
|
397
397
|
r.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
398
398
|
get: r,
|
|
@@ -400,10 +400,10 @@ function Vt() {
|
|
|
400
400
|
});
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function pt(e, t) {
|
|
404
404
|
{
|
|
405
405
|
var r = function() {
|
|
406
|
-
|
|
406
|
+
De || (De = !0, S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
|
|
407
407
|
};
|
|
408
408
|
r.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
409
409
|
get: r,
|
|
@@ -411,7 +411,7 @@ function Vt() {
|
|
|
411
411
|
});
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
var
|
|
414
|
+
var vt = function(e, t, r, a, f, p, s) {
|
|
415
415
|
var i = {
|
|
416
416
|
// This tag allows us to uniquely identify this as a React Element
|
|
417
417
|
$$typeof: o,
|
|
@@ -440,12 +440,12 @@ function Vt() {
|
|
|
440
440
|
value: f
|
|
441
441
|
}), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
|
|
442
442
|
};
|
|
443
|
-
function
|
|
443
|
+
function gt(e, t, r, a, f) {
|
|
444
444
|
{
|
|
445
445
|
var p, s = {}, i = null, O = null;
|
|
446
|
-
r !== void 0 && (Be(r), i = "" + r),
|
|
446
|
+
r !== void 0 && (Be(r), i = "" + r), ct(t) && (Be(t.key), i = "" + t.key), ut(t) && (O = t.ref, ft(t, f));
|
|
447
447
|
for (p in t)
|
|
448
|
-
z.call(t, p) && !
|
|
448
|
+
z.call(t, p) && !lt.hasOwnProperty(p) && (s[p] = t[p]);
|
|
449
449
|
if (e && e.defaultProps) {
|
|
450
450
|
var b = e.defaultProps;
|
|
451
451
|
for (p in b)
|
|
@@ -453,9 +453,9 @@ function Vt() {
|
|
|
453
453
|
}
|
|
454
454
|
if (i || O) {
|
|
455
455
|
var R = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
456
|
-
i &&
|
|
456
|
+
i && dt(s, R), O && pt(s, R);
|
|
457
457
|
}
|
|
458
|
-
return
|
|
458
|
+
return vt(e, i, O, f, a, Ie.current, s);
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
461
|
var fe = $.ReactCurrentOwner, Me = $.ReactDebugCurrentFrame;
|
|
@@ -483,11 +483,11 @@ Check the render method of \`` + e + "`.";
|
|
|
483
483
|
return "";
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
|
-
function
|
|
486
|
+
function mt(e) {
|
|
487
487
|
return "";
|
|
488
488
|
}
|
|
489
489
|
var $e = {};
|
|
490
|
-
function
|
|
490
|
+
function yt(e) {
|
|
491
491
|
{
|
|
492
492
|
var t = Ne();
|
|
493
493
|
if (!t) {
|
|
@@ -504,7 +504,7 @@ Check the top-level render call using <` + r + ">.");
|
|
|
504
504
|
if (!e._store || e._store.validated || e.key != null)
|
|
505
505
|
return;
|
|
506
506
|
e._store.validated = !0;
|
|
507
|
-
var r =
|
|
507
|
+
var r = yt(t);
|
|
508
508
|
if ($e[r])
|
|
509
509
|
return;
|
|
510
510
|
$e[r] = !0;
|
|
@@ -531,7 +531,7 @@ Check the top-level render call using <` + r + ">.");
|
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function ht(e) {
|
|
535
535
|
{
|
|
536
536
|
var t = e.type;
|
|
537
537
|
if (t == null || typeof t == "string")
|
|
@@ -547,7 +547,7 @@ Check the top-level render call using <` + r + ">.");
|
|
|
547
547
|
return;
|
|
548
548
|
if (r) {
|
|
549
549
|
var a = B(t);
|
|
550
|
-
|
|
550
|
+
ot(r, e.props, "prop", a, e);
|
|
551
551
|
} else if (t.PropTypes !== void 0 && !de) {
|
|
552
552
|
de = !0;
|
|
553
553
|
var f = B(t);
|
|
@@ -556,7 +556,7 @@ Check the top-level render call using <` + r + ">.");
|
|
|
556
556
|
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
|
-
function
|
|
559
|
+
function bt(e) {
|
|
560
560
|
{
|
|
561
561
|
for (var t = Object.keys(e.props), r = 0; r < t.length; r++) {
|
|
562
562
|
var a = t[r];
|
|
@@ -575,12 +575,12 @@ Check the top-level render call using <` + r + ">.");
|
|
|
575
575
|
if (!s) {
|
|
576
576
|
var i = "";
|
|
577
577
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (i += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
578
|
-
var O =
|
|
578
|
+
var O = mt();
|
|
579
579
|
O ? i += O : i += Ne();
|
|
580
580
|
var b;
|
|
581
581
|
e === null ? b = "null" : ce(e) ? b = "array" : e !== void 0 && e.$$typeof === o ? (b = "<" + (B(e.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : b = typeof e, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", b, i);
|
|
582
582
|
}
|
|
583
|
-
var R =
|
|
583
|
+
var R = gt(e, t, r, f, p);
|
|
584
584
|
if (R == null)
|
|
585
585
|
return R;
|
|
586
586
|
if (s) {
|
|
@@ -597,73 +597,73 @@ Check the top-level render call using <` + r + ">.");
|
|
|
597
597
|
Ue(w, e);
|
|
598
598
|
}
|
|
599
599
|
if (z.call(t, "key")) {
|
|
600
|
-
var L = B(e), T = Object.keys(t).filter(function(
|
|
601
|
-
return
|
|
600
|
+
var L = B(e), T = Object.keys(t).filter(function(xt) {
|
|
601
|
+
return xt !== "key";
|
|
602
602
|
}), ve = T.length > 0 ? "{key: someKey, " + T.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
603
603
|
if (!Ye[L + ve]) {
|
|
604
|
-
var
|
|
604
|
+
var St = T.length > 0 ? "{" + T.join(": ..., ") + ": ...}" : "{}";
|
|
605
605
|
S(`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} />`, ve, L,
|
|
610
|
+
<%s key={someKey} {...props} />`, ve, L, St, L), Ye[L + ve] = !0;
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
|
-
return e ===
|
|
613
|
+
return e === c ? bt(R) : ht(R), R;
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
|
-
function
|
|
616
|
+
function Rt(e, t, r) {
|
|
617
617
|
return We(e, t, r, !0);
|
|
618
618
|
}
|
|
619
|
-
function
|
|
619
|
+
function _t(e, t, r) {
|
|
620
620
|
return We(e, t, r, !1);
|
|
621
621
|
}
|
|
622
|
-
var
|
|
623
|
-
ze.Fragment =
|
|
622
|
+
var kt = _t, Et = Rt;
|
|
623
|
+
ze.Fragment = c, ze.jsx = kt, ze.jsxs = Et;
|
|
624
624
|
}()), ze;
|
|
625
625
|
}
|
|
626
|
-
process.env.NODE_ENV === "production" ?
|
|
627
|
-
var
|
|
626
|
+
process.env.NODE_ENV === "production" ? jt.exports = Wt() : jt.exports = Vt();
|
|
627
|
+
var u = jt.exports;
|
|
628
628
|
let Z = {};
|
|
629
629
|
var Ct;
|
|
630
630
|
((n) => {
|
|
631
631
|
function o({ children: _ }) {
|
|
632
|
-
const [d, k] =
|
|
632
|
+
const [d, k] = Ot(!1), [v, x] = Ot(!1);
|
|
633
633
|
if (Z.onClose = () => {
|
|
634
634
|
g.BackButton.set(!1), x(!0), setTimeout(() => {
|
|
635
635
|
k(!1), x(!1);
|
|
636
636
|
}, 300);
|
|
637
|
-
},
|
|
637
|
+
}, Tt(() => {
|
|
638
638
|
d ? Z.onClose() : (g.BackButton.set({
|
|
639
639
|
callback: () => Z.onClose()
|
|
640
640
|
}), k(!0));
|
|
641
641
|
}, []), !!d)
|
|
642
|
-
return /* @__PURE__ */
|
|
642
|
+
return /* @__PURE__ */ u.jsx("div", { className: `modal-overlay ${v ? "closing" : ""}`, children: /* @__PURE__ */ u.jsx("div", { className: `modal-popup ${v ? "closing" : ""}`, children: /* @__PURE__ */ u.jsx("div", { children: _ }) }) });
|
|
643
643
|
}
|
|
644
644
|
n.Content = o;
|
|
645
645
|
function l({
|
|
646
646
|
import_modules: _
|
|
647
647
|
}) {
|
|
648
|
-
let [d, k] =
|
|
648
|
+
let [d, k] = Ot([]);
|
|
649
649
|
return Z.x = (v) => {
|
|
650
650
|
k(v ? d.filter((x) => x.key !== v) : []);
|
|
651
|
-
},
|
|
651
|
+
}, Tt(() => {
|
|
652
652
|
_ && (Z.i = _);
|
|
653
653
|
}, []), Z.add = (v, x = Date.now()) => {
|
|
654
654
|
k([...d, { key: x, item: v }]);
|
|
655
|
-
}, /* @__PURE__ */
|
|
655
|
+
}, /* @__PURE__ */ u.jsx(u.Fragment, { children: d.map((v) => v.item) });
|
|
656
656
|
}
|
|
657
657
|
n.Init = l;
|
|
658
|
-
function
|
|
659
|
-
Z.add(/* @__PURE__ */
|
|
658
|
+
function c(_, d) {
|
|
659
|
+
Z.add(/* @__PURE__ */ u.jsx(o, { children: _ }, String(Date.now())), d);
|
|
660
660
|
}
|
|
661
|
-
n.Add =
|
|
661
|
+
n.Add = c;
|
|
662
662
|
function m(_) {
|
|
663
663
|
return {
|
|
664
664
|
Open: (v) => {
|
|
665
665
|
n.Add(
|
|
666
|
-
/* @__PURE__ */
|
|
666
|
+
/* @__PURE__ */ u.jsx(_, { ...v }, (/* @__PURE__ */ new Date()).getTime())
|
|
667
667
|
);
|
|
668
668
|
}
|
|
669
669
|
};
|
|
@@ -673,12 +673,12 @@ var Ct;
|
|
|
673
673
|
Z.onClose();
|
|
674
674
|
}
|
|
675
675
|
n.Close = y;
|
|
676
|
-
function
|
|
676
|
+
function C(_, d, k) {
|
|
677
677
|
Z.i && Z.i(`${_}/modals/${d}.tsx`).then((v) => {
|
|
678
678
|
v.default.Open(k);
|
|
679
679
|
});
|
|
680
680
|
}
|
|
681
|
-
n.Open =
|
|
681
|
+
n.Open = C;
|
|
682
682
|
})(Ct || (Ct = {}));
|
|
683
683
|
function Mt() {
|
|
684
684
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof self < "u" ? self : typeof global < "u" ? global : {};
|
|
@@ -688,7 +688,7 @@ const Nt = {
|
|
|
688
688
|
iterations: 7,
|
|
689
689
|
saltLength: 16
|
|
690
690
|
};
|
|
691
|
-
function
|
|
691
|
+
function Bt(n) {
|
|
692
692
|
const o = Mt();
|
|
693
693
|
o.CRYPTO_PARAMS ? o.CRYPTO_PARAMS = { ...o.CRYPTO_PARAMS, ...n } : o.CRYPTO_PARAMS = { ...Nt, ...n };
|
|
694
694
|
}
|
|
@@ -697,14 +697,14 @@ function Ge() {
|
|
|
697
697
|
}
|
|
698
698
|
const Ze = (n) => {
|
|
699
699
|
let o = 0;
|
|
700
|
-
for (let
|
|
701
|
-
const m = n.charCodeAt(
|
|
700
|
+
for (let c = 0; c < n.length; c++) {
|
|
701
|
+
const m = n.charCodeAt(c);
|
|
702
702
|
o = (o << 5) - o + m, o = o & o;
|
|
703
703
|
}
|
|
704
704
|
o = Math.abs(o);
|
|
705
705
|
let l = "";
|
|
706
|
-
for (let
|
|
707
|
-
const m = (o ^
|
|
706
|
+
for (let c = 0; c < 64; c++) {
|
|
707
|
+
const m = (o ^ c * 197) & 255;
|
|
708
708
|
l += m.toString(16).padStart(2, "0");
|
|
709
709
|
}
|
|
710
710
|
return l;
|
|
@@ -712,38 +712,38 @@ const Ze = (n) => {
|
|
|
712
712
|
let l = n + o;
|
|
713
713
|
for (let m = 0; m < Ge().iterations; m++)
|
|
714
714
|
l = Ze(l);
|
|
715
|
-
const
|
|
715
|
+
const c = new Uint8Array(32);
|
|
716
716
|
for (let m = 0; m < 32; m++)
|
|
717
|
-
|
|
718
|
-
return
|
|
717
|
+
c[m] = parseInt(l.substring(m * 2, m * 2 + 2), 16);
|
|
718
|
+
return c;
|
|
719
719
|
}, Lt = (n, o) => {
|
|
720
|
-
const l = new Uint8Array(n.length),
|
|
720
|
+
const l = new Uint8Array(n.length), c = new Uint8Array(n.length);
|
|
721
721
|
let m = 0;
|
|
722
722
|
for (let y = 0; y < n.length; y++) {
|
|
723
|
-
const
|
|
724
|
-
m = o[
|
|
723
|
+
const C = y % o.length;
|
|
724
|
+
m = o[C] + y + m & 255, c[y] = m;
|
|
725
725
|
}
|
|
726
726
|
for (let y = 0; y < n.length; y++)
|
|
727
|
-
l[y] = n[y] ^
|
|
727
|
+
l[y] = n[y] ^ c[y];
|
|
728
728
|
return l;
|
|
729
729
|
}, zt = (n) => new TextEncoder().encode(n), Jt = (n) => new TextDecoder().decode(n), qt = (n) => {
|
|
730
730
|
let o = "";
|
|
731
731
|
for (let l = 0; l < n.length; l += 8192) {
|
|
732
|
-
const
|
|
733
|
-
o += String.fromCharCode.apply(null, Array.from(
|
|
732
|
+
const c = n.slice(l, Math.min(l + 8192, n.length));
|
|
733
|
+
o += String.fromCharCode.apply(null, Array.from(c));
|
|
734
734
|
}
|
|
735
735
|
return btoa(o);
|
|
736
736
|
}, Kt = (n) => {
|
|
737
737
|
const o = atob(n), l = new Uint8Array(o.length);
|
|
738
|
-
for (let
|
|
739
|
-
l[
|
|
738
|
+
for (let c = 0; c < o.length; c++)
|
|
739
|
+
l[c] = o.charCodeAt(c);
|
|
740
740
|
return l;
|
|
741
741
|
}, Gt = (n) => {
|
|
742
742
|
try {
|
|
743
743
|
const o = Ze(
|
|
744
744
|
Date.now().toString() + Math.random()
|
|
745
|
-
).substring(0, Ge().saltLength * 2), l = Ze(n + o).substring(0, 8),
|
|
746
|
-
return `${o}.${
|
|
745
|
+
).substring(0, Ge().saltLength * 2), l = Ze(n + o).substring(0, 8), c = $t(Ge().key, o), m = zt(n), y = Lt(m, c), C = qt(y);
|
|
746
|
+
return `${o}.${C}.${l}`;
|
|
747
747
|
} catch {
|
|
748
748
|
throw new Error("Не удалось зашифровать данные");
|
|
749
749
|
}
|
|
@@ -752,7 +752,7 @@ const Ze = (n) => {
|
|
|
752
752
|
const o = n.split(".");
|
|
753
753
|
if (o.length !== 3)
|
|
754
754
|
throw new Error("Неверный формат зашифрованных данных");
|
|
755
|
-
const l = o[0],
|
|
755
|
+
const l = o[0], c = o[1], m = o[2], y = $t(Ge().key, l), C = Kt(c), _ = Lt(C, y), d = Jt(_);
|
|
756
756
|
if (Ze(d + l).substring(
|
|
757
757
|
0,
|
|
758
758
|
8
|
|
@@ -766,7 +766,7 @@ const Ze = (n) => {
|
|
|
766
766
|
var ie;
|
|
767
767
|
((n) => {
|
|
768
768
|
n.setKey = (o) => {
|
|
769
|
-
|
|
769
|
+
Bt({ key: o });
|
|
770
770
|
}, n.enCode = (o) => {
|
|
771
771
|
try {
|
|
772
772
|
const l = JSON.stringify(o);
|
|
@@ -784,7 +784,7 @@ var ie;
|
|
|
784
784
|
return !1;
|
|
785
785
|
}
|
|
786
786
|
}, n.setSecurityParams = (o, l) => {
|
|
787
|
-
|
|
787
|
+
Bt({ iterations: o, saltLength: l });
|
|
788
788
|
};
|
|
789
789
|
})(ie || (ie = {}));
|
|
790
790
|
var Je = {};
|
|
@@ -797,21 +797,21 @@ var Je = {};
|
|
|
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 It;
|
|
801
801
|
function Xt() {
|
|
802
|
-
if (
|
|
803
|
-
|
|
804
|
-
var n = P, o = Symbol.for("react.element"), l = Symbol.for("react.fragment"),
|
|
805
|
-
function
|
|
802
|
+
if (It) return Je;
|
|
803
|
+
It = 1;
|
|
804
|
+
var n = P, o = Symbol.for("react.element"), l = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, m = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
805
|
+
function C(_, d, k) {
|
|
806
806
|
var v, x = {}, I = null, A = null;
|
|
807
807
|
k !== void 0 && (I = "" + k), d.key !== void 0 && (I = "" + d.key), d.ref !== void 0 && (A = d.ref);
|
|
808
|
-
for (v in d)
|
|
808
|
+
for (v in d) c.call(d, v) && !y.hasOwnProperty(v) && (x[v] = d[v]);
|
|
809
809
|
if (_ && _.defaultProps) for (v in d = _.defaultProps, d) x[v] === void 0 && (x[v] = d[v]);
|
|
810
810
|
return { $$typeof: o, type: _, key: I, ref: A, props: x, _owner: m.current };
|
|
811
811
|
}
|
|
812
|
-
return Je.Fragment = l, Je.jsx =
|
|
812
|
+
return Je.Fragment = l, Je.jsx = C, Je.jsxs = C, Je;
|
|
813
813
|
}
|
|
814
|
-
var
|
|
814
|
+
var Ke = {};
|
|
815
815
|
/**
|
|
816
816
|
* @license React
|
|
817
817
|
* react-jsx-runtime.development.js
|
|
@@ -821,10 +821,10 @@ var qe = {};
|
|
|
821
821
|
* This source code is licensed under the MIT license found in the
|
|
822
822
|
* LICENSE file in the root directory of this source tree.
|
|
823
823
|
*/
|
|
824
|
-
var
|
|
824
|
+
var Ft;
|
|
825
825
|
function Ht() {
|
|
826
|
-
return
|
|
827
|
-
var n = P, o = Symbol.for("react.element"), l = Symbol.for("react.portal"),
|
|
826
|
+
return Ft || (Ft = 1, process.env.NODE_ENV !== "production" && function() {
|
|
827
|
+
var n = P, o = Symbol.for("react.element"), l = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), C = Symbol.for("react.provider"), _ = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), k = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), V = Symbol.iterator, Re = "@@iterator";
|
|
828
828
|
function _e(e) {
|
|
829
829
|
if (e === null || typeof e != "object")
|
|
830
830
|
return null;
|
|
@@ -849,10 +849,10 @@ function Ht() {
|
|
|
849
849
|
p.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, p);
|
|
850
850
|
}
|
|
851
851
|
}
|
|
852
|
-
var ke = !1, Ee = !1, h = !1, E = !1,
|
|
852
|
+
var ke = !1, Ee = !1, h = !1, E = !1, F = !1, M;
|
|
853
853
|
M = Symbol.for("react.module.reference");
|
|
854
854
|
function U(e) {
|
|
855
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
855
|
+
return !!(typeof e == "string" || typeof e == "function" || e === c || e === y || F || e === m || e === k || e === v || E || e === A || ke || Ee || h || typeof e == "object" && e !== null && (e.$$typeof === I || e.$$typeof === x || e.$$typeof === C || e.$$typeof === _ || e.$$typeof === d || // 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.
|
|
@@ -876,7 +876,7 @@ function Ht() {
|
|
|
876
876
|
if (typeof e == "string")
|
|
877
877
|
return e;
|
|
878
878
|
switch (e) {
|
|
879
|
-
case
|
|
879
|
+
case c:
|
|
880
880
|
return "Fragment";
|
|
881
881
|
case l:
|
|
882
882
|
return "Portal";
|
|
@@ -894,7 +894,7 @@ function Ht() {
|
|
|
894
894
|
case _:
|
|
895
895
|
var t = e;
|
|
896
896
|
return ae(t) + ".Consumer";
|
|
897
|
-
case
|
|
897
|
+
case C:
|
|
898
898
|
var r = e;
|
|
899
899
|
return ae(r._context) + ".Provider";
|
|
900
900
|
case d:
|
|
@@ -913,18 +913,18 @@ function Ht() {
|
|
|
913
913
|
}
|
|
914
914
|
return null;
|
|
915
915
|
}
|
|
916
|
-
var
|
|
917
|
-
function
|
|
916
|
+
var D = Object.assign, N = 0, q, K, G, Se, xe, Oe, Te;
|
|
917
|
+
function je() {
|
|
918
918
|
}
|
|
919
|
-
|
|
920
|
-
function
|
|
919
|
+
je.__reactDisabledLog = !0;
|
|
920
|
+
function Qe() {
|
|
921
921
|
{
|
|
922
922
|
if (N === 0) {
|
|
923
923
|
q = console.log, K = console.info, G = console.warn, Se = console.error, xe = console.group, Oe = console.groupCollapsed, Te = console.groupEnd;
|
|
924
924
|
var e = {
|
|
925
925
|
configurable: !0,
|
|
926
926
|
enumerable: !0,
|
|
927
|
-
value:
|
|
927
|
+
value: je,
|
|
928
928
|
writable: !0
|
|
929
929
|
};
|
|
930
930
|
Object.defineProperties(console, {
|
|
@@ -940,7 +940,7 @@ function Ht() {
|
|
|
940
940
|
N++;
|
|
941
941
|
}
|
|
942
942
|
}
|
|
943
|
-
function
|
|
943
|
+
function et() {
|
|
944
944
|
{
|
|
945
945
|
if (N--, N === 0) {
|
|
946
946
|
var e = {
|
|
@@ -949,25 +949,25 @@ function Ht() {
|
|
|
949
949
|
writable: !0
|
|
950
950
|
};
|
|
951
951
|
Object.defineProperties(console, {
|
|
952
|
-
log:
|
|
952
|
+
log: D({}, e, {
|
|
953
953
|
value: q
|
|
954
954
|
}),
|
|
955
|
-
info:
|
|
955
|
+
info: D({}, e, {
|
|
956
956
|
value: K
|
|
957
957
|
}),
|
|
958
|
-
warn:
|
|
958
|
+
warn: D({}, e, {
|
|
959
959
|
value: G
|
|
960
960
|
}),
|
|
961
|
-
error:
|
|
961
|
+
error: D({}, e, {
|
|
962
962
|
value: Se
|
|
963
963
|
}),
|
|
964
|
-
group:
|
|
964
|
+
group: D({}, e, {
|
|
965
965
|
value: xe
|
|
966
966
|
}),
|
|
967
|
-
groupCollapsed:
|
|
967
|
+
groupCollapsed: D({}, e, {
|
|
968
968
|
value: Oe
|
|
969
969
|
}),
|
|
970
|
-
groupEnd:
|
|
970
|
+
groupEnd: D({}, e, {
|
|
971
971
|
value: Te
|
|
972
972
|
})
|
|
973
973
|
});
|
|
@@ -991,10 +991,10 @@ function Ht() {
|
|
|
991
991
|
}
|
|
992
992
|
var ue = !1, H;
|
|
993
993
|
{
|
|
994
|
-
var
|
|
995
|
-
H = new
|
|
994
|
+
var tt = typeof WeakMap == "function" ? WeakMap : Map;
|
|
995
|
+
H = new tt();
|
|
996
996
|
}
|
|
997
|
-
function
|
|
997
|
+
function Ce(e, t) {
|
|
998
998
|
if (!e || ue)
|
|
999
999
|
return "";
|
|
1000
1000
|
{
|
|
@@ -1007,7 +1007,7 @@ function Ht() {
|
|
|
1007
1007
|
var f = Error.prepareStackTrace;
|
|
1008
1008
|
Error.prepareStackTrace = void 0;
|
|
1009
1009
|
var p;
|
|
1010
|
-
p = se.current, se.current = null,
|
|
1010
|
+
p = se.current, se.current = null, Qe();
|
|
1011
1011
|
try {
|
|
1012
1012
|
if (t) {
|
|
1013
1013
|
var s = function() {
|
|
@@ -1060,15 +1060,15 @@ function Ht() {
|
|
|
1060
1060
|
}
|
|
1061
1061
|
}
|
|
1062
1062
|
} finally {
|
|
1063
|
-
ue = !1, se.current = p,
|
|
1063
|
+
ue = !1, se.current = p, et(), Error.prepareStackTrace = f;
|
|
1064
1064
|
}
|
|
1065
1065
|
var W = e ? e.displayName || e.name : "", L = W ? X(W) : "";
|
|
1066
1066
|
return typeof e == "function" && H.set(e, L), L;
|
|
1067
1067
|
}
|
|
1068
|
-
function
|
|
1069
|
-
return
|
|
1068
|
+
function rt(e, t, r) {
|
|
1069
|
+
return Ce(e, !1);
|
|
1070
1070
|
}
|
|
1071
|
-
function
|
|
1071
|
+
function nt(e) {
|
|
1072
1072
|
var t = e.prototype;
|
|
1073
1073
|
return !!(t && t.isReactComponent);
|
|
1074
1074
|
}
|
|
@@ -1076,7 +1076,7 @@ function Ht() {
|
|
|
1076
1076
|
if (e == null)
|
|
1077
1077
|
return "";
|
|
1078
1078
|
if (typeof e == "function")
|
|
1079
|
-
return
|
|
1079
|
+
return Ce(e, nt(e));
|
|
1080
1080
|
if (typeof e == "string")
|
|
1081
1081
|
return X(e);
|
|
1082
1082
|
switch (e) {
|
|
@@ -1088,7 +1088,7 @@ function Ht() {
|
|
|
1088
1088
|
if (typeof e == "object")
|
|
1089
1089
|
switch (e.$$typeof) {
|
|
1090
1090
|
case d:
|
|
1091
|
-
return
|
|
1091
|
+
return rt(e.render);
|
|
1092
1092
|
case x:
|
|
1093
1093
|
return Q(e.type, t, r);
|
|
1094
1094
|
case I: {
|
|
@@ -1109,7 +1109,7 @@ function Ht() {
|
|
|
1109
1109
|
} else
|
|
1110
1110
|
Pe.setExtraStackFrame(null);
|
|
1111
1111
|
}
|
|
1112
|
-
function
|
|
1112
|
+
function ot(e, t, r, a, f) {
|
|
1113
1113
|
{
|
|
1114
1114
|
var p = Function.call.bind(z);
|
|
1115
1115
|
for (var s in e)
|
|
@@ -1128,17 +1128,17 @@ function Ht() {
|
|
|
1128
1128
|
}
|
|
1129
1129
|
}
|
|
1130
1130
|
}
|
|
1131
|
-
var
|
|
1131
|
+
var at = Array.isArray;
|
|
1132
1132
|
function ce(e) {
|
|
1133
|
-
return
|
|
1133
|
+
return at(e);
|
|
1134
1134
|
}
|
|
1135
|
-
function
|
|
1135
|
+
function it(e) {
|
|
1136
1136
|
{
|
|
1137
1137
|
var t = typeof Symbol == "function" && Symbol.toStringTag, r = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
1138
1138
|
return r;
|
|
1139
1139
|
}
|
|
1140
1140
|
}
|
|
1141
|
-
function
|
|
1141
|
+
function st(e) {
|
|
1142
1142
|
try {
|
|
1143
1143
|
return Ae(e), !1;
|
|
1144
1144
|
} catch {
|
|
@@ -1149,16 +1149,16 @@ function Ht() {
|
|
|
1149
1149
|
return "" + e;
|
|
1150
1150
|
}
|
|
1151
1151
|
function Be(e) {
|
|
1152
|
-
if (
|
|
1153
|
-
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
1152
|
+
if (st(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.", it(e)), Ae(e);
|
|
1154
1154
|
}
|
|
1155
|
-
var Ie = $.ReactCurrentOwner,
|
|
1155
|
+
var Ie = $.ReactCurrentOwner, lt = {
|
|
1156
1156
|
key: !0,
|
|
1157
1157
|
ref: !0,
|
|
1158
1158
|
__self: !0,
|
|
1159
1159
|
__source: !0
|
|
1160
|
-
},
|
|
1161
|
-
function
|
|
1160
|
+
}, Fe, De;
|
|
1161
|
+
function ut(e) {
|
|
1162
1162
|
if (z.call(e, "ref")) {
|
|
1163
1163
|
var t = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
1164
1164
|
if (t && t.isReactWarning)
|
|
@@ -1166,7 +1166,7 @@ function Ht() {
|
|
|
1166
1166
|
}
|
|
1167
1167
|
return e.ref !== void 0;
|
|
1168
1168
|
}
|
|
1169
|
-
function
|
|
1169
|
+
function ct(e) {
|
|
1170
1170
|
if (z.call(e, "key")) {
|
|
1171
1171
|
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
1172
1172
|
if (t && t.isReactWarning)
|
|
@@ -1174,13 +1174,13 @@ function Ht() {
|
|
|
1174
1174
|
}
|
|
1175
1175
|
return e.key !== void 0;
|
|
1176
1176
|
}
|
|
1177
|
-
function
|
|
1177
|
+
function ft(e, t) {
|
|
1178
1178
|
typeof e.ref == "string" && Ie.current;
|
|
1179
1179
|
}
|
|
1180
|
-
function
|
|
1180
|
+
function dt(e, t) {
|
|
1181
1181
|
{
|
|
1182
1182
|
var r = function() {
|
|
1183
|
-
|
|
1183
|
+
Fe || (Fe = !0, S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
|
|
1184
1184
|
};
|
|
1185
1185
|
r.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
1186
1186
|
get: r,
|
|
@@ -1188,10 +1188,10 @@ function Ht() {
|
|
|
1188
1188
|
});
|
|
1189
1189
|
}
|
|
1190
1190
|
}
|
|
1191
|
-
function
|
|
1191
|
+
function pt(e, t) {
|
|
1192
1192
|
{
|
|
1193
1193
|
var r = function() {
|
|
1194
|
-
|
|
1194
|
+
De || (De = !0, S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
|
|
1195
1195
|
};
|
|
1196
1196
|
r.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
1197
1197
|
get: r,
|
|
@@ -1199,7 +1199,7 @@ function Ht() {
|
|
|
1199
1199
|
});
|
|
1200
1200
|
}
|
|
1201
1201
|
}
|
|
1202
|
-
var
|
|
1202
|
+
var vt = function(e, t, r, a, f, p, s) {
|
|
1203
1203
|
var i = {
|
|
1204
1204
|
// This tag allows us to uniquely identify this as a React Element
|
|
1205
1205
|
$$typeof: o,
|
|
@@ -1228,12 +1228,12 @@ function Ht() {
|
|
|
1228
1228
|
value: f
|
|
1229
1229
|
}), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
|
|
1230
1230
|
};
|
|
1231
|
-
function
|
|
1231
|
+
function gt(e, t, r, a, f) {
|
|
1232
1232
|
{
|
|
1233
1233
|
var p, s = {}, i = null, O = null;
|
|
1234
|
-
r !== void 0 && (Be(r), i = "" + r),
|
|
1234
|
+
r !== void 0 && (Be(r), i = "" + r), ct(t) && (Be(t.key), i = "" + t.key), ut(t) && (O = t.ref, ft(t));
|
|
1235
1235
|
for (p in t)
|
|
1236
|
-
z.call(t, p) && !
|
|
1236
|
+
z.call(t, p) && !lt.hasOwnProperty(p) && (s[p] = t[p]);
|
|
1237
1237
|
if (e && e.defaultProps) {
|
|
1238
1238
|
var b = e.defaultProps;
|
|
1239
1239
|
for (p in b)
|
|
@@ -1241,9 +1241,9 @@ function Ht() {
|
|
|
1241
1241
|
}
|
|
1242
1242
|
if (i || O) {
|
|
1243
1243
|
var R = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
1244
|
-
i &&
|
|
1244
|
+
i && dt(s, R), O && pt(s, R);
|
|
1245
1245
|
}
|
|
1246
|
-
return
|
|
1246
|
+
return vt(e, i, O, f, a, Ie.current, s);
|
|
1247
1247
|
}
|
|
1248
1248
|
}
|
|
1249
1249
|
var fe = $.ReactCurrentOwner, Me = $.ReactDebugCurrentFrame;
|
|
@@ -1271,11 +1271,11 @@ Check the render method of \`` + e + "`.";
|
|
|
1271
1271
|
return "";
|
|
1272
1272
|
}
|
|
1273
1273
|
}
|
|
1274
|
-
function
|
|
1274
|
+
function mt(e) {
|
|
1275
1275
|
return "";
|
|
1276
1276
|
}
|
|
1277
1277
|
var $e = {};
|
|
1278
|
-
function
|
|
1278
|
+
function yt(e) {
|
|
1279
1279
|
{
|
|
1280
1280
|
var t = Ne();
|
|
1281
1281
|
if (!t) {
|
|
@@ -1292,7 +1292,7 @@ Check the top-level render call using <` + r + ">.");
|
|
|
1292
1292
|
if (!e._store || e._store.validated || e.key != null)
|
|
1293
1293
|
return;
|
|
1294
1294
|
e._store.validated = !0;
|
|
1295
|
-
var r =
|
|
1295
|
+
var r = yt(t);
|
|
1296
1296
|
if ($e[r])
|
|
1297
1297
|
return;
|
|
1298
1298
|
$e[r] = !0;
|
|
@@ -1319,7 +1319,7 @@ Check the top-level render call using <` + r + ">.");
|
|
|
1319
1319
|
}
|
|
1320
1320
|
}
|
|
1321
1321
|
}
|
|
1322
|
-
function
|
|
1322
|
+
function ht(e) {
|
|
1323
1323
|
{
|
|
1324
1324
|
var t = e.type;
|
|
1325
1325
|
if (t == null || typeof t == "string")
|
|
@@ -1335,7 +1335,7 @@ Check the top-level render call using <` + r + ">.");
|
|
|
1335
1335
|
return;
|
|
1336
1336
|
if (r) {
|
|
1337
1337
|
var a = B(t);
|
|
1338
|
-
|
|
1338
|
+
ot(r, e.props, "prop", a, e);
|
|
1339
1339
|
} else if (t.PropTypes !== void 0 && !de) {
|
|
1340
1340
|
de = !0;
|
|
1341
1341
|
var f = B(t);
|
|
@@ -1344,7 +1344,7 @@ Check the top-level render call using <` + r + ">.");
|
|
|
1344
1344
|
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
1345
1345
|
}
|
|
1346
1346
|
}
|
|
1347
|
-
function
|
|
1347
|
+
function bt(e) {
|
|
1348
1348
|
{
|
|
1349
1349
|
for (var t = Object.keys(e.props), r = 0; r < t.length; r++) {
|
|
1350
1350
|
var a = t[r];
|
|
@@ -1363,12 +1363,12 @@ Check the top-level render call using <` + r + ">.");
|
|
|
1363
1363
|
if (!s) {
|
|
1364
1364
|
var i = "";
|
|
1365
1365
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (i += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
1366
|
-
var O =
|
|
1366
|
+
var O = mt();
|
|
1367
1367
|
O ? i += O : i += Ne();
|
|
1368
1368
|
var b;
|
|
1369
1369
|
e === null ? b = "null" : ce(e) ? b = "array" : e !== void 0 && e.$$typeof === o ? (b = "<" + (B(e.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : b = typeof e, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", b, i);
|
|
1370
1370
|
}
|
|
1371
|
-
var R =
|
|
1371
|
+
var R = gt(e, t, r, f, p);
|
|
1372
1372
|
if (R == null)
|
|
1373
1373
|
return R;
|
|
1374
1374
|
if (s) {
|
|
@@ -1385,36 +1385,36 @@ Check the top-level render call using <` + r + ">.");
|
|
|
1385
1385
|
Ue(w, e);
|
|
1386
1386
|
}
|
|
1387
1387
|
if (z.call(t, "key")) {
|
|
1388
|
-
var L = B(e), T = Object.keys(t).filter(function(
|
|
1389
|
-
return
|
|
1388
|
+
var L = B(e), T = Object.keys(t).filter(function(xt) {
|
|
1389
|
+
return xt !== "key";
|
|
1390
1390
|
}), ve = T.length > 0 ? "{key: someKey, " + T.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1391
1391
|
if (!Ye[L + ve]) {
|
|
1392
|
-
var
|
|
1392
|
+
var St = T.length > 0 ? "{" + T.join(": ..., ") + ": ...}" : "{}";
|
|
1393
1393
|
S(`A props object containing a "key" prop is being spread into JSX:
|
|
1394
1394
|
let props = %s;
|
|
1395
1395
|
<%s {...props} />
|
|
1396
1396
|
React keys must be passed directly to JSX without using spread:
|
|
1397
1397
|
let props = %s;
|
|
1398
|
-
<%s key={someKey} {...props} />`, ve, L,
|
|
1398
|
+
<%s key={someKey} {...props} />`, ve, L, St, L), Ye[L + ve] = !0;
|
|
1399
1399
|
}
|
|
1400
1400
|
}
|
|
1401
|
-
return e ===
|
|
1401
|
+
return e === c ? bt(R) : ht(R), R;
|
|
1402
1402
|
}
|
|
1403
1403
|
}
|
|
1404
|
-
function
|
|
1404
|
+
function Rt(e, t, r) {
|
|
1405
1405
|
return We(e, t, r, !0);
|
|
1406
1406
|
}
|
|
1407
|
-
function
|
|
1407
|
+
function _t(e, t, r) {
|
|
1408
1408
|
return We(e, t, r, !1);
|
|
1409
1409
|
}
|
|
1410
|
-
var
|
|
1411
|
-
|
|
1412
|
-
}()),
|
|
1410
|
+
var kt = _t, Et = Rt;
|
|
1411
|
+
Ke.Fragment = c, Ke.jsx = kt, Ke.jsxs = Et;
|
|
1412
|
+
}()), Ke;
|
|
1413
1413
|
}
|
|
1414
1414
|
process.env.NODE_ENV === "production" ? Xt() : Ht();
|
|
1415
1415
|
const Qt = "0.0.37", Ut = {
|
|
1416
1416
|
version: Qt
|
|
1417
|
-
}, te = {},
|
|
1417
|
+
}, te = {}, wt = {
|
|
1418
1418
|
module: "",
|
|
1419
1419
|
v: Ut.version,
|
|
1420
1420
|
page: "Main",
|
|
@@ -1429,10 +1429,10 @@ me().elcrm || (me().elcrm = {});
|
|
|
1429
1429
|
Object.assign(me().elcrm, { router: Ut.version });
|
|
1430
1430
|
function re(n) {
|
|
1431
1431
|
const o = me();
|
|
1432
|
-
o.ROUTER_PARAMS ? o.ROUTER_PARAMS = { ...o.ROUTER_PARAMS, ...n } : o.ROUTER_PARAMS = { ...
|
|
1432
|
+
o.ROUTER_PARAMS ? o.ROUTER_PARAMS = { ...o.ROUTER_PARAMS, ...n } : o.ROUTER_PARAMS = { ...wt, ...n };
|
|
1433
1433
|
}
|
|
1434
|
-
function
|
|
1435
|
-
return me().ROUTER_PARAMS ||
|
|
1434
|
+
function j() {
|
|
1435
|
+
return me().ROUTER_PARAMS || wt;
|
|
1436
1436
|
}
|
|
1437
1437
|
function he(n) {
|
|
1438
1438
|
const o = me();
|
|
@@ -1442,7 +1442,7 @@ function he(n) {
|
|
|
1442
1442
|
} : o.ROUTER_PARAMS.LISTENER = { ...n };
|
|
1443
1443
|
}
|
|
1444
1444
|
function ne() {
|
|
1445
|
-
return me().ROUTER_PARAMS.LISTENER ||
|
|
1445
|
+
return me().ROUTER_PARAMS.LISTENER || wt.LISTENER;
|
|
1446
1446
|
}
|
|
1447
1447
|
var be;
|
|
1448
1448
|
((n) => {
|
|
@@ -1464,100 +1464,100 @@ var be;
|
|
|
1464
1464
|
re({
|
|
1465
1465
|
id: 0,
|
|
1466
1466
|
tab: "",
|
|
1467
|
-
page: (h = localStorage.getItem("d")) != null && h.length ?
|
|
1468
|
-
module:
|
|
1467
|
+
page: (h = localStorage.getItem("d")) != null && h.length ? j().page : j().auth,
|
|
1468
|
+
module: j().module
|
|
1469
1469
|
});
|
|
1470
1470
|
return !0;
|
|
1471
1471
|
}
|
|
1472
1472
|
function l() {
|
|
1473
|
-
te.id = 0, te.tab = "", te.page =
|
|
1473
|
+
te.id = 0, te.tab = "", te.page = j().page, te.module = j().module;
|
|
1474
1474
|
}
|
|
1475
1475
|
n.Reset = l;
|
|
1476
|
-
function
|
|
1477
|
-
module: h =
|
|
1478
|
-
page: E =
|
|
1479
|
-
auth:
|
|
1476
|
+
function c({
|
|
1477
|
+
module: h = j().module,
|
|
1478
|
+
page: E = j().page,
|
|
1479
|
+
auth: F = j().auth
|
|
1480
1480
|
}) {
|
|
1481
|
-
re({ page: E, module: h, auth:
|
|
1481
|
+
re({ page: E, module: h, auth: F }), o();
|
|
1482
1482
|
}
|
|
1483
|
-
n.Default =
|
|
1483
|
+
n.Default = c;
|
|
1484
1484
|
function m(h) {
|
|
1485
1485
|
let E = (U) => (re({ page: U }), U);
|
|
1486
|
-
const [
|
|
1487
|
-
|
|
1486
|
+
const [F, M] = P.useState(
|
|
1487
|
+
C() || h && E(h) || j().page
|
|
1488
1488
|
);
|
|
1489
1489
|
return he({ page: (U) => {
|
|
1490
1490
|
M(U);
|
|
1491
|
-
} }),
|
|
1491
|
+
} }), F;
|
|
1492
1492
|
}
|
|
1493
1493
|
n.usePage = m;
|
|
1494
|
-
function y(h, E = !0,
|
|
1495
|
-
re({ page: h, ...
|
|
1496
|
-
|
|
1497
|
-
ie.enCode(
|
|
1494
|
+
function y(h, E = !0, F = {}) {
|
|
1495
|
+
re({ page: h, ...F }), sessionStorage.setItem(
|
|
1496
|
+
j().STORAGE,
|
|
1497
|
+
ie.enCode(j())
|
|
1498
1498
|
), E && ne().page(h);
|
|
1499
1499
|
}
|
|
1500
1500
|
n.setPage = y;
|
|
1501
|
-
function
|
|
1502
|
-
return
|
|
1501
|
+
function C() {
|
|
1502
|
+
return j().page;
|
|
1503
1503
|
}
|
|
1504
|
-
n.getPage =
|
|
1504
|
+
n.getPage = C;
|
|
1505
1505
|
function _(h) {
|
|
1506
|
-
return
|
|
1506
|
+
return j().page === h;
|
|
1507
1507
|
}
|
|
1508
1508
|
n.isPage = _;
|
|
1509
1509
|
function d(h, E) {
|
|
1510
|
-
const [
|
|
1511
|
-
v() || h ||
|
|
1510
|
+
const [F, M] = P.useState(
|
|
1511
|
+
v() || h || j().module
|
|
1512
1512
|
);
|
|
1513
|
-
return he({ module: M }),
|
|
1513
|
+
return he({ module: M }), F;
|
|
1514
1514
|
}
|
|
1515
1515
|
n.useModule = d;
|
|
1516
1516
|
function k(h, E = !0) {
|
|
1517
1517
|
re({ module: h }), sessionStorage.setItem(
|
|
1518
|
-
|
|
1519
|
-
ie.enCode(
|
|
1518
|
+
j().STORAGE,
|
|
1519
|
+
ie.enCode(j())
|
|
1520
1520
|
), E && ne().module(h);
|
|
1521
1521
|
}
|
|
1522
1522
|
n.setModule = k;
|
|
1523
1523
|
function v() {
|
|
1524
|
-
return
|
|
1524
|
+
return j().module || "";
|
|
1525
1525
|
}
|
|
1526
1526
|
n.getModule = v;
|
|
1527
1527
|
function x(h) {
|
|
1528
|
-
return
|
|
1528
|
+
return j().module === h;
|
|
1529
1529
|
}
|
|
1530
1530
|
n.isModule = x;
|
|
1531
1531
|
function I(h, E) {
|
|
1532
1532
|
if (typeof h != "function") {
|
|
1533
|
-
const [
|
|
1533
|
+
const [F, M] = P.useState(!E), [U, oe] = P.useState(h || V());
|
|
1534
1534
|
return he({ tabs: oe }), E && P.useEffect(() => {
|
|
1535
1535
|
M(!0);
|
|
1536
|
-
}, []), [U,
|
|
1536
|
+
}, []), [U, F];
|
|
1537
1537
|
} else
|
|
1538
1538
|
he({ tabs: h });
|
|
1539
1539
|
}
|
|
1540
1540
|
n.useTabs = I;
|
|
1541
1541
|
async function A(h, E = !0) {
|
|
1542
1542
|
re({ tab: h }), sessionStorage.setItem(
|
|
1543
|
-
|
|
1544
|
-
ie.enCode(
|
|
1543
|
+
j().STORAGE,
|
|
1544
|
+
ie.enCode(j())
|
|
1545
1545
|
), E && (ne().tabs && ne().tabs(h));
|
|
1546
1546
|
}
|
|
1547
1547
|
n.setTabs = A;
|
|
1548
1548
|
function V() {
|
|
1549
|
-
return
|
|
1549
|
+
return j().tab;
|
|
1550
1550
|
}
|
|
1551
1551
|
n.getTabs = V;
|
|
1552
1552
|
function Re(h) {
|
|
1553
|
-
return
|
|
1553
|
+
return j().tab === h;
|
|
1554
1554
|
}
|
|
1555
1555
|
n.isTabs = Re;
|
|
1556
1556
|
function _e(h) {
|
|
1557
1557
|
if (typeof h != "function") {
|
|
1558
|
-
const [E,
|
|
1558
|
+
const [E, F] = P.useState(h || ye());
|
|
1559
1559
|
return he({ id: (M) => {
|
|
1560
|
-
|
|
1560
|
+
F(M);
|
|
1561
1561
|
} }), E;
|
|
1562
1562
|
} else
|
|
1563
1563
|
he({ id: h });
|
|
@@ -1568,25 +1568,25 @@ var be;
|
|
|
1568
1568
|
n.subId = $;
|
|
1569
1569
|
async function S(h, E = !0) {
|
|
1570
1570
|
re({ id: h }), sessionStorage.setItem(
|
|
1571
|
-
|
|
1572
|
-
ie.enCode(
|
|
1571
|
+
j().STORAGE,
|
|
1572
|
+
ie.enCode(j())
|
|
1573
1573
|
), E && ne().id(h);
|
|
1574
1574
|
}
|
|
1575
1575
|
n.setId = S;
|
|
1576
1576
|
function ye() {
|
|
1577
|
-
return
|
|
1577
|
+
return j().id;
|
|
1578
1578
|
}
|
|
1579
1579
|
n.getId = ye;
|
|
1580
1580
|
function ke(h) {
|
|
1581
|
-
return Number(
|
|
1581
|
+
return Number(j().id) === h;
|
|
1582
1582
|
}
|
|
1583
1583
|
n.isId = ke;
|
|
1584
1584
|
async function Ee(h) {
|
|
1585
|
-
var E,
|
|
1585
|
+
var E, F, M, U, oe, ae, B, D;
|
|
1586
1586
|
const { page: N, module: q, tab: K, id: G } = h;
|
|
1587
|
-
N !== void 0 && (te.page = N), q !== void 0 && (te.module = q), K !== void 0 && (te.tab = K), G !== void 0 && (te.id = G), re({ ...te }), G !== void 0 && ((
|
|
1588
|
-
|
|
1589
|
-
ie.enCode(
|
|
1587
|
+
N !== void 0 && (te.page = N), q !== void 0 && (te.module = q), K !== void 0 && (te.tab = K), G !== void 0 && (te.id = G), re({ ...te }), G !== void 0 && ((F = (E = ne()).id) == null || F.call(E, G)), K !== void 0 && ((U = (M = ne()).tabs) == null || U.call(M, K)), q !== void 0 && ((ae = (oe = ne()).module) == null || ae.call(oe, q)), N !== void 0 && ((D = (B = ne()).page) == null || D.call(B, N)), sessionStorage.setItem(
|
|
1588
|
+
j().STORAGE,
|
|
1589
|
+
ie.enCode(j())
|
|
1590
1590
|
);
|
|
1591
1591
|
}
|
|
1592
1592
|
n.navigate = Ee;
|
|
@@ -1597,18 +1597,18 @@ function er() {
|
|
|
1597
1597
|
return Xe.set = (l) => {
|
|
1598
1598
|
o([...n, l]);
|
|
1599
1599
|
}, Xe.del = (l) => {
|
|
1600
|
-
n.forEach((
|
|
1601
|
-
|
|
1600
|
+
n.forEach((c, m) => {
|
|
1601
|
+
c.key === l && n.splice(m, 1);
|
|
1602
1602
|
}), o(n);
|
|
1603
|
-
}, n.length === 0 ? /* @__PURE__ */
|
|
1603
|
+
}, n.length === 0 ? /* @__PURE__ */ u.jsx(u.Fragment, {}) : /* @__PURE__ */ u.jsx("div", { className: "notice", children: n.map((l) => l.item) });
|
|
1604
1604
|
}
|
|
1605
1605
|
function tr(n) {
|
|
1606
1606
|
let o = (/* @__PURE__ */ new Date()).getTime();
|
|
1607
|
-
n.key = o, Xe.set({ item: /* @__PURE__ */
|
|
1607
|
+
n.key = o, Xe.set({ item: /* @__PURE__ */ u.jsx(rr, { data: n }, o), key: o });
|
|
1608
1608
|
}
|
|
1609
1609
|
function rr(n) {
|
|
1610
1610
|
const o = n.data;
|
|
1611
|
-
let [l] = P.useState("show"), [
|
|
1611
|
+
let [l] = P.useState("show"), [c, m] = P.useState(!1);
|
|
1612
1612
|
P.useEffect(() => {
|
|
1613
1613
|
setTimeout(function() {
|
|
1614
1614
|
m(!0), Xe.del(o.key);
|
|
@@ -1617,25 +1617,25 @@ function rr(n) {
|
|
|
1617
1617
|
let y;
|
|
1618
1618
|
switch (o.type) {
|
|
1619
1619
|
case "error":
|
|
1620
|
-
y = /* @__PURE__ */
|
|
1620
|
+
y = /* @__PURE__ */ u.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" });
|
|
1621
1621
|
break;
|
|
1622
1622
|
case "success":
|
|
1623
|
-
y = /* @__PURE__ */
|
|
1623
|
+
y = /* @__PURE__ */ u.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" });
|
|
1624
1624
|
break;
|
|
1625
1625
|
case "warning":
|
|
1626
|
-
y = /* @__PURE__ */
|
|
1626
|
+
y = /* @__PURE__ */ u.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" });
|
|
1627
1627
|
break;
|
|
1628
1628
|
default:
|
|
1629
1629
|
y = "icon fa fa-exclamation-circle";
|
|
1630
1630
|
break;
|
|
1631
1631
|
}
|
|
1632
|
-
return /* @__PURE__ */
|
|
1632
|
+
return /* @__PURE__ */ u.jsx(u.Fragment, { children: c ? /* @__PURE__ */ u.jsx(u.Fragment, {}) : /* @__PURE__ */ u.jsxs(
|
|
1633
1633
|
"div",
|
|
1634
1634
|
{
|
|
1635
1635
|
className: "item " + o.type + ` ${o.thema !== void 0 ? " thema" : ""}`,
|
|
1636
1636
|
"data-status": l,
|
|
1637
1637
|
children: [
|
|
1638
|
-
/* @__PURE__ */
|
|
1638
|
+
/* @__PURE__ */ u.jsx(
|
|
1639
1639
|
"svg",
|
|
1640
1640
|
{
|
|
1641
1641
|
type: "solid",
|
|
@@ -1648,44 +1648,44 @@ function rr(n) {
|
|
|
1648
1648
|
children: y
|
|
1649
1649
|
}
|
|
1650
1650
|
),
|
|
1651
|
-
/* @__PURE__ */
|
|
1651
|
+
/* @__PURE__ */ u.jsx("span", { className: "text", children: o.text })
|
|
1652
1652
|
]
|
|
1653
1653
|
}
|
|
1654
1654
|
) });
|
|
1655
1655
|
}
|
|
1656
|
-
let
|
|
1656
|
+
let He = {
|
|
1657
1657
|
Send: tr,
|
|
1658
1658
|
Init: er
|
|
1659
|
-
},
|
|
1659
|
+
}, qe = () => {
|
|
1660
1660
|
};
|
|
1661
1661
|
const nr = ({
|
|
1662
1662
|
children: n,
|
|
1663
1663
|
title: o,
|
|
1664
1664
|
isOverlay: l = !0
|
|
1665
1665
|
}) => {
|
|
1666
|
-
const [
|
|
1667
|
-
return
|
|
1666
|
+
const [c, m] = P.useState(!1);
|
|
1667
|
+
return qe = () => {
|
|
1668
1668
|
m(!0), setTimeout(() => {
|
|
1669
1669
|
Yt.onClose();
|
|
1670
1670
|
}, 300);
|
|
1671
|
-
}, /* @__PURE__ */
|
|
1671
|
+
}, /* @__PURE__ */ u.jsx(
|
|
1672
1672
|
"div",
|
|
1673
1673
|
{
|
|
1674
|
-
className: `footer-menu-overlay ${l ? "is-overlay" : ""} ${
|
|
1675
|
-
onClick:
|
|
1676
|
-
children: /* @__PURE__ */
|
|
1674
|
+
className: `footer-menu-overlay ${l ? "is-overlay" : ""} ${c ? "closing" : ""}`,
|
|
1675
|
+
onClick: qe,
|
|
1676
|
+
children: /* @__PURE__ */ u.jsxs(
|
|
1677
1677
|
"div",
|
|
1678
1678
|
{
|
|
1679
|
-
className: `footer-menu-popup-book ${
|
|
1679
|
+
className: `footer-menu-popup-book ${c ? "closing" : ""}`,
|
|
1680
1680
|
onClick: (y) => y.stopPropagation(),
|
|
1681
1681
|
children: [
|
|
1682
|
-
/* @__PURE__ */
|
|
1683
|
-
/* @__PURE__ */
|
|
1684
|
-
/* @__PURE__ */
|
|
1682
|
+
/* @__PURE__ */ u.jsxs("div", { className: "footer-menu-header", children: [
|
|
1683
|
+
/* @__PURE__ */ u.jsx("h3", { children: o }),
|
|
1684
|
+
/* @__PURE__ */ u.jsx(
|
|
1685
1685
|
"button",
|
|
1686
1686
|
{
|
|
1687
1687
|
className: "footer-menu-close-btn",
|
|
1688
|
-
onClick:
|
|
1688
|
+
onClick: qe,
|
|
1689
1689
|
children: "✕"
|
|
1690
1690
|
}
|
|
1691
1691
|
)
|
|
@@ -1696,28 +1696,28 @@ const nr = ({
|
|
|
1696
1696
|
)
|
|
1697
1697
|
}
|
|
1698
1698
|
);
|
|
1699
|
-
}, Yt = [],
|
|
1700
|
-
const [y,
|
|
1701
|
-
|
|
1699
|
+
}, Yt = [], Dt = (n, o) => n.findIndex((l) => (l == null ? void 0 : l.page) === o), or = ({ actions: n, children: o, className: l, page: c, setPage: m }) => {
|
|
1700
|
+
const [y, C] = P.useState(null), [_, d] = P.useState(
|
|
1701
|
+
c ? Dt(n || [], c) : 0
|
|
1702
1702
|
);
|
|
1703
1703
|
return Yt.onClose = () => {
|
|
1704
|
-
|
|
1705
|
-
},
|
|
1704
|
+
C(null), d(c ? Dt(n || [], c) : 0);
|
|
1705
|
+
}, Tt(() => {
|
|
1706
1706
|
document.addEventListener("blur", () => {
|
|
1707
1707
|
document.querySelector("footer").style.display = "flex";
|
|
1708
1708
|
}), document.addEventListener("focus", () => {
|
|
1709
1709
|
document.querySelector("footer").style.display = "none";
|
|
1710
1710
|
});
|
|
1711
|
-
}, []), /* @__PURE__ */
|
|
1711
|
+
}, []), /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
1712
1712
|
y,
|
|
1713
|
-
/* @__PURE__ */
|
|
1713
|
+
/* @__PURE__ */ u.jsxs("footer", { className: l, children: [
|
|
1714
1714
|
o,
|
|
1715
|
-
n && /* @__PURE__ */
|
|
1715
|
+
n && /* @__PURE__ */ u.jsx("div", { className: "actions-book", children: n.map((k, v) => /* @__PURE__ */ u.jsx(
|
|
1716
1716
|
"div",
|
|
1717
1717
|
{
|
|
1718
1718
|
"data-active": _ === v ? "true" : "false",
|
|
1719
1719
|
onClick: () => {
|
|
1720
|
-
k.page && (d(v), m == null || m(k.page)), k.callback && (k.callback(), d(v)), k.component && (_ === v ?
|
|
1720
|
+
k.page && (d(v), m == null || m(k.page)), k.callback && (k.callback(), d(v)), k.component && (_ === v ? qe() : (C(k.component), d(v)));
|
|
1721
1721
|
},
|
|
1722
1722
|
children: k.icon
|
|
1723
1723
|
},
|
|
@@ -1775,8 +1775,8 @@ g.getUser = () => {
|
|
|
1775
1775
|
return ((n = g.initDataUnsafe) == null ? void 0 : n.user) === void 0 ? {} : g.initDataUnsafe;
|
|
1776
1776
|
};
|
|
1777
1777
|
g.Notice = (n, o, l) => {
|
|
1778
|
-
var
|
|
1779
|
-
o !== void 0 ? (
|
|
1778
|
+
var c, m;
|
|
1779
|
+
o !== void 0 ? (He.Send({ type: n, text: o, thema: l }), (c = g.HapticFeedback) == null || c.notificationOccurred(n)) : (He.Send(n), (m = g.HapticFeedback) == null || m.notificationOccurred(n.type));
|
|
1780
1780
|
};
|
|
1781
1781
|
g.MainButton.callback = [];
|
|
1782
1782
|
g.MainButton.set = (n) => {
|
|
@@ -1801,7 +1801,7 @@ g.BackButton.set = (n) => {
|
|
|
1801
1801
|
};
|
|
1802
1802
|
g.Init = ({ dev: n }) => {
|
|
1803
1803
|
if (n) {
|
|
1804
|
-
let [o, l] = P.useState(!1), [
|
|
1804
|
+
let [o, l] = P.useState(!1), [c, m] = P.useState(!1), [y, C] = P.useState("dark"), [_, d] = P.useState(!1), [k, v] = P.useState(!1);
|
|
1805
1805
|
ge.is = !0, ge.MainButton.set = l, ge.BackButton.set = m, P.useEffect(() => {
|
|
1806
1806
|
J[y]["--tg-theme-bg-color-alpha"] = J[y]["--tg-theme-bg-color"] + "b3", J[y]["--tg-theme-secondary-bg-color-alpha"] = J[y]["--tg-theme-secondary-bg-color"] + "d3";
|
|
1807
1807
|
for (let A in J[y])
|
|
@@ -1817,26 +1817,27 @@ g.Init = ({ dev: n }) => {
|
|
|
1817
1817
|
let x = (A) => {
|
|
1818
1818
|
for (let V in J[A])
|
|
1819
1819
|
document.documentElement.style.setProperty(V, J[A][V]);
|
|
1820
|
-
|
|
1820
|
+
C(A), d(!1);
|
|
1821
1821
|
}, I = () => {
|
|
1822
1822
|
d(!1), v(!0);
|
|
1823
1823
|
};
|
|
1824
|
-
return /* @__PURE__ */
|
|
1825
|
-
/* @__PURE__ */
|
|
1826
|
-
|
|
1824
|
+
return /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
1825
|
+
/* @__PURE__ */ u.jsxs("header", { className: "debug", children: [
|
|
1826
|
+
c === !1 ? /* @__PURE__ */ u.jsx("div", { className: "b", children: "Отмена" }) : /* @__PURE__ */ u.jsx(
|
|
1827
1827
|
"div",
|
|
1828
1828
|
{
|
|
1829
1829
|
onClick: () => {
|
|
1830
1830
|
var A;
|
|
1831
|
-
|
|
1831
|
+
c.page === void 0 ? (A = c.callback) == null || A.call(c) : be.setPage(c.page);
|
|
1832
1832
|
},
|
|
1833
1833
|
className: "b",
|
|
1834
1834
|
children: "Назад"
|
|
1835
1835
|
}
|
|
1836
1836
|
),
|
|
1837
|
-
/* @__PURE__ */
|
|
1837
|
+
/* @__PURE__ */ u.jsx("div", { className: "o", onClick: () => d(!_), children: "Меню" })
|
|
1838
1838
|
] }),
|
|
1839
|
-
|
|
1839
|
+
/* @__PURE__ */ u.jsx(He.Init, {}),
|
|
1840
|
+
o && /* @__PURE__ */ u.jsx("div", { className: "mb", children: /* @__PURE__ */ u.jsx(
|
|
1840
1841
|
"button",
|
|
1841
1842
|
{
|
|
1842
1843
|
onClick: () => {
|
|
@@ -1845,30 +1846,30 @@ g.Init = ({ dev: n }) => {
|
|
|
1845
1846
|
children: o.text
|
|
1846
1847
|
}
|
|
1847
1848
|
) }),
|
|
1848
|
-
_ ? /* @__PURE__ */
|
|
1849
|
-
/* @__PURE__ */
|
|
1850
|
-
/* @__PURE__ */
|
|
1851
|
-
/* @__PURE__ */
|
|
1849
|
+
_ ? /* @__PURE__ */ u.jsxs("div", { className: "tm", children: [
|
|
1850
|
+
/* @__PURE__ */ u.jsxs("ul", { children: [
|
|
1851
|
+
/* @__PURE__ */ u.jsx("li", { children: /* @__PURE__ */ u.jsx("button", { onClick: I, children: "Authorization" }) }),
|
|
1852
|
+
/* @__PURE__ */ u.jsx("li", {})
|
|
1852
1853
|
] }),
|
|
1853
|
-
/* @__PURE__ */
|
|
1854
|
-
/* @__PURE__ */
|
|
1855
|
-
/* @__PURE__ */
|
|
1856
|
-
/* @__PURE__ */
|
|
1857
|
-
/* @__PURE__ */
|
|
1854
|
+
/* @__PURE__ */ u.jsxs("ul", { children: [
|
|
1855
|
+
/* @__PURE__ */ u.jsxs("li", { children: [
|
|
1856
|
+
/* @__PURE__ */ u.jsx("button", { children: "Thema" }),
|
|
1857
|
+
/* @__PURE__ */ u.jsxs("ol", { children: [
|
|
1858
|
+
/* @__PURE__ */ u.jsx("li", { children: /* @__PURE__ */ u.jsx(
|
|
1858
1859
|
"button",
|
|
1859
1860
|
{
|
|
1860
1861
|
onClick: () => x("dark"),
|
|
1861
1862
|
children: "Dark"
|
|
1862
1863
|
}
|
|
1863
1864
|
) }),
|
|
1864
|
-
/* @__PURE__ */
|
|
1865
|
+
/* @__PURE__ */ u.jsx("li", { children: /* @__PURE__ */ u.jsx(
|
|
1865
1866
|
"button",
|
|
1866
1867
|
{
|
|
1867
1868
|
onClick: () => x("light"),
|
|
1868
1869
|
children: "Light"
|
|
1869
1870
|
}
|
|
1870
1871
|
) }),
|
|
1871
|
-
/* @__PURE__ */
|
|
1872
|
+
/* @__PURE__ */ u.jsx("li", { children: /* @__PURE__ */ u.jsx(
|
|
1872
1873
|
"button",
|
|
1873
1874
|
{
|
|
1874
1875
|
onClick: () => x("users"),
|
|
@@ -1877,10 +1878,10 @@ g.Init = ({ dev: n }) => {
|
|
|
1877
1878
|
) })
|
|
1878
1879
|
] })
|
|
1879
1880
|
] }),
|
|
1880
|
-
/* @__PURE__ */
|
|
1881
|
+
/* @__PURE__ */ u.jsx("li", { children: /* @__PURE__ */ u.jsx("button", { onClick: () => d(!_), children: "Closed" }) })
|
|
1881
1882
|
] })
|
|
1882
1883
|
] }) : "",
|
|
1883
|
-
k ? /* @__PURE__ */
|
|
1884
|
+
k ? /* @__PURE__ */ u.jsx(ar, { setAuthorization: v }) : ""
|
|
1884
1885
|
] });
|
|
1885
1886
|
} else
|
|
1886
1887
|
return P.useEffect(() => {
|
|
@@ -1894,18 +1895,19 @@ g.Init = ({ dev: n }) => {
|
|
|
1894
1895
|
"--tg-safe-area-inset-bottom",
|
|
1895
1896
|
"16px"
|
|
1896
1897
|
);
|
|
1897
|
-
}, []), /* @__PURE__ */
|
|
1898
|
+
}, []), /* @__PURE__ */ u.jsx(u.Fragment, { children: /* @__PURE__ */ u.jsx(He.Init, {}) });
|
|
1898
1899
|
};
|
|
1899
1900
|
g.Modal = Ct;
|
|
1900
1901
|
g.Footer = or;
|
|
1901
1902
|
g.FooterMenu = nr;
|
|
1903
|
+
g.toggleFooterMenu = qe;
|
|
1902
1904
|
const ar = ({ setAuthorization: n }) => {
|
|
1903
1905
|
let o = {}, l = () => {
|
|
1904
1906
|
localStorage.setItem("auth", o);
|
|
1905
1907
|
};
|
|
1906
|
-
return /* @__PURE__ */
|
|
1907
|
-
/* @__PURE__ */
|
|
1908
|
-
/* @__PURE__ */
|
|
1908
|
+
return /* @__PURE__ */ u.jsx("div", { className: "ta", children: /* @__PURE__ */ u.jsxs("div", { className: "--body", children: [
|
|
1909
|
+
/* @__PURE__ */ u.jsx("fieldset", {}),
|
|
1910
|
+
/* @__PURE__ */ u.jsx("div", { onClick: l, children: " Сохранить " })
|
|
1909
1911
|
] }) });
|
|
1910
1912
|
};
|
|
1911
1913
|
export {
|