@elcrm/telegram 0.0.151 → 0.0.152
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +125 -125
- package/dist/index.umd.js +12 -12
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -16,11 +16,11 @@ function vr() {
|
|
|
16
16
|
Ht = 1;
|
|
17
17
|
var t = C, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, i = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
18
|
function d(p, f, g) {
|
|
19
|
-
var h, b = {},
|
|
20
|
-
g !== void 0 && (
|
|
19
|
+
var h, b = {}, y = null, A = null;
|
|
20
|
+
g !== void 0 && (y = "" + g), f.key !== void 0 && (y = "" + f.key), f.ref !== void 0 && (A = f.ref);
|
|
21
21
|
for (h in f) s.call(f, h) && !c.hasOwnProperty(h) && (b[h] = f[h]);
|
|
22
22
|
if (p && p.defaultProps) for (h in f = p.defaultProps, f) b[h] === void 0 && (b[h] = f[h]);
|
|
23
|
-
return { $$typeof: r, type: p, key:
|
|
23
|
+
return { $$typeof: r, type: p, key: y, ref: A, props: b, _owner: i.current };
|
|
24
24
|
}
|
|
25
25
|
return nt.Fragment = n, nt.jsx = d, nt.jsxs = d, nt;
|
|
26
26
|
}
|
|
@@ -37,7 +37,7 @@ var ot = {};
|
|
|
37
37
|
var Kt;
|
|
38
38
|
function hr() {
|
|
39
39
|
return Kt || (Kt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
40
|
-
var t = C, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), p = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"),
|
|
40
|
+
var t = C, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), p = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), B = Symbol.iterator, ee = "@@iterator";
|
|
41
41
|
function Te(e) {
|
|
42
42
|
if (e === null || typeof e != "object")
|
|
43
43
|
return null;
|
|
@@ -54,8 +54,8 @@ function hr() {
|
|
|
54
54
|
}
|
|
55
55
|
function Ae(e, o, a) {
|
|
56
56
|
{
|
|
57
|
-
var u = M.ReactDebugCurrentFrame,
|
|
58
|
-
|
|
57
|
+
var u = M.ReactDebugCurrentFrame, _ = u.getStackAddendum();
|
|
58
|
+
_ !== "" && (o += "%s", a = a.concat([_]));
|
|
59
59
|
var R = a.map(function(m) {
|
|
60
60
|
return String(m);
|
|
61
61
|
});
|
|
@@ -65,7 +65,7 @@ function hr() {
|
|
|
65
65
|
var je = !1, te = !1, V = !1, ke = !1, we = !1, $;
|
|
66
66
|
$ = Symbol.for("react.module.reference");
|
|
67
67
|
function vt(e) {
|
|
68
|
-
return !!(typeof e == "string" || typeof e == "function" || e === s || e === c || we || e === i || e === g || e === h || ke || e === A || je || te || V || typeof e == "object" && e !== null && (e.$$typeof ===
|
|
68
|
+
return !!(typeof e == "string" || typeof e == "function" || e === s || e === c || we || e === i || e === g || e === h || ke || e === A || je || te || V || typeof e == "object" && e !== null && (e.$$typeof === y || e.$$typeof === b || e.$$typeof === d || e.$$typeof === p || e.$$typeof === f || // 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.
|
|
@@ -75,8 +75,8 @@ function hr() {
|
|
|
75
75
|
var u = e.displayName;
|
|
76
76
|
if (u)
|
|
77
77
|
return u;
|
|
78
|
-
var
|
|
79
|
-
return
|
|
78
|
+
var _ = o.displayName || o.name || "";
|
|
79
|
+
return _ !== "" ? a + "(" + _ + ")" : a;
|
|
80
80
|
}
|
|
81
81
|
function $e(e) {
|
|
82
82
|
return e.displayName || "Context";
|
|
@@ -115,8 +115,8 @@ function hr() {
|
|
|
115
115
|
case b:
|
|
116
116
|
var u = e.displayName || null;
|
|
117
117
|
return u !== null ? u : N(e.type) || "Memo";
|
|
118
|
-
case
|
|
119
|
-
var
|
|
118
|
+
case y: {
|
|
119
|
+
var _ = e, R = _._payload, m = _._init;
|
|
120
120
|
try {
|
|
121
121
|
return N(m(R));
|
|
122
122
|
} catch {
|
|
@@ -194,8 +194,8 @@ function hr() {
|
|
|
194
194
|
if (he === void 0)
|
|
195
195
|
try {
|
|
196
196
|
throw Error();
|
|
197
|
-
} catch (
|
|
198
|
-
var u =
|
|
197
|
+
} catch (_) {
|
|
198
|
+
var u = _.stack.trim().match(/\n( *(at )?)/);
|
|
199
199
|
he = u && u[1] || "";
|
|
200
200
|
}
|
|
201
201
|
return `
|
|
@@ -217,7 +217,7 @@ function hr() {
|
|
|
217
217
|
}
|
|
218
218
|
var u;
|
|
219
219
|
ge = !0;
|
|
220
|
-
var
|
|
220
|
+
var _ = Error.prepareStackTrace;
|
|
221
221
|
Error.prepareStackTrace = void 0;
|
|
222
222
|
var R;
|
|
223
223
|
R = ve.current, ve.current = null, gt();
|
|
@@ -273,7 +273,7 @@ function hr() {
|
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
} finally {
|
|
276
|
-
ge = !1, ve.current = R, mt(), Error.prepareStackTrace =
|
|
276
|
+
ge = !1, ve.current = R, mt(), Error.prepareStackTrace = _;
|
|
277
277
|
}
|
|
278
278
|
var Y = e ? e.displayName || e.name : "", L = Y ? re(Y) : "";
|
|
279
279
|
return typeof e == "function" && ne.set(e, L), L;
|
|
@@ -304,10 +304,10 @@ function hr() {
|
|
|
304
304
|
return yt(e.render);
|
|
305
305
|
case b:
|
|
306
306
|
return oe(e.type, o, a);
|
|
307
|
-
case
|
|
308
|
-
var u = e,
|
|
307
|
+
case y: {
|
|
308
|
+
var u = e, _ = u._payload, R = u._init;
|
|
309
309
|
try {
|
|
310
|
-
return oe(R(
|
|
310
|
+
return oe(R(_), o, a);
|
|
311
311
|
} catch {
|
|
312
312
|
}
|
|
313
313
|
}
|
|
@@ -322,7 +322,7 @@ function hr() {
|
|
|
322
322
|
} else
|
|
323
323
|
Ye.setExtraStackFrame(null);
|
|
324
324
|
}
|
|
325
|
-
function Rt(e, o, a, u,
|
|
325
|
+
function Rt(e, o, a, u, _) {
|
|
326
326
|
{
|
|
327
327
|
var R = Function.call.bind(H);
|
|
328
328
|
for (var m in e)
|
|
@@ -337,7 +337,7 @@ function hr() {
|
|
|
337
337
|
} catch (S) {
|
|
338
338
|
v = S;
|
|
339
339
|
}
|
|
340
|
-
v && !(v instanceof Error) && (ae(
|
|
340
|
+
v && !(v instanceof Error) && (ae(_), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", u || "React class", a, m, typeof v), ae(null)), v instanceof Error && !(v.message in qe) && (qe[v.message] = !0, ae(_), x("Failed %s type: %s", a, v.message), ae(null));
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
}
|
|
@@ -412,7 +412,7 @@ function hr() {
|
|
|
412
412
|
});
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
-
var Ct = function(e, o, a, u,
|
|
415
|
+
var Ct = function(e, o, a, u, _, R, m) {
|
|
416
416
|
var v = {
|
|
417
417
|
// This tag allows us to uniquely identify this as a React Element
|
|
418
418
|
$$typeof: r,
|
|
@@ -438,13 +438,13 @@ function hr() {
|
|
|
438
438
|
configurable: !1,
|
|
439
439
|
enumerable: !1,
|
|
440
440
|
writable: !1,
|
|
441
|
-
value:
|
|
441
|
+
value: _
|
|
442
442
|
}), Object.freeze && (Object.freeze(v.props), Object.freeze(v)), v;
|
|
443
443
|
};
|
|
444
|
-
function Tt(e, o, a, u,
|
|
444
|
+
function Tt(e, o, a, u, _) {
|
|
445
445
|
{
|
|
446
446
|
var R, m = {}, v = null, k = null;
|
|
447
|
-
a !== void 0 && (Ve(a), v = "" + a), kt(o) && (Ve(o.key), v = "" + o.key), jt(o) && (k = o.ref, wt(o,
|
|
447
|
+
a !== void 0 && (Ve(a), v = "" + a), kt(o) && (Ve(o.key), v = "" + o.key), jt(o) && (k = o.ref, wt(o, _));
|
|
448
448
|
for (R in o)
|
|
449
449
|
H.call(o, R) && !At.hasOwnProperty(R) && (m[R] = o[R]);
|
|
450
450
|
if (e && e.defaultProps) {
|
|
@@ -456,7 +456,7 @@ function hr() {
|
|
|
456
456
|
var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
457
457
|
v && Ot(m, E), k && Pt(m, E);
|
|
458
458
|
}
|
|
459
|
-
return Ct(e, v, k,
|
|
459
|
+
return Ct(e, v, k, _, u, Je.current, m);
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
462
|
var be = M.ReactCurrentOwner, Ge = M.ReactDebugCurrentFrame;
|
|
@@ -525,9 +525,9 @@ Check the top-level render call using <` + a + ">.");
|
|
|
525
525
|
else if (_e(e))
|
|
526
526
|
e._store && (e._store.validated = !0);
|
|
527
527
|
else if (e) {
|
|
528
|
-
var
|
|
529
|
-
if (typeof
|
|
530
|
-
for (var R =
|
|
528
|
+
var _ = Te(e);
|
|
529
|
+
if (typeof _ == "function" && _ !== e.entries)
|
|
530
|
+
for (var R = _.call(e), m; !(m = R.next()).done; )
|
|
531
531
|
_e(m.value) && Qe(m.value, o);
|
|
532
532
|
}
|
|
533
533
|
}
|
|
@@ -551,8 +551,8 @@ Check the top-level render call using <` + a + ">.");
|
|
|
551
551
|
Rt(a, e.props, "prop", u, e);
|
|
552
552
|
} else if (o.PropTypes !== void 0 && !ye) {
|
|
553
553
|
ye = !0;
|
|
554
|
-
var
|
|
555
|
-
x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
554
|
+
var _ = N(o);
|
|
555
|
+
x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _ || "Unknown");
|
|
556
556
|
}
|
|
557
557
|
typeof o.getDefaultProps == "function" && !o.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
558
558
|
}
|
|
@@ -570,7 +570,7 @@ Check the top-level render call using <` + a + ">.");
|
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
572
|
var tt = {};
|
|
573
|
-
function rt(e, o, a, u,
|
|
573
|
+
function rt(e, o, a, u, _, R) {
|
|
574
574
|
{
|
|
575
575
|
var m = vt(e);
|
|
576
576
|
if (!m) {
|
|
@@ -581,7 +581,7 @@ Check the top-level render call using <` + a + ">.");
|
|
|
581
581
|
var S;
|
|
582
582
|
e === null ? S = "null" : me(e) ? S = "array" : e !== void 0 && e.$$typeof === r ? (S = "<" + (N(e.type) || "Unknown") + " />", v = " Did you accidentally export a JSX literal instead of a component?") : S = typeof e, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", S, v);
|
|
583
583
|
}
|
|
584
|
-
var E = Tt(e, o, a,
|
|
584
|
+
var E = Tt(e, o, a, _, R);
|
|
585
585
|
if (E == null)
|
|
586
586
|
return E;
|
|
587
587
|
if (m) {
|
|
@@ -641,15 +641,15 @@ var Yt;
|
|
|
641
641
|
nameModal: g,
|
|
642
642
|
offsetTop: h
|
|
643
643
|
}) {
|
|
644
|
-
const [b,
|
|
644
|
+
const [b, y] = T(!1), [A, B] = T(!1);
|
|
645
645
|
if (z[g].onClose = () => {
|
|
646
646
|
O.BackButton(!1), B(!0), setTimeout(() => {
|
|
647
|
-
|
|
647
|
+
y(!1), B(!1), f == null || f(), z.x(g);
|
|
648
648
|
}, 300);
|
|
649
649
|
}, W(() => {
|
|
650
650
|
b ? z[g].onClose() : (O.BackButton({
|
|
651
651
|
callback: () => z[g].onClose()
|
|
652
|
-
}),
|
|
652
|
+
}), y(!0));
|
|
653
653
|
}, []), !!b)
|
|
654
654
|
return /* @__PURE__ */ l.jsx("div", { className: G(Oe.o, A && Oe.x), children: /* @__PURE__ */ l.jsx(
|
|
655
655
|
"div",
|
|
@@ -695,15 +695,15 @@ var Yt;
|
|
|
695
695
|
t.Add = s;
|
|
696
696
|
function i(p, f = Date.now().toString(), g) {
|
|
697
697
|
return z[f] = {}, {
|
|
698
|
-
Open: (
|
|
698
|
+
Open: (y) => {
|
|
699
699
|
t.Add(
|
|
700
700
|
/* @__PURE__ */ l.jsx(
|
|
701
701
|
p,
|
|
702
702
|
{
|
|
703
|
-
...
|
|
703
|
+
...y,
|
|
704
704
|
onCallbackModal: (A) => {
|
|
705
705
|
var B;
|
|
706
|
-
(B =
|
|
706
|
+
(B = y.callback) == null || B.call(y, A);
|
|
707
707
|
},
|
|
708
708
|
nameModal: f
|
|
709
709
|
},
|
|
@@ -722,8 +722,8 @@ var Yt;
|
|
|
722
722
|
t.Close = c;
|
|
723
723
|
function d(p, f, g, h) {
|
|
724
724
|
z.i && (h && (g.callback = h), z.i(`${p}/modals/${f}.tsx`).then((b) => {
|
|
725
|
-
var
|
|
726
|
-
b.Open ? b.Open(g) : (
|
|
725
|
+
var y;
|
|
726
|
+
b.Open ? b.Open(g) : (y = b.default) != null && y.Open ? b.default.Open(g) : b.default && b.default(g);
|
|
727
727
|
}));
|
|
728
728
|
}
|
|
729
729
|
t.Open = d;
|
|
@@ -851,11 +851,11 @@ function jr() {
|
|
|
851
851
|
Xt = 1;
|
|
852
852
|
var t = C, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, i = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
853
853
|
function d(p, f, g) {
|
|
854
|
-
var h, b = {},
|
|
855
|
-
g !== void 0 && (
|
|
854
|
+
var h, b = {}, y = null, A = null;
|
|
855
|
+
g !== void 0 && (y = "" + g), f.key !== void 0 && (y = "" + f.key), f.ref !== void 0 && (A = f.ref);
|
|
856
856
|
for (h in f) s.call(f, h) && !c.hasOwnProperty(h) && (b[h] = f[h]);
|
|
857
857
|
if (p && p.defaultProps) for (h in f = p.defaultProps, f) b[h] === void 0 && (b[h] = f[h]);
|
|
858
|
-
return { $$typeof: r, type: p, key:
|
|
858
|
+
return { $$typeof: r, type: p, key: y, ref: A, props: b, _owner: i.current };
|
|
859
859
|
}
|
|
860
860
|
return at.Fragment = n, at.jsx = d, at.jsxs = d, at;
|
|
861
861
|
}
|
|
@@ -872,7 +872,7 @@ var st = {};
|
|
|
872
872
|
var Zt;
|
|
873
873
|
function kr() {
|
|
874
874
|
return Zt || (Zt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
875
|
-
var t = C, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), p = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"),
|
|
875
|
+
var t = C, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), p = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), B = Symbol.iterator, ee = "@@iterator";
|
|
876
876
|
function Te(e) {
|
|
877
877
|
if (e === null || typeof e != "object")
|
|
878
878
|
return null;
|
|
@@ -889,8 +889,8 @@ function kr() {
|
|
|
889
889
|
}
|
|
890
890
|
function Ae(e, o, a) {
|
|
891
891
|
{
|
|
892
|
-
var u = M.ReactDebugCurrentFrame,
|
|
893
|
-
|
|
892
|
+
var u = M.ReactDebugCurrentFrame, _ = u.getStackAddendum();
|
|
893
|
+
_ !== "" && (o += "%s", a = a.concat([_]));
|
|
894
894
|
var R = a.map(function(m) {
|
|
895
895
|
return String(m);
|
|
896
896
|
});
|
|
@@ -900,7 +900,7 @@ function kr() {
|
|
|
900
900
|
var je = !1, te = !1, V = !1, ke = !1, we = !1, $;
|
|
901
901
|
$ = Symbol.for("react.module.reference");
|
|
902
902
|
function vt(e) {
|
|
903
|
-
return !!(typeof e == "string" || typeof e == "function" || e === s || e === c || we || e === i || e === g || e === h || ke || e === A || je || te || V || typeof e == "object" && e !== null && (e.$$typeof ===
|
|
903
|
+
return !!(typeof e == "string" || typeof e == "function" || e === s || e === c || we || e === i || e === g || e === h || ke || e === A || je || te || V || typeof e == "object" && e !== null && (e.$$typeof === y || e.$$typeof === b || e.$$typeof === d || e.$$typeof === p || e.$$typeof === f || // This needs to include all possible module reference object
|
|
904
904
|
// types supported by any Flight configuration anywhere since
|
|
905
905
|
// we don't know which Flight build this will end up being used
|
|
906
906
|
// with.
|
|
@@ -910,8 +910,8 @@ function kr() {
|
|
|
910
910
|
var u = e.displayName;
|
|
911
911
|
if (u)
|
|
912
912
|
return u;
|
|
913
|
-
var
|
|
914
|
-
return
|
|
913
|
+
var _ = o.displayName || o.name || "";
|
|
914
|
+
return _ !== "" ? a + "(" + _ + ")" : a;
|
|
915
915
|
}
|
|
916
916
|
function $e(e) {
|
|
917
917
|
return e.displayName || "Context";
|
|
@@ -950,8 +950,8 @@ function kr() {
|
|
|
950
950
|
case b:
|
|
951
951
|
var u = e.displayName || null;
|
|
952
952
|
return u !== null ? u : N(e.type) || "Memo";
|
|
953
|
-
case
|
|
954
|
-
var
|
|
953
|
+
case y: {
|
|
954
|
+
var _ = e, R = _._payload, m = _._init;
|
|
955
955
|
try {
|
|
956
956
|
return N(m(R));
|
|
957
957
|
} catch {
|
|
@@ -1029,8 +1029,8 @@ function kr() {
|
|
|
1029
1029
|
if (he === void 0)
|
|
1030
1030
|
try {
|
|
1031
1031
|
throw Error();
|
|
1032
|
-
} catch (
|
|
1033
|
-
var u =
|
|
1032
|
+
} catch (_) {
|
|
1033
|
+
var u = _.stack.trim().match(/\n( *(at )?)/);
|
|
1034
1034
|
he = u && u[1] || "";
|
|
1035
1035
|
}
|
|
1036
1036
|
return `
|
|
@@ -1052,7 +1052,7 @@ function kr() {
|
|
|
1052
1052
|
}
|
|
1053
1053
|
var u;
|
|
1054
1054
|
ge = !0;
|
|
1055
|
-
var
|
|
1055
|
+
var _ = Error.prepareStackTrace;
|
|
1056
1056
|
Error.prepareStackTrace = void 0;
|
|
1057
1057
|
var R;
|
|
1058
1058
|
R = ve.current, ve.current = null, gt();
|
|
@@ -1108,7 +1108,7 @@ function kr() {
|
|
|
1108
1108
|
}
|
|
1109
1109
|
}
|
|
1110
1110
|
} finally {
|
|
1111
|
-
ge = !1, ve.current = R, mt(), Error.prepareStackTrace =
|
|
1111
|
+
ge = !1, ve.current = R, mt(), Error.prepareStackTrace = _;
|
|
1112
1112
|
}
|
|
1113
1113
|
var Y = e ? e.displayName || e.name : "", L = Y ? re(Y) : "";
|
|
1114
1114
|
return typeof e == "function" && ne.set(e, L), L;
|
|
@@ -1139,10 +1139,10 @@ function kr() {
|
|
|
1139
1139
|
return yt(e.render);
|
|
1140
1140
|
case b:
|
|
1141
1141
|
return oe(e.type, o, a);
|
|
1142
|
-
case
|
|
1143
|
-
var u = e,
|
|
1142
|
+
case y: {
|
|
1143
|
+
var u = e, _ = u._payload, R = u._init;
|
|
1144
1144
|
try {
|
|
1145
|
-
return oe(R(
|
|
1145
|
+
return oe(R(_), o, a);
|
|
1146
1146
|
} catch {
|
|
1147
1147
|
}
|
|
1148
1148
|
}
|
|
@@ -1157,7 +1157,7 @@ function kr() {
|
|
|
1157
1157
|
} else
|
|
1158
1158
|
Ye.setExtraStackFrame(null);
|
|
1159
1159
|
}
|
|
1160
|
-
function Rt(e, o, a, u,
|
|
1160
|
+
function Rt(e, o, a, u, _) {
|
|
1161
1161
|
{
|
|
1162
1162
|
var R = Function.call.bind(H);
|
|
1163
1163
|
for (var m in e)
|
|
@@ -1172,7 +1172,7 @@ function kr() {
|
|
|
1172
1172
|
} catch (S) {
|
|
1173
1173
|
v = S;
|
|
1174
1174
|
}
|
|
1175
|
-
v && !(v instanceof Error) && (ae(
|
|
1175
|
+
v && !(v instanceof Error) && (ae(_), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", u || "React class", a, m, typeof v), ae(null)), v instanceof Error && !(v.message in qe) && (qe[v.message] = !0, ae(_), x("Failed %s type: %s", a, v.message), ae(null));
|
|
1176
1176
|
}
|
|
1177
1177
|
}
|
|
1178
1178
|
}
|
|
@@ -1247,7 +1247,7 @@ function kr() {
|
|
|
1247
1247
|
});
|
|
1248
1248
|
}
|
|
1249
1249
|
}
|
|
1250
|
-
var Ct = function(e, o, a, u,
|
|
1250
|
+
var Ct = function(e, o, a, u, _, R, m) {
|
|
1251
1251
|
var v = {
|
|
1252
1252
|
// This tag allows us to uniquely identify this as a React Element
|
|
1253
1253
|
$$typeof: r,
|
|
@@ -1273,10 +1273,10 @@ function kr() {
|
|
|
1273
1273
|
configurable: !1,
|
|
1274
1274
|
enumerable: !1,
|
|
1275
1275
|
writable: !1,
|
|
1276
|
-
value:
|
|
1276
|
+
value: _
|
|
1277
1277
|
}), Object.freeze && (Object.freeze(v.props), Object.freeze(v)), v;
|
|
1278
1278
|
};
|
|
1279
|
-
function Tt(e, o, a, u,
|
|
1279
|
+
function Tt(e, o, a, u, _) {
|
|
1280
1280
|
{
|
|
1281
1281
|
var R, m = {}, v = null, k = null;
|
|
1282
1282
|
a !== void 0 && (Ve(a), v = "" + a), kt(o) && (Ve(o.key), v = "" + o.key), jt(o) && (k = o.ref, wt(o));
|
|
@@ -1291,7 +1291,7 @@ function kr() {
|
|
|
1291
1291
|
var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
1292
1292
|
v && Ot(m, E), k && Pt(m, E);
|
|
1293
1293
|
}
|
|
1294
|
-
return Ct(e, v, k,
|
|
1294
|
+
return Ct(e, v, k, _, u, Je.current, m);
|
|
1295
1295
|
}
|
|
1296
1296
|
}
|
|
1297
1297
|
var be = M.ReactCurrentOwner, Ge = M.ReactDebugCurrentFrame;
|
|
@@ -1360,9 +1360,9 @@ Check the top-level render call using <` + a + ">.");
|
|
|
1360
1360
|
else if (_e(e))
|
|
1361
1361
|
e._store && (e._store.validated = !0);
|
|
1362
1362
|
else if (e) {
|
|
1363
|
-
var
|
|
1364
|
-
if (typeof
|
|
1365
|
-
for (var R =
|
|
1363
|
+
var _ = Te(e);
|
|
1364
|
+
if (typeof _ == "function" && _ !== e.entries)
|
|
1365
|
+
for (var R = _.call(e), m; !(m = R.next()).done; )
|
|
1366
1366
|
_e(m.value) && Qe(m.value, o);
|
|
1367
1367
|
}
|
|
1368
1368
|
}
|
|
@@ -1386,8 +1386,8 @@ Check the top-level render call using <` + a + ">.");
|
|
|
1386
1386
|
Rt(a, e.props, "prop", u, e);
|
|
1387
1387
|
} else if (o.PropTypes !== void 0 && !ye) {
|
|
1388
1388
|
ye = !0;
|
|
1389
|
-
var
|
|
1390
|
-
x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
1389
|
+
var _ = N(o);
|
|
1390
|
+
x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _ || "Unknown");
|
|
1391
1391
|
}
|
|
1392
1392
|
typeof o.getDefaultProps == "function" && !o.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
1393
1393
|
}
|
|
@@ -1405,7 +1405,7 @@ Check the top-level render call using <` + a + ">.");
|
|
|
1405
1405
|
}
|
|
1406
1406
|
}
|
|
1407
1407
|
var tt = {};
|
|
1408
|
-
function rt(e, o, a, u,
|
|
1408
|
+
function rt(e, o, a, u, _, R) {
|
|
1409
1409
|
{
|
|
1410
1410
|
var m = vt(e);
|
|
1411
1411
|
if (!m) {
|
|
@@ -1416,7 +1416,7 @@ Check the top-level render call using <` + a + ">.");
|
|
|
1416
1416
|
var S;
|
|
1417
1417
|
e === null ? S = "null" : me(e) ? S = "array" : e !== void 0 && e.$$typeof === r ? (S = "<" + (N(e.type) || "Unknown") + " />", v = " Did you accidentally export a JSX literal instead of a component?") : S = typeof e, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", S, v);
|
|
1418
1418
|
}
|
|
1419
|
-
var E = Tt(e, o, a,
|
|
1419
|
+
var E = Tt(e, o, a, _, R);
|
|
1420
1420
|
if (E == null)
|
|
1421
1421
|
return E;
|
|
1422
1422
|
if (m) {
|
|
@@ -1462,7 +1462,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1462
1462
|
process.env.NODE_ENV === "production" ? jr() : kr();
|
|
1463
1463
|
const wr = "0.0.46", cr = {
|
|
1464
1464
|
version: wr
|
|
1465
|
-
},
|
|
1465
|
+
}, le = {}, F = {
|
|
1466
1466
|
module: "",
|
|
1467
1467
|
v: cr.version,
|
|
1468
1468
|
page: "Main",
|
|
@@ -1775,15 +1775,15 @@ function zr(t) {
|
|
|
1775
1775
|
}
|
|
1776
1776
|
async function Vr(t) {
|
|
1777
1777
|
var r, n, s, i, c, d, p, f;
|
|
1778
|
-
const { page: g, module: h, tab: b, id:
|
|
1779
|
-
g !== void 0 && (
|
|
1778
|
+
const { page: g, module: h, tab: b, id: y } = t;
|
|
1779
|
+
g !== void 0 && (le.page = g), h !== void 0 && (le.module = h), b !== void 0 && (le.tab = b), y !== void 0 && (le.id = y), Q({ ...le }), y !== void 0 && ((n = (r = K()).id) == null || n.call(r, y)), b !== void 0 && ((i = (s = K()).tabs) == null || i.call(s, b)), h !== void 0 && ((d = (c = K()).module) == null || d.call(c, h)), g !== void 0 && ((f = (p = K()).page) == null || f.call(p, g)), sessionStorage.setItem(
|
|
1780
1780
|
j().STORAGE,
|
|
1781
1781
|
pe.enCode(j())
|
|
1782
1782
|
);
|
|
1783
1783
|
}
|
|
1784
1784
|
const Ce = {
|
|
1785
1785
|
Reset() {
|
|
1786
|
-
|
|
1786
|
+
le.id = 0, le.tab = "", le.page = j().page, le.module = j().module;
|
|
1787
1787
|
},
|
|
1788
1788
|
Default({
|
|
1789
1789
|
module: t = j().module,
|
|
@@ -1919,7 +1919,7 @@ let Ee = {
|
|
|
1919
1919
|
Send: tn,
|
|
1920
1920
|
Init: en
|
|
1921
1921
|
};
|
|
1922
|
-
const nn = "_d_1u25q_1", on = "_b_1u25q_21", an = "_o_1u25q_25", sn = "_m_1u25q_30", cn = "_t_1u25q_41", ln = "_a_1u25q_108", un = "_v_1u25q_118",
|
|
1922
|
+
const nn = "_d_1u25q_1", on = "_b_1u25q_21", an = "_o_1u25q_25", sn = "_m_1u25q_30", cn = "_t_1u25q_41", ln = "_a_1u25q_108", un = "_v_1u25q_118", fe = {
|
|
1923
1923
|
d: nn,
|
|
1924
1924
|
b: on,
|
|
1925
1925
|
o: an,
|
|
@@ -1983,7 +1983,7 @@ const fn = () => {
|
|
|
1983
1983
|
if (location.hostname === "localhost") {
|
|
1984
1984
|
let [t, r] = T(!1), [n, s] = T(!1), [i, c] = T("dark"), [d, p] = T(!1), [f, g] = T(!1);
|
|
1985
1985
|
de.is = !0, de.MainButton.set = r, de.BackButton.set = s, W(() => {
|
|
1986
|
-
var
|
|
1986
|
+
var y;
|
|
1987
1987
|
D[i]["--tg-theme-bg-color-alpha"] = D[i]["--tg-theme-bg-color"] + "b3", D[i]["--tg-theme-secondary-bg-color-alpha"] = D[i]["--tg-theme-secondary-bg-color"] + "d3", D[i]["--tg-theme-bg-color-alpha-25"] = D[i]["--tg-theme-bg-color"] + "40", D[i]["--tg-theme-secondary-bg-color-alpha-25"] = D[i]["--tg-theme-secondary-bg-color"] + "40";
|
|
1988
1988
|
for (let A in D[i])
|
|
1989
1989
|
document.documentElement.style.setProperty(
|
|
@@ -1993,48 +1993,48 @@ const fn = () => {
|
|
|
1993
1993
|
document.documentElement.style.setProperty(
|
|
1994
1994
|
"--tg-content-safe-area-inset-top",
|
|
1995
1995
|
"0px"
|
|
1996
|
-
), ((
|
|
1996
|
+
), ((y = ce.safeAreaInset) == null ? void 0 : y.bottom) === 0 ? document.documentElement.style.setProperty(
|
|
1997
1997
|
"--tg-safe-area-inset-bottom",
|
|
1998
1998
|
"16px"
|
|
1999
|
-
) :
|
|
1999
|
+
) : ce.safeAreaInset || document.documentElement.style.setProperty(
|
|
2000
2000
|
"--tg-safe-area-inset-bottom",
|
|
2001
2001
|
"16px"
|
|
2002
2002
|
);
|
|
2003
2003
|
}, []);
|
|
2004
|
-
let h = (
|
|
2005
|
-
for (let A in D[
|
|
2006
|
-
document.documentElement.style.setProperty(A, D[
|
|
2004
|
+
let h = (y) => {
|
|
2005
|
+
for (let A in D[y])
|
|
2006
|
+
document.documentElement.style.setProperty(A, D[y][A]), document.documentElement.setAttribute(
|
|
2007
2007
|
"data-color-scheme",
|
|
2008
|
-
|
|
2008
|
+
y
|
|
2009
2009
|
);
|
|
2010
|
-
c(
|
|
2010
|
+
document.body.setAttribute("data-color-scheme", y), c(y), p(!1);
|
|
2011
2011
|
}, b = () => {
|
|
2012
2012
|
p(!1), g(!0);
|
|
2013
2013
|
};
|
|
2014
2014
|
return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
2015
|
-
/* @__PURE__ */ l.jsxs("div", { className:
|
|
2016
|
-
n === !1 ? /* @__PURE__ */ l.jsx("div", { className:
|
|
2015
|
+
/* @__PURE__ */ l.jsxs("div", { className: fe.d, children: [
|
|
2016
|
+
n === !1 ? /* @__PURE__ */ l.jsx("div", { className: fe.b, children: "Отмена" }) : /* @__PURE__ */ l.jsx(
|
|
2017
2017
|
"div",
|
|
2018
2018
|
{
|
|
2019
2019
|
onClick: () => {
|
|
2020
|
-
var
|
|
2021
|
-
n.page === void 0 ? (
|
|
2020
|
+
var y;
|
|
2021
|
+
n.page === void 0 ? (y = n.callback) == null || y.call(n) : Ce.setPage(n.page);
|
|
2022
2022
|
},
|
|
2023
|
-
className:
|
|
2023
|
+
className: fe.b,
|
|
2024
2024
|
children: "Назад"
|
|
2025
2025
|
}
|
|
2026
2026
|
),
|
|
2027
2027
|
/* @__PURE__ */ l.jsx(
|
|
2028
2028
|
"div",
|
|
2029
2029
|
{
|
|
2030
|
-
className:
|
|
2030
|
+
className: fe.o,
|
|
2031
2031
|
onClick: () => p(!d),
|
|
2032
2032
|
children: "Меню"
|
|
2033
2033
|
}
|
|
2034
2034
|
)
|
|
2035
2035
|
] }),
|
|
2036
2036
|
/* @__PURE__ */ l.jsx(Ee.Init, {}),
|
|
2037
|
-
t && /* @__PURE__ */ l.jsx("div", { className:
|
|
2037
|
+
t && /* @__PURE__ */ l.jsx("div", { className: fe.m, children: /* @__PURE__ */ l.jsx(
|
|
2038
2038
|
"button",
|
|
2039
2039
|
{
|
|
2040
2040
|
onClick: () => {
|
|
@@ -2043,7 +2043,7 @@ const fn = () => {
|
|
|
2043
2043
|
children: t.text
|
|
2044
2044
|
}
|
|
2045
2045
|
) }),
|
|
2046
|
-
d ? /* @__PURE__ */ l.jsxs("div", { className:
|
|
2046
|
+
d ? /* @__PURE__ */ l.jsxs("div", { className: fe.t, children: [
|
|
2047
2047
|
/* @__PURE__ */ l.jsxs("ul", { children: [
|
|
2048
2048
|
/* @__PURE__ */ l.jsx("li", { children: /* @__PURE__ */ l.jsx("button", { onClick: b, children: "Authorization" }) }),
|
|
2049
2049
|
/* @__PURE__ */ l.jsx("li", {})
|
|
@@ -2085,23 +2085,23 @@ const fn = () => {
|
|
|
2085
2085
|
var t;
|
|
2086
2086
|
document.documentElement.style.setProperty(
|
|
2087
2087
|
"--tg-theme-secondary-bg-color-alpha",
|
|
2088
|
-
|
|
2088
|
+
ce.themeParams.secondary_bg_color + "d3"
|
|
2089
2089
|
), document.documentElement.style.setProperty(
|
|
2090
2090
|
"--tg-theme-bg-color-alpha",
|
|
2091
|
-
|
|
2092
|
-
), ((t =
|
|
2091
|
+
ce.themeParams.bg_color + "b3"
|
|
2092
|
+
), ((t = ce.safeAreaInset) == null ? void 0 : t.bottom) === 0 ? document.documentElement.style.setProperty(
|
|
2093
2093
|
"--tg-safe-area-inset-bottom",
|
|
2094
2094
|
"16px"
|
|
2095
|
-
) :
|
|
2095
|
+
) : ce.safeAreaInset || document.documentElement.style.setProperty(
|
|
2096
2096
|
"--tg-safe-area-inset-bottom",
|
|
2097
2097
|
"16px"
|
|
2098
|
-
);
|
|
2098
|
+
), document.body.setAttribute("data-color-scheme", ce.colorScheme);
|
|
2099
2099
|
}, []), /* @__PURE__ */ l.jsx(l.Fragment, { children: /* @__PURE__ */ l.jsx(Ee.Init, {}) });
|
|
2100
2100
|
}, dn = ({ setAuthorization: t }) => {
|
|
2101
2101
|
let r = {}, n = () => {
|
|
2102
2102
|
localStorage.setItem("auth", r);
|
|
2103
2103
|
};
|
|
2104
|
-
return /* @__PURE__ */ l.jsx("div", { className:
|
|
2104
|
+
return /* @__PURE__ */ l.jsx("div", { className: fe.a, children: /* @__PURE__ */ l.jsxs("div", { className: fe.v, children: [
|
|
2105
2105
|
/* @__PURE__ */ l.jsx("fieldset", {}),
|
|
2106
2106
|
/* @__PURE__ */ l.jsx("div", { onClick: n, children: " Сохранить " })
|
|
2107
2107
|
] }) });
|
|
@@ -2122,7 +2122,7 @@ const fn = () => {
|
|
|
2122
2122
|
className: [mn.l, r].filter((n) => n !== void 0).join(" "),
|
|
2123
2123
|
children: t
|
|
2124
2124
|
}
|
|
2125
|
-
), yn = "_q_z5mg9_2", _n = "_m_z5mg9_8", Rn = "_g_z5mg9_15", Sn = "_i_z5mg9_23", En = "_c_z5mg9_40", xn = "_l_z5mg9_47", An = "_a_z5mg9_62", jn = "_n_z5mg9_68",
|
|
2125
|
+
), yn = "_q_z5mg9_2", _n = "_m_z5mg9_8", Rn = "_g_z5mg9_15", Sn = "_i_z5mg9_23", En = "_c_z5mg9_40", xn = "_l_z5mg9_47", An = "_a_z5mg9_62", jn = "_n_z5mg9_68", ue = {
|
|
2126
2126
|
q: yn,
|
|
2127
2127
|
m: _n,
|
|
2128
2128
|
g: Rn,
|
|
@@ -2135,36 +2135,36 @@ const fn = () => {
|
|
|
2135
2135
|
const n = (i) => {
|
|
2136
2136
|
Ce.setPage(i);
|
|
2137
2137
|
}, s = (i) => {
|
|
2138
|
-
|
|
2138
|
+
ce.openTelegramLink(i);
|
|
2139
2139
|
};
|
|
2140
2140
|
return /* @__PURE__ */ l.jsx(
|
|
2141
2141
|
"div",
|
|
2142
2142
|
{
|
|
2143
2143
|
className: G(
|
|
2144
|
-
|
|
2145
|
-
|
|
2144
|
+
ue[r === "liquid-glass" ? "q" : ""],
|
|
2145
|
+
ue.m
|
|
2146
2146
|
),
|
|
2147
|
-
children: t.map((i) => /* @__PURE__ */ l.jsx("div", { className:
|
|
2147
|
+
children: t.map((i) => /* @__PURE__ */ l.jsx("div", { className: ue.g, children: i.items.map((c, d) => /* @__PURE__ */ l.jsxs(
|
|
2148
2148
|
"div",
|
|
2149
2149
|
{
|
|
2150
|
-
className:
|
|
2150
|
+
className: ue.i,
|
|
2151
2151
|
onClick: () => {
|
|
2152
2152
|
c.link && s(c.link), c.page && n(c.page), c.callback && c.callback();
|
|
2153
2153
|
},
|
|
2154
2154
|
children: [
|
|
2155
|
-
/* @__PURE__ */ l.jsxs("div", { className:
|
|
2155
|
+
/* @__PURE__ */ l.jsxs("div", { className: ue.c, children: [
|
|
2156
2156
|
/* @__PURE__ */ l.jsx(
|
|
2157
2157
|
"span",
|
|
2158
2158
|
{
|
|
2159
|
-
className:
|
|
2159
|
+
className: ue.l,
|
|
2160
2160
|
style: { background: c.color },
|
|
2161
2161
|
children: c.icon
|
|
2162
2162
|
}
|
|
2163
2163
|
),
|
|
2164
2164
|
c.title,
|
|
2165
|
-
c.count && /* @__PURE__ */ l.jsx("span", { className:
|
|
2165
|
+
c.count && /* @__PURE__ */ l.jsx("span", { className: ue.n, children: c.count })
|
|
2166
2166
|
] }),
|
|
2167
|
-
/* @__PURE__ */ l.jsx("span", { className:
|
|
2167
|
+
/* @__PURE__ */ l.jsx("span", { className: ue.a, children: "›" })
|
|
2168
2168
|
]
|
|
2169
2169
|
},
|
|
2170
2170
|
d
|
|
@@ -2200,7 +2200,7 @@ function Bn({
|
|
|
2200
2200
|
A && A.parentNode && A.parentNode.removeChild(A);
|
|
2201
2201
|
};
|
|
2202
2202
|
}, []);
|
|
2203
|
-
const
|
|
2203
|
+
const y = /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
2204
2204
|
f && /* @__PURE__ */ l.jsx("div", { className: se.o, onClick: () => g(!1) }),
|
|
2205
2205
|
/* @__PURE__ */ l.jsxs(
|
|
2206
2206
|
"div",
|
|
@@ -2250,7 +2250,7 @@ function Bn({
|
|
|
2250
2250
|
children: r
|
|
2251
2251
|
}
|
|
2252
2252
|
),
|
|
2253
|
-
h && pr(
|
|
2253
|
+
h && pr(y, h)
|
|
2254
2254
|
] });
|
|
2255
2255
|
}
|
|
2256
2256
|
const In = (t, r) => {
|
|
@@ -2284,7 +2284,7 @@ const In = (t, r) => {
|
|
|
2284
2284
|
onPageChange: p,
|
|
2285
2285
|
direction: f = "row"
|
|
2286
2286
|
}) => {
|
|
2287
|
-
const [g, h] = C.useState(null), [b,
|
|
2287
|
+
const [g, h] = C.useState(null), [b, y] = C.useState(
|
|
2288
2288
|
c ? rr(t || [], c) : 0
|
|
2289
2289
|
), [A, B] = C.useState(
|
|
2290
2290
|
"right"
|
|
@@ -2292,7 +2292,7 @@ const In = (t, r) => {
|
|
|
2292
2292
|
C.useEffect(() => {
|
|
2293
2293
|
if (c) {
|
|
2294
2294
|
const V = rr(t || [], c);
|
|
2295
|
-
V !== -1 && V !== ee.current && (ee.current = V,
|
|
2295
|
+
V !== -1 && V !== ee.current && (ee.current = V, y(V));
|
|
2296
2296
|
}
|
|
2297
2297
|
}, [c, t]), C.useEffect(() => {
|
|
2298
2298
|
ee.current !== b && (B(
|
|
@@ -2350,7 +2350,7 @@ const In = (t, r) => {
|
|
|
2350
2350
|
{
|
|
2351
2351
|
actions: t,
|
|
2352
2352
|
activeIndex: b,
|
|
2353
|
-
setActiveIndex:
|
|
2353
|
+
setActiveIndex: y,
|
|
2354
2354
|
onPageChange: p,
|
|
2355
2355
|
setComponent: h,
|
|
2356
2356
|
actual: s
|
|
@@ -2481,8 +2481,8 @@ function uo({
|
|
|
2481
2481
|
}, [i]);
|
|
2482
2482
|
let g = {
|
|
2483
2483
|
onScroll: (h) => {
|
|
2484
|
-
const { scrollTop: b, scrollHeight:
|
|
2485
|
-
b + A >=
|
|
2484
|
+
const { scrollTop: b, scrollHeight: y, clientHeight: A } = h.currentTarget;
|
|
2485
|
+
b + A >= y - s && !p && (f(!0), n == null || n());
|
|
2486
2486
|
}
|
|
2487
2487
|
};
|
|
2488
2488
|
return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
@@ -2541,8 +2541,8 @@ const mo = "_q_1wgf4_2", bo = "_o_1wgf4_11", yo = "_x_1wgf4_25", _o = "_c_1wgf4_
|
|
|
2541
2541
|
}) => {
|
|
2542
2542
|
const [f, g] = C.useState(!1), [h, b] = C.useState(!1);
|
|
2543
2543
|
return C.useEffect(() => {
|
|
2544
|
-
X[c] = (
|
|
2545
|
-
|
|
2544
|
+
X[c] = (y) => {
|
|
2545
|
+
y ? (b(!1), g(!0), p == null || p(!0)) : (b(!0), p == null || p(!1), setTimeout(() => {
|
|
2546
2546
|
g(!1), b(!1);
|
|
2547
2547
|
}, 300));
|
|
2548
2548
|
};
|
|
@@ -2556,8 +2556,8 @@ const mo = "_q_1wgf4_2", bo = "_o_1wgf4_11", yo = "_x_1wgf4_25", _o = "_c_1wgf4_
|
|
|
2556
2556
|
h && ie.c
|
|
2557
2557
|
),
|
|
2558
2558
|
onClick: () => {
|
|
2559
|
-
var
|
|
2560
|
-
return (
|
|
2559
|
+
var y;
|
|
2560
|
+
return (y = X[c]) == null ? void 0 : y.call(X, !1);
|
|
2561
2561
|
},
|
|
2562
2562
|
children: /* @__PURE__ */ l.jsxs(
|
|
2563
2563
|
"div",
|
|
@@ -2568,7 +2568,7 @@ const mo = "_q_1wgf4_2", bo = "_o_1wgf4_11", yo = "_x_1wgf4_25", _o = "_c_1wgf4_
|
|
|
2568
2568
|
s && ie.f,
|
|
2569
2569
|
i
|
|
2570
2570
|
),
|
|
2571
|
-
onClick: (
|
|
2571
|
+
onClick: (y) => y.stopPropagation(),
|
|
2572
2572
|
children: [
|
|
2573
2573
|
r && /* @__PURE__ */ l.jsxs("div", { className: ie.h, children: [
|
|
2574
2574
|
/* @__PURE__ */ l.jsx("h3", { children: r }),
|
|
@@ -2577,8 +2577,8 @@ const mo = "_q_1wgf4_2", bo = "_o_1wgf4_11", yo = "_x_1wgf4_25", _o = "_c_1wgf4_
|
|
|
2577
2577
|
{
|
|
2578
2578
|
className: ie.b,
|
|
2579
2579
|
onClick: () => {
|
|
2580
|
-
var
|
|
2581
|
-
return (
|
|
2580
|
+
var y;
|
|
2581
|
+
return (y = X[c]) == null ? void 0 : y.call(X, !1);
|
|
2582
2582
|
},
|
|
2583
2583
|
children: "✕"
|
|
2584
2584
|
}
|
|
@@ -2602,7 +2602,7 @@ const mo = "_q_1wgf4_2", bo = "_o_1wgf4_11", yo = "_x_1wgf4_25", _o = "_c_1wgf4_
|
|
|
2602
2602
|
var n;
|
|
2603
2603
|
let r = U.state.pop();
|
|
2604
2604
|
U.prev = Ce.getPage(), r.page !== void 0 ? Ce.setPage(r.page) : (n = r.callback) == null || n.call(r);
|
|
2605
|
-
}),
|
|
2605
|
+
}), ce.BackButton.onClick(U.listen[0]));
|
|
2606
2606
|
}
|
|
2607
2607
|
}, G = (...t) => t.filter((r) => r !== void 0 && r !== !1 && r !== null && r !== "").join(" ");
|
|
2608
2608
|
var O;
|
|
@@ -2661,7 +2661,7 @@ var O;
|
|
|
2661
2661
|
de.is ? de.BackButton.set(n) : (U.state.push(n), U.router(n));
|
|
2662
2662
|
};
|
|
2663
2663
|
})(O || (O = {}));
|
|
2664
|
-
const Oo = O.TabBar, Po = dr, nr = O.BackButton, Co = O.BackButtonPrev, jo = O.BackButtonState, To = O.Notice, $o = O.SafeArea, No = O.Loading, Mo = O.Menu, Bo = O.SidePanel, Io = O.Scroll, Lo = O.AppBar, Do = O.Title, Uo = O.Sidebar, Fo = O.Location, Wo = O.SidePanelController, qo = O.SideBarController, Yo = O.BottomSheetControllerSheet, { Header: zo, Modal: Vo, MainButton: Jo, WebApp:
|
|
2664
|
+
const Oo = O.TabBar, Po = dr, nr = O.BackButton, Co = O.BackButtonPrev, jo = O.BackButtonState, To = O.Notice, $o = O.SafeArea, No = O.Loading, Mo = O.Menu, Bo = O.SidePanel, Io = O.Scroll, Lo = O.AppBar, Do = O.Title, Uo = O.Sidebar, Fo = O.Location, Wo = O.SidePanelController, qo = O.SideBarController, Yo = O.BottomSheetControllerSheet, { Header: zo, Modal: Vo, MainButton: Jo, WebApp: ce, getUser: Ho } = O;
|
|
2665
2665
|
export {
|
|
2666
2666
|
Lo as AppBar,
|
|
2667
2667
|
nr as BackButton,
|
|
@@ -2684,7 +2684,7 @@ export {
|
|
|
2684
2684
|
Uo as Sidebar,
|
|
2685
2685
|
Oo as TabBar,
|
|
2686
2686
|
Do as Title,
|
|
2687
|
-
|
|
2687
|
+
ce as WebApp,
|
|
2688
2688
|
G as clsx,
|
|
2689
2689
|
O as default,
|
|
2690
2690
|
Ho as getUser
|
package/dist/index.umd.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var Jt;function gr(){if(Jt)return Oe;Jt=1;var t=w,r=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function d(p,f,
|
|
10
|
+
*/var Jt;function gr(){if(Jt)return Oe;Jt=1;var t=w,r=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function d(p,f,_){var b,h={},x=null,R=null;_!==void 0&&(x=""+_),f.key!==void 0&&(x=""+f.key),f.ref!==void 0&&(R=f.ref);for(b in f)i.call(f,b)&&!l.hasOwnProperty(b)&&(h[b]=f[b]);if(p&&p.defaultProps)for(b in f=p.defaultProps,f)h[b]===void 0&&(h[b]=f[b]);return{$$typeof:r,type:p,key:x,ref:R,props:h,_owner:s.current}}return Oe.Fragment=a,Oe.jsx=d,Oe.jsxs=d,Oe}var Pe={};/**
|
|
11
11
|
* @license React
|
|
12
12
|
* react-jsx-runtime.development.js
|
|
13
13
|
*
|
|
@@ -15,20 +15,20 @@
|
|
|
15
15
|
*
|
|
16
16
|
* This source code is licensed under the MIT license found in the
|
|
17
17
|
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/var Kt;function
|
|
19
|
-
`+
|
|
18
|
+
*/var Kt;function br(){return Kt||(Kt=1,process.env.NODE_ENV!=="production"&&function(){var t=w,r=Symbol.for("react.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),p=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),N=Symbol.iterator,re="@@iterator";function Ce(e){if(e===null||typeof e!="object")return null;var n=N&&e[N]||e[re];return typeof n=="function"?n:null}var z=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(e){{for(var n=arguments.length,o=new Array(n>1?n-1:0),u=1;u<n;u++)o[u-1]=arguments[u];Ee("error",e,o)}}function Ee(e,n,o){{var u=z.ReactDebugCurrentFrame,y=u.getStackAddendum();y!==""&&(n+="%s",o=o.concat([y]));var k=o.map(function(m){return String(m)});k.unshift("Warning: "+n),Function.prototype.apply.call(console[e],console,k)}}var Re=!1,ae=!1,V=!1,Ae=!1,$e=!1,T;T=Symbol.for("react.module.reference");function ht(e){return!!(typeof e=="string"||typeof e=="function"||e===i||e===l||$e||e===s||e===_||e===b||Ae||e===R||Re||ae||V||typeof e=="object"&&e!==null&&(e.$$typeof===x||e.$$typeof===h||e.$$typeof===d||e.$$typeof===p||e.$$typeof===f||e.$$typeof===T||e.getModuleId!==void 0))}function vt(e,n,o){var u=e.displayName;if(u)return u;var y=n.displayName||n.name||"";return y!==""?o+"("+y+")":o}function ze(e){return e.displayName||"Context"}function C(e){if(e==null)return null;if(typeof e.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case i:return"Fragment";case a:return"Portal";case l:return"Profiler";case s:return"StrictMode";case _:return"Suspense";case b:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case p:var n=e;return ze(n)+".Consumer";case d:var o=e;return ze(o._context)+".Provider";case f:return vt(e,e.render,"ForwardRef");case h:var u=e.displayName||null;return u!==null?u:C(e.type)||"Memo";case x:{var y=e,k=y._payload,m=y._init;try{return C(m(k))}catch{return null}}}return null}var I=Object.assign,H=0,Me,Be,Ne,Ie,qe,Le,De;function Ue(){}Ue.__reactDisabledLog=!0;function xt(){{if(H===0){Me=console.log,Be=console.info,Ne=console.warn,Ie=console.error,qe=console.group,Le=console.groupCollapsed,De=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ue,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}H++}}function yt(){{if(H--,H===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:Me}),info:I({},e,{value:Be}),warn:I({},e,{value:Ne}),error:I({},e,{value:Ie}),group:I({},e,{value:qe}),groupCollapsed:I({},e,{value:Le}),groupEnd:I({},e,{value:De})})}H<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var be=z.ReactCurrentDispatcher,_e;function ne(e,n,o){{if(_e===void 0)try{throw Error()}catch(y){var u=y.stack.trim().match(/\n( *(at )?)/);_e=u&&u[1]||""}return`
|
|
19
|
+
`+_e+e}}var me=!1,oe;{var wt=typeof WeakMap=="function"?WeakMap:Map;oe=new wt}function Fe(e,n){if(!e||me)return"";{var o=oe.get(e);if(o!==void 0)return o}var u;me=!0;var y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var k;k=be.current,be.current=null,xt();try{if(n){var m=function(){throw Error()};if(Object.defineProperty(m.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(m,[])}catch(O){u=O}Reflect.construct(e,[],m)}else{try{m.call()}catch(O){u=O}e.call(m.prototype)}}else{try{throw Error()}catch(O){u=O}e()}}catch(O){if(O&&u&&typeof O.stack=="string"){for(var g=O.stack.split(`
|
|
20
20
|
`),$=u.stack.split(`
|
|
21
21
|
`),S=g.length-1,j=$.length-1;S>=1&&j>=0&&g[S]!==$[j];)j--;for(;S>=1&&j>=0;S--,j--)if(g[S]!==$[j]){if(S!==1||j!==1)do if(S--,j--,j<0||g[S]!==$[j]){var P=`
|
|
22
|
-
`+g[S].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),typeof e=="function"&&oe.set(e,P),P}while(S>=1&&j>=0);break}}}finally{me=!1,
|
|
22
|
+
`+g[S].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),typeof e=="function"&&oe.set(e,P),P}while(S>=1&&j>=0);break}}}finally{me=!1,be.current=k,yt(),Error.prepareStackTrace=y}var F=e?e.displayName||e.name:"",q=F?ne(F):"";return typeof e=="function"&&oe.set(e,q),q}function kt(e,n,o){return Fe(e,!1)}function St(e){var n=e.prototype;return!!(n&&n.isReactComponent)}function ie(e,n,o){if(e==null)return"";if(typeof e=="function")return Fe(e,St(e));if(typeof e=="string")return ne(e);switch(e){case _:return ne("Suspense");case b:return ne("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return kt(e.render);case h:return ie(e.type,n,o);case x:{var u=e,y=u._payload,k=u._init;try{return ie(k(y),n,o)}catch{}}}return""}var J=Object.prototype.hasOwnProperty,We={},Ye=z.ReactDebugCurrentFrame;function se(e){if(e){var n=e._owner,o=ie(e.type,e._source,n?n.type:null);Ye.setExtraStackFrame(o)}else Ye.setExtraStackFrame(null)}function jt(e,n,o,u,y){{var k=Function.call.bind(J);for(var m in e)if(k(e,m)){var g=void 0;try{if(typeof e[m]!="function"){var $=Error((u||"React class")+": "+o+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw $.name="Invariant Violation",$}g=e[m](n,m,u,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(S){g=S}g&&!(g instanceof Error)&&(se(y),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",u||"React class",o,m,typeof g),se(null)),g instanceof Error&&!(g.message in We)&&(We[g.message]=!0,se(y),E("Failed %s type: %s",o,g.message),se(null))}}}var Et=Array.isArray;function he(e){return Et(e)}function Rt(e){{var n=typeof Symbol=="function"&&Symbol.toStringTag,o=n&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function At(e){try{return Ve(e),!1}catch{return!0}}function Ve(e){return""+e}function He(e){if(At(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Rt(e)),Ve(e)}var Je=z.ReactCurrentOwner,$t={key:!0,ref:!0,__self:!0,__source:!0},Ke,Ge;function Ot(e){if(J.call(e,"ref")){var n=Object.getOwnPropertyDescriptor(e,"ref").get;if(n&&n.isReactWarning)return!1}return e.ref!==void 0}function Pt(e){if(J.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return e.key!==void 0}function Tt(e,n){typeof e.ref=="string"&&Je.current}function Ct(e,n){{var o=function(){Ke||(Ke=!0,E("%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)",n))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function zt(e,n){{var o=function(){Ge||(Ge=!0,E("%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)",n))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var Mt=function(e,n,o,u,y,k,m){var g={$$typeof:r,type:e,key:n,ref:o,props:m,_owner:k};return g._store={},Object.defineProperty(g._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(g,"_self",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.defineProperty(g,"_source",{configurable:!1,enumerable:!1,writable:!1,value:y}),Object.freeze&&(Object.freeze(g.props),Object.freeze(g)),g};function Bt(e,n,o,u,y){{var k,m={},g=null,$=null;o!==void 0&&(He(o),g=""+o),Pt(n)&&(He(n.key),g=""+n.key),Ot(n)&&($=n.ref,Tt(n,y));for(k in n)J.call(n,k)&&!$t.hasOwnProperty(k)&&(m[k]=n[k]);if(e&&e.defaultProps){var S=e.defaultProps;for(k in S)m[k]===void 0&&(m[k]=S[k])}if(g||$){var j=typeof e=="function"?e.displayName||e.name||"Unknown":e;g&&Ct(m,j),$&&zt(m,j)}return Mt(e,g,$,y,u,Je.current,m)}}var ve=z.ReactCurrentOwner,Xe=z.ReactDebugCurrentFrame;function U(e){if(e){var n=e._owner,o=ie(e.type,e._source,n?n.type:null);Xe.setExtraStackFrame(o)}else Xe.setExtraStackFrame(null)}var xe;xe=!1;function ye(e){return typeof e=="object"&&e!==null&&e.$$typeof===r}function Ze(){{if(ve.current){var e=C(ve.current.type);if(e)return`
|
|
23
23
|
|
|
24
24
|
Check the render method of \``+e+"`."}return""}}function Nt(e){return""}var Qe={};function It(e){{var n=Ze();if(!n){var o=typeof e=="string"?e:e.displayName||e.name;o&&(n=`
|
|
25
25
|
|
|
26
|
-
Check the top-level render call using <`+o+">.")}return n}}function et(e,n){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=It(n);if(Qe[o])return;Qe[o]=!0;var u="";e&&e._owner&&e._owner!==ve.current&&(u=" It was passed a child from "+C(e._owner.type)+"."),U(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,u),U(null)}}function tt(e,n){{if(typeof e!="object")return;if(he(e))for(var o=0;o<e.length;o++){var u=e[o];ye(u)&&et(u,n)}else if(ye(e))e._store&&(e._store.validated=!0);else if(e){var
|
|
26
|
+
Check the top-level render call using <`+o+">.")}return n}}function et(e,n){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=It(n);if(Qe[o])return;Qe[o]=!0;var u="";e&&e._owner&&e._owner!==ve.current&&(u=" It was passed a child from "+C(e._owner.type)+"."),U(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,u),U(null)}}function tt(e,n){{if(typeof e!="object")return;if(he(e))for(var o=0;o<e.length;o++){var u=e[o];ye(u)&&et(u,n)}else if(ye(e))e._store&&(e._store.validated=!0);else if(e){var y=Ce(e);if(typeof y=="function"&&y!==e.entries)for(var k=y.call(e),m;!(m=k.next()).done;)ye(m.value)&&et(m.value,n)}}}function qt(e){{var n=e.type;if(n==null||typeof n=="string")return;var o;if(typeof n=="function")o=n.propTypes;else if(typeof n=="object"&&(n.$$typeof===f||n.$$typeof===h))o=n.propTypes;else return;if(o){var u=C(n);jt(o,e.props,"prop",u,e)}else if(n.PropTypes!==void 0&&!xe){xe=!0;var y=C(n);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",y||"Unknown")}typeof n.getDefaultProps=="function"&&!n.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Lt(e){{for(var n=Object.keys(e.props),o=0;o<n.length;o++){var u=n[o];if(u!=="children"&&u!=="key"){U(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",u),U(null);break}}e.ref!==null&&(U(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),U(null))}}var rt={};function at(e,n,o,u,y,k){{var m=ht(e);if(!m){var g="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(g+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var $=Nt();$?g+=$:g+=Ze();var S;e===null?S="null":he(e)?S="array":e!==void 0&&e.$$typeof===r?(S="<"+(C(e.type)||"Unknown")+" />",g=" Did you accidentally export a JSX literal instead of a component?"):S=typeof e,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,g)}var j=Bt(e,n,o,y,k);if(j==null)return j;if(m){var P=n.children;if(P!==void 0)if(u)if(he(P)){for(var F=0;F<P.length;F++)tt(P[F],e);Object.freeze&&Object.freeze(P)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else tt(P,e)}if(J.call(n,"key")){var q=C(e),O=Object.keys(n).filter(function(Vt){return Vt!=="key"}),we=O.length>0?"{key: someKey, "+O.join(": ..., ")+": ...}":"{key: someKey}";if(!rt[q+we]){var Yt=O.length>0?"{"+O.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
|
|
27
27
|
let props = %s;
|
|
28
28
|
<%s {...props} />
|
|
29
29
|
React keys must be passed directly to JSX without using spread:
|
|
30
30
|
let props = %s;
|
|
31
|
-
<%s key={someKey} {...props} />`,we,q,Yt,q),rt[q+we]=!0}}return e===i?Lt(j):qt(j),j}}function Dt(e,n,o){return at(e,n,o,!0)}function Ut(e,n,o){return at(e,n,o,!1)}var Ft=Ut,Wt=Dt;Pe.Fragment=i,Pe.jsx=Ft,Pe.jsxs=Wt}()),Pe}process.env.NODE_ENV==="production"?dt.exports=gr():dt.exports=
|
|
31
|
+
<%s key={someKey} {...props} />`,we,q,Yt,q),rt[q+we]=!0}}return e===i?Lt(j):qt(j),j}}function Dt(e,n,o){return at(e,n,o,!0)}function Ut(e,n,o){return at(e,n,o,!1)}var Ft=Ut,Wt=Dt;Pe.Fragment=i,Pe.jsx=Ft,Pe.jsxs=Wt}()),Pe}process.env.NODE_ENV==="production"?dt.exports=gr():dt.exports=br();var c=dt.exports;const ke={o:"_o_1apbm_11",x:"_x_1apbm_24",p:"_p_1apbm_28",m:"_m_1apbm_45"};let D={};var pt;(t=>{function r({children:p,onCallbackModal:f,nameModal:_,offsetTop:b}){const[h,x]=w.useState(!1),[R,N]=w.useState(!1);if(D[_].onClose=()=>{v.default.BackButton(!1),N(!0),setTimeout(()=>{x(!1),N(!1),f==null||f(),D.x(_)},300)},w.useEffect(()=>{h?D[_].onClose():(v.default.BackButton({callback:()=>D[_].onClose()}),x(!0))},[]),!!h)return c.jsx("div",{className:W(ke.o,R&&ke.x),children:c.jsx("div",{className:W(ke.p,R&&ke.x,b?ke.o:ke.m),children:p})})}t.Content=r;function a({import_modules:p}){let[f,_]=w.useState([]);return D.x=b=>{_(b?f.filter(h=>h.key!==b):[])},w.useEffect(()=>{p&&(D.i=p)},[]),D.add=(b,h=Date.now())=>{_([...f,{key:h,item:b}])},c.jsx(c.Fragment,{children:f.map(b=>b.item)})}t.Init=a;function i(p,f,_){D.add(c.jsx(r,{onCallbackModal:D["callback_modal"+f],nameModal:f||"",offsetTop:_,children:p},String(Date.now())),f)}t.Add=i;function s(p,f=Date.now().toString(),_){return D[f]={},{Open:x=>{t.Add(c.jsx(p,{...x,onCallbackModal:R=>{var N;(N=x.callback)==null||N.call(x,R)},nameModal:f},new Date().getTime()),f,_===void 0?!0:_)}}}t.Create=s;function l(p){D[p].onClose()}t.Close=l;function d(p,f,_,b){D.i&&(b&&(_.callback=b),D.i(`${p}/modals/${f}.tsx`).then(h=>{var x;h.Open?h.Open(_):(x=h.default)!=null&&x.Open?h.default.Open(_):h.default&&h.default(_)}))}t.Open=d})(pt||(pt={}));function Gt(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}const Xt={key:"Y0zt37HgOx-BY7SQjYVmrqhPkO41Ii2Jcb9yydUDPf6",iterations:7,saltLength:16};function Zt(t){const r=Gt();r.CRYPTO_PARAMS?r.CRYPTO_PARAMS={...r.CRYPTO_PARAMS,...t}:r.CRYPTO_PARAMS={...Xt,...t}}function nt(){return Gt().CRYPTO_PARAMS||Xt}const ot=t=>{let r=0;for(let i=0;i<t.length;i++){const s=t.charCodeAt(i);r=(r<<5)-r+s,r=r&r}r=Math.abs(r);let a="";for(let i=0;i<64;i++){const s=(r^i*197)&255;a+=s.toString(16).padStart(2,"0")}return a},Qt=(t,r)=>{let a=t+r;for(let s=0;s<nt().iterations;s++)a=ot(a);const i=new Uint8Array(32);for(let s=0;s<32;s++)i[s]=parseInt(a.substring(s*2,s*2+2),16);return i},er=(t,r)=>{const a=new Uint8Array(t.length),i=new Uint8Array(t.length);let s=0;for(let l=0;l<t.length;l++){const d=l%r.length;s=r[d]+l+s&255,i[l]=s}for(let l=0;l<t.length;l++)a[l]=t[l]^i[l];return a},_r=t=>new TextEncoder().encode(t),mr=t=>new TextDecoder().decode(t),hr=t=>{let r="";for(let a=0;a<t.length;a+=8192){const i=t.slice(a,Math.min(a+8192,t.length));r+=String.fromCharCode.apply(null,Array.from(i))}return btoa(r)},vr=t=>{const r=atob(t),a=new Uint8Array(r.length);for(let i=0;i<r.length;i++)a[i]=r.charCodeAt(i);return a},xr=t=>{try{const r=ot(Date.now().toString()+Math.random()).substring(0,nt().saltLength*2),a=ot(t+r).substring(0,8),i=Qt(nt().key,r),s=_r(t),l=er(s,i),d=hr(l);return`${r}.${d}.${a}`}catch{throw new Error("Не удалось зашифровать данные")}},yr=t=>{try{const r=t.split(".");if(r.length!==3)throw new Error("Неверный формат зашифрованных данных");const a=r[0],i=r[1],s=r[2],l=Qt(nt().key,a),d=vr(i),p=er(d,l),f=mr(p);if(ot(f+a).substring(0,8)!==s)throw new Error("Контрольная сумма не совпадает");return f}catch{return""}};var le;(t=>{t.setKey=r=>{Zt({key:r})},t.enCode=r=>{try{const a=JSON.stringify(r);return xr(a)}catch{throw new Error("Не удалось зашифровать объект")}},t.deCode=r=>{try{if(!r||r.length<10)return!1;const a=yr(r);return a&&JSON.parse(a)||!1}catch{return!1}},t.setSecurityParams=(r,a)=>{Zt({iterations:r,saltLength:a})}})(le||(le={}));var Te={};/**
|
|
32
32
|
* @license React
|
|
33
33
|
* react-jsx-runtime.production.min.js
|
|
34
34
|
*
|
|
@@ -36,7 +36,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
36
36
|
*
|
|
37
37
|
* This source code is licensed under the MIT license found in the
|
|
38
38
|
* LICENSE file in the root directory of this source tree.
|
|
39
|
-
*/var tr;function wr(){if(tr)return Te;tr=1;var t=w,r=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function d(p,f,
|
|
39
|
+
*/var tr;function wr(){if(tr)return Te;tr=1;var t=w,r=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function d(p,f,_){var b,h={},x=null,R=null;_!==void 0&&(x=""+_),f.key!==void 0&&(x=""+f.key),f.ref!==void 0&&(R=f.ref);for(b in f)i.call(f,b)&&!l.hasOwnProperty(b)&&(h[b]=f[b]);if(p&&p.defaultProps)for(b in f=p.defaultProps,f)h[b]===void 0&&(h[b]=f[b]);return{$$typeof:r,type:p,key:x,ref:R,props:h,_owner:s.current}}return Te.Fragment=a,Te.jsx=d,Te.jsxs=d,Te}var it={};/**
|
|
40
40
|
* @license React
|
|
41
41
|
* react-jsx-runtime.development.js
|
|
42
42
|
*
|
|
@@ -44,17 +44,17 @@ React keys must be passed directly to JSX without using spread:
|
|
|
44
44
|
*
|
|
45
45
|
* This source code is licensed under the MIT license found in the
|
|
46
46
|
* LICENSE file in the root directory of this source tree.
|
|
47
|
-
*/var rr;function kr(){return rr||(rr=1,process.env.NODE_ENV!=="production"&&function(){var t=w,r=Symbol.for("react.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),p=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),
|
|
48
|
-
`+
|
|
47
|
+
*/var rr;function kr(){return rr||(rr=1,process.env.NODE_ENV!=="production"&&function(){var t=w,r=Symbol.for("react.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),p=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),N=Symbol.iterator,re="@@iterator";function Ce(e){if(e===null||typeof e!="object")return null;var n=N&&e[N]||e[re];return typeof n=="function"?n:null}var z=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(e){{for(var n=arguments.length,o=new Array(n>1?n-1:0),u=1;u<n;u++)o[u-1]=arguments[u];Ee("error",e,o)}}function Ee(e,n,o){{var u=z.ReactDebugCurrentFrame,y=u.getStackAddendum();y!==""&&(n+="%s",o=o.concat([y]));var k=o.map(function(m){return String(m)});k.unshift("Warning: "+n),Function.prototype.apply.call(console[e],console,k)}}var Re=!1,ae=!1,V=!1,Ae=!1,$e=!1,T;T=Symbol.for("react.module.reference");function ht(e){return!!(typeof e=="string"||typeof e=="function"||e===i||e===l||$e||e===s||e===_||e===b||Ae||e===R||Re||ae||V||typeof e=="object"&&e!==null&&(e.$$typeof===x||e.$$typeof===h||e.$$typeof===d||e.$$typeof===p||e.$$typeof===f||e.$$typeof===T||e.getModuleId!==void 0))}function vt(e,n,o){var u=e.displayName;if(u)return u;var y=n.displayName||n.name||"";return y!==""?o+"("+y+")":o}function ze(e){return e.displayName||"Context"}function C(e){if(e==null)return null;if(typeof e.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case i:return"Fragment";case a:return"Portal";case l:return"Profiler";case s:return"StrictMode";case _:return"Suspense";case b:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case p:var n=e;return ze(n)+".Consumer";case d:var o=e;return ze(o._context)+".Provider";case f:return vt(e,e.render,"ForwardRef");case h:var u=e.displayName||null;return u!==null?u:C(e.type)||"Memo";case x:{var y=e,k=y._payload,m=y._init;try{return C(m(k))}catch{return null}}}return null}var I=Object.assign,H=0,Me,Be,Ne,Ie,qe,Le,De;function Ue(){}Ue.__reactDisabledLog=!0;function xt(){{if(H===0){Me=console.log,Be=console.info,Ne=console.warn,Ie=console.error,qe=console.group,Le=console.groupCollapsed,De=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ue,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}H++}}function yt(){{if(H--,H===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:Me}),info:I({},e,{value:Be}),warn:I({},e,{value:Ne}),error:I({},e,{value:Ie}),group:I({},e,{value:qe}),groupCollapsed:I({},e,{value:Le}),groupEnd:I({},e,{value:De})})}H<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var be=z.ReactCurrentDispatcher,_e;function ne(e,n,o){{if(_e===void 0)try{throw Error()}catch(y){var u=y.stack.trim().match(/\n( *(at )?)/);_e=u&&u[1]||""}return`
|
|
48
|
+
`+_e+e}}var me=!1,oe;{var wt=typeof WeakMap=="function"?WeakMap:Map;oe=new wt}function Fe(e,n){if(!e||me)return"";{var o=oe.get(e);if(o!==void 0)return o}var u;me=!0;var y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var k;k=be.current,be.current=null,xt();try{if(n){var m=function(){throw Error()};if(Object.defineProperty(m.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(m,[])}catch(O){u=O}Reflect.construct(e,[],m)}else{try{m.call()}catch(O){u=O}e.call(m.prototype)}}else{try{throw Error()}catch(O){u=O}e()}}catch(O){if(O&&u&&typeof O.stack=="string"){for(var g=O.stack.split(`
|
|
49
49
|
`),$=u.stack.split(`
|
|
50
50
|
`),S=g.length-1,j=$.length-1;S>=1&&j>=0&&g[S]!==$[j];)j--;for(;S>=1&&j>=0;S--,j--)if(g[S]!==$[j]){if(S!==1||j!==1)do if(S--,j--,j<0||g[S]!==$[j]){var P=`
|
|
51
|
-
`+g[S].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),typeof e=="function"&&oe.set(e,P),P}while(S>=1&&j>=0);break}}}finally{me=!1,
|
|
51
|
+
`+g[S].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),typeof e=="function"&&oe.set(e,P),P}while(S>=1&&j>=0);break}}}finally{me=!1,be.current=k,yt(),Error.prepareStackTrace=y}var F=e?e.displayName||e.name:"",q=F?ne(F):"";return typeof e=="function"&&oe.set(e,q),q}function kt(e,n,o){return Fe(e,!1)}function St(e){var n=e.prototype;return!!(n&&n.isReactComponent)}function ie(e,n,o){if(e==null)return"";if(typeof e=="function")return Fe(e,St(e));if(typeof e=="string")return ne(e);switch(e){case _:return ne("Suspense");case b:return ne("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return kt(e.render);case h:return ie(e.type,n,o);case x:{var u=e,y=u._payload,k=u._init;try{return ie(k(y),n,o)}catch{}}}return""}var J=Object.prototype.hasOwnProperty,We={},Ye=z.ReactDebugCurrentFrame;function se(e){if(e){var n=e._owner,o=ie(e.type,e._source,n?n.type:null);Ye.setExtraStackFrame(o)}else Ye.setExtraStackFrame(null)}function jt(e,n,o,u,y){{var k=Function.call.bind(J);for(var m in e)if(k(e,m)){var g=void 0;try{if(typeof e[m]!="function"){var $=Error((u||"React class")+": "+o+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw $.name="Invariant Violation",$}g=e[m](n,m,u,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(S){g=S}g&&!(g instanceof Error)&&(se(y),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",u||"React class",o,m,typeof g),se(null)),g instanceof Error&&!(g.message in We)&&(We[g.message]=!0,se(y),E("Failed %s type: %s",o,g.message),se(null))}}}var Et=Array.isArray;function he(e){return Et(e)}function Rt(e){{var n=typeof Symbol=="function"&&Symbol.toStringTag,o=n&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function At(e){try{return Ve(e),!1}catch{return!0}}function Ve(e){return""+e}function He(e){if(At(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Rt(e)),Ve(e)}var Je=z.ReactCurrentOwner,$t={key:!0,ref:!0,__self:!0,__source:!0},Ke,Ge;function Ot(e){if(J.call(e,"ref")){var n=Object.getOwnPropertyDescriptor(e,"ref").get;if(n&&n.isReactWarning)return!1}return e.ref!==void 0}function Pt(e){if(J.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return e.key!==void 0}function Tt(e,n){typeof e.ref=="string"&&Je.current}function Ct(e,n){{var o=function(){Ke||(Ke=!0,E("%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)",n))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function zt(e,n){{var o=function(){Ge||(Ge=!0,E("%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)",n))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var Mt=function(e,n,o,u,y,k,m){var g={$$typeof:r,type:e,key:n,ref:o,props:m,_owner:k};return g._store={},Object.defineProperty(g._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(g,"_self",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.defineProperty(g,"_source",{configurable:!1,enumerable:!1,writable:!1,value:y}),Object.freeze&&(Object.freeze(g.props),Object.freeze(g)),g};function Bt(e,n,o,u,y){{var k,m={},g=null,$=null;o!==void 0&&(He(o),g=""+o),Pt(n)&&(He(n.key),g=""+n.key),Ot(n)&&($=n.ref,Tt(n));for(k in n)J.call(n,k)&&!$t.hasOwnProperty(k)&&(m[k]=n[k]);if(e&&e.defaultProps){var S=e.defaultProps;for(k in S)m[k]===void 0&&(m[k]=S[k])}if(g||$){var j=typeof e=="function"?e.displayName||e.name||"Unknown":e;g&&Ct(m,j),$&&zt(m,j)}return Mt(e,g,$,y,u,Je.current,m)}}var ve=z.ReactCurrentOwner,Xe=z.ReactDebugCurrentFrame;function U(e){if(e){var n=e._owner,o=ie(e.type,e._source,n?n.type:null);Xe.setExtraStackFrame(o)}else Xe.setExtraStackFrame(null)}var xe;xe=!1;function ye(e){return typeof e=="object"&&e!==null&&e.$$typeof===r}function Ze(){{if(ve.current){var e=C(ve.current.type);if(e)return`
|
|
52
52
|
|
|
53
53
|
Check the render method of \``+e+"`."}return""}}function Nt(e){return""}var Qe={};function It(e){{var n=Ze();if(!n){var o=typeof e=="string"?e:e.displayName||e.name;o&&(n=`
|
|
54
54
|
|
|
55
|
-
Check the top-level render call using <`+o+">.")}return n}}function et(e,n){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=It(n);if(Qe[o])return;Qe[o]=!0;var u="";e&&e._owner&&e._owner!==ve.current&&(u=" It was passed a child from "+C(e._owner.type)+"."),U(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,u),U(null)}}function tt(e,n){{if(typeof e!="object")return;if(he(e))for(var o=0;o<e.length;o++){var u=e[o];ye(u)&&et(u,n)}else if(ye(e))e._store&&(e._store.validated=!0);else if(e){var
|
|
55
|
+
Check the top-level render call using <`+o+">.")}return n}}function et(e,n){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=It(n);if(Qe[o])return;Qe[o]=!0;var u="";e&&e._owner&&e._owner!==ve.current&&(u=" It was passed a child from "+C(e._owner.type)+"."),U(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,u),U(null)}}function tt(e,n){{if(typeof e!="object")return;if(he(e))for(var o=0;o<e.length;o++){var u=e[o];ye(u)&&et(u,n)}else if(ye(e))e._store&&(e._store.validated=!0);else if(e){var y=Ce(e);if(typeof y=="function"&&y!==e.entries)for(var k=y.call(e),m;!(m=k.next()).done;)ye(m.value)&&et(m.value,n)}}}function qt(e){{var n=e.type;if(n==null||typeof n=="string")return;var o;if(typeof n=="function")o=n.propTypes;else if(typeof n=="object"&&(n.$$typeof===f||n.$$typeof===h))o=n.propTypes;else return;if(o){var u=C(n);jt(o,e.props,"prop",u,e)}else if(n.PropTypes!==void 0&&!xe){xe=!0;var y=C(n);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",y||"Unknown")}typeof n.getDefaultProps=="function"&&!n.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Lt(e){{for(var n=Object.keys(e.props),o=0;o<n.length;o++){var u=n[o];if(u!=="children"&&u!=="key"){U(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",u),U(null);break}}e.ref!==null&&(U(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),U(null))}}var rt={};function at(e,n,o,u,y,k){{var m=ht(e);if(!m){var g="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(g+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var $=Nt();$?g+=$:g+=Ze();var S;e===null?S="null":he(e)?S="array":e!==void 0&&e.$$typeof===r?(S="<"+(C(e.type)||"Unknown")+" />",g=" Did you accidentally export a JSX literal instead of a component?"):S=typeof e,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,g)}var j=Bt(e,n,o,y,k);if(j==null)return j;if(m){var P=n.children;if(P!==void 0)if(u)if(he(P)){for(var F=0;F<P.length;F++)tt(P[F],e);Object.freeze&&Object.freeze(P)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else tt(P,e)}if(J.call(n,"key")){var q=C(e),O=Object.keys(n).filter(function(Vt){return Vt!=="key"}),we=O.length>0?"{key: someKey, "+O.join(": ..., ")+": ...}":"{key: someKey}";if(!rt[q+we]){var Yt=O.length>0?"{"+O.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
|
|
56
56
|
let props = %s;
|
|
57
57
|
<%s {...props} />
|
|
58
58
|
React keys must be passed directly to JSX without using spread:
|
|
59
59
|
let props = %s;
|
|
60
|
-
<%s key={someKey} {...props} />`,we,q,Yt,q),rt[q+we]=!0}}return e===i?Lt(j):qt(j),j}}function Dt(e,n,o){return at(e,n,o,!0)}function Ut(e,n,o){return at(e,n,o,!1)}var Ft=Ut,Wt=Dt;it.Fragment=i,it.jsx=Ft,it.jsxs=Wt}()),it}process.env.NODE_ENV==="production"?wr():kr();const Sr="0.0.46",ar={version:Sr},Z={},L={module:"",v:ar.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{},debug:!1,tab:"",id:0,dir:".",fileExtension:".tsx",prev:{page:"",module:"",tab:"",id:0}};function K(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}K().elcrm||(K().elcrm={}),Object.assign(K().elcrm,{router:ar.version});function G(t){var r,a,i,s;const l=K();if(l.ROUTER_PARAMS){t.debug||l.ROUTER_PARAMS.debug;const d={page:(r=l.ROUTER_PARAMS)==null?void 0:r.page,module:(a=l.ROUTER_PARAMS)==null?void 0:a.module,tab:(i=l.ROUTER_PARAMS)==null?void 0:i.tab,id:(s=l.ROUTER_PARAMS)==null?void 0:s.id};l.ROUTER_PARAMS={...l.ROUTER_PARAMS,...t,prev:d}}else{t.debug||L.debug;const d={page:L==null?void 0:L.page,module:L==null?void 0:L.module,tab:L==null?void 0:L.tab,id:L==null?void 0:L.id};l.ROUTER_PARAMS={...L,...t,prev:d}}}function A(){return K().ROUTER_PARAMS||L}function de(t){const r=K();r.ROUTER_PARAMS||(r.ROUTER_PARAMS={...L}),r.ROUTER_PARAMS.LISTENER||(r.ROUTER_PARAMS.LISTENER={}),Object.keys(t).forEach(a=>{r.ROUTER_PARAMS.LISTENER[a]||(r.ROUTER_PARAMS.LISTENER[a]=[]),Array.isArray(r.ROUTER_PARAMS.LISTENER[a])||(r.ROUTER_PARAMS.LISTENER[a]=[r.ROUTER_PARAMS.LISTENER[a]]),r.ROUTER_PARAMS.LISTENER[a].includes(t[a])||r.ROUTER_PARAMS.LISTENER[a].push(t[a])})}function Y(){var t;const r=K();let a=((t=r.ROUTER_PARAMS)==null?void 0:t.LISTENER)||L.LISTENER;return a||(a={},r.ROUTER_PARAMS?r.ROUTER_PARAMS.LISTENER=a:L.LISTENER=a),new Proxy(a,{get(i,s){const l=i[s];return Array.isArray(l)&&l.length>0?(...d)=>{l.forEach(p=>{if(typeof p=="function")try{p(...d)}catch{}})}:l==null?()=>{}:typeof l=="function"?l:()=>{}}})}function nr(t,r){const a=t.replace(/^\.\//,"").replace(/\.(tsx|ts|jsx|js)$/,"");for(const[i,s]of Object.entries(r))if(i.replace(/^\.\//,"").replace(/\.(tsx|ts|jsx|js)$/,"")===a)return s;return null}function gt(t){const{basePath:r=".",devExtensions:a=[".tsx",".ts",".jsx",".js"],prodExtension:i=".js"}=t||{};return s=>{const l=s.replace(/\.(tsx|ts|jsx|js)$/,"");if(r===".")return import(`./${l.replace(/^\.\//,"").replace(/\/+/g,"/")}.js`);{const d=r.replace(/^\.\//,"").replace(/\/+$/,""),p=l.replace(/^\.\//,"").replace(/\/+/g,"/");return import(`./${d}/${p}.js`)}}}function jr(t){const{basePath:r=".",modules:a,pages:i}=t||{};return s=>{if(a){const d=nr(s,a);if(d)return d()}if(i){const d=nr(s,i);if(d)return d()}const l=s.replace(/\.(tsx|ts|jsx|js)$/,"");if(r===".")return import(`./${l.replace(/^\.\//,"").replace(/\/+/g,"/")}.js`);{const d=r.replace(/^\.\//,"").replace(/\/+$/,""),p=l.replace(/^\.\//,"").replace(/\/+/g,"/");return import(`./${d}/${p}.js`)}}}function or(t=".",r,a){return r||a?jr({basePath:t,modules:r,pages:a}):gt({basePath:t})}function Er(){var t;let r=sessionStorage.getItem("f");if(r){if(r=le.deCode(r),!r)return!1;G({id:r.id,tab:r.tab,page:r.page,module:r.module,time:r.time,payment:{active:!0},module_admin:r.module_admin})}else G({id:0,tab:"",page:(t=localStorage.getItem("d"))!=null&&t.length?A().page:A().auth,module:A().module});return!0}function ir(){return A().page}function sr(){return A().module||""}function _t(){return A().tab}function lr(){return A().id}function Rr(t){let r=s=>(G({page:s}),s);const[a,i]=w.useState(ir()||t&&r(t)||A().page);return w.useEffect(()=>{const s=l=>{i(l)};return de({page:s}),()=>{var l,d;const p=K();if((d=(l=p.ROUTER_PARAMS)==null?void 0:l.LISTENER)!=null&&d.page){const f=p.ROUTER_PARAMS.LISTENER.page;if(Array.isArray(f)){const b=f.indexOf(s);b>-1&&f.splice(b,1)}}}},[]),a}function Ar(t,r=!0,a={}){G({page:t,...a}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),r&&Y().page(t)}function $r(t){return A().page===t}function Or(){return A().prev}function Pr(t,r){const[a,i]=w.useState(sr()||t||A().module);return w.useEffect(()=>(de({module:i}),()=>{const s=Y();s.module===i&&delete s.module}),[]),a}function Tr(t,r=!0){G({module:t}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),r&&Y().module(t)}function Cr(t){return A().module===t}function zr(t,r){if(typeof t!="function"){const[a,i]=w.useState(!r),[s,l]=w.useState(t||_t());return de({tabs:l}),r&&w.useEffect(()=>{i(!0)},[]),[s,a]}else de({tabs:t})}function Mr(t){let r=s=>(G({tab:s}),s);const[a,i]=w.useState(_t()||t&&r(t)||A().tab);return w.useEffect(()=>{const s=l=>{i(l)};return de({tabs:s}),()=>{var l,d;const p=K();if((d=(l=p.ROUTER_PARAMS)==null?void 0:l.LISTENER)!=null&&d.tabs){const f=p.ROUTER_PARAMS.LISTENER.tabs;if(Array.isArray(f)){const b=f.indexOf(s);b>-1&&f.splice(b,1)}}}},[]),a}async function Br(t,r=!0){G({tab:t}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),r&&(Y().tabs&&Y().tabs(t))}function Nr(t){return A().tab===t}function Ir(t){if(typeof t!="function"){const[r,a]=w.useState(t||lr());return w.useEffect(()=>{const i=s=>{a(s)};return de({id:i}),()=>{const s=Y();s.id===i&&delete s.id}},[]),r}else w.useEffect(()=>(de({id:t}),()=>{var r,a;const i=K();if((a=(r=i.ROUTER_PARAMS)==null?void 0:r.LISTENER)!=null&&a.id){const s=i.ROUTER_PARAMS.LISTENER.id;if(Array.isArray(s)){const l=s.indexOf(t);l>-1&&s.splice(l,1)}}}),[t])}function qr(t){}async function Lr(t,r=!0){G({id:t}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),r&&Y().id(t)}function Dr(t){return Number(A().id)===t}async function Ur(t){var r,a,i,s,l,d,p,f;const{page:b,module:_,tab:h,id:y}=t;b!==void 0&&(Z.page=b),_!==void 0&&(Z.module=_),h!==void 0&&(Z.tab=h),y!==void 0&&(Z.id=y),G({...Z}),y!==void 0&&((a=(r=Y()).id)==null||a.call(r,y)),h!==void 0&&((s=(i=Y()).tabs)==null||s.call(i,h)),_!==void 0&&((d=(l=Y()).module)==null||d.call(l,_)),b!==void 0&&((f=(p=Y()).page)==null||f.call(p,b)),sessionStorage.setItem(A().STORAGE,le.enCode(A()))}const Se={Reset(){Z.id=0,Z.tab="",Z.page=A().page,Z.module=A().module},Default({module:t=A().module,page:r=A().page,auth:a=A().auth,debug:i=A().debug,dir:s=A().dir||".",importModules:l,modules:d,pages:p,glob:f}){let b=l,_=d,h=p;f?(_=typeof d=="object"?d:f,h=typeof p=="object"?p:f):(_=_||f,h=h||f),!b&&(_||h)?!f&&(typeof _=="string"||typeof h=="string")?b=gt({basePath:s}):b=or(s,_,h):b||(b=gt({basePath:s})),G({page:r,module:t,auth:a,debug:i,dir:s,importModules:b}),Er()},createImportModules:or,getImportModules:()=>A().importModules,usePage:Rr,setPage:Ar,getPage:ir,isPage:$r,getBack:Or,useModule:Pr,setModule:Tr,getModule:sr,isModule:Cr,useTabs:zr,useTab:Mr,setTabs:Br,getTabs:_t,isTabs:Nr,useId:Ir,subId:qr,setId:Lr,getId:lr,isId:Dr,navigate:Ur},pe={n:"_n_zlj3m_1",i:"_i_zlj3m_10",t:"_t_zlj3m_28",e:"_e_zlj3m_32",s:"_s_zlj3m_35",w:"_w_zlj3m_38",h:"_h_zlj3m_41"};let st={};function Fr(){const[t,r]=w.useState([]);return st.set=a=>{r([...t,a])},st.del=a=>{t.forEach((i,s)=>{i.key===a&&t.splice(s,1)}),r(t)},t.length===0?c.jsx(c.Fragment,{}):c.jsx("div",{className:pe.n,children:t.map(a=>a.item)})}function Wr(t){let r=new Date().getTime();t.key=r,st.set({item:c.jsx(Yr,{data:t},r),key:r})}function Yr(t){const r=t.data;let[a]=w.useState("show"),[i,s]=w.useState(!1);w.useEffect(()=>{setTimeout(function(){s(!0),st.del(r.key)},5e3)},[r.key]);let l;switch(r.type){case"error":l=c.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm3.53 12.22a.75.75 0 1 1-1.06 1.06L12 13.06l-2.47 2.47a.75.75 0 0 1-1.06-1.06L10.94 12 8.47 9.53a.75.75 0 0 1 1.06-1.06L12 10.94l2.47-2.47a.75.75 0 0 1 1.06 1.06L13.06 12l2.47 2.47Z"});break;case"success":l=c.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm5.074 6.482-6.3 7.5a.748.748 0 0 1-.562.268h-.013a.75.75 0 0 1-.557-.248l-2.7-3a.751.751 0 0 1 .88-1.186c.09.045.17.107.234.182l2.123 2.36 5.747-6.84a.75.75 0 0 1 1.148.964Z"});break;case"warning":l=c.jsx("path",{d:"M12 2.625c-5.17 0-9.375 4.206-9.375 9.375 0 5.17 4.206 9.375 9.375 9.375 5.17 0 9.375-4.206 9.375-9.375 0-5.17-4.206-9.375-9.375-9.375Zm0 3.844a1.219 1.219 0 1 1 0 2.437 1.219 1.219 0 0 1 0-2.437Zm2.25 10.593h-4.125a.75.75 0 1 1 0-1.5h1.313v-4.124h-.75a.75.75 0 1 1 0-1.5h1.5a.75.75 0 0 1 .75.75v4.874h1.312a.75.75 0 1 1 0 1.5Z"});break;default:l="icon fa fa-exclamation-circle";break}const d={error:pe.e,success:pe.s,warning:pe.w};return c.jsx(c.Fragment,{children:i?c.jsx(c.Fragment,{}):c.jsxs("div",{className:pe.i+d[r.type]+` ${r.thema!==void 0?pe.h:""}`,"data-status":a,children:[c.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",width:"24",height:"24",viewBox:"0 0 24 24",children:l}),c.jsx("span",{className:pe.t,children:r.text})]})})}let ge={Send:Wr,Init:Fr};const ce={d:"_d_1u25q_1",b:"_b_1u25q_21",o:"_o_1u25q_25",m:"_m_1u25q_30",t:"_t_1u25q_41",a:"_a_1u25q_108",v:"_v_1u25q_118"},ue={is:!1,MainButton:{},BackButton:{}};let M={};M.dark={"--tg-color-scheme":"dark","--tg-theme-subtitle-text-color":"#98989e","--tg-theme-destructive-text-color":"#e53935","--tg-theme-section-separator-color":"#545458","--tg-theme-link-color":"#3e88f7","--tg-theme-accent-text-color":"#3e88f7","--tg-theme-bg-color":"#000000","--tg-theme-secondary-bg-color":"#1c1c1d","--tg-theme-button-color":"#3e88f7","--tg-theme-button-text-color":"#ffffff","--tg-theme-bottom-bar-bg-color":"#1d1d1d","--tg-theme-section-header-text-color":"#8d8e93","--tg-theme-header-bg-color":"#1a1a1a","--tg-theme-hint-color":"#98989e","--tg-theme-text-color":"#ffffff","--tg-theme-section-bg-color":"#2c2c2e"},M.light={"--tg-color-scheme":"light","--tg-theme-subtitle-text-color":"#8e8e93","--tg-theme-destructive-text-color":"#ff3b30","--tg-theme-section-separator-color":"#c8c7cc","--tg-theme-link-color":"#007aff","--tg-theme-accent-text-color":"#007aff","--tg-theme-bg-color":"#ffffff","--tg-theme-secondary-bg-color":"#efeff4","--tg-theme-button-color":"#007aff","--tg-theme-button-text-color":"#ffffff","--tg-theme-bottom-bar-bg-color":"#f2f2f2","--tg-theme-section-header-text-color":"#6d6d72","--tg-theme-header-bg-color":"#f8f8f8","--tg-theme-hint-color":"#8e8e93","--tg-theme-text-color":"#000000","--tg-theme-section-bg-color":"#f8f8f8"},M.users={"--tg-color-scheme":"users","--tg-theme-bg-color":"#000000","--tg-theme-text-color":"#ffffff","--tg-theme-hint-color":"#98989e","--tg-theme-link-color":"#ffffff","--tg-theme-button-color":"#ffffff","--tg-theme-button-text-color":"#000000","--tg-theme-secondary-bg-color":"#000000"};const Vr=()=>{if(location.hostname==="localhost"){let[t,r]=w.useState(!1),[a,i]=w.useState(!1),[s,l]=w.useState("dark"),[d,p]=w.useState(!1),[f,b]=w.useState(!1);ue.is=!0,ue.MainButton.set=r,ue.BackButton.set=i,w.useEffect(()=>{var y;M[s]["--tg-theme-bg-color-alpha"]=M[s]["--tg-theme-bg-color"]+"b3",M[s]["--tg-theme-secondary-bg-color-alpha"]=M[s]["--tg-theme-secondary-bg-color"]+"d3",M[s]["--tg-theme-bg-color-alpha-25"]=M[s]["--tg-theme-bg-color"]+"40",M[s]["--tg-theme-secondary-bg-color-alpha-25"]=M[s]["--tg-theme-secondary-bg-color"]+"40";for(let R in M[s])document.documentElement.style.setProperty(R,M[s][R]);document.documentElement.style.setProperty("--tg-content-safe-area-inset-top","0px"),((y=te.safeAreaInset)==null?void 0:y.bottom)===0?document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px"):te.safeAreaInset||document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let _=y=>{for(let R in M[y])document.documentElement.style.setProperty(R,M[y][R]),document.documentElement.setAttribute("data-color-scheme",y);l(y),p(!1)},h=()=>{p(!1),b(!0)};return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:ce.d,children:[a===!1?c.jsx("div",{className:ce.b,children:"Отмена"}):c.jsx("div",{onClick:()=>{var y;a.page===void 0?(y=a.callback)==null||y.call(a):Se.setPage(a.page)},className:ce.b,children:"Назад"}),c.jsx("div",{className:ce.o,onClick:()=>p(!d),children:"Меню"})]}),c.jsx(ge.Init,{}),t&&c.jsx("div",{className:ce.m,children:c.jsx("button",{onClick:()=>{t.page&&Se.setPage(t.page),t.callback&&t.callback()},children:t.text})}),d?c.jsxs("div",{className:ce.t,children:[c.jsxs("ul",{children:[c.jsx("li",{children:c.jsx("button",{onClick:h,children:"Authorization"})}),c.jsx("li",{})]}),c.jsxs("ul",{children:[c.jsxs("li",{children:[c.jsx("button",{children:"Thema"}),c.jsxs("ol",{children:[c.jsx("li",{children:c.jsx("button",{onClick:()=>_("dark"),children:"Dark"})}),c.jsx("li",{children:c.jsx("button",{onClick:()=>_("light"),children:"Light"})}),c.jsx("li",{children:c.jsx("button",{onClick:()=>_("users"),children:"Users"})})]})]}),c.jsx("li",{children:c.jsx("button",{onClick:()=>p(!d),children:"Closed"})})]})]}):"",f?c.jsx(Hr,{setAuthorization:b}):""]})}else return w.useEffect(()=>{var t;document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",te.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",te.themeParams.bg_color+"b3"),((t=te.safeAreaInset)==null?void 0:t.bottom)===0?document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px"):te.safeAreaInset||document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),c.jsx(c.Fragment,{children:c.jsx(ge.Init,{})})},Hr=({setAuthorization:t})=>{let r={},a=()=>{localStorage.setItem("auth",r)};return c.jsx("div",{className:ce.a,children:c.jsxs("div",{className:ce.v,children:[c.jsx("fieldset",{}),c.jsx("div",{onClick:a,children:" Сохранить "})]})})},cr={p:"_p_1axqy_1",s:"_s_1axqy_17"},Jr=({className:t,children:r,isScroll:a=!0})=>c.jsx("div",{className:[cr.p,a&&cr.s,t].filter(i=>i!==void 0).join(" "),children:r}),Kr={l:"_l_gfyud_1"},Gr=({children:t,className:r})=>c.jsx("div",{className:[Kr.l,r].filter(a=>a!==void 0).join(" "),children:t}),fe={q:"_q_z5mg9_2",m:"_m_z5mg9_8",g:"_g_z5mg9_15",i:"_i_z5mg9_23",c:"_c_z5mg9_40",l:"_l_z5mg9_47",a:"_a_z5mg9_62",n:"_n_z5mg9_68"},Xr=({items:t,style:r})=>{const a=s=>{Se.setPage(s)},i=s=>{te.openTelegramLink(s)};return c.jsx("div",{className:W(fe[r==="liquid-glass"?"q":""],fe.m),children:t.map(s=>c.jsx("div",{className:fe.g,children:s.items.map((l,d)=>c.jsxs("div",{className:fe.i,onClick:()=>{l.link&&i(l.link),l.page&&a(l.page),l.callback&&l.callback()},children:[c.jsxs("div",{className:fe.c,children:[c.jsx("span",{className:fe.l,style:{background:l.color},children:l.icon}),l.title,l.count&&c.jsx("span",{className:fe.n,children:l.count})]}),c.jsx("span",{className:fe.a,children:"›"})]},d))},s.id))})},Q={o:"_o_8ho2f_3",m:"_m_8ho2f_14",l:"_l_8ho2f_28",r:"_r_8ho2f_33",x:"_x_8ho2f_38",h:"_h_8ho2f_42",c:"_c_8ho2f_57",u:"_u_8ho2f_72"},lt={};function Zr({children:t,icon:r,iconBadge:a=0,title:i,className:s,view:l="list",position:d="left",name:p="default"}){const[f,b]=w.useState(!1),[_,h]=w.useState(null);w.useEffect(()=>{let R=document.querySelector(".p_sb");return R||(R=document.createElement("div"),R.className="_p_sb",document.body.appendChild(R)),h(R),lt[p]=N=>b(N),()=>{R&&R.parentNode&&R.parentNode.removeChild(R)}},[]);const y=c.jsxs(c.Fragment,{children:[f&&c.jsx("div",{className:Q.o,onClick:()=>b(!1)}),c.jsxs("div",{className:W(Q.m,d==="left"?Q.l:Q.r,f&&Q.x,s),children:[c.jsxs("div",{className:Q.h,children:[i&&c.jsx("h3",{className:Q.t,children:i}),c.jsxs("svg",{onClick:()=>b(!1),fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"24",height:"24","data-pointer":"true",style:{cursor:"pointer"},children:[c.jsx("path",{d:"M17.25 17.25 6.75 6.75"}),c.jsx("path",{d:"m17.25 6.75-10.5 10.5"})]})]}),c.jsx("div",{className:Q.c,children:l==="list"?c.jsx("ul",{className:Q.u,children:t}):t})]})]});return c.jsxs(c.Fragment,{children:[r&&c.jsx("div",{onClick:()=>b(!0),className:"bage","data-count":a,children:r}),_&&pr.createPortal(y,_)]})}const Qr=(t,r)=>{var a;(a=lt[t])==null||a.call(lt,r)},je={h:"_h_1l02r_2",r:"_r_1l02r_59",c:"_c_1l02r_62",x:"_x_1l02r_65",b:"_b_1l02r_69",a:"_a_1l02r_107",draw:"_draw_1l02r_1",scaleToggleVar:"_scaleToggleVar_1l02r_1"},ea={b:"_b_r6m8n_1"},ta=({className:t,value:r})=>c.jsx("div",{className:[ea.b,t].filter(a=>a!==void 0).join(" "),children:r}),ur=(t,r)=>t.findIndex(a=>(a==null?void 0:a.page)===r),ra=({actions:t,children:r,className:a,actual:i,toHide:s=!1,page:l,style:d="default",onPageChange:p,direction:f="row"})=>{const[b,_]=w.useState(null),[h,y]=w.useState(l?ur(t||[],l):0),[R,N]=w.useState("right"),re=w.useRef(h);w.useEffect(()=>{if(l){const V=ur(t||[],l);V!==-1&&V!==re.current&&(re.current=V,y(V))}},[l,t]),w.useEffect(()=>{re.current!==h&&(N(h>re.current?"left":"right"),re.current=h)},[h]),w.useEffect(()=>{if(!s)return;const V=document.querySelectorAll("[contenteditable]"),Ae=()=>{const T=document.querySelector("footer");T&&T.classList.remove(je.x)},$e=()=>{const T=document.querySelector("footer");T&&T.classList.add(je.x)};return V.forEach(T=>{T.addEventListener("focus",$e,!0),T.addEventListener("blur",Ae,!0)}),()=>{V.forEach(T=>{T.removeEventListener("focus",$e,!0),T.removeEventListener("blur",Ae,!0)})}},[]);const[Ce,z]=w.useState(!1),E=w.useRef(null),Ee=()=>{E.current&&(clearTimeout(E.current),E.current=null),z(!0)},Re=()=>{requestAnimationFrame(()=>{E.current=setTimeout(()=>{z(!1),E.current=null},50)})};w.useEffect(()=>()=>{E.current&&clearTimeout(E.current)},[]);const ae={};return d==="liquid-glass"&&(ae.onMouseDown=Ee,ae.onMouseUp=Re,ae.onTouchStart=Ee,ae.onTouchEnd=Re),c.jsxs(c.Fragment,{children:[b,c.jsxs("footer",{"data-direction":R,"data-style":d,"data-scale":Ce?"true":"false",...ae,className:W(je.h,je[f==="row"?"r":"c"],a),children:[r,t&&c.jsx(aa,{actions:t,activeIndex:h,setActiveIndex:y,onPageChange:p,setComponent:_,actual:i})]})]})},aa=({actions:t,activeIndex:r,setActiveIndex:a,onPageChange:i,setComponent:s,actual:l})=>c.jsxs("div",{className:je.b,children:[t.map((d,p)=>c.jsxs("div",{"data-active":r===p?"true":"false",onClick:()=>{d.page&&(a(p),i==null||i(d.page)),d.onClick&&d.onClick(()=>a(p)),d.component&&(r===p||(s(d.component),a(p)))},children:[d.icon,d.title&&c.jsx("span",{children:d.title}),d.badge&&c.jsx(ta,{value:d.badge})]},p)),l&&c.jsx("div",{className:je.a,style:{"--count-options":t.length,"--tab-bar-actual-index":r}})]}),na={a:"_a_15zsz_1"};function oa({children:t,className:r,text:a}){return c.jsxs("div",{className:W(na.a,r),children:[t,a&&c.jsx("b",{children:a})]})}const ct={w:"_w_yx04q_3",v:"_v_yx04q_24",s:"_s_yx04q_34",n:"_n_yx04q_38"},bt={};function ia({children:t,name:r,onClose:a,isOpen:i,isScroll:s=!0,nextBackButton:l}){const[d,p]=w.useState(!1);return w.useEffect(()=>{if(!i)return;const f=l===void 0?dr().pop():l,b=()=>{p(!1),setTimeout(()=>{mt(f||!1),a==null||a()},300)};bt[r]={onClose:b,onOpen:()=>{p(!0)}},mt({callback:b});const _=setTimeout(()=>{p(!0)},10);return()=>{clearTimeout(_)}},[i]),i?c.jsxs("div",{className:W(ct.w,d&&ct.v,s&&ct.s),children:[c.jsx("div",{className:ct.n}),t]}):""}const sa=(t,r)=>{var a,i;r?(a=bt[t])==null||a.onOpen():(i=bt[t])==null||i.onClose()},ut={s:"_s_q79m4_3",n:"_n_q79m4_14",b:"_b_q79m4_19",f:"_f_q79m4_29"};function la({className:t,children:r,onScrollEnd:a,offset:i=100,isLoading:s,fullscreen:l=!1,isScrollBar:d=!1}){const[p,f]=w.useState(s||!1);w.useEffect(()=>{f(s||!1)},[s]);let b={onScroll:_=>{const{scrollTop:h,scrollHeight:y,clientHeight:R}=_.currentTarget;h+R>=y-i&&!p&&(f(!0),a==null||a())}};return c.jsxs(c.Fragment,{children:[!d&&c.jsx("div",{className:ut.b}),c.jsx("div",{...b,className:W(ut.s,!d&&ut.n,l&&ut.f,t),children:r})]})}const ft={a:"_a_prp23_1",l:"_l_prp23_13",r:"_r_prp23_16",b:"_b_prp23_19"};function ca({children:t,className:r,position:a="center",title:i}){let s="";return a==="left"?s=ft.l:a==="right"?s=ft.r:a==="between"&&(s=ft.b),c.jsxs("div",{className:W(ft.a,s,r),children:[t,i&&c.jsx("b",{children:i})]})}const ee={q:"_q_1wgf4_2",o:"_o_1wgf4_11",x:"_x_1wgf4_25",c:"_c_1wgf4_29",p:"_p_1wgf4_34",f:"_f_1wgf4_50",h:"_h_1wgf4_58",b:"_b_1wgf4_75"},X={},fr=({children:t,title:r,isOverlay:a=!0,footer:i=!0,className:s,name:l,style:d="default",onOpen:p})=>{const[f,b]=w.useState(!1),[_,h]=w.useState(!1);return w.useEffect(()=>{X[l]=y=>{y?(h(!1),b(!0),p==null||p(!0)):(h(!0),p==null||p(!1),setTimeout(()=>{b(!1),h(!1)},300))}},[l,p]),!f&&!_?null:c.jsx("div",{className:W(d==="liquid-glass"&&ee.q,ee.o,a&&ee.x,_&&ee.c),onClick:()=>{var y;return(y=X[l])==null?void 0:y.call(X,!1)},children:c.jsxs("div",{className:W(ee.p,_&&ee.c,i&&ee.f,s),onClick:y=>y.stopPropagation(),children:[r&&c.jsxs("div",{className:ee.h,children:[c.jsx("h3",{children:r}),c.jsx("button",{className:ee.b,onClick:()=>{var y;return(y=X[l])==null?void 0:y.call(X,!1)},children:"✕"})]}),t]})})},ua=(t,r)=>{var a;(a=X[t])==null||a.call(X,r)},B={state:[!1],listen:[],prev:{},router:t=>{t===!1?(v.default.WebApp.BackButton.isVisible=!1,v.default.WebApp.BackButton.offClick(B.listen[0]),B.listen.shift(),B.state.length!==1&&B.state.pop()):(v.default.WebApp.BackButton.isVisible=!0,v.default.WebApp.BackButton.offClick(B.listen[0]),B.listen.shift(),B.listen.push(()=>{var a;let r=B.state.pop();B.prev=Se.getPage(),r.page!==void 0?Se.setPage(r.page):(a=r.callback)==null||a.call(r)}),te.BackButton.onClick(B.listen[0]))}},W=(...t)=>t.filter(r=>r!==void 0&&r!==!1&&r!==null&&r!=="").join(" ");v.default=void 0,(t=>{var r;t.WebApp=typeof window<"u"&&((r=window.Telegram)==null?void 0:r.WebApp)||{},t.getUser=()=>{var a;return((a=t.WebApp.initDataUnsafe)==null?void 0:a.user)===void 0?{}:t.WebApp.initDataUnsafe},t.Location=a=>{if(ue.is)return a({latitude:55.752555,longitude:37.623123});let i=()=>{t.WebApp.LocationManager.getLocation(async s=>{if(!s){t.WebApp.LocationManager.isAccessRequested||t.WebApp.LocationManager.openSettings();return}a(s)})};!t.WebApp.LocationManager||!t.WebApp.LocationManager.isInited?t.WebApp.LocationManager.init(()=>{i()}):i()},t.Notice={Send:(a,i,s)=>{var l,d;i!==void 0?(ge.Send({type:a,text:i,thema:s}),(l=t.WebApp.HapticFeedback)==null||l.notificationOccurred(a)):(ge.Send(a),(d=t.WebApp.HapticFeedback)==null||d.notificationOccurred(a.type))},Error:a=>{var i;ge.Send({type:"error",text:a}),(i=t.WebApp.HapticFeedback)==null||i.notificationOccurred("error")},Success:a=>{var i;ge.Send({type:"success",text:a}),(i=t.WebApp.HapticFeedback)==null||i.notificationOccurred("success")},Warning:a=>{var i;ge.Send({type:"warning",text:a}),(i=t.WebApp.HapticFeedback)==null||i.notificationOccurred("warning")}},t.Header=Vr,t.TabBar=ra,t.Title=oa,t.BottomSheet=fr,t.BottomSheetControllerSheet=ua,t.SafeArea=Jr,t.Loading=Gr,t.Sidebar=Zr,t.SidePanel=ia,t.AppBar=ca,t.SideBarController=Qr,t.SidePanelController=sa,t.Scroll=la,t.Modal=pt,t.Menu=Xr,t.MainButton={callback:[],set:a=>{ue.is?ue.MainButton.set(a):(t.WebApp.MainButton.callback.forEach(i=>{t.WebApp.MainButton.offClick(i)}),t.WebApp.MainButton.callback=[],typeof a=="boolean"?t.WebApp.MainButton.isVisible=!1:(t.WebApp.MainButton.text=a.text,a.color&&(t.WebApp.MainButton.color=a.color),a.textColor&&(t.WebApp.MainButton.textColor=a.textColor),t.WebApp.MainButton.isVisible=!0,t.WebApp.MainButton.isActive=a.isActive===void 0?!0:a.isActive,t.WebApp.MainButton.callback.push(()=>{var i;a.page===void 0?(i=a.callback)==null||i.call(a):Se.setPage(a.page)}),t.WebApp.MainButton.onClick(t.WebApp.MainButton.callback[0])))}},t.BackButtonPrev=()=>{B.prev&&(0,t.BackButton)(B.prev)},t.BackButtonState=()=>B.state,t.BackButton=a=>{ue.is?ue.BackButton.set(a):(B.state.push(a),B.router(a))}})(v.default||(v.default={}));const fa=v.default.TabBar,da=fr,mt=v.default.BackButton,pa=v.default.BackButtonPrev,dr=v.default.BackButtonState,ga=v.default.Notice,_a=v.default.SafeArea,ba=v.default.Loading,ma=v.default.Menu,ha=v.default.SidePanel,va=v.default.Scroll,xa=v.default.AppBar,ya=v.default.Title,wa=v.default.Sidebar,ka=v.default.Location,Sa=v.default.SidePanelController,ja=v.default.SideBarController,Ea=v.default.BottomSheetControllerSheet,{Header:Ra,Modal:Aa,MainButton:$a,WebApp:te,getUser:Oa}=v.default;v.AppBar=xa,v.BackButton=mt,v.BackButtonPrev=pa,v.BackButtonState=dr,v.BottomSheet=da,v.BottomSheetControllerSheet=Ea,v.Header=Ra,v.Loading=ba,v.Location=ka,v.MainButton=$a,v.Menu=ma,v.Modal=Aa,v.Notice=ga,v.SafeArea=_a,v.Scroll=va,v.SideBarController=ja,v.SidePanel=ha,v.SidePanelController=Sa,v.Sidebar=wa,v.TabBar=fa,v.Title=ya,v.WebApp=te,v.clsx=W,v.getUser=Oa,Object.defineProperties(v,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
60
|
+
<%s key={someKey} {...props} />`,we,q,Yt,q),rt[q+we]=!0}}return e===i?Lt(j):qt(j),j}}function Dt(e,n,o){return at(e,n,o,!0)}function Ut(e,n,o){return at(e,n,o,!1)}var Ft=Ut,Wt=Dt;it.Fragment=i,it.jsx=Ft,it.jsxs=Wt}()),it}process.env.NODE_ENV==="production"?wr():kr();const Sr="0.0.46",ar={version:Sr},Q={},L={module:"",v:ar.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{},debug:!1,tab:"",id:0,dir:".",fileExtension:".tsx",prev:{page:"",module:"",tab:"",id:0}};function K(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}K().elcrm||(K().elcrm={}),Object.assign(K().elcrm,{router:ar.version});function G(t){var r,a,i,s;const l=K();if(l.ROUTER_PARAMS){t.debug||l.ROUTER_PARAMS.debug;const d={page:(r=l.ROUTER_PARAMS)==null?void 0:r.page,module:(a=l.ROUTER_PARAMS)==null?void 0:a.module,tab:(i=l.ROUTER_PARAMS)==null?void 0:i.tab,id:(s=l.ROUTER_PARAMS)==null?void 0:s.id};l.ROUTER_PARAMS={...l.ROUTER_PARAMS,...t,prev:d}}else{t.debug||L.debug;const d={page:L==null?void 0:L.page,module:L==null?void 0:L.module,tab:L==null?void 0:L.tab,id:L==null?void 0:L.id};l.ROUTER_PARAMS={...L,...t,prev:d}}}function A(){return K().ROUTER_PARAMS||L}function de(t){const r=K();r.ROUTER_PARAMS||(r.ROUTER_PARAMS={...L}),r.ROUTER_PARAMS.LISTENER||(r.ROUTER_PARAMS.LISTENER={}),Object.keys(t).forEach(a=>{r.ROUTER_PARAMS.LISTENER[a]||(r.ROUTER_PARAMS.LISTENER[a]=[]),Array.isArray(r.ROUTER_PARAMS.LISTENER[a])||(r.ROUTER_PARAMS.LISTENER[a]=[r.ROUTER_PARAMS.LISTENER[a]]),r.ROUTER_PARAMS.LISTENER[a].includes(t[a])||r.ROUTER_PARAMS.LISTENER[a].push(t[a])})}function Y(){var t;const r=K();let a=((t=r.ROUTER_PARAMS)==null?void 0:t.LISTENER)||L.LISTENER;return a||(a={},r.ROUTER_PARAMS?r.ROUTER_PARAMS.LISTENER=a:L.LISTENER=a),new Proxy(a,{get(i,s){const l=i[s];return Array.isArray(l)&&l.length>0?(...d)=>{l.forEach(p=>{if(typeof p=="function")try{p(...d)}catch{}})}:l==null?()=>{}:typeof l=="function"?l:()=>{}}})}function nr(t,r){const a=t.replace(/^\.\//,"").replace(/\.(tsx|ts|jsx|js)$/,"");for(const[i,s]of Object.entries(r))if(i.replace(/^\.\//,"").replace(/\.(tsx|ts|jsx|js)$/,"")===a)return s;return null}function gt(t){const{basePath:r=".",devExtensions:a=[".tsx",".ts",".jsx",".js"],prodExtension:i=".js"}=t||{};return s=>{const l=s.replace(/\.(tsx|ts|jsx|js)$/,"");if(r===".")return import(`./${l.replace(/^\.\//,"").replace(/\/+/g,"/")}.js`);{const d=r.replace(/^\.\//,"").replace(/\/+$/,""),p=l.replace(/^\.\//,"").replace(/\/+/g,"/");return import(`./${d}/${p}.js`)}}}function jr(t){const{basePath:r=".",modules:a,pages:i}=t||{};return s=>{if(a){const d=nr(s,a);if(d)return d()}if(i){const d=nr(s,i);if(d)return d()}const l=s.replace(/\.(tsx|ts|jsx|js)$/,"");if(r===".")return import(`./${l.replace(/^\.\//,"").replace(/\/+/g,"/")}.js`);{const d=r.replace(/^\.\//,"").replace(/\/+$/,""),p=l.replace(/^\.\//,"").replace(/\/+/g,"/");return import(`./${d}/${p}.js`)}}}function or(t=".",r,a){return r||a?jr({basePath:t,modules:r,pages:a}):gt({basePath:t})}function Er(){var t;let r=sessionStorage.getItem("f");if(r){if(r=le.deCode(r),!r)return!1;G({id:r.id,tab:r.tab,page:r.page,module:r.module,time:r.time,payment:{active:!0},module_admin:r.module_admin})}else G({id:0,tab:"",page:(t=localStorage.getItem("d"))!=null&&t.length?A().page:A().auth,module:A().module});return!0}function ir(){return A().page}function sr(){return A().module||""}function bt(){return A().tab}function lr(){return A().id}function Rr(t){let r=s=>(G({page:s}),s);const[a,i]=w.useState(ir()||t&&r(t)||A().page);return w.useEffect(()=>{const s=l=>{i(l)};return de({page:s}),()=>{var l,d;const p=K();if((d=(l=p.ROUTER_PARAMS)==null?void 0:l.LISTENER)!=null&&d.page){const f=p.ROUTER_PARAMS.LISTENER.page;if(Array.isArray(f)){const _=f.indexOf(s);_>-1&&f.splice(_,1)}}}},[]),a}function Ar(t,r=!0,a={}){G({page:t,...a}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),r&&Y().page(t)}function $r(t){return A().page===t}function Or(){return A().prev}function Pr(t,r){const[a,i]=w.useState(sr()||t||A().module);return w.useEffect(()=>(de({module:i}),()=>{const s=Y();s.module===i&&delete s.module}),[]),a}function Tr(t,r=!0){G({module:t}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),r&&Y().module(t)}function Cr(t){return A().module===t}function zr(t,r){if(typeof t!="function"){const[a,i]=w.useState(!r),[s,l]=w.useState(t||bt());return de({tabs:l}),r&&w.useEffect(()=>{i(!0)},[]),[s,a]}else de({tabs:t})}function Mr(t){let r=s=>(G({tab:s}),s);const[a,i]=w.useState(bt()||t&&r(t)||A().tab);return w.useEffect(()=>{const s=l=>{i(l)};return de({tabs:s}),()=>{var l,d;const p=K();if((d=(l=p.ROUTER_PARAMS)==null?void 0:l.LISTENER)!=null&&d.tabs){const f=p.ROUTER_PARAMS.LISTENER.tabs;if(Array.isArray(f)){const _=f.indexOf(s);_>-1&&f.splice(_,1)}}}},[]),a}async function Br(t,r=!0){G({tab:t}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),r&&(Y().tabs&&Y().tabs(t))}function Nr(t){return A().tab===t}function Ir(t){if(typeof t!="function"){const[r,a]=w.useState(t||lr());return w.useEffect(()=>{const i=s=>{a(s)};return de({id:i}),()=>{const s=Y();s.id===i&&delete s.id}},[]),r}else w.useEffect(()=>(de({id:t}),()=>{var r,a;const i=K();if((a=(r=i.ROUTER_PARAMS)==null?void 0:r.LISTENER)!=null&&a.id){const s=i.ROUTER_PARAMS.LISTENER.id;if(Array.isArray(s)){const l=s.indexOf(t);l>-1&&s.splice(l,1)}}}),[t])}function qr(t){}async function Lr(t,r=!0){G({id:t}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),r&&Y().id(t)}function Dr(t){return Number(A().id)===t}async function Ur(t){var r,a,i,s,l,d,p,f;const{page:_,module:b,tab:h,id:x}=t;_!==void 0&&(Q.page=_),b!==void 0&&(Q.module=b),h!==void 0&&(Q.tab=h),x!==void 0&&(Q.id=x),G({...Q}),x!==void 0&&((a=(r=Y()).id)==null||a.call(r,x)),h!==void 0&&((s=(i=Y()).tabs)==null||s.call(i,h)),b!==void 0&&((d=(l=Y()).module)==null||d.call(l,b)),_!==void 0&&((f=(p=Y()).page)==null||f.call(p,_)),sessionStorage.setItem(A().STORAGE,le.enCode(A()))}const Se={Reset(){Q.id=0,Q.tab="",Q.page=A().page,Q.module=A().module},Default({module:t=A().module,page:r=A().page,auth:a=A().auth,debug:i=A().debug,dir:s=A().dir||".",importModules:l,modules:d,pages:p,glob:f}){let _=l,b=d,h=p;f?(b=typeof d=="object"?d:f,h=typeof p=="object"?p:f):(b=b||f,h=h||f),!_&&(b||h)?!f&&(typeof b=="string"||typeof h=="string")?_=gt({basePath:s}):_=or(s,b,h):_||(_=gt({basePath:s})),G({page:r,module:t,auth:a,debug:i,dir:s,importModules:_}),Er()},createImportModules:or,getImportModules:()=>A().importModules,usePage:Rr,setPage:Ar,getPage:ir,isPage:$r,getBack:Or,useModule:Pr,setModule:Tr,getModule:sr,isModule:Cr,useTabs:zr,useTab:Mr,setTabs:Br,getTabs:bt,isTabs:Nr,useId:Ir,subId:qr,setId:Lr,getId:lr,isId:Dr,navigate:Ur},pe={n:"_n_zlj3m_1",i:"_i_zlj3m_10",t:"_t_zlj3m_28",e:"_e_zlj3m_32",s:"_s_zlj3m_35",w:"_w_zlj3m_38",h:"_h_zlj3m_41"};let st={};function Fr(){const[t,r]=w.useState([]);return st.set=a=>{r([...t,a])},st.del=a=>{t.forEach((i,s)=>{i.key===a&&t.splice(s,1)}),r(t)},t.length===0?c.jsx(c.Fragment,{}):c.jsx("div",{className:pe.n,children:t.map(a=>a.item)})}function Wr(t){let r=new Date().getTime();t.key=r,st.set({item:c.jsx(Yr,{data:t},r),key:r})}function Yr(t){const r=t.data;let[a]=w.useState("show"),[i,s]=w.useState(!1);w.useEffect(()=>{setTimeout(function(){s(!0),st.del(r.key)},5e3)},[r.key]);let l;switch(r.type){case"error":l=c.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm3.53 12.22a.75.75 0 1 1-1.06 1.06L12 13.06l-2.47 2.47a.75.75 0 0 1-1.06-1.06L10.94 12 8.47 9.53a.75.75 0 0 1 1.06-1.06L12 10.94l2.47-2.47a.75.75 0 0 1 1.06 1.06L13.06 12l2.47 2.47Z"});break;case"success":l=c.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm5.074 6.482-6.3 7.5a.748.748 0 0 1-.562.268h-.013a.75.75 0 0 1-.557-.248l-2.7-3a.751.751 0 0 1 .88-1.186c.09.045.17.107.234.182l2.123 2.36 5.747-6.84a.75.75 0 0 1 1.148.964Z"});break;case"warning":l=c.jsx("path",{d:"M12 2.625c-5.17 0-9.375 4.206-9.375 9.375 0 5.17 4.206 9.375 9.375 9.375 5.17 0 9.375-4.206 9.375-9.375 0-5.17-4.206-9.375-9.375-9.375Zm0 3.844a1.219 1.219 0 1 1 0 2.437 1.219 1.219 0 0 1 0-2.437Zm2.25 10.593h-4.125a.75.75 0 1 1 0-1.5h1.313v-4.124h-.75a.75.75 0 1 1 0-1.5h1.5a.75.75 0 0 1 .75.75v4.874h1.312a.75.75 0 1 1 0 1.5Z"});break;default:l="icon fa fa-exclamation-circle";break}const d={error:pe.e,success:pe.s,warning:pe.w};return c.jsx(c.Fragment,{children:i?c.jsx(c.Fragment,{}):c.jsxs("div",{className:pe.i+d[r.type]+` ${r.thema!==void 0?pe.h:""}`,"data-status":a,children:[c.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",width:"24",height:"24",viewBox:"0 0 24 24",children:l}),c.jsx("span",{className:pe.t,children:r.text})]})})}let ge={Send:Wr,Init:Fr};const ce={d:"_d_1u25q_1",b:"_b_1u25q_21",o:"_o_1u25q_25",m:"_m_1u25q_30",t:"_t_1u25q_41",a:"_a_1u25q_108",v:"_v_1u25q_118"},ue={is:!1,MainButton:{},BackButton:{}};let M={};M.dark={"--tg-color-scheme":"dark","--tg-theme-subtitle-text-color":"#98989e","--tg-theme-destructive-text-color":"#e53935","--tg-theme-section-separator-color":"#545458","--tg-theme-link-color":"#3e88f7","--tg-theme-accent-text-color":"#3e88f7","--tg-theme-bg-color":"#000000","--tg-theme-secondary-bg-color":"#1c1c1d","--tg-theme-button-color":"#3e88f7","--tg-theme-button-text-color":"#ffffff","--tg-theme-bottom-bar-bg-color":"#1d1d1d","--tg-theme-section-header-text-color":"#8d8e93","--tg-theme-header-bg-color":"#1a1a1a","--tg-theme-hint-color":"#98989e","--tg-theme-text-color":"#ffffff","--tg-theme-section-bg-color":"#2c2c2e"},M.light={"--tg-color-scheme":"light","--tg-theme-subtitle-text-color":"#8e8e93","--tg-theme-destructive-text-color":"#ff3b30","--tg-theme-section-separator-color":"#c8c7cc","--tg-theme-link-color":"#007aff","--tg-theme-accent-text-color":"#007aff","--tg-theme-bg-color":"#ffffff","--tg-theme-secondary-bg-color":"#efeff4","--tg-theme-button-color":"#007aff","--tg-theme-button-text-color":"#ffffff","--tg-theme-bottom-bar-bg-color":"#f2f2f2","--tg-theme-section-header-text-color":"#6d6d72","--tg-theme-header-bg-color":"#f8f8f8","--tg-theme-hint-color":"#8e8e93","--tg-theme-text-color":"#000000","--tg-theme-section-bg-color":"#f8f8f8"},M.users={"--tg-color-scheme":"users","--tg-theme-bg-color":"#000000","--tg-theme-text-color":"#ffffff","--tg-theme-hint-color":"#98989e","--tg-theme-link-color":"#ffffff","--tg-theme-button-color":"#ffffff","--tg-theme-button-text-color":"#000000","--tg-theme-secondary-bg-color":"#000000"};const Vr=()=>{if(location.hostname==="localhost"){let[t,r]=w.useState(!1),[a,i]=w.useState(!1),[s,l]=w.useState("dark"),[d,p]=w.useState(!1),[f,_]=w.useState(!1);ue.is=!0,ue.MainButton.set=r,ue.BackButton.set=i,w.useEffect(()=>{var x;M[s]["--tg-theme-bg-color-alpha"]=M[s]["--tg-theme-bg-color"]+"b3",M[s]["--tg-theme-secondary-bg-color-alpha"]=M[s]["--tg-theme-secondary-bg-color"]+"d3",M[s]["--tg-theme-bg-color-alpha-25"]=M[s]["--tg-theme-bg-color"]+"40",M[s]["--tg-theme-secondary-bg-color-alpha-25"]=M[s]["--tg-theme-secondary-bg-color"]+"40";for(let R in M[s])document.documentElement.style.setProperty(R,M[s][R]);document.documentElement.style.setProperty("--tg-content-safe-area-inset-top","0px"),((x=Z.safeAreaInset)==null?void 0:x.bottom)===0?document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px"):Z.safeAreaInset||document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let b=x=>{for(let R in M[x])document.documentElement.style.setProperty(R,M[x][R]),document.documentElement.setAttribute("data-color-scheme",x);document.body.setAttribute("data-color-scheme",x),l(x),p(!1)},h=()=>{p(!1),_(!0)};return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:ce.d,children:[a===!1?c.jsx("div",{className:ce.b,children:"Отмена"}):c.jsx("div",{onClick:()=>{var x;a.page===void 0?(x=a.callback)==null||x.call(a):Se.setPage(a.page)},className:ce.b,children:"Назад"}),c.jsx("div",{className:ce.o,onClick:()=>p(!d),children:"Меню"})]}),c.jsx(ge.Init,{}),t&&c.jsx("div",{className:ce.m,children:c.jsx("button",{onClick:()=>{t.page&&Se.setPage(t.page),t.callback&&t.callback()},children:t.text})}),d?c.jsxs("div",{className:ce.t,children:[c.jsxs("ul",{children:[c.jsx("li",{children:c.jsx("button",{onClick:h,children:"Authorization"})}),c.jsx("li",{})]}),c.jsxs("ul",{children:[c.jsxs("li",{children:[c.jsx("button",{children:"Thema"}),c.jsxs("ol",{children:[c.jsx("li",{children:c.jsx("button",{onClick:()=>b("dark"),children:"Dark"})}),c.jsx("li",{children:c.jsx("button",{onClick:()=>b("light"),children:"Light"})}),c.jsx("li",{children:c.jsx("button",{onClick:()=>b("users"),children:"Users"})})]})]}),c.jsx("li",{children:c.jsx("button",{onClick:()=>p(!d),children:"Closed"})})]})]}):"",f?c.jsx(Hr,{setAuthorization:_}):""]})}else return w.useEffect(()=>{var t;document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",Z.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",Z.themeParams.bg_color+"b3"),((t=Z.safeAreaInset)==null?void 0:t.bottom)===0?document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px"):Z.safeAreaInset||document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px"),document.body.setAttribute("data-color-scheme",Z.colorScheme)},[]),c.jsx(c.Fragment,{children:c.jsx(ge.Init,{})})},Hr=({setAuthorization:t})=>{let r={},a=()=>{localStorage.setItem("auth",r)};return c.jsx("div",{className:ce.a,children:c.jsxs("div",{className:ce.v,children:[c.jsx("fieldset",{}),c.jsx("div",{onClick:a,children:" Сохранить "})]})})},cr={p:"_p_1axqy_1",s:"_s_1axqy_17"},Jr=({className:t,children:r,isScroll:a=!0})=>c.jsx("div",{className:[cr.p,a&&cr.s,t].filter(i=>i!==void 0).join(" "),children:r}),Kr={l:"_l_gfyud_1"},Gr=({children:t,className:r})=>c.jsx("div",{className:[Kr.l,r].filter(a=>a!==void 0).join(" "),children:t}),fe={q:"_q_z5mg9_2",m:"_m_z5mg9_8",g:"_g_z5mg9_15",i:"_i_z5mg9_23",c:"_c_z5mg9_40",l:"_l_z5mg9_47",a:"_a_z5mg9_62",n:"_n_z5mg9_68"},Xr=({items:t,style:r})=>{const a=s=>{Se.setPage(s)},i=s=>{Z.openTelegramLink(s)};return c.jsx("div",{className:W(fe[r==="liquid-glass"?"q":""],fe.m),children:t.map(s=>c.jsx("div",{className:fe.g,children:s.items.map((l,d)=>c.jsxs("div",{className:fe.i,onClick:()=>{l.link&&i(l.link),l.page&&a(l.page),l.callback&&l.callback()},children:[c.jsxs("div",{className:fe.c,children:[c.jsx("span",{className:fe.l,style:{background:l.color},children:l.icon}),l.title,l.count&&c.jsx("span",{className:fe.n,children:l.count})]}),c.jsx("span",{className:fe.a,children:"›"})]},d))},s.id))})},ee={o:"_o_8ho2f_3",m:"_m_8ho2f_14",l:"_l_8ho2f_28",r:"_r_8ho2f_33",x:"_x_8ho2f_38",h:"_h_8ho2f_42",c:"_c_8ho2f_57",u:"_u_8ho2f_72"},lt={};function Zr({children:t,icon:r,iconBadge:a=0,title:i,className:s,view:l="list",position:d="left",name:p="default"}){const[f,_]=w.useState(!1),[b,h]=w.useState(null);w.useEffect(()=>{let R=document.querySelector(".p_sb");return R||(R=document.createElement("div"),R.className="_p_sb",document.body.appendChild(R)),h(R),lt[p]=N=>_(N),()=>{R&&R.parentNode&&R.parentNode.removeChild(R)}},[]);const x=c.jsxs(c.Fragment,{children:[f&&c.jsx("div",{className:ee.o,onClick:()=>_(!1)}),c.jsxs("div",{className:W(ee.m,d==="left"?ee.l:ee.r,f&&ee.x,s),children:[c.jsxs("div",{className:ee.h,children:[i&&c.jsx("h3",{className:ee.t,children:i}),c.jsxs("svg",{onClick:()=>_(!1),fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"24",height:"24","data-pointer":"true",style:{cursor:"pointer"},children:[c.jsx("path",{d:"M17.25 17.25 6.75 6.75"}),c.jsx("path",{d:"m17.25 6.75-10.5 10.5"})]})]}),c.jsx("div",{className:ee.c,children:l==="list"?c.jsx("ul",{className:ee.u,children:t}):t})]})]});return c.jsxs(c.Fragment,{children:[r&&c.jsx("div",{onClick:()=>_(!0),className:"bage","data-count":a,children:r}),b&&pr.createPortal(x,b)]})}const Qr=(t,r)=>{var a;(a=lt[t])==null||a.call(lt,r)},je={h:"_h_1l02r_2",r:"_r_1l02r_59",c:"_c_1l02r_62",x:"_x_1l02r_65",b:"_b_1l02r_69",a:"_a_1l02r_107",draw:"_draw_1l02r_1",scaleToggleVar:"_scaleToggleVar_1l02r_1"},ea={b:"_b_r6m8n_1"},ta=({className:t,value:r})=>c.jsx("div",{className:[ea.b,t].filter(a=>a!==void 0).join(" "),children:r}),ur=(t,r)=>t.findIndex(a=>(a==null?void 0:a.page)===r),ra=({actions:t,children:r,className:a,actual:i,toHide:s=!1,page:l,style:d="default",onPageChange:p,direction:f="row"})=>{const[_,b]=w.useState(null),[h,x]=w.useState(l?ur(t||[],l):0),[R,N]=w.useState("right"),re=w.useRef(h);w.useEffect(()=>{if(l){const V=ur(t||[],l);V!==-1&&V!==re.current&&(re.current=V,x(V))}},[l,t]),w.useEffect(()=>{re.current!==h&&(N(h>re.current?"left":"right"),re.current=h)},[h]),w.useEffect(()=>{if(!s)return;const V=document.querySelectorAll("[contenteditable]"),Ae=()=>{const T=document.querySelector("footer");T&&T.classList.remove(je.x)},$e=()=>{const T=document.querySelector("footer");T&&T.classList.add(je.x)};return V.forEach(T=>{T.addEventListener("focus",$e,!0),T.addEventListener("blur",Ae,!0)}),()=>{V.forEach(T=>{T.removeEventListener("focus",$e,!0),T.removeEventListener("blur",Ae,!0)})}},[]);const[Ce,z]=w.useState(!1),E=w.useRef(null),Ee=()=>{E.current&&(clearTimeout(E.current),E.current=null),z(!0)},Re=()=>{requestAnimationFrame(()=>{E.current=setTimeout(()=>{z(!1),E.current=null},50)})};w.useEffect(()=>()=>{E.current&&clearTimeout(E.current)},[]);const ae={};return d==="liquid-glass"&&(ae.onMouseDown=Ee,ae.onMouseUp=Re,ae.onTouchStart=Ee,ae.onTouchEnd=Re),c.jsxs(c.Fragment,{children:[_,c.jsxs("footer",{"data-direction":R,"data-style":d,"data-scale":Ce?"true":"false",...ae,className:W(je.h,je[f==="row"?"r":"c"],a),children:[r,t&&c.jsx(aa,{actions:t,activeIndex:h,setActiveIndex:x,onPageChange:p,setComponent:b,actual:i})]})]})},aa=({actions:t,activeIndex:r,setActiveIndex:a,onPageChange:i,setComponent:s,actual:l})=>c.jsxs("div",{className:je.b,children:[t.map((d,p)=>c.jsxs("div",{"data-active":r===p?"true":"false",onClick:()=>{d.page&&(a(p),i==null||i(d.page)),d.onClick&&d.onClick(()=>a(p)),d.component&&(r===p||(s(d.component),a(p)))},children:[d.icon,d.title&&c.jsx("span",{children:d.title}),d.badge&&c.jsx(ta,{value:d.badge})]},p)),l&&c.jsx("div",{className:je.a,style:{"--count-options":t.length,"--tab-bar-actual-index":r}})]}),na={a:"_a_15zsz_1"};function oa({children:t,className:r,text:a}){return c.jsxs("div",{className:W(na.a,r),children:[t,a&&c.jsx("b",{children:a})]})}const ct={w:"_w_yx04q_3",v:"_v_yx04q_24",s:"_s_yx04q_34",n:"_n_yx04q_38"},_t={};function ia({children:t,name:r,onClose:a,isOpen:i,isScroll:s=!0,nextBackButton:l}){const[d,p]=w.useState(!1);return w.useEffect(()=>{if(!i)return;const f=l===void 0?dr().pop():l,_=()=>{p(!1),setTimeout(()=>{mt(f||!1),a==null||a()},300)};_t[r]={onClose:_,onOpen:()=>{p(!0)}},mt({callback:_});const b=setTimeout(()=>{p(!0)},10);return()=>{clearTimeout(b)}},[i]),i?c.jsxs("div",{className:W(ct.w,d&&ct.v,s&&ct.s),children:[c.jsx("div",{className:ct.n}),t]}):""}const sa=(t,r)=>{var a,i;r?(a=_t[t])==null||a.onOpen():(i=_t[t])==null||i.onClose()},ut={s:"_s_q79m4_3",n:"_n_q79m4_14",b:"_b_q79m4_19",f:"_f_q79m4_29"};function la({className:t,children:r,onScrollEnd:a,offset:i=100,isLoading:s,fullscreen:l=!1,isScrollBar:d=!1}){const[p,f]=w.useState(s||!1);w.useEffect(()=>{f(s||!1)},[s]);let _={onScroll:b=>{const{scrollTop:h,scrollHeight:x,clientHeight:R}=b.currentTarget;h+R>=x-i&&!p&&(f(!0),a==null||a())}};return c.jsxs(c.Fragment,{children:[!d&&c.jsx("div",{className:ut.b}),c.jsx("div",{..._,className:W(ut.s,!d&&ut.n,l&&ut.f,t),children:r})]})}const ft={a:"_a_prp23_1",l:"_l_prp23_13",r:"_r_prp23_16",b:"_b_prp23_19"};function ca({children:t,className:r,position:a="center",title:i}){let s="";return a==="left"?s=ft.l:a==="right"?s=ft.r:a==="between"&&(s=ft.b),c.jsxs("div",{className:W(ft.a,s,r),children:[t,i&&c.jsx("b",{children:i})]})}const te={q:"_q_1wgf4_2",o:"_o_1wgf4_11",x:"_x_1wgf4_25",c:"_c_1wgf4_29",p:"_p_1wgf4_34",f:"_f_1wgf4_50",h:"_h_1wgf4_58",b:"_b_1wgf4_75"},X={},fr=({children:t,title:r,isOverlay:a=!0,footer:i=!0,className:s,name:l,style:d="default",onOpen:p})=>{const[f,_]=w.useState(!1),[b,h]=w.useState(!1);return w.useEffect(()=>{X[l]=x=>{x?(h(!1),_(!0),p==null||p(!0)):(h(!0),p==null||p(!1),setTimeout(()=>{_(!1),h(!1)},300))}},[l,p]),!f&&!b?null:c.jsx("div",{className:W(d==="liquid-glass"&&te.q,te.o,a&&te.x,b&&te.c),onClick:()=>{var x;return(x=X[l])==null?void 0:x.call(X,!1)},children:c.jsxs("div",{className:W(te.p,b&&te.c,i&&te.f,s),onClick:x=>x.stopPropagation(),children:[r&&c.jsxs("div",{className:te.h,children:[c.jsx("h3",{children:r}),c.jsx("button",{className:te.b,onClick:()=>{var x;return(x=X[l])==null?void 0:x.call(X,!1)},children:"✕"})]}),t]})})},ua=(t,r)=>{var a;(a=X[t])==null||a.call(X,r)},B={state:[!1],listen:[],prev:{},router:t=>{t===!1?(v.default.WebApp.BackButton.isVisible=!1,v.default.WebApp.BackButton.offClick(B.listen[0]),B.listen.shift(),B.state.length!==1&&B.state.pop()):(v.default.WebApp.BackButton.isVisible=!0,v.default.WebApp.BackButton.offClick(B.listen[0]),B.listen.shift(),B.listen.push(()=>{var a;let r=B.state.pop();B.prev=Se.getPage(),r.page!==void 0?Se.setPage(r.page):(a=r.callback)==null||a.call(r)}),Z.BackButton.onClick(B.listen[0]))}},W=(...t)=>t.filter(r=>r!==void 0&&r!==!1&&r!==null&&r!=="").join(" ");v.default=void 0,(t=>{var r;t.WebApp=typeof window<"u"&&((r=window.Telegram)==null?void 0:r.WebApp)||{},t.getUser=()=>{var a;return((a=t.WebApp.initDataUnsafe)==null?void 0:a.user)===void 0?{}:t.WebApp.initDataUnsafe},t.Location=a=>{if(ue.is)return a({latitude:55.752555,longitude:37.623123});let i=()=>{t.WebApp.LocationManager.getLocation(async s=>{if(!s){t.WebApp.LocationManager.isAccessRequested||t.WebApp.LocationManager.openSettings();return}a(s)})};!t.WebApp.LocationManager||!t.WebApp.LocationManager.isInited?t.WebApp.LocationManager.init(()=>{i()}):i()},t.Notice={Send:(a,i,s)=>{var l,d;i!==void 0?(ge.Send({type:a,text:i,thema:s}),(l=t.WebApp.HapticFeedback)==null||l.notificationOccurred(a)):(ge.Send(a),(d=t.WebApp.HapticFeedback)==null||d.notificationOccurred(a.type))},Error:a=>{var i;ge.Send({type:"error",text:a}),(i=t.WebApp.HapticFeedback)==null||i.notificationOccurred("error")},Success:a=>{var i;ge.Send({type:"success",text:a}),(i=t.WebApp.HapticFeedback)==null||i.notificationOccurred("success")},Warning:a=>{var i;ge.Send({type:"warning",text:a}),(i=t.WebApp.HapticFeedback)==null||i.notificationOccurred("warning")}},t.Header=Vr,t.TabBar=ra,t.Title=oa,t.BottomSheet=fr,t.BottomSheetControllerSheet=ua,t.SafeArea=Jr,t.Loading=Gr,t.Sidebar=Zr,t.SidePanel=ia,t.AppBar=ca,t.SideBarController=Qr,t.SidePanelController=sa,t.Scroll=la,t.Modal=pt,t.Menu=Xr,t.MainButton={callback:[],set:a=>{ue.is?ue.MainButton.set(a):(t.WebApp.MainButton.callback.forEach(i=>{t.WebApp.MainButton.offClick(i)}),t.WebApp.MainButton.callback=[],typeof a=="boolean"?t.WebApp.MainButton.isVisible=!1:(t.WebApp.MainButton.text=a.text,a.color&&(t.WebApp.MainButton.color=a.color),a.textColor&&(t.WebApp.MainButton.textColor=a.textColor),t.WebApp.MainButton.isVisible=!0,t.WebApp.MainButton.isActive=a.isActive===void 0?!0:a.isActive,t.WebApp.MainButton.callback.push(()=>{var i;a.page===void 0?(i=a.callback)==null||i.call(a):Se.setPage(a.page)}),t.WebApp.MainButton.onClick(t.WebApp.MainButton.callback[0])))}},t.BackButtonPrev=()=>{B.prev&&(0,t.BackButton)(B.prev)},t.BackButtonState=()=>B.state,t.BackButton=a=>{ue.is?ue.BackButton.set(a):(B.state.push(a),B.router(a))}})(v.default||(v.default={}));const fa=v.default.TabBar,da=fr,mt=v.default.BackButton,pa=v.default.BackButtonPrev,dr=v.default.BackButtonState,ga=v.default.Notice,ba=v.default.SafeArea,_a=v.default.Loading,ma=v.default.Menu,ha=v.default.SidePanel,va=v.default.Scroll,xa=v.default.AppBar,ya=v.default.Title,wa=v.default.Sidebar,ka=v.default.Location,Sa=v.default.SidePanelController,ja=v.default.SideBarController,Ea=v.default.BottomSheetControllerSheet,{Header:Ra,Modal:Aa,MainButton:$a,WebApp:Z,getUser:Oa}=v.default;v.AppBar=xa,v.BackButton=mt,v.BackButtonPrev=pa,v.BackButtonState=dr,v.BottomSheet=da,v.BottomSheetControllerSheet=Ea,v.Header=Ra,v.Loading=_a,v.Location=ka,v.MainButton=$a,v.Menu=ma,v.Modal=Aa,v.Notice=ga,v.SafeArea=ba,v.Scroll=va,v.SideBarController=ja,v.SidePanel=ha,v.SidePanelController=Sa,v.Sidebar=wa,v.TabBar=fa,v.Title=ya,v.WebApp=Z,v.clsx=W,v.getUser=Oa,Object.defineProperties(v,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|