elcrm 0.8.76 → 0.8.78
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/Form/Image.d.ts +2 -1
- package/dist/index.css +1 -1
- package/dist/index.es.js +725 -708
- package/dist/index.umd.js +10 -10
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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 g, { createElement as Ea } from "react";
|
|
5
5
|
let Et = {};
|
|
6
6
|
const Ra = (e) => {
|
|
7
7
|
Et = e;
|
|
8
|
-
}, Da = (e) => Et.enCode(e), Na = (e) => Et.deCode(e), L = { enCode: Da, deCode: Na, New: Ra },
|
|
8
|
+
}, Da = (e) => Et.enCode(e), Na = (e) => Et.deCode(e), L = { enCode: Da, deCode: Na, New: Ra }, R = {}, Y = {}, be = {}, hn = {}, ce = {};
|
|
9
9
|
let Xe = "M06";
|
|
10
10
|
function Ia(e) {
|
|
11
11
|
Xe = e;
|
|
@@ -16,11 +16,11 @@ function Ta() {
|
|
|
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(), R.id = a.id, R.tab = a.tab, R.page = a.page, R.module = a.module, R.time = a.time, R.payment = { active: !0 }, R.module_admin = a.module_admin) : (R.id = 0, R.tab = "", R.page = "Main", R.module = R.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)), R.id = 0, R.tab = "", R.page = "Auth", R.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("/"), R.page = "Main", R.module = e[0], R.tab = e[1], R.id = 0, sessionStorage.setItem(
|
|
33
33
|
"f",
|
|
34
34
|
L.enCode({
|
|
35
|
-
module:
|
|
36
|
-
page:
|
|
37
|
-
tab:
|
|
38
|
-
id:
|
|
35
|
+
module: R.module,
|
|
36
|
+
page: R.page,
|
|
37
|
+
tab: R.tab,
|
|
38
|
+
id: R.id,
|
|
39
39
|
time: (/* @__PURE__ */ new Date()).getTime()
|
|
40
40
|
})
|
|
41
|
-
), Y.page(
|
|
41
|
+
), Y.page(R.page);
|
|
42
42
|
}
|
|
43
43
|
function Fa(e) {
|
|
44
44
|
return localStorage.setItem("d", e);
|
|
@@ -66,61 +66,61 @@ function pt() {
|
|
|
66
66
|
return te(), !1;
|
|
67
67
|
}
|
|
68
68
|
function Aa() {
|
|
69
|
-
const [e, t] =
|
|
69
|
+
const [e, t] = g.useState(pn()), 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
|
+
R.page = e, sessionStorage.setItem("f", L.enCode(R)), t && Y.page(e);
|
|
76
76
|
}
|
|
77
77
|
function pn() {
|
|
78
|
-
return
|
|
78
|
+
return R.page;
|
|
79
79
|
}
|
|
80
80
|
function Za(e) {
|
|
81
|
-
return
|
|
81
|
+
return R.page === e;
|
|
82
82
|
}
|
|
83
83
|
function za(e) {
|
|
84
84
|
if (typeof e != "function") {
|
|
85
|
-
const [t, a] =
|
|
85
|
+
const [t, a] = g.useState(e || gn()), r = (s) => {
|
|
86
86
|
a(s);
|
|
87
87
|
};
|
|
88
88
|
return Y.module = r, [t];
|
|
89
89
|
} else
|
|
90
90
|
Y.module = e;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
93
|
-
|
|
92
|
+
function Ua(e, t = !0) {
|
|
93
|
+
R.module = e, sessionStorage.setItem("f", L.enCode(R)), t && Y.module(e);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
96
|
-
return
|
|
95
|
+
function gn() {
|
|
96
|
+
return R.module;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
99
|
-
return
|
|
98
|
+
function Ka(e) {
|
|
99
|
+
return R.module === e;
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function Wa(e) {
|
|
102
102
|
if (typeof e != "function") {
|
|
103
|
-
const [t, a] =
|
|
103
|
+
const [t, a] = g.useState(e || Qe());
|
|
104
104
|
return Y.tabs = a, [t];
|
|
105
105
|
} else
|
|
106
106
|
Y.tabs = e;
|
|
107
107
|
}
|
|
108
108
|
function Ha(e, t = !0) {
|
|
109
|
-
if (
|
|
109
|
+
if (R.tab = e, sessionStorage.setItem("f", L.enCode(R)), !!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 R.tab;
|
|
117
117
|
}
|
|
118
118
|
function Ya(e) {
|
|
119
|
-
return
|
|
119
|
+
return R.tab === e;
|
|
120
120
|
}
|
|
121
121
|
function Va(e) {
|
|
122
122
|
if (typeof e != "function") {
|
|
123
|
-
const [t, a] =
|
|
123
|
+
const [t, a] = g.useState(e || xn()), 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
|
+
R.id = e, sessionStorage.setItem("f", L.enCode(R)), t && Y.id(e);
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
return
|
|
136
|
+
function xn() {
|
|
137
|
+
return R.id;
|
|
138
138
|
}
|
|
139
139
|
function Xa(e) {
|
|
140
|
-
return Number(
|
|
140
|
+
return Number(R.id) === e;
|
|
141
141
|
}
|
|
142
142
|
function Qa(e, t, a) {
|
|
143
|
-
|
|
143
|
+
R.module = e, R.id = a, R.tab = t, sessionStorage.setItem("f", L.enCode(R)), 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 gt() {
|
|
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
|
+
R.payment = e;
|
|
217
217
|
}
|
|
218
218
|
function cr() {
|
|
219
|
-
return
|
|
219
|
+
return R.payment;
|
|
220
220
|
}
|
|
221
221
|
function yn(e) {
|
|
222
222
|
localStorage.setItem("u", L.enCode(e));
|
|
@@ -252,23 +252,23 @@ function ur(e) {
|
|
|
252
252
|
let s = L.deCode(r);
|
|
253
253
|
if (!s)
|
|
254
254
|
return;
|
|
255
|
-
|
|
255
|
+
R[a] = { is: !0, time: s.time, data: s.data };
|
|
256
256
|
} catch {
|
|
257
|
-
|
|
257
|
+
R[a] = { is: !1, time: 0, data: {} };
|
|
258
258
|
}
|
|
259
259
|
else
|
|
260
|
-
|
|
260
|
+
R[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 R[e] === void 0 ? (R[e] = { data: {}, time: 0 }, { data: {}, time: 0 }) : R[e];
|
|
266
266
|
}
|
|
267
267
|
function mr(e, t) {
|
|
268
|
-
|
|
268
|
+
R[e] = { data: t.data, time: t.time }, localStorage.setItem(e, L.enCode(R[e]));
|
|
269
269
|
}
|
|
270
270
|
function hr(e, t, a) {
|
|
271
|
-
|
|
271
|
+
R[e].time = a, R[e].data[t.item][t.name] = t.value, localStorage.setItem(e, L.enCode(R[e]));
|
|
272
272
|
}
|
|
273
273
|
const se = {
|
|
274
274
|
setSSID: Fa,
|
|
@@ -283,7 +283,7 @@ const se = {
|
|
|
283
283
|
getMenu: ar,
|
|
284
284
|
useSort: rr,
|
|
285
285
|
setSort: Cn,
|
|
286
|
-
getSort:
|
|
286
|
+
getSort: gt,
|
|
287
287
|
setCompany: kn,
|
|
288
288
|
getCompany: jn,
|
|
289
289
|
setSelect: Oe,
|
|
@@ -324,10 +324,10 @@ function bn(e) {
|
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
326
|
const he = {};
|
|
327
|
-
function
|
|
327
|
+
function gr(e) {
|
|
328
328
|
return e && (he.s = e), he.s;
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function xr(e) {
|
|
331
331
|
return e && (he.a = e), he.a;
|
|
332
332
|
}
|
|
333
333
|
function vr(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:
|
|
339
|
+
const et = { version: { Api: xr, Server: gr, Client: vr }, Host: Cr };
|
|
340
340
|
let kr = "api", jr = "elcrm", yr = "online";
|
|
341
341
|
function wr() {
|
|
342
342
|
let e = se.getPORT(), t = "", a = "";
|
|
@@ -389,11 +389,11 @@ function Er(e, t = {}, a = se.getAUTH()) {
|
|
|
389
389
|
});
|
|
390
390
|
}
|
|
391
391
|
function Rr(e, t = {}, a) {
|
|
392
|
-
const [r, s] =
|
|
392
|
+
const [r, s] = g.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 g.useEffect(() => {
|
|
397
397
|
i(t);
|
|
398
398
|
}, []), [r, i];
|
|
399
399
|
}
|
|
@@ -443,7 +443,7 @@ const an = {
|
|
|
443
443
|
token: Ir,
|
|
444
444
|
formData: Sr
|
|
445
445
|
};
|
|
446
|
-
var
|
|
446
|
+
var xt = { exports: {} }, Te = {};
|
|
447
447
|
/**
|
|
448
448
|
* @license React
|
|
449
449
|
* react-jsx-runtime.production.min.js
|
|
@@ -458,16 +458,16 @@ function Mr() {
|
|
|
458
458
|
if (rn)
|
|
459
459
|
return Te;
|
|
460
460
|
rn = 1;
|
|
461
|
-
var e =
|
|
461
|
+
var e = g, 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
|
-
var u,
|
|
464
|
-
_ !== void 0 && (
|
|
463
|
+
var u, m = {}, f = null, h = null;
|
|
464
|
+
_ !== void 0 && (f = "" + _), d.key !== void 0 && (f = "" + d.key), d.ref !== void 0 && (h = d.ref);
|
|
465
465
|
for (u in d)
|
|
466
|
-
r.call(d, u) && !i.hasOwnProperty(u) && (
|
|
466
|
+
r.call(d, u) && !i.hasOwnProperty(u) && (m[u] = d[u]);
|
|
467
467
|
if (l && l.defaultProps)
|
|
468
468
|
for (u in d = l.defaultProps, d)
|
|
469
|
-
|
|
470
|
-
return { $$typeof: t, type: l, key:
|
|
469
|
+
m[u] === void 0 && (m[u] = d[u]);
|
|
470
|
+
return { $$typeof: t, type: l, key: f, ref: h, props: m, _owner: s.current };
|
|
471
471
|
}
|
|
472
472
|
return Te.Fragment = a, Te.jsx = o, Te.jsxs = o, Te;
|
|
473
473
|
}
|
|
@@ -484,15 +484,15 @@ 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 =
|
|
488
|
-
function
|
|
487
|
+
var e = g, 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, p = "@@iterator";
|
|
488
|
+
function x(c) {
|
|
489
489
|
if (c === null || typeof c != "object")
|
|
490
490
|
return null;
|
|
491
491
|
var v = C && c[C] || c[p];
|
|
492
492
|
return typeof v == "function" ? v : null;
|
|
493
493
|
}
|
|
494
494
|
var k = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
495
|
-
function
|
|
495
|
+
function b(c) {
|
|
496
496
|
{
|
|
497
497
|
for (var v = arguments.length, j = new Array(v > 1 ? v - 1 : 0), I = 1; I < v; I++)
|
|
498
498
|
j[I - 1] = arguments[I];
|
|
@@ -509,10 +509,10 @@ function Lr() {
|
|
|
509
509
|
P.unshift("Warning: " + v), Function.prototype.apply.call(console[c], console, P);
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
|
-
var T = !1, y = !1,
|
|
512
|
+
var T = !1, y = !1, E = !1, S = !1, D = !1, A;
|
|
513
513
|
A = Symbol.for("react.module.reference");
|
|
514
514
|
function H(c) {
|
|
515
|
-
return !!(typeof c == "string" || typeof c == "function" || c === r || c === i || D || c === s || c === _ || c === u ||
|
|
515
|
+
return !!(typeof c == "string" || typeof c == "function" || c === r || c === i || D || c === s || c === _ || c === u || S || c === h || T || y || 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.
|
|
@@ -531,7 +531,7 @@ function Lr() {
|
|
|
531
531
|
function B(c) {
|
|
532
532
|
if (c == null)
|
|
533
533
|
return null;
|
|
534
|
-
if (typeof c.tag == "number" &&
|
|
534
|
+
if (typeof c.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof c == "function")
|
|
535
535
|
return c.displayName || c.name || null;
|
|
536
536
|
if (typeof c == "string")
|
|
537
537
|
return c;
|
|
@@ -559,10 +559,10 @@ function Lr() {
|
|
|
559
559
|
return Z(j._context) + ".Provider";
|
|
560
560
|
case d:
|
|
561
561
|
return ne(c, c.render, "ForwardRef");
|
|
562
|
-
case
|
|
562
|
+
case m:
|
|
563
563
|
var I = c.displayName || null;
|
|
564
564
|
return I !== null ? I : B(c.type) || "Memo";
|
|
565
|
-
case
|
|
565
|
+
case f: {
|
|
566
566
|
var $ = c, P = $._payload, F = $._init;
|
|
567
567
|
try {
|
|
568
568
|
return B(F(P));
|
|
@@ -573,14 +573,14 @@ function Lr() {
|
|
|
573
573
|
}
|
|
574
574
|
return null;
|
|
575
575
|
}
|
|
576
|
-
var q = Object.assign, J = 0, ze, oe, De, at,
|
|
576
|
+
var q = Object.assign, J = 0, ze, oe, De, at, Ue, Pt, Ot;
|
|
577
577
|
function At() {
|
|
578
578
|
}
|
|
579
579
|
At.__reactDisabledLog = !0;
|
|
580
580
|
function Xn() {
|
|
581
581
|
{
|
|
582
582
|
if (J === 0) {
|
|
583
|
-
ze = console.log, oe = console.info, De = console.warn, at = console.error,
|
|
583
|
+
ze = console.log, oe = console.info, De = console.warn, at = console.error, Ue = console.group, Pt = console.groupCollapsed, Ot = console.groupEnd;
|
|
584
584
|
var c = {
|
|
585
585
|
configurable: !0,
|
|
586
586
|
enumerable: !0,
|
|
@@ -622,7 +622,7 @@ function Lr() {
|
|
|
622
622
|
value: at
|
|
623
623
|
}),
|
|
624
624
|
group: q({}, c, {
|
|
625
|
-
value:
|
|
625
|
+
value: Ue
|
|
626
626
|
}),
|
|
627
627
|
groupCollapsed: q({}, c, {
|
|
628
628
|
value: Pt
|
|
@@ -632,11 +632,11 @@ function Lr() {
|
|
|
632
632
|
})
|
|
633
633
|
});
|
|
634
634
|
}
|
|
635
|
-
J < 0 &&
|
|
635
|
+
J < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
636
636
|
}
|
|
637
637
|
}
|
|
638
638
|
var rt = k.ReactCurrentDispatcher, st;
|
|
639
|
-
function
|
|
639
|
+
function Ke(c, v, j) {
|
|
640
640
|
{
|
|
641
641
|
if (st === void 0)
|
|
642
642
|
try {
|
|
@@ -649,16 +649,16 @@ function Lr() {
|
|
|
649
649
|
` + st + c;
|
|
650
650
|
}
|
|
651
651
|
}
|
|
652
|
-
var it = !1,
|
|
652
|
+
var it = !1, We;
|
|
653
653
|
{
|
|
654
654
|
var ea = typeof WeakMap == "function" ? WeakMap : Map;
|
|
655
|
-
|
|
655
|
+
We = new ea();
|
|
656
656
|
}
|
|
657
657
|
function Gt(c, v) {
|
|
658
658
|
if (!c || it)
|
|
659
659
|
return "";
|
|
660
660
|
{
|
|
661
|
-
var j =
|
|
661
|
+
var j = We.get(c);
|
|
662
662
|
if (j !== void 0)
|
|
663
663
|
return j;
|
|
664
664
|
}
|
|
@@ -704,26 +704,26 @@ function Lr() {
|
|
|
704
704
|
if (Q && I && typeof Q.stack == "string") {
|
|
705
705
|
for (var M = Q.stack.split(`
|
|
706
706
|
`), X = I.stack.split(`
|
|
707
|
-
`), z = M.length - 1,
|
|
708
|
-
|
|
709
|
-
for (; z >= 1 &&
|
|
710
|
-
if (M[z] !== X[
|
|
711
|
-
if (z !== 1 ||
|
|
707
|
+
`), z = M.length - 1, W = X.length - 1; z >= 1 && W >= 0 && M[z] !== X[W]; )
|
|
708
|
+
W--;
|
|
709
|
+
for (; z >= 1 && W >= 0; z--, W--)
|
|
710
|
+
if (M[z] !== X[W]) {
|
|
711
|
+
if (z !== 1 || W !== 1)
|
|
712
712
|
do
|
|
713
|
-
if (z--,
|
|
713
|
+
if (z--, W--, W < 0 || M[z] !== X[W]) {
|
|
714
714
|
var ae = `
|
|
715
715
|
` + M[z].replace(" at new ", " at ");
|
|
716
|
-
return c.displayName && ae.includes("<anonymous>") && (ae = ae.replace("<anonymous>", c.displayName)), typeof c == "function" &&
|
|
716
|
+
return c.displayName && ae.includes("<anonymous>") && (ae = ae.replace("<anonymous>", c.displayName)), typeof c == "function" && We.set(c, ae), ae;
|
|
717
717
|
}
|
|
718
|
-
while (z >= 1 &&
|
|
718
|
+
while (z >= 1 && W >= 0);
|
|
719
719
|
break;
|
|
720
720
|
}
|
|
721
721
|
}
|
|
722
722
|
} finally {
|
|
723
723
|
it = !1, rt.current = P, Qn(), Error.prepareStackTrace = $;
|
|
724
724
|
}
|
|
725
|
-
var we = c ? c.displayName || c.name : "",
|
|
726
|
-
return typeof c == "function" &&
|
|
725
|
+
var we = c ? c.displayName || c.name : "", xe = we ? Ke(we) : "";
|
|
726
|
+
return typeof c == "function" && We.set(c, xe), xe;
|
|
727
727
|
}
|
|
728
728
|
function ta(c, v, j) {
|
|
729
729
|
return Gt(c, !1);
|
|
@@ -738,20 +738,20 @@ function Lr() {
|
|
|
738
738
|
if (typeof c == "function")
|
|
739
739
|
return Gt(c, na(c));
|
|
740
740
|
if (typeof c == "string")
|
|
741
|
-
return
|
|
741
|
+
return Ke(c);
|
|
742
742
|
switch (c) {
|
|
743
743
|
case _:
|
|
744
|
-
return
|
|
744
|
+
return Ke("Suspense");
|
|
745
745
|
case u:
|
|
746
|
-
return
|
|
746
|
+
return Ke("SuspenseList");
|
|
747
747
|
}
|
|
748
748
|
if (typeof c == "object")
|
|
749
749
|
switch (c.$$typeof) {
|
|
750
750
|
case d:
|
|
751
751
|
return ta(c.render);
|
|
752
|
-
case
|
|
752
|
+
case m:
|
|
753
753
|
return He(c.type, v, j);
|
|
754
|
-
case
|
|
754
|
+
case f: {
|
|
755
755
|
var I = c, $ = I._payload, P = I._init;
|
|
756
756
|
try {
|
|
757
757
|
return He(P($), v, j);
|
|
@@ -784,7 +784,7 @@ function Lr() {
|
|
|
784
784
|
} catch (z) {
|
|
785
785
|
M = z;
|
|
786
786
|
}
|
|
787
|
-
M && !(M instanceof Error) && (Ye($),
|
|
787
|
+
M && !(M instanceof Error) && (Ye($), b("%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), Ye(null)), M instanceof Error && !(M.message in Zt) && (Zt[M.message] = !0, Ye($), b("Failed %s type: %s", j, M.message), Ye(null));
|
|
788
788
|
}
|
|
789
789
|
}
|
|
790
790
|
}
|
|
@@ -800,24 +800,24 @@ function Lr() {
|
|
|
800
800
|
}
|
|
801
801
|
function ia(c) {
|
|
802
802
|
try {
|
|
803
|
-
return
|
|
803
|
+
return Ut(c), !1;
|
|
804
804
|
} catch {
|
|
805
805
|
return !0;
|
|
806
806
|
}
|
|
807
807
|
}
|
|
808
|
-
function
|
|
808
|
+
function Ut(c) {
|
|
809
809
|
return "" + c;
|
|
810
810
|
}
|
|
811
|
-
function
|
|
811
|
+
function Kt(c) {
|
|
812
812
|
if (ia(c))
|
|
813
|
-
return
|
|
813
|
+
return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", sa(c)), Ut(c);
|
|
814
814
|
}
|
|
815
815
|
var Ie = k.ReactCurrentOwner, oa = {
|
|
816
816
|
key: !0,
|
|
817
817
|
ref: !0,
|
|
818
818
|
__self: !0,
|
|
819
819
|
__source: !0
|
|
820
|
-
},
|
|
820
|
+
}, Wt, Ht, lt;
|
|
821
821
|
lt = {};
|
|
822
822
|
function la(c) {
|
|
823
823
|
if (Ne.call(c, "ref")) {
|
|
@@ -838,13 +838,13 @@ function Lr() {
|
|
|
838
838
|
function da(c, v) {
|
|
839
839
|
if (typeof c.ref == "string" && Ie.current && v && Ie.current.stateNode !== v) {
|
|
840
840
|
var j = B(Ie.current.type);
|
|
841
|
-
lt[j] || (
|
|
841
|
+
lt[j] || (b('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, v) {
|
|
845
845
|
{
|
|
846
846
|
var j = function() {
|
|
847
|
-
|
|
847
|
+
Wt || (Wt = !0, b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", v));
|
|
848
848
|
};
|
|
849
849
|
j.isReactWarning = !0, Object.defineProperty(c, "key", {
|
|
850
850
|
get: j,
|
|
@@ -855,7 +855,7 @@ function Lr() {
|
|
|
855
855
|
function ua(c, v) {
|
|
856
856
|
{
|
|
857
857
|
var j = function() {
|
|
858
|
-
Ht || (Ht = !0,
|
|
858
|
+
Ht || (Ht = !0, b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", v));
|
|
859
859
|
};
|
|
860
860
|
j.isReactWarning = !0, Object.defineProperty(c, "ref", {
|
|
861
861
|
get: j,
|
|
@@ -895,7 +895,7 @@ function Lr() {
|
|
|
895
895
|
function ma(c, v, j, I, $) {
|
|
896
896
|
{
|
|
897
897
|
var P, F = {}, M = null, X = null;
|
|
898
|
-
j !== void 0 && (
|
|
898
|
+
j !== void 0 && (Kt(j), M = "" + j), ca(v) && (Kt(v.key), M = "" + v.key), la(v) && (X = v.ref, da(v, $));
|
|
899
899
|
for (P in v)
|
|
900
900
|
Ne.call(v, P) && !oa.hasOwnProperty(P) && (F[P] = v[P]);
|
|
901
901
|
if (c && c.defaultProps) {
|
|
@@ -904,8 +904,8 @@ function Lr() {
|
|
|
904
904
|
F[P] === void 0 && (F[P] = z[P]);
|
|
905
905
|
}
|
|
906
906
|
if (M || X) {
|
|
907
|
-
var
|
|
908
|
-
M && _a(F,
|
|
907
|
+
var W = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
|
|
908
|
+
M && _a(F, W), X && ua(F, W);
|
|
909
909
|
}
|
|
910
910
|
return fa(c, M, X, $, I, Ie.current, F);
|
|
911
911
|
}
|
|
@@ -961,7 +961,7 @@ Check the top-level render call using <` + j + ">.");
|
|
|
961
961
|
return;
|
|
962
962
|
qt[j] = !0;
|
|
963
963
|
var I = "";
|
|
964
|
-
c && c._owner && c._owner !== ct.current && (I = " It was passed a child from " + B(c._owner.type) + "."), ye(c),
|
|
964
|
+
c && c._owner && c._owner !== ct.current && (I = " It was passed a child from " + B(c._owner.type) + "."), ye(c), b('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, v) {
|
|
@@ -976,14 +976,14 @@ Check the top-level render call using <` + j + ">.");
|
|
|
976
976
|
else if (_t(c))
|
|
977
977
|
c._store && (c._store.validated = !0);
|
|
978
978
|
else if (c) {
|
|
979
|
-
var $ =
|
|
979
|
+
var $ = x(c);
|
|
980
980
|
if (typeof $ == "function" && $ !== c.entries)
|
|
981
981
|
for (var P = $.call(c), F; !(F = P.next()).done; )
|
|
982
982
|
_t(F.value) && Jt(F.value, v);
|
|
983
983
|
}
|
|
984
984
|
}
|
|
985
985
|
}
|
|
986
|
-
function
|
|
986
|
+
function ga(c) {
|
|
987
987
|
{
|
|
988
988
|
var v = c.type;
|
|
989
989
|
if (v == null || typeof v == "string")
|
|
@@ -993,7 +993,7 @@ Check the top-level render call using <` + j + ">.");
|
|
|
993
993
|
j = v.propTypes;
|
|
994
994
|
else if (typeof v == "object" && (v.$$typeof === d || // Note: Memo only checks outer props here.
|
|
995
995
|
// Inner props are checked in the reconciler.
|
|
996
|
-
v.$$typeof ===
|
|
996
|
+
v.$$typeof === m))
|
|
997
997
|
j = v.propTypes;
|
|
998
998
|
else
|
|
999
999
|
return;
|
|
@@ -1003,21 +1003,21 @@ Check the top-level render call using <` + j + ">.");
|
|
|
1003
1003
|
} else if (v.PropTypes !== void 0 && !dt) {
|
|
1004
1004
|
dt = !0;
|
|
1005
1005
|
var $ = B(v);
|
|
1006
|
-
|
|
1006
|
+
b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", $ || "Unknown");
|
|
1007
1007
|
}
|
|
1008
|
-
typeof v.getDefaultProps == "function" && !v.getDefaultProps.isReactClassApproved &&
|
|
1008
|
+
typeof v.getDefaultProps == "function" && !v.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
1009
1009
|
}
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1011
|
+
function xa(c) {
|
|
1012
1012
|
{
|
|
1013
1013
|
for (var v = Object.keys(c.props), j = 0; j < v.length; j++) {
|
|
1014
1014
|
var I = v[j];
|
|
1015
1015
|
if (I !== "children" && I !== "key") {
|
|
1016
|
-
ye(c),
|
|
1016
|
+
ye(c), b("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
|
}
|
|
1020
|
-
c.ref !== null && (ye(c),
|
|
1020
|
+
c.ref !== null && (ye(c), b("Invalid attribute `ref` supplied to `React.Fragment`."), ye(null));
|
|
1021
1021
|
}
|
|
1022
1022
|
}
|
|
1023
1023
|
var Qt = {};
|
|
@@ -1030,11 +1030,11 @@ Check the top-level render call using <` + j + ">.");
|
|
|
1030
1030
|
var X = ha();
|
|
1031
1031
|
X ? M += X : M += Vt();
|
|
1032
1032
|
var z;
|
|
1033
|
-
c === null ? z = "null" : ot(c) ? z = "array" : c !== void 0 && c.$$typeof === t ? (z = "<" + (B(c.type) || "Unknown") + " />", M = " Did you accidentally export a JSX literal instead of a component?") : z = typeof c,
|
|
1033
|
+
c === null ? z = "null" : ot(c) ? z = "array" : c !== void 0 && c.$$typeof === t ? (z = "<" + (B(c.type) || "Unknown") + " />", M = " Did you accidentally export a JSX literal instead of a component?") : z = typeof c, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", z, M);
|
|
1034
1034
|
}
|
|
1035
|
-
var
|
|
1036
|
-
if (
|
|
1037
|
-
return
|
|
1035
|
+
var W = ma(c, v, j, $, P);
|
|
1036
|
+
if (W == null)
|
|
1037
|
+
return W;
|
|
1038
1038
|
if (F) {
|
|
1039
1039
|
var ae = v.children;
|
|
1040
1040
|
if (ae !== void 0)
|
|
@@ -1044,25 +1044,25 @@ Check the top-level render call using <` + j + ">.");
|
|
|
1044
1044
|
Xt(ae[we], c);
|
|
1045
1045
|
Object.freeze && Object.freeze(ae);
|
|
1046
1046
|
} else
|
|
1047
|
-
|
|
1047
|
+
b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
1048
1048
|
else
|
|
1049
1049
|
Xt(ae, c);
|
|
1050
1050
|
}
|
|
1051
1051
|
if (Ne.call(v, "key")) {
|
|
1052
|
-
var
|
|
1052
|
+
var xe = B(c), Q = Object.keys(v).filter(function(wa) {
|
|
1053
1053
|
return wa !== "key";
|
|
1054
1054
|
}), ut = Q.length > 0 ? "{key: someKey, " + Q.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1055
|
-
if (!Qt[
|
|
1055
|
+
if (!Qt[xe + ut]) {
|
|
1056
1056
|
var ya = Q.length > 0 ? "{" + Q.join(": ..., ") + ": ...}" : "{}";
|
|
1057
|
-
|
|
1057
|
+
b(`A props object containing a "key" prop is being spread into JSX:
|
|
1058
1058
|
let props = %s;
|
|
1059
1059
|
<%s {...props} />
|
|
1060
1060
|
React keys must be passed directly to JSX without using spread:
|
|
1061
1061
|
let props = %s;
|
|
1062
|
-
<%s key={someKey} {...props} />`, ut,
|
|
1062
|
+
<%s key={someKey} {...props} />`, ut, xe, ya, xe), Qt[xe + ut] = !0;
|
|
1063
1063
|
}
|
|
1064
1064
|
}
|
|
1065
|
-
return c === r ?
|
|
1065
|
+
return c === r ? xa(W) : ga(W), W;
|
|
1066
1066
|
}
|
|
1067
1067
|
}
|
|
1068
1068
|
function va(c, v, j) {
|
|
@@ -1075,8 +1075,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1075
1075
|
Me.Fragment = r, Me.jsx = ka, Me.jsxs = ja;
|
|
1076
1076
|
}()), Me;
|
|
1077
1077
|
}
|
|
1078
|
-
process.env.NODE_ENV === "production" ?
|
|
1079
|
-
var n =
|
|
1078
|
+
process.env.NODE_ENV === "production" ? xt.exports = Mr() : xt.exports = Lr();
|
|
1079
|
+
var n = xt.exports;
|
|
1080
1080
|
const Fr = "_notice_9i5tr_2", Br = "_error_9i5tr_9", $r = "_success_9i5tr_12", Pr = "_remark_9i5tr_15", Or = "_copy_9i5tr_18", Ar = {
|
|
1081
1081
|
notice: Fr,
|
|
1082
1082
|
error: Br,
|
|
@@ -1088,7 +1088,7 @@ const Fr = "_notice_9i5tr_2", Br = "_error_9i5tr_9", $r = "_success_9i5tr_12", P
|
|
|
1088
1088
|
};
|
|
1089
1089
|
let pe = {};
|
|
1090
1090
|
function Gr() {
|
|
1091
|
-
let [e, t] =
|
|
1091
|
+
let [e, t] = g.useState([]);
|
|
1092
1092
|
return pe.set = (a) => {
|
|
1093
1093
|
t([...e, a]);
|
|
1094
1094
|
}, pe.del = (a) => {
|
|
@@ -1096,8 +1096,8 @@ function Gr() {
|
|
|
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] = g.useState("show");
|
|
1100
|
+
g.useEffect(() => {
|
|
1101
1101
|
setTimeout(function() {
|
|
1102
1102
|
a("hide");
|
|
1103
1103
|
}, 1800), setTimeout(function() {
|
|
@@ -1136,15 +1136,15 @@ function zr(e) {
|
|
|
1136
1136
|
let t = Date.now(), a = { key: t, text: e, type: "error" };
|
|
1137
1137
|
pe.set({ item: /* @__PURE__ */ n.jsx(Ge, { data: a }, t), key: t });
|
|
1138
1138
|
}
|
|
1139
|
-
function
|
|
1139
|
+
function Ur(e) {
|
|
1140
1140
|
let t = Date.now(), a = { key: t, text: e, type: "success" };
|
|
1141
1141
|
pe.set({ item: /* @__PURE__ */ n.jsx(Ge, { data: a }, t), key: t });
|
|
1142
1142
|
}
|
|
1143
|
-
function
|
|
1143
|
+
function Kr(e) {
|
|
1144
1144
|
let t = Date.now(), a = { key: t, text: e, type: "remark" };
|
|
1145
1145
|
pe.set({ item: /* @__PURE__ */ n.jsx(Ge, { data: a }, t), key: t });
|
|
1146
1146
|
}
|
|
1147
|
-
function
|
|
1147
|
+
function Wr(e) {
|
|
1148
1148
|
let t = Date.now(), a = { key: t, text: e, type: "copy" };
|
|
1149
1149
|
pe.set({ item: /* @__PURE__ */ n.jsx(Ge, { data: a }, t), key: t });
|
|
1150
1150
|
}
|
|
@@ -1192,7 +1192,7 @@ const Hr = "_alerts_1pds5_1", Yr = "_menuAnimation_1pds5_1", Vr = "_menuItemAnim
|
|
|
1192
1192
|
};
|
|
1193
1193
|
let Be = {};
|
|
1194
1194
|
function Xr() {
|
|
1195
|
-
let [e, t] =
|
|
1195
|
+
let [e, t] = g.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, cancel: a }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ n.jsxs("div", { className: vt.alerts, children: [
|
|
@@ -1225,24 +1225,24 @@ function es(e, t, a) {
|
|
|
1225
1225
|
/* @__PURE__ */ n.jsx(Qr, { data: e, callback: t, cancel: a })
|
|
1226
1226
|
);
|
|
1227
1227
|
}
|
|
1228
|
-
const $e = { Send: Zr, Error: zr, Remark:
|
|
1228
|
+
const $e = { Send: Zr, Error: zr, Remark: Kr, Success: Ur, Copy: Wr }, qe = {
|
|
1229
1229
|
Path: Qa,
|
|
1230
1230
|
setPage: Ga,
|
|
1231
1231
|
getPage: pn,
|
|
1232
1232
|
usePage: Aa,
|
|
1233
1233
|
isPage: Za,
|
|
1234
|
-
setModule:
|
|
1235
|
-
getModule:
|
|
1234
|
+
setModule: Ua,
|
|
1235
|
+
getModule: gn,
|
|
1236
1236
|
useModule: za,
|
|
1237
|
-
isModule:
|
|
1237
|
+
isModule: Ka,
|
|
1238
1238
|
setTabs: Ha,
|
|
1239
1239
|
getTabs: Qe,
|
|
1240
|
-
useTabs:
|
|
1240
|
+
useTabs: Wa,
|
|
1241
1241
|
isTabs: Ya,
|
|
1242
1242
|
useId: Va,
|
|
1243
1243
|
setId: Ja,
|
|
1244
1244
|
subId: qa,
|
|
1245
|
-
getId:
|
|
1245
|
+
getId: xn,
|
|
1246
1246
|
isId: Xa
|
|
1247
1247
|
};
|
|
1248
1248
|
function ts() {
|
|
@@ -1391,7 +1391,7 @@ function ds(e) {
|
|
|
1391
1391
|
Ze.fn = e;
|
|
1392
1392
|
}
|
|
1393
1393
|
function _s() {
|
|
1394
|
-
const [e, t] =
|
|
1394
|
+
const [e, t] = g.useReducer(is, {
|
|
1395
1395
|
open: !1,
|
|
1396
1396
|
active: !1,
|
|
1397
1397
|
news: [],
|
|
@@ -1404,7 +1404,7 @@ function _s() {
|
|
|
1404
1404
|
Le.push(r.data);
|
|
1405
1405
|
break;
|
|
1406
1406
|
}
|
|
1407
|
-
}),
|
|
1407
|
+
}), g.useEffect(() => {
|
|
1408
1408
|
(async () => {
|
|
1409
1409
|
let r = await _e.Send({
|
|
1410
1410
|
type: "module",
|
|
@@ -1543,8 +1543,8 @@ let le = {}, V = {}, Ve = [
|
|
|
1543
1543
|
"info",
|
|
1544
1544
|
"job"
|
|
1545
1545
|
];
|
|
1546
|
-
function
|
|
1547
|
-
const [e, t] =
|
|
1546
|
+
function gs() {
|
|
1547
|
+
const [e, t] = g.useState(!1), [a, r] = g.useState(!1);
|
|
1548
1548
|
function s(i) {
|
|
1549
1549
|
const o = new ms();
|
|
1550
1550
|
le.laodData = (l) => {
|
|
@@ -1642,7 +1642,7 @@ V.setting = (e) => {
|
|
|
1642
1642
|
};
|
|
1643
1643
|
V.app = () => {
|
|
1644
1644
|
};
|
|
1645
|
-
const
|
|
1645
|
+
const xs = (e, t) => {
|
|
1646
1646
|
le[e] = t;
|
|
1647
1647
|
}, vs = (e, t) => {
|
|
1648
1648
|
le[e](t);
|
|
@@ -1655,7 +1655,7 @@ function Cs(e) {
|
|
|
1655
1655
|
}, e = { ...e, listen: t }, e.type = "modules", le.send(e);
|
|
1656
1656
|
});
|
|
1657
1657
|
}
|
|
1658
|
-
const _e = { useConnect:
|
|
1658
|
+
const _e = { useConnect: gs, useListener: xs, setListener: vs, Send: Cs };
|
|
1659
1659
|
function ks(e, t) {
|
|
1660
1660
|
t === void 0 ? (t = e, e = /* @__PURE__ */ new Date()) : e = new Date(e);
|
|
1661
1661
|
let a = {
|
|
@@ -1695,10 +1695,10 @@ function js(e) {
|
|
|
1695
1695
|
}
|
|
1696
1696
|
const ys = (e) => {
|
|
1697
1697
|
function t(N, T) {
|
|
1698
|
-
var y,
|
|
1698
|
+
var y, S, E;
|
|
1699
1699
|
N = N ?? "", T = T ?? 1;
|
|
1700
|
-
for (var y = [],
|
|
1701
|
-
y.push(N.slice(
|
|
1700
|
+
for (var y = [], E = 0, S = N.length; E < S; )
|
|
1701
|
+
y.push(N.slice(E, E += T));
|
|
1702
1702
|
return y;
|
|
1703
1703
|
}
|
|
1704
1704
|
function a(N, T) {
|
|
@@ -1767,7 +1767,7 @@ const ys = (e) => {
|
|
|
1767
1767
|
u3: ["тысяча", "тысячи", "тысяч"],
|
|
1768
1768
|
u2: ["миллион", "миллиона", "миллионов"],
|
|
1769
1769
|
u1: ["миллиард", "миллиарда", "миллиардов"]
|
|
1770
|
-
}, s, i, o, l,
|
|
1770
|
+
}, s, i, o, l, x, d, _, p, u, m, f, h;
|
|
1771
1771
|
u = parseFloat(e).toFixed(2).split("."), d = u[0], l = u[1];
|
|
1772
1772
|
var C = 12 - d.length;
|
|
1773
1773
|
if (C < 0)
|
|
@@ -1775,21 +1775,21 @@ const ys = (e) => {
|
|
|
1775
1775
|
for (var p = []; C--; )
|
|
1776
1776
|
p.push("0");
|
|
1777
1777
|
d = p.join("") + d;
|
|
1778
|
-
var
|
|
1778
|
+
var x = [];
|
|
1779
1779
|
if (d > 0) {
|
|
1780
|
-
|
|
1781
|
-
for (var k = -1; k <
|
|
1782
|
-
if (_ =
|
|
1780
|
+
m = t(d, 3);
|
|
1781
|
+
for (var k = -1; k < m.length; k++)
|
|
1782
|
+
if (_ = m[k], _ > 0 && (f = t(_, 1), s = parseInt(f[0]), i = parseInt(f[1]), o = parseInt(f[2]), x.push(r.a100[s - 1]), h = k + 1 == 3 ? "a2" : "a1", i > 1 ? x.push(
|
|
1783
1783
|
r.a20[i - 2] + (o > 0 ? " " + r[h][o - 1] : "")
|
|
1784
|
-
) :
|
|
1784
|
+
) : x.push(
|
|
1785
1785
|
i > 0 ? r.a10[o] : r[h][o - 1]
|
|
1786
|
-
),
|
|
1787
|
-
var
|
|
1788
|
-
|
|
1786
|
+
), m.length > k + 1)) {
|
|
1787
|
+
var b = r["u" + (k + 1)];
|
|
1788
|
+
x.push(a(_, b));
|
|
1789
1789
|
}
|
|
1790
1790
|
} else
|
|
1791
|
-
|
|
1792
|
-
return
|
|
1791
|
+
x.push(r.null);
|
|
1792
|
+
return x.push(a(d, r.ur)), x.push(l + " " + a(l, r.uc)), x.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
|
|
1793
1793
|
};
|
|
1794
1794
|
function ws(e) {
|
|
1795
1795
|
let t = -1, a = [" kB", " MB", " GB", " TB", "PB", "EB", "ZB", "YB"];
|
|
@@ -1926,8 +1926,8 @@ function Ss(e, t, a, r) {
|
|
|
1926
1926
|
if (_ === this.gcaseNom)
|
|
1927
1927
|
return o;
|
|
1928
1928
|
if (o.match(/[-]/)) {
|
|
1929
|
-
for (var u = o.split("-"),
|
|
1930
|
-
u[
|
|
1929
|
+
for (var u = o.split("-"), m = 0, f = u.length; m < f; m++)
|
|
1930
|
+
u[m] = this.word(u[m], l, d, _);
|
|
1931
1931
|
return u.join("-");
|
|
1932
1932
|
}
|
|
1933
1933
|
if (o.match(/^[А-ЯЁ]\.?$/i))
|
|
@@ -1939,21 +1939,21 @@ function Ss(e, t, a, r) {
|
|
|
1939
1939
|
},
|
|
1940
1940
|
// выбираем из списка правил первое подходящее и применяем
|
|
1941
1941
|
pick: function(o, l, d, _, u) {
|
|
1942
|
-
let
|
|
1943
|
-
for (var
|
|
1944
|
-
if (this.ruleMatch(
|
|
1945
|
-
return this.applyMod(o, d, _[
|
|
1942
|
+
let m = o.toLowerCase();
|
|
1943
|
+
for (var f = 0, h = _.length; f < h; f++)
|
|
1944
|
+
if (this.ruleMatch(m, l, _[f], u))
|
|
1945
|
+
return this.applyMod(o, d, _[f]);
|
|
1946
1946
|
return !1;
|
|
1947
1947
|
},
|
|
1948
1948
|
// проверяем, подходит ли правило к слову
|
|
1949
1949
|
ruleMatch: function(o, l, d, _) {
|
|
1950
1950
|
if (d.sex === this.sexM && l === this.sexF || d.sex === this.sexF && l !== this.sexF)
|
|
1951
1951
|
return !1;
|
|
1952
|
-
for (var u = 0,
|
|
1953
|
-
var
|
|
1952
|
+
for (var u = 0, m = d.test.length; u < m; u++) {
|
|
1953
|
+
var f = _ ? o : o.substr(
|
|
1954
1954
|
Math.max(o.length - d.test[u].length, 0)
|
|
1955
1955
|
);
|
|
1956
|
-
if (
|
|
1956
|
+
if (f === d.test[u])
|
|
1957
1957
|
return !0;
|
|
1958
1958
|
}
|
|
1959
1959
|
return !1;
|
|
@@ -1981,16 +1981,16 @@ function Ss(e, t, a, r) {
|
|
|
1981
1981
|
_ = d.mods[4];
|
|
1982
1982
|
break;
|
|
1983
1983
|
}
|
|
1984
|
-
for (var u = 0,
|
|
1985
|
-
var
|
|
1986
|
-
switch (
|
|
1984
|
+
for (var u = 0, m = _.length; u < m; u++) {
|
|
1985
|
+
var f = _.substr(u, 1);
|
|
1986
|
+
switch (f) {
|
|
1987
1987
|
case ".":
|
|
1988
1988
|
break;
|
|
1989
1989
|
case "-":
|
|
1990
1990
|
o = o.substr(0, o.length - 1);
|
|
1991
1991
|
break;
|
|
1992
1992
|
default:
|
|
1993
|
-
o +=
|
|
1993
|
+
o += f;
|
|
1994
1994
|
}
|
|
1995
1995
|
}
|
|
1996
1996
|
return o;
|
|
@@ -2078,7 +2078,7 @@ function Fs(e, t) {
|
|
|
2078
2078
|
function Bs(e) {
|
|
2079
2079
|
return parseInt((Date.now() - new Date(e).getTime()) / 31536e6 + "") + "";
|
|
2080
2080
|
}
|
|
2081
|
-
const
|
|
2081
|
+
const K = {
|
|
2082
2082
|
Age: Bs,
|
|
2083
2083
|
Date: ks,
|
|
2084
2084
|
MoneyString: ys,
|
|
@@ -2099,16 +2099,16 @@ const W = {
|
|
|
2099
2099
|
function $s({ children: e }) {
|
|
2100
2100
|
return /* @__PURE__ */ n.jsx("div", { className: "l", children: /* @__PURE__ */ n.jsx("ul", { children: e }) });
|
|
2101
2101
|
}
|
|
2102
|
-
const Ps = "_white_11p39_14", Os = "_black_11p39_26", As = "_shake_11p39_1", Gs = "_modal_11p39_73", Zs = "_o_11p39_83", zs = "_w_11p39_14",
|
|
2102
|
+
const Ps = "_white_11p39_14", Os = "_black_11p39_26", As = "_shake_11p39_1", Gs = "_modal_11p39_73", Zs = "_o_11p39_83", zs = "_w_11p39_14", Us = "_h_11p39_107", Ks = "_l_11p39_121", Ws = "_t_11p39_159", Hs = "_m_11p39_73", Ys = "_x_11p39_167", Vs = "_s_11p39_177", qs = "_c_11p39_182", Js = "_f_11p39_187", Xs = "_btn_11p39_230", Qs = "_g_11p39_243", ei = "_confirm_11p39_322", ti = "_cancel_11p39_327", ni = "_disabled_11p39_332", ai = "_active_11p39_389", ri = "_coincidence_11p39_395", si = "_sa_11p39_431", ii = "_ss_11p39_435", oi = "_sm_11p39_439", li = "_sl_11p39_443", ci = "_sx_11p39_447", di = "_sf_11p39_451", re = {
|
|
2103
2103
|
white: Ps,
|
|
2104
2104
|
black: Os,
|
|
2105
2105
|
shake: As,
|
|
2106
2106
|
modal: Gs,
|
|
2107
2107
|
o: Zs,
|
|
2108
2108
|
w: zs,
|
|
2109
|
-
h:
|
|
2110
|
-
l:
|
|
2111
|
-
t:
|
|
2109
|
+
h: Us,
|
|
2110
|
+
l: Ks,
|
|
2111
|
+
t: Ws,
|
|
2112
2112
|
m: Hs,
|
|
2113
2113
|
x: Ys,
|
|
2114
2114
|
s: Vs,
|
|
@@ -2157,7 +2157,7 @@ const mi = "_btn_1hz2s_6", hi = "_confirm_1hz2s_19", on = {
|
|
|
2157
2157
|
confirm: hi
|
|
2158
2158
|
};
|
|
2159
2159
|
function pi({ onClick: e, onSend: t, label: a, onRef: r }) {
|
|
2160
|
-
let [s, i] =
|
|
2160
|
+
let [s, i] = g.useState(!1);
|
|
2161
2161
|
const o = (l) => {
|
|
2162
2162
|
if (e)
|
|
2163
2163
|
return e();
|
|
@@ -2174,15 +2174,15 @@ function pi({ onClick: e, onSend: t, label: a, onRef: r }) {
|
|
|
2174
2174
|
);
|
|
2175
2175
|
}
|
|
2176
2176
|
let ke = {};
|
|
2177
|
-
function
|
|
2178
|
-
let [t, a] =
|
|
2177
|
+
function gi({ config: e }) {
|
|
2178
|
+
let [t, a] = g.useState([]);
|
|
2179
2179
|
return ke.x = (r) => {
|
|
2180
2180
|
r || a([]);
|
|
2181
2181
|
}, ke.config = e, ke.add = (r) => {
|
|
2182
2182
|
a([...t, r]);
|
|
2183
2183
|
}, /* @__PURE__ */ n.jsx(n.Fragment, { children: t.map((r) => r) });
|
|
2184
2184
|
}
|
|
2185
|
-
function
|
|
2185
|
+
function xi({
|
|
2186
2186
|
title: e,
|
|
2187
2187
|
children: t,
|
|
2188
2188
|
button: a,
|
|
@@ -2190,14 +2190,14 @@ function gi({
|
|
|
2190
2190
|
size: s = "m",
|
|
2191
2191
|
menu: i
|
|
2192
2192
|
}) {
|
|
2193
|
-
const [o, l] =
|
|
2193
|
+
const [o, l] = g.useState(!0), d = g.useRef(), _ = (m) => {
|
|
2194
2194
|
if (a) {
|
|
2195
2195
|
if (a.onClick)
|
|
2196
|
-
return
|
|
2196
|
+
return m(!1), a.onClick({ setOpen: l });
|
|
2197
2197
|
if (a.onSend)
|
|
2198
2198
|
return a.onSend({
|
|
2199
2199
|
setOpen: l,
|
|
2200
|
-
disabled:
|
|
2200
|
+
disabled: m
|
|
2201
2201
|
});
|
|
2202
2202
|
}
|
|
2203
2203
|
}, u = () => {
|
|
@@ -2220,14 +2220,14 @@ function gi({
|
|
|
2220
2220
|
/* @__PURE__ */ n.jsxs("div", { className: re.h, children: [
|
|
2221
2221
|
/* @__PURE__ */ n.jsx("div", { className: re.t, children: e }),
|
|
2222
2222
|
/* @__PURE__ */ n.jsxs("div", { className: re.m, children: [
|
|
2223
|
-
r && /* @__PURE__ */ n.jsx("nav", { children: r.map((
|
|
2223
|
+
r && /* @__PURE__ */ n.jsx("nav", { children: r.map((m, f) => /* @__PURE__ */ n.jsx(
|
|
2224
2224
|
"span",
|
|
2225
2225
|
{
|
|
2226
|
-
onClick:
|
|
2227
|
-
className:
|
|
2228
|
-
children:
|
|
2226
|
+
onClick: m.onClick,
|
|
2227
|
+
className: m.active ? "active" : "",
|
|
2228
|
+
children: m.name
|
|
2229
2229
|
},
|
|
2230
|
-
|
|
2230
|
+
f
|
|
2231
2231
|
)) }),
|
|
2232
2232
|
i
|
|
2233
2233
|
] }),
|
|
@@ -2275,8 +2275,8 @@ function ki(e) {
|
|
|
2275
2275
|
}, 1e3);
|
|
2276
2276
|
}
|
|
2277
2277
|
function ji({ type: e, name: t, params: a }) {
|
|
2278
|
-
let [r, s] =
|
|
2279
|
-
return
|
|
2278
|
+
let [r, s] = g.useState(null);
|
|
2279
|
+
return g.useEffect(() => {
|
|
2280
2280
|
ke.config(e, t, a, s);
|
|
2281
2281
|
}, [a.id]), /* @__PURE__ */ n.jsx(n.Fragment, { children: r });
|
|
2282
2282
|
}
|
|
@@ -2289,7 +2289,7 @@ function wi(e) {
|
|
|
2289
2289
|
const tt = {
|
|
2290
2290
|
List: $s,
|
|
2291
2291
|
Scroll: _i,
|
|
2292
|
-
Main:
|
|
2292
|
+
Main: xi,
|
|
2293
2293
|
Add: vi,
|
|
2294
2294
|
Icon: ji,
|
|
2295
2295
|
Open: yi,
|
|
@@ -2299,7 +2299,7 @@ const tt = {
|
|
|
2299
2299
|
Close: wi
|
|
2300
2300
|
};
|
|
2301
2301
|
function En({ text: e, type: t, button: a }) {
|
|
2302
|
-
let [r, s] =
|
|
2302
|
+
let [r, s] = g.useState(!1), i = { active: t };
|
|
2303
2303
|
const o = () => {
|
|
2304
2304
|
if (a) {
|
|
2305
2305
|
if (a.onClick)
|
|
@@ -2377,7 +2377,7 @@ const Ai = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
|
|
|
2377
2377
|
H: ln,
|
|
2378
2378
|
M: zi,
|
|
2379
2379
|
F: _n
|
|
2380
|
-
},
|
|
2380
|
+
}, Ui = (e, t) => {
|
|
2381
2381
|
switch (t.type) {
|
|
2382
2382
|
case "load":
|
|
2383
2383
|
return {
|
|
@@ -2438,15 +2438,15 @@ const Ai = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
|
|
|
2438
2438
|
default:
|
|
2439
2439
|
return e;
|
|
2440
2440
|
}
|
|
2441
|
-
},
|
|
2441
|
+
}, Ki = () => ({
|
|
2442
2442
|
load: !0,
|
|
2443
2443
|
list: [],
|
|
2444
2444
|
name: "Файлы",
|
|
2445
2445
|
add: !1,
|
|
2446
2446
|
search: !1,
|
|
2447
2447
|
revers: !0
|
|
2448
|
-
}),
|
|
2449
|
-
let [e, t] =
|
|
2448
|
+
}), Wi = () => {
|
|
2449
|
+
let [e, t] = g.useState([]);
|
|
2450
2450
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ n.jsxs("div", { className: "upload view", children: [
|
|
2451
2451
|
/* @__PURE__ */ n.jsxs("div", { className: "--head", children: [
|
|
2452
2452
|
/* @__PURE__ */ n.jsx("b", { children: "Загрузки" }),
|
|
@@ -2468,7 +2468,7 @@ const Ai = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
|
|
|
2468
2468
|
dir: r
|
|
2469
2469
|
}) => {
|
|
2470
2470
|
t = t || "Файлы";
|
|
2471
|
-
const [s, i] =
|
|
2471
|
+
const [s, i] = g.useReducer(Ui, {}, Ki), o = () => {
|
|
2472
2472
|
tt.Add(
|
|
2473
2473
|
/* @__PURE__ */ n.jsx(
|
|
2474
2474
|
Yi,
|
|
@@ -2481,7 +2481,7 @@ const Ai = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
|
|
|
2481
2481
|
)
|
|
2482
2482
|
);
|
|
2483
2483
|
};
|
|
2484
|
-
return
|
|
2484
|
+
return g.useEffect(() => {
|
|
2485
2485
|
(async () => {
|
|
2486
2486
|
let l = await _e.Send({
|
|
2487
2487
|
type: "module",
|
|
@@ -2523,12 +2523,12 @@ const Ai = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
|
|
|
2523
2523
|
] }) : s.list.length === 0 ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : s.list.map((l, d) => /* @__PURE__ */ n.jsx(Vi, { dispatch: i, data: l }, d)) })
|
|
2524
2524
|
] });
|
|
2525
2525
|
}, Yi = ({ id: e, dir: t, dispatch: a }) => {
|
|
2526
|
-
let [r, s] =
|
|
2526
|
+
let [r, s] = g.useState(!0), i = g.useRef(null), o = (_) => {
|
|
2527
2527
|
_.preventDefault(), _.stopPropagation();
|
|
2528
2528
|
}, l = (_) => {
|
|
2529
2529
|
}, d = (_) => {
|
|
2530
2530
|
};
|
|
2531
|
-
return
|
|
2531
|
+
return g.useEffect(() => {
|
|
2532
2532
|
let _ = i.current;
|
|
2533
2533
|
["dragenter", "dragover", "dragleave", "drop"].forEach((u) => {
|
|
2534
2534
|
_.addEventListener(u, o, !1), document.body.addEventListener(u, o, !1);
|
|
@@ -2594,8 +2594,8 @@ const Ai = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
|
|
|
2594
2594
|
})).json()).status === "success" && (t({ type: "delete", id: e.id }), $e.Send({ type: "success", text: "Файл успешно удалён" }));
|
|
2595
2595
|
};
|
|
2596
2596
|
return /* @__PURE__ */ n.jsxs("li", { children: [
|
|
2597
|
-
/* @__PURE__ */ n.jsx("div", { className: "f035", children:
|
|
2598
|
-
/* @__PURE__ */ n.jsx("div", { className: "f100", children:
|
|
2597
|
+
/* @__PURE__ */ n.jsx("div", { className: "f035", children: K.TypeFiles(e.type) }),
|
|
2598
|
+
/* @__PURE__ */ n.jsx("div", { className: "f100", children: K.Date(e.uDate, "dd.mm.yy") }),
|
|
2599
2599
|
/* @__PURE__ */ n.jsx("div", { className: "f000", children: e.name }),
|
|
2600
2600
|
/* @__PURE__ */ n.jsxs("div", { className: "f050 flex button", children: [
|
|
2601
2601
|
/* @__PURE__ */ n.jsx(
|
|
@@ -2617,7 +2617,7 @@ const Ai = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
|
|
|
2617
2617
|
}
|
|
2618
2618
|
)
|
|
2619
2619
|
] }),
|
|
2620
|
-
/* @__PURE__ */ n.jsx("div", { className: "f080", children:
|
|
2620
|
+
/* @__PURE__ */ n.jsx("div", { className: "f080", children: K.Size(e.size) })
|
|
2621
2621
|
] });
|
|
2622
2622
|
}, Dt = { setSetting: tr, getSetting: nr };
|
|
2623
2623
|
let G = {};
|
|
@@ -2625,8 +2625,8 @@ G.list = _r();
|
|
|
2625
2625
|
G.active = null;
|
|
2626
2626
|
const qi = () => {
|
|
2627
2627
|
var s;
|
|
2628
|
-
let [e, t] =
|
|
2629
|
-
return
|
|
2628
|
+
let [e, t] = g.useState([]), [a, r] = g.useState(Dt.getSetting("s03"));
|
|
2629
|
+
return g.useEffect(() => {
|
|
2630
2630
|
(async () => {
|
|
2631
2631
|
let i = Object.keys(G.list);
|
|
2632
2632
|
if (i.length !== 0) {
|
|
@@ -2662,10 +2662,10 @@ const qi = () => {
|
|
|
2662
2662
|
a === 1 && e.length !== 0 ? "bottom" : ""
|
|
2663
2663
|
), a !== 0 ? /* @__PURE__ */ n.jsx(n.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ n.jsx("div", { className: "bookmarks", children: e.map((i) => i.item) }) : "" }) : "";
|
|
2664
2664
|
}, Ji = ({ id: e, type: t, name: a }) => {
|
|
2665
|
-
let r = t + "-" + e, [s, i] =
|
|
2665
|
+
let r = t + "-" + e, [s, i] = g.useState(
|
|
2666
2666
|
G.list[r] !== void 0
|
|
2667
2667
|
);
|
|
2668
|
-
|
|
2668
|
+
g.useEffect(() => {
|
|
2669
2669
|
i(G.list[r] !== void 0);
|
|
2670
2670
|
}, [r]);
|
|
2671
2671
|
let o = () => {
|
|
@@ -2837,8 +2837,8 @@ O.Run = async (e) => {
|
|
|
2837
2837
|
};
|
|
2838
2838
|
let Fe = {};
|
|
2839
2839
|
function Qi() {
|
|
2840
|
-
let [e, t] =
|
|
2841
|
-
return
|
|
2840
|
+
let [e, t] = g.useState([]), a = g.useRef(null);
|
|
2841
|
+
return g.useEffect(() => {
|
|
2842
2842
|
}, []), Fe.set = (r) => {
|
|
2843
2843
|
t([...e, r]);
|
|
2844
2844
|
}, Fe.del = () => {
|
|
@@ -2858,8 +2858,8 @@ function eo(e, t) {
|
|
|
2858
2858
|
});
|
|
2859
2859
|
}
|
|
2860
2860
|
function to({ id: e, type: t }) {
|
|
2861
|
-
const [a, r] =
|
|
2862
|
-
|
|
2861
|
+
const [a, r] = g.useState({}), [s, i] = g.useState(t);
|
|
2862
|
+
g.useEffect(() => {
|
|
2863
2863
|
r(se.getSelect("user")[e]);
|
|
2864
2864
|
}, []), O.useListener((d) => {
|
|
2865
2865
|
switch (d.type) {
|
|
@@ -2965,7 +2965,7 @@ function ao({ color: e, size: t, name: a }) {
|
|
|
2965
2965
|
return /* @__PURE__ */ n.jsx("svg", { width: t, height: t, color: e, children: /* @__PURE__ */ n.jsx("use", { href: `#${a}` }) });
|
|
2966
2966
|
}
|
|
2967
2967
|
function ro() {
|
|
2968
|
-
let [e, t] =
|
|
2968
|
+
let [e, t] = g.useState([]);
|
|
2969
2969
|
if (jt.x = () => {
|
|
2970
2970
|
t([]);
|
|
2971
2971
|
}, jt.add = (r) => {
|
|
@@ -2994,8 +2994,8 @@ function io(e, t) {
|
|
|
2994
2994
|
}
|
|
2995
2995
|
const me = {};
|
|
2996
2996
|
function oo(e, t) {
|
|
2997
|
-
const [a, r] =
|
|
2998
|
-
return
|
|
2997
|
+
const [a, r] = g.useState(t);
|
|
2998
|
+
return g.useEffect(() => {
|
|
2999
2999
|
if (me[e])
|
|
3000
3000
|
return me[e].push(r);
|
|
3001
3001
|
me[e] = [r];
|
|
@@ -3011,17 +3011,17 @@ function co(e, t) {
|
|
|
3011
3011
|
}
|
|
3012
3012
|
const Ee = { setListener: io, useListener: so, setEmitter: co, useEmitter: oo, subEmitter: lo };
|
|
3013
3013
|
function _o() {
|
|
3014
|
-
let [e, t] =
|
|
3014
|
+
let [e, t] = g.useState([]);
|
|
3015
3015
|
return Ee.useListener("form", (a) => {
|
|
3016
3016
|
t([a]);
|
|
3017
3017
|
}), /* @__PURE__ */ n.jsx(n.Fragment, { children: e.map((a) => a) });
|
|
3018
3018
|
}
|
|
3019
3019
|
const uo = ({ children: e, config: t }) => (L.New(t.crypto), t.defaultModule && Ia(t.defaultModule), Ma(
|
|
3020
3020
|
/* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
3021
|
-
/* @__PURE__ */ n.jsx(
|
|
3021
|
+
/* @__PURE__ */ n.jsx(gi, { config: t.modal }),
|
|
3022
3022
|
/* @__PURE__ */ n.jsx(Gr, {}),
|
|
3023
3023
|
/* @__PURE__ */ n.jsx(Xr, {}),
|
|
3024
|
-
/* @__PURE__ */ n.jsx(
|
|
3024
|
+
/* @__PURE__ */ n.jsx(Wi, {}),
|
|
3025
3025
|
/* @__PURE__ */ n.jsx(ro, {}),
|
|
3026
3026
|
/* @__PURE__ */ n.jsx(_o, {}),
|
|
3027
3027
|
/* @__PURE__ */ n.jsx(Qi, {}),
|
|
@@ -3034,20 +3034,20 @@ const uo = ({ children: e, config: t }) => (L.New(t.crypto), t.defaultModule &&
|
|
|
3034
3034
|
] }), ho = "_payment_1lxfv_1", po = {
|
|
3035
3035
|
payment: ho
|
|
3036
3036
|
};
|
|
3037
|
-
function
|
|
3038
|
-
let [e, t] =
|
|
3037
|
+
function go() {
|
|
3038
|
+
let [e, t] = g.useState({});
|
|
3039
3039
|
return !e.active && !e.payment ? "" : /* @__PURE__ */ n.jsx("div", { className: po.payment, children: "Истек срок оплаты! Доступ доступен до 16.04.2024" });
|
|
3040
3040
|
}
|
|
3041
|
-
const
|
|
3041
|
+
const ac = ({ children: e, ...t }) => {
|
|
3042
3042
|
let a = {};
|
|
3043
3043
|
return a.enCode = (r) => JSON.stringify(r).toString(), a.deCode = (r) => JSON.parse(r), /* @__PURE__ */ n.jsxs("div", { className: "app", children: [
|
|
3044
|
-
/* @__PURE__ */ n.jsx(
|
|
3044
|
+
/* @__PURE__ */ n.jsx(go, {}),
|
|
3045
3045
|
/* @__PURE__ */ n.jsx(fo, {}),
|
|
3046
3046
|
/* @__PURE__ */ n.jsx(mo, {}),
|
|
3047
3047
|
/* @__PURE__ */ n.jsx(uo, { config: { modal: {}, crypto: a } }),
|
|
3048
3048
|
e
|
|
3049
3049
|
] });
|
|
3050
|
-
},
|
|
3050
|
+
}, xo = ({ list: e, onClick: t, active: a, size: r, view: s }) => /* @__PURE__ */ n.jsx("nav", { children: /* @__PURE__ */ n.jsx("ul", { className: [r, s].join(" "), children: e.map((i) => /* @__PURE__ */ n.jsx(
|
|
3051
3051
|
vo,
|
|
3052
3052
|
{
|
|
3053
3053
|
onClick: t,
|
|
@@ -3057,7 +3057,7 @@ const nc = ({ children: e, ...t }) => {
|
|
|
3057
3057
|
},
|
|
3058
3058
|
i.link
|
|
3059
3059
|
)) }) }), vo = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
|
|
3060
|
-
|
|
3060
|
+
xo.defaultProps = { size: "M", view: "H" };
|
|
3061
3061
|
const Co = ({
|
|
3062
3062
|
title: e = "",
|
|
3063
3063
|
button: t,
|
|
@@ -3081,7 +3081,7 @@ const Co = ({
|
|
|
3081
3081
|
] }), ko = "_setting_dva4m_2", jo = {
|
|
3082
3082
|
setting: ko
|
|
3083
3083
|
}, yo = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: jo.setting, children: e }), wo = ({ label: e, children: t }) => {
|
|
3084
|
-
let [a, r] =
|
|
3084
|
+
let [a, r] = g.useState(!1);
|
|
3085
3085
|
return /* @__PURE__ */ n.jsxs("li", { "data-item": "accordion", children: [
|
|
3086
3086
|
/* @__PURE__ */ n.jsxs("dl", { onClick: () => r(!a), children: [
|
|
3087
3087
|
/* @__PURE__ */ n.jsx("dt", { children: e }),
|
|
@@ -3131,7 +3131,7 @@ function Rn({ list: e, onClick: t, active: a, size: r, view: s }) {
|
|
|
3131
3131
|
}
|
|
3132
3132
|
const Lo = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
|
|
3133
3133
|
Rn.defaultProps = { size: "M", view: "H" };
|
|
3134
|
-
const
|
|
3134
|
+
const rc = { Section: Co, Main: yo, Item: Mo, Tabs: Rn }, sc = { Icon: Ji, Item: Ct, Active: Xi }, ic = { Send: es, Line: En };
|
|
3135
3135
|
function Fo() {
|
|
3136
3136
|
return /* @__PURE__ */ n.jsx("svg", { viewBox: "0 0 462.86 359.96", children: /* @__PURE__ */ n.jsx(
|
|
3137
3137
|
"path",
|
|
@@ -3141,7 +3141,7 @@ function Fo() {
|
|
|
3141
3141
|
}
|
|
3142
3142
|
) });
|
|
3143
3143
|
}
|
|
3144
|
-
const
|
|
3144
|
+
const oc = { Logo: Fo, Sprite: no, Symbol: ao }, Bo = "_sort_1yrvt_1", $o = {
|
|
3145
3145
|
sort: Bo
|
|
3146
3146
|
};
|
|
3147
3147
|
let nt = {};
|
|
@@ -3159,9 +3159,9 @@ function Po(e, t) {
|
|
|
3159
3159
|
}
|
|
3160
3160
|
}
|
|
3161
3161
|
function Oo() {
|
|
3162
|
-
const [e, t] =
|
|
3162
|
+
const [e, t] = g.useReducer(
|
|
3163
3163
|
Po,
|
|
3164
|
-
|
|
3164
|
+
gt() === void 0 ? { active: 1, sort: "<" } : gt()
|
|
3165
3165
|
);
|
|
3166
3166
|
return /* @__PURE__ */ n.jsxs("div", { className: $o.sort, children: [
|
|
3167
3167
|
/* @__PURE__ */ n.jsx(
|
|
@@ -3218,26 +3218,26 @@ function Zo(e, t, a) {
|
|
|
3218
3218
|
function zo(e) {
|
|
3219
3219
|
nt.count(e);
|
|
3220
3220
|
}
|
|
3221
|
-
const
|
|
3222
|
-
function
|
|
3223
|
-
const [t, a] =
|
|
3221
|
+
const lc = { Init: Oo, useValue: Ao, Set: Go, Run: Zo, Count: zo }, Je = {}, Dn = {};
|
|
3222
|
+
function Uo(e) {
|
|
3223
|
+
const [t, a] = g.useState({}), r = async (s) => {
|
|
3224
3224
|
a(
|
|
3225
3225
|
Object.keys(Je).reduce((i, o) => (i ? i[o] = Je[o].all : i = {}, i), {})
|
|
3226
3226
|
);
|
|
3227
3227
|
};
|
|
3228
|
-
return
|
|
3228
|
+
return g.useEffect(() => {
|
|
3229
3229
|
e.forEach((s) => Je[s] = { all: 0 }), Dn.menu = r, r();
|
|
3230
3230
|
}, [e]), t;
|
|
3231
3231
|
}
|
|
3232
|
-
function
|
|
3232
|
+
function Ko(e, t) {
|
|
3233
3233
|
switch (typeof t) {
|
|
3234
3234
|
case "number":
|
|
3235
3235
|
Je[e].all += t, Dn.menu();
|
|
3236
3236
|
break;
|
|
3237
3237
|
}
|
|
3238
3238
|
}
|
|
3239
|
-
const
|
|
3240
|
-
class
|
|
3239
|
+
const cc = { useMenu: Uo, setUpdate: Ko };
|
|
3240
|
+
class Wo {
|
|
3241
3241
|
constructor(t = "el", a = "db") {
|
|
3242
3242
|
ft(this, "storeName");
|
|
3243
3243
|
ft(this, "_dbp");
|
|
@@ -3257,21 +3257,21 @@ class Uo {
|
|
|
3257
3257
|
);
|
|
3258
3258
|
}
|
|
3259
3259
|
}
|
|
3260
|
-
let mt,
|
|
3261
|
-
const Re = () => (mt || (mt = new
|
|
3262
|
-
|
|
3263
|
-
}), de = (e, t = Re()) =>
|
|
3260
|
+
let mt, U = {};
|
|
3261
|
+
const Re = () => (mt || (mt = new Wo()), mt), ge = (e, t, a = Re()) => a._withIDBStore("readwrite", (r) => {
|
|
3262
|
+
U[e] = t, r.put(L.enCode(t), e);
|
|
3263
|
+
}), de = (e, t = Re()) => U[e] === void 0 ? new Promise((a, r) => {
|
|
3264
3264
|
let s;
|
|
3265
3265
|
t._withIDBStore("readonly", (i) => {
|
|
3266
3266
|
s = i.get(e);
|
|
3267
3267
|
}).then(() => {
|
|
3268
3268
|
if (s.result !== void 0) {
|
|
3269
3269
|
let i = L.deCode(s.result);
|
|
3270
|
-
|
|
3270
|
+
U[e] = i, a(i);
|
|
3271
3271
|
} else
|
|
3272
3272
|
a({});
|
|
3273
3273
|
});
|
|
3274
|
-
}) :
|
|
3274
|
+
}) : U[e], Ho = (e, t = Re()) => t._withIDBStore("readwrite", (a) => {
|
|
3275
3275
|
a.delete(e);
|
|
3276
3276
|
}), wt = (e = Re()) => e._withIDBStore("readwrite", (t) => {
|
|
3277
3277
|
t.clear();
|
|
@@ -3283,29 +3283,29 @@ const Re = () => (mt || (mt = new Uo()), mt), xe = (e, t, a = Re()) => a._withID
|
|
|
3283
3283
|
};
|
|
3284
3284
|
}).then(() => t);
|
|
3285
3285
|
}, Vo = (e, t, a = [], r = {}) => {
|
|
3286
|
-
let s = a.length !== 0, i = [], o = r.sort, l = Object.keys(r).length !== 0, d = Object.keys(r), _ = Object.keys(e), u = [],
|
|
3286
|
+
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) => {
|
|
3287
3287
|
let C = "";
|
|
3288
3288
|
if (a.forEach((p) => {
|
|
3289
3289
|
C += t[h][p];
|
|
3290
3290
|
}), l) {
|
|
3291
3291
|
let p = {};
|
|
3292
|
-
d.forEach((
|
|
3293
|
-
p[
|
|
3292
|
+
d.forEach((x) => {
|
|
3293
|
+
p[x] = t[h][x];
|
|
3294
3294
|
});
|
|
3295
|
-
for (let
|
|
3296
|
-
t[h][o[
|
|
3295
|
+
for (let x in o)
|
|
3296
|
+
t[h][o[x]] === void 0 && (wt(), location.reload()), x === "s1" && (p[x] = new Date(t[h][o[x]]).getTime()), x === "s2" && (p[x] = t[h][o[x]]), x === "s3" && (p[x] = t[h][o[x]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
|
|
3297
3297
|
i.push({ id: h, text: C, ...p });
|
|
3298
3298
|
} else
|
|
3299
3299
|
i.push({ id: h, text: C });
|
|
3300
|
-
},
|
|
3300
|
+
}, f = (h) => {
|
|
3301
3301
|
};
|
|
3302
3302
|
return _.forEach((h) => {
|
|
3303
3303
|
u.push(t[h]);
|
|
3304
3304
|
}), u.forEach((h) => {
|
|
3305
|
-
h === void 0 ? (wt(), location.reload()) : (s &&
|
|
3305
|
+
h === void 0 ? (wt(), location.reload()) : (s && m(h.id), l && f(h.id));
|
|
3306
3306
|
}), { list: u, search: i, filter: r };
|
|
3307
3307
|
}, qo = (e, t, a, r = Re()) => {
|
|
3308
|
-
if (
|
|
3308
|
+
if (U[e] === void 0)
|
|
3309
3309
|
return new Promise((s, i) => {
|
|
3310
3310
|
let o;
|
|
3311
3311
|
r._withIDBStore("readonly", (l) => {
|
|
@@ -3313,45 +3313,45 @@ const Re = () => (mt || (mt = new Uo()), mt), xe = (e, t, a = Re()) => a._withID
|
|
|
3313
3313
|
}).then(() => {
|
|
3314
3314
|
if (o.result !== void 0) {
|
|
3315
3315
|
let l = L.deCode(o.result);
|
|
3316
|
-
|
|
3317
|
-
...
|
|
3316
|
+
U[e] = l, U[e][t.id] = {
|
|
3317
|
+
...U[e][t.id],
|
|
3318
3318
|
...t.data
|
|
3319
|
-
}, r.put(L.enCode(
|
|
3319
|
+
}, r.put(L.enCode(U[e]), e), s({});
|
|
3320
3320
|
} else
|
|
3321
3321
|
s({});
|
|
3322
3322
|
});
|
|
3323
3323
|
});
|
|
3324
|
-
if (
|
|
3325
|
-
return
|
|
3326
|
-
s.put(L.enCode(
|
|
3324
|
+
if (U[e][t.id] !== void 0)
|
|
3325
|
+
return U[e][t.id] = { ...U[e][t.id], ...t.data }, a !== void 0 && U[a] !== void 0 ? U[a][t.id] !== void 0 && (U[a][t.id] = t.data.eDate) : U[a] = [], delete U[e][t.id].$_item, delete U[e][t.id].$_send, r._withIDBStore("readwrite", (s) => {
|
|
3326
|
+
s.put(L.enCode(U[e]), e), a !== void 0 && s.put(L.enCode(U[a]), a);
|
|
3327
3327
|
});
|
|
3328
3328
|
}, Jo = async (e, t, a, r) => {
|
|
3329
3329
|
let s, i;
|
|
3330
|
-
i = await de(a), i[e.id] = e, await
|
|
3330
|
+
i = await de(a), i[e.id] = e, await ge(a, i), s !== null && (s = await de(t), s[e.id] = e.eDate, await ge(t, s)), r !== void 0 && r({ type: "load", page: s, base: i });
|
|
3331
3331
|
}, Xo = async (e, t, a, r) => {
|
|
3332
3332
|
let s = await de(t), i = await de(a);
|
|
3333
3333
|
for (let o in e)
|
|
3334
3334
|
i[o] = e[o], s[o] = e[o].eDate;
|
|
3335
|
-
await
|
|
3335
|
+
await ge(t, s), await ge(a, i), r !== void 0 && r({ type: "load", page: s, base: i });
|
|
3336
3336
|
}, Qo = async (e, t, a, r) => {
|
|
3337
3337
|
let s = await de(t), i = await de(a);
|
|
3338
|
-
e.forEach((o) => delete s[o]), await
|
|
3338
|
+
e.forEach((o) => delete s[o]), await ge(t, s), r !== void 0 && r({ type: "load", page: s, base: i });
|
|
3339
3339
|
}, el = async (e, t, a) => {
|
|
3340
3340
|
let r = await de(t);
|
|
3341
|
-
e.forEach((s) => delete r[s]), await
|
|
3341
|
+
e.forEach((s) => delete r[s]), await ge(t, r);
|
|
3342
3342
|
}, tl = async (e, t, a) => {
|
|
3343
3343
|
let r = await de(t);
|
|
3344
|
-
e.forEach((s) => r[s.id] = s.eDate), await
|
|
3344
|
+
e.forEach((s) => r[s.id] = s.eDate), await ge(t, r);
|
|
3345
3345
|
}, nl = async (e, t, a) => {
|
|
3346
3346
|
let r = await de(t);
|
|
3347
3347
|
if (a !== void 0)
|
|
3348
3348
|
a({ type: "load", base: r });
|
|
3349
3349
|
else
|
|
3350
3350
|
return r[e];
|
|
3351
|
-
}, al = (e) =>
|
|
3351
|
+
}, al = (e) => U[e], dc = {
|
|
3352
3352
|
id: nl,
|
|
3353
3353
|
get: de,
|
|
3354
|
-
set:
|
|
3354
|
+
set: ge,
|
|
3355
3355
|
add: Jo,
|
|
3356
3356
|
del: Ho,
|
|
3357
3357
|
upd: qo,
|
|
@@ -3374,7 +3374,7 @@ const Re = () => (mt || (mt = new Uo()), mt), xe = (e, t, a = Re()) => a._withID
|
|
|
3374
3374
|
}, document.onkeyup = function(r) {
|
|
3375
3375
|
a.length = 0;
|
|
3376
3376
|
};
|
|
3377
|
-
},
|
|
3377
|
+
}, _c = { useKey: rl }, sl = "_s_18bde_1", il = "_loadingB_18bde_1", ol = "_ul_18bde_31", ll = {
|
|
3378
3378
|
s: sl,
|
|
3379
3379
|
loadingB: il,
|
|
3380
3380
|
ul: ol
|
|
@@ -3421,7 +3421,7 @@ function dl({
|
|
|
3421
3421
|
className: a,
|
|
3422
3422
|
...r
|
|
3423
3423
|
}) {
|
|
3424
|
-
const s =
|
|
3424
|
+
const s = g.useRef(null), [i, o] = g.useReducer(cl, {
|
|
3425
3425
|
load: !1,
|
|
3426
3426
|
list: [],
|
|
3427
3427
|
data: {},
|
|
@@ -3429,7 +3429,7 @@ function dl({
|
|
|
3429
3429
|
wait: !1,
|
|
3430
3430
|
size: 0
|
|
3431
3431
|
});
|
|
3432
|
-
|
|
3432
|
+
g.useEffect(() => {
|
|
3433
3433
|
s.current.scrollTop = 0, e !== null && o({ type: "load", load: !0, data: e });
|
|
3434
3434
|
}, [t]);
|
|
3435
3435
|
let l = () => {
|
|
@@ -3449,7 +3449,7 @@ function dl({
|
|
|
3449
3449
|
}
|
|
3450
3450
|
);
|
|
3451
3451
|
}
|
|
3452
|
-
const
|
|
3452
|
+
const uc = { Widget: Hi }, In = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ n.jsx(
|
|
3453
3453
|
"div",
|
|
3454
3454
|
{
|
|
3455
3455
|
role: "switch",
|
|
@@ -3485,18 +3485,18 @@ function Pe({
|
|
|
3485
3485
|
active: d = !0,
|
|
3486
3486
|
after: _ = "",
|
|
3487
3487
|
show: u = !0,
|
|
3488
|
-
view:
|
|
3489
|
-
onBlur:
|
|
3488
|
+
view: m,
|
|
3489
|
+
onBlur: f,
|
|
3490
3490
|
onSave: h,
|
|
3491
3491
|
className: C = ""
|
|
3492
3492
|
}) {
|
|
3493
|
-
let p = !!(o && (e === "" || e === void 0)),
|
|
3494
|
-
t && t({ value:
|
|
3495
|
-
}, k = (
|
|
3496
|
-
|
|
3497
|
-
},
|
|
3498
|
-
}, N = (
|
|
3499
|
-
|
|
3493
|
+
let p = !!(o && (e === "" || e === void 0)), x = (S) => {
|
|
3494
|
+
t && t({ value: S.target.textContent, name: a });
|
|
3495
|
+
}, k = (S) => {
|
|
3496
|
+
S.key === "Enter" && S.preventDefault();
|
|
3497
|
+
}, b = (S) => {
|
|
3498
|
+
}, N = (S) => {
|
|
3499
|
+
S.preventDefault(), navigator.clipboard.writeText(S.target.textContent).then(
|
|
3500
3500
|
function() {
|
|
3501
3501
|
$e.Copy("Данные в буфер обмене");
|
|
3502
3502
|
},
|
|
@@ -3510,17 +3510,17 @@ function Pe({
|
|
|
3510
3510
|
T.field = "input", C && (T.className = C);
|
|
3511
3511
|
const y = {};
|
|
3512
3512
|
r && (y.placeholder = r), l && d && (y.edit = "");
|
|
3513
|
-
const
|
|
3514
|
-
ue.Blur(
|
|
3513
|
+
const E = (S) => {
|
|
3514
|
+
ue.Blur(S), h && h({ value: S.target.textContent, name: a });
|
|
3515
3515
|
};
|
|
3516
3516
|
return /* @__PURE__ */ n.jsxs("dl", { ...T, children: [
|
|
3517
3517
|
s ? /* @__PURE__ */ n.jsx("dt", { children: s }) : "",
|
|
3518
3518
|
/* @__PURE__ */ n.jsx(
|
|
3519
3519
|
"dd",
|
|
3520
3520
|
{
|
|
3521
|
-
onPaste:
|
|
3522
|
-
onInput:
|
|
3523
|
-
onBlur:
|
|
3521
|
+
onPaste: b,
|
|
3522
|
+
onInput: x,
|
|
3523
|
+
onBlur: E,
|
|
3524
3524
|
onKeyDown: k,
|
|
3525
3525
|
onContextMenu: N,
|
|
3526
3526
|
contentEditable: l && d ? "plaintext-only" : "false",
|
|
@@ -3533,7 +3533,7 @@ function Pe({
|
|
|
3533
3533
|
] });
|
|
3534
3534
|
}
|
|
3535
3535
|
function Tn({ onClick: e, onSend: t, name: a, onRef: r }) {
|
|
3536
|
-
let [s, i] =
|
|
3536
|
+
let [s, i] = g.useState(!1);
|
|
3537
3537
|
const o = () => {
|
|
3538
3538
|
if (e)
|
|
3539
3539
|
return e();
|
|
@@ -3561,7 +3561,7 @@ function Mn({
|
|
|
3561
3561
|
active: l = !0,
|
|
3562
3562
|
placeholder: d = "Введите сообщение"
|
|
3563
3563
|
}) {
|
|
3564
|
-
const _ =
|
|
3564
|
+
const _ = g.useRef({
|
|
3565
3565
|
value: e,
|
|
3566
3566
|
timerId: null,
|
|
3567
3567
|
shift: !1,
|
|
@@ -3570,31 +3570,31 @@ function Mn({
|
|
|
3570
3570
|
_.current.value.length > 0 ? _.current.send && (a(!0), _.current.send = !1, _.current.timerId = setTimeout(() => {
|
|
3571
3571
|
_.current.send = !0;
|
|
3572
3572
|
}, 3e3)) : a(!1);
|
|
3573
|
-
}, f = (k) => {
|
|
3574
|
-
_.current.value = k.target.textContent, u();
|
|
3575
3573
|
}, m = (k) => {
|
|
3574
|
+
_.current.value = k.target.textContent, u();
|
|
3575
|
+
}, f = (k) => {
|
|
3576
3576
|
k.keyCode === 16 && (_.current.shift = !0), k.keyCode === 13 && !_.current.shift && (k.preventDefault(), _.current.value.length !== 0 && (k.target.textContent = "", r && r(_.current.value), t && t(_.current.value), _.current.value = "", a(!1)));
|
|
3577
3577
|
}, h = (k) => {
|
|
3578
3578
|
k.keyCode === 16 && (_.current.shift = !1);
|
|
3579
3579
|
}, C = (k) => {
|
|
3580
|
-
k.preventDefault(), navigator.clipboard.readText().then((
|
|
3581
|
-
window.document.execCommand("insertText", !1,
|
|
3582
|
-
}).catch((
|
|
3580
|
+
k.preventDefault(), navigator.clipboard.readText().then((b) => {
|
|
3581
|
+
window.document.execCommand("insertText", !1, b);
|
|
3582
|
+
}).catch((b) => {
|
|
3583
3583
|
});
|
|
3584
3584
|
}, p = () => {
|
|
3585
3585
|
a(!1);
|
|
3586
|
-
},
|
|
3586
|
+
}, x = {
|
|
3587
3587
|
spellCheck: "true"
|
|
3588
3588
|
};
|
|
3589
|
-
return d && (
|
|
3589
|
+
return d && (x.placeholder = d), o && l && (x.contentEditable = "plaintext-only"), /* @__PURE__ */ n.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ n.jsx(
|
|
3590
3590
|
"dd",
|
|
3591
3591
|
{
|
|
3592
3592
|
onPaste: C,
|
|
3593
|
-
onInput:
|
|
3593
|
+
onInput: m,
|
|
3594
3594
|
onKeyUp: h,
|
|
3595
|
-
onKeyDown:
|
|
3595
|
+
onKeyDown: f,
|
|
3596
3596
|
onBlur: p,
|
|
3597
|
-
...
|
|
3597
|
+
...x,
|
|
3598
3598
|
suppressContentEditableWarning: !0,
|
|
3599
3599
|
children: e
|
|
3600
3600
|
}
|
|
@@ -3628,7 +3628,7 @@ function Ln(e) {
|
|
|
3628
3628
|
] });
|
|
3629
3629
|
}
|
|
3630
3630
|
function Fn({ value: e, onValue: t, placeholder: a = "", name: r }) {
|
|
3631
|
-
let s = (h, C) => Number(Math.round(h + Math.random() * (C - h))), i =
|
|
3631
|
+
let s = (h, C) => Number(Math.round(h + Math.random() * (C - h))), i = g.useRef(null), o = g.useRef(null), l = s(1e4, 99999), d = (h) => {
|
|
3632
3632
|
h.key !== "Backspace" && (h.key === "Enter" && h.preventDefault(), h.target.textContent.length === 5 && h.preventDefault(), /\d/.test(h.key) || h.preventDefault());
|
|
3633
3633
|
}, _ = (h) => {
|
|
3634
3634
|
t({ value: Number(h.target.textContent) === l, name: r });
|
|
@@ -3642,14 +3642,14 @@ function Fn({ value: e, onValue: t, placeholder: a = "", name: r }) {
|
|
|
3642
3642
|
}).catch((C) => {
|
|
3643
3643
|
});
|
|
3644
3644
|
};
|
|
3645
|
-
|
|
3645
|
+
g.useEffect(() => {
|
|
3646
3646
|
const h = i.current, C = h.getContext("2d");
|
|
3647
3647
|
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 = "";
|
|
3648
3648
|
}, [l]);
|
|
3649
|
-
const f = {};
|
|
3650
|
-
f.field = "captcha";
|
|
3651
3649
|
const m = {};
|
|
3652
|
-
|
|
3650
|
+
m.field = "captcha";
|
|
3651
|
+
const f = {};
|
|
3652
|
+
return a && (f.placeholder = a), /* @__PURE__ */ n.jsxs("dl", { ...m, children: [
|
|
3653
3653
|
/* @__PURE__ */ n.jsx(
|
|
3654
3654
|
"dd",
|
|
3655
3655
|
{
|
|
@@ -3660,7 +3660,7 @@ function Fn({ value: e, onValue: t, placeholder: a = "", name: r }) {
|
|
|
3660
3660
|
onKeyDown: d,
|
|
3661
3661
|
contentEditable: "plaintext-only",
|
|
3662
3662
|
suppressContentEditableWarning: !0,
|
|
3663
|
-
...
|
|
3663
|
+
...f
|
|
3664
3664
|
}
|
|
3665
3665
|
),
|
|
3666
3666
|
/* @__PURE__ */ n.jsx("canvas", { ref: i, width: "100", height: "35" })
|
|
@@ -3688,8 +3688,8 @@ function Bn({
|
|
|
3688
3688
|
if (p.preventDefault(), !r)
|
|
3689
3689
|
return;
|
|
3690
3690
|
p.target.textContent = p.target.textContent.slice(-1).replace(/[^+\d]/g, "");
|
|
3691
|
-
let
|
|
3692
|
-
if (d[p.target.id] = p.target.textContent, d.code = d.n1 + "" + d.n2 + d.n3 + d.n4 + d.n5 + d.n6,
|
|
3691
|
+
let x = window.getSelection(), k = p.target.textContent.length;
|
|
3692
|
+
if (d[p.target.id] = p.target.textContent, d.code = d.n1 + "" + d.n2 + d.n3 + d.n4 + d.n5 + d.n6, x.collapse(p.target.firstChild, 1), k === 0) {
|
|
3693
3693
|
p.target.blur(), p.target.focus();
|
|
3694
3694
|
return;
|
|
3695
3695
|
}
|
|
@@ -3697,12 +3697,12 @@ function Bn({
|
|
|
3697
3697
|
}, u = (p) => {
|
|
3698
3698
|
if (r && (p.key === "Enter" && p.preventDefault(), p.key === "Backspace")) {
|
|
3699
3699
|
if (p.preventDefault(), p.target.textContent = "", d[p.target.id] = "", p.target.previousSibling != null) {
|
|
3700
|
-
let
|
|
3701
|
-
p.target.previousSibling.textContent = "", d["n" +
|
|
3700
|
+
let x = p.target.previousSibling.id.slice(1);
|
|
3701
|
+
p.target.previousSibling.textContent = "", d["n" + x] = "", p.target.previousSibling.focus();
|
|
3702
3702
|
}
|
|
3703
3703
|
d.code = d.n1 + "" + d.n2 + d.n3 + d.n4 + d.n5 + d.n6;
|
|
3704
3704
|
}
|
|
3705
|
-
},
|
|
3705
|
+
}, m = (p) => {
|
|
3706
3706
|
if (r) {
|
|
3707
3707
|
if (s)
|
|
3708
3708
|
i && i({ value: d.code, name: l });
|
|
@@ -3716,22 +3716,22 @@ function Bn({
|
|
|
3716
3716
|
n6: "",
|
|
3717
3717
|
code: ""
|
|
3718
3718
|
};
|
|
3719
|
-
for (let
|
|
3720
|
-
let k = document.getElementById("n" +
|
|
3719
|
+
for (let x = 1; x <= 6; x++) {
|
|
3720
|
+
let k = document.getElementById("n" + x);
|
|
3721
3721
|
k && (k.textContent = "");
|
|
3722
3722
|
}
|
|
3723
3723
|
}
|
|
3724
3724
|
}
|
|
3725
|
-
},
|
|
3725
|
+
}, f = (p) => {
|
|
3726
3726
|
p.target.textContent = "";
|
|
3727
3727
|
}, h = (p) => {
|
|
3728
|
-
p.preventDefault(), navigator.clipboard.readText().then((
|
|
3729
|
-
let k =
|
|
3730
|
-
for (let
|
|
3731
|
-
let N = document.getElementById("n" +
|
|
3732
|
-
N && (N.textContent = k[
|
|
3728
|
+
p.preventDefault(), navigator.clipboard.readText().then((x) => {
|
|
3729
|
+
let k = x.split("");
|
|
3730
|
+
for (let b = 1; b <= k.length; b++) {
|
|
3731
|
+
let N = document.getElementById("n" + b);
|
|
3732
|
+
N && (N.textContent = k[b - 1]);
|
|
3733
3733
|
}
|
|
3734
|
-
}).catch((
|
|
3734
|
+
}).catch((x) => {
|
|
3735
3735
|
});
|
|
3736
3736
|
};
|
|
3737
3737
|
const C = {};
|
|
@@ -3743,8 +3743,8 @@ function Bn({
|
|
|
3743
3743
|
{
|
|
3744
3744
|
id: "n1",
|
|
3745
3745
|
onKeyDown: u,
|
|
3746
|
-
onKeyUp:
|
|
3747
|
-
onFocus:
|
|
3746
|
+
onKeyUp: m,
|
|
3747
|
+
onFocus: f,
|
|
3748
3748
|
onPaste: h,
|
|
3749
3749
|
onInput: _,
|
|
3750
3750
|
contentEditable: !0
|
|
@@ -3755,8 +3755,8 @@ function Bn({
|
|
|
3755
3755
|
{
|
|
3756
3756
|
id: "n2",
|
|
3757
3757
|
onKeyDown: u,
|
|
3758
|
-
onKeyUp:
|
|
3759
|
-
onFocus:
|
|
3758
|
+
onKeyUp: m,
|
|
3759
|
+
onFocus: f,
|
|
3760
3760
|
onPaste: h,
|
|
3761
3761
|
onInput: _,
|
|
3762
3762
|
contentEditable: !0
|
|
@@ -3767,8 +3767,8 @@ function Bn({
|
|
|
3767
3767
|
{
|
|
3768
3768
|
id: "n3",
|
|
3769
3769
|
onKeyDown: u,
|
|
3770
|
-
onKeyUp:
|
|
3771
|
-
onFocus:
|
|
3770
|
+
onKeyUp: m,
|
|
3771
|
+
onFocus: f,
|
|
3772
3772
|
onPaste: h,
|
|
3773
3773
|
onInput: _,
|
|
3774
3774
|
contentEditable: !0
|
|
@@ -3779,8 +3779,8 @@ function Bn({
|
|
|
3779
3779
|
{
|
|
3780
3780
|
id: "n4",
|
|
3781
3781
|
onKeyDown: u,
|
|
3782
|
-
onKeyUp:
|
|
3783
|
-
onFocus:
|
|
3782
|
+
onKeyUp: m,
|
|
3783
|
+
onFocus: f,
|
|
3784
3784
|
onPaste: h,
|
|
3785
3785
|
onInput: _,
|
|
3786
3786
|
contentEditable: !0
|
|
@@ -3791,8 +3791,8 @@ function Bn({
|
|
|
3791
3791
|
{
|
|
3792
3792
|
id: "n5",
|
|
3793
3793
|
onKeyDown: u,
|
|
3794
|
-
onKeyUp:
|
|
3795
|
-
onFocus:
|
|
3794
|
+
onKeyUp: m,
|
|
3795
|
+
onFocus: f,
|
|
3796
3796
|
onPaste: h,
|
|
3797
3797
|
onInput: _,
|
|
3798
3798
|
contentEditable: !0
|
|
@@ -3803,8 +3803,8 @@ function Bn({
|
|
|
3803
3803
|
{
|
|
3804
3804
|
id: "n6",
|
|
3805
3805
|
onKeyDown: u,
|
|
3806
|
-
onKeyUp:
|
|
3807
|
-
onFocus:
|
|
3806
|
+
onKeyUp: m,
|
|
3807
|
+
onFocus: f,
|
|
3808
3808
|
onPaste: h,
|
|
3809
3809
|
onInput: _,
|
|
3810
3810
|
contentEditable: !0
|
|
@@ -3817,7 +3817,7 @@ function Bn({
|
|
|
3817
3817
|
function $n(e) {
|
|
3818
3818
|
let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "";
|
|
3819
3819
|
e.edit !== void 0 && e.edit, e.active !== void 0 && e.active;
|
|
3820
|
-
let [r, s] =
|
|
3820
|
+
let [r, s] = g.useState(e.value), i = (o) => {
|
|
3821
3821
|
let l = o.target.getAttribute("set-color");
|
|
3822
3822
|
s(l), e.onValue({ value: l, name: e.name });
|
|
3823
3823
|
};
|
|
@@ -3844,27 +3844,27 @@ function $n(e) {
|
|
|
3844
3844
|
}
|
|
3845
3845
|
) });
|
|
3846
3846
|
}
|
|
3847
|
-
const _l = "
|
|
3847
|
+
const _l = "_o_1e9i0_1", ul = "_c_1e9i0_11", Se = {
|
|
3848
3848
|
o: _l,
|
|
3849
3849
|
c: ul
|
|
3850
3850
|
};
|
|
3851
3851
|
function Nt(e) {
|
|
3852
|
-
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] =
|
|
3852
|
+
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] = g.useState(
|
|
3853
3853
|
e.value === void 0 ? /* @__PURE__ */ new Date() : e.value
|
|
3854
3854
|
), d = !r && s;
|
|
3855
|
-
|
|
3855
|
+
g.useEffect(() => {
|
|
3856
3856
|
l(e.value === void 0 ? /* @__PURE__ */ new Date() : e.value);
|
|
3857
3857
|
}, [e.value]);
|
|
3858
3858
|
let _ = (h) => {
|
|
3859
3859
|
l(h), e.onValue({ value: h, name: e.name });
|
|
3860
3860
|
}, u = (h) => {
|
|
3861
|
-
const C = h.target.getBoundingClientRect(), p = C.left,
|
|
3861
|
+
const C = h.target.getBoundingClientRect(), p = C.left, x = C.top;
|
|
3862
3862
|
Ee.setListener(
|
|
3863
3863
|
"form",
|
|
3864
3864
|
/* @__PURE__ */ n.jsx(
|
|
3865
3865
|
fl,
|
|
3866
3866
|
{
|
|
3867
|
-
position: { x: p, y:
|
|
3867
|
+
position: { x: p, y: x },
|
|
3868
3868
|
onValue: _,
|
|
3869
3869
|
date: o
|
|
3870
3870
|
},
|
|
@@ -3872,10 +3872,10 @@ function Nt(e) {
|
|
|
3872
3872
|
)
|
|
3873
3873
|
);
|
|
3874
3874
|
};
|
|
3875
|
-
const f = {};
|
|
3876
|
-
f.field = "input";
|
|
3877
3875
|
const m = {};
|
|
3878
|
-
|
|
3876
|
+
m.field = "input";
|
|
3877
|
+
const f = {};
|
|
3878
|
+
return i && (f.placeholder = i), d ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsx(n.Fragment, { children: e.view === "icon" ? /* @__PURE__ */ n.jsx(
|
|
3879
3879
|
"i",
|
|
3880
3880
|
{
|
|
3881
3881
|
"data-icon": "F043",
|
|
@@ -3886,16 +3886,16 @@ function Nt(e) {
|
|
|
3886
3886
|
) : /* @__PURE__ */ n.jsxs(
|
|
3887
3887
|
"dl",
|
|
3888
3888
|
{
|
|
3889
|
-
...
|
|
3889
|
+
...m,
|
|
3890
3890
|
children: [
|
|
3891
3891
|
t(),
|
|
3892
3892
|
/* @__PURE__ */ n.jsx(
|
|
3893
3893
|
"dd",
|
|
3894
3894
|
{
|
|
3895
3895
|
onClick: u,
|
|
3896
|
-
...
|
|
3896
|
+
...f,
|
|
3897
3897
|
"data-edit": (r && s) + "",
|
|
3898
|
-
children:
|
|
3898
|
+
children: K.Date(o, "dd.mm.yyyy")
|
|
3899
3899
|
}
|
|
3900
3900
|
),
|
|
3901
3901
|
a()
|
|
@@ -3904,7 +3904,7 @@ function Nt(e) {
|
|
|
3904
3904
|
) });
|
|
3905
3905
|
}
|
|
3906
3906
|
const fl = (e) => {
|
|
3907
|
-
let [t, a] =
|
|
3907
|
+
let [t, a] = g.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
|
|
3908
3908
|
y: parseInt(r.getFullYear()),
|
|
3909
3909
|
d: parseInt(r.getDate()),
|
|
3910
3910
|
m: parseInt(r.getMonth()) + 1
|
|
@@ -3912,26 +3912,26 @@ const fl = (e) => {
|
|
|
3912
3912
|
y: parseInt(s.getFullYear()),
|
|
3913
3913
|
d: parseInt(s.getDate()),
|
|
3914
3914
|
m: parseInt(s.getMonth()) + 1
|
|
3915
|
-
}, [l, d] =
|
|
3916
|
-
let
|
|
3917
|
-
return
|
|
3918
|
-
}, u = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"],
|
|
3919
|
-
for (let y = 0; y < _(
|
|
3915
|
+
}, [l, d] = g.useState({ y: o.y, m: o.m }), _ = (y) => {
|
|
3916
|
+
let E = y.getDay();
|
|
3917
|
+
return E === 0 && (E = 7), E - 1;
|
|
3918
|
+
}, u = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"], m = l.m - 1, f = new Date(l.y, m), h = [];
|
|
3919
|
+
for (let y = 0; y < _(f); y++)
|
|
3920
3920
|
h.push(0);
|
|
3921
|
-
for (;
|
|
3922
|
-
h.push(
|
|
3921
|
+
for (; f.getMonth() === m; )
|
|
3922
|
+
h.push(f.getDate()), f.setDate(f.getDate() + 1);
|
|
3923
3923
|
let C = () => {
|
|
3924
3924
|
a(!1);
|
|
3925
3925
|
}, p = () => {
|
|
3926
|
-
|
|
3927
|
-
},
|
|
3928
|
-
|
|
3926
|
+
b(l.m + 1, l.y);
|
|
3927
|
+
}, x = () => {
|
|
3928
|
+
b(l.m - 1, l.y);
|
|
3929
3929
|
}, k = (y) => {
|
|
3930
3930
|
e.onValue(
|
|
3931
|
-
l.y + "-" +
|
|
3931
|
+
l.y + "-" + K.Number(2, l.m) + "-" + K.Number(2, y)
|
|
3932
3932
|
), C();
|
|
3933
|
-
},
|
|
3934
|
-
|
|
3933
|
+
}, b = (y, E) => {
|
|
3934
|
+
E = y > 12 ? E + 1 : y < 1 ? E - 1 : E, y = y > 12 ? 1 : y < 1 ? 12 : y, d({ y: E, m: y });
|
|
3935
3935
|
}, N = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, T = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
|
|
3936
3936
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: t ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
3937
3937
|
/* @__PURE__ */ n.jsx(
|
|
@@ -3949,7 +3949,7 @@ const fl = (e) => {
|
|
|
3949
3949
|
style: { top: N + "px", left: T + "px" },
|
|
3950
3950
|
children: [
|
|
3951
3951
|
/* @__PURE__ */ n.jsxs("s", { children: [
|
|
3952
|
-
/* @__PURE__ */ n.jsx("i", { onClick:
|
|
3952
|
+
/* @__PURE__ */ n.jsx("i", { onClick: x, children: /* @__PURE__ */ n.jsx(
|
|
3953
3953
|
"svg",
|
|
3954
3954
|
{
|
|
3955
3955
|
width: "16",
|
|
@@ -3961,7 +3961,7 @@ const fl = (e) => {
|
|
|
3961
3961
|
}
|
|
3962
3962
|
) }),
|
|
3963
3963
|
/* @__PURE__ */ n.jsxs("h2", { children: [
|
|
3964
|
-
|
|
3964
|
+
K.Month(l.m).name,
|
|
3965
3965
|
" ",
|
|
3966
3966
|
l.y
|
|
3967
3967
|
] }),
|
|
@@ -3978,15 +3978,15 @@ const fl = (e) => {
|
|
|
3978
3978
|
) })
|
|
3979
3979
|
] }),
|
|
3980
3980
|
/* @__PURE__ */ n.jsxs("div", { "grid-calendar": "", children: [
|
|
3981
|
-
u.map((y,
|
|
3982
|
-
h.map((y,
|
|
3981
|
+
u.map((y, E) => /* @__PURE__ */ n.jsx("p", { children: y }, "v" + E)),
|
|
3982
|
+
h.map((y, E) => /* @__PURE__ */ n.jsx("span", { children: y !== 0 ? /* @__PURE__ */ n.jsx(
|
|
3983
3983
|
"b",
|
|
3984
3984
|
{
|
|
3985
3985
|
color: i.y === l.y && i.m === l.m && i.d === y ? "_FFEB3B" : "",
|
|
3986
3986
|
onClick: () => k(y),
|
|
3987
3987
|
children: y
|
|
3988
3988
|
}
|
|
3989
|
-
) : /* @__PURE__ */ n.jsx("p", {}) },
|
|
3989
|
+
) : /* @__PURE__ */ n.jsx("p", {}) }, E))
|
|
3990
3990
|
] })
|
|
3991
3991
|
]
|
|
3992
3992
|
}
|
|
@@ -4005,19 +4005,19 @@ function It({
|
|
|
4005
4005
|
show: d = !0,
|
|
4006
4006
|
active: _ = !0,
|
|
4007
4007
|
after: u = "",
|
|
4008
|
-
view:
|
|
4009
|
-
modal:
|
|
4008
|
+
view: m,
|
|
4009
|
+
modal: f,
|
|
4010
4010
|
module: h,
|
|
4011
4011
|
options: C,
|
|
4012
4012
|
className: p
|
|
4013
4013
|
}) {
|
|
4014
|
-
let [
|
|
4015
|
-
if (!(l && _) || !
|
|
4014
|
+
let [x, k] = g.useState(e), b = (y) => {
|
|
4015
|
+
if (!(l && _) || !f)
|
|
4016
4016
|
return;
|
|
4017
|
-
let
|
|
4018
|
-
tt.Open(
|
|
4019
|
-
callback: (
|
|
4020
|
-
t && t({ value:
|
|
4017
|
+
let E = f.split(".");
|
|
4018
|
+
tt.Open(E[0], E[1], {
|
|
4019
|
+
callback: (S) => {
|
|
4020
|
+
t && t({ value: S, name: a }), k(S);
|
|
4021
4021
|
},
|
|
4022
4022
|
onValue: t,
|
|
4023
4023
|
options: C,
|
|
@@ -4034,37 +4034,37 @@ function It({
|
|
|
4034
4034
|
"dd",
|
|
4035
4035
|
{
|
|
4036
4036
|
...T,
|
|
4037
|
-
onClick:
|
|
4037
|
+
onClick: b,
|
|
4038
4038
|
edit: (l && _) + "",
|
|
4039
4039
|
"data-after": u,
|
|
4040
|
-
children:
|
|
4040
|
+
children: x
|
|
4041
4041
|
}
|
|
4042
4042
|
),
|
|
4043
4043
|
i && /* @__PURE__ */ n.jsx("em", { children: i })
|
|
4044
4044
|
] });
|
|
4045
4045
|
}
|
|
4046
4046
|
function Tt(e) {
|
|
4047
|
-
let t = e.value, a = (
|
|
4047
|
+
let t = e.value, a = (m) => e.type === "multi" ? m.replace(/[^+\d.+-]/g, "") : m.replace(/[^+\d.]/g, ""), r = (m, f) => {
|
|
4048
4048
|
let h = document.createRange(), C = window.getSelection();
|
|
4049
|
-
h.setStart(
|
|
4050
|
-
}, s = (
|
|
4049
|
+
h.setStart(f.childNodes[0], m), h.collapse(!0), C.removeAllRanges(), C.addRange(h), f.focus();
|
|
4050
|
+
}, s = (m) => {
|
|
4051
4051
|
e.onValue({
|
|
4052
|
-
value: a(
|
|
4052
|
+
value: a(m.target.textContent),
|
|
4053
4053
|
name: e.name
|
|
4054
|
-
}),
|
|
4055
|
-
}, i = (
|
|
4056
|
-
|
|
4057
|
-
value: a(
|
|
4054
|
+
}), m.target.textContent = a(m.target.textContent), m.target.textContent.length > 0 && r(m.target.textContent.length, m.target);
|
|
4055
|
+
}, i = (m) => {
|
|
4056
|
+
m.target.textContent === "" && (m.target.textContent = 0), e.onValue({
|
|
4057
|
+
value: a(m.target.textContent),
|
|
4058
4058
|
name: e.name
|
|
4059
|
-
}),
|
|
4060
|
-
}, o = (
|
|
4061
|
-
|
|
4062
|
-
}, l = (
|
|
4063
|
-
|
|
4064
|
-
}, d = (
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
}).catch((
|
|
4059
|
+
}), m.target.textContent = K.Money(m.target.textContent);
|
|
4060
|
+
}, o = (m) => {
|
|
4061
|
+
m.target.textContent = a(m.target.textContent);
|
|
4062
|
+
}, l = (m) => {
|
|
4063
|
+
m.key === "Enter" && m.preventDefault();
|
|
4064
|
+
}, d = (m) => {
|
|
4065
|
+
m.preventDefault(), navigator.clipboard.readText().then((f) => {
|
|
4066
|
+
f = f.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, f);
|
|
4067
|
+
}).catch((f) => {
|
|
4068
4068
|
});
|
|
4069
4069
|
}, _ = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", u = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "";
|
|
4070
4070
|
return /* @__PURE__ */ n.jsxs(
|
|
@@ -4084,7 +4084,7 @@ function Tt(e) {
|
|
|
4084
4084
|
contentEditable: !0,
|
|
4085
4085
|
suppressContentEditableWarning: !0,
|
|
4086
4086
|
"e-after": e.after,
|
|
4087
|
-
children:
|
|
4087
|
+
children: K.Money(t)
|
|
4088
4088
|
}
|
|
4089
4089
|
),
|
|
4090
4090
|
u()
|
|
@@ -4105,24 +4105,24 @@ function Pn({
|
|
|
4105
4105
|
className: _,
|
|
4106
4106
|
after: u
|
|
4107
4107
|
}) {
|
|
4108
|
-
let [
|
|
4109
|
-
|
|
4110
|
-
|
|
4108
|
+
let [m, f] = g.useState(e);
|
|
4109
|
+
g.useEffect(() => {
|
|
4110
|
+
f(e);
|
|
4111
4111
|
}, [e]);
|
|
4112
|
-
let h = (
|
|
4113
|
-
|
|
4114
|
-
}, C = (
|
|
4112
|
+
let h = (x) => {
|
|
4113
|
+
f(x), t && t({ value: x, name: a });
|
|
4114
|
+
}, C = (x) => {
|
|
4115
4115
|
if (!i || !o)
|
|
4116
4116
|
return;
|
|
4117
|
-
const k =
|
|
4117
|
+
const k = x.target.getBoundingClientRect(), b = k.left, N = k.top;
|
|
4118
4118
|
Ee.setListener(
|
|
4119
4119
|
"form",
|
|
4120
4120
|
/* @__PURE__ */ n.jsx(
|
|
4121
4121
|
ml,
|
|
4122
4122
|
{
|
|
4123
|
-
position: { x:
|
|
4123
|
+
position: { x: b, y: N },
|
|
4124
4124
|
onValue: h,
|
|
4125
|
-
date:
|
|
4125
|
+
date: m
|
|
4126
4126
|
},
|
|
4127
4127
|
(/* @__PURE__ */ new Date()).getTime()
|
|
4128
4128
|
)
|
|
@@ -4136,28 +4136,28 @@ function Pn({
|
|
|
4136
4136
|
{
|
|
4137
4137
|
onClick: C,
|
|
4138
4138
|
...p,
|
|
4139
|
-
children:
|
|
4139
|
+
children: K.Date(m, "mm.yyyy")
|
|
4140
4140
|
}
|
|
4141
4141
|
),
|
|
4142
4142
|
s && /* @__PURE__ */ n.jsx("em", { children: s })
|
|
4143
4143
|
] });
|
|
4144
4144
|
}
|
|
4145
4145
|
const ml = (e) => {
|
|
4146
|
-
let [t, a] =
|
|
4146
|
+
let [t, a] = g.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
|
|
4147
4147
|
y: parseInt(r.getFullYear()),
|
|
4148
4148
|
m: parseInt(r.getMonth()) + 1
|
|
4149
4149
|
}, o = {
|
|
4150
4150
|
y: parseInt(s.getFullYear()),
|
|
4151
4151
|
m: parseInt(s.getMonth()) + 1
|
|
4152
|
-
}, [l, d] =
|
|
4152
|
+
}, [l, d] = g.useState(o.y), _ = () => {
|
|
4153
4153
|
a(!1);
|
|
4154
4154
|
}, u = () => {
|
|
4155
4155
|
d(l + 1);
|
|
4156
|
-
},
|
|
4156
|
+
}, m = () => {
|
|
4157
4157
|
d(l - 1);
|
|
4158
|
-
},
|
|
4159
|
-
e.onValue(l + "-" +
|
|
4160
|
-
}, h = (k) => i.y === o.y && i.m === k ? "_FFEB3B" : "", C = Array(12).fill("").map((k,
|
|
4158
|
+
}, f = (k) => {
|
|
4159
|
+
e.onValue(l + "-" + K.Number(2, k)), _();
|
|
4160
|
+
}, h = (k) => i.y === o.y && i.m === k ? "_FFEB3B" : "", C = Array(12).fill("").map((k, b) => b + 1), p = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, x = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
|
|
4161
4161
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: t ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
4162
4162
|
/* @__PURE__ */ n.jsx(
|
|
4163
4163
|
"div",
|
|
@@ -4171,10 +4171,10 @@ const ml = (e) => {
|
|
|
4171
4171
|
"div",
|
|
4172
4172
|
{
|
|
4173
4173
|
className: Se.c,
|
|
4174
|
-
style: { top: p + "px", left:
|
|
4174
|
+
style: { top: p + "px", left: x + "px" },
|
|
4175
4175
|
children: [
|
|
4176
4176
|
/* @__PURE__ */ n.jsxs("s", { children: [
|
|
4177
|
-
/* @__PURE__ */ n.jsx("i", { onClick:
|
|
4177
|
+
/* @__PURE__ */ n.jsx("i", { onClick: m, children: /* @__PURE__ */ n.jsx(
|
|
4178
4178
|
"svg",
|
|
4179
4179
|
{
|
|
4180
4180
|
width: "16",
|
|
@@ -4198,16 +4198,16 @@ const ml = (e) => {
|
|
|
4198
4198
|
}
|
|
4199
4199
|
) })
|
|
4200
4200
|
] }),
|
|
4201
|
-
/* @__PURE__ */ n.jsx("div", { "grid-month": "", children: C.map((k,
|
|
4201
|
+
/* @__PURE__ */ n.jsx("div", { "grid-month": "", children: C.map((k, b) => /* @__PURE__ */ n.jsx(
|
|
4202
4202
|
"span",
|
|
4203
4203
|
{
|
|
4204
4204
|
onClick: () => {
|
|
4205
|
-
|
|
4205
|
+
f(k);
|
|
4206
4206
|
},
|
|
4207
4207
|
color: h(k),
|
|
4208
|
-
children: /* @__PURE__ */ n.jsx("b", { children:
|
|
4208
|
+
children: /* @__PURE__ */ n.jsx("b", { children: K.Month(k).abc })
|
|
4209
4209
|
},
|
|
4210
|
-
|
|
4210
|
+
b
|
|
4211
4211
|
)) })
|
|
4212
4212
|
]
|
|
4213
4213
|
}
|
|
@@ -4215,20 +4215,20 @@ const ml = (e) => {
|
|
|
4215
4215
|
] }) : "" });
|
|
4216
4216
|
};
|
|
4217
4217
|
function On(e) {
|
|
4218
|
-
let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", [r, s] =
|
|
4218
|
+
let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", [r, s] = g.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);
|
|
4219
4219
|
r = i ? !0 : r;
|
|
4220
|
-
let _ = e.placeholder !== void 0 ? e.placeholder : "", u = (
|
|
4221
|
-
e.onValue && e.onValue({ value:
|
|
4222
|
-
},
|
|
4223
|
-
|
|
4220
|
+
let _ = e.placeholder !== void 0 ? e.placeholder : "", u = (x) => {
|
|
4221
|
+
e.onValue && e.onValue({ value: x.target.innerText, name: e.name });
|
|
4222
|
+
}, m = (x) => {
|
|
4223
|
+
x.preventDefault(), navigator.clipboard.readText().then((k) => {
|
|
4224
4224
|
window.document.execCommand("insertText", !1, k);
|
|
4225
4225
|
}).catch((k) => {
|
|
4226
4226
|
});
|
|
4227
|
-
},
|
|
4227
|
+
}, f = (x) => {
|
|
4228
4228
|
i || s(!r);
|
|
4229
4229
|
};
|
|
4230
|
-
const h = (
|
|
4231
|
-
e.onSave && e.onSave({ value:
|
|
4230
|
+
const h = (x) => {
|
|
4231
|
+
e.onSave && e.onSave({ value: x.target.innerText, name: e.name });
|
|
4232
4232
|
}, C = {};
|
|
4233
4233
|
C.field = "notes", e.className && (C.className = e.className);
|
|
4234
4234
|
const p = {};
|
|
@@ -4237,12 +4237,12 @@ function On(e) {
|
|
|
4237
4237
|
/* @__PURE__ */ n.jsx(
|
|
4238
4238
|
"dd",
|
|
4239
4239
|
{
|
|
4240
|
-
onPaste:
|
|
4240
|
+
onPaste: m,
|
|
4241
4241
|
onInput: u,
|
|
4242
4242
|
onBlur: h,
|
|
4243
4243
|
contentEditable: i && o ? "plaintext-only" : "false",
|
|
4244
4244
|
...p,
|
|
4245
|
-
onDoubleClick:
|
|
4245
|
+
onDoubleClick: f,
|
|
4246
4246
|
suppressContentEditableWarning: !0,
|
|
4247
4247
|
children: e.value
|
|
4248
4248
|
}
|
|
@@ -4262,14 +4262,14 @@ function Mt({
|
|
|
4262
4262
|
value: d,
|
|
4263
4263
|
placeholder: _,
|
|
4264
4264
|
className: u,
|
|
4265
|
-
name:
|
|
4266
|
-
after:
|
|
4265
|
+
name: m,
|
|
4266
|
+
after: f,
|
|
4267
4267
|
view: h
|
|
4268
4268
|
}) {
|
|
4269
4269
|
let C = () => s ? /* @__PURE__ */ n.jsx("dt", { children: s }) : "", p = () => i ? /* @__PURE__ */ n.jsx("em", { children: i }) : "";
|
|
4270
4270
|
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;
|
|
4271
|
-
let k = !1,
|
|
4272
|
-
e && e({ value: D.target.textContent, name:
|
|
4271
|
+
let k = !1, b = (D) => {
|
|
4272
|
+
e && e({ value: D.target.textContent, name: m });
|
|
4273
4273
|
}, N = (D) => {
|
|
4274
4274
|
if (!(k && D.which === 86)) {
|
|
4275
4275
|
if (D.which === 17 || D.which === 91)
|
|
@@ -4289,17 +4289,17 @@ function Mt({
|
|
|
4289
4289
|
}).catch((A) => {
|
|
4290
4290
|
});
|
|
4291
4291
|
};
|
|
4292
|
-
const
|
|
4293
|
-
|
|
4294
|
-
let
|
|
4295
|
-
return r && t ? (
|
|
4292
|
+
const E = {};
|
|
4293
|
+
E.field = "input", u && (E.className = u);
|
|
4294
|
+
let S = {};
|
|
4295
|
+
return r && t ? (S.edit = "true", S.contentEditable = "plaintext-only") : S.contentEditable = "false", _ && (S.placeholder = _), f && (S.after = f), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...E, children: [
|
|
4296
4296
|
C(),
|
|
4297
4297
|
/* @__PURE__ */ n.jsx(
|
|
4298
4298
|
"dd",
|
|
4299
4299
|
{
|
|
4300
|
-
...
|
|
4300
|
+
...S,
|
|
4301
4301
|
onPaste: y,
|
|
4302
|
-
onInput:
|
|
4302
|
+
onInput: b,
|
|
4303
4303
|
onKeyDown: N,
|
|
4304
4304
|
onKeyUp: T,
|
|
4305
4305
|
suppressContentEditableWarning: !0,
|
|
@@ -4321,9 +4321,9 @@ function An({
|
|
|
4321
4321
|
active: d = !0,
|
|
4322
4322
|
reload: _ = !1,
|
|
4323
4323
|
native: u = !1,
|
|
4324
|
-
after:
|
|
4324
|
+
after: m = ""
|
|
4325
4325
|
}) {
|
|
4326
|
-
let
|
|
4326
|
+
let f = (k) => {
|
|
4327
4327
|
t && t({
|
|
4328
4328
|
value: k.target.textContent,
|
|
4329
4329
|
name: a,
|
|
@@ -4332,29 +4332,29 @@ function An({
|
|
|
4332
4332
|
}, h = (k) => {
|
|
4333
4333
|
k.key === "Enter" && k.preventDefault();
|
|
4334
4334
|
}, C = (k) => {
|
|
4335
|
-
k.preventDefault(), navigator.clipboard.readText().then((
|
|
4335
|
+
k.preventDefault(), navigator.clipboard.readText().then((b) => {
|
|
4336
4336
|
window.document.execCommand(
|
|
4337
4337
|
"insertText",
|
|
4338
4338
|
!1,
|
|
4339
|
-
|
|
4339
|
+
b.replace(/(\r\n|\n|\r)/gm, " ")
|
|
4340
4340
|
);
|
|
4341
|
-
}).catch((
|
|
4341
|
+
}).catch((b) => {
|
|
4342
4342
|
});
|
|
4343
4343
|
};
|
|
4344
4344
|
const p = {};
|
|
4345
4345
|
p.field = "password", s && (p.className = s);
|
|
4346
|
-
const
|
|
4347
|
-
return r && (
|
|
4346
|
+
const x = {};
|
|
4347
|
+
return r && (x.placeholder = r), u ? "" : /* @__PURE__ */ n.jsxs("dl", { ...p, children: [
|
|
4348
4348
|
i ? /* @__PURE__ */ n.jsx("dt", { children: i }) : "",
|
|
4349
4349
|
/* @__PURE__ */ n.jsx(
|
|
4350
4350
|
"dd",
|
|
4351
4351
|
{
|
|
4352
4352
|
onPaste: C,
|
|
4353
|
-
onInput:
|
|
4353
|
+
onInput: f,
|
|
4354
4354
|
onKeyDown: h,
|
|
4355
4355
|
onBlur: ue.Blur,
|
|
4356
4356
|
contentEditable: l && d ? "plaintext-only" : "false",
|
|
4357
|
-
...
|
|
4357
|
+
...x,
|
|
4358
4358
|
suppressContentEditableWarning: !0,
|
|
4359
4359
|
children: e
|
|
4360
4360
|
}
|
|
@@ -5756,12 +5756,12 @@ function Lt({
|
|
|
5756
5756
|
edit: d = !0,
|
|
5757
5757
|
active: _ = !0,
|
|
5758
5758
|
after: u = "",
|
|
5759
|
-
show:
|
|
5760
|
-
view:
|
|
5759
|
+
show: m = !0,
|
|
5760
|
+
view: f,
|
|
5761
5761
|
className: h = ""
|
|
5762
5762
|
}) {
|
|
5763
|
-
d = d !== void 0 ? d : !0, _ = _ !== void 0 ? _ : !0, l = !!(l && (e === "" || e === void 0)) && !(d && _),
|
|
5764
|
-
let p = "+_(___) ___-__-__",
|
|
5763
|
+
d = d !== void 0 ? d : !0, _ = _ !== void 0 ? _ : !0, l = !!(l && (e === "" || e === void 0)) && !(d && _), g.useRef(null);
|
|
5764
|
+
let p = "+_(___) ___-__-__", x = !0, k = 0, b = (Z, B) => {
|
|
5765
5765
|
let q = document.createRange(), J = window.getSelection();
|
|
5766
5766
|
q.setStart(B.childNodes[0], Z), q.collapse(!0), J.removeAllRanges(), J.addRange(q), B.focus();
|
|
5767
5767
|
}, N = (Z) => {
|
|
@@ -5771,13 +5771,13 @@ function Lt({
|
|
|
5771
5771
|
});
|
|
5772
5772
|
}, T = (Z) => {
|
|
5773
5773
|
let B = 0, q = "", J = Z.replace(/\D/g, "");
|
|
5774
|
-
J === "" && (
|
|
5774
|
+
J === "" && (x = !0);
|
|
5775
5775
|
let ze = J.split(""), oe = "";
|
|
5776
|
-
ze.forEach((
|
|
5777
|
-
|
|
5776
|
+
ze.forEach((Ue) => {
|
|
5777
|
+
x && (oe += Ue, ht[oe] !== void 0 && x ? (x = !1, p = ht[oe].mask.replace(new RegExp("[0-9]", "g"), "_"), q = ht[oe].code) : (x && (k = ("" + oe).length, p = `+${oe}_(___) ___-__-__`.replace(
|
|
5778
5778
|
new RegExp("[0-9]", "g"),
|
|
5779
5779
|
"_"
|
|
5780
|
-
), q = ""), k > ("" + oe).length && (
|
|
5780
|
+
), q = ""), k > ("" + oe).length && (x = !0, p = `+${oe}_(___) ___-__-__`.replace(
|
|
5781
5781
|
new RegExp("[0-9]", "g"),
|
|
5782
5782
|
"_"
|
|
5783
5783
|
), q = "")));
|
|
@@ -5794,9 +5794,9 @@ function Lt({
|
|
|
5794
5794
|
function(B) {
|
|
5795
5795
|
}
|
|
5796
5796
|
);
|
|
5797
|
-
},
|
|
5797
|
+
}, E = T(e), S = (Z) => {
|
|
5798
5798
|
let B = T(Z.target.textContent);
|
|
5799
|
-
Z.target.textContent = B.q, B.i = B.q.lastIndexOf(B.v.substr(-1)), B.i < B.q.length && B.q !== p ? B.i++ : B.i = B.q.indexOf("_"),
|
|
5799
|
+
Z.target.textContent = B.q, B.i = B.q.lastIndexOf(B.v.substr(-1)), B.i < B.q.length && B.q !== p ? B.i++ : B.i = B.q.indexOf("_"), b(B.i, Z.target), t && t({ value: B.q.replace(/\D/g, ""), name: r });
|
|
5800
5800
|
}, D = (Z) => {
|
|
5801
5801
|
Z.key === "Enter" && Z.preventDefault();
|
|
5802
5802
|
};
|
|
@@ -5815,12 +5815,12 @@ function Lt({
|
|
|
5815
5815
|
{
|
|
5816
5816
|
...ne,
|
|
5817
5817
|
onPaste: N,
|
|
5818
|
-
onInput:
|
|
5818
|
+
onInput: S,
|
|
5819
5819
|
onKeyDown: D,
|
|
5820
5820
|
onContextMenu: y,
|
|
5821
5821
|
onBlur: A,
|
|
5822
5822
|
suppressContentEditableWarning: !0,
|
|
5823
|
-
children:
|
|
5823
|
+
children: E.q
|
|
5824
5824
|
}
|
|
5825
5825
|
),
|
|
5826
5826
|
o && /* @__PURE__ */ n.jsx("em", { children: o })
|
|
@@ -5833,9 +5833,9 @@ const Gn = (e) => {
|
|
|
5833
5833
|
}, l = (u) => {
|
|
5834
5834
|
u.key === "Enter" && u.preventDefault();
|
|
5835
5835
|
}, d = (u) => {
|
|
5836
|
-
u.preventDefault(), navigator.clipboard.readText().then((
|
|
5837
|
-
window.document.execCommand("insertText", !1,
|
|
5838
|
-
}).catch((
|
|
5836
|
+
u.preventDefault(), navigator.clipboard.readText().then((m) => {
|
|
5837
|
+
window.document.execCommand("insertText", !1, m);
|
|
5838
|
+
}).catch((m) => {
|
|
5839
5839
|
});
|
|
5840
5840
|
};
|
|
5841
5841
|
const _ = {};
|
|
@@ -5873,12 +5873,12 @@ function Ft({
|
|
|
5873
5873
|
placeholder: d = "",
|
|
5874
5874
|
className: _,
|
|
5875
5875
|
name: u,
|
|
5876
|
-
after:
|
|
5877
|
-
view:
|
|
5876
|
+
after: m,
|
|
5877
|
+
view: f
|
|
5878
5878
|
}) {
|
|
5879
|
-
const h =
|
|
5879
|
+
const h = g.useRef();
|
|
5880
5880
|
s = !!(s && (i === "" || l[i].n === void 0)) && !(a && r);
|
|
5881
|
-
let p = i !== void 0 && i !== "" ? l[i].n : i,
|
|
5881
|
+
let p = i !== void 0 && i !== "" ? l[i].n : i, x = (T) => {
|
|
5882
5882
|
h.current.textContent = l[T].n, o && o({ value: T, name: u });
|
|
5883
5883
|
}, k = (T) => {
|
|
5884
5884
|
if (!(a && r))
|
|
@@ -5890,26 +5890,26 @@ function Ft({
|
|
|
5890
5890
|
hl,
|
|
5891
5891
|
{
|
|
5892
5892
|
parent: y,
|
|
5893
|
-
onValue:
|
|
5894
|
-
view:
|
|
5893
|
+
onValue: x,
|
|
5894
|
+
view: f,
|
|
5895
5895
|
className: _,
|
|
5896
5896
|
options: l
|
|
5897
5897
|
},
|
|
5898
5898
|
(/* @__PURE__ */ new Date()).getTime()
|
|
5899
5899
|
)
|
|
5900
5900
|
);
|
|
5901
|
-
},
|
|
5902
|
-
return d && (N.placeholder = d),
|
|
5901
|
+
}, b = { field: "select", className: _ }, N = { onClick: k };
|
|
5902
|
+
return d && (N.placeholder = d), m && (N.after = m), a && r && (N.edit = ""), s ? "" : /* @__PURE__ */ n.jsxs("dl", { ...b, children: [
|
|
5903
5903
|
e && /* @__PURE__ */ n.jsx("dt", { children: e }),
|
|
5904
5904
|
/* @__PURE__ */ n.jsx("dd", { ...N, ref: h, children: p }),
|
|
5905
5905
|
t && /* @__PURE__ */ n.jsx("em", { children: t })
|
|
5906
5906
|
] });
|
|
5907
5907
|
}
|
|
5908
5908
|
const hl = ({ onValue: e, parent: t, view: a, className: r, options: s }) => {
|
|
5909
|
-
let [i, o] =
|
|
5909
|
+
let [i, o] = g.useState(!0), l = () => {
|
|
5910
5910
|
o(!1);
|
|
5911
|
-
}, d = (
|
|
5912
|
-
o(!1), e(
|
|
5911
|
+
}, d = (m) => {
|
|
5912
|
+
o(!1), e(m);
|
|
5913
5913
|
}, _ = window.innerHeight - t.y + t.height < 320 ? t.y - 312 : t.y + 33, u = window.innerWidth - t.x < 265 ? t.x - 235 : t.x;
|
|
5914
5914
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: i ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
5915
5915
|
/* @__PURE__ */ n.jsx(
|
|
@@ -5931,15 +5931,15 @@ const hl = ({ onValue: e, parent: t, view: a, className: r, options: s }) => {
|
|
|
5931
5931
|
width: t.width
|
|
5932
5932
|
},
|
|
5933
5933
|
children: /* @__PURE__ */ n.jsx("ul", { children: Object.keys(s).map(
|
|
5934
|
-
(
|
|
5934
|
+
(m, f) => s[m].s === 1 ? /* @__PURE__ */ n.jsx(
|
|
5935
5935
|
"li",
|
|
5936
5936
|
{
|
|
5937
5937
|
onClick: () => {
|
|
5938
|
-
d(
|
|
5938
|
+
d(m);
|
|
5939
5939
|
},
|
|
5940
|
-
children: s[
|
|
5940
|
+
children: s[m].n
|
|
5941
5941
|
},
|
|
5942
|
-
|
|
5942
|
+
f
|
|
5943
5943
|
) : ""
|
|
5944
5944
|
) })
|
|
5945
5945
|
}
|
|
@@ -5949,9 +5949,9 @@ const hl = ({ onValue: e, parent: t, view: a, className: r, options: s }) => {
|
|
|
5949
5949
|
function Bt(e) {
|
|
5950
5950
|
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) => {
|
|
5951
5951
|
u(e.options[h]), e.onValue({ value: h, name: e.name });
|
|
5952
|
-
}, [_, u] =
|
|
5952
|
+
}, [_, u] = g.useState(
|
|
5953
5953
|
e.default !== void 0 ? e.options[e.default] : e.default
|
|
5954
|
-
),
|
|
5954
|
+
), m = (h) => {
|
|
5955
5955
|
if (!(r && s))
|
|
5956
5956
|
return;
|
|
5957
5957
|
const C = h.target.getBoundingClientRect();
|
|
@@ -5969,8 +5969,8 @@ function Bt(e) {
|
|
|
5969
5969
|
)
|
|
5970
5970
|
);
|
|
5971
5971
|
};
|
|
5972
|
-
const
|
|
5973
|
-
return l && (
|
|
5972
|
+
const f = {};
|
|
5973
|
+
return l && (f.placeholder = l), o ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs(
|
|
5974
5974
|
"dl",
|
|
5975
5975
|
{
|
|
5976
5976
|
"data-form": "select",
|
|
@@ -5979,9 +5979,9 @@ function Bt(e) {
|
|
|
5979
5979
|
/* @__PURE__ */ n.jsx(
|
|
5980
5980
|
"dd",
|
|
5981
5981
|
{
|
|
5982
|
-
onClick:
|
|
5982
|
+
onClick: m,
|
|
5983
5983
|
"data-edit": (r && s) + "",
|
|
5984
|
-
...
|
|
5984
|
+
...f,
|
|
5985
5985
|
children: _
|
|
5986
5986
|
}
|
|
5987
5987
|
),
|
|
@@ -5991,10 +5991,10 @@ function Bt(e) {
|
|
|
5991
5991
|
);
|
|
5992
5992
|
}
|
|
5993
5993
|
const pl = ({ onValue: e, parent: t, view: a, options: r }) => {
|
|
5994
|
-
let [s, i] =
|
|
5994
|
+
let [s, i] = g.useState(!0), o = () => {
|
|
5995
5995
|
i(!1);
|
|
5996
|
-
}, l = (
|
|
5997
|
-
i(!1), e(
|
|
5996
|
+
}, l = (m) => {
|
|
5997
|
+
i(!1), e(m);
|
|
5998
5998
|
}, d = Object.keys(r).length * 36, _ = window.innerHeight - t.y + t.height < d ? t.y - (d - 33) : t.y + 33, u = window.innerWidth - t.x < 265 ? t.x - 235 : t.x;
|
|
5999
5999
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: s ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
6000
6000
|
/* @__PURE__ */ n.jsx(
|
|
@@ -6014,15 +6014,15 @@ const pl = ({ onValue: e, parent: t, view: a, options: r }) => {
|
|
|
6014
6014
|
left: u + "px",
|
|
6015
6015
|
width: t.width
|
|
6016
6016
|
},
|
|
6017
|
-
children: /* @__PURE__ */ n.jsx("ul", { children: Object.keys(r).map((
|
|
6017
|
+
children: /* @__PURE__ */ n.jsx("ul", { children: Object.keys(r).map((m, f) => /* @__PURE__ */ n.jsx(
|
|
6018
6018
|
"li",
|
|
6019
6019
|
{
|
|
6020
6020
|
onClick: () => {
|
|
6021
|
-
l(
|
|
6021
|
+
l(m);
|
|
6022
6022
|
},
|
|
6023
|
-
children: r[
|
|
6023
|
+
children: r[m]
|
|
6024
6024
|
},
|
|
6025
|
-
|
|
6025
|
+
f
|
|
6026
6026
|
)) })
|
|
6027
6027
|
}
|
|
6028
6028
|
)
|
|
@@ -6040,13 +6040,13 @@ function bt({
|
|
|
6040
6040
|
edit: d = !0,
|
|
6041
6041
|
show: _ = !0,
|
|
6042
6042
|
active: u = !0,
|
|
6043
|
-
after:
|
|
6044
|
-
view:
|
|
6043
|
+
after: m = "",
|
|
6044
|
+
view: f,
|
|
6045
6045
|
module: h,
|
|
6046
6046
|
item: C,
|
|
6047
6047
|
className: p = ""
|
|
6048
6048
|
}) {
|
|
6049
|
-
let
|
|
6049
|
+
let x = {};
|
|
6050
6050
|
switch (e) {
|
|
6051
6051
|
case "Input":
|
|
6052
6052
|
return /* @__PURE__ */ n.jsx(
|
|
@@ -6055,7 +6055,7 @@ function bt({
|
|
|
6055
6055
|
title: i,
|
|
6056
6056
|
show: _,
|
|
6057
6057
|
hide: l,
|
|
6058
|
-
view:
|
|
6058
|
+
view: f,
|
|
6059
6059
|
edit: d,
|
|
6060
6060
|
active: u,
|
|
6061
6061
|
value: t,
|
|
@@ -6066,13 +6066,13 @@ function bt({
|
|
|
6066
6066
|
}
|
|
6067
6067
|
);
|
|
6068
6068
|
case "Select":
|
|
6069
|
-
return C && (
|
|
6069
|
+
return C && (x = se.getSelect(parseInt(C)) ? se.getSelect(parseInt(C)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ n.jsx(
|
|
6070
6070
|
Ft,
|
|
6071
6071
|
{
|
|
6072
6072
|
title: i,
|
|
6073
6073
|
show: _,
|
|
6074
6074
|
hide: l,
|
|
6075
|
-
view:
|
|
6075
|
+
view: f,
|
|
6076
6076
|
edit: d,
|
|
6077
6077
|
active: u,
|
|
6078
6078
|
value: t,
|
|
@@ -6080,7 +6080,7 @@ function bt({
|
|
|
6080
6080
|
name: r,
|
|
6081
6081
|
placeholder: s,
|
|
6082
6082
|
className: p,
|
|
6083
|
-
options:
|
|
6083
|
+
options: x
|
|
6084
6084
|
}
|
|
6085
6085
|
);
|
|
6086
6086
|
case "Users":
|
|
@@ -6090,7 +6090,7 @@ function bt({
|
|
|
6090
6090
|
title: i,
|
|
6091
6091
|
show: _,
|
|
6092
6092
|
hide: l,
|
|
6093
|
-
view:
|
|
6093
|
+
view: f,
|
|
6094
6094
|
edit: d,
|
|
6095
6095
|
active: u,
|
|
6096
6096
|
value: t,
|
|
@@ -6098,7 +6098,7 @@ function bt({
|
|
|
6098
6098
|
name: r,
|
|
6099
6099
|
placeholder: s,
|
|
6100
6100
|
className: p,
|
|
6101
|
-
options:
|
|
6101
|
+
options: x
|
|
6102
6102
|
}
|
|
6103
6103
|
);
|
|
6104
6104
|
case "Date":
|
|
@@ -6108,7 +6108,7 @@ function bt({
|
|
|
6108
6108
|
title: i,
|
|
6109
6109
|
show: _,
|
|
6110
6110
|
hide: l,
|
|
6111
|
-
view:
|
|
6111
|
+
view: f,
|
|
6112
6112
|
edit: d,
|
|
6113
6113
|
active: u,
|
|
6114
6114
|
value: t,
|
|
@@ -6125,7 +6125,7 @@ function bt({
|
|
|
6125
6125
|
title: i,
|
|
6126
6126
|
show: _,
|
|
6127
6127
|
hide: l,
|
|
6128
|
-
view:
|
|
6128
|
+
view: f,
|
|
6129
6129
|
edit: d,
|
|
6130
6130
|
active: u,
|
|
6131
6131
|
value: t,
|
|
@@ -6142,7 +6142,7 @@ function bt({
|
|
|
6142
6142
|
title: i,
|
|
6143
6143
|
show: _,
|
|
6144
6144
|
hide: l,
|
|
6145
|
-
view:
|
|
6145
|
+
view: f,
|
|
6146
6146
|
edit: d,
|
|
6147
6147
|
active: u,
|
|
6148
6148
|
value: t,
|
|
@@ -6159,7 +6159,7 @@ function bt({
|
|
|
6159
6159
|
title: i,
|
|
6160
6160
|
show: _,
|
|
6161
6161
|
hide: l,
|
|
6162
|
-
view:
|
|
6162
|
+
view: f,
|
|
6163
6163
|
edit: d,
|
|
6164
6164
|
active: u,
|
|
6165
6165
|
value: t,
|
|
@@ -6176,7 +6176,7 @@ function bt({
|
|
|
6176
6176
|
title: i,
|
|
6177
6177
|
show: _,
|
|
6178
6178
|
hide: l,
|
|
6179
|
-
view:
|
|
6179
|
+
view: f,
|
|
6180
6180
|
edit: d,
|
|
6181
6181
|
active: u,
|
|
6182
6182
|
value: t,
|
|
@@ -6184,7 +6184,7 @@ function bt({
|
|
|
6184
6184
|
name: r || "",
|
|
6185
6185
|
placeholder: s,
|
|
6186
6186
|
className: p,
|
|
6187
|
-
options:
|
|
6187
|
+
options: x,
|
|
6188
6188
|
module: h || ""
|
|
6189
6189
|
}
|
|
6190
6190
|
);
|
|
@@ -6202,22 +6202,22 @@ function Zn({
|
|
|
6202
6202
|
active: d = !0,
|
|
6203
6203
|
after: _ = "",
|
|
6204
6204
|
show: u = !0,
|
|
6205
|
-
view:
|
|
6206
|
-
onBlur:
|
|
6205
|
+
view: m,
|
|
6206
|
+
onBlur: f,
|
|
6207
6207
|
onSave: h,
|
|
6208
6208
|
className: C = ""
|
|
6209
6209
|
}) {
|
|
6210
6210
|
let p = !!(o && (e === "" || e === void 0));
|
|
6211
6211
|
if (!(l && d) && !u || !(l && d) && p)
|
|
6212
6212
|
return "";
|
|
6213
|
-
let
|
|
6213
|
+
let x = (y) => {
|
|
6214
6214
|
t && t({ value: y.target.innerText, name: a });
|
|
6215
6215
|
}, k = (y) => {
|
|
6216
6216
|
h && h({ value: y.target.innerText, name: a });
|
|
6217
|
-
},
|
|
6218
|
-
y.preventDefault(), navigator.clipboard.readText().then((
|
|
6219
|
-
window.document.execCommand("insertText", !1,
|
|
6220
|
-
}).catch((
|
|
6217
|
+
}, b = (y) => {
|
|
6218
|
+
y.preventDefault(), navigator.clipboard.readText().then((E) => {
|
|
6219
|
+
window.document.execCommand("insertText", !1, E);
|
|
6220
|
+
}).catch((E) => {
|
|
6221
6221
|
});
|
|
6222
6222
|
};
|
|
6223
6223
|
const N = {};
|
|
@@ -6228,9 +6228,9 @@ function Zn({
|
|
|
6228
6228
|
/* @__PURE__ */ n.jsx(
|
|
6229
6229
|
"dd",
|
|
6230
6230
|
{
|
|
6231
|
-
onPaste:
|
|
6231
|
+
onPaste: b,
|
|
6232
6232
|
onBlur: k,
|
|
6233
|
-
onInput:
|
|
6233
|
+
onInput: x,
|
|
6234
6234
|
contentEditable: l && d ? "plaintext-only" : "false",
|
|
6235
6235
|
...T,
|
|
6236
6236
|
suppressContentEditableWarning: !0,
|
|
@@ -6252,29 +6252,29 @@ function zn({
|
|
|
6252
6252
|
active: d = !0,
|
|
6253
6253
|
after: _ = "",
|
|
6254
6254
|
show: u = !0,
|
|
6255
|
-
view:
|
|
6256
|
-
onBlur:
|
|
6255
|
+
view: m,
|
|
6256
|
+
onBlur: f,
|
|
6257
6257
|
onSave: h,
|
|
6258
6258
|
className: C = ""
|
|
6259
6259
|
}) {
|
|
6260
|
-
let p = !!(o && (e === "" || e === void 0)),
|
|
6260
|
+
let p = !!(o && (e === "" || e === void 0)), x = K.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), k = g.useRef(null);
|
|
6261
6261
|
if (!(l && d) && !u || !(l && d) && p)
|
|
6262
6262
|
return "";
|
|
6263
|
-
let
|
|
6264
|
-
k.current.textContent =
|
|
6265
|
-
}, N = (
|
|
6266
|
-
h && h({ value:
|
|
6267
|
-
}, T = (
|
|
6268
|
-
const D =
|
|
6263
|
+
let b = (S) => {
|
|
6264
|
+
k.current.textContent = S, t && t({ value: S, name: a });
|
|
6265
|
+
}, N = (S) => {
|
|
6266
|
+
h && h({ value: S, name: a });
|
|
6267
|
+
}, T = (S) => {
|
|
6268
|
+
const D = S.target.getBoundingClientRect(), A = D.left, H = D.top;
|
|
6269
6269
|
Ee.setListener(
|
|
6270
6270
|
"form",
|
|
6271
6271
|
/* @__PURE__ */ n.jsx(
|
|
6272
|
-
|
|
6272
|
+
gl,
|
|
6273
6273
|
{
|
|
6274
6274
|
positions: { x: A, y: H },
|
|
6275
6275
|
onSave: N,
|
|
6276
|
-
onValue:
|
|
6277
|
-
date:
|
|
6276
|
+
onValue: b,
|
|
6277
|
+
date: x
|
|
6278
6278
|
},
|
|
6279
6279
|
(/* @__PURE__ */ new Date()).getTime()
|
|
6280
6280
|
)
|
|
@@ -6282,8 +6282,8 @@ function zn({
|
|
|
6282
6282
|
};
|
|
6283
6283
|
const y = {};
|
|
6284
6284
|
y.field = "input", C && (y.className = C);
|
|
6285
|
-
const
|
|
6286
|
-
return r && (
|
|
6285
|
+
const E = {};
|
|
6286
|
+
return r && (E.placeholder = r), /* @__PURE__ */ n.jsx(n.Fragment, { children: m === "icon" ? /* @__PURE__ */ n.jsx(
|
|
6287
6287
|
"i",
|
|
6288
6288
|
{
|
|
6289
6289
|
"data-icon": "F043",
|
|
@@ -6291,81 +6291,81 @@ function zn({
|
|
|
6291
6291
|
}
|
|
6292
6292
|
) : /* @__PURE__ */ n.jsxs("dl", { ...y, children: [
|
|
6293
6293
|
s ? /* @__PURE__ */ n.jsx("dt", { children: s }) : "",
|
|
6294
|
-
/* @__PURE__ */ n.jsx("dd", { onClick: T, ref: k, ...
|
|
6294
|
+
/* @__PURE__ */ n.jsx("dd", { onClick: T, ref: k, ...E, children: x }),
|
|
6295
6295
|
i ? /* @__PURE__ */ n.jsx("em", { children: i }) : ""
|
|
6296
6296
|
] }) });
|
|
6297
6297
|
}
|
|
6298
|
-
const
|
|
6298
|
+
const gl = ({ positions: e, onSave: t, onValue: a, date: r }) => {
|
|
6299
6299
|
let s = r.split(":"), i = {
|
|
6300
|
-
h:
|
|
6301
|
-
m:
|
|
6302
|
-
}, o = "hour", [l, d] =
|
|
6303
|
-
body:
|
|
6304
|
-
time:
|
|
6305
|
-
hour:
|
|
6306
|
-
timeText:
|
|
6307
|
-
hourText:
|
|
6300
|
+
h: K.Number(2, s[0]),
|
|
6301
|
+
m: K.Number(2, s[1])
|
|
6302
|
+
}, o = "hour", [l, d] = g.useState({}), _ = !1, u = 0, m = 0, f = {
|
|
6303
|
+
body: g.useRef(null),
|
|
6304
|
+
time: g.useRef(null),
|
|
6305
|
+
hour: g.useRef(null),
|
|
6306
|
+
timeText: g.useRef(null),
|
|
6307
|
+
hourText: g.useRef(null)
|
|
6308
6308
|
};
|
|
6309
|
-
|
|
6310
|
-
d(
|
|
6311
|
-
}, [
|
|
6309
|
+
g.useEffect(() => {
|
|
6310
|
+
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)";
|
|
6311
|
+
}, [f.body, f.hour, f.time, i.m, i.h]);
|
|
6312
6312
|
let h = () => {
|
|
6313
6313
|
_ = !0;
|
|
6314
6314
|
}, C = () => {
|
|
6315
|
-
_ = !1, o = o === "hour" ? "time" : "hour",
|
|
6316
|
-
}, p = (
|
|
6315
|
+
_ = !1, o = o === "hour" ? "time" : "hour", f.body.current.setAttribute("active", o);
|
|
6316
|
+
}, p = (E) => {
|
|
6317
6317
|
if (_) {
|
|
6318
6318
|
let D = Math.atan2(
|
|
6319
|
-
|
|
6320
|
-
|
|
6319
|
+
E.pageX - (l.x + 78),
|
|
6320
|
+
E.pageY - (l.y + 78)
|
|
6321
6321
|
) * (180 / Math.PI) * -1 + 180;
|
|
6322
|
-
|
|
6322
|
+
f[o].current.style.transform = "rotate(" + D + "deg)", o === "hour" ? (i = {
|
|
6323
6323
|
...i,
|
|
6324
|
-
h:
|
|
6325
|
-
},
|
|
6324
|
+
h: K.Number(2, parseInt(String(D / 15), 10))
|
|
6325
|
+
}, f.hourText.current.textContent = i.h) : (i = {
|
|
6326
6326
|
...i,
|
|
6327
|
-
m:
|
|
6328
|
-
},
|
|
6327
|
+
m: K.Number(2, parseInt(String(D / 6), 10))
|
|
6328
|
+
}, f.timeText.current.textContent = i.m), a(i.h + ":" + i.m);
|
|
6329
6329
|
}
|
|
6330
|
-
},
|
|
6330
|
+
}, x = (E) => {
|
|
6331
6331
|
if (o === "hour")
|
|
6332
|
-
if (
|
|
6333
|
-
u +=
|
|
6334
|
-
let
|
|
6335
|
-
if (
|
|
6336
|
-
|
|
6332
|
+
if (E.deltaY > 0) {
|
|
6333
|
+
u += E.deltaY;
|
|
6334
|
+
let S = parseInt(String(u / 50));
|
|
6335
|
+
if (m !== S) {
|
|
6336
|
+
m = S;
|
|
6337
6337
|
let D = parseInt(i.h, 10) + 1;
|
|
6338
|
-
D = D > 23 ? 0 : D, i = { ...i, h:
|
|
6338
|
+
D = D > 23 ? 0 : D, i = { ...i, h: K.Number(2, D) }, f.hourText.current.textContent = i.h, f[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
|
|
6339
6339
|
}
|
|
6340
6340
|
} else {
|
|
6341
|
-
u -=
|
|
6342
|
-
let
|
|
6343
|
-
if (
|
|
6344
|
-
|
|
6341
|
+
u -= E.deltaY;
|
|
6342
|
+
let S = parseInt(String(u / 50));
|
|
6343
|
+
if (m !== S) {
|
|
6344
|
+
m = S;
|
|
6345
6345
|
let D = parseInt(i.h, 10) - 1;
|
|
6346
|
-
D = D < 0 ? 23 : D, i = { ...i, h:
|
|
6346
|
+
D = D < 0 ? 23 : D, i = { ...i, h: K.Number(2, D) }, f.hourText.current.textContent = i.h, f[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
|
|
6347
6347
|
}
|
|
6348
6348
|
}
|
|
6349
|
-
else if (
|
|
6350
|
-
u +=
|
|
6351
|
-
let
|
|
6352
|
-
if (
|
|
6353
|
-
|
|
6349
|
+
else if (E.deltaY > 0) {
|
|
6350
|
+
u += E.deltaY;
|
|
6351
|
+
let S = parseInt(String(u / 50));
|
|
6352
|
+
if (m !== S) {
|
|
6353
|
+
m = S;
|
|
6354
6354
|
let D = parseInt(i.m, 10) + 1;
|
|
6355
|
-
D = D > 59 ? 0 : D, i = { ...i, m:
|
|
6355
|
+
D = D > 59 ? 0 : D, i = { ...i, m: K.Number(2, D) }, f.timeText.current.textContent = i.m, f[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
|
|
6356
6356
|
}
|
|
6357
6357
|
} else {
|
|
6358
|
-
u -=
|
|
6359
|
-
let
|
|
6360
|
-
if (
|
|
6361
|
-
|
|
6358
|
+
u -= E.deltaY;
|
|
6359
|
+
let S = parseInt(String(u / 50));
|
|
6360
|
+
if (m !== S) {
|
|
6361
|
+
m = S;
|
|
6362
6362
|
let D = parseInt(i.m, 10) - 1;
|
|
6363
|
-
D = D < 0 ? 59 : D, i = { ...i, m:
|
|
6363
|
+
D = D < 0 ? 59 : D, i = { ...i, m: K.Number(2, D) }, f.timeText.current.textContent = i.m, f[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
|
|
6364
6364
|
}
|
|
6365
6365
|
}
|
|
6366
6366
|
a(i.h + ":" + i.m);
|
|
6367
|
-
}, [k,
|
|
6368
|
-
|
|
6367
|
+
}, [k, b] = g.useState(!0), N = () => {
|
|
6368
|
+
b(!1), t(i.h + ":" + i.m);
|
|
6369
6369
|
}, T = window.innerHeight - e.y + 33 < 320 ? e.y - 312 : e.y + 33, y = window.innerWidth - e.x < 265 ? e.x - 235 : e.x;
|
|
6370
6370
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: k ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
6371
6371
|
/* @__PURE__ */ n.jsx(
|
|
@@ -6383,26 +6383,26 @@ const xl = ({ positions: e, onSave: t, onValue: a, date: r }) => {
|
|
|
6383
6383
|
onMouseDown: h,
|
|
6384
6384
|
onMouseUp: C,
|
|
6385
6385
|
onMouseMove: p,
|
|
6386
|
-
onWheel:
|
|
6387
|
-
ref:
|
|
6386
|
+
onWheel: x,
|
|
6387
|
+
ref: f.body,
|
|
6388
6388
|
style: { top: T + "px", left: y + "px" },
|
|
6389
6389
|
children: [
|
|
6390
6390
|
/* @__PURE__ */ n.jsx("div", { className: "b" }),
|
|
6391
6391
|
/* @__PURE__ */ n.jsxs("div", { className: "s", children: [
|
|
6392
|
-
/* @__PURE__ */ n.jsx("span", { className: "hour", ref:
|
|
6392
|
+
/* @__PURE__ */ n.jsx("span", { className: "hour", ref: f.hourText, children: i.h }),
|
|
6393
6393
|
" ",
|
|
6394
6394
|
":",
|
|
6395
6395
|
" ",
|
|
6396
|
-
/* @__PURE__ */ n.jsx("span", { className: "min", ref:
|
|
6396
|
+
/* @__PURE__ */ n.jsx("span", { className: "min", ref: f.timeText, children: i.m })
|
|
6397
6397
|
] }),
|
|
6398
|
-
/* @__PURE__ */ n.jsx("div", { className: "h", ref:
|
|
6399
|
-
/* @__PURE__ */ n.jsx("div", { className: "t", ref:
|
|
6398
|
+
/* @__PURE__ */ n.jsx("div", { className: "h", ref: f.hour }),
|
|
6399
|
+
/* @__PURE__ */ n.jsx("div", { className: "t", ref: f.time })
|
|
6400
6400
|
]
|
|
6401
6401
|
}
|
|
6402
6402
|
)
|
|
6403
6403
|
] }) : "" });
|
|
6404
6404
|
};
|
|
6405
|
-
function
|
|
6405
|
+
function Un({
|
|
6406
6406
|
onValue: e,
|
|
6407
6407
|
label: t,
|
|
6408
6408
|
value: a,
|
|
@@ -6413,17 +6413,17 @@ function Kn({
|
|
|
6413
6413
|
id: l,
|
|
6414
6414
|
reload: d
|
|
6415
6415
|
}) {
|
|
6416
|
-
const [_, u] =
|
|
6417
|
-
|
|
6416
|
+
const [_, u] = g.useState(!!a), m = t || r;
|
|
6417
|
+
g.useEffect(() => {
|
|
6418
6418
|
u(!!a);
|
|
6419
6419
|
}, [a]);
|
|
6420
|
-
let
|
|
6420
|
+
let f = () => {
|
|
6421
6421
|
e && e({ value: _ ? 0 : 1, name: i, id: l }), u(!_);
|
|
6422
6422
|
};
|
|
6423
6423
|
const h = {};
|
|
6424
6424
|
return h.field = "check", s && (h.className = s), /* @__PURE__ */ n.jsxs("dl", { ...h, children: [
|
|
6425
|
-
|
|
6426
|
-
/* @__PURE__ */ n.jsxs("dd", { onClick:
|
|
6425
|
+
m ? /* @__PURE__ */ n.jsx("dt", { children: m }) : "",
|
|
6426
|
+
/* @__PURE__ */ n.jsxs("dd", { onClick: f, children: [
|
|
6427
6427
|
/* @__PURE__ */ n.jsx("span", { children: o }),
|
|
6428
6428
|
/* @__PURE__ */ n.jsx(
|
|
6429
6429
|
"div",
|
|
@@ -6435,9 +6435,9 @@ function Kn({
|
|
|
6435
6435
|
] })
|
|
6436
6436
|
] });
|
|
6437
6437
|
}
|
|
6438
|
-
const
|
|
6439
|
-
const [i, o] =
|
|
6440
|
-
|
|
6438
|
+
const xl = ({ label: e, onValue: t, value: a, name: r, item: s }) => {
|
|
6439
|
+
const [i, o] = g.useState(!!a);
|
|
6440
|
+
g.useEffect(() => {
|
|
6441
6441
|
o(!!a);
|
|
6442
6442
|
}, [a]);
|
|
6443
6443
|
let l = () => {
|
|
@@ -6452,9 +6452,9 @@ const gl = ({ label: e, onValue: t, value: a, name: r, item: s }) => {
|
|
|
6452
6452
|
"aria-checked": `${i ? "true" : "false"}`
|
|
6453
6453
|
}
|
|
6454
6454
|
);
|
|
6455
|
-
},
|
|
6456
|
-
const [s, i] =
|
|
6457
|
-
|
|
6455
|
+
}, Kn = ({ onValue: e, value: t, name: a, item: r }) => {
|
|
6456
|
+
const [s, i] = g.useState(!!t);
|
|
6457
|
+
g.useEffect(() => {
|
|
6458
6458
|
i(!!t);
|
|
6459
6459
|
}, [t]);
|
|
6460
6460
|
let o = () => {
|
|
@@ -6470,7 +6470,7 @@ const gl = ({ label: e, onValue: t, value: a, name: r, item: s }) => {
|
|
|
6470
6470
|
}
|
|
6471
6471
|
);
|
|
6472
6472
|
};
|
|
6473
|
-
function
|
|
6473
|
+
function Wn({
|
|
6474
6474
|
value: e,
|
|
6475
6475
|
onValue: t,
|
|
6476
6476
|
name: a,
|
|
@@ -6482,31 +6482,31 @@ function Un({
|
|
|
6482
6482
|
active: d = !0,
|
|
6483
6483
|
after: _ = "",
|
|
6484
6484
|
show: u = !0,
|
|
6485
|
-
view:
|
|
6486
|
-
onSave:
|
|
6485
|
+
view: m,
|
|
6486
|
+
onSave: f,
|
|
6487
6487
|
className: h = "",
|
|
6488
6488
|
separator: C = ","
|
|
6489
6489
|
}) {
|
|
6490
|
-
const [p,
|
|
6490
|
+
const [p, x] = g.useState(
|
|
6491
6491
|
e !== void 0 ? e.split(C) : []
|
|
6492
6492
|
);
|
|
6493
|
-
|
|
6494
|
-
|
|
6493
|
+
g.useEffect(() => {
|
|
6494
|
+
x(e !== void 0 ? e !== void 0 ? e.split(C) : [] : []);
|
|
6495
6495
|
}, [e]);
|
|
6496
6496
|
let k = () => {
|
|
6497
|
-
|
|
6498
|
-
},
|
|
6499
|
-
p.splice(A, 1), p.length === 0 && p.push(""),
|
|
6497
|
+
x([...p, ""]);
|
|
6498
|
+
}, b = (A) => {
|
|
6499
|
+
p.splice(A, 1), p.length === 0 && p.push(""), x([...p]), f !== void 0 && f({ value: p.join(C), name: a });
|
|
6500
6500
|
}, N = !!(o && (e === "" || e === void 0)), T = (A) => {
|
|
6501
6501
|
};
|
|
6502
6502
|
if (!(l && d) && !u || !(l && d) && N)
|
|
6503
6503
|
return "";
|
|
6504
6504
|
const y = {};
|
|
6505
6505
|
y.field = "group", h && (y.className = h);
|
|
6506
|
-
const
|
|
6507
|
-
ue.Blur(A), p[H] = A.target.textContent,
|
|
6506
|
+
const E = (A, H) => {
|
|
6507
|
+
ue.Blur(A), p[H] = A.target.textContent, f && f({ value: p.join(C), name: a });
|
|
6508
6508
|
};
|
|
6509
|
-
let
|
|
6509
|
+
let S = (A, H) => {
|
|
6510
6510
|
p[H] = A.target.textContent, t && t({ value: p.join(C), name: a });
|
|
6511
6511
|
}, D = (A) => {
|
|
6512
6512
|
A.key === "Enter" && A.preventDefault();
|
|
@@ -6535,14 +6535,14 @@ function Un({
|
|
|
6535
6535
|
/* @__PURE__ */ n.jsx(
|
|
6536
6536
|
"span",
|
|
6537
6537
|
{
|
|
6538
|
-
onInput: (ne) =>
|
|
6538
|
+
onInput: (ne) => S(ne, H),
|
|
6539
6539
|
edit: "true",
|
|
6540
6540
|
name: a,
|
|
6541
6541
|
placeholder: r,
|
|
6542
6542
|
onPaste: T,
|
|
6543
6543
|
contentEditable: l && d ? "plaintext-only" : "false",
|
|
6544
6544
|
onKeyDown: D,
|
|
6545
|
-
onBlur: (ne) =>
|
|
6545
|
+
onBlur: (ne) => E(ne, H),
|
|
6546
6546
|
suppressContentEditableWarning: !0,
|
|
6547
6547
|
children: p[H]
|
|
6548
6548
|
}
|
|
@@ -6551,7 +6551,7 @@ function Un({
|
|
|
6551
6551
|
"i",
|
|
6552
6552
|
{
|
|
6553
6553
|
onClick: () => {
|
|
6554
|
-
|
|
6554
|
+
b(H);
|
|
6555
6555
|
},
|
|
6556
6556
|
children: /* @__PURE__ */ n.jsxs(
|
|
6557
6557
|
"svg",
|
|
@@ -6588,24 +6588,24 @@ function Hn({
|
|
|
6588
6588
|
show: d = !0,
|
|
6589
6589
|
active: _ = !0,
|
|
6590
6590
|
after: u = "",
|
|
6591
|
-
view:
|
|
6592
|
-
modal:
|
|
6591
|
+
view: m,
|
|
6592
|
+
modal: f,
|
|
6593
6593
|
module: h,
|
|
6594
6594
|
options: C,
|
|
6595
6595
|
className: p
|
|
6596
6596
|
}) {
|
|
6597
|
-
const [
|
|
6598
|
-
if (!(l && _) || !
|
|
6597
|
+
const [x, k] = g.useState(vl(e)), b = (y) => {
|
|
6598
|
+
if (!(l && _) || !f)
|
|
6599
6599
|
return;
|
|
6600
|
-
let
|
|
6601
|
-
tt.Open(
|
|
6602
|
-
callback: (
|
|
6603
|
-
t && t({ value:
|
|
6600
|
+
let E = f.split(".");
|
|
6601
|
+
tt.Open(E[0], E[1], {
|
|
6602
|
+
callback: (S) => {
|
|
6603
|
+
t && t({ value: S, name: a }), k(S);
|
|
6604
6604
|
},
|
|
6605
6605
|
onValue: t,
|
|
6606
6606
|
options: C,
|
|
6607
6607
|
name: a,
|
|
6608
|
-
value:
|
|
6608
|
+
value: x
|
|
6609
6609
|
});
|
|
6610
6610
|
}, N = {};
|
|
6611
6611
|
N.field = "group", p && (N.className = p);
|
|
@@ -6613,7 +6613,7 @@ function Hn({
|
|
|
6613
6613
|
return r && (T.placeholder = r), o ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...N, children: [
|
|
6614
6614
|
/* @__PURE__ */ n.jsxs("dt", { children: [
|
|
6615
6615
|
s,
|
|
6616
|
-
/* @__PURE__ */ n.jsx("i", { onClick:
|
|
6616
|
+
/* @__PURE__ */ n.jsx("i", { onClick: b, children: /* @__PURE__ */ n.jsxs(
|
|
6617
6617
|
"svg",
|
|
6618
6618
|
{
|
|
6619
6619
|
width: "20",
|
|
@@ -6638,9 +6638,9 @@ function Hn({
|
|
|
6638
6638
|
onClick: open,
|
|
6639
6639
|
edit: (l && _) + "",
|
|
6640
6640
|
"data-after": u,
|
|
6641
|
-
children: Object.keys(
|
|
6642
|
-
var
|
|
6643
|
-
return /* @__PURE__ */ n.jsx("div", { className: "field_group_item", children: (
|
|
6641
|
+
children: Object.keys(x).map((y) => {
|
|
6642
|
+
var E;
|
|
6643
|
+
return /* @__PURE__ */ n.jsx("div", { className: "field_group_item", children: (E = C[y]) == null ? void 0 : E.label }, y);
|
|
6644
6644
|
})
|
|
6645
6645
|
}
|
|
6646
6646
|
),
|
|
@@ -6659,42 +6659,50 @@ function Cl({
|
|
|
6659
6659
|
edit: d = !0,
|
|
6660
6660
|
active: _ = !0,
|
|
6661
6661
|
after: u = "",
|
|
6662
|
-
show:
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6662
|
+
show: m = !0,
|
|
6663
|
+
type: f,
|
|
6664
|
+
view: h,
|
|
6665
|
+
onBlur: C,
|
|
6666
|
+
onSave: p,
|
|
6667
|
+
className: x = ""
|
|
6667
6668
|
}) {
|
|
6668
|
-
const
|
|
6669
|
-
let
|
|
6670
|
-
if (!(d && _) && !
|
|
6669
|
+
const k = g.useId();
|
|
6670
|
+
let b = !!(l && (e === "" || e === void 0)), [N, T] = g.useState(i);
|
|
6671
|
+
if (!(d && _) && !m || !(d && _) && b)
|
|
6671
6672
|
return "";
|
|
6672
|
-
const
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
|
|
6676
|
-
|
|
6677
|
-
|
|
6673
|
+
const y = async (S) => {
|
|
6674
|
+
if (f) {
|
|
6675
|
+
let D = jl(S, f, e || "default");
|
|
6676
|
+
t == null || t({ name: a, value: D }), T(URL.createObjectURL(D));
|
|
6677
|
+
} else
|
|
6678
|
+
t == null || t({ name: a, value: S }), T(URL.createObjectURL(S));
|
|
6679
|
+
}, E = {};
|
|
6680
|
+
return E.field = "file", x && (E.className = x), /* @__PURE__ */ n.jsxs("dl", { ...E, children: [
|
|
6681
|
+
s && /* @__PURE__ */ n.jsxs("dt", { children: [
|
|
6682
|
+
s,
|
|
6683
|
+
" "
|
|
6684
|
+
] }),
|
|
6685
|
+
/* @__PURE__ */ n.jsxs(kl, { onFiles: y, children: [
|
|
6678
6686
|
/* @__PURE__ */ n.jsx(
|
|
6679
6687
|
"input",
|
|
6680
6688
|
{
|
|
6681
|
-
id:
|
|
6689
|
+
id: k,
|
|
6682
6690
|
type: "file",
|
|
6683
6691
|
multiple: !0,
|
|
6684
|
-
onChange: (
|
|
6685
|
-
|
|
6692
|
+
onChange: (S) => {
|
|
6693
|
+
S.target.files[0] && y(S.target.files[0]);
|
|
6686
6694
|
}
|
|
6687
6695
|
}
|
|
6688
6696
|
),
|
|
6689
|
-
/* @__PURE__ */ n.jsx("label", { htmlFor:
|
|
6690
|
-
/* @__PURE__ */ n.jsx("img", { src:
|
|
6697
|
+
/* @__PURE__ */ n.jsx("label", { htmlFor: k }),
|
|
6698
|
+
/* @__PURE__ */ n.jsx("img", { src: N })
|
|
6691
6699
|
] }),
|
|
6692
6700
|
o && /* @__PURE__ */ n.jsx("em", { children: o })
|
|
6693
6701
|
] });
|
|
6694
6702
|
}
|
|
6695
6703
|
const kl = ({ children: e, onFiles: t }) => {
|
|
6696
|
-
const a =
|
|
6697
|
-
return
|
|
6704
|
+
const a = g.useRef(null);
|
|
6705
|
+
return g.useEffect(() => {
|
|
6698
6706
|
if (a.preventDefaults)
|
|
6699
6707
|
return;
|
|
6700
6708
|
a.preventDefaults = (s) => {
|
|
@@ -6718,16 +6726,25 @@ const kl = ({ children: e, onFiles: t }) => {
|
|
|
6718
6726
|
r.addEventListener(s, a.unhighlight, !1);
|
|
6719
6727
|
}), r.addEventListener("drop", a.onHandleDrop, !1);
|
|
6720
6728
|
}, []), /* @__PURE__ */ n.jsx("dd", { ref: a, children: e });
|
|
6721
|
-
}, jl =
|
|
6722
|
-
var r =
|
|
6723
|
-
r.
|
|
6724
|
-
|
|
6725
|
-
|
|
6726
|
-
|
|
6727
|
-
|
|
6728
|
-
|
|
6729
|
-
|
|
6730
|
-
|
|
6729
|
+
}, jl = (e, t, a) => {
|
|
6730
|
+
var r = document.getElementsByTagName("body")[0], s = document.createElement("canvas");
|
|
6731
|
+
r.appendChild(s);
|
|
6732
|
+
const i = s.getContext("2d"), o = new Image();
|
|
6733
|
+
o.addEventListener("load", () => {
|
|
6734
|
+
i.drawImage(o, 0, 0);
|
|
6735
|
+
const l = t === "png" ? s.toDataURL() : s.toDataURL(`image/${t}`), d = yl(l, a);
|
|
6736
|
+
return s.remove(), d;
|
|
6737
|
+
}), o.src = URL.createObjectURL(e);
|
|
6738
|
+
};
|
|
6739
|
+
function yl(e, t) {
|
|
6740
|
+
let a = e.split(","), r = a[0].match(/:(.*?);/)[1], s = atob(a[1]), i = s.length, o = new Uint8Array(i);
|
|
6741
|
+
for (; i--; )
|
|
6742
|
+
o[i] = s.charCodeAt(i);
|
|
6743
|
+
return new File([o], t, { type: r });
|
|
6744
|
+
}
|
|
6745
|
+
const fe = {};
|
|
6746
|
+
function wl(e) {
|
|
6747
|
+
const [t, a] = g.useState({}), r = g.useRef(e);
|
|
6731
6748
|
return fe.u = (s) => {
|
|
6732
6749
|
r.current = { ...r.current, [s.name]: s.value };
|
|
6733
6750
|
}, fe.n = (s) => {
|
|
@@ -6736,18 +6753,18 @@ function yl(e) {
|
|
|
6736
6753
|
a(Date.now());
|
|
6737
6754
|
}, [r.current, fe.n];
|
|
6738
6755
|
}
|
|
6739
|
-
function
|
|
6756
|
+
function bl(e) {
|
|
6740
6757
|
fe.u(e), e.reload && fe.r();
|
|
6741
6758
|
}
|
|
6742
|
-
function
|
|
6759
|
+
function Sl() {
|
|
6743
6760
|
fe.r && fe.r();
|
|
6744
6761
|
}
|
|
6745
|
-
const
|
|
6762
|
+
const fc = {
|
|
6746
6763
|
Color: $n,
|
|
6747
6764
|
Date: Nt,
|
|
6748
6765
|
Image: Cl,
|
|
6749
6766
|
Code: Bn,
|
|
6750
|
-
Check:
|
|
6767
|
+
Check: Un,
|
|
6751
6768
|
Switch: In,
|
|
6752
6769
|
Input: Pe,
|
|
6753
6770
|
Button: Tn,
|
|
@@ -6769,18 +6786,18 @@ const uc = {
|
|
|
6769
6786
|
Users: Bt,
|
|
6770
6787
|
String: Pe,
|
|
6771
6788
|
Form: bt,
|
|
6772
|
-
runReload:
|
|
6773
|
-
useData:
|
|
6774
|
-
setValue:
|
|
6775
|
-
Palette:
|
|
6776
|
-
Toogle:
|
|
6777
|
-
Group:
|
|
6789
|
+
runReload: Sl,
|
|
6790
|
+
useData: wl,
|
|
6791
|
+
setValue: bl,
|
|
6792
|
+
Palette: xl,
|
|
6793
|
+
Toogle: Kn,
|
|
6794
|
+
Group: Wn,
|
|
6778
6795
|
Options: Hn
|
|
6779
|
-
},
|
|
6796
|
+
}, mc = {
|
|
6780
6797
|
Color: $n,
|
|
6781
6798
|
Date: Nt,
|
|
6782
6799
|
Code: Bn,
|
|
6783
|
-
Check:
|
|
6800
|
+
Check: Un,
|
|
6784
6801
|
Switch: In,
|
|
6785
6802
|
Input: Pe,
|
|
6786
6803
|
Button: Tn,
|
|
@@ -6801,15 +6818,15 @@ const uc = {
|
|
|
6801
6818
|
Time: zn,
|
|
6802
6819
|
Users: Bt,
|
|
6803
6820
|
String: Pe,
|
|
6804
|
-
Toogle:
|
|
6805
|
-
Group:
|
|
6821
|
+
Toogle: Kn,
|
|
6822
|
+
Group: Wn,
|
|
6806
6823
|
Options: Hn
|
|
6807
|
-
},
|
|
6808
|
-
spinner:
|
|
6809
|
-
l:
|
|
6810
|
-
loadingB:
|
|
6824
|
+
}, El = "_spinner_o487n_1", Rl = "_l_o487n_75", Dl = "_loadingB_o487n_1", Yn = {
|
|
6825
|
+
spinner: El,
|
|
6826
|
+
l: Rl,
|
|
6827
|
+
loadingB: Dl
|
|
6811
6828
|
};
|
|
6812
|
-
function
|
|
6829
|
+
function Nl() {
|
|
6813
6830
|
return /* @__PURE__ */ n.jsx("div", { className: Yn.spinner, children: /* @__PURE__ */ n.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 483 484", children: /* @__PURE__ */ n.jsx(
|
|
6814
6831
|
"path",
|
|
6815
6832
|
{
|
|
@@ -6818,18 +6835,18 @@ function Dl() {
|
|
|
6818
6835
|
}
|
|
6819
6836
|
) }) });
|
|
6820
6837
|
}
|
|
6821
|
-
function
|
|
6838
|
+
function Il() {
|
|
6822
6839
|
return /* @__PURE__ */ n.jsxs("div", { className: Yn.l, children: [
|
|
6823
6840
|
/* @__PURE__ */ n.jsx("i", {}),
|
|
6824
6841
|
/* @__PURE__ */ n.jsx("i", {}),
|
|
6825
6842
|
/* @__PURE__ */ n.jsx("i", {})
|
|
6826
6843
|
] });
|
|
6827
6844
|
}
|
|
6828
|
-
const
|
|
6829
|
-
s:
|
|
6845
|
+
const hc = { Spinner: Nl, Inline: Il }, Tl = "_s_t9swc_1", mn = {
|
|
6846
|
+
s: Tl
|
|
6830
6847
|
};
|
|
6831
6848
|
let $t;
|
|
6832
|
-
function
|
|
6849
|
+
function Ml({ className: e, placeholder: t }) {
|
|
6833
6850
|
let a = (o) => {
|
|
6834
6851
|
$t(o.target.textContent);
|
|
6835
6852
|
}, r = (o) => {
|
|
@@ -6853,7 +6870,7 @@ function Tl({ className: e, placeholder: t }) {
|
|
|
6853
6870
|
}
|
|
6854
6871
|
);
|
|
6855
6872
|
}
|
|
6856
|
-
function
|
|
6873
|
+
function Ll(e, t, a) {
|
|
6857
6874
|
let r = [], s = 1, i = 0, o = {}, l = 50;
|
|
6858
6875
|
return o[s] = [], e.forEach((d) => {
|
|
6859
6876
|
d.text.toLowerCase().indexOf(t) > -1 && r.push(d.id);
|
|
@@ -6861,17 +6878,17 @@ function Ml(e, t, a) {
|
|
|
6861
6878
|
i++, i <= l || (s++, i = 1, o[s] = []), o[s].push(a[d]);
|
|
6862
6879
|
}), o;
|
|
6863
6880
|
}
|
|
6864
|
-
function
|
|
6881
|
+
function Fl(e) {
|
|
6865
6882
|
$t = e;
|
|
6866
6883
|
}
|
|
6867
|
-
function
|
|
6884
|
+
function Bl(e) {
|
|
6868
6885
|
$t = e;
|
|
6869
6886
|
}
|
|
6870
|
-
const
|
|
6871
|
-
f:
|
|
6887
|
+
const pc = { Field: Ml, Run: Ll, Get: Fl, useValue: Bl }, $l = "_f_q3r0i_1", Pl = {
|
|
6888
|
+
f: $l
|
|
6872
6889
|
};
|
|
6873
6890
|
let ie = {};
|
|
6874
|
-
function
|
|
6891
|
+
function Ol(e, t) {
|
|
6875
6892
|
switch (t.type) {
|
|
6876
6893
|
case "open":
|
|
6877
6894
|
return {
|
|
@@ -6921,8 +6938,8 @@ function Pl(e, t) {
|
|
|
6921
6938
|
throw new Error();
|
|
6922
6939
|
}
|
|
6923
6940
|
}
|
|
6924
|
-
function
|
|
6925
|
-
const [e, t] =
|
|
6941
|
+
function Al() {
|
|
6942
|
+
const [e, t] = g.useReducer(Ol, {
|
|
6926
6943
|
open: !1,
|
|
6927
6944
|
view: null,
|
|
6928
6945
|
data: {},
|
|
@@ -6940,7 +6957,7 @@ function Ol() {
|
|
|
6940
6957
|
/* @__PURE__ */ n.jsxs(
|
|
6941
6958
|
"div",
|
|
6942
6959
|
{
|
|
6943
|
-
className:
|
|
6960
|
+
className: Pl.f,
|
|
6944
6961
|
onClick: () => {
|
|
6945
6962
|
t({ type: "open", open: !0 });
|
|
6946
6963
|
},
|
|
@@ -6987,16 +7004,16 @@ function Ol() {
|
|
|
6987
7004
|
] }) : /* @__PURE__ */ n.jsx(n.Fragment, {})
|
|
6988
7005
|
] });
|
|
6989
7006
|
}
|
|
6990
|
-
function
|
|
7007
|
+
function Gl(e) {
|
|
6991
7008
|
ie.get = e;
|
|
6992
7009
|
}
|
|
6993
|
-
function
|
|
7010
|
+
function Zl(e) {
|
|
6994
7011
|
ie.set !== void 0 && ie.set(e);
|
|
6995
7012
|
}
|
|
6996
|
-
function
|
|
7013
|
+
function zl(e) {
|
|
6997
7014
|
ie.reset !== void 0 && ie.reset(e);
|
|
6998
7015
|
}
|
|
6999
|
-
function
|
|
7016
|
+
function Ul(e, t, a, r) {
|
|
7000
7017
|
let s = [], i = 1, o = 0, l = {}, d = 50;
|
|
7001
7018
|
return l[i] = [], r === !0 && (Object.keys(t).forEach((_) => {
|
|
7002
7019
|
Number.parseInt(t[_]) !== 999 && (e = e.filter(
|
|
@@ -7065,11 +7082,11 @@ function Wl({ data: e, head: t, state: a, dispatch: r, type: s }) {
|
|
|
7065
7082
|
}
|
|
7066
7083
|
);
|
|
7067
7084
|
}
|
|
7068
|
-
const
|
|
7069
|
-
p:
|
|
7070
|
-
l:
|
|
7085
|
+
const gc = { Button: Al, useValue: Gl, Set: Zl, Run: Ul, Count: Vn, Reset: zl }, xc = { Bell: _s, Send: ls, Add: os }, Hl = "_p_djnh1_1", Yl = "_l_djnh1_38", qn = {
|
|
7086
|
+
p: Hl,
|
|
7087
|
+
l: Yl
|
|
7071
7088
|
};
|
|
7072
|
-
function
|
|
7089
|
+
function Vl(e) {
|
|
7073
7090
|
let t = 3, a = e.page, r = e.count, s = [], i = () => {
|
|
7074
7091
|
s.push({ page: 1 }), s.push({ text: "..." });
|
|
7075
7092
|
}, o = () => {
|
|
@@ -7087,7 +7104,7 @@ function Yl(e) {
|
|
|
7087
7104
|
/* @__PURE__ */ n.jsx("i", { onClick: () => e.onChangePage(a + 1), children: /* @__PURE__ */ n.jsx("svg", { viewBox: "0 0 24 24", children: /* @__PURE__ */ n.jsx("path", { d: "M8.19486 5.40705C8.52237 4.96235 9.14837 4.86736 9.59306 5.19488C9.93847 5.44927 10.2668 5.70372 10.5528 5.92689C11.1236 6.3724 11.8882 6.98573 12.6556 7.65208C13.4181 8.31412 14.2064 9.04815 14.8119 9.73344C15.1136 10.0749 15.3911 10.4279 15.5986 10.7721C15.7895 11.0888 16 11.524 16 12.0001C16 12.4762 15.7895 12.9115 15.5986 13.2282C15.3911 13.5724 15.1136 13.9253 14.8119 14.2668C14.2064 14.9521 13.4181 15.6861 12.6556 16.3482C11.8882 17.0145 11.1236 17.6278 10.5528 18.0734C10.2668 18.2965 9.93847 18.551 9.59307 18.8054C9.14837 19.1329 8.52237 19.0379 8.19486 18.5932C8.0632 18.4144 7.99983 18.2064 8.00001 18.0002L8 12.0001L8 6.00007C7.99983 5.79387 8.0632 5.58581 8.19486 5.40705Z" }) }) })
|
|
7088
7105
|
] });
|
|
7089
7106
|
}
|
|
7090
|
-
function
|
|
7107
|
+
function ql(e, t) {
|
|
7091
7108
|
switch (t.type) {
|
|
7092
7109
|
case "load":
|
|
7093
7110
|
return {
|
|
@@ -7109,7 +7126,7 @@ function Vl(e, t) {
|
|
|
7109
7126
|
}
|
|
7110
7127
|
}
|
|
7111
7128
|
function Jn({ load: e, list: t, item: a }) {
|
|
7112
|
-
const r =
|
|
7129
|
+
const r = g.useRef(null), [s, i] = g.useReducer(ql, {
|
|
7113
7130
|
load: !1,
|
|
7114
7131
|
list: [],
|
|
7115
7132
|
data: {},
|
|
@@ -7117,7 +7134,7 @@ function Jn({ load: e, list: t, item: a }) {
|
|
|
7117
7134
|
wait: !1,
|
|
7118
7135
|
item: a
|
|
7119
7136
|
});
|
|
7120
|
-
|
|
7137
|
+
g.useEffect(() => {
|
|
7121
7138
|
t !== null && i({ type: "load", load: e, data: t });
|
|
7122
7139
|
}, [e]);
|
|
7123
7140
|
let o = (l) => {
|
|
@@ -7127,7 +7144,7 @@ function Jn({ load: e, list: t, item: a }) {
|
|
|
7127
7144
|
return l = s.size;
|
|
7128
7145
|
i({ type: "page", page: l });
|
|
7129
7146
|
};
|
|
7130
|
-
return
|
|
7147
|
+
return g.useEffect(() => {
|
|
7131
7148
|
}, [s]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
7132
7149
|
/* @__PURE__ */ n.jsx("div", { className: qn.l, ref: r, children: /* @__PURE__ */ n.jsx(Nn, { "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: [
|
|
7133
7150
|
/* @__PURE__ */ n.jsx("i", {}),
|
|
@@ -7135,7 +7152,7 @@ function Jn({ load: e, list: t, item: a }) {
|
|
|
7135
7152
|
/* @__PURE__ */ n.jsx("i", {})
|
|
7136
7153
|
] }) }) }),
|
|
7137
7154
|
s.load && s.list !== void 0 ? /* @__PURE__ */ n.jsx(
|
|
7138
|
-
|
|
7155
|
+
Vl,
|
|
7139
7156
|
{
|
|
7140
7157
|
page: s.page,
|
|
7141
7158
|
count: s.size,
|
|
@@ -7144,15 +7161,15 @@ function Jn({ load: e, list: t, item: a }) {
|
|
|
7144
7161
|
) : /* @__PURE__ */ n.jsx(n.Fragment, {})
|
|
7145
7162
|
] });
|
|
7146
7163
|
}
|
|
7147
|
-
const
|
|
7148
|
-
function
|
|
7164
|
+
const vc = { Pagination: Jn };
|
|
7165
|
+
function Jl({ head: e, load: t, list: a, item: r }) {
|
|
7149
7166
|
const s = e;
|
|
7150
7167
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
7151
7168
|
/* @__PURE__ */ n.jsx(s, {}),
|
|
7152
7169
|
Dt.getSetting("s05") === 1 ? /* @__PURE__ */ n.jsx(Jn, { list: a, load: t, item: r }) : /* @__PURE__ */ n.jsx(dl, { list: a, load: t, item: r })
|
|
7153
7170
|
] });
|
|
7154
7171
|
}
|
|
7155
|
-
function
|
|
7172
|
+
function Xl(e, t) {
|
|
7156
7173
|
switch (t.type) {
|
|
7157
7174
|
case "load":
|
|
7158
7175
|
return {
|
|
@@ -7194,16 +7211,16 @@ function Jl(e, t) {
|
|
|
7194
7211
|
}
|
|
7195
7212
|
}
|
|
7196
7213
|
const St = {};
|
|
7197
|
-
function
|
|
7214
|
+
function Ql(e) {
|
|
7198
7215
|
St.get = e;
|
|
7199
7216
|
}
|
|
7200
|
-
function
|
|
7217
|
+
function ec(e) {
|
|
7201
7218
|
St.get && St.get(e);
|
|
7202
7219
|
}
|
|
7203
|
-
const
|
|
7204
|
-
function
|
|
7205
|
-
const [s, i] =
|
|
7206
|
-
|
|
7220
|
+
const Cc = { View: Jl, Reducer: Xl, useValue: Ql, setValue: ec }, kc = { Get: ps }, jc = { Open: eo };
|
|
7221
|
+
function yc({ active: e, onActive: t, id: a, name: r }) {
|
|
7222
|
+
const [s, i] = g.useState(!!e);
|
|
7223
|
+
g.useEffect(() => {
|
|
7207
7224
|
i(!!e);
|
|
7208
7225
|
}, [e]);
|
|
7209
7226
|
let o = () => {
|
|
@@ -7227,42 +7244,42 @@ function jc({ active: e, onActive: t, id: a, name: r }) {
|
|
|
7227
7244
|
}
|
|
7228
7245
|
export {
|
|
7229
7246
|
Eo as Action,
|
|
7230
|
-
|
|
7247
|
+
ic as Alert,
|
|
7231
7248
|
an as Api,
|
|
7232
|
-
|
|
7233
|
-
|
|
7234
|
-
|
|
7249
|
+
cc as Badge,
|
|
7250
|
+
sc as Bookmarks,
|
|
7251
|
+
ac as Browser,
|
|
7235
7252
|
pi as Button,
|
|
7236
|
-
|
|
7253
|
+
kc as Company,
|
|
7237
7254
|
fn as Component,
|
|
7238
|
-
|
|
7255
|
+
dc as DataBase,
|
|
7239
7256
|
Ee as Event,
|
|
7240
7257
|
Ee as Events,
|
|
7241
|
-
|
|
7242
|
-
|
|
7243
|
-
|
|
7244
|
-
|
|
7245
|
-
|
|
7246
|
-
|
|
7258
|
+
uc as Files,
|
|
7259
|
+
gc as Filter,
|
|
7260
|
+
fc as Form,
|
|
7261
|
+
K as Format,
|
|
7262
|
+
_c as HotKey,
|
|
7263
|
+
oc as Icon,
|
|
7247
7264
|
uo as Init,
|
|
7248
|
-
|
|
7249
|
-
|
|
7250
|
-
|
|
7265
|
+
mc as Input,
|
|
7266
|
+
Cc as List,
|
|
7267
|
+
hc as Loading,
|
|
7251
7268
|
tt as Modal,
|
|
7252
7269
|
$e as Notice,
|
|
7253
7270
|
xc as Notifications,
|
|
7254
|
-
|
|
7255
|
-
|
|
7271
|
+
vc as Pagination,
|
|
7272
|
+
jc as Phone,
|
|
7256
7273
|
qe as Router,
|
|
7257
7274
|
dl as Scrolling,
|
|
7258
|
-
|
|
7259
|
-
|
|
7275
|
+
pc as Search,
|
|
7276
|
+
rc as Setting,
|
|
7260
7277
|
et as Sistym,
|
|
7261
7278
|
_e as Socket,
|
|
7262
7279
|
se as Store,
|
|
7263
|
-
|
|
7264
|
-
|
|
7265
|
-
|
|
7280
|
+
yc as Switch,
|
|
7281
|
+
xo as Tabs,
|
|
7282
|
+
lc as Triage,
|
|
7266
7283
|
Dt as User,
|
|
7267
7284
|
O as WebRTC
|
|
7268
7285
|
};
|