@elcrm/telegram 0.0.72 → 0.0.73
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 +53 -53
- package/dist/index.umd.js +16 -16
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import $, { useState as le, useEffect as
|
|
1
|
+
import $, { useState as le, useEffect as Ze } from "react";
|
|
2
2
|
import './index.css';var Pt = { exports: {} }, Je = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
@@ -313,7 +313,7 @@ function Ht() {
|
|
|
313
313
|
}
|
|
314
314
|
return "";
|
|
315
315
|
}
|
|
316
|
-
var
|
|
316
|
+
var Y = Object.prototype.hasOwnProperty, Te = {}, Ie = F.ReactDebugCurrentFrame;
|
|
317
317
|
function ee(e) {
|
|
318
318
|
if (e) {
|
|
319
319
|
var t = e._owner, r = Q(e.type, e._source, t ? t.type : null);
|
|
@@ -323,7 +323,7 @@ function Ht() {
|
|
|
323
323
|
}
|
|
324
324
|
function lt(e, t, r, a, c) {
|
|
325
325
|
{
|
|
326
|
-
var p = Function.call.bind(
|
|
326
|
+
var p = Function.call.bind(Y);
|
|
327
327
|
for (var l in e)
|
|
328
328
|
if (p(e, l)) {
|
|
329
329
|
var s = void 0;
|
|
@@ -371,7 +371,7 @@ function Ht() {
|
|
|
371
371
|
__source: !0
|
|
372
372
|
}, Fe, Ne;
|
|
373
373
|
function pt(e) {
|
|
374
|
-
if (
|
|
374
|
+
if (Y.call(e, "ref")) {
|
|
375
375
|
var t = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
376
376
|
if (t && t.isReactWarning)
|
|
377
377
|
return !1;
|
|
@@ -379,7 +379,7 @@ function Ht() {
|
|
|
379
379
|
return e.ref !== void 0;
|
|
380
380
|
}
|
|
381
381
|
function vt(e) {
|
|
382
|
-
if (
|
|
382
|
+
if (Y.call(e, "key")) {
|
|
383
383
|
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
384
384
|
if (t && t.isReactWarning)
|
|
385
385
|
return !1;
|
|
@@ -445,7 +445,7 @@ function Ht() {
|
|
|
445
445
|
var p, l = {}, s = null, x = null;
|
|
446
446
|
r !== void 0 && (De(r), s = "" + r), vt(t) && (De(t.key), s = "" + t.key), pt(t) && (x = t.ref, mt(t, c));
|
|
447
447
|
for (p in t)
|
|
448
|
-
|
|
448
|
+
Y.call(t, p) && !dt.hasOwnProperty(p) && (l[p] = t[p]);
|
|
449
449
|
if (e && e.defaultProps) {
|
|
450
450
|
var y = e.defaultProps;
|
|
451
451
|
for (p in y)
|
|
@@ -596,7 +596,7 @@ Check the top-level render call using <` + r + ">.");
|
|
|
596
596
|
else
|
|
597
597
|
Ye(P, e);
|
|
598
598
|
}
|
|
599
|
-
if (
|
|
599
|
+
if (Y.call(t, "key")) {
|
|
600
600
|
var N = A(e), O = Object.keys(t).filter(function(Ct) {
|
|
601
601
|
return Ct !== "key";
|
|
602
602
|
}), ge = O.length > 0 ? "{key: someKey, " + O.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
@@ -631,11 +631,11 @@ var At;
|
|
|
631
631
|
function o({ children: _ }) {
|
|
632
632
|
const [m, E] = le(!1), [d, R] = le(!1);
|
|
633
633
|
if (G.onClose = () => {
|
|
634
|
-
|
|
634
|
+
J.BackButton(!1), R(!0), setTimeout(() => {
|
|
635
635
|
E(!1), R(!1);
|
|
636
636
|
}, 300);
|
|
637
|
-
},
|
|
638
|
-
m ? G.onClose() : (
|
|
637
|
+
}, Ze(() => {
|
|
638
|
+
m ? G.onClose() : (J.BackButton({
|
|
639
639
|
callback: () => G.onClose()
|
|
640
640
|
}), E(!0));
|
|
641
641
|
}, []), !!m)
|
|
@@ -648,7 +648,7 @@ var At;
|
|
|
648
648
|
let [m, E] = le([]);
|
|
649
649
|
return G.x = (d) => {
|
|
650
650
|
E(d ? m.filter((R) => R.key !== d) : []);
|
|
651
|
-
},
|
|
651
|
+
}, Ze(() => {
|
|
652
652
|
_ && (G.i = _);
|
|
653
653
|
}, []), G.add = (d, R = Date.now()) => {
|
|
654
654
|
E([...m, { key: R, item: d }]);
|
|
@@ -811,7 +811,7 @@ function rr() {
|
|
|
811
811
|
}
|
|
812
812
|
return Ke.Fragment = i, Ke.jsx = j, Ke.jsxs = j, Ke;
|
|
813
813
|
}
|
|
814
|
-
var
|
|
814
|
+
var Xe = {};
|
|
815
815
|
/**
|
|
816
816
|
* @license React
|
|
817
817
|
* react-jsx-runtime.development.js
|
|
@@ -1101,7 +1101,7 @@ function nr() {
|
|
|
1101
1101
|
}
|
|
1102
1102
|
return "";
|
|
1103
1103
|
}
|
|
1104
|
-
var
|
|
1104
|
+
var Y = Object.prototype.hasOwnProperty, Te = {}, Ie = F.ReactDebugCurrentFrame;
|
|
1105
1105
|
function ee(e) {
|
|
1106
1106
|
if (e) {
|
|
1107
1107
|
var t = e._owner, r = Q(e.type, e._source, t ? t.type : null);
|
|
@@ -1111,7 +1111,7 @@ function nr() {
|
|
|
1111
1111
|
}
|
|
1112
1112
|
function lt(e, t, r, a, c) {
|
|
1113
1113
|
{
|
|
1114
|
-
var p = Function.call.bind(
|
|
1114
|
+
var p = Function.call.bind(Y);
|
|
1115
1115
|
for (var l in e)
|
|
1116
1116
|
if (p(e, l)) {
|
|
1117
1117
|
var s = void 0;
|
|
@@ -1159,7 +1159,7 @@ function nr() {
|
|
|
1159
1159
|
__source: !0
|
|
1160
1160
|
}, Fe, Ne;
|
|
1161
1161
|
function pt(e) {
|
|
1162
|
-
if (
|
|
1162
|
+
if (Y.call(e, "ref")) {
|
|
1163
1163
|
var t = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
1164
1164
|
if (t && t.isReactWarning)
|
|
1165
1165
|
return !1;
|
|
@@ -1167,7 +1167,7 @@ function nr() {
|
|
|
1167
1167
|
return e.ref !== void 0;
|
|
1168
1168
|
}
|
|
1169
1169
|
function vt(e) {
|
|
1170
|
-
if (
|
|
1170
|
+
if (Y.call(e, "key")) {
|
|
1171
1171
|
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
1172
1172
|
if (t && t.isReactWarning)
|
|
1173
1173
|
return !1;
|
|
@@ -1233,7 +1233,7 @@ function nr() {
|
|
|
1233
1233
|
var p, l = {}, s = null, x = null;
|
|
1234
1234
|
r !== void 0 && (De(r), s = "" + r), vt(t) && (De(t.key), s = "" + t.key), pt(t) && (x = t.ref, mt(t));
|
|
1235
1235
|
for (p in t)
|
|
1236
|
-
|
|
1236
|
+
Y.call(t, p) && !dt.hasOwnProperty(p) && (l[p] = t[p]);
|
|
1237
1237
|
if (e && e.defaultProps) {
|
|
1238
1238
|
var y = e.defaultProps;
|
|
1239
1239
|
for (p in y)
|
|
@@ -1384,7 +1384,7 @@ Check the top-level render call using <` + r + ">.");
|
|
|
1384
1384
|
else
|
|
1385
1385
|
Ye(P, e);
|
|
1386
1386
|
}
|
|
1387
|
-
if (
|
|
1387
|
+
if (Y.call(t, "key")) {
|
|
1388
1388
|
var N = A(e), O = Object.keys(t).filter(function(Ct) {
|
|
1389
1389
|
return Ct !== "key";
|
|
1390
1390
|
}), ge = O.length > 0 ? "{key: someKey, " + O.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
@@ -1408,8 +1408,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1408
1408
|
return ze(e, t, r, !1);
|
|
1409
1409
|
}
|
|
1410
1410
|
var Ot = xt, jt = St;
|
|
1411
|
-
|
|
1412
|
-
}()),
|
|
1411
|
+
Xe.Fragment = f, Xe.jsx = Ot, Xe.jsxs = jt;
|
|
1412
|
+
}()), Xe;
|
|
1413
1413
|
}
|
|
1414
1414
|
process.env.NODE_ENV === "production" ? rr() : nr();
|
|
1415
1415
|
const or = "0.0.37", Vt = {
|
|
@@ -1656,11 +1656,11 @@ function sr(n) {
|
|
|
1656
1656
|
let rt = {
|
|
1657
1657
|
Send: ir,
|
|
1658
1658
|
Init: ar
|
|
1659
|
-
},
|
|
1659
|
+
}, Ge = () => {
|
|
1660
1660
|
};
|
|
1661
1661
|
const zt = ({ children: n, title: o, isOverlay: i = !0 }) => {
|
|
1662
1662
|
const [f, v] = $.useState(!1);
|
|
1663
|
-
return
|
|
1663
|
+
return Ge = () => {
|
|
1664
1664
|
v(!0), setTimeout(() => {
|
|
1665
1665
|
Jt.onClose();
|
|
1666
1666
|
}, 300);
|
|
@@ -1668,7 +1668,7 @@ const zt = ({ children: n, title: o, isOverlay: i = !0 }) => {
|
|
|
1668
1668
|
"div",
|
|
1669
1669
|
{
|
|
1670
1670
|
className: `footer-menu-overlay ${i ? "is-overlay" : ""} ${f ? "closing" : ""}`,
|
|
1671
|
-
onClick:
|
|
1671
|
+
onClick: Ge,
|
|
1672
1672
|
children: /* @__PURE__ */ u.jsxs(
|
|
1673
1673
|
"div",
|
|
1674
1674
|
{
|
|
@@ -1681,7 +1681,7 @@ const zt = ({ children: n, title: o, isOverlay: i = !0 }) => {
|
|
|
1681
1681
|
"button",
|
|
1682
1682
|
{
|
|
1683
1683
|
className: "footer-menu-close-btn",
|
|
1684
|
-
onClick:
|
|
1684
|
+
onClick: Ge,
|
|
1685
1685
|
children: "✕"
|
|
1686
1686
|
}
|
|
1687
1687
|
)
|
|
@@ -1709,7 +1709,7 @@ const zt = ({ children: n, title: o, isOverlay: i = !0 }) => {
|
|
|
1709
1709
|
);
|
|
1710
1710
|
return Jt.onClose = () => {
|
|
1711
1711
|
_(null), E(f ? Mt(n || [], f) : 0);
|
|
1712
|
-
},
|
|
1712
|
+
}, Ze(() => {
|
|
1713
1713
|
document.addEventListener("blur", () => {
|
|
1714
1714
|
document.querySelector("footer").style.display = "flex";
|
|
1715
1715
|
}), document.addEventListener("focus", () => {
|
|
@@ -1728,7 +1728,7 @@ const zt = ({ children: n, title: o, isOverlay: i = !0 }) => {
|
|
|
1728
1728
|
{
|
|
1729
1729
|
"data-active": m === R ? "true" : "false",
|
|
1730
1730
|
onClick: () => {
|
|
1731
|
-
d.page && (E(R), v == null || v(d.page)), d.callback && (d.callback(), E(R)), d.component && (m === R ?
|
|
1731
|
+
d.page && (E(R), v == null || v(d.page)), d.callback && (d.callback(), E(R)), d.component && (m === R ? Ge() : (_(d.component), E(R)));
|
|
1732
1732
|
},
|
|
1733
1733
|
children: d.icon
|
|
1734
1734
|
},
|
|
@@ -1743,8 +1743,8 @@ const zt = ({ children: n, title: o, isOverlay: i = !0 }) => {
|
|
|
1743
1743
|
MainButton: {},
|
|
1744
1744
|
BackButton: {}
|
|
1745
1745
|
};
|
|
1746
|
-
let
|
|
1747
|
-
|
|
1746
|
+
let z = {};
|
|
1747
|
+
z.dark = {
|
|
1748
1748
|
"--tg-theme-subtitle-text-color": "#98989e",
|
|
1749
1749
|
"--tg-theme-destructive-text-color": "#e53935",
|
|
1750
1750
|
"--tg-theme-section-separator-color": "#545458",
|
|
@@ -1761,7 +1761,7 @@ J.dark = {
|
|
|
1761
1761
|
"--tg-theme-text-color": "#ffffff",
|
|
1762
1762
|
"--tg-theme-section-bg-color": "#2c2c2e"
|
|
1763
1763
|
};
|
|
1764
|
-
|
|
1764
|
+
z.light = {
|
|
1765
1765
|
"--tg-theme-subtitle-text-color": "#8e8e93",
|
|
1766
1766
|
"--tg-theme-destructive-text-color": "#ff3b30",
|
|
1767
1767
|
"--tg-theme-section-separator-color": "#c8c7cc",
|
|
@@ -1776,9 +1776,9 @@ J.light = {
|
|
|
1776
1776
|
"--tg-theme-header-bg-color": "#f8f8f8",
|
|
1777
1777
|
"--tg-theme-hint-color": "#8e8e93",
|
|
1778
1778
|
"--tg-theme-text-color": "#000000",
|
|
1779
|
-
"--tg-theme-section-bg-color": "#
|
|
1779
|
+
"--tg-theme-section-bg-color": "#f8f8f8"
|
|
1780
1780
|
};
|
|
1781
|
-
|
|
1781
|
+
z.users = {
|
|
1782
1782
|
"--tg-theme-bg-color": "#000000",
|
|
1783
1783
|
"--tg-theme-text-color": "#ffffff",
|
|
1784
1784
|
"--tg-theme-hint-color": "#98989e",
|
|
@@ -1790,21 +1790,21 @@ J.users = {
|
|
|
1790
1790
|
const fr = () => {
|
|
1791
1791
|
if (location.hostname === "localhost") {
|
|
1792
1792
|
let [n, o] = le(!1), [i, f] = le(!1), [v, g] = le("dark"), [j, _] = le(!1), [m, E] = le(!1);
|
|
1793
|
-
he.is = !0, he.MainButton.set = o, he.BackButton.set = f,
|
|
1794
|
-
|
|
1795
|
-
for (let C in
|
|
1793
|
+
he.is = !0, he.MainButton.set = o, he.BackButton.set = f, Ze(() => {
|
|
1794
|
+
z[v]["--tg-theme-bg-color-alpha"] = z[v]["--tg-theme-bg-color"] + "b3", z[v]["--tg-theme-secondary-bg-color-alpha"] = z[v]["--tg-theme-secondary-bg-color"] + "d3";
|
|
1795
|
+
for (let C in z[v])
|
|
1796
1796
|
document.documentElement.style.setProperty(
|
|
1797
1797
|
C,
|
|
1798
|
-
|
|
1798
|
+
z[v][C]
|
|
1799
1799
|
);
|
|
1800
|
-
|
|
1800
|
+
He.safeAreaInset.bottom === 0 && document.documentElement.style.setProperty(
|
|
1801
1801
|
"--tg-safe-area-inset-bottom",
|
|
1802
1802
|
"16px"
|
|
1803
1803
|
);
|
|
1804
1804
|
}, []);
|
|
1805
1805
|
let d = (C) => {
|
|
1806
|
-
for (let M in
|
|
1807
|
-
document.documentElement.style.setProperty(M,
|
|
1806
|
+
for (let M in z[C])
|
|
1807
|
+
document.documentElement.style.setProperty(M, z[C][M]);
|
|
1808
1808
|
g(C), _(!1);
|
|
1809
1809
|
}, R = () => {
|
|
1810
1810
|
_(!1), E(!0);
|
|
@@ -1872,14 +1872,14 @@ const fr = () => {
|
|
|
1872
1872
|
m ? /* @__PURE__ */ u.jsx(dr, { setAuthorization: E }) : ""
|
|
1873
1873
|
] });
|
|
1874
1874
|
} else
|
|
1875
|
-
return
|
|
1875
|
+
return Ze(() => {
|
|
1876
1876
|
document.documentElement.style.setProperty(
|
|
1877
1877
|
"--tg-theme-secondary-bg-color-alpha",
|
|
1878
|
-
|
|
1878
|
+
He.themeParams.secondary_bg_color + "d3"
|
|
1879
1879
|
), document.documentElement.style.setProperty(
|
|
1880
1880
|
"--tg-theme-bg-color-alpha",
|
|
1881
|
-
|
|
1882
|
-
),
|
|
1881
|
+
He.themeParams.bg_color + "b3"
|
|
1882
|
+
), He.safeAreaInset.bottom === 0 && document.documentElement.style.setProperty(
|
|
1883
1883
|
"--tg-safe-area-inset-bottom",
|
|
1884
1884
|
"16px"
|
|
1885
1885
|
);
|
|
@@ -1892,18 +1892,18 @@ const fr = () => {
|
|
|
1892
1892
|
/* @__PURE__ */ u.jsx("fieldset", {}),
|
|
1893
1893
|
/* @__PURE__ */ u.jsx("div", { onClick: i, children: " Сохранить " })
|
|
1894
1894
|
] }) });
|
|
1895
|
-
},
|
|
1895
|
+
}, V = {
|
|
1896
1896
|
state: [!1],
|
|
1897
1897
|
listen: [],
|
|
1898
1898
|
router: (n) => {
|
|
1899
|
-
n === !1 ? (
|
|
1899
|
+
n === !1 ? (J.WebApp.BackButton.isVisible = !1, J.WebApp.BackButton.offClick(V.listen[0]), V.listen.shift(), V.state.length !== 1 && V.state.pop()) : (J.WebApp.BackButton.isVisible = !0, J.WebApp.BackButton.offClick(V.listen[0]), V.listen.shift(), V.listen.push(() => {
|
|
1900
1900
|
var i;
|
|
1901
|
-
let o =
|
|
1901
|
+
let o = V.state.pop();
|
|
1902
1902
|
o.page !== void 0 ? Re.setPage(o.page) : (i = o.callback) == null || i.call(o);
|
|
1903
|
-
}),
|
|
1903
|
+
}), He.BackButton.onClick(V.listen[0]));
|
|
1904
1904
|
}
|
|
1905
1905
|
};
|
|
1906
|
-
var
|
|
1906
|
+
var J;
|
|
1907
1907
|
((n) => {
|
|
1908
1908
|
n.WebApp = window.Telegram.WebApp, n.getUser = () => {
|
|
1909
1909
|
var o;
|
|
@@ -1911,7 +1911,7 @@ var Y;
|
|
|
1911
1911
|
}, n.Notice = (o, i, f) => {
|
|
1912
1912
|
var v, g;
|
|
1913
1913
|
i !== void 0 ? (rt.Send({ type: o, text: i, thema: f }), (v = n.WebApp.HapticFeedback) == null || v.notificationOccurred(o)) : (rt.Send(o), (g = n.WebApp.HapticFeedback) == null || g.notificationOccurred(o.type));
|
|
1914
|
-
}, n.Header = fr, n.Footer = qt, n.BottomSheet = zt, n.toggleBottomSheet =
|
|
1914
|
+
}, n.Header = fr, n.Footer = qt, n.BottomSheet = zt, n.toggleBottomSheet = Ge, n.Modal = At, n.MainButton = {
|
|
1915
1915
|
callback: [],
|
|
1916
1916
|
set: (o) => {
|
|
1917
1917
|
he.is ? he.MainButton.set(o) : (n.WebApp.MainButton.callback.forEach((i) => {
|
|
@@ -1924,10 +1924,10 @@ var Y;
|
|
|
1924
1924
|
)));
|
|
1925
1925
|
}
|
|
1926
1926
|
}, n.BackButton = (o) => {
|
|
1927
|
-
he.is ? he.BackButton.set(o) : (
|
|
1927
|
+
he.is ? he.BackButton.set(o) : (V.state.push(o), V.router(o));
|
|
1928
1928
|
};
|
|
1929
|
-
})(
|
|
1930
|
-
const vr = qt, mr = zt, gr =
|
|
1929
|
+
})(J || (J = {}));
|
|
1930
|
+
const vr = qt, mr = zt, gr = J.BackButton, hr = J.Notice, { Header: yr, toggleBottomSheet: br, Modal: _r, MainButton: Rr, WebApp: He, getUser: kr } = J;
|
|
1931
1931
|
export {
|
|
1932
1932
|
gr as BackButton,
|
|
1933
1933
|
mr as BottomSheet,
|
|
@@ -1936,8 +1936,8 @@ export {
|
|
|
1936
1936
|
Rr as MainButton,
|
|
1937
1937
|
_r as Modal,
|
|
1938
1938
|
hr as Notice,
|
|
1939
|
-
|
|
1940
|
-
|
|
1939
|
+
He as WebApp,
|
|
1940
|
+
J as default,
|
|
1941
1941
|
kr as getUser,
|
|
1942
1942
|
br as toggleBottomSheet
|
|
1943
1943
|
};
|
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
/*$vite$:1*/`,document.head.appendChild(At);var tt={exports:{}},
|
|
1
|
+
(function(O,R){typeof exports=="object"&&typeof module<"u"?R(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],R):(O=typeof globalThis<"u"?globalThis:O||self,R((O.elCRM=O.elCRM||{},O.elCRM.components={}),O.React))})(this,function(O,R){"use strict";var At=document.createElement("style");At.textContent=`*{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0}html{height:-webkit-fill-available}body{background-color:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);-webkit-font-smoothing:antialiased;font-family:sans-serif;font-variant:no-common-ligatures;text-rendering:optimizeLegibility;padding:0;margin:0}body{overflow:hidden!important}body::-webkit-scrollbar{width:0px;height:0px;display:none!important;-ms-overflow-style:none;scrollbar-width:none}body:has(.debug){--tg-viewport-height: calc(100dvh - 50px) }.debug{height:50px;font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;background:var(--tg-theme-header-bg-color);color:var(--tg-theme-text-color);display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--tg-theme-bg-color);z-index:222;position:sticky;top:0}.debug .b,.debug .o{padding:0 15px;cursor:pointer}.mb{bottom:0;position:fixed;left:0;right:0;padding:10px}.mb button{width:100%}.tm{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;display:flex;flex-direction:column;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;width:200px;position:absolute;right:5px;z-index:999;border:1px solid var(--tg-theme-hint-color)}.tm ul{list-style-type:none;margin:0;display:block;width:100%;padding:8px;border-top:1px solid var(--tg-theme-hint-color)}.tm ul:first-child{border-top:0}.tm ol{list-style-type:none;display:none;padding:8px;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;position:absolute;right:100%;left:-180px;z-index:100;width:100%;top:0;flex-direction:column;border:1px solid var(--tg-theme-hint-color)}.tm ol:hover{display:flex}.tm li{position:relative}.tm button{font:inherit;border:0;padding:8px 36px 8px 8px;width:100%;border-radius:8px;text-align:left;display:flex;align-items:center;position:relative;color:var(--tg-theme-text-color);background-color:var(--tg-theme-bg-color)}.tm button:hover{background-color:var(--tg-theme-button-color)}.tm button:hover+ol{display:flex}.ta{margin:0;width:100vw;height:100vh;display:-webkit-flex;display:flex;justify-content:center;align-items:center;background-color:#0006}.ta .--body{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;overflow:hidden;width:270px;height:auto;background-color:#ffffff73;border-radius:12px}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:11;display:flex;align-items:flex-end;justify-content:center;animation:fadeIn .3s ease}.modal-overlay.closing{animation:fadeOut .3s ease}.modal-popup{position:relative;width:100%;min-height:var(--modal-height);max-width:500px;max-height:var(--modal-height);overflow:hidden;animation:slideUp .3s ease;background:var(--tg-theme-bg-color)}.modal-popup.closing{animation:slideDown .3s ease}.notice{position:fixed;top:0;z-index:999;max-height:0px}.notice .item{display:block;color:#fff;overflow:hidden;cursor:pointer;display:flex;margin:20px 20px 10px;border-radius:10px;padding-left:10px;gap:10px;width:calc(100vw - 40px)}.notice svg{margin-top:7px}.notice .text{padding:9px 0;flex:1}.notice .error{background:#f44336}.notice .success{background:#4caf50}.notice .warning{background:#ff9800}.notice .item.thema{background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color)}.notice .item.error.thema svg{color:#f44336}.notice .item.success.thema svg{color:#4caf50}.notice .item.warning.thema svg{color:#ff9800}.footer-menu-overlay{position:fixed;top:auto;left:0;right:0;bottom:0;z-index:10;display:flex;align-items:flex-end;justify-content:center;transition:opacity .5s ease-out;opacity:1}.footer-menu-overlay.is-overlay{background:var(--tg-theme-bg-color-alpha);top:0}.footer-menu-overlay.closing{opacity:0}.footer-menu-popup-book{position:relative;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);border-radius:20px 20px 0 0;width:100%;max-width:500px;max-height:70vh;overflow:hidden;animation:slideUp .3s ease;box-shadow:0 -10px 30px #00000080;box-shadow:0 -.5px #0000001a;background:var(--tg-theme-secondary-bg-color-alpha);margin-bottom:calc(var(--tg-safe-area-inset-bottom) + 40px);border-bottom:1px solid var(--tg-theme-section-separator-color)}.footer-menu-popup-book.closing{animation:slideDown .3s ease}.footer-menu-header{position:relative;display:flex;opacity:.8;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid var(--tg-theme-section-separator-color);z-index:1}.footer-menu-header h3{margin:0;color:var(--tg-theme-text-color);font-size:18px;font-weight:600}.footer-menu-close-btn{background:none;border:none;color:var(--tg-theme-text-color);font-size:20px;cursor:pointer;padding:5px;border-radius:50%;width:30px;height:30px;display:flex;align-items:center;justify-content:center;transition:background-color .2s ease,transform .15s ease-in-out}.footer-menu-close-btn:active{transform:scale(1.1)}.chapters-list{position:relative;max-height:60vh;overflow-y:auto;overflow-x:hidden;padding:10px 0 20px;z-index:1}.chapter-item{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;cursor:pointer;transition:background-color .2s ease,transform .15s ease-in-out;border-bottom:1px solid var(--tg-theme-section-separator-color)}.chapter-item:active{transform:scale(1.02)}.chapter-item:hover{background-color:#ffffff0d}.chapter-item.active{background-color:#ffffff1a}.chapter-info-item{display:flex;align-items:center;gap:12px}.chapter-number{background:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);min-width:24px;min-height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600}.chapter-item.active .chapter-number{background:var(--tg-theme-button-color);color:var(--tg-theme-button-text-color)}.chapter-title{color:var(--tg-theme-text-color);font-size:16px;font-weight:400}.chapter-title p{font-size:10px;color:var(--tg-subtitle_text_color);font-weight:400}.chapter-title b{font-size:16px;font-weight:400}.chapter-duration{color:var(--tg-theme-text-color);opacity:.8;font-size:14px;font-weight:400}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideDown{0%{transform:translateY(0)}to{transform:translateY(100%)}}.chapters-list::-webkit-scrollbar{width:6px}.chapters-list::-webkit-scrollbar-track{background:#333}.chapters-list::-webkit-scrollbar-thumb{background:#666;border-radius:3px}.chapters-list::-webkit-scrollbar-thumb:hover{background:#888}@media (max-width: 375px){.chapter-progress{padding:15px 10px 5px}.chapters-popup{max-height:80vh}.chapter-item{padding:12px 15px}.chapter-title{font-size:14px}.chapter-duration{font-size:12px}}._h_rl5ga_1{z-index:2;position:fixed;bottom:0;left:0;right:0;display:flex;padding:5px 16px 0;gap:10px;background-color:var(--tg-theme-footer-bg);padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px))}._h_rl5ga_1._row_rl5ga_14{flex-direction:row}._h_rl5ga_1._column_rl5ga_17{flex-direction:column}._h_rl5ga_1 div[data-active]{flex:1;text-align:center;padding:10px 0 0}._h_rl5ga_1 div[data-active=true]{color:var(--tg-theme-button-color)}._h_rl5ga_1 button{flex:1}
|
|
2
|
+
/*$vite$:1*/`,document.head.appendChild(At);var tt={exports:{}},ke={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.production.min.js
|
|
5
5
|
*
|
|
@@ -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 Tt;function Ht(){if(Tt)return
|
|
10
|
+
*/var Tt;function Ht(){if(Tt)return ke;Tt=1;var o=R,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),f=Object.prototype.hasOwnProperty,g=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function P(x,m,w){var d,_={},A=null,U=null;w!==void 0&&(A=""+w),m.key!==void 0&&(A=""+m.key),m.ref!==void 0&&(U=m.ref);for(d in m)f.call(m,d)&&!h.hasOwnProperty(d)&&(_[d]=m[d]);if(x&&x.defaultProps)for(d in m=x.defaultProps,m)_[d]===void 0&&(_[d]=m[d]);return{$$typeof:n,type:x,key:A,ref:U,props:_,_owner:g.current}}return ke.Fragment=i,ke.jsx=P,ke.jsxs=P,ke}var Re={};/**
|
|
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 It;function qt(){return It||(It=1,process.env.NODE_ENV!=="production"&&function(){var o=R,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),x=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),U=Symbol.for("react.offscreen"),ae=Symbol.iterator,Ee="@@iterator";function Oe(e){if(e===null||typeof e!="object")return null;var t=ae&&e[ae]||e[Ee];return typeof t=="function"?t:null}var F=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function S(e){{for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];
|
|
18
|
+
*/var It;function qt(){return It||(It=1,process.env.NODE_ENV!=="production"&&function(){var o=R,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),x=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),U=Symbol.for("react.offscreen"),ae=Symbol.iterator,Ee="@@iterator";function Oe(e){if(e===null||typeof e!="object")return null;var t=ae&&e[ae]||e[Ee];return typeof t=="function"?t:null}var F=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function S(e){{for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];_e("error",e,r)}}function _e(e,t,r){{var a=F.ReactDebugCurrentFrame,u=a.getStackAddendum();u!==""&&(t+="%s",r=r.concat([u]));var p=r.map(function(l){return String(l)});p.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,p)}}var je=!1,Ce=!1,v=!1,k=!1,B=!1,D;D=Symbol.for("react.module.reference");function L(e){return!!(typeof e=="string"||typeof e=="function"||e===f||e===h||B||e===g||e===w||e===d||k||e===U||je||Ce||v||typeof e=="object"&&e!==null&&(e.$$typeof===A||e.$$typeof===_||e.$$typeof===P||e.$$typeof===x||e.$$typeof===m||e.$$typeof===D||e.getModuleId!==void 0))}function ie(e,t,r){var a=e.displayName;if(a)return a;var u=t.displayName||t.name||"";return u!==""?r+"("+u+")":r}function se(e){return e.displayName||"Context"}function I(e){if(e==null)return null;if(typeof e.tag=="number"&&S("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 f:return"Fragment";case i:return"Portal";case h:return"Profiler";case g:return"StrictMode";case w:return"Suspense";case d:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case x:var t=e;return se(t)+".Consumer";case P:var r=e;return se(r._context)+".Provider";case m:return ie(e,e.render,"ForwardRef");case _:var a=e.displayName||null;return a!==null?a:I(e.type)||"Memo";case A:{var u=e,p=u._payload,l=u._init;try{return I(l(p))}catch{return null}}}return null}var M=Object.assign,$=0,q,K,G,Pe,Ae,Te,Ie;function Be(){}Be.__reactDisabledLog=!0;function nt(){{if($===0){q=console.log,K=console.info,G=console.warn,Pe=console.error,Ae=console.group,Te=console.groupCollapsed,Ie=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Be,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}$++}}function at(){{if($--,$===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},e,{value:q}),info:M({},e,{value:K}),warn:M({},e,{value:G}),error:M({},e,{value:Pe}),group:M({},e,{value:Ae}),groupCollapsed:M({},e,{value:Te}),groupEnd:M({},e,{value:Ie})})}$<0&&S("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=F.ReactCurrentDispatcher,fe;function ee(e,t,r){{if(fe===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);fe=a&&a[1]||""}return`
|
|
19
19
|
`+fe+e}}var de=!1,te;{var it=typeof WeakMap=="function"?WeakMap:Map;te=new it}function Me(e,t){if(!e||de)return"";{var r=te.get(e);if(r!==void 0)return r}var a;de=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=ue.current,ue.current=null,nt();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(j){a=j}Reflect.construct(e,[],l)}else{try{l.call()}catch(j){a=j}e.call(l.prototype)}}else{try{throw Error()}catch(j){a=j}e()}}catch(j){if(j&&a&&typeof j.stack=="string"){for(var s=j.stack.split(`
|
|
20
|
-
`),
|
|
21
|
-
`),b=s.length-1,y=
|
|
22
|
-
`+s[b].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&te.set(e,T),T}while(b>=1&&y>=0);break}}}finally{de=!1,ue.current=p,at(),Error.prepareStackTrace=u}var Y=e?e.displayName||e.name:"",N=Y?ee(Y):"";return typeof e=="function"&&te.set(e,N),N}function st(e,t,r){return Me(e,!1)}function lt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function re(e,t,r){if(e==null)return"";if(typeof e=="function")return Me(e,lt(e));if(typeof e=="string")return ee(e);switch(e){case w:return ee("Suspense");case d:return ee("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case m:return st(e.render);case _:return re(e.type,t,r);case A:{var a=e,u=a._payload,p=a._init;try{return re(p(u),t,r)}catch{}}}return""}var J=Object.prototype.hasOwnProperty,De={},$e=F.ReactDebugCurrentFrame;function oe(e){if(e){var t=e._owner,r=re(e.type,e._source,t?t.type:null);$e.setExtraStackFrame(r)}else $e.setExtraStackFrame(null)}function ct(e,t,r,a,u){{var p=Function.call.bind(J);for(var l in e)if(p(e,l)){var s=void 0;try{if(typeof e[l]!="function"){var
|
|
20
|
+
`),E=a.stack.split(`
|
|
21
|
+
`),b=s.length-1,y=E.length-1;b>=1&&y>=0&&s[b]!==E[y];)y--;for(;b>=1&&y>=0;b--,y--)if(s[b]!==E[y]){if(b!==1||y!==1)do if(b--,y--,y<0||s[b]!==E[y]){var T=`
|
|
22
|
+
`+s[b].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&te.set(e,T),T}while(b>=1&&y>=0);break}}}finally{de=!1,ue.current=p,at(),Error.prepareStackTrace=u}var Y=e?e.displayName||e.name:"",N=Y?ee(Y):"";return typeof e=="function"&&te.set(e,N),N}function st(e,t,r){return Me(e,!1)}function lt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function re(e,t,r){if(e==null)return"";if(typeof e=="function")return Me(e,lt(e));if(typeof e=="string")return ee(e);switch(e){case w:return ee("Suspense");case d:return ee("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case m:return st(e.render);case _:return re(e.type,t,r);case A:{var a=e,u=a._payload,p=a._init;try{return re(p(u),t,r)}catch{}}}return""}var J=Object.prototype.hasOwnProperty,De={},$e=F.ReactDebugCurrentFrame;function oe(e){if(e){var t=e._owner,r=re(e.type,e._source,t?t.type:null);$e.setExtraStackFrame(r)}else $e.setExtraStackFrame(null)}function ct(e,t,r,a,u){{var p=Function.call.bind(J);for(var l in e)if(p(e,l)){var s=void 0;try{if(typeof e[l]!="function"){var E=Error((a||"React class")+": "+r+" 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 E.name="Invariant Violation",E}s=e[l](t,l,a,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(b){s=b}s&&!(s instanceof Error)&&(oe(u),S("%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",r,l,typeof s),oe(null)),s instanceof Error&&!(s.message in De)&&(De[s.message]=!0,oe(u),S("Failed %s type: %s",r,s.message),oe(null))}}}var ut=Array.isArray;function pe(e){return ut(e)}function ft(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,r=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r}}function dt(e){try{return Fe(e),!1}catch{return!0}}function Fe(e){return""+e}function Ne(e){if(dt(e))return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ft(e)),Fe(e)}var Ue=F.ReactCurrentOwner,pt={key:!0,ref:!0,__self:!0,__source:!0},Le,ze;function gt(e){if(J.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function mt(e){if(J.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"&&Ue.current}function vt(e,t){{var r=function(){Le||(Le=!0,S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}}function bt(e,t){{var r=function(){ze||(ze=!0,S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}}var yt=function(e,t,r,a,u,p,l){var s={$$typeof:n,type:e,key:t,ref:r,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:u}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function xt(e,t,r,a,u){{var p,l={},s=null,E=null;r!==void 0&&(Ne(r),s=""+r),mt(t)&&(Ne(t.key),s=""+t.key),gt(t)&&(E=t.ref,ht(t,u));for(p in t)J.call(t,p)&&!pt.hasOwnProperty(p)&&(l[p]=t[p]);if(e&&e.defaultProps){var b=e.defaultProps;for(p in b)l[p]===void 0&&(l[p]=b[p])}if(s||E){var y=typeof e=="function"?e.displayName||e.name||"Unknown":e;s&&vt(l,y),E&&bt(l,y)}return yt(e,s,E,u,a,Ue.current,l)}}var ge=F.ReactCurrentOwner,Ye=F.ReactDebugCurrentFrame;function z(e){if(e){var t=e._owner,r=re(e.type,e._source,t?t.type:null);Ye.setExtraStackFrame(r)}else Ye.setExtraStackFrame(null)}var me;me=!1;function he(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function We(){{if(ge.current){var e=I(ge.current.type);if(e)return`
|
|
23
23
|
|
|
24
24
|
Check the render method of \``+e+"`."}return""}}function _t(e){return""}var Ve={};function kt(e){{var t=We();if(!t){var r=typeof e=="string"?e:e.displayName||e.name;r&&(t=`
|
|
25
25
|
|
|
26
|
-
Check the top-level render call using <`+r+">.")}return t}}function Je(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var r=kt(t);if(Ve[r])return;Ve[r]=!0;var a="";e&&e._owner&&e._owner!==ge.current&&(a=" It was passed a child from "+I(e._owner.type)+"."),z(e),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,a),z(null)}}function He(e,t){{if(typeof e!="object")return;if(pe(e))for(var r=0;r<e.length;r++){var a=e[r];he(a)&&Je(a,t)}else if(he(e))e._store&&(e._store.validated=!0);else if(e){var u=Oe(e);if(typeof u=="function"&&u!==e.entries)for(var p=u.call(e),l;!(l=p.next()).done;)he(l.value)&&Je(l.value,t)}}}function Rt(e){{var t=e.type;if(t==null||typeof t=="string")return;var r;if(typeof t=="function")r=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===m||t.$$typeof===_))r=t.propTypes;else return;if(r){var a=I(t);ct(r,e.props,"prop",a,e)}else if(t.PropTypes!==void 0&&!me){me=!0;var u=I(t);S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",u||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function wt(e){{for(var t=Object.keys(e.props),r=0;r<t.length;r++){var a=t[r];if(a!=="children"&&a!=="key"){z(e),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),z(null);break}}e.ref!==null&&(z(e),S("Invalid attribute `ref` supplied to `React.Fragment`."),z(null))}}var qe={};function Ke(e,t,r,a,u,p){{var l=L(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
|
|
26
|
+
Check the top-level render call using <`+r+">.")}return t}}function Je(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var r=kt(t);if(Ve[r])return;Ve[r]=!0;var a="";e&&e._owner&&e._owner!==ge.current&&(a=" It was passed a child from "+I(e._owner.type)+"."),z(e),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,a),z(null)}}function He(e,t){{if(typeof e!="object")return;if(pe(e))for(var r=0;r<e.length;r++){var a=e[r];he(a)&&Je(a,t)}else if(he(e))e._store&&(e._store.validated=!0);else if(e){var u=Oe(e);if(typeof u=="function"&&u!==e.entries)for(var p=u.call(e),l;!(l=p.next()).done;)he(l.value)&&Je(l.value,t)}}}function Rt(e){{var t=e.type;if(t==null||typeof t=="string")return;var r;if(typeof t=="function")r=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===m||t.$$typeof===_))r=t.propTypes;else return;if(r){var a=I(t);ct(r,e.props,"prop",a,e)}else if(t.PropTypes!==void 0&&!me){me=!0;var u=I(t);S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",u||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function wt(e){{for(var t=Object.keys(e.props),r=0;r<t.length;r++){var a=t[r];if(a!=="children"&&a!=="key"){z(e),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),z(null);break}}e.ref!==null&&(z(e),S("Invalid attribute `ref` supplied to `React.Fragment`."),z(null))}}var qe={};function Ke(e,t,r,a,u,p){{var l=L(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 E=_t();E?s+=E:s+=We();var b;e===null?b="null":pe(e)?b="array":e!==void 0&&e.$$typeof===n?(b="<"+(I(e.type)||"Unknown")+" />",s=" Did you accidentally export a JSX literal instead of a component?"):b=typeof e,S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",b,s)}var y=xt(e,t,r,u,p);if(y==null)return y;if(l){var T=t.children;if(T!==void 0)if(a)if(pe(T)){for(var Y=0;Y<T.length;Y++)He(T[Y],e);Object.freeze&&Object.freeze(T)}else S("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 He(T,e)}if(J.call(t,"key")){var N=I(e),j=Object.keys(t).filter(function(Pt){return Pt!=="key"}),ve=j.length>0?"{key: someKey, "+j.join(": ..., ")+": ...}":"{key: someKey}";if(!qe[N+ve]){var Ct=j.length>0?"{"+j.join(": ..., ")+": ...}":"{}";S(`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} />`,ve,N,Ct,N),qe[N+ve]=!0}}return e===f?wt(y):Rt(y),y}}function St(e,t,r){return Ke(e,t,r,!0)}function Et(e,t,r){return Ke(e,t,r,!1)}var Ot=Et,jt=St;
|
|
31
|
+
<%s key={someKey} {...props} />`,ve,N,Ct,N),qe[N+ve]=!0}}return e===f?wt(y):Rt(y),y}}function St(e,t,r){return Ke(e,t,r,!0)}function Et(e,t,r){return Ke(e,t,r,!1)}var Ot=Et,jt=St;Re.Fragment=f,Re.jsx=Ot,Re.jsxs=jt}()),Re}process.env.NODE_ENV==="production"?tt.exports=Ht():tt.exports=qt();var c=tt.exports;let H={};var rt;(o=>{function n({children:x}){const[m,w]=R.useState(!1),[d,_]=R.useState(!1);if(H.onClose=()=>{O.default.BackButton(!1),_(!0),setTimeout(()=>{w(!1),_(!1)},300)},R.useEffect(()=>{m?H.onClose():(O.default.BackButton({callback:()=>H.onClose()}),w(!0))},[]),!!m)return c.jsx("div",{className:`modal-overlay ${d?"closing":""}`,children:c.jsx("div",{className:`modal-popup ${d?"closing":""}`,children:c.jsx("div",{children:x})})})}o.Content=n;function i({import_modules:x}){let[m,w]=R.useState([]);return H.x=d=>{w(d?m.filter(_=>_.key!==d):[])},R.useEffect(()=>{x&&(H.i=x)},[]),H.add=(d,_=Date.now())=>{w([...m,{key:_,item:d}])},c.jsx(c.Fragment,{children:m.map(d=>d.item)})}o.Init=i;function f(x,m){H.add(c.jsx(n,{children:x},String(Date.now())),m)}o.Add=f;function g(x){return{Open:d=>{o.Add(c.jsx(x,{...d},new Date().getTime()))}}}o.Create=g;function h(){H.onClose()}o.Close=h;function P(x,m,w){H.i&&H.i(`${x}/modals/${m}.tsx`).then(d=>{d.default.Open(w)})}o.Open=P})(rt||(rt={}));function Bt(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}const Mt={key:"Y0zt37HgOx-BY7SQjYVmrqhPkO41Ii2Jcb9yydUDPf6",iterations:7,saltLength:16};function Dt(o){const n=Bt();n.CRYPTO_PARAMS?n.CRYPTO_PARAMS={...n.CRYPTO_PARAMS,...o}:n.CRYPTO_PARAMS={...Mt,...o}}function Ge(){return Bt().CRYPTO_PARAMS||Mt}const Ze=o=>{let n=0;for(let f=0;f<o.length;f++){const g=o.charCodeAt(f);n=(n<<5)-n+g,n=n&n}n=Math.abs(n);let i="";for(let f=0;f<64;f++){const g=(n^f*197)&255;i+=g.toString(16).padStart(2,"0")}return i},$t=(o,n)=>{let i=o+n;for(let g=0;g<Ge().iterations;g++)i=Ze(i);const f=new Uint8Array(32);for(let g=0;g<32;g++)f[g]=parseInt(i.substring(g*2,g*2+2),16);return f},Ft=(o,n)=>{const i=new Uint8Array(o.length),f=new Uint8Array(o.length);let g=0;for(let h=0;h<o.length;h++){const P=h%n.length;g=n[P]+h+g&255,f[h]=g}for(let h=0;h<o.length;h++)i[h]=o[h]^f[h];return i},Kt=o=>new TextEncoder().encode(o),Gt=o=>new TextDecoder().decode(o),Zt=o=>{let n="";for(let i=0;i<o.length;i+=8192){const f=o.slice(i,Math.min(i+8192,o.length));n+=String.fromCharCode.apply(null,Array.from(f))}return btoa(n)},Xt=o=>{const n=atob(o),i=new Uint8Array(n.length);for(let f=0;f<n.length;f++)i[f]=n.charCodeAt(f);return i},Qt=o=>{try{const n=Ze(Date.now().toString()+Math.random()).substring(0,Ge().saltLength*2),i=Ze(o+n).substring(0,8),f=$t(Ge().key,n),g=Kt(o),h=Ft(g,f),P=Zt(h);return`${n}.${P}.${i}`}catch{throw new Error("Не удалось зашифровать данные")}},er=o=>{try{const n=o.split(".");if(n.length!==3)throw new Error("Неверный формат зашифрованных данных");const i=n[0],f=n[1],g=n[2],h=$t(Ge().key,i),P=Xt(f),x=Ft(P,h),m=Gt(x);if(Ze(m+i).substring(0,8)!==g)throw new Error("Контрольная сумма не совпадает");return m}catch{return""}};var ne;(o=>{o.setKey=n=>{Dt({key:n})},o.enCode=n=>{try{const i=JSON.stringify(n);return Qt(i)}catch{throw new Error("Не удалось зашифровать объект")}},o.deCode=n=>{try{if(!n||n.length<10)return!1;const i=er(n);return i&&JSON.parse(i)||!1}catch{return!1}},o.setSecurityParams=(n,i)=>{Dt({iterations:n,saltLength:i})}})(ne||(ne={}));var we={};/**
|
|
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 Nt;function tr(){if(Nt)return
|
|
39
|
+
*/var Nt;function tr(){if(Nt)return we;Nt=1;var o=R,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),f=Object.prototype.hasOwnProperty,g=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function P(x,m,w){var d,_={},A=null,U=null;w!==void 0&&(A=""+w),m.key!==void 0&&(A=""+m.key),m.ref!==void 0&&(U=m.ref);for(d in m)f.call(m,d)&&!h.hasOwnProperty(d)&&(_[d]=m[d]);if(x&&x.defaultProps)for(d in m=x.defaultProps,m)_[d]===void 0&&(_[d]=m[d]);return{$$typeof:n,type:x,key:A,ref:U,props:_,_owner:g.current}}return we.Fragment=i,we.jsx=P,we.jsxs=P,we}var Xe={};/**
|
|
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 Ut;function rr(){return Ut||(Ut=1,process.env.NODE_ENV!=="production"&&function(){var o=R,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),x=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),U=Symbol.for("react.offscreen"),ae=Symbol.iterator,Ee="@@iterator";function Oe(e){if(e===null||typeof e!="object")return null;var t=ae&&e[ae]||e[Ee];return typeof t=="function"?t:null}var F=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function S(e){{for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];
|
|
47
|
+
*/var Ut;function rr(){return Ut||(Ut=1,process.env.NODE_ENV!=="production"&&function(){var o=R,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),x=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),U=Symbol.for("react.offscreen"),ae=Symbol.iterator,Ee="@@iterator";function Oe(e){if(e===null||typeof e!="object")return null;var t=ae&&e[ae]||e[Ee];return typeof t=="function"?t:null}var F=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function S(e){{for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];_e("error",e,r)}}function _e(e,t,r){{var a=F.ReactDebugCurrentFrame,u=a.getStackAddendum();u!==""&&(t+="%s",r=r.concat([u]));var p=r.map(function(l){return String(l)});p.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,p)}}var je=!1,Ce=!1,v=!1,k=!1,B=!1,D;D=Symbol.for("react.module.reference");function L(e){return!!(typeof e=="string"||typeof e=="function"||e===f||e===h||B||e===g||e===w||e===d||k||e===U||je||Ce||v||typeof e=="object"&&e!==null&&(e.$$typeof===A||e.$$typeof===_||e.$$typeof===P||e.$$typeof===x||e.$$typeof===m||e.$$typeof===D||e.getModuleId!==void 0))}function ie(e,t,r){var a=e.displayName;if(a)return a;var u=t.displayName||t.name||"";return u!==""?r+"("+u+")":r}function se(e){return e.displayName||"Context"}function I(e){if(e==null)return null;if(typeof e.tag=="number"&&S("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 f:return"Fragment";case i:return"Portal";case h:return"Profiler";case g:return"StrictMode";case w:return"Suspense";case d:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case x:var t=e;return se(t)+".Consumer";case P:var r=e;return se(r._context)+".Provider";case m:return ie(e,e.render,"ForwardRef");case _:var a=e.displayName||null;return a!==null?a:I(e.type)||"Memo";case A:{var u=e,p=u._payload,l=u._init;try{return I(l(p))}catch{return null}}}return null}var M=Object.assign,$=0,q,K,G,Pe,Ae,Te,Ie;function Be(){}Be.__reactDisabledLog=!0;function nt(){{if($===0){q=console.log,K=console.info,G=console.warn,Pe=console.error,Ae=console.group,Te=console.groupCollapsed,Ie=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Be,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}$++}}function at(){{if($--,$===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},e,{value:q}),info:M({},e,{value:K}),warn:M({},e,{value:G}),error:M({},e,{value:Pe}),group:M({},e,{value:Ae}),groupCollapsed:M({},e,{value:Te}),groupEnd:M({},e,{value:Ie})})}$<0&&S("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=F.ReactCurrentDispatcher,fe;function ee(e,t,r){{if(fe===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);fe=a&&a[1]||""}return`
|
|
48
48
|
`+fe+e}}var de=!1,te;{var it=typeof WeakMap=="function"?WeakMap:Map;te=new it}function Me(e,t){if(!e||de)return"";{var r=te.get(e);if(r!==void 0)return r}var a;de=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=ue.current,ue.current=null,nt();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(j){a=j}Reflect.construct(e,[],l)}else{try{l.call()}catch(j){a=j}e.call(l.prototype)}}else{try{throw Error()}catch(j){a=j}e()}}catch(j){if(j&&a&&typeof j.stack=="string"){for(var s=j.stack.split(`
|
|
49
|
-
`),
|
|
50
|
-
`),b=s.length-1,y=
|
|
51
|
-
`+s[b].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&te.set(e,T),T}while(b>=1&&y>=0);break}}}finally{de=!1,ue.current=p,at(),Error.prepareStackTrace=u}var Y=e?e.displayName||e.name:"",N=Y?ee(Y):"";return typeof e=="function"&&te.set(e,N),N}function st(e,t,r){return Me(e,!1)}function lt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function re(e,t,r){if(e==null)return"";if(typeof e=="function")return Me(e,lt(e));if(typeof e=="string")return ee(e);switch(e){case w:return ee("Suspense");case d:return ee("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case m:return st(e.render);case _:return re(e.type,t,r);case A:{var a=e,u=a._payload,p=a._init;try{return re(p(u),t,r)}catch{}}}return""}var J=Object.prototype.hasOwnProperty,De={},$e=F.ReactDebugCurrentFrame;function oe(e){if(e){var t=e._owner,r=re(e.type,e._source,t?t.type:null);$e.setExtraStackFrame(r)}else $e.setExtraStackFrame(null)}function ct(e,t,r,a,u){{var p=Function.call.bind(J);for(var l in e)if(p(e,l)){var s=void 0;try{if(typeof e[l]!="function"){var
|
|
49
|
+
`),E=a.stack.split(`
|
|
50
|
+
`),b=s.length-1,y=E.length-1;b>=1&&y>=0&&s[b]!==E[y];)y--;for(;b>=1&&y>=0;b--,y--)if(s[b]!==E[y]){if(b!==1||y!==1)do if(b--,y--,y<0||s[b]!==E[y]){var T=`
|
|
51
|
+
`+s[b].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&te.set(e,T),T}while(b>=1&&y>=0);break}}}finally{de=!1,ue.current=p,at(),Error.prepareStackTrace=u}var Y=e?e.displayName||e.name:"",N=Y?ee(Y):"";return typeof e=="function"&&te.set(e,N),N}function st(e,t,r){return Me(e,!1)}function lt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function re(e,t,r){if(e==null)return"";if(typeof e=="function")return Me(e,lt(e));if(typeof e=="string")return ee(e);switch(e){case w:return ee("Suspense");case d:return ee("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case m:return st(e.render);case _:return re(e.type,t,r);case A:{var a=e,u=a._payload,p=a._init;try{return re(p(u),t,r)}catch{}}}return""}var J=Object.prototype.hasOwnProperty,De={},$e=F.ReactDebugCurrentFrame;function oe(e){if(e){var t=e._owner,r=re(e.type,e._source,t?t.type:null);$e.setExtraStackFrame(r)}else $e.setExtraStackFrame(null)}function ct(e,t,r,a,u){{var p=Function.call.bind(J);for(var l in e)if(p(e,l)){var s=void 0;try{if(typeof e[l]!="function"){var E=Error((a||"React class")+": "+r+" 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 E.name="Invariant Violation",E}s=e[l](t,l,a,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(b){s=b}s&&!(s instanceof Error)&&(oe(u),S("%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",r,l,typeof s),oe(null)),s instanceof Error&&!(s.message in De)&&(De[s.message]=!0,oe(u),S("Failed %s type: %s",r,s.message),oe(null))}}}var ut=Array.isArray;function pe(e){return ut(e)}function ft(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,r=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r}}function dt(e){try{return Fe(e),!1}catch{return!0}}function Fe(e){return""+e}function Ne(e){if(dt(e))return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ft(e)),Fe(e)}var Ue=F.ReactCurrentOwner,pt={key:!0,ref:!0,__self:!0,__source:!0},Le,ze;function gt(e){if(J.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function mt(e){if(J.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"&&Ue.current}function vt(e,t){{var r=function(){Le||(Le=!0,S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}}function bt(e,t){{var r=function(){ze||(ze=!0,S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}}var yt=function(e,t,r,a,u,p,l){var s={$$typeof:n,type:e,key:t,ref:r,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:u}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function xt(e,t,r,a,u){{var p,l={},s=null,E=null;r!==void 0&&(Ne(r),s=""+r),mt(t)&&(Ne(t.key),s=""+t.key),gt(t)&&(E=t.ref,ht(t));for(p in t)J.call(t,p)&&!pt.hasOwnProperty(p)&&(l[p]=t[p]);if(e&&e.defaultProps){var b=e.defaultProps;for(p in b)l[p]===void 0&&(l[p]=b[p])}if(s||E){var y=typeof e=="function"?e.displayName||e.name||"Unknown":e;s&&vt(l,y),E&&bt(l,y)}return yt(e,s,E,u,a,Ue.current,l)}}var ge=F.ReactCurrentOwner,Ye=F.ReactDebugCurrentFrame;function z(e){if(e){var t=e._owner,r=re(e.type,e._source,t?t.type:null);Ye.setExtraStackFrame(r)}else Ye.setExtraStackFrame(null)}var me;me=!1;function he(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function We(){{if(ge.current){var e=I(ge.current.type);if(e)return`
|
|
52
52
|
|
|
53
53
|
Check the render method of \``+e+"`."}return""}}function _t(e){return""}var Ve={};function kt(e){{var t=We();if(!t){var r=typeof e=="string"?e:e.displayName||e.name;r&&(t=`
|
|
54
54
|
|
|
55
|
-
Check the top-level render call using <`+r+">.")}return t}}function Je(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var r=kt(t);if(Ve[r])return;Ve[r]=!0;var a="";e&&e._owner&&e._owner!==ge.current&&(a=" It was passed a child from "+I(e._owner.type)+"."),z(e),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,a),z(null)}}function He(e,t){{if(typeof e!="object")return;if(pe(e))for(var r=0;r<e.length;r++){var a=e[r];he(a)&&Je(a,t)}else if(he(e))e._store&&(e._store.validated=!0);else if(e){var u=Oe(e);if(typeof u=="function"&&u!==e.entries)for(var p=u.call(e),l;!(l=p.next()).done;)he(l.value)&&Je(l.value,t)}}}function Rt(e){{var t=e.type;if(t==null||typeof t=="string")return;var r;if(typeof t=="function")r=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===m||t.$$typeof===_))r=t.propTypes;else return;if(r){var a=I(t);ct(r,e.props,"prop",a,e)}else if(t.PropTypes!==void 0&&!me){me=!0;var u=I(t);S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",u||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function wt(e){{for(var t=Object.keys(e.props),r=0;r<t.length;r++){var a=t[r];if(a!=="children"&&a!=="key"){z(e),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),z(null);break}}e.ref!==null&&(z(e),S("Invalid attribute `ref` supplied to `React.Fragment`."),z(null))}}var qe={};function Ke(e,t,r,a,u,p){{var l=L(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
|
|
55
|
+
Check the top-level render call using <`+r+">.")}return t}}function Je(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var r=kt(t);if(Ve[r])return;Ve[r]=!0;var a="";e&&e._owner&&e._owner!==ge.current&&(a=" It was passed a child from "+I(e._owner.type)+"."),z(e),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,a),z(null)}}function He(e,t){{if(typeof e!="object")return;if(pe(e))for(var r=0;r<e.length;r++){var a=e[r];he(a)&&Je(a,t)}else if(he(e))e._store&&(e._store.validated=!0);else if(e){var u=Oe(e);if(typeof u=="function"&&u!==e.entries)for(var p=u.call(e),l;!(l=p.next()).done;)he(l.value)&&Je(l.value,t)}}}function Rt(e){{var t=e.type;if(t==null||typeof t=="string")return;var r;if(typeof t=="function")r=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===m||t.$$typeof===_))r=t.propTypes;else return;if(r){var a=I(t);ct(r,e.props,"prop",a,e)}else if(t.PropTypes!==void 0&&!me){me=!0;var u=I(t);S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",u||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function wt(e){{for(var t=Object.keys(e.props),r=0;r<t.length;r++){var a=t[r];if(a!=="children"&&a!=="key"){z(e),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),z(null);break}}e.ref!==null&&(z(e),S("Invalid attribute `ref` supplied to `React.Fragment`."),z(null))}}var qe={};function Ke(e,t,r,a,u,p){{var l=L(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 E=_t();E?s+=E:s+=We();var b;e===null?b="null":pe(e)?b="array":e!==void 0&&e.$$typeof===n?(b="<"+(I(e.type)||"Unknown")+" />",s=" Did you accidentally export a JSX literal instead of a component?"):b=typeof e,S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",b,s)}var y=xt(e,t,r,u,p);if(y==null)return y;if(l){var T=t.children;if(T!==void 0)if(a)if(pe(T)){for(var Y=0;Y<T.length;Y++)He(T[Y],e);Object.freeze&&Object.freeze(T)}else S("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 He(T,e)}if(J.call(t,"key")){var N=I(e),j=Object.keys(t).filter(function(Pt){return Pt!=="key"}),ve=j.length>0?"{key: someKey, "+j.join(": ..., ")+": ...}":"{key: someKey}";if(!qe[N+ve]){var Ct=j.length>0?"{"+j.join(": ..., ")+": ...}":"{}";S(`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} />`,ve,N,Ct,N),qe[N+ve]=!0}}return e===f?wt(y):Rt(y),y}}function St(e,t,r){return Ke(e,t,r,!0)}function Et(e,t,r){return Ke(e,t,r,!1)}var Ot=Et,jt=St;Xe.Fragment=f,Xe.jsx=Ot,Xe.jsxs=jt}()),Xe}process.env.NODE_ENV==="production"?tr():rr();const or="0.0.37",Lt={version:or},Z={},ot={module:"",v:Lt.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{}};function le(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}le().elcrm||(le().elcrm={}),Object.assign(le().elcrm,{router:Lt.version});function X(o){const n=le();n.ROUTER_PARAMS?n.ROUTER_PARAMS={...n.ROUTER_PARAMS,...o}:n.ROUTER_PARAMS={...ot,...o}}function C(){return le().ROUTER_PARAMS||ot}function be(o){const n=le();n.ROUTER_PARAMS?n.ROUTER_PARAMS.LISTENER={...n.ROUTER_PARAMS.LISTENER,...o}:n.ROUTER_PARAMS.LISTENER={...o}}function Q(){return le().ROUTER_PARAMS.LISTENER||ot.LISTENER}var ye;(o=>{function n(){var v;let k=sessionStorage.getItem("f");if(k){if(k=ne.deCode(k),!k)return!1;X({id:k.id,tab:k.tab,page:k.page,module:k.module,time:k.time,payment:{active:!0},module_admin:k.module_admin})}else X({id:0,tab:"",page:(v=localStorage.getItem("d"))!=null&&v.length?C().page:C().auth,module:C().module});return!0}function i(){Z.id=0,Z.tab="",Z.page=C().page,Z.module=C().module}o.Reset=i;function f({module:v=C().module,page:k=C().page,auth:B=C().auth}){X({page:k,module:v,auth:B}),n()}o.Default=f;function g(v){let k=L=>(X({page:L}),L);const[B,D]=R.useState(P()||v&&k(v)||C().page);return be({page:L=>{D(L)}}),B}o.usePage=g;function h(v,k=!0,B={}){X({page:v,...B}),sessionStorage.setItem(C().STORAGE,ne.enCode(C())),k&&Q().page(v)}o.setPage=h;function P(){return C().page}o.getPage=P;function x(v){return C().page===v}o.isPage=x;function m(v,k){const[B,D]=R.useState(d()||v||C().module);return be({module:D}),B}o.useModule=m;function w(v,k=!0){X({module:v}),sessionStorage.setItem(C().STORAGE,ne.enCode(C())),k&&Q().module(v)}o.setModule=w;function d(){return C().module||""}o.getModule=d;function _(v){return C().module===v}o.isModule=_;function A(v,k){if(typeof v!="function"){const[B,D]=R.useState(!k),[L,ie]=R.useState(v||ae());return be({tabs:ie}),k&&R.useEffect(()=>{D(!0)},[]),[L,B]}else be({tabs:v})}o.useTabs=A;async function U(v,k=!0){X({tab:v}),sessionStorage.setItem(C().STORAGE,ne.enCode(C())),k&&(Q().tabs&&Q().tabs(v))}o.setTabs=U;function ae(){return C().tab}o.getTabs=ae;function Ee(v){return C().tab===v}o.isTabs=Ee;function Oe(v){if(typeof v!="function"){const[k,B]=R.useState(v||xe());return be({id:D=>{B(D)}}),k}else be({id:v})}o.useId=Oe;function F(v){}o.subId=F;async function S(v,k=!0){X({id:v}),sessionStorage.setItem(C().STORAGE,ne.enCode(C())),k&&Q().id(v)}o.setId=S;function xe(){return C().id}o.getId=xe;function je(v){return Number(C().id)===v}o.isId=je;async function Ce(v){var k,B,D,L,ie,se,I,M;const{page:$,module:q,tab:K,id:G}=v;$!==void 0&&(Z.page=$),q!==void 0&&(Z.module=q),K!==void 0&&(Z.tab=K),G!==void 0&&(Z.id=G),X({...Z}),G!==void 0&&((B=(k=Q()).id)==null||B.call(k,G)),K!==void 0&&((L=(D=Q()).tabs)==null||L.call(D,K)),q!==void 0&&((se=(ie=Q()).module)==null||se.call(ie,q)),$!==void 0&&((M=(I=Q()).page)==null||M.call(I,$)),sessionStorage.setItem(C().STORAGE,ne.enCode(C()))}o.navigate=Ce})(ye||(ye={}));let Qe={};function nr(){const[o,n]=R.useState([]);return Qe.set=i=>{n([...o,i])},Qe.del=i=>{o.forEach((f,g)=>{f.key===i&&o.splice(g,1)}),n(o)},o.length===0?c.jsx(c.Fragment,{}):c.jsx("div",{className:"notice",children:o.map(i=>i.item)})}function ar(o){let n=new Date().getTime();o.key=n,Qe.set({item:c.jsx(ir,{data:o},n),key:n})}function ir(o){const n=o.data;let[i]=R.useState("show"),[f,g]=R.useState(!1);R.useEffect(()=>{setTimeout(function(){g(!0),Qe.del(n.key)},5e3)},[n.key]);let h;switch(n.type){case"error":h=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":h=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":h=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:h="icon fa fa-exclamation-circle";break}return c.jsx(c.Fragment,{children:f?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:h}),c.jsx("span",{className:"text",children:n.text})]})})}let et={Send:ar,Init:nr},we=()=>{};const zt=({children:o,title:n,isOverlay:i=!0})=>{const[f,g]=R.useState(!1);return we=()=>{g(!0),setTimeout(()=>{Wt.onClose()},300)},c.jsx("div",{className:`footer-menu-overlay ${i?"is-overlay":""} ${f?"closing":""}`,onClick:we,children:c.jsxs("div",{className:`footer-menu-popup-book ${f?"closing":""}`,onClick:h=>h.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:"✕"})]}),o]})})},Yt={h:"_h_rl5ga_1",row:"_row_rl5ga_14",column:"_column_rl5ga_17"},Wt=[],Vt=(o,n)=>o.findIndex(i=>(i==null?void 0:i.page)===n),Jt=({actions:o,children:n,className:i,page:f,onPageChange:g,direction:h="row"})=>{const[P,x]=R.useState(null),[m,w]=R.useState(f?Vt(o||[],f):0);return Wt.onClose=()=>{x(null),w(f?Vt(o||[],f):0)},R.useEffect(()=>{document.addEventListener("blur",()=>{document.querySelector("footer").style.display="flex"}),document.addEventListener("focus",()=>{document.querySelector("footer").style.display="none"})},[]),c.jsxs(c.Fragment,{children:[P,c.jsxs("footer",{className:`${Yt.h} ${Yt[h]} ${i} `,children:[n,o&&o.map((d,_)=>c.jsx("div",{"data-active":m===_?"true":"false",onClick:()=>{d.page&&(w(_),g==null||g(d.page)),d.callback&&(d.callback(),w(_)),d.component&&(m===_?we():(x(d.component),w(_)))},children:d.icon},_))]})]})},ce={is:!1,MainButton:{},BackButton:{}};let W={};W.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"},W.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"},W.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 sr=()=>{if(location.hostname==="localhost"){let[o,n]=R.useState(!1),[i,f]=R.useState(!1),[g,h]=R.useState("dark"),[P,x]=R.useState(!1),[m,w]=R.useState(!1);ce.is=!0,ce.MainButton.set=n,ce.BackButton.set=f,R.useEffect(()=>{W[g]["--tg-theme-bg-color-alpha"]=W[g]["--tg-theme-bg-color"]+"b3",W[g]["--tg-theme-secondary-bg-color-alpha"]=W[g]["--tg-theme-secondary-bg-color"]+"d3";for(let A in W[g])document.documentElement.style.setProperty(A,W[g][A]);Se.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let d=A=>{for(let U in W[A])document.documentElement.style.setProperty(U,W[A][U]);h(A),x(!1)},_=()=>{x(!1),w(!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 A;i.page===void 0?(A=i.callback)==null||A.call(i):ye.setPage(i.page)},className:"b",children:"Назад"}),c.jsx("div",{className:"o",onClick:()=>x(!P),children:"Меню"})]}),c.jsx(et.Init,{}),o&&c.jsx("div",{className:"mb",children:c.jsx("button",{onClick:()=>{o.page&&ye.setPage(o.page),o.callback&&o.callback()},children:o.text})}),P?c.jsxs("div",{className:"tm",children:[c.jsxs("ul",{children:[c.jsx("li",{children:c.jsx("button",{onClick:_,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(!P),children:"Closed"})})]})]}):"",m?c.jsx(lr,{setAuthorization:w}):""]})}else return R.useEffect(()=>{document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",Se.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",Se.themeParams.bg_color+"b3"),Se.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),c.jsx(c.Fragment,{children:c.jsx(et.Init,{})})},lr=({setAuthorization:o})=>{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:" Сохранить "})]})})},V={state:[!1],listen:[],router:o=>{o===!1?(E.default.WebApp.BackButton.isVisible=!1,E.default.WebApp.BackButton.offClick(V.listen[0]),V.listen.shift(),V.state.length!==1&&V.state.pop()):(E.default.WebApp.BackButton.isVisible=!0,E.default.WebApp.BackButton.offClick(V.listen[0]),V.listen.shift(),V.listen.push(()=>{var i;let n=V.state.pop();n.page!==void 0?ye.setPage(n.page):(i=n.callback)==null||i.call(n)}),E.default.WebApp.BackButton.onClick(V.listen[0]))}};E.default=void 0,(o=>{o.WebApp=window.Telegram.WebApp,o.getUser=()=>{var n;return((n=o.WebApp.initDataUnsafe)==null?void 0:n.user)===void 0?{}:o.WebApp.initDataUnsafe},o.Notice=(n,i,f)=>{var g,h;i!==void 0?(et.Send({type:n,text:i,thema:f}),(g=o.WebApp.HapticFeedback)==null||g.notificationOccurred(n)):(et.Send(n),(h=o.WebApp.HapticFeedback)==null||h.notificationOccurred(n.type))},o.Header=sr,o.Footer=Jt,o.BottomSheet=zt,o.toggleBottomSheet=we,o.Modal=rt,o.MainButton={callback:[],set:n=>{ce.is?ce.MainButton.set(n):(o.WebApp.MainButton.callback.forEach(i=>{o.WebApp.MainButton.offClick(i)}),o.WebApp.MainButton.callback=[],typeof n=="boolean"?o.WebApp.MainButton.isVisible=!1:(o.WebApp.MainButton.text=n.text,n.color&&(o.WebApp.MainButton.color=n.color),n.textColor&&(o.WebApp.MainButton.textColor=n.textColor),o.WebApp.MainButton.isVisible=!0,o.WebApp.MainButton.isActive=n.isActive===void 0?!0:n.isActive,o.WebApp.MainButton.callback.push(()=>{var i;n.page===void 0?(i=n.callback)==null||i.call(n):ye.setPage(n.page)}),o.WebApp.MainButton.onClick(o.WebApp.MainButton.callback[0])))}},o.BackButton=n=>{ce.is?ce.BackButton.set(n):(V.state.push(n),V.router(n))}})(E.default||(E.default={}));const cr=Jt,ur=zt,fr=E.default.BackButton,dr=E.default.Notice,{Header:pr,toggleBottomSheet:gr,Modal:mr,MainButton:hr,WebApp:Se,getUser:vr}=E.default;E.BackButton=fr,E.BottomSheet=ur,E.Footer=cr,E.Header=pr,E.MainButton=hr,E.Modal=mr,E.Notice=dr,E.WebApp=Se,E.getUser=vr,E.toggleBottomSheet=gr,Object.defineProperties(E,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
60
|
+
<%s key={someKey} {...props} />`,ve,N,Ct,N),qe[N+ve]=!0}}return e===f?wt(y):Rt(y),y}}function St(e,t,r){return Ke(e,t,r,!0)}function Et(e,t,r){return Ke(e,t,r,!1)}var Ot=Et,jt=St;Xe.Fragment=f,Xe.jsx=Ot,Xe.jsxs=jt}()),Xe}process.env.NODE_ENV==="production"?tr():rr();const or="0.0.37",Lt={version:or},Z={},ot={module:"",v:Lt.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{}};function le(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}le().elcrm||(le().elcrm={}),Object.assign(le().elcrm,{router:Lt.version});function X(o){const n=le();n.ROUTER_PARAMS?n.ROUTER_PARAMS={...n.ROUTER_PARAMS,...o}:n.ROUTER_PARAMS={...ot,...o}}function C(){return le().ROUTER_PARAMS||ot}function be(o){const n=le();n.ROUTER_PARAMS?n.ROUTER_PARAMS.LISTENER={...n.ROUTER_PARAMS.LISTENER,...o}:n.ROUTER_PARAMS.LISTENER={...o}}function Q(){return le().ROUTER_PARAMS.LISTENER||ot.LISTENER}var ye;(o=>{function n(){var v;let k=sessionStorage.getItem("f");if(k){if(k=ne.deCode(k),!k)return!1;X({id:k.id,tab:k.tab,page:k.page,module:k.module,time:k.time,payment:{active:!0},module_admin:k.module_admin})}else X({id:0,tab:"",page:(v=localStorage.getItem("d"))!=null&&v.length?C().page:C().auth,module:C().module});return!0}function i(){Z.id=0,Z.tab="",Z.page=C().page,Z.module=C().module}o.Reset=i;function f({module:v=C().module,page:k=C().page,auth:B=C().auth}){X({page:k,module:v,auth:B}),n()}o.Default=f;function g(v){let k=L=>(X({page:L}),L);const[B,D]=R.useState(P()||v&&k(v)||C().page);return be({page:L=>{D(L)}}),B}o.usePage=g;function h(v,k=!0,B={}){X({page:v,...B}),sessionStorage.setItem(C().STORAGE,ne.enCode(C())),k&&Q().page(v)}o.setPage=h;function P(){return C().page}o.getPage=P;function x(v){return C().page===v}o.isPage=x;function m(v,k){const[B,D]=R.useState(d()||v||C().module);return be({module:D}),B}o.useModule=m;function w(v,k=!0){X({module:v}),sessionStorage.setItem(C().STORAGE,ne.enCode(C())),k&&Q().module(v)}o.setModule=w;function d(){return C().module||""}o.getModule=d;function _(v){return C().module===v}o.isModule=_;function A(v,k){if(typeof v!="function"){const[B,D]=R.useState(!k),[L,ie]=R.useState(v||ae());return be({tabs:ie}),k&&R.useEffect(()=>{D(!0)},[]),[L,B]}else be({tabs:v})}o.useTabs=A;async function U(v,k=!0){X({tab:v}),sessionStorage.setItem(C().STORAGE,ne.enCode(C())),k&&(Q().tabs&&Q().tabs(v))}o.setTabs=U;function ae(){return C().tab}o.getTabs=ae;function Ee(v){return C().tab===v}o.isTabs=Ee;function Oe(v){if(typeof v!="function"){const[k,B]=R.useState(v||_e());return be({id:D=>{B(D)}}),k}else be({id:v})}o.useId=Oe;function F(v){}o.subId=F;async function S(v,k=!0){X({id:v}),sessionStorage.setItem(C().STORAGE,ne.enCode(C())),k&&Q().id(v)}o.setId=S;function _e(){return C().id}o.getId=_e;function je(v){return Number(C().id)===v}o.isId=je;async function Ce(v){var k,B,D,L,ie,se,I,M;const{page:$,module:q,tab:K,id:G}=v;$!==void 0&&(Z.page=$),q!==void 0&&(Z.module=q),K!==void 0&&(Z.tab=K),G!==void 0&&(Z.id=G),X({...Z}),G!==void 0&&((B=(k=Q()).id)==null||B.call(k,G)),K!==void 0&&((L=(D=Q()).tabs)==null||L.call(D,K)),q!==void 0&&((se=(ie=Q()).module)==null||se.call(ie,q)),$!==void 0&&((M=(I=Q()).page)==null||M.call(I,$)),sessionStorage.setItem(C().STORAGE,ne.enCode(C()))}o.navigate=Ce})(ye||(ye={}));let Qe={};function nr(){const[o,n]=R.useState([]);return Qe.set=i=>{n([...o,i])},Qe.del=i=>{o.forEach((f,g)=>{f.key===i&&o.splice(g,1)}),n(o)},o.length===0?c.jsx(c.Fragment,{}):c.jsx("div",{className:"notice",children:o.map(i=>i.item)})}function ar(o){let n=new Date().getTime();o.key=n,Qe.set({item:c.jsx(ir,{data:o},n),key:n})}function ir(o){const n=o.data;let[i]=R.useState("show"),[f,g]=R.useState(!1);R.useEffect(()=>{setTimeout(function(){g(!0),Qe.del(n.key)},5e3)},[n.key]);let h;switch(n.type){case"error":h=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":h=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":h=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:h="icon fa fa-exclamation-circle";break}return c.jsx(c.Fragment,{children:f?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:h}),c.jsx("span",{className:"text",children:n.text})]})})}let et={Send:ar,Init:nr},Se=()=>{};const zt=({children:o,title:n,isOverlay:i=!0})=>{const[f,g]=R.useState(!1);return Se=()=>{g(!0),setTimeout(()=>{Wt.onClose()},300)},c.jsx("div",{className:`footer-menu-overlay ${i?"is-overlay":""} ${f?"closing":""}`,onClick:Se,children:c.jsxs("div",{className:`footer-menu-popup-book ${f?"closing":""}`,onClick:h=>h.stopPropagation(),children:[c.jsxs("div",{className:"footer-menu-header",children:[c.jsx("h3",{children:n}),c.jsx("button",{className:"footer-menu-close-btn",onClick:Se,children:"✕"})]}),o]})})},Yt={h:"_h_rl5ga_1",row:"_row_rl5ga_14",column:"_column_rl5ga_17"},Wt=[],Vt=(o,n)=>o.findIndex(i=>(i==null?void 0:i.page)===n),Jt=({actions:o,children:n,className:i,page:f,onPageChange:g,direction:h="row"})=>{const[P,x]=R.useState(null),[m,w]=R.useState(f?Vt(o||[],f):0);return Wt.onClose=()=>{x(null),w(f?Vt(o||[],f):0)},R.useEffect(()=>{document.addEventListener("blur",()=>{document.querySelector("footer").style.display="flex"}),document.addEventListener("focus",()=>{document.querySelector("footer").style.display="none"})},[]),c.jsxs(c.Fragment,{children:[P,c.jsxs("footer",{className:`${Yt.h} ${Yt[h]} ${i} `,children:[n,o&&o.map((d,_)=>c.jsx("div",{"data-active":m===_?"true":"false",onClick:()=>{d.page&&(w(_),g==null||g(d.page)),d.callback&&(d.callback(),w(_)),d.component&&(m===_?Se():(x(d.component),w(_)))},children:d.icon},_))]})]})},ce={is:!1,MainButton:{},BackButton:{}};let W={};W.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"},W.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"},W.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 sr=()=>{if(location.hostname==="localhost"){let[o,n]=R.useState(!1),[i,f]=R.useState(!1),[g,h]=R.useState("dark"),[P,x]=R.useState(!1),[m,w]=R.useState(!1);ce.is=!0,ce.MainButton.set=n,ce.BackButton.set=f,R.useEffect(()=>{W[g]["--tg-theme-bg-color-alpha"]=W[g]["--tg-theme-bg-color"]+"b3",W[g]["--tg-theme-secondary-bg-color-alpha"]=W[g]["--tg-theme-secondary-bg-color"]+"d3";for(let A in W[g])document.documentElement.style.setProperty(A,W[g][A]);xe.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let d=A=>{for(let U in W[A])document.documentElement.style.setProperty(U,W[A][U]);h(A),x(!1)},_=()=>{x(!1),w(!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 A;i.page===void 0?(A=i.callback)==null||A.call(i):ye.setPage(i.page)},className:"b",children:"Назад"}),c.jsx("div",{className:"o",onClick:()=>x(!P),children:"Меню"})]}),c.jsx(et.Init,{}),o&&c.jsx("div",{className:"mb",children:c.jsx("button",{onClick:()=>{o.page&&ye.setPage(o.page),o.callback&&o.callback()},children:o.text})}),P?c.jsxs("div",{className:"tm",children:[c.jsxs("ul",{children:[c.jsx("li",{children:c.jsx("button",{onClick:_,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(!P),children:"Closed"})})]})]}):"",m?c.jsx(lr,{setAuthorization:w}):""]})}else return R.useEffect(()=>{document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",xe.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",xe.themeParams.bg_color+"b3"),xe.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),c.jsx(c.Fragment,{children:c.jsx(et.Init,{})})},lr=({setAuthorization:o})=>{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:" Сохранить "})]})})},V={state:[!1],listen:[],router:o=>{o===!1?(O.default.WebApp.BackButton.isVisible=!1,O.default.WebApp.BackButton.offClick(V.listen[0]),V.listen.shift(),V.state.length!==1&&V.state.pop()):(O.default.WebApp.BackButton.isVisible=!0,O.default.WebApp.BackButton.offClick(V.listen[0]),V.listen.shift(),V.listen.push(()=>{var i;let n=V.state.pop();n.page!==void 0?ye.setPage(n.page):(i=n.callback)==null||i.call(n)}),xe.BackButton.onClick(V.listen[0]))}};O.default=void 0,(o=>{o.WebApp=window.Telegram.WebApp,o.getUser=()=>{var n;return((n=o.WebApp.initDataUnsafe)==null?void 0:n.user)===void 0?{}:o.WebApp.initDataUnsafe},o.Notice=(n,i,f)=>{var g,h;i!==void 0?(et.Send({type:n,text:i,thema:f}),(g=o.WebApp.HapticFeedback)==null||g.notificationOccurred(n)):(et.Send(n),(h=o.WebApp.HapticFeedback)==null||h.notificationOccurred(n.type))},o.Header=sr,o.Footer=Jt,o.BottomSheet=zt,o.toggleBottomSheet=Se,o.Modal=rt,o.MainButton={callback:[],set:n=>{ce.is?ce.MainButton.set(n):(o.WebApp.MainButton.callback.forEach(i=>{o.WebApp.MainButton.offClick(i)}),o.WebApp.MainButton.callback=[],typeof n=="boolean"?o.WebApp.MainButton.isVisible=!1:(o.WebApp.MainButton.text=n.text,n.color&&(o.WebApp.MainButton.color=n.color),n.textColor&&(o.WebApp.MainButton.textColor=n.textColor),o.WebApp.MainButton.isVisible=!0,o.WebApp.MainButton.isActive=n.isActive===void 0?!0:n.isActive,o.WebApp.MainButton.callback.push(()=>{var i;n.page===void 0?(i=n.callback)==null||i.call(n):ye.setPage(n.page)}),o.WebApp.MainButton.onClick(o.WebApp.MainButton.callback[0])))}},o.BackButton=n=>{ce.is?ce.BackButton.set(n):(V.state.push(n),V.router(n))}})(O.default||(O.default={}));const cr=Jt,ur=zt,fr=O.default.BackButton,dr=O.default.Notice,{Header:pr,toggleBottomSheet:gr,Modal:mr,MainButton:hr,WebApp:xe,getUser:vr}=O.default;O.BackButton=fr,O.BottomSheet=ur,O.Footer=cr,O.Header=pr,O.MainButton=hr,O.Modal=mr,O.Notice=dr,O.WebApp=xe,O.getUser=vr,O.toggleBottomSheet=gr,Object.defineProperties(O,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|