@elcrm/telegram 0.0.88 → 0.0.89
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/Menu/index.d.ts +1 -0
- package/dist/index.es.js +26 -24
- package/dist/index.umd.js +12 -12
- package/package.json +1 -1
package/dist/Menu/index.d.ts
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import M, { useState as
|
|
1
|
+
import M, { useState as ce, useEffect as tt } from "react";
|
|
2
2
|
import './index.css';var It = { exports: {} }, Ze = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
@@ -277,10 +277,10 @@ function Zt() {
|
|
|
277
277
|
var z = e ? e.displayName || e.name : "", B = z ? te(z) : "";
|
|
278
278
|
return typeof e == "function" && re.set(e, B), B;
|
|
279
279
|
}
|
|
280
|
-
function
|
|
280
|
+
function ct(e, t, o) {
|
|
281
281
|
return Me(e, !1);
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function ut(e) {
|
|
284
284
|
var t = e.prototype;
|
|
285
285
|
return !!(t && t.isReactComponent);
|
|
286
286
|
}
|
|
@@ -288,7 +288,7 @@ function Zt() {
|
|
|
288
288
|
if (e == null)
|
|
289
289
|
return "";
|
|
290
290
|
if (typeof e == "function")
|
|
291
|
-
return Me(e,
|
|
291
|
+
return Me(e, ut(e));
|
|
292
292
|
if (typeof e == "string")
|
|
293
293
|
return te(e);
|
|
294
294
|
switch (e) {
|
|
@@ -300,7 +300,7 @@ function Zt() {
|
|
|
300
300
|
if (typeof e == "object")
|
|
301
301
|
switch (e.$$typeof) {
|
|
302
302
|
case d:
|
|
303
|
-
return
|
|
303
|
+
return ct(e.render);
|
|
304
304
|
case m:
|
|
305
305
|
return ne(e.type, t, o);
|
|
306
306
|
case _: {
|
|
@@ -633,7 +633,7 @@ var $t;
|
|
|
633
633
|
onCallbackModal: d,
|
|
634
634
|
nameModal: x
|
|
635
635
|
}) {
|
|
636
|
-
const [g, m] =
|
|
636
|
+
const [g, m] = ce(!1), [_, C] = ce(!1);
|
|
637
637
|
if (J[x].onClose = () => {
|
|
638
638
|
U.BackButton(!1), C(!0), setTimeout(() => {
|
|
639
639
|
m(!1), C(!1), d == null || d(), J.x(x);
|
|
@@ -649,7 +649,7 @@ var $t;
|
|
|
649
649
|
function a({
|
|
650
650
|
import_modules: R
|
|
651
651
|
}) {
|
|
652
|
-
let [d, x] =
|
|
652
|
+
let [d, x] = ce([]);
|
|
653
653
|
return J.x = (g) => {
|
|
654
654
|
x(g ? d.filter((m) => m.key !== g) : []);
|
|
655
655
|
}, tt(() => {
|
|
@@ -1092,10 +1092,10 @@ function ar() {
|
|
|
1092
1092
|
var z = e ? e.displayName || e.name : "", B = z ? te(z) : "";
|
|
1093
1093
|
return typeof e == "function" && re.set(e, B), B;
|
|
1094
1094
|
}
|
|
1095
|
-
function
|
|
1095
|
+
function ct(e, t, o) {
|
|
1096
1096
|
return Me(e, !1);
|
|
1097
1097
|
}
|
|
1098
|
-
function
|
|
1098
|
+
function ut(e) {
|
|
1099
1099
|
var t = e.prototype;
|
|
1100
1100
|
return !!(t && t.isReactComponent);
|
|
1101
1101
|
}
|
|
@@ -1103,7 +1103,7 @@ function ar() {
|
|
|
1103
1103
|
if (e == null)
|
|
1104
1104
|
return "";
|
|
1105
1105
|
if (typeof e == "function")
|
|
1106
|
-
return Me(e,
|
|
1106
|
+
return Me(e, ut(e));
|
|
1107
1107
|
if (typeof e == "string")
|
|
1108
1108
|
return te(e);
|
|
1109
1109
|
switch (e) {
|
|
@@ -1115,7 +1115,7 @@ function ar() {
|
|
|
1115
1115
|
if (typeof e == "object")
|
|
1116
1116
|
switch (e.$$typeof) {
|
|
1117
1117
|
case d:
|
|
1118
|
-
return
|
|
1118
|
+
return ct(e.render);
|
|
1119
1119
|
case m:
|
|
1120
1120
|
return ne(e.type, t, o);
|
|
1121
1121
|
case _: {
|
|
@@ -1503,7 +1503,7 @@ function xe(r) {
|
|
|
1503
1503
|
function se() {
|
|
1504
1504
|
return Se().ROUTER_PARAMS.LISTENER || q.LISTENER;
|
|
1505
1505
|
}
|
|
1506
|
-
var
|
|
1506
|
+
var ue;
|
|
1507
1507
|
((r) => {
|
|
1508
1508
|
function n() {
|
|
1509
1509
|
var y;
|
|
@@ -1654,7 +1654,7 @@ var ce;
|
|
|
1654
1654
|
);
|
|
1655
1655
|
}
|
|
1656
1656
|
r.navigate = Ce;
|
|
1657
|
-
})(
|
|
1657
|
+
})(ue || (ue = {}));
|
|
1658
1658
|
let at = {};
|
|
1659
1659
|
function sr() {
|
|
1660
1660
|
const [r, n] = M.useState([]);
|
|
@@ -1668,9 +1668,9 @@ function sr() {
|
|
|
1668
1668
|
}
|
|
1669
1669
|
function lr(r) {
|
|
1670
1670
|
let n = (/* @__PURE__ */ new Date()).getTime();
|
|
1671
|
-
r.key = n, at.set({ item: /* @__PURE__ */ s.jsx(
|
|
1671
|
+
r.key = n, at.set({ item: /* @__PURE__ */ s.jsx(cr, { data: r }, n), key: n });
|
|
1672
1672
|
}
|
|
1673
|
-
function
|
|
1673
|
+
function cr(r) {
|
|
1674
1674
|
const n = r.data;
|
|
1675
1675
|
let [a] = M.useState("show"), [f, c] = M.useState(!1);
|
|
1676
1676
|
M.useEffect(() => {
|
|
@@ -1764,8 +1764,8 @@ const Ht = ({
|
|
|
1764
1764
|
)
|
|
1765
1765
|
}
|
|
1766
1766
|
);
|
|
1767
|
-
},
|
|
1768
|
-
h:
|
|
1767
|
+
}, ur = "_h_1ryiq_1", fr = "_row_1ryiq_14", dr = "_column_1ryiq_17", Wt = {
|
|
1768
|
+
h: ur,
|
|
1769
1769
|
row: fr,
|
|
1770
1770
|
column: dr
|
|
1771
1771
|
}, Ae = [], Lt = (r, n) => r.findIndex((a) => (a == null ? void 0 : a.page) === n), Kt = ({
|
|
@@ -1873,7 +1873,7 @@ K.users = {
|
|
|
1873
1873
|
};
|
|
1874
1874
|
const pr = () => {
|
|
1875
1875
|
if (location.hostname === "localhost") {
|
|
1876
|
-
let [r, n] =
|
|
1876
|
+
let [r, n] = ce(!1), [a, f] = ce(!1), [c, p] = ce("dark"), [E, R] = ce(!1), [d, x] = ce(!1);
|
|
1877
1877
|
Re.is = !0, Re.MainButton.set = n, Re.BackButton.set = f, tt(() => {
|
|
1878
1878
|
K[c]["--tg-theme-bg-color-alpha"] = K[c]["--tg-theme-bg-color"] + "b3", K[c]["--tg-theme-secondary-bg-color-alpha"] = K[c]["--tg-theme-secondary-bg-color"] + "d3";
|
|
1879
1879
|
for (let _ in K[c])
|
|
@@ -1900,7 +1900,7 @@ const pr = () => {
|
|
|
1900
1900
|
{
|
|
1901
1901
|
onClick: () => {
|
|
1902
1902
|
var _;
|
|
1903
|
-
a.page === void 0 ? (_ = a.callback) == null || _.call(a) :
|
|
1903
|
+
a.page === void 0 ? (_ = a.callback) == null || _.call(a) : ue.setPage(a.page);
|
|
1904
1904
|
},
|
|
1905
1905
|
className: "b",
|
|
1906
1906
|
children: "Назад"
|
|
@@ -1913,7 +1913,7 @@ const pr = () => {
|
|
|
1913
1913
|
"button",
|
|
1914
1914
|
{
|
|
1915
1915
|
onClick: () => {
|
|
1916
|
-
r.page &&
|
|
1916
|
+
r.page && ue.setPage(r.page), r.callback && r.callback();
|
|
1917
1917
|
},
|
|
1918
1918
|
children: r.text
|
|
1919
1919
|
}
|
|
@@ -2003,7 +2003,7 @@ const pr = () => {
|
|
|
2003
2003
|
n: jr
|
|
2004
2004
|
}, wr = ({ items: r }) => {
|
|
2005
2005
|
const n = (f) => {
|
|
2006
|
-
|
|
2006
|
+
ue.setPage(f);
|
|
2007
2007
|
}, a = (f) => {
|
|
2008
2008
|
je.openTelegramLink(f);
|
|
2009
2009
|
};
|
|
@@ -2011,7 +2011,9 @@ const pr = () => {
|
|
|
2011
2011
|
"div",
|
|
2012
2012
|
{
|
|
2013
2013
|
className: be.i,
|
|
2014
|
-
onClick: () =>
|
|
2014
|
+
onClick: () => {
|
|
2015
|
+
c.link && a(c.link), c.page && n(c.page), c.callback && c.callback();
|
|
2016
|
+
},
|
|
2015
2017
|
children: [
|
|
2016
2018
|
/* @__PURE__ */ s.jsxs("div", { className: be.c, children: [
|
|
2017
2019
|
/* @__PURE__ */ s.jsx(
|
|
@@ -2038,7 +2040,7 @@ const pr = () => {
|
|
|
2038
2040
|
r === !1 ? (U.WebApp.BackButton.isVisible = !1, U.WebApp.BackButton.offClick(L.listen[0]), L.listen.shift(), L.state.length !== 1 && L.state.pop()) : (U.WebApp.BackButton.isVisible = !0, U.WebApp.BackButton.offClick(L.listen[0]), L.listen.shift(), L.listen.push(() => {
|
|
2039
2041
|
var a;
|
|
2040
2042
|
let n = L.state.pop();
|
|
2041
|
-
L.prev =
|
|
2043
|
+
L.prev = ue.getPage(), n.page !== void 0 ? ue.setPage(n.page) : (a = n.callback) == null || a.call(n);
|
|
2042
2044
|
}), je.BackButton.onClick(L.listen[0]));
|
|
2043
2045
|
}
|
|
2044
2046
|
};
|
|
@@ -2071,7 +2073,7 @@ var U;
|
|
|
2071
2073
|
r.WebApp.MainButton.offClick(a);
|
|
2072
2074
|
}), 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(() => {
|
|
2073
2075
|
var a;
|
|
2074
|
-
n.page === void 0 ? (a = n.callback) == null || a.call(n) :
|
|
2076
|
+
n.page === void 0 ? (a = n.callback) == null || a.call(n) : ue.setPage(n.page);
|
|
2075
2077
|
}), r.WebApp.MainButton.onClick(
|
|
2076
2078
|
r.WebApp.MainButton.callback[0]
|
|
2077
2079
|
)));
|
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 Mt;function Kt(){if(Mt)return je;Mt=1;var r=E,n=Symbol.for("react.element"),a=Symbol.for("react.fragment"),f=Object.prototype.hasOwnProperty,
|
|
10
|
+
*/var Mt;function Kt(){if(Mt)return je;Mt=1;var r=E,n=Symbol.for("react.element"),a=Symbol.for("react.fragment"),f=Object.prototype.hasOwnProperty,c=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function S(_,d,j){var m,v={},x=null,I=null;j!==void 0&&(x=""+j),d.key!==void 0&&(x=""+d.key),d.ref!==void 0&&(I=d.ref);for(m in d)f.call(d,m)&&!p.hasOwnProperty(m)&&(v[m]=d[m]);if(_&&_.defaultProps)for(m in d=_.defaultProps,d)v[m]===void 0&&(v[m]=d[m]);return{$$typeof:n,type:_,key:x,ref:I,props:v,_owner:c.current}}return je.Fragment=a,je.jsx=S,je.jsxs=S,je}var Ae={};/**
|
|
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 $t;function Gt(){return $t||($t=1,process.env.NODE_ENV!=="production"&&function(){var r=E,n=Symbol.for("react.element"),a=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),
|
|
19
|
-
`+me+e}}var ve=!1,ae;{var lt=typeof WeakMap=="function"?WeakMap:Map;ae=new lt}function We(e,t){if(!e||ve)return"";{var o=ae.get(e);if(o!==void 0)return o}var i;ve=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var h;h=he.current,he.current=null,it();try{if(t){var
|
|
18
|
+
*/var $t;function Gt(){return $t||($t=1,process.env.NODE_ENV!=="production"&&function(){var r=E,n=Symbol.for("react.element"),a=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),_=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),D=Symbol.iterator,Re="@@iterator";function Pe(e){if(e===null||typeof e!="object")return null;var t=D&&e[D]||e[Re];return typeof t=="function"?t:null}var W=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function A(e){{for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];Te("error",e,o)}}function Te(e,t,o){{var i=W.ReactDebugCurrentFrame,g=i.getStackAddendum();g!==""&&(t+="%s",o=o.concat([g]));var h=o.map(function(u){return String(u)});h.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,h)}}var Ee=!1,Ie=!1,Me=!1,b=!1,R=!1,M;M=Symbol.for("react.module.reference");function F(e){return!!(typeof e=="string"||typeof e=="function"||e===f||e===p||R||e===c||e===j||e===m||b||e===I||Ee||Ie||Me||typeof e=="object"&&e!==null&&(e.$$typeof===x||e.$$typeof===v||e.$$typeof===S||e.$$typeof===_||e.$$typeof===d||e.$$typeof===M||e.getModuleId!==void 0))}function Y(e,t,o){var i=e.displayName;if(i)return i;var g=t.displayName||t.name||"";return g!==""?o+"("+g+")":o}function G(e){return e.displayName||"Context"}function $(e){if(e==null)return null;if(typeof e.tag=="number"&&A("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 a:return"Portal";case p:return"Profiler";case c:return"StrictMode";case j:return"Suspense";case m:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var t=e;return G(t)+".Consumer";case S:var o=e;return G(o._context)+".Provider";case d:return Y(e,e.render,"ForwardRef");case v:var i=e.displayName||null;return i!==null?i:$(e.type)||"Memo";case x:{var g=e,h=g._payload,u=g._init;try{return $(u(h))}catch{return null}}}return null}var B=Object.assign,N=0,Z,X,Q,ee,$e,De,Be;function Fe(){}Fe.__reactDisabledLog=!0;function it(){{if(N===0){Z=console.log,X=console.info,Q=console.warn,ee=console.error,$e=console.group,De=console.groupCollapsed,Be=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Fe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}N++}}function st(){{if(N--,N===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:B({},e,{value:Z}),info:B({},e,{value:X}),warn:B({},e,{value:Q}),error:B({},e,{value:ee}),group:B({},e,{value:$e}),groupCollapsed:B({},e,{value:De}),groupEnd:B({},e,{value:Be})})}N<0&&A("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var he=W.ReactCurrentDispatcher,me;function oe(e,t,o){{if(me===void 0)try{throw Error()}catch(g){var i=g.stack.trim().match(/\n( *(at )?)/);me=i&&i[1]||""}return`
|
|
19
|
+
`+me+e}}var ve=!1,ae;{var lt=typeof WeakMap=="function"?WeakMap:Map;ae=new lt}function We(e,t){if(!e||ve)return"";{var o=ae.get(e);if(o!==void 0)return o}var i;ve=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var h;h=he.current,he.current=null,it();try{if(t){var u=function(){throw Error()};if(Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(P){i=P}Reflect.construct(e,[],u)}else{try{u.call()}catch(P){i=P}e.call(u.prototype)}}else{try{throw Error()}catch(P){i=P}e()}}catch(P){if(P&&i&&typeof P.stack=="string"){for(var l=P.stack.split(`
|
|
20
20
|
`),O=i.stack.split(`
|
|
21
21
|
`),y=l.length-1,k=O.length-1;y>=1&&k>=0&&l[y]!==O[k];)k--;for(;y>=1&&k>=0;y--,k--)if(l[y]!==O[k]){if(y!==1||k!==1)do if(y--,k--,k<0||l[y]!==O[k]){var T=`
|
|
22
|
-
`+l[y].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&ae.set(e,T),T}while(y>=1&&k>=0);break}}}finally{ve=!1,he.current=h,st(),Error.prepareStackTrace=g}var q=e?e.displayName||e.name:"",U=q?oe(q):"";return typeof e=="function"&&ae.set(e,U),U}function ct(e,t,o){return We(e,!1)}function ut(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ie(e,t,o){if(e==null)return"";if(typeof e=="function")return We(e,ut(e));if(typeof e=="string")return oe(e);switch(e){case j:return oe("Suspense");case m:return oe("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return ct(e.render);case v:return ie(e.type,t,o);case x:{var i=e,g=i._payload,h=i._init;try{return ie(h(g),t,o)}catch{}}}return""}var K=Object.prototype.hasOwnProperty,Ue={},Le=W.ReactDebugCurrentFrame;function se(e){if(e){var t=e._owner,o=ie(e.type,e._source,t?t.type:null);Le.setExtraStackFrame(o)}else Le.setExtraStackFrame(null)}function ft(e,t,o,i,g){{var h=Function.call.bind(K);for(var
|
|
22
|
+
`+l[y].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&ae.set(e,T),T}while(y>=1&&k>=0);break}}}finally{ve=!1,he.current=h,st(),Error.prepareStackTrace=g}var q=e?e.displayName||e.name:"",U=q?oe(q):"";return typeof e=="function"&&ae.set(e,U),U}function ct(e,t,o){return We(e,!1)}function ut(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ie(e,t,o){if(e==null)return"";if(typeof e=="function")return We(e,ut(e));if(typeof e=="string")return oe(e);switch(e){case j:return oe("Suspense");case m:return oe("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return ct(e.render);case v:return ie(e.type,t,o);case x:{var i=e,g=i._payload,h=i._init;try{return ie(h(g),t,o)}catch{}}}return""}var K=Object.prototype.hasOwnProperty,Ue={},Le=W.ReactDebugCurrentFrame;function se(e){if(e){var t=e._owner,o=ie(e.type,e._source,t?t.type:null);Le.setExtraStackFrame(o)}else Le.setExtraStackFrame(null)}function ft(e,t,o,i,g){{var h=Function.call.bind(K);for(var u in e)if(h(e,u)){var l=void 0;try{if(typeof e[u]!="function"){var O=Error((i||"React class")+": "+o+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}l=e[u](t,u,i,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(y){l=y}l&&!(l instanceof Error)&&(se(g),A("%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).",i||"React class",o,u,typeof l),se(null)),l instanceof Error&&!(l.message in Ue)&&(Ue[l.message]=!0,se(g),A("Failed %s type: %s",o,l.message),se(null))}}}var dt=Array.isArray;function be(e){return dt(e)}function pt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,o=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function gt(e){try{return Ne(e),!1}catch{return!0}}function Ne(e){return""+e}function ze(e){if(gt(e))return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",pt(e)),Ne(e)}var Ye=W.ReactCurrentOwner,ht={key:!0,ref:!0,__self:!0,__source:!0},Ve,qe;function mt(e){if(K.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function vt(e){if(K.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function bt(e,t){typeof e.ref=="string"&&Ye.current}function yt(e,t){{var o=function(){Ve||(Ve=!0,A("%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 xt(e,t){{var o=function(){qe||(qe=!0,A("%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 _t=function(e,t,o,i,g,h,u){var l={$$typeof:n,type:e,key:t,ref:o,props:u,_owner:h};return l._store={},Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:g}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function kt(e,t,o,i,g){{var h,u={},l=null,O=null;o!==void 0&&(ze(o),l=""+o),vt(t)&&(ze(t.key),l=""+t.key),mt(t)&&(O=t.ref,bt(t,g));for(h in t)K.call(t,h)&&!ht.hasOwnProperty(h)&&(u[h]=t[h]);if(e&&e.defaultProps){var y=e.defaultProps;for(h in y)u[h]===void 0&&(u[h]=y[h])}if(l||O){var k=typeof e=="function"?e.displayName||e.name||"Unknown":e;l&&yt(u,k),O&&xt(u,k)}return _t(e,l,O,g,i,Ye.current,u)}}var ye=W.ReactCurrentOwner,He=W.ReactDebugCurrentFrame;function V(e){if(e){var t=e._owner,o=ie(e.type,e._source,t?t.type:null);He.setExtraStackFrame(o)}else He.setExtraStackFrame(null)}var xe;xe=!1;function _e(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function Je(){{if(ye.current){var e=$(ye.current.type);if(e)return`
|
|
23
23
|
|
|
24
24
|
Check the render method of \``+e+"`."}return""}}function wt(e){return""}var Ke={};function St(e){{var t=Je();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 Ge(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=St(t);if(Ke[o])return;Ke[o]=!0;var i="";e&&e._owner&&e._owner!==ye.current&&(i=" It was passed a child from "+$(e._owner.type)+"."),V(e),A('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,i),V(null)}}function Ze(e,t){{if(typeof e!="object")return;if(be(e))for(var o=0;o<e.length;o++){var i=e[o];_e(i)&&Ge(i,t)}else if(_e(e))e._store&&(e._store.validated=!0);else if(e){var g=Pe(e);if(typeof g=="function"&&g!==e.entries)for(var h=g.call(e),
|
|
26
|
+
Check the top-level render call using <`+o+">.")}return t}}function Ge(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=St(t);if(Ke[o])return;Ke[o]=!0;var i="";e&&e._owner&&e._owner!==ye.current&&(i=" It was passed a child from "+$(e._owner.type)+"."),V(e),A('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,i),V(null)}}function Ze(e,t){{if(typeof e!="object")return;if(be(e))for(var o=0;o<e.length;o++){var i=e[o];_e(i)&&Ge(i,t)}else if(_e(e))e._store&&(e._store.validated=!0);else if(e){var g=Pe(e);if(typeof g=="function"&&g!==e.entries)for(var h=g.call(e),u;!(u=h.next()).done;)_e(u.value)&&Ge(u.value,t)}}}function Rt(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===d||t.$$typeof===v))o=t.propTypes;else return;if(o){var i=$(t);ft(o,e.props,"prop",i,e)}else if(t.PropTypes!==void 0&&!xe){xe=!0;var g=$(t);A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",g||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Et(e){{for(var t=Object.keys(e.props),o=0;o<t.length;o++){var i=t[o];if(i!=="children"&&i!=="key"){V(e),A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),V(null);break}}e.ref!==null&&(V(e),A("Invalid attribute `ref` supplied to `React.Fragment`."),V(null))}}var Xe={};function Qe(e,t,o,i,g,h){{var u=F(e);if(!u){var l="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(l+=" 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 O=wt();O?l+=O:l+=Je();var y;e===null?y="null":be(e)?y="array":e!==void 0&&e.$$typeof===n?(y="<"+($(e.type)||"Unknown")+" />",l=" Did you accidentally export a JSX literal instead of a component?"):y=typeof e,A("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",y,l)}var k=kt(e,t,o,g,h);if(k==null)return k;if(u){var T=t.children;if(T!==void 0)if(i)if(be(T)){for(var q=0;q<T.length;q++)Ze(T[q],e);Object.freeze&&Object.freeze(T)}else A("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 Ze(T,e)}if(K.call(t,"key")){var U=$(e),P=Object.keys(t).filter(function(Tt){return Tt!=="key"}),ke=P.length>0?"{key: someKey, "+P.join(": ..., ")+": ...}":"{key: someKey}";if(!Xe[U+ke]){var Pt=P.length>0?"{"+P.join(": ..., ")+": ...}":"{}";A(`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} />`,ke,U,Pt,U),Xe[U+ke]=!0}}return e===f?Et(k):Rt(k),k}}function jt(e,t,o){return Qe(e,t,o,!0)}function At(e,t,o){return Qe(e,t,o,!1)}var Ot=At,Ct=jt;Ae.Fragment=f,Ae.jsx=Ot,Ae.jsxs=Ct}()),Ae}process.env.NODE_ENV==="production"?ot.exports=Kt():ot.exports=Gt();var s=ot.exports;let z={};var at;(r=>{function n({children:_,onCallbackModal:d,nameModal:j}){const[m,v]=E.useState(!1),[x,I]=E.useState(!1);if(z[j].onClose=()=>{w.default.BackButton(!1),I(!0),setTimeout(()=>{v(!1),I(!1),d==null||d(),z.x(j)},300)},E.useEffect(()=>{m?z[j].onClose():(w.default.BackButton({callback:()=>z[j].onClose()}),v(!0))},[]),!!m)return s.jsx("div",{className:`modal-overlay ${x?"closing":""}`,children:s.jsx("div",{className:`modal-popup ${x?"closing":""}`,children:s.jsx("div",{children:_})})})}r.Content=n;function a({import_modules:_}){let[d,j]=E.useState([]);return z.x=m=>{j(m?d.filter(v=>v.key!==m):[])},E.useEffect(()=>{_&&(z.i=_)},[]),z.add=(m,v=Date.now())=>{j([...d,{key:v,item:m}])},s.jsx(s.Fragment,{children:d.map(m=>m.item)})}r.Init=a;function f(_,d){z.add(s.jsx(n,{onCallbackModal:z["callback_modal"+d],nameModal:d||"",children:_},String(Date.now())),d)}r.Add=f;function
|
|
31
|
+
<%s key={someKey} {...props} />`,ke,U,Pt,U),Xe[U+ke]=!0}}return e===f?Et(k):Rt(k),k}}function jt(e,t,o){return Qe(e,t,o,!0)}function At(e,t,o){return Qe(e,t,o,!1)}var Ot=At,Ct=jt;Ae.Fragment=f,Ae.jsx=Ot,Ae.jsxs=Ct}()),Ae}process.env.NODE_ENV==="production"?ot.exports=Kt():ot.exports=Gt();var s=ot.exports;let z={};var at;(r=>{function n({children:_,onCallbackModal:d,nameModal:j}){const[m,v]=E.useState(!1),[x,I]=E.useState(!1);if(z[j].onClose=()=>{w.default.BackButton(!1),I(!0),setTimeout(()=>{v(!1),I(!1),d==null||d(),z.x(j)},300)},E.useEffect(()=>{m?z[j].onClose():(w.default.BackButton({callback:()=>z[j].onClose()}),v(!0))},[]),!!m)return s.jsx("div",{className:`modal-overlay ${x?"closing":""}`,children:s.jsx("div",{className:`modal-popup ${x?"closing":""}`,children:s.jsx("div",{children:_})})})}r.Content=n;function a({import_modules:_}){let[d,j]=E.useState([]);return z.x=m=>{j(m?d.filter(v=>v.key!==m):[])},E.useEffect(()=>{_&&(z.i=_)},[]),z.add=(m,v=Date.now())=>{j([...d,{key:v,item:m}])},s.jsx(s.Fragment,{children:d.map(m=>m.item)})}r.Init=a;function f(_,d){z.add(s.jsx(n,{onCallbackModal:z["callback_modal"+d],nameModal:d||"",children:_},String(Date.now())),d)}r.Add=f;function c(_,d=Date.now().toString()){return z[d]={},{Open:v=>{r.Add(s.jsx(_,{...v,onCallbackModal:x=>{var I;(I=v.callback)==null||I.call(v,x)},nameModal:d},new Date().getTime()),d)}}}r.Create=c;function p(_){z[_].onClose()}r.Close=p;function S(_,d,j,m){z.i&&(m&&(j.callback=m),z.i(`${_}/modals/${d}.tsx`).then(v=>{v.default.Open(j)}))}r.Open=S})(at||(at={}));function Dt(){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 Ft(r){const n=Dt();n.CRYPTO_PARAMS?n.CRYPTO_PARAMS={...n.CRYPTO_PARAMS,...r}:n.CRYPTO_PARAMS={...Bt,...r}}function et(){return Dt().CRYPTO_PARAMS||Bt}const tt=r=>{let n=0;for(let f=0;f<r.length;f++){const c=r.charCodeAt(f);n=(n<<5)-n+c,n=n&n}n=Math.abs(n);let a="";for(let f=0;f<64;f++){const c=(n^f*197)&255;a+=c.toString(16).padStart(2,"0")}return a},Wt=(r,n)=>{let a=r+n;for(let c=0;c<et().iterations;c++)a=tt(a);const f=new Uint8Array(32);for(let c=0;c<32;c++)f[c]=parseInt(a.substring(c*2,c*2+2),16);return f},Ut=(r,n)=>{const a=new Uint8Array(r.length),f=new Uint8Array(r.length);let c=0;for(let p=0;p<r.length;p++){const S=p%n.length;c=n[S]+p+c&255,f[p]=c}for(let p=0;p<r.length;p++)a[p]=r[p]^f[p];return a},Zt=r=>new TextEncoder().encode(r),Xt=r=>new TextDecoder().decode(r),Qt=r=>{let n="";for(let a=0;a<r.length;a+=8192){const f=r.slice(a,Math.min(a+8192,r.length));n+=String.fromCharCode.apply(null,Array.from(f))}return btoa(n)},er=r=>{const n=atob(r),a=new Uint8Array(n.length);for(let f=0;f<n.length;f++)a[f]=n.charCodeAt(f);return a},tr=r=>{try{const n=tt(Date.now().toString()+Math.random()).substring(0,et().saltLength*2),a=tt(r+n).substring(0,8),f=Wt(et().key,n),c=Zt(r),p=Ut(c,f),S=Qt(p);return`${n}.${S}.${a}`}catch{throw new Error("Не удалось зашифровать данные")}},rr=r=>{try{const n=r.split(".");if(n.length!==3)throw new Error("Неверный формат зашифрованных данных");const a=n[0],f=n[1],c=n[2],p=Wt(et().key,a),S=er(f),_=Ut(S,p),d=Xt(_);if(tt(d+a).substring(0,8)!==c)throw new Error("Контрольная сумма не совпадает");return d}catch{return""}};var le;(r=>{r.setKey=n=>{Ft({key:n})},r.enCode=n=>{try{const a=JSON.stringify(n);return tr(a)}catch{throw new Error("Не удалось зашифровать объект")}},r.deCode=n=>{try{if(!n||n.length<10)return!1;const a=rr(n);return a&&JSON.parse(a)||!1}catch{return!1}},r.setSecurityParams=(n,a)=>{Ft({iterations:n,saltLength:a})}})(le||(le={}));var Oe={};/**
|
|
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 Lt;function nr(){if(Lt)return Oe;Lt=1;var r=E,n=Symbol.for("react.element"),a=Symbol.for("react.fragment"),f=Object.prototype.hasOwnProperty,
|
|
39
|
+
*/var Lt;function nr(){if(Lt)return Oe;Lt=1;var r=E,n=Symbol.for("react.element"),a=Symbol.for("react.fragment"),f=Object.prototype.hasOwnProperty,c=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function S(_,d,j){var m,v={},x=null,I=null;j!==void 0&&(x=""+j),d.key!==void 0&&(x=""+d.key),d.ref!==void 0&&(I=d.ref);for(m in d)f.call(d,m)&&!p.hasOwnProperty(m)&&(v[m]=d[m]);if(_&&_.defaultProps)for(m in d=_.defaultProps,d)v[m]===void 0&&(v[m]=d[m]);return{$$typeof:n,type:_,key:x,ref:I,props:v,_owner:c.current}}return Oe.Fragment=a,Oe.jsx=S,Oe.jsxs=S,Oe}var rt={};/**
|
|
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 Nt;function or(){return Nt||(Nt=1,process.env.NODE_ENV!=="production"&&function(){var r=E,n=Symbol.for("react.element"),a=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),
|
|
48
|
-
`+me+e}}var ve=!1,ae;{var lt=typeof WeakMap=="function"?WeakMap:Map;ae=new lt}function We(e,t){if(!e||ve)return"";{var o=ae.get(e);if(o!==void 0)return o}var i;ve=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var h;h=he.current,he.current=null,it();try{if(t){var
|
|
47
|
+
*/var Nt;function or(){return Nt||(Nt=1,process.env.NODE_ENV!=="production"&&function(){var r=E,n=Symbol.for("react.element"),a=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),_=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),D=Symbol.iterator,Re="@@iterator";function Pe(e){if(e===null||typeof e!="object")return null;var t=D&&e[D]||e[Re];return typeof t=="function"?t:null}var W=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function A(e){{for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];Te("error",e,o)}}function Te(e,t,o){{var i=W.ReactDebugCurrentFrame,g=i.getStackAddendum();g!==""&&(t+="%s",o=o.concat([g]));var h=o.map(function(u){return String(u)});h.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,h)}}var Ee=!1,Ie=!1,Me=!1,b=!1,R=!1,M;M=Symbol.for("react.module.reference");function F(e){return!!(typeof e=="string"||typeof e=="function"||e===f||e===p||R||e===c||e===j||e===m||b||e===I||Ee||Ie||Me||typeof e=="object"&&e!==null&&(e.$$typeof===x||e.$$typeof===v||e.$$typeof===S||e.$$typeof===_||e.$$typeof===d||e.$$typeof===M||e.getModuleId!==void 0))}function Y(e,t,o){var i=e.displayName;if(i)return i;var g=t.displayName||t.name||"";return g!==""?o+"("+g+")":o}function G(e){return e.displayName||"Context"}function $(e){if(e==null)return null;if(typeof e.tag=="number"&&A("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 a:return"Portal";case p:return"Profiler";case c:return"StrictMode";case j:return"Suspense";case m:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var t=e;return G(t)+".Consumer";case S:var o=e;return G(o._context)+".Provider";case d:return Y(e,e.render,"ForwardRef");case v:var i=e.displayName||null;return i!==null?i:$(e.type)||"Memo";case x:{var g=e,h=g._payload,u=g._init;try{return $(u(h))}catch{return null}}}return null}var B=Object.assign,N=0,Z,X,Q,ee,$e,De,Be;function Fe(){}Fe.__reactDisabledLog=!0;function it(){{if(N===0){Z=console.log,X=console.info,Q=console.warn,ee=console.error,$e=console.group,De=console.groupCollapsed,Be=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Fe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}N++}}function st(){{if(N--,N===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:B({},e,{value:Z}),info:B({},e,{value:X}),warn:B({},e,{value:Q}),error:B({},e,{value:ee}),group:B({},e,{value:$e}),groupCollapsed:B({},e,{value:De}),groupEnd:B({},e,{value:Be})})}N<0&&A("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var he=W.ReactCurrentDispatcher,me;function oe(e,t,o){{if(me===void 0)try{throw Error()}catch(g){var i=g.stack.trim().match(/\n( *(at )?)/);me=i&&i[1]||""}return`
|
|
48
|
+
`+me+e}}var ve=!1,ae;{var lt=typeof WeakMap=="function"?WeakMap:Map;ae=new lt}function We(e,t){if(!e||ve)return"";{var o=ae.get(e);if(o!==void 0)return o}var i;ve=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var h;h=he.current,he.current=null,it();try{if(t){var u=function(){throw Error()};if(Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(P){i=P}Reflect.construct(e,[],u)}else{try{u.call()}catch(P){i=P}e.call(u.prototype)}}else{try{throw Error()}catch(P){i=P}e()}}catch(P){if(P&&i&&typeof P.stack=="string"){for(var l=P.stack.split(`
|
|
49
49
|
`),O=i.stack.split(`
|
|
50
50
|
`),y=l.length-1,k=O.length-1;y>=1&&k>=0&&l[y]!==O[k];)k--;for(;y>=1&&k>=0;y--,k--)if(l[y]!==O[k]){if(y!==1||k!==1)do if(y--,k--,k<0||l[y]!==O[k]){var T=`
|
|
51
|
-
`+l[y].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&ae.set(e,T),T}while(y>=1&&k>=0);break}}}finally{ve=!1,he.current=h,st(),Error.prepareStackTrace=g}var q=e?e.displayName||e.name:"",U=q?oe(q):"";return typeof e=="function"&&ae.set(e,U),U}function ct(e,t,o){return We(e,!1)}function ut(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ie(e,t,o){if(e==null)return"";if(typeof e=="function")return We(e,ut(e));if(typeof e=="string")return oe(e);switch(e){case j:return oe("Suspense");case m:return oe("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return ct(e.render);case v:return ie(e.type,t,o);case x:{var i=e,g=i._payload,h=i._init;try{return ie(h(g),t,o)}catch{}}}return""}var K=Object.prototype.hasOwnProperty,Ue={},Le=W.ReactDebugCurrentFrame;function se(e){if(e){var t=e._owner,o=ie(e.type,e._source,t?t.type:null);Le.setExtraStackFrame(o)}else Le.setExtraStackFrame(null)}function ft(e,t,o,i,g){{var h=Function.call.bind(K);for(var
|
|
51
|
+
`+l[y].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&ae.set(e,T),T}while(y>=1&&k>=0);break}}}finally{ve=!1,he.current=h,st(),Error.prepareStackTrace=g}var q=e?e.displayName||e.name:"",U=q?oe(q):"";return typeof e=="function"&&ae.set(e,U),U}function ct(e,t,o){return We(e,!1)}function ut(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ie(e,t,o){if(e==null)return"";if(typeof e=="function")return We(e,ut(e));if(typeof e=="string")return oe(e);switch(e){case j:return oe("Suspense");case m:return oe("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return ct(e.render);case v:return ie(e.type,t,o);case x:{var i=e,g=i._payload,h=i._init;try{return ie(h(g),t,o)}catch{}}}return""}var K=Object.prototype.hasOwnProperty,Ue={},Le=W.ReactDebugCurrentFrame;function se(e){if(e){var t=e._owner,o=ie(e.type,e._source,t?t.type:null);Le.setExtraStackFrame(o)}else Le.setExtraStackFrame(null)}function ft(e,t,o,i,g){{var h=Function.call.bind(K);for(var u in e)if(h(e,u)){var l=void 0;try{if(typeof e[u]!="function"){var O=Error((i||"React class")+": "+o+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}l=e[u](t,u,i,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(y){l=y}l&&!(l instanceof Error)&&(se(g),A("%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).",i||"React class",o,u,typeof l),se(null)),l instanceof Error&&!(l.message in Ue)&&(Ue[l.message]=!0,se(g),A("Failed %s type: %s",o,l.message),se(null))}}}var dt=Array.isArray;function be(e){return dt(e)}function pt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,o=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function gt(e){try{return Ne(e),!1}catch{return!0}}function Ne(e){return""+e}function ze(e){if(gt(e))return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",pt(e)),Ne(e)}var Ye=W.ReactCurrentOwner,ht={key:!0,ref:!0,__self:!0,__source:!0},Ve,qe;function mt(e){if(K.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function vt(e){if(K.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function bt(e,t){typeof e.ref=="string"&&Ye.current}function yt(e,t){{var o=function(){Ve||(Ve=!0,A("%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 xt(e,t){{var o=function(){qe||(qe=!0,A("%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 _t=function(e,t,o,i,g,h,u){var l={$$typeof:n,type:e,key:t,ref:o,props:u,_owner:h};return l._store={},Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:g}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function kt(e,t,o,i,g){{var h,u={},l=null,O=null;o!==void 0&&(ze(o),l=""+o),vt(t)&&(ze(t.key),l=""+t.key),mt(t)&&(O=t.ref,bt(t));for(h in t)K.call(t,h)&&!ht.hasOwnProperty(h)&&(u[h]=t[h]);if(e&&e.defaultProps){var y=e.defaultProps;for(h in y)u[h]===void 0&&(u[h]=y[h])}if(l||O){var k=typeof e=="function"?e.displayName||e.name||"Unknown":e;l&&yt(u,k),O&&xt(u,k)}return _t(e,l,O,g,i,Ye.current,u)}}var ye=W.ReactCurrentOwner,He=W.ReactDebugCurrentFrame;function V(e){if(e){var t=e._owner,o=ie(e.type,e._source,t?t.type:null);He.setExtraStackFrame(o)}else He.setExtraStackFrame(null)}var xe;xe=!1;function _e(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function Je(){{if(ye.current){var e=$(ye.current.type);if(e)return`
|
|
52
52
|
|
|
53
53
|
Check the render method of \``+e+"`."}return""}}function wt(e){return""}var Ke={};function St(e){{var t=Je();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 Ge(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=St(t);if(Ke[o])return;Ke[o]=!0;var i="";e&&e._owner&&e._owner!==ye.current&&(i=" It was passed a child from "+$(e._owner.type)+"."),V(e),A('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,i),V(null)}}function Ze(e,t){{if(typeof e!="object")return;if(be(e))for(var o=0;o<e.length;o++){var i=e[o];_e(i)&&Ge(i,t)}else if(_e(e))e._store&&(e._store.validated=!0);else if(e){var g=Pe(e);if(typeof g=="function"&&g!==e.entries)for(var h=g.call(e),
|
|
55
|
+
Check the top-level render call using <`+o+">.")}return t}}function Ge(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=St(t);if(Ke[o])return;Ke[o]=!0;var i="";e&&e._owner&&e._owner!==ye.current&&(i=" It was passed a child from "+$(e._owner.type)+"."),V(e),A('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,i),V(null)}}function Ze(e,t){{if(typeof e!="object")return;if(be(e))for(var o=0;o<e.length;o++){var i=e[o];_e(i)&&Ge(i,t)}else if(_e(e))e._store&&(e._store.validated=!0);else if(e){var g=Pe(e);if(typeof g=="function"&&g!==e.entries)for(var h=g.call(e),u;!(u=h.next()).done;)_e(u.value)&&Ge(u.value,t)}}}function Rt(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===d||t.$$typeof===v))o=t.propTypes;else return;if(o){var i=$(t);ft(o,e.props,"prop",i,e)}else if(t.PropTypes!==void 0&&!xe){xe=!0;var g=$(t);A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",g||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Et(e){{for(var t=Object.keys(e.props),o=0;o<t.length;o++){var i=t[o];if(i!=="children"&&i!=="key"){V(e),A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),V(null);break}}e.ref!==null&&(V(e),A("Invalid attribute `ref` supplied to `React.Fragment`."),V(null))}}var Xe={};function Qe(e,t,o,i,g,h){{var u=F(e);if(!u){var l="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(l+=" 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 O=wt();O?l+=O:l+=Je();var y;e===null?y="null":be(e)?y="array":e!==void 0&&e.$$typeof===n?(y="<"+($(e.type)||"Unknown")+" />",l=" Did you accidentally export a JSX literal instead of a component?"):y=typeof e,A("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",y,l)}var k=kt(e,t,o,g,h);if(k==null)return k;if(u){var T=t.children;if(T!==void 0)if(i)if(be(T)){for(var q=0;q<T.length;q++)Ze(T[q],e);Object.freeze&&Object.freeze(T)}else A("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 Ze(T,e)}if(K.call(t,"key")){var U=$(e),P=Object.keys(t).filter(function(Tt){return Tt!=="key"}),ke=P.length>0?"{key: someKey, "+P.join(": ..., ")+": ...}":"{key: someKey}";if(!Xe[U+ke]){var Pt=P.length>0?"{"+P.join(": ..., ")+": ...}":"{}";A(`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} />`,ke,U,Pt,U),Xe[U+ke]=!0}}return e===f?Et(k):Rt(k),k}}function jt(e,t,o){return Qe(e,t,o,!0)}function At(e,t,o){return Qe(e,t,o,!1)}var Ot=At,Ct=jt;rt.Fragment=f,rt.jsx=Ot,rt.jsxs=Ct}()),rt}process.env.NODE_ENV==="production"?nr():or();const ar="0.0.39",zt={version:ar},te={},H={module:"",v:zt.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{},debug:!1,tab:"",id:0,prev:{page:"",module:"",tab:"",id:0}};function ue(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}ue().elcrm||(ue().elcrm={}),Object.assign(ue().elcrm,{router:zt.version});function re(r){var n,a,f,u;const p=ue();if(p.ROUTER_PARAMS){r.debug||p.ROUTER_PARAMS.debug;const S={page:(n=p.ROUTER_PARAMS)==null?void 0:n.page,module:(a=p.ROUTER_PARAMS)==null?void 0:a.module,tab:(f=p.ROUTER_PARAMS)==null?void 0:f.tab,id:(u=p.ROUTER_PARAMS)==null?void 0:u.id};p.ROUTER_PARAMS={...p.ROUTER_PARAMS,...r,prev:S}}else{r.debug||H.debug;const S={page:H==null?void 0:H.page,module:H==null?void 0:H.module,tab:H==null?void 0:H.tab,id:H==null?void 0:H.id};p.ROUTER_PARAMS={...H,...r,prev:S}}}function C(){return ue().ROUTER_PARAMS||H}function we(r){const n=ue();n.ROUTER_PARAMS?n.ROUTER_PARAMS.LISTENER={...n.ROUTER_PARAMS.LISTENER,...r}:n.ROUTER_PARAMS.LISTENER={...r}}function ne(){return ue().ROUTER_PARAMS.LISTENER||H.LISTENER}var ce;(r=>{function n(){var b;let R=sessionStorage.getItem("f");if(R){if(R=le.deCode(R),!R)return!1;re({id:R.id,tab:R.tab,page:R.page,module:R.module,time:R.time,payment:{active:!0},module_admin:R.module_admin})}else re({id:0,tab:"",page:(b=localStorage.getItem("d"))!=null&&b.length?C().page:C().auth,module:C().module});return!0}function a(){te.id=0,te.tab="",te.page=C().page,te.module=C().module}r.Reset=a;function f({module:b=C().module,page:R=C().page,auth:M=C().auth,debug:F=C().debug}){re({page:R,module:b,auth:M,debug:F}),n()}r.Default=f;function u(b){let R=Y=>(re({page:Y}),Y);const[M,F]=E.useState(S()||b&&R(b)||C().page);return we({page:Y=>{F(Y)}}),M}r.usePage=u;function p(b,R=!0,M={}){re({page:b,...M}),sessionStorage.setItem(C().STORAGE,le.enCode(C())),R&&ne().page(b)}r.setPage=p;function S(){return C().page}r.getPage=S;function _(b){return C().page===b}r.isPage=_;function d(){return C().prev}r.getBack=d;function j(b,R){const[M,F]=E.useState(v()||b||C().module);return we({module:F}),M}r.useModule=j;function m(b,R=!0){re({module:b}),sessionStorage.setItem(C().STORAGE,le.enCode(C())),R&&ne().module(b)}r.setModule=m;function v(){return C().module||""}r.getModule=v;function x(b){return C().module===b}r.isModule=x;function I(b,R){if(typeof b!="function"){const[M,F]=E.useState(!R),[Y,G]=E.useState(b||Re());return we({tabs:G}),R&&E.useEffect(()=>{F(!0)},[]),[Y,M]}else we({tabs:b})}r.useTabs=I;async function D(b,R=!0){re({tab:b}),sessionStorage.setItem(C().STORAGE,le.enCode(C())),R&&(ne().tabs&&ne().tabs(b))}r.setTabs=D;function Re(){return C().tab}r.getTabs=Re;function Pe(b){return C().tab===b}r.isTabs=Pe;function W(b){if(typeof b!="function"){const[R,M]=E.useState(b||Ee());return we({id:F=>{M(F)}}),R}else we({id:b})}r.useId=W;function A(b){}r.subId=A;async function Te(b,R=!0){re({id:b}),sessionStorage.setItem(C().STORAGE,le.enCode(C())),R&&ne().id(b)}r.setId=Te;function Ee(){return C().id}r.getId=Ee;function Ie(b){return Number(C().id)===b}r.isId=Ie;async function Me(b){var R,M,F,Y,G,$,B,N;const{page:Z,module:X,tab:Q,id:ee}=b;Z!==void 0&&(te.page=Z),X!==void 0&&(te.module=X),Q!==void 0&&(te.tab=Q),ee!==void 0&&(te.id=ee),re({...te}),ee!==void 0&&((M=(R=ne()).id)==null||M.call(R,ee)),Q!==void 0&&((Y=(F=ne()).tabs)==null||Y.call(F,Q)),X!==void 0&&(($=(G=ne()).module)==null||$.call(G,X)),Z!==void 0&&((N=(B=ne()).page)==null||N.call(B,Z)),sessionStorage.setItem(C().STORAGE,le.enCode(C()))}r.navigate=Me})(ce||(ce={}));let nt={};function ir(){const[r,n]=E.useState([]);return nt.set=a=>{n([...r,a])},nt.del=a=>{r.forEach((f,u)=>{f.key===a&&r.splice(u,1)}),n(r)},r.length===0?s.jsx(s.Fragment,{}):s.jsx("div",{className:"notice",children:r.map(a=>a.item)})}function sr(r){let n=new Date().getTime();r.key=n,nt.set({item:s.jsx(lr,{data:r},n),key:n})}function lr(r){const n=r.data;let[a]=E.useState("show"),[f,u]=E.useState(!1);E.useEffect(()=>{setTimeout(function(){u(!0),nt.del(n.key)},5e3)},[n.key]);let p;switch(n.type){case"error":p=s.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":p=s.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":p=s.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:p="icon fa fa-exclamation-circle";break}return s.jsx(s.Fragment,{children:f?s.jsx(s.Fragment,{}):s.jsxs("div",{className:"item "+n.type+` ${n.thema!==void 0?" thema":""}`,"data-status":a,children:[s.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",width:"24",height:"24",viewBox:"0 0 24 24",children:p}),s.jsx("span",{className:"text",children:n.text})]})})}let fe={Send:sr,Init:ir},Ce=()=>{};const Yt=({children:r,title:n,isOverlay:a=!0,footer:f=!0,className:u,onOpen:p})=>{const[S,_]=E.useState(!1);return Ce=()=>{_(!0),setTimeout(()=>{var d;p==null||p(!1),(d=Se==null?void 0:Se.onClose)==null||d.call(Se)},300)},s.jsx("div",{className:`footer-menu-overlay ${a?"is-overlay":""} ${S?"closing":""} `,onClick:Ce,children:s.jsxs("div",{className:`footer-menu-popup-book ${S?"closing":""} ${u||""} ${f?"footer":""}`,onClick:d=>d.stopPropagation(),children:[s.jsxs("div",{className:"footer-menu-header",children:[s.jsx("h3",{children:n}),s.jsx("button",{className:"footer-menu-close-btn",onClick:Ce,children:"✕"})]}),r]})})},Vt={h:"_h_1ryiq_1",row:"_row_1ryiq_14",column:"_column_1ryiq_17"},Se=[],qt=(r,n)=>r.findIndex(a=>(a==null?void 0:a.page)===n),Ht=({actions:r,children:n,className:a,toHide:f=!1,page:u,onPageChange:p,direction:S="row"})=>{const[_,d]=E.useState(null),[j,m]=E.useState(u?qt(r||[],u):0);return Se.onClose=()=>{d(null),m(u?qt(r||[],u):0)},E.useEffect(()=>{if(!f)return;const v=document.querySelectorAll("[contenteditable]"),x=()=>{const D=document.querySelector("footer");D&&(D.style.display="flex")},I=()=>{const D=document.querySelector("footer");D&&(D.style.display="none")};return v.forEach(D=>{D.addEventListener("focus",I,!0),D.addEventListener("blur",x,!0)}),()=>{v.forEach(D=>{D.removeEventListener("focus",I,!0),D.removeEventListener("blur",x,!0)})}},[]),s.jsxs(s.Fragment,{children:[_,s.jsxs("footer",{className:`${Vt.h} ${Vt[S]} ${a} `,children:[n,r&&r.map((v,x)=>s.jsx("div",{"data-active":j===x?"true":"false",onClick:()=>{v.page&&(m(x),p==null||p(v.page)),v.callback&&(v.callback(),m(x)),v.component&&(j===x?Ce():(d(v.component),m(x)))},children:v.icon},x))]})]})},de={is:!1,MainButton:{},BackButton:{}};let J={};J.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"},J.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"},J.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 cr=()=>{if(location.hostname==="localhost"){let[r,n]=E.useState(!1),[a,f]=E.useState(!1),[u,p]=E.useState("dark"),[S,_]=E.useState(!1),[d,j]=E.useState(!1);de.is=!0,de.MainButton.set=n,de.BackButton.set=f,E.useEffect(()=>{J[u]["--tg-theme-bg-color-alpha"]=J[u]["--tg-theme-bg-color"]+"b3",J[u]["--tg-theme-secondary-bg-color-alpha"]=J[u]["--tg-theme-secondary-bg-color"]+"d3";for(let x in J[u])document.documentElement.style.setProperty(x,J[u][x]);ge.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let m=x=>{for(let I in J[x])document.documentElement.style.setProperty(I,J[x][I]);p(x),_(!1)},v=()=>{_(!1),j(!0)};return s.jsxs(s.Fragment,{children:[s.jsxs("header",{className:"debug",children:[a===!1?s.jsx("div",{className:"b",children:"Отмена"}):s.jsx("div",{onClick:()=>{var x;a.page===void 0?(x=a.callback)==null||x.call(a):ce.setPage(a.page)},className:"b",children:"Назад"}),s.jsx("div",{className:"o",onClick:()=>_(!S),children:"Меню"})]}),s.jsx(fe.Init,{}),r&&s.jsx("div",{className:"mb",children:s.jsx("button",{onClick:()=>{r.page&&ce.setPage(r.page),r.callback&&r.callback()},children:r.text})}),S?s.jsxs("div",{className:"tm",children:[s.jsxs("ul",{children:[s.jsx("li",{children:s.jsx("button",{onClick:v,children:"Authorization"})}),s.jsx("li",{})]}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("button",{children:"Thema"}),s.jsxs("ol",{children:[s.jsx("li",{children:s.jsx("button",{onClick:()=>m("dark"),children:"Dark"})}),s.jsx("li",{children:s.jsx("button",{onClick:()=>m("light"),children:"Light"})}),s.jsx("li",{children:s.jsx("button",{onClick:()=>m("users"),children:"Users"})})]})]}),s.jsx("li",{children:s.jsx("button",{onClick:()=>_(!S),children:"Closed"})})]})]}):"",d?s.jsx(ur,{setAuthorization:j}):""]})}else return E.useEffect(()=>{document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",ge.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",ge.themeParams.bg_color+"b3"),ge.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),s.jsx(s.Fragment,{children:s.jsx(fe.Init,{})})},ur=({setAuthorization:r})=>{let n={},a=()=>{localStorage.setItem("auth",n)};return s.jsx("div",{className:"ta",children:s.jsxs("div",{className:"--body",children:[s.jsx("fieldset",{}),s.jsx("div",{onClick:a,children:" Сохранить "})]})})},Jt={p:"_p_12hh1_1",s:"_s_12hh1_17"},fr=({className:r,children:n,isScroll:a=!0})=>s.jsx("div",{className:[Jt.p,a&&Jt.s,r].filter(f=>f!==void 0).join(" "),children:n}),dr={l:"_l_gfyud_1"},pr=({children:r,className:n})=>s.jsx("div",{className:[dr.l,n].filter(a=>a!==void 0).join(" "),children:r}),pe={m:"_m_ppm7n_2",g:"_g_ppm7n_10",i:"_i_ppm7n_18",c:"_c_ppm7n_35",l:"_l_ppm7n_42",a:"_a_ppm7n_57",n:"_n_ppm7n_62"},gr=({items:r})=>{const n=f=>{ce.setPage(f)},a=f=>{ge.openTelegramLink(f)};return s.jsx("div",{className:pe.m,children:r.map(f=>s.jsx("div",{className:pe.g,children:f.items.map((u,p)=>s.jsxs("div",{className:pe.i,onClick:()=>u.link?a(u.link):n(u.page||""),children:[s.jsxs("div",{className:pe.c,children:[s.jsx("span",{className:pe.l,style:{background:u.color},children:u.icon}),u.title,u.count&&s.jsx("span",{className:pe.n,children:u.count})]}),s.jsx("span",{className:pe.a,children:"›"})]},p))},f.id))})},L={state:[!1],listen:[],prev:{},router:r=>{r===!1?(w.default.WebApp.BackButton.isVisible=!1,w.default.WebApp.BackButton.offClick(L.listen[0]),L.listen.shift(),L.state.length!==1&&L.state.pop()):(w.default.WebApp.BackButton.isVisible=!0,w.default.WebApp.BackButton.offClick(L.listen[0]),L.listen.shift(),L.listen.push(()=>{var a;let n=L.state.pop();L.prev=ce.getPage(),n.page!==void 0?ce.setPage(n.page):(a=n.callback)==null||a.call(n)}),ge.BackButton.onClick(L.listen[0]))}};w.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={Send:(n,a,f)=>{var u,p;a!==void 0?(fe.Send({type:n,text:a,thema:f}),(u=r.WebApp.HapticFeedback)==null||u.notificationOccurred(n)):(fe.Send(n),(p=r.WebApp.HapticFeedback)==null||p.notificationOccurred(n.type))},Error:n=>{var a;fe.Send({type:"error",text:n}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("error")},Success:n=>{var a;fe.Send({type:"success",text:n}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("success")},Warning:n=>{var a;fe.Send({type:"warning",text:n}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("warning")}},r.Header=cr,r.Footer=Ht,r.BottomSheet=Yt,r.toggleBottomSheet=Ce,r.SafeArea=fr,r.Loading=pr,r.Modal=at,r.Menu=gr,r.MainButton={callback:[],set:n=>{de.is?de.MainButton.set(n):(r.WebApp.MainButton.callback.forEach(a=>{r.WebApp.MainButton.offClick(a)}),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 a;n.page===void 0?(a=n.callback)==null||a.call(n):ce.setPage(n.page)}),r.WebApp.MainButton.onClick(r.WebApp.MainButton.callback[0])))}},r.BackButtonPrev=()=>{L.prev&&(0,r.BackButton)(L.prev)},r.BackButton=n=>{de.is?de.BackButton.set(n):(L.state.push(n),L.router(n))}})(w.default||(w.default={}));const hr=Ht,mr=Yt,vr=w.default.BackButton,br=w.default.Notice,yr=w.default.SafeArea,xr=w.default.Loading,_r=w.default.Menu,{Header:kr,toggleBottomSheet:wr,Modal:Sr,MainButton:Rr,WebApp:ge,getUser:Er}=w.default;w.BackButton=vr,w.BottomSheet=mr,w.Footer=hr,w.Header=kr,w.Loading=xr,w.MainButton=Rr,w.Menu=_r,w.Modal=Sr,w.Notice=br,w.SafeArea=yr,w.WebApp=ge,w.getUser=Er,w.toggleBottomSheet=wr,Object.defineProperties(w,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
60
|
+
<%s key={someKey} {...props} />`,ke,U,Pt,U),Xe[U+ke]=!0}}return e===f?Et(k):Rt(k),k}}function jt(e,t,o){return Qe(e,t,o,!0)}function At(e,t,o){return Qe(e,t,o,!1)}var Ot=At,Ct=jt;rt.Fragment=f,rt.jsx=Ot,rt.jsxs=Ct}()),rt}process.env.NODE_ENV==="production"?nr():or();const ar="0.0.39",zt={version:ar},te={},H={module:"",v:zt.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{},debug:!1,tab:"",id:0,prev:{page:"",module:"",tab:"",id:0}};function ue(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}ue().elcrm||(ue().elcrm={}),Object.assign(ue().elcrm,{router:zt.version});function re(r){var n,a,f,c;const p=ue();if(p.ROUTER_PARAMS){r.debug||p.ROUTER_PARAMS.debug;const S={page:(n=p.ROUTER_PARAMS)==null?void 0:n.page,module:(a=p.ROUTER_PARAMS)==null?void 0:a.module,tab:(f=p.ROUTER_PARAMS)==null?void 0:f.tab,id:(c=p.ROUTER_PARAMS)==null?void 0:c.id};p.ROUTER_PARAMS={...p.ROUTER_PARAMS,...r,prev:S}}else{r.debug||H.debug;const S={page:H==null?void 0:H.page,module:H==null?void 0:H.module,tab:H==null?void 0:H.tab,id:H==null?void 0:H.id};p.ROUTER_PARAMS={...H,...r,prev:S}}}function C(){return ue().ROUTER_PARAMS||H}function we(r){const n=ue();n.ROUTER_PARAMS?n.ROUTER_PARAMS.LISTENER={...n.ROUTER_PARAMS.LISTENER,...r}:n.ROUTER_PARAMS.LISTENER={...r}}function ne(){return ue().ROUTER_PARAMS.LISTENER||H.LISTENER}var ce;(r=>{function n(){var b;let R=sessionStorage.getItem("f");if(R){if(R=le.deCode(R),!R)return!1;re({id:R.id,tab:R.tab,page:R.page,module:R.module,time:R.time,payment:{active:!0},module_admin:R.module_admin})}else re({id:0,tab:"",page:(b=localStorage.getItem("d"))!=null&&b.length?C().page:C().auth,module:C().module});return!0}function a(){te.id=0,te.tab="",te.page=C().page,te.module=C().module}r.Reset=a;function f({module:b=C().module,page:R=C().page,auth:M=C().auth,debug:F=C().debug}){re({page:R,module:b,auth:M,debug:F}),n()}r.Default=f;function c(b){let R=Y=>(re({page:Y}),Y);const[M,F]=E.useState(S()||b&&R(b)||C().page);return we({page:Y=>{F(Y)}}),M}r.usePage=c;function p(b,R=!0,M={}){re({page:b,...M}),sessionStorage.setItem(C().STORAGE,le.enCode(C())),R&&ne().page(b)}r.setPage=p;function S(){return C().page}r.getPage=S;function _(b){return C().page===b}r.isPage=_;function d(){return C().prev}r.getBack=d;function j(b,R){const[M,F]=E.useState(v()||b||C().module);return we({module:F}),M}r.useModule=j;function m(b,R=!0){re({module:b}),sessionStorage.setItem(C().STORAGE,le.enCode(C())),R&&ne().module(b)}r.setModule=m;function v(){return C().module||""}r.getModule=v;function x(b){return C().module===b}r.isModule=x;function I(b,R){if(typeof b!="function"){const[M,F]=E.useState(!R),[Y,G]=E.useState(b||Re());return we({tabs:G}),R&&E.useEffect(()=>{F(!0)},[]),[Y,M]}else we({tabs:b})}r.useTabs=I;async function D(b,R=!0){re({tab:b}),sessionStorage.setItem(C().STORAGE,le.enCode(C())),R&&(ne().tabs&&ne().tabs(b))}r.setTabs=D;function Re(){return C().tab}r.getTabs=Re;function Pe(b){return C().tab===b}r.isTabs=Pe;function W(b){if(typeof b!="function"){const[R,M]=E.useState(b||Ee());return we({id:F=>{M(F)}}),R}else we({id:b})}r.useId=W;function A(b){}r.subId=A;async function Te(b,R=!0){re({id:b}),sessionStorage.setItem(C().STORAGE,le.enCode(C())),R&&ne().id(b)}r.setId=Te;function Ee(){return C().id}r.getId=Ee;function Ie(b){return Number(C().id)===b}r.isId=Ie;async function Me(b){var R,M,F,Y,G,$,B,N;const{page:Z,module:X,tab:Q,id:ee}=b;Z!==void 0&&(te.page=Z),X!==void 0&&(te.module=X),Q!==void 0&&(te.tab=Q),ee!==void 0&&(te.id=ee),re({...te}),ee!==void 0&&((M=(R=ne()).id)==null||M.call(R,ee)),Q!==void 0&&((Y=(F=ne()).tabs)==null||Y.call(F,Q)),X!==void 0&&(($=(G=ne()).module)==null||$.call(G,X)),Z!==void 0&&((N=(B=ne()).page)==null||N.call(B,Z)),sessionStorage.setItem(C().STORAGE,le.enCode(C()))}r.navigate=Me})(ce||(ce={}));let nt={};function ir(){const[r,n]=E.useState([]);return nt.set=a=>{n([...r,a])},nt.del=a=>{r.forEach((f,c)=>{f.key===a&&r.splice(c,1)}),n(r)},r.length===0?s.jsx(s.Fragment,{}):s.jsx("div",{className:"notice",children:r.map(a=>a.item)})}function sr(r){let n=new Date().getTime();r.key=n,nt.set({item:s.jsx(lr,{data:r},n),key:n})}function lr(r){const n=r.data;let[a]=E.useState("show"),[f,c]=E.useState(!1);E.useEffect(()=>{setTimeout(function(){c(!0),nt.del(n.key)},5e3)},[n.key]);let p;switch(n.type){case"error":p=s.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":p=s.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":p=s.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:p="icon fa fa-exclamation-circle";break}return s.jsx(s.Fragment,{children:f?s.jsx(s.Fragment,{}):s.jsxs("div",{className:"item "+n.type+` ${n.thema!==void 0?" thema":""}`,"data-status":a,children:[s.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",width:"24",height:"24",viewBox:"0 0 24 24",children:p}),s.jsx("span",{className:"text",children:n.text})]})})}let fe={Send:sr,Init:ir},Ce=()=>{};const Yt=({children:r,title:n,isOverlay:a=!0,footer:f=!0,className:c,onOpen:p})=>{const[S,_]=E.useState(!1);return Ce=()=>{_(!0),setTimeout(()=>{var d;p==null||p(!1),(d=Se==null?void 0:Se.onClose)==null||d.call(Se)},300)},s.jsx("div",{className:`footer-menu-overlay ${a?"is-overlay":""} ${S?"closing":""} `,onClick:Ce,children:s.jsxs("div",{className:`footer-menu-popup-book ${S?"closing":""} ${c||""} ${f?"footer":""}`,onClick:d=>d.stopPropagation(),children:[s.jsxs("div",{className:"footer-menu-header",children:[s.jsx("h3",{children:n}),s.jsx("button",{className:"footer-menu-close-btn",onClick:Ce,children:"✕"})]}),r]})})},Vt={h:"_h_1ryiq_1",row:"_row_1ryiq_14",column:"_column_1ryiq_17"},Se=[],qt=(r,n)=>r.findIndex(a=>(a==null?void 0:a.page)===n),Ht=({actions:r,children:n,className:a,toHide:f=!1,page:c,onPageChange:p,direction:S="row"})=>{const[_,d]=E.useState(null),[j,m]=E.useState(c?qt(r||[],c):0);return Se.onClose=()=>{d(null),m(c?qt(r||[],c):0)},E.useEffect(()=>{if(!f)return;const v=document.querySelectorAll("[contenteditable]"),x=()=>{const D=document.querySelector("footer");D&&(D.style.display="flex")},I=()=>{const D=document.querySelector("footer");D&&(D.style.display="none")};return v.forEach(D=>{D.addEventListener("focus",I,!0),D.addEventListener("blur",x,!0)}),()=>{v.forEach(D=>{D.removeEventListener("focus",I,!0),D.removeEventListener("blur",x,!0)})}},[]),s.jsxs(s.Fragment,{children:[_,s.jsxs("footer",{className:`${Vt.h} ${Vt[S]} ${a} `,children:[n,r&&r.map((v,x)=>s.jsx("div",{"data-active":j===x?"true":"false",onClick:()=>{v.page&&(m(x),p==null||p(v.page)),v.callback&&(v.callback(),m(x)),v.component&&(j===x?Ce():(d(v.component),m(x)))},children:v.icon},x))]})]})},de={is:!1,MainButton:{},BackButton:{}};let J={};J.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"},J.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"},J.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 cr=()=>{if(location.hostname==="localhost"){let[r,n]=E.useState(!1),[a,f]=E.useState(!1),[c,p]=E.useState("dark"),[S,_]=E.useState(!1),[d,j]=E.useState(!1);de.is=!0,de.MainButton.set=n,de.BackButton.set=f,E.useEffect(()=>{J[c]["--tg-theme-bg-color-alpha"]=J[c]["--tg-theme-bg-color"]+"b3",J[c]["--tg-theme-secondary-bg-color-alpha"]=J[c]["--tg-theme-secondary-bg-color"]+"d3";for(let x in J[c])document.documentElement.style.setProperty(x,J[c][x]);ge.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let m=x=>{for(let I in J[x])document.documentElement.style.setProperty(I,J[x][I]);p(x),_(!1)},v=()=>{_(!1),j(!0)};return s.jsxs(s.Fragment,{children:[s.jsxs("header",{className:"debug",children:[a===!1?s.jsx("div",{className:"b",children:"Отмена"}):s.jsx("div",{onClick:()=>{var x;a.page===void 0?(x=a.callback)==null||x.call(a):ce.setPage(a.page)},className:"b",children:"Назад"}),s.jsx("div",{className:"o",onClick:()=>_(!S),children:"Меню"})]}),s.jsx(fe.Init,{}),r&&s.jsx("div",{className:"mb",children:s.jsx("button",{onClick:()=>{r.page&&ce.setPage(r.page),r.callback&&r.callback()},children:r.text})}),S?s.jsxs("div",{className:"tm",children:[s.jsxs("ul",{children:[s.jsx("li",{children:s.jsx("button",{onClick:v,children:"Authorization"})}),s.jsx("li",{})]}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("button",{children:"Thema"}),s.jsxs("ol",{children:[s.jsx("li",{children:s.jsx("button",{onClick:()=>m("dark"),children:"Dark"})}),s.jsx("li",{children:s.jsx("button",{onClick:()=>m("light"),children:"Light"})}),s.jsx("li",{children:s.jsx("button",{onClick:()=>m("users"),children:"Users"})})]})]}),s.jsx("li",{children:s.jsx("button",{onClick:()=>_(!S),children:"Closed"})})]})]}):"",d?s.jsx(ur,{setAuthorization:j}):""]})}else return E.useEffect(()=>{document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",ge.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",ge.themeParams.bg_color+"b3"),ge.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),s.jsx(s.Fragment,{children:s.jsx(fe.Init,{})})},ur=({setAuthorization:r})=>{let n={},a=()=>{localStorage.setItem("auth",n)};return s.jsx("div",{className:"ta",children:s.jsxs("div",{className:"--body",children:[s.jsx("fieldset",{}),s.jsx("div",{onClick:a,children:" Сохранить "})]})})},Jt={p:"_p_12hh1_1",s:"_s_12hh1_17"},fr=({className:r,children:n,isScroll:a=!0})=>s.jsx("div",{className:[Jt.p,a&&Jt.s,r].filter(f=>f!==void 0).join(" "),children:n}),dr={l:"_l_gfyud_1"},pr=({children:r,className:n})=>s.jsx("div",{className:[dr.l,n].filter(a=>a!==void 0).join(" "),children:r}),pe={m:"_m_ppm7n_2",g:"_g_ppm7n_10",i:"_i_ppm7n_18",c:"_c_ppm7n_35",l:"_l_ppm7n_42",a:"_a_ppm7n_57",n:"_n_ppm7n_62"},gr=({items:r})=>{const n=f=>{ce.setPage(f)},a=f=>{ge.openTelegramLink(f)};return s.jsx("div",{className:pe.m,children:r.map(f=>s.jsx("div",{className:pe.g,children:f.items.map((c,p)=>s.jsxs("div",{className:pe.i,onClick:()=>{c.link&&a(c.link),c.page&&n(c.page),c.callback&&c.callback()},children:[s.jsxs("div",{className:pe.c,children:[s.jsx("span",{className:pe.l,style:{background:c.color},children:c.icon}),c.title,c.count&&s.jsx("span",{className:pe.n,children:c.count})]}),s.jsx("span",{className:pe.a,children:"›"})]},p))},f.id))})},L={state:[!1],listen:[],prev:{},router:r=>{r===!1?(w.default.WebApp.BackButton.isVisible=!1,w.default.WebApp.BackButton.offClick(L.listen[0]),L.listen.shift(),L.state.length!==1&&L.state.pop()):(w.default.WebApp.BackButton.isVisible=!0,w.default.WebApp.BackButton.offClick(L.listen[0]),L.listen.shift(),L.listen.push(()=>{var a;let n=L.state.pop();L.prev=ce.getPage(),n.page!==void 0?ce.setPage(n.page):(a=n.callback)==null||a.call(n)}),ge.BackButton.onClick(L.listen[0]))}};w.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={Send:(n,a,f)=>{var c,p;a!==void 0?(fe.Send({type:n,text:a,thema:f}),(c=r.WebApp.HapticFeedback)==null||c.notificationOccurred(n)):(fe.Send(n),(p=r.WebApp.HapticFeedback)==null||p.notificationOccurred(n.type))},Error:n=>{var a;fe.Send({type:"error",text:n}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("error")},Success:n=>{var a;fe.Send({type:"success",text:n}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("success")},Warning:n=>{var a;fe.Send({type:"warning",text:n}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("warning")}},r.Header=cr,r.Footer=Ht,r.BottomSheet=Yt,r.toggleBottomSheet=Ce,r.SafeArea=fr,r.Loading=pr,r.Modal=at,r.Menu=gr,r.MainButton={callback:[],set:n=>{de.is?de.MainButton.set(n):(r.WebApp.MainButton.callback.forEach(a=>{r.WebApp.MainButton.offClick(a)}),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 a;n.page===void 0?(a=n.callback)==null||a.call(n):ce.setPage(n.page)}),r.WebApp.MainButton.onClick(r.WebApp.MainButton.callback[0])))}},r.BackButtonPrev=()=>{L.prev&&(0,r.BackButton)(L.prev)},r.BackButton=n=>{de.is?de.BackButton.set(n):(L.state.push(n),L.router(n))}})(w.default||(w.default={}));const hr=Ht,mr=Yt,vr=w.default.BackButton,br=w.default.Notice,yr=w.default.SafeArea,xr=w.default.Loading,_r=w.default.Menu,{Header:kr,toggleBottomSheet:wr,Modal:Sr,MainButton:Rr,WebApp:ge,getUser:Er}=w.default;w.BackButton=vr,w.BottomSheet=mr,w.Footer=hr,w.Header=kr,w.Loading=xr,w.MainButton=Rr,w.Menu=_r,w.Modal=Sr,w.Notice=br,w.SafeArea=yr,w.WebApp=ge,w.getUser=Er,w.toggleBottomSheet=wr,Object.defineProperties(w,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|