@elcrm/telegram 0.0.67 → 0.0.69
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/Footer/index.d.ts +2 -2
- package/dist/index.d.ts +24 -15
- package/dist/index.es.js +106 -106
- package/dist/index.umd.js +10 -10
- package/package.json +1 -1
package/dist/Footer/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export type TFooter = {
|
|
|
5
5
|
className?: string;
|
|
6
6
|
page?: string;
|
|
7
7
|
direction?: "row" | "column";
|
|
8
|
-
|
|
8
|
+
onPageChange?: (page: string) => void;
|
|
9
9
|
};
|
|
10
10
|
export type TAction = {
|
|
11
11
|
icon: any;
|
|
@@ -13,6 +13,6 @@ export type TAction = {
|
|
|
13
13
|
page?: string;
|
|
14
14
|
callback?: () => void;
|
|
15
15
|
};
|
|
16
|
-
declare const Footer: ({ actions, children, className, page,
|
|
16
|
+
declare const Footer: ({ actions, children, className, page, onPageChange, direction, }: TFooter) => import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export default Footer;
|
|
18
18
|
export { events };
|
package/dist/index.d.ts
CHANGED
|
@@ -4,19 +4,28 @@ declare namespace Telegram {
|
|
|
4
4
|
const WebApp: any;
|
|
5
5
|
const getUser: () => any;
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
*/
|
|
7
|
+
* Показывает уведомление с поддержкой тем оформления и хаптик-отклика.
|
|
8
|
+
* @param {string|object} type - Тип уведомления ('error', 'success', 'warning') или объект: {type, text, thema}.
|
|
9
|
+
* @param {string} [text] - Текст уведомления.
|
|
10
|
+
* @param {boolean} [thema] - Признак применения темы оформния.
|
|
11
|
+
*
|
|
12
|
+
* Пример использования:
|
|
13
|
+
* Telegram.Notice('error', 'Что-то пошло не так');
|
|
14
|
+
* Telegram.Notice({type: 'success', text: 'Операция выполнена', thema: true});
|
|
15
|
+
*/
|
|
17
16
|
const Notice: (type: any, text?: any, thema?: any) => void;
|
|
18
17
|
const Header: () => import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Компонент Footer
|
|
20
|
+
*
|
|
21
|
+
* @param {TAction[]} [actions] - Массив действий для отображения в футере
|
|
22
|
+
* @param {React.ReactNode} [children] - Дополнительные дочерние элементы
|
|
23
|
+
* @param {string} [className] - Пользовательский CSS-класс
|
|
24
|
+
* @param {string} [page] - Текущая страница для определения активного действия
|
|
25
|
+
* @param {"row"|"column"} [direction="row"] - Направление расположения элементов футера
|
|
26
|
+
* @param {(page: string) => void} [onPageChange] - Функция для обработки смены страницы
|
|
27
|
+
*/
|
|
28
|
+
const Footer: ({ actions, children, className, page, onPageChange, direction, }: import("./Footer").TFooter) => import("react/jsx-runtime").JSX.Element;
|
|
20
29
|
/**
|
|
21
30
|
* Компонент BottomSheet
|
|
22
31
|
*
|
|
@@ -25,12 +34,12 @@ declare namespace Telegram {
|
|
|
25
34
|
* @param {string} [props.title] - Заголовок окна (опционально)
|
|
26
35
|
* @param {boolean} [props.isOverlay=true] - Показывать ли затемняющую подложку (по умолчанию true)
|
|
27
36
|
*/
|
|
28
|
-
const
|
|
37
|
+
const BottomSheet: ({ children, title, isOverlay }: {
|
|
29
38
|
children: React.ReactNode;
|
|
30
39
|
title?: string;
|
|
31
40
|
isOverlay?: boolean;
|
|
32
41
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
-
const
|
|
42
|
+
const toggleBottomSheet: () => void;
|
|
34
43
|
const Modal: typeof _Modal;
|
|
35
44
|
const MainButton: {
|
|
36
45
|
callback: never[];
|
|
@@ -51,7 +60,7 @@ type MainButton = {
|
|
|
51
60
|
callback?: () => void;
|
|
52
61
|
page: string;
|
|
53
62
|
};
|
|
54
|
-
export declare const Header: () => import("react/jsx-runtime").JSX.Element, Footer: ({ actions, children, className, page,
|
|
63
|
+
export declare const Header: () => import("react/jsx-runtime").JSX.Element, Footer: ({ actions, children, className, page, onPageChange, direction, }: import('./Footer').TFooter) => import("react/jsx-runtime").JSX.Element, toggleBottomSheet: () => void, Modal: typeof _Modal, MainButton: {
|
|
55
64
|
callback: never[];
|
|
56
65
|
set: (j: MainButton | boolean) => void;
|
|
57
66
|
}, BackButton: {
|
|
@@ -59,7 +68,7 @@ export declare const Header: () => import("react/jsx-runtime").JSX.Element, Foot
|
|
|
59
68
|
listen: any;
|
|
60
69
|
router: (j: any) => void;
|
|
61
70
|
set: (j: any) => void;
|
|
62
|
-
},
|
|
71
|
+
}, BottomSheet: ({ children, title, isOverlay }: {
|
|
63
72
|
children: React.ReactNode;
|
|
64
73
|
title?: string;
|
|
65
74
|
isOverlay?: boolean;
|
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import P, { useState as Ot, useEffect as
|
|
2
|
-
import './index.css';var
|
|
1
|
+
import P, { useState as Ot, useEffect as jt } from "react";
|
|
2
|
+
import './index.css';var wt = { exports: {} }, Ve = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
5
|
* react-jsx-runtime.production.min.js
|
|
@@ -14,14 +14,14 @@ function Vt() {
|
|
|
14
14
|
if (Pt) return Ve;
|
|
15
15
|
Pt = 1;
|
|
16
16
|
var r = P, o = Symbol.for("react.element"), i = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, v = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
|
-
function
|
|
18
|
-
var d, R = {},
|
|
19
|
-
E !== void 0 && (
|
|
17
|
+
function j(_, h, E) {
|
|
18
|
+
var d, R = {}, C = null, N = null;
|
|
19
|
+
E !== void 0 && (C = "" + E), h.key !== void 0 && (C = "" + h.key), h.ref !== void 0 && (N = h.ref);
|
|
20
20
|
for (d in h) c.call(h, d) && !y.hasOwnProperty(d) && (R[d] = h[d]);
|
|
21
21
|
if (_ && _.defaultProps) for (d in h = _.defaultProps, h) R[d] === void 0 && (R[d] = h[d]);
|
|
22
|
-
return { $$typeof: o, type: _, key:
|
|
22
|
+
return { $$typeof: o, type: _, key: C, ref: N, props: R, _owner: v.current };
|
|
23
23
|
}
|
|
24
|
-
return Ve.Fragment = i, Ve.jsx =
|
|
24
|
+
return Ve.Fragment = i, Ve.jsx = j, Ve.jsxs = j, Ve;
|
|
25
25
|
}
|
|
26
26
|
var ze = {};
|
|
27
27
|
/**
|
|
@@ -36,7 +36,7 @@ var ze = {};
|
|
|
36
36
|
var Tt;
|
|
37
37
|
function zt() {
|
|
38
38
|
return Tt || (Tt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
39
|
-
var r = P, o = Symbol.for("react.element"), i = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"),
|
|
39
|
+
var r = P, o = Symbol.for("react.element"), i = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), j = Symbol.for("react.provider"), _ = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), N = Symbol.for("react.offscreen"), ne = Symbol.iterator, _e = "@@iterator";
|
|
40
40
|
function Re(e) {
|
|
41
41
|
if (e === null || typeof e != "object")
|
|
42
42
|
return null;
|
|
@@ -64,7 +64,7 @@ function zt() {
|
|
|
64
64
|
var ke = !1, Ee = !1, m = !1, k = !1, B = !1, $;
|
|
65
65
|
$ = Symbol.for("react.module.reference");
|
|
66
66
|
function W(e) {
|
|
67
|
-
return !!(typeof e == "string" || typeof e == "function" || e === c || e === y || B || e === v || e === E || e === d || k || e === N || ke || Ee || m || typeof e == "object" && e !== null && (e.$$typeof ===
|
|
67
|
+
return !!(typeof e == "string" || typeof e == "function" || e === c || e === y || B || e === v || e === E || e === d || k || e === N || ke || Ee || m || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === R || e.$$typeof === j || e.$$typeof === _ || e.$$typeof === h || // This needs to include all possible module reference object
|
|
68
68
|
// types supported by any Flight configuration anywhere since
|
|
69
69
|
// we don't know which Flight build this will end up being used
|
|
70
70
|
// with.
|
|
@@ -106,7 +106,7 @@ function zt() {
|
|
|
106
106
|
case _:
|
|
107
107
|
var t = e;
|
|
108
108
|
return ae(t) + ".Consumer";
|
|
109
|
-
case
|
|
109
|
+
case j:
|
|
110
110
|
var n = e;
|
|
111
111
|
return ae(n._context) + ".Provider";
|
|
112
112
|
case h:
|
|
@@ -114,7 +114,7 @@ function zt() {
|
|
|
114
114
|
case R:
|
|
115
115
|
var a = e.displayName || null;
|
|
116
116
|
return a !== null ? a : T(e.type) || "Memo";
|
|
117
|
-
case
|
|
117
|
+
case C: {
|
|
118
118
|
var f = e, p = f._payload, u = f._init;
|
|
119
119
|
try {
|
|
120
120
|
return T(u(p));
|
|
@@ -125,18 +125,18 @@ function zt() {
|
|
|
125
125
|
}
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
128
|
-
var I = Object.assign, D = 0, z, J, q, Se, xe, Oe,
|
|
129
|
-
function
|
|
128
|
+
var I = Object.assign, D = 0, z, J, q, Se, xe, Oe, je;
|
|
129
|
+
function we() {
|
|
130
130
|
}
|
|
131
|
-
|
|
131
|
+
we.__reactDisabledLog = !0;
|
|
132
132
|
function Qe() {
|
|
133
133
|
{
|
|
134
134
|
if (D === 0) {
|
|
135
|
-
z = console.log, J = console.info, q = console.warn, Se = console.error, xe = console.group, Oe = console.groupCollapsed,
|
|
135
|
+
z = console.log, J = console.info, q = console.warn, Se = console.error, xe = console.group, Oe = console.groupCollapsed, je = console.groupEnd;
|
|
136
136
|
var e = {
|
|
137
137
|
configurable: !0,
|
|
138
138
|
enumerable: !0,
|
|
139
|
-
value:
|
|
139
|
+
value: we,
|
|
140
140
|
writable: !0
|
|
141
141
|
};
|
|
142
142
|
Object.defineProperties(console, {
|
|
@@ -180,7 +180,7 @@ function zt() {
|
|
|
180
180
|
value: Oe
|
|
181
181
|
}),
|
|
182
182
|
groupEnd: I({}, e, {
|
|
183
|
-
value:
|
|
183
|
+
value: je
|
|
184
184
|
})
|
|
185
185
|
});
|
|
186
186
|
}
|
|
@@ -206,7 +206,7 @@ function zt() {
|
|
|
206
206
|
var tt = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
207
|
G = new tt();
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function Ce(e, t) {
|
|
210
210
|
if (!e || le)
|
|
211
211
|
return "";
|
|
212
212
|
{
|
|
@@ -278,7 +278,7 @@ function zt() {
|
|
|
278
278
|
return typeof e == "function" && G.set(e, M), M;
|
|
279
279
|
}
|
|
280
280
|
function rt(e, t, n) {
|
|
281
|
-
return
|
|
281
|
+
return Ce(e, !1);
|
|
282
282
|
}
|
|
283
283
|
function nt(e) {
|
|
284
284
|
var t = e.prototype;
|
|
@@ -288,7 +288,7 @@ function zt() {
|
|
|
288
288
|
if (e == null)
|
|
289
289
|
return "";
|
|
290
290
|
if (typeof e == "function")
|
|
291
|
-
return
|
|
291
|
+
return Ce(e, nt(e));
|
|
292
292
|
if (typeof e == "string")
|
|
293
293
|
return K(e);
|
|
294
294
|
switch (e) {
|
|
@@ -303,7 +303,7 @@ function zt() {
|
|
|
303
303
|
return rt(e.render);
|
|
304
304
|
case R:
|
|
305
305
|
return Z(e.type, t, n);
|
|
306
|
-
case
|
|
306
|
+
case C: {
|
|
307
307
|
var a = e, f = a._payload, p = a._init;
|
|
308
308
|
try {
|
|
309
309
|
return Z(p(f), t, n);
|
|
@@ -623,10 +623,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
623
623
|
ze.Fragment = c, ze.jsx = kt, ze.jsxs = Et;
|
|
624
624
|
}()), ze;
|
|
625
625
|
}
|
|
626
|
-
process.env.NODE_ENV === "production" ?
|
|
627
|
-
var l =
|
|
626
|
+
process.env.NODE_ENV === "production" ? wt.exports = Vt() : wt.exports = zt();
|
|
627
|
+
var l = wt.exports;
|
|
628
628
|
let H = {};
|
|
629
|
-
var
|
|
629
|
+
var Ct;
|
|
630
630
|
((r) => {
|
|
631
631
|
function o({ children: _ }) {
|
|
632
632
|
const [h, E] = Ot(!1), [d, R] = Ot(!1);
|
|
@@ -634,7 +634,7 @@ var wt;
|
|
|
634
634
|
re.BackButton.set(!1), R(!0), setTimeout(() => {
|
|
635
635
|
E(!1), R(!1);
|
|
636
636
|
}, 300);
|
|
637
|
-
},
|
|
637
|
+
}, jt(() => {
|
|
638
638
|
h ? H.onClose() : (re.BackButton.set({
|
|
639
639
|
callback: () => H.onClose()
|
|
640
640
|
}), E(!0));
|
|
@@ -648,7 +648,7 @@ var wt;
|
|
|
648
648
|
let [h, E] = Ot([]);
|
|
649
649
|
return H.x = (d) => {
|
|
650
650
|
E(d ? h.filter((R) => R.key !== d) : []);
|
|
651
|
-
},
|
|
651
|
+
}, jt(() => {
|
|
652
652
|
_ && (H.i = _);
|
|
653
653
|
}, []), H.add = (d, R = Date.now()) => {
|
|
654
654
|
E([...h, { key: R, item: d }]);
|
|
@@ -673,13 +673,13 @@ var wt;
|
|
|
673
673
|
H.onClose();
|
|
674
674
|
}
|
|
675
675
|
r.Close = y;
|
|
676
|
-
function
|
|
676
|
+
function j(_, h, E) {
|
|
677
677
|
H.i && H.i(`${_}/modals/${h}.tsx`).then((d) => {
|
|
678
678
|
d.default.Open(E);
|
|
679
679
|
});
|
|
680
680
|
}
|
|
681
|
-
r.Open =
|
|
682
|
-
})(
|
|
681
|
+
r.Open = j;
|
|
682
|
+
})(Ct || (Ct = {}));
|
|
683
683
|
function Mt() {
|
|
684
684
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof self < "u" ? self : typeof global < "u" ? global : {};
|
|
685
685
|
}
|
|
@@ -720,8 +720,8 @@ const Ge = (r) => {
|
|
|
720
720
|
const i = new Uint8Array(r.length), c = new Uint8Array(r.length);
|
|
721
721
|
let v = 0;
|
|
722
722
|
for (let y = 0; y < r.length; y++) {
|
|
723
|
-
const
|
|
724
|
-
v = o[
|
|
723
|
+
const j = y % o.length;
|
|
724
|
+
v = o[j] + y + v & 255, c[y] = v;
|
|
725
725
|
}
|
|
726
726
|
for (let y = 0; y < r.length; y++)
|
|
727
727
|
i[y] = r[y] ^ c[y];
|
|
@@ -742,8 +742,8 @@ const Ge = (r) => {
|
|
|
742
742
|
try {
|
|
743
743
|
const o = Ge(
|
|
744
744
|
Date.now().toString() + Math.random()
|
|
745
|
-
).substring(0, Ke().saltLength * 2), i = Ge(r + o).substring(0, 8), c = Wt(Ke().key, o), v = Jt(r), y = Lt(v, c),
|
|
746
|
-
return `${o}.${
|
|
745
|
+
).substring(0, Ke().saltLength * 2), i = Ge(r + o).substring(0, 8), c = Wt(Ke().key, o), v = Jt(r), y = Lt(v, c), j = Ht(y);
|
|
746
|
+
return `${o}.${j}.${i}`;
|
|
747
747
|
} catch {
|
|
748
748
|
throw new Error("Не удалось зашифровать данные");
|
|
749
749
|
}
|
|
@@ -752,7 +752,7 @@ const Ge = (r) => {
|
|
|
752
752
|
const o = r.split(".");
|
|
753
753
|
if (o.length !== 3)
|
|
754
754
|
throw new Error("Неверный формат зашифрованных данных");
|
|
755
|
-
const i = o[0], c = o[1], v = o[2], y = Wt(Ke().key, i),
|
|
755
|
+
const i = o[0], c = o[1], v = o[2], y = Wt(Ke().key, i), j = Kt(c), _ = Lt(j, y), h = qt(_);
|
|
756
756
|
if (Ge(h + i).substring(
|
|
757
757
|
0,
|
|
758
758
|
8
|
|
@@ -802,14 +802,14 @@ function Xt() {
|
|
|
802
802
|
if (It) return Je;
|
|
803
803
|
It = 1;
|
|
804
804
|
var r = P, o = Symbol.for("react.element"), i = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, v = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
805
|
-
function
|
|
806
|
-
var d, R = {},
|
|
807
|
-
E !== void 0 && (
|
|
805
|
+
function j(_, h, E) {
|
|
806
|
+
var d, R = {}, C = null, N = null;
|
|
807
|
+
E !== void 0 && (C = "" + E), h.key !== void 0 && (C = "" + h.key), h.ref !== void 0 && (N = h.ref);
|
|
808
808
|
for (d in h) c.call(h, d) && !y.hasOwnProperty(d) && (R[d] = h[d]);
|
|
809
809
|
if (_ && _.defaultProps) for (d in h = _.defaultProps, h) R[d] === void 0 && (R[d] = h[d]);
|
|
810
|
-
return { $$typeof: o, type: _, key:
|
|
810
|
+
return { $$typeof: o, type: _, key: C, ref: N, props: R, _owner: v.current };
|
|
811
811
|
}
|
|
812
|
-
return Je.Fragment = i, Je.jsx =
|
|
812
|
+
return Je.Fragment = i, Je.jsx = j, Je.jsxs = j, Je;
|
|
813
813
|
}
|
|
814
814
|
var He = {};
|
|
815
815
|
/**
|
|
@@ -824,7 +824,7 @@ var He = {};
|
|
|
824
824
|
var $t;
|
|
825
825
|
function Qt() {
|
|
826
826
|
return $t || ($t = 1, process.env.NODE_ENV !== "production" && function() {
|
|
827
|
-
var r = P, o = Symbol.for("react.element"), i = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"),
|
|
827
|
+
var r = P, o = Symbol.for("react.element"), i = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), j = Symbol.for("react.provider"), _ = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), N = Symbol.for("react.offscreen"), ne = Symbol.iterator, _e = "@@iterator";
|
|
828
828
|
function Re(e) {
|
|
829
829
|
if (e === null || typeof e != "object")
|
|
830
830
|
return null;
|
|
@@ -852,7 +852,7 @@ function Qt() {
|
|
|
852
852
|
var ke = !1, Ee = !1, m = !1, k = !1, B = !1, $;
|
|
853
853
|
$ = Symbol.for("react.module.reference");
|
|
854
854
|
function W(e) {
|
|
855
|
-
return !!(typeof e == "string" || typeof e == "function" || e === c || e === y || B || e === v || e === E || e === d || k || e === N || ke || Ee || m || typeof e == "object" && e !== null && (e.$$typeof ===
|
|
855
|
+
return !!(typeof e == "string" || typeof e == "function" || e === c || e === y || B || e === v || e === E || e === d || k || e === N || ke || Ee || m || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === R || e.$$typeof === j || e.$$typeof === _ || e.$$typeof === h || // This needs to include all possible module reference object
|
|
856
856
|
// types supported by any Flight configuration anywhere since
|
|
857
857
|
// we don't know which Flight build this will end up being used
|
|
858
858
|
// with.
|
|
@@ -894,7 +894,7 @@ function Qt() {
|
|
|
894
894
|
case _:
|
|
895
895
|
var t = e;
|
|
896
896
|
return ae(t) + ".Consumer";
|
|
897
|
-
case
|
|
897
|
+
case j:
|
|
898
898
|
var n = e;
|
|
899
899
|
return ae(n._context) + ".Provider";
|
|
900
900
|
case h:
|
|
@@ -902,7 +902,7 @@ function Qt() {
|
|
|
902
902
|
case R:
|
|
903
903
|
var a = e.displayName || null;
|
|
904
904
|
return a !== null ? a : T(e.type) || "Memo";
|
|
905
|
-
case
|
|
905
|
+
case C: {
|
|
906
906
|
var f = e, p = f._payload, u = f._init;
|
|
907
907
|
try {
|
|
908
908
|
return T(u(p));
|
|
@@ -913,18 +913,18 @@ function Qt() {
|
|
|
913
913
|
}
|
|
914
914
|
return null;
|
|
915
915
|
}
|
|
916
|
-
var I = Object.assign, D = 0, z, J, q, Se, xe, Oe,
|
|
917
|
-
function
|
|
916
|
+
var I = Object.assign, D = 0, z, J, q, Se, xe, Oe, je;
|
|
917
|
+
function we() {
|
|
918
918
|
}
|
|
919
|
-
|
|
919
|
+
we.__reactDisabledLog = !0;
|
|
920
920
|
function Qe() {
|
|
921
921
|
{
|
|
922
922
|
if (D === 0) {
|
|
923
|
-
z = console.log, J = console.info, q = console.warn, Se = console.error, xe = console.group, Oe = console.groupCollapsed,
|
|
923
|
+
z = console.log, J = console.info, q = console.warn, Se = console.error, xe = console.group, Oe = console.groupCollapsed, je = console.groupEnd;
|
|
924
924
|
var e = {
|
|
925
925
|
configurable: !0,
|
|
926
926
|
enumerable: !0,
|
|
927
|
-
value:
|
|
927
|
+
value: we,
|
|
928
928
|
writable: !0
|
|
929
929
|
};
|
|
930
930
|
Object.defineProperties(console, {
|
|
@@ -968,7 +968,7 @@ function Qt() {
|
|
|
968
968
|
value: Oe
|
|
969
969
|
}),
|
|
970
970
|
groupEnd: I({}, e, {
|
|
971
|
-
value:
|
|
971
|
+
value: je
|
|
972
972
|
})
|
|
973
973
|
});
|
|
974
974
|
}
|
|
@@ -994,7 +994,7 @@ function Qt() {
|
|
|
994
994
|
var tt = typeof WeakMap == "function" ? WeakMap : Map;
|
|
995
995
|
G = new tt();
|
|
996
996
|
}
|
|
997
|
-
function
|
|
997
|
+
function Ce(e, t) {
|
|
998
998
|
if (!e || le)
|
|
999
999
|
return "";
|
|
1000
1000
|
{
|
|
@@ -1066,7 +1066,7 @@ function Qt() {
|
|
|
1066
1066
|
return typeof e == "function" && G.set(e, M), M;
|
|
1067
1067
|
}
|
|
1068
1068
|
function rt(e, t, n) {
|
|
1069
|
-
return
|
|
1069
|
+
return Ce(e, !1);
|
|
1070
1070
|
}
|
|
1071
1071
|
function nt(e) {
|
|
1072
1072
|
var t = e.prototype;
|
|
@@ -1076,7 +1076,7 @@ function Qt() {
|
|
|
1076
1076
|
if (e == null)
|
|
1077
1077
|
return "";
|
|
1078
1078
|
if (typeof e == "function")
|
|
1079
|
-
return
|
|
1079
|
+
return Ce(e, nt(e));
|
|
1080
1080
|
if (typeof e == "string")
|
|
1081
1081
|
return K(e);
|
|
1082
1082
|
switch (e) {
|
|
@@ -1091,7 +1091,7 @@ function Qt() {
|
|
|
1091
1091
|
return rt(e.render);
|
|
1092
1092
|
case R:
|
|
1093
1093
|
return Z(e.type, t, n);
|
|
1094
|
-
case
|
|
1094
|
+
case C: {
|
|
1095
1095
|
var a = e, f = a._payload, p = a._init;
|
|
1096
1096
|
try {
|
|
1097
1097
|
return Z(p(f), t, n);
|
|
@@ -1431,7 +1431,7 @@ function ee(r) {
|
|
|
1431
1431
|
const o = ye();
|
|
1432
1432
|
o.ROUTER_PARAMS ? o.ROUTER_PARAMS = { ...o.ROUTER_PARAMS, ...r } : o.ROUTER_PARAMS = { ...At, ...r };
|
|
1433
1433
|
}
|
|
1434
|
-
function
|
|
1434
|
+
function w() {
|
|
1435
1435
|
return ye().ROUTER_PARAMS || At;
|
|
1436
1436
|
}
|
|
1437
1437
|
function ge(r) {
|
|
@@ -1464,19 +1464,19 @@ var be;
|
|
|
1464
1464
|
ee({
|
|
1465
1465
|
id: 0,
|
|
1466
1466
|
tab: "",
|
|
1467
|
-
page: (m = localStorage.getItem("d")) != null && m.length ?
|
|
1468
|
-
module:
|
|
1467
|
+
page: (m = localStorage.getItem("d")) != null && m.length ? w().page : w().auth,
|
|
1468
|
+
module: w().module
|
|
1469
1469
|
});
|
|
1470
1470
|
return !0;
|
|
1471
1471
|
}
|
|
1472
1472
|
function i() {
|
|
1473
|
-
Q.id = 0, Q.tab = "", Q.page =
|
|
1473
|
+
Q.id = 0, Q.tab = "", Q.page = w().page, Q.module = w().module;
|
|
1474
1474
|
}
|
|
1475
1475
|
r.Reset = i;
|
|
1476
1476
|
function c({
|
|
1477
|
-
module: m =
|
|
1478
|
-
page: k =
|
|
1479
|
-
auth: B =
|
|
1477
|
+
module: m = w().module,
|
|
1478
|
+
page: k = w().page,
|
|
1479
|
+
auth: B = w().auth
|
|
1480
1480
|
}) {
|
|
1481
1481
|
ee({ page: k, module: m, auth: B }), o();
|
|
1482
1482
|
}
|
|
@@ -1484,7 +1484,7 @@ var be;
|
|
|
1484
1484
|
function v(m) {
|
|
1485
1485
|
let k = (W) => (ee({ page: W }), W);
|
|
1486
1486
|
const [B, $] = P.useState(
|
|
1487
|
-
|
|
1487
|
+
j() || m && k(m) || w().page
|
|
1488
1488
|
);
|
|
1489
1489
|
return ge({ page: (W) => {
|
|
1490
1490
|
$(W);
|
|
@@ -1493,42 +1493,42 @@ var be;
|
|
|
1493
1493
|
r.usePage = v;
|
|
1494
1494
|
function y(m, k = !0, B = {}) {
|
|
1495
1495
|
ee({ page: m, ...B }), sessionStorage.setItem(
|
|
1496
|
-
|
|
1497
|
-
ie.enCode(
|
|
1496
|
+
w().STORAGE,
|
|
1497
|
+
ie.enCode(w())
|
|
1498
1498
|
), k && te().page(m);
|
|
1499
1499
|
}
|
|
1500
1500
|
r.setPage = y;
|
|
1501
|
-
function
|
|
1502
|
-
return
|
|
1501
|
+
function j() {
|
|
1502
|
+
return w().page;
|
|
1503
1503
|
}
|
|
1504
|
-
r.getPage =
|
|
1504
|
+
r.getPage = j;
|
|
1505
1505
|
function _(m) {
|
|
1506
|
-
return
|
|
1506
|
+
return w().page === m;
|
|
1507
1507
|
}
|
|
1508
1508
|
r.isPage = _;
|
|
1509
1509
|
function h(m, k) {
|
|
1510
1510
|
const [B, $] = P.useState(
|
|
1511
|
-
d() || m ||
|
|
1511
|
+
d() || m || w().module
|
|
1512
1512
|
);
|
|
1513
1513
|
return ge({ module: $ }), B;
|
|
1514
1514
|
}
|
|
1515
1515
|
r.useModule = h;
|
|
1516
1516
|
function E(m, k = !0) {
|
|
1517
1517
|
ee({ module: m }), sessionStorage.setItem(
|
|
1518
|
-
|
|
1519
|
-
ie.enCode(
|
|
1518
|
+
w().STORAGE,
|
|
1519
|
+
ie.enCode(w())
|
|
1520
1520
|
), k && te().module(m);
|
|
1521
1521
|
}
|
|
1522
1522
|
r.setModule = E;
|
|
1523
1523
|
function d() {
|
|
1524
|
-
return
|
|
1524
|
+
return w().module || "";
|
|
1525
1525
|
}
|
|
1526
1526
|
r.getModule = d;
|
|
1527
1527
|
function R(m) {
|
|
1528
|
-
return
|
|
1528
|
+
return w().module === m;
|
|
1529
1529
|
}
|
|
1530
1530
|
r.isModule = R;
|
|
1531
|
-
function
|
|
1531
|
+
function C(m, k) {
|
|
1532
1532
|
if (typeof m != "function") {
|
|
1533
1533
|
const [B, $] = P.useState(!k), [W, oe] = P.useState(m || ne());
|
|
1534
1534
|
return ge({ tabs: oe }), k && P.useEffect(() => {
|
|
@@ -1537,20 +1537,20 @@ var be;
|
|
|
1537
1537
|
} else
|
|
1538
1538
|
ge({ tabs: m });
|
|
1539
1539
|
}
|
|
1540
|
-
r.useTabs =
|
|
1540
|
+
r.useTabs = C;
|
|
1541
1541
|
async function N(m, k = !0) {
|
|
1542
1542
|
ee({ tab: m }), sessionStorage.setItem(
|
|
1543
|
-
|
|
1544
|
-
ie.enCode(
|
|
1543
|
+
w().STORAGE,
|
|
1544
|
+
ie.enCode(w())
|
|
1545
1545
|
), k && (te().tabs && te().tabs(m));
|
|
1546
1546
|
}
|
|
1547
1547
|
r.setTabs = N;
|
|
1548
1548
|
function ne() {
|
|
1549
|
-
return
|
|
1549
|
+
return w().tab;
|
|
1550
1550
|
}
|
|
1551
1551
|
r.getTabs = ne;
|
|
1552
1552
|
function _e(m) {
|
|
1553
|
-
return
|
|
1553
|
+
return w().tab === m;
|
|
1554
1554
|
}
|
|
1555
1555
|
r.isTabs = _e;
|
|
1556
1556
|
function Re(m) {
|
|
@@ -1568,25 +1568,25 @@ var be;
|
|
|
1568
1568
|
r.subId = F;
|
|
1569
1569
|
async function S(m, k = !0) {
|
|
1570
1570
|
ee({ id: m }), sessionStorage.setItem(
|
|
1571
|
-
|
|
1572
|
-
ie.enCode(
|
|
1571
|
+
w().STORAGE,
|
|
1572
|
+
ie.enCode(w())
|
|
1573
1573
|
), k && te().id(m);
|
|
1574
1574
|
}
|
|
1575
1575
|
r.setId = S;
|
|
1576
1576
|
function me() {
|
|
1577
|
-
return
|
|
1577
|
+
return w().id;
|
|
1578
1578
|
}
|
|
1579
1579
|
r.getId = me;
|
|
1580
1580
|
function ke(m) {
|
|
1581
|
-
return Number(
|
|
1581
|
+
return Number(w().id) === m;
|
|
1582
1582
|
}
|
|
1583
1583
|
r.isId = ke;
|
|
1584
1584
|
async function Ee(m) {
|
|
1585
1585
|
var k, B, $, W, oe, ae, T, I;
|
|
1586
1586
|
const { page: D, module: z, tab: J, id: q } = m;
|
|
1587
1587
|
D !== void 0 && (Q.page = D), z !== void 0 && (Q.module = z), J !== void 0 && (Q.tab = J), q !== void 0 && (Q.id = q), ee({ ...Q }), q !== void 0 && ((B = (k = te()).id) == null || B.call(k, q)), J !== void 0 && ((W = ($ = te()).tabs) == null || W.call($, J)), z !== void 0 && ((ae = (oe = te()).module) == null || ae.call(oe, z)), D !== void 0 && ((I = (T = te()).page) == null || I.call(T, D)), sessionStorage.setItem(
|
|
1588
|
-
|
|
1589
|
-
ie.enCode(
|
|
1588
|
+
w().STORAGE,
|
|
1589
|
+
ie.enCode(w())
|
|
1590
1590
|
);
|
|
1591
1591
|
}
|
|
1592
1592
|
r.navigate = Ee;
|
|
@@ -1701,22 +1701,22 @@ const or = ({ children: r, title: o, isOverlay: i = !0 }) => {
|
|
|
1701
1701
|
children: o,
|
|
1702
1702
|
className: i,
|
|
1703
1703
|
page: c,
|
|
1704
|
-
|
|
1704
|
+
onPageChange: v,
|
|
1705
1705
|
direction: y = "row"
|
|
1706
1706
|
}) => {
|
|
1707
|
-
const [
|
|
1707
|
+
const [j, _] = P.useState(null), [h, E] = P.useState(
|
|
1708
1708
|
c ? Ft(r || [], c) : 0
|
|
1709
1709
|
);
|
|
1710
1710
|
return Yt.onClose = () => {
|
|
1711
1711
|
_(null), E(c ? Ft(r || [], c) : 0);
|
|
1712
|
-
},
|
|
1712
|
+
}, jt(() => {
|
|
1713
1713
|
document.addEventListener("blur", () => {
|
|
1714
1714
|
document.querySelector("footer").style.display = "flex";
|
|
1715
1715
|
}), document.addEventListener("focus", () => {
|
|
1716
1716
|
document.querySelector("footer").style.display = "none";
|
|
1717
1717
|
});
|
|
1718
1718
|
}, []), /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
1719
|
-
|
|
1719
|
+
j,
|
|
1720
1720
|
/* @__PURE__ */ l.jsxs(
|
|
1721
1721
|
"footer",
|
|
1722
1722
|
{
|
|
@@ -1785,23 +1785,23 @@ V.users = {
|
|
|
1785
1785
|
};
|
|
1786
1786
|
const lr = () => {
|
|
1787
1787
|
if (location.hostname === "localhost") {
|
|
1788
|
-
let [r, o] = P.useState(!1), [i, c] = P.useState(!1), [v, y] = P.useState("dark"), [
|
|
1788
|
+
let [r, o] = P.useState(!1), [i, c] = P.useState(!1), [v, y] = P.useState("dark"), [j, _] = P.useState(!1), [h, E] = P.useState(!1);
|
|
1789
1789
|
he.is = !0, he.MainButton.set = o, he.BackButton.set = c, P.useEffect(() => {
|
|
1790
1790
|
V[v]["--tg-theme-bg-color-alpha"] = V[v]["--tg-theme-bg-color"] + "b3", V[v]["--tg-theme-secondary-bg-color-alpha"] = V[v]["--tg-theme-secondary-bg-color"] + "d3";
|
|
1791
|
-
for (let
|
|
1791
|
+
for (let C in V[v])
|
|
1792
1792
|
document.documentElement.style.setProperty(
|
|
1793
|
-
|
|
1794
|
-
V[v][
|
|
1793
|
+
C,
|
|
1794
|
+
V[v][C]
|
|
1795
1795
|
);
|
|
1796
1796
|
re.WebApp.safeAreaInset.bottom === 0 && document.documentElement.style.setProperty(
|
|
1797
1797
|
"--tg-safe-area-inset-bottom",
|
|
1798
1798
|
"16px"
|
|
1799
1799
|
);
|
|
1800
1800
|
}, []);
|
|
1801
|
-
let d = (
|
|
1802
|
-
for (let N in V[
|
|
1803
|
-
document.documentElement.style.setProperty(N, V[
|
|
1804
|
-
y(
|
|
1801
|
+
let d = (C) => {
|
|
1802
|
+
for (let N in V[C])
|
|
1803
|
+
document.documentElement.style.setProperty(N, V[C][N]);
|
|
1804
|
+
y(C), _(!1);
|
|
1805
1805
|
}, R = () => {
|
|
1806
1806
|
_(!1), E(!0);
|
|
1807
1807
|
};
|
|
@@ -1811,14 +1811,14 @@ const lr = () => {
|
|
|
1811
1811
|
"div",
|
|
1812
1812
|
{
|
|
1813
1813
|
onClick: () => {
|
|
1814
|
-
var
|
|
1815
|
-
i.page === void 0 ? (
|
|
1814
|
+
var C;
|
|
1815
|
+
i.page === void 0 ? (C = i.callback) == null || C.call(i) : be.setPage(i.page);
|
|
1816
1816
|
},
|
|
1817
1817
|
className: "b",
|
|
1818
1818
|
children: "Назад"
|
|
1819
1819
|
}
|
|
1820
1820
|
),
|
|
1821
|
-
/* @__PURE__ */ l.jsx("div", { className: "o", onClick: () => _(!
|
|
1821
|
+
/* @__PURE__ */ l.jsx("div", { className: "o", onClick: () => _(!j), children: "Меню" })
|
|
1822
1822
|
] }),
|
|
1823
1823
|
/* @__PURE__ */ l.jsx(Xe.Init, {}),
|
|
1824
1824
|
r && /* @__PURE__ */ l.jsx("div", { className: "mb", children: /* @__PURE__ */ l.jsx(
|
|
@@ -1830,7 +1830,7 @@ const lr = () => {
|
|
|
1830
1830
|
children: r.text
|
|
1831
1831
|
}
|
|
1832
1832
|
) }),
|
|
1833
|
-
|
|
1833
|
+
j ? /* @__PURE__ */ l.jsxs("div", { className: "tm", children: [
|
|
1834
1834
|
/* @__PURE__ */ l.jsxs("ul", { children: [
|
|
1835
1835
|
/* @__PURE__ */ l.jsx("li", { children: /* @__PURE__ */ l.jsx("button", { onClick: R, children: "Authorization" }) }),
|
|
1836
1836
|
/* @__PURE__ */ l.jsx("li", {})
|
|
@@ -1862,7 +1862,7 @@ const lr = () => {
|
|
|
1862
1862
|
) })
|
|
1863
1863
|
] })
|
|
1864
1864
|
] }),
|
|
1865
|
-
/* @__PURE__ */ l.jsx("li", { children: /* @__PURE__ */ l.jsx("button", { onClick: () => _(!
|
|
1865
|
+
/* @__PURE__ */ l.jsx("li", { children: /* @__PURE__ */ l.jsx("button", { onClick: () => _(!j), children: "Closed" }) })
|
|
1866
1866
|
] })
|
|
1867
1867
|
] }) : "",
|
|
1868
1868
|
h ? /* @__PURE__ */ l.jsx(cr, { setAuthorization: E }) : ""
|
|
@@ -1889,7 +1889,7 @@ var re;
|
|
|
1889
1889
|
}, r.Notice = (o, i, c) => {
|
|
1890
1890
|
var v, y;
|
|
1891
1891
|
i !== void 0 ? (Xe.Send({ type: o, text: i, thema: c }), (v = r.WebApp.HapticFeedback) == null || v.notificationOccurred(o)) : (Xe.Send(o), (y = r.WebApp.HapticFeedback) == null || y.notificationOccurred(o.type));
|
|
1892
|
-
}, r.Header = lr, r.Footer = ur, r.
|
|
1892
|
+
}, r.Header = lr, r.Footer = ur, r.BottomSheet = or, r.toggleBottomSheet = qe, r.Modal = Ct, r.MainButton = {
|
|
1893
1893
|
callback: [],
|
|
1894
1894
|
set: (o) => {
|
|
1895
1895
|
he.is ? he.MainButton.set(o) : (r.WebApp.MainButton.callback.forEach((i) => {
|
|
@@ -1933,18 +1933,18 @@ const cr = ({ setAuthorization: r }) => {
|
|
|
1933
1933
|
}, {
|
|
1934
1934
|
Header: dr,
|
|
1935
1935
|
Footer: pr,
|
|
1936
|
-
|
|
1936
|
+
toggleBottomSheet: vr,
|
|
1937
1937
|
Modal: hr,
|
|
1938
1938
|
MainButton: yr,
|
|
1939
1939
|
BackButton: mr,
|
|
1940
|
-
|
|
1940
|
+
BottomSheet: gr,
|
|
1941
1941
|
WebApp: br,
|
|
1942
1942
|
getUser: _r,
|
|
1943
1943
|
Notice: Rr
|
|
1944
1944
|
} = re;
|
|
1945
1945
|
export {
|
|
1946
1946
|
mr as BackButton,
|
|
1947
|
-
gr as
|
|
1947
|
+
gr as BottomSheet,
|
|
1948
1948
|
pr as Footer,
|
|
1949
1949
|
dr as Header,
|
|
1950
1950
|
yr as MainButton,
|
|
@@ -1953,5 +1953,5 @@ export {
|
|
|
1953
1953
|
br as WebApp,
|
|
1954
1954
|
re as default,
|
|
1955
1955
|
_r as getUser,
|
|
1956
|
-
vr as
|
|
1956
|
+
vr as toggleBottomSheet
|
|
1957
1957
|
};
|
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 At;function zt(){if(At)return xe;At=1;var r=w,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,h=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,m={key:!0,ref:!0,__self:!0,__source:!0};function A(x,g,
|
|
10
|
+
*/var At;function zt(){if(At)return xe;At=1;var r=w,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,h=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,m={key:!0,ref:!0,__self:!0,__source:!0};function A(x,g,S){var d,k={},P=null,W=null;S!==void 0&&(P=""+S),g.key!==void 0&&(P=""+g.key),g.ref!==void 0&&(W=g.ref);for(d in g)u.call(g,d)&&!m.hasOwnProperty(d)&&(k[d]=g[d]);if(x&&x.defaultProps)for(d in g=x.defaultProps,g)k[d]===void 0&&(k[d]=g[d]);return{$$typeof:n,type:x,key:P,ref:W,props:k,_owner:h.current}}return xe.Fragment=i,xe.jsx=A,xe.jsxs=A,xe}var ke={};/**
|
|
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 Pt;function Yt(){return Pt||(Pt=1,process.env.NODE_ENV!=="production"&&function(){var r=w,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),x=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),
|
|
18
|
+
*/var Pt;function Yt(){return Pt||(Pt=1,process.env.NODE_ENV!=="production"&&function(){var r=w,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),x=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),W=Symbol.for("react.offscreen"),ne=Symbol.iterator,Se="@@iterator";function Ee(e){if(e===null||typeof e!="object")return null;var t=ne&&e[ne]||e[Se];return typeof t=="function"?t:null}var F=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(e){{for(var t=arguments.length,o=new Array(t>1?t-1:0),a=1;a<t;a++)o[a-1]=arguments[a];ye("error",e,o)}}function ye(e,t,o){{var a=F.ReactDebugCurrentFrame,f=a.getStackAddendum();f!==""&&(t+="%s",o=o.concat([f]));var p=o.map(function(l){return String(l)});p.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,p)}}var Re=!1,Oe=!1,b=!1,_=!1,I=!1,D;D=Symbol.for("react.module.reference");function U(e){return!!(typeof e=="string"||typeof e=="function"||e===u||e===m||I||e===h||e===S||e===d||_||e===W||Re||Oe||b||typeof e=="object"&&e!==null&&(e.$$typeof===P||e.$$typeof===k||e.$$typeof===A||e.$$typeof===x||e.$$typeof===g||e.$$typeof===D||e.getModuleId!==void 0))}function ae(e,t,o){var a=e.displayName;if(a)return a;var f=t.displayName||t.name||"";return f!==""?o+"("+f+")":o}function ie(e){return e.displayName||"Context"}function B(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 u:return"Fragment";case i:return"Portal";case m:return"Profiler";case h:return"StrictMode";case S:return"Suspense";case d:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case x:var t=e;return ie(t)+".Consumer";case A:var o=e;return ie(o._context)+".Provider";case g:return ae(e,e.render,"ForwardRef");case k:var a=e.displayName||null;return a!==null?a:B(e.type)||"Memo";case P:{var f=e,p=f._payload,l=f._init;try{return B(l(p))}catch{return null}}}return null}var M=Object.assign,$=0,H,q,K,je,Ce,Ae,Pe;function Te(){}Te.__reactDisabledLog=!0;function rt(){{if($===0){H=console.log,q=console.info,K=console.warn,je=console.error,Ce=console.group,Ae=console.groupCollapsed,Pe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Te,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}$++}}function ot(){{if($--,$===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},e,{value:H}),info:M({},e,{value:q}),warn:M({},e,{value:K}),error:M({},e,{value:je}),group:M({},e,{value:Ce}),groupCollapsed:M({},e,{value:Ae}),groupEnd:M({},e,{value:Pe})})}$<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ce=F.ReactCurrentDispatcher,ue;function Q(e,t,o){{if(ue===void 0)try{throw Error()}catch(f){var a=f.stack.trim().match(/\n( *(at )?)/);ue=a&&a[1]||""}return`
|
|
19
19
|
`+ue+e}}var fe=!1,ee;{var nt=typeof WeakMap=="function"?WeakMap:Map;ee=new nt}function Be(e,t){if(!e||fe)return"";{var o=ee.get(e);if(o!==void 0)return o}var a;fe=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=ce.current,ce.current=null,rt();try{if(t){var l=function(){throw Error()};if(Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(O){a=O}Reflect.construct(e,[],l)}else{try{l.call()}catch(O){a=O}e.call(l.prototype)}}else{try{throw Error()}catch(O){a=O}e()}}catch(O){if(O&&a&&typeof O.stack=="string"){for(var s=O.stack.split(`
|
|
20
20
|
`),R=a.stack.split(`
|
|
21
21
|
`),v=s.length-1,y=R.length-1;v>=1&&y>=0&&s[v]!==R[y];)y--;for(;v>=1&&y>=0;v--,y--)if(s[v]!==R[y]){if(v!==1||y!==1)do if(v--,y--,y<0||s[v]!==R[y]){var T=`
|
|
22
|
-
`+s[v].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&ee.set(e,T),T}while(v>=1&&y>=0);break}}}finally{fe=!1,ce.current=p,ot(),Error.prepareStackTrace=f}var z=e?e.displayName||e.name:"",N=z?Q(z):"";return typeof e=="function"&&ee.set(e,N),N}function at(e,t,o){return Be(e,!1)}function it(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function te(e,t,o){if(e==null)return"";if(typeof e=="function")return Be(e,it(e));if(typeof e=="string")return Q(e);switch(e){case
|
|
22
|
+
`+s[v].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&ee.set(e,T),T}while(v>=1&&y>=0);break}}}finally{fe=!1,ce.current=p,ot(),Error.prepareStackTrace=f}var z=e?e.displayName||e.name:"",N=z?Q(z):"";return typeof e=="function"&&ee.set(e,N),N}function at(e,t,o){return Be(e,!1)}function it(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function te(e,t,o){if(e==null)return"";if(typeof e=="function")return Be(e,it(e));if(typeof e=="string")return Q(e);switch(e){case S:return Q("Suspense");case d:return Q("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case g:return at(e.render);case k:return te(e.type,t,o);case P:{var a=e,f=a._payload,p=a._init;try{return te(p(f),t,o)}catch{}}}return""}var V=Object.prototype.hasOwnProperty,Ie={},Me=F.ReactDebugCurrentFrame;function re(e){if(e){var t=e._owner,o=te(e.type,e._source,t?t.type:null);Me.setExtraStackFrame(o)}else Me.setExtraStackFrame(null)}function st(e,t,o,a,f){{var p=Function.call.bind(V);for(var l in e)if(p(e,l)){var s=void 0;try{if(typeof e[l]!="function"){var R=Error((a||"React class")+": "+o+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw R.name="Invariant Violation",R}s=e[l](t,l,a,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(v){s=v}s&&!(s instanceof Error)&&(re(f),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).",a||"React class",o,l,typeof s),re(null)),s instanceof Error&&!(s.message in Ie)&&(Ie[s.message]=!0,re(f),E("Failed %s type: %s",o,s.message),re(null))}}}var lt=Array.isArray;function de(e){return lt(e)}function ct(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,o=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function ut(e){try{return De(e),!1}catch{return!0}}function De(e){return""+e}function $e(e){if(ut(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ct(e)),De(e)}var Fe=F.ReactCurrentOwner,ft={key:!0,ref:!0,__self:!0,__source:!0},Ne,We;function dt(e){if(V.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function pt(e){if(V.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function ht(e,t){typeof e.ref=="string"&&Fe.current}function gt(e,t){{var o=function(){Ne||(Ne=!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)",t))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function mt(e,t){{var o=function(){We||(We=!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)",t))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var bt=function(e,t,o,a,f,p,l){var s={$$typeof:n,type:e,key:t,ref:o,props:l,_owner:p};return s._store={},Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:f}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function vt(e,t,o,a,f){{var p,l={},s=null,R=null;o!==void 0&&($e(o),s=""+o),pt(t)&&($e(t.key),s=""+t.key),dt(t)&&(R=t.ref,ht(t,f));for(p in t)V.call(t,p)&&!ft.hasOwnProperty(p)&&(l[p]=t[p]);if(e&&e.defaultProps){var v=e.defaultProps;for(p in v)l[p]===void 0&&(l[p]=v[p])}if(s||R){var y=typeof e=="function"?e.displayName||e.name||"Unknown":e;s&>(l,y),R&&mt(l,y)}return bt(e,s,R,f,a,Fe.current,l)}}var pe=F.ReactCurrentOwner,Ue=F.ReactDebugCurrentFrame;function L(e){if(e){var t=e._owner,o=te(e.type,e._source,t?t.type:null);Ue.setExtraStackFrame(o)}else Ue.setExtraStackFrame(null)}var he;he=!1;function ge(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function Le(){{if(pe.current){var e=B(pe.current.type);if(e)return`
|
|
23
23
|
|
|
24
24
|
Check the render method of \``+e+"`."}return""}}function yt(e){return""}var ze={};function xt(e){{var t=Le();if(!t){var o=typeof e=="string"?e:e.displayName||e.name;o&&(t=`
|
|
25
25
|
|
|
26
|
-
Check the top-level render call using <`+o+">.")}return t}}function Ye(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=xt(t);if(ze[o])return;ze[o]=!0;var a="";e&&e._owner&&e._owner!==pe.current&&(a=" It was passed a child from "+B(e._owner.type)+"."),L(e),
|
|
26
|
+
Check the top-level render call using <`+o+">.")}return t}}function Ye(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=xt(t);if(ze[o])return;ze[o]=!0;var a="";e&&e._owner&&e._owner!==pe.current&&(a=" It was passed a child from "+B(e._owner.type)+"."),L(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,a),L(null)}}function Ve(e,t){{if(typeof e!="object")return;if(de(e))for(var o=0;o<e.length;o++){var a=e[o];ge(a)&&Ye(a,t)}else if(ge(e))e._store&&(e._store.validated=!0);else if(e){var f=Ee(e);if(typeof f=="function"&&f!==e.entries)for(var p=f.call(e),l;!(l=p.next()).done;)ge(l.value)&&Ye(l.value,t)}}}function kt(e){{var t=e.type;if(t==null||typeof t=="string")return;var o;if(typeof t=="function")o=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===g||t.$$typeof===k))o=t.propTypes;else return;if(o){var a=B(t);st(o,e.props,"prop",a,e)}else if(t.PropTypes!==void 0&&!he){he=!0;var f=B(t);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",f||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function _t(e){{for(var t=Object.keys(e.props),o=0;o<t.length;o++){var a=t[o];if(a!=="children"&&a!=="key"){L(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),L(null);break}}e.ref!==null&&(L(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),L(null))}}var Je={};function He(e,t,o,a,f,p){{var l=U(e);if(!l){var s="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(s+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var R=yt();R?s+=R:s+=Le();var v;e===null?v="null":de(e)?v="array":e!==void 0&&e.$$typeof===n?(v="<"+(B(e.type)||"Unknown")+" />",s=" Did you accidentally export a JSX literal instead of a component?"):v=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",v,s)}var y=vt(e,t,o,f,p);if(y==null)return y;if(l){var T=t.children;if(T!==void 0)if(a)if(de(T)){for(var z=0;z<T.length;z++)Ve(T[z],e);Object.freeze&&Object.freeze(T)}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 Ve(T,e)}if(V.call(t,"key")){var N=B(e),O=Object.keys(t).filter(function(jt){return jt!=="key"}),me=O.length>0?"{key: someKey, "+O.join(": ..., ")+": ...}":"{key: someKey}";if(!Je[N+me]){var Ot=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} />`,me,N,Ot,N),Je[N+me]=!0}}return e===u?_t(y):kt(y),y}}function wt(e,t,o){return He(e,t,o,!0)}function
|
|
31
|
+
<%s key={someKey} {...props} />`,me,N,Ot,N),Je[N+me]=!0}}return e===u?_t(y):kt(y),y}}function wt(e,t,o){return He(e,t,o,!0)}function St(e,t,o){return He(e,t,o,!1)}var Et=St,Rt=wt;ke.Fragment=u,ke.jsx=Et,ke.jsxs=Rt}()),ke}process.env.NODE_ENV==="production"?Qe.exports=zt():Qe.exports=Yt();var c=Qe.exports;let J={};var et;(r=>{function n({children:x}){const[g,S]=w.useState(!1),[d,k]=w.useState(!1);if(J.onClose=()=>{j.default.BackButton.set(!1),k(!0),setTimeout(()=>{S(!1),k(!1)},300)},w.useEffect(()=>{g?J.onClose():(j.default.BackButton.set({callback:()=>J.onClose()}),S(!0))},[]),!!g)return c.jsx("div",{className:`modal-overlay ${d?"closing":""}`,children:c.jsx("div",{className:`modal-popup ${d?"closing":""}`,children:c.jsx("div",{children:x})})})}r.Content=n;function i({import_modules:x}){let[g,S]=w.useState([]);return J.x=d=>{S(d?g.filter(k=>k.key!==d):[])},w.useEffect(()=>{x&&(J.i=x)},[]),J.add=(d,k=Date.now())=>{S([...g,{key:k,item:d}])},c.jsx(c.Fragment,{children:g.map(d=>d.item)})}r.Init=i;function u(x,g){J.add(c.jsx(n,{children:x},String(Date.now())),g)}r.Add=u;function h(x){return{Open:d=>{r.Add(c.jsx(x,{...d},new Date().getTime()))}}}r.Create=h;function m(){J.onClose()}r.Close=m;function A(x,g,S){J.i&&J.i(`${x}/modals/${g}.tsx`).then(d=>{d.default.Open(S)})}r.Open=A})(et||(et={}));function Tt(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}const Bt={key:"Y0zt37HgOx-BY7SQjYVmrqhPkO41Ii2Jcb9yydUDPf6",iterations:7,saltLength:16};function It(r){const n=Tt();n.CRYPTO_PARAMS?n.CRYPTO_PARAMS={...n.CRYPTO_PARAMS,...r}:n.CRYPTO_PARAMS={...Bt,...r}}function qe(){return Tt().CRYPTO_PARAMS||Bt}const Ke=r=>{let n=0;for(let u=0;u<r.length;u++){const h=r.charCodeAt(u);n=(n<<5)-n+h,n=n&n}n=Math.abs(n);let i="";for(let u=0;u<64;u++){const h=(n^u*197)&255;i+=h.toString(16).padStart(2,"0")}return i},Mt=(r,n)=>{let i=r+n;for(let h=0;h<qe().iterations;h++)i=Ke(i);const u=new Uint8Array(32);for(let h=0;h<32;h++)u[h]=parseInt(i.substring(h*2,h*2+2),16);return u},Dt=(r,n)=>{const i=new Uint8Array(r.length),u=new Uint8Array(r.length);let h=0;for(let m=0;m<r.length;m++){const A=m%n.length;h=n[A]+m+h&255,u[m]=h}for(let m=0;m<r.length;m++)i[m]=r[m]^u[m];return i},Vt=r=>new TextEncoder().encode(r),Jt=r=>new TextDecoder().decode(r),Ht=r=>{let n="";for(let i=0;i<r.length;i+=8192){const u=r.slice(i,Math.min(i+8192,r.length));n+=String.fromCharCode.apply(null,Array.from(u))}return btoa(n)},qt=r=>{const n=atob(r),i=new Uint8Array(n.length);for(let u=0;u<n.length;u++)i[u]=n.charCodeAt(u);return i},Kt=r=>{try{const n=Ke(Date.now().toString()+Math.random()).substring(0,qe().saltLength*2),i=Ke(r+n).substring(0,8),u=Mt(qe().key,n),h=Vt(r),m=Dt(h,u),A=Ht(m);return`${n}.${A}.${i}`}catch{throw new Error("Не удалось зашифровать данные")}},Gt=r=>{try{const n=r.split(".");if(n.length!==3)throw new Error("Неверный формат зашифрованных данных");const i=n[0],u=n[1],h=n[2],m=Mt(qe().key,i),A=qt(u),x=Dt(A,m),g=Jt(x);if(Ke(g+i).substring(0,8)!==h)throw new Error("Контрольная сумма не совпадает");return g}catch{return""}};var oe;(r=>{r.setKey=n=>{It({key:n})},r.enCode=n=>{try{const i=JSON.stringify(n);return Kt(i)}catch{throw new Error("Не удалось зашифровать объект")}},r.deCode=n=>{try{if(!n||n.length<10)return!1;const i=Gt(n);return i&&JSON.parse(i)||!1}catch{return!1}},r.setSecurityParams=(n,i)=>{It({iterations:n,saltLength:i})}})(oe||(oe={}));var _e={};/**
|
|
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 $t;function Zt(){if($t)return _e;$t=1;var r=w,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,h=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,m={key:!0,ref:!0,__self:!0,__source:!0};function A(x,g,
|
|
39
|
+
*/var $t;function Zt(){if($t)return _e;$t=1;var r=w,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,h=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,m={key:!0,ref:!0,__self:!0,__source:!0};function A(x,g,S){var d,k={},P=null,W=null;S!==void 0&&(P=""+S),g.key!==void 0&&(P=""+g.key),g.ref!==void 0&&(W=g.ref);for(d in g)u.call(g,d)&&!m.hasOwnProperty(d)&&(k[d]=g[d]);if(x&&x.defaultProps)for(d in g=x.defaultProps,g)k[d]===void 0&&(k[d]=g[d]);return{$$typeof:n,type:x,key:P,ref:W,props:k,_owner:h.current}}return _e.Fragment=i,_e.jsx=A,_e.jsxs=A,_e}var Ge={};/**
|
|
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 Ft;function Xt(){return Ft||(Ft=1,process.env.NODE_ENV!=="production"&&function(){var r=w,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),x=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),
|
|
47
|
+
*/var Ft;function Xt(){return Ft||(Ft=1,process.env.NODE_ENV!=="production"&&function(){var r=w,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),x=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),W=Symbol.for("react.offscreen"),ne=Symbol.iterator,Se="@@iterator";function Ee(e){if(e===null||typeof e!="object")return null;var t=ne&&e[ne]||e[Se];return typeof t=="function"?t:null}var F=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(e){{for(var t=arguments.length,o=new Array(t>1?t-1:0),a=1;a<t;a++)o[a-1]=arguments[a];ye("error",e,o)}}function ye(e,t,o){{var a=F.ReactDebugCurrentFrame,f=a.getStackAddendum();f!==""&&(t+="%s",o=o.concat([f]));var p=o.map(function(l){return String(l)});p.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,p)}}var Re=!1,Oe=!1,b=!1,_=!1,I=!1,D;D=Symbol.for("react.module.reference");function U(e){return!!(typeof e=="string"||typeof e=="function"||e===u||e===m||I||e===h||e===S||e===d||_||e===W||Re||Oe||b||typeof e=="object"&&e!==null&&(e.$$typeof===P||e.$$typeof===k||e.$$typeof===A||e.$$typeof===x||e.$$typeof===g||e.$$typeof===D||e.getModuleId!==void 0))}function ae(e,t,o){var a=e.displayName;if(a)return a;var f=t.displayName||t.name||"";return f!==""?o+"("+f+")":o}function ie(e){return e.displayName||"Context"}function B(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 u:return"Fragment";case i:return"Portal";case m:return"Profiler";case h:return"StrictMode";case S:return"Suspense";case d:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case x:var t=e;return ie(t)+".Consumer";case A:var o=e;return ie(o._context)+".Provider";case g:return ae(e,e.render,"ForwardRef");case k:var a=e.displayName||null;return a!==null?a:B(e.type)||"Memo";case P:{var f=e,p=f._payload,l=f._init;try{return B(l(p))}catch{return null}}}return null}var M=Object.assign,$=0,H,q,K,je,Ce,Ae,Pe;function Te(){}Te.__reactDisabledLog=!0;function rt(){{if($===0){H=console.log,q=console.info,K=console.warn,je=console.error,Ce=console.group,Ae=console.groupCollapsed,Pe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Te,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}$++}}function ot(){{if($--,$===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},e,{value:H}),info:M({},e,{value:q}),warn:M({},e,{value:K}),error:M({},e,{value:je}),group:M({},e,{value:Ce}),groupCollapsed:M({},e,{value:Ae}),groupEnd:M({},e,{value:Pe})})}$<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ce=F.ReactCurrentDispatcher,ue;function Q(e,t,o){{if(ue===void 0)try{throw Error()}catch(f){var a=f.stack.trim().match(/\n( *(at )?)/);ue=a&&a[1]||""}return`
|
|
48
48
|
`+ue+e}}var fe=!1,ee;{var nt=typeof WeakMap=="function"?WeakMap:Map;ee=new nt}function Be(e,t){if(!e||fe)return"";{var o=ee.get(e);if(o!==void 0)return o}var a;fe=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=ce.current,ce.current=null,rt();try{if(t){var l=function(){throw Error()};if(Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(O){a=O}Reflect.construct(e,[],l)}else{try{l.call()}catch(O){a=O}e.call(l.prototype)}}else{try{throw Error()}catch(O){a=O}e()}}catch(O){if(O&&a&&typeof O.stack=="string"){for(var s=O.stack.split(`
|
|
49
49
|
`),R=a.stack.split(`
|
|
50
50
|
`),v=s.length-1,y=R.length-1;v>=1&&y>=0&&s[v]!==R[y];)y--;for(;v>=1&&y>=0;v--,y--)if(s[v]!==R[y]){if(v!==1||y!==1)do if(v--,y--,y<0||s[v]!==R[y]){var T=`
|
|
51
|
-
`+s[v].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&ee.set(e,T),T}while(v>=1&&y>=0);break}}}finally{fe=!1,ce.current=p,ot(),Error.prepareStackTrace=f}var z=e?e.displayName||e.name:"",N=z?Q(z):"";return typeof e=="function"&&ee.set(e,N),N}function at(e,t,o){return Be(e,!1)}function it(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function te(e,t,o){if(e==null)return"";if(typeof e=="function")return Be(e,it(e));if(typeof e=="string")return Q(e);switch(e){case
|
|
51
|
+
`+s[v].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&ee.set(e,T),T}while(v>=1&&y>=0);break}}}finally{fe=!1,ce.current=p,ot(),Error.prepareStackTrace=f}var z=e?e.displayName||e.name:"",N=z?Q(z):"";return typeof e=="function"&&ee.set(e,N),N}function at(e,t,o){return Be(e,!1)}function it(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function te(e,t,o){if(e==null)return"";if(typeof e=="function")return Be(e,it(e));if(typeof e=="string")return Q(e);switch(e){case S:return Q("Suspense");case d:return Q("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case g:return at(e.render);case k:return te(e.type,t,o);case P:{var a=e,f=a._payload,p=a._init;try{return te(p(f),t,o)}catch{}}}return""}var V=Object.prototype.hasOwnProperty,Ie={},Me=F.ReactDebugCurrentFrame;function re(e){if(e){var t=e._owner,o=te(e.type,e._source,t?t.type:null);Me.setExtraStackFrame(o)}else Me.setExtraStackFrame(null)}function st(e,t,o,a,f){{var p=Function.call.bind(V);for(var l in e)if(p(e,l)){var s=void 0;try{if(typeof e[l]!="function"){var R=Error((a||"React class")+": "+o+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw R.name="Invariant Violation",R}s=e[l](t,l,a,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(v){s=v}s&&!(s instanceof Error)&&(re(f),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).",a||"React class",o,l,typeof s),re(null)),s instanceof Error&&!(s.message in Ie)&&(Ie[s.message]=!0,re(f),E("Failed %s type: %s",o,s.message),re(null))}}}var lt=Array.isArray;function de(e){return lt(e)}function ct(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,o=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function ut(e){try{return De(e),!1}catch{return!0}}function De(e){return""+e}function $e(e){if(ut(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ct(e)),De(e)}var Fe=F.ReactCurrentOwner,ft={key:!0,ref:!0,__self:!0,__source:!0},Ne,We;function dt(e){if(V.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function pt(e){if(V.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function ht(e,t){typeof e.ref=="string"&&Fe.current}function gt(e,t){{var o=function(){Ne||(Ne=!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)",t))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function mt(e,t){{var o=function(){We||(We=!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)",t))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var bt=function(e,t,o,a,f,p,l){var s={$$typeof:n,type:e,key:t,ref:o,props:l,_owner:p};return s._store={},Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:f}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function vt(e,t,o,a,f){{var p,l={},s=null,R=null;o!==void 0&&($e(o),s=""+o),pt(t)&&($e(t.key),s=""+t.key),dt(t)&&(R=t.ref,ht(t));for(p in t)V.call(t,p)&&!ft.hasOwnProperty(p)&&(l[p]=t[p]);if(e&&e.defaultProps){var v=e.defaultProps;for(p in v)l[p]===void 0&&(l[p]=v[p])}if(s||R){var y=typeof e=="function"?e.displayName||e.name||"Unknown":e;s&>(l,y),R&&mt(l,y)}return bt(e,s,R,f,a,Fe.current,l)}}var pe=F.ReactCurrentOwner,Ue=F.ReactDebugCurrentFrame;function L(e){if(e){var t=e._owner,o=te(e.type,e._source,t?t.type:null);Ue.setExtraStackFrame(o)}else Ue.setExtraStackFrame(null)}var he;he=!1;function ge(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function Le(){{if(pe.current){var e=B(pe.current.type);if(e)return`
|
|
52
52
|
|
|
53
53
|
Check the render method of \``+e+"`."}return""}}function yt(e){return""}var ze={};function xt(e){{var t=Le();if(!t){var o=typeof e=="string"?e:e.displayName||e.name;o&&(t=`
|
|
54
54
|
|
|
55
|
-
Check the top-level render call using <`+o+">.")}return t}}function Ye(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=xt(t);if(ze[o])return;ze[o]=!0;var a="";e&&e._owner&&e._owner!==pe.current&&(a=" It was passed a child from "+B(e._owner.type)+"."),L(e),
|
|
55
|
+
Check the top-level render call using <`+o+">.")}return t}}function Ye(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=xt(t);if(ze[o])return;ze[o]=!0;var a="";e&&e._owner&&e._owner!==pe.current&&(a=" It was passed a child from "+B(e._owner.type)+"."),L(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,a),L(null)}}function Ve(e,t){{if(typeof e!="object")return;if(de(e))for(var o=0;o<e.length;o++){var a=e[o];ge(a)&&Ye(a,t)}else if(ge(e))e._store&&(e._store.validated=!0);else if(e){var f=Ee(e);if(typeof f=="function"&&f!==e.entries)for(var p=f.call(e),l;!(l=p.next()).done;)ge(l.value)&&Ye(l.value,t)}}}function kt(e){{var t=e.type;if(t==null||typeof t=="string")return;var o;if(typeof t=="function")o=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===g||t.$$typeof===k))o=t.propTypes;else return;if(o){var a=B(t);st(o,e.props,"prop",a,e)}else if(t.PropTypes!==void 0&&!he){he=!0;var f=B(t);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",f||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function _t(e){{for(var t=Object.keys(e.props),o=0;o<t.length;o++){var a=t[o];if(a!=="children"&&a!=="key"){L(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),L(null);break}}e.ref!==null&&(L(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),L(null))}}var Je={};function He(e,t,o,a,f,p){{var l=U(e);if(!l){var s="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(s+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var R=yt();R?s+=R:s+=Le();var v;e===null?v="null":de(e)?v="array":e!==void 0&&e.$$typeof===n?(v="<"+(B(e.type)||"Unknown")+" />",s=" Did you accidentally export a JSX literal instead of a component?"):v=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",v,s)}var y=vt(e,t,o,f,p);if(y==null)return y;if(l){var T=t.children;if(T!==void 0)if(a)if(de(T)){for(var z=0;z<T.length;z++)Ve(T[z],e);Object.freeze&&Object.freeze(T)}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 Ve(T,e)}if(V.call(t,"key")){var N=B(e),O=Object.keys(t).filter(function(jt){return jt!=="key"}),me=O.length>0?"{key: someKey, "+O.join(": ..., ")+": ...}":"{key: someKey}";if(!Je[N+me]){var Ot=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} />`,me,N,Ot,N),Je[N+me]=!0}}return e===u?_t(y):kt(y),y}}function wt(e,t,o){return He(e,t,o,!0)}function Et(e,t,o){return He(e,t,o,!1)}var St=Et,Rt=wt;Ge.Fragment=u,Ge.jsx=St,Ge.jsxs=Rt}()),Ge}process.env.NODE_ENV==="production"?Zt():Xt();const Qt="0.0.37",Nt={version:Qt},G={},tt={module:"",v:Nt.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{}};function se(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}se().elcrm||(se().elcrm={}),Object.assign(se().elcrm,{router:Nt.version});function Z(r){const n=se();n.ROUTER_PARAMS?n.ROUTER_PARAMS={...n.ROUTER_PARAMS,...r}:n.ROUTER_PARAMS={...tt,...r}}function C(){return se().ROUTER_PARAMS||tt}function be(r){const n=se();n.ROUTER_PARAMS?n.ROUTER_PARAMS.LISTENER={...n.ROUTER_PARAMS.LISTENER,...r}:n.ROUTER_PARAMS.LISTENER={...r}}function X(){return se().ROUTER_PARAMS.LISTENER||tt.LISTENER}var ve;(r=>{function n(){var b;let _=sessionStorage.getItem("f");if(_){if(_=oe.deCode(_),!_)return!1;Z({id:_.id,tab:_.tab,page:_.page,module:_.module,time:_.time,payment:{active:!0},module_admin:_.module_admin})}else Z({id:0,tab:"",page:(b=localStorage.getItem("d"))!=null&&b.length?C().page:C().auth,module:C().module});return!0}function i(){G.id=0,G.tab="",G.page=C().page,G.module=C().module}r.Reset=i;function u({module:b=C().module,page:_=C().page,auth:I=C().auth}){Z({page:_,module:b,auth:I}),n()}r.Default=u;function h(b){let _=U=>(Z({page:U}),U);const[I,D]=w.useState(A()||b&&_(b)||C().page);return be({page:U=>{D(U)}}),I}r.usePage=h;function m(b,_=!0,I={}){Z({page:b,...I}),sessionStorage.setItem(C().STORAGE,oe.enCode(C())),_&&X().page(b)}r.setPage=m;function A(){return C().page}r.getPage=A;function x(b){return C().page===b}r.isPage=x;function g(b,_){const[I,D]=w.useState(d()||b||C().module);return be({module:D}),I}r.useModule=g;function E(b,_=!0){Z({module:b}),sessionStorage.setItem(C().STORAGE,oe.enCode(C())),_&&X().module(b)}r.setModule=E;function d(){return C().module||""}r.getModule=d;function k(b){return C().module===b}r.isModule=k;function P(b,_){if(typeof b!="function"){const[I,D]=w.useState(!_),[U,ae]=w.useState(b||ne());return be({tabs:ae}),_&&w.useEffect(()=>{D(!0)},[]),[U,I]}else be({tabs:b})}r.useTabs=P;async function W(b,_=!0){Z({tab:b}),sessionStorage.setItem(C().STORAGE,oe.enCode(C())),_&&(X().tabs&&X().tabs(b))}r.setTabs=W;function ne(){return C().tab}r.getTabs=ne;function Ee(b){return C().tab===b}r.isTabs=Ee;function Se(b){if(typeof b!="function"){const[_,I]=w.useState(b||ye());return be({id:D=>{I(D)}}),_}else be({id:b})}r.useId=Se;function F(b){}r.subId=F;async function S(b,_=!0){Z({id:b}),sessionStorage.setItem(C().STORAGE,oe.enCode(C())),_&&X().id(b)}r.setId=S;function ye(){return C().id}r.getId=ye;function Re(b){return Number(C().id)===b}r.isId=Re;async function Oe(b){var _,I,D,U,ae,ie,B,M;const{page:$,module:H,tab:q,id:K}=b;$!==void 0&&(G.page=$),H!==void 0&&(G.module=H),q!==void 0&&(G.tab=q),K!==void 0&&(G.id=K),Z({...G}),K!==void 0&&((I=(_=X()).id)==null||I.call(_,K)),q!==void 0&&((U=(D=X()).tabs)==null||U.call(D,q)),H!==void 0&&((ie=(ae=X()).module)==null||ie.call(ae,H)),$!==void 0&&((M=(B=X()).page)==null||M.call(B,$)),sessionStorage.setItem(C().STORAGE,oe.enCode(C()))}r.navigate=Oe})(ve||(ve={}));let Ze={};function er(){const[r,n]=w.useState([]);return Ze.set=i=>{n([...r,i])},Ze.del=i=>{r.forEach((u,h)=>{u.key===i&&r.splice(h,1)}),n(r)},r.length===0?c.jsx(c.Fragment,{}):c.jsx("div",{className:"notice",children:r.map(i=>i.item)})}function tr(r){let n=new Date().getTime();r.key=n,Ze.set({item:c.jsx(rr,{data:r},n),key:n})}function rr(r){const n=r.data;let[i]=w.useState("show"),[u,h]=w.useState(!1);w.useEffect(()=>{setTimeout(function(){h(!0),Ze.del(n.key)},5e3)},[n.key]);let m;switch(n.type){case"error":m=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":m=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":m=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:m="icon fa fa-exclamation-circle";break}return c.jsx(c.Fragment,{children:u?c.jsx(c.Fragment,{}):c.jsxs("div",{className:"item "+n.type+` ${n.thema!==void 0?" thema":""}`,"data-status":i,children:[c.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",width:"24",height:"24",viewBox:"0 0 24 24",children:m}),c.jsx("span",{className:"text",children:n.text})]})})}let Xe={Send:tr,Init:er},we=()=>{};const or=({children:r,title:n,isOverlay:i=!0})=>{const[u,h]=w.useState(!1);return we=()=>{h(!0),setTimeout(()=>{Ut.onClose()},300)},c.jsx("div",{className:`footer-menu-overlay ${i?"is-overlay":""} ${u?"closing":""}`,onClick:we,children:c.jsxs("div",{className:`footer-menu-popup-book ${u?"closing":""}`,onClick:m=>m.stopPropagation(),children:[c.jsxs("div",{className:"footer-menu-header",children:[c.jsx("h3",{children:n}),c.jsx("button",{className:"footer-menu-close-btn",onClick:we,children:"✕"})]}),r]})})},Wt={h:"_h_rl5ga_1",row:"_row_rl5ga_14",column:"_column_rl5ga_17"},Ut=[],Lt=(r,n)=>r.findIndex(i=>(i==null?void 0:i.page)===n),nr=({actions:r,children:n,className:i,page:u,setPage:h,direction:m="row"})=>{const[A,x]=w.useState(null),[g,E]=w.useState(u?Lt(r||[],u):0);return Ut.onClose=()=>{x(null),E(u?Lt(r||[],u):0)},w.useEffect(()=>{document.addEventListener("blur",()=>{document.querySelector("footer").style.display="flex"}),document.addEventListener("focus",()=>{document.querySelector("footer").style.display="none"})},[]),c.jsxs(c.Fragment,{children:[A,c.jsxs("footer",{className:`${Wt.h} ${Wt[m]} ${i} `,children:[n,r&&r.map((d,k)=>c.jsx("div",{"data-active":g===k?"true":"false",onClick:()=>{d.page&&(E(k),h==null||h(d.page)),d.callback&&(d.callback(),E(k)),d.component&&(g===k?we():(x(d.component),E(k)))},children:d.icon},k))]})]})},le={is:!1,MainButton:{},BackButton:{}};let Y={};Y.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"},Y.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":"#ffffff"},Y.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 ar=()=>{if(location.hostname==="localhost"){let[r,n]=w.useState(!1),[i,u]=w.useState(!1),[h,m]=w.useState("dark"),[A,x]=w.useState(!1),[g,E]=w.useState(!1);le.is=!0,le.MainButton.set=n,le.BackButton.set=u,w.useEffect(()=>{Y[h]["--tg-theme-bg-color-alpha"]=Y[h]["--tg-theme-bg-color"]+"b3",Y[h]["--tg-theme-secondary-bg-color-alpha"]=Y[h]["--tg-theme-secondary-bg-color"]+"d3";for(let P in Y[h])document.documentElement.style.setProperty(P,Y[h][P]);j.default.WebApp.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let d=P=>{for(let W in Y[P])document.documentElement.style.setProperty(W,Y[P][W]);m(P),x(!1)},k=()=>{x(!1),E(!0)};return c.jsxs(c.Fragment,{children:[c.jsxs("header",{className:"debug",children:[i===!1?c.jsx("div",{className:"b",children:"Отмена"}):c.jsx("div",{onClick:()=>{var P;i.page===void 0?(P=i.callback)==null||P.call(i):ve.setPage(i.page)},className:"b",children:"Назад"}),c.jsx("div",{className:"o",onClick:()=>x(!A),children:"Меню"})]}),c.jsx(Xe.Init,{}),r&&c.jsx("div",{className:"mb",children:c.jsx("button",{onClick:()=>{r.page&&ve.setPage(r.page),r.callback&&r.callback()},children:r.text})}),A?c.jsxs("div",{className:"tm",children:[c.jsxs("ul",{children:[c.jsx("li",{children:c.jsx("button",{onClick:k,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:()=>d("dark"),children:"Dark"})}),c.jsx("li",{children:c.jsx("button",{onClick:()=>d("light"),children:"Light"})}),c.jsx("li",{children:c.jsx("button",{onClick:()=>d("users"),children:"Users"})})]})]}),c.jsx("li",{children:c.jsx("button",{onClick:()=>x(!A),children:"Closed"})})]})]}):"",g?c.jsx(ir,{setAuthorization:E}):""]})}else return w.useEffect(()=>{document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",j.default.WebApp.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",j.default.WebApp.themeParams.bg_color+"b3"),j.default.WebApp.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),c.jsx(c.Fragment,{children:c.jsx(Xe.Init,{})})};j.default=void 0,(r=>{r.WebApp=window.Telegram.WebApp,r.getUser=()=>{var n;return((n=r.WebApp.initDataUnsafe)==null?void 0:n.user)===void 0?{}:r.WebApp.initDataUnsafe},r.Notice=(n,i,u)=>{var h,m;i!==void 0?(Xe.Send({type:n,text:i,thema:u}),(h=r.WebApp.HapticFeedback)==null||h.notificationOccurred(n)):(Xe.Send(n),(m=r.WebApp.HapticFeedback)==null||m.notificationOccurred(n.type))},r.Header=ar,r.Footer=nr,r.Bottomsheet=or,r.toggleBottomsheet=we,r.Modal=et,r.MainButton={callback:[],set:n=>{le.is?le.MainButton.set(n):(r.WebApp.MainButton.callback.forEach(i=>{r.WebApp.MainButton.offClick(i)}),r.WebApp.MainButton.callback=[],typeof n=="boolean"?r.WebApp.MainButton.isVisible=!1:(r.WebApp.MainButton.text=n.text,n.color&&(r.WebApp.MainButton.color=n.color),n.textColor&&(r.WebApp.MainButton.textColor=n.textColor),r.WebApp.MainButton.isVisible=!0,r.WebApp.MainButton.isActive=n.isActive===void 0?!0:n.isActive,r.WebApp.MainButton.callback.push(()=>{var i;n.page===void 0?(i=n.callback)==null||i.call(n):ve.setPage(n.page)}),r.WebApp.MainButton.onClick(r.WebApp.MainButton.callback[0])))}},r.BackButton={state:[!1],listen:[],router:n=>{n===!1?(r.WebApp.BackButton.isVisible=!1,r.WebApp.BackButton.offClick(r.BackButton.listen[0]),r.BackButton.listen.shift(),r.WebApp.BackButton.state.length!==1&&r.WebApp.BackButton.state.pop()):(r.WebApp.BackButton.isVisible=!0,r.WebApp.BackButton.offClick(r.BackButton.listen[0]),r.BackButton.listen.shift(),r.BackButton.listen.push(()=>{var u;let i=r.WebApp.BackButton.state.pop();i.page!==void 0?ve.setPage(i.page):(u=i.callback)==null||u.call(i)}),r.WebApp.BackButton.onClick(r.BackButton.listen[0]))},set:n=>{le.is?le.BackButton.set(n):(r.BackButton.state.push(n),r.BackButton.router(n))}}})(j.default||(j.default={}));const ir=({setAuthorization:r})=>{let n={},i=()=>{localStorage.setItem("auth",n)};return c.jsx("div",{className:"ta",children:c.jsxs("div",{className:"--body",children:[c.jsx("fieldset",{}),c.jsx("div",{onClick:i,children:" Сохранить "})]})})},{Header:sr,Footer:lr,toggleBottomsheet:cr,Modal:ur,MainButton:fr,BackButton:dr,Bottomsheet:pr,WebApp:hr,getUser:gr,Notice:mr}=j.default;j.BackButton=dr,j.Bottomsheet=pr,j.Footer=lr,j.Header=sr,j.MainButton=fr,j.Modal=ur,j.Notice=mr,j.WebApp=hr,j.getUser=gr,j.toggleBottomsheet=cr,Object.defineProperties(j,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
60
|
+
<%s key={someKey} {...props} />`,me,N,Ot,N),Je[N+me]=!0}}return e===u?_t(y):kt(y),y}}function wt(e,t,o){return He(e,t,o,!0)}function St(e,t,o){return He(e,t,o,!1)}var Et=St,Rt=wt;Ge.Fragment=u,Ge.jsx=Et,Ge.jsxs=Rt}()),Ge}process.env.NODE_ENV==="production"?Zt():Xt();const Qt="0.0.37",Nt={version:Qt},G={},tt={module:"",v:Nt.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{}};function se(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}se().elcrm||(se().elcrm={}),Object.assign(se().elcrm,{router:Nt.version});function Z(r){const n=se();n.ROUTER_PARAMS?n.ROUTER_PARAMS={...n.ROUTER_PARAMS,...r}:n.ROUTER_PARAMS={...tt,...r}}function C(){return se().ROUTER_PARAMS||tt}function be(r){const n=se();n.ROUTER_PARAMS?n.ROUTER_PARAMS.LISTENER={...n.ROUTER_PARAMS.LISTENER,...r}:n.ROUTER_PARAMS.LISTENER={...r}}function X(){return se().ROUTER_PARAMS.LISTENER||tt.LISTENER}var ve;(r=>{function n(){var b;let _=sessionStorage.getItem("f");if(_){if(_=oe.deCode(_),!_)return!1;Z({id:_.id,tab:_.tab,page:_.page,module:_.module,time:_.time,payment:{active:!0},module_admin:_.module_admin})}else Z({id:0,tab:"",page:(b=localStorage.getItem("d"))!=null&&b.length?C().page:C().auth,module:C().module});return!0}function i(){G.id=0,G.tab="",G.page=C().page,G.module=C().module}r.Reset=i;function u({module:b=C().module,page:_=C().page,auth:I=C().auth}){Z({page:_,module:b,auth:I}),n()}r.Default=u;function h(b){let _=U=>(Z({page:U}),U);const[I,D]=w.useState(A()||b&&_(b)||C().page);return be({page:U=>{D(U)}}),I}r.usePage=h;function m(b,_=!0,I={}){Z({page:b,...I}),sessionStorage.setItem(C().STORAGE,oe.enCode(C())),_&&X().page(b)}r.setPage=m;function A(){return C().page}r.getPage=A;function x(b){return C().page===b}r.isPage=x;function g(b,_){const[I,D]=w.useState(d()||b||C().module);return be({module:D}),I}r.useModule=g;function S(b,_=!0){Z({module:b}),sessionStorage.setItem(C().STORAGE,oe.enCode(C())),_&&X().module(b)}r.setModule=S;function d(){return C().module||""}r.getModule=d;function k(b){return C().module===b}r.isModule=k;function P(b,_){if(typeof b!="function"){const[I,D]=w.useState(!_),[U,ae]=w.useState(b||ne());return be({tabs:ae}),_&&w.useEffect(()=>{D(!0)},[]),[U,I]}else be({tabs:b})}r.useTabs=P;async function W(b,_=!0){Z({tab:b}),sessionStorage.setItem(C().STORAGE,oe.enCode(C())),_&&(X().tabs&&X().tabs(b))}r.setTabs=W;function ne(){return C().tab}r.getTabs=ne;function Se(b){return C().tab===b}r.isTabs=Se;function Ee(b){if(typeof b!="function"){const[_,I]=w.useState(b||ye());return be({id:D=>{I(D)}}),_}else be({id:b})}r.useId=Ee;function F(b){}r.subId=F;async function E(b,_=!0){Z({id:b}),sessionStorage.setItem(C().STORAGE,oe.enCode(C())),_&&X().id(b)}r.setId=E;function ye(){return C().id}r.getId=ye;function Re(b){return Number(C().id)===b}r.isId=Re;async function Oe(b){var _,I,D,U,ae,ie,B,M;const{page:$,module:H,tab:q,id:K}=b;$!==void 0&&(G.page=$),H!==void 0&&(G.module=H),q!==void 0&&(G.tab=q),K!==void 0&&(G.id=K),Z({...G}),K!==void 0&&((I=(_=X()).id)==null||I.call(_,K)),q!==void 0&&((U=(D=X()).tabs)==null||U.call(D,q)),H!==void 0&&((ie=(ae=X()).module)==null||ie.call(ae,H)),$!==void 0&&((M=(B=X()).page)==null||M.call(B,$)),sessionStorage.setItem(C().STORAGE,oe.enCode(C()))}r.navigate=Oe})(ve||(ve={}));let Ze={};function er(){const[r,n]=w.useState([]);return Ze.set=i=>{n([...r,i])},Ze.del=i=>{r.forEach((u,h)=>{u.key===i&&r.splice(h,1)}),n(r)},r.length===0?c.jsx(c.Fragment,{}):c.jsx("div",{className:"notice",children:r.map(i=>i.item)})}function tr(r){let n=new Date().getTime();r.key=n,Ze.set({item:c.jsx(rr,{data:r},n),key:n})}function rr(r){const n=r.data;let[i]=w.useState("show"),[u,h]=w.useState(!1);w.useEffect(()=>{setTimeout(function(){h(!0),Ze.del(n.key)},5e3)},[n.key]);let m;switch(n.type){case"error":m=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":m=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":m=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:m="icon fa fa-exclamation-circle";break}return c.jsx(c.Fragment,{children:u?c.jsx(c.Fragment,{}):c.jsxs("div",{className:"item "+n.type+` ${n.thema!==void 0?" thema":""}`,"data-status":i,children:[c.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",width:"24",height:"24",viewBox:"0 0 24 24",children:m}),c.jsx("span",{className:"text",children:n.text})]})})}let Xe={Send:tr,Init:er},we=()=>{};const or=({children:r,title:n,isOverlay:i=!0})=>{const[u,h]=w.useState(!1);return we=()=>{h(!0),setTimeout(()=>{Ut.onClose()},300)},c.jsx("div",{className:`footer-menu-overlay ${i?"is-overlay":""} ${u?"closing":""}`,onClick:we,children:c.jsxs("div",{className:`footer-menu-popup-book ${u?"closing":""}`,onClick:m=>m.stopPropagation(),children:[c.jsxs("div",{className:"footer-menu-header",children:[c.jsx("h3",{children:n}),c.jsx("button",{className:"footer-menu-close-btn",onClick:we,children:"✕"})]}),r]})})},Wt={h:"_h_rl5ga_1",row:"_row_rl5ga_14",column:"_column_rl5ga_17"},Ut=[],Lt=(r,n)=>r.findIndex(i=>(i==null?void 0:i.page)===n),nr=({actions:r,children:n,className:i,page:u,onPageChange:h,direction:m="row"})=>{const[A,x]=w.useState(null),[g,S]=w.useState(u?Lt(r||[],u):0);return Ut.onClose=()=>{x(null),S(u?Lt(r||[],u):0)},w.useEffect(()=>{document.addEventListener("blur",()=>{document.querySelector("footer").style.display="flex"}),document.addEventListener("focus",()=>{document.querySelector("footer").style.display="none"})},[]),c.jsxs(c.Fragment,{children:[A,c.jsxs("footer",{className:`${Wt.h} ${Wt[m]} ${i} `,children:[n,r&&r.map((d,k)=>c.jsx("div",{"data-active":g===k?"true":"false",onClick:()=>{d.page&&(S(k),h==null||h(d.page)),d.callback&&(d.callback(),S(k)),d.component&&(g===k?we():(x(d.component),S(k)))},children:d.icon},k))]})]})},le={is:!1,MainButton:{},BackButton:{}};let Y={};Y.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"},Y.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":"#ffffff"},Y.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 ar=()=>{if(location.hostname==="localhost"){let[r,n]=w.useState(!1),[i,u]=w.useState(!1),[h,m]=w.useState("dark"),[A,x]=w.useState(!1),[g,S]=w.useState(!1);le.is=!0,le.MainButton.set=n,le.BackButton.set=u,w.useEffect(()=>{Y[h]["--tg-theme-bg-color-alpha"]=Y[h]["--tg-theme-bg-color"]+"b3",Y[h]["--tg-theme-secondary-bg-color-alpha"]=Y[h]["--tg-theme-secondary-bg-color"]+"d3";for(let P in Y[h])document.documentElement.style.setProperty(P,Y[h][P]);j.default.WebApp.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let d=P=>{for(let W in Y[P])document.documentElement.style.setProperty(W,Y[P][W]);m(P),x(!1)},k=()=>{x(!1),S(!0)};return c.jsxs(c.Fragment,{children:[c.jsxs("header",{className:"debug",children:[i===!1?c.jsx("div",{className:"b",children:"Отмена"}):c.jsx("div",{onClick:()=>{var P;i.page===void 0?(P=i.callback)==null||P.call(i):ve.setPage(i.page)},className:"b",children:"Назад"}),c.jsx("div",{className:"o",onClick:()=>x(!A),children:"Меню"})]}),c.jsx(Xe.Init,{}),r&&c.jsx("div",{className:"mb",children:c.jsx("button",{onClick:()=>{r.page&&ve.setPage(r.page),r.callback&&r.callback()},children:r.text})}),A?c.jsxs("div",{className:"tm",children:[c.jsxs("ul",{children:[c.jsx("li",{children:c.jsx("button",{onClick:k,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:()=>d("dark"),children:"Dark"})}),c.jsx("li",{children:c.jsx("button",{onClick:()=>d("light"),children:"Light"})}),c.jsx("li",{children:c.jsx("button",{onClick:()=>d("users"),children:"Users"})})]})]}),c.jsx("li",{children:c.jsx("button",{onClick:()=>x(!A),children:"Closed"})})]})]}):"",g?c.jsx(ir,{setAuthorization:S}):""]})}else return w.useEffect(()=>{document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",j.default.WebApp.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",j.default.WebApp.themeParams.bg_color+"b3"),j.default.WebApp.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),c.jsx(c.Fragment,{children:c.jsx(Xe.Init,{})})};j.default=void 0,(r=>{r.WebApp=window.Telegram.WebApp,r.getUser=()=>{var n;return((n=r.WebApp.initDataUnsafe)==null?void 0:n.user)===void 0?{}:r.WebApp.initDataUnsafe},r.Notice=(n,i,u)=>{var h,m;i!==void 0?(Xe.Send({type:n,text:i,thema:u}),(h=r.WebApp.HapticFeedback)==null||h.notificationOccurred(n)):(Xe.Send(n),(m=r.WebApp.HapticFeedback)==null||m.notificationOccurred(n.type))},r.Header=ar,r.Footer=nr,r.BottomSheet=or,r.toggleBottomSheet=we,r.Modal=et,r.MainButton={callback:[],set:n=>{le.is?le.MainButton.set(n):(r.WebApp.MainButton.callback.forEach(i=>{r.WebApp.MainButton.offClick(i)}),r.WebApp.MainButton.callback=[],typeof n=="boolean"?r.WebApp.MainButton.isVisible=!1:(r.WebApp.MainButton.text=n.text,n.color&&(r.WebApp.MainButton.color=n.color),n.textColor&&(r.WebApp.MainButton.textColor=n.textColor),r.WebApp.MainButton.isVisible=!0,r.WebApp.MainButton.isActive=n.isActive===void 0?!0:n.isActive,r.WebApp.MainButton.callback.push(()=>{var i;n.page===void 0?(i=n.callback)==null||i.call(n):ve.setPage(n.page)}),r.WebApp.MainButton.onClick(r.WebApp.MainButton.callback[0])))}},r.BackButton={state:[!1],listen:[],router:n=>{n===!1?(r.WebApp.BackButton.isVisible=!1,r.WebApp.BackButton.offClick(r.BackButton.listen[0]),r.BackButton.listen.shift(),r.WebApp.BackButton.state.length!==1&&r.WebApp.BackButton.state.pop()):(r.WebApp.BackButton.isVisible=!0,r.WebApp.BackButton.offClick(r.BackButton.listen[0]),r.BackButton.listen.shift(),r.BackButton.listen.push(()=>{var u;let i=r.WebApp.BackButton.state.pop();i.page!==void 0?ve.setPage(i.page):(u=i.callback)==null||u.call(i)}),r.WebApp.BackButton.onClick(r.BackButton.listen[0]))},set:n=>{le.is?le.BackButton.set(n):(r.BackButton.state.push(n),r.BackButton.router(n))}}})(j.default||(j.default={}));const ir=({setAuthorization:r})=>{let n={},i=()=>{localStorage.setItem("auth",n)};return c.jsx("div",{className:"ta",children:c.jsxs("div",{className:"--body",children:[c.jsx("fieldset",{}),c.jsx("div",{onClick:i,children:" Сохранить "})]})})},{Header:sr,Footer:lr,toggleBottomSheet:cr,Modal:ur,MainButton:fr,BackButton:dr,BottomSheet:pr,WebApp:hr,getUser:gr,Notice:mr}=j.default;j.BackButton=dr,j.BottomSheet=pr,j.Footer=lr,j.Header=sr,j.MainButton=fr,j.Modal=ur,j.Notice=mr,j.WebApp=hr,j.getUser=gr,j.toggleBottomSheet=cr,Object.defineProperties(j,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|