elcrm 0.8.61 → 0.8.63
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 +472 -471
- package/dist/index.umd.js +3 -3
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import './index.css';var ba = Object.defineProperty;
|
|
2
2
|
var Sa = (e, t, a) => t in e ? ba(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
|
|
3
3
|
var ft = (e, t, a) => (Sa(e, typeof t != "symbol" ? t + "" : t, a), a);
|
|
4
|
-
import
|
|
4
|
+
import p, { createElement as Ea } from "react";
|
|
5
5
|
let Et = {};
|
|
6
6
|
const Ra = (e) => {
|
|
7
7
|
Et = e;
|
|
8
|
-
}, Na = (e) => Et.enCode(e),
|
|
8
|
+
}, Na = (e) => Et.enCode(e), Ta = (e) => Et.deCode(e), L = { enCode: Na, deCode: Ta, New: Ra }, S = {}, Y = {}, be = {}, hn = {}, ce = {};
|
|
9
9
|
let Xe = "M06";
|
|
10
|
-
function
|
|
10
|
+
function Ia(e) {
|
|
11
11
|
Xe = e;
|
|
12
12
|
}
|
|
13
13
|
function Da() {
|
|
@@ -16,11 +16,11 @@ function Da() {
|
|
|
16
16
|
function Ma(e) {
|
|
17
17
|
if (localStorage.getItem("d")) {
|
|
18
18
|
let a = sessionStorage.getItem("f");
|
|
19
|
-
a ? (a = L.deCode(a), a || te(),
|
|
19
|
+
a ? (a = L.deCode(a), a || te(), S.id = a.id, S.tab = a.tab, S.page = a.page, S.module = a.module, S.time = a.time, S.payment = { active: !0 }, S.module_admin = a.module_admin) : (S.id = 0, S.tab = "", S.page = "Main", S.module = S.module || Xe);
|
|
20
20
|
} else
|
|
21
21
|
["a", "b", "c", "d", "e", "m", "u", "s", "q", "p"].forEach(
|
|
22
22
|
(a) => localStorage.removeItem(a)
|
|
23
|
-
), ["f"].forEach((a) => sessionStorage.removeItem(a)),
|
|
23
|
+
), ["f"].forEach((a) => sessionStorage.removeItem(a)), S.id = 0, S.tab = "", S.page = "Auth", S.module = Xe;
|
|
24
24
|
return e;
|
|
25
25
|
}
|
|
26
26
|
function te() {
|
|
@@ -29,16 +29,16 @@ function te() {
|
|
|
29
29
|
), ["f"].forEach((e) => sessionStorage.removeItem(e)), window.location.reload();
|
|
30
30
|
}
|
|
31
31
|
function La(e) {
|
|
32
|
-
e = e.split("/"),
|
|
32
|
+
e = e.split("/"), S.page = "Main", S.module = e[0], S.tab = e[1], S.id = 0, sessionStorage.setItem(
|
|
33
33
|
"f",
|
|
34
34
|
L.enCode({
|
|
35
|
-
module:
|
|
36
|
-
page:
|
|
37
|
-
tab:
|
|
38
|
-
id:
|
|
35
|
+
module: S.module,
|
|
36
|
+
page: S.page,
|
|
37
|
+
tab: S.tab,
|
|
38
|
+
id: S.id,
|
|
39
39
|
time: (/* @__PURE__ */ new Date()).getTime()
|
|
40
40
|
})
|
|
41
|
-
), Y.page(
|
|
41
|
+
), Y.page(S.page);
|
|
42
42
|
}
|
|
43
43
|
function Fa(e) {
|
|
44
44
|
return localStorage.setItem("d", e);
|
|
@@ -57,7 +57,7 @@ function Pa() {
|
|
|
57
57
|
function Oa(e) {
|
|
58
58
|
localStorage.setItem("p", L.enCode(e));
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function xt() {
|
|
61
61
|
let e = localStorage.getItem("p");
|
|
62
62
|
if (e !== "" && e !== "undefined" && e !== null) {
|
|
63
63
|
let t = L.deCode(e);
|
|
@@ -66,23 +66,23 @@ function pt() {
|
|
|
66
66
|
return te(), !1;
|
|
67
67
|
}
|
|
68
68
|
function Aa() {
|
|
69
|
-
const [e, t] =
|
|
69
|
+
const [e, t] = p.useState(xn()), a = (r) => {
|
|
70
70
|
t(r);
|
|
71
71
|
};
|
|
72
72
|
return Y.page = a, [e];
|
|
73
73
|
}
|
|
74
74
|
function Ga(e, t = !0) {
|
|
75
|
-
|
|
75
|
+
S.page = e, sessionStorage.setItem("f", L.enCode(S)), t && Y.page(e);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
78
|
-
return
|
|
77
|
+
function xn() {
|
|
78
|
+
return S.page;
|
|
79
79
|
}
|
|
80
80
|
function Za(e) {
|
|
81
|
-
return
|
|
81
|
+
return S.page === e;
|
|
82
82
|
}
|
|
83
83
|
function za(e) {
|
|
84
84
|
if (typeof e != "function") {
|
|
85
|
-
const [t, a] =
|
|
85
|
+
const [t, a] = p.useState(e || pn()), r = (s) => {
|
|
86
86
|
a(s);
|
|
87
87
|
};
|
|
88
88
|
return Y.module = r, [t];
|
|
@@ -90,37 +90,37 @@ function za(e) {
|
|
|
90
90
|
Y.module = e;
|
|
91
91
|
}
|
|
92
92
|
function Ka(e, t = !0) {
|
|
93
|
-
|
|
93
|
+
S.module = e, sessionStorage.setItem("f", L.enCode(S)), t && Y.module(e);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
96
|
-
return
|
|
95
|
+
function pn() {
|
|
96
|
+
return S.module;
|
|
97
97
|
}
|
|
98
98
|
function Wa(e) {
|
|
99
|
-
return
|
|
99
|
+
return S.module === e;
|
|
100
100
|
}
|
|
101
101
|
function Ua(e) {
|
|
102
102
|
if (typeof e != "function") {
|
|
103
|
-
const [t, a] =
|
|
103
|
+
const [t, a] = p.useState(e || Qe());
|
|
104
104
|
return Y.tabs = a, [t];
|
|
105
105
|
} else
|
|
106
106
|
Y.tabs = e;
|
|
107
107
|
}
|
|
108
108
|
function Ya(e, t = !0) {
|
|
109
|
-
if (
|
|
109
|
+
if (S.tab = e, sessionStorage.setItem("f", L.enCode(S)), !!t)
|
|
110
110
|
if (Y.tabs)
|
|
111
111
|
Y.tabs(e);
|
|
112
112
|
else
|
|
113
113
|
throw new Error("useTabs not found");
|
|
114
114
|
}
|
|
115
115
|
function Qe() {
|
|
116
|
-
return
|
|
116
|
+
return S.tab;
|
|
117
117
|
}
|
|
118
118
|
function Ha(e) {
|
|
119
|
-
return
|
|
119
|
+
return S.tab === e;
|
|
120
120
|
}
|
|
121
121
|
function Va(e) {
|
|
122
122
|
if (typeof e != "function") {
|
|
123
|
-
const [t, a] =
|
|
123
|
+
const [t, a] = p.useState(e || gn()), r = (s) => {
|
|
124
124
|
a(s);
|
|
125
125
|
};
|
|
126
126
|
return Y.id = r, [t];
|
|
@@ -131,16 +131,16 @@ function qa(e) {
|
|
|
131
131
|
Y.id = e;
|
|
132
132
|
}
|
|
133
133
|
function Ja(e, t = !0) {
|
|
134
|
-
|
|
134
|
+
S.id = e, sessionStorage.setItem("f", L.enCode(S)), t && Y.id(e);
|
|
135
135
|
}
|
|
136
136
|
function gn() {
|
|
137
|
-
return
|
|
137
|
+
return S.id;
|
|
138
138
|
}
|
|
139
139
|
function Xa(e) {
|
|
140
|
-
return Number(
|
|
140
|
+
return Number(S.id) === e;
|
|
141
141
|
}
|
|
142
142
|
function Qa(e, t, a) {
|
|
143
|
-
|
|
143
|
+
S.module = e, S.id = a, S.tab = t, sessionStorage.setItem("f", L.enCode(S)), Y.module(e), Y.tabs(t);
|
|
144
144
|
}
|
|
145
145
|
function er(e) {
|
|
146
146
|
be.data = e[0], delete be.data.id, document.body.dataset.theme = be.data.s15, localStorage.setItem("s", L.enCode(be.data));
|
|
@@ -177,7 +177,7 @@ function Cn(e) {
|
|
|
177
177
|
let t = localStorage.getItem("b");
|
|
178
178
|
t = t === null ? {} : L.deCode(t), t[Qe()] = e, localStorage.setItem("b", L.enCode(t));
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function pt() {
|
|
181
181
|
let e = localStorage.getItem("b");
|
|
182
182
|
return e === null ? {} : (e = L.deCode(e), e = e[Qe()], e = e === void 0 ? { active: 1, sort: "<" } : e, e);
|
|
183
183
|
}
|
|
@@ -213,10 +213,10 @@ function or(e) {
|
|
|
213
213
|
return hn.data[e];
|
|
214
214
|
}
|
|
215
215
|
function lr(e) {
|
|
216
|
-
|
|
216
|
+
S.payment = e;
|
|
217
217
|
}
|
|
218
218
|
function cr() {
|
|
219
|
-
return
|
|
219
|
+
return S.payment;
|
|
220
220
|
}
|
|
221
221
|
function yn(e) {
|
|
222
222
|
localStorage.setItem("u", L.enCode(e));
|
|
@@ -252,28 +252,28 @@ function ur(e) {
|
|
|
252
252
|
let s = L.deCode(r);
|
|
253
253
|
if (!s)
|
|
254
254
|
return;
|
|
255
|
-
|
|
255
|
+
S[a] = { is: !0, time: s.time, data: s.data };
|
|
256
256
|
} catch {
|
|
257
|
-
|
|
257
|
+
S[a] = { is: !1, time: 0, data: {} };
|
|
258
258
|
}
|
|
259
259
|
else
|
|
260
|
-
|
|
260
|
+
S[a] = { is: !1, time: 0, data: {} };
|
|
261
261
|
};
|
|
262
262
|
e.forEach((a) => t(a));
|
|
263
263
|
}
|
|
264
264
|
function fr(e) {
|
|
265
|
-
return
|
|
265
|
+
return S[e] === void 0 ? (S[e] = { data: {}, time: 0 }, { data: {}, time: 0 }) : S[e];
|
|
266
266
|
}
|
|
267
267
|
function mr(e, t) {
|
|
268
|
-
|
|
268
|
+
S[e] = { data: t.data, time: t.time }, localStorage.setItem(e, L.enCode(S[e]));
|
|
269
269
|
}
|
|
270
270
|
function hr(e, t, a) {
|
|
271
|
-
|
|
271
|
+
S[e].time = a, S[e].data[t.item][t.name] = t.value, localStorage.setItem(e, L.enCode(S[e]));
|
|
272
272
|
}
|
|
273
273
|
const ae = {
|
|
274
274
|
setSSID: Fa,
|
|
275
275
|
getSSID: Ba,
|
|
276
|
-
getPORT:
|
|
276
|
+
getPORT: xt,
|
|
277
277
|
setPORT: Oa,
|
|
278
278
|
setAUTH: $a,
|
|
279
279
|
getAUTH: Pa,
|
|
@@ -283,7 +283,7 @@ const ae = {
|
|
|
283
283
|
getMenu: ar,
|
|
284
284
|
useSort: rr,
|
|
285
285
|
setSort: Cn,
|
|
286
|
-
getSort:
|
|
286
|
+
getSort: pt,
|
|
287
287
|
setCompany: kn,
|
|
288
288
|
getCompany: jn,
|
|
289
289
|
setSelect: Oe,
|
|
@@ -300,7 +300,7 @@ const ae = {
|
|
|
300
300
|
setBase: mr,
|
|
301
301
|
editBase: hr,
|
|
302
302
|
loadBase: ur
|
|
303
|
-
}, wn = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyBhPT57bGV0IHM9YS5kYXRhLmRhdGEgaW5zdGFuY2VvZiBGb3JtRGF0YT97fTp7IkNvbnRlbnQtdHlwZSI6ImFwcGxpY2F0aW9uL2pzb247Y2hhcnNldD11dGYtOCJ9O3RyeXtsZXQgdD1hd2FpdCBmZXRjaChgJHthLmRhdGEuaG9zdH0ke2EuZGF0YS5saW5rfWAse21ldGhvZDoiUE9TVCIsaGVhZGVyczp7c3NpZDphLmRhdGEuc3NpZCwuLi5zfSxib2R5OmEuZGF0YS5kYXRhIGluc3RhbmNlb2YgRm9ybURhdGE/YS5kYXRhLmRhdGE6SlNPTi5zdHJpbmdpZnkoYS5kYXRhLmRhdGEpfSk7cG9zdE1lc3NhZ2UoYXdhaXQgdC5qc29uKCkpfWNhdGNoKHQpe3Bvc3RNZXNzYWdlKHtzdGF0dXM6ImVycm9yIixkYXRhOiJ3b3JrZXIiLG1lc3NhZ2U6dH0pfX19KSgpOwo=",
|
|
303
|
+
}, wn = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyBhPT57bGV0IHM9YS5kYXRhLmRhdGEgaW5zdGFuY2VvZiBGb3JtRGF0YT97fTp7IkNvbnRlbnQtdHlwZSI6ImFwcGxpY2F0aW9uL2pzb247Y2hhcnNldD11dGYtOCJ9O3RyeXtsZXQgdD1hd2FpdCBmZXRjaChgJHthLmRhdGEuaG9zdH0ke2EuZGF0YS5saW5rfWAse21ldGhvZDoiUE9TVCIsaGVhZGVyczp7c3NpZDphLmRhdGEuc3NpZCwuLi5zfSxib2R5OmEuZGF0YS5kYXRhIGluc3RhbmNlb2YgRm9ybURhdGE/YS5kYXRhLmRhdGE6SlNPTi5zdHJpbmdpZnkoYS5kYXRhLmRhdGEpfSk7cG9zdE1lc3NhZ2UoYXdhaXQgdC5qc29uKCkpfWNhdGNoKHQpe3Bvc3RNZXNzYWdlKHtzdGF0dXM6ImVycm9yIixkYXRhOiJ3b3JrZXIiLG1lc3NhZ2U6dH0pfX19KSgpOwo=", xr = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), nn = typeof window < "u" && window.Blob && new Blob([xr(wn)], { type: "text/javascript;charset=utf-8" });
|
|
304
304
|
function bn(e) {
|
|
305
305
|
let t;
|
|
306
306
|
try {
|
|
@@ -324,7 +324,7 @@ function bn(e) {
|
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
326
|
const he = {};
|
|
327
|
-
function
|
|
327
|
+
function pr(e) {
|
|
328
328
|
return e && (he.s = e), he.s;
|
|
329
329
|
}
|
|
330
330
|
function gr(e) {
|
|
@@ -336,7 +336,7 @@ function vr(e) {
|
|
|
336
336
|
function Cr(e) {
|
|
337
337
|
return e && (he.h = e), he.h;
|
|
338
338
|
}
|
|
339
|
-
const et = { version: { Api: gr, Server:
|
|
339
|
+
const et = { version: { Api: gr, Server: pr, Client: vr }, Host: Cr };
|
|
340
340
|
let kr = "api", jr = "elcrm", yr = "online";
|
|
341
341
|
function wr() {
|
|
342
342
|
let e = ae.getPORT(), t = "", a = "";
|
|
@@ -389,11 +389,11 @@ function Er(e, t = {}, a = ae.getAUTH()) {
|
|
|
389
389
|
});
|
|
390
390
|
}
|
|
391
391
|
function Rr(e, t = {}, a) {
|
|
392
|
-
const [r, s] =
|
|
392
|
+
const [r, s] = p.useState({ status: "load" }), i = async (o) => {
|
|
393
393
|
let l = await Ae(e, o, a);
|
|
394
394
|
s(l);
|
|
395
395
|
};
|
|
396
|
-
return
|
|
396
|
+
return p.useEffect(() => {
|
|
397
397
|
i(t);
|
|
398
398
|
}, []), [r, i];
|
|
399
399
|
}
|
|
@@ -412,7 +412,7 @@ async function Nr(e, t, a = {}) {
|
|
|
412
412
|
return { status: "error" };
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
-
async function
|
|
415
|
+
async function Tr(e, t = {}) {
|
|
416
416
|
try {
|
|
417
417
|
return await (await Ae("https://tb.elcrm.online/v1/" + e, {
|
|
418
418
|
method: "POST",
|
|
@@ -423,7 +423,7 @@ async function Ir(e, t = {}) {
|
|
|
423
423
|
return { status: "error" };
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
|
-
function
|
|
426
|
+
function Ir(e = "qJqEtGe93RVTRF1gTKmdEXw6gCgrSx31") {
|
|
427
427
|
return e[(e.length / 2).toFixed()] + e[(e.length / 3).toFixed()] + e[(e.length / 4).toFixed()] + e[(e.length / 2).toFixed()];
|
|
428
428
|
}
|
|
429
429
|
async function Dr(e, t = {}) {
|
|
@@ -438,9 +438,9 @@ const an = {
|
|
|
438
438
|
remoute: Nr,
|
|
439
439
|
url: wr,
|
|
440
440
|
test: Dr,
|
|
441
|
-
telegram:
|
|
441
|
+
telegram: Tr,
|
|
442
442
|
use: Rr,
|
|
443
|
-
token:
|
|
443
|
+
token: Ir,
|
|
444
444
|
formData: Sr
|
|
445
445
|
};
|
|
446
446
|
var gt = { exports: {} }, De = {};
|
|
@@ -458,7 +458,7 @@ function Mr() {
|
|
|
458
458
|
if (rn)
|
|
459
459
|
return De;
|
|
460
460
|
rn = 1;
|
|
461
|
-
var e =
|
|
461
|
+
var e = p, t = Symbol.for("react.element"), a = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
462
462
|
function o(l, d, _) {
|
|
463
463
|
var u, m = {}, f = null, h = null;
|
|
464
464
|
_ !== void 0 && (f = "" + _), d.key !== void 0 && (f = "" + d.key), d.ref !== void 0 && (h = d.ref);
|
|
@@ -484,24 +484,24 @@ var Me = {};
|
|
|
484
484
|
var sn;
|
|
485
485
|
function Lr() {
|
|
486
486
|
return sn || (sn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
487
|
-
var e =
|
|
487
|
+
var e = p, t = Symbol.for("react.element"), a = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), l = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), C = Symbol.iterator, x = "@@iterator";
|
|
488
488
|
function v(c) {
|
|
489
489
|
if (c === null || typeof c != "object")
|
|
490
490
|
return null;
|
|
491
|
-
var g = C && c[C] || c[
|
|
491
|
+
var g = C && c[C] || c[x];
|
|
492
492
|
return typeof g == "function" ? g : null;
|
|
493
493
|
}
|
|
494
494
|
var k = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
495
495
|
function w(c) {
|
|
496
496
|
{
|
|
497
|
-
for (var g = arguments.length, j = new Array(g > 1 ? g - 1 : 0),
|
|
498
|
-
j[
|
|
499
|
-
|
|
497
|
+
for (var g = arguments.length, j = new Array(g > 1 ? g - 1 : 0), I = 1; I < g; I++)
|
|
498
|
+
j[I - 1] = arguments[I];
|
|
499
|
+
T("error", c, j);
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function T(c, g, j) {
|
|
503
503
|
{
|
|
504
|
-
var
|
|
504
|
+
var I = k.ReactDebugCurrentFrame, $ = I.getStackAddendum();
|
|
505
505
|
$ !== "" && (g += "%s", j = j.concat([$]));
|
|
506
506
|
var P = j.map(function(F) {
|
|
507
507
|
return String(F);
|
|
@@ -509,19 +509,19 @@ function Lr() {
|
|
|
509
509
|
P.unshift("Warning: " + g), Function.prototype.apply.call(console[c], console, P);
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
|
-
var D = !1,
|
|
512
|
+
var D = !1, b = !1, E = !1, R = !1, N = !1, A;
|
|
513
513
|
A = Symbol.for("react.module.reference");
|
|
514
514
|
function X(c) {
|
|
515
|
-
return !!(typeof c == "string" || typeof c == "function" || c === r || c === i || N || c === s || c === _ || c === u ||
|
|
515
|
+
return !!(typeof c == "string" || typeof c == "function" || c === r || c === i || N || c === s || c === _ || c === u || R || c === h || D || b || E || typeof c == "object" && c !== null && (c.$$typeof === f || c.$$typeof === m || c.$$typeof === o || c.$$typeof === l || c.$$typeof === d || // This needs to include all possible module reference object
|
|
516
516
|
// types supported by any Flight configuration anywhere since
|
|
517
517
|
// we don't know which Flight build this will end up being used
|
|
518
518
|
// with.
|
|
519
519
|
c.$$typeof === A || c.getModuleId !== void 0));
|
|
520
520
|
}
|
|
521
521
|
function le(c, g, j) {
|
|
522
|
-
var
|
|
523
|
-
if (
|
|
524
|
-
return
|
|
522
|
+
var I = c.displayName;
|
|
523
|
+
if (I)
|
|
524
|
+
return I;
|
|
525
525
|
var $ = g.displayName || g.name || "";
|
|
526
526
|
return $ !== "" ? j + "(" + $ + ")" : j;
|
|
527
527
|
}
|
|
@@ -560,8 +560,8 @@ function Lr() {
|
|
|
560
560
|
case d:
|
|
561
561
|
return le(c, c.render, "ForwardRef");
|
|
562
562
|
case m:
|
|
563
|
-
var
|
|
564
|
-
return
|
|
563
|
+
var I = c.displayName || null;
|
|
564
|
+
return I !== null ? I : B(c.type) || "Memo";
|
|
565
565
|
case f: {
|
|
566
566
|
var $ = c, P = $._payload, F = $._init;
|
|
567
567
|
try {
|
|
@@ -642,8 +642,8 @@ function Lr() {
|
|
|
642
642
|
try {
|
|
643
643
|
throw Error();
|
|
644
644
|
} catch ($) {
|
|
645
|
-
var
|
|
646
|
-
st =
|
|
645
|
+
var I = $.stack.trim().match(/\n( *(at )?)/);
|
|
646
|
+
st = I && I[1] || "";
|
|
647
647
|
}
|
|
648
648
|
return `
|
|
649
649
|
` + st + c;
|
|
@@ -662,7 +662,7 @@ function Lr() {
|
|
|
662
662
|
if (j !== void 0)
|
|
663
663
|
return j;
|
|
664
664
|
}
|
|
665
|
-
var
|
|
665
|
+
var I;
|
|
666
666
|
it = !0;
|
|
667
667
|
var $ = Error.prepareStackTrace;
|
|
668
668
|
Error.prepareStackTrace = void 0;
|
|
@@ -681,14 +681,14 @@ function Lr() {
|
|
|
681
681
|
try {
|
|
682
682
|
Reflect.construct(F, []);
|
|
683
683
|
} catch (Q) {
|
|
684
|
-
|
|
684
|
+
I = Q;
|
|
685
685
|
}
|
|
686
686
|
Reflect.construct(c, [], F);
|
|
687
687
|
} else {
|
|
688
688
|
try {
|
|
689
689
|
F.call();
|
|
690
690
|
} catch (Q) {
|
|
691
|
-
|
|
691
|
+
I = Q;
|
|
692
692
|
}
|
|
693
693
|
c.call(F.prototype);
|
|
694
694
|
}
|
|
@@ -696,14 +696,14 @@ function Lr() {
|
|
|
696
696
|
try {
|
|
697
697
|
throw Error();
|
|
698
698
|
} catch (Q) {
|
|
699
|
-
|
|
699
|
+
I = Q;
|
|
700
700
|
}
|
|
701
701
|
c();
|
|
702
702
|
}
|
|
703
703
|
} catch (Q) {
|
|
704
|
-
if (Q &&
|
|
704
|
+
if (Q && I && typeof Q.stack == "string") {
|
|
705
705
|
for (var M = Q.stack.split(`
|
|
706
|
-
`), J =
|
|
706
|
+
`), J = I.stack.split(`
|
|
707
707
|
`), z = M.length - 1, U = J.length - 1; z >= 1 && U >= 0 && M[z] !== J[U]; )
|
|
708
708
|
U--;
|
|
709
709
|
for (; z >= 1 && U >= 0; z--, U--)
|
|
@@ -752,7 +752,7 @@ function Lr() {
|
|
|
752
752
|
case m:
|
|
753
753
|
return Ye(c.type, g, j);
|
|
754
754
|
case f: {
|
|
755
|
-
var
|
|
755
|
+
var I = c, $ = I._payload, P = I._init;
|
|
756
756
|
try {
|
|
757
757
|
return Ye(P($), g, j);
|
|
758
758
|
} catch {
|
|
@@ -761,7 +761,7 @@ function Lr() {
|
|
|
761
761
|
}
|
|
762
762
|
return "";
|
|
763
763
|
}
|
|
764
|
-
var
|
|
764
|
+
var Te = Object.prototype.hasOwnProperty, Zt = {}, zt = k.ReactDebugCurrentFrame;
|
|
765
765
|
function He(c) {
|
|
766
766
|
if (c) {
|
|
767
767
|
var g = c._owner, j = Ye(c.type, c._source, g ? g.type : null);
|
|
@@ -769,22 +769,22 @@ function Lr() {
|
|
|
769
769
|
} else
|
|
770
770
|
zt.setExtraStackFrame(null);
|
|
771
771
|
}
|
|
772
|
-
function aa(c, g, j,
|
|
772
|
+
function aa(c, g, j, I, $) {
|
|
773
773
|
{
|
|
774
|
-
var P = Function.call.bind(
|
|
774
|
+
var P = Function.call.bind(Te);
|
|
775
775
|
for (var F in c)
|
|
776
776
|
if (P(c, F)) {
|
|
777
777
|
var M = void 0;
|
|
778
778
|
try {
|
|
779
779
|
if (typeof c[F] != "function") {
|
|
780
|
-
var J = Error((
|
|
780
|
+
var J = Error((I || "React class") + ": " + j + " type `" + F + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof c[F] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
781
781
|
throw J.name = "Invariant Violation", J;
|
|
782
782
|
}
|
|
783
|
-
M = c[F](g, F,
|
|
783
|
+
M = c[F](g, F, I, j, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
784
784
|
} catch (z) {
|
|
785
785
|
M = z;
|
|
786
786
|
}
|
|
787
|
-
M && !(M instanceof Error) && (He($), w("%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).",
|
|
787
|
+
M && !(M instanceof Error) && (He($), w("%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", j, F, typeof M), He(null)), M instanceof Error && !(M.message in Zt) && (Zt[M.message] = !0, He($), w("Failed %s type: %s", j, M.message), He(null));
|
|
788
788
|
}
|
|
789
789
|
}
|
|
790
790
|
}
|
|
@@ -812,7 +812,7 @@ function Lr() {
|
|
|
812
812
|
if (ia(c))
|
|
813
813
|
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", sa(c)), Kt(c);
|
|
814
814
|
}
|
|
815
|
-
var
|
|
815
|
+
var Ie = k.ReactCurrentOwner, oa = {
|
|
816
816
|
key: !0,
|
|
817
817
|
ref: !0,
|
|
818
818
|
__self: !0,
|
|
@@ -820,7 +820,7 @@ function Lr() {
|
|
|
820
820
|
}, Ut, Yt, lt;
|
|
821
821
|
lt = {};
|
|
822
822
|
function la(c) {
|
|
823
|
-
if (
|
|
823
|
+
if (Te.call(c, "ref")) {
|
|
824
824
|
var g = Object.getOwnPropertyDescriptor(c, "ref").get;
|
|
825
825
|
if (g && g.isReactWarning)
|
|
826
826
|
return !1;
|
|
@@ -828,7 +828,7 @@ function Lr() {
|
|
|
828
828
|
return c.ref !== void 0;
|
|
829
829
|
}
|
|
830
830
|
function ca(c) {
|
|
831
|
-
if (
|
|
831
|
+
if (Te.call(c, "key")) {
|
|
832
832
|
var g = Object.getOwnPropertyDescriptor(c, "key").get;
|
|
833
833
|
if (g && g.isReactWarning)
|
|
834
834
|
return !1;
|
|
@@ -836,9 +836,9 @@ function Lr() {
|
|
|
836
836
|
return c.key !== void 0;
|
|
837
837
|
}
|
|
838
838
|
function da(c, g) {
|
|
839
|
-
if (typeof c.ref == "string" &&
|
|
840
|
-
var j = B(
|
|
841
|
-
lt[j] || (w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', B(
|
|
839
|
+
if (typeof c.ref == "string" && Ie.current && g && Ie.current.stateNode !== g) {
|
|
840
|
+
var j = B(Ie.current.type);
|
|
841
|
+
lt[j] || (w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', B(Ie.current.type), c.ref), lt[j] = !0);
|
|
842
842
|
}
|
|
843
843
|
}
|
|
844
844
|
function _a(c, g) {
|
|
@@ -863,7 +863,7 @@ function Lr() {
|
|
|
863
863
|
});
|
|
864
864
|
}
|
|
865
865
|
}
|
|
866
|
-
var fa = function(c, g, j,
|
|
866
|
+
var fa = function(c, g, j, I, $, P, F) {
|
|
867
867
|
var M = {
|
|
868
868
|
// This tag allows us to uniquely identify this as a React Element
|
|
869
869
|
$$typeof: t,
|
|
@@ -884,7 +884,7 @@ function Lr() {
|
|
|
884
884
|
configurable: !1,
|
|
885
885
|
enumerable: !1,
|
|
886
886
|
writable: !1,
|
|
887
|
-
value:
|
|
887
|
+
value: I
|
|
888
888
|
}), Object.defineProperty(M, "_source", {
|
|
889
889
|
configurable: !1,
|
|
890
890
|
enumerable: !1,
|
|
@@ -892,12 +892,12 @@ function Lr() {
|
|
|
892
892
|
value: $
|
|
893
893
|
}), Object.freeze && (Object.freeze(M.props), Object.freeze(M)), M;
|
|
894
894
|
};
|
|
895
|
-
function ma(c, g, j,
|
|
895
|
+
function ma(c, g, j, I, $) {
|
|
896
896
|
{
|
|
897
897
|
var P, F = {}, M = null, J = null;
|
|
898
898
|
j !== void 0 && (Wt(j), M = "" + j), ca(g) && (Wt(g.key), M = "" + g.key), la(g) && (J = g.ref, da(g, $));
|
|
899
899
|
for (P in g)
|
|
900
|
-
|
|
900
|
+
Te.call(g, P) && !oa.hasOwnProperty(P) && (F[P] = g[P]);
|
|
901
901
|
if (c && c.defaultProps) {
|
|
902
902
|
var z = c.defaultProps;
|
|
903
903
|
for (P in z)
|
|
@@ -907,7 +907,7 @@ function Lr() {
|
|
|
907
907
|
var U = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
|
|
908
908
|
M && _a(F, U), J && ua(F, U);
|
|
909
909
|
}
|
|
910
|
-
return fa(c, M, J, $,
|
|
910
|
+
return fa(c, M, J, $, I, Ie.current, F);
|
|
911
911
|
}
|
|
912
912
|
}
|
|
913
913
|
var ct = k.ReactCurrentOwner, Ht = k.ReactDebugCurrentFrame;
|
|
@@ -939,7 +939,7 @@ Check the render method of \`` + c + "`.";
|
|
|
939
939
|
return "";
|
|
940
940
|
}
|
|
941
941
|
var qt = {};
|
|
942
|
-
function
|
|
942
|
+
function xa(c) {
|
|
943
943
|
{
|
|
944
944
|
var g = Vt();
|
|
945
945
|
if (!g) {
|
|
@@ -956,12 +956,12 @@ Check the top-level render call using <` + j + ">.");
|
|
|
956
956
|
if (!c._store || c._store.validated || c.key != null)
|
|
957
957
|
return;
|
|
958
958
|
c._store.validated = !0;
|
|
959
|
-
var j =
|
|
959
|
+
var j = xa(g);
|
|
960
960
|
if (qt[j])
|
|
961
961
|
return;
|
|
962
962
|
qt[j] = !0;
|
|
963
|
-
var
|
|
964
|
-
c && c._owner && c._owner !== ct.current && (
|
|
963
|
+
var I = "";
|
|
964
|
+
c && c._owner && c._owner !== ct.current && (I = " It was passed a child from " + B(c._owner.type) + "."), ye(c), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', j, I), ye(null);
|
|
965
965
|
}
|
|
966
966
|
}
|
|
967
967
|
function Xt(c, g) {
|
|
@@ -970,8 +970,8 @@ Check the top-level render call using <` + j + ">.");
|
|
|
970
970
|
return;
|
|
971
971
|
if (ot(c))
|
|
972
972
|
for (var j = 0; j < c.length; j++) {
|
|
973
|
-
var
|
|
974
|
-
_t(
|
|
973
|
+
var I = c[j];
|
|
974
|
+
_t(I) && Jt(I, g);
|
|
975
975
|
}
|
|
976
976
|
else if (_t(c))
|
|
977
977
|
c._store && (c._store.validated = !0);
|
|
@@ -983,7 +983,7 @@ Check the top-level render call using <` + j + ">.");
|
|
|
983
983
|
}
|
|
984
984
|
}
|
|
985
985
|
}
|
|
986
|
-
function
|
|
986
|
+
function pa(c) {
|
|
987
987
|
{
|
|
988
988
|
var g = c.type;
|
|
989
989
|
if (g == null || typeof g == "string")
|
|
@@ -998,8 +998,8 @@ Check the top-level render call using <` + j + ">.");
|
|
|
998
998
|
else
|
|
999
999
|
return;
|
|
1000
1000
|
if (j) {
|
|
1001
|
-
var
|
|
1002
|
-
aa(j, c.props, "prop",
|
|
1001
|
+
var I = B(g);
|
|
1002
|
+
aa(j, c.props, "prop", I, c);
|
|
1003
1003
|
} else if (g.PropTypes !== void 0 && !dt) {
|
|
1004
1004
|
dt = !0;
|
|
1005
1005
|
var $ = B(g);
|
|
@@ -1011,9 +1011,9 @@ Check the top-level render call using <` + j + ">.");
|
|
|
1011
1011
|
function ga(c) {
|
|
1012
1012
|
{
|
|
1013
1013
|
for (var g = Object.keys(c.props), j = 0; j < g.length; j++) {
|
|
1014
|
-
var
|
|
1015
|
-
if (
|
|
1016
|
-
ye(c), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
|
1014
|
+
var I = g[j];
|
|
1015
|
+
if (I !== "children" && I !== "key") {
|
|
1016
|
+
ye(c), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", I), ye(null);
|
|
1017
1017
|
break;
|
|
1018
1018
|
}
|
|
1019
1019
|
}
|
|
@@ -1021,7 +1021,7 @@ Check the top-level render call using <` + j + ">.");
|
|
|
1021
1021
|
}
|
|
1022
1022
|
}
|
|
1023
1023
|
var Qt = {};
|
|
1024
|
-
function en(c, g, j,
|
|
1024
|
+
function en(c, g, j, I, $, P) {
|
|
1025
1025
|
{
|
|
1026
1026
|
var F = X(c);
|
|
1027
1027
|
if (!F) {
|
|
@@ -1038,7 +1038,7 @@ Check the top-level render call using <` + j + ">.");
|
|
|
1038
1038
|
if (F) {
|
|
1039
1039
|
var ne = g.children;
|
|
1040
1040
|
if (ne !== void 0)
|
|
1041
|
-
if (
|
|
1041
|
+
if (I)
|
|
1042
1042
|
if (ot(ne)) {
|
|
1043
1043
|
for (var we = 0; we < ne.length; we++)
|
|
1044
1044
|
Xt(ne[we], c);
|
|
@@ -1048,7 +1048,7 @@ Check the top-level render call using <` + j + ">.");
|
|
|
1048
1048
|
else
|
|
1049
1049
|
Xt(ne, c);
|
|
1050
1050
|
}
|
|
1051
|
-
if (
|
|
1051
|
+
if (Te.call(g, "key")) {
|
|
1052
1052
|
var ge = B(c), Q = Object.keys(g).filter(function(wa) {
|
|
1053
1053
|
return wa !== "key";
|
|
1054
1054
|
}), ut = Q.length > 0 ? "{key: someKey, " + Q.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
@@ -1062,7 +1062,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1062
1062
|
<%s key={someKey} {...props} />`, ut, ge, ya, ge), Qt[ge + ut] = !0;
|
|
1063
1063
|
}
|
|
1064
1064
|
}
|
|
1065
|
-
return c === r ? ga(U) :
|
|
1065
|
+
return c === r ? ga(U) : pa(U), U;
|
|
1066
1066
|
}
|
|
1067
1067
|
}
|
|
1068
1068
|
function va(c, g, j) {
|
|
@@ -1086,22 +1086,22 @@ const Fr = "_notice_9i5tr_2", Br = "_error_9i5tr_9", $r = "_success_9i5tr_12", P
|
|
|
1086
1086
|
"show-notice": "_show-notice_9i5tr_1",
|
|
1087
1087
|
"hide-notice": "_hide-notice_9i5tr_1"
|
|
1088
1088
|
};
|
|
1089
|
-
let
|
|
1089
|
+
let xe = {};
|
|
1090
1090
|
function Gr() {
|
|
1091
|
-
let [e, t] =
|
|
1092
|
-
return
|
|
1091
|
+
let [e, t] = p.useState([]);
|
|
1092
|
+
return xe.set = (a) => {
|
|
1093
1093
|
t([...e, a]);
|
|
1094
|
-
},
|
|
1094
|
+
}, xe.del = (a) => {
|
|
1095
1095
|
t(e.filter((r) => r.key !== a));
|
|
1096
1096
|
}, e.length === 0 ? "" : /* @__PURE__ */ n.jsx("ul", { className: Ar.notice, children: e.map((a) => a.item) });
|
|
1097
1097
|
}
|
|
1098
1098
|
function Ge({ data: e }) {
|
|
1099
|
-
let [t, a] =
|
|
1100
|
-
|
|
1099
|
+
let [t, a] = p.useState("show");
|
|
1100
|
+
p.useEffect(() => {
|
|
1101
1101
|
setTimeout(function() {
|
|
1102
1102
|
a("hide");
|
|
1103
1103
|
}, 1800), setTimeout(function() {
|
|
1104
|
-
|
|
1104
|
+
xe.del(e.key);
|
|
1105
1105
|
}, 2500);
|
|
1106
1106
|
}, [e.key]);
|
|
1107
1107
|
let r, s;
|
|
@@ -1130,23 +1130,23 @@ function Ge({ data: e }) {
|
|
|
1130
1130
|
}
|
|
1131
1131
|
function Zr(e) {
|
|
1132
1132
|
let t = Date.now(), a = { key: t, ...e };
|
|
1133
|
-
|
|
1133
|
+
xe.set({ item: /* @__PURE__ */ n.jsx(Ge, { data: a }, t), key: t });
|
|
1134
1134
|
}
|
|
1135
1135
|
function zr(e) {
|
|
1136
1136
|
let t = Date.now(), a = { key: t, text: e, type: "error" };
|
|
1137
|
-
|
|
1137
|
+
xe.set({ item: /* @__PURE__ */ n.jsx(Ge, { data: a }, t), key: t });
|
|
1138
1138
|
}
|
|
1139
1139
|
function Kr(e) {
|
|
1140
1140
|
let t = Date.now(), a = { key: t, text: e, type: "success" };
|
|
1141
|
-
|
|
1141
|
+
xe.set({ item: /* @__PURE__ */ n.jsx(Ge, { data: a }, t), key: t });
|
|
1142
1142
|
}
|
|
1143
1143
|
function Wr(e) {
|
|
1144
1144
|
let t = Date.now(), a = { key: t, text: e, type: "remark" };
|
|
1145
|
-
|
|
1145
|
+
xe.set({ item: /* @__PURE__ */ n.jsx(Ge, { data: a }, t), key: t });
|
|
1146
1146
|
}
|
|
1147
1147
|
function Ur(e) {
|
|
1148
1148
|
let t = Date.now(), a = { key: t, text: e, type: "copy" };
|
|
1149
|
-
|
|
1149
|
+
xe.set({ item: /* @__PURE__ */ n.jsx(Ge, { data: a }, t), key: t });
|
|
1150
1150
|
}
|
|
1151
1151
|
const ve = {};
|
|
1152
1152
|
ve.error = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
|
|
@@ -1192,7 +1192,7 @@ const Yr = "_alerts_1pds5_1", Hr = "_menuAnimation_1pds5_1", Vr = "_menuItemAnim
|
|
|
1192
1192
|
};
|
|
1193
1193
|
let Be = {};
|
|
1194
1194
|
function Xr() {
|
|
1195
|
-
let [e, t] =
|
|
1195
|
+
let [e, t] = p.useState("");
|
|
1196
1196
|
return Be.set = (a) => t(a), Be.del = () => t(""), /* @__PURE__ */ n.jsx(n.Fragment, { children: e });
|
|
1197
1197
|
}
|
|
1198
1198
|
const Qr = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ n.jsxs("div", { className: vt.alerts, children: [
|
|
@@ -1218,11 +1218,11 @@ function es(e, t) {
|
|
|
1218
1218
|
const $e = { Send: Zr, Error: zr, Remark: Wr, Success: Kr, Copy: Ur }, qe = {
|
|
1219
1219
|
Path: Qa,
|
|
1220
1220
|
setPage: Ga,
|
|
1221
|
-
getPage:
|
|
1221
|
+
getPage: xn,
|
|
1222
1222
|
usePage: Aa,
|
|
1223
1223
|
isPage: Za,
|
|
1224
1224
|
setModule: Ka,
|
|
1225
|
-
getModule:
|
|
1225
|
+
getModule: pn,
|
|
1226
1226
|
useModule: za,
|
|
1227
1227
|
isModule: Wa,
|
|
1228
1228
|
setTabs: Ya,
|
|
@@ -1381,7 +1381,7 @@ function ds(e) {
|
|
|
1381
1381
|
Ze.fn = e;
|
|
1382
1382
|
}
|
|
1383
1383
|
function _s() {
|
|
1384
|
-
const [e, t] =
|
|
1384
|
+
const [e, t] = p.useReducer(is, {
|
|
1385
1385
|
open: !1,
|
|
1386
1386
|
active: !1,
|
|
1387
1387
|
news: [],
|
|
@@ -1394,7 +1394,7 @@ function _s() {
|
|
|
1394
1394
|
Le.push(r.data);
|
|
1395
1395
|
break;
|
|
1396
1396
|
}
|
|
1397
|
-
}),
|
|
1397
|
+
}), p.useEffect(() => {
|
|
1398
1398
|
(async () => {
|
|
1399
1399
|
let r = await _e.Send({
|
|
1400
1400
|
type: "module",
|
|
@@ -1517,7 +1517,7 @@ function hs(e) {
|
|
|
1517
1517
|
let r = { ...je(), 901: t };
|
|
1518
1518
|
kn(a), Oe(r);
|
|
1519
1519
|
}
|
|
1520
|
-
function
|
|
1520
|
+
function xs() {
|
|
1521
1521
|
let e = jn(), t = {};
|
|
1522
1522
|
return Object.keys(e).forEach((a) => {
|
|
1523
1523
|
t[e[a].id] = {}, t[e[a].id].name = e[a].a;
|
|
@@ -1533,8 +1533,8 @@ let oe = {}, H = {}, Ve = [
|
|
|
1533
1533
|
"info",
|
|
1534
1534
|
"job"
|
|
1535
1535
|
];
|
|
1536
|
-
function
|
|
1537
|
-
const [e, t] =
|
|
1536
|
+
function ps() {
|
|
1537
|
+
const [e, t] = p.useState(!1), [a, r] = p.useState(!1);
|
|
1538
1538
|
function s(i) {
|
|
1539
1539
|
const o = new ms();
|
|
1540
1540
|
oe.laodData = (l) => {
|
|
@@ -1547,12 +1547,12 @@ function xs() {
|
|
|
1547
1547
|
d.type === "error" && r(!0), d.type === "true" && t(!0), d.type === "closed" && o.port.postMessage({
|
|
1548
1548
|
type: "connect",
|
|
1549
1549
|
ukey: i,
|
|
1550
|
-
lk:
|
|
1550
|
+
lk: xt()
|
|
1551
1551
|
}), Ve.length !== 0 && oe.laodData(d.type), H[d.type] && H[d.type](d);
|
|
1552
1552
|
}, o.port.postMessage({
|
|
1553
1553
|
type: "connect",
|
|
1554
1554
|
ukey: i,
|
|
1555
|
-
lk:
|
|
1555
|
+
lk: xt()
|
|
1556
1556
|
});
|
|
1557
1557
|
}
|
|
1558
1558
|
return [s, e, a];
|
|
@@ -1645,7 +1645,7 @@ function Cs(e) {
|
|
|
1645
1645
|
}, e = { ...e, listen: t }, e.type = "modules", oe.send(e);
|
|
1646
1646
|
});
|
|
1647
1647
|
}
|
|
1648
|
-
const _e = { useConnect:
|
|
1648
|
+
const _e = { useConnect: ps, useListener: gs, setListener: vs, Send: Cs };
|
|
1649
1649
|
function ks(e, t) {
|
|
1650
1650
|
t === void 0 ? (t = e, e = /* @__PURE__ */ new Date()) : e = new Date(e);
|
|
1651
1651
|
let a = {
|
|
@@ -1684,16 +1684,16 @@ function js(e) {
|
|
|
1684
1684
|
};
|
|
1685
1685
|
}
|
|
1686
1686
|
const ys = (e) => {
|
|
1687
|
-
function t(
|
|
1688
|
-
var
|
|
1689
|
-
|
|
1690
|
-
for (var
|
|
1691
|
-
|
|
1692
|
-
return
|
|
1687
|
+
function t(T, D) {
|
|
1688
|
+
var b, R, E;
|
|
1689
|
+
T = T ?? "", D = D ?? 1;
|
|
1690
|
+
for (var b = [], E = 0, R = T.length; E < R; )
|
|
1691
|
+
b.push(T.slice(E, E += D));
|
|
1692
|
+
return b;
|
|
1693
1693
|
}
|
|
1694
|
-
function a(
|
|
1695
|
-
var
|
|
1696
|
-
return D[
|
|
1694
|
+
function a(T, D) {
|
|
1695
|
+
var b = [2, 0, 1, 1, 1, 2];
|
|
1696
|
+
return D[T > 4 && T < 20 ? 2 : b[Math.min(T, 5)]];
|
|
1697
1697
|
}
|
|
1698
1698
|
var r = {
|
|
1699
1699
|
null: "ноль",
|
|
@@ -1757,14 +1757,14 @@ const ys = (e) => {
|
|
|
1757
1757
|
u3: ["тысяча", "тысячи", "тысяч"],
|
|
1758
1758
|
u2: ["миллион", "миллиона", "миллионов"],
|
|
1759
1759
|
u1: ["миллиард", "миллиарда", "миллиардов"]
|
|
1760
|
-
}, s, i, o, l, v, d, _,
|
|
1760
|
+
}, s, i, o, l, v, d, _, x, u, m, f, h;
|
|
1761
1761
|
u = parseFloat(e).toFixed(2).split("."), d = u[0], l = u[1];
|
|
1762
1762
|
var C = 12 - d.length;
|
|
1763
1763
|
if (C < 0)
|
|
1764
1764
|
return !1;
|
|
1765
|
-
for (var
|
|
1766
|
-
|
|
1767
|
-
d =
|
|
1765
|
+
for (var x = []; C--; )
|
|
1766
|
+
x.push("0");
|
|
1767
|
+
d = x.join("") + d;
|
|
1768
1768
|
var v = [];
|
|
1769
1769
|
if (d > 0) {
|
|
1770
1770
|
m = t(d, 3);
|
|
@@ -2038,13 +2038,13 @@ function Rs(e) {
|
|
|
2038
2038
|
function Ns(e) {
|
|
2039
2039
|
return parseFloat(e).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, "$1 ");
|
|
2040
2040
|
}
|
|
2041
|
-
function
|
|
2041
|
+
function Ts(e, t) {
|
|
2042
2042
|
let a = t + "";
|
|
2043
2043
|
for (; a.length < e; )
|
|
2044
2044
|
a = "0" + a;
|
|
2045
2045
|
return a;
|
|
2046
2046
|
}
|
|
2047
|
-
function
|
|
2047
|
+
function Is(e, t, a) {
|
|
2048
2048
|
let r = t / e * a;
|
|
2049
2049
|
return (typeof r != "number" || r === 1 / 0) && (r = 0), parseFloat(r).toFixed(1);
|
|
2050
2050
|
}
|
|
@@ -2079,8 +2079,8 @@ const W = {
|
|
|
2079
2079
|
Initials: Es,
|
|
2080
2080
|
Month: Rs,
|
|
2081
2081
|
Money: Ns,
|
|
2082
|
-
Number:
|
|
2083
|
-
Percent:
|
|
2082
|
+
Number: Ts,
|
|
2083
|
+
Percent: Is,
|
|
2084
2084
|
CapitalizeFirstLetter: Ds,
|
|
2085
2085
|
DeclensionWord: Ms,
|
|
2086
2086
|
Select: Ls,
|
|
@@ -2138,8 +2138,8 @@ const mi = "_btn_1hz2s_6", hi = "_confirm_1hz2s_19", on = {
|
|
|
2138
2138
|
btn: mi,
|
|
2139
2139
|
confirm: hi
|
|
2140
2140
|
};
|
|
2141
|
-
function
|
|
2142
|
-
let [s, i] =
|
|
2141
|
+
function xi({ onClick: e, onSend: t, label: a, onRef: r }) {
|
|
2142
|
+
let [s, i] = p.useState(!1);
|
|
2143
2143
|
const o = (l) => {
|
|
2144
2144
|
if (e)
|
|
2145
2145
|
return e();
|
|
@@ -2156,8 +2156,8 @@ function pi({ onClick: e, onSend: t, label: a, onRef: r }) {
|
|
|
2156
2156
|
);
|
|
2157
2157
|
}
|
|
2158
2158
|
let ke = {};
|
|
2159
|
-
function
|
|
2160
|
-
let [t, a] =
|
|
2159
|
+
function pi({ config: e }) {
|
|
2160
|
+
let [t, a] = p.useState([]);
|
|
2161
2161
|
return ke.x = (r) => {
|
|
2162
2162
|
r || a([]);
|
|
2163
2163
|
}, ke.config = e, ke.add = (r) => {
|
|
@@ -2172,7 +2172,7 @@ function gi({
|
|
|
2172
2172
|
size: s = "m",
|
|
2173
2173
|
menu: i
|
|
2174
2174
|
}) {
|
|
2175
|
-
const [o, l] =
|
|
2175
|
+
const [o, l] = p.useState(!0), d = p.useRef(), _ = (m) => {
|
|
2176
2176
|
if (a) {
|
|
2177
2177
|
if (a.onClick)
|
|
2178
2178
|
return m(!1), a.onClick({ setOpen: l });
|
|
@@ -2234,7 +2234,7 @@ function gi({
|
|
|
2234
2234
|
)
|
|
2235
2235
|
] }),
|
|
2236
2236
|
t,
|
|
2237
|
-
a !== void 0 ? /* @__PURE__ */ n.jsx(
|
|
2237
|
+
a !== void 0 ? /* @__PURE__ */ n.jsx(xi, { label: a.label, onSend: _ }) : ""
|
|
2238
2238
|
]
|
|
2239
2239
|
}
|
|
2240
2240
|
)
|
|
@@ -2257,8 +2257,8 @@ function ki(e) {
|
|
|
2257
2257
|
}, 1e3);
|
|
2258
2258
|
}
|
|
2259
2259
|
function ji({ type: e, name: t, params: a }) {
|
|
2260
|
-
let [r, s] =
|
|
2261
|
-
return
|
|
2260
|
+
let [r, s] = p.useState(null);
|
|
2261
|
+
return p.useEffect(() => {
|
|
2262
2262
|
ke.config(e, t, a, s);
|
|
2263
2263
|
}, [a.id]), /* @__PURE__ */ n.jsx(n.Fragment, { children: r });
|
|
2264
2264
|
}
|
|
@@ -2281,7 +2281,7 @@ const tt = {
|
|
|
2281
2281
|
Close: wi
|
|
2282
2282
|
};
|
|
2283
2283
|
function En({ text: e, type: t, button: a }) {
|
|
2284
|
-
let [r, s] =
|
|
2284
|
+
let [r, s] = p.useState(!1), i = { active: t };
|
|
2285
2285
|
const o = () => {
|
|
2286
2286
|
if (a) {
|
|
2287
2287
|
if (a.onClick)
|
|
@@ -2312,14 +2312,14 @@ function En({ text: e, type: t, button: a }) {
|
|
|
2312
2312
|
a && /* @__PURE__ */ n.jsx("button", { onClick: o, children: a.label })
|
|
2313
2313
|
] });
|
|
2314
2314
|
}
|
|
2315
|
-
const bi = "_h_1usnu_1", Si = "_g_1usnu_11", Ei = "_hr_1usnu_16", Ri = "_hl_1usnu_28", Ni = "_t_1usnu_40",
|
|
2315
|
+
const bi = "_h_1usnu_1", Si = "_g_1usnu_11", Ei = "_hr_1usnu_16", Ri = "_hl_1usnu_28", Ni = "_t_1usnu_40", Ti = "_s_1usnu_60", Ii = "_u_1usnu_69", Di = "_o_1usnu_76", Mi = "_l_1usnu_105", Li = "_hh_1usnu_115", Fi = "_c_1usnu_128", Bi = "_loadingB_1usnu_1", $i = "_m_1usnu_180", Pi = "_ul_1usnu_196", Oi = "_f_1usnu_226", ee = {
|
|
2316
2316
|
h: bi,
|
|
2317
2317
|
g: Si,
|
|
2318
2318
|
hr: Ei,
|
|
2319
2319
|
hl: Ri,
|
|
2320
2320
|
t: Ni,
|
|
2321
|
-
s:
|
|
2322
|
-
u:
|
|
2321
|
+
s: Ti,
|
|
2322
|
+
u: Ii,
|
|
2323
2323
|
o: Di,
|
|
2324
2324
|
l: Mi,
|
|
2325
2325
|
hh: Li,
|
|
@@ -2428,7 +2428,7 @@ const Ai = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
|
|
|
2428
2428
|
search: !1,
|
|
2429
2429
|
revers: !0
|
|
2430
2430
|
}), Ui = () => {
|
|
2431
|
-
let [e, t] =
|
|
2431
|
+
let [e, t] = p.useState([]);
|
|
2432
2432
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ n.jsxs("div", { className: "upload view", children: [
|
|
2433
2433
|
/* @__PURE__ */ n.jsxs("div", { className: "--head", children: [
|
|
2434
2434
|
/* @__PURE__ */ n.jsx("b", { children: "Загрузки" }),
|
|
@@ -2450,7 +2450,7 @@ const Ai = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
|
|
|
2450
2450
|
dir: r
|
|
2451
2451
|
}) => {
|
|
2452
2452
|
t = t || "Файлы";
|
|
2453
|
-
const [s, i] =
|
|
2453
|
+
const [s, i] = p.useReducer(Ki, {}, Wi), o = () => {
|
|
2454
2454
|
tt.Add(
|
|
2455
2455
|
/* @__PURE__ */ n.jsx(
|
|
2456
2456
|
Hi,
|
|
@@ -2463,7 +2463,7 @@ const Ai = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
|
|
|
2463
2463
|
)
|
|
2464
2464
|
);
|
|
2465
2465
|
};
|
|
2466
|
-
return
|
|
2466
|
+
return p.useEffect(() => {
|
|
2467
2467
|
(async () => {
|
|
2468
2468
|
let l = await _e.Send({
|
|
2469
2469
|
type: "module",
|
|
@@ -2505,12 +2505,12 @@ const Ai = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
|
|
|
2505
2505
|
] }) : s.list.length === 0 ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : s.list.map((l, d) => /* @__PURE__ */ n.jsx(Vi, { dispatch: i, data: l }, d)) })
|
|
2506
2506
|
] });
|
|
2507
2507
|
}, Hi = ({ id: e, dir: t, dispatch: a }) => {
|
|
2508
|
-
let [r, s] =
|
|
2508
|
+
let [r, s] = p.useState(!0), i = p.useRef(null), o = (_) => {
|
|
2509
2509
|
_.preventDefault(), _.stopPropagation();
|
|
2510
2510
|
}, l = (_) => {
|
|
2511
2511
|
}, d = (_) => {
|
|
2512
2512
|
};
|
|
2513
|
-
return
|
|
2513
|
+
return p.useEffect(() => {
|
|
2514
2514
|
let _ = i.current;
|
|
2515
2515
|
["dragenter", "dragover", "dragleave", "drop"].forEach((u) => {
|
|
2516
2516
|
_.addEventListener(u, o, !1), document.body.addEventListener(u, o, !1);
|
|
@@ -2607,8 +2607,8 @@ G.list = _r();
|
|
|
2607
2607
|
G.active = null;
|
|
2608
2608
|
const qi = () => {
|
|
2609
2609
|
var s;
|
|
2610
|
-
let [e, t] =
|
|
2611
|
-
return
|
|
2610
|
+
let [e, t] = p.useState([]), [a, r] = p.useState(Nt.getSetting("s03"));
|
|
2611
|
+
return p.useEffect(() => {
|
|
2612
2612
|
(async () => {
|
|
2613
2613
|
let i = Object.keys(G.list);
|
|
2614
2614
|
if (i.length !== 0) {
|
|
@@ -2644,10 +2644,10 @@ const qi = () => {
|
|
|
2644
2644
|
a === 1 && e.length !== 0 ? "bottom" : ""
|
|
2645
2645
|
), a !== 0 ? /* @__PURE__ */ n.jsx(n.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ n.jsx("div", { className: "bookmarks", children: e.map((i) => i.item) }) : "" }) : "";
|
|
2646
2646
|
}, Ji = ({ id: e, type: t, name: a }) => {
|
|
2647
|
-
let r = t + "-" + e, [s, i] =
|
|
2647
|
+
let r = t + "-" + e, [s, i] = p.useState(
|
|
2648
2648
|
G.list[r] !== void 0
|
|
2649
2649
|
);
|
|
2650
|
-
|
|
2650
|
+
p.useEffect(() => {
|
|
2651
2651
|
i(G.list[r] !== void 0);
|
|
2652
2652
|
}, [r]);
|
|
2653
2653
|
let o = () => {
|
|
@@ -2819,8 +2819,8 @@ O.Run = async (e) => {
|
|
|
2819
2819
|
};
|
|
2820
2820
|
let Fe = {};
|
|
2821
2821
|
function Qi() {
|
|
2822
|
-
let [e, t] =
|
|
2823
|
-
return
|
|
2822
|
+
let [e, t] = p.useState([]), a = p.useRef(null);
|
|
2823
|
+
return p.useEffect(() => {
|
|
2824
2824
|
}, []), Fe.set = (r) => {
|
|
2825
2825
|
t([...e, r]);
|
|
2826
2826
|
}, Fe.del = () => {
|
|
@@ -2840,8 +2840,8 @@ function eo(e, t) {
|
|
|
2840
2840
|
});
|
|
2841
2841
|
}
|
|
2842
2842
|
function to({ id: e, type: t }) {
|
|
2843
|
-
const [a, r] =
|
|
2844
|
-
|
|
2843
|
+
const [a, r] = p.useState({}), [s, i] = p.useState(t);
|
|
2844
|
+
p.useEffect(() => {
|
|
2845
2845
|
r(ae.getSelect("user")[e]);
|
|
2846
2846
|
}, []), O.useListener((d) => {
|
|
2847
2847
|
switch (d.type) {
|
|
@@ -2947,7 +2947,7 @@ function ao({ color: e, size: t, name: a }) {
|
|
|
2947
2947
|
return /* @__PURE__ */ n.jsx("svg", { width: t, height: t, color: e, children: /* @__PURE__ */ n.jsx("use", { href: `#${a}` }) });
|
|
2948
2948
|
}
|
|
2949
2949
|
function ro() {
|
|
2950
|
-
let [e, t] =
|
|
2950
|
+
let [e, t] = p.useState([]);
|
|
2951
2951
|
if (jt.x = () => {
|
|
2952
2952
|
t([]);
|
|
2953
2953
|
}, jt.add = (r) => {
|
|
@@ -2976,8 +2976,8 @@ function io(e, t) {
|
|
|
2976
2976
|
}
|
|
2977
2977
|
const me = {};
|
|
2978
2978
|
function oo(e, t) {
|
|
2979
|
-
const [a, r] =
|
|
2980
|
-
return
|
|
2979
|
+
const [a, r] = p.useState(t);
|
|
2980
|
+
return p.useEffect(() => {
|
|
2981
2981
|
if (me[e])
|
|
2982
2982
|
return me[e].push(r);
|
|
2983
2983
|
me[e] = [r];
|
|
@@ -2993,14 +2993,14 @@ function co(e, t) {
|
|
|
2993
2993
|
}
|
|
2994
2994
|
const Ee = { setListener: io, useListener: so, setEmitter: co, useEmitter: oo, subEmitter: lo };
|
|
2995
2995
|
function _o() {
|
|
2996
|
-
let [e, t] =
|
|
2996
|
+
let [e, t] = p.useState([]);
|
|
2997
2997
|
return Ee.useListener("form", (a) => {
|
|
2998
2998
|
t([a]);
|
|
2999
2999
|
}), /* @__PURE__ */ n.jsx(n.Fragment, { children: e.map((a) => a) });
|
|
3000
3000
|
}
|
|
3001
|
-
const uo = ({ children: e, config: t }) => (L.New(t.crypto), t.defaultModule &&
|
|
3001
|
+
const uo = ({ children: e, config: t }) => (L.New(t.crypto), t.defaultModule && Ia(t.defaultModule), Ma(
|
|
3002
3002
|
/* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
3003
|
-
/* @__PURE__ */ n.jsx(
|
|
3003
|
+
/* @__PURE__ */ n.jsx(pi, { config: t.modal }),
|
|
3004
3004
|
/* @__PURE__ */ n.jsx(Gr, {}),
|
|
3005
3005
|
/* @__PURE__ */ n.jsx(Xr, {}),
|
|
3006
3006
|
/* @__PURE__ */ n.jsx(Ui, {}),
|
|
@@ -3013,17 +3013,17 @@ const uo = ({ children: e, config: t }) => (L.New(t.crypto), t.defaultModule &&
|
|
|
3013
3013
|
)), fo = ({ children: e, ...t }) => /* @__PURE__ */ n.jsx("menu", { children: e }), mo = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("header", { children: [
|
|
3014
3014
|
"xz",
|
|
3015
3015
|
e
|
|
3016
|
-
] }), ho = "_payment_1lxfv_1",
|
|
3016
|
+
] }), ho = "_payment_1lxfv_1", xo = {
|
|
3017
3017
|
payment: ho
|
|
3018
3018
|
};
|
|
3019
|
-
function
|
|
3020
|
-
let [e, t] =
|
|
3021
|
-
return !e.active && !e.payment ? "" : /* @__PURE__ */ n.jsx("div", { className:
|
|
3019
|
+
function po() {
|
|
3020
|
+
let [e, t] = p.useState({});
|
|
3021
|
+
return !e.active && !e.payment ? "" : /* @__PURE__ */ n.jsx("div", { className: xo.payment, children: "Истек срок оплаты! Доступ доступен до 16.04.2024" });
|
|
3022
3022
|
}
|
|
3023
3023
|
const Ql = ({ children: e, ...t }) => {
|
|
3024
3024
|
let a = {};
|
|
3025
3025
|
return a.enCode = (r) => JSON.stringify(r).toString(), a.deCode = (r) => JSON.parse(r), /* @__PURE__ */ n.jsxs("div", { className: "app", children: [
|
|
3026
|
-
/* @__PURE__ */ n.jsx(
|
|
3026
|
+
/* @__PURE__ */ n.jsx(po, {}),
|
|
3027
3027
|
/* @__PURE__ */ n.jsx(fo, {}),
|
|
3028
3028
|
/* @__PURE__ */ n.jsx(mo, {}),
|
|
3029
3029
|
/* @__PURE__ */ n.jsx(uo, { config: { modal: {}, crypto: a } }),
|
|
@@ -3063,7 +3063,7 @@ const Co = ({
|
|
|
3063
3063
|
] }), ko = "_setting_dva4m_2", jo = {
|
|
3064
3064
|
setting: ko
|
|
3065
3065
|
}, yo = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: jo.setting, children: e }), wo = ({ label: e, children: t }) => {
|
|
3066
|
-
let [a, r] =
|
|
3066
|
+
let [a, r] = p.useState(!1);
|
|
3067
3067
|
return /* @__PURE__ */ n.jsxs("li", { "data-item": "accordion", children: [
|
|
3068
3068
|
/* @__PURE__ */ n.jsxs("dl", { onClick: () => r(!a), children: [
|
|
3069
3069
|
/* @__PURE__ */ n.jsx("dt", { children: e }),
|
|
@@ -3089,16 +3089,16 @@ const Co = ({
|
|
|
3089
3089
|
] }) }), No = ({ label: e, active: t, options: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
|
|
3090
3090
|
/* @__PURE__ */ n.jsx("dt", { children: e }),
|
|
3091
3091
|
/* @__PURE__ */ n.jsx("dd", { role: "info", children: t })
|
|
3092
|
-
] }) }),
|
|
3092
|
+
] }) }), To = ({ label: e, info: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
|
|
3093
3093
|
/* @__PURE__ */ n.jsx("dt", { children: e }),
|
|
3094
3094
|
/* @__PURE__ */ n.jsx("dd", { role: "info", children: t })
|
|
3095
|
-
] }) }),
|
|
3095
|
+
] }) }), Io = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
|
|
3096
3096
|
/* @__PURE__ */ n.jsx("dt", { children: e }),
|
|
3097
3097
|
/* @__PURE__ */ n.jsx("dd", { children: t })
|
|
3098
3098
|
] }) }), Do = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
|
|
3099
3099
|
/* @__PURE__ */ n.jsx("dt", { children: e }),
|
|
3100
3100
|
/* @__PURE__ */ n.jsx("dd", { children: t })
|
|
3101
|
-
] }) }), Mo = { Accordion: wo, Button: bo, Switch: Ro, Info:
|
|
3101
|
+
] }) }), Mo = { Accordion: wo, Button: bo, Switch: Ro, Info: To, Select: No, Component: Io, Node: Do };
|
|
3102
3102
|
function Rn({ list: e, onClick: t, active: a, size: r, view: s }) {
|
|
3103
3103
|
return /* @__PURE__ */ n.jsx("nav", { children: /* @__PURE__ */ n.jsx("ul", { className: [r, s].join(" "), children: e.map((i) => /* @__PURE__ */ n.jsx(
|
|
3104
3104
|
Lo,
|
|
@@ -3141,9 +3141,9 @@ function Po(e, t) {
|
|
|
3141
3141
|
}
|
|
3142
3142
|
}
|
|
3143
3143
|
function Oo() {
|
|
3144
|
-
const [e, t] =
|
|
3144
|
+
const [e, t] = p.useReducer(
|
|
3145
3145
|
Po,
|
|
3146
|
-
|
|
3146
|
+
pt() === void 0 ? { active: 1, sort: "<" } : pt()
|
|
3147
3147
|
);
|
|
3148
3148
|
return /* @__PURE__ */ n.jsxs("div", { className: $o.sort, children: [
|
|
3149
3149
|
/* @__PURE__ */ n.jsx(
|
|
@@ -3202,12 +3202,12 @@ function zo(e) {
|
|
|
3202
3202
|
}
|
|
3203
3203
|
const rc = { Init: Oo, useValue: Ao, Set: Go, Run: Zo, Count: zo }, Je = {}, Nn = {};
|
|
3204
3204
|
function Ko(e) {
|
|
3205
|
-
const [t, a] =
|
|
3205
|
+
const [t, a] = p.useState({}), r = async (s) => {
|
|
3206
3206
|
a(
|
|
3207
3207
|
Object.keys(Je).reduce((i, o) => (i ? i[o] = Je[o].all : i = {}, i), {})
|
|
3208
3208
|
);
|
|
3209
3209
|
};
|
|
3210
|
-
return
|
|
3210
|
+
return p.useEffect(() => {
|
|
3211
3211
|
e.forEach((s) => Je[s] = { all: 0 }), Nn.menu = r, r();
|
|
3212
3212
|
}, [e]), t;
|
|
3213
3213
|
}
|
|
@@ -3240,7 +3240,7 @@ class Uo {
|
|
|
3240
3240
|
}
|
|
3241
3241
|
}
|
|
3242
3242
|
let mt, K = {};
|
|
3243
|
-
const Re = () => (mt || (mt = new Uo()), mt),
|
|
3243
|
+
const Re = () => (mt || (mt = new Uo()), mt), pe = (e, t, a = Re()) => a._withIDBStore("readwrite", (r) => {
|
|
3244
3244
|
K[e] = t, r.put(L.enCode(t), e);
|
|
3245
3245
|
}), de = (e, t = Re()) => K[e] === void 0 ? new Promise((a, r) => {
|
|
3246
3246
|
let s;
|
|
@@ -3267,16 +3267,16 @@ const Re = () => (mt || (mt = new Uo()), mt), xe = (e, t, a = Re()) => a._withID
|
|
|
3267
3267
|
}, Vo = (e, t, a = [], r = {}) => {
|
|
3268
3268
|
let s = a.length !== 0, i = [], o = r.sort, l = Object.keys(r).length !== 0, d = Object.keys(r), _ = Object.keys(e), u = [], m = (h) => {
|
|
3269
3269
|
let C = "";
|
|
3270
|
-
if (a.forEach((
|
|
3271
|
-
C += t[h][
|
|
3270
|
+
if (a.forEach((x) => {
|
|
3271
|
+
C += t[h][x];
|
|
3272
3272
|
}), l) {
|
|
3273
|
-
let
|
|
3273
|
+
let x = {};
|
|
3274
3274
|
d.forEach((v) => {
|
|
3275
|
-
|
|
3275
|
+
x[v] = t[h][v];
|
|
3276
3276
|
});
|
|
3277
3277
|
for (let v in o)
|
|
3278
|
-
t[h][o[v]] === void 0 && (wt(), location.reload()), v === "s1" && (
|
|
3279
|
-
i.push({ id: h, text: C, ...
|
|
3278
|
+
t[h][o[v]] === void 0 && (wt(), location.reload()), v === "s1" && (x[v] = new Date(t[h][o[v]]).getTime()), v === "s2" && (x[v] = t[h][o[v]]), v === "s3" && (x[v] = t[h][o[v]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
|
|
3279
|
+
i.push({ id: h, text: C, ...x });
|
|
3280
3280
|
} else
|
|
3281
3281
|
i.push({ id: h, text: C });
|
|
3282
3282
|
}, f = (h) => {
|
|
@@ -3309,21 +3309,21 @@ const Re = () => (mt || (mt = new Uo()), mt), xe = (e, t, a = Re()) => a._withID
|
|
|
3309
3309
|
});
|
|
3310
3310
|
}, Jo = async (e, t, a, r) => {
|
|
3311
3311
|
let s, i;
|
|
3312
|
-
i = await de(a), i[e.id] = e, await
|
|
3312
|
+
i = await de(a), i[e.id] = e, await pe(a, i), s !== null && (s = await de(t), s[e.id] = e.eDate, await pe(t, s)), r !== void 0 && r({ type: "load", page: s, base: i });
|
|
3313
3313
|
}, Xo = async (e, t, a, r) => {
|
|
3314
3314
|
let s = await de(t), i = await de(a);
|
|
3315
3315
|
for (let o in e)
|
|
3316
3316
|
i[o] = e[o], s[o] = e[o].eDate;
|
|
3317
|
-
await
|
|
3317
|
+
await pe(t, s), await pe(a, i), r !== void 0 && r({ type: "load", page: s, base: i });
|
|
3318
3318
|
}, Qo = async (e, t, a, r) => {
|
|
3319
3319
|
let s = await de(t), i = await de(a);
|
|
3320
|
-
e.forEach((o) => delete s[o]), await
|
|
3320
|
+
e.forEach((o) => delete s[o]), await pe(t, s), r !== void 0 && r({ type: "load", page: s, base: i });
|
|
3321
3321
|
}, el = async (e, t, a) => {
|
|
3322
3322
|
let r = await de(t);
|
|
3323
|
-
e.forEach((s) => delete r[s]), await
|
|
3323
|
+
e.forEach((s) => delete r[s]), await pe(t, r);
|
|
3324
3324
|
}, tl = async (e, t, a) => {
|
|
3325
3325
|
let r = await de(t);
|
|
3326
|
-
e.forEach((s) => r[s.id] = s.eDate), await
|
|
3326
|
+
e.forEach((s) => r[s.id] = s.eDate), await pe(t, r);
|
|
3327
3327
|
}, nl = async (e, t, a) => {
|
|
3328
3328
|
let r = await de(t);
|
|
3329
3329
|
if (a !== void 0)
|
|
@@ -3333,7 +3333,7 @@ const Re = () => (mt || (mt = new Uo()), mt), xe = (e, t, a = Re()) => a._withID
|
|
|
3333
3333
|
}, al = (e) => K[e], ic = {
|
|
3334
3334
|
id: nl,
|
|
3335
3335
|
get: de,
|
|
3336
|
-
set:
|
|
3336
|
+
set: pe,
|
|
3337
3337
|
add: Jo,
|
|
3338
3338
|
del: Yo,
|
|
3339
3339
|
upd: qo,
|
|
@@ -3361,7 +3361,7 @@ const Re = () => (mt || (mt = new Uo()), mt), xe = (e, t, a = Re()) => a._withID
|
|
|
3361
3361
|
loadingB: il,
|
|
3362
3362
|
ul: ol
|
|
3363
3363
|
};
|
|
3364
|
-
function
|
|
3364
|
+
function Tn({ children: e }) {
|
|
3365
3365
|
return /* @__PURE__ */ n.jsx("ul", { className: ee.ul, children: e });
|
|
3366
3366
|
}
|
|
3367
3367
|
function cl(e, t) {
|
|
@@ -3403,7 +3403,7 @@ function dl({
|
|
|
3403
3403
|
className: a,
|
|
3404
3404
|
...r
|
|
3405
3405
|
}) {
|
|
3406
|
-
const s =
|
|
3406
|
+
const s = p.useRef(null), [i, o] = p.useReducer(cl, {
|
|
3407
3407
|
load: !1,
|
|
3408
3408
|
list: [],
|
|
3409
3409
|
data: {},
|
|
@@ -3411,7 +3411,7 @@ function dl({
|
|
|
3411
3411
|
wait: !1,
|
|
3412
3412
|
size: 0
|
|
3413
3413
|
});
|
|
3414
|
-
|
|
3414
|
+
p.useEffect(() => {
|
|
3415
3415
|
s.current.scrollTop = 0, e !== null && o({ type: "load", load: !0, data: e });
|
|
3416
3416
|
}, [t]);
|
|
3417
3417
|
let l = () => {
|
|
@@ -3423,7 +3423,7 @@ function dl({
|
|
|
3423
3423
|
className: [ll.s, a].join(" "),
|
|
3424
3424
|
ref: s,
|
|
3425
3425
|
onScroll: l,
|
|
3426
|
-
children: /* @__PURE__ */ n.jsx(
|
|
3426
|
+
children: /* @__PURE__ */ n.jsx(Tn, { "el-empty": "Данные не найдены", children: i.load && i.list !== void 0 ? i.list.map((d) => /* @__PURE__ */ n.jsx(r.item, { data: d }, d.id)) : /* @__PURE__ */ n.jsxs("div", { "data-load": "load", children: [
|
|
3427
3427
|
/* @__PURE__ */ n.jsx("i", {}),
|
|
3428
3428
|
/* @__PURE__ */ n.jsx("i", {}),
|
|
3429
3429
|
/* @__PURE__ */ n.jsx("i", {})
|
|
@@ -3431,7 +3431,7 @@ function dl({
|
|
|
3431
3431
|
}
|
|
3432
3432
|
);
|
|
3433
3433
|
}
|
|
3434
|
-
const lc = { Widget: Yi },
|
|
3434
|
+
const lc = { Widget: Yi }, In = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ n.jsx(
|
|
3435
3435
|
"div",
|
|
3436
3436
|
{
|
|
3437
3437
|
role: "switch",
|
|
@@ -3472,13 +3472,13 @@ function Pe({
|
|
|
3472
3472
|
onSave: h,
|
|
3473
3473
|
className: C = ""
|
|
3474
3474
|
}) {
|
|
3475
|
-
let
|
|
3476
|
-
t && t({ value:
|
|
3477
|
-
}, k = (
|
|
3478
|
-
|
|
3479
|
-
}, w = (
|
|
3480
|
-
},
|
|
3481
|
-
|
|
3475
|
+
let x = !!(o && (e === "" || e === void 0)), v = (R) => {
|
|
3476
|
+
t && t({ value: R.target.textContent, name: a });
|
|
3477
|
+
}, k = (R) => {
|
|
3478
|
+
R.key === "Enter" && R.preventDefault();
|
|
3479
|
+
}, w = (R) => {
|
|
3480
|
+
}, T = (R) => {
|
|
3481
|
+
R.preventDefault(), navigator.clipboard.writeText(R.target.textContent).then(
|
|
3482
3482
|
function() {
|
|
3483
3483
|
$e.Copy("Данные в буфер обмене");
|
|
3484
3484
|
},
|
|
@@ -3486,14 +3486,14 @@ function Pe({
|
|
|
3486
3486
|
}
|
|
3487
3487
|
);
|
|
3488
3488
|
};
|
|
3489
|
-
if (!(l && d) && !u || !(l && d) &&
|
|
3489
|
+
if (!(l && d) && !u || !(l && d) && x)
|
|
3490
3490
|
return "";
|
|
3491
3491
|
const D = {};
|
|
3492
3492
|
D.field = "input", C && (D.className = C);
|
|
3493
|
-
const
|
|
3494
|
-
r && (
|
|
3495
|
-
const
|
|
3496
|
-
ue.Blur(
|
|
3493
|
+
const b = {};
|
|
3494
|
+
r && (b.placeholder = r), l && d && (b.edit = "");
|
|
3495
|
+
const E = (R) => {
|
|
3496
|
+
ue.Blur(R), h && h({ value: R.target.textContent, name: a });
|
|
3497
3497
|
};
|
|
3498
3498
|
return /* @__PURE__ */ n.jsxs("dl", { ...D, children: [
|
|
3499
3499
|
s ? /* @__PURE__ */ n.jsx("dt", { children: s }) : "",
|
|
@@ -3502,12 +3502,12 @@ function Pe({
|
|
|
3502
3502
|
{
|
|
3503
3503
|
onPaste: w,
|
|
3504
3504
|
onInput: v,
|
|
3505
|
-
onBlur:
|
|
3505
|
+
onBlur: E,
|
|
3506
3506
|
onKeyDown: k,
|
|
3507
|
-
onContextMenu:
|
|
3507
|
+
onContextMenu: T,
|
|
3508
3508
|
contentEditable: l && d ? "plaintext-only" : "false",
|
|
3509
3509
|
suppressContentEditableWarning: !0,
|
|
3510
|
-
...
|
|
3510
|
+
...b,
|
|
3511
3511
|
children: e
|
|
3512
3512
|
}
|
|
3513
3513
|
),
|
|
@@ -3515,7 +3515,7 @@ function Pe({
|
|
|
3515
3515
|
] });
|
|
3516
3516
|
}
|
|
3517
3517
|
function Dn({ onClick: e, onSend: t, name: a, onRef: r }) {
|
|
3518
|
-
let [s, i] =
|
|
3518
|
+
let [s, i] = p.useState(!1);
|
|
3519
3519
|
const o = () => {
|
|
3520
3520
|
if (e)
|
|
3521
3521
|
return e();
|
|
@@ -3543,7 +3543,7 @@ function Mn({
|
|
|
3543
3543
|
active: l = !0,
|
|
3544
3544
|
placeholder: d = "Введите сообщение"
|
|
3545
3545
|
}) {
|
|
3546
|
-
const _ =
|
|
3546
|
+
const _ = p.useRef({
|
|
3547
3547
|
value: e,
|
|
3548
3548
|
timerId: null,
|
|
3549
3549
|
shift: !1,
|
|
@@ -3563,7 +3563,7 @@ function Mn({
|
|
|
3563
3563
|
window.document.execCommand("insertText", !1, w);
|
|
3564
3564
|
}).catch((w) => {
|
|
3565
3565
|
});
|
|
3566
|
-
},
|
|
3566
|
+
}, x = () => {
|
|
3567
3567
|
a(!1);
|
|
3568
3568
|
}, v = {
|
|
3569
3569
|
spellCheck: "true"
|
|
@@ -3575,7 +3575,7 @@ function Mn({
|
|
|
3575
3575
|
onInput: m,
|
|
3576
3576
|
onKeyUp: h,
|
|
3577
3577
|
onKeyDown: f,
|
|
3578
|
-
onBlur:
|
|
3578
|
+
onBlur: x,
|
|
3579
3579
|
...v,
|
|
3580
3580
|
suppressContentEditableWarning: !0,
|
|
3581
3581
|
children: e
|
|
@@ -3610,7 +3610,7 @@ function Ln(e) {
|
|
|
3610
3610
|
] });
|
|
3611
3611
|
}
|
|
3612
3612
|
function Fn({ value: e, onValue: t, placeholder: a = "", name: r }) {
|
|
3613
|
-
let s = (h, C) => Number(Math.round(h + Math.random() * (C - h))), i =
|
|
3613
|
+
let s = (h, C) => Number(Math.round(h + Math.random() * (C - h))), i = p.useRef(null), o = p.useRef(null), l = s(1e4, 99999), d = (h) => {
|
|
3614
3614
|
h.key !== "Backspace" && (h.key === "Enter" && h.preventDefault(), h.target.textContent.length === 5 && h.preventDefault(), /\d/.test(h.key) || h.preventDefault());
|
|
3615
3615
|
}, _ = (h) => {
|
|
3616
3616
|
t({ value: Number(h.target.textContent) === l, name: r });
|
|
@@ -3624,7 +3624,7 @@ function Fn({ value: e, onValue: t, placeholder: a = "", name: r }) {
|
|
|
3624
3624
|
}).catch((C) => {
|
|
3625
3625
|
});
|
|
3626
3626
|
};
|
|
3627
|
-
|
|
3627
|
+
p.useEffect(() => {
|
|
3628
3628
|
const h = i.current, C = h.getContext("2d");
|
|
3629
3629
|
C.clearRect(0, 0, h.width, h.height), C.font = "30px brush script mt", C.fillStyle = "#eee", C.textAlign = "center", C.fillText(l, 50, 27), o.current.textContent = "";
|
|
3630
3630
|
}, [l]);
|
|
@@ -3666,25 +3666,25 @@ function Bn({
|
|
|
3666
3666
|
n5: "",
|
|
3667
3667
|
n6: "",
|
|
3668
3668
|
code: ""
|
|
3669
|
-
}, _ = (
|
|
3670
|
-
if (
|
|
3669
|
+
}, _ = (x) => {
|
|
3670
|
+
if (x.preventDefault(), !r)
|
|
3671
3671
|
return;
|
|
3672
|
-
|
|
3673
|
-
let v = window.getSelection(), k =
|
|
3674
|
-
if (d[
|
|
3675
|
-
|
|
3672
|
+
x.target.textContent = x.target.textContent.slice(-1).replace(/[^+\d]/g, "");
|
|
3673
|
+
let v = window.getSelection(), k = x.target.textContent.length;
|
|
3674
|
+
if (d[x.target.id] = x.target.textContent, d.code = d.n1 + "" + d.n2 + d.n3 + d.n4 + d.n5 + d.n6, v.collapse(x.target.firstChild, 1), k === 0) {
|
|
3675
|
+
x.target.blur(), x.target.focus();
|
|
3676
3676
|
return;
|
|
3677
3677
|
}
|
|
3678
|
-
|
|
3679
|
-
}, u = (
|
|
3680
|
-
if (r && (
|
|
3681
|
-
if (
|
|
3682
|
-
let v =
|
|
3683
|
-
|
|
3678
|
+
x.target.nextSibling != null && x.target.nextSibling.focus();
|
|
3679
|
+
}, u = (x) => {
|
|
3680
|
+
if (r && (x.key === "Enter" && x.preventDefault(), x.key === "Backspace")) {
|
|
3681
|
+
if (x.preventDefault(), x.target.textContent = "", d[x.target.id] = "", x.target.previousSibling != null) {
|
|
3682
|
+
let v = x.target.previousSibling.id.slice(1);
|
|
3683
|
+
x.target.previousSibling.textContent = "", d["n" + v] = "", x.target.previousSibling.focus();
|
|
3684
3684
|
}
|
|
3685
3685
|
d.code = d.n1 + "" + d.n2 + d.n3 + d.n4 + d.n5 + d.n6;
|
|
3686
3686
|
}
|
|
3687
|
-
}, m = (
|
|
3687
|
+
}, m = (x) => {
|
|
3688
3688
|
if (r) {
|
|
3689
3689
|
if (s)
|
|
3690
3690
|
i && i({ value: d.code, name: l });
|
|
@@ -3704,14 +3704,14 @@ function Bn({
|
|
|
3704
3704
|
}
|
|
3705
3705
|
}
|
|
3706
3706
|
}
|
|
3707
|
-
}, f = (
|
|
3708
|
-
|
|
3709
|
-
}, h = (
|
|
3710
|
-
|
|
3707
|
+
}, f = (x) => {
|
|
3708
|
+
x.target.textContent = "";
|
|
3709
|
+
}, h = (x) => {
|
|
3710
|
+
x.preventDefault(), navigator.clipboard.readText().then((v) => {
|
|
3711
3711
|
let k = v.split("");
|
|
3712
3712
|
for (let w = 1; w <= k.length; w++) {
|
|
3713
|
-
let
|
|
3714
|
-
|
|
3713
|
+
let T = document.getElementById("n" + w);
|
|
3714
|
+
T && (T.textContent = k[w - 1]);
|
|
3715
3715
|
}
|
|
3716
3716
|
}).catch((v) => {
|
|
3717
3717
|
});
|
|
@@ -3799,7 +3799,7 @@ function Bn({
|
|
|
3799
3799
|
function $n(e) {
|
|
3800
3800
|
let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "";
|
|
3801
3801
|
e.edit !== void 0 && e.edit, e.active !== void 0 && e.active;
|
|
3802
|
-
let [r, s] =
|
|
3802
|
+
let [r, s] = p.useState(e.value), i = (o) => {
|
|
3803
3803
|
let l = o.target.getAttribute("set-color");
|
|
3804
3804
|
s(l), e.onValue({ value: l, name: e.name });
|
|
3805
3805
|
};
|
|
@@ -3830,23 +3830,23 @@ const _l = "_o_sgibd_1", ul = "_c_sgibd_11", Se = {
|
|
|
3830
3830
|
o: _l,
|
|
3831
3831
|
c: ul
|
|
3832
3832
|
};
|
|
3833
|
-
function
|
|
3834
|
-
let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, s = e.active !== void 0 ? e.active : !0, i = e.placeholder !== void 0 ? e.placeholder : "", [o, l] =
|
|
3833
|
+
function Tt(e) {
|
|
3834
|
+
let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, s = e.active !== void 0 ? e.active : !0, i = e.placeholder !== void 0 ? e.placeholder : "", [o, l] = p.useState(
|
|
3835
3835
|
e.value === void 0 ? /* @__PURE__ */ new Date() : e.value
|
|
3836
3836
|
), d = !r && s;
|
|
3837
|
-
|
|
3837
|
+
p.useEffect(() => {
|
|
3838
3838
|
l(e.value === void 0 ? /* @__PURE__ */ new Date() : e.value);
|
|
3839
3839
|
}, [e.value]);
|
|
3840
3840
|
let _ = (h) => {
|
|
3841
3841
|
l(h), e.onValue({ value: h, name: e.name });
|
|
3842
3842
|
}, u = (h) => {
|
|
3843
|
-
const C = h.target.getBoundingClientRect(),
|
|
3843
|
+
const C = h.target.getBoundingClientRect(), x = C.left, v = C.top;
|
|
3844
3844
|
Ee.setListener(
|
|
3845
3845
|
"form",
|
|
3846
3846
|
/* @__PURE__ */ n.jsx(
|
|
3847
3847
|
fl,
|
|
3848
3848
|
{
|
|
3849
|
-
position: { x
|
|
3849
|
+
position: { x, y: v },
|
|
3850
3850
|
onValue: _,
|
|
3851
3851
|
date: o
|
|
3852
3852
|
},
|
|
@@ -3886,7 +3886,7 @@ function It(e) {
|
|
|
3886
3886
|
) });
|
|
3887
3887
|
}
|
|
3888
3888
|
const fl = (e) => {
|
|
3889
|
-
let [t, a] =
|
|
3889
|
+
let [t, a] = p.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
|
|
3890
3890
|
y: parseInt(r.getFullYear()),
|
|
3891
3891
|
d: parseInt(r.getDate()),
|
|
3892
3892
|
m: parseInt(r.getMonth()) + 1
|
|
@@ -3894,27 +3894,27 @@ const fl = (e) => {
|
|
|
3894
3894
|
y: parseInt(s.getFullYear()),
|
|
3895
3895
|
d: parseInt(s.getDate()),
|
|
3896
3896
|
m: parseInt(s.getMonth()) + 1
|
|
3897
|
-
}, [l, d] =
|
|
3898
|
-
let
|
|
3899
|
-
return
|
|
3897
|
+
}, [l, d] = p.useState({ y: o.y, m: o.m }), _ = (b) => {
|
|
3898
|
+
let E = b.getDay();
|
|
3899
|
+
return E === 0 && (E = 7), E - 1;
|
|
3900
3900
|
}, u = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"], m = l.m - 1, f = new Date(l.y, m), h = [];
|
|
3901
|
-
for (let
|
|
3901
|
+
for (let b = 0; b < _(f); b++)
|
|
3902
3902
|
h.push(0);
|
|
3903
3903
|
for (; f.getMonth() === m; )
|
|
3904
3904
|
h.push(f.getDate()), f.setDate(f.getDate() + 1);
|
|
3905
3905
|
let C = () => {
|
|
3906
3906
|
a(!1);
|
|
3907
|
-
},
|
|
3907
|
+
}, x = () => {
|
|
3908
3908
|
w(l.m + 1, l.y);
|
|
3909
3909
|
}, v = () => {
|
|
3910
3910
|
w(l.m - 1, l.y);
|
|
3911
|
-
}, k = (
|
|
3911
|
+
}, k = (b) => {
|
|
3912
3912
|
e.onValue(
|
|
3913
|
-
l.y + "-" + W.Number(2, l.m) + "-" + W.Number(2,
|
|
3913
|
+
l.y + "-" + W.Number(2, l.m) + "-" + W.Number(2, b)
|
|
3914
3914
|
), C();
|
|
3915
|
-
}, w = (
|
|
3916
|
-
|
|
3917
|
-
},
|
|
3915
|
+
}, w = (b, E) => {
|
|
3916
|
+
E = b > 12 ? E + 1 : b < 1 ? E - 1 : E, b = b > 12 ? 1 : b < 1 ? 12 : b, d({ y: E, m: b });
|
|
3917
|
+
}, T = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, D = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
|
|
3918
3918
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: t ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
3919
3919
|
/* @__PURE__ */ n.jsx(
|
|
3920
3920
|
"div",
|
|
@@ -3928,7 +3928,7 @@ const fl = (e) => {
|
|
|
3928
3928
|
"div",
|
|
3929
3929
|
{
|
|
3930
3930
|
className: Se.c,
|
|
3931
|
-
style: { top:
|
|
3931
|
+
style: { top: T + "px", left: D + "px" },
|
|
3932
3932
|
children: [
|
|
3933
3933
|
/* @__PURE__ */ n.jsxs("s", { children: [
|
|
3934
3934
|
/* @__PURE__ */ n.jsx("i", { onClick: v, children: /* @__PURE__ */ n.jsx(
|
|
@@ -3947,7 +3947,7 @@ const fl = (e) => {
|
|
|
3947
3947
|
" ",
|
|
3948
3948
|
l.y
|
|
3949
3949
|
] }),
|
|
3950
|
-
/* @__PURE__ */ n.jsx("i", { onClick:
|
|
3950
|
+
/* @__PURE__ */ n.jsx("i", { onClick: x, children: /* @__PURE__ */ n.jsx(
|
|
3951
3951
|
"svg",
|
|
3952
3952
|
{
|
|
3953
3953
|
width: "16",
|
|
@@ -3960,22 +3960,22 @@ const fl = (e) => {
|
|
|
3960
3960
|
) })
|
|
3961
3961
|
] }),
|
|
3962
3962
|
/* @__PURE__ */ n.jsxs("div", { "grid-calendar": "", children: [
|
|
3963
|
-
u.map((
|
|
3964
|
-
h.map((
|
|
3963
|
+
u.map((b, E) => /* @__PURE__ */ n.jsx("p", { children: b }, "v" + E)),
|
|
3964
|
+
h.map((b, E) => /* @__PURE__ */ n.jsx("span", { children: b !== 0 ? /* @__PURE__ */ n.jsx(
|
|
3965
3965
|
"b",
|
|
3966
3966
|
{
|
|
3967
|
-
color: i.y === l.y && i.m === l.m && i.d ===
|
|
3968
|
-
onClick: () => k(
|
|
3969
|
-
children:
|
|
3967
|
+
color: i.y === l.y && i.m === l.m && i.d === b ? "_FFEB3B" : "",
|
|
3968
|
+
onClick: () => k(b),
|
|
3969
|
+
children: b
|
|
3970
3970
|
}
|
|
3971
|
-
) : /* @__PURE__ */ n.jsx("p", {}) },
|
|
3971
|
+
) : /* @__PURE__ */ n.jsx("p", {}) }, E))
|
|
3972
3972
|
] })
|
|
3973
3973
|
]
|
|
3974
3974
|
}
|
|
3975
3975
|
)
|
|
3976
3976
|
] }) : "" });
|
|
3977
3977
|
};
|
|
3978
|
-
function
|
|
3978
|
+
function It({
|
|
3979
3979
|
value: e,
|
|
3980
3980
|
onValue: t,
|
|
3981
3981
|
name: a,
|
|
@@ -3991,15 +3991,15 @@ function Tt({
|
|
|
3991
3991
|
modal: f,
|
|
3992
3992
|
module: h,
|
|
3993
3993
|
options: C,
|
|
3994
|
-
className:
|
|
3994
|
+
className: x
|
|
3995
3995
|
}) {
|
|
3996
|
-
let [v, k] =
|
|
3996
|
+
let [v, k] = p.useState(e), w = (b) => {
|
|
3997
3997
|
if (!(l && _) || !f)
|
|
3998
3998
|
return;
|
|
3999
|
-
let
|
|
4000
|
-
tt.Open(
|
|
4001
|
-
callback: (
|
|
4002
|
-
t && t({ value:
|
|
3999
|
+
let E = f.split(".");
|
|
4000
|
+
tt.Open(E[0], E[1], {
|
|
4001
|
+
callback: (R) => {
|
|
4002
|
+
t && t({ value: R, name: a }), k(R);
|
|
4003
4003
|
},
|
|
4004
4004
|
onValue: t,
|
|
4005
4005
|
options: C,
|
|
@@ -4007,10 +4007,10 @@ function Tt({
|
|
|
4007
4007
|
value: e
|
|
4008
4008
|
});
|
|
4009
4009
|
};
|
|
4010
|
-
const
|
|
4011
|
-
|
|
4010
|
+
const T = {};
|
|
4011
|
+
T.field = "input", x && (T.className = x);
|
|
4012
4012
|
const D = {};
|
|
4013
|
-
return r && (D.placeholder = r), o ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...
|
|
4013
|
+
return r && (D.placeholder = r), o ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...T, children: [
|
|
4014
4014
|
s && /* @__PURE__ */ n.jsx("dt", { children: s }),
|
|
4015
4015
|
/* @__PURE__ */ n.jsx(
|
|
4016
4016
|
"dd",
|
|
@@ -4087,8 +4087,8 @@ function Pn({
|
|
|
4087
4087
|
className: _,
|
|
4088
4088
|
after: u
|
|
4089
4089
|
}) {
|
|
4090
|
-
let [m, f] =
|
|
4091
|
-
|
|
4090
|
+
let [m, f] = p.useState(e);
|
|
4091
|
+
p.useEffect(() => {
|
|
4092
4092
|
f(e);
|
|
4093
4093
|
}, [e]);
|
|
4094
4094
|
let h = (v) => {
|
|
@@ -4096,13 +4096,13 @@ function Pn({
|
|
|
4096
4096
|
}, C = (v) => {
|
|
4097
4097
|
if (!i || !o)
|
|
4098
4098
|
return;
|
|
4099
|
-
const k = v.target.getBoundingClientRect(), w = k.left,
|
|
4099
|
+
const k = v.target.getBoundingClientRect(), w = k.left, T = k.top;
|
|
4100
4100
|
Ee.setListener(
|
|
4101
4101
|
"form",
|
|
4102
4102
|
/* @__PURE__ */ n.jsx(
|
|
4103
4103
|
ml,
|
|
4104
4104
|
{
|
|
4105
|
-
position: { x: w, y:
|
|
4105
|
+
position: { x: w, y: T },
|
|
4106
4106
|
onValue: h,
|
|
4107
4107
|
date: m
|
|
4108
4108
|
},
|
|
@@ -4110,14 +4110,14 @@ function Pn({
|
|
|
4110
4110
|
)
|
|
4111
4111
|
);
|
|
4112
4112
|
};
|
|
4113
|
-
const
|
|
4114
|
-
return d && (
|
|
4113
|
+
const x = {};
|
|
4114
|
+
return d && (x.placeholder = d), r === "icon" ? /* @__PURE__ */ n.jsx("i", { "data-icon": "F043", onClick: C }) : /* @__PURE__ */ n.jsxs("dl", { children: [
|
|
4115
4115
|
l && /* @__PURE__ */ n.jsx("dt", { children: l }),
|
|
4116
4116
|
/* @__PURE__ */ n.jsx(
|
|
4117
4117
|
"dd",
|
|
4118
4118
|
{
|
|
4119
4119
|
onClick: C,
|
|
4120
|
-
...
|
|
4120
|
+
...x,
|
|
4121
4121
|
children: W.Date(m, "mm.yyyy")
|
|
4122
4122
|
}
|
|
4123
4123
|
),
|
|
@@ -4125,13 +4125,13 @@ function Pn({
|
|
|
4125
4125
|
] });
|
|
4126
4126
|
}
|
|
4127
4127
|
const ml = (e) => {
|
|
4128
|
-
let [t, a] =
|
|
4128
|
+
let [t, a] = p.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
|
|
4129
4129
|
y: parseInt(r.getFullYear()),
|
|
4130
4130
|
m: parseInt(r.getMonth()) + 1
|
|
4131
4131
|
}, o = {
|
|
4132
4132
|
y: parseInt(s.getFullYear()),
|
|
4133
4133
|
m: parseInt(s.getMonth()) + 1
|
|
4134
|
-
}, [l, d] =
|
|
4134
|
+
}, [l, d] = p.useState(o.y), _ = () => {
|
|
4135
4135
|
a(!1);
|
|
4136
4136
|
}, u = () => {
|
|
4137
4137
|
d(l + 1);
|
|
@@ -4139,7 +4139,7 @@ const ml = (e) => {
|
|
|
4139
4139
|
d(l - 1);
|
|
4140
4140
|
}, f = (k) => {
|
|
4141
4141
|
e.onValue(l + "-" + W.Number(2, k)), _();
|
|
4142
|
-
}, h = (k) => i.y === o.y && i.m === k ? "_FFEB3B" : "", C = Array(12).fill("").map((k, w) => w + 1),
|
|
4142
|
+
}, h = (k) => i.y === o.y && i.m === k ? "_FFEB3B" : "", C = Array(12).fill("").map((k, w) => w + 1), x = 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;
|
|
4143
4143
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: t ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
4144
4144
|
/* @__PURE__ */ n.jsx(
|
|
4145
4145
|
"div",
|
|
@@ -4153,7 +4153,7 @@ const ml = (e) => {
|
|
|
4153
4153
|
"div",
|
|
4154
4154
|
{
|
|
4155
4155
|
className: Se.c,
|
|
4156
|
-
style: { top:
|
|
4156
|
+
style: { top: x + "px", left: v + "px" },
|
|
4157
4157
|
children: [
|
|
4158
4158
|
/* @__PURE__ */ n.jsxs("s", { children: [
|
|
4159
4159
|
/* @__PURE__ */ n.jsx("i", { onClick: m, children: /* @__PURE__ */ n.jsx(
|
|
@@ -4197,7 +4197,7 @@ const ml = (e) => {
|
|
|
4197
4197
|
] }) : "" });
|
|
4198
4198
|
};
|
|
4199
4199
|
function On(e) {
|
|
4200
|
-
let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", [r, s] =
|
|
4200
|
+
let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", [r, s] = p.useState(!1), i = e.edit !== void 0 ? e.edit : !0, o = e.active !== void 0 ? e.active : !0, d = !!(e.hide && (e.value === "" || e.value === void 0)) && !(i && o);
|
|
4201
4201
|
r = i ? !0 : r;
|
|
4202
4202
|
let _ = e.placeholder !== void 0 ? e.placeholder : "", u = (v) => {
|
|
4203
4203
|
e.onValue && e.onValue({ value: v.target.innerText, name: e.name });
|
|
@@ -4213,8 +4213,8 @@ function On(e) {
|
|
|
4213
4213
|
e.onSave && e.onSave({ value: v.target.innerText, name: e.name });
|
|
4214
4214
|
}, C = {};
|
|
4215
4215
|
C.field = "notes", e.className && (C.className = e.className);
|
|
4216
|
-
const
|
|
4217
|
-
return _ && (
|
|
4216
|
+
const x = {};
|
|
4217
|
+
return _ && (x.placeholder = _), r && (x.open = ""), i && o && (x.edit = ""), d ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...C, children: [
|
|
4218
4218
|
t(),
|
|
4219
4219
|
/* @__PURE__ */ n.jsx(
|
|
4220
4220
|
"dd",
|
|
@@ -4223,7 +4223,7 @@ function On(e) {
|
|
|
4223
4223
|
onInput: u,
|
|
4224
4224
|
onBlur: h,
|
|
4225
4225
|
contentEditable: i && o ? "plaintext-only" : "false",
|
|
4226
|
-
...
|
|
4226
|
+
...x,
|
|
4227
4227
|
onDoubleClick: f,
|
|
4228
4228
|
suppressContentEditableWarning: !0,
|
|
4229
4229
|
children: e.value
|
|
@@ -4248,11 +4248,11 @@ function Mt({
|
|
|
4248
4248
|
after: f,
|
|
4249
4249
|
view: h
|
|
4250
4250
|
}) {
|
|
4251
|
-
let C = () => s ? /* @__PURE__ */ n.jsx("dt", { children: s }) : "",
|
|
4251
|
+
let C = () => s ? /* @__PURE__ */ n.jsx("dt", { children: s }) : "", x = () => i ? /* @__PURE__ */ n.jsx("em", { children: i }) : "";
|
|
4252
4252
|
r = r !== void 0 ? r : !0, t = t !== void 0 ? t : !0, l = !!(l && (d === "" || d === void 0)) && !(r && t), _ = _ !== void 0 ? _ : "", a = a !== void 0 ? a : 99;
|
|
4253
4253
|
let k = !1, w = (N) => {
|
|
4254
4254
|
e && e({ value: N.target.textContent, name: m });
|
|
4255
|
-
},
|
|
4255
|
+
}, T = (N) => {
|
|
4256
4256
|
if (!(k && N.which === 86)) {
|
|
4257
4257
|
if (N.which === 17 || N.which === 91)
|
|
4258
4258
|
return k = !0;
|
|
@@ -4261,7 +4261,7 @@ function Mt({
|
|
|
4261
4261
|
}, D = (N) => {
|
|
4262
4262
|
if (N.which === 17 || N.which === 91)
|
|
4263
4263
|
return k = !1;
|
|
4264
|
-
},
|
|
4264
|
+
}, b = (N) => {
|
|
4265
4265
|
N.preventDefault(), navigator.clipboard.readText().then((A) => {
|
|
4266
4266
|
A = A.replace(/\D/g, ""), window.document.execCommand(
|
|
4267
4267
|
"insertText",
|
|
@@ -4271,24 +4271,24 @@ function Mt({
|
|
|
4271
4271
|
}).catch((A) => {
|
|
4272
4272
|
});
|
|
4273
4273
|
};
|
|
4274
|
-
const
|
|
4275
|
-
|
|
4276
|
-
let
|
|
4277
|
-
return r && t ? (
|
|
4274
|
+
const E = {};
|
|
4275
|
+
E.field = "input", u && (E.className = u);
|
|
4276
|
+
let R = {};
|
|
4277
|
+
return r && t ? (R.edit = "true", R.contentEditable = "plaintext-only") : R.contentEditable = "false", _ && (R.placeholder = _), f && (R.after = f), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...E, children: [
|
|
4278
4278
|
C(),
|
|
4279
4279
|
/* @__PURE__ */ n.jsx(
|
|
4280
4280
|
"dd",
|
|
4281
4281
|
{
|
|
4282
|
-
...
|
|
4283
|
-
onPaste:
|
|
4282
|
+
...R,
|
|
4283
|
+
onPaste: b,
|
|
4284
4284
|
onInput: w,
|
|
4285
|
-
onKeyDown:
|
|
4285
|
+
onKeyDown: T,
|
|
4286
4286
|
onKeyUp: D,
|
|
4287
4287
|
suppressContentEditableWarning: !0,
|
|
4288
4288
|
children: d
|
|
4289
4289
|
}
|
|
4290
4290
|
),
|
|
4291
|
-
|
|
4291
|
+
x()
|
|
4292
4292
|
] });
|
|
4293
4293
|
}
|
|
4294
4294
|
function An({
|
|
@@ -4323,10 +4323,10 @@ function An({
|
|
|
4323
4323
|
}).catch((w) => {
|
|
4324
4324
|
});
|
|
4325
4325
|
};
|
|
4326
|
-
const
|
|
4327
|
-
|
|
4326
|
+
const x = {};
|
|
4327
|
+
x.field = "password", s && (x.className = s);
|
|
4328
4328
|
const v = {};
|
|
4329
|
-
return r && (v.placeholder = r), u ? "" : /* @__PURE__ */ n.jsxs("dl", { ...
|
|
4329
|
+
return r && (v.placeholder = r), u ? "" : /* @__PURE__ */ n.jsxs("dl", { ...x, children: [
|
|
4330
4330
|
i ? /* @__PURE__ */ n.jsx("dt", { children: i }) : "",
|
|
4331
4331
|
/* @__PURE__ */ n.jsx(
|
|
4332
4332
|
"dd",
|
|
@@ -5742,11 +5742,11 @@ function Lt({
|
|
|
5742
5742
|
view: f,
|
|
5743
5743
|
className: h = ""
|
|
5744
5744
|
}) {
|
|
5745
|
-
d = d !== void 0 ? d : !0, _ = _ !== void 0 ? _ : !0, l = !!(l && (e === "" || e === void 0)) && !(d && _),
|
|
5746
|
-
let
|
|
5745
|
+
d = d !== void 0 ? d : !0, _ = _ !== void 0 ? _ : !0, l = !!(l && (e === "" || e === void 0)) && !(d && _), p.useRef(null);
|
|
5746
|
+
let x = "+_(___) ___-__-__", v = !0, k = 0, w = (Z, B) => {
|
|
5747
5747
|
let V = document.createRange(), q = window.getSelection();
|
|
5748
5748
|
V.setStart(B.childNodes[0], Z), V.collapse(!0), q.removeAllRanges(), q.addRange(V), B.focus();
|
|
5749
|
-
},
|
|
5749
|
+
}, T = (Z) => {
|
|
5750
5750
|
Z.preventDefault(), navigator.clipboard.readText().then((B) => {
|
|
5751
5751
|
window.document.execCommand("insertText", !1, B);
|
|
5752
5752
|
}).catch((B) => {
|
|
@@ -5756,19 +5756,19 @@ function Lt({
|
|
|
5756
5756
|
q === "" && (v = !0);
|
|
5757
5757
|
let ze = q.split(""), se = "";
|
|
5758
5758
|
ze.forEach((Ke) => {
|
|
5759
|
-
v && (se += Ke, ht[se] !== void 0 && v ? (v = !1,
|
|
5759
|
+
v && (se += Ke, ht[se] !== void 0 && v ? (v = !1, x = ht[se].mask.replace(new RegExp("[0-9]", "g"), "_"), V = ht[se].code) : (v && (k = ("" + se).length, x = `+${se}_(___) ___-__-__`.replace(
|
|
5760
5760
|
new RegExp("[0-9]", "g"),
|
|
5761
5761
|
"_"
|
|
5762
|
-
), V = ""), k > ("" + se).length && (v = !0,
|
|
5762
|
+
), V = ""), k > ("" + se).length && (v = !0, x = `+${se}_(___) ___-__-__`.replace(
|
|
5763
5763
|
new RegExp("[0-9]", "g"),
|
|
5764
5764
|
"_"
|
|
5765
5765
|
), V = "")));
|
|
5766
5766
|
});
|
|
5767
|
-
let Ne =
|
|
5768
|
-
return Ne.length >= q.length && (q = Ne), { q:
|
|
5767
|
+
let Ne = x.replace(/\D/g, "");
|
|
5768
|
+
return Ne.length >= q.length && (q = Ne), { q: x.replace(/[_\d]/g, function() {
|
|
5769
5769
|
return q.charAt(B++) || "_";
|
|
5770
5770
|
}), i: B, v: q, f: V };
|
|
5771
|
-
},
|
|
5771
|
+
}, b = (Z) => {
|
|
5772
5772
|
Z.preventDefault(), navigator.clipboard.writeText(Z.target.textContent.replace(/\D/g, "")).then(
|
|
5773
5773
|
function() {
|
|
5774
5774
|
$e.Copy("Данные в буфер обмене");
|
|
@@ -5776,9 +5776,9 @@ function Lt({
|
|
|
5776
5776
|
function(B) {
|
|
5777
5777
|
}
|
|
5778
5778
|
);
|
|
5779
|
-
},
|
|
5779
|
+
}, E = D(e), R = (Z) => {
|
|
5780
5780
|
let B = D(Z.target.textContent);
|
|
5781
|
-
Z.target.textContent = B.q, B.i = B.q.lastIndexOf(B.v.substr(-1)), B.i < B.q.length && B.q !==
|
|
5781
|
+
Z.target.textContent = B.q, B.i = B.q.lastIndexOf(B.v.substr(-1)), B.i < B.q.length && B.q !== x ? B.i++ : B.i = B.q.indexOf("_"), w(B.i, Z.target), t && t({ value: B.q.replace(/\D/g, ""), name: r });
|
|
5782
5782
|
}, N = (Z) => {
|
|
5783
5783
|
Z.key === "Enter" && Z.preventDefault();
|
|
5784
5784
|
};
|
|
@@ -5796,13 +5796,13 @@ function Lt({
|
|
|
5796
5796
|
"dd",
|
|
5797
5797
|
{
|
|
5798
5798
|
...le,
|
|
5799
|
-
onPaste:
|
|
5800
|
-
onInput:
|
|
5799
|
+
onPaste: T,
|
|
5800
|
+
onInput: R,
|
|
5801
5801
|
onKeyDown: N,
|
|
5802
|
-
onContextMenu:
|
|
5802
|
+
onContextMenu: b,
|
|
5803
5803
|
onBlur: A,
|
|
5804
5804
|
suppressContentEditableWarning: !0,
|
|
5805
|
-
children:
|
|
5805
|
+
children: E.q
|
|
5806
5806
|
}
|
|
5807
5807
|
),
|
|
5808
5808
|
o && /* @__PURE__ */ n.jsx("em", { children: o })
|
|
@@ -5857,21 +5857,21 @@ function Ft({
|
|
|
5857
5857
|
after: u,
|
|
5858
5858
|
view: m
|
|
5859
5859
|
}) {
|
|
5860
|
-
const f =
|
|
5860
|
+
const f = p.useRef();
|
|
5861
5861
|
s = !!(s && (i === "" || l[i].n === void 0)) && !(a && r);
|
|
5862
|
-
let C = i !== void 0 && i !== "" ? l[i].n : i,
|
|
5863
|
-
f.current.textContent = l[
|
|
5864
|
-
}, v = (
|
|
5862
|
+
let C = i !== void 0 && i !== "" ? l[i].n : i, x = (T) => {
|
|
5863
|
+
f.current.textContent = l[T].n, o && o({ value: T, name: _ });
|
|
5864
|
+
}, v = (T) => {
|
|
5865
5865
|
if (!(a && r))
|
|
5866
5866
|
return;
|
|
5867
|
-
const D =
|
|
5867
|
+
const D = T.target.getBoundingClientRect();
|
|
5868
5868
|
Ee.setListener(
|
|
5869
5869
|
"form",
|
|
5870
5870
|
/* @__PURE__ */ n.jsx(
|
|
5871
5871
|
hl,
|
|
5872
5872
|
{
|
|
5873
5873
|
parent: D,
|
|
5874
|
-
onValue:
|
|
5874
|
+
onValue: x,
|
|
5875
5875
|
view: m,
|
|
5876
5876
|
options: l
|
|
5877
5877
|
},
|
|
@@ -5886,7 +5886,7 @@ function Ft({
|
|
|
5886
5886
|
] });
|
|
5887
5887
|
}
|
|
5888
5888
|
const hl = ({ onValue: e, parent: t, view: a, options: r }) => {
|
|
5889
|
-
let [s, i] =
|
|
5889
|
+
let [s, i] = p.useState(!0), o = () => {
|
|
5890
5890
|
i(!1);
|
|
5891
5891
|
}, l = (u) => {
|
|
5892
5892
|
i(!1), e(u);
|
|
@@ -5928,7 +5928,7 @@ const hl = ({ onValue: e, parent: t, view: a, options: r }) => {
|
|
|
5928
5928
|
function Bt(e) {
|
|
5929
5929
|
let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, s = e.active !== void 0 ? e.active : !0, o = !!(e.hide && (e.default === "" || e.options[e.default] === void 0)) && !(r && s), l = e.placeholder !== void 0 ? e.placeholder : "", d = (h) => {
|
|
5930
5930
|
u(e.options[h]), e.onValue({ value: h, name: e.name });
|
|
5931
|
-
}, [_, u] =
|
|
5931
|
+
}, [_, u] = p.useState(
|
|
5932
5932
|
e.default !== void 0 ? e.options[e.default] : e.default
|
|
5933
5933
|
), m = (h) => {
|
|
5934
5934
|
if (!(r && s))
|
|
@@ -5937,7 +5937,7 @@ function Bt(e) {
|
|
|
5937
5937
|
Ee.setListener(
|
|
5938
5938
|
"form",
|
|
5939
5939
|
/* @__PURE__ */ n.jsx(
|
|
5940
|
-
|
|
5940
|
+
xl,
|
|
5941
5941
|
{
|
|
5942
5942
|
parent: C,
|
|
5943
5943
|
onValue: d,
|
|
@@ -5969,8 +5969,8 @@ function Bt(e) {
|
|
|
5969
5969
|
}
|
|
5970
5970
|
);
|
|
5971
5971
|
}
|
|
5972
|
-
const
|
|
5973
|
-
let [s, i] =
|
|
5972
|
+
const xl = ({ onValue: e, parent: t, view: a, options: r }) => {
|
|
5973
|
+
let [s, i] = p.useState(!0), o = () => {
|
|
5974
5974
|
i(!1);
|
|
5975
5975
|
}, l = (m) => {
|
|
5976
5976
|
i(!1), e(m);
|
|
@@ -6023,7 +6023,7 @@ function bt({
|
|
|
6023
6023
|
view: f,
|
|
6024
6024
|
module: h,
|
|
6025
6025
|
item: C,
|
|
6026
|
-
className:
|
|
6026
|
+
className: x = ""
|
|
6027
6027
|
}) {
|
|
6028
6028
|
let v = {};
|
|
6029
6029
|
switch (e) {
|
|
@@ -6041,7 +6041,7 @@ function bt({
|
|
|
6041
6041
|
onValue: a,
|
|
6042
6042
|
name: r,
|
|
6043
6043
|
placeholder: s,
|
|
6044
|
-
className:
|
|
6044
|
+
className: x
|
|
6045
6045
|
}
|
|
6046
6046
|
);
|
|
6047
6047
|
case "Select":
|
|
@@ -6058,7 +6058,7 @@ function bt({
|
|
|
6058
6058
|
onValue: a,
|
|
6059
6059
|
name: r,
|
|
6060
6060
|
placeholder: s,
|
|
6061
|
-
className:
|
|
6061
|
+
className: x,
|
|
6062
6062
|
options: v
|
|
6063
6063
|
}
|
|
6064
6064
|
);
|
|
@@ -6076,13 +6076,13 @@ function bt({
|
|
|
6076
6076
|
onValue: a,
|
|
6077
6077
|
name: r,
|
|
6078
6078
|
placeholder: s,
|
|
6079
|
-
className:
|
|
6079
|
+
className: x,
|
|
6080
6080
|
options: v
|
|
6081
6081
|
}
|
|
6082
6082
|
);
|
|
6083
6083
|
case "Date":
|
|
6084
6084
|
return /* @__PURE__ */ n.jsx(
|
|
6085
|
-
|
|
6085
|
+
Tt,
|
|
6086
6086
|
{
|
|
6087
6087
|
title: i,
|
|
6088
6088
|
show: _,
|
|
@@ -6094,7 +6094,7 @@ function bt({
|
|
|
6094
6094
|
onValue: a,
|
|
6095
6095
|
name: r,
|
|
6096
6096
|
placeholder: s,
|
|
6097
|
-
className:
|
|
6097
|
+
className: x
|
|
6098
6098
|
}
|
|
6099
6099
|
);
|
|
6100
6100
|
case "Phone":
|
|
@@ -6111,7 +6111,7 @@ function bt({
|
|
|
6111
6111
|
onValue: a,
|
|
6112
6112
|
name: r,
|
|
6113
6113
|
placeholder: s,
|
|
6114
|
-
className:
|
|
6114
|
+
className: x
|
|
6115
6115
|
}
|
|
6116
6116
|
);
|
|
6117
6117
|
case "Number":
|
|
@@ -6128,7 +6128,7 @@ function bt({
|
|
|
6128
6128
|
onValue: a,
|
|
6129
6129
|
name: r,
|
|
6130
6130
|
placeholder: s,
|
|
6131
|
-
className:
|
|
6131
|
+
className: x
|
|
6132
6132
|
}
|
|
6133
6133
|
);
|
|
6134
6134
|
case "Money":
|
|
@@ -6145,12 +6145,12 @@ function bt({
|
|
|
6145
6145
|
onValue: a,
|
|
6146
6146
|
name: r,
|
|
6147
6147
|
placeholder: s,
|
|
6148
|
-
className:
|
|
6148
|
+
className: x
|
|
6149
6149
|
}
|
|
6150
6150
|
);
|
|
6151
6151
|
case "Modal":
|
|
6152
6152
|
return /* @__PURE__ */ n.jsx(
|
|
6153
|
-
|
|
6153
|
+
It,
|
|
6154
6154
|
{
|
|
6155
6155
|
title: i,
|
|
6156
6156
|
show: _,
|
|
@@ -6162,7 +6162,7 @@ function bt({
|
|
|
6162
6162
|
onValue: a,
|
|
6163
6163
|
name: r || "",
|
|
6164
6164
|
placeholder: s,
|
|
6165
|
-
className:
|
|
6165
|
+
className: x,
|
|
6166
6166
|
options: v,
|
|
6167
6167
|
module: h || ""
|
|
6168
6168
|
}
|
|
@@ -6186,21 +6186,23 @@ function Zn({
|
|
|
6186
6186
|
onSave: h,
|
|
6187
6187
|
className: C = ""
|
|
6188
6188
|
}) {
|
|
6189
|
-
let
|
|
6190
|
-
if (!(l && d) && !u || !(l && d) &&
|
|
6189
|
+
let x = !!(o && (e === "" || e === void 0));
|
|
6190
|
+
if (!(l && d) && !u || !(l && d) && x)
|
|
6191
6191
|
return "";
|
|
6192
|
-
let v = (
|
|
6193
|
-
t && t({ value:
|
|
6194
|
-
}, k = (
|
|
6195
|
-
h && h({ value:
|
|
6196
|
-
}, w = (
|
|
6197
|
-
|
|
6198
|
-
window.document.execCommand("insertText", !1,
|
|
6199
|
-
}).catch((
|
|
6192
|
+
let v = (b) => {
|
|
6193
|
+
t && t({ value: b.target.innerText, name: a });
|
|
6194
|
+
}, k = (b) => {
|
|
6195
|
+
h && h({ value: b.target.innerText, name: a });
|
|
6196
|
+
}, w = (b) => {
|
|
6197
|
+
b.preventDefault(), navigator.clipboard.readText().then((E) => {
|
|
6198
|
+
window.document.execCommand("insertText", !1, E);
|
|
6199
|
+
}).catch((E) => {
|
|
6200
6200
|
});
|
|
6201
6201
|
};
|
|
6202
|
-
const
|
|
6203
|
-
|
|
6202
|
+
const T = {};
|
|
6203
|
+
T.field = "text", C && (T.className = C);
|
|
6204
|
+
const D = {};
|
|
6205
|
+
return r && (D.placeholder = r), /* @__PURE__ */ n.jsxs("dl", { ...T, children: [
|
|
6204
6206
|
s ?? /* @__PURE__ */ n.jsx("dt", { children: s }),
|
|
6205
6207
|
/* @__PURE__ */ n.jsx(
|
|
6206
6208
|
"dd",
|
|
@@ -6209,7 +6211,7 @@ function Zn({
|
|
|
6209
6211
|
onBlur: k,
|
|
6210
6212
|
onInput: v,
|
|
6211
6213
|
contentEditable: l && d ? "plaintext-only" : "false",
|
|
6212
|
-
...
|
|
6214
|
+
...D,
|
|
6213
6215
|
suppressContentEditableWarning: !0,
|
|
6214
6216
|
children: e
|
|
6215
6217
|
}
|
|
@@ -6234,22 +6236,22 @@ function zn({
|
|
|
6234
6236
|
onSave: h,
|
|
6235
6237
|
className: C = ""
|
|
6236
6238
|
}) {
|
|
6237
|
-
let
|
|
6238
|
-
if (!(l && d) && !u || !(l && d) &&
|
|
6239
|
+
let x = !!(o && (e === "" || e === void 0)), v = W.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), k = p.useRef(null);
|
|
6240
|
+
if (!(l && d) && !u || !(l && d) && x)
|
|
6239
6241
|
return "";
|
|
6240
|
-
let w = (
|
|
6241
|
-
k.current.textContent =
|
|
6242
|
-
},
|
|
6243
|
-
h && h({ value:
|
|
6244
|
-
}, D = (
|
|
6245
|
-
const N =
|
|
6242
|
+
let w = (R) => {
|
|
6243
|
+
k.current.textContent = R, t && t({ value: R, name: a });
|
|
6244
|
+
}, T = (R) => {
|
|
6245
|
+
h && h({ value: R, name: a });
|
|
6246
|
+
}, D = (R) => {
|
|
6247
|
+
const N = R.target.getBoundingClientRect(), A = N.left, X = N.top;
|
|
6246
6248
|
Ee.setListener(
|
|
6247
6249
|
"form",
|
|
6248
6250
|
/* @__PURE__ */ n.jsx(
|
|
6249
|
-
|
|
6251
|
+
pl,
|
|
6250
6252
|
{
|
|
6251
6253
|
positions: { x: A, y: X },
|
|
6252
|
-
onSave:
|
|
6254
|
+
onSave: T,
|
|
6253
6255
|
onValue: w,
|
|
6254
6256
|
date: v
|
|
6255
6257
|
},
|
|
@@ -6257,44 +6259,44 @@ function zn({
|
|
|
6257
6259
|
)
|
|
6258
6260
|
);
|
|
6259
6261
|
};
|
|
6260
|
-
const
|
|
6261
|
-
|
|
6262
|
-
const
|
|
6263
|
-
return r && (
|
|
6262
|
+
const b = {};
|
|
6263
|
+
b.field = "input", C && (b.className = C);
|
|
6264
|
+
const E = {};
|
|
6265
|
+
return r && (E.placeholder = r), /* @__PURE__ */ n.jsx(n.Fragment, { children: m === "icon" ? /* @__PURE__ */ n.jsx(
|
|
6264
6266
|
"i",
|
|
6265
6267
|
{
|
|
6266
6268
|
"data-icon": "F043",
|
|
6267
6269
|
onClick: D
|
|
6268
6270
|
}
|
|
6269
|
-
) : /* @__PURE__ */ n.jsxs("dl", { ...
|
|
6271
|
+
) : /* @__PURE__ */ n.jsxs("dl", { ...b, children: [
|
|
6270
6272
|
s ? /* @__PURE__ */ n.jsx("dt", { children: s }) : "",
|
|
6271
|
-
/* @__PURE__ */ n.jsx("dd", { onClick: D, ref: k, ...
|
|
6273
|
+
/* @__PURE__ */ n.jsx("dd", { onClick: D, ref: k, ...E, children: v }),
|
|
6272
6274
|
i ? /* @__PURE__ */ n.jsx("em", { children: i }) : ""
|
|
6273
6275
|
] }) });
|
|
6274
6276
|
}
|
|
6275
|
-
const
|
|
6277
|
+
const pl = ({ positions: e, onSave: t, onValue: a, date: r }) => {
|
|
6276
6278
|
let s = r.split(":"), i = {
|
|
6277
6279
|
h: W.Number(2, s[0]),
|
|
6278
6280
|
m: W.Number(2, s[1])
|
|
6279
|
-
}, o = "hour", [l, d] =
|
|
6280
|
-
body:
|
|
6281
|
-
time:
|
|
6282
|
-
hour:
|
|
6283
|
-
timeText:
|
|
6284
|
-
hourText:
|
|
6281
|
+
}, o = "hour", [l, d] = p.useState({}), _ = !1, u = 0, m = 0, f = {
|
|
6282
|
+
body: p.useRef(null),
|
|
6283
|
+
time: p.useRef(null),
|
|
6284
|
+
hour: p.useRef(null),
|
|
6285
|
+
timeText: p.useRef(null),
|
|
6286
|
+
hourText: p.useRef(null)
|
|
6285
6287
|
};
|
|
6286
|
-
|
|
6288
|
+
p.useEffect(() => {
|
|
6287
6289
|
d(f.body.current.getBoundingClientRect()), f.hour.current.style.transform = "rotate(" + i.h * 15 + "deg)", f.time.current.style.transform = "rotate(" + i.m * 6 + "deg)";
|
|
6288
6290
|
}, [f.body, f.hour, f.time, i.m, i.h]);
|
|
6289
6291
|
let h = () => {
|
|
6290
6292
|
_ = !0;
|
|
6291
6293
|
}, C = () => {
|
|
6292
6294
|
_ = !1, o = o === "hour" ? "time" : "hour", f.body.current.setAttribute("active", o);
|
|
6293
|
-
},
|
|
6295
|
+
}, x = (E) => {
|
|
6294
6296
|
if (_) {
|
|
6295
6297
|
let N = Math.atan2(
|
|
6296
|
-
|
|
6297
|
-
|
|
6298
|
+
E.pageX - (l.x + 78),
|
|
6299
|
+
E.pageY - (l.y + 78)
|
|
6298
6300
|
) * (180 / Math.PI) * -1 + 180;
|
|
6299
6301
|
f[o].current.style.transform = "rotate(" + N + "deg)", o === "hour" ? (i = {
|
|
6300
6302
|
...i,
|
|
@@ -6304,52 +6306,52 @@ const xl = ({ positions: e, onSave: t, onValue: a, date: r }) => {
|
|
|
6304
6306
|
m: W.Number(2, parseInt(String(N / 6), 10))
|
|
6305
6307
|
}, f.timeText.current.textContent = i.m), a(i.h + ":" + i.m);
|
|
6306
6308
|
}
|
|
6307
|
-
}, v = (
|
|
6309
|
+
}, v = (E) => {
|
|
6308
6310
|
if (o === "hour")
|
|
6309
|
-
if (
|
|
6310
|
-
u +=
|
|
6311
|
-
let
|
|
6312
|
-
if (m !==
|
|
6313
|
-
m =
|
|
6311
|
+
if (E.deltaY > 0) {
|
|
6312
|
+
u += E.deltaY;
|
|
6313
|
+
let R = parseInt(String(u / 50));
|
|
6314
|
+
if (m !== R) {
|
|
6315
|
+
m = R;
|
|
6314
6316
|
let N = parseInt(i.h, 10) + 1;
|
|
6315
6317
|
N = N > 23 ? 0 : N, i = { ...i, h: W.Number(2, N) }, f.hourText.current.textContent = i.h, f[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
|
|
6316
6318
|
}
|
|
6317
6319
|
} else {
|
|
6318
|
-
u -=
|
|
6319
|
-
let
|
|
6320
|
-
if (m !==
|
|
6321
|
-
m =
|
|
6320
|
+
u -= E.deltaY;
|
|
6321
|
+
let R = parseInt(String(u / 50));
|
|
6322
|
+
if (m !== R) {
|
|
6323
|
+
m = R;
|
|
6322
6324
|
let N = parseInt(i.h, 10) - 1;
|
|
6323
6325
|
N = N < 0 ? 23 : N, i = { ...i, h: W.Number(2, N) }, f.hourText.current.textContent = i.h, f[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
|
|
6324
6326
|
}
|
|
6325
6327
|
}
|
|
6326
|
-
else if (
|
|
6327
|
-
u +=
|
|
6328
|
-
let
|
|
6329
|
-
if (m !==
|
|
6330
|
-
m =
|
|
6328
|
+
else if (E.deltaY > 0) {
|
|
6329
|
+
u += E.deltaY;
|
|
6330
|
+
let R = parseInt(String(u / 50));
|
|
6331
|
+
if (m !== R) {
|
|
6332
|
+
m = R;
|
|
6331
6333
|
let N = parseInt(i.m, 10) + 1;
|
|
6332
6334
|
N = N > 59 ? 0 : N, i = { ...i, m: W.Number(2, N) }, f.timeText.current.textContent = i.m, f[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
|
|
6333
6335
|
}
|
|
6334
6336
|
} else {
|
|
6335
|
-
u -=
|
|
6336
|
-
let
|
|
6337
|
-
if (m !==
|
|
6338
|
-
m =
|
|
6337
|
+
u -= E.deltaY;
|
|
6338
|
+
let R = parseInt(String(u / 50));
|
|
6339
|
+
if (m !== R) {
|
|
6340
|
+
m = R;
|
|
6339
6341
|
let N = parseInt(i.m, 10) - 1;
|
|
6340
6342
|
N = N < 0 ? 59 : N, i = { ...i, m: W.Number(2, N) }, f.timeText.current.textContent = i.m, f[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
|
|
6341
6343
|
}
|
|
6342
6344
|
}
|
|
6343
6345
|
a(i.h + ":" + i.m);
|
|
6344
|
-
}, [k, w] =
|
|
6346
|
+
}, [k, w] = p.useState(!0), T = () => {
|
|
6345
6347
|
w(!1), t(i.h + ":" + i.m);
|
|
6346
|
-
}, D = window.innerHeight - e.y + 33 < 320 ? e.y - 312 : e.y + 33,
|
|
6348
|
+
}, D = window.innerHeight - e.y + 33 < 320 ? e.y - 312 : e.y + 33, b = window.innerWidth - e.x < 265 ? e.x - 235 : e.x;
|
|
6347
6349
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: k ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
6348
6350
|
/* @__PURE__ */ n.jsx(
|
|
6349
6351
|
"div",
|
|
6350
6352
|
{
|
|
6351
6353
|
className: Se.o,
|
|
6352
|
-
onClick: () =>
|
|
6354
|
+
onClick: () => T()
|
|
6353
6355
|
},
|
|
6354
6356
|
(/* @__PURE__ */ new Date()).getTime()
|
|
6355
6357
|
),
|
|
@@ -6359,10 +6361,10 @@ const xl = ({ positions: e, onSave: t, onValue: a, date: r }) => {
|
|
|
6359
6361
|
className: Se.c,
|
|
6360
6362
|
onMouseDown: h,
|
|
6361
6363
|
onMouseUp: C,
|
|
6362
|
-
onMouseMove:
|
|
6364
|
+
onMouseMove: x,
|
|
6363
6365
|
onWheel: v,
|
|
6364
6366
|
ref: f.body,
|
|
6365
|
-
style: { top: D + "px", left:
|
|
6367
|
+
style: { top: D + "px", left: b + "px" },
|
|
6366
6368
|
children: [
|
|
6367
6369
|
/* @__PURE__ */ n.jsx("div", { className: "b" }),
|
|
6368
6370
|
/* @__PURE__ */ n.jsxs("div", { className: "s", children: [
|
|
@@ -6390,13 +6392,12 @@ function Kn({
|
|
|
6390
6392
|
id: l,
|
|
6391
6393
|
reload: d
|
|
6392
6394
|
}) {
|
|
6393
|
-
const [_, u] =
|
|
6394
|
-
|
|
6395
|
+
const [_, u] = p.useState(!!a), m = t || r;
|
|
6396
|
+
p.useEffect(() => {
|
|
6395
6397
|
u(!!a);
|
|
6396
6398
|
}, [a]);
|
|
6397
6399
|
let f = () => {
|
|
6398
|
-
|
|
6399
|
-
u(!!C), e && e({ value: C, name: i, id: l });
|
|
6400
|
+
e && e({ value: _ ? 0 : 1, name: i, id: l }), u(!_);
|
|
6400
6401
|
};
|
|
6401
6402
|
const h = {};
|
|
6402
6403
|
return h.field = "check", s && (h.className = s), /* @__PURE__ */ n.jsxs("dl", { ...h, children: [
|
|
@@ -6414,8 +6415,8 @@ function Kn({
|
|
|
6414
6415
|
] });
|
|
6415
6416
|
}
|
|
6416
6417
|
const gl = ({ label: e, onValue: t, value: a, name: r, item: s }) => {
|
|
6417
|
-
const [i, o] =
|
|
6418
|
-
|
|
6418
|
+
const [i, o] = p.useState(!!a);
|
|
6419
|
+
p.useEffect(() => {
|
|
6419
6420
|
o(!!a);
|
|
6420
6421
|
}, [a]);
|
|
6421
6422
|
let l = () => {
|
|
@@ -6431,8 +6432,8 @@ const gl = ({ label: e, onValue: t, value: a, name: r, item: s }) => {
|
|
|
6431
6432
|
}
|
|
6432
6433
|
);
|
|
6433
6434
|
}, Wn = ({ onValue: e, value: t, name: a, item: r }) => {
|
|
6434
|
-
const [s, i] =
|
|
6435
|
-
|
|
6435
|
+
const [s, i] = p.useState(!!t);
|
|
6436
|
+
p.useEffect(() => {
|
|
6436
6437
|
i(!!t);
|
|
6437
6438
|
}, [t]);
|
|
6438
6439
|
let o = () => {
|
|
@@ -6465,31 +6466,31 @@ function Un({
|
|
|
6465
6466
|
onSave: h,
|
|
6466
6467
|
className: C = ""
|
|
6467
6468
|
}) {
|
|
6468
|
-
const [
|
|
6469
|
+
const [x, v] = p.useState(
|
|
6469
6470
|
e !== void 0 ? e.split(",") : []
|
|
6470
6471
|
);
|
|
6471
|
-
|
|
6472
|
+
p.useEffect(() => {
|
|
6472
6473
|
e !== void 0 && v(e !== void 0 ? e.split(",") : []);
|
|
6473
6474
|
}, [e]);
|
|
6474
6475
|
let k = () => {
|
|
6475
|
-
v([...
|
|
6476
|
+
v([...x, ""]);
|
|
6476
6477
|
}, w = (A) => {
|
|
6477
|
-
|
|
6478
|
-
},
|
|
6478
|
+
x.splice(A, 1), x.length === 0 && x.push(""), v([...x]), f !== void 0 && f({ value: x.join(","), name: a });
|
|
6479
|
+
}, T = !!(o && (e === "" || e === void 0)), D = (A) => {
|
|
6479
6480
|
};
|
|
6480
|
-
if (!(l && d) && !u || !(l && d) &&
|
|
6481
|
+
if (!(l && d) && !u || !(l && d) && T)
|
|
6481
6482
|
return "";
|
|
6482
|
-
const
|
|
6483
|
-
|
|
6484
|
-
const
|
|
6483
|
+
const b = {};
|
|
6484
|
+
b.field = "group", C && (b.className = C);
|
|
6485
|
+
const E = (A) => {
|
|
6485
6486
|
ue.Blur(A), h && h({ value: A.target.textContent, name: a });
|
|
6486
6487
|
};
|
|
6487
|
-
let
|
|
6488
|
-
|
|
6488
|
+
let R = (A, X) => {
|
|
6489
|
+
x[X] = A.target.textContent, t !== void 0 && t({ value: x.join(","), name: a });
|
|
6489
6490
|
}, N = (A) => {
|
|
6490
6491
|
A.key === "Enter" && A.preventDefault();
|
|
6491
6492
|
};
|
|
6492
|
-
return /* @__PURE__ */ n.jsxs("dl", { ...
|
|
6493
|
+
return /* @__PURE__ */ n.jsxs("dl", { ...b, children: [
|
|
6493
6494
|
/* @__PURE__ */ n.jsxs("dt", { children: [
|
|
6494
6495
|
s,
|
|
6495
6496
|
/* @__PURE__ */ n.jsx("i", { onClick: k, children: /* @__PURE__ */ n.jsxs(
|
|
@@ -6509,20 +6510,20 @@ function Un({
|
|
|
6509
6510
|
}
|
|
6510
6511
|
) })
|
|
6511
6512
|
] }),
|
|
6512
|
-
/* @__PURE__ */ n.jsx("dd", { children:
|
|
6513
|
+
/* @__PURE__ */ n.jsx("dd", { children: x.map((A, X) => /* @__PURE__ */ n.jsxs("li", { className: "field_group_item", children: [
|
|
6513
6514
|
/* @__PURE__ */ n.jsx(
|
|
6514
6515
|
"span",
|
|
6515
6516
|
{
|
|
6516
|
-
onInput: (le) =>
|
|
6517
|
+
onInput: (le) => R(le, X),
|
|
6517
6518
|
edit: "true",
|
|
6518
6519
|
name: a,
|
|
6519
6520
|
placeholder: r,
|
|
6520
6521
|
onPaste: D,
|
|
6521
6522
|
contentEditable: !0,
|
|
6522
6523
|
onKeyDown: N,
|
|
6523
|
-
onBlur:
|
|
6524
|
+
onBlur: E,
|
|
6524
6525
|
suppressContentEditableWarning: !0,
|
|
6525
|
-
children:
|
|
6526
|
+
children: x[X]
|
|
6526
6527
|
}
|
|
6527
6528
|
),
|
|
6528
6529
|
/* @__PURE__ */ n.jsx(
|
|
@@ -6570,25 +6571,25 @@ function Yn({
|
|
|
6570
6571
|
modal: f,
|
|
6571
6572
|
module: h,
|
|
6572
6573
|
options: C,
|
|
6573
|
-
className:
|
|
6574
|
+
className: x
|
|
6574
6575
|
}) {
|
|
6575
|
-
const [v, k] =
|
|
6576
|
+
const [v, k] = p.useState(vl(e)), w = (b) => {
|
|
6576
6577
|
if (!(l && _) || !f)
|
|
6577
6578
|
return;
|
|
6578
|
-
let
|
|
6579
|
-
tt.Open(
|
|
6580
|
-
callback: (
|
|
6581
|
-
t && t({ value:
|
|
6579
|
+
let E = f.split(".");
|
|
6580
|
+
tt.Open(E[0], E[1], {
|
|
6581
|
+
callback: (R) => {
|
|
6582
|
+
t && t({ value: R, name: a }), k(R);
|
|
6582
6583
|
},
|
|
6583
6584
|
onValue: t,
|
|
6584
6585
|
options: C,
|
|
6585
6586
|
name: a,
|
|
6586
6587
|
value: v
|
|
6587
6588
|
});
|
|
6588
|
-
},
|
|
6589
|
-
|
|
6589
|
+
}, T = {};
|
|
6590
|
+
T.field = "group", x && (T.className = x);
|
|
6590
6591
|
const D = {};
|
|
6591
|
-
return r && (D.placeholder = r), o ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...
|
|
6592
|
+
return r && (D.placeholder = r), o ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...T, children: [
|
|
6592
6593
|
/* @__PURE__ */ n.jsxs("dt", { children: [
|
|
6593
6594
|
s,
|
|
6594
6595
|
/* @__PURE__ */ n.jsx("i", { onClick: w, children: /* @__PURE__ */ n.jsxs(
|
|
@@ -6616,9 +6617,9 @@ function Yn({
|
|
|
6616
6617
|
onClick: open,
|
|
6617
6618
|
edit: (l && _) + "",
|
|
6618
6619
|
"data-after": u,
|
|
6619
|
-
children: Object.keys(v).map((
|
|
6620
|
-
var
|
|
6621
|
-
return /* @__PURE__ */ n.jsx("div", { className: "field_group_item", children: (
|
|
6620
|
+
children: Object.keys(v).map((b) => {
|
|
6621
|
+
var E;
|
|
6622
|
+
return /* @__PURE__ */ n.jsx("div", { className: "field_group_item", children: (E = C[b]) == null ? void 0 : E.label }, b);
|
|
6622
6623
|
})
|
|
6623
6624
|
}
|
|
6624
6625
|
),
|
|
@@ -6627,7 +6628,7 @@ function Yn({
|
|
|
6627
6628
|
}
|
|
6628
6629
|
const fe = {};
|
|
6629
6630
|
function Cl(e) {
|
|
6630
|
-
const [t, a] =
|
|
6631
|
+
const [t, a] = p.useState({}), r = p.useRef(e);
|
|
6631
6632
|
return fe.u = (s) => {
|
|
6632
6633
|
r.current = { ...r.current, [s.name]: s.value };
|
|
6633
6634
|
}, fe.n = (s) => {
|
|
@@ -6644,16 +6645,16 @@ function jl() {
|
|
|
6644
6645
|
}
|
|
6645
6646
|
const cc = {
|
|
6646
6647
|
Color: $n,
|
|
6647
|
-
Date:
|
|
6648
|
+
Date: Tt,
|
|
6648
6649
|
Code: Bn,
|
|
6649
6650
|
Check: Kn,
|
|
6650
|
-
Switch:
|
|
6651
|
+
Switch: In,
|
|
6651
6652
|
Input: Pe,
|
|
6652
6653
|
Button: Dn,
|
|
6653
6654
|
Message: Mn,
|
|
6654
6655
|
Generator: Ln,
|
|
6655
6656
|
Captcha: Fn,
|
|
6656
|
-
Modal:
|
|
6657
|
+
Modal: It,
|
|
6657
6658
|
Money: Dt,
|
|
6658
6659
|
Month: Pn,
|
|
6659
6660
|
Notes: On,
|
|
@@ -6677,16 +6678,16 @@ const cc = {
|
|
|
6677
6678
|
Options: Yn
|
|
6678
6679
|
}, dc = {
|
|
6679
6680
|
Color: $n,
|
|
6680
|
-
Date:
|
|
6681
|
+
Date: Tt,
|
|
6681
6682
|
Code: Bn,
|
|
6682
6683
|
Check: Kn,
|
|
6683
|
-
Switch:
|
|
6684
|
+
Switch: In,
|
|
6684
6685
|
Input: Pe,
|
|
6685
6686
|
Button: Dn,
|
|
6686
6687
|
Message: Mn,
|
|
6687
6688
|
Generator: Ln,
|
|
6688
6689
|
Captcha: Fn,
|
|
6689
|
-
Modal:
|
|
6690
|
+
Modal: It,
|
|
6690
6691
|
Money: Dt,
|
|
6691
6692
|
Month: Pn,
|
|
6692
6693
|
Notes: On,
|
|
@@ -6752,7 +6753,7 @@ function Nl({ className: e, placeholder: t }) {
|
|
|
6752
6753
|
}
|
|
6753
6754
|
);
|
|
6754
6755
|
}
|
|
6755
|
-
function
|
|
6756
|
+
function Tl(e, t, a) {
|
|
6756
6757
|
let r = [], s = 1, i = 0, o = {}, l = 50;
|
|
6757
6758
|
return o[s] = [], e.forEach((d) => {
|
|
6758
6759
|
d.text.toLowerCase().indexOf(t) > -1 && r.push(d.id);
|
|
@@ -6760,13 +6761,13 @@ function Il(e, t, a) {
|
|
|
6760
6761
|
i++, i <= l || (s++, i = 1, o[s] = []), o[s].push(a[d]);
|
|
6761
6762
|
}), o;
|
|
6762
6763
|
}
|
|
6763
|
-
function
|
|
6764
|
+
function Il(e) {
|
|
6764
6765
|
$t = e;
|
|
6765
6766
|
}
|
|
6766
6767
|
function Dl(e) {
|
|
6767
6768
|
$t = e;
|
|
6768
6769
|
}
|
|
6769
|
-
const uc = { Field: Nl, Run:
|
|
6770
|
+
const uc = { Field: Nl, Run: Tl, Get: Il, useValue: Dl }, Ml = "_f_q3r0i_1", Ll = {
|
|
6770
6771
|
f: Ml
|
|
6771
6772
|
};
|
|
6772
6773
|
let re = {};
|
|
@@ -6821,7 +6822,7 @@ function Fl(e, t) {
|
|
|
6821
6822
|
}
|
|
6822
6823
|
}
|
|
6823
6824
|
function Bl() {
|
|
6824
|
-
const [e, t] =
|
|
6825
|
+
const [e, t] = p.useReducer(Fl, {
|
|
6825
6826
|
open: !1,
|
|
6826
6827
|
view: null,
|
|
6827
6828
|
data: {},
|
|
@@ -7008,7 +7009,7 @@ function Ul(e, t) {
|
|
|
7008
7009
|
}
|
|
7009
7010
|
}
|
|
7010
7011
|
function Jn({ load: e, list: t, item: a }) {
|
|
7011
|
-
const r =
|
|
7012
|
+
const r = p.useRef(null), [s, i] = p.useReducer(Ul, {
|
|
7012
7013
|
load: !1,
|
|
7013
7014
|
list: [],
|
|
7014
7015
|
data: {},
|
|
@@ -7016,7 +7017,7 @@ function Jn({ load: e, list: t, item: a }) {
|
|
|
7016
7017
|
wait: !1,
|
|
7017
7018
|
item: a
|
|
7018
7019
|
});
|
|
7019
|
-
|
|
7020
|
+
p.useEffect(() => {
|
|
7020
7021
|
t !== null && i({ type: "load", load: e, data: t });
|
|
7021
7022
|
}, [e]);
|
|
7022
7023
|
let o = (l) => {
|
|
@@ -7026,9 +7027,9 @@ function Jn({ load: e, list: t, item: a }) {
|
|
|
7026
7027
|
return l = s.size;
|
|
7027
7028
|
i({ type: "page", page: l });
|
|
7028
7029
|
};
|
|
7029
|
-
return
|
|
7030
|
+
return p.useEffect(() => {
|
|
7030
7031
|
}, [s]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
7031
|
-
/* @__PURE__ */ n.jsx("div", { className: qn.l, ref: r, children: /* @__PURE__ */ n.jsx(
|
|
7032
|
+
/* @__PURE__ */ n.jsx("div", { className: qn.l, ref: r, children: /* @__PURE__ */ n.jsx(Tn, { "el-empty": "Данные не найдены", children: s.load && s.list !== void 0 ? s.list.map((l) => /* @__PURE__ */ n.jsx(s.item, { data: l }, l.id)) : /* @__PURE__ */ n.jsxs("div", { "type-data": "load", children: [
|
|
7032
7033
|
/* @__PURE__ */ n.jsx("i", {}),
|
|
7033
7034
|
/* @__PURE__ */ n.jsx("i", {}),
|
|
7034
7035
|
/* @__PURE__ */ n.jsx("i", {})
|
|
@@ -7099,10 +7100,10 @@ function Vl(e) {
|
|
|
7099
7100
|
function ql(e) {
|
|
7100
7101
|
St.get && St.get(e);
|
|
7101
7102
|
}
|
|
7102
|
-
const
|
|
7103
|
+
const xc = { View: Yl, Reducer: Hl, useValue: Vl, setValue: ql }, pc = { Get: xs }, gc = { Open: eo };
|
|
7103
7104
|
function vc({ active: e, onActive: t, id: a, name: r }) {
|
|
7104
|
-
const [s, i] =
|
|
7105
|
-
|
|
7105
|
+
const [s, i] = p.useState(!!e);
|
|
7106
|
+
p.useEffect(() => {
|
|
7106
7107
|
i(!!e);
|
|
7107
7108
|
}, [e]);
|
|
7108
7109
|
let o = () => {
|
|
@@ -7125,8 +7126,8 @@ export {
|
|
|
7125
7126
|
sc as Badge,
|
|
7126
7127
|
tc as Bookmarks,
|
|
7127
7128
|
Ql as Browser,
|
|
7128
|
-
|
|
7129
|
-
|
|
7129
|
+
xi as Button,
|
|
7130
|
+
pc as Company,
|
|
7130
7131
|
fn as Component,
|
|
7131
7132
|
ic as DataBase,
|
|
7132
7133
|
Ee as Event,
|
|
@@ -7139,7 +7140,7 @@ export {
|
|
|
7139
7140
|
ac as Icon,
|
|
7140
7141
|
uo as Init,
|
|
7141
7142
|
dc as Input,
|
|
7142
|
-
|
|
7143
|
+
xc as List,
|
|
7143
7144
|
_c as Loading,
|
|
7144
7145
|
tt as Modal,
|
|
7145
7146
|
$e as Notice,
|