@elcrm/telegram 0.0.117 → 0.0.118
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.d.ts +2 -0
- package/dist/index.es.js +424 -408
- package/dist/index.umd.js +14 -14
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import F, { useState as J, useEffect as
|
|
1
|
+
import F, { useState as J, useEffect as pe } from "react";
|
|
2
2
|
import { createPortal as ar } from "react-dom";
|
|
3
|
-
import './index.css';var
|
|
3
|
+
import './index.css';var Lt = { exports: {} }, nt = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
6
6
|
* react-jsx-runtime.production.min.js
|
|
@@ -15,12 +15,12 @@ function sr() {
|
|
|
15
15
|
if (Yt) return nt;
|
|
16
16
|
Yt = 1;
|
|
17
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
|
-
function S(
|
|
19
|
-
var h, b = {},
|
|
20
|
-
R !== void 0 && (
|
|
18
|
+
function S(m, u, R) {
|
|
19
|
+
var h, b = {}, y = null, $ = null;
|
|
20
|
+
R !== void 0 && (y = "" + R), u.key !== void 0 && (y = "" + u.key), u.ref !== void 0 && ($ = u.ref);
|
|
21
21
|
for (h in u) c.call(u, h) && !p.hasOwnProperty(h) && (b[h] = u[h]);
|
|
22
|
-
if (
|
|
23
|
-
return { $$typeof: n, type:
|
|
22
|
+
if (m && m.defaultProps) for (h in u = m.defaultProps, u) b[h] === void 0 && (b[h] = u[h]);
|
|
23
|
+
return { $$typeof: n, type: m, key: y, ref: $, props: b, _owner: l.current };
|
|
24
24
|
}
|
|
25
25
|
return nt.Fragment = a, nt.jsx = S, nt.jsxs = S, nt;
|
|
26
26
|
}
|
|
@@ -37,14 +37,14 @@ var ot = {};
|
|
|
37
37
|
var zt;
|
|
38
38
|
function ir() {
|
|
39
39
|
return zt || (zt = 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"), S = Symbol.for("react.provider"),
|
|
41
|
-
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"), S = Symbol.for("react.provider"), m = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), $ = Symbol.for("react.offscreen"), w = Symbol.iterator, Ne = "@@iterator";
|
|
41
|
+
function he(e) {
|
|
42
42
|
if (e === null || typeof e != "object")
|
|
43
43
|
return null;
|
|
44
44
|
var t = w && e[w] || e[Ne];
|
|
45
45
|
return typeof t == "function" ? t : null;
|
|
46
46
|
}
|
|
47
|
-
var
|
|
47
|
+
var L = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
48
48
|
function j(e) {
|
|
49
49
|
{
|
|
50
50
|
for (var t = arguments.length, o = new Array(t > 1 ? t - 1 : 0), s = 1; s < t; s++)
|
|
@@ -54,18 +54,18 @@ function ir() {
|
|
|
54
54
|
}
|
|
55
55
|
function Be(e, t, o) {
|
|
56
56
|
{
|
|
57
|
-
var s =
|
|
57
|
+
var s = L.ReactDebugCurrentFrame, v = s.getStackAddendum();
|
|
58
58
|
v !== "" && (t += "%s", o = o.concat([v]));
|
|
59
|
-
var
|
|
59
|
+
var g = o.map(function(d) {
|
|
60
60
|
return String(d);
|
|
61
61
|
});
|
|
62
|
-
|
|
62
|
+
g.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, g);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
var Ie = !1, Ce = !1, Me = !1, De = !1, _ = !1, E;
|
|
66
66
|
E = Symbol.for("react.module.reference");
|
|
67
67
|
function B(e) {
|
|
68
|
-
return !!(typeof e == "string" || typeof e == "function" || e === c || e === p || _ || e === l || e === R || e === h || De || e ===
|
|
68
|
+
return !!(typeof e == "string" || typeof e == "function" || e === c || e === p || _ || e === l || e === R || e === h || De || e === $ || Ie || Ce || Me || typeof e == "object" && e !== null && (e.$$typeof === y || e.$$typeof === b || e.$$typeof === S || e.$$typeof === m || 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.
|
|
@@ -81,7 +81,7 @@ function ir() {
|
|
|
81
81
|
function I(e) {
|
|
82
82
|
return e.displayName || "Context";
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function N(e) {
|
|
85
85
|
if (e == null)
|
|
86
86
|
return null;
|
|
87
87
|
if (typeof e.tag == "number" && j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
@@ -104,7 +104,7 @@ function ir() {
|
|
|
104
104
|
}
|
|
105
105
|
if (typeof e == "object")
|
|
106
106
|
switch (e.$$typeof) {
|
|
107
|
-
case
|
|
107
|
+
case m:
|
|
108
108
|
var t = e;
|
|
109
109
|
return I(t) + ".Consumer";
|
|
110
110
|
case S:
|
|
@@ -114,11 +114,11 @@ function ir() {
|
|
|
114
114
|
return M(e, e.render, "ForwardRef");
|
|
115
115
|
case b:
|
|
116
116
|
var s = e.displayName || null;
|
|
117
|
-
return s !== null ? s :
|
|
118
|
-
case
|
|
119
|
-
var v = e,
|
|
117
|
+
return s !== null ? s : N(e.type) || "Memo";
|
|
118
|
+
case y: {
|
|
119
|
+
var v = e, g = v._payload, d = v._init;
|
|
120
120
|
try {
|
|
121
|
-
return
|
|
121
|
+
return N(d(g));
|
|
122
122
|
} catch {
|
|
123
123
|
return null;
|
|
124
124
|
}
|
|
@@ -126,18 +126,18 @@ function ir() {
|
|
|
126
126
|
}
|
|
127
127
|
return null;
|
|
128
128
|
}
|
|
129
|
-
var D = Object.assign, Y = 0,
|
|
130
|
-
function
|
|
129
|
+
var D = Object.assign, Y = 0, le, Z, X, Q, ee, Fe, Le;
|
|
130
|
+
function We() {
|
|
131
131
|
}
|
|
132
|
-
|
|
132
|
+
We.__reactDisabledLog = !0;
|
|
133
133
|
function dt() {
|
|
134
134
|
{
|
|
135
135
|
if (Y === 0) {
|
|
136
|
-
|
|
136
|
+
le = console.log, Z = console.info, X = console.warn, Q = console.error, ee = console.group, Fe = console.groupCollapsed, Le = console.groupEnd;
|
|
137
137
|
var e = {
|
|
138
138
|
configurable: !0,
|
|
139
139
|
enumerable: !0,
|
|
140
|
-
value:
|
|
140
|
+
value: We,
|
|
141
141
|
writable: !0
|
|
142
142
|
};
|
|
143
143
|
Object.defineProperties(console, {
|
|
@@ -163,7 +163,7 @@ function ir() {
|
|
|
163
163
|
};
|
|
164
164
|
Object.defineProperties(console, {
|
|
165
165
|
log: D({}, e, {
|
|
166
|
-
value:
|
|
166
|
+
value: le
|
|
167
167
|
}),
|
|
168
168
|
info: D({}, e, {
|
|
169
169
|
value: Z
|
|
@@ -181,34 +181,34 @@ function ir() {
|
|
|
181
181
|
value: Fe
|
|
182
182
|
}),
|
|
183
183
|
groupEnd: D({}, e, {
|
|
184
|
-
value:
|
|
184
|
+
value: Le
|
|
185
185
|
})
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
188
|
Y < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
|
-
var
|
|
191
|
+
var ye = L.ReactCurrentDispatcher, ge;
|
|
192
192
|
function re(e, t, o) {
|
|
193
193
|
{
|
|
194
|
-
if (
|
|
194
|
+
if (ge === void 0)
|
|
195
195
|
try {
|
|
196
196
|
throw Error();
|
|
197
197
|
} catch (v) {
|
|
198
198
|
var s = v.stack.trim().match(/\n( *(at )?)/);
|
|
199
|
-
|
|
199
|
+
ge = s && s[1] || "";
|
|
200
200
|
}
|
|
201
201
|
return `
|
|
202
|
-
` +
|
|
202
|
+
` + ge + e;
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
|
-
var
|
|
205
|
+
var me = !1, ne;
|
|
206
206
|
{
|
|
207
207
|
var vt = typeof WeakMap == "function" ? WeakMap : Map;
|
|
208
208
|
ne = new vt();
|
|
209
209
|
}
|
|
210
210
|
function Ue(e, t) {
|
|
211
|
-
if (!e ||
|
|
211
|
+
if (!e || me)
|
|
212
212
|
return "";
|
|
213
213
|
{
|
|
214
214
|
var o = ne.get(e);
|
|
@@ -216,11 +216,11 @@ function ir() {
|
|
|
216
216
|
return o;
|
|
217
217
|
}
|
|
218
218
|
var s;
|
|
219
|
-
|
|
219
|
+
me = !0;
|
|
220
220
|
var v = Error.prepareStackTrace;
|
|
221
221
|
Error.prepareStackTrace = void 0;
|
|
222
|
-
var
|
|
223
|
-
|
|
222
|
+
var g;
|
|
223
|
+
g = ye.current, ye.current = null, dt();
|
|
224
224
|
try {
|
|
225
225
|
if (t) {
|
|
226
226
|
var d = function() {
|
|
@@ -256,14 +256,14 @@ function ir() {
|
|
|
256
256
|
} catch (C) {
|
|
257
257
|
if (C && s && typeof C.stack == "string") {
|
|
258
258
|
for (var f = C.stack.split(`
|
|
259
|
-
`),
|
|
260
|
-
`), x = f.length - 1, k =
|
|
259
|
+
`), A = s.stack.split(`
|
|
260
|
+
`), x = f.length - 1, k = A.length - 1; x >= 1 && k >= 0 && f[x] !== A[k]; )
|
|
261
261
|
k--;
|
|
262
262
|
for (; x >= 1 && k >= 0; x--, k--)
|
|
263
|
-
if (f[x] !==
|
|
263
|
+
if (f[x] !== A[k]) {
|
|
264
264
|
if (x !== 1 || k !== 1)
|
|
265
265
|
do
|
|
266
|
-
if (x--, k--, k < 0 || f[x] !==
|
|
266
|
+
if (x--, k--, k < 0 || f[x] !== A[k]) {
|
|
267
267
|
var P = `
|
|
268
268
|
` + f[x].replace(" at new ", " at ");
|
|
269
269
|
return e.displayName && P.includes("<anonymous>") && (P = P.replace("<anonymous>", e.displayName)), typeof e == "function" && ne.set(e, P), P;
|
|
@@ -273,15 +273,15 @@ function ir() {
|
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
} finally {
|
|
276
|
-
|
|
276
|
+
me = !1, ye.current = g, pt(), Error.prepareStackTrace = v;
|
|
277
277
|
}
|
|
278
|
-
var V = e ? e.displayName || e.name : "",
|
|
279
|
-
return typeof e == "function" && ne.set(e,
|
|
278
|
+
var V = e ? e.displayName || e.name : "", W = V ? re(V) : "";
|
|
279
|
+
return typeof e == "function" && ne.set(e, W), W;
|
|
280
280
|
}
|
|
281
281
|
function ht(e, t, o) {
|
|
282
282
|
return Ue(e, !1);
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function yt(e) {
|
|
285
285
|
var t = e.prototype;
|
|
286
286
|
return !!(t && t.isReactComponent);
|
|
287
287
|
}
|
|
@@ -289,7 +289,7 @@ function ir() {
|
|
|
289
289
|
if (e == null)
|
|
290
290
|
return "";
|
|
291
291
|
if (typeof e == "function")
|
|
292
|
-
return Ue(e,
|
|
292
|
+
return Ue(e, yt(e));
|
|
293
293
|
if (typeof e == "string")
|
|
294
294
|
return re(e);
|
|
295
295
|
switch (e) {
|
|
@@ -304,17 +304,17 @@ function ir() {
|
|
|
304
304
|
return ht(e.render);
|
|
305
305
|
case b:
|
|
306
306
|
return oe(e.type, t, o);
|
|
307
|
-
case
|
|
308
|
-
var s = e, v = s._payload,
|
|
307
|
+
case y: {
|
|
308
|
+
var s = e, v = s._payload, g = s._init;
|
|
309
309
|
try {
|
|
310
|
-
return oe(
|
|
310
|
+
return oe(g(v), t, o);
|
|
311
311
|
} catch {
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
return "";
|
|
316
316
|
}
|
|
317
|
-
var K = Object.prototype.hasOwnProperty, Ye = {}, ze =
|
|
317
|
+
var K = Object.prototype.hasOwnProperty, Ye = {}, ze = L.ReactDebugCurrentFrame;
|
|
318
318
|
function ae(e) {
|
|
319
319
|
if (e) {
|
|
320
320
|
var t = e._owner, o = oe(e.type, e._source, t ? t.type : null);
|
|
@@ -322,16 +322,16 @@ function ir() {
|
|
|
322
322
|
} else
|
|
323
323
|
ze.setExtraStackFrame(null);
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function gt(e, t, o, s, v) {
|
|
326
326
|
{
|
|
327
|
-
var
|
|
327
|
+
var g = Function.call.bind(K);
|
|
328
328
|
for (var d in e)
|
|
329
|
-
if (
|
|
329
|
+
if (g(e, d)) {
|
|
330
330
|
var f = void 0;
|
|
331
331
|
try {
|
|
332
332
|
if (typeof e[d] != "function") {
|
|
333
|
-
var
|
|
334
|
-
throw
|
|
333
|
+
var A = Error((s || "React class") + ": " + o + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
334
|
+
throw A.name = "Invariant Violation", A;
|
|
335
335
|
}
|
|
336
336
|
f = e[d](t, d, s, o, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
337
337
|
} catch (x) {
|
|
@@ -341,9 +341,9 @@ function ir() {
|
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
|
-
var
|
|
345
|
-
function
|
|
346
|
-
return
|
|
344
|
+
var mt = Array.isArray;
|
|
345
|
+
function be(e) {
|
|
346
|
+
return mt(e);
|
|
347
347
|
}
|
|
348
348
|
function bt(e) {
|
|
349
349
|
{
|
|
@@ -365,7 +365,7 @@ function ir() {
|
|
|
365
365
|
if (_t(e))
|
|
366
366
|
return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", bt(e)), Ve(e);
|
|
367
367
|
}
|
|
368
|
-
var He =
|
|
368
|
+
var He = L.ReactCurrentOwner, Rt = {
|
|
369
369
|
key: !0,
|
|
370
370
|
ref: !0,
|
|
371
371
|
__self: !0,
|
|
@@ -412,7 +412,7 @@ function ir() {
|
|
|
412
412
|
});
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
-
var
|
|
415
|
+
var At = function(e, t, o, s, v, g, d) {
|
|
416
416
|
var f = {
|
|
417
417
|
// This tag allows us to uniquely identify this as a React Element
|
|
418
418
|
$$typeof: n,
|
|
@@ -422,7 +422,7 @@ function ir() {
|
|
|
422
422
|
ref: o,
|
|
423
423
|
props: d,
|
|
424
424
|
// Record the component responsible for creating this element.
|
|
425
|
-
_owner:
|
|
425
|
+
_owner: g
|
|
426
426
|
};
|
|
427
427
|
return f._store = {}, Object.defineProperty(f._store, "validated", {
|
|
428
428
|
configurable: !1,
|
|
@@ -441,25 +441,25 @@ function ir() {
|
|
|
441
441
|
value: v
|
|
442
442
|
}), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
|
|
443
443
|
};
|
|
444
|
-
function
|
|
444
|
+
function Ot(e, t, o, s, v) {
|
|
445
445
|
{
|
|
446
|
-
var
|
|
447
|
-
o !== void 0 && (qe(o), f = "" + o), xt(t) && (qe(t.key), f = "" + t.key), St(t) && (
|
|
448
|
-
for (
|
|
449
|
-
K.call(t,
|
|
446
|
+
var g, d = {}, f = null, A = null;
|
|
447
|
+
o !== void 0 && (qe(o), f = "" + o), xt(t) && (qe(t.key), f = "" + t.key), St(t) && (A = t.ref, kt(t, v));
|
|
448
|
+
for (g in t)
|
|
449
|
+
K.call(t, g) && !Rt.hasOwnProperty(g) && (d[g] = t[g]);
|
|
450
450
|
if (e && e.defaultProps) {
|
|
451
451
|
var x = e.defaultProps;
|
|
452
|
-
for (
|
|
453
|
-
d[
|
|
452
|
+
for (g in x)
|
|
453
|
+
d[g] === void 0 && (d[g] = x[g]);
|
|
454
454
|
}
|
|
455
|
-
if (f ||
|
|
455
|
+
if (f || A) {
|
|
456
456
|
var k = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
457
|
-
f && Et(d, k),
|
|
457
|
+
f && Et(d, k), A && jt(d, k);
|
|
458
458
|
}
|
|
459
|
-
return
|
|
459
|
+
return At(e, f, A, v, s, He.current, d);
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
|
-
var
|
|
462
|
+
var _e = L.ReactCurrentOwner, Ge = L.ReactDebugCurrentFrame;
|
|
463
463
|
function z(e) {
|
|
464
464
|
if (e) {
|
|
465
465
|
var t = e._owner, o = oe(e.type, e._source, t ? t.type : null);
|
|
@@ -467,15 +467,15 @@ function ir() {
|
|
|
467
467
|
} else
|
|
468
468
|
Ge.setExtraStackFrame(null);
|
|
469
469
|
}
|
|
470
|
-
var
|
|
471
|
-
|
|
472
|
-
function
|
|
470
|
+
var Re;
|
|
471
|
+
Re = !1;
|
|
472
|
+
function Se(e) {
|
|
473
473
|
return typeof e == "object" && e !== null && e.$$typeof === n;
|
|
474
474
|
}
|
|
475
475
|
function Ze() {
|
|
476
476
|
{
|
|
477
|
-
if (
|
|
478
|
-
var e =
|
|
477
|
+
if (_e.current) {
|
|
478
|
+
var e = N(_e.current.type);
|
|
479
479
|
if (e)
|
|
480
480
|
return `
|
|
481
481
|
|
|
@@ -510,25 +510,25 @@ Check the top-level render call using <` + o + ">.");
|
|
|
510
510
|
return;
|
|
511
511
|
Xe[o] = !0;
|
|
512
512
|
var s = "";
|
|
513
|
-
e && e._owner && e._owner !==
|
|
513
|
+
e && e._owner && e._owner !== _e.current && (s = " It was passed a child from " + N(e._owner.type) + "."), z(e), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', o, s), z(null);
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
function et(e, t) {
|
|
517
517
|
{
|
|
518
518
|
if (typeof e != "object")
|
|
519
519
|
return;
|
|
520
|
-
if (
|
|
520
|
+
if (be(e))
|
|
521
521
|
for (var o = 0; o < e.length; o++) {
|
|
522
522
|
var s = e[o];
|
|
523
|
-
|
|
523
|
+
Se(s) && Qe(s, t);
|
|
524
524
|
}
|
|
525
|
-
else if (
|
|
525
|
+
else if (Se(e))
|
|
526
526
|
e._store && (e._store.validated = !0);
|
|
527
527
|
else if (e) {
|
|
528
|
-
var v =
|
|
528
|
+
var v = he(e);
|
|
529
529
|
if (typeof v == "function" && v !== e.entries)
|
|
530
|
-
for (var
|
|
531
|
-
|
|
530
|
+
for (var g = v.call(e), d; !(d = g.next()).done; )
|
|
531
|
+
Se(d.value) && Qe(d.value, t);
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
534
|
}
|
|
@@ -547,11 +547,11 @@ Check the top-level render call using <` + o + ">.");
|
|
|
547
547
|
else
|
|
548
548
|
return;
|
|
549
549
|
if (o) {
|
|
550
|
-
var s =
|
|
551
|
-
|
|
552
|
-
} else if (t.PropTypes !== void 0 && !
|
|
553
|
-
|
|
554
|
-
var v =
|
|
550
|
+
var s = N(t);
|
|
551
|
+
gt(o, e.props, "prop", s, e);
|
|
552
|
+
} else if (t.PropTypes !== void 0 && !Re) {
|
|
553
|
+
Re = !0;
|
|
554
|
+
var v = N(t);
|
|
555
555
|
j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", v || "Unknown");
|
|
556
556
|
}
|
|
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.");
|
|
@@ -570,25 +570,25 @@ Check the top-level render call using <` + o + ">.");
|
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
572
|
var tt = {};
|
|
573
|
-
function rt(e, t, o, s, v,
|
|
573
|
+
function rt(e, t, o, s, v, g) {
|
|
574
574
|
{
|
|
575
575
|
var d = B(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
|
|
580
|
-
|
|
579
|
+
var A = Ct();
|
|
580
|
+
A ? f += A : f += Ze();
|
|
581
581
|
var x;
|
|
582
|
-
e === null ? x = "null" :
|
|
582
|
+
e === null ? x = "null" : be(e) ? x = "array" : e !== void 0 && e.$$typeof === n ? (x = "<" + (N(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : x = 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", x, f);
|
|
583
583
|
}
|
|
584
|
-
var k =
|
|
584
|
+
var k = Ot(e, t, o, v, g);
|
|
585
585
|
if (k == null)
|
|
586
586
|
return k;
|
|
587
587
|
if (d) {
|
|
588
588
|
var P = t.children;
|
|
589
589
|
if (P !== void 0)
|
|
590
590
|
if (s)
|
|
591
|
-
if (
|
|
591
|
+
if (be(P)) {
|
|
592
592
|
for (var V = 0; V < P.length; V++)
|
|
593
593
|
et(P[V], e);
|
|
594
594
|
Object.freeze && Object.freeze(P);
|
|
@@ -598,17 +598,17 @@ Check the top-level render call using <` + o + ">.");
|
|
|
598
598
|
et(P, e);
|
|
599
599
|
}
|
|
600
600
|
if (K.call(t, "key")) {
|
|
601
|
-
var
|
|
601
|
+
var W = N(e), C = Object.keys(t).filter(function(Dt) {
|
|
602
602
|
return Dt !== "key";
|
|
603
|
-
}),
|
|
604
|
-
if (!tt[
|
|
603
|
+
}), xe = C.length > 0 ? "{key: someKey, " + C.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
604
|
+
if (!tt[W + xe]) {
|
|
605
605
|
var Mt = 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} />
|
|
609
609
|
React keys must be passed directly to JSX without using spread:
|
|
610
610
|
let props = %s;
|
|
611
|
-
<%s key={someKey} {...props} />`,
|
|
611
|
+
<%s key={someKey} {...props} />`, xe, W, Mt, W), tt[W + xe] = !0;
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
614
|
return e === c ? Tt(k) : Pt(k), k;
|
|
@@ -624,60 +624,60 @@ React keys must be passed directly to JSX without using spread:
|
|
|
624
624
|
ot.Fragment = c, ot.jsx = Bt, ot.jsxs = It;
|
|
625
625
|
}()), ot;
|
|
626
626
|
}
|
|
627
|
-
process.env.NODE_ENV === "production" ?
|
|
628
|
-
var i =
|
|
629
|
-
const
|
|
630
|
-
o:
|
|
631
|
-
x:
|
|
627
|
+
process.env.NODE_ENV === "production" ? Lt.exports = sr() : Lt.exports = ir();
|
|
628
|
+
var i = Lt.exports;
|
|
629
|
+
const cr = "_o_1apbm_11", lr = "_x_1apbm_24", ur = "_p_1apbm_28", fr = "_m_1apbm_45", we = {
|
|
630
|
+
o: cr,
|
|
631
|
+
x: lr,
|
|
632
632
|
p: ur,
|
|
633
633
|
m: fr
|
|
634
634
|
};
|
|
635
635
|
let q = {};
|
|
636
|
-
var
|
|
636
|
+
var Wt;
|
|
637
637
|
((r) => {
|
|
638
638
|
function n({
|
|
639
|
-
children:
|
|
639
|
+
children: m,
|
|
640
640
|
onCallbackModal: u,
|
|
641
641
|
nameModal: R,
|
|
642
642
|
offsetTop: h
|
|
643
643
|
}) {
|
|
644
|
-
const [b,
|
|
644
|
+
const [b, y] = J(!1), [$, w] = J(!1);
|
|
645
645
|
if (q[R].onClose = () => {
|
|
646
|
-
|
|
647
|
-
|
|
646
|
+
T.BackButton(!1), w(!0), setTimeout(() => {
|
|
647
|
+
y(!1), w(!1), u == null || u(), q.x(R);
|
|
648
648
|
}, 300);
|
|
649
|
-
},
|
|
650
|
-
b ? q[R].onClose() : (
|
|
649
|
+
}, pe(() => {
|
|
650
|
+
b ? q[R].onClose() : (T.BackButton({
|
|
651
651
|
callback: () => q[R].onClose()
|
|
652
|
-
}),
|
|
652
|
+
}), y(!0));
|
|
653
653
|
}, []), !!b)
|
|
654
|
-
return /* @__PURE__ */ i.jsx("div", { className: $e(we.o,
|
|
654
|
+
return /* @__PURE__ */ i.jsx("div", { className: $e(we.o, $ && we.x), children: /* @__PURE__ */ i.jsx(
|
|
655
655
|
"div",
|
|
656
656
|
{
|
|
657
657
|
className: $e(
|
|
658
658
|
we.p,
|
|
659
|
-
|
|
659
|
+
$ && we.x,
|
|
660
660
|
h ? we.o : we.m
|
|
661
661
|
),
|
|
662
|
-
children:
|
|
662
|
+
children: m
|
|
663
663
|
}
|
|
664
664
|
) });
|
|
665
665
|
}
|
|
666
666
|
r.Content = n;
|
|
667
667
|
function a({
|
|
668
|
-
import_modules:
|
|
668
|
+
import_modules: m
|
|
669
669
|
}) {
|
|
670
670
|
let [u, R] = J([]);
|
|
671
671
|
return q.x = (h) => {
|
|
672
672
|
R(h ? u.filter((b) => b.key !== h) : []);
|
|
673
|
-
},
|
|
674
|
-
|
|
673
|
+
}, pe(() => {
|
|
674
|
+
m && (q.i = m);
|
|
675
675
|
}, []), q.add = (h, b = Date.now()) => {
|
|
676
676
|
R([...u, { key: b, item: h }]);
|
|
677
677
|
}, /* @__PURE__ */ i.jsx(i.Fragment, { children: u.map((h) => h.item) });
|
|
678
678
|
}
|
|
679
679
|
r.Init = a;
|
|
680
|
-
function c(
|
|
680
|
+
function c(m, u, R) {
|
|
681
681
|
q.add(
|
|
682
682
|
/* @__PURE__ */ i.jsx(
|
|
683
683
|
n,
|
|
@@ -685,7 +685,7 @@ var Lt;
|
|
|
685
685
|
onCallbackModal: q["callback_modal" + u],
|
|
686
686
|
nameModal: u || "",
|
|
687
687
|
offsetTop: R,
|
|
688
|
-
children:
|
|
688
|
+
children: m
|
|
689
689
|
},
|
|
690
690
|
String(Date.now())
|
|
691
691
|
),
|
|
@@ -693,17 +693,17 @@ var Lt;
|
|
|
693
693
|
);
|
|
694
694
|
}
|
|
695
695
|
r.Add = c;
|
|
696
|
-
function l(
|
|
696
|
+
function l(m, u = Date.now().toString(), R) {
|
|
697
697
|
return q[u] = {}, {
|
|
698
|
-
Open: (
|
|
698
|
+
Open: (y) => {
|
|
699
699
|
r.Add(
|
|
700
700
|
/* @__PURE__ */ i.jsx(
|
|
701
|
-
|
|
701
|
+
m,
|
|
702
702
|
{
|
|
703
|
-
...
|
|
704
|
-
onCallbackModal: (
|
|
703
|
+
...y,
|
|
704
|
+
onCallbackModal: ($) => {
|
|
705
705
|
var w;
|
|
706
|
-
(w =
|
|
706
|
+
(w = y.callback) == null || w.call(y, $);
|
|
707
707
|
},
|
|
708
708
|
nameModal: u
|
|
709
709
|
},
|
|
@@ -716,17 +716,17 @@ var Lt;
|
|
|
716
716
|
};
|
|
717
717
|
}
|
|
718
718
|
r.Create = l;
|
|
719
|
-
function p(
|
|
720
|
-
q[
|
|
719
|
+
function p(m) {
|
|
720
|
+
q[m].onClose();
|
|
721
721
|
}
|
|
722
722
|
r.Close = p;
|
|
723
|
-
function S(
|
|
724
|
-
q.i && (h && (R.callback = h), q.i(`${
|
|
723
|
+
function S(m, u, R, h) {
|
|
724
|
+
q.i && (h && (R.callback = h), q.i(`${m}/modals/${u}.tsx`).then((b) => {
|
|
725
725
|
b.default.Open(R);
|
|
726
726
|
}));
|
|
727
727
|
}
|
|
728
728
|
r.Open = S;
|
|
729
|
-
})(
|
|
729
|
+
})(Wt || (Wt = {}));
|
|
730
730
|
function Qt() {
|
|
731
731
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof self < "u" ? self : typeof global < "u" ? global : {};
|
|
732
732
|
}
|
|
@@ -739,7 +739,7 @@ function Vt(r) {
|
|
|
739
739
|
const n = Qt();
|
|
740
740
|
n.CRYPTO_PARAMS ? n.CRYPTO_PARAMS = { ...n.CRYPTO_PARAMS, ...r } : n.CRYPTO_PARAMS = { ...er, ...r };
|
|
741
741
|
}
|
|
742
|
-
function
|
|
742
|
+
function lt() {
|
|
743
743
|
return Qt().CRYPTO_PARAMS || er;
|
|
744
744
|
}
|
|
745
745
|
const ut = (r) => {
|
|
@@ -757,7 +757,7 @@ const ut = (r) => {
|
|
|
757
757
|
return a;
|
|
758
758
|
}, tr = (r, n) => {
|
|
759
759
|
let a = r + n;
|
|
760
|
-
for (let l = 0; l <
|
|
760
|
+
for (let l = 0; l < lt().iterations; l++)
|
|
761
761
|
a = ut(a);
|
|
762
762
|
const c = new Uint8Array(32);
|
|
763
763
|
for (let l = 0; l < 32; l++)
|
|
@@ -785,21 +785,21 @@ const ut = (r) => {
|
|
|
785
785
|
for (let c = 0; c < n.length; c++)
|
|
786
786
|
a[c] = n.charCodeAt(c);
|
|
787
787
|
return a;
|
|
788
|
-
},
|
|
788
|
+
}, yr = (r) => {
|
|
789
789
|
try {
|
|
790
790
|
const n = ut(
|
|
791
791
|
Date.now().toString() + Math.random()
|
|
792
|
-
).substring(0,
|
|
792
|
+
).substring(0, lt().saltLength * 2), a = ut(r + n).substring(0, 8), c = tr(lt().key, n), l = dr(r), p = rr(l, c), S = vr(p);
|
|
793
793
|
return `${n}.${S}.${a}`;
|
|
794
794
|
} catch {
|
|
795
795
|
throw new Error("Не удалось зашифровать данные");
|
|
796
796
|
}
|
|
797
|
-
},
|
|
797
|
+
}, gr = (r) => {
|
|
798
798
|
try {
|
|
799
799
|
const n = r.split(".");
|
|
800
800
|
if (n.length !== 3)
|
|
801
801
|
throw new Error("Неверный формат зашифрованных данных");
|
|
802
|
-
const a = n[0], c = n[1], l = n[2], p = tr(
|
|
802
|
+
const a = n[0], c = n[1], l = n[2], p = tr(lt().key, a), S = hr(c), m = rr(S, p), u = pr(m);
|
|
803
803
|
if (ut(u + a).substring(
|
|
804
804
|
0,
|
|
805
805
|
8
|
|
@@ -817,7 +817,7 @@ var ue;
|
|
|
817
817
|
}, r.enCode = (n) => {
|
|
818
818
|
try {
|
|
819
819
|
const a = JSON.stringify(n);
|
|
820
|
-
return
|
|
820
|
+
return yr(a);
|
|
821
821
|
} catch {
|
|
822
822
|
throw new Error("Не удалось зашифровать объект");
|
|
823
823
|
}
|
|
@@ -825,7 +825,7 @@ var ue;
|
|
|
825
825
|
try {
|
|
826
826
|
if (!n || n.length < 10)
|
|
827
827
|
return !1;
|
|
828
|
-
const a =
|
|
828
|
+
const a = gr(n);
|
|
829
829
|
return a && JSON.parse(a) || !1;
|
|
830
830
|
} catch {
|
|
831
831
|
return !1;
|
|
@@ -845,16 +845,16 @@ var at = {};
|
|
|
845
845
|
* LICENSE file in the root directory of this source tree.
|
|
846
846
|
*/
|
|
847
847
|
var qt;
|
|
848
|
-
function
|
|
848
|
+
function mr() {
|
|
849
849
|
if (qt) return at;
|
|
850
850
|
qt = 1;
|
|
851
851
|
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 };
|
|
852
|
-
function S(
|
|
853
|
-
var h, b = {},
|
|
854
|
-
R !== void 0 && (
|
|
852
|
+
function S(m, u, R) {
|
|
853
|
+
var h, b = {}, y = null, $ = null;
|
|
854
|
+
R !== void 0 && (y = "" + R), u.key !== void 0 && (y = "" + u.key), u.ref !== void 0 && ($ = u.ref);
|
|
855
855
|
for (h in u) c.call(u, h) && !p.hasOwnProperty(h) && (b[h] = u[h]);
|
|
856
|
-
if (
|
|
857
|
-
return { $$typeof: n, type:
|
|
856
|
+
if (m && m.defaultProps) for (h in u = m.defaultProps, u) b[h] === void 0 && (b[h] = u[h]);
|
|
857
|
+
return { $$typeof: n, type: m, key: y, ref: $, props: b, _owner: l.current };
|
|
858
858
|
}
|
|
859
859
|
return at.Fragment = a, at.jsx = S, at.jsxs = S, at;
|
|
860
860
|
}
|
|
@@ -871,14 +871,14 @@ var it = {};
|
|
|
871
871
|
var Ht;
|
|
872
872
|
function br() {
|
|
873
873
|
return Ht || (Ht = 1, process.env.NODE_ENV !== "production" && function() {
|
|
874
|
-
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"), S = Symbol.for("react.provider"),
|
|
875
|
-
function
|
|
874
|
+
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"), S = Symbol.for("react.provider"), m = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), $ = Symbol.for("react.offscreen"), w = Symbol.iterator, Ne = "@@iterator";
|
|
875
|
+
function he(e) {
|
|
876
876
|
if (e === null || typeof e != "object")
|
|
877
877
|
return null;
|
|
878
878
|
var t = w && e[w] || e[Ne];
|
|
879
879
|
return typeof t == "function" ? t : null;
|
|
880
880
|
}
|
|
881
|
-
var
|
|
881
|
+
var L = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
882
882
|
function j(e) {
|
|
883
883
|
{
|
|
884
884
|
for (var t = arguments.length, o = new Array(t > 1 ? t - 1 : 0), s = 1; s < t; s++)
|
|
@@ -888,18 +888,18 @@ function br() {
|
|
|
888
888
|
}
|
|
889
889
|
function Be(e, t, o) {
|
|
890
890
|
{
|
|
891
|
-
var s =
|
|
891
|
+
var s = L.ReactDebugCurrentFrame, v = s.getStackAddendum();
|
|
892
892
|
v !== "" && (t += "%s", o = o.concat([v]));
|
|
893
|
-
var
|
|
893
|
+
var g = o.map(function(d) {
|
|
894
894
|
return String(d);
|
|
895
895
|
});
|
|
896
|
-
|
|
896
|
+
g.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, g);
|
|
897
897
|
}
|
|
898
898
|
}
|
|
899
899
|
var Ie = !1, Ce = !1, Me = !1, De = !1, _ = !1, E;
|
|
900
900
|
E = Symbol.for("react.module.reference");
|
|
901
901
|
function B(e) {
|
|
902
|
-
return !!(typeof e == "string" || typeof e == "function" || e === c || e === p || _ || e === l || e === R || e === h || De || e ===
|
|
902
|
+
return !!(typeof e == "string" || typeof e == "function" || e === c || e === p || _ || e === l || e === R || e === h || De || e === $ || Ie || Ce || Me || typeof e == "object" && e !== null && (e.$$typeof === y || e.$$typeof === b || e.$$typeof === S || e.$$typeof === m || e.$$typeof === u || // This needs to include all possible module reference object
|
|
903
903
|
// types supported by any Flight configuration anywhere since
|
|
904
904
|
// we don't know which Flight build this will end up being used
|
|
905
905
|
// with.
|
|
@@ -915,7 +915,7 @@ function br() {
|
|
|
915
915
|
function I(e) {
|
|
916
916
|
return e.displayName || "Context";
|
|
917
917
|
}
|
|
918
|
-
function
|
|
918
|
+
function N(e) {
|
|
919
919
|
if (e == null)
|
|
920
920
|
return null;
|
|
921
921
|
if (typeof e.tag == "number" && j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
@@ -938,7 +938,7 @@ function br() {
|
|
|
938
938
|
}
|
|
939
939
|
if (typeof e == "object")
|
|
940
940
|
switch (e.$$typeof) {
|
|
941
|
-
case
|
|
941
|
+
case m:
|
|
942
942
|
var t = e;
|
|
943
943
|
return I(t) + ".Consumer";
|
|
944
944
|
case S:
|
|
@@ -948,11 +948,11 @@ function br() {
|
|
|
948
948
|
return M(e, e.render, "ForwardRef");
|
|
949
949
|
case b:
|
|
950
950
|
var s = e.displayName || null;
|
|
951
|
-
return s !== null ? s :
|
|
952
|
-
case
|
|
953
|
-
var v = e,
|
|
951
|
+
return s !== null ? s : N(e.type) || "Memo";
|
|
952
|
+
case y: {
|
|
953
|
+
var v = e, g = v._payload, d = v._init;
|
|
954
954
|
try {
|
|
955
|
-
return
|
|
955
|
+
return N(d(g));
|
|
956
956
|
} catch {
|
|
957
957
|
return null;
|
|
958
958
|
}
|
|
@@ -960,18 +960,18 @@ function br() {
|
|
|
960
960
|
}
|
|
961
961
|
return null;
|
|
962
962
|
}
|
|
963
|
-
var D = Object.assign, Y = 0,
|
|
964
|
-
function
|
|
963
|
+
var D = Object.assign, Y = 0, le, Z, X, Q, ee, Fe, Le;
|
|
964
|
+
function We() {
|
|
965
965
|
}
|
|
966
|
-
|
|
966
|
+
We.__reactDisabledLog = !0;
|
|
967
967
|
function dt() {
|
|
968
968
|
{
|
|
969
969
|
if (Y === 0) {
|
|
970
|
-
|
|
970
|
+
le = console.log, Z = console.info, X = console.warn, Q = console.error, ee = console.group, Fe = console.groupCollapsed, Le = console.groupEnd;
|
|
971
971
|
var e = {
|
|
972
972
|
configurable: !0,
|
|
973
973
|
enumerable: !0,
|
|
974
|
-
value:
|
|
974
|
+
value: We,
|
|
975
975
|
writable: !0
|
|
976
976
|
};
|
|
977
977
|
Object.defineProperties(console, {
|
|
@@ -997,7 +997,7 @@ function br() {
|
|
|
997
997
|
};
|
|
998
998
|
Object.defineProperties(console, {
|
|
999
999
|
log: D({}, e, {
|
|
1000
|
-
value:
|
|
1000
|
+
value: le
|
|
1001
1001
|
}),
|
|
1002
1002
|
info: D({}, e, {
|
|
1003
1003
|
value: Z
|
|
@@ -1015,34 +1015,34 @@ function br() {
|
|
|
1015
1015
|
value: Fe
|
|
1016
1016
|
}),
|
|
1017
1017
|
groupEnd: D({}, e, {
|
|
1018
|
-
value:
|
|
1018
|
+
value: Le
|
|
1019
1019
|
})
|
|
1020
1020
|
});
|
|
1021
1021
|
}
|
|
1022
1022
|
Y < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
1023
1023
|
}
|
|
1024
1024
|
}
|
|
1025
|
-
var
|
|
1025
|
+
var ye = L.ReactCurrentDispatcher, ge;
|
|
1026
1026
|
function re(e, t, o) {
|
|
1027
1027
|
{
|
|
1028
|
-
if (
|
|
1028
|
+
if (ge === void 0)
|
|
1029
1029
|
try {
|
|
1030
1030
|
throw Error();
|
|
1031
1031
|
} catch (v) {
|
|
1032
1032
|
var s = v.stack.trim().match(/\n( *(at )?)/);
|
|
1033
|
-
|
|
1033
|
+
ge = s && s[1] || "";
|
|
1034
1034
|
}
|
|
1035
1035
|
return `
|
|
1036
|
-
` +
|
|
1036
|
+
` + ge + e;
|
|
1037
1037
|
}
|
|
1038
1038
|
}
|
|
1039
|
-
var
|
|
1039
|
+
var me = !1, ne;
|
|
1040
1040
|
{
|
|
1041
1041
|
var vt = typeof WeakMap == "function" ? WeakMap : Map;
|
|
1042
1042
|
ne = new vt();
|
|
1043
1043
|
}
|
|
1044
1044
|
function Ue(e, t) {
|
|
1045
|
-
if (!e ||
|
|
1045
|
+
if (!e || me)
|
|
1046
1046
|
return "";
|
|
1047
1047
|
{
|
|
1048
1048
|
var o = ne.get(e);
|
|
@@ -1050,11 +1050,11 @@ function br() {
|
|
|
1050
1050
|
return o;
|
|
1051
1051
|
}
|
|
1052
1052
|
var s;
|
|
1053
|
-
|
|
1053
|
+
me = !0;
|
|
1054
1054
|
var v = Error.prepareStackTrace;
|
|
1055
1055
|
Error.prepareStackTrace = void 0;
|
|
1056
|
-
var
|
|
1057
|
-
|
|
1056
|
+
var g;
|
|
1057
|
+
g = ye.current, ye.current = null, dt();
|
|
1058
1058
|
try {
|
|
1059
1059
|
if (t) {
|
|
1060
1060
|
var d = function() {
|
|
@@ -1090,14 +1090,14 @@ function br() {
|
|
|
1090
1090
|
} catch (C) {
|
|
1091
1091
|
if (C && s && typeof C.stack == "string") {
|
|
1092
1092
|
for (var f = C.stack.split(`
|
|
1093
|
-
`),
|
|
1094
|
-
`), x = f.length - 1, k =
|
|
1093
|
+
`), A = s.stack.split(`
|
|
1094
|
+
`), x = f.length - 1, k = A.length - 1; x >= 1 && k >= 0 && f[x] !== A[k]; )
|
|
1095
1095
|
k--;
|
|
1096
1096
|
for (; x >= 1 && k >= 0; x--, k--)
|
|
1097
|
-
if (f[x] !==
|
|
1097
|
+
if (f[x] !== A[k]) {
|
|
1098
1098
|
if (x !== 1 || k !== 1)
|
|
1099
1099
|
do
|
|
1100
|
-
if (x--, k--, k < 0 || f[x] !==
|
|
1100
|
+
if (x--, k--, k < 0 || f[x] !== A[k]) {
|
|
1101
1101
|
var P = `
|
|
1102
1102
|
` + f[x].replace(" at new ", " at ");
|
|
1103
1103
|
return e.displayName && P.includes("<anonymous>") && (P = P.replace("<anonymous>", e.displayName)), typeof e == "function" && ne.set(e, P), P;
|
|
@@ -1107,15 +1107,15 @@ function br() {
|
|
|
1107
1107
|
}
|
|
1108
1108
|
}
|
|
1109
1109
|
} finally {
|
|
1110
|
-
|
|
1110
|
+
me = !1, ye.current = g, pt(), Error.prepareStackTrace = v;
|
|
1111
1111
|
}
|
|
1112
|
-
var V = e ? e.displayName || e.name : "",
|
|
1113
|
-
return typeof e == "function" && ne.set(e,
|
|
1112
|
+
var V = e ? e.displayName || e.name : "", W = V ? re(V) : "";
|
|
1113
|
+
return typeof e == "function" && ne.set(e, W), W;
|
|
1114
1114
|
}
|
|
1115
1115
|
function ht(e, t, o) {
|
|
1116
1116
|
return Ue(e, !1);
|
|
1117
1117
|
}
|
|
1118
|
-
function
|
|
1118
|
+
function yt(e) {
|
|
1119
1119
|
var t = e.prototype;
|
|
1120
1120
|
return !!(t && t.isReactComponent);
|
|
1121
1121
|
}
|
|
@@ -1123,7 +1123,7 @@ function br() {
|
|
|
1123
1123
|
if (e == null)
|
|
1124
1124
|
return "";
|
|
1125
1125
|
if (typeof e == "function")
|
|
1126
|
-
return Ue(e,
|
|
1126
|
+
return Ue(e, yt(e));
|
|
1127
1127
|
if (typeof e == "string")
|
|
1128
1128
|
return re(e);
|
|
1129
1129
|
switch (e) {
|
|
@@ -1138,17 +1138,17 @@ function br() {
|
|
|
1138
1138
|
return ht(e.render);
|
|
1139
1139
|
case b:
|
|
1140
1140
|
return oe(e.type, t, o);
|
|
1141
|
-
case
|
|
1142
|
-
var s = e, v = s._payload,
|
|
1141
|
+
case y: {
|
|
1142
|
+
var s = e, v = s._payload, g = s._init;
|
|
1143
1143
|
try {
|
|
1144
|
-
return oe(
|
|
1144
|
+
return oe(g(v), t, o);
|
|
1145
1145
|
} catch {
|
|
1146
1146
|
}
|
|
1147
1147
|
}
|
|
1148
1148
|
}
|
|
1149
1149
|
return "";
|
|
1150
1150
|
}
|
|
1151
|
-
var K = Object.prototype.hasOwnProperty, Ye = {}, ze =
|
|
1151
|
+
var K = Object.prototype.hasOwnProperty, Ye = {}, ze = L.ReactDebugCurrentFrame;
|
|
1152
1152
|
function ae(e) {
|
|
1153
1153
|
if (e) {
|
|
1154
1154
|
var t = e._owner, o = oe(e.type, e._source, t ? t.type : null);
|
|
@@ -1156,16 +1156,16 @@ function br() {
|
|
|
1156
1156
|
} else
|
|
1157
1157
|
ze.setExtraStackFrame(null);
|
|
1158
1158
|
}
|
|
1159
|
-
function
|
|
1159
|
+
function gt(e, t, o, s, v) {
|
|
1160
1160
|
{
|
|
1161
|
-
var
|
|
1161
|
+
var g = Function.call.bind(K);
|
|
1162
1162
|
for (var d in e)
|
|
1163
|
-
if (
|
|
1163
|
+
if (g(e, d)) {
|
|
1164
1164
|
var f = void 0;
|
|
1165
1165
|
try {
|
|
1166
1166
|
if (typeof e[d] != "function") {
|
|
1167
|
-
var
|
|
1168
|
-
throw
|
|
1167
|
+
var A = Error((s || "React class") + ": " + o + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
1168
|
+
throw A.name = "Invariant Violation", A;
|
|
1169
1169
|
}
|
|
1170
1170
|
f = e[d](t, d, s, o, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1171
1171
|
} catch (x) {
|
|
@@ -1175,9 +1175,9 @@ function br() {
|
|
|
1175
1175
|
}
|
|
1176
1176
|
}
|
|
1177
1177
|
}
|
|
1178
|
-
var
|
|
1179
|
-
function
|
|
1180
|
-
return
|
|
1178
|
+
var mt = Array.isArray;
|
|
1179
|
+
function be(e) {
|
|
1180
|
+
return mt(e);
|
|
1181
1181
|
}
|
|
1182
1182
|
function bt(e) {
|
|
1183
1183
|
{
|
|
@@ -1199,7 +1199,7 @@ function br() {
|
|
|
1199
1199
|
if (_t(e))
|
|
1200
1200
|
return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", bt(e)), Ve(e);
|
|
1201
1201
|
}
|
|
1202
|
-
var He =
|
|
1202
|
+
var He = L.ReactCurrentOwner, Rt = {
|
|
1203
1203
|
key: !0,
|
|
1204
1204
|
ref: !0,
|
|
1205
1205
|
__self: !0,
|
|
@@ -1246,7 +1246,7 @@ function br() {
|
|
|
1246
1246
|
});
|
|
1247
1247
|
}
|
|
1248
1248
|
}
|
|
1249
|
-
var
|
|
1249
|
+
var At = function(e, t, o, s, v, g, d) {
|
|
1250
1250
|
var f = {
|
|
1251
1251
|
// This tag allows us to uniquely identify this as a React Element
|
|
1252
1252
|
$$typeof: n,
|
|
@@ -1256,7 +1256,7 @@ function br() {
|
|
|
1256
1256
|
ref: o,
|
|
1257
1257
|
props: d,
|
|
1258
1258
|
// Record the component responsible for creating this element.
|
|
1259
|
-
_owner:
|
|
1259
|
+
_owner: g
|
|
1260
1260
|
};
|
|
1261
1261
|
return f._store = {}, Object.defineProperty(f._store, "validated", {
|
|
1262
1262
|
configurable: !1,
|
|
@@ -1275,25 +1275,25 @@ function br() {
|
|
|
1275
1275
|
value: v
|
|
1276
1276
|
}), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
|
|
1277
1277
|
};
|
|
1278
|
-
function
|
|
1278
|
+
function Ot(e, t, o, s, v) {
|
|
1279
1279
|
{
|
|
1280
|
-
var
|
|
1281
|
-
o !== void 0 && (qe(o), f = "" + o), xt(t) && (qe(t.key), f = "" + t.key), St(t) && (
|
|
1282
|
-
for (
|
|
1283
|
-
K.call(t,
|
|
1280
|
+
var g, d = {}, f = null, A = null;
|
|
1281
|
+
o !== void 0 && (qe(o), f = "" + o), xt(t) && (qe(t.key), f = "" + t.key), St(t) && (A = t.ref, kt(t));
|
|
1282
|
+
for (g in t)
|
|
1283
|
+
K.call(t, g) && !Rt.hasOwnProperty(g) && (d[g] = t[g]);
|
|
1284
1284
|
if (e && e.defaultProps) {
|
|
1285
1285
|
var x = e.defaultProps;
|
|
1286
|
-
for (
|
|
1287
|
-
d[
|
|
1286
|
+
for (g in x)
|
|
1287
|
+
d[g] === void 0 && (d[g] = x[g]);
|
|
1288
1288
|
}
|
|
1289
|
-
if (f ||
|
|
1289
|
+
if (f || A) {
|
|
1290
1290
|
var k = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
1291
|
-
f && Et(d, k),
|
|
1291
|
+
f && Et(d, k), A && jt(d, k);
|
|
1292
1292
|
}
|
|
1293
|
-
return
|
|
1293
|
+
return At(e, f, A, v, s, He.current, d);
|
|
1294
1294
|
}
|
|
1295
1295
|
}
|
|
1296
|
-
var
|
|
1296
|
+
var _e = L.ReactCurrentOwner, Ge = L.ReactDebugCurrentFrame;
|
|
1297
1297
|
function z(e) {
|
|
1298
1298
|
if (e) {
|
|
1299
1299
|
var t = e._owner, o = oe(e.type, e._source, t ? t.type : null);
|
|
@@ -1301,15 +1301,15 @@ function br() {
|
|
|
1301
1301
|
} else
|
|
1302
1302
|
Ge.setExtraStackFrame(null);
|
|
1303
1303
|
}
|
|
1304
|
-
var
|
|
1305
|
-
|
|
1306
|
-
function
|
|
1304
|
+
var Re;
|
|
1305
|
+
Re = !1;
|
|
1306
|
+
function Se(e) {
|
|
1307
1307
|
return typeof e == "object" && e !== null && e.$$typeof === n;
|
|
1308
1308
|
}
|
|
1309
1309
|
function Ze() {
|
|
1310
1310
|
{
|
|
1311
|
-
if (
|
|
1312
|
-
var e =
|
|
1311
|
+
if (_e.current) {
|
|
1312
|
+
var e = N(_e.current.type);
|
|
1313
1313
|
if (e)
|
|
1314
1314
|
return `
|
|
1315
1315
|
|
|
@@ -1344,25 +1344,25 @@ Check the top-level render call using <` + o + ">.");
|
|
|
1344
1344
|
return;
|
|
1345
1345
|
Xe[o] = !0;
|
|
1346
1346
|
var s = "";
|
|
1347
|
-
e && e._owner && e._owner !==
|
|
1347
|
+
e && e._owner && e._owner !== _e.current && (s = " It was passed a child from " + N(e._owner.type) + "."), z(e), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', o, s), z(null);
|
|
1348
1348
|
}
|
|
1349
1349
|
}
|
|
1350
1350
|
function et(e, t) {
|
|
1351
1351
|
{
|
|
1352
1352
|
if (typeof e != "object")
|
|
1353
1353
|
return;
|
|
1354
|
-
if (
|
|
1354
|
+
if (be(e))
|
|
1355
1355
|
for (var o = 0; o < e.length; o++) {
|
|
1356
1356
|
var s = e[o];
|
|
1357
|
-
|
|
1357
|
+
Se(s) && Qe(s, t);
|
|
1358
1358
|
}
|
|
1359
|
-
else if (
|
|
1359
|
+
else if (Se(e))
|
|
1360
1360
|
e._store && (e._store.validated = !0);
|
|
1361
1361
|
else if (e) {
|
|
1362
|
-
var v =
|
|
1362
|
+
var v = he(e);
|
|
1363
1363
|
if (typeof v == "function" && v !== e.entries)
|
|
1364
|
-
for (var
|
|
1365
|
-
|
|
1364
|
+
for (var g = v.call(e), d; !(d = g.next()).done; )
|
|
1365
|
+
Se(d.value) && Qe(d.value, t);
|
|
1366
1366
|
}
|
|
1367
1367
|
}
|
|
1368
1368
|
}
|
|
@@ -1381,11 +1381,11 @@ Check the top-level render call using <` + o + ">.");
|
|
|
1381
1381
|
else
|
|
1382
1382
|
return;
|
|
1383
1383
|
if (o) {
|
|
1384
|
-
var s =
|
|
1385
|
-
|
|
1386
|
-
} else if (t.PropTypes !== void 0 && !
|
|
1387
|
-
|
|
1388
|
-
var v =
|
|
1384
|
+
var s = N(t);
|
|
1385
|
+
gt(o, e.props, "prop", s, e);
|
|
1386
|
+
} else if (t.PropTypes !== void 0 && !Re) {
|
|
1387
|
+
Re = !0;
|
|
1388
|
+
var v = N(t);
|
|
1389
1389
|
j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", v || "Unknown");
|
|
1390
1390
|
}
|
|
1391
1391
|
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -1404,25 +1404,25 @@ Check the top-level render call using <` + o + ">.");
|
|
|
1404
1404
|
}
|
|
1405
1405
|
}
|
|
1406
1406
|
var tt = {};
|
|
1407
|
-
function rt(e, t, o, s, v,
|
|
1407
|
+
function rt(e, t, o, s, v, g) {
|
|
1408
1408
|
{
|
|
1409
1409
|
var d = B(e);
|
|
1410
1410
|
if (!d) {
|
|
1411
1411
|
var f = "";
|
|
1412
1412
|
(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.");
|
|
1413
|
-
var
|
|
1414
|
-
|
|
1413
|
+
var A = Ct();
|
|
1414
|
+
A ? f += A : f += Ze();
|
|
1415
1415
|
var x;
|
|
1416
|
-
e === null ? x = "null" :
|
|
1416
|
+
e === null ? x = "null" : be(e) ? x = "array" : e !== void 0 && e.$$typeof === n ? (x = "<" + (N(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : x = 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", x, f);
|
|
1417
1417
|
}
|
|
1418
|
-
var k =
|
|
1418
|
+
var k = Ot(e, t, o, v, g);
|
|
1419
1419
|
if (k == null)
|
|
1420
1420
|
return k;
|
|
1421
1421
|
if (d) {
|
|
1422
1422
|
var P = t.children;
|
|
1423
1423
|
if (P !== void 0)
|
|
1424
1424
|
if (s)
|
|
1425
|
-
if (
|
|
1425
|
+
if (be(P)) {
|
|
1426
1426
|
for (var V = 0; V < P.length; V++)
|
|
1427
1427
|
et(P[V], e);
|
|
1428
1428
|
Object.freeze && Object.freeze(P);
|
|
@@ -1432,17 +1432,17 @@ Check the top-level render call using <` + o + ">.");
|
|
|
1432
1432
|
et(P, e);
|
|
1433
1433
|
}
|
|
1434
1434
|
if (K.call(t, "key")) {
|
|
1435
|
-
var
|
|
1435
|
+
var W = N(e), C = Object.keys(t).filter(function(Dt) {
|
|
1436
1436
|
return Dt !== "key";
|
|
1437
|
-
}),
|
|
1438
|
-
if (!tt[
|
|
1437
|
+
}), xe = C.length > 0 ? "{key: someKey, " + C.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1438
|
+
if (!tt[W + xe]) {
|
|
1439
1439
|
var Mt = C.length > 0 ? "{" + C.join(": ..., ") + ": ...}" : "{}";
|
|
1440
1440
|
j(`A props object containing a "key" prop is being spread into JSX:
|
|
1441
1441
|
let props = %s;
|
|
1442
1442
|
<%s {...props} />
|
|
1443
1443
|
React keys must be passed directly to JSX without using spread:
|
|
1444
1444
|
let props = %s;
|
|
1445
|
-
<%s key={someKey} {...props} />`,
|
|
1445
|
+
<%s key={someKey} {...props} />`, xe, W, Mt, W), tt[W + xe] = !0;
|
|
1446
1446
|
}
|
|
1447
1447
|
}
|
|
1448
1448
|
return e === c ? Tt(k) : Pt(k), k;
|
|
@@ -1458,7 +1458,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1458
1458
|
it.Fragment = c, it.jsx = Bt, it.jsxs = It;
|
|
1459
1459
|
}()), it;
|
|
1460
1460
|
}
|
|
1461
|
-
process.env.NODE_ENV === "production" ?
|
|
1461
|
+
process.env.NODE_ENV === "production" ? mr() : br();
|
|
1462
1462
|
const _r = "0.0.40", nr = {
|
|
1463
1463
|
version: _r
|
|
1464
1464
|
}, se = {}, H = {
|
|
@@ -1478,14 +1478,14 @@ const _r = "0.0.40", nr = {
|
|
|
1478
1478
|
id: 0
|
|
1479
1479
|
}
|
|
1480
1480
|
};
|
|
1481
|
-
function
|
|
1481
|
+
function Oe() {
|
|
1482
1482
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof self < "u" ? self : typeof global < "u" ? global : {};
|
|
1483
1483
|
}
|
|
1484
|
-
|
|
1485
|
-
Object.assign(
|
|
1484
|
+
Oe().elcrm || (Oe().elcrm = {});
|
|
1485
|
+
Object.assign(Oe().elcrm, { router: nr.version });
|
|
1486
1486
|
function te(r) {
|
|
1487
1487
|
var n, a, c, l;
|
|
1488
|
-
const p =
|
|
1488
|
+
const p = Oe();
|
|
1489
1489
|
if (p.ROUTER_PARAMS) {
|
|
1490
1490
|
r.debug || p.ROUTER_PARAMS.debug;
|
|
1491
1491
|
const S = {
|
|
@@ -1510,20 +1510,20 @@ function te(r) {
|
|
|
1510
1510
|
p.ROUTER_PARAMS = { ...H, ...r, prev: S };
|
|
1511
1511
|
}
|
|
1512
1512
|
}
|
|
1513
|
-
function
|
|
1514
|
-
return
|
|
1513
|
+
function O() {
|
|
1514
|
+
return Oe().ROUTER_PARAMS || H;
|
|
1515
1515
|
}
|
|
1516
|
-
function
|
|
1517
|
-
const n =
|
|
1516
|
+
function ke(r) {
|
|
1517
|
+
const n = Oe();
|
|
1518
1518
|
n.ROUTER_PARAMS ? n.ROUTER_PARAMS.LISTENER = {
|
|
1519
1519
|
...n.ROUTER_PARAMS.LISTENER,
|
|
1520
1520
|
...r
|
|
1521
1521
|
} : n.ROUTER_PARAMS.LISTENER = { ...r };
|
|
1522
1522
|
}
|
|
1523
1523
|
function ie() {
|
|
1524
|
-
return
|
|
1524
|
+
return Oe().ROUTER_PARAMS.LISTENER || H.LISTENER;
|
|
1525
1525
|
}
|
|
1526
|
-
var
|
|
1526
|
+
var ve;
|
|
1527
1527
|
((r) => {
|
|
1528
1528
|
function n() {
|
|
1529
1529
|
var _;
|
|
@@ -1543,20 +1543,20 @@ var pe;
|
|
|
1543
1543
|
te({
|
|
1544
1544
|
id: 0,
|
|
1545
1545
|
tab: "",
|
|
1546
|
-
page: (_ = localStorage.getItem("d")) != null && _.length ?
|
|
1547
|
-
module:
|
|
1546
|
+
page: (_ = localStorage.getItem("d")) != null && _.length ? O().page : O().auth,
|
|
1547
|
+
module: O().module
|
|
1548
1548
|
});
|
|
1549
1549
|
return !0;
|
|
1550
1550
|
}
|
|
1551
1551
|
function a() {
|
|
1552
|
-
se.id = 0, se.tab = "", se.page =
|
|
1552
|
+
se.id = 0, se.tab = "", se.page = O().page, se.module = O().module;
|
|
1553
1553
|
}
|
|
1554
1554
|
r.Reset = a;
|
|
1555
1555
|
function c({
|
|
1556
|
-
module: _ =
|
|
1557
|
-
page: E =
|
|
1558
|
-
auth: B =
|
|
1559
|
-
debug: M =
|
|
1556
|
+
module: _ = O().module,
|
|
1557
|
+
page: E = O().page,
|
|
1558
|
+
auth: B = O().auth,
|
|
1559
|
+
debug: M = O().debug
|
|
1560
1560
|
}) {
|
|
1561
1561
|
te({ page: E, module: _, auth: B, debug: M }), n();
|
|
1562
1562
|
}
|
|
@@ -1564,97 +1564,97 @@ var pe;
|
|
|
1564
1564
|
function l(_) {
|
|
1565
1565
|
let E = (I) => (te({ page: I }), I);
|
|
1566
1566
|
const [B, M] = F.useState(
|
|
1567
|
-
S() || _ && E(_) ||
|
|
1567
|
+
S() || _ && E(_) || O().page
|
|
1568
1568
|
);
|
|
1569
|
-
return
|
|
1569
|
+
return ke({ page: (I) => {
|
|
1570
1570
|
M(I);
|
|
1571
1571
|
} }), B;
|
|
1572
1572
|
}
|
|
1573
1573
|
r.usePage = l;
|
|
1574
1574
|
function p(_, E = !0, B = {}) {
|
|
1575
1575
|
te({ page: _, ...B }), sessionStorage.setItem(
|
|
1576
|
-
|
|
1577
|
-
ue.enCode(
|
|
1576
|
+
O().STORAGE,
|
|
1577
|
+
ue.enCode(O())
|
|
1578
1578
|
), E && ie().page(_);
|
|
1579
1579
|
}
|
|
1580
1580
|
r.setPage = p;
|
|
1581
1581
|
function S() {
|
|
1582
|
-
return
|
|
1582
|
+
return O().page;
|
|
1583
1583
|
}
|
|
1584
1584
|
r.getPage = S;
|
|
1585
|
-
function
|
|
1586
|
-
return
|
|
1585
|
+
function m(_) {
|
|
1586
|
+
return O().page === _;
|
|
1587
1587
|
}
|
|
1588
|
-
r.isPage =
|
|
1588
|
+
r.isPage = m;
|
|
1589
1589
|
function u() {
|
|
1590
|
-
return
|
|
1590
|
+
return O().prev;
|
|
1591
1591
|
}
|
|
1592
1592
|
r.getBack = u;
|
|
1593
1593
|
function R(_, E) {
|
|
1594
1594
|
const [B, M] = F.useState(
|
|
1595
|
-
b() || _ ||
|
|
1595
|
+
b() || _ || O().module
|
|
1596
1596
|
);
|
|
1597
|
-
return
|
|
1597
|
+
return ke({ module: M }), B;
|
|
1598
1598
|
}
|
|
1599
1599
|
r.useModule = R;
|
|
1600
1600
|
function h(_, E = !0) {
|
|
1601
1601
|
te({ module: _ }), sessionStorage.setItem(
|
|
1602
|
-
|
|
1603
|
-
ue.enCode(
|
|
1602
|
+
O().STORAGE,
|
|
1603
|
+
ue.enCode(O())
|
|
1604
1604
|
), E && ie().module(_);
|
|
1605
1605
|
}
|
|
1606
1606
|
r.setModule = h;
|
|
1607
1607
|
function b() {
|
|
1608
|
-
return
|
|
1608
|
+
return O().module || "";
|
|
1609
1609
|
}
|
|
1610
1610
|
r.getModule = b;
|
|
1611
|
-
function
|
|
1612
|
-
return
|
|
1611
|
+
function y(_) {
|
|
1612
|
+
return O().module === _;
|
|
1613
1613
|
}
|
|
1614
|
-
r.isModule =
|
|
1615
|
-
function
|
|
1614
|
+
r.isModule = y;
|
|
1615
|
+
function $(_, E) {
|
|
1616
1616
|
if (typeof _ != "function") {
|
|
1617
|
-
const [B, M] = F.useState(!E), [I,
|
|
1618
|
-
return
|
|
1617
|
+
const [B, M] = F.useState(!E), [I, N] = F.useState(_ || he());
|
|
1618
|
+
return ke({ tabs: N }), E && F.useEffect(() => {
|
|
1619
1619
|
M(!0);
|
|
1620
1620
|
}, []), [I, B];
|
|
1621
1621
|
} else
|
|
1622
|
-
|
|
1622
|
+
ke({ tabs: _ });
|
|
1623
1623
|
}
|
|
1624
|
-
r.useTabs =
|
|
1624
|
+
r.useTabs = $;
|
|
1625
1625
|
function w(_) {
|
|
1626
1626
|
let E = (I) => (te({ tab: I }), I);
|
|
1627
1627
|
const [B, M] = F.useState(
|
|
1628
|
-
|
|
1628
|
+
he() || _ && E(_) || O().tab
|
|
1629
1629
|
);
|
|
1630
|
-
return
|
|
1630
|
+
return ke({ tabs: (I) => {
|
|
1631
1631
|
M(I);
|
|
1632
1632
|
} }), B;
|
|
1633
1633
|
}
|
|
1634
1634
|
r.useTab = w;
|
|
1635
1635
|
async function Ne(_, E = !0) {
|
|
1636
1636
|
te({ tab: _ }), sessionStorage.setItem(
|
|
1637
|
-
|
|
1638
|
-
ue.enCode(
|
|
1637
|
+
O().STORAGE,
|
|
1638
|
+
ue.enCode(O())
|
|
1639
1639
|
), E && (ie().tabs && ie().tabs(_));
|
|
1640
1640
|
}
|
|
1641
1641
|
r.setTabs = Ne;
|
|
1642
|
-
function
|
|
1643
|
-
return
|
|
1642
|
+
function he() {
|
|
1643
|
+
return O().tab;
|
|
1644
1644
|
}
|
|
1645
|
-
r.getTabs =
|
|
1646
|
-
function
|
|
1647
|
-
return
|
|
1645
|
+
r.getTabs = he;
|
|
1646
|
+
function L(_) {
|
|
1647
|
+
return O().tab === _;
|
|
1648
1648
|
}
|
|
1649
|
-
r.isTabs =
|
|
1649
|
+
r.isTabs = L;
|
|
1650
1650
|
function j(_) {
|
|
1651
1651
|
if (typeof _ != "function") {
|
|
1652
1652
|
const [E, B] = F.useState(_ || Ce());
|
|
1653
|
-
return
|
|
1653
|
+
return ke({ id: (M) => {
|
|
1654
1654
|
B(M);
|
|
1655
1655
|
} }), E;
|
|
1656
1656
|
} else
|
|
1657
|
-
|
|
1657
|
+
ke({ id: _ });
|
|
1658
1658
|
}
|
|
1659
1659
|
r.useId = j;
|
|
1660
1660
|
function Be(_) {
|
|
@@ -1662,40 +1662,40 @@ var pe;
|
|
|
1662
1662
|
r.subId = Be;
|
|
1663
1663
|
async function Ie(_, E = !0) {
|
|
1664
1664
|
te({ id: _ }), sessionStorage.setItem(
|
|
1665
|
-
|
|
1666
|
-
ue.enCode(
|
|
1665
|
+
O().STORAGE,
|
|
1666
|
+
ue.enCode(O())
|
|
1667
1667
|
), E && ie().id(_);
|
|
1668
1668
|
}
|
|
1669
1669
|
r.setId = Ie;
|
|
1670
1670
|
function Ce() {
|
|
1671
|
-
return
|
|
1671
|
+
return O().id;
|
|
1672
1672
|
}
|
|
1673
1673
|
r.getId = Ce;
|
|
1674
1674
|
function Me(_) {
|
|
1675
|
-
return Number(
|
|
1675
|
+
return Number(O().id) === _;
|
|
1676
1676
|
}
|
|
1677
1677
|
r.isId = Me;
|
|
1678
1678
|
async function De(_) {
|
|
1679
|
-
var E, B, M, I,
|
|
1679
|
+
var E, B, M, I, N, D, Y, le;
|
|
1680
1680
|
const { page: Z, module: X, tab: Q, id: ee } = _;
|
|
1681
|
-
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 && ((B = (E = ie()).id) == null || B.call(E, ee)), Q !== void 0 && ((I = (M = ie()).tabs) == null || I.call(M, Q)), X !== void 0 && ((D = (
|
|
1682
|
-
|
|
1683
|
-
ue.enCode(
|
|
1681
|
+
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 && ((B = (E = ie()).id) == null || B.call(E, ee)), Q !== void 0 && ((I = (M = ie()).tabs) == null || I.call(M, Q)), X !== void 0 && ((D = (N = ie()).module) == null || D.call(N, X)), Z !== void 0 && ((le = (Y = ie()).page) == null || le.call(Y, Z)), sessionStorage.setItem(
|
|
1682
|
+
O().STORAGE,
|
|
1683
|
+
ue.enCode(O())
|
|
1684
1684
|
);
|
|
1685
1685
|
}
|
|
1686
1686
|
r.navigate = De;
|
|
1687
|
-
})(
|
|
1688
|
-
const Rr = "_n_zlj3m_1", Sr = "_i_zlj3m_10", xr = "_t_zlj3m_28", kr = "_e_zlj3m_32", Er = "_s_zlj3m_35", jr = "_w_zlj3m_38",
|
|
1687
|
+
})(ve || (ve = {}));
|
|
1688
|
+
const Rr = "_n_zlj3m_1", Sr = "_i_zlj3m_10", xr = "_t_zlj3m_28", kr = "_e_zlj3m_32", Er = "_s_zlj3m_35", jr = "_w_zlj3m_38", Ar = "_h_zlj3m_41", je = {
|
|
1689
1689
|
n: Rr,
|
|
1690
1690
|
i: Sr,
|
|
1691
1691
|
t: xr,
|
|
1692
1692
|
e: kr,
|
|
1693
1693
|
s: Er,
|
|
1694
1694
|
w: jr,
|
|
1695
|
-
h:
|
|
1695
|
+
h: Ar
|
|
1696
1696
|
};
|
|
1697
1697
|
let ft = {};
|
|
1698
|
-
function
|
|
1698
|
+
function Or() {
|
|
1699
1699
|
const [r, n] = F.useState([]);
|
|
1700
1700
|
return ft.set = (a) => {
|
|
1701
1701
|
n([...r, a]);
|
|
@@ -1703,7 +1703,7 @@ function Ar() {
|
|
|
1703
1703
|
r.forEach((c, l) => {
|
|
1704
1704
|
c.key === a && r.splice(l, 1);
|
|
1705
1705
|
}), n(r);
|
|
1706
|
-
}, r.length === 0 ? /* @__PURE__ */ i.jsx(i.Fragment, {}) : /* @__PURE__ */ i.jsx("div", { className:
|
|
1706
|
+
}, r.length === 0 ? /* @__PURE__ */ i.jsx(i.Fragment, {}) : /* @__PURE__ */ i.jsx("div", { className: je.n, children: r.map((a) => a.item) });
|
|
1707
1707
|
}
|
|
1708
1708
|
function Cr(r) {
|
|
1709
1709
|
let n = (/* @__PURE__ */ new Date()).getTime();
|
|
@@ -1733,14 +1733,14 @@ function wr(r) {
|
|
|
1733
1733
|
break;
|
|
1734
1734
|
}
|
|
1735
1735
|
const S = {
|
|
1736
|
-
error:
|
|
1737
|
-
success:
|
|
1738
|
-
warning:
|
|
1736
|
+
error: je.e,
|
|
1737
|
+
success: je.s,
|
|
1738
|
+
warning: je.w
|
|
1739
1739
|
};
|
|
1740
1740
|
return /* @__PURE__ */ i.jsx(i.Fragment, { children: c ? /* @__PURE__ */ i.jsx(i.Fragment, {}) : /* @__PURE__ */ i.jsxs(
|
|
1741
1741
|
"div",
|
|
1742
1742
|
{
|
|
1743
|
-
className:
|
|
1743
|
+
className: je.i + S[n.type] + ` ${n.thema !== void 0 ? je.h : ""}`,
|
|
1744
1744
|
"data-status": a,
|
|
1745
1745
|
children: [
|
|
1746
1746
|
/* @__PURE__ */ i.jsx(
|
|
@@ -1756,14 +1756,14 @@ function wr(r) {
|
|
|
1756
1756
|
children: p
|
|
1757
1757
|
}
|
|
1758
1758
|
),
|
|
1759
|
-
/* @__PURE__ */ i.jsx("span", { className:
|
|
1759
|
+
/* @__PURE__ */ i.jsx("span", { className: je.t, children: n.text })
|
|
1760
1760
|
]
|
|
1761
1761
|
}
|
|
1762
1762
|
) });
|
|
1763
1763
|
}
|
|
1764
|
-
let
|
|
1764
|
+
let Ae = {
|
|
1765
1765
|
Send: Cr,
|
|
1766
|
-
Init:
|
|
1766
|
+
Init: Or
|
|
1767
1767
|
};
|
|
1768
1768
|
const Pr = "_d_1u25q_1", Tr = "_b_1u25q_21", $r = "_o_1u25q_25", Nr = "_m_1u25q_30", Br = "_t_1u25q_41", Ir = "_a_1u25q_108", Mr = "_v_1u25q_118", fe = {
|
|
1769
1769
|
d: Pr,
|
|
@@ -1773,7 +1773,7 @@ const Pr = "_d_1u25q_1", Tr = "_b_1u25q_21", $r = "_o_1u25q_25", Nr = "_m_1u25q_
|
|
|
1773
1773
|
t: Br,
|
|
1774
1774
|
a: Ir,
|
|
1775
1775
|
v: Mr
|
|
1776
|
-
},
|
|
1776
|
+
}, de = {
|
|
1777
1777
|
is: !1,
|
|
1778
1778
|
MainButton: {},
|
|
1779
1779
|
BackButton: {}
|
|
@@ -1824,25 +1824,25 @@ G.users = {
|
|
|
1824
1824
|
};
|
|
1825
1825
|
const Dr = () => {
|
|
1826
1826
|
if (location.hostname === "localhost") {
|
|
1827
|
-
let [r, n] = J(!1), [a, c] = J(!1), [l, p] = J("dark"), [S,
|
|
1828
|
-
|
|
1827
|
+
let [r, n] = J(!1), [a, c] = J(!1), [l, p] = J("dark"), [S, m] = J(!1), [u, R] = J(!1);
|
|
1828
|
+
de.is = !0, de.MainButton.set = n, de.BackButton.set = c, pe(() => {
|
|
1829
1829
|
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";
|
|
1830
|
-
for (let
|
|
1830
|
+
for (let y in G[l])
|
|
1831
1831
|
document.documentElement.style.setProperty(
|
|
1832
|
-
|
|
1833
|
-
G[l][
|
|
1832
|
+
y,
|
|
1833
|
+
G[l][y]
|
|
1834
1834
|
);
|
|
1835
1835
|
Te.safeAreaInset.bottom === 0 && document.documentElement.style.setProperty(
|
|
1836
1836
|
"--tg-safe-area-inset-bottom",
|
|
1837
1837
|
"16px"
|
|
1838
1838
|
);
|
|
1839
1839
|
}, []);
|
|
1840
|
-
let h = (
|
|
1841
|
-
for (let
|
|
1842
|
-
document.documentElement.style.setProperty(
|
|
1843
|
-
p(
|
|
1840
|
+
let h = (y) => {
|
|
1841
|
+
for (let $ in G[y])
|
|
1842
|
+
document.documentElement.style.setProperty($, G[y][$]);
|
|
1843
|
+
p(y), m(!1);
|
|
1844
1844
|
}, b = () => {
|
|
1845
|
-
|
|
1845
|
+
m(!1), R(!0);
|
|
1846
1846
|
};
|
|
1847
1847
|
return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
1848
1848
|
/* @__PURE__ */ i.jsxs("div", { className: fe.d, children: [
|
|
@@ -1850,8 +1850,8 @@ const Dr = () => {
|
|
|
1850
1850
|
"div",
|
|
1851
1851
|
{
|
|
1852
1852
|
onClick: () => {
|
|
1853
|
-
var
|
|
1854
|
-
a.page === void 0 ? (
|
|
1853
|
+
var y;
|
|
1854
|
+
a.page === void 0 ? (y = a.callback) == null || y.call(a) : ve.setPage(a.page);
|
|
1855
1855
|
},
|
|
1856
1856
|
className: fe.b,
|
|
1857
1857
|
children: "Назад"
|
|
@@ -1861,17 +1861,17 @@ const Dr = () => {
|
|
|
1861
1861
|
"div",
|
|
1862
1862
|
{
|
|
1863
1863
|
className: fe.o,
|
|
1864
|
-
onClick: () =>
|
|
1864
|
+
onClick: () => m(!S),
|
|
1865
1865
|
children: "Меню"
|
|
1866
1866
|
}
|
|
1867
1867
|
)
|
|
1868
1868
|
] }),
|
|
1869
|
-
/* @__PURE__ */ i.jsx(
|
|
1869
|
+
/* @__PURE__ */ i.jsx(Ae.Init, {}),
|
|
1870
1870
|
r && /* @__PURE__ */ i.jsx("div", { className: fe.m, children: /* @__PURE__ */ i.jsx(
|
|
1871
1871
|
"button",
|
|
1872
1872
|
{
|
|
1873
1873
|
onClick: () => {
|
|
1874
|
-
r.page &&
|
|
1874
|
+
r.page && ve.setPage(r.page), r.callback && r.callback();
|
|
1875
1875
|
},
|
|
1876
1876
|
children: r.text
|
|
1877
1877
|
}
|
|
@@ -1908,13 +1908,13 @@ const Dr = () => {
|
|
|
1908
1908
|
) })
|
|
1909
1909
|
] })
|
|
1910
1910
|
] }),
|
|
1911
|
-
/* @__PURE__ */ i.jsx("li", { children: /* @__PURE__ */ i.jsx("button", { onClick: () =>
|
|
1911
|
+
/* @__PURE__ */ i.jsx("li", { children: /* @__PURE__ */ i.jsx("button", { onClick: () => m(!S), children: "Closed" }) })
|
|
1912
1912
|
] })
|
|
1913
1913
|
] }) : "",
|
|
1914
1914
|
u ? /* @__PURE__ */ i.jsx(Fr, { setAuthorization: R }) : ""
|
|
1915
1915
|
] });
|
|
1916
1916
|
} else
|
|
1917
|
-
return
|
|
1917
|
+
return pe(() => {
|
|
1918
1918
|
document.documentElement.style.setProperty(
|
|
1919
1919
|
"--tg-theme-secondary-bg-color-alpha",
|
|
1920
1920
|
Te.themeParams.secondary_bg_color + "d3"
|
|
@@ -1925,7 +1925,7 @@ const Dr = () => {
|
|
|
1925
1925
|
"--tg-safe-area-inset-bottom",
|
|
1926
1926
|
"16px"
|
|
1927
1927
|
);
|
|
1928
|
-
}, []), /* @__PURE__ */ i.jsx(i.Fragment, { children: /* @__PURE__ */ i.jsx(
|
|
1928
|
+
}, []), /* @__PURE__ */ i.jsx(i.Fragment, { children: /* @__PURE__ */ i.jsx(Ae.Init, {}) });
|
|
1929
1929
|
}, Fr = ({ setAuthorization: r }) => {
|
|
1930
1930
|
let n = {}, a = () => {
|
|
1931
1931
|
localStorage.setItem("auth", n);
|
|
@@ -1934,9 +1934,9 @@ const Dr = () => {
|
|
|
1934
1934
|
/* @__PURE__ */ i.jsx("fieldset", {}),
|
|
1935
1935
|
/* @__PURE__ */ i.jsx("div", { onClick: a, children: " Сохранить " })
|
|
1936
1936
|
] }) });
|
|
1937
|
-
},
|
|
1938
|
-
p:
|
|
1939
|
-
s:
|
|
1937
|
+
}, Lr = "_p_1axqy_1", Wr = "_s_1axqy_17", Jt = {
|
|
1938
|
+
p: Lr,
|
|
1939
|
+
s: Wr
|
|
1940
1940
|
}, Ur = ({ className: r, children: n, isScroll: a = !0 }) => /* @__PURE__ */ i.jsx(
|
|
1941
1941
|
"div",
|
|
1942
1942
|
{
|
|
@@ -1951,7 +1951,7 @@ const Dr = () => {
|
|
|
1951
1951
|
className: [zr.l, n].filter((a) => a !== void 0).join(" "),
|
|
1952
1952
|
children: r
|
|
1953
1953
|
}
|
|
1954
|
-
), qr = "_m_ppm7n_2", Hr = "_g_ppm7n_10", Jr = "_i_ppm7n_18", Kr = "_c_ppm7n_35", Gr = "_l_ppm7n_42", Zr = "_a_ppm7n_57", Xr = "_n_ppm7n_62",
|
|
1954
|
+
), qr = "_m_ppm7n_2", Hr = "_g_ppm7n_10", Jr = "_i_ppm7n_18", Kr = "_c_ppm7n_35", Gr = "_l_ppm7n_42", Zr = "_a_ppm7n_57", Xr = "_n_ppm7n_62", Ee = {
|
|
1955
1955
|
m: qr,
|
|
1956
1956
|
g: Hr,
|
|
1957
1957
|
i: Jr,
|
|
@@ -1961,36 +1961,36 @@ const Dr = () => {
|
|
|
1961
1961
|
n: Xr
|
|
1962
1962
|
}, Qr = ({ items: r }) => {
|
|
1963
1963
|
const n = (c) => {
|
|
1964
|
-
|
|
1964
|
+
ve.setPage(c);
|
|
1965
1965
|
}, a = (c) => {
|
|
1966
1966
|
Te.openTelegramLink(c);
|
|
1967
1967
|
};
|
|
1968
|
-
return /* @__PURE__ */ i.jsx("div", { className:
|
|
1968
|
+
return /* @__PURE__ */ i.jsx("div", { className: Ee.m, children: r.map((c) => /* @__PURE__ */ i.jsx("div", { className: Ee.g, children: c.items.map((l, p) => /* @__PURE__ */ i.jsxs(
|
|
1969
1969
|
"div",
|
|
1970
1970
|
{
|
|
1971
|
-
className:
|
|
1971
|
+
className: Ee.i,
|
|
1972
1972
|
onClick: () => {
|
|
1973
1973
|
l.link && a(l.link), l.page && n(l.page), l.callback && l.callback();
|
|
1974
1974
|
},
|
|
1975
1975
|
children: [
|
|
1976
|
-
/* @__PURE__ */ i.jsxs("div", { className:
|
|
1976
|
+
/* @__PURE__ */ i.jsxs("div", { className: Ee.c, children: [
|
|
1977
1977
|
/* @__PURE__ */ i.jsx(
|
|
1978
1978
|
"span",
|
|
1979
1979
|
{
|
|
1980
|
-
className:
|
|
1980
|
+
className: Ee.l,
|
|
1981
1981
|
style: { background: l.color },
|
|
1982
1982
|
children: l.icon
|
|
1983
1983
|
}
|
|
1984
1984
|
),
|
|
1985
1985
|
l.title,
|
|
1986
|
-
l.count && /* @__PURE__ */ i.jsx("span", { className:
|
|
1986
|
+
l.count && /* @__PURE__ */ i.jsx("span", { className: Ee.n, children: l.count })
|
|
1987
1987
|
] }),
|
|
1988
|
-
/* @__PURE__ */ i.jsx("span", { className:
|
|
1988
|
+
/* @__PURE__ */ i.jsx("span", { className: Ee.a, children: "›" })
|
|
1989
1989
|
]
|
|
1990
1990
|
},
|
|
1991
1991
|
p
|
|
1992
1992
|
)) }, c.id)) });
|
|
1993
|
-
}, en = "_o_8ho2f_3", tn = "_m_8ho2f_14", rn = "_l_8ho2f_28", nn = "_r_8ho2f_33", on = "_x_8ho2f_38", an = "_h_8ho2f_42", sn = "_c_8ho2f_57",
|
|
1993
|
+
}, en = "_o_8ho2f_3", tn = "_m_8ho2f_14", rn = "_l_8ho2f_28", nn = "_r_8ho2f_33", on = "_x_8ho2f_38", an = "_h_8ho2f_42", sn = "_c_8ho2f_57", cn = "_u_8ho2f_72", ce = {
|
|
1994
1994
|
o: en,
|
|
1995
1995
|
m: tn,
|
|
1996
1996
|
l: rn,
|
|
@@ -1998,9 +1998,9 @@ const Dr = () => {
|
|
|
1998
1998
|
x: on,
|
|
1999
1999
|
h: an,
|
|
2000
2000
|
c: sn,
|
|
2001
|
-
u:
|
|
2001
|
+
u: cn
|
|
2002
2002
|
};
|
|
2003
|
-
function
|
|
2003
|
+
function ln({
|
|
2004
2004
|
children: r,
|
|
2005
2005
|
icon: n,
|
|
2006
2006
|
iconBadge: a = 0,
|
|
@@ -2009,29 +2009,29 @@ function cn({
|
|
|
2009
2009
|
view: p = "list",
|
|
2010
2010
|
position: S = "left"
|
|
2011
2011
|
}) {
|
|
2012
|
-
const [
|
|
2012
|
+
const [m, u] = J(!1), [R, h] = J(
|
|
2013
2013
|
null
|
|
2014
2014
|
);
|
|
2015
|
-
|
|
2016
|
-
let
|
|
2017
|
-
return
|
|
2018
|
-
|
|
2015
|
+
pe(() => {
|
|
2016
|
+
let y = document.querySelector(".p_sb");
|
|
2017
|
+
return y || (y = document.createElement("div"), y.className = "_p_sb", document.body.appendChild(y)), h(y), () => {
|
|
2018
|
+
y && y.parentNode && y.parentNode.removeChild(y);
|
|
2019
2019
|
};
|
|
2020
2020
|
}, []);
|
|
2021
2021
|
const b = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
2022
|
-
|
|
2022
|
+
m && /* @__PURE__ */ i.jsx("div", { className: ce.o, onClick: () => u(!1) }),
|
|
2023
2023
|
/* @__PURE__ */ i.jsxs(
|
|
2024
2024
|
"div",
|
|
2025
2025
|
{
|
|
2026
2026
|
className: $e(
|
|
2027
|
-
|
|
2028
|
-
S === "left" ?
|
|
2029
|
-
|
|
2027
|
+
ce.m,
|
|
2028
|
+
S === "left" ? ce.l : ce.r,
|
|
2029
|
+
m && ce.x,
|
|
2030
2030
|
l
|
|
2031
2031
|
),
|
|
2032
2032
|
children: [
|
|
2033
|
-
/* @__PURE__ */ i.jsxs("div", { className:
|
|
2034
|
-
c && /* @__PURE__ */ i.jsx("h3", { className:
|
|
2033
|
+
/* @__PURE__ */ i.jsxs("div", { className: ce.h, children: [
|
|
2034
|
+
c && /* @__PURE__ */ i.jsx("h3", { className: ce.t, children: c }),
|
|
2035
2035
|
/* @__PURE__ */ i.jsxs(
|
|
2036
2036
|
"svg",
|
|
2037
2037
|
{
|
|
@@ -2053,7 +2053,7 @@ function cn({
|
|
|
2053
2053
|
}
|
|
2054
2054
|
)
|
|
2055
2055
|
] }),
|
|
2056
|
-
/* @__PURE__ */ i.jsx("div", { className:
|
|
2056
|
+
/* @__PURE__ */ i.jsx("div", { className: ce.c, children: p === "list" ? /* @__PURE__ */ i.jsx("ul", { className: ce.u, children: r }) : r })
|
|
2057
2057
|
]
|
|
2058
2058
|
}
|
|
2059
2059
|
)
|
|
@@ -2081,9 +2081,9 @@ const or = ({
|
|
|
2081
2081
|
className: l,
|
|
2082
2082
|
onOpen: p
|
|
2083
2083
|
}) => {
|
|
2084
|
-
const [S,
|
|
2084
|
+
const [S, m] = F.useState(!1);
|
|
2085
2085
|
return st = () => {
|
|
2086
|
-
|
|
2086
|
+
m(!0), setTimeout(() => {
|
|
2087
2087
|
var u;
|
|
2088
2088
|
p == null || p(!1), (u = Pe == null ? void 0 : Pe.onClose) == null || u.call(Pe);
|
|
2089
2089
|
}, 300);
|
|
@@ -2127,7 +2127,7 @@ const or = ({
|
|
|
2127
2127
|
className: [vn.b, r].filter((a) => a !== void 0).join(" "),
|
|
2128
2128
|
children: n
|
|
2129
2129
|
}
|
|
2130
|
-
), Pe = [], Gt = (r, n) => r.findIndex((a) => (a == null ? void 0 : a.page) === n),
|
|
2130
|
+
), Pe = [], Gt = (r, n) => r.findIndex((a) => (a == null ? void 0 : a.page) === n), yn = ({
|
|
2131
2131
|
actions: r,
|
|
2132
2132
|
children: n,
|
|
2133
2133
|
className: a,
|
|
@@ -2136,57 +2136,57 @@ const or = ({
|
|
|
2136
2136
|
onPageChange: p,
|
|
2137
2137
|
direction: S = "row"
|
|
2138
2138
|
}) => {
|
|
2139
|
-
const [
|
|
2139
|
+
const [m, u] = F.useState(null), [R, h] = F.useState(
|
|
2140
2140
|
l ? Gt(r || [], l) : 0
|
|
2141
2141
|
);
|
|
2142
2142
|
return Pe.onClose = () => {
|
|
2143
2143
|
u(null), h(l ? Gt(r || [], l) : 0);
|
|
2144
|
-
},
|
|
2144
|
+
}, pe(() => {
|
|
2145
2145
|
if (!c)
|
|
2146
2146
|
return;
|
|
2147
|
-
const b = document.querySelectorAll("[contenteditable]"),
|
|
2147
|
+
const b = document.querySelectorAll("[contenteditable]"), y = () => {
|
|
2148
2148
|
const w = document.querySelector("footer");
|
|
2149
2149
|
w && (w.style.display = "flex");
|
|
2150
|
-
},
|
|
2150
|
+
}, $ = () => {
|
|
2151
2151
|
const w = document.querySelector("footer");
|
|
2152
2152
|
w && (w.style.display = "none");
|
|
2153
2153
|
};
|
|
2154
2154
|
return b.forEach((w) => {
|
|
2155
|
-
w.addEventListener("focus",
|
|
2155
|
+
w.addEventListener("focus", $, !0), w.addEventListener("blur", y, !0);
|
|
2156
2156
|
}), () => {
|
|
2157
2157
|
b.forEach((w) => {
|
|
2158
|
-
w.removeEventListener("focus",
|
|
2158
|
+
w.removeEventListener("focus", $, !0), w.removeEventListener("blur", y, !0);
|
|
2159
2159
|
});
|
|
2160
2160
|
};
|
|
2161
2161
|
}, []), /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
2162
|
-
|
|
2162
|
+
m,
|
|
2163
2163
|
/* @__PURE__ */ i.jsxs(
|
|
2164
2164
|
"footer",
|
|
2165
2165
|
{
|
|
2166
2166
|
className: `${Kt.h} ${Kt[S]} ${a} `,
|
|
2167
2167
|
children: [
|
|
2168
2168
|
n,
|
|
2169
|
-
r && r.map((b,
|
|
2169
|
+
r && r.map((b, y) => /* @__PURE__ */ i.jsxs(
|
|
2170
2170
|
"div",
|
|
2171
2171
|
{
|
|
2172
|
-
"data-active": R ===
|
|
2172
|
+
"data-active": R === y ? "true" : "false",
|
|
2173
2173
|
onClick: () => {
|
|
2174
|
-
b.page && (h(
|
|
2174
|
+
b.page && (h(y), p == null || p(b.page)), b.onClick && b.onClick(() => h(y)), b.component && (R === y ? st() : (u(b.component), h(y)));
|
|
2175
2175
|
},
|
|
2176
2176
|
children: [
|
|
2177
2177
|
b.icon,
|
|
2178
2178
|
b.badge && /* @__PURE__ */ i.jsx(hn, { value: b.badge })
|
|
2179
2179
|
]
|
|
2180
2180
|
},
|
|
2181
|
-
|
|
2181
|
+
y
|
|
2182
2182
|
))
|
|
2183
2183
|
]
|
|
2184
2184
|
}
|
|
2185
2185
|
)
|
|
2186
2186
|
] });
|
|
2187
|
-
},
|
|
2188
|
-
w:
|
|
2189
|
-
v:
|
|
2187
|
+
}, gn = "_w_yx04q_3", mn = "_v_yx04q_24", bn = "_s_yx04q_34", _n = "_n_yx04q_38", ct = {
|
|
2188
|
+
w: gn,
|
|
2189
|
+
v: mn,
|
|
2190
2190
|
s: bn,
|
|
2191
2191
|
n: _n
|
|
2192
2192
|
}, Ut = {};
|
|
@@ -2198,24 +2198,24 @@ function Rn({
|
|
|
2198
2198
|
isScroll: l = !0,
|
|
2199
2199
|
nextBackButton: p
|
|
2200
2200
|
}) {
|
|
2201
|
-
const [S,
|
|
2202
|
-
return
|
|
2201
|
+
const [S, m] = J(!1);
|
|
2202
|
+
return pe(() => {
|
|
2203
2203
|
if (!c) return;
|
|
2204
2204
|
const u = p === void 0 ? wn().pop() : p, R = () => {
|
|
2205
|
-
|
|
2205
|
+
m(!1), setTimeout(() => {
|
|
2206
2206
|
Xt(u || !1), a == null || a();
|
|
2207
2207
|
}, 300);
|
|
2208
2208
|
};
|
|
2209
2209
|
Ut[n] = {
|
|
2210
2210
|
onClose: R,
|
|
2211
2211
|
onOpen: () => {
|
|
2212
|
-
|
|
2212
|
+
m(!0);
|
|
2213
2213
|
}
|
|
2214
2214
|
}, Xt({
|
|
2215
2215
|
callback: R
|
|
2216
2216
|
});
|
|
2217
2217
|
const h = setTimeout(() => {
|
|
2218
|
-
|
|
2218
|
+
m(!0);
|
|
2219
2219
|
}, 10);
|
|
2220
2220
|
return () => {
|
|
2221
2221
|
clearTimeout(h);
|
|
@@ -2224,12 +2224,12 @@ function Rn({
|
|
|
2224
2224
|
"div",
|
|
2225
2225
|
{
|
|
2226
2226
|
className: $e(
|
|
2227
|
-
|
|
2228
|
-
S &&
|
|
2229
|
-
l &&
|
|
2227
|
+
ct.w,
|
|
2228
|
+
S && ct.v,
|
|
2229
|
+
l && ct.s
|
|
2230
2230
|
),
|
|
2231
2231
|
children: [
|
|
2232
|
-
/* @__PURE__ */ i.jsx("div", { className:
|
|
2232
|
+
/* @__PURE__ */ i.jsx("div", { className: ct.n }),
|
|
2233
2233
|
r
|
|
2234
2234
|
]
|
|
2235
2235
|
}
|
|
@@ -2250,14 +2250,14 @@ function En({
|
|
|
2250
2250
|
isLoading: l,
|
|
2251
2251
|
isScrollBar: p = !1
|
|
2252
2252
|
}) {
|
|
2253
|
-
const [S,
|
|
2254
|
-
|
|
2255
|
-
|
|
2253
|
+
const [S, m] = J(l || !1);
|
|
2254
|
+
pe(() => {
|
|
2255
|
+
m(l || !1);
|
|
2256
2256
|
}, [l]);
|
|
2257
2257
|
let u = {
|
|
2258
2258
|
onScroll: (R) => {
|
|
2259
|
-
const { scrollTop: h, scrollHeight: b, clientHeight:
|
|
2260
|
-
h +
|
|
2259
|
+
const { scrollTop: h, scrollHeight: b, clientHeight: y } = R.currentTarget;
|
|
2260
|
+
h + y >= b - c && !S && (m(!0), a == null || a());
|
|
2261
2261
|
}
|
|
2262
2262
|
};
|
|
2263
2263
|
return /* @__PURE__ */ i.jsx(
|
|
@@ -2269,10 +2269,10 @@ function En({
|
|
|
2269
2269
|
}
|
|
2270
2270
|
);
|
|
2271
2271
|
}
|
|
2272
|
-
const jn = "_a_ohhaz_1",
|
|
2272
|
+
const jn = "_a_ohhaz_1", An = "_l_ohhaz_12", On = "_r_ohhaz_15", Ft = {
|
|
2273
2273
|
a: jn,
|
|
2274
|
-
l:
|
|
2275
|
-
r:
|
|
2274
|
+
l: An,
|
|
2275
|
+
r: On
|
|
2276
2276
|
};
|
|
2277
2277
|
function Cn({
|
|
2278
2278
|
children: r,
|
|
@@ -2291,43 +2291,58 @@ const U = {
|
|
|
2291
2291
|
listen: [],
|
|
2292
2292
|
prev: {},
|
|
2293
2293
|
router: (r) => {
|
|
2294
|
-
r === !1 ? (
|
|
2294
|
+
r === !1 ? (T.WebApp.BackButton.isVisible = !1, T.WebApp.BackButton.offClick(U.listen[0]), U.listen.shift(), U.state.length !== 1 && U.state.pop()) : (T.WebApp.BackButton.isVisible = !0, T.WebApp.BackButton.offClick(U.listen[0]), U.listen.shift(), U.listen.push(() => {
|
|
2295
2295
|
var a;
|
|
2296
2296
|
let n = U.state.pop();
|
|
2297
|
-
U.prev =
|
|
2297
|
+
U.prev = ve.getPage(), n.page !== void 0 ? ve.setPage(n.page) : (a = n.callback) == null || a.call(n);
|
|
2298
2298
|
}), Te.BackButton.onClick(U.listen[0]));
|
|
2299
2299
|
}
|
|
2300
2300
|
}, $e = (...r) => r.filter((n) => n !== void 0 && n !== !1 && n !== null && n !== "").join(" ");
|
|
2301
|
-
var
|
|
2301
|
+
var T;
|
|
2302
2302
|
((r) => {
|
|
2303
2303
|
r.WebApp = window.Telegram.WebApp, r.getUser = () => {
|
|
2304
2304
|
var n;
|
|
2305
2305
|
return ((n = r.WebApp.initDataUnsafe) == null ? void 0 : n.user) === void 0 ? {} : r.WebApp.initDataUnsafe;
|
|
2306
|
+
}, r.Location = (n) => {
|
|
2307
|
+
if (de.is)
|
|
2308
|
+
return n({ latitude: 0, longitude: 0 });
|
|
2309
|
+
let a = () => {
|
|
2310
|
+
r.WebApp.LocationManager.getLocation(async (c) => {
|
|
2311
|
+
if (!c) {
|
|
2312
|
+
r.WebApp.LocationManager.isAccessRequested || r.WebApp.LocationManager.openSettings();
|
|
2313
|
+
return;
|
|
2314
|
+
}
|
|
2315
|
+
n(c);
|
|
2316
|
+
});
|
|
2317
|
+
};
|
|
2318
|
+
!r.WebApp.LocationManager || !r.WebApp.LocationManager.isInited ? r.WebApp.LocationManager.init(() => {
|
|
2319
|
+
a();
|
|
2320
|
+
}) : a();
|
|
2306
2321
|
}, r.Notice = {
|
|
2307
2322
|
Send: (n, a, c) => {
|
|
2308
2323
|
var l, p;
|
|
2309
|
-
a !== void 0 ? (
|
|
2324
|
+
a !== void 0 ? (Ae.Send({ type: n, text: a, thema: c }), (l = r.WebApp.HapticFeedback) == null || l.notificationOccurred(n)) : (Ae.Send(n), (p = r.WebApp.HapticFeedback) == null || p.notificationOccurred(n.type));
|
|
2310
2325
|
},
|
|
2311
2326
|
Error: (n) => {
|
|
2312
2327
|
var a;
|
|
2313
|
-
|
|
2328
|
+
Ae.Send({ type: "error", text: n }), (a = r.WebApp.HapticFeedback) == null || a.notificationOccurred("error");
|
|
2314
2329
|
},
|
|
2315
2330
|
Success: (n) => {
|
|
2316
2331
|
var a;
|
|
2317
|
-
|
|
2332
|
+
Ae.Send({ type: "success", text: n }), (a = r.WebApp.HapticFeedback) == null || a.notificationOccurred("success");
|
|
2318
2333
|
},
|
|
2319
2334
|
Warning: (n) => {
|
|
2320
2335
|
var a;
|
|
2321
|
-
|
|
2336
|
+
Ae.Send({ type: "warning", text: n }), (a = r.WebApp.HapticFeedback) == null || a.notificationOccurred("warning");
|
|
2322
2337
|
}
|
|
2323
|
-
}, r.Header = Dr, r.TabBar =
|
|
2338
|
+
}, r.Header = Dr, r.TabBar = yn, r.BottomSheet = or, r.toggleBottomSheet = st, r.SafeArea = Ur, r.Loading = Vr, r.Sidebar = ln, r.SidePanel = Rn, r.AppBar = Cn, r.SidePanelController = Sn, r.Scroll = En, r.Modal = Wt, r.Menu = Qr, r.MainButton = {
|
|
2324
2339
|
callback: [],
|
|
2325
2340
|
set: (n) => {
|
|
2326
|
-
|
|
2341
|
+
de.is ? de.MainButton.set(n) : (r.WebApp.MainButton.callback.forEach((a) => {
|
|
2327
2342
|
r.WebApp.MainButton.offClick(a);
|
|
2328
2343
|
}), r.WebApp.MainButton.callback = [], typeof n == "boolean" ? r.WebApp.MainButton.isVisible = !1 : (r.WebApp.MainButton.text = n.text, n.color && (r.WebApp.MainButton.color = n.color), n.textColor && (r.WebApp.MainButton.textColor = n.textColor), r.WebApp.MainButton.isVisible = !0, r.WebApp.MainButton.isActive = n.isActive === void 0 ? !0 : n.isActive, r.WebApp.MainButton.callback.push(() => {
|
|
2329
2344
|
var a;
|
|
2330
|
-
n.page === void 0 ? (a = n.callback) == null || a.call(n) :
|
|
2345
|
+
n.page === void 0 ? (a = n.callback) == null || a.call(n) : ve.setPage(n.page);
|
|
2331
2346
|
}), r.WebApp.MainButton.onClick(
|
|
2332
2347
|
r.WebApp.MainButton.callback[0]
|
|
2333
2348
|
)));
|
|
@@ -2335,31 +2350,32 @@ var N;
|
|
|
2335
2350
|
}, r.BackButtonPrev = () => {
|
|
2336
2351
|
U.prev && (0, r.BackButton)(U.prev);
|
|
2337
2352
|
}, r.BackButtonState = () => U.state, r.BackButton = (n) => {
|
|
2338
|
-
|
|
2353
|
+
de.is ? de.BackButton.set(n) : (U.state.push(n), U.router(n));
|
|
2339
2354
|
};
|
|
2340
|
-
})(
|
|
2341
|
-
const $n =
|
|
2355
|
+
})(T || (T = {}));
|
|
2356
|
+
const $n = T.TabBar, Nn = or, Xt = T.BackButton, Bn = T.BackButtonPrev, wn = T.BackButtonState, In = T.Notice, Mn = T.SafeArea, Dn = T.Loading, Fn = T.Menu, Ln = T.SidePanel, Wn = T.Scroll, Un = T.AppBar, Yn = T.Sidebar, zn = T.Location, Vn = T.SidePanelController, { Header: qn, toggleBottomSheet: Hn, Modal: Jn, MainButton: Kn, WebApp: Te, getUser: Gn } = T;
|
|
2342
2357
|
export {
|
|
2343
2358
|
Un as AppBar,
|
|
2344
2359
|
Xt as BackButton,
|
|
2345
2360
|
Bn as BackButtonPrev,
|
|
2346
2361
|
wn as BackButtonState,
|
|
2347
2362
|
Nn as BottomSheet,
|
|
2348
|
-
|
|
2363
|
+
qn as Header,
|
|
2349
2364
|
Dn as Loading,
|
|
2350
|
-
|
|
2365
|
+
zn as Location,
|
|
2366
|
+
Kn as MainButton,
|
|
2351
2367
|
Fn as Menu,
|
|
2352
|
-
|
|
2368
|
+
Jn as Modal,
|
|
2353
2369
|
In as Notice,
|
|
2354
2370
|
Mn as SafeArea,
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2371
|
+
Wn as Scroll,
|
|
2372
|
+
Ln as SidePanel,
|
|
2373
|
+
Vn as SidePanelController,
|
|
2358
2374
|
Yn as Sidebar,
|
|
2359
2375
|
$n as TabBar,
|
|
2360
2376
|
Te as WebApp,
|
|
2361
2377
|
$e as clsx,
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2378
|
+
T as default,
|
|
2379
|
+
Gn as getUser,
|
|
2380
|
+
Hn as toggleBottomSheet
|
|
2365
2381
|
};
|