@elcrm/telegram 0.0.54 → 0.0.55
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 +332 -336
- package/dist/index.umd.js +7 -7
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -10,10 +10,10 @@ let ut = "M06";
|
|
|
10
10
|
function gr(e) {
|
|
11
11
|
ut = e;
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function pr() {
|
|
14
14
|
return ut;
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function xr(e) {
|
|
17
17
|
if (localStorage.getItem("d")) {
|
|
18
18
|
let n = sessionStorage.getItem("f");
|
|
19
19
|
n ? (n = D.deCode(n), n || H(), w.id = n.id, w.tab = n.tab, w.page = n.page, w.module = n.module, w.time = n.time, w.payment = { active: !0 }, w.module_admin = n.module_admin) : (w.id = 0, w.tab = "", w.page = "Main", w.module = w.module || ut);
|
|
@@ -92,16 +92,16 @@ function Er(e) {
|
|
|
92
92
|
} else
|
|
93
93
|
W.module = e;
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function Rr(e, t = !0) {
|
|
96
96
|
w.module = e, sessionStorage.setItem("f", D.enCode(w)), t && W.module(e);
|
|
97
97
|
}
|
|
98
98
|
function rn() {
|
|
99
99
|
return w.module;
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function Tr(e) {
|
|
102
102
|
return w.module === e;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function Br(e) {
|
|
105
105
|
if (typeof e != "function") {
|
|
106
106
|
const [t, n] = C.useState(e || Ae()), [s, a] = C.useState(!1);
|
|
107
107
|
return C.useEffect(() => {
|
|
@@ -285,7 +285,7 @@ const oe = {
|
|
|
285
285
|
getPayment: Hr,
|
|
286
286
|
setUser: cn,
|
|
287
287
|
getUser: Vr,
|
|
288
|
-
getDefaultModules:
|
|
288
|
+
getDefaultModules: pr,
|
|
289
289
|
getBase: Xr,
|
|
290
290
|
setBase: Jr,
|
|
291
291
|
editBase: Qr,
|
|
@@ -401,7 +401,7 @@ async function hs(e, t = {}) {
|
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
const vl = { audio: cs, fetch: ze, modules: us, remoute: fs, url: ls, telegram: hs, use: ds };
|
|
404
|
-
var nt = { exports: {} },
|
|
404
|
+
var nt = { exports: {} }, Re = {};
|
|
405
405
|
/**
|
|
406
406
|
* @license React
|
|
407
407
|
* react-jsx-runtime.production.min.js
|
|
@@ -414,22 +414,22 @@ var nt = { exports: {} }, Be = {};
|
|
|
414
414
|
var Yt;
|
|
415
415
|
function ms() {
|
|
416
416
|
if (Yt)
|
|
417
|
-
return
|
|
417
|
+
return Re;
|
|
418
418
|
Yt = 1;
|
|
419
419
|
var e = C, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
420
420
|
function l(c, u, d) {
|
|
421
|
-
var f, h = {},
|
|
422
|
-
d !== void 0 && (
|
|
421
|
+
var f, h = {}, p = null, m = null;
|
|
422
|
+
d !== void 0 && (p = "" + d), u.key !== void 0 && (p = "" + u.key), u.ref !== void 0 && (m = u.ref);
|
|
423
423
|
for (f in u)
|
|
424
424
|
s.call(u, f) && !i.hasOwnProperty(f) && (h[f] = u[f]);
|
|
425
425
|
if (c && c.defaultProps)
|
|
426
426
|
for (f in u = c.defaultProps, u)
|
|
427
427
|
h[f] === void 0 && (h[f] = u[f]);
|
|
428
|
-
return { $$typeof: t, type: c, key:
|
|
428
|
+
return { $$typeof: t, type: c, key: p, ref: m, props: h, _owner: a.current };
|
|
429
429
|
}
|
|
430
|
-
return
|
|
430
|
+
return Re.Fragment = n, Re.jsx = l, Re.jsxs = l, Re;
|
|
431
431
|
}
|
|
432
|
-
var
|
|
432
|
+
var Te = {};
|
|
433
433
|
/**
|
|
434
434
|
* @license React
|
|
435
435
|
* react-jsx-runtime.development.js
|
|
@@ -442,14 +442,14 @@ var Re = {};
|
|
|
442
442
|
var Kt;
|
|
443
443
|
function gs() {
|
|
444
444
|
return Kt || (Kt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
445
|
-
var e = C, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"),
|
|
445
|
+
var e = C, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), b = Symbol.iterator, j = "@@iterator";
|
|
446
446
|
function v(o) {
|
|
447
447
|
if (o === null || typeof o != "object")
|
|
448
448
|
return null;
|
|
449
449
|
var g = b && o[b] || o[j];
|
|
450
450
|
return typeof g == "function" ? g : null;
|
|
451
451
|
}
|
|
452
|
-
var
|
|
452
|
+
var x = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
453
453
|
function _(o) {
|
|
454
454
|
{
|
|
455
455
|
for (var g = arguments.length, y = new Array(g > 1 ? g - 1 : 0), k = 1; k < g; k++)
|
|
@@ -459,7 +459,7 @@ function gs() {
|
|
|
459
459
|
}
|
|
460
460
|
function S(o, g, y) {
|
|
461
461
|
{
|
|
462
|
-
var k =
|
|
462
|
+
var k = x.ReactDebugCurrentFrame, $ = k.getStackAddendum();
|
|
463
463
|
$ !== "" && (g += "%s", y = y.concat([$]));
|
|
464
464
|
var F = y.map(function(N) {
|
|
465
465
|
return String(N);
|
|
@@ -467,10 +467,10 @@ function gs() {
|
|
|
467
467
|
F.unshift("Warning: " + g), Function.prototype.apply.call(console[o], console, F);
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
|
-
var
|
|
470
|
+
var E = !1, M = !1, T = !1, P = !1, ee = !1, O;
|
|
471
471
|
O = Symbol.for("react.module.reference");
|
|
472
472
|
function I(o) {
|
|
473
|
-
return !!(typeof o == "string" || typeof o == "function" || o === s || o === i || ee || o === a || o === d || o === f || P || o === m ||
|
|
473
|
+
return !!(typeof o == "string" || typeof o == "function" || o === s || o === i || ee || o === a || o === d || o === f || P || o === m || E || M || T || typeof o == "object" && o !== null && (o.$$typeof === p || o.$$typeof === h || o.$$typeof === l || o.$$typeof === c || o.$$typeof === u || // This needs to include all possible module reference object
|
|
474
474
|
// types supported by any Flight configuration anywhere since
|
|
475
475
|
// we don't know which Flight build this will end up being used
|
|
476
476
|
// with.
|
|
@@ -520,7 +520,7 @@ function gs() {
|
|
|
520
520
|
case h:
|
|
521
521
|
var k = o.displayName || null;
|
|
522
522
|
return k !== null ? k : U(o.type) || "Memo";
|
|
523
|
-
case
|
|
523
|
+
case p: {
|
|
524
524
|
var $ = o, F = $._payload, N = $._init;
|
|
525
525
|
try {
|
|
526
526
|
return U(N(F));
|
|
@@ -531,18 +531,18 @@ function gs() {
|
|
|
531
531
|
}
|
|
532
532
|
return null;
|
|
533
533
|
}
|
|
534
|
-
var re = Object.assign, ke = 0, Ct, _t, wt, kt, St, Et,
|
|
535
|
-
function
|
|
534
|
+
var re = Object.assign, ke = 0, Ct, _t, wt, kt, St, Et, Rt;
|
|
535
|
+
function Tt() {
|
|
536
536
|
}
|
|
537
|
-
|
|
537
|
+
Tt.__reactDisabledLog = !0;
|
|
538
538
|
function Pn() {
|
|
539
539
|
{
|
|
540
540
|
if (ke === 0) {
|
|
541
|
-
Ct = console.log, _t = console.info, wt = console.warn, kt = console.error, St = console.group, Et = console.groupCollapsed,
|
|
541
|
+
Ct = console.log, _t = console.info, wt = console.warn, kt = console.error, St = console.group, Et = console.groupCollapsed, Rt = console.groupEnd;
|
|
542
542
|
var o = {
|
|
543
543
|
configurable: !0,
|
|
544
544
|
enumerable: !0,
|
|
545
|
-
value:
|
|
545
|
+
value: Tt,
|
|
546
546
|
writable: !0
|
|
547
547
|
};
|
|
548
548
|
Object.defineProperties(console, {
|
|
@@ -586,14 +586,14 @@ function gs() {
|
|
|
586
586
|
value: Et
|
|
587
587
|
}),
|
|
588
588
|
groupEnd: re({}, o, {
|
|
589
|
-
value:
|
|
589
|
+
value: Rt
|
|
590
590
|
})
|
|
591
591
|
});
|
|
592
592
|
}
|
|
593
593
|
ke < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
|
-
var Ze =
|
|
596
|
+
var Ze = x.ReactCurrentDispatcher, Ue;
|
|
597
597
|
function $e(o, g, y) {
|
|
598
598
|
{
|
|
599
599
|
if (Ue === void 0)
|
|
@@ -612,7 +612,7 @@ function gs() {
|
|
|
612
612
|
var Ln = typeof WeakMap == "function" ? WeakMap : Map;
|
|
613
613
|
Fe = new Ln();
|
|
614
614
|
}
|
|
615
|
-
function
|
|
615
|
+
function Bt(o, g) {
|
|
616
616
|
if (!o || Ye)
|
|
617
617
|
return "";
|
|
618
618
|
{
|
|
@@ -660,17 +660,17 @@ function gs() {
|
|
|
660
660
|
}
|
|
661
661
|
} catch (K) {
|
|
662
662
|
if (K && k && typeof K.stack == "string") {
|
|
663
|
-
for (var
|
|
663
|
+
for (var B = K.stack.split(`
|
|
664
664
|
`), Y = k.stack.split(`
|
|
665
|
-
`), L =
|
|
665
|
+
`), L = B.length - 1, z = Y.length - 1; L >= 1 && z >= 0 && B[L] !== Y[z]; )
|
|
666
666
|
z--;
|
|
667
667
|
for (; L >= 1 && z >= 0; L--, z--)
|
|
668
|
-
if (
|
|
668
|
+
if (B[L] !== Y[z]) {
|
|
669
669
|
if (L !== 1 || z !== 1)
|
|
670
670
|
do
|
|
671
|
-
if (L--, z--, z < 0 ||
|
|
671
|
+
if (L--, z--, z < 0 || B[L] !== Y[z]) {
|
|
672
672
|
var q = `
|
|
673
|
-
` +
|
|
673
|
+
` + B[L].replace(" at new ", " at ");
|
|
674
674
|
return o.displayName && q.includes("<anonymous>") && (q = q.replace("<anonymous>", o.displayName)), typeof o == "function" && Fe.set(o, q), q;
|
|
675
675
|
}
|
|
676
676
|
while (L >= 1 && z >= 0);
|
|
@@ -684,7 +684,7 @@ function gs() {
|
|
|
684
684
|
return typeof o == "function" && Fe.set(o, he), he;
|
|
685
685
|
}
|
|
686
686
|
function An(o, g, y) {
|
|
687
|
-
return
|
|
687
|
+
return Bt(o, !1);
|
|
688
688
|
}
|
|
689
689
|
function zn(o) {
|
|
690
690
|
var g = o.prototype;
|
|
@@ -694,7 +694,7 @@ function gs() {
|
|
|
694
694
|
if (o == null)
|
|
695
695
|
return "";
|
|
696
696
|
if (typeof o == "function")
|
|
697
|
-
return
|
|
697
|
+
return Bt(o, zn(o));
|
|
698
698
|
if (typeof o == "string")
|
|
699
699
|
return $e(o);
|
|
700
700
|
switch (o) {
|
|
@@ -709,7 +709,7 @@ function gs() {
|
|
|
709
709
|
return An(o.render);
|
|
710
710
|
case h:
|
|
711
711
|
return Pe(o.type, g, y);
|
|
712
|
-
case
|
|
712
|
+
case p: {
|
|
713
713
|
var k = o, $ = k._payload, F = k._init;
|
|
714
714
|
try {
|
|
715
715
|
return Pe(F($), g, y);
|
|
@@ -719,7 +719,7 @@ function gs() {
|
|
|
719
719
|
}
|
|
720
720
|
return "";
|
|
721
721
|
}
|
|
722
|
-
var Se = Object.prototype.hasOwnProperty, Nt = {}, Dt =
|
|
722
|
+
var Se = Object.prototype.hasOwnProperty, Nt = {}, Dt = x.ReactDebugCurrentFrame;
|
|
723
723
|
function Oe(o) {
|
|
724
724
|
if (o) {
|
|
725
725
|
var g = o._owner, y = Pe(o.type, o._source, g ? g.type : null);
|
|
@@ -732,17 +732,17 @@ function gs() {
|
|
|
732
732
|
var F = Function.call.bind(Se);
|
|
733
733
|
for (var N in o)
|
|
734
734
|
if (F(o, N)) {
|
|
735
|
-
var
|
|
735
|
+
var B = void 0;
|
|
736
736
|
try {
|
|
737
737
|
if (typeof o[N] != "function") {
|
|
738
738
|
var Y = Error((k || "React class") + ": " + y + " type `" + N + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[N] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
739
739
|
throw Y.name = "Invariant Violation", Y;
|
|
740
740
|
}
|
|
741
|
-
|
|
741
|
+
B = o[N](g, N, k, y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
742
742
|
} catch (L) {
|
|
743
|
-
|
|
743
|
+
B = L;
|
|
744
744
|
}
|
|
745
|
-
|
|
745
|
+
B && !(B instanceof Error) && (Oe($), _("%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).", k || "React class", y, N, typeof B), Oe(null)), B instanceof Error && !(B.message in Nt) && (Nt[B.message] = !0, Oe($), _("Failed %s type: %s", y, B.message), Oe(null));
|
|
746
746
|
}
|
|
747
747
|
}
|
|
748
748
|
}
|
|
@@ -770,7 +770,7 @@ function gs() {
|
|
|
770
770
|
if (Yn(o))
|
|
771
771
|
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Un(o)), It(o);
|
|
772
772
|
}
|
|
773
|
-
var Ee =
|
|
773
|
+
var Ee = x.ReactCurrentOwner, Kn = {
|
|
774
774
|
key: !0,
|
|
775
775
|
ref: !0,
|
|
776
776
|
__self: !0,
|
|
@@ -822,7 +822,7 @@ function gs() {
|
|
|
822
822
|
}
|
|
823
823
|
}
|
|
824
824
|
var Jn = function(o, g, y, k, $, F, N) {
|
|
825
|
-
var
|
|
825
|
+
var B = {
|
|
826
826
|
// This tag allows us to uniquely identify this as a React Element
|
|
827
827
|
$$typeof: t,
|
|
828
828
|
// Built-in properties that belong on the element
|
|
@@ -833,27 +833,27 @@ function gs() {
|
|
|
833
833
|
// Record the component responsible for creating this element.
|
|
834
834
|
_owner: F
|
|
835
835
|
};
|
|
836
|
-
return
|
|
836
|
+
return B._store = {}, Object.defineProperty(B._store, "validated", {
|
|
837
837
|
configurable: !1,
|
|
838
838
|
enumerable: !1,
|
|
839
839
|
writable: !0,
|
|
840
840
|
value: !1
|
|
841
|
-
}), Object.defineProperty(
|
|
841
|
+
}), Object.defineProperty(B, "_self", {
|
|
842
842
|
configurable: !1,
|
|
843
843
|
enumerable: !1,
|
|
844
844
|
writable: !1,
|
|
845
845
|
value: k
|
|
846
|
-
}), Object.defineProperty(
|
|
846
|
+
}), Object.defineProperty(B, "_source", {
|
|
847
847
|
configurable: !1,
|
|
848
848
|
enumerable: !1,
|
|
849
849
|
writable: !1,
|
|
850
850
|
value: $
|
|
851
|
-
}), Object.freeze && (Object.freeze(
|
|
851
|
+
}), Object.freeze && (Object.freeze(B.props), Object.freeze(B)), B;
|
|
852
852
|
};
|
|
853
853
|
function Qn(o, g, y, k, $) {
|
|
854
854
|
{
|
|
855
|
-
var F, N = {},
|
|
856
|
-
y !== void 0 && (Mt(y),
|
|
855
|
+
var F, N = {}, B = null, Y = null;
|
|
856
|
+
y !== void 0 && (Mt(y), B = "" + y), Hn(g) && (Mt(g.key), B = "" + g.key), Gn(g) && (Y = g.ref, Vn(g, $));
|
|
857
857
|
for (F in g)
|
|
858
858
|
Se.call(g, F) && !Kn.hasOwnProperty(F) && (N[F] = g[F]);
|
|
859
859
|
if (o && o.defaultProps) {
|
|
@@ -861,14 +861,14 @@ function gs() {
|
|
|
861
861
|
for (F in L)
|
|
862
862
|
N[F] === void 0 && (N[F] = L[F]);
|
|
863
863
|
}
|
|
864
|
-
if (
|
|
864
|
+
if (B || Y) {
|
|
865
865
|
var z = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
|
|
866
|
-
|
|
866
|
+
B && qn(N, z), Y && Xn(N, z);
|
|
867
867
|
}
|
|
868
|
-
return Jn(o,
|
|
868
|
+
return Jn(o, B, Y, $, k, Ee.current, N);
|
|
869
869
|
}
|
|
870
870
|
}
|
|
871
|
-
var He =
|
|
871
|
+
var He = x.ReactCurrentOwner, Pt = x.ReactDebugCurrentFrame;
|
|
872
872
|
function ye(o) {
|
|
873
873
|
if (o) {
|
|
874
874
|
var g = o._owner, y = Pe(o.type, o._source, g ? g.type : null);
|
|
@@ -983,12 +983,12 @@ Check the top-level render call using <` + y + ">.");
|
|
|
983
983
|
{
|
|
984
984
|
var N = I(o);
|
|
985
985
|
if (!N) {
|
|
986
|
-
var
|
|
987
|
-
(o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (
|
|
986
|
+
var B = "";
|
|
987
|
+
(o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (B += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
988
988
|
var Y = er();
|
|
989
|
-
Y ?
|
|
989
|
+
Y ? B += Y : B += Ot();
|
|
990
990
|
var L;
|
|
991
|
-
o === null ? L = "null" : Ke(o) ? L = "array" : o !== void 0 && o.$$typeof === t ? (L = "<" + (U(o.type) || "Unknown") + " />",
|
|
991
|
+
o === null ? L = "null" : Ke(o) ? L = "array" : o !== void 0 && o.$$typeof === t ? (L = "<" + (U(o.type) || "Unknown") + " />", B = " Did you accidentally export a JSX literal instead of a component?") : L = typeof o, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", L, B);
|
|
992
992
|
}
|
|
993
993
|
var z = Qn(o, g, y, $, F);
|
|
994
994
|
if (z == null)
|
|
@@ -1030,14 +1030,14 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1030
1030
|
return Zt(o, g, y, !1);
|
|
1031
1031
|
}
|
|
1032
1032
|
var ir = ar, or = sr;
|
|
1033
|
-
|
|
1034
|
-
}()),
|
|
1033
|
+
Te.Fragment = s, Te.jsx = ir, Te.jsxs = or;
|
|
1034
|
+
}()), Te;
|
|
1035
1035
|
}
|
|
1036
1036
|
process.env.NODE_ENV === "production" ? nt.exports = ms() : nt.exports = gs();
|
|
1037
1037
|
var r = nt.exports;
|
|
1038
|
-
const
|
|
1039
|
-
notice:
|
|
1040
|
-
error:
|
|
1038
|
+
const ps = "_notice_q5jau_1", xs = "_error_q5jau_10", vs = "_success_q5jau_13", bs = "_warning_q5jau_16", js = "_copy_q5jau_19", mn = {
|
|
1039
|
+
notice: ps,
|
|
1040
|
+
error: xs,
|
|
1041
1041
|
success: vs,
|
|
1042
1042
|
warning: bs,
|
|
1043
1043
|
copy: js,
|
|
@@ -1138,12 +1138,12 @@ ge.success = () => /* @__PURE__ */ r.jsxs("svg", { viewBox: "0 0 24 24", fill: "
|
|
|
1138
1138
|
}
|
|
1139
1139
|
)
|
|
1140
1140
|
] });
|
|
1141
|
-
const Es = "_alerts_1pds5_1",
|
|
1141
|
+
const Es = "_alerts_1pds5_1", Rs = "_menuAnimation_1pds5_1", Ts = "_menuItemAnimation_1pds5_1", Bs = "_allert_1pds5_111", Ns = "_al_1pds5_1", rt = {
|
|
1142
1142
|
alerts: Es,
|
|
1143
|
-
menuAnimation:
|
|
1144
|
-
menuItemAnimation:
|
|
1143
|
+
menuAnimation: Rs,
|
|
1144
|
+
menuItemAnimation: Ts,
|
|
1145
1145
|
"--body": "_--body_1pds5_103",
|
|
1146
|
-
allert:
|
|
1146
|
+
allert: Bs,
|
|
1147
1147
|
"--form": "_--form_1pds5_111",
|
|
1148
1148
|
al: Ns
|
|
1149
1149
|
};
|
|
@@ -1229,12 +1229,12 @@ const Os = "_white_11p39_14", Ls = "_black_11p39_26", As = "_shake_11p39_1", zs
|
|
|
1229
1229
|
sx: ca,
|
|
1230
1230
|
sf: ua
|
|
1231
1231
|
};
|
|
1232
|
-
let
|
|
1232
|
+
let xe = {};
|
|
1233
1233
|
function da({ config: e }) {
|
|
1234
1234
|
let [t, n] = C.useState([]);
|
|
1235
|
-
return
|
|
1235
|
+
return xe.x = (s) => {
|
|
1236
1236
|
s || n([]);
|
|
1237
|
-
},
|
|
1237
|
+
}, xe.config = e, xe.add = (s) => {
|
|
1238
1238
|
n([...t, s]);
|
|
1239
1239
|
}, /* @__PURE__ */ r.jsx(r.Fragment, { children: t.map((s) => s) });
|
|
1240
1240
|
}
|
|
@@ -1276,14 +1276,14 @@ function fa({
|
|
|
1276
1276
|
/* @__PURE__ */ r.jsxs("div", { className: J.h, children: [
|
|
1277
1277
|
/* @__PURE__ */ r.jsx("div", { className: J.t, children: e }),
|
|
1278
1278
|
/* @__PURE__ */ r.jsxs("div", { className: J.m, children: [
|
|
1279
|
-
s && /* @__PURE__ */ r.jsx("nav", { children: s.map((h,
|
|
1279
|
+
s && /* @__PURE__ */ r.jsx("nav", { children: s.map((h, p) => /* @__PURE__ */ r.jsx(
|
|
1280
1280
|
"span",
|
|
1281
1281
|
{
|
|
1282
1282
|
onClick: h.onClick,
|
|
1283
1283
|
className: h.active ? "active" : "",
|
|
1284
1284
|
children: h.name
|
|
1285
1285
|
},
|
|
1286
|
-
|
|
1286
|
+
p
|
|
1287
1287
|
)) }),
|
|
1288
1288
|
i
|
|
1289
1289
|
] }),
|
|
@@ -1317,7 +1317,7 @@ function fa({
|
|
|
1317
1317
|
) : "" });
|
|
1318
1318
|
}
|
|
1319
1319
|
function ha(e) {
|
|
1320
|
-
|
|
1320
|
+
xe.add(/* @__PURE__ */ r.jsx(ma, { children: e }, String(Date.now())));
|
|
1321
1321
|
}
|
|
1322
1322
|
function ma({ children: e }) {
|
|
1323
1323
|
return /* @__PURE__ */ r.jsx(r.Fragment, { children: e });
|
|
@@ -1330,17 +1330,17 @@ function ga(e) {
|
|
|
1330
1330
|
t.setAttribute("shake", !1);
|
|
1331
1331
|
}, 1e3);
|
|
1332
1332
|
}
|
|
1333
|
-
function
|
|
1333
|
+
function pa({ type: e, name: t, params: n }) {
|
|
1334
1334
|
let [s, a] = C.useState(null);
|
|
1335
1335
|
return C.useEffect(() => {
|
|
1336
|
-
|
|
1336
|
+
xe.config(e, t, n, a);
|
|
1337
1337
|
}, [n.id]), /* @__PURE__ */ r.jsx(r.Fragment, { children: s });
|
|
1338
1338
|
}
|
|
1339
|
-
function
|
|
1340
|
-
|
|
1339
|
+
function xa(e, t) {
|
|
1340
|
+
xe.config(e, t);
|
|
1341
1341
|
}
|
|
1342
1342
|
function va(e) {
|
|
1343
|
-
|
|
1343
|
+
xe.x(e);
|
|
1344
1344
|
}
|
|
1345
1345
|
const st = {};
|
|
1346
1346
|
function ba(e, t) {
|
|
@@ -1379,13 +1379,13 @@ const ce = {
|
|
|
1379
1379
|
getPage: nn,
|
|
1380
1380
|
usePage: wr,
|
|
1381
1381
|
isPage: Sr,
|
|
1382
|
-
setModule:
|
|
1382
|
+
setModule: Rr,
|
|
1383
1383
|
getModule: rn,
|
|
1384
1384
|
useModule: Er,
|
|
1385
|
-
isModule:
|
|
1385
|
+
isModule: Tr,
|
|
1386
1386
|
setTabs: Nr,
|
|
1387
1387
|
getTabs: Ae,
|
|
1388
|
-
useTabs:
|
|
1388
|
+
useTabs: Br,
|
|
1389
1389
|
isTabs: Dr,
|
|
1390
1390
|
useId: Ir,
|
|
1391
1391
|
setId: $r,
|
|
@@ -1400,7 +1400,7 @@ const ce = {
|
|
|
1400
1400
|
"aria-checked": `${t ? "true" : "false"}`
|
|
1401
1401
|
}
|
|
1402
1402
|
));
|
|
1403
|
-
function
|
|
1403
|
+
function pn({ onClick: e, onSend: t, name: n, onRef: s }) {
|
|
1404
1404
|
let [a, i] = C.useState(!1);
|
|
1405
1405
|
const l = () => {
|
|
1406
1406
|
if (e)
|
|
@@ -1418,7 +1418,7 @@ function xn({ onClick: e, onSend: t, name: n, onRef: s }) {
|
|
|
1418
1418
|
}
|
|
1419
1419
|
);
|
|
1420
1420
|
}
|
|
1421
|
-
function
|
|
1421
|
+
function xn({
|
|
1422
1422
|
value: e,
|
|
1423
1423
|
onValue: t,
|
|
1424
1424
|
onActive: n,
|
|
@@ -1438,14 +1438,14 @@ function pn({
|
|
|
1438
1438
|
d.current.value.length > 0 ? d.current.send && (n(!0), d.current.send = !1, d.current.timerId = setTimeout(() => {
|
|
1439
1439
|
d.current.send = !0;
|
|
1440
1440
|
}, 3e3)) : n(!1);
|
|
1441
|
-
}, h = (
|
|
1442
|
-
d.current.value =
|
|
1443
|
-
},
|
|
1444
|
-
|
|
1445
|
-
}, m = (
|
|
1446
|
-
|
|
1447
|
-
}, b = (
|
|
1448
|
-
|
|
1441
|
+
}, h = (x) => {
|
|
1442
|
+
d.current.value = x.target.textContent, f();
|
|
1443
|
+
}, p = (x) => {
|
|
1444
|
+
x.keyCode === 16 && (d.current.shift = !0), x.keyCode === 13 && !d.current.shift && (x.preventDefault(), d.current.value.length !== 0 && (x.target.textContent = "", s && s(d.current.value), t && t(d.current.value), d.current.value = "", n(!1)));
|
|
1445
|
+
}, m = (x) => {
|
|
1446
|
+
x.keyCode === 16 && (d.current.shift = !1);
|
|
1447
|
+
}, b = (x) => {
|
|
1448
|
+
x.preventDefault(), navigator.clipboard.readText().then((_) => {
|
|
1449
1449
|
window.document.execCommand("insertText", !1, _);
|
|
1450
1450
|
}).catch((_) => {
|
|
1451
1451
|
});
|
|
@@ -1460,7 +1460,7 @@ function pn({
|
|
|
1460
1460
|
onPaste: b,
|
|
1461
1461
|
onInput: h,
|
|
1462
1462
|
onKeyUp: m,
|
|
1463
|
-
onKeyDown:
|
|
1463
|
+
onKeyDown: p,
|
|
1464
1464
|
onBlur: j,
|
|
1465
1465
|
...v,
|
|
1466
1466
|
suppressContentEditableWarning: !0,
|
|
@@ -1532,8 +1532,8 @@ function bn({ value: e, onValue: t, placeholder: n = "", name: s }) {
|
|
|
1532
1532
|
}, [c]);
|
|
1533
1533
|
const h = {};
|
|
1534
1534
|
h.field = "captcha";
|
|
1535
|
-
const
|
|
1536
|
-
return n && (
|
|
1535
|
+
const p = {};
|
|
1536
|
+
return n && (p.placeholder = n), /* @__PURE__ */ r.jsxs("dl", { ...h, children: [
|
|
1537
1537
|
/* @__PURE__ */ r.jsx(
|
|
1538
1538
|
"dd",
|
|
1539
1539
|
{
|
|
@@ -1544,7 +1544,7 @@ function bn({ value: e, onValue: t, placeholder: n = "", name: s }) {
|
|
|
1544
1544
|
onKeyDown: u,
|
|
1545
1545
|
contentEditable: "plaintext-only",
|
|
1546
1546
|
suppressContentEditableWarning: !0,
|
|
1547
|
-
...
|
|
1547
|
+
...p
|
|
1548
1548
|
}
|
|
1549
1549
|
),
|
|
1550
1550
|
/* @__PURE__ */ r.jsx("canvas", { ref: i, width: "100", height: "35" })
|
|
@@ -1751,16 +1751,16 @@ function Sa(e) {
|
|
|
1751
1751
|
};
|
|
1752
1752
|
}
|
|
1753
1753
|
const Ea = (e) => {
|
|
1754
|
-
function t(S,
|
|
1755
|
-
var M, P,
|
|
1756
|
-
S = S ?? "",
|
|
1757
|
-
for (var M = [],
|
|
1758
|
-
M.push(S.slice(
|
|
1754
|
+
function t(S, E) {
|
|
1755
|
+
var M, P, T;
|
|
1756
|
+
S = S ?? "", E = E ?? 1;
|
|
1757
|
+
for (var M = [], T = 0, P = S.length; T < P; )
|
|
1758
|
+
M.push(S.slice(T, T += E));
|
|
1759
1759
|
return M;
|
|
1760
1760
|
}
|
|
1761
|
-
function n(S,
|
|
1761
|
+
function n(S, E) {
|
|
1762
1762
|
var M = [2, 0, 1, 1, 1, 2];
|
|
1763
|
-
return
|
|
1763
|
+
return E[S > 4 && S < 20 ? 2 : M[Math.min(S, 5)]];
|
|
1764
1764
|
}
|
|
1765
1765
|
var s = {
|
|
1766
1766
|
null: "ноль",
|
|
@@ -1824,7 +1824,7 @@ const Ea = (e) => {
|
|
|
1824
1824
|
u3: ["тысяча", "тысячи", "тысяч"],
|
|
1825
1825
|
u2: ["миллион", "миллиона", "миллионов"],
|
|
1826
1826
|
u1: ["миллиард", "миллиарда", "миллиардов"]
|
|
1827
|
-
}, a, i, l, c, v, u, d, j, f, h,
|
|
1827
|
+
}, a, i, l, c, v, u, d, j, f, h, p, m;
|
|
1828
1828
|
f = parseFloat(e).toFixed(2).split("."), u = f[0], c = f[1];
|
|
1829
1829
|
var b = 12 - u.length;
|
|
1830
1830
|
if (b < 0)
|
|
@@ -1835,31 +1835,31 @@ const Ea = (e) => {
|
|
|
1835
1835
|
var v = [];
|
|
1836
1836
|
if (u > 0) {
|
|
1837
1837
|
h = t(u, 3);
|
|
1838
|
-
for (var
|
|
1839
|
-
if (d = h[
|
|
1838
|
+
for (var x = -1; x < h.length; x++)
|
|
1839
|
+
if (d = h[x], d > 0 && (p = t(d, 1), a = parseInt(p[0]), i = parseInt(p[1]), l = parseInt(p[2]), v.push(s.a100[a - 1]), m = x + 1 == 3 ? "a2" : "a1", i > 1 ? v.push(
|
|
1840
1840
|
s.a20[i - 2] + (l > 0 ? " " + s[m][l - 1] : "")
|
|
1841
1841
|
) : v.push(
|
|
1842
1842
|
i > 0 ? s.a10[l] : s[m][l - 1]
|
|
1843
|
-
), h.length >
|
|
1844
|
-
var _ = s["u" + (
|
|
1843
|
+
), h.length > x + 1)) {
|
|
1844
|
+
var _ = s["u" + (x + 1)];
|
|
1845
1845
|
v.push(n(d, _));
|
|
1846
1846
|
}
|
|
1847
1847
|
} else
|
|
1848
1848
|
v.push(s.null);
|
|
1849
1849
|
return v.push(n(u, s.ur)), v.push(c + " " + n(c, s.uc)), v.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
|
|
1850
1850
|
};
|
|
1851
|
-
function
|
|
1851
|
+
function Ra(e) {
|
|
1852
1852
|
let t = -1, n = [" kB", " MB", " GB", " TB", "PB", "EB", "ZB", "YB"];
|
|
1853
1853
|
do
|
|
1854
1854
|
e = e / 1024, t++;
|
|
1855
1855
|
while (e > 1024);
|
|
1856
1856
|
return Math.max(e, 0.1).toFixed(1) + n[t];
|
|
1857
1857
|
}
|
|
1858
|
-
function
|
|
1858
|
+
function Ta(e) {
|
|
1859
1859
|
let t = {};
|
|
1860
1860
|
return t["application/atom+xml"] = "atom", t["application/json"] = "json", t["application/javascript"] = "js", t["application/ogg"] = "ogg", t["application/pdf"] = "pdf", t["application/soap+xml"] = "soap", t["application/font-woff"] = "woff", t["application/xhtml+xml"] = "xml", t["application/xml-dtd"] = "dtd", t["application/xop+xml"] = "xop", t["application/zip"] = "zip", t["application/gzip"] = "gzip", t["application/x-bittorrent"] = "bittorrent", t["application/x-tex"] = "tex", t["application/xml"] = "xml", t["application/msword"] = "doc", t["image/svg+xml"] = "svg", t[e];
|
|
1861
1861
|
}
|
|
1862
|
-
function
|
|
1862
|
+
function Ba(e, t, n, s) {
|
|
1863
1863
|
let a = {
|
|
1864
1864
|
sexM: "m",
|
|
1865
1865
|
sexF: "f",
|
|
@@ -1983,7 +1983,7 @@ function Ta(e, t, n, s) {
|
|
|
1983
1983
|
if (d === this.gcaseNom)
|
|
1984
1984
|
return l;
|
|
1985
1985
|
if (l.match(/[-]/)) {
|
|
1986
|
-
for (var f = l.split("-"), h = 0,
|
|
1986
|
+
for (var f = l.split("-"), h = 0, p = f.length; h < p; h++)
|
|
1987
1987
|
f[h] = this.word(f[h], c, u, d);
|
|
1988
1988
|
return f.join("-");
|
|
1989
1989
|
}
|
|
@@ -1997,9 +1997,9 @@ function Ta(e, t, n, s) {
|
|
|
1997
1997
|
// выбираем из списка правил первое подходящее и применяем
|
|
1998
1998
|
pick: function(l, c, u, d, f) {
|
|
1999
1999
|
let h = l.toLowerCase();
|
|
2000
|
-
for (var
|
|
2001
|
-
if (this.ruleMatch(h, c, d[
|
|
2002
|
-
return this.applyMod(l, u, d[
|
|
2000
|
+
for (var p = 0, m = d.length; p < m; p++)
|
|
2001
|
+
if (this.ruleMatch(h, c, d[p], f))
|
|
2002
|
+
return this.applyMod(l, u, d[p]);
|
|
2003
2003
|
return !1;
|
|
2004
2004
|
},
|
|
2005
2005
|
// проверяем, подходит ли правило к слову
|
|
@@ -2007,10 +2007,10 @@ function Ta(e, t, n, s) {
|
|
|
2007
2007
|
if (u.sex === this.sexM && c === this.sexF || u.sex === this.sexF && c !== this.sexF)
|
|
2008
2008
|
return !1;
|
|
2009
2009
|
for (var f = 0, h = u.test.length; f < h; f++) {
|
|
2010
|
-
var
|
|
2010
|
+
var p = d ? l : l.substr(
|
|
2011
2011
|
Math.max(l.length - u.test[f].length, 0)
|
|
2012
2012
|
);
|
|
2013
|
-
if (
|
|
2013
|
+
if (p === u.test[f])
|
|
2014
2014
|
return !0;
|
|
2015
2015
|
}
|
|
2016
2016
|
return !1;
|
|
@@ -2039,15 +2039,15 @@ function Ta(e, t, n, s) {
|
|
|
2039
2039
|
break;
|
|
2040
2040
|
}
|
|
2041
2041
|
for (var f = 0, h = d.length; f < h; f++) {
|
|
2042
|
-
var
|
|
2043
|
-
switch (
|
|
2042
|
+
var p = d.substr(f, 1);
|
|
2043
|
+
switch (p) {
|
|
2044
2044
|
case ".":
|
|
2045
2045
|
break;
|
|
2046
2046
|
case "-":
|
|
2047
2047
|
l = l.substr(0, l.length - 1);
|
|
2048
2048
|
break;
|
|
2049
2049
|
default:
|
|
2050
|
-
l +=
|
|
2050
|
+
l += p;
|
|
2051
2051
|
}
|
|
2052
2052
|
}
|
|
2053
2053
|
return l;
|
|
@@ -2262,9 +2262,9 @@ const ie = {
|
|
|
2262
2262
|
ColorBackground: qa,
|
|
2263
2263
|
MoneyString: Ea,
|
|
2264
2264
|
DateSort: Sa,
|
|
2265
|
-
Size:
|
|
2266
|
-
TypeFiles:
|
|
2267
|
-
Cases:
|
|
2265
|
+
Size: Ra,
|
|
2266
|
+
TypeFiles: Ta,
|
|
2267
|
+
Cases: Ba,
|
|
2268
2268
|
Initials: Na,
|
|
2269
2269
|
Month: Da,
|
|
2270
2270
|
Money: Ia,
|
|
@@ -2290,23 +2290,23 @@ function ht({
|
|
|
2290
2290
|
onSave: i,
|
|
2291
2291
|
className: l
|
|
2292
2292
|
}) {
|
|
2293
|
-
const c = "__.__.____", u = new Set("_"), d = ((
|
|
2293
|
+
const c = "__.__.____", u = new Set("_"), d = ((x) => Array.from(c, (_, S) => u.has(_) ? x = S + 1 : x))(0), f = [...c].findIndex((x) => u.has(x)), h = new RegExp("\\d", "g"), p = (x) => (x = x.match(h) || [], Array.from(
|
|
2294
2294
|
c,
|
|
2295
|
-
(_) => (
|
|
2296
|
-
)), m = (
|
|
2297
|
-
const [_, S] = [
|
|
2298
|
-
(
|
|
2295
|
+
(_) => (x[0] === _ || u.has(_)) && x.shift() || _
|
|
2296
|
+
)), m = (x) => {
|
|
2297
|
+
const [_, S] = [x.target.selectionStart, x.target.selectionEnd].map(
|
|
2298
|
+
(E) => (E = p(x.target.value.slice(0, E)).findIndex(
|
|
2299
2299
|
(M) => u.has(M)
|
|
2300
|
-
),
|
|
2300
|
+
), E < 0 ? d[d.length - 1] : j ? d[E - 1] || f : E)
|
|
2301
2301
|
);
|
|
2302
|
-
|
|
2302
|
+
x.target.value = p(x.target.value).join(""), x.target.setSelectionRange(_, S), j = !1, s == null || s({
|
|
2303
2303
|
name: a,
|
|
2304
|
-
value:
|
|
2304
|
+
value: x.target.value.split(".").reverse().join("-")
|
|
2305
2305
|
});
|
|
2306
|
-
}, b = (
|
|
2307
|
-
|
|
2306
|
+
}, b = (x) => {
|
|
2307
|
+
x.target.value = p(x.target.value).join(""), i == null || i({
|
|
2308
2308
|
name: a,
|
|
2309
|
-
value:
|
|
2309
|
+
value: x.target.value.split(".").reverse().join("-")
|
|
2310
2310
|
});
|
|
2311
2311
|
};
|
|
2312
2312
|
let j = !1;
|
|
@@ -2320,7 +2320,7 @@ function ht({
|
|
|
2320
2320
|
placeholder: n,
|
|
2321
2321
|
onChange: m,
|
|
2322
2322
|
inputMode: "numeric",
|
|
2323
|
-
onKeyDown: (
|
|
2323
|
+
onKeyDown: (x) => j = x.key === "Backspace",
|
|
2324
2324
|
onFocus: m,
|
|
2325
2325
|
defaultValue: ie.Date(t, "dd.mm.yyyy"),
|
|
2326
2326
|
onBlur: b
|
|
@@ -2346,8 +2346,8 @@ const Cn = {
|
|
|
2346
2346
|
Scroll: Ja,
|
|
2347
2347
|
Main: fa,
|
|
2348
2348
|
Add: ha,
|
|
2349
|
-
Icon:
|
|
2350
|
-
Open:
|
|
2349
|
+
Icon: pa,
|
|
2350
|
+
Open: xa,
|
|
2351
2351
|
Shake: ga,
|
|
2352
2352
|
Form: Qa,
|
|
2353
2353
|
Center: ei,
|
|
@@ -2366,18 +2366,18 @@ function mt({
|
|
|
2366
2366
|
active: d = !0,
|
|
2367
2367
|
after: f = "",
|
|
2368
2368
|
view: h,
|
|
2369
|
-
modal:
|
|
2369
|
+
modal: p,
|
|
2370
2370
|
module: m,
|
|
2371
2371
|
options: b,
|
|
2372
2372
|
className: j
|
|
2373
2373
|
}) {
|
|
2374
|
-
let [v,
|
|
2375
|
-
if (!(c && d) || !
|
|
2374
|
+
let [v, x] = C.useState(e), _ = (M) => {
|
|
2375
|
+
if (!(c && d) || !p)
|
|
2376
2376
|
return;
|
|
2377
|
-
let
|
|
2378
|
-
Cn.Open(
|
|
2377
|
+
let T = p.split(".");
|
|
2378
|
+
Cn.Open(T[1], {
|
|
2379
2379
|
callback: (P) => {
|
|
2380
|
-
t && t({ value: P, name: n }),
|
|
2380
|
+
t && t({ value: P, name: n }), x(P);
|
|
2381
2381
|
},
|
|
2382
2382
|
onValue: t,
|
|
2383
2383
|
options: b,
|
|
@@ -2387,13 +2387,13 @@ function mt({
|
|
|
2387
2387
|
};
|
|
2388
2388
|
const S = {};
|
|
2389
2389
|
S.field = "input", j && (S.className = j);
|
|
2390
|
-
const
|
|
2391
|
-
return s && (
|
|
2390
|
+
const E = {};
|
|
2391
|
+
return s && (E.placeholder = s), l ? /* @__PURE__ */ r.jsx(r.Fragment, {}) : /* @__PURE__ */ r.jsxs("dl", { ...S, children: [
|
|
2392
2392
|
a && /* @__PURE__ */ r.jsx("dt", { children: a }),
|
|
2393
2393
|
/* @__PURE__ */ r.jsx(
|
|
2394
2394
|
"dd",
|
|
2395
2395
|
{
|
|
2396
|
-
...
|
|
2396
|
+
...E,
|
|
2397
2397
|
onClick: _,
|
|
2398
2398
|
edit: (c && d) + "",
|
|
2399
2399
|
"data-after": f,
|
|
@@ -2404,9 +2404,9 @@ function mt({
|
|
|
2404
2404
|
] });
|
|
2405
2405
|
}
|
|
2406
2406
|
function gt(e) {
|
|
2407
|
-
let t = e.value, n = (h) => e.type === "multi" ? h.replace(/[^+\d.+-]/g, "") : h.replace(/[^+\d.]/g, ""), s = (h,
|
|
2407
|
+
let t = e.value, n = (h) => e.type === "multi" ? h.replace(/[^+\d.+-]/g, "") : h.replace(/[^+\d.]/g, ""), s = (h, p) => {
|
|
2408
2408
|
let m = document.createRange(), b = window.getSelection();
|
|
2409
|
-
m.setStart(
|
|
2409
|
+
m.setStart(p.childNodes[0], h), m.collapse(!0), b.removeAllRanges(), b.addRange(m), p.focus();
|
|
2410
2410
|
}, a = (h) => {
|
|
2411
2411
|
e.onValue({
|
|
2412
2412
|
value: n(h.target.textContent),
|
|
@@ -2422,9 +2422,9 @@ function gt(e) {
|
|
|
2422
2422
|
}, c = (h) => {
|
|
2423
2423
|
h.key === "Enter" && h.preventDefault();
|
|
2424
2424
|
}, u = (h) => {
|
|
2425
|
-
h.preventDefault(), navigator.clipboard.readText().then((
|
|
2426
|
-
|
|
2427
|
-
}).catch((
|
|
2425
|
+
h.preventDefault(), navigator.clipboard.readText().then((p) => {
|
|
2426
|
+
p = p.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, p);
|
|
2427
|
+
}).catch((p) => {
|
|
2428
2428
|
});
|
|
2429
2429
|
}, d = () => e.title ? /* @__PURE__ */ r.jsx("dt", { children: e.title }) : "", f = () => e.error ? /* @__PURE__ */ r.jsx("em", { children: e.error }) : "";
|
|
2430
2430
|
return /* @__PURE__ */ r.jsxs(
|
|
@@ -2472,19 +2472,19 @@ function _n({
|
|
|
2472
2472
|
C.useEffect(() => {
|
|
2473
2473
|
h(e);
|
|
2474
2474
|
}, [e]);
|
|
2475
|
-
let
|
|
2475
|
+
let p = (j) => {
|
|
2476
2476
|
h(j), t && t({ value: j, name: n });
|
|
2477
2477
|
}, m = (j) => {
|
|
2478
2478
|
if (!i || !l)
|
|
2479
2479
|
return;
|
|
2480
|
-
const v = j.target.getBoundingClientRect(),
|
|
2480
|
+
const v = j.target.getBoundingClientRect(), x = v.left, _ = v.top;
|
|
2481
2481
|
ft.setListener(
|
|
2482
2482
|
"form",
|
|
2483
2483
|
/* @__PURE__ */ r.jsx(
|
|
2484
2484
|
ri,
|
|
2485
2485
|
{
|
|
2486
|
-
position: { x
|
|
2487
|
-
onValue:
|
|
2486
|
+
position: { x, y: _ },
|
|
2487
|
+
onValue: p,
|
|
2488
2488
|
date: f
|
|
2489
2489
|
},
|
|
2490
2490
|
(/* @__PURE__ */ new Date()).getTime()
|
|
@@ -2529,9 +2529,9 @@ const ri = (e) => {
|
|
|
2529
2529
|
u(c + 1);
|
|
2530
2530
|
}, h = () => {
|
|
2531
2531
|
u(c - 1);
|
|
2532
|
-
},
|
|
2533
|
-
e.onValue(c + "-" + ie.Number(2,
|
|
2534
|
-
}, m = (
|
|
2532
|
+
}, p = (x) => {
|
|
2533
|
+
e.onValue(c + "-" + ie.Number(2, x)), d();
|
|
2534
|
+
}, m = (x) => i.y === l.y && i.m === x ? "_FFEB3B" : "", b = Array(12).fill("").map((x, _) => _ + 1), j = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, v = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
|
|
2535
2535
|
return /* @__PURE__ */ r.jsx(r.Fragment, { children: t ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2536
2536
|
/* @__PURE__ */ r.jsx(
|
|
2537
2537
|
"div",
|
|
@@ -2555,14 +2555,14 @@ const ri = (e) => {
|
|
|
2555
2555
|
/* @__PURE__ */ r.jsx(
|
|
2556
2556
|
"div",
|
|
2557
2557
|
{
|
|
2558
|
-
children: b.map((
|
|
2558
|
+
children: b.map((x, _) => /* @__PURE__ */ r.jsx(
|
|
2559
2559
|
"span",
|
|
2560
2560
|
{
|
|
2561
2561
|
onClick: () => {
|
|
2562
|
-
x
|
|
2562
|
+
p(x);
|
|
2563
2563
|
},
|
|
2564
|
-
color: m(
|
|
2565
|
-
children: /* @__PURE__ */ r.jsx("b", { children: ie.Month(
|
|
2564
|
+
color: m(x),
|
|
2565
|
+
children: /* @__PURE__ */ r.jsx("b", { children: ie.Month(x).abc })
|
|
2566
2566
|
},
|
|
2567
2567
|
_
|
|
2568
2568
|
))
|
|
@@ -2579,11 +2579,11 @@ function wn(e) {
|
|
|
2579
2579
|
let d = e.placeholder !== void 0 ? e.placeholder : "Заметка пуста", f = (v) => {
|
|
2580
2580
|
e.onValue && e.onValue({ value: v.target.innerText, name: e.name });
|
|
2581
2581
|
}, h = (v) => {
|
|
2582
|
-
v.preventDefault(), navigator.clipboard.readText().then((
|
|
2583
|
-
window.document.execCommand("insertText", !1,
|
|
2584
|
-
}).catch((
|
|
2582
|
+
v.preventDefault(), navigator.clipboard.readText().then((x) => {
|
|
2583
|
+
window.document.execCommand("insertText", !1, x);
|
|
2584
|
+
}).catch((x) => {
|
|
2585
2585
|
});
|
|
2586
|
-
},
|
|
2586
|
+
}, p = (v) => {
|
|
2587
2587
|
i || a(!s);
|
|
2588
2588
|
};
|
|
2589
2589
|
const m = (v) => {
|
|
@@ -2601,7 +2601,7 @@ function wn(e) {
|
|
|
2601
2601
|
onBlur: m,
|
|
2602
2602
|
contentEditable: i && l ? "plaintext-only" : "false",
|
|
2603
2603
|
...j,
|
|
2604
|
-
onDoubleClick:
|
|
2604
|
+
onDoubleClick: p,
|
|
2605
2605
|
suppressContentEditableWarning: !0,
|
|
2606
2606
|
children: e.value
|
|
2607
2607
|
}
|
|
@@ -2609,7 +2609,7 @@ function wn(e) {
|
|
|
2609
2609
|
n()
|
|
2610
2610
|
] });
|
|
2611
2611
|
}
|
|
2612
|
-
function
|
|
2612
|
+
function pt({
|
|
2613
2613
|
onValue: e,
|
|
2614
2614
|
onSave: t,
|
|
2615
2615
|
value: n,
|
|
@@ -2622,7 +2622,7 @@ function xt({
|
|
|
2622
2622
|
show: d,
|
|
2623
2623
|
hide: f,
|
|
2624
2624
|
placeholder: h,
|
|
2625
|
-
className:
|
|
2625
|
+
className: p,
|
|
2626
2626
|
after: m,
|
|
2627
2627
|
view: b
|
|
2628
2628
|
}) {
|
|
@@ -2630,10 +2630,10 @@ function xt({
|
|
|
2630
2630
|
let v = (S) => {
|
|
2631
2631
|
e == null || e({ name: s, value: S.currentTarget.value });
|
|
2632
2632
|
};
|
|
2633
|
-
const
|
|
2633
|
+
const x = (S) => {
|
|
2634
2634
|
t == null || t({ name: s, value: S.currentTarget.value });
|
|
2635
2635
|
}, _ = {};
|
|
2636
|
-
return _.field = "input",
|
|
2636
|
+
return _.field = "input", p && (_.className = p), f ? /* @__PURE__ */ r.jsx(r.Fragment, {}) : /* @__PURE__ */ r.jsxs("dl", { ..._, children: [
|
|
2637
2637
|
c && /* @__PURE__ */ r.jsx("dt", { children: c }),
|
|
2638
2638
|
/* @__PURE__ */ r.jsx("dd", { children: /* @__PURE__ */ r.jsx(
|
|
2639
2639
|
"input",
|
|
@@ -2642,7 +2642,7 @@ function xt({
|
|
|
2642
2642
|
type: "tel",
|
|
2643
2643
|
inputMode: "numeric",
|
|
2644
2644
|
onChange: v,
|
|
2645
|
-
onBlur:
|
|
2645
|
+
onBlur: x,
|
|
2646
2646
|
placeholder: h,
|
|
2647
2647
|
defaultValue: n
|
|
2648
2648
|
}
|
|
@@ -2669,16 +2669,16 @@ function kn({
|
|
|
2669
2669
|
name: n,
|
|
2670
2670
|
reload: d
|
|
2671
2671
|
});
|
|
2672
|
-
},
|
|
2672
|
+
}, p = (v) => {
|
|
2673
2673
|
v.key === "Enter" && v.preventDefault();
|
|
2674
2674
|
}, m = (v) => {
|
|
2675
|
-
v.preventDefault(), navigator.clipboard.readText().then((
|
|
2675
|
+
v.preventDefault(), navigator.clipboard.readText().then((x) => {
|
|
2676
2676
|
window.document.execCommand(
|
|
2677
2677
|
"insertText",
|
|
2678
2678
|
!1,
|
|
2679
|
-
|
|
2679
|
+
x.replace(/(\r\n|\n|\r)/gm, " ")
|
|
2680
2680
|
);
|
|
2681
|
-
}).catch((
|
|
2681
|
+
}).catch((x) => {
|
|
2682
2682
|
});
|
|
2683
2683
|
};
|
|
2684
2684
|
const b = {};
|
|
@@ -2691,7 +2691,7 @@ function kn({
|
|
|
2691
2691
|
{
|
|
2692
2692
|
onPaste: m,
|
|
2693
2693
|
onInput: h,
|
|
2694
|
-
onKeyDown:
|
|
2694
|
+
onKeyDown: p,
|
|
2695
2695
|
onBlur: be.Blur,
|
|
2696
2696
|
contentEditable: c && u ? "plaintext-only" : "false",
|
|
2697
2697
|
...j,
|
|
@@ -2702,7 +2702,7 @@ function kn({
|
|
|
2702
2702
|
l ? /* @__PURE__ */ r.jsx("em", { children: l }) : ""
|
|
2703
2703
|
] });
|
|
2704
2704
|
}
|
|
2705
|
-
function
|
|
2705
|
+
function xt({
|
|
2706
2706
|
onValue: e,
|
|
2707
2707
|
onSave: t,
|
|
2708
2708
|
value: n,
|
|
@@ -2716,20 +2716,20 @@ function pt({
|
|
|
2716
2716
|
className: f
|
|
2717
2717
|
}) {
|
|
2718
2718
|
i = i !== void 0 ? i : !0, a = a !== void 0 ? a : !0, u = !!(u && (n === "" || n === void 0)) && !(i && a), d = d || "";
|
|
2719
|
-
const
|
|
2720
|
-
|
|
2721
|
-
(P) => (
|
|
2722
|
-
)), _ = (
|
|
2723
|
-
const [P, ee] = [
|
|
2724
|
-
(O) => (O =
|
|
2719
|
+
const p = "+7__________", m = new Set("_"), b = ((T) => Array.from(p, (P, ee) => m.has(P) ? T = ee + 1 : T))(0), j = [...p].findIndex((T) => m.has(T)), v = new RegExp("\\d", "g"), x = (T) => (T = T.match(v) || [], Array.from(
|
|
2720
|
+
p,
|
|
2721
|
+
(P) => (T[0] === P || m.has(P)) && T.shift() || P
|
|
2722
|
+
)), _ = (T) => {
|
|
2723
|
+
const [P, ee] = [T.target.selectionStart, T.target.selectionEnd].map(
|
|
2724
|
+
(O) => (O = x(T.target.value.slice(0, O)).findIndex(
|
|
2725
2725
|
(I) => m.has(I)
|
|
2726
|
-
), O < 0 ? b[b.length - 1] :
|
|
2726
|
+
), O < 0 ? b[b.length - 1] : E ? b[O - 1] || j : O)
|
|
2727
2727
|
);
|
|
2728
|
-
|
|
2729
|
-
}, S = (
|
|
2730
|
-
|
|
2728
|
+
T.target.value = x(T.target.value).join(""), T.target.setSelectionRange(P, ee), E = !1, e == null || e({ name: s, value: T.target.value.match(/\d+/g)[0] });
|
|
2729
|
+
}, S = (T) => {
|
|
2730
|
+
T.target.value = x(T.target.value).join(""), t == null || t({ name: s, value: T.target.value.match(/\d+/g)[0] });
|
|
2731
2731
|
};
|
|
2732
|
-
let
|
|
2732
|
+
let E = !1;
|
|
2733
2733
|
const M = {};
|
|
2734
2734
|
return M.field = "input", f && (M.className = f), u ? /* @__PURE__ */ r.jsx(r.Fragment, {}) : /* @__PURE__ */ r.jsxs("dl", { ...M, children: [
|
|
2735
2735
|
l && /* @__PURE__ */ r.jsx("dt", { children: l }),
|
|
@@ -2797,15 +2797,15 @@ function vt({
|
|
|
2797
2797
|
name: d,
|
|
2798
2798
|
after: f,
|
|
2799
2799
|
view: h,
|
|
2800
|
-
className:
|
|
2800
|
+
className: p
|
|
2801
2801
|
}) {
|
|
2802
2802
|
var _;
|
|
2803
2803
|
const m = C.useId(), [b, j] = C.useState((_ = c[parseInt(i)]) == null ? void 0 : _.n);
|
|
2804
2804
|
let v = (S) => {
|
|
2805
2805
|
j(c[S.target.value].n), l == null || l({ name: d, value: S.target.value });
|
|
2806
2806
|
};
|
|
2807
|
-
const
|
|
2808
|
-
return
|
|
2807
|
+
const x = {};
|
|
2808
|
+
return x.field = "select", p && (x.className = p), /* @__PURE__ */ r.jsxs("dl", { ...x, children: [
|
|
2809
2809
|
e ? /* @__PURE__ */ r.jsx("dt", { children: e }) : "",
|
|
2810
2810
|
/* @__PURE__ */ r.jsxs("dd", { children: [
|
|
2811
2811
|
b,
|
|
@@ -2835,13 +2835,13 @@ function bt({
|
|
|
2835
2835
|
after: d = "",
|
|
2836
2836
|
show: f = !0,
|
|
2837
2837
|
view: h,
|
|
2838
|
-
onSave:
|
|
2838
|
+
onSave: p,
|
|
2839
2839
|
className: m = ""
|
|
2840
2840
|
}) {
|
|
2841
|
-
let b = !!(l && (e === "" || e === void 0)), j = (
|
|
2842
|
-
t == null || t({ value:
|
|
2843
|
-
}, v = (
|
|
2844
|
-
|
|
2841
|
+
let b = !!(l && (e === "" || e === void 0)), j = (E) => {
|
|
2842
|
+
t == null || t({ value: E.target.value, name: n });
|
|
2843
|
+
}, v = (E) => {
|
|
2844
|
+
E.preventDefault(), navigator.clipboard.readText().then((M) => {
|
|
2845
2845
|
window.document.execCommand(
|
|
2846
2846
|
"insertText",
|
|
2847
2847
|
!1,
|
|
@@ -2849,8 +2849,8 @@ function bt({
|
|
|
2849
2849
|
);
|
|
2850
2850
|
}).catch((M) => {
|
|
2851
2851
|
});
|
|
2852
|
-
},
|
|
2853
|
-
|
|
2852
|
+
}, x = (E) => {
|
|
2853
|
+
E.preventDefault(), navigator.clipboard.writeText(E.target.value).then(
|
|
2854
2854
|
function() {
|
|
2855
2855
|
at.Copy("Данные в буфер обмене");
|
|
2856
2856
|
},
|
|
@@ -2862,8 +2862,8 @@ function bt({
|
|
|
2862
2862
|
return "";
|
|
2863
2863
|
const _ = {};
|
|
2864
2864
|
_.field = "input", m && (_.className = m);
|
|
2865
|
-
const S = (
|
|
2866
|
-
|
|
2865
|
+
const S = (E) => {
|
|
2866
|
+
p == null || p({ value: E.target.value, name: n });
|
|
2867
2867
|
};
|
|
2868
2868
|
return /* @__PURE__ */ r.jsxs("dl", { ..._, children: [
|
|
2869
2869
|
a ? /* @__PURE__ */ r.jsx("dt", { children: a }) : "",
|
|
@@ -2876,7 +2876,7 @@ function bt({
|
|
|
2876
2876
|
onChange: j,
|
|
2877
2877
|
onPaste: v,
|
|
2878
2878
|
onBlur: S,
|
|
2879
|
-
onContextMenu:
|
|
2879
|
+
onContextMenu: x,
|
|
2880
2880
|
placeholder: s,
|
|
2881
2881
|
defaultValue: e,
|
|
2882
2882
|
spellCheck: "false"
|
|
@@ -2908,8 +2908,8 @@ function jt(e) {
|
|
|
2908
2908
|
)
|
|
2909
2909
|
);
|
|
2910
2910
|
};
|
|
2911
|
-
const
|
|
2912
|
-
return c && (
|
|
2911
|
+
const p = {};
|
|
2912
|
+
return c && (p.placeholder = c), l ? /* @__PURE__ */ r.jsx(r.Fragment, {}) : /* @__PURE__ */ r.jsxs(
|
|
2913
2913
|
"dl",
|
|
2914
2914
|
{
|
|
2915
2915
|
"data-form": "select",
|
|
@@ -2920,7 +2920,7 @@ function jt(e) {
|
|
|
2920
2920
|
{
|
|
2921
2921
|
onClick: h,
|
|
2922
2922
|
"data-edit": (s && a) + "",
|
|
2923
|
-
...
|
|
2923
|
+
...p,
|
|
2924
2924
|
children: d
|
|
2925
2925
|
}
|
|
2926
2926
|
),
|
|
@@ -2953,7 +2953,7 @@ const si = ({ onValue: e, parent: t, view: n, options: s }) => {
|
|
|
2953
2953
|
left: f + "px",
|
|
2954
2954
|
width: t.width
|
|
2955
2955
|
},
|
|
2956
|
-
children: /* @__PURE__ */ r.jsx("ul", { children: Object.keys(s).map((h,
|
|
2956
|
+
children: /* @__PURE__ */ r.jsx("ul", { children: Object.keys(s).map((h, p) => /* @__PURE__ */ r.jsx(
|
|
2957
2957
|
"li",
|
|
2958
2958
|
{
|
|
2959
2959
|
onClick: () => {
|
|
@@ -2961,7 +2961,7 @@ const si = ({ onValue: e, parent: t, view: n, options: s }) => {
|
|
|
2961
2961
|
},
|
|
2962
2962
|
children: s[h]
|
|
2963
2963
|
},
|
|
2964
|
-
|
|
2964
|
+
p
|
|
2965
2965
|
)) })
|
|
2966
2966
|
}
|
|
2967
2967
|
)
|
|
@@ -2980,7 +2980,7 @@ function it({
|
|
|
2980
2980
|
show: d = !0,
|
|
2981
2981
|
active: f = !0,
|
|
2982
2982
|
after: h = "",
|
|
2983
|
-
view:
|
|
2983
|
+
view: p,
|
|
2984
2984
|
module: m,
|
|
2985
2985
|
item: b,
|
|
2986
2986
|
className: j = ""
|
|
@@ -2994,7 +2994,7 @@ function it({
|
|
|
2994
2994
|
title: i,
|
|
2995
2995
|
show: d,
|
|
2996
2996
|
hide: c,
|
|
2997
|
-
view:
|
|
2997
|
+
view: p,
|
|
2998
2998
|
edit: u,
|
|
2999
2999
|
active: f,
|
|
3000
3000
|
value: t,
|
|
@@ -3011,7 +3011,7 @@ function it({
|
|
|
3011
3011
|
title: i,
|
|
3012
3012
|
show: d,
|
|
3013
3013
|
hide: c,
|
|
3014
|
-
view:
|
|
3014
|
+
view: p,
|
|
3015
3015
|
edit: u,
|
|
3016
3016
|
active: f,
|
|
3017
3017
|
value: t,
|
|
@@ -3029,7 +3029,7 @@ function it({
|
|
|
3029
3029
|
title: i,
|
|
3030
3030
|
show: d,
|
|
3031
3031
|
hide: c,
|
|
3032
|
-
view:
|
|
3032
|
+
view: p,
|
|
3033
3033
|
edit: u,
|
|
3034
3034
|
active: f,
|
|
3035
3035
|
value: t,
|
|
@@ -3047,7 +3047,7 @@ function it({
|
|
|
3047
3047
|
title: i,
|
|
3048
3048
|
show: d,
|
|
3049
3049
|
hide: c,
|
|
3050
|
-
view:
|
|
3050
|
+
view: p,
|
|
3051
3051
|
edit: u,
|
|
3052
3052
|
active: f,
|
|
3053
3053
|
value: t,
|
|
@@ -3059,12 +3059,12 @@ function it({
|
|
|
3059
3059
|
);
|
|
3060
3060
|
case "Phone":
|
|
3061
3061
|
return /* @__PURE__ */ r.jsx(
|
|
3062
|
-
|
|
3062
|
+
xt,
|
|
3063
3063
|
{
|
|
3064
3064
|
title: i,
|
|
3065
3065
|
show: d,
|
|
3066
3066
|
hide: c,
|
|
3067
|
-
view:
|
|
3067
|
+
view: p,
|
|
3068
3068
|
edit: u,
|
|
3069
3069
|
active: f,
|
|
3070
3070
|
value: t,
|
|
@@ -3076,12 +3076,12 @@ function it({
|
|
|
3076
3076
|
);
|
|
3077
3077
|
case "Number":
|
|
3078
3078
|
return /* @__PURE__ */ r.jsx(
|
|
3079
|
-
|
|
3079
|
+
pt,
|
|
3080
3080
|
{
|
|
3081
3081
|
title: i,
|
|
3082
3082
|
show: d,
|
|
3083
3083
|
hide: c,
|
|
3084
|
-
view:
|
|
3084
|
+
view: p,
|
|
3085
3085
|
edit: u,
|
|
3086
3086
|
active: f,
|
|
3087
3087
|
value: t,
|
|
@@ -3098,7 +3098,7 @@ function it({
|
|
|
3098
3098
|
title: i,
|
|
3099
3099
|
show: d,
|
|
3100
3100
|
hide: c,
|
|
3101
|
-
view:
|
|
3101
|
+
view: p,
|
|
3102
3102
|
edit: u,
|
|
3103
3103
|
active: f,
|
|
3104
3104
|
value: t,
|
|
@@ -3115,7 +3115,7 @@ function it({
|
|
|
3115
3115
|
title: i,
|
|
3116
3116
|
show: d,
|
|
3117
3117
|
hide: c,
|
|
3118
|
-
view:
|
|
3118
|
+
view: p,
|
|
3119
3119
|
edit: u,
|
|
3120
3120
|
active: f,
|
|
3121
3121
|
value: t,
|
|
@@ -3142,19 +3142,19 @@ function En({
|
|
|
3142
3142
|
after: d = "",
|
|
3143
3143
|
show: f = !0,
|
|
3144
3144
|
view: h,
|
|
3145
|
-
onBlur:
|
|
3145
|
+
onBlur: p,
|
|
3146
3146
|
onSave: m,
|
|
3147
3147
|
className: b = ""
|
|
3148
3148
|
}) {
|
|
3149
3149
|
let j = !!(l && (e === "" || e === void 0));
|
|
3150
3150
|
if (!(c && u) && !f || !(c && u) && j)
|
|
3151
3151
|
return "";
|
|
3152
|
-
let v = (
|
|
3153
|
-
t && t({ value:
|
|
3154
|
-
},
|
|
3155
|
-
m && m({ value:
|
|
3156
|
-
}, _ = (
|
|
3157
|
-
|
|
3152
|
+
let v = (E) => {
|
|
3153
|
+
t && t({ value: E.target.innerText, name: n });
|
|
3154
|
+
}, x = (E) => {
|
|
3155
|
+
m && m({ value: E.target.innerText, name: n });
|
|
3156
|
+
}, _ = (E) => {
|
|
3157
|
+
E.preventDefault(), navigator.clipboard.readText().then((M) => {
|
|
3158
3158
|
window.document.execCommand("insertText", !1, M);
|
|
3159
3159
|
}).catch((M) => {
|
|
3160
3160
|
});
|
|
@@ -3166,7 +3166,7 @@ function En({
|
|
|
3166
3166
|
"dd",
|
|
3167
3167
|
{
|
|
3168
3168
|
onPaste: _,
|
|
3169
|
-
onBlur:
|
|
3169
|
+
onBlur: x,
|
|
3170
3170
|
onInput: v,
|
|
3171
3171
|
contentEditable: c && u ? "plaintext-only" : "false",
|
|
3172
3172
|
...S,
|
|
@@ -3177,7 +3177,7 @@ function En({
|
|
|
3177
3177
|
i ?? /* @__PURE__ */ r.jsx("em", { children: i })
|
|
3178
3178
|
] });
|
|
3179
3179
|
}
|
|
3180
|
-
function
|
|
3180
|
+
function Rn({
|
|
3181
3181
|
value: e,
|
|
3182
3182
|
onValue: t,
|
|
3183
3183
|
name: n,
|
|
@@ -3190,20 +3190,20 @@ function Bn({
|
|
|
3190
3190
|
after: d = "",
|
|
3191
3191
|
show: f = !0,
|
|
3192
3192
|
view: h,
|
|
3193
|
-
onBlur:
|
|
3193
|
+
onBlur: p,
|
|
3194
3194
|
onSave: m,
|
|
3195
3195
|
className: b = ""
|
|
3196
3196
|
}) {
|
|
3197
3197
|
let j = !!(l && (e === "" || e === void 0));
|
|
3198
3198
|
if (ie.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), C.useRef(null), !(c && u) && !f || !(c && u) && j)
|
|
3199
3199
|
return "";
|
|
3200
|
-
const v = "__:__",
|
|
3200
|
+
const v = "__:__", x = new Set("_"), _ = ((I) => Array.from(v, (V, je) => x.has(V) ? I = je + 1 : I))(0), S = [...v].findIndex((I) => x.has(I)), E = new RegExp("\\d", "g"), M = (I) => (I = I.match(E) || [], Array.from(
|
|
3201
3201
|
v,
|
|
3202
|
-
(V) => (I[0] === V ||
|
|
3203
|
-
)),
|
|
3202
|
+
(V) => (I[0] === V || x.has(V)) && I.shift() || V
|
|
3203
|
+
)), T = (I) => {
|
|
3204
3204
|
const [V, je] = [I.target.selectionStart, I.target.selectionEnd].map(
|
|
3205
3205
|
(U) => (U = M(I.target.value.slice(0, U)).findIndex(
|
|
3206
|
-
(re) =>
|
|
3206
|
+
(re) => x.has(re)
|
|
3207
3207
|
), U < 0 ? _[_.length - 1] : O ? _[U - 1] || S : U)
|
|
3208
3208
|
);
|
|
3209
3209
|
I.target.value = M(I.target.value).join(""), I.target.setSelectionRange(V, je), t == null || t({ name: n, value: I.target.value });
|
|
@@ -3219,17 +3219,17 @@ function Bn({
|
|
|
3219
3219
|
{
|
|
3220
3220
|
type: "tel",
|
|
3221
3221
|
placeholder: s,
|
|
3222
|
-
onChange:
|
|
3222
|
+
onChange: T,
|
|
3223
3223
|
inputMode: "numeric",
|
|
3224
3224
|
onKeyDown: (I) => O = I.key === "Backspace",
|
|
3225
|
-
onFocus:
|
|
3225
|
+
onFocus: T,
|
|
3226
3226
|
onBlur: (I) => I.target.value === v && (I.target.value = "")
|
|
3227
3227
|
}
|
|
3228
3228
|
) }),
|
|
3229
3229
|
i ? /* @__PURE__ */ r.jsx("em", { children: i }) : ""
|
|
3230
3230
|
] }) });
|
|
3231
3231
|
}
|
|
3232
|
-
function
|
|
3232
|
+
function Tn({
|
|
3233
3233
|
onValue: e,
|
|
3234
3234
|
label: t,
|
|
3235
3235
|
value: n,
|
|
@@ -3249,7 +3249,7 @@ function Rn({
|
|
|
3249
3249
|
/* @__PURE__ */ r.jsx("dd", { ...f, onClick: u })
|
|
3250
3250
|
] });
|
|
3251
3251
|
}
|
|
3252
|
-
const
|
|
3252
|
+
const Bn = ({ onValue: e, value: t, name: n, item: s }) => {
|
|
3253
3253
|
const [a, i] = C.useState(!!t);
|
|
3254
3254
|
C.useEffect(() => {
|
|
3255
3255
|
i(!!t);
|
|
@@ -3280,7 +3280,7 @@ function Nn({
|
|
|
3280
3280
|
after: d = "",
|
|
3281
3281
|
show: f = !0,
|
|
3282
3282
|
view: h,
|
|
3283
|
-
onBlur:
|
|
3283
|
+
onBlur: p,
|
|
3284
3284
|
onSave: m,
|
|
3285
3285
|
className: b = ""
|
|
3286
3286
|
}) {
|
|
@@ -3290,17 +3290,17 @@ function Nn({
|
|
|
3290
3290
|
C.useEffect(() => {
|
|
3291
3291
|
e !== void 0 && v(e !== void 0 ? e.split(",") : []);
|
|
3292
3292
|
}, [e]);
|
|
3293
|
-
let
|
|
3293
|
+
let x = () => {
|
|
3294
3294
|
v([...j, ""]);
|
|
3295
3295
|
}, _ = (O) => {
|
|
3296
|
-
j.splice(O, 1), j.length === 0 && j.push(""), v([...j]),
|
|
3297
|
-
}, S = !!(l && (e === "" || e === void 0)),
|
|
3296
|
+
j.splice(O, 1), j.length === 0 && j.push(""), v([...j]), p !== void 0 && p({ value: j.join(","), name: n });
|
|
3297
|
+
}, S = !!(l && (e === "" || e === void 0)), E = (O) => {
|
|
3298
3298
|
};
|
|
3299
3299
|
if (!(c && u) && !f || !(c && u) && S)
|
|
3300
3300
|
return "";
|
|
3301
3301
|
const M = {};
|
|
3302
3302
|
M.field = "group", b && (M.className = b);
|
|
3303
|
-
const
|
|
3303
|
+
const T = (O) => {
|
|
3304
3304
|
be.Blur(O), m && m({ value: O.target.textContent, name: n });
|
|
3305
3305
|
};
|
|
3306
3306
|
let P = (O, I) => {
|
|
@@ -3311,7 +3311,7 @@ function Nn({
|
|
|
3311
3311
|
return /* @__PURE__ */ r.jsxs("dl", { ...M, children: [
|
|
3312
3312
|
/* @__PURE__ */ r.jsxs("dt", { children: [
|
|
3313
3313
|
a,
|
|
3314
|
-
/* @__PURE__ */ r.jsx("i", { onClick:
|
|
3314
|
+
/* @__PURE__ */ r.jsx("i", { onClick: x, children: /* @__PURE__ */ r.jsxs(
|
|
3315
3315
|
"svg",
|
|
3316
3316
|
{
|
|
3317
3317
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3336,10 +3336,10 @@ function Nn({
|
|
|
3336
3336
|
edit: "true",
|
|
3337
3337
|
name: n,
|
|
3338
3338
|
placeholder: s,
|
|
3339
|
-
onPaste:
|
|
3339
|
+
onPaste: E,
|
|
3340
3340
|
contentEditable: !0,
|
|
3341
3341
|
onKeyDown: ee,
|
|
3342
|
-
onBlur:
|
|
3342
|
+
onBlur: T,
|
|
3343
3343
|
suppressContentEditableWarning: !0,
|
|
3344
3344
|
children: j[I]
|
|
3345
3345
|
}
|
|
@@ -3386,18 +3386,18 @@ function Dn({
|
|
|
3386
3386
|
active: d = !0,
|
|
3387
3387
|
after: f = "",
|
|
3388
3388
|
view: h,
|
|
3389
|
-
modal:
|
|
3389
|
+
modal: p,
|
|
3390
3390
|
module: m,
|
|
3391
3391
|
options: b,
|
|
3392
3392
|
className: j
|
|
3393
3393
|
}) {
|
|
3394
|
-
const [v,
|
|
3395
|
-
if (!(c && d) || !
|
|
3394
|
+
const [v, x] = C.useState(ai(e)), _ = (M) => {
|
|
3395
|
+
if (!(c && d) || !p)
|
|
3396
3396
|
return;
|
|
3397
|
-
let
|
|
3398
|
-
Cn.Open(
|
|
3397
|
+
let T = p.split(".");
|
|
3398
|
+
Cn.Open(T[1], {
|
|
3399
3399
|
callback: (P) => {
|
|
3400
|
-
t && t({ value: P, name: n }),
|
|
3400
|
+
t && t({ value: P, name: n }), x(P);
|
|
3401
3401
|
},
|
|
3402
3402
|
onValue: t,
|
|
3403
3403
|
options: b,
|
|
@@ -3406,8 +3406,8 @@ function Dn({
|
|
|
3406
3406
|
});
|
|
3407
3407
|
}, S = {};
|
|
3408
3408
|
S.field = "group", j && (S.className = j);
|
|
3409
|
-
const
|
|
3410
|
-
return s && (
|
|
3409
|
+
const E = {};
|
|
3410
|
+
return s && (E.placeholder = s), l ? /* @__PURE__ */ r.jsx(r.Fragment, {}) : /* @__PURE__ */ r.jsxs("dl", { ...S, children: [
|
|
3411
3411
|
/* @__PURE__ */ r.jsxs("dt", { children: [
|
|
3412
3412
|
a,
|
|
3413
3413
|
/* @__PURE__ */ r.jsx("i", { onClick: _, children: /* @__PURE__ */ r.jsxs(
|
|
@@ -3431,13 +3431,13 @@ function Dn({
|
|
|
3431
3431
|
/* @__PURE__ */ r.jsx(
|
|
3432
3432
|
"dd",
|
|
3433
3433
|
{
|
|
3434
|
-
...
|
|
3434
|
+
...E,
|
|
3435
3435
|
onClick: open,
|
|
3436
3436
|
edit: (c && d) + "",
|
|
3437
3437
|
"data-after": f,
|
|
3438
3438
|
children: Object.keys(v).map((M) => {
|
|
3439
|
-
var
|
|
3440
|
-
return /* @__PURE__ */ r.jsx("div", { className: "field_group_item", children: (
|
|
3439
|
+
var T;
|
|
3440
|
+
return /* @__PURE__ */ r.jsx("div", { className: "field_group_item", children: (T = b[M]) == null ? void 0 : T.label }, M);
|
|
3441
3441
|
})
|
|
3442
3442
|
}
|
|
3443
3443
|
),
|
|
@@ -3448,27 +3448,27 @@ const ii = {
|
|
|
3448
3448
|
Color: yn,
|
|
3449
3449
|
Date: ht,
|
|
3450
3450
|
Code: jn,
|
|
3451
|
-
Check:
|
|
3451
|
+
Check: Tn,
|
|
3452
3452
|
Switch: gn,
|
|
3453
|
-
Button:
|
|
3454
|
-
Message:
|
|
3453
|
+
Button: pn,
|
|
3454
|
+
Message: xn,
|
|
3455
3455
|
Generator: vn,
|
|
3456
3456
|
Captcha: bn,
|
|
3457
3457
|
Modal: mt,
|
|
3458
3458
|
Money: gt,
|
|
3459
3459
|
Month: _n,
|
|
3460
3460
|
Notes: wn,
|
|
3461
|
-
Number:
|
|
3461
|
+
Number: pt,
|
|
3462
3462
|
Password: kn,
|
|
3463
|
-
Phone:
|
|
3463
|
+
Phone: xt,
|
|
3464
3464
|
Search: Sn,
|
|
3465
3465
|
Select: vt,
|
|
3466
3466
|
Set: it,
|
|
3467
3467
|
Textarea: En,
|
|
3468
|
-
Time:
|
|
3468
|
+
Time: Rn,
|
|
3469
3469
|
Users: jt,
|
|
3470
3470
|
String: bt,
|
|
3471
|
-
Toogle:
|
|
3471
|
+
Toogle: Bn,
|
|
3472
3472
|
Group: Nn,
|
|
3473
3473
|
Options: Dn
|
|
3474
3474
|
}, oi = "_debug_ug20b_34", li = "_b_ug20b_46", ci = "_o_ug20b_50", ui = "_mb_ug20b_55", di = "_tm_ug20b_66", fi = "_ta_ug20b_133", me = {
|
|
@@ -3479,9 +3479,9 @@ const ii = {
|
|
|
3479
3479
|
tm: di,
|
|
3480
3480
|
ta: fi,
|
|
3481
3481
|
"--body": "_--body_ug20b_143"
|
|
3482
|
-
},
|
|
3483
|
-
let
|
|
3484
|
-
|
|
3482
|
+
}, R = window.Telegram.WebApp, se = { is: !1, MainButton: {}, BackButton: {} };
|
|
3483
|
+
let pe = {};
|
|
3484
|
+
pe.dark = {
|
|
3485
3485
|
"--tg-theme-bg-color": "#212121",
|
|
3486
3486
|
"--tg-theme-text-color": "#ffffff",
|
|
3487
3487
|
"--tg-theme-hint-color": "#aaaaaa",
|
|
@@ -3496,7 +3496,7 @@ xe.dark = {
|
|
|
3496
3496
|
"--tg-theme-subtitle-text-color": "#aaaaaa",
|
|
3497
3497
|
"--tg-theme-destructive-text-color": "#e53935"
|
|
3498
3498
|
};
|
|
3499
|
-
|
|
3499
|
+
pe.light = {
|
|
3500
3500
|
"--tg-theme-bg-color": "#ffffff",
|
|
3501
3501
|
"--tg-theme-text-color": "#000000",
|
|
3502
3502
|
"--tg-theme-hint-color": "#999999",
|
|
@@ -3505,7 +3505,7 @@ xe.light = {
|
|
|
3505
3505
|
"--tg-theme-button-text-color": "#ffffff",
|
|
3506
3506
|
"--tg-theme-secondary-bg-color": "#efeff3"
|
|
3507
3507
|
};
|
|
3508
|
-
|
|
3508
|
+
pe.users = {
|
|
3509
3509
|
"--tg-theme-bg-color": "#000000",
|
|
3510
3510
|
"--tg-theme-text-color": "#ffffff",
|
|
3511
3511
|
"--tg-theme-hint-color": "#98989e",
|
|
@@ -3514,53 +3514,49 @@ xe.users = {
|
|
|
3514
3514
|
"--tg-theme-button-text-color": "#000000",
|
|
3515
3515
|
"--tg-theme-secondary-bg-color": "#000000"
|
|
3516
3516
|
};
|
|
3517
|
-
|
|
3517
|
+
R.getUser = () => {
|
|
3518
3518
|
var e;
|
|
3519
|
-
return ((e =
|
|
3519
|
+
return ((e = R.initDataUnsafe) == null ? void 0 : e.user) === void 0 ? {} : R.initDataUnsafe;
|
|
3520
3520
|
};
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
se.is ? se.MainButton.set(e) : (
|
|
3524
|
-
|
|
3525
|
-
}),
|
|
3521
|
+
R.MainButton.callback = [];
|
|
3522
|
+
R.MainButton.set = (e) => {
|
|
3523
|
+
se.is ? se.MainButton.set(e) : (R.MainButton.callback.forEach((t) => {
|
|
3524
|
+
R.MainButton.offClick(t);
|
|
3525
|
+
}), R.MainButton.callback = [], typeof e == "boolean" ? R.MainButton.isVisible = !1 : (R.MainButton.text = e.text, e.color && (R.MainButton.color = e.color), e.textColor && (R.MainButton.textColor = e.textColor), R.MainButton.isVisible = !0, R.MainButton.isActive = e.isActive === void 0 ? !0 : e.isActive, R.MainButton.callback.push(() => {
|
|
3526
3526
|
var t;
|
|
3527
3527
|
e.page === void 0 ? (t = e.callback) == null || t.call(e) : ce.setPage(e.page);
|
|
3528
|
-
}),
|
|
3528
|
+
}), R.MainButton.onClick(R.MainButton.callback[0])));
|
|
3529
3529
|
};
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
e === !1 ? (
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
let n = E.BackButton.state[E.BackButton.state.length - 1];
|
|
3539
|
-
E.BackButton.router(n);
|
|
3540
|
-
}
|
|
3541
|
-
}), E.BackButton.onClick(E.BackButton.listen[0]));
|
|
3530
|
+
R.BackButton.state = [!1];
|
|
3531
|
+
R.BackButton.listen = [];
|
|
3532
|
+
R.BackButton.router = (e) => {
|
|
3533
|
+
e === !1 ? (R.BackButton.isVisible = !1, R.BackButton.offClick(R.BackButton.listen[0]), R.BackButton.listen.shift(), R.BackButton.state.length !== 1 && R.BackButton.state.pop()) : (R.BackButton.isVisible = !0, R.BackButton.offClick(R.BackButton.listen[0]), R.BackButton.listen.shift(), R.BackButton.listen.push(() => {
|
|
3534
|
+
var n;
|
|
3535
|
+
let t = R.BackButton.state.pop();
|
|
3536
|
+
t.page !== void 0 ? ce.setPage(t.page) : (n = t.callback) == null || n.call(t);
|
|
3537
|
+
}), R.BackButton.onClick(R.BackButton.listen[0]));
|
|
3542
3538
|
};
|
|
3543
|
-
|
|
3544
|
-
se.is ? se.BackButton.set(e) : (
|
|
3539
|
+
R.BackButton.set = (e) => {
|
|
3540
|
+
se.is ? se.BackButton.set(e) : (R.BackButton.state.push(e), R.BackButton.router(e));
|
|
3545
3541
|
};
|
|
3546
|
-
|
|
3547
|
-
t !== void 0 ? (at.Send({ type: e, text: t }), se.is ||
|
|
3542
|
+
R.Notice = (e, t) => {
|
|
3543
|
+
t !== void 0 ? (at.Send({ type: e, text: t }), se.is || R.HapticFeedback.notificationOccurred(e)) : (at.Send(e), se.is || R.HapticFeedback.notificationOccurred(e.type));
|
|
3548
3544
|
};
|
|
3549
|
-
|
|
3545
|
+
R.Init = ({ dev: e }) => {
|
|
3550
3546
|
if (e) {
|
|
3551
3547
|
let [t, n] = C.useState(!1), [s, a] = C.useState(!1), [i, l] = C.useState("dark"), [c, u] = C.useState(!1), [d, f] = C.useState(!1);
|
|
3552
3548
|
se.is = !0, se.MainButton.set = n, se.BackButton.set = a, C.useEffect(() => {
|
|
3553
|
-
for (let m in
|
|
3549
|
+
for (let m in pe[i])
|
|
3554
3550
|
document.documentElement.style.setProperty(
|
|
3555
3551
|
m,
|
|
3556
|
-
|
|
3552
|
+
pe[i][m]
|
|
3557
3553
|
);
|
|
3558
3554
|
}, []);
|
|
3559
3555
|
let h = (m) => {
|
|
3560
|
-
for (let b in
|
|
3561
|
-
document.documentElement.style.setProperty(b,
|
|
3556
|
+
for (let b in pe[m])
|
|
3557
|
+
document.documentElement.style.setProperty(b, pe[m][b]);
|
|
3562
3558
|
l(m), u(!1);
|
|
3563
|
-
},
|
|
3559
|
+
}, p = () => {
|
|
3564
3560
|
u(!1), f(!0);
|
|
3565
3561
|
};
|
|
3566
3562
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
@@ -3595,7 +3591,7 @@ E.Init = ({ dev: e }) => {
|
|
|
3595
3591
|
) }),
|
|
3596
3592
|
c ? /* @__PURE__ */ r.jsxs("div", { className: me.tm, children: [
|
|
3597
3593
|
/* @__PURE__ */ r.jsxs("ul", { children: [
|
|
3598
|
-
/* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx("button", { onClick:
|
|
3594
|
+
/* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx("button", { onClick: p, children: "Authorization" }) }),
|
|
3599
3595
|
/* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx("button", { onClick: () => ce.setPage("Add"), children: "Add Page" }) })
|
|
3600
3596
|
] }),
|
|
3601
3597
|
/* @__PURE__ */ r.jsxs("ul", { children: [
|
|
@@ -3651,9 +3647,9 @@ const hi = ({ setAuthorization: e }) => {
|
|
|
3651
3647
|
) }),
|
|
3652
3648
|
/* @__PURE__ */ r.jsx("div", { onClick: s, children: " Сщхранить " })
|
|
3653
3649
|
] }) });
|
|
3654
|
-
}, bl = ({ children: e, config: t }) => (window.location.pathname === "/clear" && (window.history.pushState({}, "", "/"), H()), D.New(t.crypto), t.defaultModule && gr(t.defaultModule),
|
|
3650
|
+
}, bl = ({ children: e, config: t }) => (window.location.pathname === "/clear" && (window.history.pushState({}, "", "/"), H()), D.New(t.crypto), t.defaultModule && gr(t.defaultModule), xr(
|
|
3655
3651
|
/* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
3656
|
-
/* @__PURE__ */ r.jsx(
|
|
3652
|
+
/* @__PURE__ */ r.jsx(R.Init, { dev: t.dev }),
|
|
3657
3653
|
/* @__PURE__ */ r.jsx(da, { config: t.modal }),
|
|
3658
3654
|
/* @__PURE__ */ r.jsx(ys, {}),
|
|
3659
3655
|
/* @__PURE__ */ r.jsx(Ds, {}),
|
|
@@ -3671,7 +3667,7 @@ const hi = ({ setAuthorization: e }) => {
|
|
|
3671
3667
|
i.link
|
|
3672
3668
|
)) }) }), gi = ({ onClick: e, label: t, link: n, active: s }) => /* @__PURE__ */ r.jsx("li", { "tabs-active": String(s === n), onClick: () => e(n), children: t });
|
|
3673
3669
|
mi.defaultProps = { size: "M", view: "H" };
|
|
3674
|
-
const
|
|
3670
|
+
const pi = ({
|
|
3675
3671
|
title: e = "",
|
|
3676
3672
|
button: t,
|
|
3677
3673
|
description: n = "",
|
|
@@ -3691,8 +3687,8 @@ const xi = ({
|
|
|
3691
3687
|
] }),
|
|
3692
3688
|
/* @__PURE__ */ r.jsx("ul", { children: s }),
|
|
3693
3689
|
n && /* @__PURE__ */ r.jsx("article", { children: n })
|
|
3694
|
-
] }),
|
|
3695
|
-
setting:
|
|
3690
|
+
] }), xi = "_setting_dva4m_2", vi = {
|
|
3691
|
+
setting: xi
|
|
3696
3692
|
}, bi = ({ children: e }) => /* @__PURE__ */ r.jsx("div", { className: vi.setting, children: e }), ji = ({ label: e, children: t }) => {
|
|
3697
3693
|
let [n, s] = C.useState(!1);
|
|
3698
3694
|
return /* @__PURE__ */ r.jsxs("li", { "data-item": "accordion", children: [
|
|
@@ -3726,13 +3722,13 @@ const xi = ({
|
|
|
3726
3722
|
] }) }), Ei = ({ label: e, children: t }) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsxs("dl", { children: [
|
|
3727
3723
|
/* @__PURE__ */ r.jsx("dt", { children: e }),
|
|
3728
3724
|
/* @__PURE__ */ r.jsx("dd", { children: t })
|
|
3729
|
-
] }) }),
|
|
3725
|
+
] }) }), Ri = ({ label: e, children: t }) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsxs("dl", { children: [
|
|
3730
3726
|
/* @__PURE__ */ r.jsx("dt", { children: e }),
|
|
3731
3727
|
/* @__PURE__ */ r.jsx("dd", { children: t })
|
|
3732
|
-
] }) }),
|
|
3728
|
+
] }) }), Ti = { Accordion: ji, Button: yi, Switch: wi, Info: Si, Select: ki, Component: Ei, Node: Ri };
|
|
3733
3729
|
function In({ list: e, onClick: t, active: n, size: s, view: a }) {
|
|
3734
3730
|
return /* @__PURE__ */ r.jsx("nav", { children: /* @__PURE__ */ r.jsx("ul", { className: [s, a].join(" "), children: e.map((i) => /* @__PURE__ */ r.jsx(
|
|
3735
|
-
|
|
3731
|
+
Bi,
|
|
3736
3732
|
{
|
|
3737
3733
|
onClick: t,
|
|
3738
3734
|
active: n,
|
|
@@ -3742,9 +3738,9 @@ function In({ list: e, onClick: t, active: n, size: s, view: a }) {
|
|
|
3742
3738
|
i.link
|
|
3743
3739
|
)) }) });
|
|
3744
3740
|
}
|
|
3745
|
-
const
|
|
3741
|
+
const Bi = ({ onClick: e, label: t, link: n, active: s }) => /* @__PURE__ */ r.jsx("li", { "tabs-active": String(s === n), onClick: () => e(n), children: t });
|
|
3746
3742
|
In.defaultProps = { size: "M", view: "H" };
|
|
3747
|
-
const jl = { Section:
|
|
3743
|
+
const jl = { Section: pi, Main: bi, Item: Ti, Tabs: In };
|
|
3748
3744
|
function Mn({ text: e, type: t, button: n }) {
|
|
3749
3745
|
let [s, a] = C.useState(!1), i = { active: t };
|
|
3750
3746
|
const l = () => {
|
|
@@ -3922,7 +3918,7 @@ function no() {
|
|
|
3922
3918
|
const ro = "_n_euuvm_1", so = {
|
|
3923
3919
|
n: ro
|
|
3924
3920
|
};
|
|
3925
|
-
let Me = {},
|
|
3921
|
+
let Me = {}, Be = [];
|
|
3926
3922
|
const ao = (e, t) => {
|
|
3927
3923
|
switch (t.type) {
|
|
3928
3924
|
case "open":
|
|
@@ -3998,7 +3994,7 @@ function uo() {
|
|
|
3998
3994
|
}), co(async (s) => {
|
|
3999
3995
|
switch (s.action) {
|
|
4000
3996
|
case "add":
|
|
4001
|
-
|
|
3997
|
+
Be.push(s.data);
|
|
4002
3998
|
break;
|
|
4003
3999
|
}
|
|
4004
4000
|
}), C.useEffect(() => {
|
|
@@ -4016,7 +4012,7 @@ function uo() {
|
|
|
4016
4012
|
break;
|
|
4017
4013
|
case "M01":
|
|
4018
4014
|
s[a].forEach((i) => {
|
|
4019
|
-
|
|
4015
|
+
Be.push({
|
|
4020
4016
|
module: "M01",
|
|
4021
4017
|
type: 1,
|
|
4022
4018
|
id: i.id,
|
|
@@ -4027,7 +4023,7 @@ function uo() {
|
|
|
4027
4023
|
break;
|
|
4028
4024
|
case "M02":
|
|
4029
4025
|
s[a].forEach((i) => {
|
|
4030
|
-
|
|
4026
|
+
Be.push({
|
|
4031
4027
|
module: "M02",
|
|
4032
4028
|
type: 117,
|
|
4033
4029
|
id: i.id,
|
|
@@ -4038,7 +4034,7 @@ function uo() {
|
|
|
4038
4034
|
break;
|
|
4039
4035
|
}
|
|
4040
4036
|
})(), setInterval(() => {
|
|
4041
|
-
|
|
4037
|
+
Be.forEach((s, a) => {
|
|
4042
4038
|
t({
|
|
4043
4039
|
type: "add",
|
|
4044
4040
|
data: {
|
|
@@ -4048,7 +4044,7 @@ function uo() {
|
|
|
4048
4044
|
datetime: s.datetime,
|
|
4049
4045
|
txt: s.title
|
|
4050
4046
|
}
|
|
4051
|
-
}), s.datetime < (/* @__PURE__ */ new Date()).getTime() &&
|
|
4047
|
+
}), s.datetime < (/* @__PURE__ */ new Date()).getTime() && Be.splice(a, 1);
|
|
4052
4048
|
});
|
|
4053
4049
|
}, 6e4);
|
|
4054
4050
|
}, []);
|
|
@@ -4134,7 +4130,7 @@ let Q = {}, Z = {}, Le = [
|
|
|
4134
4130
|
"info",
|
|
4135
4131
|
"job"
|
|
4136
4132
|
];
|
|
4137
|
-
function
|
|
4133
|
+
function po() {
|
|
4138
4134
|
const [e, t] = C.useState(!1), [n, s] = C.useState(!1);
|
|
4139
4135
|
function a(i) {
|
|
4140
4136
|
const l = new mo();
|
|
@@ -4233,7 +4229,7 @@ Z.setting = (e) => {
|
|
|
4233
4229
|
};
|
|
4234
4230
|
Z.app = () => {
|
|
4235
4231
|
};
|
|
4236
|
-
const
|
|
4232
|
+
const xo = (e, t) => {
|
|
4237
4233
|
Q[e] = t;
|
|
4238
4234
|
}, vo = (e, t) => {
|
|
4239
4235
|
Q[e](t);
|
|
@@ -4246,7 +4242,7 @@ function bo(e) {
|
|
|
4246
4242
|
}, e = { ...e, listen: t }, e.type = "modules", Q.send(e);
|
|
4247
4243
|
});
|
|
4248
4244
|
}
|
|
4249
|
-
const ot = { useConnect:
|
|
4245
|
+
const ot = { useConnect: po, useListener: xo, setListener: vo, Send: bo };
|
|
4250
4246
|
class jo {
|
|
4251
4247
|
constructor(t = "el", n = "db") {
|
|
4252
4248
|
Je(this, "storeName");
|
|
@@ -4307,12 +4303,12 @@ const we = () => (Qe || (Qe = new jo()), Qe), fe = (e, t, n = we()) => n._withID
|
|
|
4307
4303
|
i.push({ id: m, text: b, ...j });
|
|
4308
4304
|
} else
|
|
4309
4305
|
i.push({ id: m, text: b });
|
|
4310
|
-
},
|
|
4306
|
+
}, p = (m) => {
|
|
4311
4307
|
};
|
|
4312
4308
|
return d.forEach((m) => {
|
|
4313
4309
|
f.push(t[m]);
|
|
4314
4310
|
}), f.forEach((m) => {
|
|
4315
|
-
m === void 0 ? (lt(), location.reload()) : (a && h(m.id), c &&
|
|
4311
|
+
m === void 0 ? (lt(), location.reload()) : (a && h(m.id), c && p(m.id));
|
|
4316
4312
|
}), { list: f, search: i, filter: s };
|
|
4317
4313
|
}, wo = (e, t, n, s = we()) => {
|
|
4318
4314
|
if (A[e] === void 0)
|
|
@@ -4346,20 +4342,20 @@ const we = () => (Qe || (Qe = new jo()), Qe), fe = (e, t, n = we()) => n._withID
|
|
|
4346
4342
|
}, Eo = async (e, t, n, s) => {
|
|
4347
4343
|
let a = await ne(t), i = await ne(n);
|
|
4348
4344
|
e.forEach((l) => delete a[l]), await fe(t, a), s !== void 0 && s({ type: "load", page: a, base: i });
|
|
4349
|
-
},
|
|
4345
|
+
}, Ro = async (e, t, n) => {
|
|
4350
4346
|
let s = await ne(t);
|
|
4351
4347
|
e.forEach((a) => delete s[a]), await fe(t, s);
|
|
4352
|
-
},
|
|
4348
|
+
}, To = async (e, t, n) => {
|
|
4353
4349
|
let s = await ne(t);
|
|
4354
4350
|
e.forEach((a) => s[a.id] = a.eDate), await fe(t, s);
|
|
4355
|
-
},
|
|
4351
|
+
}, Bo = async (e, t, n) => {
|
|
4356
4352
|
let s = await ne(t);
|
|
4357
4353
|
if (n !== void 0)
|
|
4358
4354
|
n({ type: "load", base: s });
|
|
4359
4355
|
else
|
|
4360
4356
|
return s[e];
|
|
4361
4357
|
}, No = (e) => A[e], wl = {
|
|
4362
|
-
id:
|
|
4358
|
+
id: Bo,
|
|
4363
4359
|
get: ne,
|
|
4364
4360
|
set: fe,
|
|
4365
4361
|
add: ko,
|
|
@@ -4371,8 +4367,8 @@ const we = () => (Qe || (Qe = new jo()), Qe), fe = (e, t, n = we()) => n._withID
|
|
|
4371
4367
|
clear: lt,
|
|
4372
4368
|
updAll: So,
|
|
4373
4369
|
delAll: Eo,
|
|
4374
|
-
delList:
|
|
4375
|
-
addList:
|
|
4370
|
+
delList: Ro,
|
|
4371
|
+
addList: To
|
|
4376
4372
|
}, kl = { setSetting: Lr, getSetting: Ar }, Do = "_s_18bde_1", Io = "_loadingB_18bde_1", Mo = "_ul_18bde_31", $o = {
|
|
4377
4373
|
s: Do,
|
|
4378
4374
|
loadingB: Io,
|
|
@@ -4488,24 +4484,24 @@ const El = {
|
|
|
4488
4484
|
Color: yn,
|
|
4489
4485
|
Date: ht,
|
|
4490
4486
|
Code: jn,
|
|
4491
|
-
Check:
|
|
4487
|
+
Check: Tn,
|
|
4492
4488
|
Switch: gn,
|
|
4493
|
-
Button:
|
|
4494
|
-
Message:
|
|
4489
|
+
Button: pn,
|
|
4490
|
+
Message: xn,
|
|
4495
4491
|
Generator: vn,
|
|
4496
4492
|
Captcha: bn,
|
|
4497
4493
|
Modal: mt,
|
|
4498
4494
|
Money: gt,
|
|
4499
4495
|
Month: _n,
|
|
4500
4496
|
Notes: wn,
|
|
4501
|
-
Number:
|
|
4497
|
+
Number: pt,
|
|
4502
4498
|
Password: kn,
|
|
4503
|
-
Phone:
|
|
4499
|
+
Phone: xt,
|
|
4504
4500
|
Search: Sn,
|
|
4505
4501
|
Select: vt,
|
|
4506
4502
|
Set: it,
|
|
4507
4503
|
Textarea: En,
|
|
4508
|
-
Time:
|
|
4504
|
+
Time: Rn,
|
|
4509
4505
|
Users: jt,
|
|
4510
4506
|
String: bt,
|
|
4511
4507
|
Form: it,
|
|
@@ -4513,7 +4509,7 @@ const El = {
|
|
|
4513
4509
|
useData: Lo,
|
|
4514
4510
|
setValue: Ao,
|
|
4515
4511
|
Palette: Oo,
|
|
4516
|
-
Toogle:
|
|
4512
|
+
Toogle: Bn,
|
|
4517
4513
|
Group: Nn,
|
|
4518
4514
|
Options: Dn
|
|
4519
4515
|
}, Wo = "_spinner_1ul0m_1", Zo = "_l_1ul0m_75", Uo = "_loadingB_1ul0m_1", $n = {
|
|
@@ -4537,7 +4533,7 @@ function Ko() {
|
|
|
4537
4533
|
/* @__PURE__ */ r.jsx("i", {})
|
|
4538
4534
|
] });
|
|
4539
4535
|
}
|
|
4540
|
-
const
|
|
4536
|
+
const Rl = { Spinner: Yo, Inline: Ko }, Go = "_s_t9swc_1", en = {
|
|
4541
4537
|
s: Go
|
|
4542
4538
|
};
|
|
4543
4539
|
let yt;
|
|
@@ -4579,7 +4575,7 @@ function qo(e) {
|
|
|
4579
4575
|
function Xo(e) {
|
|
4580
4576
|
yt = e;
|
|
4581
4577
|
}
|
|
4582
|
-
const
|
|
4578
|
+
const Tl = { Field: Ho, Run: Vo, Get: qo, useValue: Xo }, Jo = "_f_q3r0i_1", Qo = {
|
|
4583
4579
|
f: Jo
|
|
4584
4580
|
};
|
|
4585
4581
|
let X = {};
|
|
@@ -4777,7 +4773,7 @@ function ol({ data: e, head: t, state: n, dispatch: s, type: a }) {
|
|
|
4777
4773
|
}
|
|
4778
4774
|
);
|
|
4779
4775
|
}
|
|
4780
|
-
const
|
|
4776
|
+
const Bl = { Button: tl, useValue: nl, Set: rl, Run: al, Count: Fn, Reset: sl }, Nl = { Bell: uo, Send: oo, Add: io };
|
|
4781
4777
|
function Dl({ active: e, onActive: t, id: n, name: s }) {
|
|
4782
4778
|
const [a, i] = C.useState(!!e);
|
|
4783
4779
|
C.useEffect(() => {
|
|
@@ -4882,26 +4878,26 @@ export {
|
|
|
4882
4878
|
yl as Component,
|
|
4883
4879
|
wl as DataBase,
|
|
4884
4880
|
ft as Events,
|
|
4885
|
-
|
|
4881
|
+
Bl as Filter,
|
|
4886
4882
|
El as Form,
|
|
4887
4883
|
ie as Format,
|
|
4888
4884
|
_l as Icon,
|
|
4889
4885
|
bl as Init,
|
|
4890
4886
|
ii as Input,
|
|
4891
|
-
|
|
4887
|
+
Rl as Loading,
|
|
4892
4888
|
Cn as Modal,
|
|
4893
4889
|
at as Notice,
|
|
4894
4890
|
Nl as Notifications,
|
|
4895
4891
|
ce as Router,
|
|
4896
4892
|
Sl as Scrolling,
|
|
4897
|
-
|
|
4893
|
+
Tl as Search,
|
|
4898
4894
|
jl as Setting,
|
|
4899
4895
|
dt as Sistym,
|
|
4900
4896
|
ot as Socket,
|
|
4901
4897
|
oe as Store,
|
|
4902
4898
|
Dl as Switch,
|
|
4903
4899
|
mi as Tabs,
|
|
4904
|
-
|
|
4900
|
+
R as Telegram,
|
|
4905
4901
|
Il as Triage,
|
|
4906
4902
|
kl as User
|
|
4907
4903
|
};
|