@elcrm/telegram 0.0.99 → 0.0.101
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/AppBar/AppBar.d.ts +6 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.es.js +462 -444
- package/dist/index.umd.js +18 -18
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import F, { useState as J, useEffect as fe } from "react";
|
|
2
|
-
import { createPortal as
|
|
3
|
-
import './index.css';var
|
|
2
|
+
import { createPortal as rr } from "react-dom";
|
|
3
|
+
import './index.css';var Dt = { exports: {} }, Qe = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
6
6
|
* react-jsx-runtime.production.min.js
|
|
@@ -10,17 +10,17 @@ import './index.css';var It = { exports: {} }, Qe = {};
|
|
|
10
10
|
* This source code is licensed under the MIT license found in the
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
12
12
|
*/
|
|
13
|
-
var
|
|
14
|
-
function
|
|
15
|
-
if (
|
|
16
|
-
|
|
17
|
-
var r = F, n = Symbol.for("react.element"), a = Symbol.for("react.fragment"),
|
|
13
|
+
var Lt;
|
|
14
|
+
function nr() {
|
|
15
|
+
if (Lt) return Qe;
|
|
16
|
+
Lt = 1;
|
|
17
|
+
var r = F, n = Symbol.for("react.element"), a = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, l = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
18
|
function k(b, u, S) {
|
|
19
|
-
var h, g = {}, m = null,
|
|
20
|
-
S !== void 0 && (m = "" + S), u.key !== void 0 && (m = "" + u.key), u.ref !== void 0 && (
|
|
21
|
-
for (h in u)
|
|
19
|
+
var h, g = {}, m = null, P = null;
|
|
20
|
+
S !== void 0 && (m = "" + S), u.key !== void 0 && (m = "" + u.key), u.ref !== void 0 && (P = u.ref);
|
|
21
|
+
for (h in u) c.call(u, h) && !p.hasOwnProperty(h) && (g[h] = u[h]);
|
|
22
22
|
if (b && b.defaultProps) for (h in u = b.defaultProps, u) g[h] === void 0 && (g[h] = u[h]);
|
|
23
|
-
return { $$typeof: n, type: b, key: m, ref:
|
|
23
|
+
return { $$typeof: n, type: b, key: m, ref: P, props: g, _owner: l.current };
|
|
24
24
|
}
|
|
25
25
|
return Qe.Fragment = a, Qe.jsx = k, Qe.jsxs = k, Qe;
|
|
26
26
|
}
|
|
@@ -34,14 +34,14 @@ var et = {};
|
|
|
34
34
|
* This source code is licensed under the MIT license found in the
|
|
35
35
|
* LICENSE file in the root directory of this source tree.
|
|
36
36
|
*/
|
|
37
|
-
var
|
|
38
|
-
function
|
|
39
|
-
return
|
|
40
|
-
var r = F, n = Symbol.for("react.element"), a = Symbol.for("react.portal"),
|
|
37
|
+
var Ut;
|
|
38
|
+
function or() {
|
|
39
|
+
return Ut || (Ut = 1, process.env.NODE_ENV !== "production" && function() {
|
|
40
|
+
var r = F, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), k = Symbol.for("react.provider"), b = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), I = Symbol.iterator, Pe = "@@iterator";
|
|
41
41
|
function pe(e) {
|
|
42
42
|
if (e === null || typeof e != "object")
|
|
43
43
|
return null;
|
|
44
|
-
var t = I && e[I] || e[
|
|
44
|
+
var t = I && e[I] || e[Pe];
|
|
45
45
|
return typeof t == "function" ? t : null;
|
|
46
46
|
}
|
|
47
47
|
var W = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -49,10 +49,10 @@ function nr() {
|
|
|
49
49
|
{
|
|
50
50
|
for (var t = arguments.length, o = new Array(t > 1 ? t - 1 : 0), s = 1; s < t; s++)
|
|
51
51
|
o[s - 1] = arguments[s];
|
|
52
|
-
|
|
52
|
+
we("error", e, o);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function we(e, t, o) {
|
|
56
56
|
{
|
|
57
57
|
var s = W.ReactDebugCurrentFrame, v = s.getStackAddendum();
|
|
58
58
|
v !== "" && (t += "%s", o = o.concat([v]));
|
|
@@ -62,10 +62,10 @@ function nr() {
|
|
|
62
62
|
y.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, y);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
var Te = !1, Oe = !1,
|
|
65
|
+
var Te = !1, Oe = !1, $e = !1, Ne = !1, _ = !1, E;
|
|
66
66
|
E = Symbol.for("react.module.reference");
|
|
67
|
-
function
|
|
68
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
67
|
+
function N(e) {
|
|
68
|
+
return !!(typeof e == "string" || typeof e == "function" || e === c || e === p || _ || e === l || e === S || e === h || Ne || e === P || Te || Oe || $e || typeof e == "object" && e !== null && (e.$$typeof === m || e.$$typeof === g || e.$$typeof === k || e.$$typeof === b || e.$$typeof === u || // This needs to include all possible module reference object
|
|
69
69
|
// types supported by any Flight configuration anywhere since
|
|
70
70
|
// we don't know which Flight build this will end up being used
|
|
71
71
|
// with.
|
|
@@ -89,13 +89,13 @@ function nr() {
|
|
|
89
89
|
if (typeof e == "string")
|
|
90
90
|
return e;
|
|
91
91
|
switch (e) {
|
|
92
|
-
case
|
|
92
|
+
case c:
|
|
93
93
|
return "Fragment";
|
|
94
94
|
case a:
|
|
95
95
|
return "Portal";
|
|
96
96
|
case p:
|
|
97
97
|
return "Profiler";
|
|
98
|
-
case
|
|
98
|
+
case l:
|
|
99
99
|
return "StrictMode";
|
|
100
100
|
case S:
|
|
101
101
|
return "Suspense";
|
|
@@ -130,7 +130,7 @@ function nr() {
|
|
|
130
130
|
function Me() {
|
|
131
131
|
}
|
|
132
132
|
Me.__reactDisabledLog = !0;
|
|
133
|
-
function
|
|
133
|
+
function ct() {
|
|
134
134
|
{
|
|
135
135
|
if (Y === 0) {
|
|
136
136
|
ce = console.log, Z = console.info, X = console.warn, Q = console.error, ee = console.group, Be = console.groupCollapsed, Ie = console.groupEnd;
|
|
@@ -153,7 +153,7 @@ function nr() {
|
|
|
153
153
|
Y++;
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function ut() {
|
|
157
157
|
{
|
|
158
158
|
if (Y--, Y === 0) {
|
|
159
159
|
var e = {
|
|
@@ -204,8 +204,8 @@ function nr() {
|
|
|
204
204
|
}
|
|
205
205
|
var ge = !1, ne;
|
|
206
206
|
{
|
|
207
|
-
var
|
|
208
|
-
ne = new
|
|
207
|
+
var ft = typeof WeakMap == "function" ? WeakMap : Map;
|
|
208
|
+
ne = new ft();
|
|
209
209
|
}
|
|
210
210
|
function De(e, t) {
|
|
211
211
|
if (!e || ge)
|
|
@@ -220,7 +220,7 @@ function nr() {
|
|
|
220
220
|
var v = Error.prepareStackTrace;
|
|
221
221
|
Error.prepareStackTrace = void 0;
|
|
222
222
|
var y;
|
|
223
|
-
y = ve.current, ve.current = null,
|
|
223
|
+
y = ve.current, ve.current = null, ct();
|
|
224
224
|
try {
|
|
225
225
|
if (t) {
|
|
226
226
|
var d = function() {
|
|
@@ -233,29 +233,29 @@ function nr() {
|
|
|
233
233
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
234
234
|
try {
|
|
235
235
|
Reflect.construct(d, []);
|
|
236
|
-
} catch (
|
|
237
|
-
s =
|
|
236
|
+
} catch (C) {
|
|
237
|
+
s = C;
|
|
238
238
|
}
|
|
239
239
|
Reflect.construct(e, [], d);
|
|
240
240
|
} else {
|
|
241
241
|
try {
|
|
242
242
|
d.call();
|
|
243
|
-
} catch (
|
|
244
|
-
s =
|
|
243
|
+
} catch (C) {
|
|
244
|
+
s = C;
|
|
245
245
|
}
|
|
246
246
|
e.call(d.prototype);
|
|
247
247
|
}
|
|
248
248
|
} else {
|
|
249
249
|
try {
|
|
250
250
|
throw Error();
|
|
251
|
-
} catch (
|
|
252
|
-
s =
|
|
251
|
+
} catch (C) {
|
|
252
|
+
s = C;
|
|
253
253
|
}
|
|
254
254
|
e();
|
|
255
255
|
}
|
|
256
|
-
} catch (
|
|
257
|
-
if (
|
|
258
|
-
for (var f =
|
|
256
|
+
} catch (C) {
|
|
257
|
+
if (C && s && typeof C.stack == "string") {
|
|
258
|
+
for (var f = C.stack.split(`
|
|
259
259
|
`), O = s.stack.split(`
|
|
260
260
|
`), R = f.length - 1, x = O.length - 1; R >= 1 && x >= 0 && f[R] !== O[x]; )
|
|
261
261
|
x--;
|
|
@@ -264,24 +264,24 @@ function nr() {
|
|
|
264
264
|
if (R !== 1 || x !== 1)
|
|
265
265
|
do
|
|
266
266
|
if (R--, x--, x < 0 || f[R] !== O[x]) {
|
|
267
|
-
var
|
|
267
|
+
var w = `
|
|
268
268
|
` + f[R].replace(" at new ", " at ");
|
|
269
|
-
return e.displayName &&
|
|
269
|
+
return e.displayName && w.includes("<anonymous>") && (w = w.replace("<anonymous>", e.displayName)), typeof e == "function" && ne.set(e, w), w;
|
|
270
270
|
}
|
|
271
271
|
while (R >= 1 && x >= 0);
|
|
272
272
|
break;
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
} finally {
|
|
276
|
-
ge = !1, ve.current = y,
|
|
276
|
+
ge = !1, ve.current = y, ut(), Error.prepareStackTrace = v;
|
|
277
277
|
}
|
|
278
278
|
var z = e ? e.displayName || e.name : "", L = z ? re(z) : "";
|
|
279
279
|
return typeof e == "function" && ne.set(e, L), L;
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function dt(e, t, o) {
|
|
282
282
|
return De(e, !1);
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function pt(e) {
|
|
285
285
|
var t = e.prototype;
|
|
286
286
|
return !!(t && t.isReactComponent);
|
|
287
287
|
}
|
|
@@ -289,7 +289,7 @@ function nr() {
|
|
|
289
289
|
if (e == null)
|
|
290
290
|
return "";
|
|
291
291
|
if (typeof e == "function")
|
|
292
|
-
return De(e,
|
|
292
|
+
return De(e, pt(e));
|
|
293
293
|
if (typeof e == "string")
|
|
294
294
|
return re(e);
|
|
295
295
|
switch (e) {
|
|
@@ -301,7 +301,7 @@ function nr() {
|
|
|
301
301
|
if (typeof e == "object")
|
|
302
302
|
switch (e.$$typeof) {
|
|
303
303
|
case u:
|
|
304
|
-
return
|
|
304
|
+
return dt(e.render);
|
|
305
305
|
case g:
|
|
306
306
|
return oe(e.type, t, o);
|
|
307
307
|
case m: {
|
|
@@ -322,7 +322,7 @@ function nr() {
|
|
|
322
322
|
} else
|
|
323
323
|
We.setExtraStackFrame(null);
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function vt(e, t, o, s, v) {
|
|
326
326
|
{
|
|
327
327
|
var y = Function.call.bind(K);
|
|
328
328
|
for (var d in e)
|
|
@@ -341,17 +341,17 @@ function nr() {
|
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
|
-
var
|
|
344
|
+
var ht = Array.isArray;
|
|
345
345
|
function ye(e) {
|
|
346
|
-
return
|
|
346
|
+
return ht(e);
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function gt(e) {
|
|
349
349
|
{
|
|
350
350
|
var t = typeof Symbol == "function" && Symbol.toStringTag, o = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
351
351
|
return o;
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function yt(e) {
|
|
355
355
|
try {
|
|
356
356
|
return Le(e), !1;
|
|
357
357
|
} catch {
|
|
@@ -362,16 +362,16 @@ function nr() {
|
|
|
362
362
|
return "" + e;
|
|
363
363
|
}
|
|
364
364
|
function Ue(e) {
|
|
365
|
-
if (
|
|
366
|
-
return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
365
|
+
if (yt(e))
|
|
366
|
+
return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", gt(e)), Le(e);
|
|
367
367
|
}
|
|
368
|
-
var Ye = W.ReactCurrentOwner,
|
|
368
|
+
var Ye = W.ReactCurrentOwner, mt = {
|
|
369
369
|
key: !0,
|
|
370
370
|
ref: !0,
|
|
371
371
|
__self: !0,
|
|
372
372
|
__source: !0
|
|
373
373
|
}, Ve, ze;
|
|
374
|
-
function
|
|
374
|
+
function bt(e) {
|
|
375
375
|
if (K.call(e, "ref")) {
|
|
376
376
|
var t = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
377
377
|
if (t && t.isReactWarning)
|
|
@@ -379,7 +379,7 @@ function nr() {
|
|
|
379
379
|
}
|
|
380
380
|
return e.ref !== void 0;
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function _t(e) {
|
|
383
383
|
if (K.call(e, "key")) {
|
|
384
384
|
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
385
385
|
if (t && t.isReactWarning)
|
|
@@ -387,10 +387,10 @@ function nr() {
|
|
|
387
387
|
}
|
|
388
388
|
return e.key !== void 0;
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function Rt(e, t) {
|
|
391
391
|
typeof e.ref == "string" && Ye.current;
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function St(e, t) {
|
|
394
394
|
{
|
|
395
395
|
var o = function() {
|
|
396
396
|
Ve || (Ve = !0, j("%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));
|
|
@@ -401,7 +401,7 @@ function nr() {
|
|
|
401
401
|
});
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function kt(e, t) {
|
|
405
405
|
{
|
|
406
406
|
var o = function() {
|
|
407
407
|
ze || (ze = !0, j("%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));
|
|
@@ -412,7 +412,7 @@ function nr() {
|
|
|
412
412
|
});
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
-
var
|
|
415
|
+
var xt = function(e, t, o, s, v, y, d) {
|
|
416
416
|
var f = {
|
|
417
417
|
// This tag allows us to uniquely identify this as a React Element
|
|
418
418
|
$$typeof: n,
|
|
@@ -441,12 +441,12 @@ function nr() {
|
|
|
441
441
|
value: v
|
|
442
442
|
}), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
|
|
443
443
|
};
|
|
444
|
-
function
|
|
444
|
+
function Et(e, t, o, s, v) {
|
|
445
445
|
{
|
|
446
446
|
var y, d = {}, f = null, O = null;
|
|
447
|
-
o !== void 0 && (Ue(o), f = "" + o),
|
|
447
|
+
o !== void 0 && (Ue(o), f = "" + o), _t(t) && (Ue(t.key), f = "" + t.key), bt(t) && (O = t.ref, Rt(t, v));
|
|
448
448
|
for (y in t)
|
|
449
|
-
K.call(t, y) && !
|
|
449
|
+
K.call(t, y) && !mt.hasOwnProperty(y) && (d[y] = t[y]);
|
|
450
450
|
if (e && e.defaultProps) {
|
|
451
451
|
var R = e.defaultProps;
|
|
452
452
|
for (y in R)
|
|
@@ -454,9 +454,9 @@ function nr() {
|
|
|
454
454
|
}
|
|
455
455
|
if (f || O) {
|
|
456
456
|
var x = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
457
|
-
f &&
|
|
457
|
+
f && St(d, x), O && kt(d, x);
|
|
458
458
|
}
|
|
459
|
-
return
|
|
459
|
+
return xt(e, f, O, v, s, Ye.current, d);
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
462
|
var me = W.ReactCurrentOwner, qe = W.ReactDebugCurrentFrame;
|
|
@@ -484,11 +484,11 @@ Check the render method of \`` + e + "`.";
|
|
|
484
484
|
return "";
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
|
-
function
|
|
487
|
+
function jt(e) {
|
|
488
488
|
return "";
|
|
489
489
|
}
|
|
490
490
|
var Je = {};
|
|
491
|
-
function
|
|
491
|
+
function Ot(e) {
|
|
492
492
|
{
|
|
493
493
|
var t = He();
|
|
494
494
|
if (!t) {
|
|
@@ -505,7 +505,7 @@ Check the top-level render call using <` + o + ">.");
|
|
|
505
505
|
if (!e._store || e._store.validated || e.key != null)
|
|
506
506
|
return;
|
|
507
507
|
e._store.validated = !0;
|
|
508
|
-
var o =
|
|
508
|
+
var o = Ot(t);
|
|
509
509
|
if (Je[o])
|
|
510
510
|
return;
|
|
511
511
|
Je[o] = !0;
|
|
@@ -532,7 +532,7 @@ Check the top-level render call using <` + o + ">.");
|
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
|
-
function
|
|
535
|
+
function At(e) {
|
|
536
536
|
{
|
|
537
537
|
var t = e.type;
|
|
538
538
|
if (t == null || typeof t == "string")
|
|
@@ -548,7 +548,7 @@ Check the top-level render call using <` + o + ">.");
|
|
|
548
548
|
return;
|
|
549
549
|
if (o) {
|
|
550
550
|
var s = T(t);
|
|
551
|
-
|
|
551
|
+
vt(o, e.props, "prop", s, e);
|
|
552
552
|
} else if (t.PropTypes !== void 0 && !be) {
|
|
553
553
|
be = !0;
|
|
554
554
|
var v = T(t);
|
|
@@ -557,7 +557,7 @@ Check the top-level render call using <` + o + ">.");
|
|
|
557
557
|
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function Ct(e) {
|
|
561
561
|
{
|
|
562
562
|
for (var t = Object.keys(e.props), o = 0; o < t.length; o++) {
|
|
563
563
|
var s = t[o];
|
|
@@ -572,37 +572,37 @@ Check the top-level render call using <` + o + ">.");
|
|
|
572
572
|
var Ze = {};
|
|
573
573
|
function Xe(e, t, o, s, v, y) {
|
|
574
574
|
{
|
|
575
|
-
var d =
|
|
575
|
+
var d = N(e);
|
|
576
576
|
if (!d) {
|
|
577
577
|
var f = "";
|
|
578
578
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (f += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
579
|
-
var O =
|
|
579
|
+
var O = jt();
|
|
580
580
|
O ? f += O : f += He();
|
|
581
581
|
var R;
|
|
582
582
|
e === null ? R = "null" : ye(e) ? R = "array" : e !== void 0 && e.$$typeof === n ? (R = "<" + (T(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : R = typeof e, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, f);
|
|
583
583
|
}
|
|
584
|
-
var x =
|
|
584
|
+
var x = Et(e, t, o, v, y);
|
|
585
585
|
if (x == null)
|
|
586
586
|
return x;
|
|
587
587
|
if (d) {
|
|
588
|
-
var
|
|
589
|
-
if (
|
|
588
|
+
var w = t.children;
|
|
589
|
+
if (w !== void 0)
|
|
590
590
|
if (s)
|
|
591
|
-
if (ye(
|
|
592
|
-
for (var z = 0; z <
|
|
593
|
-
Ge(
|
|
594
|
-
Object.freeze && Object.freeze(
|
|
591
|
+
if (ye(w)) {
|
|
592
|
+
for (var z = 0; z < w.length; z++)
|
|
593
|
+
Ge(w[z], e);
|
|
594
|
+
Object.freeze && Object.freeze(w);
|
|
595
595
|
} else
|
|
596
596
|
j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
597
597
|
else
|
|
598
|
-
Ge(
|
|
598
|
+
Ge(w, e);
|
|
599
599
|
}
|
|
600
600
|
if (K.call(t, "key")) {
|
|
601
|
-
var L = T(e),
|
|
602
|
-
return
|
|
603
|
-
}), Re =
|
|
601
|
+
var L = T(e), C = Object.keys(t).filter(function(Bt) {
|
|
602
|
+
return Bt !== "key";
|
|
603
|
+
}), Re = C.length > 0 ? "{key: someKey, " + C.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
604
604
|
if (!Ze[L + Re]) {
|
|
605
|
-
var Nt =
|
|
605
|
+
var Nt = C.length > 0 ? "{" + C.join(": ..., ") + ": ...}" : "{}";
|
|
606
606
|
j(`A props object containing a "key" prop is being spread into JSX:
|
|
607
607
|
let props = %s;
|
|
608
608
|
<%s {...props} />
|
|
@@ -611,36 +611,36 @@ React keys must be passed directly to JSX without using spread:
|
|
|
611
611
|
<%s key={someKey} {...props} />`, Re, L, Nt, L), Ze[L + Re] = !0;
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
|
-
return e ===
|
|
614
|
+
return e === c ? Ct(x) : At(x), x;
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
617
|
function Pt(e, t, o) {
|
|
618
618
|
return Xe(e, t, o, !0);
|
|
619
619
|
}
|
|
620
|
-
function
|
|
620
|
+
function wt(e, t, o) {
|
|
621
621
|
return Xe(e, t, o, !1);
|
|
622
622
|
}
|
|
623
|
-
var
|
|
624
|
-
et.Fragment =
|
|
623
|
+
var Tt = wt, $t = Pt;
|
|
624
|
+
et.Fragment = c, et.jsx = Tt, et.jsxs = $t;
|
|
625
625
|
}()), et;
|
|
626
626
|
}
|
|
627
|
-
process.env.NODE_ENV === "production" ?
|
|
628
|
-
var i =
|
|
627
|
+
process.env.NODE_ENV === "production" ? Dt.exports = nr() : Dt.exports = or();
|
|
628
|
+
var i = Dt.exports;
|
|
629
629
|
let q = {};
|
|
630
|
-
var
|
|
630
|
+
var Ft;
|
|
631
631
|
((r) => {
|
|
632
632
|
function n({
|
|
633
633
|
children: b,
|
|
634
634
|
onCallbackModal: u,
|
|
635
635
|
nameModal: S
|
|
636
636
|
}) {
|
|
637
|
-
const [h, g] = J(!1), [m,
|
|
637
|
+
const [h, g] = J(!1), [m, P] = J(!1);
|
|
638
638
|
if (q[S].onClose = () => {
|
|
639
|
-
|
|
640
|
-
g(!1),
|
|
639
|
+
$.BackButton(!1), P(!0), setTimeout(() => {
|
|
640
|
+
g(!1), P(!1), u == null || u(), q.x(S);
|
|
641
641
|
}, 300);
|
|
642
642
|
}, fe(() => {
|
|
643
|
-
h ? q[S].onClose() : (
|
|
643
|
+
h ? q[S].onClose() : ($.BackButton({
|
|
644
644
|
callback: () => q[S].onClose()
|
|
645
645
|
}), g(!0));
|
|
646
646
|
}, []), !!h)
|
|
@@ -660,7 +660,7 @@ var Mt;
|
|
|
660
660
|
}, /* @__PURE__ */ i.jsx(i.Fragment, { children: u.map((h) => h.item) });
|
|
661
661
|
}
|
|
662
662
|
r.Init = a;
|
|
663
|
-
function
|
|
663
|
+
function c(b, u) {
|
|
664
664
|
q.add(
|
|
665
665
|
/* @__PURE__ */ i.jsx(
|
|
666
666
|
n,
|
|
@@ -674,8 +674,8 @@ var Mt;
|
|
|
674
674
|
u
|
|
675
675
|
);
|
|
676
676
|
}
|
|
677
|
-
r.Add =
|
|
678
|
-
function
|
|
677
|
+
r.Add = c;
|
|
678
|
+
function l(b, u = Date.now().toString()) {
|
|
679
679
|
return q[u] = {}, {
|
|
680
680
|
Open: (g) => {
|
|
681
681
|
r.Add(
|
|
@@ -684,8 +684,8 @@ var Mt;
|
|
|
684
684
|
{
|
|
685
685
|
...g,
|
|
686
686
|
onCallbackModal: (m) => {
|
|
687
|
-
var
|
|
688
|
-
(
|
|
687
|
+
var P;
|
|
688
|
+
(P = g.callback) == null || P.call(g, m);
|
|
689
689
|
},
|
|
690
690
|
nameModal: u
|
|
691
691
|
},
|
|
@@ -696,7 +696,7 @@ var Mt;
|
|
|
696
696
|
}
|
|
697
697
|
};
|
|
698
698
|
}
|
|
699
|
-
r.Create =
|
|
699
|
+
r.Create = l;
|
|
700
700
|
function p(b) {
|
|
701
701
|
q[b].onClose();
|
|
702
702
|
}
|
|
@@ -707,84 +707,84 @@ var Mt;
|
|
|
707
707
|
}));
|
|
708
708
|
}
|
|
709
709
|
r.Open = k;
|
|
710
|
-
})(
|
|
711
|
-
function
|
|
710
|
+
})(Ft || (Ft = {}));
|
|
711
|
+
function Gt() {
|
|
712
712
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof self < "u" ? self : typeof global < "u" ? global : {};
|
|
713
713
|
}
|
|
714
|
-
const
|
|
714
|
+
const Zt = {
|
|
715
715
|
key: "Y0zt37HgOx-BY7SQjYVmrqhPkO41Ii2Jcb9yydUDPf6",
|
|
716
716
|
iterations: 7,
|
|
717
717
|
saltLength: 16
|
|
718
718
|
};
|
|
719
|
-
function
|
|
720
|
-
const n =
|
|
721
|
-
n.CRYPTO_PARAMS ? n.CRYPTO_PARAMS = { ...n.CRYPTO_PARAMS, ...r } : n.CRYPTO_PARAMS = { ...
|
|
719
|
+
function Yt(r) {
|
|
720
|
+
const n = Gt();
|
|
721
|
+
n.CRYPTO_PARAMS ? n.CRYPTO_PARAMS = { ...n.CRYPTO_PARAMS, ...r } : n.CRYPTO_PARAMS = { ...Zt, ...r };
|
|
722
722
|
}
|
|
723
723
|
function at() {
|
|
724
|
-
return
|
|
724
|
+
return Gt().CRYPTO_PARAMS || Zt;
|
|
725
725
|
}
|
|
726
726
|
const st = (r) => {
|
|
727
727
|
let n = 0;
|
|
728
|
-
for (let
|
|
729
|
-
const
|
|
730
|
-
n = (n << 5) - n +
|
|
728
|
+
for (let c = 0; c < r.length; c++) {
|
|
729
|
+
const l = r.charCodeAt(c);
|
|
730
|
+
n = (n << 5) - n + l, n = n & n;
|
|
731
731
|
}
|
|
732
732
|
n = Math.abs(n);
|
|
733
733
|
let a = "";
|
|
734
|
-
for (let
|
|
735
|
-
const
|
|
736
|
-
a +=
|
|
734
|
+
for (let c = 0; c < 64; c++) {
|
|
735
|
+
const l = (n ^ c * 197) & 255;
|
|
736
|
+
a += l.toString(16).padStart(2, "0");
|
|
737
737
|
}
|
|
738
738
|
return a;
|
|
739
|
-
},
|
|
739
|
+
}, Xt = (r, n) => {
|
|
740
740
|
let a = r + n;
|
|
741
|
-
for (let
|
|
741
|
+
for (let l = 0; l < at().iterations; l++)
|
|
742
742
|
a = st(a);
|
|
743
|
-
const
|
|
744
|
-
for (let
|
|
745
|
-
l
|
|
746
|
-
return
|
|
747
|
-
},
|
|
748
|
-
const a = new Uint8Array(r.length),
|
|
749
|
-
let
|
|
743
|
+
const c = new Uint8Array(32);
|
|
744
|
+
for (let l = 0; l < 32; l++)
|
|
745
|
+
c[l] = parseInt(a.substring(l * 2, l * 2 + 2), 16);
|
|
746
|
+
return c;
|
|
747
|
+
}, Qt = (r, n) => {
|
|
748
|
+
const a = new Uint8Array(r.length), c = new Uint8Array(r.length);
|
|
749
|
+
let l = 0;
|
|
750
750
|
for (let p = 0; p < r.length; p++) {
|
|
751
751
|
const k = p % n.length;
|
|
752
|
-
|
|
752
|
+
l = n[k] + p + l & 255, c[p] = l;
|
|
753
753
|
}
|
|
754
754
|
for (let p = 0; p < r.length; p++)
|
|
755
|
-
a[p] = r[p] ^
|
|
755
|
+
a[p] = r[p] ^ c[p];
|
|
756
756
|
return a;
|
|
757
|
-
},
|
|
757
|
+
}, ar = (r) => new TextEncoder().encode(r), sr = (r) => new TextDecoder().decode(r), ir = (r) => {
|
|
758
758
|
let n = "";
|
|
759
759
|
for (let a = 0; a < r.length; a += 8192) {
|
|
760
|
-
const
|
|
761
|
-
n += String.fromCharCode.apply(null, Array.from(
|
|
760
|
+
const c = r.slice(a, Math.min(a + 8192, r.length));
|
|
761
|
+
n += String.fromCharCode.apply(null, Array.from(c));
|
|
762
762
|
}
|
|
763
763
|
return btoa(n);
|
|
764
|
-
},
|
|
764
|
+
}, lr = (r) => {
|
|
765
765
|
const n = atob(r), a = new Uint8Array(n.length);
|
|
766
|
-
for (let
|
|
767
|
-
a[
|
|
766
|
+
for (let c = 0; c < n.length; c++)
|
|
767
|
+
a[c] = n.charCodeAt(c);
|
|
768
768
|
return a;
|
|
769
|
-
},
|
|
769
|
+
}, cr = (r) => {
|
|
770
770
|
try {
|
|
771
771
|
const n = st(
|
|
772
772
|
Date.now().toString() + Math.random()
|
|
773
|
-
).substring(0, at().saltLength * 2), a = st(r + n).substring(0, 8),
|
|
773
|
+
).substring(0, at().saltLength * 2), a = st(r + n).substring(0, 8), c = Xt(at().key, n), l = ar(r), p = Qt(l, c), k = ir(p);
|
|
774
774
|
return `${n}.${k}.${a}`;
|
|
775
775
|
} catch {
|
|
776
776
|
throw new Error("Не удалось зашифровать данные");
|
|
777
777
|
}
|
|
778
|
-
},
|
|
778
|
+
}, ur = (r) => {
|
|
779
779
|
try {
|
|
780
780
|
const n = r.split(".");
|
|
781
781
|
if (n.length !== 3)
|
|
782
782
|
throw new Error("Неверный формат зашифрованных данных");
|
|
783
|
-
const a = n[0],
|
|
783
|
+
const a = n[0], c = n[1], l = n[2], p = Xt(at().key, a), k = lr(c), b = Qt(k, p), u = sr(b);
|
|
784
784
|
if (st(u + a).substring(
|
|
785
785
|
0,
|
|
786
786
|
8
|
|
787
|
-
) !==
|
|
787
|
+
) !== l)
|
|
788
788
|
throw new Error("Контрольная сумма не совпадает");
|
|
789
789
|
return u;
|
|
790
790
|
} catch {
|
|
@@ -794,11 +794,11 @@ const st = (r) => {
|
|
|
794
794
|
var ue;
|
|
795
795
|
((r) => {
|
|
796
796
|
r.setKey = (n) => {
|
|
797
|
-
|
|
797
|
+
Yt({ key: n });
|
|
798
798
|
}, r.enCode = (n) => {
|
|
799
799
|
try {
|
|
800
800
|
const a = JSON.stringify(n);
|
|
801
|
-
return
|
|
801
|
+
return cr(a);
|
|
802
802
|
} catch {
|
|
803
803
|
throw new Error("Не удалось зашифровать объект");
|
|
804
804
|
}
|
|
@@ -806,13 +806,13 @@ var ue;
|
|
|
806
806
|
try {
|
|
807
807
|
if (!n || n.length < 10)
|
|
808
808
|
return !1;
|
|
809
|
-
const a =
|
|
809
|
+
const a = ur(n);
|
|
810
810
|
return a && JSON.parse(a) || !1;
|
|
811
811
|
} catch {
|
|
812
812
|
return !1;
|
|
813
813
|
}
|
|
814
814
|
}, r.setSecurityParams = (n, a) => {
|
|
815
|
-
|
|
815
|
+
Yt({ iterations: n, saltLength: a });
|
|
816
816
|
};
|
|
817
817
|
})(ue || (ue = {}));
|
|
818
818
|
var tt = {};
|
|
@@ -825,17 +825,17 @@ var tt = {};
|
|
|
825
825
|
* This source code is licensed under the MIT license found in the
|
|
826
826
|
* LICENSE file in the root directory of this source tree.
|
|
827
827
|
*/
|
|
828
|
-
var
|
|
829
|
-
function
|
|
830
|
-
if (
|
|
831
|
-
|
|
832
|
-
var r = F, n = Symbol.for("react.element"), a = Symbol.for("react.fragment"),
|
|
828
|
+
var Vt;
|
|
829
|
+
function fr() {
|
|
830
|
+
if (Vt) return tt;
|
|
831
|
+
Vt = 1;
|
|
832
|
+
var r = F, n = Symbol.for("react.element"), a = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, l = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
833
833
|
function k(b, u, S) {
|
|
834
|
-
var h, g = {}, m = null,
|
|
835
|
-
S !== void 0 && (m = "" + S), u.key !== void 0 && (m = "" + u.key), u.ref !== void 0 && (
|
|
836
|
-
for (h in u)
|
|
834
|
+
var h, g = {}, m = null, P = null;
|
|
835
|
+
S !== void 0 && (m = "" + S), u.key !== void 0 && (m = "" + u.key), u.ref !== void 0 && (P = u.ref);
|
|
836
|
+
for (h in u) c.call(u, h) && !p.hasOwnProperty(h) && (g[h] = u[h]);
|
|
837
837
|
if (b && b.defaultProps) for (h in u = b.defaultProps, u) g[h] === void 0 && (g[h] = u[h]);
|
|
838
|
-
return { $$typeof: n, type: b, key: m, ref:
|
|
838
|
+
return { $$typeof: n, type: b, key: m, ref: P, props: g, _owner: l.current };
|
|
839
839
|
}
|
|
840
840
|
return tt.Fragment = a, tt.jsx = k, tt.jsxs = k, tt;
|
|
841
841
|
}
|
|
@@ -849,14 +849,14 @@ var nt = {};
|
|
|
849
849
|
* This source code is licensed under the MIT license found in the
|
|
850
850
|
* LICENSE file in the root directory of this source tree.
|
|
851
851
|
*/
|
|
852
|
-
var
|
|
853
|
-
function
|
|
854
|
-
return
|
|
855
|
-
var r = F, n = Symbol.for("react.element"), a = Symbol.for("react.portal"),
|
|
852
|
+
var zt;
|
|
853
|
+
function dr() {
|
|
854
|
+
return zt || (zt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
855
|
+
var r = F, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), k = Symbol.for("react.provider"), b = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), I = Symbol.iterator, Pe = "@@iterator";
|
|
856
856
|
function pe(e) {
|
|
857
857
|
if (e === null || typeof e != "object")
|
|
858
858
|
return null;
|
|
859
|
-
var t = I && e[I] || e[
|
|
859
|
+
var t = I && e[I] || e[Pe];
|
|
860
860
|
return typeof t == "function" ? t : null;
|
|
861
861
|
}
|
|
862
862
|
var W = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -864,10 +864,10 @@ function fr() {
|
|
|
864
864
|
{
|
|
865
865
|
for (var t = arguments.length, o = new Array(t > 1 ? t - 1 : 0), s = 1; s < t; s++)
|
|
866
866
|
o[s - 1] = arguments[s];
|
|
867
|
-
|
|
867
|
+
we("error", e, o);
|
|
868
868
|
}
|
|
869
869
|
}
|
|
870
|
-
function
|
|
870
|
+
function we(e, t, o) {
|
|
871
871
|
{
|
|
872
872
|
var s = W.ReactDebugCurrentFrame, v = s.getStackAddendum();
|
|
873
873
|
v !== "" && (t += "%s", o = o.concat([v]));
|
|
@@ -877,10 +877,10 @@ function fr() {
|
|
|
877
877
|
y.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, y);
|
|
878
878
|
}
|
|
879
879
|
}
|
|
880
|
-
var Te = !1, Oe = !1,
|
|
880
|
+
var Te = !1, Oe = !1, $e = !1, Ne = !1, _ = !1, E;
|
|
881
881
|
E = Symbol.for("react.module.reference");
|
|
882
|
-
function
|
|
883
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
882
|
+
function N(e) {
|
|
883
|
+
return !!(typeof e == "string" || typeof e == "function" || e === c || e === p || _ || e === l || e === S || e === h || Ne || e === P || Te || Oe || $e || typeof e == "object" && e !== null && (e.$$typeof === m || e.$$typeof === g || e.$$typeof === k || e.$$typeof === b || e.$$typeof === u || // This needs to include all possible module reference object
|
|
884
884
|
// types supported by any Flight configuration anywhere since
|
|
885
885
|
// we don't know which Flight build this will end up being used
|
|
886
886
|
// with.
|
|
@@ -904,13 +904,13 @@ function fr() {
|
|
|
904
904
|
if (typeof e == "string")
|
|
905
905
|
return e;
|
|
906
906
|
switch (e) {
|
|
907
|
-
case
|
|
907
|
+
case c:
|
|
908
908
|
return "Fragment";
|
|
909
909
|
case a:
|
|
910
910
|
return "Portal";
|
|
911
911
|
case p:
|
|
912
912
|
return "Profiler";
|
|
913
|
-
case
|
|
913
|
+
case l:
|
|
914
914
|
return "StrictMode";
|
|
915
915
|
case S:
|
|
916
916
|
return "Suspense";
|
|
@@ -945,7 +945,7 @@ function fr() {
|
|
|
945
945
|
function Me() {
|
|
946
946
|
}
|
|
947
947
|
Me.__reactDisabledLog = !0;
|
|
948
|
-
function
|
|
948
|
+
function ct() {
|
|
949
949
|
{
|
|
950
950
|
if (Y === 0) {
|
|
951
951
|
ce = console.log, Z = console.info, X = console.warn, Q = console.error, ee = console.group, Be = console.groupCollapsed, Ie = console.groupEnd;
|
|
@@ -968,7 +968,7 @@ function fr() {
|
|
|
968
968
|
Y++;
|
|
969
969
|
}
|
|
970
970
|
}
|
|
971
|
-
function
|
|
971
|
+
function ut() {
|
|
972
972
|
{
|
|
973
973
|
if (Y--, Y === 0) {
|
|
974
974
|
var e = {
|
|
@@ -1019,8 +1019,8 @@ function fr() {
|
|
|
1019
1019
|
}
|
|
1020
1020
|
var ge = !1, ne;
|
|
1021
1021
|
{
|
|
1022
|
-
var
|
|
1023
|
-
ne = new
|
|
1022
|
+
var ft = typeof WeakMap == "function" ? WeakMap : Map;
|
|
1023
|
+
ne = new ft();
|
|
1024
1024
|
}
|
|
1025
1025
|
function De(e, t) {
|
|
1026
1026
|
if (!e || ge)
|
|
@@ -1035,7 +1035,7 @@ function fr() {
|
|
|
1035
1035
|
var v = Error.prepareStackTrace;
|
|
1036
1036
|
Error.prepareStackTrace = void 0;
|
|
1037
1037
|
var y;
|
|
1038
|
-
y = ve.current, ve.current = null,
|
|
1038
|
+
y = ve.current, ve.current = null, ct();
|
|
1039
1039
|
try {
|
|
1040
1040
|
if (t) {
|
|
1041
1041
|
var d = function() {
|
|
@@ -1048,29 +1048,29 @@ function fr() {
|
|
|
1048
1048
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
1049
1049
|
try {
|
|
1050
1050
|
Reflect.construct(d, []);
|
|
1051
|
-
} catch (
|
|
1052
|
-
s =
|
|
1051
|
+
} catch (C) {
|
|
1052
|
+
s = C;
|
|
1053
1053
|
}
|
|
1054
1054
|
Reflect.construct(e, [], d);
|
|
1055
1055
|
} else {
|
|
1056
1056
|
try {
|
|
1057
1057
|
d.call();
|
|
1058
|
-
} catch (
|
|
1059
|
-
s =
|
|
1058
|
+
} catch (C) {
|
|
1059
|
+
s = C;
|
|
1060
1060
|
}
|
|
1061
1061
|
e.call(d.prototype);
|
|
1062
1062
|
}
|
|
1063
1063
|
} else {
|
|
1064
1064
|
try {
|
|
1065
1065
|
throw Error();
|
|
1066
|
-
} catch (
|
|
1067
|
-
s =
|
|
1066
|
+
} catch (C) {
|
|
1067
|
+
s = C;
|
|
1068
1068
|
}
|
|
1069
1069
|
e();
|
|
1070
1070
|
}
|
|
1071
|
-
} catch (
|
|
1072
|
-
if (
|
|
1073
|
-
for (var f =
|
|
1071
|
+
} catch (C) {
|
|
1072
|
+
if (C && s && typeof C.stack == "string") {
|
|
1073
|
+
for (var f = C.stack.split(`
|
|
1074
1074
|
`), O = s.stack.split(`
|
|
1075
1075
|
`), R = f.length - 1, x = O.length - 1; R >= 1 && x >= 0 && f[R] !== O[x]; )
|
|
1076
1076
|
x--;
|
|
@@ -1079,24 +1079,24 @@ function fr() {
|
|
|
1079
1079
|
if (R !== 1 || x !== 1)
|
|
1080
1080
|
do
|
|
1081
1081
|
if (R--, x--, x < 0 || f[R] !== O[x]) {
|
|
1082
|
-
var
|
|
1082
|
+
var w = `
|
|
1083
1083
|
` + f[R].replace(" at new ", " at ");
|
|
1084
|
-
return e.displayName &&
|
|
1084
|
+
return e.displayName && w.includes("<anonymous>") && (w = w.replace("<anonymous>", e.displayName)), typeof e == "function" && ne.set(e, w), w;
|
|
1085
1085
|
}
|
|
1086
1086
|
while (R >= 1 && x >= 0);
|
|
1087
1087
|
break;
|
|
1088
1088
|
}
|
|
1089
1089
|
}
|
|
1090
1090
|
} finally {
|
|
1091
|
-
ge = !1, ve.current = y,
|
|
1091
|
+
ge = !1, ve.current = y, ut(), Error.prepareStackTrace = v;
|
|
1092
1092
|
}
|
|
1093
1093
|
var z = e ? e.displayName || e.name : "", L = z ? re(z) : "";
|
|
1094
1094
|
return typeof e == "function" && ne.set(e, L), L;
|
|
1095
1095
|
}
|
|
1096
|
-
function
|
|
1096
|
+
function dt(e, t, o) {
|
|
1097
1097
|
return De(e, !1);
|
|
1098
1098
|
}
|
|
1099
|
-
function
|
|
1099
|
+
function pt(e) {
|
|
1100
1100
|
var t = e.prototype;
|
|
1101
1101
|
return !!(t && t.isReactComponent);
|
|
1102
1102
|
}
|
|
@@ -1104,7 +1104,7 @@ function fr() {
|
|
|
1104
1104
|
if (e == null)
|
|
1105
1105
|
return "";
|
|
1106
1106
|
if (typeof e == "function")
|
|
1107
|
-
return De(e,
|
|
1107
|
+
return De(e, pt(e));
|
|
1108
1108
|
if (typeof e == "string")
|
|
1109
1109
|
return re(e);
|
|
1110
1110
|
switch (e) {
|
|
@@ -1116,7 +1116,7 @@ function fr() {
|
|
|
1116
1116
|
if (typeof e == "object")
|
|
1117
1117
|
switch (e.$$typeof) {
|
|
1118
1118
|
case u:
|
|
1119
|
-
return
|
|
1119
|
+
return dt(e.render);
|
|
1120
1120
|
case g:
|
|
1121
1121
|
return oe(e.type, t, o);
|
|
1122
1122
|
case m: {
|
|
@@ -1137,7 +1137,7 @@ function fr() {
|
|
|
1137
1137
|
} else
|
|
1138
1138
|
We.setExtraStackFrame(null);
|
|
1139
1139
|
}
|
|
1140
|
-
function
|
|
1140
|
+
function vt(e, t, o, s, v) {
|
|
1141
1141
|
{
|
|
1142
1142
|
var y = Function.call.bind(K);
|
|
1143
1143
|
for (var d in e)
|
|
@@ -1156,17 +1156,17 @@ function fr() {
|
|
|
1156
1156
|
}
|
|
1157
1157
|
}
|
|
1158
1158
|
}
|
|
1159
|
-
var
|
|
1159
|
+
var ht = Array.isArray;
|
|
1160
1160
|
function ye(e) {
|
|
1161
|
-
return
|
|
1161
|
+
return ht(e);
|
|
1162
1162
|
}
|
|
1163
|
-
function
|
|
1163
|
+
function gt(e) {
|
|
1164
1164
|
{
|
|
1165
1165
|
var t = typeof Symbol == "function" && Symbol.toStringTag, o = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
1166
1166
|
return o;
|
|
1167
1167
|
}
|
|
1168
1168
|
}
|
|
1169
|
-
function
|
|
1169
|
+
function yt(e) {
|
|
1170
1170
|
try {
|
|
1171
1171
|
return Le(e), !1;
|
|
1172
1172
|
} catch {
|
|
@@ -1177,16 +1177,16 @@ function fr() {
|
|
|
1177
1177
|
return "" + e;
|
|
1178
1178
|
}
|
|
1179
1179
|
function Ue(e) {
|
|
1180
|
-
if (
|
|
1181
|
-
return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
1180
|
+
if (yt(e))
|
|
1181
|
+
return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", gt(e)), Le(e);
|
|
1182
1182
|
}
|
|
1183
|
-
var Ye = W.ReactCurrentOwner,
|
|
1183
|
+
var Ye = W.ReactCurrentOwner, mt = {
|
|
1184
1184
|
key: !0,
|
|
1185
1185
|
ref: !0,
|
|
1186
1186
|
__self: !0,
|
|
1187
1187
|
__source: !0
|
|
1188
1188
|
}, Ve, ze;
|
|
1189
|
-
function
|
|
1189
|
+
function bt(e) {
|
|
1190
1190
|
if (K.call(e, "ref")) {
|
|
1191
1191
|
var t = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
1192
1192
|
if (t && t.isReactWarning)
|
|
@@ -1194,7 +1194,7 @@ function fr() {
|
|
|
1194
1194
|
}
|
|
1195
1195
|
return e.ref !== void 0;
|
|
1196
1196
|
}
|
|
1197
|
-
function
|
|
1197
|
+
function _t(e) {
|
|
1198
1198
|
if (K.call(e, "key")) {
|
|
1199
1199
|
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
1200
1200
|
if (t && t.isReactWarning)
|
|
@@ -1202,10 +1202,10 @@ function fr() {
|
|
|
1202
1202
|
}
|
|
1203
1203
|
return e.key !== void 0;
|
|
1204
1204
|
}
|
|
1205
|
-
function
|
|
1205
|
+
function Rt(e, t) {
|
|
1206
1206
|
typeof e.ref == "string" && Ye.current;
|
|
1207
1207
|
}
|
|
1208
|
-
function
|
|
1208
|
+
function St(e, t) {
|
|
1209
1209
|
{
|
|
1210
1210
|
var o = function() {
|
|
1211
1211
|
Ve || (Ve = !0, j("%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));
|
|
@@ -1216,7 +1216,7 @@ function fr() {
|
|
|
1216
1216
|
});
|
|
1217
1217
|
}
|
|
1218
1218
|
}
|
|
1219
|
-
function
|
|
1219
|
+
function kt(e, t) {
|
|
1220
1220
|
{
|
|
1221
1221
|
var o = function() {
|
|
1222
1222
|
ze || (ze = !0, j("%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));
|
|
@@ -1227,7 +1227,7 @@ function fr() {
|
|
|
1227
1227
|
});
|
|
1228
1228
|
}
|
|
1229
1229
|
}
|
|
1230
|
-
var
|
|
1230
|
+
var xt = function(e, t, o, s, v, y, d) {
|
|
1231
1231
|
var f = {
|
|
1232
1232
|
// This tag allows us to uniquely identify this as a React Element
|
|
1233
1233
|
$$typeof: n,
|
|
@@ -1256,12 +1256,12 @@ function fr() {
|
|
|
1256
1256
|
value: v
|
|
1257
1257
|
}), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
|
|
1258
1258
|
};
|
|
1259
|
-
function
|
|
1259
|
+
function Et(e, t, o, s, v) {
|
|
1260
1260
|
{
|
|
1261
1261
|
var y, d = {}, f = null, O = null;
|
|
1262
|
-
o !== void 0 && (Ue(o), f = "" + o),
|
|
1262
|
+
o !== void 0 && (Ue(o), f = "" + o), _t(t) && (Ue(t.key), f = "" + t.key), bt(t) && (O = t.ref, Rt(t));
|
|
1263
1263
|
for (y in t)
|
|
1264
|
-
K.call(t, y) && !
|
|
1264
|
+
K.call(t, y) && !mt.hasOwnProperty(y) && (d[y] = t[y]);
|
|
1265
1265
|
if (e && e.defaultProps) {
|
|
1266
1266
|
var R = e.defaultProps;
|
|
1267
1267
|
for (y in R)
|
|
@@ -1269,9 +1269,9 @@ function fr() {
|
|
|
1269
1269
|
}
|
|
1270
1270
|
if (f || O) {
|
|
1271
1271
|
var x = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
1272
|
-
f &&
|
|
1272
|
+
f && St(d, x), O && kt(d, x);
|
|
1273
1273
|
}
|
|
1274
|
-
return
|
|
1274
|
+
return xt(e, f, O, v, s, Ye.current, d);
|
|
1275
1275
|
}
|
|
1276
1276
|
}
|
|
1277
1277
|
var me = W.ReactCurrentOwner, qe = W.ReactDebugCurrentFrame;
|
|
@@ -1299,11 +1299,11 @@ Check the render method of \`` + e + "`.";
|
|
|
1299
1299
|
return "";
|
|
1300
1300
|
}
|
|
1301
1301
|
}
|
|
1302
|
-
function
|
|
1302
|
+
function jt(e) {
|
|
1303
1303
|
return "";
|
|
1304
1304
|
}
|
|
1305
1305
|
var Je = {};
|
|
1306
|
-
function
|
|
1306
|
+
function Ot(e) {
|
|
1307
1307
|
{
|
|
1308
1308
|
var t = He();
|
|
1309
1309
|
if (!t) {
|
|
@@ -1320,7 +1320,7 @@ Check the top-level render call using <` + o + ">.");
|
|
|
1320
1320
|
if (!e._store || e._store.validated || e.key != null)
|
|
1321
1321
|
return;
|
|
1322
1322
|
e._store.validated = !0;
|
|
1323
|
-
var o =
|
|
1323
|
+
var o = Ot(t);
|
|
1324
1324
|
if (Je[o])
|
|
1325
1325
|
return;
|
|
1326
1326
|
Je[o] = !0;
|
|
@@ -1347,7 +1347,7 @@ Check the top-level render call using <` + o + ">.");
|
|
|
1347
1347
|
}
|
|
1348
1348
|
}
|
|
1349
1349
|
}
|
|
1350
|
-
function
|
|
1350
|
+
function At(e) {
|
|
1351
1351
|
{
|
|
1352
1352
|
var t = e.type;
|
|
1353
1353
|
if (t == null || typeof t == "string")
|
|
@@ -1363,7 +1363,7 @@ Check the top-level render call using <` + o + ">.");
|
|
|
1363
1363
|
return;
|
|
1364
1364
|
if (o) {
|
|
1365
1365
|
var s = T(t);
|
|
1366
|
-
|
|
1366
|
+
vt(o, e.props, "prop", s, e);
|
|
1367
1367
|
} else if (t.PropTypes !== void 0 && !be) {
|
|
1368
1368
|
be = !0;
|
|
1369
1369
|
var v = T(t);
|
|
@@ -1372,7 +1372,7 @@ Check the top-level render call using <` + o + ">.");
|
|
|
1372
1372
|
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
1373
1373
|
}
|
|
1374
1374
|
}
|
|
1375
|
-
function
|
|
1375
|
+
function Ct(e) {
|
|
1376
1376
|
{
|
|
1377
1377
|
for (var t = Object.keys(e.props), o = 0; o < t.length; o++) {
|
|
1378
1378
|
var s = t[o];
|
|
@@ -1387,37 +1387,37 @@ Check the top-level render call using <` + o + ">.");
|
|
|
1387
1387
|
var Ze = {};
|
|
1388
1388
|
function Xe(e, t, o, s, v, y) {
|
|
1389
1389
|
{
|
|
1390
|
-
var d =
|
|
1390
|
+
var d = N(e);
|
|
1391
1391
|
if (!d) {
|
|
1392
1392
|
var f = "";
|
|
1393
1393
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (f += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
1394
|
-
var O =
|
|
1394
|
+
var O = jt();
|
|
1395
1395
|
O ? f += O : f += He();
|
|
1396
1396
|
var R;
|
|
1397
1397
|
e === null ? R = "null" : ye(e) ? R = "array" : e !== void 0 && e.$$typeof === n ? (R = "<" + (T(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : R = typeof e, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, f);
|
|
1398
1398
|
}
|
|
1399
|
-
var x =
|
|
1399
|
+
var x = Et(e, t, o, v, y);
|
|
1400
1400
|
if (x == null)
|
|
1401
1401
|
return x;
|
|
1402
1402
|
if (d) {
|
|
1403
|
-
var
|
|
1404
|
-
if (
|
|
1403
|
+
var w = t.children;
|
|
1404
|
+
if (w !== void 0)
|
|
1405
1405
|
if (s)
|
|
1406
|
-
if (ye(
|
|
1407
|
-
for (var z = 0; z <
|
|
1408
|
-
Ge(
|
|
1409
|
-
Object.freeze && Object.freeze(
|
|
1406
|
+
if (ye(w)) {
|
|
1407
|
+
for (var z = 0; z < w.length; z++)
|
|
1408
|
+
Ge(w[z], e);
|
|
1409
|
+
Object.freeze && Object.freeze(w);
|
|
1410
1410
|
} else
|
|
1411
1411
|
j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
1412
1412
|
else
|
|
1413
|
-
Ge(
|
|
1413
|
+
Ge(w, e);
|
|
1414
1414
|
}
|
|
1415
1415
|
if (K.call(t, "key")) {
|
|
1416
|
-
var L = T(e),
|
|
1417
|
-
return
|
|
1418
|
-
}), Re =
|
|
1416
|
+
var L = T(e), C = Object.keys(t).filter(function(Bt) {
|
|
1417
|
+
return Bt !== "key";
|
|
1418
|
+
}), Re = C.length > 0 ? "{key: someKey, " + C.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1419
1419
|
if (!Ze[L + Re]) {
|
|
1420
|
-
var Nt =
|
|
1420
|
+
var Nt = C.length > 0 ? "{" + C.join(": ..., ") + ": ...}" : "{}";
|
|
1421
1421
|
j(`A props object containing a "key" prop is being spread into JSX:
|
|
1422
1422
|
let props = %s;
|
|
1423
1423
|
<%s {...props} />
|
|
@@ -1426,25 +1426,25 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1426
1426
|
<%s key={someKey} {...props} />`, Re, L, Nt, L), Ze[L + Re] = !0;
|
|
1427
1427
|
}
|
|
1428
1428
|
}
|
|
1429
|
-
return e ===
|
|
1429
|
+
return e === c ? Ct(x) : At(x), x;
|
|
1430
1430
|
}
|
|
1431
1431
|
}
|
|
1432
1432
|
function Pt(e, t, o) {
|
|
1433
1433
|
return Xe(e, t, o, !0);
|
|
1434
1434
|
}
|
|
1435
|
-
function
|
|
1435
|
+
function wt(e, t, o) {
|
|
1436
1436
|
return Xe(e, t, o, !1);
|
|
1437
1437
|
}
|
|
1438
|
-
var
|
|
1439
|
-
nt.Fragment =
|
|
1438
|
+
var Tt = wt, $t = Pt;
|
|
1439
|
+
nt.Fragment = c, nt.jsx = Tt, nt.jsxs = $t;
|
|
1440
1440
|
}()), nt;
|
|
1441
1441
|
}
|
|
1442
|
-
process.env.NODE_ENV === "production" ?
|
|
1443
|
-
const
|
|
1444
|
-
version:
|
|
1442
|
+
process.env.NODE_ENV === "production" ? fr() : dr();
|
|
1443
|
+
const pr = "0.0.40", er = {
|
|
1444
|
+
version: pr
|
|
1445
1445
|
}, se = {}, H = {
|
|
1446
1446
|
module: "",
|
|
1447
|
-
v:
|
|
1447
|
+
v: er.version,
|
|
1448
1448
|
page: "Main",
|
|
1449
1449
|
auth: "Auth",
|
|
1450
1450
|
STORAGE: "f",
|
|
@@ -1463,17 +1463,17 @@ function je() {
|
|
|
1463
1463
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof self < "u" ? self : typeof global < "u" ? global : {};
|
|
1464
1464
|
}
|
|
1465
1465
|
je().elcrm || (je().elcrm = {});
|
|
1466
|
-
Object.assign(je().elcrm, { router:
|
|
1466
|
+
Object.assign(je().elcrm, { router: er.version });
|
|
1467
1467
|
function te(r) {
|
|
1468
|
-
var n, a,
|
|
1468
|
+
var n, a, c, l;
|
|
1469
1469
|
const p = je();
|
|
1470
1470
|
if (p.ROUTER_PARAMS) {
|
|
1471
1471
|
r.debug || p.ROUTER_PARAMS.debug;
|
|
1472
1472
|
const k = {
|
|
1473
1473
|
page: (n = p.ROUTER_PARAMS) == null ? void 0 : n.page,
|
|
1474
1474
|
module: (a = p.ROUTER_PARAMS) == null ? void 0 : a.module,
|
|
1475
|
-
tab: (
|
|
1476
|
-
id: (
|
|
1475
|
+
tab: (c = p.ROUTER_PARAMS) == null ? void 0 : c.tab,
|
|
1476
|
+
id: (l = p.ROUTER_PARAMS) == null ? void 0 : l.id
|
|
1477
1477
|
};
|
|
1478
1478
|
p.ROUTER_PARAMS = {
|
|
1479
1479
|
...p.ROUTER_PARAMS,
|
|
@@ -1491,7 +1491,7 @@ function te(r) {
|
|
|
1491
1491
|
p.ROUTER_PARAMS = { ...H, ...r, prev: k };
|
|
1492
1492
|
}
|
|
1493
1493
|
}
|
|
1494
|
-
function
|
|
1494
|
+
function A() {
|
|
1495
1495
|
return je().ROUTER_PARAMS || H;
|
|
1496
1496
|
}
|
|
1497
1497
|
function Se(r) {
|
|
@@ -1524,169 +1524,169 @@ var de;
|
|
|
1524
1524
|
te({
|
|
1525
1525
|
id: 0,
|
|
1526
1526
|
tab: "",
|
|
1527
|
-
page: (_ = localStorage.getItem("d")) != null && _.length ?
|
|
1528
|
-
module:
|
|
1527
|
+
page: (_ = localStorage.getItem("d")) != null && _.length ? A().page : A().auth,
|
|
1528
|
+
module: A().module
|
|
1529
1529
|
});
|
|
1530
1530
|
return !0;
|
|
1531
1531
|
}
|
|
1532
1532
|
function a() {
|
|
1533
|
-
se.id = 0, se.tab = "", se.page =
|
|
1533
|
+
se.id = 0, se.tab = "", se.page = A().page, se.module = A().module;
|
|
1534
1534
|
}
|
|
1535
1535
|
r.Reset = a;
|
|
1536
|
-
function
|
|
1537
|
-
module: _ =
|
|
1538
|
-
page: E =
|
|
1539
|
-
auth:
|
|
1540
|
-
debug: M =
|
|
1536
|
+
function c({
|
|
1537
|
+
module: _ = A().module,
|
|
1538
|
+
page: E = A().page,
|
|
1539
|
+
auth: N = A().auth,
|
|
1540
|
+
debug: M = A().debug
|
|
1541
1541
|
}) {
|
|
1542
|
-
te({ page: E, module: _, auth:
|
|
1542
|
+
te({ page: E, module: _, auth: N, debug: M }), n();
|
|
1543
1543
|
}
|
|
1544
|
-
r.Default =
|
|
1545
|
-
function
|
|
1544
|
+
r.Default = c;
|
|
1545
|
+
function l(_) {
|
|
1546
1546
|
let E = (B) => (te({ page: B }), B);
|
|
1547
|
-
const [
|
|
1548
|
-
k() || _ && E(_) ||
|
|
1547
|
+
const [N, M] = F.useState(
|
|
1548
|
+
k() || _ && E(_) || A().page
|
|
1549
1549
|
);
|
|
1550
1550
|
return Se({ page: (B) => {
|
|
1551
1551
|
M(B);
|
|
1552
|
-
} }),
|
|
1552
|
+
} }), N;
|
|
1553
1553
|
}
|
|
1554
|
-
r.usePage =
|
|
1555
|
-
function p(_, E = !0,
|
|
1556
|
-
te({ page: _,
|
|
1557
|
-
|
|
1558
|
-
ue.enCode(
|
|
1554
|
+
r.usePage = l;
|
|
1555
|
+
function p(_, E = !0, N = {}) {
|
|
1556
|
+
te({ page: _, ...N }), sessionStorage.setItem(
|
|
1557
|
+
A().STORAGE,
|
|
1558
|
+
ue.enCode(A())
|
|
1559
1559
|
), E && ie().page(_);
|
|
1560
1560
|
}
|
|
1561
1561
|
r.setPage = p;
|
|
1562
1562
|
function k() {
|
|
1563
|
-
return
|
|
1563
|
+
return A().page;
|
|
1564
1564
|
}
|
|
1565
1565
|
r.getPage = k;
|
|
1566
1566
|
function b(_) {
|
|
1567
|
-
return
|
|
1567
|
+
return A().page === _;
|
|
1568
1568
|
}
|
|
1569
1569
|
r.isPage = b;
|
|
1570
1570
|
function u() {
|
|
1571
|
-
return
|
|
1571
|
+
return A().prev;
|
|
1572
1572
|
}
|
|
1573
1573
|
r.getBack = u;
|
|
1574
1574
|
function S(_, E) {
|
|
1575
|
-
const [
|
|
1576
|
-
g() || _ ||
|
|
1575
|
+
const [N, M] = F.useState(
|
|
1576
|
+
g() || _ || A().module
|
|
1577
1577
|
);
|
|
1578
|
-
return Se({ module: M }),
|
|
1578
|
+
return Se({ module: M }), N;
|
|
1579
1579
|
}
|
|
1580
1580
|
r.useModule = S;
|
|
1581
1581
|
function h(_, E = !0) {
|
|
1582
1582
|
te({ module: _ }), sessionStorage.setItem(
|
|
1583
|
-
|
|
1584
|
-
ue.enCode(
|
|
1583
|
+
A().STORAGE,
|
|
1584
|
+
ue.enCode(A())
|
|
1585
1585
|
), E && ie().module(_);
|
|
1586
1586
|
}
|
|
1587
1587
|
r.setModule = h;
|
|
1588
1588
|
function g() {
|
|
1589
|
-
return
|
|
1589
|
+
return A().module || "";
|
|
1590
1590
|
}
|
|
1591
1591
|
r.getModule = g;
|
|
1592
1592
|
function m(_) {
|
|
1593
|
-
return
|
|
1593
|
+
return A().module === _;
|
|
1594
1594
|
}
|
|
1595
1595
|
r.isModule = m;
|
|
1596
|
-
function
|
|
1596
|
+
function P(_, E) {
|
|
1597
1597
|
if (typeof _ != "function") {
|
|
1598
|
-
const [
|
|
1598
|
+
const [N, M] = F.useState(!E), [B, T] = F.useState(_ || pe());
|
|
1599
1599
|
return Se({ tabs: T }), E && F.useEffect(() => {
|
|
1600
1600
|
M(!0);
|
|
1601
|
-
}, []), [B,
|
|
1601
|
+
}, []), [B, N];
|
|
1602
1602
|
} else
|
|
1603
1603
|
Se({ tabs: _ });
|
|
1604
1604
|
}
|
|
1605
|
-
r.useTabs =
|
|
1605
|
+
r.useTabs = P;
|
|
1606
1606
|
function I(_) {
|
|
1607
1607
|
let E = (B) => (te({ tab: B }), B);
|
|
1608
|
-
const [
|
|
1609
|
-
pe() || _ && E(_) ||
|
|
1608
|
+
const [N, M] = F.useState(
|
|
1609
|
+
pe() || _ && E(_) || A().tab
|
|
1610
1610
|
);
|
|
1611
1611
|
return Se({ tabs: (B) => {
|
|
1612
1612
|
M(B);
|
|
1613
|
-
} }),
|
|
1613
|
+
} }), N;
|
|
1614
1614
|
}
|
|
1615
1615
|
r.useTab = I;
|
|
1616
|
-
async function
|
|
1616
|
+
async function Pe(_, E = !0) {
|
|
1617
1617
|
te({ tab: _ }), sessionStorage.setItem(
|
|
1618
|
-
|
|
1619
|
-
ue.enCode(
|
|
1618
|
+
A().STORAGE,
|
|
1619
|
+
ue.enCode(A())
|
|
1620
1620
|
), E && (ie().tabs && ie().tabs(_));
|
|
1621
1621
|
}
|
|
1622
|
-
r.setTabs =
|
|
1622
|
+
r.setTabs = Pe;
|
|
1623
1623
|
function pe() {
|
|
1624
|
-
return
|
|
1624
|
+
return A().tab;
|
|
1625
1625
|
}
|
|
1626
1626
|
r.getTabs = pe;
|
|
1627
1627
|
function W(_) {
|
|
1628
|
-
return
|
|
1628
|
+
return A().tab === _;
|
|
1629
1629
|
}
|
|
1630
1630
|
r.isTabs = W;
|
|
1631
1631
|
function j(_) {
|
|
1632
1632
|
if (typeof _ != "function") {
|
|
1633
|
-
const [E,
|
|
1633
|
+
const [E, N] = F.useState(_ || Oe());
|
|
1634
1634
|
return Se({ id: (M) => {
|
|
1635
|
-
|
|
1635
|
+
N(M);
|
|
1636
1636
|
} }), E;
|
|
1637
1637
|
} else
|
|
1638
1638
|
Se({ id: _ });
|
|
1639
1639
|
}
|
|
1640
1640
|
r.useId = j;
|
|
1641
|
-
function
|
|
1641
|
+
function we(_) {
|
|
1642
1642
|
}
|
|
1643
|
-
r.subId =
|
|
1643
|
+
r.subId = we;
|
|
1644
1644
|
async function Te(_, E = !0) {
|
|
1645
1645
|
te({ id: _ }), sessionStorage.setItem(
|
|
1646
|
-
|
|
1647
|
-
ue.enCode(
|
|
1646
|
+
A().STORAGE,
|
|
1647
|
+
ue.enCode(A())
|
|
1648
1648
|
), E && ie().id(_);
|
|
1649
1649
|
}
|
|
1650
1650
|
r.setId = Te;
|
|
1651
1651
|
function Oe() {
|
|
1652
|
-
return
|
|
1652
|
+
return A().id;
|
|
1653
1653
|
}
|
|
1654
1654
|
r.getId = Oe;
|
|
1655
|
-
function
|
|
1656
|
-
return Number(
|
|
1655
|
+
function $e(_) {
|
|
1656
|
+
return Number(A().id) === _;
|
|
1657
1657
|
}
|
|
1658
|
-
r.isId =
|
|
1659
|
-
async function
|
|
1660
|
-
var E,
|
|
1658
|
+
r.isId = $e;
|
|
1659
|
+
async function Ne(_) {
|
|
1660
|
+
var E, N, M, B, T, D, Y, ce;
|
|
1661
1661
|
const { page: Z, module: X, tab: Q, id: ee } = _;
|
|
1662
|
-
Z !== void 0 && (se.page = Z), X !== void 0 && (se.module = X), Q !== void 0 && (se.tab = Q), ee !== void 0 && (se.id = ee), te({ ...se }), ee !== void 0 && ((
|
|
1663
|
-
|
|
1664
|
-
ue.enCode(
|
|
1662
|
+
Z !== void 0 && (se.page = Z), X !== void 0 && (se.module = X), Q !== void 0 && (se.tab = Q), ee !== void 0 && (se.id = ee), te({ ...se }), ee !== void 0 && ((N = (E = ie()).id) == null || N.call(E, ee)), Q !== void 0 && ((B = (M = ie()).tabs) == null || B.call(M, Q)), X !== void 0 && ((D = (T = ie()).module) == null || D.call(T, X)), Z !== void 0 && ((ce = (Y = ie()).page) == null || ce.call(Y, Z)), sessionStorage.setItem(
|
|
1663
|
+
A().STORAGE,
|
|
1664
|
+
ue.enCode(A())
|
|
1665
1665
|
);
|
|
1666
1666
|
}
|
|
1667
|
-
r.navigate =
|
|
1667
|
+
r.navigate = Ne;
|
|
1668
1668
|
})(de || (de = {}));
|
|
1669
1669
|
let it = {};
|
|
1670
|
-
function
|
|
1670
|
+
function vr() {
|
|
1671
1671
|
const [r, n] = F.useState([]);
|
|
1672
1672
|
return it.set = (a) => {
|
|
1673
1673
|
n([...r, a]);
|
|
1674
1674
|
}, it.del = (a) => {
|
|
1675
|
-
r.forEach((
|
|
1676
|
-
|
|
1675
|
+
r.forEach((c, l) => {
|
|
1676
|
+
c.key === a && r.splice(l, 1);
|
|
1677
1677
|
}), n(r);
|
|
1678
1678
|
}, r.length === 0 ? /* @__PURE__ */ i.jsx(i.Fragment, {}) : /* @__PURE__ */ i.jsx("div", { className: "notice", children: r.map((a) => a.item) });
|
|
1679
1679
|
}
|
|
1680
|
-
function
|
|
1680
|
+
function hr(r) {
|
|
1681
1681
|
let n = (/* @__PURE__ */ new Date()).getTime();
|
|
1682
|
-
r.key = n, it.set({ item: /* @__PURE__ */ i.jsx(
|
|
1682
|
+
r.key = n, it.set({ item: /* @__PURE__ */ i.jsx(gr, { data: r }, n), key: n });
|
|
1683
1683
|
}
|
|
1684
|
-
function
|
|
1684
|
+
function gr(r) {
|
|
1685
1685
|
const n = r.data;
|
|
1686
|
-
let [a] = F.useState("show"), [
|
|
1686
|
+
let [a] = F.useState("show"), [c, l] = F.useState(!1);
|
|
1687
1687
|
F.useEffect(() => {
|
|
1688
1688
|
setTimeout(function() {
|
|
1689
|
-
|
|
1689
|
+
l(!0), it.del(n.key);
|
|
1690
1690
|
}, 5e3);
|
|
1691
1691
|
}, [n.key]);
|
|
1692
1692
|
let p;
|
|
@@ -1704,7 +1704,7 @@ function hr(r) {
|
|
|
1704
1704
|
p = "icon fa fa-exclamation-circle";
|
|
1705
1705
|
break;
|
|
1706
1706
|
}
|
|
1707
|
-
return /* @__PURE__ */ i.jsx(i.Fragment, { children:
|
|
1707
|
+
return /* @__PURE__ */ i.jsx(i.Fragment, { children: c ? /* @__PURE__ */ i.jsx(i.Fragment, {}) : /* @__PURE__ */ i.jsxs(
|
|
1708
1708
|
"div",
|
|
1709
1709
|
{
|
|
1710
1710
|
className: "item " + n.type + ` ${n.thema !== void 0 ? " thema" : ""}`,
|
|
@@ -1729,8 +1729,8 @@ function hr(r) {
|
|
|
1729
1729
|
) });
|
|
1730
1730
|
}
|
|
1731
1731
|
let xe = {
|
|
1732
|
-
Send:
|
|
1733
|
-
Init:
|
|
1732
|
+
Send: hr,
|
|
1733
|
+
Init: vr
|
|
1734
1734
|
};
|
|
1735
1735
|
const Ee = {
|
|
1736
1736
|
is: !1,
|
|
@@ -1781,24 +1781,24 @@ G.users = {
|
|
|
1781
1781
|
"--tg-theme-button-text-color": "#000000",
|
|
1782
1782
|
"--tg-theme-secondary-bg-color": "#000000"
|
|
1783
1783
|
};
|
|
1784
|
-
const
|
|
1784
|
+
const yr = () => {
|
|
1785
1785
|
if (location.hostname === "localhost") {
|
|
1786
|
-
let [r, n] = J(!1), [a,
|
|
1787
|
-
Ee.is = !0, Ee.MainButton.set = n, Ee.BackButton.set =
|
|
1788
|
-
G[
|
|
1789
|
-
for (let m in G[
|
|
1786
|
+
let [r, n] = J(!1), [a, c] = J(!1), [l, p] = J("dark"), [k, b] = J(!1), [u, S] = J(!1);
|
|
1787
|
+
Ee.is = !0, Ee.MainButton.set = n, Ee.BackButton.set = c, fe(() => {
|
|
1788
|
+
G[l]["--tg-theme-bg-color-alpha"] = G[l]["--tg-theme-bg-color"] + "b3", G[l]["--tg-theme-secondary-bg-color-alpha"] = G[l]["--tg-theme-secondary-bg-color"] + "d3";
|
|
1789
|
+
for (let m in G[l])
|
|
1790
1790
|
document.documentElement.style.setProperty(
|
|
1791
1791
|
m,
|
|
1792
|
-
G[
|
|
1792
|
+
G[l][m]
|
|
1793
1793
|
);
|
|
1794
|
-
|
|
1794
|
+
Ce.safeAreaInset.bottom === 0 && document.documentElement.style.setProperty(
|
|
1795
1795
|
"--tg-safe-area-inset-bottom",
|
|
1796
1796
|
"16px"
|
|
1797
1797
|
);
|
|
1798
1798
|
}, []);
|
|
1799
1799
|
let h = (m) => {
|
|
1800
|
-
for (let
|
|
1801
|
-
document.documentElement.style.setProperty(
|
|
1800
|
+
for (let P in G[m])
|
|
1801
|
+
document.documentElement.style.setProperty(P, G[m][P]);
|
|
1802
1802
|
p(m), b(!1);
|
|
1803
1803
|
}, g = () => {
|
|
1804
1804
|
b(!1), S(!0);
|
|
@@ -1863,22 +1863,22 @@ const gr = () => {
|
|
|
1863
1863
|
/* @__PURE__ */ i.jsx("li", { children: /* @__PURE__ */ i.jsx("button", { onClick: () => b(!k), children: "Closed" }) })
|
|
1864
1864
|
] })
|
|
1865
1865
|
] }) : "",
|
|
1866
|
-
u ? /* @__PURE__ */ i.jsx(
|
|
1866
|
+
u ? /* @__PURE__ */ i.jsx(mr, { setAuthorization: S }) : ""
|
|
1867
1867
|
] });
|
|
1868
1868
|
} else
|
|
1869
1869
|
return fe(() => {
|
|
1870
1870
|
document.documentElement.style.setProperty(
|
|
1871
1871
|
"--tg-theme-secondary-bg-color-alpha",
|
|
1872
|
-
|
|
1872
|
+
Ce.themeParams.secondary_bg_color + "d3"
|
|
1873
1873
|
), document.documentElement.style.setProperty(
|
|
1874
1874
|
"--tg-theme-bg-color-alpha",
|
|
1875
|
-
|
|
1876
|
-
),
|
|
1875
|
+
Ce.themeParams.bg_color + "b3"
|
|
1876
|
+
), Ce.safeAreaInset.bottom === 0 && document.documentElement.style.setProperty(
|
|
1877
1877
|
"--tg-safe-area-inset-bottom",
|
|
1878
1878
|
"16px"
|
|
1879
1879
|
);
|
|
1880
1880
|
}, []), /* @__PURE__ */ i.jsx(i.Fragment, { children: /* @__PURE__ */ i.jsx(xe.Init, {}) });
|
|
1881
|
-
},
|
|
1881
|
+
}, mr = ({ setAuthorization: r }) => {
|
|
1882
1882
|
let n = {}, a = () => {
|
|
1883
1883
|
localStorage.setItem("auth", n);
|
|
1884
1884
|
};
|
|
@@ -1886,43 +1886,43 @@ const gr = () => {
|
|
|
1886
1886
|
/* @__PURE__ */ i.jsx("fieldset", {}),
|
|
1887
1887
|
/* @__PURE__ */ i.jsx("div", { onClick: a, children: " Сохранить " })
|
|
1888
1888
|
] }) });
|
|
1889
|
-
},
|
|
1890
|
-
p:
|
|
1891
|
-
s:
|
|
1892
|
-
},
|
|
1889
|
+
}, br = "_p_12hh1_1", _r = "_s_12hh1_17", qt = {
|
|
1890
|
+
p: br,
|
|
1891
|
+
s: _r
|
|
1892
|
+
}, Rr = ({ className: r, children: n, isScroll: a = !0 }) => /* @__PURE__ */ i.jsx(
|
|
1893
1893
|
"div",
|
|
1894
1894
|
{
|
|
1895
|
-
className: [
|
|
1895
|
+
className: [qt.p, a && qt.s, r].filter((c) => c !== void 0).join(" "),
|
|
1896
1896
|
children: n
|
|
1897
1897
|
}
|
|
1898
|
-
),
|
|
1899
|
-
l:
|
|
1900
|
-
},
|
|
1898
|
+
), Sr = "_l_gfyud_1", kr = {
|
|
1899
|
+
l: Sr
|
|
1900
|
+
}, xr = ({ children: r, className: n }) => /* @__PURE__ */ i.jsx(
|
|
1901
1901
|
"div",
|
|
1902
1902
|
{
|
|
1903
|
-
className: [
|
|
1903
|
+
className: [kr.l, n].filter((a) => a !== void 0).join(" "),
|
|
1904
1904
|
children: r
|
|
1905
1905
|
}
|
|
1906
|
-
),
|
|
1907
|
-
m:
|
|
1908
|
-
g:
|
|
1909
|
-
i:
|
|
1910
|
-
c:
|
|
1911
|
-
l:
|
|
1906
|
+
), Er = "_m_ppm7n_2", jr = "_g_ppm7n_10", Or = "_i_ppm7n_18", Ar = "_c_ppm7n_35", Cr = "_l_ppm7n_42", Pr = "_a_ppm7n_57", wr = "_n_ppm7n_62", ke = {
|
|
1907
|
+
m: Er,
|
|
1908
|
+
g: jr,
|
|
1909
|
+
i: Or,
|
|
1910
|
+
c: Ar,
|
|
1911
|
+
l: Cr,
|
|
1912
1912
|
a: Pr,
|
|
1913
|
-
n:
|
|
1914
|
-
},
|
|
1915
|
-
const n = (
|
|
1916
|
-
de.setPage(
|
|
1917
|
-
}, a = (
|
|
1918
|
-
|
|
1913
|
+
n: wr
|
|
1914
|
+
}, Tr = ({ items: r }) => {
|
|
1915
|
+
const n = (c) => {
|
|
1916
|
+
de.setPage(c);
|
|
1917
|
+
}, a = (c) => {
|
|
1918
|
+
Ce.openTelegramLink(c);
|
|
1919
1919
|
};
|
|
1920
|
-
return /* @__PURE__ */ i.jsx("div", { className: ke.m, children: r.map((
|
|
1920
|
+
return /* @__PURE__ */ i.jsx("div", { className: ke.m, children: r.map((c) => /* @__PURE__ */ i.jsx("div", { className: ke.g, children: c.items.map((l, p) => /* @__PURE__ */ i.jsxs(
|
|
1921
1921
|
"div",
|
|
1922
1922
|
{
|
|
1923
1923
|
className: ke.i,
|
|
1924
1924
|
onClick: () => {
|
|
1925
|
-
|
|
1925
|
+
l.link && a(l.link), l.page && n(l.page), l.callback && l.callback();
|
|
1926
1926
|
},
|
|
1927
1927
|
children: [
|
|
1928
1928
|
/* @__PURE__ */ i.jsxs("div", { className: ke.c, children: [
|
|
@@ -1930,34 +1930,34 @@ const gr = () => {
|
|
|
1930
1930
|
"span",
|
|
1931
1931
|
{
|
|
1932
1932
|
className: ke.l,
|
|
1933
|
-
style: { background:
|
|
1934
|
-
children:
|
|
1933
|
+
style: { background: l.color },
|
|
1934
|
+
children: l.icon
|
|
1935
1935
|
}
|
|
1936
1936
|
),
|
|
1937
|
-
|
|
1938
|
-
|
|
1937
|
+
l.title,
|
|
1938
|
+
l.count && /* @__PURE__ */ i.jsx("span", { className: ke.n, children: l.count })
|
|
1939
1939
|
] }),
|
|
1940
1940
|
/* @__PURE__ */ i.jsx("span", { className: ke.a, children: "›" })
|
|
1941
1941
|
]
|
|
1942
1942
|
},
|
|
1943
1943
|
p
|
|
1944
|
-
)) },
|
|
1945
|
-
},
|
|
1946
|
-
o:
|
|
1944
|
+
)) }, c.id)) });
|
|
1945
|
+
}, $r = "_o_8ho2f_3", Nr = "_m_8ho2f_14", Br = "_l_8ho2f_28", Ir = "_r_8ho2f_33", Mr = "_x_8ho2f_38", Dr = "_h_8ho2f_42", Fr = "_c_8ho2f_57", Wr = "_u_8ho2f_72", le = {
|
|
1946
|
+
o: $r,
|
|
1947
1947
|
m: Nr,
|
|
1948
|
-
l:
|
|
1949
|
-
r:
|
|
1950
|
-
x:
|
|
1951
|
-
h:
|
|
1952
|
-
c:
|
|
1953
|
-
u:
|
|
1948
|
+
l: Br,
|
|
1949
|
+
r: Ir,
|
|
1950
|
+
x: Mr,
|
|
1951
|
+
h: Dr,
|
|
1952
|
+
c: Fr,
|
|
1953
|
+
u: Wr
|
|
1954
1954
|
};
|
|
1955
|
-
function
|
|
1955
|
+
function Lr({
|
|
1956
1956
|
children: r,
|
|
1957
1957
|
icon: n,
|
|
1958
1958
|
iconBadge: a = 0,
|
|
1959
|
-
title:
|
|
1960
|
-
className:
|
|
1959
|
+
title: c,
|
|
1960
|
+
className: l,
|
|
1961
1961
|
view: p = "list",
|
|
1962
1962
|
position: k = "left"
|
|
1963
1963
|
}) {
|
|
@@ -1975,15 +1975,15 @@ function Wr({
|
|
|
1975
1975
|
/* @__PURE__ */ i.jsxs(
|
|
1976
1976
|
"div",
|
|
1977
1977
|
{
|
|
1978
|
-
className:
|
|
1978
|
+
className: lt(
|
|
1979
1979
|
le.m,
|
|
1980
1980
|
k === "left" ? le.l : le.r,
|
|
1981
1981
|
b && le.x,
|
|
1982
|
-
|
|
1982
|
+
l
|
|
1983
1983
|
),
|
|
1984
1984
|
children: [
|
|
1985
1985
|
/* @__PURE__ */ i.jsxs("div", { className: le.h, children: [
|
|
1986
|
-
|
|
1986
|
+
c && /* @__PURE__ */ i.jsx("h3", { className: le.t, children: c }),
|
|
1987
1987
|
/* @__PURE__ */ i.jsxs(
|
|
1988
1988
|
"svg",
|
|
1989
1989
|
{
|
|
@@ -2020,24 +2020,24 @@ function Wr({
|
|
|
2020
2020
|
children: n
|
|
2021
2021
|
}
|
|
2022
2022
|
),
|
|
2023
|
-
S &&
|
|
2023
|
+
S && rr(g, S)
|
|
2024
2024
|
] });
|
|
2025
2025
|
}
|
|
2026
2026
|
let rt = () => {
|
|
2027
2027
|
};
|
|
2028
|
-
const
|
|
2028
|
+
const tr = ({
|
|
2029
2029
|
children: r,
|
|
2030
2030
|
title: n,
|
|
2031
2031
|
isOverlay: a = !0,
|
|
2032
|
-
footer:
|
|
2033
|
-
className:
|
|
2032
|
+
footer: c = !0,
|
|
2033
|
+
className: l,
|
|
2034
2034
|
onOpen: p
|
|
2035
2035
|
}) => {
|
|
2036
2036
|
const [k, b] = F.useState(!1);
|
|
2037
2037
|
return rt = () => {
|
|
2038
2038
|
b(!0), setTimeout(() => {
|
|
2039
2039
|
var u;
|
|
2040
|
-
p == null || p(!1), (u =
|
|
2040
|
+
p == null || p(!1), (u = Ae == null ? void 0 : Ae.onClose) == null || u.call(Ae);
|
|
2041
2041
|
}, 300);
|
|
2042
2042
|
}, /* @__PURE__ */ i.jsx(
|
|
2043
2043
|
"div",
|
|
@@ -2047,7 +2047,7 @@ const er = ({
|
|
|
2047
2047
|
children: /* @__PURE__ */ i.jsxs(
|
|
2048
2048
|
"div",
|
|
2049
2049
|
{
|
|
2050
|
-
className: `footer-menu-popup-book ${k ? "closing" : ""} ${
|
|
2050
|
+
className: `footer-menu-popup-book ${k ? "closing" : ""} ${l || ""} ${c ? "footer" : ""}`,
|
|
2051
2051
|
onClick: (u) => u.stopPropagation(),
|
|
2052
2052
|
children: [
|
|
2053
2053
|
/* @__PURE__ */ i.jsxs("div", { className: "footer-menu-header", children: [
|
|
@@ -2067,40 +2067,40 @@ const er = ({
|
|
|
2067
2067
|
)
|
|
2068
2068
|
}
|
|
2069
2069
|
);
|
|
2070
|
-
},
|
|
2071
|
-
h:
|
|
2072
|
-
row:
|
|
2073
|
-
column:
|
|
2074
|
-
badge:
|
|
2075
|
-
},
|
|
2070
|
+
}, Ur = "_h_1ffr7_1", Yr = "_row_1ffr7_20", Vr = "_column_1ffr7_23", zr = "_badge_1ffr7_36", It = {
|
|
2071
|
+
h: Ur,
|
|
2072
|
+
row: Yr,
|
|
2073
|
+
column: Vr,
|
|
2074
|
+
badge: zr
|
|
2075
|
+
}, Ae = [], Ht = (r, n) => r.findIndex((a) => (a == null ? void 0 : a.page) === n), qr = ({
|
|
2076
2076
|
actions: r,
|
|
2077
2077
|
children: n,
|
|
2078
2078
|
className: a,
|
|
2079
|
-
toHide:
|
|
2080
|
-
page:
|
|
2079
|
+
toHide: c = !1,
|
|
2080
|
+
page: l,
|
|
2081
2081
|
onPageChange: p,
|
|
2082
2082
|
direction: k = "row"
|
|
2083
2083
|
}) => {
|
|
2084
2084
|
const [b, u] = F.useState(null), [S, h] = F.useState(
|
|
2085
|
-
|
|
2085
|
+
l ? Ht(r || [], l) : 0
|
|
2086
2086
|
);
|
|
2087
|
-
return
|
|
2088
|
-
u(null), h(
|
|
2087
|
+
return Ae.onClose = () => {
|
|
2088
|
+
u(null), h(l ? Ht(r || [], l) : 0);
|
|
2089
2089
|
}, fe(() => {
|
|
2090
|
-
if (!
|
|
2090
|
+
if (!c)
|
|
2091
2091
|
return;
|
|
2092
2092
|
const g = document.querySelectorAll("[contenteditable]"), m = () => {
|
|
2093
2093
|
const I = document.querySelector("footer");
|
|
2094
2094
|
I && (I.style.display = "flex");
|
|
2095
|
-
},
|
|
2095
|
+
}, P = () => {
|
|
2096
2096
|
const I = document.querySelector("footer");
|
|
2097
2097
|
I && (I.style.display = "none");
|
|
2098
2098
|
};
|
|
2099
2099
|
return g.forEach((I) => {
|
|
2100
|
-
I.addEventListener("focus",
|
|
2100
|
+
I.addEventListener("focus", P, !0), I.addEventListener("blur", m, !0);
|
|
2101
2101
|
}), () => {
|
|
2102
2102
|
g.forEach((I) => {
|
|
2103
|
-
I.removeEventListener("focus",
|
|
2103
|
+
I.removeEventListener("focus", P, !0), I.removeEventListener("blur", m, !0);
|
|
2104
2104
|
});
|
|
2105
2105
|
};
|
|
2106
2106
|
}, []), /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
@@ -2108,7 +2108,7 @@ const er = ({
|
|
|
2108
2108
|
/* @__PURE__ */ i.jsxs(
|
|
2109
2109
|
"footer",
|
|
2110
2110
|
{
|
|
2111
|
-
className: `${
|
|
2111
|
+
className: `${It.h} ${It[k]} ${a} `,
|
|
2112
2112
|
children: [
|
|
2113
2113
|
n,
|
|
2114
2114
|
r && r.map((g, m) => /* @__PURE__ */ i.jsxs(
|
|
@@ -2120,7 +2120,7 @@ const er = ({
|
|
|
2120
2120
|
},
|
|
2121
2121
|
children: [
|
|
2122
2122
|
g.icon,
|
|
2123
|
-
g.badge && /* @__PURE__ */ i.jsx("div", { className:
|
|
2123
|
+
g.badge && /* @__PURE__ */ i.jsx("div", { className: It.badge, children: g.badge })
|
|
2124
2124
|
]
|
|
2125
2125
|
},
|
|
2126
2126
|
m
|
|
@@ -2129,34 +2129,34 @@ const er = ({
|
|
|
2129
2129
|
}
|
|
2130
2130
|
)
|
|
2131
2131
|
] });
|
|
2132
|
-
},
|
|
2133
|
-
w:
|
|
2134
|
-
v:
|
|
2135
|
-
s:
|
|
2136
|
-
n:
|
|
2137
|
-
},
|
|
2138
|
-
function
|
|
2132
|
+
}, Hr = "_w_yx04q_3", Jr = "_v_yx04q_24", Kr = "_s_yx04q_34", Gr = "_n_yx04q_38", ot = {
|
|
2133
|
+
w: Hr,
|
|
2134
|
+
v: Jr,
|
|
2135
|
+
s: Kr,
|
|
2136
|
+
n: Gr
|
|
2137
|
+
}, Wt = {};
|
|
2138
|
+
function Zr({
|
|
2139
2139
|
children: r,
|
|
2140
2140
|
name: n,
|
|
2141
2141
|
onClose: a,
|
|
2142
|
-
isOpen:
|
|
2143
|
-
isScroll:
|
|
2142
|
+
isOpen: c,
|
|
2143
|
+
isScroll: l = !0,
|
|
2144
2144
|
nextBackButton: p
|
|
2145
2145
|
}) {
|
|
2146
2146
|
const [k, b] = J(!1);
|
|
2147
2147
|
return fe(() => {
|
|
2148
|
-
if (!
|
|
2149
|
-
const u = p === void 0 ?
|
|
2148
|
+
if (!c) return;
|
|
2149
|
+
const u = p === void 0 ? sn().pop() : p, S = () => {
|
|
2150
2150
|
b(!1), setTimeout(() => {
|
|
2151
|
-
|
|
2151
|
+
Kt(u || !1), a == null || a();
|
|
2152
2152
|
}, 300);
|
|
2153
2153
|
};
|
|
2154
|
-
|
|
2154
|
+
Wt[n] = {
|
|
2155
2155
|
onClose: S,
|
|
2156
2156
|
onOpen: () => {
|
|
2157
2157
|
b(!0);
|
|
2158
2158
|
}
|
|
2159
|
-
},
|
|
2159
|
+
}, Kt({
|
|
2160
2160
|
callback: S
|
|
2161
2161
|
});
|
|
2162
2162
|
const h = setTimeout(() => {
|
|
@@ -2165,13 +2165,13 @@ function Gr({
|
|
|
2165
2165
|
return () => {
|
|
2166
2166
|
clearTimeout(h);
|
|
2167
2167
|
};
|
|
2168
|
-
}, [
|
|
2168
|
+
}, [c]), c ? /* @__PURE__ */ i.jsxs(
|
|
2169
2169
|
"div",
|
|
2170
2170
|
{
|
|
2171
|
-
className:
|
|
2171
|
+
className: lt(
|
|
2172
2172
|
ot.w,
|
|
2173
2173
|
k && ot.v,
|
|
2174
|
-
|
|
2174
|
+
l && ot.s
|
|
2175
2175
|
),
|
|
2176
2176
|
children: [
|
|
2177
2177
|
/* @__PURE__ */ i.jsx("div", { className: ot.n }),
|
|
@@ -2180,28 +2180,28 @@ function Gr({
|
|
|
2180
2180
|
}
|
|
2181
2181
|
) : "";
|
|
2182
2182
|
}
|
|
2183
|
-
const
|
|
2184
|
-
var a,
|
|
2185
|
-
n ? (a =
|
|
2186
|
-
},
|
|
2187
|
-
s:
|
|
2188
|
-
n:
|
|
2183
|
+
const Xr = (r, n) => {
|
|
2184
|
+
var a, c;
|
|
2185
|
+
n ? (a = Wt[r]) == null || a.onOpen() : (c = Wt[r]) == null || c.onClose();
|
|
2186
|
+
}, Qr = "_s_10r8v_3", en = "_n_10r8v_13", Jt = {
|
|
2187
|
+
s: Qr,
|
|
2188
|
+
n: en
|
|
2189
2189
|
};
|
|
2190
|
-
function
|
|
2190
|
+
function tn({
|
|
2191
2191
|
className: r,
|
|
2192
2192
|
children: n,
|
|
2193
2193
|
onScrollEnd: a,
|
|
2194
|
-
offset:
|
|
2195
|
-
isLoading:
|
|
2194
|
+
offset: c = 100,
|
|
2195
|
+
isLoading: l,
|
|
2196
2196
|
isScrollBar: p = !1
|
|
2197
2197
|
}) {
|
|
2198
|
-
const [k, b] = J(
|
|
2199
|
-
const { scrollTop: g, scrollHeight: m, clientHeight:
|
|
2200
|
-
g +
|
|
2198
|
+
const [k, b] = J(l || !1), u = (h) => {
|
|
2199
|
+
const { scrollTop: g, scrollHeight: m, clientHeight: P } = h.currentTarget;
|
|
2200
|
+
g + P >= m - c && !k && (b(!0), a == null || a());
|
|
2201
2201
|
};
|
|
2202
2202
|
fe(() => {
|
|
2203
|
-
b(
|
|
2204
|
-
}, [
|
|
2203
|
+
b(l || !1);
|
|
2204
|
+
}, [l]);
|
|
2205
2205
|
let S = {
|
|
2206
2206
|
onScroll: u
|
|
2207
2207
|
};
|
|
@@ -2209,32 +2209,49 @@ function en({
|
|
|
2209
2209
|
"div",
|
|
2210
2210
|
{
|
|
2211
2211
|
...S,
|
|
2212
|
-
className:
|
|
2212
|
+
className: lt(Jt.s, !p && Jt.n, r),
|
|
2213
2213
|
children: n
|
|
2214
2214
|
}
|
|
2215
2215
|
);
|
|
2216
2216
|
}
|
|
2217
|
+
const rn = "_a_ohhaz_1", nn = "_l_ohhaz_12", on = "_r_ohhaz_15", Mt = {
|
|
2218
|
+
a: rn,
|
|
2219
|
+
l: nn,
|
|
2220
|
+
r: on
|
|
2221
|
+
};
|
|
2222
|
+
function an({
|
|
2223
|
+
children: r,
|
|
2224
|
+
className: n,
|
|
2225
|
+
position: a = "center",
|
|
2226
|
+
title: c
|
|
2227
|
+
}) {
|
|
2228
|
+
let l = "";
|
|
2229
|
+
return a === "left" ? l = Mt.l : a === "right" && (l = Mt.r), /* @__PURE__ */ i.jsxs("div", { className: lt(Mt.a, l, n), children: [
|
|
2230
|
+
r,
|
|
2231
|
+
c && /* @__PURE__ */ i.jsx("b", { children: c })
|
|
2232
|
+
] });
|
|
2233
|
+
}
|
|
2217
2234
|
const U = {
|
|
2218
2235
|
state: [!1],
|
|
2219
2236
|
listen: [],
|
|
2220
2237
|
prev: {},
|
|
2221
2238
|
router: (r) => {
|
|
2222
|
-
r === !1 ? (
|
|
2239
|
+
r === !1 ? ($.WebApp.BackButton.isVisible = !1, $.WebApp.BackButton.offClick(U.listen[0]), U.listen.shift(), U.state.length !== 1 && U.state.pop()) : ($.WebApp.BackButton.isVisible = !0, $.WebApp.BackButton.offClick(U.listen[0]), U.listen.shift(), U.listen.push(() => {
|
|
2223
2240
|
var a;
|
|
2224
2241
|
let n = U.state.pop();
|
|
2225
2242
|
U.prev = de.getPage(), n.page !== void 0 ? de.setPage(n.page) : (a = n.callback) == null || a.call(n);
|
|
2226
|
-
}),
|
|
2243
|
+
}), Ce.BackButton.onClick(U.listen[0]));
|
|
2227
2244
|
}
|
|
2228
|
-
},
|
|
2229
|
-
var
|
|
2245
|
+
}, lt = (...r) => r.filter((n) => n !== void 0 && n !== !1 && n !== null && n !== "").join(" ");
|
|
2246
|
+
var $;
|
|
2230
2247
|
((r) => {
|
|
2231
2248
|
r.WebApp = window.Telegram.WebApp, r.getUser = () => {
|
|
2232
2249
|
var n;
|
|
2233
2250
|
return ((n = r.WebApp.initDataUnsafe) == null ? void 0 : n.user) === void 0 ? {} : r.WebApp.initDataUnsafe;
|
|
2234
2251
|
}, r.Notice = {
|
|
2235
|
-
Send: (n, a,
|
|
2236
|
-
var
|
|
2237
|
-
a !== void 0 ? (xe.Send({ type: n, text: a, thema:
|
|
2252
|
+
Send: (n, a, c) => {
|
|
2253
|
+
var l, p;
|
|
2254
|
+
a !== void 0 ? (xe.Send({ type: n, text: a, thema: c }), (l = r.WebApp.HapticFeedback) == null || l.notificationOccurred(n)) : (xe.Send(n), (p = r.WebApp.HapticFeedback) == null || p.notificationOccurred(n.type));
|
|
2238
2255
|
},
|
|
2239
2256
|
Error: (n) => {
|
|
2240
2257
|
var a;
|
|
@@ -2248,7 +2265,7 @@ var N;
|
|
|
2248
2265
|
var a;
|
|
2249
2266
|
xe.Send({ type: "warning", text: n }), (a = r.WebApp.HapticFeedback) == null || a.notificationOccurred("warning");
|
|
2250
2267
|
}
|
|
2251
|
-
}, r.Header =
|
|
2268
|
+
}, r.Header = yr, r.TabBar = qr, r.BottomSheet = tr, r.toggleBottomSheet = rt, r.SafeArea = Rr, r.Loading = xr, r.Sidebar = Lr, r.SidePanel = Zr, r.AppBar = an, r.SidePanelController = Xr, r.Scroll = tn, r.Modal = Ft, r.Menu = Tr, r.MainButton = {
|
|
2252
2269
|
callback: [],
|
|
2253
2270
|
set: (n) => {
|
|
2254
2271
|
Ee.is ? Ee.MainButton.set(n) : (r.WebApp.MainButton.callback.forEach((a) => {
|
|
@@ -2265,28 +2282,29 @@ var N;
|
|
|
2265
2282
|
}, r.BackButtonState = () => U.state, r.BackButton = (n) => {
|
|
2266
2283
|
Ee.is ? Ee.BackButton.set(n) : (U.state.push(n), U.router(n));
|
|
2267
2284
|
};
|
|
2268
|
-
})(
|
|
2269
|
-
const
|
|
2285
|
+
})($ || ($ = {}));
|
|
2286
|
+
const un = $.TabBar, fn = tr, Kt = $.BackButton, dn = $.BackButtonPrev, sn = $.BackButtonState, pn = $.Notice, vn = $.SafeArea, hn = $.Loading, gn = $.Menu, yn = $.SidePanel, mn = $.Scroll, bn = $.AppBar, _n = $.Sidebar, Rn = $.SidePanelController, { Header: Sn, toggleBottomSheet: kn, Modal: xn, MainButton: En, WebApp: Ce, getUser: jn } = $;
|
|
2270
2287
|
export {
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2288
|
+
bn as AppBar,
|
|
2289
|
+
Kt as BackButton,
|
|
2290
|
+
dn as BackButtonPrev,
|
|
2291
|
+
sn as BackButtonState,
|
|
2292
|
+
fn as BottomSheet,
|
|
2293
|
+
Sn as Header,
|
|
2294
|
+
hn as Loading,
|
|
2295
|
+
En as MainButton,
|
|
2296
|
+
gn as Menu,
|
|
2297
|
+
xn as Modal,
|
|
2298
|
+
pn as Notice,
|
|
2299
|
+
vn as SafeArea,
|
|
2300
|
+
mn as Scroll,
|
|
2301
|
+
yn as SidePanel,
|
|
2302
|
+
Rn as SidePanelController,
|
|
2303
|
+
_n as Sidebar,
|
|
2304
|
+
un as TabBar,
|
|
2305
|
+
Ce as WebApp,
|
|
2306
|
+
lt as clsx,
|
|
2307
|
+
$ as default,
|
|
2308
|
+
jn as getUser,
|
|
2309
|
+
kn as toggleBottomSheet
|
|
2292
2310
|
};
|