elcrm 0.9.172 → 0.9.174
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +1215 -1228
- package/dist/index.umd.js +9 -9
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import './index.css';var Ya = Object.defineProperty;
|
|
2
2
|
var Ha = (e, t, a) => t in e ? Ya(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
|
|
3
|
-
var
|
|
4
|
-
import
|
|
3
|
+
var gt = (e, t, a) => Ha(e, typeof t != "symbol" ? t + "" : t, a);
|
|
4
|
+
import g, { createContext as Ln, useContext as qa, createElement as Mn } from "react";
|
|
5
5
|
const Bn = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyBhPT57dHJ5e2EuZGF0YS5ob3N0W2EuZGF0YS5ob3N0Lmxlbmd0aC0xXSE9PSIvIiYmKGEuZGF0YS5ob3N0Kz0iLyIpLGEuZGF0YS5saW5rWzBdPT0iLyImJihhLmRhdGEubGluaz1hLmRhdGEubGluay5zdWJzdHJpbmcoMSkpO2xldCB0PWF3YWl0IGZldGNoKGAke2EuZGF0YS5ob3N0fSR7YS5kYXRhLmxpbmt9YCx7bWV0aG9kOiJQT1NUIixoZWFkZXJzOnsiQ29udGVudC10eXBlIjoiYXBwbGljYXRpb24vanNvbjtjaGFyc2V0PXV0Zi04IiwuLi5hLmRhdGEuc3NpZD97c3NpZDphLmRhdGEuc3NpZH06e319LGJvZHk6SlNPTi5zdHJpbmdpZnkoYS5kYXRhLmRhdGEpfSk7cG9zdE1lc3NhZ2UoYXdhaXQgdC5qc29uKCkpfWNhdGNoKHQpe3Bvc3RNZXNzYWdlKHtzdGF0dXM6ImVycm9yIixkYXRhOiJ3b3JrZXIiLG1lc3NhZ2U6dH0pfX19KSgpOwo=", Ja = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), cn = typeof self < "u" && self.Blob && new Blob([Ja(Bn)], { type: "text/javascript;charset=utf-8" });
|
|
6
6
|
function dn(e) {
|
|
7
7
|
let t;
|
|
8
8
|
try {
|
|
9
|
-
if (t = cn && (self.URL || self.webkitURL).createObjectURL(cn), !t)
|
|
10
|
-
throw "";
|
|
9
|
+
if (t = cn && (self.URL || self.webkitURL).createObjectURL(cn), !t) throw "";
|
|
11
10
|
const a = new Worker(t, {
|
|
12
11
|
name: e == null ? void 0 : e.name
|
|
13
12
|
});
|
|
@@ -15,9 +14,12 @@ function dn(e) {
|
|
|
15
14
|
(self.URL || self.webkitURL).revokeObjectURL(t);
|
|
16
15
|
}), a;
|
|
17
16
|
} catch {
|
|
18
|
-
return new Worker(
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
return new Worker(
|
|
18
|
+
"data:text/javascript;base64," + Bn,
|
|
19
|
+
{
|
|
20
|
+
name: e == null ? void 0 : e.name
|
|
21
|
+
}
|
|
22
|
+
);
|
|
21
23
|
} finally {
|
|
22
24
|
t && (self.URL || self.webkitURL).revokeObjectURL(t);
|
|
23
25
|
}
|
|
@@ -37,7 +39,7 @@ const tr = async (e) => window.crypto.subtle.importKey(
|
|
|
37
39
|
!1,
|
|
38
40
|
["encrypt"]
|
|
39
41
|
);
|
|
40
|
-
let
|
|
42
|
+
let ye = {
|
|
41
43
|
url: "https://" + Xa + "." + Va + "." + Qa,
|
|
42
44
|
port: 443,
|
|
43
45
|
key: ""
|
|
@@ -56,118 +58,103 @@ const nr = () => window.crypto.getRandomValues(new Uint8Array(12)), ar = async (
|
|
|
56
58
|
iv: r
|
|
57
59
|
};
|
|
58
60
|
}, _n = (e) => window.btoa(String.fromCharCode.apply(null, new Uint8Array(e)));
|
|
59
|
-
let
|
|
61
|
+
let xt = !1;
|
|
60
62
|
const rr = (e) => new TextEncoder().encode(e);
|
|
61
63
|
function un() {
|
|
62
64
|
["a", "b", "c", "d", "e", "m", "u", "s", "q", "p", "t", "w"].forEach(
|
|
63
65
|
(e) => localStorage.removeItem(e)
|
|
64
66
|
), ["f"].forEach((e) => sessionStorage.removeItem(e)), window.history.replaceState({}, "", "/"), window.location.reload();
|
|
65
67
|
}
|
|
66
|
-
function
|
|
67
|
-
if (
|
|
68
|
+
function et() {
|
|
69
|
+
if (xt) return xt;
|
|
68
70
|
let e = localStorage.getItem("d");
|
|
69
|
-
return
|
|
71
|
+
return xt = e, e;
|
|
70
72
|
}
|
|
71
|
-
var
|
|
73
|
+
var ze;
|
|
72
74
|
((e) => {
|
|
73
|
-
function t(
|
|
74
|
-
|
|
75
|
+
function t(c) {
|
|
76
|
+
ye = { ...ye, ...c };
|
|
75
77
|
}
|
|
76
78
|
e.create = t;
|
|
77
|
-
const a = (
|
|
79
|
+
const a = (c) => (c != null && c.ssid && (localStorage.setItem("d", c.ssid), delete c.ssid), c != null && c.port && (localStorage.setItem("w", c.port), delete c.port), (c == null ? void 0 : c.status) === "logout" ? un() : c), r = (c, m, f) => new Promise(async (h) => {
|
|
78
80
|
try {
|
|
79
|
-
const
|
|
80
|
-
|
|
81
|
-
|
|
81
|
+
const x = new dn();
|
|
82
|
+
x.onmessage = (j) => {
|
|
83
|
+
h(a(j.data)), x.terminate();
|
|
82
84
|
};
|
|
83
|
-
let
|
|
84
|
-
const { cipher:
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
85
|
+
let p = await tr(f);
|
|
86
|
+
const { cipher: v, iv: y } = await ar(
|
|
87
|
+
JSON.stringify(m),
|
|
88
|
+
p
|
|
89
|
+
);
|
|
90
|
+
x.postMessage({
|
|
91
|
+
link: c,
|
|
92
|
+
data: _n(y) + _n(v),
|
|
93
|
+
ssid: et(),
|
|
94
|
+
host: ye.url
|
|
89
95
|
});
|
|
90
96
|
} catch {
|
|
91
97
|
}
|
|
92
98
|
});
|
|
93
|
-
function s(
|
|
94
|
-
return r(
|
|
99
|
+
function s(c, m = {}, f = ye.key) {
|
|
100
|
+
return r(c, m, f);
|
|
95
101
|
}
|
|
96
|
-
e.
|
|
97
|
-
function i(
|
|
98
|
-
return
|
|
102
|
+
e.encrypt = s;
|
|
103
|
+
function i(c) {
|
|
104
|
+
return ye.url + "/image" + c;
|
|
99
105
|
}
|
|
100
|
-
e.
|
|
101
|
-
function o(
|
|
102
|
-
return
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}
|
|
112
|
-
e.password = l;
|
|
113
|
-
function _(f = {}, p = re.key) {
|
|
114
|
-
return r("/code", f, p);
|
|
115
|
-
}
|
|
116
|
-
e.code = _;
|
|
117
|
-
function c(f) {
|
|
118
|
-
return re.url + "/image" + f;
|
|
119
|
-
}
|
|
120
|
-
e.image = c;
|
|
121
|
-
function h(f, p = {}, y = xt()) {
|
|
122
|
-
return new Promise((j) => {
|
|
123
|
-
const S = new dn();
|
|
124
|
-
S.onmessage = (N) => {
|
|
125
|
-
j(a(N.data)), S.terminate();
|
|
126
|
-
}, S.postMessage({
|
|
127
|
-
link: f,
|
|
128
|
-
data: p,
|
|
129
|
-
ssid: y,
|
|
130
|
-
host: re.url
|
|
106
|
+
e.image = i;
|
|
107
|
+
function o(c, m = {}, f = et()) {
|
|
108
|
+
return new Promise((h) => {
|
|
109
|
+
const x = new dn();
|
|
110
|
+
x.onmessage = (p) => {
|
|
111
|
+
h(a(p.data)), x.terminate();
|
|
112
|
+
}, x.postMessage({
|
|
113
|
+
link: c,
|
|
114
|
+
data: m,
|
|
115
|
+
ssid: f,
|
|
116
|
+
host: ye.url
|
|
131
117
|
});
|
|
132
118
|
});
|
|
133
119
|
}
|
|
134
|
-
e.fetch =
|
|
135
|
-
async function
|
|
120
|
+
e.fetch = o;
|
|
121
|
+
async function d(c, m = {}, f = et()) {
|
|
136
122
|
try {
|
|
137
|
-
return await (await
|
|
123
|
+
return await (await o(ye.url + c, {
|
|
138
124
|
method: "POST",
|
|
139
125
|
headers: {
|
|
140
|
-
...
|
|
126
|
+
...f ? { ssid: f } : {}
|
|
141
127
|
},
|
|
142
|
-
body:
|
|
128
|
+
body: m
|
|
143
129
|
})).json();
|
|
144
|
-
} catch (
|
|
145
|
-
return { status: "error", message:
|
|
130
|
+
} catch (h) {
|
|
131
|
+
return { status: "error", message: h };
|
|
146
132
|
}
|
|
147
133
|
}
|
|
148
|
-
e.formData =
|
|
149
|
-
function
|
|
150
|
-
const [
|
|
134
|
+
e.formData = d;
|
|
135
|
+
function l(c, m = {}, f = et()) {
|
|
136
|
+
const [h, x] = g.useState({
|
|
151
137
|
status: "load",
|
|
152
138
|
data: {}
|
|
153
|
-
}),
|
|
154
|
-
let
|
|
155
|
-
if (
|
|
156
|
-
|
|
139
|
+
}), p = async (v) => {
|
|
140
|
+
let y = await o(c, v, f);
|
|
141
|
+
if (y.status === "logaut" || y.status === "logout")
|
|
142
|
+
return un();
|
|
143
|
+
x(y);
|
|
157
144
|
};
|
|
158
|
-
return
|
|
159
|
-
|
|
160
|
-
}, []), [
|
|
145
|
+
return g.useEffect(() => {
|
|
146
|
+
p(m);
|
|
147
|
+
}, []), [h.data, p, h.status];
|
|
161
148
|
}
|
|
162
|
-
e.use =
|
|
163
|
-
function
|
|
149
|
+
e.use = l;
|
|
150
|
+
function _() {
|
|
164
151
|
return {
|
|
165
|
-
documents:
|
|
166
|
-
files:
|
|
152
|
+
documents: ye.url + "documents",
|
|
153
|
+
files: ye.url + "files"
|
|
167
154
|
};
|
|
168
155
|
}
|
|
169
|
-
e.url =
|
|
170
|
-
})(
|
|
156
|
+
e.url = _;
|
|
157
|
+
})(ze || (ze = {}));
|
|
171
158
|
const sr = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBuPVtdLHQ9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHM9bC5zb3VyY2U7bi5wdXNoKHMpO2NvbnN0IG89ZT0+e2lmKHQhPT1udWxsJiZ0LnJlYWR5U3RhdGU9PT0xKXtpZighZSlyZXR1cm4gdC5jbG9zZSgpO3Quc2VuZChKU09OLnN0cmluZ2lmeShlKSl9ZWxzZSBzLnBvc3RNZXNzYWdlKHt0eXBlOiJub1NlbmQifSl9O2xldCByPWU9PntpZih0IT09bnVsbCYmdC5yZWFkeVN0YXRlPT09MSlyZXR1cm4gcy5wb3N0TWVzc2FnZSh7dHlwZToxfSk7bGV0IGE9ZS5saW5rLnA/YDoke051bWJlcihlLmxpbmsucCl9YDoiIjtlLmxpbmsuZD90PW5ldyBXZWJTb2NrZXQoYHdzOi8vJHtlLmxpbmsuZH0ke2F9L2Nvbm5lY3RgKTp0PW5ldyBXZWJTb2NrZXQoYHdzczovLyR7ZS5saW5rLnV9JHthfS9jb25uZWN0YCksdC5vbmVycm9yPSgpPT5zLnBvc3RNZXNzYWdlKHt0eXBlOjJ9KSx0Lm9ub3Blbj0oKT0+e28oe3BhdGg6ImNvbm5lY3QiLHVrZXk6ZS51a2V5fSl9LHQub25tZXNzYWdlPWM9PntsZXQgdT1KU09OLnBhcnNlKGMuZGF0YSk7bi5mb3JFYWNoKHA9PntwLnBvc3RNZXNzYWdlKHUpfSl9LHQub25jbG9zZT0oKT0+cy5wb3N0TWVzc2FnZSh7dHlwZTowfSl9O3Mub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiBzLnBvc3RNZXNzYWdlKG4ubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIG4uZm9yRWFjaChhPT5hLnBvc3RNZXNzYWdlKHthbGw6bi5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbyhlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6cy5wb3N0TWVzc2FnZSh7dHlwZTo0LGRhdGE6ZS5kYXRhLmpzb259KX19fX0pKCk7Cg==";
|
|
172
159
|
function ir(e) {
|
|
173
160
|
return new SharedWorker(
|
|
@@ -234,33 +221,33 @@ const Pn = async (e) => window.crypto.subtle.importKey(
|
|
|
234
221
|
var hn;
|
|
235
222
|
((e) => {
|
|
236
223
|
e.useConnect = (t, a) => {
|
|
237
|
-
const [r, s] =
|
|
224
|
+
const [r, s] = g.useState(!1), [i, o] = g.useState(null);
|
|
238
225
|
async function d(l = t) {
|
|
239
226
|
const _ = new ir();
|
|
240
227
|
if (ne.isClosed = !1, !l) return o(3);
|
|
241
228
|
let c = localStorage.getItem("d");
|
|
242
229
|
if (a == null || a(c), typeof c != "string")
|
|
243
230
|
return o(0);
|
|
244
|
-
let
|
|
245
|
-
if (a == null || a(
|
|
246
|
-
window.location.protocol !== "http:" && (
|
|
247
|
-
_.port.postMessage({ type: "send", json:
|
|
231
|
+
let m = await cr(l);
|
|
232
|
+
if (a == null || a(m), !m) return o(1);
|
|
233
|
+
window.location.protocol !== "http:" && (m.d = !1), ne.send = (h) => {
|
|
234
|
+
_.port.postMessage({ type: "send", json: h });
|
|
248
235
|
}, ne.closed = () => {
|
|
249
236
|
ne.isClosed = !0, _.port.postMessage(!1);
|
|
250
237
|
};
|
|
251
|
-
const
|
|
238
|
+
const f = () => {
|
|
252
239
|
_.port.postMessage({
|
|
253
240
|
type: "connect",
|
|
254
241
|
ukey: c,
|
|
255
|
-
link:
|
|
242
|
+
link: m
|
|
256
243
|
});
|
|
257
244
|
};
|
|
258
|
-
_.port.onmessage = (
|
|
259
|
-
a == null || a("onmessage",
|
|
260
|
-
let
|
|
261
|
-
if (
|
|
262
|
-
ne[
|
|
263
|
-
},
|
|
245
|
+
_.port.onmessage = (h) => {
|
|
246
|
+
a == null || a("onmessage", h.data);
|
|
247
|
+
let x = h.data;
|
|
248
|
+
if (x.type === 2 && o(2), x.type === 0 && !ne.isClosed && f(), x.type === 1) return s(!0);
|
|
249
|
+
ne[x.listen] !== void 0 && (ne[x.listen](x), x.listen[0] == "_" && delete ne[x.listen]);
|
|
250
|
+
}, f();
|
|
264
251
|
}
|
|
265
252
|
return [r, d, i];
|
|
266
253
|
}, e.useListener = (t, a) => {
|
|
@@ -304,13 +291,13 @@ var pn;
|
|
|
304
291
|
function fr() {
|
|
305
292
|
if (pn) return Ae;
|
|
306
293
|
pn = 1;
|
|
307
|
-
var e =
|
|
294
|
+
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 };
|
|
308
295
|
function o(d, l, _) {
|
|
309
|
-
var c,
|
|
310
|
-
_ !== void 0 && (
|
|
311
|
-
for (c in l) r.call(l, c) && !i.hasOwnProperty(c) && (
|
|
312
|
-
if (d && d.defaultProps) for (c in l = d.defaultProps, l)
|
|
313
|
-
return { $$typeof: t, type: d, key:
|
|
296
|
+
var c, m = {}, f = null, h = null;
|
|
297
|
+
_ !== void 0 && (f = "" + _), l.key !== void 0 && (f = "" + l.key), l.ref !== void 0 && (h = l.ref);
|
|
298
|
+
for (c in l) r.call(l, c) && !i.hasOwnProperty(c) && (m[c] = l[c]);
|
|
299
|
+
if (d && d.defaultProps) for (c in l = d.defaultProps, l) m[c] === void 0 && (m[c] = l[c]);
|
|
300
|
+
return { $$typeof: t, type: d, key: f, ref: h, props: m, _owner: s.current };
|
|
314
301
|
}
|
|
315
302
|
return Ae.Fragment = a, Ae.jsx = o, Ae.jsxs = o, Ae;
|
|
316
303
|
}
|
|
@@ -327,11 +314,11 @@ var Oe = {};
|
|
|
327
314
|
var gn;
|
|
328
315
|
function mr() {
|
|
329
316
|
return gn || (gn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
330
|
-
var e =
|
|
331
|
-
function
|
|
317
|
+
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"), d = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), x = Symbol.iterator, p = "@@iterator";
|
|
318
|
+
function v(u) {
|
|
332
319
|
if (u === null || typeof u != "object")
|
|
333
320
|
return null;
|
|
334
|
-
var b =
|
|
321
|
+
var b = x && u[x] || u[p];
|
|
335
322
|
return typeof b == "function" ? b : null;
|
|
336
323
|
}
|
|
337
324
|
var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -339,23 +326,23 @@ function mr() {
|
|
|
339
326
|
{
|
|
340
327
|
for (var b = arguments.length, T = new Array(b > 1 ? b - 1 : 0), P = 1; P < b; P++)
|
|
341
328
|
T[P - 1] = arguments[P];
|
|
342
|
-
|
|
329
|
+
I("error", u, T);
|
|
343
330
|
}
|
|
344
331
|
}
|
|
345
|
-
function
|
|
332
|
+
function I(u, b, T) {
|
|
346
333
|
{
|
|
347
334
|
var P = y.ReactDebugCurrentFrame, U = P.getStackAddendum();
|
|
348
335
|
U !== "" && (b += "%s", T = T.concat([U]));
|
|
349
|
-
var
|
|
336
|
+
var K = T.map(function(G) {
|
|
350
337
|
return String(G);
|
|
351
338
|
});
|
|
352
|
-
|
|
339
|
+
K.unshift("Warning: " + b), Function.prototype.apply.call(console[u], console, K);
|
|
353
340
|
}
|
|
354
341
|
}
|
|
355
|
-
var N = !1, R = !1,
|
|
342
|
+
var N = !1, R = !1, D = !1, C = !1, k = !1, F;
|
|
356
343
|
F = Symbol.for("react.module.reference");
|
|
357
|
-
function
|
|
358
|
-
return !!(typeof u == "string" || typeof u == "function" || u === r || u === i || k || u === s || u === _ || u === c || C || u ===
|
|
344
|
+
function S(u) {
|
|
345
|
+
return !!(typeof u == "string" || typeof u == "function" || u === r || u === i || k || u === s || u === _ || u === c || C || u === h || N || R || D || typeof u == "object" && u !== null && (u.$$typeof === f || u.$$typeof === m || u.$$typeof === o || u.$$typeof === d || u.$$typeof === l || // This needs to include all possible module reference object
|
|
359
346
|
// types supported by any Flight configuration anywhere since
|
|
360
347
|
// we don't know which Flight build this will end up being used
|
|
361
348
|
// with.
|
|
@@ -368,7 +355,7 @@ function mr() {
|
|
|
368
355
|
var U = b.displayName || b.name || "";
|
|
369
356
|
return U !== "" ? T + "(" + U + ")" : T;
|
|
370
357
|
}
|
|
371
|
-
function
|
|
358
|
+
function E(u) {
|
|
372
359
|
return u.displayName || "Context";
|
|
373
360
|
}
|
|
374
361
|
function w(u) {
|
|
@@ -396,19 +383,19 @@ function mr() {
|
|
|
396
383
|
switch (u.$$typeof) {
|
|
397
384
|
case d:
|
|
398
385
|
var b = u;
|
|
399
|
-
return
|
|
386
|
+
return E(b) + ".Consumer";
|
|
400
387
|
case o:
|
|
401
388
|
var T = u;
|
|
402
|
-
return
|
|
389
|
+
return E(T._context) + ".Provider";
|
|
403
390
|
case l:
|
|
404
391
|
return L(u, u.render, "ForwardRef");
|
|
405
|
-
case
|
|
392
|
+
case m:
|
|
406
393
|
var P = u.displayName || null;
|
|
407
394
|
return P !== null ? P : w(u.type) || "Memo";
|
|
408
|
-
case
|
|
409
|
-
var U = u,
|
|
395
|
+
case f: {
|
|
396
|
+
var U = u, K = U._payload, G = U._init;
|
|
410
397
|
try {
|
|
411
|
-
return w(G(
|
|
398
|
+
return w(G(K));
|
|
412
399
|
} catch {
|
|
413
400
|
return null;
|
|
414
401
|
}
|
|
@@ -416,14 +403,14 @@ function mr() {
|
|
|
416
403
|
}
|
|
417
404
|
return null;
|
|
418
405
|
}
|
|
419
|
-
var M = Object.assign, W = 0, Q,
|
|
406
|
+
var M = Object.assign, W = 0, Q, oe, je, Re, $e, qe, Kt;
|
|
420
407
|
function Yt() {
|
|
421
408
|
}
|
|
422
409
|
Yt.__reactDisabledLog = !0;
|
|
423
410
|
function Ca() {
|
|
424
411
|
{
|
|
425
412
|
if (W === 0) {
|
|
426
|
-
Q = console.log,
|
|
413
|
+
Q = console.log, oe = console.info, je = console.warn, Re = console.error, $e = console.group, qe = console.groupCollapsed, Kt = console.groupEnd;
|
|
427
414
|
var u = {
|
|
428
415
|
configurable: !0,
|
|
429
416
|
enumerable: !0,
|
|
@@ -456,10 +443,10 @@ function mr() {
|
|
|
456
443
|
value: Q
|
|
457
444
|
}),
|
|
458
445
|
info: M({}, u, {
|
|
459
|
-
value:
|
|
446
|
+
value: oe
|
|
460
447
|
}),
|
|
461
448
|
warn: M({}, u, {
|
|
462
|
-
value:
|
|
449
|
+
value: je
|
|
463
450
|
}),
|
|
464
451
|
error: M({}, u, {
|
|
465
452
|
value: Re
|
|
@@ -471,34 +458,34 @@ function mr() {
|
|
|
471
458
|
value: qe
|
|
472
459
|
}),
|
|
473
460
|
groupEnd: M({}, u, {
|
|
474
|
-
value:
|
|
461
|
+
value: Kt
|
|
475
462
|
})
|
|
476
463
|
});
|
|
477
464
|
}
|
|
478
465
|
W < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
479
466
|
}
|
|
480
467
|
}
|
|
481
|
-
var
|
|
468
|
+
var lt = y.ReactCurrentDispatcher, ct;
|
|
482
469
|
function Je(u, b, T) {
|
|
483
470
|
{
|
|
484
|
-
if (
|
|
471
|
+
if (ct === void 0)
|
|
485
472
|
try {
|
|
486
473
|
throw Error();
|
|
487
474
|
} catch (U) {
|
|
488
475
|
var P = U.stack.trim().match(/\n( *(at )?)/);
|
|
489
|
-
|
|
476
|
+
ct = P && P[1] || "";
|
|
490
477
|
}
|
|
491
478
|
return `
|
|
492
|
-
` +
|
|
479
|
+
` + ct + u;
|
|
493
480
|
}
|
|
494
481
|
}
|
|
495
|
-
var
|
|
482
|
+
var dt = !1, Xe;
|
|
496
483
|
{
|
|
497
484
|
var ya = typeof WeakMap == "function" ? WeakMap : Map;
|
|
498
485
|
Xe = new ya();
|
|
499
486
|
}
|
|
500
487
|
function Ht(u, b) {
|
|
501
|
-
if (!u ||
|
|
488
|
+
if (!u || dt)
|
|
502
489
|
return "";
|
|
503
490
|
{
|
|
504
491
|
var T = Xe.get(u);
|
|
@@ -506,11 +493,11 @@ function mr() {
|
|
|
506
493
|
return T;
|
|
507
494
|
}
|
|
508
495
|
var P;
|
|
509
|
-
|
|
496
|
+
dt = !0;
|
|
510
497
|
var U = Error.prepareStackTrace;
|
|
511
498
|
Error.prepareStackTrace = void 0;
|
|
512
|
-
var
|
|
513
|
-
|
|
499
|
+
var K;
|
|
500
|
+
K = lt.current, lt.current = null, Ca();
|
|
514
501
|
try {
|
|
515
502
|
if (b) {
|
|
516
503
|
var G = function() {
|
|
@@ -554,16 +541,16 @@ function mr() {
|
|
|
554
541
|
if (J !== 1 || V !== 1)
|
|
555
542
|
do
|
|
556
543
|
if (J--, V--, V < 0 || O[J] !== te[V]) {
|
|
557
|
-
var
|
|
544
|
+
var ce = `
|
|
558
545
|
` + O[J].replace(" at new ", " at ");
|
|
559
|
-
return u.displayName &&
|
|
546
|
+
return u.displayName && ce.includes("<anonymous>") && (ce = ce.replace("<anonymous>", u.displayName)), typeof u == "function" && Xe.set(u, ce), ce;
|
|
560
547
|
}
|
|
561
548
|
while (J >= 1 && V >= 0);
|
|
562
549
|
break;
|
|
563
550
|
}
|
|
564
551
|
}
|
|
565
552
|
} finally {
|
|
566
|
-
|
|
553
|
+
dt = !1, lt.current = K, ja(), Error.prepareStackTrace = U;
|
|
567
554
|
}
|
|
568
555
|
var Le = u ? u.displayName || u.name : "", Ee = Le ? Je(Le) : "";
|
|
569
556
|
return typeof u == "function" && Xe.set(u, Ee), Ee;
|
|
@@ -592,12 +579,12 @@ function mr() {
|
|
|
592
579
|
switch (u.$$typeof) {
|
|
593
580
|
case l:
|
|
594
581
|
return wa(u.render);
|
|
595
|
-
case
|
|
582
|
+
case m:
|
|
596
583
|
return Ve(u.type, b, T);
|
|
597
|
-
case
|
|
598
|
-
var P = u, U = P._payload,
|
|
584
|
+
case f: {
|
|
585
|
+
var P = u, U = P._payload, K = P._init;
|
|
599
586
|
try {
|
|
600
|
-
return Ve(
|
|
587
|
+
return Ve(K(U), b, T);
|
|
601
588
|
} catch {
|
|
602
589
|
}
|
|
603
590
|
}
|
|
@@ -614,9 +601,9 @@ function mr() {
|
|
|
614
601
|
}
|
|
615
602
|
function ba(u, b, T, P, U) {
|
|
616
603
|
{
|
|
617
|
-
var
|
|
604
|
+
var K = Function.call.bind(Fe);
|
|
618
605
|
for (var G in u)
|
|
619
|
-
if (
|
|
606
|
+
if (K(u, G)) {
|
|
620
607
|
var O = void 0;
|
|
621
608
|
try {
|
|
622
609
|
if (typeof u[G] != "function") {
|
|
@@ -632,7 +619,7 @@ function mr() {
|
|
|
632
619
|
}
|
|
633
620
|
}
|
|
634
621
|
var Sa = Array.isArray;
|
|
635
|
-
function
|
|
622
|
+
function _t(u) {
|
|
636
623
|
return Sa(u);
|
|
637
624
|
}
|
|
638
625
|
function Ea(u) {
|
|
@@ -660,8 +647,8 @@ function mr() {
|
|
|
660
647
|
ref: !0,
|
|
661
648
|
__self: !0,
|
|
662
649
|
__source: !0
|
|
663
|
-
}, Qt, en,
|
|
664
|
-
|
|
650
|
+
}, Qt, en, ut;
|
|
651
|
+
ut = {};
|
|
665
652
|
function Na(u) {
|
|
666
653
|
if (Fe.call(u, "ref")) {
|
|
667
654
|
var b = Object.getOwnPropertyDescriptor(u, "ref").get;
|
|
@@ -681,7 +668,7 @@ function mr() {
|
|
|
681
668
|
function Ta(u, b) {
|
|
682
669
|
if (typeof u.ref == "string" && Pe.current && b && Pe.current.stateNode !== b) {
|
|
683
670
|
var T = w(Pe.current.type);
|
|
684
|
-
|
|
671
|
+
ut[T] || (j('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', w(Pe.current.type), u.ref), ut[T] = !0);
|
|
685
672
|
}
|
|
686
673
|
}
|
|
687
674
|
function La(u, b) {
|
|
@@ -706,7 +693,7 @@ function mr() {
|
|
|
706
693
|
});
|
|
707
694
|
}
|
|
708
695
|
}
|
|
709
|
-
var Ba = function(u, b, T, P, U,
|
|
696
|
+
var Ba = function(u, b, T, P, U, K, G) {
|
|
710
697
|
var O = {
|
|
711
698
|
// This tag allows us to uniquely identify this as a React Element
|
|
712
699
|
$$typeof: t,
|
|
@@ -716,7 +703,7 @@ function mr() {
|
|
|
716
703
|
ref: T,
|
|
717
704
|
props: G,
|
|
718
705
|
// Record the component responsible for creating this element.
|
|
719
|
-
_owner:
|
|
706
|
+
_owner: K
|
|
720
707
|
};
|
|
721
708
|
return O._store = {}, Object.defineProperty(O._store, "validated", {
|
|
722
709
|
configurable: !1,
|
|
@@ -737,14 +724,14 @@ function mr() {
|
|
|
737
724
|
};
|
|
738
725
|
function $a(u, b, T, P, U) {
|
|
739
726
|
{
|
|
740
|
-
var
|
|
727
|
+
var K, G = {}, O = null, te = null;
|
|
741
728
|
T !== void 0 && (Vt(T), O = "" + T), Ra(b) && (Vt(b.key), O = "" + b.key), Na(b) && (te = b.ref, Ta(b, U));
|
|
742
|
-
for (
|
|
743
|
-
Fe.call(b,
|
|
729
|
+
for (K in b)
|
|
730
|
+
Fe.call(b, K) && !Da.hasOwnProperty(K) && (G[K] = b[K]);
|
|
744
731
|
if (u && u.defaultProps) {
|
|
745
732
|
var J = u.defaultProps;
|
|
746
|
-
for (
|
|
747
|
-
G[
|
|
733
|
+
for (K in J)
|
|
734
|
+
G[K] === void 0 && (G[K] = J[K]);
|
|
748
735
|
}
|
|
749
736
|
if (O || te) {
|
|
750
737
|
var V = typeof u == "function" ? u.displayName || u.name || "Unknown" : u;
|
|
@@ -753,7 +740,7 @@ function mr() {
|
|
|
753
740
|
return Ba(u, O, te, U, P, Pe.current, G);
|
|
754
741
|
}
|
|
755
742
|
}
|
|
756
|
-
var
|
|
743
|
+
var ft = y.ReactCurrentOwner, tn = y.ReactDebugCurrentFrame;
|
|
757
744
|
function Te(u) {
|
|
758
745
|
if (u) {
|
|
759
746
|
var b = u._owner, T = Ve(u.type, u._source, b ? b.type : null);
|
|
@@ -761,15 +748,15 @@ function mr() {
|
|
|
761
748
|
} else
|
|
762
749
|
tn.setExtraStackFrame(null);
|
|
763
750
|
}
|
|
764
|
-
var
|
|
765
|
-
|
|
766
|
-
function
|
|
751
|
+
var mt;
|
|
752
|
+
mt = !1;
|
|
753
|
+
function ht(u) {
|
|
767
754
|
return typeof u == "object" && u !== null && u.$$typeof === t;
|
|
768
755
|
}
|
|
769
756
|
function nn() {
|
|
770
757
|
{
|
|
771
|
-
if (
|
|
772
|
-
var u = w(
|
|
758
|
+
if (ft.current) {
|
|
759
|
+
var u = w(ft.current.type);
|
|
773
760
|
if (u)
|
|
774
761
|
return `
|
|
775
762
|
|
|
@@ -804,25 +791,25 @@ Check the top-level render call using <` + T + ">.");
|
|
|
804
791
|
return;
|
|
805
792
|
an[T] = !0;
|
|
806
793
|
var P = "";
|
|
807
|
-
u && u._owner && u._owner !==
|
|
794
|
+
u && u._owner && u._owner !== ft.current && (P = " It was passed a child from " + w(u._owner.type) + "."), Te(u), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', T, P), Te(null);
|
|
808
795
|
}
|
|
809
796
|
}
|
|
810
797
|
function sn(u, b) {
|
|
811
798
|
{
|
|
812
799
|
if (typeof u != "object")
|
|
813
800
|
return;
|
|
814
|
-
if (
|
|
801
|
+
if (_t(u))
|
|
815
802
|
for (var T = 0; T < u.length; T++) {
|
|
816
803
|
var P = u[T];
|
|
817
|
-
|
|
804
|
+
ht(P) && rn(P, b);
|
|
818
805
|
}
|
|
819
|
-
else if (
|
|
806
|
+
else if (ht(u))
|
|
820
807
|
u._store && (u._store.validated = !0);
|
|
821
808
|
else if (u) {
|
|
822
|
-
var U =
|
|
809
|
+
var U = v(u);
|
|
823
810
|
if (typeof U == "function" && U !== u.entries)
|
|
824
|
-
for (var
|
|
825
|
-
|
|
811
|
+
for (var K = U.call(u), G; !(G = K.next()).done; )
|
|
812
|
+
ht(G.value) && rn(G.value, b);
|
|
826
813
|
}
|
|
827
814
|
}
|
|
828
815
|
}
|
|
@@ -836,15 +823,15 @@ Check the top-level render call using <` + T + ">.");
|
|
|
836
823
|
T = b.propTypes;
|
|
837
824
|
else if (typeof b == "object" && (b.$$typeof === l || // Note: Memo only checks outer props here.
|
|
838
825
|
// Inner props are checked in the reconciler.
|
|
839
|
-
b.$$typeof ===
|
|
826
|
+
b.$$typeof === m))
|
|
840
827
|
T = b.propTypes;
|
|
841
828
|
else
|
|
842
829
|
return;
|
|
843
830
|
if (T) {
|
|
844
831
|
var P = w(b);
|
|
845
832
|
ba(T, u.props, "prop", P, u);
|
|
846
|
-
} else if (b.PropTypes !== void 0 && !
|
|
847
|
-
|
|
833
|
+
} else if (b.PropTypes !== void 0 && !mt) {
|
|
834
|
+
mt = !0;
|
|
848
835
|
var U = w(b);
|
|
849
836
|
j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", U || "Unknown");
|
|
850
837
|
}
|
|
@@ -864,45 +851,45 @@ Check the top-level render call using <` + T + ">.");
|
|
|
864
851
|
}
|
|
865
852
|
}
|
|
866
853
|
var on = {};
|
|
867
|
-
function ln(u, b, T, P, U,
|
|
854
|
+
function ln(u, b, T, P, U, K) {
|
|
868
855
|
{
|
|
869
|
-
var G =
|
|
856
|
+
var G = S(u);
|
|
870
857
|
if (!G) {
|
|
871
858
|
var O = "";
|
|
872
859
|
(u === void 0 || typeof u == "object" && u !== null && Object.keys(u).length === 0) && (O += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
873
860
|
var te = Fa();
|
|
874
861
|
te ? O += te : O += nn();
|
|
875
862
|
var J;
|
|
876
|
-
u === null ? J = "null" :
|
|
863
|
+
u === null ? J = "null" : _t(u) ? J = "array" : u !== void 0 && u.$$typeof === t ? (J = "<" + (w(u.type) || "Unknown") + " />", O = " Did you accidentally export a JSX literal instead of a component?") : J = typeof u, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", J, O);
|
|
877
864
|
}
|
|
878
|
-
var V = $a(u, b, T, U,
|
|
865
|
+
var V = $a(u, b, T, U, K);
|
|
879
866
|
if (V == null)
|
|
880
867
|
return V;
|
|
881
868
|
if (G) {
|
|
882
|
-
var
|
|
883
|
-
if (
|
|
869
|
+
var ce = b.children;
|
|
870
|
+
if (ce !== void 0)
|
|
884
871
|
if (P)
|
|
885
|
-
if (
|
|
886
|
-
for (var Le = 0; Le <
|
|
887
|
-
sn(
|
|
888
|
-
Object.freeze && Object.freeze(
|
|
872
|
+
if (_t(ce)) {
|
|
873
|
+
for (var Le = 0; Le < ce.length; Le++)
|
|
874
|
+
sn(ce[Le], u);
|
|
875
|
+
Object.freeze && Object.freeze(ce);
|
|
889
876
|
} else
|
|
890
877
|
j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
891
878
|
else
|
|
892
|
-
sn(
|
|
879
|
+
sn(ce, u);
|
|
893
880
|
}
|
|
894
881
|
if (Fe.call(b, "key")) {
|
|
895
|
-
var Ee = w(u), ae = Object.keys(b).filter(function(
|
|
896
|
-
return
|
|
897
|
-
}),
|
|
898
|
-
if (!on[Ee +
|
|
899
|
-
var
|
|
882
|
+
var Ee = w(u), ae = Object.keys(b).filter(function(Ka) {
|
|
883
|
+
return Ka !== "key";
|
|
884
|
+
}), pt = ae.length > 0 ? "{key: someKey, " + ae.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
885
|
+
if (!on[Ee + pt]) {
|
|
886
|
+
var za = ae.length > 0 ? "{" + ae.join(": ..., ") + ": ...}" : "{}";
|
|
900
887
|
j(`A props object containing a "key" prop is being spread into JSX:
|
|
901
888
|
let props = %s;
|
|
902
889
|
<%s {...props} />
|
|
903
890
|
React keys must be passed directly to JSX without using spread:
|
|
904
891
|
let props = %s;
|
|
905
|
-
<%s key={someKey} {...props} />`,
|
|
892
|
+
<%s key={someKey} {...props} />`, pt, Ee, za, Ee), on[Ee + pt] = !0;
|
|
906
893
|
}
|
|
907
894
|
}
|
|
908
895
|
return u === r ? Oa(V) : Aa(V), V;
|
|
@@ -929,14 +916,14 @@ const hr = "_notice_13j98_2", pr = "_error_13j98_11", gr = "_success_13j98_14",
|
|
|
929
916
|
"show-notice": "_show-notice_13j98_1",
|
|
930
917
|
"hide-notice": "_hide-notice_13j98_1"
|
|
931
918
|
};
|
|
932
|
-
let
|
|
919
|
+
let pe = {};
|
|
933
920
|
function Ze({ data: e }) {
|
|
934
|
-
let [t, a] =
|
|
935
|
-
|
|
921
|
+
let [t, a] = g.useState("show");
|
|
922
|
+
g.useEffect(() => {
|
|
936
923
|
e.hide && (setTimeout(function() {
|
|
937
924
|
a("hide");
|
|
938
925
|
}, 1800), setTimeout(function() {
|
|
939
|
-
|
|
926
|
+
pe.del(e.key);
|
|
940
927
|
}, 2500));
|
|
941
928
|
}, [e.key]);
|
|
942
929
|
let r, s;
|
|
@@ -964,12 +951,12 @@ function Ze({ data: e }) {
|
|
|
964
951
|
] });
|
|
965
952
|
}
|
|
966
953
|
function jr({ data: e }) {
|
|
967
|
-
let [t, a] =
|
|
968
|
-
return
|
|
954
|
+
let [t, a] = g.useState("show");
|
|
955
|
+
return g.useEffect(() => {
|
|
969
956
|
e.hide && (setTimeout(function() {
|
|
970
957
|
a("hide");
|
|
971
958
|
}, 1800), setTimeout(function() {
|
|
972
|
-
|
|
959
|
+
pe.del(e.key);
|
|
973
960
|
}, 2500));
|
|
974
961
|
}, [e.key]), /* @__PURE__ */ n.jsx("li", { className: "item", "data-status": t, children: e.text });
|
|
975
962
|
}
|
|
@@ -1006,63 +993,63 @@ Ie.success = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "
|
|
|
1006
993
|
}
|
|
1007
994
|
)
|
|
1008
995
|
] });
|
|
1009
|
-
var
|
|
996
|
+
var fe;
|
|
1010
997
|
((e) => {
|
|
1011
998
|
function t() {
|
|
1012
|
-
let [l, _] =
|
|
1013
|
-
return
|
|
999
|
+
let [l, _] = g.useState([]);
|
|
1000
|
+
return pe.set = (c) => {
|
|
1014
1001
|
_([...l, c]);
|
|
1015
|
-
},
|
|
1016
|
-
_(l.filter((
|
|
1002
|
+
}, pe.del = (c) => {
|
|
1003
|
+
_(l.filter((m) => m.key !== c));
|
|
1017
1004
|
}, l.length === 0 ? "" : /* @__PURE__ */ n.jsx("ul", { id: "notice", className: Cr.notice, children: l.map((c) => c.item) });
|
|
1018
1005
|
}
|
|
1019
1006
|
e.Init = t;
|
|
1020
1007
|
function a(l, _ = !0) {
|
|
1021
|
-
let c = Date.now(),
|
|
1022
|
-
|
|
1023
|
-
item: /* @__PURE__ */ n.jsx(Ze, { data:
|
|
1008
|
+
let c = Date.now(), m = { key: c, text: l, hide: _, type: "error" };
|
|
1009
|
+
pe.set({
|
|
1010
|
+
item: /* @__PURE__ */ n.jsx(Ze, { data: m }, c),
|
|
1024
1011
|
key: c
|
|
1025
1012
|
});
|
|
1026
1013
|
}
|
|
1027
1014
|
e.Error = a;
|
|
1028
1015
|
function r(l, _ = !0) {
|
|
1029
|
-
let c = Date.now(),
|
|
1030
|
-
|
|
1031
|
-
item: /* @__PURE__ */ n.jsx(Ze, { data:
|
|
1016
|
+
let c = Date.now(), m = { key: c, text: l, hide: _, type: "success" };
|
|
1017
|
+
pe.set({
|
|
1018
|
+
item: /* @__PURE__ */ n.jsx(Ze, { data: m }, c),
|
|
1032
1019
|
key: c
|
|
1033
1020
|
});
|
|
1034
1021
|
}
|
|
1035
1022
|
e.Success = r;
|
|
1036
1023
|
function s(l, _ = !0) {
|
|
1037
|
-
let c = Date.now(),
|
|
1038
|
-
|
|
1024
|
+
let c = Date.now(), m = { key: c, hide: _, text: l };
|
|
1025
|
+
pe.set({ item: /* @__PURE__ */ n.jsx(jr, { data: m }, c), key: c });
|
|
1039
1026
|
}
|
|
1040
1027
|
e.Custom = s;
|
|
1041
1028
|
function i(l) {
|
|
1042
1029
|
let _ = Date.now(), c = { key: _, hide: !0, ...l };
|
|
1043
|
-
|
|
1030
|
+
pe.set({
|
|
1044
1031
|
item: /* @__PURE__ */ n.jsx(Ze, { data: c }, _),
|
|
1045
1032
|
key: _
|
|
1046
1033
|
});
|
|
1047
1034
|
}
|
|
1048
1035
|
e.Send = i;
|
|
1049
1036
|
function o(l, _ = !0) {
|
|
1050
|
-
let c = Date.now(),
|
|
1051
|
-
|
|
1052
|
-
item: /* @__PURE__ */ n.jsx(Ze, { data:
|
|
1037
|
+
let c = Date.now(), m = { key: c, text: l, hide: _, type: "remark" };
|
|
1038
|
+
pe.set({
|
|
1039
|
+
item: /* @__PURE__ */ n.jsx(Ze, { data: m }, c),
|
|
1053
1040
|
key: c
|
|
1054
1041
|
});
|
|
1055
1042
|
}
|
|
1056
1043
|
e.Remark = o;
|
|
1057
1044
|
function d(l, _ = !0) {
|
|
1058
|
-
let c = Date.now(),
|
|
1059
|
-
|
|
1060
|
-
item: /* @__PURE__ */ n.jsx(Ze, { data:
|
|
1045
|
+
let c = Date.now(), m = { key: c, text: l, hide: _, type: "copy" };
|
|
1046
|
+
pe.set({
|
|
1047
|
+
item: /* @__PURE__ */ n.jsx(Ze, { data: m }, c),
|
|
1061
1048
|
key: c
|
|
1062
1049
|
});
|
|
1063
1050
|
}
|
|
1064
1051
|
e.Copy = d;
|
|
1065
|
-
})(
|
|
1052
|
+
})(fe || (fe = {}));
|
|
1066
1053
|
const yr = "_alerts_ita6j_1", wr = "_menuAnimation_ita6j_1", kr = "_menuItemAnimation_ita6j_1", br = "_allert_ita6j_111", Sr = "_al_ita6j_1", wt = {
|
|
1067
1054
|
alerts: yr,
|
|
1068
1055
|
menuAnimation: wr,
|
|
@@ -1098,10 +1085,10 @@ const Er = ({ data: e, callback: t, cancel: a }) => (e.button = e.button === voi
|
|
|
1098
1085
|
}
|
|
1099
1086
|
)
|
|
1100
1087
|
] }));
|
|
1101
|
-
var
|
|
1088
|
+
var Ke;
|
|
1102
1089
|
((e) => {
|
|
1103
1090
|
function t() {
|
|
1104
|
-
let [s, i] =
|
|
1091
|
+
let [s, i] = g.useState("");
|
|
1105
1092
|
return We.set = (o) => i(o), We.del = () => i(""), /* @__PURE__ */ n.jsx(n.Fragment, { children: s });
|
|
1106
1093
|
}
|
|
1107
1094
|
e.Init = t;
|
|
@@ -1112,7 +1099,7 @@ var ze;
|
|
|
1112
1099
|
}
|
|
1113
1100
|
e.Send = a;
|
|
1114
1101
|
function r({ text: s, type: i, button: o }) {
|
|
1115
|
-
let [d, l] =
|
|
1102
|
+
let [d, l] = g.useState(!1), _ = { active: i };
|
|
1116
1103
|
const c = () => {
|
|
1117
1104
|
if (o) {
|
|
1118
1105
|
if (o.onClick)
|
|
@@ -1144,11 +1131,11 @@ var ze;
|
|
|
1144
1131
|
] });
|
|
1145
1132
|
}
|
|
1146
1133
|
e.Line = r;
|
|
1147
|
-
})(
|
|
1134
|
+
})(Ke || (Ke = {}));
|
|
1148
1135
|
function Ir({ children: e }) {
|
|
1149
1136
|
return /* @__PURE__ */ n.jsx("div", { className: "l", children: /* @__PURE__ */ n.jsx("ul", { children: e }) });
|
|
1150
1137
|
}
|
|
1151
|
-
const Dr = "_white_1g9i9_14", Nr = "_black_1g9i9_28", Rr = "_shake_1g9i9_1", Tr = "_modal_1g9i9_77", Lr = "_o_1g9i9_87", Mr = "_w_1g9i9_14", Br = "_h_1g9i9_112", $r = "_l_1g9i9_126", Fr = "_t_1g9i9_164", Pr = "_m_1g9i9_77", Ar = "_x_1g9i9_172", Or = "_s_1g9i9_182", Zr = "_c_1g9i9_187", Gr = "_f_1g9i9_192", Wr = "_row_1g9i9_214", Ur = "_col_1g9i9_226",
|
|
1138
|
+
const Dr = "_white_1g9i9_14", Nr = "_black_1g9i9_28", Rr = "_shake_1g9i9_1", Tr = "_modal_1g9i9_77", Lr = "_o_1g9i9_87", Mr = "_w_1g9i9_14", Br = "_h_1g9i9_112", $r = "_l_1g9i9_126", Fr = "_t_1g9i9_164", Pr = "_m_1g9i9_77", Ar = "_x_1g9i9_172", Or = "_s_1g9i9_182", Zr = "_c_1g9i9_187", Gr = "_f_1g9i9_192", Wr = "_row_1g9i9_214", Ur = "_col_1g9i9_226", zr = "_g_1g9i9_235", Kr = "_active_1g9i9_355", Yr = "_coincidence_1g9i9_361", Hr = "_sa_1g9i9_397", qr = "_ss_1g9i9_401", Jr = "_sm_1g9i9_405", Xr = "_sl_1g9i9_409", Vr = "_sx_1g9i9_413", Qr = "_sf_1g9i9_417", es = "_btn_1g9i9_423", re = {
|
|
1152
1139
|
white: Dr,
|
|
1153
1140
|
black: Nr,
|
|
1154
1141
|
shake: Rr,
|
|
@@ -1165,14 +1152,14 @@ const Dr = "_white_1g9i9_14", Nr = "_black_1g9i9_28", Rr = "_shake_1g9i9_1", Tr
|
|
|
1165
1152
|
f: Gr,
|
|
1166
1153
|
row: Wr,
|
|
1167
1154
|
col: Ur,
|
|
1168
|
-
g:
|
|
1155
|
+
g: zr,
|
|
1169
1156
|
"size-a": "_size-a_1g9i9_285",
|
|
1170
1157
|
"size-s": "_size-s_1g9i9_290",
|
|
1171
1158
|
"size-m": "_size-m_1g9i9_294",
|
|
1172
1159
|
"size-l": "_size-l_1g9i9_298",
|
|
1173
1160
|
"size-x": "_size-x_1g9i9_302",
|
|
1174
1161
|
"size-f": "_size-f_1g9i9_306",
|
|
1175
|
-
active:
|
|
1162
|
+
active: Kr,
|
|
1176
1163
|
coincidence: Yr,
|
|
1177
1164
|
sa: Hr,
|
|
1178
1165
|
ss: qr,
|
|
@@ -1183,76 +1170,76 @@ const Dr = "_white_1g9i9_14", Nr = "_black_1g9i9_28", Rr = "_shake_1g9i9_1", Tr
|
|
|
1183
1170
|
btn: es
|
|
1184
1171
|
};
|
|
1185
1172
|
function ts({ children: e }) {
|
|
1186
|
-
return /* @__PURE__ */ n.jsx("div", { className:
|
|
1173
|
+
return /* @__PURE__ */ n.jsx("div", { className: re.s, children: e });
|
|
1187
1174
|
}
|
|
1188
1175
|
function ns({ children: e, viev: t = "row", className: a }) {
|
|
1189
1176
|
let r = {};
|
|
1190
|
-
return a && (r.className = a), /* @__PURE__ */ n.jsx("ul", { className: [
|
|
1177
|
+
return a && (r.className = a), /* @__PURE__ */ n.jsx("ul", { className: [re.f, re[t], r.className].join(" "), children: e });
|
|
1191
1178
|
}
|
|
1192
1179
|
function as({ children: e }) {
|
|
1193
|
-
return /* @__PURE__ */ n.jsx("div", { className:
|
|
1180
|
+
return /* @__PURE__ */ n.jsx("div", { className: re.c, children: e });
|
|
1194
1181
|
}
|
|
1195
1182
|
function rs({ children: e }) {
|
|
1196
|
-
return /* @__PURE__ */ n.jsx("div", { className:
|
|
1183
|
+
return /* @__PURE__ */ n.jsx("div", { className: re.g, children: e });
|
|
1197
1184
|
}
|
|
1198
|
-
const
|
|
1185
|
+
const le = {};
|
|
1199
1186
|
function ss(e) {
|
|
1200
|
-
return e && (
|
|
1187
|
+
return e && (le.s = e), le.s;
|
|
1201
1188
|
}
|
|
1202
1189
|
function is(e) {
|
|
1203
|
-
return e && (
|
|
1190
|
+
return e && (le.a = e), le.a;
|
|
1204
1191
|
}
|
|
1205
1192
|
function os(e) {
|
|
1206
|
-
return e && (
|
|
1193
|
+
return e && (le.c = e), le.c;
|
|
1207
1194
|
}
|
|
1208
1195
|
function ls(e) {
|
|
1209
|
-
return e && (
|
|
1196
|
+
return e && (le.h = e), le.h;
|
|
1210
1197
|
}
|
|
1211
1198
|
function cs(e) {
|
|
1212
|
-
return e && (
|
|
1199
|
+
return e && (le.i = e), le.i;
|
|
1213
1200
|
}
|
|
1214
1201
|
function ds(e) {
|
|
1215
|
-
return e && (
|
|
1202
|
+
return e && (le.d = e), le.d;
|
|
1216
1203
|
}
|
|
1217
|
-
function
|
|
1218
|
-
return
|
|
1204
|
+
function st(e) {
|
|
1205
|
+
return le.i(e);
|
|
1219
1206
|
}
|
|
1220
|
-
let
|
|
1207
|
+
let tt = {};
|
|
1221
1208
|
function _s({ children: e }) {
|
|
1222
1209
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: e });
|
|
1223
1210
|
}
|
|
1224
1211
|
var Ne;
|
|
1225
1212
|
((e) => {
|
|
1226
1213
|
function t() {
|
|
1227
|
-
let [l, _] =
|
|
1228
|
-
return
|
|
1229
|
-
_(c ? l.filter((
|
|
1230
|
-
},
|
|
1231
|
-
_([...l, { key:
|
|
1214
|
+
let [l, _] = g.useState([]);
|
|
1215
|
+
return tt.x = (c) => {
|
|
1216
|
+
_(c ? l.filter((m) => m.key !== c) : []);
|
|
1217
|
+
}, tt.add = (c, m = Date.now()) => {
|
|
1218
|
+
_([...l, { key: m, item: c }]);
|
|
1232
1219
|
}, /* @__PURE__ */ n.jsx(n.Fragment, { children: l.map((c) => c.item) });
|
|
1233
1220
|
}
|
|
1234
1221
|
e.Init = t, e.List = Ir, e.Scroll = ts, e.Form = ns, e.Center = as, e.Column = rs;
|
|
1235
1222
|
function a(l, _, c) {
|
|
1236
|
-
|
|
1237
|
-
|
|
1223
|
+
st(`${l}/modal/${_}.tsx`).then((m) => {
|
|
1224
|
+
m.default.Open(c);
|
|
1238
1225
|
});
|
|
1239
1226
|
}
|
|
1240
1227
|
e.Open = a;
|
|
1241
1228
|
function r({ type: l, name: _, params: c }) {
|
|
1242
|
-
let [
|
|
1243
|
-
return
|
|
1244
|
-
|
|
1245
|
-
|
|
1229
|
+
let [m, f] = g.useState(null);
|
|
1230
|
+
return g.useEffect(() => {
|
|
1231
|
+
st(`${l}/modal/${_}.tsx`).then((h) => {
|
|
1232
|
+
f(h.default.Icon(c));
|
|
1246
1233
|
});
|
|
1247
|
-
}, [c.id]), /* @__PURE__ */ n.jsx(n.Fragment, { children:
|
|
1234
|
+
}, [c.id]), /* @__PURE__ */ n.jsx(n.Fragment, { children: m });
|
|
1248
1235
|
}
|
|
1249
1236
|
e.Icon = r;
|
|
1250
1237
|
function s(l, _) {
|
|
1251
|
-
|
|
1238
|
+
tt.add(/* @__PURE__ */ n.jsx(_s, { children: l }, String(Date.now())), _);
|
|
1252
1239
|
}
|
|
1253
1240
|
e.Add = s;
|
|
1254
1241
|
function i(l) {
|
|
1255
|
-
|
|
1242
|
+
tt.x(l);
|
|
1256
1243
|
}
|
|
1257
1244
|
e.Close = i;
|
|
1258
1245
|
function o(l) {
|
|
@@ -1267,13 +1254,13 @@ var Ne;
|
|
|
1267
1254
|
title: l,
|
|
1268
1255
|
children: _,
|
|
1269
1256
|
button: c,
|
|
1270
|
-
tabs:
|
|
1271
|
-
size:
|
|
1272
|
-
className:
|
|
1273
|
-
shake:
|
|
1274
|
-
menu:
|
|
1257
|
+
tabs: m,
|
|
1258
|
+
size: f = "m",
|
|
1259
|
+
className: h = "",
|
|
1260
|
+
shake: x = !0,
|
|
1261
|
+
menu: p
|
|
1275
1262
|
}) {
|
|
1276
|
-
const [
|
|
1263
|
+
const [v, y] = g.useState(!0), j = g.useRef(), I = (R) => {
|
|
1277
1264
|
if (c) {
|
|
1278
1265
|
if (c.onClick)
|
|
1279
1266
|
return R(!1), c.onClick({ setOpen: y });
|
|
@@ -1284,43 +1271,43 @@ var Ne;
|
|
|
1284
1271
|
});
|
|
1285
1272
|
}
|
|
1286
1273
|
}, N = () => {
|
|
1287
|
-
if (!
|
|
1274
|
+
if (!x) return y(!1);
|
|
1288
1275
|
j.current.setAttribute("shake", !0), setTimeout(() => {
|
|
1289
1276
|
j.current.setAttribute("shake", !1);
|
|
1290
1277
|
}, 1e3);
|
|
1291
1278
|
};
|
|
1292
|
-
return
|
|
1279
|
+
return v ? /* @__PURE__ */ n.jsxs(
|
|
1293
1280
|
"div",
|
|
1294
1281
|
{
|
|
1295
|
-
className: `${
|
|
1282
|
+
className: `${re.modal}`,
|
|
1296
1283
|
children: [
|
|
1297
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
1284
|
+
/* @__PURE__ */ n.jsx("div", { className: re.o, onClick: N }),
|
|
1298
1285
|
/* @__PURE__ */ n.jsxs(
|
|
1299
1286
|
"div",
|
|
1300
1287
|
{
|
|
1301
|
-
className: [
|
|
1288
|
+
className: [re.w, re[`s${f}`], h].join(
|
|
1302
1289
|
" "
|
|
1303
1290
|
),
|
|
1304
1291
|
ref: j,
|
|
1305
1292
|
children: [
|
|
1306
|
-
/* @__PURE__ */ n.jsxs("div", { className:
|
|
1307
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
1308
|
-
/* @__PURE__ */ n.jsxs("div", { className:
|
|
1309
|
-
|
|
1293
|
+
/* @__PURE__ */ n.jsxs("div", { className: re.h, children: [
|
|
1294
|
+
/* @__PURE__ */ n.jsx("div", { className: re.t, children: l }),
|
|
1295
|
+
/* @__PURE__ */ n.jsxs("div", { className: re.m, children: [
|
|
1296
|
+
m && /* @__PURE__ */ n.jsx("nav", { children: m.map((R, D) => /* @__PURE__ */ n.jsx(
|
|
1310
1297
|
"span",
|
|
1311
1298
|
{
|
|
1312
1299
|
onClick: R.onClick,
|
|
1313
1300
|
className: R.active ? "active" : "",
|
|
1314
1301
|
children: R.name
|
|
1315
1302
|
},
|
|
1316
|
-
|
|
1303
|
+
D
|
|
1317
1304
|
)) }),
|
|
1318
|
-
|
|
1305
|
+
p
|
|
1319
1306
|
] }),
|
|
1320
1307
|
/* @__PURE__ */ n.jsx(
|
|
1321
1308
|
"div",
|
|
1322
1309
|
{
|
|
1323
|
-
className:
|
|
1310
|
+
className: re.x,
|
|
1324
1311
|
onClick: () => {
|
|
1325
1312
|
y(!1);
|
|
1326
1313
|
},
|
|
@@ -1342,8 +1329,8 @@ var Ne;
|
|
|
1342
1329
|
No,
|
|
1343
1330
|
{
|
|
1344
1331
|
label: c.label,
|
|
1345
|
-
onSend:
|
|
1346
|
-
className:
|
|
1332
|
+
onSend: I,
|
|
1333
|
+
className: re.btn
|
|
1347
1334
|
}
|
|
1348
1335
|
) : ""
|
|
1349
1336
|
]
|
|
@@ -1363,8 +1350,8 @@ const us = ({
|
|
|
1363
1350
|
update: r,
|
|
1364
1351
|
textAlign: s
|
|
1365
1352
|
}) => {
|
|
1366
|
-
const i =
|
|
1367
|
-
return
|
|
1353
|
+
const i = g.useRef(null);
|
|
1354
|
+
return g.useEffect(() => {
|
|
1368
1355
|
const o = i.current;
|
|
1369
1356
|
o.style.opacity = "0", o.style.width = "auto", o.style.left = "0px", o.style.top = "0px";
|
|
1370
1357
|
let d = {
|
|
@@ -1395,7 +1382,7 @@ const us = ({
|
|
|
1395
1382
|
var kt;
|
|
1396
1383
|
((e) => {
|
|
1397
1384
|
e.Init = () => {
|
|
1398
|
-
let [t, a] =
|
|
1385
|
+
let [t, a] = g.useState("");
|
|
1399
1386
|
return Ge.set = (r) => a(r), Ge.del = () => a(""), /* @__PURE__ */ n.jsx(n.Fragment, { children: t });
|
|
1400
1387
|
}, e.Text = ({
|
|
1401
1388
|
content: t,
|
|
@@ -1497,7 +1484,7 @@ var A;
|
|
|
1497
1484
|
}
|
|
1498
1485
|
};
|
|
1499
1486
|
})(A || (A = {}));
|
|
1500
|
-
const Z = {}, $ = {},
|
|
1487
|
+
const Z = {}, $ = {}, he = { module: "", page: "Auth", main: "Main" };
|
|
1501
1488
|
var ee;
|
|
1502
1489
|
((e) => {
|
|
1503
1490
|
async function t() {
|
|
@@ -1506,25 +1493,25 @@ var ee;
|
|
|
1506
1493
|
if (C = await A.deCode(C), !C) return !1;
|
|
1507
1494
|
$.id = C.id, $.tab = C.tab, $.page = C.page, $.module = C.module, $.time = C.time, $.payment = { active: !0 }, $.module_admin = C.module_admin;
|
|
1508
1495
|
} else
|
|
1509
|
-
$.id = 0, $.tab = "", $.page =
|
|
1496
|
+
$.id = 0, $.tab = "", $.page = he.main, $.module = he.module;
|
|
1510
1497
|
return !0;
|
|
1511
1498
|
}
|
|
1512
1499
|
e.Load = t;
|
|
1513
1500
|
function a() {
|
|
1514
|
-
$.id = 0, $.tab = "", $.page =
|
|
1501
|
+
$.id = 0, $.tab = "", $.page = he.page, $.module = he.module;
|
|
1515
1502
|
}
|
|
1516
1503
|
e.Reset = a;
|
|
1517
1504
|
function r({
|
|
1518
|
-
module: C =
|
|
1519
|
-
page: k =
|
|
1520
|
-
main: F =
|
|
1505
|
+
module: C = he.module,
|
|
1506
|
+
page: k = he.page,
|
|
1507
|
+
main: F = he.main
|
|
1521
1508
|
}) {
|
|
1522
|
-
|
|
1509
|
+
he.page = k, he.module = C, he.main = F;
|
|
1523
1510
|
}
|
|
1524
1511
|
e.Default = r;
|
|
1525
1512
|
function s() {
|
|
1526
|
-
const [C, k] =
|
|
1527
|
-
k(
|
|
1513
|
+
const [C, k] = g.useState(o()), F = (S) => {
|
|
1514
|
+
k(S);
|
|
1528
1515
|
};
|
|
1529
1516
|
return Z.page = F, [C];
|
|
1530
1517
|
}
|
|
@@ -1543,12 +1530,12 @@ var ee;
|
|
|
1543
1530
|
e.isPage = d;
|
|
1544
1531
|
function l(C) {
|
|
1545
1532
|
if (typeof C != "function") {
|
|
1546
|
-
const [k, F] =
|
|
1533
|
+
const [k, F] = g.useState(
|
|
1547
1534
|
C || c()
|
|
1548
|
-
),
|
|
1535
|
+
), S = (L) => {
|
|
1549
1536
|
F(L);
|
|
1550
1537
|
};
|
|
1551
|
-
return Z.module =
|
|
1538
|
+
return Z.module = S, [k];
|
|
1552
1539
|
} else
|
|
1553
1540
|
Z.module = C;
|
|
1554
1541
|
}
|
|
@@ -1561,44 +1548,44 @@ var ee;
|
|
|
1561
1548
|
return $.module;
|
|
1562
1549
|
}
|
|
1563
1550
|
e.getModule = c;
|
|
1564
|
-
function
|
|
1551
|
+
function m(C) {
|
|
1565
1552
|
return $.module === C;
|
|
1566
1553
|
}
|
|
1567
|
-
e.isModule =
|
|
1568
|
-
function
|
|
1554
|
+
e.isModule = m;
|
|
1555
|
+
function f(C) {
|
|
1569
1556
|
if (typeof C != "function") {
|
|
1570
|
-
const [k, F] =
|
|
1557
|
+
const [k, F] = g.useState(C || x());
|
|
1571
1558
|
return Z.tabs = F, [k];
|
|
1572
1559
|
} else
|
|
1573
1560
|
Z.tabs = C;
|
|
1574
1561
|
}
|
|
1575
|
-
e.useTabs =
|
|
1576
|
-
async function
|
|
1562
|
+
e.useTabs = f;
|
|
1563
|
+
async function h(C, k = !0) {
|
|
1577
1564
|
if ($.tab = C, sessionStorage.setItem("f", await A.enCode($)), Z.dynamicURL && Z.dynamicURL($), !!k)
|
|
1578
1565
|
if (Z.tabs)
|
|
1579
1566
|
Z.tabs(C);
|
|
1580
1567
|
else
|
|
1581
1568
|
throw new Error("useTabs not found");
|
|
1582
1569
|
}
|
|
1583
|
-
e.setTabs =
|
|
1584
|
-
function
|
|
1570
|
+
e.setTabs = h;
|
|
1571
|
+
function x() {
|
|
1585
1572
|
return $.tab;
|
|
1586
1573
|
}
|
|
1587
|
-
e.getTabs =
|
|
1588
|
-
function
|
|
1574
|
+
e.getTabs = x;
|
|
1575
|
+
function p(C) {
|
|
1589
1576
|
return $.tab === C;
|
|
1590
1577
|
}
|
|
1591
|
-
e.isTabs =
|
|
1592
|
-
function
|
|
1578
|
+
e.isTabs = p;
|
|
1579
|
+
function v(C) {
|
|
1593
1580
|
if (typeof C != "function") {
|
|
1594
|
-
const [k, F] =
|
|
1581
|
+
const [k, F] = g.useState(C || I()), S = (L) => {
|
|
1595
1582
|
F(L);
|
|
1596
1583
|
};
|
|
1597
|
-
return Z.id =
|
|
1584
|
+
return Z.id = S, [k];
|
|
1598
1585
|
} else
|
|
1599
1586
|
Z.id = C;
|
|
1600
1587
|
}
|
|
1601
|
-
e.useId =
|
|
1588
|
+
e.useId = v;
|
|
1602
1589
|
function y(C) {
|
|
1603
1590
|
Z.id = C;
|
|
1604
1591
|
}
|
|
@@ -1607,10 +1594,10 @@ var ee;
|
|
|
1607
1594
|
$.id = C, sessionStorage.setItem("f", await A.enCode($)), Z.dynamicURL && Z.dynamicURL($), k && Z.id(C);
|
|
1608
1595
|
}
|
|
1609
1596
|
e.setId = j;
|
|
1610
|
-
function
|
|
1597
|
+
function I() {
|
|
1611
1598
|
return $.id;
|
|
1612
1599
|
}
|
|
1613
|
-
e.getId =
|
|
1600
|
+
e.getId = I;
|
|
1614
1601
|
function N(C) {
|
|
1615
1602
|
return Number($.id) === C;
|
|
1616
1603
|
}
|
|
@@ -1619,19 +1606,19 @@ var ee;
|
|
|
1619
1606
|
$.module = C, $.id = F, $.tab = k, sessionStorage.setItem("f", await A.enCode($)), Z.dynamicURL && Z.dynamicURL($), Z.module(C), Z.tabs(k);
|
|
1620
1607
|
}
|
|
1621
1608
|
e.Path = R;
|
|
1622
|
-
async function
|
|
1623
|
-
var L,
|
|
1609
|
+
async function D(C, k, F, S) {
|
|
1610
|
+
var L, E, w;
|
|
1624
1611
|
if ($.page === C)
|
|
1625
1612
|
if ($.module === k) {
|
|
1626
|
-
if ($.tab = F || "", $.id =
|
|
1613
|
+
if ($.tab = F || "", $.id = S || 0, $.tab === "") return;
|
|
1627
1614
|
(L = Z.tabs) == null || L.call(Z, F);
|
|
1628
1615
|
} else
|
|
1629
|
-
$.module = k, $.tab = F || "", $.id =
|
|
1616
|
+
$.module = k, $.tab = F || "", $.id = S || 0, (E = Z.module) == null || E.call(Z, k);
|
|
1630
1617
|
else
|
|
1631
|
-
$.module = k, $.tab = F || "", $.id =
|
|
1618
|
+
$.module = k, $.tab = F || "", $.id = S || 0, $.page = C, (w = Z.page) == null || w.call(Z, C);
|
|
1632
1619
|
sessionStorage.setItem("f", await A.enCode($)), Z.dynamicURL && Z.dynamicURL($);
|
|
1633
1620
|
}
|
|
1634
|
-
e.Push =
|
|
1621
|
+
e.Push = D;
|
|
1635
1622
|
})(ee || (ee = {}));
|
|
1636
1623
|
function xs(e, t) {
|
|
1637
1624
|
t === void 0 ? (t = e, e = /* @__PURE__ */ new Date()) : e = new Date(e);
|
|
@@ -1671,16 +1658,16 @@ function vs(e) {
|
|
|
1671
1658
|
};
|
|
1672
1659
|
}
|
|
1673
1660
|
const Cs = (e) => {
|
|
1674
|
-
function t(
|
|
1675
|
-
var R, C,
|
|
1676
|
-
|
|
1677
|
-
for (var R = [],
|
|
1678
|
-
R.push(
|
|
1661
|
+
function t(I, N) {
|
|
1662
|
+
var R, C, D;
|
|
1663
|
+
I = I ?? "", N = N ?? 1;
|
|
1664
|
+
for (var R = [], D = 0, C = I.length; D < C; )
|
|
1665
|
+
R.push(I.slice(D, D += N));
|
|
1679
1666
|
return R;
|
|
1680
1667
|
}
|
|
1681
|
-
function a(
|
|
1668
|
+
function a(I, N) {
|
|
1682
1669
|
var R = [2, 0, 1, 1, 1, 2];
|
|
1683
|
-
return N[
|
|
1670
|
+
return N[I > 4 && I < 20 ? 2 : R[Math.min(I, 5)]];
|
|
1684
1671
|
}
|
|
1685
1672
|
var r = {
|
|
1686
1673
|
null: "ноль",
|
|
@@ -1744,29 +1731,29 @@ const Cs = (e) => {
|
|
|
1744
1731
|
u3: ["тысяча", "тысячи", "тысяч"],
|
|
1745
1732
|
u2: ["миллион", "миллиона", "миллионов"],
|
|
1746
1733
|
u1: ["миллиард", "миллиарда", "миллиардов"]
|
|
1747
|
-
}, s, i, o, d,
|
|
1734
|
+
}, s, i, o, d, v, l, _, p, c, m, f, h;
|
|
1748
1735
|
c = parseFloat(e).toFixed(2).split("."), l = c[0], d = c[1];
|
|
1749
|
-
var
|
|
1750
|
-
if (
|
|
1736
|
+
var x = 12 - l.length;
|
|
1737
|
+
if (x < 0)
|
|
1751
1738
|
return !1;
|
|
1752
|
-
for (var
|
|
1753
|
-
|
|
1754
|
-
l =
|
|
1755
|
-
var
|
|
1739
|
+
for (var p = []; x--; )
|
|
1740
|
+
p.push("0");
|
|
1741
|
+
l = p.join("") + l;
|
|
1742
|
+
var v = [];
|
|
1756
1743
|
if (l > 0) {
|
|
1757
|
-
|
|
1758
|
-
for (var y = -1; y <
|
|
1759
|
-
if (_ =
|
|
1760
|
-
r.a20[i - 2] + (o > 0 ? " " + r[
|
|
1761
|
-
) :
|
|
1762
|
-
i > 0 ? r.a10[o] : r[
|
|
1763
|
-
),
|
|
1744
|
+
m = t(l, 3);
|
|
1745
|
+
for (var y = -1; y < m.length; y++)
|
|
1746
|
+
if (_ = m[y], _ > 0 && (f = t(_, 1), s = parseInt(f[0]), i = parseInt(f[1]), o = parseInt(f[2]), v.push(r.a100[s - 1]), h = y + 1 == 3 ? "a2" : "a1", i > 1 ? v.push(
|
|
1747
|
+
r.a20[i - 2] + (o > 0 ? " " + r[h][o - 1] : "")
|
|
1748
|
+
) : v.push(
|
|
1749
|
+
i > 0 ? r.a10[o] : r[h][o - 1]
|
|
1750
|
+
), m.length > y + 1)) {
|
|
1764
1751
|
var j = r["u" + (y + 1)];
|
|
1765
|
-
|
|
1752
|
+
v.push(a(_, j));
|
|
1766
1753
|
}
|
|
1767
1754
|
} else
|
|
1768
|
-
|
|
1769
|
-
return
|
|
1755
|
+
v.push(r.null);
|
|
1756
|
+
return v.push(a(l, r.ur)), v.push(d + " " + a(d, r.uc)), v.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
|
|
1770
1757
|
};
|
|
1771
1758
|
function js(e) {
|
|
1772
1759
|
let t = -1, a = [" kB", " MB", " GB", " TB", "PB", "EB", "ZB", "YB"];
|
|
@@ -1902,32 +1889,32 @@ function ws(e, t, a, r) {
|
|
|
1902
1889
|
word: function(o, d, l, _) {
|
|
1903
1890
|
if (_ === this.gcaseNom) return o;
|
|
1904
1891
|
if (o.match(/[-]/)) {
|
|
1905
|
-
for (var c = o.split("-"),
|
|
1906
|
-
c[
|
|
1892
|
+
for (var c = o.split("-"), m = 0, f = c.length; m < f; m++)
|
|
1893
|
+
c[m] = this.word(c[m], d, l, _);
|
|
1907
1894
|
return c.join("-");
|
|
1908
1895
|
}
|
|
1909
1896
|
if (o.match(/^[А-ЯЁ]\.?$/i)) return o;
|
|
1910
1897
|
this.init();
|
|
1911
|
-
var
|
|
1912
|
-
let
|
|
1913
|
-
return
|
|
1898
|
+
var h = this.rules[l];
|
|
1899
|
+
let x;
|
|
1900
|
+
return h.exceptions && (x = this.pick(o, d, _, h.exceptions, !0), x) ? x : (x = this.pick(o, d, _, h.suffixes, !1), x || o);
|
|
1914
1901
|
},
|
|
1915
1902
|
// выбираем из списка правил первое подходящее и применяем
|
|
1916
1903
|
pick: function(o, d, l, _, c) {
|
|
1917
|
-
let
|
|
1918
|
-
for (var
|
|
1919
|
-
if (this.ruleMatch(
|
|
1920
|
-
return this.applyMod(o, l, _[
|
|
1904
|
+
let m = o.toLowerCase();
|
|
1905
|
+
for (var f = 0, h = _.length; f < h; f++)
|
|
1906
|
+
if (this.ruleMatch(m, d, _[f], c))
|
|
1907
|
+
return this.applyMod(o, l, _[f]);
|
|
1921
1908
|
return !1;
|
|
1922
1909
|
},
|
|
1923
1910
|
// проверяем, подходит ли правило к слову
|
|
1924
1911
|
ruleMatch: function(o, d, l, _) {
|
|
1925
1912
|
if (l.sex === this.sexM && d === this.sexF || l.sex === this.sexF && d !== this.sexF) return !1;
|
|
1926
|
-
for (var c = 0,
|
|
1927
|
-
var
|
|
1913
|
+
for (var c = 0, m = l.test.length; c < m; c++) {
|
|
1914
|
+
var f = _ ? o : o.substr(
|
|
1928
1915
|
Math.max(o.length - l.test[c].length, 0)
|
|
1929
1916
|
);
|
|
1930
|
-
if (
|
|
1917
|
+
if (f === l.test[c]) return !0;
|
|
1931
1918
|
}
|
|
1932
1919
|
return !1;
|
|
1933
1920
|
},
|
|
@@ -1954,16 +1941,16 @@ function ws(e, t, a, r) {
|
|
|
1954
1941
|
_ = l.mods[4];
|
|
1955
1942
|
break;
|
|
1956
1943
|
}
|
|
1957
|
-
for (var c = 0,
|
|
1958
|
-
var
|
|
1959
|
-
switch (
|
|
1944
|
+
for (var c = 0, m = _.length; c < m; c++) {
|
|
1945
|
+
var f = _.substr(c, 1);
|
|
1946
|
+
switch (f) {
|
|
1960
1947
|
case ".":
|
|
1961
1948
|
break;
|
|
1962
1949
|
case "-":
|
|
1963
1950
|
o = o.substr(0, o.length - 1);
|
|
1964
1951
|
break;
|
|
1965
1952
|
default:
|
|
1966
|
-
o +=
|
|
1953
|
+
o += f;
|
|
1967
1954
|
}
|
|
1968
1955
|
}
|
|
1969
1956
|
return o;
|
|
@@ -2037,20 +2024,20 @@ function Ns(e, t) {
|
|
|
2037
2024
|
let a = e % 10;
|
|
2038
2025
|
return e > 10 && e < 20 ? t[2] : a > 1 && a < 5 ? t[1] : a === 1 ? t[0] : t[2];
|
|
2039
2026
|
}
|
|
2040
|
-
const Cn = {}, Zn = {},
|
|
2041
|
-
let we = "",
|
|
2027
|
+
const Cn = {}, Zn = {}, de = {}, xe = {}, Me = {};
|
|
2028
|
+
let we = "", me = {};
|
|
2042
2029
|
function Rs(e) {
|
|
2043
|
-
const [t, a] =
|
|
2044
|
-
return
|
|
2030
|
+
const [t, a] = g.useState(!1);
|
|
2031
|
+
return g.useEffect(() => {
|
|
2045
2032
|
localStorage.getItem("d") ? (async () => {
|
|
2046
2033
|
if (await ee.Load()) return a(!0);
|
|
2047
|
-
|
|
2034
|
+
ie();
|
|
2048
2035
|
})() : (["a", "b", "c", "d", "e", "m", "u", "s", "p", "q", "w"].forEach(
|
|
2049
2036
|
(s) => localStorage.removeItem(s)
|
|
2050
2037
|
), ["f"].forEach((s) => sessionStorage.removeItem(s)), ee.Reset(), a(!0));
|
|
2051
2038
|
}, []), t ? e : "";
|
|
2052
2039
|
}
|
|
2053
|
-
function
|
|
2040
|
+
function ie() {
|
|
2054
2041
|
["a", "b", "c", "d", "e", "m", "u", "s", "q", "p", "t", "w"].forEach(
|
|
2055
2042
|
(e) => localStorage.removeItem(e)
|
|
2056
2043
|
), ["f"].forEach((e) => sessionStorage.removeItem(e)), window.history.pushState({}, "", "/"), window.location.reload();
|
|
@@ -2076,16 +2063,16 @@ function Fs() {
|
|
|
2076
2063
|
let e = localStorage.getItem("p");
|
|
2077
2064
|
if (e !== "" && e !== "undefined" && e !== null) {
|
|
2078
2065
|
let t = A.deCode(e);
|
|
2079
|
-
return t ||
|
|
2066
|
+
return t || ie(), t;
|
|
2080
2067
|
} else
|
|
2081
|
-
return
|
|
2068
|
+
return ie(), !1;
|
|
2082
2069
|
}
|
|
2083
2070
|
async function Ps(e, t) {
|
|
2084
2071
|
Cn.data[e] = t, localStorage.setItem("s", await A.enCode(Cn.data));
|
|
2085
2072
|
}
|
|
2086
2073
|
function As(e) {
|
|
2087
2074
|
let t = localStorage.getItem("s");
|
|
2088
|
-
return t === null ? {} : (t = A.deCode(t), t ? e !== void 0 ? t[e] : t :
|
|
2075
|
+
return t === null ? {} : (t = A.deCode(t), t ? e !== void 0 ? t[e] : t : ie());
|
|
2089
2076
|
}
|
|
2090
2077
|
async function Os(e) {
|
|
2091
2078
|
localStorage.setItem("m", await A.enCode({ data: e }));
|
|
@@ -2096,7 +2083,7 @@ function Zs() {
|
|
|
2096
2083
|
let t = localStorage.getItem("m");
|
|
2097
2084
|
if (t === null) return !1;
|
|
2098
2085
|
let a = A.deCode(t);
|
|
2099
|
-
a ||
|
|
2086
|
+
a || ie();
|
|
2100
2087
|
const r = (i, o) => {
|
|
2101
2088
|
let d = o + "";
|
|
2102
2089
|
for (; d.length < i; ) d = "0" + d;
|
|
@@ -2104,7 +2091,7 @@ function Zs() {
|
|
|
2104
2091
|
};
|
|
2105
2092
|
return a.data.split(",").map((i) => "M" + r(2, i));
|
|
2106
2093
|
} else
|
|
2107
|
-
return
|
|
2094
|
+
return ie(), !1;
|
|
2108
2095
|
}
|
|
2109
2096
|
function Gs(e) {
|
|
2110
2097
|
}
|
|
@@ -2124,24 +2111,24 @@ async function Wn(e, t) {
|
|
|
2124
2111
|
let a = localStorage.getItem("c");
|
|
2125
2112
|
if (a !== "" && a !== "undefined" && a !== null) {
|
|
2126
2113
|
let s = await A.deCode(a);
|
|
2127
|
-
return s ||
|
|
2114
|
+
return s || ie(), e === void 0 ? s : t ? (r = s[e][t]) == null ? void 0 : r.n : s[e];
|
|
2128
2115
|
} else
|
|
2129
|
-
return
|
|
2116
|
+
return ie(), !1;
|
|
2130
2117
|
}
|
|
2131
2118
|
async function Us(e) {
|
|
2132
|
-
|
|
2119
|
+
xe.data = e, localStorage.setItem("q", await A.enCode(xe.data));
|
|
2133
2120
|
}
|
|
2134
|
-
async function
|
|
2135
|
-
|
|
2121
|
+
async function zs(e, t) {
|
|
2122
|
+
xe.data = { ...xe.data, [e]: t }, localStorage.setItem("q", await A.enCode(xe.data));
|
|
2136
2123
|
}
|
|
2137
2124
|
function Ye(e, t) {
|
|
2138
|
-
if (!
|
|
2125
|
+
if (!xe.data) {
|
|
2139
2126
|
let a = localStorage.getItem("q");
|
|
2140
|
-
a && (
|
|
2127
|
+
a && (xe.data = A.deCode(a));
|
|
2141
2128
|
}
|
|
2142
|
-
return e === void 0 && t === void 0 ?
|
|
2129
|
+
return e === void 0 && t === void 0 ? xe.data : e !== void 0 && t === void 0 ? xe.data[e] : xe.data[e][t];
|
|
2143
2130
|
}
|
|
2144
|
-
function
|
|
2131
|
+
function Ks(e) {
|
|
2145
2132
|
Zn.data = e;
|
|
2146
2133
|
}
|
|
2147
2134
|
function Ys(e) {
|
|
@@ -2156,9 +2143,9 @@ async function Js() {
|
|
|
2156
2143
|
let e = localStorage.getItem("u");
|
|
2157
2144
|
if (e !== "" && e !== "undefined" && e !== null) {
|
|
2158
2145
|
let t = await A.deCode(e);
|
|
2159
|
-
return t ||
|
|
2146
|
+
return t || ie(), Me.data = t, t;
|
|
2160
2147
|
} else
|
|
2161
|
-
return
|
|
2148
|
+
return ie(), !1;
|
|
2162
2149
|
}
|
|
2163
2150
|
async function Xs() {
|
|
2164
2151
|
let e = localStorage.getItem("u");
|
|
@@ -2178,7 +2165,7 @@ function ei() {
|
|
|
2178
2165
|
if (e !== "" && e !== "undefined" && e !== null)
|
|
2179
2166
|
try {
|
|
2180
2167
|
let t = A.deCode(e);
|
|
2181
|
-
return t ||
|
|
2168
|
+
return t || ie(), t;
|
|
2182
2169
|
} catch {
|
|
2183
2170
|
return {};
|
|
2184
2171
|
}
|
|
@@ -2192,52 +2179,52 @@ function ti(e) {
|
|
|
2192
2179
|
try {
|
|
2193
2180
|
let s = await A.deCode(r);
|
|
2194
2181
|
if (!s) return;
|
|
2195
|
-
|
|
2182
|
+
me[a] = { is: !0, time: s.time, data: s.data };
|
|
2196
2183
|
} catch {
|
|
2197
|
-
|
|
2184
|
+
me[a] = { is: !1, time: 0, data: {} };
|
|
2198
2185
|
}
|
|
2199
2186
|
else
|
|
2200
|
-
|
|
2187
|
+
me[a] = { is: !1, time: 0, data: {} };
|
|
2201
2188
|
};
|
|
2202
2189
|
e.forEach((a) => t(a));
|
|
2203
2190
|
}
|
|
2204
2191
|
function ni(e) {
|
|
2205
|
-
return
|
|
2192
|
+
return me[e] === void 0 ? (me[e] = { data: {}, time: 0 }, { data: {}, time: 0 }) : me[e];
|
|
2206
2193
|
}
|
|
2207
2194
|
async function ai(e, t) {
|
|
2208
|
-
|
|
2195
|
+
me[e] = { data: t.data, time: t.time }, localStorage.setItem(e, await A.enCode(me[e]));
|
|
2209
2196
|
}
|
|
2210
2197
|
async function ri(e, t) {
|
|
2211
|
-
|
|
2198
|
+
de[e] = t, localStorage.setItem("t", await A.enCode(de));
|
|
2212
2199
|
}
|
|
2213
2200
|
async function si(e) {
|
|
2214
|
-
if (Object.keys(
|
|
2201
|
+
if (Object.keys(de).length === 0) {
|
|
2215
2202
|
let t = localStorage.getItem("t");
|
|
2216
2203
|
if (t !== "" && t !== "undefined" && t !== null) {
|
|
2217
2204
|
let a = await A.deCode(t);
|
|
2218
|
-
return a ||
|
|
2219
|
-
|
|
2220
|
-
}), e ?
|
|
2205
|
+
return a || ie(), Object.keys(a).forEach((r) => {
|
|
2206
|
+
de[r] = a[r];
|
|
2207
|
+
}), e ? de[e] : de;
|
|
2221
2208
|
} else
|
|
2222
|
-
return
|
|
2209
|
+
return ie(), {};
|
|
2223
2210
|
} else
|
|
2224
|
-
return e ?
|
|
2211
|
+
return e ? de[e] : de;
|
|
2225
2212
|
}
|
|
2226
2213
|
async function ii(e) {
|
|
2227
|
-
if (Object.keys(
|
|
2214
|
+
if (Object.keys(de).length === 0) {
|
|
2228
2215
|
let t = localStorage.getItem("t");
|
|
2229
2216
|
if (t !== "" && t !== "undefined" && t !== null) {
|
|
2230
2217
|
let a = await A.deCode(t);
|
|
2231
2218
|
return a ? (Object.keys(a).forEach((r) => {
|
|
2232
|
-
|
|
2233
|
-
}), !!
|
|
2219
|
+
de[r] = a[r];
|
|
2220
|
+
}), !!de[e]) : !1;
|
|
2234
2221
|
} else
|
|
2235
2222
|
return !1;
|
|
2236
2223
|
} else
|
|
2237
|
-
return !!
|
|
2224
|
+
return !!de[e];
|
|
2238
2225
|
}
|
|
2239
2226
|
async function oi(e, t, a) {
|
|
2240
|
-
|
|
2227
|
+
me[e].time = a, me[e].data[t.item][t.name] = t.value, localStorage.setItem(e, await A.enCode(me[e]));
|
|
2241
2228
|
}
|
|
2242
2229
|
function li() {
|
|
2243
2230
|
var a;
|
|
@@ -2246,7 +2233,7 @@ function li() {
|
|
|
2246
2233
|
try {
|
|
2247
2234
|
return JSON.parse(t || "{}");
|
|
2248
2235
|
} catch {
|
|
2249
|
-
return
|
|
2236
|
+
return fe.Error("Error parse devMod"), {};
|
|
2250
2237
|
}
|
|
2251
2238
|
}
|
|
2252
2239
|
function Un() {
|
|
@@ -2423,8 +2410,8 @@ const Y = {
|
|
|
2423
2410
|
Y[e] = t;
|
|
2424
2411
|
}
|
|
2425
2412
|
}, ki = ({ before: e, from: t = 0, to: a, secund: r = 3 }) => {
|
|
2426
|
-
const s =
|
|
2427
|
-
return
|
|
2413
|
+
const s = g.useRef();
|
|
2414
|
+
return g.useEffect(() => {
|
|
2428
2415
|
s.s = !0;
|
|
2429
2416
|
const i = 1e3, o = a / (r * 10);
|
|
2430
2417
|
s.n = 0;
|
|
@@ -2446,7 +2433,7 @@ const Y = {
|
|
|
2446
2433
|
setPORT: $s,
|
|
2447
2434
|
setAUTH: Ms,
|
|
2448
2435
|
getAUTH: Bs,
|
|
2449
|
-
Logaut:
|
|
2436
|
+
Logaut: ie,
|
|
2450
2437
|
setMenu: Os,
|
|
2451
2438
|
getMenu: Zs,
|
|
2452
2439
|
useSort: Gs,
|
|
@@ -2455,9 +2442,9 @@ const Y = {
|
|
|
2455
2442
|
setCompany: Ws,
|
|
2456
2443
|
getCompany: Wn,
|
|
2457
2444
|
setSelect: Us,
|
|
2458
|
-
addSelect:
|
|
2445
|
+
addSelect: zs,
|
|
2459
2446
|
getSelect: Ye,
|
|
2460
|
-
setApi:
|
|
2447
|
+
setApi: Ks,
|
|
2461
2448
|
getApi: Ys,
|
|
2462
2449
|
setPayment: Hs,
|
|
2463
2450
|
getPayment: qs,
|
|
@@ -2475,7 +2462,7 @@ const Y = {
|
|
|
2475
2462
|
devMod: li,
|
|
2476
2463
|
isBrowser: ci,
|
|
2477
2464
|
getBrowser: Un
|
|
2478
|
-
}, bi = "_h_1usnu_1", Si = "_g_1usnu_11", Ei = "_hr_1usnu_16", Ii = "_hl_1usnu_28", Di = "_t_1usnu_40", Ni = "_s_1usnu_60", Ri = "_u_1usnu_69", Ti = "_o_1usnu_76", Li = "_l_1usnu_105", Mi = "_hh_1usnu_115", Bi = "_c_1usnu_128", $i = "_loadingB_1usnu_1", Fi = "_m_1usnu_180", Pi = "_ul_1usnu_196", Ai = "_f_1usnu_226",
|
|
2465
|
+
}, bi = "_h_1usnu_1", Si = "_g_1usnu_11", Ei = "_hr_1usnu_16", Ii = "_hl_1usnu_28", Di = "_t_1usnu_40", Ni = "_s_1usnu_60", Ri = "_u_1usnu_69", Ti = "_o_1usnu_76", Li = "_l_1usnu_105", Mi = "_hh_1usnu_115", Bi = "_c_1usnu_128", $i = "_loadingB_1usnu_1", Fi = "_m_1usnu_180", Pi = "_ul_1usnu_196", Ai = "_f_1usnu_226", se = {
|
|
2479
2466
|
h: bi,
|
|
2480
2467
|
g: Si,
|
|
2481
2468
|
hr: Ei,
|
|
@@ -2491,22 +2478,22 @@ const Y = {
|
|
|
2491
2478
|
m: Fi,
|
|
2492
2479
|
ul: Pi,
|
|
2493
2480
|
f: Ai
|
|
2494
|
-
}, yn = ({ title: e, left: t, right: a, children: r }) => /* @__PURE__ */ n.jsxs("div", { className:
|
|
2495
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
2496
|
-
t && /* @__PURE__ */ n.jsx("div", { className:
|
|
2497
|
-
a && /* @__PURE__ */ n.jsx("div", { className:
|
|
2481
|
+
}, yn = ({ title: e, left: t, right: a, children: r }) => /* @__PURE__ */ n.jsxs("div", { className: se.h, children: [
|
|
2482
|
+
/* @__PURE__ */ n.jsx("div", { className: se.t, children: e }),
|
|
2483
|
+
t && /* @__PURE__ */ n.jsx("div", { className: se.hl, children: t }),
|
|
2484
|
+
a && /* @__PURE__ */ n.jsx("div", { className: se.hr, children: a }),
|
|
2498
2485
|
r
|
|
2499
|
-
] }), wn = ({ children: e, ...t }) => /* @__PURE__ */ n.jsx("div", { className:
|
|
2486
|
+
] }), wn = ({ children: e, ...t }) => /* @__PURE__ */ n.jsx("div", { className: se.l, children: e }), kn = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: se.s, children: e }), bn = ({ children: e, edit: t }) => {
|
|
2500
2487
|
const a = {};
|
|
2501
|
-
return t && (a.edit = ""), /* @__PURE__ */ n.jsx("div", { ...a, className:
|
|
2488
|
+
return t && (a.edit = ""), /* @__PURE__ */ n.jsx("div", { ...a, className: se.f, children: e });
|
|
2502
2489
|
};
|
|
2503
2490
|
function Sn({ children: e }) {
|
|
2504
|
-
return /* @__PURE__ */ n.jsx("div", { className:
|
|
2491
|
+
return /* @__PURE__ */ n.jsx("div", { className: se.g, children: e });
|
|
2505
2492
|
}
|
|
2506
|
-
const Oi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("div", { className: [
|
|
2507
|
-
a && /* @__PURE__ */ n.jsx("div", { className:
|
|
2493
|
+
const Oi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("div", { className: [se.o, t].join(" "), children: [
|
|
2494
|
+
a && /* @__PURE__ */ n.jsx("div", { className: se.hh, children: a }),
|
|
2508
2495
|
e
|
|
2509
|
-
] }), Zi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className:
|
|
2496
|
+
] }), Zi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: se.u, children: e }), Gi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: se.c, children: e }), Wi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: se.m, children: e }), Ui = Ke.Line, En = {
|
|
2510
2497
|
Header: yn,
|
|
2511
2498
|
Section: kn,
|
|
2512
2499
|
Group: Sn,
|
|
@@ -2522,7 +2509,7 @@ const Oi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
|
|
|
2522
2509
|
H: yn,
|
|
2523
2510
|
M: Wi,
|
|
2524
2511
|
F: bn
|
|
2525
|
-
},
|
|
2512
|
+
}, zi = (e, t) => {
|
|
2526
2513
|
switch (t.type) {
|
|
2527
2514
|
case "load":
|
|
2528
2515
|
return {
|
|
@@ -2583,7 +2570,7 @@ const Oi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
|
|
|
2583
2570
|
default:
|
|
2584
2571
|
return e;
|
|
2585
2572
|
}
|
|
2586
|
-
},
|
|
2573
|
+
}, Ki = () => ({
|
|
2587
2574
|
load: !0,
|
|
2588
2575
|
list: [],
|
|
2589
2576
|
name: "Файлы",
|
|
@@ -2591,7 +2578,7 @@ const Oi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
|
|
|
2591
2578
|
search: !1,
|
|
2592
2579
|
revers: !0
|
|
2593
2580
|
}), Yi = () => {
|
|
2594
|
-
let [e, t] =
|
|
2581
|
+
let [e, t] = g.useState([]);
|
|
2595
2582
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ n.jsxs("div", { className: "upload view", children: [
|
|
2596
2583
|
/* @__PURE__ */ n.jsxs("div", { className: "--head", children: [
|
|
2597
2584
|
/* @__PURE__ */ n.jsx("b", { children: "Загрузки" }),
|
|
@@ -2613,7 +2600,7 @@ const Oi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
|
|
|
2613
2600
|
dir: r
|
|
2614
2601
|
}) => {
|
|
2615
2602
|
t = t || "Файлы";
|
|
2616
|
-
const [s, i] =
|
|
2603
|
+
const [s, i] = g.useReducer(zi, {}, Ki), o = () => {
|
|
2617
2604
|
Ne.Add(
|
|
2618
2605
|
/* @__PURE__ */ n.jsx(
|
|
2619
2606
|
qi,
|
|
@@ -2626,7 +2613,7 @@ const Oi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
|
|
|
2626
2613
|
)
|
|
2627
2614
|
);
|
|
2628
2615
|
};
|
|
2629
|
-
return
|
|
2616
|
+
return g.useEffect(() => {
|
|
2630
2617
|
}, [e, r]), /* @__PURE__ */ n.jsxs(En.O, { children: [
|
|
2631
2618
|
" ",
|
|
2632
2619
|
/* @__PURE__ */ n.jsx(
|
|
@@ -2659,12 +2646,12 @@ const Oi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
|
|
|
2659
2646
|
] }) : s.list.length === 0 ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : s.list.map((d, l) => /* @__PURE__ */ n.jsx(Ji, { dispatch: i, data: d }, l)) })
|
|
2660
2647
|
] });
|
|
2661
2648
|
}, qi = ({ id: e, dir: t, dispatch: a }) => {
|
|
2662
|
-
let [r, s] =
|
|
2649
|
+
let [r, s] = g.useState(!0), i = g.useRef(null), o = (_) => {
|
|
2663
2650
|
_.preventDefault(), _.stopPropagation();
|
|
2664
2651
|
}, d = (_) => {
|
|
2665
2652
|
}, l = (_) => {
|
|
2666
2653
|
};
|
|
2667
|
-
return
|
|
2654
|
+
return g.useEffect(() => {
|
|
2668
2655
|
let _ = i.current;
|
|
2669
2656
|
["dragenter", "dragover", "dragleave", "drop"].forEach((c) => {
|
|
2670
2657
|
_.addEventListener(c, o, !1), document.body.addEventListener(c, o, !1);
|
|
@@ -2709,7 +2696,7 @@ const Oi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
|
|
|
2709
2696
|
) }) : "" });
|
|
2710
2697
|
}, Ji = ({ data: e, dispatch: t }) => {
|
|
2711
2698
|
let a = async () => {
|
|
2712
|
-
let i = await (await fetch(
|
|
2699
|
+
let i = await (await fetch(ze.url().files + "/yandex/data/" + e.id, {
|
|
2713
2700
|
headers: {
|
|
2714
2701
|
"Content-type": "application/json;charset=utf-8",
|
|
2715
2702
|
SSID: ke.getSSID() || ""
|
|
@@ -2722,12 +2709,12 @@ const Oi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
|
|
|
2722
2709
|
d.setAttribute("href", o), d.setAttribute("download", e.name), d.click();
|
|
2723
2710
|
}
|
|
2724
2711
|
}, r = async () => {
|
|
2725
|
-
(await (await fetch(
|
|
2712
|
+
(await (await fetch(ze.url().files + "/yandex/delete/" + e.id, {
|
|
2726
2713
|
headers: {
|
|
2727
2714
|
"Content-type": "application/json;charset=utf-8",
|
|
2728
2715
|
SSID: ke.getSSID() || ""
|
|
2729
2716
|
}
|
|
2730
|
-
})).json()).status === "success" && (t({ type: "delete", id: e.id }),
|
|
2717
|
+
})).json()).status === "success" && (t({ type: "delete", id: e.id }), fe.Send({ type: "success", text: "Файл успешно удалён" }));
|
|
2731
2718
|
};
|
|
2732
2719
|
return /* @__PURE__ */ n.jsxs("li", { children: [
|
|
2733
2720
|
/* @__PURE__ */ n.jsx("div", { className: "f035", children: Y.TypeFiles(e.type) }),
|
|
@@ -2761,8 +2748,8 @@ q.list = ei();
|
|
|
2761
2748
|
q.active = null;
|
|
2762
2749
|
const Xi = () => {
|
|
2763
2750
|
var s;
|
|
2764
|
-
let [e, t] =
|
|
2765
|
-
return
|
|
2751
|
+
let [e, t] = g.useState([]), [a, r] = g.useState($t.getSetting("s03"));
|
|
2752
|
+
return g.useEffect(() => {
|
|
2766
2753
|
(async () => {
|
|
2767
2754
|
let i = Object.keys(q.list);
|
|
2768
2755
|
if (i.length !== 0) {
|
|
@@ -2798,14 +2785,14 @@ const Xi = () => {
|
|
|
2798
2785
|
a === 1 && e.length !== 0 ? "bottom" : ""
|
|
2799
2786
|
), a !== 0 ? /* @__PURE__ */ n.jsx(n.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ n.jsx("div", { className: "bookmarks", children: e.map((i) => i.item) }) : "" }) : "";
|
|
2800
2787
|
}, Vi = ({ id: e, type: t, name: a }) => {
|
|
2801
|
-
let r = t + "-" + e, [s, i] =
|
|
2788
|
+
let r = t + "-" + e, [s, i] = g.useState(
|
|
2802
2789
|
q.list[r] !== void 0
|
|
2803
2790
|
);
|
|
2804
|
-
|
|
2791
|
+
g.useEffect(() => {
|
|
2805
2792
|
i(q.list[r] !== void 0);
|
|
2806
2793
|
}, [r]);
|
|
2807
2794
|
let o = () => {
|
|
2808
|
-
q.list[r] !== void 0 ? (q.del(r), delete q.list[r], jn(q.list), i(!1),
|
|
2795
|
+
q.list[r] !== void 0 ? (q.del(r), delete q.list[r], jn(q.list), i(!1), fe.Send({ type: "success", text: "Запись удален из закладок" })) : (q.list[r] = { id: e, name: a, type: t, link: r }, q.set(q.list[r]), jn(q.list), i(!0), fe.Send({
|
|
2809
2796
|
type: "success",
|
|
2810
2797
|
text: "Запись добавлен в закладки"
|
|
2811
2798
|
}));
|
|
@@ -2930,8 +2917,8 @@ H.Run = async (e) => {
|
|
|
2930
2917
|
};
|
|
2931
2918
|
let Ue = {};
|
|
2932
2919
|
function eo() {
|
|
2933
|
-
let [e, t] =
|
|
2934
|
-
return
|
|
2920
|
+
let [e, t] = g.useState([]), a = g.useRef(null);
|
|
2921
|
+
return g.useEffect(() => {
|
|
2935
2922
|
}, []), Ue.set = (r) => {
|
|
2936
2923
|
t([...e, r]);
|
|
2937
2924
|
}, Ue.del = () => {
|
|
@@ -2951,8 +2938,8 @@ function to(e, t) {
|
|
|
2951
2938
|
});
|
|
2952
2939
|
}
|
|
2953
2940
|
function no({ id: e, type: t }) {
|
|
2954
|
-
const [a, r] =
|
|
2955
|
-
|
|
2941
|
+
const [a, r] = g.useState({}), [s, i] = g.useState(t);
|
|
2942
|
+
g.useEffect(() => {
|
|
2956
2943
|
r(ke.getSelect("user")[e]);
|
|
2957
2944
|
}, []), H.useListener((l) => {
|
|
2958
2945
|
switch (l.type) {
|
|
@@ -3058,7 +3045,7 @@ function ro({ color: e, size: t, name: a }) {
|
|
|
3058
3045
|
return /* @__PURE__ */ n.jsx("svg", { width: t, height: t, color: e, children: /* @__PURE__ */ n.jsx("use", { href: `#${a}` }) });
|
|
3059
3046
|
}
|
|
3060
3047
|
function so() {
|
|
3061
|
-
let [e, t] =
|
|
3048
|
+
let [e, t] = g.useState([]);
|
|
3062
3049
|
if (It.x = () => {
|
|
3063
3050
|
t([]);
|
|
3064
3051
|
}, It.add = (r) => {
|
|
@@ -3077,20 +3064,20 @@ function so() {
|
|
|
3077
3064
|
s
|
|
3078
3065
|
)) });
|
|
3079
3066
|
}
|
|
3080
|
-
let
|
|
3067
|
+
let at = {}, Dt = {}, Nt = "ru";
|
|
3081
3068
|
const io = (e, t) => {
|
|
3082
3069
|
Dt = e, t ? Nt = t : Nt = Object.keys(e)[0];
|
|
3083
|
-
},
|
|
3070
|
+
}, zn = Ln(
|
|
3084
3071
|
localStorage.getItem("lang") || navigator.language
|
|
3085
3072
|
), oo = ({ children: e }) => {
|
|
3086
|
-
const [t, a] =
|
|
3073
|
+
const [t, a] = g.useState(
|
|
3087
3074
|
localStorage.getItem("lang") || navigator.language
|
|
3088
3075
|
);
|
|
3089
|
-
return
|
|
3076
|
+
return at.update = a, /* @__PURE__ */ n.jsx(zn.Provider, { value: Dt[t] || Dt[Nt], children: e });
|
|
3090
3077
|
}, lo = (e) => {
|
|
3091
3078
|
var t;
|
|
3092
|
-
localStorage.setItem("lang", e), (t =
|
|
3093
|
-
}, co = () => qa(
|
|
3079
|
+
localStorage.setItem("lang", e), (t = at.update) == null || t.call(at, e);
|
|
3080
|
+
}, co = () => qa(zn), _o = () => localStorage.getItem("lang") || navigator.language;
|
|
3094
3081
|
Ln({
|
|
3095
3082
|
tab: "",
|
|
3096
3083
|
setTabs: (e) => {
|
|
@@ -3105,8 +3092,8 @@ function uo(e, t) {
|
|
|
3105
3092
|
}
|
|
3106
3093
|
const be = {};
|
|
3107
3094
|
function fo(e, t) {
|
|
3108
|
-
const [a, r] =
|
|
3109
|
-
return
|
|
3095
|
+
const [a, r] = g.useState(t);
|
|
3096
|
+
return g.useEffect(() => {
|
|
3110
3097
|
if (be[e]) return be[e].push(r);
|
|
3111
3098
|
be[e] = [r];
|
|
3112
3099
|
}, []), [a];
|
|
@@ -3118,18 +3105,18 @@ function mo(e, t) {
|
|
|
3118
3105
|
function ho(e, t) {
|
|
3119
3106
|
be[e] && be[e].forEach((a) => a(t));
|
|
3120
3107
|
}
|
|
3121
|
-
const
|
|
3108
|
+
const ve = { setListener: uo, useListener: Ft, setEmitter: ho, useEmitter: fo, subEmitter: mo };
|
|
3122
3109
|
function po() {
|
|
3123
|
-
let [e, t] =
|
|
3124
|
-
return
|
|
3110
|
+
let [e, t] = g.useState([]);
|
|
3111
|
+
return ve.useListener("form", (a) => {
|
|
3125
3112
|
t([a]);
|
|
3126
3113
|
}), /* @__PURE__ */ n.jsx(n.Fragment, { children: e.map((a) => a) });
|
|
3127
3114
|
}
|
|
3128
3115
|
const go = ({ children: e, lang: t }) => Rs(
|
|
3129
3116
|
/* @__PURE__ */ n.jsxs(oo, { children: [
|
|
3130
3117
|
/* @__PURE__ */ n.jsx(Ne.Init, {}),
|
|
3131
|
-
/* @__PURE__ */ n.jsx(
|
|
3132
|
-
/* @__PURE__ */ n.jsx(
|
|
3118
|
+
/* @__PURE__ */ n.jsx(fe.Init, {}),
|
|
3119
|
+
/* @__PURE__ */ n.jsx(Ke.Init, {}),
|
|
3133
3120
|
/* @__PURE__ */ n.jsx(kt.Init, {}),
|
|
3134
3121
|
/* @__PURE__ */ n.jsx(Yi, {}),
|
|
3135
3122
|
/* @__PURE__ */ n.jsx(so, {}),
|
|
@@ -3145,7 +3132,7 @@ const go = ({ children: e, lang: t }) => Rs(
|
|
|
3145
3132
|
payment: Co
|
|
3146
3133
|
};
|
|
3147
3134
|
function yo() {
|
|
3148
|
-
let [e, t] =
|
|
3135
|
+
let [e, t] = g.useState({});
|
|
3149
3136
|
return !e.active && !e.payment ? "" : /* @__PURE__ */ n.jsx("div", { className: jo.payment, children: "Истек срок оплаты! Доступ доступен до 16.04.2024" });
|
|
3150
3137
|
}
|
|
3151
3138
|
const ad = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("div", { className: "app", children: [
|
|
@@ -3154,7 +3141,7 @@ const ad = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("div", { className:
|
|
|
3154
3141
|
/* @__PURE__ */ n.jsx(vo, {}),
|
|
3155
3142
|
/* @__PURE__ */ n.jsx(go, {}),
|
|
3156
3143
|
e
|
|
3157
|
-
] }), wo = "_btn_294gf_1", ko = "_confirm_294gf_15", bo = "_cancel_294gf_20", So = "_action_294gf_25", Eo = "_disabled_294gf_30", Io = "_m_294gf_44", Do = "_l_294gf_48",
|
|
3144
|
+
] }), wo = "_btn_294gf_1", ko = "_confirm_294gf_15", bo = "_cancel_294gf_20", So = "_action_294gf_25", Eo = "_disabled_294gf_30", Io = "_m_294gf_44", Do = "_l_294gf_48", nt = {
|
|
3158
3145
|
btn: wo,
|
|
3159
3146
|
confirm: ko,
|
|
3160
3147
|
cancel: bo,
|
|
@@ -3175,28 +3162,28 @@ const ad = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("div", { className:
|
|
|
3175
3162
|
after: l,
|
|
3176
3163
|
before: _,
|
|
3177
3164
|
label: c,
|
|
3178
|
-
onRef:
|
|
3179
|
-
awaitText:
|
|
3165
|
+
onRef: m,
|
|
3166
|
+
awaitText: f = "Ожидайте"
|
|
3180
3167
|
}) => {
|
|
3181
|
-
let [
|
|
3182
|
-
const
|
|
3168
|
+
let [h, x] = g.useState(!1);
|
|
3169
|
+
const p = (y) => {
|
|
3183
3170
|
if (e) return e();
|
|
3184
|
-
|
|
3171
|
+
h || (t ? (x(!0), t(x)) : y.preventDefault());
|
|
3185
3172
|
};
|
|
3186
|
-
let
|
|
3187
|
-
return (o ||
|
|
3173
|
+
let v = {};
|
|
3174
|
+
return (o || h) && (v.disabled = !0), /* @__PURE__ */ n.jsx(
|
|
3188
3175
|
"button",
|
|
3189
3176
|
{
|
|
3190
|
-
...
|
|
3191
|
-
ref:
|
|
3177
|
+
...v,
|
|
3178
|
+
ref: m,
|
|
3192
3179
|
className: [
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
a &&
|
|
3180
|
+
nt.btn,
|
|
3181
|
+
h ? nt.disabled : nt[r],
|
|
3182
|
+
a && nt[a],
|
|
3196
3183
|
d
|
|
3197
3184
|
].join(" "),
|
|
3198
|
-
onClick:
|
|
3199
|
-
children:
|
|
3185
|
+
onClick: p,
|
|
3186
|
+
children: h ? f : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
3200
3187
|
_ || "",
|
|
3201
3188
|
" ",
|
|
3202
3189
|
c,
|
|
@@ -3217,7 +3204,7 @@ const ad = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("div", { className:
|
|
|
3217
3204
|
)) }) }), To = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t }), Lo = "_tabs_1i88v_1", Mo = "_tab_1i88v_1", In = {
|
|
3218
3205
|
tabs: Lo,
|
|
3219
3206
|
tab: Mo
|
|
3220
|
-
},
|
|
3207
|
+
}, Kn = ({ list: e = [], active: t, onTab: a }) => {
|
|
3221
3208
|
const r = (s) => {
|
|
3222
3209
|
if (a) return a(s);
|
|
3223
3210
|
ee.setTabs(s);
|
|
@@ -3240,7 +3227,7 @@ const ad = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("div", { className:
|
|
|
3240
3227
|
className: r,
|
|
3241
3228
|
after: s
|
|
3242
3229
|
}) => {
|
|
3243
|
-
const [i, o] =
|
|
3230
|
+
const [i, o] = g.useState(t);
|
|
3244
3231
|
return /* @__PURE__ */ n.jsxs("div", { className: ["tabs-button", r].join(" "), children: [
|
|
3245
3232
|
/* @__PURE__ */ n.jsx("ul", { children: e.map((d) => /* @__PURE__ */ n.jsx(
|
|
3246
3233
|
$o,
|
|
@@ -3273,7 +3260,7 @@ const ad = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("div", { className:
|
|
|
3273
3260
|
]
|
|
3274
3261
|
}
|
|
3275
3262
|
);
|
|
3276
|
-
}, rd = { List: Ro, Lite:
|
|
3263
|
+
}, rd = { List: Ro, Lite: Kn, Button: Bo }, Fo = ({
|
|
3277
3264
|
title: e = "",
|
|
3278
3265
|
button: t,
|
|
3279
3266
|
description: a = "",
|
|
@@ -3296,7 +3283,7 @@ const ad = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("div", { className:
|
|
|
3296
3283
|
] }), Po = "_setting_dva4m_2", Ao = {
|
|
3297
3284
|
setting: Po
|
|
3298
3285
|
}, Oo = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: Ao.setting, children: e }), Zo = ({ label: e, children: t }) => {
|
|
3299
|
-
let [a, r] =
|
|
3286
|
+
let [a, r] = g.useState(!1);
|
|
3300
3287
|
return /* @__PURE__ */ n.jsxs("li", { "data-item": "accordion", children: [
|
|
3301
3288
|
/* @__PURE__ */ n.jsxs("dl", { onClick: () => r(!a), children: [
|
|
3302
3289
|
/* @__PURE__ */ n.jsx("dt", { children: e }),
|
|
@@ -3316,10 +3303,10 @@ const ad = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("div", { className:
|
|
|
3316
3303
|
},
|
|
3317
3304
|
"aria-checked": e ? "true" : "false"
|
|
3318
3305
|
}
|
|
3319
|
-
)), Uo = { Switch: Wo },
|
|
3306
|
+
)), Uo = { Switch: Wo }, zo = ({ label: e, onClick: t, active: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
|
|
3320
3307
|
/* @__PURE__ */ n.jsx("dt", { children: e }),
|
|
3321
3308
|
/* @__PURE__ */ n.jsx("dd", { children: /* @__PURE__ */ n.jsx(Uo.Switch, { onClick: t, active: a }) })
|
|
3322
|
-
] }) }),
|
|
3309
|
+
] }) }), Ko = ({ label: e, active: t, options: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
|
|
3323
3310
|
/* @__PURE__ */ n.jsx("dt", { children: e }),
|
|
3324
3311
|
/* @__PURE__ */ n.jsx("dd", { role: "info", children: t })
|
|
3325
3312
|
] }) }), Yo = ({ label: e, info: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
|
|
@@ -3331,7 +3318,7 @@ const ad = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("div", { className:
|
|
|
3331
3318
|
] }) }), qo = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
|
|
3332
3319
|
/* @__PURE__ */ n.jsx("dt", { children: e }),
|
|
3333
3320
|
/* @__PURE__ */ n.jsx("dd", { children: t })
|
|
3334
|
-
] }) }), Jo = { Accordion: Zo, Button: Go, Switch:
|
|
3321
|
+
] }) }), Jo = { Accordion: Zo, Button: Go, Switch: zo, Info: Yo, Select: Ko, Component: Ho, Node: qo };
|
|
3335
3322
|
function Yn({ list: e, onClick: t, active: a, size: r, view: s }) {
|
|
3336
3323
|
return /* @__PURE__ */ n.jsx("nav", { children: /* @__PURE__ */ n.jsx("ul", { className: [r, s].join(" "), children: e.map((i) => /* @__PURE__ */ n.jsx(
|
|
3337
3324
|
Xo,
|
|
@@ -3349,7 +3336,7 @@ Yn.defaultProps = { size: "M", view: "H" };
|
|
|
3349
3336
|
const sd = { Section: Fo, Main: Oo, Item: Jo, Tabs: Yn };
|
|
3350
3337
|
function Vo({ value: e, background: t, gradient: a }) {
|
|
3351
3338
|
let r = 835.24, s = r - e / 100 * r;
|
|
3352
|
-
const i =
|
|
3339
|
+
const i = g.useId();
|
|
3353
3340
|
return /* @__PURE__ */ n.jsxs(
|
|
3354
3341
|
"svg",
|
|
3355
3342
|
{
|
|
@@ -3444,7 +3431,7 @@ il.setAttribute = (e, t) => {
|
|
|
3444
3431
|
};
|
|
3445
3432
|
function ol({ items: e, list: t, icons: a, isSetting: r = !0 }) {
|
|
3446
3433
|
const s = () => {
|
|
3447
|
-
|
|
3434
|
+
Ke.Send(
|
|
3448
3435
|
{ title: "Выйти", text: "Вы уверене что хотиет выйти" },
|
|
3449
3436
|
() => {
|
|
3450
3437
|
ke.Logaut();
|
|
@@ -3487,10 +3474,10 @@ const ll = ({ items: e, i: t, icons: a }) => t[0] === "#" ? /* @__PURE__ */ n.js
|
|
|
3487
3474
|
]
|
|
3488
3475
|
}
|
|
3489
3476
|
), cl = ({ icons: e }) => {
|
|
3490
|
-
const [t, a] =
|
|
3477
|
+
const [t, a] = g.useState(!1), r = g.useRef(null), s = async () => {
|
|
3491
3478
|
r.current && (await r.current.prompt(), a(!1));
|
|
3492
3479
|
};
|
|
3493
|
-
return
|
|
3480
|
+
return g.useEffect(() => {
|
|
3494
3481
|
window.addEventListener("appinstalled", (i) => {
|
|
3495
3482
|
}), window.addEventListener("beforeinstallprompt", async (i) => {
|
|
3496
3483
|
i.preventDefault(), r.current = i, a(!0);
|
|
@@ -3508,38 +3495,38 @@ function qn({
|
|
|
3508
3495
|
searchParams: s = ["p01", "p02", "p03"],
|
|
3509
3496
|
...i
|
|
3510
3497
|
}) {
|
|
3511
|
-
const [o, d] =
|
|
3512
|
-
let
|
|
3513
|
-
|
|
3498
|
+
const [o, d] = g.useState([]), [l, _] = g.useState([]), [c, m] = g.useState(!1), f = async () => {
|
|
3499
|
+
let h = await ze.fetch(e, t);
|
|
3500
|
+
h.data && h.data.length > 0 && (d(h.data), _(h.data)), m(!0);
|
|
3514
3501
|
};
|
|
3515
|
-
return
|
|
3516
|
-
if (
|
|
3517
|
-
let
|
|
3518
|
-
(
|
|
3502
|
+
return ve.useListener("list_children", (h) => {
|
|
3503
|
+
if (h.action === "edit") {
|
|
3504
|
+
let x = l.map(
|
|
3505
|
+
(p) => p.id === h.id ? Object.assign(p, { [h.name]: h.value }) : p
|
|
3519
3506
|
);
|
|
3520
|
-
d(
|
|
3507
|
+
d(x), _(x);
|
|
3521
3508
|
}
|
|
3522
|
-
if (
|
|
3523
|
-
let
|
|
3524
|
-
d(
|
|
3509
|
+
if (h.action === "delete") {
|
|
3510
|
+
let x = l.filter((p) => p.id !== h.id);
|
|
3511
|
+
d(x), _(x);
|
|
3525
3512
|
}
|
|
3526
|
-
}),
|
|
3513
|
+
}), ve.useListener("search", (h) => {
|
|
3527
3514
|
d(
|
|
3528
|
-
l.filter((
|
|
3515
|
+
l.filter((x) => ("" + s.map((v) => x[v]).toString()).toLowerCase().includes(h.toLowerCase()))
|
|
3529
3516
|
);
|
|
3530
|
-
}),
|
|
3531
|
-
|
|
3532
|
-
}, []), c && o.length === 0 ? /* @__PURE__ */ n.jsx("ul", { className: "list-body", children: r }) : /* @__PURE__ */ n.jsx("ul", { className: "list-body", children: o.map((
|
|
3517
|
+
}), g.useEffect(() => {
|
|
3518
|
+
f(), a && ve.setListener("button", a);
|
|
3519
|
+
}, []), c && o.length === 0 ? /* @__PURE__ */ n.jsx("ul", { className: "list-body", children: r }) : /* @__PURE__ */ n.jsx("ul", { className: "list-body", children: o.map((h, x) => /* @__PURE__ */ n.jsx(i.item, { data: h, count: x + 1 }, h.id)) });
|
|
3533
3520
|
}
|
|
3534
3521
|
const cd = { Menu: ol, List: qn }, dl = "_sort_1yrvt_1", _l = {
|
|
3535
3522
|
sort: dl
|
|
3536
3523
|
};
|
|
3537
|
-
let
|
|
3524
|
+
let it = {};
|
|
3538
3525
|
function ul(e, t) {
|
|
3539
3526
|
switch (t.type) {
|
|
3540
3527
|
case "active":
|
|
3541
3528
|
let a = "<";
|
|
3542
|
-
return e.active === t.data && (a = e.sort === "<" ? ">" : "<"),
|
|
3529
|
+
return e.active === t.data && (a = e.sort === "<" ? ">" : "<"), it.get({ active: t.data, sort: a }, !1), Gn({ active: t.data, sort: a }), {
|
|
3543
3530
|
...e,
|
|
3544
3531
|
active: t.data,
|
|
3545
3532
|
sort: a
|
|
@@ -3549,7 +3536,7 @@ function ul(e, t) {
|
|
|
3549
3536
|
}
|
|
3550
3537
|
}
|
|
3551
3538
|
function fl() {
|
|
3552
|
-
const [e, t] =
|
|
3539
|
+
const [e, t] = g.useReducer(
|
|
3553
3540
|
ul,
|
|
3554
3541
|
bt() === void 0 ? { active: 1, sort: "<" } : bt()
|
|
3555
3542
|
);
|
|
@@ -3581,10 +3568,10 @@ function fl() {
|
|
|
3581
3568
|
] });
|
|
3582
3569
|
}
|
|
3583
3570
|
function ml(e) {
|
|
3584
|
-
|
|
3571
|
+
it.get = e;
|
|
3585
3572
|
}
|
|
3586
3573
|
function hl(e) {
|
|
3587
|
-
|
|
3574
|
+
it.set(e);
|
|
3588
3575
|
}
|
|
3589
3576
|
function pl(e, t, a) {
|
|
3590
3577
|
let r = 1, s = 0, i = {}, o = 50;
|
|
@@ -3606,31 +3593,31 @@ function pl(e, t, a) {
|
|
|
3606
3593
|
}), { data: i };
|
|
3607
3594
|
}
|
|
3608
3595
|
function gl(e) {
|
|
3609
|
-
|
|
3596
|
+
it.count(e);
|
|
3610
3597
|
}
|
|
3611
|
-
const dd = { Init: fl, useValue: ml, Set: hl, Run: pl, Count: gl },
|
|
3598
|
+
const dd = { Init: fl, useValue: ml, Set: hl, Run: pl, Count: gl }, rt = {}, Jn = {};
|
|
3612
3599
|
function xl(e) {
|
|
3613
|
-
const [t, a] =
|
|
3600
|
+
const [t, a] = g.useState({}), r = async (s) => {
|
|
3614
3601
|
a(
|
|
3615
|
-
Object.keys(
|
|
3602
|
+
Object.keys(rt).reduce((i, o) => (i ? i[o] = rt[o].all : i = {}, i), {})
|
|
3616
3603
|
);
|
|
3617
3604
|
};
|
|
3618
|
-
return
|
|
3619
|
-
e.forEach((s) =>
|
|
3605
|
+
return g.useEffect(() => {
|
|
3606
|
+
e.forEach((s) => rt[s] = { all: 0 }), Jn.menu = r, r();
|
|
3620
3607
|
}, [e]), t;
|
|
3621
3608
|
}
|
|
3622
3609
|
function vl(e, t) {
|
|
3623
3610
|
switch (typeof t) {
|
|
3624
3611
|
case "number":
|
|
3625
|
-
|
|
3612
|
+
rt[e].all += t, Jn.menu();
|
|
3626
3613
|
break;
|
|
3627
3614
|
}
|
|
3628
3615
|
}
|
|
3629
3616
|
const _d = { useMenu: xl, setUpdate: vl };
|
|
3630
3617
|
class Cl {
|
|
3631
3618
|
constructor(t = "el", a = "db") {
|
|
3632
|
-
|
|
3633
|
-
|
|
3619
|
+
gt(this, "storeName");
|
|
3620
|
+
gt(this, "_dbp");
|
|
3634
3621
|
this.storeName = a, this._dbp = new Promise((r, s) => {
|
|
3635
3622
|
const i = indexedDB.open(t, 1);
|
|
3636
3623
|
i.onerror = () => s(i.error), i.onsuccess = () => r(i.result), i.onupgradeneeded = () => {
|
|
@@ -3650,7 +3637,7 @@ class Cl {
|
|
|
3650
3637
|
let vt, X = {};
|
|
3651
3638
|
const Be = () => (vt || (vt = new Cl()), vt), Se = (e, t, a = Be()) => a._withIDBStore("readwrite", (r) => {
|
|
3652
3639
|
X[e] = t, r.put(A.enCode(t), e);
|
|
3653
|
-
}),
|
|
3640
|
+
}), Ce = (e, t = Be()) => X[e] === void 0 ? new Promise((a, r) => {
|
|
3654
3641
|
let s;
|
|
3655
3642
|
t._withIDBStore("readonly", (i) => {
|
|
3656
3643
|
s = i.get(e);
|
|
@@ -3673,26 +3660,26 @@ const Be = () => (vt || (vt = new Cl()), vt), Se = (e, t, a = Be()) => a._withID
|
|
|
3673
3660
|
};
|
|
3674
3661
|
}).then(() => t);
|
|
3675
3662
|
}, wl = (e, t, a = [], r = {}) => {
|
|
3676
|
-
let s = a.length !== 0, i = [], o = r.sort, d = Object.keys(r).length !== 0, l = Object.keys(r), _ = Object.keys(e), c = [],
|
|
3677
|
-
let
|
|
3678
|
-
if (a.forEach((
|
|
3679
|
-
|
|
3663
|
+
let s = a.length !== 0, i = [], o = r.sort, d = Object.keys(r).length !== 0, l = Object.keys(r), _ = Object.keys(e), c = [], m = (h) => {
|
|
3664
|
+
let x = "";
|
|
3665
|
+
if (a.forEach((p) => {
|
|
3666
|
+
x += t[h][p];
|
|
3680
3667
|
}), d) {
|
|
3681
|
-
let
|
|
3682
|
-
l.forEach((
|
|
3683
|
-
|
|
3668
|
+
let p = {};
|
|
3669
|
+
l.forEach((v) => {
|
|
3670
|
+
p[v] = t[h][v];
|
|
3684
3671
|
});
|
|
3685
|
-
for (let
|
|
3686
|
-
t[
|
|
3687
|
-
i.push({ id:
|
|
3672
|
+
for (let v in o)
|
|
3673
|
+
t[h][o[v]] === void 0 && (Lt(), location.reload()), v === "s1" && (p[v] = new Date(t[h][o[v]]).getTime()), v === "s2" && (p[v] = t[h][o[v]]), v === "s3" && (p[v] = t[h][o[v]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
|
|
3674
|
+
i.push({ id: h, text: x, ...p });
|
|
3688
3675
|
} else
|
|
3689
|
-
i.push({ id:
|
|
3690
|
-
},
|
|
3676
|
+
i.push({ id: h, text: x });
|
|
3677
|
+
}, f = (h) => {
|
|
3691
3678
|
};
|
|
3692
|
-
return _.forEach((
|
|
3693
|
-
c.push(t[
|
|
3694
|
-
}), c.forEach((
|
|
3695
|
-
|
|
3679
|
+
return _.forEach((h) => {
|
|
3680
|
+
c.push(t[h]);
|
|
3681
|
+
}), c.forEach((h) => {
|
|
3682
|
+
h === void 0 ? (Lt(), location.reload()) : (s && m(h.id), d && f(h.id));
|
|
3696
3683
|
}), { list: c, search: i, filter: r };
|
|
3697
3684
|
}, kl = (e, t, a, r = Be()) => {
|
|
3698
3685
|
if (X[e] === void 0)
|
|
@@ -3717,30 +3704,30 @@ const Be = () => (vt || (vt = new Cl()), vt), Se = (e, t, a = Be()) => a._withID
|
|
|
3717
3704
|
});
|
|
3718
3705
|
}, bl = async (e, t, a, r) => {
|
|
3719
3706
|
let s, i;
|
|
3720
|
-
i = await
|
|
3707
|
+
i = await Ce(a), i[e.id] = e, await Se(a, i), s !== null && (s = await Ce(t), s[e.id] = e.eDate, await Se(t, s)), r !== void 0 && r({ type: "load", page: s, base: i });
|
|
3721
3708
|
}, Sl = async (e, t, a, r) => {
|
|
3722
|
-
let s = await
|
|
3709
|
+
let s = await Ce(t), i = await Ce(a);
|
|
3723
3710
|
for (let o in e)
|
|
3724
3711
|
i[o] = e[o], s[o] = e[o].eDate;
|
|
3725
3712
|
await Se(t, s), await Se(a, i), r !== void 0 && r({ type: "load", page: s, base: i });
|
|
3726
3713
|
}, El = async (e, t, a, r) => {
|
|
3727
|
-
let s = await
|
|
3714
|
+
let s = await Ce(t), i = await Ce(a);
|
|
3728
3715
|
e.forEach((o) => delete s[o]), await Se(t, s), r !== void 0 && r({ type: "load", page: s, base: i });
|
|
3729
3716
|
}, Il = async (e, t, a) => {
|
|
3730
|
-
let r = await
|
|
3717
|
+
let r = await Ce(t);
|
|
3731
3718
|
e.forEach((s) => delete r[s]), await Se(t, r);
|
|
3732
3719
|
}, Dl = async (e, t, a) => {
|
|
3733
|
-
let r = await
|
|
3720
|
+
let r = await Ce(t);
|
|
3734
3721
|
e.forEach((s) => r[s.id] = s.eDate), await Se(t, r);
|
|
3735
3722
|
}, Nl = async (e, t, a) => {
|
|
3736
|
-
let r = await
|
|
3723
|
+
let r = await Ce(t);
|
|
3737
3724
|
if (a !== void 0)
|
|
3738
3725
|
a({ type: "load", base: r });
|
|
3739
3726
|
else
|
|
3740
3727
|
return r[e];
|
|
3741
3728
|
}, Rl = (e) => X[e], ud = {
|
|
3742
3729
|
id: Nl,
|
|
3743
|
-
get:
|
|
3730
|
+
get: Ce,
|
|
3744
3731
|
set: Se,
|
|
3745
3732
|
add: bl,
|
|
3746
3733
|
del: jl,
|
|
@@ -3776,7 +3763,7 @@ const Be = () => (vt || (vt = new Cl()), vt), Se = (e, t, a = Be()) => a._withID
|
|
|
3776
3763
|
ul: Bl
|
|
3777
3764
|
};
|
|
3778
3765
|
function Xn({ children: e }) {
|
|
3779
|
-
return /* @__PURE__ */ n.jsx("ul", { className:
|
|
3766
|
+
return /* @__PURE__ */ n.jsx("ul", { className: se.ul, children: e });
|
|
3780
3767
|
}
|
|
3781
3768
|
function Fl(e, t) {
|
|
3782
3769
|
switch (t.type) {
|
|
@@ -3817,7 +3804,7 @@ function Pl({
|
|
|
3817
3804
|
className: a,
|
|
3818
3805
|
...r
|
|
3819
3806
|
}) {
|
|
3820
|
-
const s =
|
|
3807
|
+
const s = g.useRef(null), [i, o] = g.useReducer(Fl, {
|
|
3821
3808
|
load: !1,
|
|
3822
3809
|
list: [],
|
|
3823
3810
|
data: {},
|
|
@@ -3825,7 +3812,7 @@ function Pl({
|
|
|
3825
3812
|
wait: !1,
|
|
3826
3813
|
size: 0
|
|
3827
3814
|
});
|
|
3828
|
-
|
|
3815
|
+
g.useEffect(() => {
|
|
3829
3816
|
s.current.scrollTop = 0, e !== null && o({ type: "load", load: !0, data: e });
|
|
3830
3817
|
}, [t]);
|
|
3831
3818
|
let d = () => {
|
|
@@ -3853,17 +3840,17 @@ const hd = { Widget: Hi }, Vn = ({ onClick: e, active: t }) => (t = !!t, /* @__P
|
|
|
3853
3840
|
"aria-checked": `${t ? "true" : "false"}`
|
|
3854
3841
|
}
|
|
3855
3842
|
));
|
|
3856
|
-
let
|
|
3857
|
-
|
|
3843
|
+
let z = {};
|
|
3844
|
+
z.KeyDown = (e) => {
|
|
3858
3845
|
e.key === "Enter" && e.preventDefault();
|
|
3859
3846
|
};
|
|
3860
|
-
|
|
3847
|
+
z.PasteOne = (e) => {
|
|
3861
3848
|
e.preventDefault(), navigator.clipboard.readText().then((t) => {
|
|
3862
3849
|
t = t.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, t);
|
|
3863
3850
|
}).catch((t) => {
|
|
3864
3851
|
});
|
|
3865
3852
|
};
|
|
3866
|
-
|
|
3853
|
+
z.Paste = (e, t) => {
|
|
3867
3854
|
t.preventDefault(), navigator.clipboard.readText().then((a) => {
|
|
3868
3855
|
if (e) {
|
|
3869
3856
|
let r = t.target.textContent.length;
|
|
@@ -3878,13 +3865,13 @@ K.Paste = (e, t) => {
|
|
|
3878
3865
|
}).catch((a) => {
|
|
3879
3866
|
});
|
|
3880
3867
|
};
|
|
3881
|
-
|
|
3868
|
+
z.Focus = (e) => {
|
|
3882
3869
|
e.target.textContent.length === 0 && (e.target.innerHTML = "<br>");
|
|
3883
3870
|
};
|
|
3884
|
-
|
|
3871
|
+
z.Blur = (e) => {
|
|
3885
3872
|
e.target.scrollLeft = 0, e.target.querySelector("br") !== null && e.target.querySelector("br").remove();
|
|
3886
3873
|
};
|
|
3887
|
-
|
|
3874
|
+
z.ContentEditable = ke.isBrowser("Firefox") ? "true" : "plaintext-only";
|
|
3888
3875
|
function He({
|
|
3889
3876
|
id: e,
|
|
3890
3877
|
value: t,
|
|
@@ -3897,36 +3884,36 @@ function He({
|
|
|
3897
3884
|
edit: l = !0,
|
|
3898
3885
|
active: _ = !0,
|
|
3899
3886
|
after: c = "",
|
|
3900
|
-
before:
|
|
3901
|
-
show:
|
|
3902
|
-
maxLength:
|
|
3903
|
-
onSave:
|
|
3904
|
-
className:
|
|
3905
|
-
isCopy:
|
|
3887
|
+
before: m = "",
|
|
3888
|
+
show: f = !0,
|
|
3889
|
+
maxLength: h,
|
|
3890
|
+
onSave: x,
|
|
3891
|
+
className: p = "",
|
|
3892
|
+
isCopy: v = !0,
|
|
3906
3893
|
isReload: y = !1
|
|
3907
3894
|
}) {
|
|
3908
|
-
let j = !!(d && (t === "" || t === void 0)),
|
|
3895
|
+
let j = !!(d && (t === "" || t === void 0)), I = (S) => {
|
|
3909
3896
|
a && a({
|
|
3910
|
-
value:
|
|
3897
|
+
value: S.target.textContent.trim(),
|
|
3911
3898
|
name: r,
|
|
3912
3899
|
reload: y
|
|
3913
3900
|
});
|
|
3914
|
-
}, N = (
|
|
3915
|
-
|
|
3916
|
-
}, R = (
|
|
3917
|
-
|
|
3901
|
+
}, N = (S) => {
|
|
3902
|
+
h && S.target.textContent.trim().length >= h && S.key !== "Backspace" && S.preventDefault(), S.key === "Enter" && S.preventDefault();
|
|
3903
|
+
}, R = (S) => {
|
|
3904
|
+
v && (S.preventDefault(), navigator.clipboard.writeText(S.target.textContent.trim()).then(
|
|
3918
3905
|
function() {
|
|
3919
|
-
|
|
3906
|
+
fe.Copy("Данные в буфер обмене");
|
|
3920
3907
|
},
|
|
3921
3908
|
function(L) {
|
|
3922
3909
|
}
|
|
3923
3910
|
));
|
|
3924
|
-
},
|
|
3925
|
-
|
|
3926
|
-
if (
|
|
3927
|
-
let
|
|
3928
|
-
if (
|
|
3929
|
-
|
|
3911
|
+
}, D = (S) => {
|
|
3912
|
+
S.preventDefault(), navigator.clipboard.readText().then((L) => {
|
|
3913
|
+
if (h) {
|
|
3914
|
+
let E = S.target.textContent.length;
|
|
3915
|
+
if (E >= h) return;
|
|
3916
|
+
h -= E, L = L.slice(0, h);
|
|
3930
3917
|
}
|
|
3931
3918
|
window.document.execCommand(
|
|
3932
3919
|
"insertText",
|
|
@@ -3936,27 +3923,27 @@ function He({
|
|
|
3936
3923
|
}).catch((L) => {
|
|
3937
3924
|
});
|
|
3938
3925
|
};
|
|
3939
|
-
if (!(l && _) && !
|
|
3926
|
+
if (!(l && _) && !f || !(l && _) && j) return "";
|
|
3940
3927
|
const C = {};
|
|
3941
|
-
C.field = "input",
|
|
3928
|
+
C.field = "input", p && (C.className = p);
|
|
3942
3929
|
const k = {};
|
|
3943
3930
|
s && (k.placeholder = s), l && _ && (k.edit = "");
|
|
3944
|
-
const F = (
|
|
3945
|
-
|
|
3931
|
+
const F = (S) => {
|
|
3932
|
+
z.Blur(S), x == null || x({ value: S.target.textContent.trim(), name: r });
|
|
3946
3933
|
};
|
|
3947
3934
|
return /* @__PURE__ */ n.jsxs("dl", { ...C, children: [
|
|
3948
3935
|
i ? /* @__PURE__ */ n.jsx("dt", { children: i }) : "",
|
|
3949
|
-
|
|
3936
|
+
m,
|
|
3950
3937
|
/* @__PURE__ */ n.jsx(
|
|
3951
3938
|
"dd",
|
|
3952
3939
|
{
|
|
3953
|
-
onPaste:
|
|
3954
|
-
onInput:
|
|
3940
|
+
onPaste: D,
|
|
3941
|
+
onInput: I,
|
|
3955
3942
|
onBlur: F,
|
|
3956
3943
|
onKeyDown: N,
|
|
3957
3944
|
onContextMenu: R,
|
|
3958
3945
|
spellCheck: "true",
|
|
3959
|
-
contentEditable: l && _ ?
|
|
3946
|
+
contentEditable: l && _ ? z.ContentEditable : "false",
|
|
3960
3947
|
suppressContentEditableWarning: !0,
|
|
3961
3948
|
...k,
|
|
3962
3949
|
children: t
|
|
@@ -3967,7 +3954,7 @@ function He({
|
|
|
3967
3954
|
] });
|
|
3968
3955
|
}
|
|
3969
3956
|
function Qn({ onClick: e, onSend: t, name: a, onRef: r }) {
|
|
3970
|
-
let [s, i] =
|
|
3957
|
+
let [s, i] = g.useState(!1);
|
|
3971
3958
|
const o = () => {
|
|
3972
3959
|
if (e) return e();
|
|
3973
3960
|
s || (i(!0), t && t(i));
|
|
@@ -3995,44 +3982,44 @@ function ea({
|
|
|
3995
3982
|
active: l = !0,
|
|
3996
3983
|
placeholder: _ = "Введите сообщение"
|
|
3997
3984
|
}) {
|
|
3998
|
-
const c =
|
|
3985
|
+
const c = g.useRef({
|
|
3999
3986
|
value: e,
|
|
4000
3987
|
timerId: null,
|
|
4001
3988
|
shift: !1,
|
|
4002
3989
|
send: !0
|
|
4003
|
-
}),
|
|
3990
|
+
}), m = () => {
|
|
4004
3991
|
c.current.value.length > 0 ? c.current.send && (a(!0), c.current.send = !1, c.current.timerId = setTimeout(() => {
|
|
4005
3992
|
c.current.send = !0;
|
|
4006
3993
|
}, 3e3)) : a(!1);
|
|
4007
|
-
},
|
|
4008
|
-
c.current.value = j.target.textContent,
|
|
4009
|
-
},
|
|
3994
|
+
}, f = (j) => {
|
|
3995
|
+
c.current.value = j.target.textContent, m();
|
|
3996
|
+
}, h = (j) => {
|
|
4010
3997
|
j.keyCode === 16 && (c.current.shift = !0), j.keyCode === 13 && !c.current.shift && (j.preventDefault(), c.current.value.length !== 0 && (j.target.textContent = "", r && r(c.current.value), t && t(c.current.value), c.current.value = "", a(!1)));
|
|
4011
|
-
},
|
|
3998
|
+
}, x = (j) => {
|
|
4012
3999
|
j.keyCode === 16 && (c.current.shift = !1);
|
|
4013
|
-
},
|
|
4014
|
-
j.preventDefault(), navigator.clipboard.readText().then((
|
|
4000
|
+
}, p = (j) => {
|
|
4001
|
+
j.preventDefault(), navigator.clipboard.readText().then((I) => {
|
|
4015
4002
|
if (o) {
|
|
4016
4003
|
let N = j.target.textContent.length;
|
|
4017
4004
|
if (N >= o) return;
|
|
4018
|
-
o -= N,
|
|
4005
|
+
o -= N, I = I.slice(0, o);
|
|
4019
4006
|
}
|
|
4020
|
-
window.document.execCommand("insertText", !1,
|
|
4021
|
-
}).catch((
|
|
4007
|
+
window.document.execCommand("insertText", !1, I);
|
|
4008
|
+
}).catch((I) => {
|
|
4022
4009
|
});
|
|
4023
|
-
},
|
|
4010
|
+
}, v = () => {
|
|
4024
4011
|
a(!1);
|
|
4025
4012
|
}, y = {
|
|
4026
4013
|
spellCheck: "true"
|
|
4027
4014
|
};
|
|
4028
|
-
return _ && (y.placeholder = _), d && l && (y.contentEditable =
|
|
4015
|
+
return _ && (y.placeholder = _), d && l && (y.contentEditable = z.ContentEditable), /* @__PURE__ */ n.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ n.jsx(
|
|
4029
4016
|
"dd",
|
|
4030
4017
|
{
|
|
4031
|
-
onPaste:
|
|
4032
|
-
onInput:
|
|
4033
|
-
onKeyUp:
|
|
4034
|
-
onKeyDown:
|
|
4035
|
-
onBlur:
|
|
4018
|
+
onPaste: p,
|
|
4019
|
+
onInput: f,
|
|
4020
|
+
onKeyUp: x,
|
|
4021
|
+
onKeyDown: h,
|
|
4022
|
+
onBlur: v,
|
|
4036
4023
|
...y,
|
|
4037
4024
|
suppressContentEditableWarning: !0,
|
|
4038
4025
|
children: e
|
|
@@ -4058,7 +4045,7 @@ function ta(e) {
|
|
|
4058
4045
|
onPaste: d,
|
|
4059
4046
|
onInput: i,
|
|
4060
4047
|
onKeyDown: o,
|
|
4061
|
-
contentEditable: a && r ?
|
|
4048
|
+
contentEditable: a && r ? z.ContentEditable : "false",
|
|
4062
4049
|
"data-placeholder": s,
|
|
4063
4050
|
suppressContentEditableWarning: !0,
|
|
4064
4051
|
children: e.value
|
|
@@ -4073,44 +4060,44 @@ function na({
|
|
|
4073
4060
|
placeholder: r = "",
|
|
4074
4061
|
name: s
|
|
4075
4062
|
}) {
|
|
4076
|
-
let i = (
|
|
4077
|
-
|
|
4078
|
-
}, c = (
|
|
4079
|
-
t({ value: Number(
|
|
4080
|
-
},
|
|
4081
|
-
|
|
4063
|
+
let i = (x, p) => Number(Math.round(x + Math.random() * (p - x))), o = g.useRef(null), d = g.useRef(null), l = i(1e4, 99999), _ = (x) => {
|
|
4064
|
+
x.key !== "Backspace" && (x.key === "Enter" && x.preventDefault(), x.target.textContent.length === 5 && x.preventDefault(), /\d/.test(x.key) || x.preventDefault());
|
|
4065
|
+
}, c = (x) => {
|
|
4066
|
+
t({ value: Number(x.target.textContent) === l, name: s });
|
|
4067
|
+
}, m = (x) => {
|
|
4068
|
+
x.preventDefault(), navigator.clipboard.readText().then((p) => {
|
|
4082
4069
|
if (a) {
|
|
4083
|
-
let
|
|
4084
|
-
if (
|
|
4085
|
-
a -=
|
|
4070
|
+
let v = x.target.textContent.length;
|
|
4071
|
+
if (v >= a) return;
|
|
4072
|
+
a -= v, p = p.slice(0, a);
|
|
4086
4073
|
}
|
|
4087
4074
|
window.document.execCommand(
|
|
4088
4075
|
"insertText",
|
|
4089
4076
|
!1,
|
|
4090
|
-
|
|
4077
|
+
p.replace(/(\r\n|\n|\r)/gm, " ").replace(/[^0-9]/g, "").substring(0, 5)
|
|
4091
4078
|
);
|
|
4092
|
-
}).catch((
|
|
4079
|
+
}).catch((p) => {
|
|
4093
4080
|
});
|
|
4094
4081
|
};
|
|
4095
|
-
|
|
4096
|
-
const
|
|
4097
|
-
|
|
4082
|
+
g.useEffect(() => {
|
|
4083
|
+
const x = o.current, p = x.getContext("2d");
|
|
4084
|
+
p.clearRect(0, 0, x.width, x.height), p.font = "30px brush script mt", p.fillStyle = "#eee", p.textAlign = "center", p.fillText(l, 50, 27), d.current.textContent = "";
|
|
4098
4085
|
}, [l]);
|
|
4099
|
-
const
|
|
4100
|
-
|
|
4101
|
-
const
|
|
4102
|
-
return r && (
|
|
4086
|
+
const f = {};
|
|
4087
|
+
f.field = "captcha";
|
|
4088
|
+
const h = {};
|
|
4089
|
+
return r && (h.placeholder = r), /* @__PURE__ */ n.jsxs("dl", { ...f, children: [
|
|
4103
4090
|
/* @__PURE__ */ n.jsx(
|
|
4104
4091
|
"dd",
|
|
4105
4092
|
{
|
|
4106
4093
|
ref: d,
|
|
4107
|
-
onPaste:
|
|
4094
|
+
onPaste: m,
|
|
4108
4095
|
onInput: c,
|
|
4109
|
-
onBlur:
|
|
4096
|
+
onBlur: z.Blur,
|
|
4110
4097
|
onKeyDown: _,
|
|
4111
|
-
contentEditable:
|
|
4098
|
+
contentEditable: z.ContentEditable,
|
|
4112
4099
|
suppressContentEditableWarning: !0,
|
|
4113
|
-
...
|
|
4100
|
+
...h
|
|
4114
4101
|
}
|
|
4115
4102
|
),
|
|
4116
4103
|
/* @__PURE__ */ n.jsx("canvas", { ref: o, width: "100", height: "35" })
|
|
@@ -4134,29 +4121,29 @@ function aa({
|
|
|
4134
4121
|
n5: "",
|
|
4135
4122
|
n6: "",
|
|
4136
4123
|
code: ""
|
|
4137
|
-
}, _ = (
|
|
4138
|
-
if (
|
|
4139
|
-
|
|
4140
|
-
let
|
|
4141
|
-
if (l[
|
|
4142
|
-
|
|
4124
|
+
}, _ = (p) => {
|
|
4125
|
+
if (p.preventDefault(), !r) return;
|
|
4126
|
+
p.target.textContent = p.target.textContent.slice(-1).replace(/[^+\d]/g, "");
|
|
4127
|
+
let v = window.getSelection(), y = p.target.textContent.length;
|
|
4128
|
+
if (l[p.target.id] = p.target.textContent, l.code = l.n1 + "" + l.n2 + l.n3 + l.n4 + l.n5 + l.n6, v.collapse(p.target.firstChild, 1), y === 0) {
|
|
4129
|
+
p.target.blur(), p.target.focus();
|
|
4143
4130
|
return;
|
|
4144
4131
|
}
|
|
4145
|
-
|
|
4146
|
-
}, c = (
|
|
4147
|
-
if (!r) return
|
|
4148
|
-
if (
|
|
4149
|
-
if (
|
|
4150
|
-
let
|
|
4151
|
-
|
|
4132
|
+
p.target.nextSibling != null && p.target.nextSibling.focus();
|
|
4133
|
+
}, c = (p) => {
|
|
4134
|
+
if (!r) return p.preventDefault();
|
|
4135
|
+
if (p.key === "Enter" && p.preventDefault(), p.key === "Backspace") {
|
|
4136
|
+
if (p.preventDefault(), p.target.textContent = "", l[p.target.id] = "", p.target.previousSibling != null) {
|
|
4137
|
+
let v = p.target.previousSibling.id.slice(1);
|
|
4138
|
+
p.target.previousSibling.textContent = "", l["n" + v] = "", p.target.previousSibling.focus();
|
|
4152
4139
|
}
|
|
4153
4140
|
l.code = l.n1 + "" + l.n2 + l.n3 + l.n4 + l.n5 + l.n6;
|
|
4154
4141
|
}
|
|
4155
|
-
},
|
|
4156
|
-
if (!r) return
|
|
4142
|
+
}, m = (p) => {
|
|
4143
|
+
if (!r) return p.preventDefault();
|
|
4157
4144
|
if (s)
|
|
4158
4145
|
i && i({ value: l.code, name: d });
|
|
4159
|
-
else if (l.code.length === 6 && (
|
|
4146
|
+
else if (l.code.length === 6 && (p.target.blur(), i && i({ value: l.code, name: d }), o)) {
|
|
4160
4147
|
l = {
|
|
4161
4148
|
n1: "",
|
|
4162
4149
|
n2: "",
|
|
@@ -4166,25 +4153,25 @@ function aa({
|
|
|
4166
4153
|
n6: "",
|
|
4167
4154
|
code: ""
|
|
4168
4155
|
};
|
|
4169
|
-
for (let
|
|
4170
|
-
let y = document.getElementById("n" +
|
|
4156
|
+
for (let v = 1; v <= 6; v++) {
|
|
4157
|
+
let y = document.getElementById("n" + v);
|
|
4171
4158
|
y && (y.textContent = "");
|
|
4172
4159
|
}
|
|
4173
4160
|
}
|
|
4174
|
-
},
|
|
4175
|
-
|
|
4176
|
-
},
|
|
4177
|
-
|
|
4161
|
+
}, f = (p) => {
|
|
4162
|
+
p.target.textContent = "";
|
|
4163
|
+
}, h = (p) => {
|
|
4164
|
+
p.preventDefault(), navigator.clipboard.readText().then((v) => {
|
|
4178
4165
|
var N;
|
|
4179
4166
|
var y = /\d+/g;
|
|
4180
|
-
let j = (N =
|
|
4167
|
+
let j = (N = v.match(y)) == null ? void 0 : N.toString();
|
|
4181
4168
|
if (!j) return;
|
|
4182
|
-
let
|
|
4183
|
-
for (let R = 1; R <=
|
|
4184
|
-
let
|
|
4185
|
-
|
|
4169
|
+
let I = j.split("");
|
|
4170
|
+
for (let R = 1; R <= I.length; R++) {
|
|
4171
|
+
let D = document.getElementById("n" + R);
|
|
4172
|
+
D && (D.textContent = I[R - 1], l["n" + R] = I[R - 1]);
|
|
4186
4173
|
}
|
|
4187
|
-
if (l.code = l.n1 + "" + l.n2 + l.n3 + l.n4 + l.n5 + l.n6, l.code.length === 6 && (
|
|
4174
|
+
if (l.code = l.n1 + "" + l.n2 + l.n3 + l.n4 + l.n5 + l.n6, l.code.length === 6 && (p.target.blur(), i && i({ value: l.code, name: d }), o)) {
|
|
4188
4175
|
l = {
|
|
4189
4176
|
n1: "",
|
|
4190
4177
|
n2: "",
|
|
@@ -4195,15 +4182,15 @@ function aa({
|
|
|
4195
4182
|
code: ""
|
|
4196
4183
|
};
|
|
4197
4184
|
for (let R = 1; R <= 6; R++) {
|
|
4198
|
-
let
|
|
4199
|
-
|
|
4185
|
+
let D = document.getElementById("n" + R);
|
|
4186
|
+
D && (D.textContent = "");
|
|
4200
4187
|
}
|
|
4201
4188
|
}
|
|
4202
|
-
}).catch((
|
|
4189
|
+
}).catch((v) => {
|
|
4203
4190
|
});
|
|
4204
4191
|
};
|
|
4205
|
-
const
|
|
4206
|
-
return
|
|
4192
|
+
const x = {};
|
|
4193
|
+
return x.field = "code", e && (x.className = e), /* @__PURE__ */ n.jsxs("dl", { ...x, children: [
|
|
4207
4194
|
t ? /* @__PURE__ */ n.jsx("dt", { children: t }) : "",
|
|
4208
4195
|
/* @__PURE__ */ n.jsxs("div", { children: [
|
|
4209
4196
|
/* @__PURE__ */ n.jsx(
|
|
@@ -4212,9 +4199,9 @@ function aa({
|
|
|
4212
4199
|
id: "n1",
|
|
4213
4200
|
inputMode: "numeric",
|
|
4214
4201
|
onKeyDown: c,
|
|
4215
|
-
onKeyUp:
|
|
4216
|
-
onFocus:
|
|
4217
|
-
onPaste:
|
|
4202
|
+
onKeyUp: m,
|
|
4203
|
+
onFocus: f,
|
|
4204
|
+
onPaste: h,
|
|
4218
4205
|
onInput: _,
|
|
4219
4206
|
contentEditable: !0
|
|
4220
4207
|
}
|
|
@@ -4225,9 +4212,9 @@ function aa({
|
|
|
4225
4212
|
id: "n2",
|
|
4226
4213
|
inputMode: "numeric",
|
|
4227
4214
|
onKeyDown: c,
|
|
4228
|
-
onKeyUp:
|
|
4229
|
-
onFocus:
|
|
4230
|
-
onPaste:
|
|
4215
|
+
onKeyUp: m,
|
|
4216
|
+
onFocus: f,
|
|
4217
|
+
onPaste: h,
|
|
4231
4218
|
onInput: _,
|
|
4232
4219
|
contentEditable: !0
|
|
4233
4220
|
}
|
|
@@ -4238,9 +4225,9 @@ function aa({
|
|
|
4238
4225
|
id: "n3",
|
|
4239
4226
|
inputMode: "numeric",
|
|
4240
4227
|
onKeyDown: c,
|
|
4241
|
-
onKeyUp:
|
|
4242
|
-
onFocus:
|
|
4243
|
-
onPaste:
|
|
4228
|
+
onKeyUp: m,
|
|
4229
|
+
onFocus: f,
|
|
4230
|
+
onPaste: h,
|
|
4244
4231
|
onInput: _,
|
|
4245
4232
|
contentEditable: !0
|
|
4246
4233
|
}
|
|
@@ -4251,9 +4238,9 @@ function aa({
|
|
|
4251
4238
|
id: "n4",
|
|
4252
4239
|
inputMode: "numeric",
|
|
4253
4240
|
onKeyDown: c,
|
|
4254
|
-
onKeyUp:
|
|
4255
|
-
onFocus:
|
|
4256
|
-
onPaste:
|
|
4241
|
+
onKeyUp: m,
|
|
4242
|
+
onFocus: f,
|
|
4243
|
+
onPaste: h,
|
|
4257
4244
|
onInput: _,
|
|
4258
4245
|
contentEditable: !0
|
|
4259
4246
|
}
|
|
@@ -4264,9 +4251,9 @@ function aa({
|
|
|
4264
4251
|
id: "n5",
|
|
4265
4252
|
inputMode: "numeric",
|
|
4266
4253
|
onKeyDown: c,
|
|
4267
|
-
onKeyUp:
|
|
4268
|
-
onFocus:
|
|
4269
|
-
onPaste:
|
|
4254
|
+
onKeyUp: m,
|
|
4255
|
+
onFocus: f,
|
|
4256
|
+
onPaste: h,
|
|
4270
4257
|
onInput: _,
|
|
4271
4258
|
contentEditable: !0
|
|
4272
4259
|
}
|
|
@@ -4277,9 +4264,9 @@ function aa({
|
|
|
4277
4264
|
id: "n6",
|
|
4278
4265
|
inputMode: "numeric",
|
|
4279
4266
|
onKeyDown: c,
|
|
4280
|
-
onKeyUp:
|
|
4281
|
-
onFocus:
|
|
4282
|
-
onPaste:
|
|
4267
|
+
onKeyUp: m,
|
|
4268
|
+
onFocus: f,
|
|
4269
|
+
onPaste: h,
|
|
4283
4270
|
onInput: _,
|
|
4284
4271
|
contentEditable: !0
|
|
4285
4272
|
}
|
|
@@ -4300,28 +4287,28 @@ function ra({
|
|
|
4300
4287
|
length: l = 6,
|
|
4301
4288
|
edit: _ = !0,
|
|
4302
4289
|
active: c = !0,
|
|
4303
|
-
after:
|
|
4304
|
-
show:
|
|
4305
|
-
view:
|
|
4306
|
-
onSave:
|
|
4307
|
-
className:
|
|
4290
|
+
after: m = "",
|
|
4291
|
+
show: f = !0,
|
|
4292
|
+
view: h,
|
|
4293
|
+
onSave: x,
|
|
4294
|
+
className: p = ""
|
|
4308
4295
|
}) {
|
|
4309
4296
|
_ = _ !== void 0 ? _ : !0, c = c !== void 0 ? c : !0;
|
|
4310
|
-
let [
|
|
4311
|
-
y(N), a == null || a({ value: N, name: r }),
|
|
4297
|
+
let [v, y] = g.useState(t), j = (N) => {
|
|
4298
|
+
y(N), a == null || a({ value: N, name: r }), x == null || x({ value: N, name: r });
|
|
4312
4299
|
};
|
|
4313
|
-
const
|
|
4314
|
-
return
|
|
4300
|
+
const I = {};
|
|
4301
|
+
return I.field = "color", p && (I.className = p), /* @__PURE__ */ n.jsx(n.Fragment, { children: h === "icon" ? /* @__PURE__ */ n.jsx(
|
|
4315
4302
|
"i",
|
|
4316
4303
|
{
|
|
4317
4304
|
"data-icon": "F043"
|
|
4318
4305
|
}
|
|
4319
|
-
) : /* @__PURE__ */ n.jsxs("dl", { ...
|
|
4306
|
+
) : /* @__PURE__ */ n.jsxs("dl", { ...I, children: [
|
|
4320
4307
|
i && /* @__PURE__ */ n.jsx("dt", { children: i }),
|
|
4321
4308
|
/* @__PURE__ */ n.jsx("dd", { children: l > 0 && Array.from(Array(l).keys()).map((N) => /* @__PURE__ */ n.jsx(
|
|
4322
4309
|
"s",
|
|
4323
4310
|
{
|
|
4324
|
-
active: (Number(N) === Number(
|
|
4311
|
+
active: (Number(N) === Number(v)) + "",
|
|
4325
4312
|
onClick: () => j(N),
|
|
4326
4313
|
style: {
|
|
4327
4314
|
backgroundColor: `var(--color-${N})`
|
|
@@ -4332,7 +4319,7 @@ function ra({
|
|
|
4332
4319
|
o && /* @__PURE__ */ n.jsx("em", { children: o })
|
|
4333
4320
|
] }) });
|
|
4334
4321
|
}
|
|
4335
|
-
const Al = "_o_76l23_1", Ol = "_c_76l23_11", Zl = "__active_76l23_41", Gl = "_as_76l23_94", Wl = "_ap_76l23_97",
|
|
4322
|
+
const Al = "_o_76l23_1", Ol = "_c_76l23_11", Zl = "__active_76l23_41", Gl = "_as_76l23_94", Wl = "_ap_76l23_97", ge = {
|
|
4336
4323
|
o: Al,
|
|
4337
4324
|
c: Ol,
|
|
4338
4325
|
_active: Zl,
|
|
@@ -4351,27 +4338,27 @@ function Pt({
|
|
|
4351
4338
|
view: l = "date",
|
|
4352
4339
|
onValue: _,
|
|
4353
4340
|
name: c,
|
|
4354
|
-
value:
|
|
4355
|
-
after:
|
|
4341
|
+
value: m,
|
|
4342
|
+
after: f
|
|
4356
4343
|
}) {
|
|
4357
|
-
let [
|
|
4358
|
-
|
|
4359
|
-
),
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
}, [
|
|
4363
|
-
let
|
|
4364
|
-
|
|
4344
|
+
let [h, x] = g.useState(
|
|
4345
|
+
m === void 0 ? /* @__PURE__ */ new Date() : m
|
|
4346
|
+
), p = !a && r;
|
|
4347
|
+
g.useEffect(() => {
|
|
4348
|
+
x(m === void 0 ? /* @__PURE__ */ new Date() : m);
|
|
4349
|
+
}, [m]);
|
|
4350
|
+
let v = (N) => {
|
|
4351
|
+
x(N), _ == null || _({ value: N, name: c });
|
|
4365
4352
|
}, y = (N) => {
|
|
4366
|
-
const R = N.target.getBoundingClientRect(),
|
|
4367
|
-
|
|
4353
|
+
const R = N.target.getBoundingClientRect(), D = R.left, C = R.bottom, k = R.top;
|
|
4354
|
+
ve.setListener(
|
|
4368
4355
|
"form",
|
|
4369
4356
|
/* @__PURE__ */ n.jsx(
|
|
4370
4357
|
Ul,
|
|
4371
4358
|
{
|
|
4372
|
-
position: { x:
|
|
4373
|
-
onValue:
|
|
4374
|
-
date:
|
|
4359
|
+
position: { x: D, y: k, b: C },
|
|
4360
|
+
onValue: v,
|
|
4361
|
+
date: h,
|
|
4375
4362
|
max: o,
|
|
4376
4363
|
min: d,
|
|
4377
4364
|
className: s
|
|
@@ -4382,8 +4369,8 @@ function Pt({
|
|
|
4382
4369
|
};
|
|
4383
4370
|
const j = {};
|
|
4384
4371
|
j.field = "input", s && (j.className = s);
|
|
4385
|
-
const
|
|
4386
|
-
return i && (
|
|
4372
|
+
const I = {};
|
|
4373
|
+
return i && (I.placeholder = i), p ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsx(n.Fragment, { children: l === "icon" ? /* @__PURE__ */ n.jsx(
|
|
4387
4374
|
"i",
|
|
4388
4375
|
{
|
|
4389
4376
|
"data-icon": "F043",
|
|
@@ -4397,11 +4384,11 @@ function Pt({
|
|
|
4397
4384
|
"dd",
|
|
4398
4385
|
{
|
|
4399
4386
|
onClick: y,
|
|
4400
|
-
...
|
|
4387
|
+
...I,
|
|
4401
4388
|
"data-edit": (a && r) + "",
|
|
4402
4389
|
children: [
|
|
4403
|
-
Y.Date(
|
|
4404
|
-
|
|
4390
|
+
Y.Date(h, "dd.mm.yyyy"),
|
|
4391
|
+
f
|
|
4405
4392
|
]
|
|
4406
4393
|
}
|
|
4407
4394
|
),
|
|
@@ -4409,54 +4396,54 @@ function Pt({
|
|
|
4409
4396
|
] }) });
|
|
4410
4397
|
}
|
|
4411
4398
|
const Ul = ({ date: e, onValue: t, position: a, max: r, min: s, className: i }) => {
|
|
4412
|
-
let [o, d] =
|
|
4399
|
+
let [o, d] = g.useState(!0), l = /* @__PURE__ */ new Date(), _ = new Date(e), c = {
|
|
4413
4400
|
y: parseInt(l.getFullYear()),
|
|
4414
4401
|
d: parseInt(l.getDate()),
|
|
4415
4402
|
m: parseInt(l.getMonth()) + 1
|
|
4416
|
-
},
|
|
4403
|
+
}, m = {
|
|
4417
4404
|
y: parseInt(_.getFullYear()),
|
|
4418
4405
|
d: parseInt(_.getDate()),
|
|
4419
4406
|
m: parseInt(_.getMonth()) + 1
|
|
4420
|
-
}, [
|
|
4407
|
+
}, [f, h] = g.useState({ y: m.y, m: m.m }), x = (w) => {
|
|
4421
4408
|
let M = w.getDay();
|
|
4422
4409
|
return M === 0 && (M = 7), M - 1;
|
|
4423
|
-
},
|
|
4424
|
-
for (let w = 0; w <
|
|
4410
|
+
}, p = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"], v = f.m - 1, y = new Date(f.y, v), j = [];
|
|
4411
|
+
for (let w = 0; w < x(y); w++)
|
|
4425
4412
|
j.push(0);
|
|
4426
|
-
for (; y.getMonth() ===
|
|
4413
|
+
for (; y.getMonth() === v; )
|
|
4427
4414
|
j.push(y.getDate()), y.setDate(y.getDate() + 1);
|
|
4428
|
-
let
|
|
4415
|
+
let I = () => {
|
|
4429
4416
|
d(!1);
|
|
4430
4417
|
}, N = () => {
|
|
4431
|
-
C(
|
|
4418
|
+
C(f.m + 1, f.y);
|
|
4432
4419
|
}, R = () => {
|
|
4433
|
-
C(
|
|
4434
|
-
},
|
|
4420
|
+
C(f.m - 1, f.y);
|
|
4421
|
+
}, D = (w) => {
|
|
4435
4422
|
t(
|
|
4436
|
-
|
|
4437
|
-
),
|
|
4423
|
+
f.y + "-" + Y.Number(2, f.m) + "-" + Y.Number(2, w)
|
|
4424
|
+
), I();
|
|
4438
4425
|
}, C = (w, M) => {
|
|
4439
|
-
M = w > 12 ? M + 1 : w < 1 ? M - 1 : M, w = w > 12 ? 1 : w < 1 ? 12 : w,
|
|
4426
|
+
M = w > 12 ? M + 1 : w < 1 ? M - 1 : M, w = w > 12 ? 1 : w < 1 ? 12 : w, h({ y: M, m: w });
|
|
4440
4427
|
};
|
|
4441
|
-
const k = (w) => c.y ===
|
|
4428
|
+
const k = (w) => c.y === f.y && c.m === f.m && c.d === w ? { "data-active": "true" } : {}, F = (w) => m.y === f.y && m.m === f.m && m.d === w ? { "data-current": "true" } : {}, S = (w) => {
|
|
4442
4429
|
let M = !0;
|
|
4443
4430
|
if (r) {
|
|
4444
|
-
let W = r.getTime(), Q = new Date(
|
|
4431
|
+
let W = r.getTime(), Q = new Date(f.y, f.m - 1, w).getTime();
|
|
4445
4432
|
W < Q && (M = !1);
|
|
4446
4433
|
}
|
|
4447
4434
|
if (s) {
|
|
4448
|
-
let W = s.getTime(), Q = new Date(
|
|
4435
|
+
let W = s.getTime(), Q = new Date(f.y, f.m - 1, w).getTime();
|
|
4449
4436
|
W > Q && (M = !1);
|
|
4450
4437
|
}
|
|
4451
4438
|
return M;
|
|
4452
4439
|
};
|
|
4453
|
-
let L = window.innerHeight - a.y < 320 ? a.y - 312 : a.b,
|
|
4440
|
+
let L = window.innerHeight - a.y < 320 ? a.y - 312 : a.b, E = window.innerWidth - a.x < 265 ? a.x - 235 : a.x;
|
|
4454
4441
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: o ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
4455
4442
|
/* @__PURE__ */ n.jsx(
|
|
4456
4443
|
"div",
|
|
4457
4444
|
{
|
|
4458
|
-
className:
|
|
4459
|
-
onClick: () =>
|
|
4445
|
+
className: ge.o,
|
|
4446
|
+
onClick: () => I()
|
|
4460
4447
|
},
|
|
4461
4448
|
(/* @__PURE__ */ new Date()).getTime()
|
|
4462
4449
|
),
|
|
@@ -4464,10 +4451,10 @@ const Ul = ({ date: e, onValue: t, position: a, max: r, min: s, className: i })
|
|
|
4464
4451
|
"div",
|
|
4465
4452
|
{
|
|
4466
4453
|
className: [
|
|
4467
|
-
|
|
4454
|
+
ge.c,
|
|
4468
4455
|
i && i + "-backdrop"
|
|
4469
4456
|
].join(" "),
|
|
4470
|
-
style: { top: L + "px", left:
|
|
4457
|
+
style: { top: L + "px", left: E + "px" },
|
|
4471
4458
|
children: [
|
|
4472
4459
|
/* @__PURE__ */ n.jsxs("s", { children: [
|
|
4473
4460
|
/* @__PURE__ */ n.jsx("i", { onClick: R, children: /* @__PURE__ */ n.jsx(
|
|
@@ -4482,9 +4469,9 @@ const Ul = ({ date: e, onValue: t, position: a, max: r, min: s, className: i })
|
|
|
4482
4469
|
}
|
|
4483
4470
|
) }),
|
|
4484
4471
|
/* @__PURE__ */ n.jsxs("h2", { children: [
|
|
4485
|
-
Y.Month(
|
|
4472
|
+
Y.Month(f.m).name,
|
|
4486
4473
|
" ",
|
|
4487
|
-
|
|
4474
|
+
f.y
|
|
4488
4475
|
] }),
|
|
4489
4476
|
/* @__PURE__ */ n.jsx("i", { onClick: N, children: /* @__PURE__ */ n.jsx(
|
|
4490
4477
|
"svg",
|
|
@@ -4499,13 +4486,13 @@ const Ul = ({ date: e, onValue: t, position: a, max: r, min: s, className: i })
|
|
|
4499
4486
|
) })
|
|
4500
4487
|
] }),
|
|
4501
4488
|
/* @__PURE__ */ n.jsxs("div", { "grid-calendar": "", children: [
|
|
4502
|
-
|
|
4503
|
-
j.map((w, M) => /* @__PURE__ */ n.jsx("span", { children: w !== 0 &&
|
|
4489
|
+
p.map((w, M) => /* @__PURE__ */ n.jsx("p", { children: w }, "v" + M)),
|
|
4490
|
+
j.map((w, M) => /* @__PURE__ */ n.jsx("span", { children: w !== 0 && S(w) ? /* @__PURE__ */ n.jsx(
|
|
4504
4491
|
"b",
|
|
4505
4492
|
{
|
|
4506
4493
|
...k(w),
|
|
4507
4494
|
...F(w),
|
|
4508
|
-
onClick: () =>
|
|
4495
|
+
onClick: () => D(w),
|
|
4509
4496
|
children: w
|
|
4510
4497
|
}
|
|
4511
4498
|
) : /* @__PURE__ */ n.jsx("p", { ...k(w), ...F(w), children: w !== 0 ? w : "" }) }, M))
|
|
@@ -4527,29 +4514,29 @@ function At({
|
|
|
4527
4514
|
show: l = !0,
|
|
4528
4515
|
active: _ = !0,
|
|
4529
4516
|
after: c = "",
|
|
4530
|
-
view:
|
|
4531
|
-
modal:
|
|
4532
|
-
module:
|
|
4533
|
-
options:
|
|
4534
|
-
className:
|
|
4517
|
+
view: m,
|
|
4518
|
+
modal: f,
|
|
4519
|
+
module: h,
|
|
4520
|
+
options: x,
|
|
4521
|
+
className: p
|
|
4535
4522
|
}) {
|
|
4536
|
-
let [
|
|
4537
|
-
if (!(d && _) || !
|
|
4538
|
-
let
|
|
4539
|
-
Ne.Open(
|
|
4523
|
+
let [v, y] = g.useState(e), j = (R) => {
|
|
4524
|
+
if (!(d && _) || !f) return;
|
|
4525
|
+
let D = f.split(".");
|
|
4526
|
+
Ne.Open(D[0], D[1], {
|
|
4540
4527
|
callback: (C) => {
|
|
4541
4528
|
t && t({ value: C, name: a }), y(C);
|
|
4542
4529
|
},
|
|
4543
4530
|
onValue: t,
|
|
4544
|
-
options:
|
|
4531
|
+
options: x,
|
|
4545
4532
|
name: a,
|
|
4546
4533
|
value: e
|
|
4547
4534
|
});
|
|
4548
4535
|
};
|
|
4549
|
-
const
|
|
4550
|
-
|
|
4536
|
+
const I = {};
|
|
4537
|
+
I.field = "input", p && (I.className = p);
|
|
4551
4538
|
const N = {};
|
|
4552
|
-
return r && (N.placeholder = r), o ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...
|
|
4539
|
+
return r && (N.placeholder = r), o ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...I, children: [
|
|
4553
4540
|
s && /* @__PURE__ */ n.jsx("dt", { children: s }),
|
|
4554
4541
|
/* @__PURE__ */ n.jsx(
|
|
4555
4542
|
"dd",
|
|
@@ -4558,7 +4545,7 @@ function At({
|
|
|
4558
4545
|
onClick: j,
|
|
4559
4546
|
edit: (d && _) + "",
|
|
4560
4547
|
"data-after": c,
|
|
4561
|
-
children:
|
|
4548
|
+
children: v
|
|
4562
4549
|
}
|
|
4563
4550
|
),
|
|
4564
4551
|
i && /* @__PURE__ */ n.jsx("em", { children: i })
|
|
@@ -4576,48 +4563,48 @@ function Ot({
|
|
|
4576
4563
|
active: l = !0,
|
|
4577
4564
|
after: _ = "",
|
|
4578
4565
|
show: c = !0,
|
|
4579
|
-
course:
|
|
4580
|
-
view:
|
|
4581
|
-
type:
|
|
4582
|
-
onSave:
|
|
4583
|
-
className:
|
|
4584
|
-
isClear:
|
|
4566
|
+
course: m = 100,
|
|
4567
|
+
view: f,
|
|
4568
|
+
type: h,
|
|
4569
|
+
onSave: x,
|
|
4570
|
+
className: p = "",
|
|
4571
|
+
isClear: v = !1
|
|
4585
4572
|
}) {
|
|
4586
4573
|
let y = !!(o && (e === "" || e === void 0));
|
|
4587
|
-
e = Y.isNumeric(e) ? Number(e) /
|
|
4588
|
-
let j = (
|
|
4574
|
+
e = Y.isNumeric(e) ? Number(e) / m : 0;
|
|
4575
|
+
let j = (E) => h === "multi" ? E.replace(/[^+\d.+-]/g, "") : E.replace(/[^+\d.]/g, ""), I = (E, w) => {
|
|
4589
4576
|
let M = document.createRange(), W = window.getSelection();
|
|
4590
|
-
M.setStart(w.childNodes[0],
|
|
4591
|
-
}, N = (
|
|
4577
|
+
M.setStart(w.childNodes[0], E), M.collapse(!0), W.removeAllRanges(), W.addRange(M), w.focus();
|
|
4578
|
+
}, N = (E) => {
|
|
4592
4579
|
t == null || t({
|
|
4593
|
-
value: j(
|
|
4580
|
+
value: j(E.target.textContent) * m,
|
|
4594
4581
|
name: a
|
|
4595
|
-
}),
|
|
4596
|
-
}, R = (
|
|
4597
|
-
|
|
4598
|
-
value: j(
|
|
4582
|
+
}), E.target.textContent = j(E.target.textContent), E.target.textContent.length > 0 && I(E.target.textContent.length, E.target);
|
|
4583
|
+
}, R = (E) => {
|
|
4584
|
+
z.Blur(E), E.target.textContent === "" && (E.target.textContent = 0), x == null || x({ value: j(E.target.textContent) * m, name: a }), t == null || t({
|
|
4585
|
+
value: j(E.target.textContent) * m,
|
|
4599
4586
|
name: a
|
|
4600
|
-
}),
|
|
4601
|
-
},
|
|
4602
|
-
|
|
4603
|
-
}, C = (
|
|
4604
|
-
|
|
4587
|
+
}), E.target.textContent = Y.Money(E.target.textContent);
|
|
4588
|
+
}, D = (E) => {
|
|
4589
|
+
E.target.textContent = j(E.target.textContent);
|
|
4590
|
+
}, C = (E) => {
|
|
4591
|
+
E.currentTarget.previousElementSibling.textContent = "", t == null || t({
|
|
4605
4592
|
value: 0,
|
|
4606
4593
|
name: a
|
|
4607
4594
|
});
|
|
4608
|
-
}, k = (
|
|
4609
|
-
|
|
4610
|
-
}, F = (
|
|
4611
|
-
|
|
4595
|
+
}, k = (E) => {
|
|
4596
|
+
E.key === "Enter" && E.preventDefault();
|
|
4597
|
+
}, F = (E) => {
|
|
4598
|
+
E.preventDefault(), navigator.clipboard.readText().then((w) => {
|
|
4612
4599
|
w = w.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, w);
|
|
4613
4600
|
}).catch((w) => {
|
|
4614
4601
|
});
|
|
4615
4602
|
};
|
|
4616
4603
|
if (!(d && l) && !c || !(d && l) && y) return "";
|
|
4617
|
-
const
|
|
4618
|
-
|
|
4604
|
+
const S = {};
|
|
4605
|
+
S.field = "input", p && (S.className = p);
|
|
4619
4606
|
const L = {};
|
|
4620
|
-
return L.inputMode = "decimal", r && (L.placeholder = r), d && l && (L.edit = ""), /* @__PURE__ */ n.jsxs("dl", { ...
|
|
4607
|
+
return L.inputMode = "decimal", r && (L.placeholder = r), d && l && (L.edit = ""), /* @__PURE__ */ n.jsxs("dl", { ...S, children: [
|
|
4621
4608
|
s ? /* @__PURE__ */ n.jsx("dt", { children: s }) : "",
|
|
4622
4609
|
/* @__PURE__ */ n.jsx(
|
|
4623
4610
|
"dd",
|
|
@@ -4627,14 +4614,14 @@ function Ot({
|
|
|
4627
4614
|
onPaste: F,
|
|
4628
4615
|
onBlur: R,
|
|
4629
4616
|
onKeyDown: k,
|
|
4630
|
-
onFocus:
|
|
4631
|
-
contentEditable: d && l ?
|
|
4617
|
+
onFocus: D,
|
|
4618
|
+
contentEditable: d && l ? z.ContentEditable : "false",
|
|
4632
4619
|
suppressContentEditableWarning: !0,
|
|
4633
4620
|
"data-after": _,
|
|
4634
4621
|
children: !r || e ? Y.Money(e) : ""
|
|
4635
4622
|
}
|
|
4636
4623
|
),
|
|
4637
|
-
|
|
4624
|
+
v && /* @__PURE__ */ n.jsx("svg", { "action-type": "delete", onClick: C, viewBox: "0 0 24 24", children: /* @__PURE__ */ n.jsx("path", { d: "M17 6L6 17M6 6L17 17" }) }),
|
|
4638
4625
|
i ? /* @__PURE__ */ n.jsx("em", { children: i }) : ""
|
|
4639
4626
|
] });
|
|
4640
4627
|
}
|
|
@@ -4651,63 +4638,63 @@ function sa({
|
|
|
4651
4638
|
className: _,
|
|
4652
4639
|
after: c
|
|
4653
4640
|
}) {
|
|
4654
|
-
let [
|
|
4655
|
-
|
|
4656
|
-
|
|
4641
|
+
let [m, f] = g.useState(e);
|
|
4642
|
+
g.useEffect(() => {
|
|
4643
|
+
f(e);
|
|
4657
4644
|
}, [e]);
|
|
4658
|
-
let
|
|
4659
|
-
|
|
4660
|
-
},
|
|
4645
|
+
let h = (v) => {
|
|
4646
|
+
f(v), t && t({ value: v, name: a });
|
|
4647
|
+
}, x = (v) => {
|
|
4661
4648
|
if (!i || !o) return;
|
|
4662
|
-
const y =
|
|
4663
|
-
|
|
4649
|
+
const y = v.target.getBoundingClientRect(), j = y.left, I = y.top;
|
|
4650
|
+
ve.setListener(
|
|
4664
4651
|
"form",
|
|
4665
4652
|
/* @__PURE__ */ n.jsx(
|
|
4666
|
-
|
|
4653
|
+
zl,
|
|
4667
4654
|
{
|
|
4668
|
-
position: { x: j, y:
|
|
4669
|
-
onValue:
|
|
4670
|
-
date:
|
|
4655
|
+
position: { x: j, y: I },
|
|
4656
|
+
onValue: h,
|
|
4657
|
+
date: m
|
|
4671
4658
|
},
|
|
4672
4659
|
(/* @__PURE__ */ new Date()).getTime()
|
|
4673
4660
|
)
|
|
4674
4661
|
);
|
|
4675
4662
|
};
|
|
4676
|
-
const
|
|
4677
|
-
return l && (
|
|
4663
|
+
const p = {};
|
|
4664
|
+
return l && (p.placeholder = l), r === "icon" ? /* @__PURE__ */ n.jsx("i", { "data-icon": "F043", onClick: x }) : /* @__PURE__ */ n.jsxs("dl", { children: [
|
|
4678
4665
|
d && /* @__PURE__ */ n.jsx("dt", { children: d }),
|
|
4679
4666
|
/* @__PURE__ */ n.jsx(
|
|
4680
4667
|
"dd",
|
|
4681
4668
|
{
|
|
4682
|
-
onClick:
|
|
4683
|
-
...
|
|
4684
|
-
children: Y.Date(
|
|
4669
|
+
onClick: x,
|
|
4670
|
+
...p,
|
|
4671
|
+
children: Y.Date(m, "mm.yyyy")
|
|
4685
4672
|
}
|
|
4686
4673
|
),
|
|
4687
4674
|
s && /* @__PURE__ */ n.jsx("em", { children: s })
|
|
4688
4675
|
] });
|
|
4689
4676
|
}
|
|
4690
|
-
const
|
|
4691
|
-
let [t, a] =
|
|
4677
|
+
const zl = (e) => {
|
|
4678
|
+
let [t, a] = g.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
|
|
4692
4679
|
y: parseInt(r.getFullYear()),
|
|
4693
4680
|
m: parseInt(r.getMonth()) + 1
|
|
4694
4681
|
}, o = {
|
|
4695
4682
|
y: parseInt(s.getFullYear()),
|
|
4696
4683
|
m: parseInt(s.getMonth()) + 1
|
|
4697
|
-
}, [d, l] =
|
|
4684
|
+
}, [d, l] = g.useState(o.y), _ = () => {
|
|
4698
4685
|
a(!1);
|
|
4699
4686
|
}, c = () => {
|
|
4700
4687
|
l(d + 1);
|
|
4701
|
-
},
|
|
4688
|
+
}, m = () => {
|
|
4702
4689
|
l(d - 1);
|
|
4703
|
-
},
|
|
4690
|
+
}, f = (y) => {
|
|
4704
4691
|
e.onValue(d + "-" + Y.Number(2, y)), _();
|
|
4705
|
-
},
|
|
4692
|
+
}, h = (y) => i.y === o.y && i.m === y ? "_FFEB3B" : "", x = Array(12).fill("").map((y, j) => j + 1), p = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, v = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
|
|
4706
4693
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: t ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
4707
4694
|
/* @__PURE__ */ n.jsx(
|
|
4708
4695
|
"div",
|
|
4709
4696
|
{
|
|
4710
|
-
className:
|
|
4697
|
+
className: ge.o,
|
|
4711
4698
|
onClick: () => _()
|
|
4712
4699
|
},
|
|
4713
4700
|
(/* @__PURE__ */ new Date()).getTime()
|
|
@@ -4715,11 +4702,11 @@ const Kl = (e) => {
|
|
|
4715
4702
|
/* @__PURE__ */ n.jsxs(
|
|
4716
4703
|
"div",
|
|
4717
4704
|
{
|
|
4718
|
-
className:
|
|
4719
|
-
style: { top:
|
|
4705
|
+
className: ge.c,
|
|
4706
|
+
style: { top: p + "px", left: v + "px" },
|
|
4720
4707
|
children: [
|
|
4721
4708
|
/* @__PURE__ */ n.jsxs("s", { children: [
|
|
4722
|
-
/* @__PURE__ */ n.jsx("i", { onClick:
|
|
4709
|
+
/* @__PURE__ */ n.jsx("i", { onClick: m, children: /* @__PURE__ */ n.jsx(
|
|
4723
4710
|
"svg",
|
|
4724
4711
|
{
|
|
4725
4712
|
width: "16",
|
|
@@ -4743,13 +4730,13 @@ const Kl = (e) => {
|
|
|
4743
4730
|
}
|
|
4744
4731
|
) })
|
|
4745
4732
|
] }),
|
|
4746
|
-
/* @__PURE__ */ n.jsx("div", { "grid-month": "", children:
|
|
4733
|
+
/* @__PURE__ */ n.jsx("div", { "grid-month": "", children: x.map((y, j) => /* @__PURE__ */ n.jsx(
|
|
4747
4734
|
"span",
|
|
4748
4735
|
{
|
|
4749
4736
|
onClick: () => {
|
|
4750
|
-
|
|
4737
|
+
f(y);
|
|
4751
4738
|
},
|
|
4752
|
-
color:
|
|
4739
|
+
color: h(y),
|
|
4753
4740
|
children: /* @__PURE__ */ n.jsx("b", { children: Y.Month(y).abc })
|
|
4754
4741
|
},
|
|
4755
4742
|
j
|
|
@@ -4771,33 +4758,33 @@ function ia({
|
|
|
4771
4758
|
edit: l = !0,
|
|
4772
4759
|
active: _ = !0,
|
|
4773
4760
|
after: c = "",
|
|
4774
|
-
show:
|
|
4775
|
-
maxLength:
|
|
4776
|
-
view:
|
|
4777
|
-
onSave:
|
|
4778
|
-
className:
|
|
4779
|
-
isCopy:
|
|
4761
|
+
show: m = !0,
|
|
4762
|
+
maxLength: f,
|
|
4763
|
+
view: h,
|
|
4764
|
+
onSave: x,
|
|
4765
|
+
className: p = "",
|
|
4766
|
+
isCopy: v = !0
|
|
4780
4767
|
}) {
|
|
4781
|
-
let [y, j] =
|
|
4768
|
+
let [y, j] = g.useState(!1);
|
|
4782
4769
|
y = l ? !0 : y;
|
|
4783
|
-
let
|
|
4784
|
-
a == null || a({ value:
|
|
4785
|
-
}, N = (
|
|
4786
|
-
|
|
4787
|
-
}, R = (
|
|
4788
|
-
|
|
4770
|
+
let I = (S) => {
|
|
4771
|
+
a == null || a({ value: S.target.innerText, name: r });
|
|
4772
|
+
}, N = (S) => {
|
|
4773
|
+
f && S.target.textContent.trim().length >= f && S.key !== "Backspace" && S.preventDefault(), S.key === "Enter" && S.preventDefault();
|
|
4774
|
+
}, R = (S) => {
|
|
4775
|
+
v && (S.preventDefault(), navigator.clipboard.writeText(S.target.textContent.trim()).then(
|
|
4789
4776
|
function() {
|
|
4790
|
-
|
|
4777
|
+
fe.Copy("Данные в буфер обмене");
|
|
4791
4778
|
},
|
|
4792
4779
|
function(L) {
|
|
4793
4780
|
}
|
|
4794
4781
|
));
|
|
4795
|
-
},
|
|
4796
|
-
|
|
4797
|
-
if (
|
|
4798
|
-
let
|
|
4799
|
-
if (
|
|
4800
|
-
|
|
4782
|
+
}, D = (S) => {
|
|
4783
|
+
S.preventDefault(), navigator.clipboard.readText().then((L) => {
|
|
4784
|
+
if (f) {
|
|
4785
|
+
let E = S.target.textContent.length;
|
|
4786
|
+
if (E >= f) return;
|
|
4787
|
+
f -= E, L = L.slice(0, f);
|
|
4801
4788
|
}
|
|
4802
4789
|
window.document.execCommand(
|
|
4803
4790
|
"insertText",
|
|
@@ -4808,25 +4795,25 @@ function ia({
|
|
|
4808
4795
|
});
|
|
4809
4796
|
};
|
|
4810
4797
|
if (d) return /* @__PURE__ */ n.jsx(n.Fragment, {});
|
|
4811
|
-
if (!(l && _) && !
|
|
4798
|
+
if (!(l && _) && !m) return "";
|
|
4812
4799
|
const C = {};
|
|
4813
|
-
C.field = "notes",
|
|
4800
|
+
C.field = "notes", p && (C.className = p);
|
|
4814
4801
|
const k = {};
|
|
4815
4802
|
s && (k.placeholder = s), l && _ && (k.edit = ""), y && (k.open = "");
|
|
4816
|
-
const F = (
|
|
4817
|
-
|
|
4803
|
+
const F = (S) => {
|
|
4804
|
+
z.Blur(S), x == null || x({ value: S.target.textContent.trim(), name: r });
|
|
4818
4805
|
};
|
|
4819
4806
|
return /* @__PURE__ */ n.jsxs("dl", { ...C, children: [
|
|
4820
4807
|
i ? /* @__PURE__ */ n.jsx("dt", { children: i }) : "",
|
|
4821
4808
|
/* @__PURE__ */ n.jsx(
|
|
4822
4809
|
"dd",
|
|
4823
4810
|
{
|
|
4824
|
-
onPaste:
|
|
4825
|
-
onInput:
|
|
4811
|
+
onPaste: D,
|
|
4812
|
+
onInput: I,
|
|
4826
4813
|
onBlur: F,
|
|
4827
4814
|
onKeyDown: N,
|
|
4828
4815
|
onContextMenu: R,
|
|
4829
|
-
contentEditable: l && _ ?
|
|
4816
|
+
contentEditable: l && _ ? z.ContentEditable : "false",
|
|
4830
4817
|
suppressContentEditableWarning: !0,
|
|
4831
4818
|
...k,
|
|
4832
4819
|
children: t
|
|
@@ -4848,48 +4835,48 @@ function Zt({
|
|
|
4848
4835
|
hide: l,
|
|
4849
4836
|
value: _,
|
|
4850
4837
|
placeholder: c,
|
|
4851
|
-
className:
|
|
4852
|
-
maxLength:
|
|
4853
|
-
name:
|
|
4854
|
-
after:
|
|
4855
|
-
before:
|
|
4856
|
-
view:
|
|
4838
|
+
className: m,
|
|
4839
|
+
maxLength: f,
|
|
4840
|
+
name: h,
|
|
4841
|
+
after: x = "",
|
|
4842
|
+
before: p = "",
|
|
4843
|
+
view: v
|
|
4857
4844
|
}) {
|
|
4858
4845
|
s = s !== void 0 ? s : !0, a = a !== void 0 ? a : !0, l = !!(l && (_ === "" || _ === void 0)) && !(s && a), c = c !== void 0 ? c : "", r = r !== void 0 ? r : 99;
|
|
4859
|
-
let j = !1,
|
|
4860
|
-
e == null || e({ value:
|
|
4861
|
-
}, N = (
|
|
4862
|
-
if (!(j &&
|
|
4863
|
-
if (
|
|
4864
|
-
|
|
4846
|
+
let j = !1, I = (S) => {
|
|
4847
|
+
e == null || e({ value: S.target.textContent, name: h });
|
|
4848
|
+
}, N = (S) => {
|
|
4849
|
+
if (!(j && S.which === 86)) {
|
|
4850
|
+
if (S.which === 17 || S.which === 91) return j = !0;
|
|
4851
|
+
S.key !== "Backspace" && (S.target.textContent.length === r && S.preventDefault(), S.key === "Enter" && S.preventDefault(), isNaN(S.key) && S.preventDefault());
|
|
4865
4852
|
}
|
|
4866
|
-
}, R = (
|
|
4867
|
-
if (
|
|
4868
|
-
},
|
|
4869
|
-
|
|
4870
|
-
if (L = L.replace(/(?!^\+|\d)./g, ""),
|
|
4871
|
-
let
|
|
4872
|
-
if (
|
|
4873
|
-
|
|
4853
|
+
}, R = (S) => {
|
|
4854
|
+
if (S.which === 17 || S.which === 91) return j = !1;
|
|
4855
|
+
}, D = (S) => {
|
|
4856
|
+
S.preventDefault(), navigator.clipboard.readText().then((L) => {
|
|
4857
|
+
if (L = L.replace(/(?!^\+|\d)./g, ""), f) {
|
|
4858
|
+
let E = S.target.textContent.length;
|
|
4859
|
+
if (E >= f) return;
|
|
4860
|
+
f -= E, L = L.slice(0, f);
|
|
4874
4861
|
}
|
|
4875
4862
|
window.document.execCommand("insertText", !1, "" + L);
|
|
4876
4863
|
}).catch((L) => {
|
|
4877
4864
|
});
|
|
4878
4865
|
};
|
|
4879
|
-
const C = (
|
|
4880
|
-
|
|
4866
|
+
const C = (S) => {
|
|
4867
|
+
z.Blur(S), t == null || t({ value: S.target.textContent, name: h });
|
|
4881
4868
|
}, k = {};
|
|
4882
|
-
k.field = "input",
|
|
4869
|
+
k.field = "input", m && (k.className = m);
|
|
4883
4870
|
let F = {};
|
|
4884
|
-
return s && a ? (F.edit = "true", F.contentEditable =
|
|
4871
|
+
return s && a ? (F.edit = "true", F.contentEditable = z.ContentEditable) : F.contentEditable = "false", F.inputMode = "decimal", c && (F.placeholder = c), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...k, children: [
|
|
4885
4872
|
i && /* @__PURE__ */ n.jsx("dt", { children: i }),
|
|
4886
|
-
|
|
4873
|
+
p,
|
|
4887
4874
|
/* @__PURE__ */ n.jsx(
|
|
4888
4875
|
"dd",
|
|
4889
4876
|
{
|
|
4890
4877
|
...F,
|
|
4891
|
-
onPaste:
|
|
4892
|
-
onInput:
|
|
4878
|
+
onPaste: D,
|
|
4879
|
+
onInput: I,
|
|
4893
4880
|
onBlur: C,
|
|
4894
4881
|
onKeyDown: N,
|
|
4895
4882
|
onKeyUp: R,
|
|
@@ -4897,7 +4884,7 @@ function Zt({
|
|
|
4897
4884
|
children: _
|
|
4898
4885
|
}
|
|
4899
4886
|
),
|
|
4900
|
-
|
|
4887
|
+
x,
|
|
4901
4888
|
o && /* @__PURE__ */ n.jsx("em", { children: o })
|
|
4902
4889
|
] });
|
|
4903
4890
|
}
|
|
@@ -4913,27 +4900,27 @@ function oa({
|
|
|
4913
4900
|
edit: l = !0,
|
|
4914
4901
|
active: _ = !0,
|
|
4915
4902
|
reload: c = !1,
|
|
4916
|
-
native:
|
|
4917
|
-
isShow:
|
|
4918
|
-
maxLength:
|
|
4919
|
-
eyes:
|
|
4920
|
-
after:
|
|
4903
|
+
native: m = !1,
|
|
4904
|
+
isShow: f = !1,
|
|
4905
|
+
maxLength: h,
|
|
4906
|
+
eyes: x = [],
|
|
4907
|
+
after: p = ""
|
|
4921
4908
|
}) {
|
|
4922
|
-
const [
|
|
4909
|
+
const [v, y] = g.useState(f);
|
|
4923
4910
|
let j = (k) => {
|
|
4924
4911
|
t && t({
|
|
4925
4912
|
value: k.target.textContent,
|
|
4926
4913
|
name: r,
|
|
4927
4914
|
reload: c
|
|
4928
4915
|
});
|
|
4929
|
-
},
|
|
4916
|
+
}, I = (k) => {
|
|
4930
4917
|
k.key === "Enter" && k.preventDefault();
|
|
4931
4918
|
}, N = (k) => {
|
|
4932
4919
|
k.preventDefault(), navigator.clipboard.readText().then((F) => {
|
|
4933
|
-
if (
|
|
4934
|
-
let
|
|
4935
|
-
if (
|
|
4936
|
-
|
|
4920
|
+
if (h) {
|
|
4921
|
+
let S = k.target.textContent.length;
|
|
4922
|
+
if (S >= h) return;
|
|
4923
|
+
h -= S, F = F.slice(0, h);
|
|
4937
4924
|
}
|
|
4938
4925
|
window.document.execCommand(
|
|
4939
4926
|
"insertText",
|
|
@@ -4943,28 +4930,28 @@ function oa({
|
|
|
4943
4930
|
}).catch((F) => {
|
|
4944
4931
|
});
|
|
4945
4932
|
}, R = (k) => {
|
|
4946
|
-
|
|
4933
|
+
z.Blur(k), a == null || a({ value: k.target.textContent.trim(), name: r });
|
|
4947
4934
|
};
|
|
4948
|
-
const
|
|
4949
|
-
|
|
4935
|
+
const D = {};
|
|
4936
|
+
D.field = "password", v && (D.show = ""), i && (D.className = i);
|
|
4950
4937
|
const C = {};
|
|
4951
|
-
return s && (C.placeholder = s),
|
|
4938
|
+
return s && (C.placeholder = s), m ? "" : /* @__PURE__ */ n.jsxs("dl", { ...D, children: [
|
|
4952
4939
|
o ? /* @__PURE__ */ n.jsx("dt", { children: o }) : "",
|
|
4953
4940
|
/* @__PURE__ */ n.jsx(
|
|
4954
4941
|
"dd",
|
|
4955
4942
|
{
|
|
4956
4943
|
onPaste: N,
|
|
4957
4944
|
onInput: j,
|
|
4958
|
-
onKeyDown:
|
|
4945
|
+
onKeyDown: I,
|
|
4959
4946
|
onBlur: R,
|
|
4960
|
-
contentEditable: l && _ ?
|
|
4947
|
+
contentEditable: l && _ ? z.ContentEditable : "false",
|
|
4961
4948
|
...C,
|
|
4962
4949
|
suppressContentEditableWarning: !0,
|
|
4963
4950
|
children: e
|
|
4964
4951
|
}
|
|
4965
4952
|
),
|
|
4966
|
-
|
|
4967
|
-
|
|
4953
|
+
x[0] && /* @__PURE__ */ n.jsx("i", { onClick: () => y(!v), children: v ? x[1] : x[0] }),
|
|
4954
|
+
p,
|
|
4968
4955
|
d ? /* @__PURE__ */ n.jsx("em", { children: d }) : ""
|
|
4969
4956
|
] });
|
|
4970
4957
|
}
|
|
@@ -6362,68 +6349,68 @@ function Gt({
|
|
|
6362
6349
|
edit: l = !0,
|
|
6363
6350
|
active: _ = !0,
|
|
6364
6351
|
after: c = "",
|
|
6365
|
-
show:
|
|
6366
|
-
view:
|
|
6367
|
-
className:
|
|
6352
|
+
show: m = !0,
|
|
6353
|
+
view: f,
|
|
6354
|
+
className: h = ""
|
|
6368
6355
|
}) {
|
|
6369
|
-
l = l !== void 0 ? l : !0, _ = _ !== void 0 ? _ : !0, d = !!(d && (e === "" || e === void 0)) && !(l && _),
|
|
6370
|
-
let
|
|
6356
|
+
l = l !== void 0 ? l : !0, _ = _ !== void 0 ? _ : !0, d = !!(d && (e === "" || e === void 0)) && !(l && _), g.useRef(null);
|
|
6357
|
+
let p = "+_(___) ___-__-__", v = !0, y = 0, j = (E, w) => {
|
|
6371
6358
|
let M = document.createRange(), W = window.getSelection();
|
|
6372
|
-
M.setStart(w.childNodes[0],
|
|
6373
|
-
},
|
|
6374
|
-
let w = R(
|
|
6375
|
-
|
|
6376
|
-
}, N = (
|
|
6377
|
-
|
|
6359
|
+
M.setStart(w.childNodes[0], E), M.collapse(!0), W.removeAllRanges(), W.addRange(M), w.focus();
|
|
6360
|
+
}, I = (E) => {
|
|
6361
|
+
let w = R(E.target.textContent);
|
|
6362
|
+
E.target.textContent = w.q, w.i = w.q.lastIndexOf(w.v.substr(-1)), w.i < w.q.length && w.q !== p ? w.i++ : w.i = w.q.indexOf("_"), j(w.i, E.target), t && t({ value: w.q.replace(/\D/g, ""), name: r });
|
|
6363
|
+
}, N = (E) => {
|
|
6364
|
+
E.preventDefault(), navigator.clipboard.readText().then((w) => {
|
|
6378
6365
|
window.document.execCommand("insertText", !1, w);
|
|
6379
6366
|
}).catch((w) => {
|
|
6380
6367
|
});
|
|
6381
|
-
}, R = (
|
|
6382
|
-
let w = 0, M = "", W =
|
|
6383
|
-
W === "" && (
|
|
6384
|
-
let Q = W.split(""),
|
|
6368
|
+
}, R = (E) => {
|
|
6369
|
+
let w = 0, M = "", W = E.replace(/\D/g, "");
|
|
6370
|
+
W === "" && (v = !0);
|
|
6371
|
+
let Q = W.split(""), oe = "";
|
|
6385
6372
|
Q.forEach(($e) => {
|
|
6386
|
-
|
|
6373
|
+
v && (oe += $e, Ct[oe] !== void 0 && v ? (v = !1, p = Ct[oe].mask.replace(new RegExp("[0-9]", "g"), "_"), M = Ct[oe].code) : (v && (y = ("" + oe).length, p = `+${oe}_(___) ___-__-__`.replace(
|
|
6387
6374
|
new RegExp("[0-9]", "g"),
|
|
6388
6375
|
"_"
|
|
6389
|
-
), M = ""), y > ("" +
|
|
6376
|
+
), M = ""), y > ("" + oe).length && (v = !0, p = `+${oe}_(___) ___-__-__`.replace(
|
|
6390
6377
|
new RegExp("[0-9]", "g"),
|
|
6391
6378
|
"_"
|
|
6392
6379
|
), M = "")));
|
|
6393
6380
|
});
|
|
6394
|
-
let
|
|
6395
|
-
return
|
|
6381
|
+
let je = p.replace(/\D/g, "");
|
|
6382
|
+
return je.length >= W.length && (W = je), { q: p.replace(/[_\d]/g, function() {
|
|
6396
6383
|
return W.charAt(w++) || "_";
|
|
6397
6384
|
}), i: w, v: W, f: M };
|
|
6398
|
-
},
|
|
6399
|
-
|
|
6385
|
+
}, D = (E) => {
|
|
6386
|
+
E.preventDefault(), navigator.clipboard.writeText(E.target.textContent.replace(/\D/g, "")).then(
|
|
6400
6387
|
function() {
|
|
6401
|
-
|
|
6388
|
+
fe.Copy("Данные в буфер обмене");
|
|
6402
6389
|
},
|
|
6403
6390
|
function(w) {
|
|
6404
6391
|
}
|
|
6405
6392
|
);
|
|
6406
|
-
}, C = R(e), k = (
|
|
6407
|
-
|
|
6393
|
+
}, C = R(e), k = (E) => {
|
|
6394
|
+
E.key === "Enter" && E.preventDefault();
|
|
6408
6395
|
};
|
|
6409
|
-
const F = (
|
|
6410
|
-
|
|
6411
|
-
value:
|
|
6396
|
+
const F = (E) => {
|
|
6397
|
+
z.Blur(E), a && a({
|
|
6398
|
+
value: E.target.textContent.replace(/\D/g, ""),
|
|
6412
6399
|
name: r
|
|
6413
6400
|
});
|
|
6414
|
-
},
|
|
6415
|
-
|
|
6401
|
+
}, S = {};
|
|
6402
|
+
S.field = "input", h && (S.className = h);
|
|
6416
6403
|
let L = {};
|
|
6417
|
-
return l && _ ? (L.edit = "true", L.contentEditable =
|
|
6404
|
+
return l && _ ? (L.edit = "true", L.contentEditable = z.ContentEditable) : L.contentEditable = "false", s && (L.placeholder = s), c && (L.after = c), d ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...S, children: [
|
|
6418
6405
|
i && /* @__PURE__ */ n.jsx("dt", { children: i }),
|
|
6419
6406
|
/* @__PURE__ */ n.jsx(
|
|
6420
6407
|
"dd",
|
|
6421
6408
|
{
|
|
6422
6409
|
...L,
|
|
6423
6410
|
onPaste: N,
|
|
6424
|
-
onInput:
|
|
6411
|
+
onInput: I,
|
|
6425
6412
|
onKeyDown: k,
|
|
6426
|
-
onContextMenu:
|
|
6413
|
+
onContextMenu: D,
|
|
6427
6414
|
onBlur: F,
|
|
6428
6415
|
suppressContentEditableWarning: !0,
|
|
6429
6416
|
children: C.q
|
|
@@ -6443,9 +6430,9 @@ const la = ({
|
|
|
6443
6430
|
onValue: d,
|
|
6444
6431
|
maxLength: l = 20
|
|
6445
6432
|
}) => {
|
|
6446
|
-
let _ = 0, c =
|
|
6433
|
+
let _ = 0, c = g.useRef({
|
|
6447
6434
|
textContent: o
|
|
6448
|
-
}),
|
|
6435
|
+
}), m = () => {
|
|
6449
6436
|
c.current.textContent.trim().length === 0 && (c.current.textContent = ""), clearTimeout(_), _ = setTimeout(
|
|
6450
6437
|
() => {
|
|
6451
6438
|
var j;
|
|
@@ -6453,48 +6440,48 @@ const la = ({
|
|
|
6453
6440
|
},
|
|
6454
6441
|
a
|
|
6455
6442
|
);
|
|
6456
|
-
},
|
|
6443
|
+
}, f = () => {
|
|
6457
6444
|
c.current && (c.current.textContent = ""), d("");
|
|
6458
|
-
},
|
|
6445
|
+
}, h = (j) => {
|
|
6459
6446
|
l && j.target.textContent.trim().length >= l && j.key !== "Backspace" && j.preventDefault(), j.key === "Enter" && j.preventDefault();
|
|
6460
|
-
},
|
|
6461
|
-
j.preventDefault(), navigator.clipboard.readText().then((
|
|
6447
|
+
}, x = (j) => {
|
|
6448
|
+
j.preventDefault(), navigator.clipboard.readText().then((I) => {
|
|
6462
6449
|
if (l) {
|
|
6463
6450
|
let N = j.target.textContent.length;
|
|
6464
6451
|
if (N >= l) return;
|
|
6465
|
-
l -= N,
|
|
6452
|
+
l -= N, I = I.slice(0, l);
|
|
6466
6453
|
}
|
|
6467
6454
|
window.document.execCommand(
|
|
6468
6455
|
"insertText",
|
|
6469
6456
|
!1,
|
|
6470
|
-
|
|
6457
|
+
I.replace(/(\r\n|\n|\r)/gm, " ")
|
|
6471
6458
|
);
|
|
6472
|
-
}).catch((
|
|
6459
|
+
}).catch((I) => {
|
|
6473
6460
|
});
|
|
6474
|
-
},
|
|
6461
|
+
}, p = () => {
|
|
6475
6462
|
c.current.textContent = c.current.textContent.trim();
|
|
6476
6463
|
};
|
|
6477
|
-
const
|
|
6478
|
-
|
|
6464
|
+
const v = {};
|
|
6465
|
+
v.field = "search", e && (v.className = e);
|
|
6479
6466
|
const y = {};
|
|
6480
|
-
return r && (y.placeholder = r), /* @__PURE__ */ n.jsxs("dl", { ...
|
|
6467
|
+
return r && (y.placeholder = r), /* @__PURE__ */ n.jsxs("dl", { ...v, children: [
|
|
6481
6468
|
t && /* @__PURE__ */ n.jsx("dt", { children: t }),
|
|
6482
6469
|
/* @__PURE__ */ n.jsx(
|
|
6483
6470
|
"dd",
|
|
6484
6471
|
{
|
|
6485
6472
|
ref: c,
|
|
6486
|
-
onPaste:
|
|
6487
|
-
onInput:
|
|
6488
|
-
onKeyDown:
|
|
6489
|
-
onBlur:
|
|
6490
|
-
contentEditable: s && i ?
|
|
6473
|
+
onPaste: x,
|
|
6474
|
+
onInput: m,
|
|
6475
|
+
onKeyDown: h,
|
|
6476
|
+
onBlur: p,
|
|
6477
|
+
contentEditable: s && i ? z.ContentEditable : "false",
|
|
6491
6478
|
...y,
|
|
6492
6479
|
suppressContentEditableWarning: !0,
|
|
6493
6480
|
children: o
|
|
6494
6481
|
}
|
|
6495
6482
|
),
|
|
6496
|
-
/* @__PURE__ */ n.jsx("svg", { "aria-label": "icon", onClick:
|
|
6497
|
-
/* @__PURE__ */ n.jsx("svg", { "action-type": "delete", onClick:
|
|
6483
|
+
/* @__PURE__ */ n.jsx("svg", { "aria-label": "icon", onClick: f, viewBox: "0 0 24 24", children: /* @__PURE__ */ n.jsx("path", { d: "M10.364 3a7.364 7.364 0 1 0 0 14.727 7.364 7.364 0 0 0 0-14.727v0ZM15.857 15.86 21 21.001" }) }),
|
|
6484
|
+
/* @__PURE__ */ n.jsx("svg", { "action-type": "delete", onClick: f, viewBox: "0 0 24 24", children: /* @__PURE__ */ n.jsx("path", { d: "M17 6L6 17M6 6L17 17" }) })
|
|
6498
6485
|
] });
|
|
6499
6486
|
};
|
|
6500
6487
|
function Wt({
|
|
@@ -6509,40 +6496,40 @@ function Wt({
|
|
|
6509
6496
|
placeholder: l = "",
|
|
6510
6497
|
className: _,
|
|
6511
6498
|
name: c,
|
|
6512
|
-
after:
|
|
6513
|
-
view:
|
|
6514
|
-
order:
|
|
6515
|
-
isReload:
|
|
6499
|
+
after: m,
|
|
6500
|
+
view: f,
|
|
6501
|
+
order: h,
|
|
6502
|
+
isReload: x = !1
|
|
6516
6503
|
}) {
|
|
6517
|
-
var F,
|
|
6518
|
-
const
|
|
6519
|
-
|
|
6520
|
-
y(i),
|
|
6504
|
+
var F, S;
|
|
6505
|
+
const p = g.useRef(), [v, y] = g.useState(i), [j, I] = g.useState(d);
|
|
6506
|
+
g.useEffect(() => {
|
|
6507
|
+
y(i), I(d);
|
|
6521
6508
|
}, [i, d]), s = !!(s && (i === 0 || ((F = j == null ? void 0 : j[i]) == null ? void 0 : F.n) === void 0)) && !(a && r);
|
|
6522
6509
|
let R = (L) => {
|
|
6523
|
-
y(L), o && o({ value: L, name: c, reload:
|
|
6524
|
-
},
|
|
6510
|
+
y(L), o && o({ value: L, name: c, reload: x });
|
|
6511
|
+
}, D = (L) => {
|
|
6525
6512
|
if (Object.keys(j || {}).length === 0 || !(a && r)) return;
|
|
6526
|
-
const
|
|
6527
|
-
|
|
6513
|
+
const E = L.target.getBoundingClientRect();
|
|
6514
|
+
ve.setListener(
|
|
6528
6515
|
"form",
|
|
6529
6516
|
/* @__PURE__ */ n.jsx(
|
|
6530
|
-
|
|
6517
|
+
Kl,
|
|
6531
6518
|
{
|
|
6532
|
-
parent:
|
|
6519
|
+
parent: E,
|
|
6533
6520
|
onValue: R,
|
|
6534
|
-
view:
|
|
6521
|
+
view: f,
|
|
6535
6522
|
className: _,
|
|
6536
6523
|
options: j,
|
|
6537
|
-
order:
|
|
6524
|
+
order: h
|
|
6538
6525
|
},
|
|
6539
6526
|
(/* @__PURE__ */ new Date()).getTime()
|
|
6540
6527
|
)
|
|
6541
6528
|
);
|
|
6542
|
-
}, C = { field: "select", className: _ }, k = { onClick:
|
|
6543
|
-
return l && (k.placeholder = l),
|
|
6529
|
+
}, C = { field: "select", className: _ }, k = { onClick: D };
|
|
6530
|
+
return l && (k.placeholder = l), m && (k.after = m), a && r && (k.edit = ""), s ? "" : /* @__PURE__ */ n.jsxs("dl", { ...C, children: [
|
|
6544
6531
|
e && /* @__PURE__ */ n.jsx("dt", { children: e }),
|
|
6545
|
-
/* @__PURE__ */ n.jsx("dd", { ...k, ref:
|
|
6532
|
+
/* @__PURE__ */ n.jsx("dd", { ...k, ref: p, children: (S = j == null ? void 0 : j[v]) == null ? void 0 : S.n }),
|
|
6546
6533
|
Object.keys(j || {}).length !== 0 && /* @__PURE__ */ n.jsx("s", { children: /* @__PURE__ */ n.jsx(
|
|
6547
6534
|
"svg",
|
|
6548
6535
|
{
|
|
@@ -6559,7 +6546,7 @@ function Wt({
|
|
|
6559
6546
|
t && /* @__PURE__ */ n.jsx("em", { children: t })
|
|
6560
6547
|
] });
|
|
6561
6548
|
}
|
|
6562
|
-
const
|
|
6549
|
+
const Kl = ({
|
|
6563
6550
|
onValue: e,
|
|
6564
6551
|
parent: t,
|
|
6565
6552
|
view: a,
|
|
@@ -6567,11 +6554,11 @@ const zl = ({
|
|
|
6567
6554
|
options: s,
|
|
6568
6555
|
order: i
|
|
6569
6556
|
}) => {
|
|
6570
|
-
let [o, d] =
|
|
6557
|
+
let [o, d] = g.useState(!0), l = () => {
|
|
6571
6558
|
d(!1);
|
|
6572
|
-
}, _ = (
|
|
6573
|
-
d(!1), e(
|
|
6574
|
-
}, c = window.innerHeight - t.y + t.height < 320 ? t.y - 312 : t.y + 33,
|
|
6559
|
+
}, _ = (f) => {
|
|
6560
|
+
d(!1), e(f);
|
|
6561
|
+
}, c = window.innerHeight - t.y + t.height < 320 ? t.y - 312 : t.y + 33, m = window.innerWidth - t.x < 265 ? t.x - 235 : t.x;
|
|
6575
6562
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: o ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
6576
6563
|
/* @__PURE__ */ n.jsx(
|
|
6577
6564
|
"div",
|
|
@@ -6588,7 +6575,7 @@ const zl = ({
|
|
|
6588
6575
|
"data-select": "background " + a,
|
|
6589
6576
|
style: {
|
|
6590
6577
|
top: c + "px",
|
|
6591
|
-
left:
|
|
6578
|
+
left: m + "px",
|
|
6592
6579
|
width: t.width
|
|
6593
6580
|
},
|
|
6594
6581
|
children: /* @__PURE__ */ n.jsx(Yl, { order: i, options: s, link: _ })
|
|
@@ -6619,19 +6606,19 @@ const zl = ({
|
|
|
6619
6606
|
) : ""
|
|
6620
6607
|
) });
|
|
6621
6608
|
function Ut(e) {
|
|
6622
|
-
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), d = e.placeholder !== void 0 ? e.placeholder : "", l = (
|
|
6623
|
-
c(e.options[
|
|
6624
|
-
}, [_, c] =
|
|
6609
|
+
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), d = e.placeholder !== void 0 ? e.placeholder : "", l = (h) => {
|
|
6610
|
+
c(e.options[h]), e.onValue({ value: h, name: e.name });
|
|
6611
|
+
}, [_, c] = g.useState(
|
|
6625
6612
|
e.default !== void 0 ? e.options[e.default] : e.default
|
|
6626
|
-
),
|
|
6613
|
+
), m = (h) => {
|
|
6627
6614
|
if (!(r && s)) return;
|
|
6628
|
-
const
|
|
6629
|
-
|
|
6615
|
+
const x = h.target.getBoundingClientRect();
|
|
6616
|
+
ve.setListener(
|
|
6630
6617
|
"form",
|
|
6631
6618
|
/* @__PURE__ */ n.jsx(
|
|
6632
6619
|
Hl,
|
|
6633
6620
|
{
|
|
6634
|
-
parent:
|
|
6621
|
+
parent: x,
|
|
6635
6622
|
onValue: l,
|
|
6636
6623
|
view: e.view,
|
|
6637
6624
|
options: e.options
|
|
@@ -6640,8 +6627,8 @@ function Ut(e) {
|
|
|
6640
6627
|
)
|
|
6641
6628
|
);
|
|
6642
6629
|
};
|
|
6643
|
-
const
|
|
6644
|
-
return d && (
|
|
6630
|
+
const f = {};
|
|
6631
|
+
return d && (f.placeholder = d), o ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs(
|
|
6645
6632
|
"dl",
|
|
6646
6633
|
{
|
|
6647
6634
|
"data-form": "select",
|
|
@@ -6650,9 +6637,9 @@ function Ut(e) {
|
|
|
6650
6637
|
/* @__PURE__ */ n.jsx(
|
|
6651
6638
|
"dd",
|
|
6652
6639
|
{
|
|
6653
|
-
onClick:
|
|
6640
|
+
onClick: m,
|
|
6654
6641
|
"data-edit": (r && s) + "",
|
|
6655
|
-
...
|
|
6642
|
+
...f,
|
|
6656
6643
|
children: _
|
|
6657
6644
|
}
|
|
6658
6645
|
),
|
|
@@ -6662,10 +6649,10 @@ function Ut(e) {
|
|
|
6662
6649
|
);
|
|
6663
6650
|
}
|
|
6664
6651
|
const Hl = ({ onValue: e, parent: t, view: a, options: r }) => {
|
|
6665
|
-
let [s, i] =
|
|
6652
|
+
let [s, i] = g.useState(!0), o = () => {
|
|
6666
6653
|
i(!1);
|
|
6667
|
-
}, d = (
|
|
6668
|
-
i(!1), e(
|
|
6654
|
+
}, d = (m) => {
|
|
6655
|
+
i(!1), e(m);
|
|
6669
6656
|
}, l = Object.keys(r).length * 36, _ = window.innerHeight - t.y + t.height < l ? t.y - (l - 33) : t.y + 33, c = window.innerWidth - t.x < 265 ? t.x - 235 : t.x;
|
|
6670
6657
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: s ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
6671
6658
|
/* @__PURE__ */ n.jsx(
|
|
@@ -6685,15 +6672,15 @@ const Hl = ({ onValue: e, parent: t, view: a, options: r }) => {
|
|
|
6685
6672
|
left: c + "px",
|
|
6686
6673
|
width: t.width
|
|
6687
6674
|
},
|
|
6688
|
-
children: /* @__PURE__ */ n.jsx("ul", { children: Object.keys(r).map((
|
|
6675
|
+
children: /* @__PURE__ */ n.jsx("ul", { children: Object.keys(r).map((m, f) => /* @__PURE__ */ n.jsx(
|
|
6689
6676
|
"li",
|
|
6690
6677
|
{
|
|
6691
6678
|
onClick: () => {
|
|
6692
|
-
d(
|
|
6679
|
+
d(m);
|
|
6693
6680
|
},
|
|
6694
|
-
children: r[
|
|
6681
|
+
children: r[m]
|
|
6695
6682
|
},
|
|
6696
|
-
|
|
6683
|
+
f
|
|
6697
6684
|
)) })
|
|
6698
6685
|
}
|
|
6699
6686
|
)
|
|
@@ -6711,13 +6698,13 @@ function Mt({
|
|
|
6711
6698
|
edit: l = !0,
|
|
6712
6699
|
show: _ = !0,
|
|
6713
6700
|
active: c = !0,
|
|
6714
|
-
after:
|
|
6715
|
-
view:
|
|
6716
|
-
module:
|
|
6717
|
-
item:
|
|
6718
|
-
className:
|
|
6701
|
+
after: m = "",
|
|
6702
|
+
view: f,
|
|
6703
|
+
module: h,
|
|
6704
|
+
item: x,
|
|
6705
|
+
className: p = ""
|
|
6719
6706
|
}) {
|
|
6720
|
-
let
|
|
6707
|
+
let v = {};
|
|
6721
6708
|
switch (e) {
|
|
6722
6709
|
case "Input":
|
|
6723
6710
|
return /* @__PURE__ */ n.jsx(
|
|
@@ -6726,32 +6713,32 @@ function Mt({
|
|
|
6726
6713
|
title: i,
|
|
6727
6714
|
show: _,
|
|
6728
6715
|
hide: d,
|
|
6729
|
-
view:
|
|
6716
|
+
view: f,
|
|
6730
6717
|
edit: l,
|
|
6731
6718
|
active: c,
|
|
6732
6719
|
value: t,
|
|
6733
6720
|
onValue: a,
|
|
6734
6721
|
name: r,
|
|
6735
6722
|
placeholder: s,
|
|
6736
|
-
className:
|
|
6723
|
+
className: p
|
|
6737
6724
|
}
|
|
6738
6725
|
);
|
|
6739
6726
|
case "Select":
|
|
6740
|
-
return
|
|
6727
|
+
return x && (v = ke.getSelect(parseInt(x)) ? ke.getSelect(parseInt(x)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ n.jsx(
|
|
6741
6728
|
Wt,
|
|
6742
6729
|
{
|
|
6743
6730
|
title: i,
|
|
6744
6731
|
show: _,
|
|
6745
6732
|
hide: d,
|
|
6746
|
-
view:
|
|
6733
|
+
view: f,
|
|
6747
6734
|
edit: l,
|
|
6748
6735
|
active: c,
|
|
6749
6736
|
value: parseInt(t || "0"),
|
|
6750
6737
|
onValue: a,
|
|
6751
6738
|
name: r,
|
|
6752
6739
|
placeholder: s,
|
|
6753
|
-
className:
|
|
6754
|
-
options:
|
|
6740
|
+
className: p,
|
|
6741
|
+
options: v
|
|
6755
6742
|
}
|
|
6756
6743
|
);
|
|
6757
6744
|
case "Users":
|
|
@@ -6761,15 +6748,15 @@ function Mt({
|
|
|
6761
6748
|
title: i,
|
|
6762
6749
|
show: _,
|
|
6763
6750
|
hide: d,
|
|
6764
|
-
view:
|
|
6751
|
+
view: f,
|
|
6765
6752
|
edit: l,
|
|
6766
6753
|
active: c,
|
|
6767
6754
|
value: t,
|
|
6768
6755
|
onValue: a,
|
|
6769
6756
|
name: r,
|
|
6770
6757
|
placeholder: s,
|
|
6771
|
-
className:
|
|
6772
|
-
options:
|
|
6758
|
+
className: p,
|
|
6759
|
+
options: v
|
|
6773
6760
|
}
|
|
6774
6761
|
);
|
|
6775
6762
|
case "Date":
|
|
@@ -6779,14 +6766,14 @@ function Mt({
|
|
|
6779
6766
|
title: i,
|
|
6780
6767
|
show: _,
|
|
6781
6768
|
hide: d,
|
|
6782
|
-
view:
|
|
6769
|
+
view: f,
|
|
6783
6770
|
edit: l,
|
|
6784
6771
|
active: c,
|
|
6785
6772
|
value: t,
|
|
6786
6773
|
onValue: a,
|
|
6787
6774
|
name: r,
|
|
6788
6775
|
placeholder: s,
|
|
6789
|
-
className:
|
|
6776
|
+
className: p
|
|
6790
6777
|
}
|
|
6791
6778
|
);
|
|
6792
6779
|
case "Phone":
|
|
@@ -6796,14 +6783,14 @@ function Mt({
|
|
|
6796
6783
|
title: i,
|
|
6797
6784
|
show: _,
|
|
6798
6785
|
hide: d,
|
|
6799
|
-
view:
|
|
6786
|
+
view: f,
|
|
6800
6787
|
edit: l,
|
|
6801
6788
|
active: c,
|
|
6802
6789
|
value: t,
|
|
6803
6790
|
onValue: a,
|
|
6804
6791
|
name: r,
|
|
6805
6792
|
placeholder: s,
|
|
6806
|
-
className:
|
|
6793
|
+
className: p
|
|
6807
6794
|
}
|
|
6808
6795
|
);
|
|
6809
6796
|
case "Number":
|
|
@@ -6813,14 +6800,14 @@ function Mt({
|
|
|
6813
6800
|
title: i,
|
|
6814
6801
|
show: _,
|
|
6815
6802
|
hide: d,
|
|
6816
|
-
view:
|
|
6803
|
+
view: f,
|
|
6817
6804
|
edit: l,
|
|
6818
6805
|
active: c,
|
|
6819
6806
|
value: t,
|
|
6820
6807
|
onValue: a,
|
|
6821
6808
|
name: r,
|
|
6822
6809
|
placeholder: s,
|
|
6823
|
-
className:
|
|
6810
|
+
className: p
|
|
6824
6811
|
}
|
|
6825
6812
|
);
|
|
6826
6813
|
case "Money":
|
|
@@ -6830,14 +6817,14 @@ function Mt({
|
|
|
6830
6817
|
title: i,
|
|
6831
6818
|
show: _,
|
|
6832
6819
|
hide: d,
|
|
6833
|
-
view:
|
|
6820
|
+
view: f,
|
|
6834
6821
|
edit: l,
|
|
6835
6822
|
active: c,
|
|
6836
6823
|
value: t,
|
|
6837
6824
|
onValue: a,
|
|
6838
6825
|
name: r,
|
|
6839
6826
|
placeholder: s,
|
|
6840
|
-
className:
|
|
6827
|
+
className: p
|
|
6841
6828
|
}
|
|
6842
6829
|
);
|
|
6843
6830
|
case "Modal":
|
|
@@ -6847,16 +6834,16 @@ function Mt({
|
|
|
6847
6834
|
title: i,
|
|
6848
6835
|
show: _,
|
|
6849
6836
|
hide: d,
|
|
6850
|
-
view:
|
|
6837
|
+
view: f,
|
|
6851
6838
|
edit: l,
|
|
6852
6839
|
active: c,
|
|
6853
6840
|
value: t,
|
|
6854
6841
|
onValue: a,
|
|
6855
6842
|
name: r || "",
|
|
6856
6843
|
placeholder: s,
|
|
6857
|
-
className:
|
|
6858
|
-
options:
|
|
6859
|
-
module:
|
|
6844
|
+
className: p,
|
|
6845
|
+
options: v,
|
|
6846
|
+
module: h || ""
|
|
6860
6847
|
}
|
|
6861
6848
|
);
|
|
6862
6849
|
}
|
|
@@ -6873,40 +6860,40 @@ function ca({
|
|
|
6873
6860
|
active: l = !0,
|
|
6874
6861
|
after: _ = "",
|
|
6875
6862
|
show: c = !0,
|
|
6876
|
-
view:
|
|
6877
|
-
maxLength:
|
|
6878
|
-
onSave:
|
|
6879
|
-
className:
|
|
6863
|
+
view: m,
|
|
6864
|
+
maxLength: f,
|
|
6865
|
+
onSave: h,
|
|
6866
|
+
className: x = ""
|
|
6880
6867
|
}) {
|
|
6881
|
-
let
|
|
6882
|
-
if (!(d && l) && !c || !(d && l) &&
|
|
6883
|
-
let
|
|
6868
|
+
let p = !!(o && (e === "" || e === void 0));
|
|
6869
|
+
if (!(d && l) && !c || !(d && l) && p) return "";
|
|
6870
|
+
let v = (R) => {
|
|
6884
6871
|
t && t({ value: R.target.innerText, name: a });
|
|
6885
6872
|
}, y = (R) => {
|
|
6886
|
-
|
|
6873
|
+
h && h({ value: R.target.innerText, name: a });
|
|
6887
6874
|
}, j = (R) => {
|
|
6888
|
-
R.preventDefault(), navigator.clipboard.readText().then((
|
|
6889
|
-
if (
|
|
6875
|
+
R.preventDefault(), navigator.clipboard.readText().then((D) => {
|
|
6876
|
+
if (f) {
|
|
6890
6877
|
let C = R.target.textContent.length;
|
|
6891
|
-
if (C >=
|
|
6892
|
-
|
|
6878
|
+
if (C >= f) return;
|
|
6879
|
+
f -= C, D = D.slice(0, f);
|
|
6893
6880
|
}
|
|
6894
|
-
window.document.execCommand("insertText", !1,
|
|
6895
|
-
}).catch((
|
|
6881
|
+
window.document.execCommand("insertText", !1, D);
|
|
6882
|
+
}).catch((D) => {
|
|
6896
6883
|
});
|
|
6897
6884
|
};
|
|
6898
|
-
const
|
|
6899
|
-
|
|
6885
|
+
const I = {};
|
|
6886
|
+
I.field = "text", x && (I.className = x);
|
|
6900
6887
|
const N = {};
|
|
6901
|
-
return r && (N.placeholder = r), /* @__PURE__ */ n.jsxs("dl", { ...
|
|
6888
|
+
return r && (N.placeholder = r), /* @__PURE__ */ n.jsxs("dl", { ...I, children: [
|
|
6902
6889
|
s && /* @__PURE__ */ n.jsx("dt", { children: s }),
|
|
6903
6890
|
/* @__PURE__ */ n.jsx(
|
|
6904
6891
|
"dd",
|
|
6905
6892
|
{
|
|
6906
6893
|
onPaste: j,
|
|
6907
6894
|
onBlur: y,
|
|
6908
|
-
onInput:
|
|
6909
|
-
contentEditable: d && l ?
|
|
6895
|
+
onInput: v,
|
|
6896
|
+
contentEditable: d && l ? z.ContentEditable : "false",
|
|
6910
6897
|
...N,
|
|
6911
6898
|
suppressContentEditableWarning: !0,
|
|
6912
6899
|
children: e
|
|
@@ -6927,19 +6914,19 @@ function da({
|
|
|
6927
6914
|
active: l = !0,
|
|
6928
6915
|
after: _ = "",
|
|
6929
6916
|
show: c = !0,
|
|
6930
|
-
view:
|
|
6931
|
-
onSave:
|
|
6932
|
-
className:
|
|
6917
|
+
view: m,
|
|
6918
|
+
onSave: f,
|
|
6919
|
+
className: h = ""
|
|
6933
6920
|
}) {
|
|
6934
|
-
let
|
|
6935
|
-
if (!(d && l) && !c || !(d && l) &&
|
|
6936
|
-
let y = (
|
|
6937
|
-
|
|
6938
|
-
}, j = (
|
|
6939
|
-
|
|
6940
|
-
},
|
|
6941
|
-
const C =
|
|
6942
|
-
|
|
6921
|
+
let x = !!(o && (e === "" || e === void 0)), p = Y.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), v = g.useRef(null);
|
|
6922
|
+
if (!(d && l) && !c || !(d && l) && x) return "";
|
|
6923
|
+
let y = (D) => {
|
|
6924
|
+
v.current.textContent = D, t && t({ value: D, name: a });
|
|
6925
|
+
}, j = (D) => {
|
|
6926
|
+
f && f({ value: D, name: a });
|
|
6927
|
+
}, I = (D) => {
|
|
6928
|
+
const C = D.target.getBoundingClientRect(), k = C.left, F = C.top;
|
|
6929
|
+
ve.setListener(
|
|
6943
6930
|
"form",
|
|
6944
6931
|
/* @__PURE__ */ n.jsx(
|
|
6945
6932
|
ql,
|
|
@@ -6947,24 +6934,24 @@ function da({
|
|
|
6947
6934
|
positions: { x: k, y: F },
|
|
6948
6935
|
onSave: j,
|
|
6949
6936
|
onValue: y,
|
|
6950
|
-
date:
|
|
6937
|
+
date: p
|
|
6951
6938
|
},
|
|
6952
6939
|
(/* @__PURE__ */ new Date()).getTime()
|
|
6953
6940
|
)
|
|
6954
6941
|
);
|
|
6955
6942
|
};
|
|
6956
6943
|
const N = {};
|
|
6957
|
-
N.field = "input",
|
|
6944
|
+
N.field = "input", h && (N.className = h);
|
|
6958
6945
|
const R = {};
|
|
6959
|
-
return r && (R.placeholder = r), /* @__PURE__ */ n.jsx(n.Fragment, { children:
|
|
6946
|
+
return r && (R.placeholder = r), /* @__PURE__ */ n.jsx(n.Fragment, { children: m === "icon" ? /* @__PURE__ */ n.jsx(
|
|
6960
6947
|
"i",
|
|
6961
6948
|
{
|
|
6962
6949
|
"data-icon": "F043",
|
|
6963
|
-
onClick:
|
|
6950
|
+
onClick: I
|
|
6964
6951
|
}
|
|
6965
6952
|
) : /* @__PURE__ */ n.jsxs("dl", { ...N, children: [
|
|
6966
6953
|
s ? /* @__PURE__ */ n.jsx("dt", { children: s }) : "",
|
|
6967
|
-
/* @__PURE__ */ n.jsx("dd", { onClick:
|
|
6954
|
+
/* @__PURE__ */ n.jsx("dd", { onClick: I, ref: v, ...R, children: p }),
|
|
6968
6955
|
i ? /* @__PURE__ */ n.jsx("em", { children: i }) : ""
|
|
6969
6956
|
] }) });
|
|
6970
6957
|
}
|
|
@@ -6972,92 +6959,92 @@ const ql = ({ positions: e, onSave: t, onValue: a, date: r }) => {
|
|
|
6972
6959
|
let s = r.split(":"), i = {
|
|
6973
6960
|
h: Y.Number(2, s[0]),
|
|
6974
6961
|
m: Y.Number(2, s[1])
|
|
6975
|
-
}, o = "hour", [d, l] =
|
|
6976
|
-
body:
|
|
6977
|
-
time:
|
|
6978
|
-
hour:
|
|
6979
|
-
timeText:
|
|
6980
|
-
hourText:
|
|
6962
|
+
}, o = "hour", [d, l] = g.useState({}), _ = !1, c = 0, m = 0, f = {
|
|
6963
|
+
body: g.useRef(null),
|
|
6964
|
+
time: g.useRef(null),
|
|
6965
|
+
hour: g.useRef(null),
|
|
6966
|
+
timeText: g.useRef(null),
|
|
6967
|
+
hourText: g.useRef(null)
|
|
6981
6968
|
};
|
|
6982
|
-
|
|
6983
|
-
l(
|
|
6984
|
-
}, [
|
|
6985
|
-
let
|
|
6969
|
+
g.useEffect(() => {
|
|
6970
|
+
l(f.body.current.getBoundingClientRect()), f.hour.current.style.transform = "rotate(" + i.h * 15 + "deg)", f.time.current.style.transform = "rotate(" + i.m * 6 + "deg)";
|
|
6971
|
+
}, [f.body, f.hour, f.time, i.m, i.h]);
|
|
6972
|
+
let h = () => {
|
|
6986
6973
|
_ = !0;
|
|
6987
|
-
},
|
|
6988
|
-
_ = !1, o = o === "hour" ? "time" : "hour",
|
|
6989
|
-
},
|
|
6974
|
+
}, x = () => {
|
|
6975
|
+
_ = !1, o = o === "hour" ? "time" : "hour", f.body.current.setAttribute("active", o);
|
|
6976
|
+
}, p = (D) => {
|
|
6990
6977
|
if (_) {
|
|
6991
6978
|
let k = Math.atan2(
|
|
6992
|
-
|
|
6993
|
-
|
|
6979
|
+
D.pageX - (d.x + 78),
|
|
6980
|
+
D.pageY - (d.y + 78)
|
|
6994
6981
|
) * (180 / Math.PI) * -1 + 180;
|
|
6995
|
-
|
|
6982
|
+
f[o].current.style.transform = "rotate(" + k + "deg)", o === "hour" ? (i = {
|
|
6996
6983
|
...i,
|
|
6997
6984
|
h: Y.Number(2, parseInt(String(k / 15), 10))
|
|
6998
|
-
},
|
|
6985
|
+
}, f.hourText.current.textContent = i.h) : (i = {
|
|
6999
6986
|
...i,
|
|
7000
6987
|
m: Y.Number(2, parseInt(String(k / 6), 10))
|
|
7001
|
-
},
|
|
6988
|
+
}, f.timeText.current.textContent = i.m), a(i.h + ":" + i.m);
|
|
7002
6989
|
}
|
|
7003
|
-
},
|
|
6990
|
+
}, v = (D) => {
|
|
7004
6991
|
if (o === "hour")
|
|
7005
|
-
if (
|
|
7006
|
-
c +=
|
|
6992
|
+
if (D.deltaY > 0) {
|
|
6993
|
+
c += D.deltaY;
|
|
7007
6994
|
let C = parseInt(String(c / 50));
|
|
7008
|
-
if (
|
|
7009
|
-
|
|
6995
|
+
if (m !== C) {
|
|
6996
|
+
m = C;
|
|
7010
6997
|
let k = parseInt(i.h, 10) + 1;
|
|
7011
|
-
k = k > 23 ? 0 : k, i = { ...i, h: Y.Number(2, k) },
|
|
6998
|
+
k = k > 23 ? 0 : k, i = { ...i, h: Y.Number(2, k) }, f.hourText.current.textContent = i.h, f[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
|
|
7012
6999
|
}
|
|
7013
7000
|
} else {
|
|
7014
|
-
c -=
|
|
7001
|
+
c -= D.deltaY;
|
|
7015
7002
|
let C = parseInt(String(c / 50));
|
|
7016
|
-
if (
|
|
7017
|
-
|
|
7003
|
+
if (m !== C) {
|
|
7004
|
+
m = C;
|
|
7018
7005
|
let k = parseInt(i.h, 10) - 1;
|
|
7019
|
-
k = k < 0 ? 23 : k, i = { ...i, h: Y.Number(2, k) },
|
|
7006
|
+
k = k < 0 ? 23 : k, i = { ...i, h: Y.Number(2, k) }, f.hourText.current.textContent = i.h, f[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
|
|
7020
7007
|
}
|
|
7021
7008
|
}
|
|
7022
|
-
else if (
|
|
7023
|
-
c +=
|
|
7009
|
+
else if (D.deltaY > 0) {
|
|
7010
|
+
c += D.deltaY;
|
|
7024
7011
|
let C = parseInt(String(c / 50));
|
|
7025
|
-
if (
|
|
7026
|
-
|
|
7012
|
+
if (m !== C) {
|
|
7013
|
+
m = C;
|
|
7027
7014
|
let k = parseInt(i.m, 10) + 1;
|
|
7028
|
-
k = k > 59 ? 0 : k, i = { ...i, m: Y.Number(2, k) },
|
|
7015
|
+
k = k > 59 ? 0 : k, i = { ...i, m: Y.Number(2, k) }, f.timeText.current.textContent = i.m, f[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
|
|
7029
7016
|
}
|
|
7030
7017
|
} else {
|
|
7031
|
-
c -=
|
|
7018
|
+
c -= D.deltaY;
|
|
7032
7019
|
let C = parseInt(String(c / 50));
|
|
7033
|
-
if (
|
|
7034
|
-
|
|
7020
|
+
if (m !== C) {
|
|
7021
|
+
m = C;
|
|
7035
7022
|
let k = parseInt(i.m, 10) - 1;
|
|
7036
|
-
k = k < 0 ? 59 : k, i = { ...i, m: Y.Number(2, k) },
|
|
7023
|
+
k = k < 0 ? 59 : k, i = { ...i, m: Y.Number(2, k) }, f.timeText.current.textContent = i.m, f[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
|
|
7037
7024
|
}
|
|
7038
7025
|
}
|
|
7039
7026
|
a(i.h + ":" + i.m);
|
|
7040
|
-
}, [y, j] =
|
|
7027
|
+
}, [y, j] = g.useState(!0), I = () => {
|
|
7041
7028
|
j(!1), t(i.h + ":" + i.m);
|
|
7042
7029
|
}, N = window.innerHeight - e.y + 33 < 320 ? e.y - 312 : e.y + 33, R = window.innerWidth - e.x < 265 ? e.x - 235 : e.x;
|
|
7043
7030
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: y ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
7044
7031
|
/* @__PURE__ */ n.jsx(
|
|
7045
7032
|
"div",
|
|
7046
7033
|
{
|
|
7047
|
-
className:
|
|
7048
|
-
onClick: () =>
|
|
7034
|
+
className: ge.o,
|
|
7035
|
+
onClick: () => I()
|
|
7049
7036
|
},
|
|
7050
7037
|
(/* @__PURE__ */ new Date()).getTime()
|
|
7051
7038
|
),
|
|
7052
7039
|
/* @__PURE__ */ n.jsxs(
|
|
7053
7040
|
"div",
|
|
7054
7041
|
{
|
|
7055
|
-
className:
|
|
7056
|
-
onMouseDown:
|
|
7057
|
-
onMouseUp:
|
|
7058
|
-
onMouseMove:
|
|
7059
|
-
onWheel:
|
|
7060
|
-
ref:
|
|
7042
|
+
className: ge.c,
|
|
7043
|
+
onMouseDown: h,
|
|
7044
|
+
onMouseUp: x,
|
|
7045
|
+
onMouseMove: p,
|
|
7046
|
+
onWheel: v,
|
|
7047
|
+
ref: f.body,
|
|
7061
7048
|
style: { top: N + "px", left: R + "px" },
|
|
7062
7049
|
children: [
|
|
7063
7050
|
/* @__PURE__ */ n.jsx("div", { className: "b" }),
|
|
@@ -7067,9 +7054,9 @@ const ql = ({ positions: e, onSave: t, onValue: a, date: r }) => {
|
|
|
7067
7054
|
{
|
|
7068
7055
|
className: [
|
|
7069
7056
|
"hour",
|
|
7070
|
-
o === "hour" ?
|
|
7057
|
+
o === "hour" ? ge.as : ge.ap
|
|
7071
7058
|
].join(" "),
|
|
7072
|
-
ref:
|
|
7059
|
+
ref: f.hourText,
|
|
7073
7060
|
children: i.h
|
|
7074
7061
|
}
|
|
7075
7062
|
),
|
|
@@ -7081,15 +7068,15 @@ const ql = ({ positions: e, onSave: t, onValue: a, date: r }) => {
|
|
|
7081
7068
|
{
|
|
7082
7069
|
className: [
|
|
7083
7070
|
"min",
|
|
7084
|
-
o === "time" ?
|
|
7071
|
+
o === "time" ? ge.as : ge.ap
|
|
7085
7072
|
].join(" "),
|
|
7086
|
-
ref:
|
|
7073
|
+
ref: f.timeText,
|
|
7087
7074
|
children: i.m
|
|
7088
7075
|
}
|
|
7089
7076
|
)
|
|
7090
7077
|
] }),
|
|
7091
|
-
/* @__PURE__ */ n.jsx("div", { className: "h", ref:
|
|
7092
|
-
/* @__PURE__ */ n.jsx("div", { className: "t", ref:
|
|
7078
|
+
/* @__PURE__ */ n.jsx("div", { className: "h", ref: f.hour }),
|
|
7079
|
+
/* @__PURE__ */ n.jsx("div", { className: "t", ref: f.time })
|
|
7093
7080
|
]
|
|
7094
7081
|
}
|
|
7095
7082
|
)
|
|
@@ -7106,17 +7093,17 @@ function _a({
|
|
|
7106
7093
|
id: d,
|
|
7107
7094
|
reload: l
|
|
7108
7095
|
}) {
|
|
7109
|
-
const [_, c] =
|
|
7110
|
-
|
|
7096
|
+
const [_, c] = g.useState(!!a), m = t || r;
|
|
7097
|
+
g.useEffect(() => {
|
|
7111
7098
|
c(!!a);
|
|
7112
7099
|
}, [a]);
|
|
7113
|
-
let
|
|
7100
|
+
let f = () => {
|
|
7114
7101
|
e && e({ value: _ ? 0 : 1, name: i, id: d }), c(!_);
|
|
7115
7102
|
};
|
|
7116
|
-
const
|
|
7117
|
-
return
|
|
7118
|
-
|
|
7119
|
-
/* @__PURE__ */ n.jsxs("dd", { onClick:
|
|
7103
|
+
const h = {};
|
|
7104
|
+
return h.field = "check", s && (h.className = s), /* @__PURE__ */ n.jsxs("dl", { ...h, children: [
|
|
7105
|
+
m ? /* @__PURE__ */ n.jsx("dt", { children: m }) : "",
|
|
7106
|
+
/* @__PURE__ */ n.jsxs("dd", { onClick: f, children: [
|
|
7120
7107
|
/* @__PURE__ */ n.jsx("span", { children: o }),
|
|
7121
7108
|
/* @__PURE__ */ n.jsx(
|
|
7122
7109
|
"div",
|
|
@@ -7129,8 +7116,8 @@ function _a({
|
|
|
7129
7116
|
] });
|
|
7130
7117
|
}
|
|
7131
7118
|
const Jl = ({ label: e, onValue: t, value: a, name: r, item: s }) => {
|
|
7132
|
-
const [i, o] =
|
|
7133
|
-
|
|
7119
|
+
const [i, o] = g.useState(!!a);
|
|
7120
|
+
g.useEffect(() => {
|
|
7134
7121
|
o(!!a);
|
|
7135
7122
|
}, [a]);
|
|
7136
7123
|
let d = () => {
|
|
@@ -7146,8 +7133,8 @@ const Jl = ({ label: e, onValue: t, value: a, name: r, item: s }) => {
|
|
|
7146
7133
|
}
|
|
7147
7134
|
);
|
|
7148
7135
|
}, ua = ({ onValue: e, value: t, name: a, item: r }) => {
|
|
7149
|
-
const [s, i] =
|
|
7150
|
-
|
|
7136
|
+
const [s, i] = g.useState(!!t);
|
|
7137
|
+
g.useEffect(() => {
|
|
7151
7138
|
i(!!t);
|
|
7152
7139
|
}, [t]);
|
|
7153
7140
|
let o = () => {
|
|
@@ -7175,38 +7162,38 @@ function fa({
|
|
|
7175
7162
|
active: l = !0,
|
|
7176
7163
|
after: _ = "",
|
|
7177
7164
|
show: c = !0,
|
|
7178
|
-
view:
|
|
7179
|
-
max:
|
|
7180
|
-
onSave:
|
|
7181
|
-
className:
|
|
7182
|
-
separator:
|
|
7165
|
+
view: m,
|
|
7166
|
+
max: f = 0,
|
|
7167
|
+
onSave: h,
|
|
7168
|
+
className: x = "",
|
|
7169
|
+
separator: p = ","
|
|
7183
7170
|
}) {
|
|
7184
|
-
const [
|
|
7185
|
-
e !== void 0 ? e.split(
|
|
7171
|
+
const [v, y] = g.useState(
|
|
7172
|
+
e !== void 0 ? e.split(p) : []
|
|
7186
7173
|
);
|
|
7187
|
-
|
|
7188
|
-
y(e !== void 0 ? e !== void 0 ? e.split(
|
|
7174
|
+
g.useEffect(() => {
|
|
7175
|
+
y(e !== void 0 ? e !== void 0 ? e.split(p) : [] : []);
|
|
7189
7176
|
}, [e]);
|
|
7190
7177
|
let j = () => {
|
|
7191
|
-
if (
|
|
7192
|
-
return
|
|
7193
|
-
y([...
|
|
7194
|
-
},
|
|
7195
|
-
|
|
7178
|
+
if (f !== 0 && v.length >= f)
|
|
7179
|
+
return fe.Error("Слишком много");
|
|
7180
|
+
y([...v, ""]);
|
|
7181
|
+
}, I = (L) => {
|
|
7182
|
+
v.splice(L, 1), v.length === 0 && v.push(""), y([...v]), h !== void 0 && h({ value: v.join(p), name: a });
|
|
7196
7183
|
}, N = !!(o && (e === "" || e === void 0)), R = (L) => {
|
|
7197
7184
|
};
|
|
7198
7185
|
if (!(d && l) && !c || !(d && l) && N) return "";
|
|
7199
|
-
const
|
|
7200
|
-
|
|
7201
|
-
const C = (L,
|
|
7202
|
-
|
|
7186
|
+
const D = {};
|
|
7187
|
+
D.field = "group", x && (D.className = x);
|
|
7188
|
+
const C = (L, E) => {
|
|
7189
|
+
z.Blur(L), v[E] = L.target.textContent, h && h({ value: v.join(p), name: a });
|
|
7203
7190
|
};
|
|
7204
|
-
let k = (L,
|
|
7205
|
-
|
|
7191
|
+
let k = (L, E) => {
|
|
7192
|
+
v[E] = L.target.textContent, t && t({ value: v.join(p), name: a });
|
|
7206
7193
|
}, F = (L) => {
|
|
7207
7194
|
L.key === "Enter" && L.preventDefault();
|
|
7208
7195
|
};
|
|
7209
|
-
const
|
|
7196
|
+
const S = ({ data: L }) => f !== 0 && L.length >= f ? "" : /* @__PURE__ */ n.jsx("i", { onClick: j, children: /* @__PURE__ */ n.jsxs(
|
|
7210
7197
|
"svg",
|
|
7211
7198
|
{
|
|
7212
7199
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7222,32 +7209,32 @@ function fa({
|
|
|
7222
7209
|
]
|
|
7223
7210
|
}
|
|
7224
7211
|
) });
|
|
7225
|
-
return /* @__PURE__ */ n.jsxs("dl", { ...
|
|
7212
|
+
return /* @__PURE__ */ n.jsxs("dl", { ...D, children: [
|
|
7226
7213
|
/* @__PURE__ */ n.jsxs("dt", { children: [
|
|
7227
7214
|
s,
|
|
7228
|
-
/* @__PURE__ */ n.jsx(
|
|
7215
|
+
/* @__PURE__ */ n.jsx(S, { data: v })
|
|
7229
7216
|
] }),
|
|
7230
|
-
/* @__PURE__ */ n.jsx("dd", { children:
|
|
7217
|
+
/* @__PURE__ */ n.jsx("dd", { children: v.map((L, E) => /* @__PURE__ */ n.jsxs("li", { className: "field_group_item", children: [
|
|
7231
7218
|
/* @__PURE__ */ n.jsx(
|
|
7232
7219
|
"span",
|
|
7233
7220
|
{
|
|
7234
|
-
onInput: (w) => k(w,
|
|
7221
|
+
onInput: (w) => k(w, E),
|
|
7235
7222
|
edit: "true",
|
|
7236
7223
|
name: a,
|
|
7237
7224
|
placeholder: r,
|
|
7238
7225
|
onPaste: R,
|
|
7239
|
-
contentEditable: d && l ?
|
|
7226
|
+
contentEditable: d && l ? z.ContentEditable : "false",
|
|
7240
7227
|
onKeyDown: F,
|
|
7241
|
-
onBlur: (w) => C(w,
|
|
7228
|
+
onBlur: (w) => C(w, E),
|
|
7242
7229
|
suppressContentEditableWarning: !0,
|
|
7243
|
-
children:
|
|
7230
|
+
children: v[E]
|
|
7244
7231
|
}
|
|
7245
7232
|
),
|
|
7246
7233
|
/* @__PURE__ */ n.jsx(
|
|
7247
7234
|
"i",
|
|
7248
7235
|
{
|
|
7249
7236
|
onClick: () => {
|
|
7250
|
-
|
|
7237
|
+
I(E);
|
|
7251
7238
|
},
|
|
7252
7239
|
children: /* @__PURE__ */ n.jsxs(
|
|
7253
7240
|
"svg",
|
|
@@ -7267,7 +7254,7 @@ function fa({
|
|
|
7267
7254
|
)
|
|
7268
7255
|
}
|
|
7269
7256
|
)
|
|
7270
|
-
] },
|
|
7257
|
+
] }, E)) }),
|
|
7271
7258
|
i && /* @__PURE__ */ n.jsx("em", { children: i })
|
|
7272
7259
|
] });
|
|
7273
7260
|
}
|
|
@@ -7284,16 +7271,16 @@ function ma({
|
|
|
7284
7271
|
show: l = !0,
|
|
7285
7272
|
active: _ = !0,
|
|
7286
7273
|
outFormat: c = "",
|
|
7287
|
-
after:
|
|
7288
|
-
view:
|
|
7289
|
-
modal:
|
|
7290
|
-
module:
|
|
7291
|
-
options:
|
|
7292
|
-
className:
|
|
7274
|
+
after: m = "",
|
|
7275
|
+
view: f,
|
|
7276
|
+
modal: h,
|
|
7277
|
+
module: x,
|
|
7278
|
+
options: p,
|
|
7279
|
+
className: v
|
|
7293
7280
|
}) {
|
|
7294
|
-
const [y, j] =
|
|
7295
|
-
if (!(d && _) || !
|
|
7296
|
-
let C =
|
|
7281
|
+
const [y, j] = g.useState(Xl(e)), I = (D) => {
|
|
7282
|
+
if (!(d && _) || !h) return;
|
|
7283
|
+
let C = h.split(".");
|
|
7297
7284
|
Ne.Open(C[0], C[1], {
|
|
7298
7285
|
callback: (k) => {
|
|
7299
7286
|
if (t)
|
|
@@ -7313,17 +7300,17 @@ function ma({
|
|
|
7313
7300
|
j(k);
|
|
7314
7301
|
},
|
|
7315
7302
|
onValue: t,
|
|
7316
|
-
options:
|
|
7303
|
+
options: p,
|
|
7317
7304
|
name: a,
|
|
7318
7305
|
value: y
|
|
7319
7306
|
});
|
|
7320
7307
|
}, N = {};
|
|
7321
|
-
N.field = "group",
|
|
7308
|
+
N.field = "group", v && (N.className = v);
|
|
7322
7309
|
const R = {};
|
|
7323
7310
|
return r && (R.placeholder = r), o ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...N, children: [
|
|
7324
7311
|
/* @__PURE__ */ n.jsxs("dt", { children: [
|
|
7325
7312
|
s,
|
|
7326
|
-
/* @__PURE__ */ n.jsx("i", { onClick:
|
|
7313
|
+
/* @__PURE__ */ n.jsx("i", { onClick: I, children: /* @__PURE__ */ n.jsx(
|
|
7327
7314
|
"svg",
|
|
7328
7315
|
{
|
|
7329
7316
|
width: "20",
|
|
@@ -7342,12 +7329,12 @@ function ma({
|
|
|
7342
7329
|
"dd",
|
|
7343
7330
|
{
|
|
7344
7331
|
...R,
|
|
7345
|
-
onClick:
|
|
7332
|
+
onClick: I,
|
|
7346
7333
|
edit: (d && _) + "",
|
|
7347
|
-
"data-after":
|
|
7348
|
-
children: Object.keys(y).map((
|
|
7334
|
+
"data-after": m,
|
|
7335
|
+
children: Object.keys(y).map((D) => {
|
|
7349
7336
|
var C;
|
|
7350
|
-
return /* @__PURE__ */ n.jsx("div", { className: "field_group_item", children: (C =
|
|
7337
|
+
return /* @__PURE__ */ n.jsx("div", { className: "field_group_item", children: (C = p[D]) == null ? void 0 : C.label }, D);
|
|
7351
7338
|
})
|
|
7352
7339
|
}
|
|
7353
7340
|
),
|
|
@@ -7366,23 +7353,23 @@ function Nn({
|
|
|
7366
7353
|
edit: l = !0,
|
|
7367
7354
|
active: _ = !0,
|
|
7368
7355
|
after: c = "",
|
|
7369
|
-
show:
|
|
7370
|
-
type:
|
|
7371
|
-
view:
|
|
7372
|
-
onSave:
|
|
7373
|
-
className:
|
|
7356
|
+
show: m = !0,
|
|
7357
|
+
type: f,
|
|
7358
|
+
view: h,
|
|
7359
|
+
onSave: x,
|
|
7360
|
+
className: p = ""
|
|
7374
7361
|
}) {
|
|
7375
|
-
const
|
|
7376
|
-
let y = !!(d && (e === "" || e === void 0)), [j,
|
|
7377
|
-
if (!(l && _) && !
|
|
7378
|
-
const N = async (
|
|
7379
|
-
if (
|
|
7380
|
-
let C = Ql(
|
|
7381
|
-
t == null || t({ name: a, value: C }),
|
|
7362
|
+
const v = g.useId();
|
|
7363
|
+
let y = !!(d && (e === "" || e === void 0)), [j, I] = g.useState(i);
|
|
7364
|
+
if (!(l && _) && !m || !(l && _) && y) return "";
|
|
7365
|
+
const N = async (D) => {
|
|
7366
|
+
if (f) {
|
|
7367
|
+
let C = Ql(D, f, e || "default");
|
|
7368
|
+
t == null || t({ name: a, value: C }), I(URL.createObjectURL(C));
|
|
7382
7369
|
} else
|
|
7383
|
-
t == null || t({ name: a, value:
|
|
7370
|
+
t == null || t({ name: a, value: D }), I(URL.createObjectURL(D));
|
|
7384
7371
|
}, R = {};
|
|
7385
|
-
return R.field = "file",
|
|
7372
|
+
return R.field = "file", p && (R.className = p), /* @__PURE__ */ n.jsxs("dl", { ...R, children: [
|
|
7386
7373
|
s && /* @__PURE__ */ n.jsxs("dt", { children: [
|
|
7387
7374
|
s,
|
|
7388
7375
|
" "
|
|
@@ -7391,23 +7378,23 @@ function Nn({
|
|
|
7391
7378
|
/* @__PURE__ */ n.jsx(
|
|
7392
7379
|
"input",
|
|
7393
7380
|
{
|
|
7394
|
-
id:
|
|
7381
|
+
id: v,
|
|
7395
7382
|
type: "file",
|
|
7396
7383
|
multiple: !0,
|
|
7397
|
-
onChange: (
|
|
7398
|
-
|
|
7384
|
+
onChange: (D) => {
|
|
7385
|
+
D.target.files[0] && N(D.target.files[0]);
|
|
7399
7386
|
}
|
|
7400
7387
|
}
|
|
7401
7388
|
),
|
|
7402
|
-
/* @__PURE__ */ n.jsx("label", { htmlFor:
|
|
7389
|
+
/* @__PURE__ */ n.jsx("label", { htmlFor: v }),
|
|
7403
7390
|
/* @__PURE__ */ n.jsx("img", { src: j })
|
|
7404
7391
|
] }),
|
|
7405
7392
|
o && /* @__PURE__ */ n.jsx("em", { children: o })
|
|
7406
7393
|
] });
|
|
7407
7394
|
}
|
|
7408
7395
|
const Vl = ({ children: e, onFiles: t }) => {
|
|
7409
|
-
const a =
|
|
7410
|
-
return
|
|
7396
|
+
const a = g.useRef(null);
|
|
7397
|
+
return g.useEffect(() => {
|
|
7411
7398
|
if (a.preventDefaults) return;
|
|
7412
7399
|
a.preventDefaults = (s) => {
|
|
7413
7400
|
s.preventDefault(), s.stopPropagation();
|
|
@@ -7455,34 +7442,34 @@ function ha({ name: e, value: t, title: a, style: r, className: s }) {
|
|
|
7455
7442
|
/* @__PURE__ */ n.jsx("dd", {})
|
|
7456
7443
|
] });
|
|
7457
7444
|
}
|
|
7458
|
-
const
|
|
7445
|
+
const _e = {};
|
|
7459
7446
|
function tc(e) {
|
|
7460
|
-
const [t, a] =
|
|
7461
|
-
return
|
|
7447
|
+
const [t, a] = g.useState({}), r = g.useRef(e);
|
|
7448
|
+
return _e.u = (s) => {
|
|
7462
7449
|
r.current = { ...r.current, [s.name]: s.value };
|
|
7463
|
-
},
|
|
7450
|
+
}, _e.n = (s) => {
|
|
7464
7451
|
r.current = s, a(Date.now());
|
|
7465
|
-
},
|
|
7452
|
+
}, _e.r = () => {
|
|
7466
7453
|
a(Date.now());
|
|
7467
|
-
}, [r.current,
|
|
7454
|
+
}, [r.current, _e.n];
|
|
7468
7455
|
}
|
|
7469
7456
|
function nc(e) {
|
|
7470
|
-
|
|
7457
|
+
_e.u(e), e.reload && _e.r();
|
|
7471
7458
|
}
|
|
7472
7459
|
function ac() {
|
|
7473
|
-
|
|
7460
|
+
_e.r && _e.r();
|
|
7474
7461
|
}
|
|
7475
7462
|
function rc(e) {
|
|
7476
|
-
const [t, a] =
|
|
7477
|
-
return
|
|
7463
|
+
const [t, a] = g.useState({}), r = g.useRef(e);
|
|
7464
|
+
return _e.u = (s) => {
|
|
7478
7465
|
r.current = { ...r.current, [s.name]: s.value };
|
|
7479
|
-
},
|
|
7466
|
+
}, _e.n = (s) => {
|
|
7480
7467
|
Object.keys(s).length > 0 ? Object.keys(s).forEach((i) => {
|
|
7481
7468
|
r.current[i] = s[i];
|
|
7482
7469
|
}) : r.current = {}, a(Date.now());
|
|
7483
|
-
},
|
|
7470
|
+
}, _e.r = () => {
|
|
7484
7471
|
a(Date.now());
|
|
7485
|
-
}, [r.current,
|
|
7472
|
+
}, [r.current, _e.n];
|
|
7486
7473
|
}
|
|
7487
7474
|
const pd = {
|
|
7488
7475
|
Color: ra,
|
|
@@ -7534,13 +7521,13 @@ function sc({
|
|
|
7534
7521
|
hide: l = !1,
|
|
7535
7522
|
edit: _ = !0,
|
|
7536
7523
|
active: c = !0,
|
|
7537
|
-
after:
|
|
7538
|
-
show:
|
|
7539
|
-
view:
|
|
7540
|
-
className:
|
|
7524
|
+
after: m = "",
|
|
7525
|
+
show: f = !0,
|
|
7526
|
+
view: h,
|
|
7527
|
+
className: x = ""
|
|
7541
7528
|
}) {
|
|
7542
|
-
_ = _ !== void 0 ? _ : !0, c = c !== void 0 ? c : !0, l = !!(l && (e === "" || e === void 0)) && !(_ && c),
|
|
7543
|
-
let
|
|
7529
|
+
_ = _ !== void 0 ? _ : !0, c = c !== void 0 ? c : !0, l = !!(l && (e === "" || e === void 0)) && !(_ && c), g.useRef(null);
|
|
7530
|
+
let v = s, y = !0, j = 0, I = (w, M) => {
|
|
7544
7531
|
let W = document.createRange(), Q = window.getSelection();
|
|
7545
7532
|
W.setStart(M.childNodes[0], w), W.collapse(!0), Q.removeAllRanges(), Q.addRange(W), M.focus();
|
|
7546
7533
|
}, N = (w) => {
|
|
@@ -7551,47 +7538,47 @@ function sc({
|
|
|
7551
7538
|
}, R = (w) => {
|
|
7552
7539
|
let M = 0, W = "", Q = w.replace(/\D/g, "");
|
|
7553
7540
|
Q === "" && (y = !0);
|
|
7554
|
-
let
|
|
7555
|
-
|
|
7556
|
-
y && (
|
|
7541
|
+
let oe = Q.split(""), je = "";
|
|
7542
|
+
oe.forEach((qe) => {
|
|
7543
|
+
y && (je += qe, y && (j = ("" + je).length, v = s.replace(new RegExp("[0-9]", "g"), "_"), W = ""), j > ("" + je).length && (y = !0, v = s.replace(new RegExp("[0-9]", "g"), "_"), W = ""));
|
|
7557
7544
|
});
|
|
7558
|
-
let Re =
|
|
7559
|
-
return Re.length >= Q.length && (Q = Re), { q:
|
|
7545
|
+
let Re = v.replace(/\D/g, "");
|
|
7546
|
+
return Re.length >= Q.length && (Q = Re), { q: v.replace(/[_\d]/g, function() {
|
|
7560
7547
|
return Q.charAt(M++) || "_";
|
|
7561
7548
|
}), i: M, v: Q, f: W };
|
|
7562
|
-
},
|
|
7549
|
+
}, D = (w) => {
|
|
7563
7550
|
w.preventDefault(), navigator.clipboard.writeText(w.target.textContent.replace(/\D/g, "")).then(
|
|
7564
7551
|
function() {
|
|
7565
|
-
|
|
7552
|
+
fe.Copy("Данные в буфер обмене");
|
|
7566
7553
|
},
|
|
7567
7554
|
function(M) {
|
|
7568
7555
|
}
|
|
7569
7556
|
);
|
|
7570
7557
|
}, C = R(e), k = (w) => {
|
|
7571
7558
|
let M = R(w.target.textContent);
|
|
7572
|
-
w.target.textContent = M.q, M.i = M.q.lastIndexOf(M.v.substr(-1)), M.i < M.q.length && M.q !==
|
|
7559
|
+
w.target.textContent = M.q, M.i = M.q.lastIndexOf(M.v.substr(-1)), M.i < M.q.length && M.q !== v ? M.i++ : M.i = M.q.indexOf("_"), I(M.i, w.target), t && t({ value: M.q.replace(/\D/g, ""), name: r });
|
|
7573
7560
|
}, F = (w) => {
|
|
7574
7561
|
w.key === "Enter" && w.preventDefault();
|
|
7575
7562
|
};
|
|
7576
|
-
const
|
|
7577
|
-
|
|
7563
|
+
const S = (w) => {
|
|
7564
|
+
z.Blur(w), a && a({
|
|
7578
7565
|
value: w.target.textContent.replace(/\D/g, ""),
|
|
7579
7566
|
name: r
|
|
7580
7567
|
});
|
|
7581
7568
|
}, L = {};
|
|
7582
|
-
L.field = "input",
|
|
7583
|
-
let
|
|
7584
|
-
return _ && c ? (
|
|
7569
|
+
L.field = "input", x && (L.className = x);
|
|
7570
|
+
let E = {};
|
|
7571
|
+
return _ && c ? (E.edit = "true", E.contentEditable = z.ContentEditable) : E.contentEditable = "false", i && (E.placeholder = i), m && (E.after = m), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...L, children: [
|
|
7585
7572
|
o && /* @__PURE__ */ n.jsx("dt", { children: o }),
|
|
7586
7573
|
/* @__PURE__ */ n.jsx(
|
|
7587
7574
|
"dd",
|
|
7588
7575
|
{
|
|
7589
|
-
...
|
|
7576
|
+
...E,
|
|
7590
7577
|
onPaste: N,
|
|
7591
7578
|
onInput: k,
|
|
7592
7579
|
onKeyDown: F,
|
|
7593
|
-
onContextMenu:
|
|
7594
|
-
onBlur:
|
|
7580
|
+
onContextMenu: D,
|
|
7581
|
+
onBlur: S,
|
|
7595
7582
|
suppressContentEditableWarning: !0,
|
|
7596
7583
|
children: C.q
|
|
7597
7584
|
}
|
|
@@ -7666,19 +7653,19 @@ const xd = { Spinner: cc, Inline: dc }, _c = "_ph_1wjxu_1", uc = "_e_1wjxu_5", R
|
|
|
7666
7653
|
loading: _
|
|
7667
7654
|
}) => {
|
|
7668
7655
|
const [c] = ee.useTabs(
|
|
7669
|
-
o.map((
|
|
7670
|
-
), [
|
|
7671
|
-
return
|
|
7672
|
-
|
|
7656
|
+
o.map((h) => h.id).includes(ee.getTabs()) ? ee.getTabs() : i
|
|
7657
|
+
), [m, f] = g.useState(!1);
|
|
7658
|
+
return g.useEffect(() => {
|
|
7659
|
+
f(!0);
|
|
7673
7660
|
}, []), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
7674
7661
|
/* @__PURE__ */ n.jsxs("div", { className: [Rn.ph, d].join(" "), children: [
|
|
7675
7662
|
/* @__PURE__ */ n.jsx(pc, { title: e, affter: t }),
|
|
7676
7663
|
/* @__PURE__ */ n.jsx("div", { className: Rn.e }),
|
|
7677
7664
|
/* @__PURE__ */ n.jsx(hc, { button: s })
|
|
7678
7665
|
] }),
|
|
7679
|
-
o.length > 0 && /* @__PURE__ */ n.jsx(
|
|
7666
|
+
o.length > 0 && /* @__PURE__ */ n.jsx(Kn, { list: o, active: c }),
|
|
7680
7667
|
r,
|
|
7681
|
-
|
|
7668
|
+
m && /* @__PURE__ */ n.jsx(
|
|
7682
7669
|
mc,
|
|
7683
7670
|
{
|
|
7684
7671
|
onDynamicURL: a,
|
|
@@ -7690,16 +7677,16 @@ const xd = { Spinner: cc, Inline: dc }, _c = "_ph_1wjxu_1", uc = "_e_1wjxu_5", R
|
|
|
7690
7677
|
] });
|
|
7691
7678
|
};
|
|
7692
7679
|
let mc = ({ m: e, t, loading: a, onDynamicURL: r }) => {
|
|
7693
|
-
const s =
|
|
7694
|
-
return r && r((e + "/" + t).toLowerCase()), /* @__PURE__ */ n.jsx(
|
|
7680
|
+
const s = g.lazy(() => st(e + "/pages/" + t + ".tsx"));
|
|
7681
|
+
return r && r((e + "/" + t).toLowerCase()), /* @__PURE__ */ n.jsx(g.Suspense, { fallback: a, children: /* @__PURE__ */ n.jsx(s, {}) });
|
|
7695
7682
|
}, hc = ({ button: e }) => {
|
|
7696
|
-
const [t, a] =
|
|
7683
|
+
const [t, a] = g.useState(e);
|
|
7697
7684
|
return Ft("button", a), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
7698
7685
|
" ",
|
|
7699
7686
|
t
|
|
7700
7687
|
] });
|
|
7701
7688
|
}, pc = ({ title: e, affter: t }) => {
|
|
7702
|
-
const [a, r] =
|
|
7689
|
+
const [a, r] = g.useState(
|
|
7703
7690
|
/* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
7704
7691
|
e,
|
|
7705
7692
|
" ",
|
|
@@ -7713,10 +7700,10 @@ const vd = {
|
|
|
7713
7700
|
}, gc = "_s_t9swc_1", Tn = {
|
|
7714
7701
|
s: gc
|
|
7715
7702
|
};
|
|
7716
|
-
let
|
|
7703
|
+
let zt;
|
|
7717
7704
|
function xc({ className: e, placeholder: t }) {
|
|
7718
7705
|
let a = (o) => {
|
|
7719
|
-
|
|
7706
|
+
zt(o.target.textContent);
|
|
7720
7707
|
}, r = (o) => {
|
|
7721
7708
|
o.key === "Enter" && o.preventDefault();
|
|
7722
7709
|
}, s = (o) => {
|
|
@@ -7747,10 +7734,10 @@ function vc(e, t, a) {
|
|
|
7747
7734
|
}), o;
|
|
7748
7735
|
}
|
|
7749
7736
|
function Cc(e) {
|
|
7750
|
-
|
|
7737
|
+
zt = e;
|
|
7751
7738
|
}
|
|
7752
7739
|
function jc(e) {
|
|
7753
|
-
|
|
7740
|
+
zt = e;
|
|
7754
7741
|
}
|
|
7755
7742
|
const Cd = { Field: xc, Run: vc, Get: Cc, useValue: jc };
|
|
7756
7743
|
function yc() {
|
|
@@ -7833,7 +7820,7 @@ function kc() {
|
|
|
7833
7820
|
const bc = "_f_q3r0i_1", Sc = {
|
|
7834
7821
|
f: bc
|
|
7835
7822
|
};
|
|
7836
|
-
let
|
|
7823
|
+
let ue = {};
|
|
7837
7824
|
function Ec(e, t) {
|
|
7838
7825
|
switch (t.type) {
|
|
7839
7826
|
case "open":
|
|
@@ -7865,7 +7852,7 @@ function Ec(e, t) {
|
|
|
7865
7852
|
r = { ...e.take, ...r }, e.active = !1;
|
|
7866
7853
|
for (let s in r)
|
|
7867
7854
|
r[s] !== "999" && (e.active = !0);
|
|
7868
|
-
return
|
|
7855
|
+
return ue.get(r, e.active), {
|
|
7869
7856
|
...e,
|
|
7870
7857
|
take: r,
|
|
7871
7858
|
active: e.active
|
|
@@ -7873,7 +7860,7 @@ function Ec(e, t) {
|
|
|
7873
7860
|
case "exit":
|
|
7874
7861
|
for (let s in e.take)
|
|
7875
7862
|
e.take[s] = "999";
|
|
7876
|
-
return
|
|
7863
|
+
return ue.get && ue.get([], !1), {
|
|
7877
7864
|
...e,
|
|
7878
7865
|
size: 0,
|
|
7879
7866
|
active: !1,
|
|
@@ -7885,7 +7872,7 @@ function Ec(e, t) {
|
|
|
7885
7872
|
}
|
|
7886
7873
|
}
|
|
7887
7874
|
function Ic() {
|
|
7888
|
-
const [e, t] =
|
|
7875
|
+
const [e, t] = g.useReducer(Ec, {
|
|
7889
7876
|
open: !1,
|
|
7890
7877
|
view: null,
|
|
7891
7878
|
data: {},
|
|
@@ -7893,11 +7880,11 @@ function Ic() {
|
|
|
7893
7880
|
size: 0,
|
|
7894
7881
|
active: !1
|
|
7895
7882
|
});
|
|
7896
|
-
return
|
|
7883
|
+
return ue.set = (a) => {
|
|
7897
7884
|
t({ type: "data", data: a });
|
|
7898
|
-
},
|
|
7885
|
+
}, ue.count = (a) => {
|
|
7899
7886
|
t({ type: "size", size: a });
|
|
7900
|
-
},
|
|
7887
|
+
}, ue.reset = () => {
|
|
7901
7888
|
t({ type: "exit" });
|
|
7902
7889
|
}, /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
7903
7890
|
/* @__PURE__ */ n.jsxs(
|
|
@@ -7951,13 +7938,13 @@ function Ic() {
|
|
|
7951
7938
|
] });
|
|
7952
7939
|
}
|
|
7953
7940
|
function Dc(e) {
|
|
7954
|
-
|
|
7941
|
+
ue.get = e;
|
|
7955
7942
|
}
|
|
7956
7943
|
function Nc(e) {
|
|
7957
|
-
|
|
7944
|
+
ue.set !== void 0 && ue.set(e);
|
|
7958
7945
|
}
|
|
7959
7946
|
function Rc(e) {
|
|
7960
|
-
|
|
7947
|
+
ue.reset !== void 0 && ue.reset(e);
|
|
7961
7948
|
}
|
|
7962
7949
|
function Tc(e, t, a, r) {
|
|
7963
7950
|
let s = [], i = 1, o = 0, d = {}, l = 50;
|
|
@@ -7972,7 +7959,7 @@ function Tc(e, t, a, r) {
|
|
|
7972
7959
|
}), d;
|
|
7973
7960
|
}
|
|
7974
7961
|
function ga(e) {
|
|
7975
|
-
|
|
7962
|
+
ue.count(e);
|
|
7976
7963
|
}
|
|
7977
7964
|
function Lc({ data: e, state: t, dispatch: a }) {
|
|
7978
7965
|
let r = () => {
|
|
@@ -8030,7 +8017,7 @@ function Mc({ data: e, head: t, state: a, dispatch: r, type: s }) {
|
|
|
8030
8017
|
const jd = { Button: Ic, useValue: Dc, Set: Nc, Run: Tc, Count: ga, Reset: Rc }, Bc = "_n_euuvm_1", $c = {
|
|
8031
8018
|
n: Bc
|
|
8032
8019
|
};
|
|
8033
|
-
let
|
|
8020
|
+
let ot = {}, jt = [];
|
|
8034
8021
|
const Fc = (e, t) => {
|
|
8035
8022
|
switch (t.type) {
|
|
8036
8023
|
case "open":
|
|
@@ -8072,7 +8059,7 @@ const Fc = (e, t) => {
|
|
|
8072
8059
|
r = { ...e.take, ...r }, e.active = !1;
|
|
8073
8060
|
for (let s in r)
|
|
8074
8061
|
r[s] !== "999" && (e.active = !0);
|
|
8075
|
-
return
|
|
8062
|
+
return ot.get(r, e.active), {
|
|
8076
8063
|
...e,
|
|
8077
8064
|
take: r,
|
|
8078
8065
|
active: e.active
|
|
@@ -8084,16 +8071,16 @@ const Fc = (e, t) => {
|
|
|
8084
8071
|
}
|
|
8085
8072
|
};
|
|
8086
8073
|
function Pc(e) {
|
|
8087
|
-
|
|
8074
|
+
ot.fn({ action: "add", data: e });
|
|
8088
8075
|
}
|
|
8089
8076
|
function Ac(e) {
|
|
8090
|
-
|
|
8077
|
+
ot.fn({ action: "add", data: e });
|
|
8091
8078
|
}
|
|
8092
8079
|
function Oc(e) {
|
|
8093
|
-
|
|
8080
|
+
ot.fn = e;
|
|
8094
8081
|
}
|
|
8095
8082
|
function Zc() {
|
|
8096
|
-
const [e, t] =
|
|
8083
|
+
const [e, t] = g.useReducer(Fc, {
|
|
8097
8084
|
open: !1,
|
|
8098
8085
|
active: !1,
|
|
8099
8086
|
news: [],
|
|
@@ -8105,7 +8092,7 @@ function Zc() {
|
|
|
8105
8092
|
jt.push(r.data);
|
|
8106
8093
|
break;
|
|
8107
8094
|
}
|
|
8108
|
-
}),
|
|
8095
|
+
}), g.useEffect(() => {
|
|
8109
8096
|
setInterval(() => {
|
|
8110
8097
|
jt.forEach((r, s) => {
|
|
8111
8098
|
t({
|
|
@@ -8175,7 +8162,7 @@ const Gc = ({ data: e, dispatch: t }) => {
|
|
|
8175
8162
|
p: Wc,
|
|
8176
8163
|
l: Uc
|
|
8177
8164
|
};
|
|
8178
|
-
function
|
|
8165
|
+
function zc(e) {
|
|
8179
8166
|
let t = 3, a = e.page, r = e.count, s = [], i = () => {
|
|
8180
8167
|
s.push({ page: 1 }), s.push({ text: "..." });
|
|
8181
8168
|
}, o = () => {
|
|
@@ -8193,7 +8180,7 @@ function Kc(e) {
|
|
|
8193
8180
|
/* @__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" }) }) })
|
|
8194
8181
|
] });
|
|
8195
8182
|
}
|
|
8196
|
-
function
|
|
8183
|
+
function Kc(e, t) {
|
|
8197
8184
|
switch (t.type) {
|
|
8198
8185
|
case "load":
|
|
8199
8186
|
return {
|
|
@@ -8215,7 +8202,7 @@ function zc(e, t) {
|
|
|
8215
8202
|
}
|
|
8216
8203
|
}
|
|
8217
8204
|
function va({ load: e, list: t, item: a }) {
|
|
8218
|
-
const r =
|
|
8205
|
+
const r = g.useRef(null), [s, i] = g.useReducer(Kc, {
|
|
8219
8206
|
load: !1,
|
|
8220
8207
|
list: [],
|
|
8221
8208
|
data: {},
|
|
@@ -8223,7 +8210,7 @@ function va({ load: e, list: t, item: a }) {
|
|
|
8223
8210
|
wait: !1,
|
|
8224
8211
|
item: a
|
|
8225
8212
|
});
|
|
8226
|
-
|
|
8213
|
+
g.useEffect(() => {
|
|
8227
8214
|
t !== null && i({ type: "load", load: e, data: t });
|
|
8228
8215
|
}, [e]);
|
|
8229
8216
|
let o = (d) => {
|
|
@@ -8231,7 +8218,7 @@ function va({ load: e, list: t, item: a }) {
|
|
|
8231
8218
|
if (d > s.size) return d = s.size;
|
|
8232
8219
|
i({ type: "page", page: d });
|
|
8233
8220
|
};
|
|
8234
|
-
return
|
|
8221
|
+
return g.useEffect(() => {
|
|
8235
8222
|
}, [s]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
8236
8223
|
/* @__PURE__ */ n.jsx("div", { className: xa.l, ref: r, children: /* @__PURE__ */ n.jsx(Xn, { "el-empty": "Данные не найдены", children: s.load && s.list !== void 0 ? s.list.map((d) => /* @__PURE__ */ n.jsx(s.item, { data: d }, d.id)) : /* @__PURE__ */ n.jsxs("div", { "type-data": "load", children: [
|
|
8237
8224
|
/* @__PURE__ */ n.jsx("i", {}),
|
|
@@ -8239,7 +8226,7 @@ function va({ load: e, list: t, item: a }) {
|
|
|
8239
8226
|
/* @__PURE__ */ n.jsx("i", {})
|
|
8240
8227
|
] }) }) }),
|
|
8241
8228
|
s.load && s.list !== void 0 ? /* @__PURE__ */ n.jsx(
|
|
8242
|
-
|
|
8229
|
+
zc,
|
|
8243
8230
|
{
|
|
8244
8231
|
page: s.page,
|
|
8245
8232
|
count: s.size,
|
|
@@ -8325,8 +8312,8 @@ const Sd = { Get: Xc }, Ed = function({
|
|
|
8325
8312
|
tabs: i,
|
|
8326
8313
|
modules: o
|
|
8327
8314
|
}) {
|
|
8328
|
-
const [d] = ee.useTabs(s), [l, _] =
|
|
8329
|
-
return
|
|
8315
|
+
const [d] = ee.useTabs(s), [l, _] = g.useState(!1);
|
|
8316
|
+
return g.useEffect(() => {
|
|
8330
8317
|
_(!0);
|
|
8331
8318
|
}, []), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
8332
8319
|
/* @__PURE__ */ n.jsxs("div", { className: "list-info", children: [
|
|
@@ -8339,19 +8326,19 @@ const Sd = { Get: Xc }, Ed = function({
|
|
|
8339
8326
|
] });
|
|
8340
8327
|
};
|
|
8341
8328
|
let Vc = ({ modules: e, t }) => {
|
|
8342
|
-
const a =
|
|
8343
|
-
return /* @__PURE__ */ n.jsx(
|
|
8329
|
+
const a = g.lazy(() => st(e + "/pages/" + t + ".tsx"));
|
|
8330
|
+
return /* @__PURE__ */ n.jsx(g.Suspense, { fallback: "", children: /* @__PURE__ */ n.jsx(a, {}) });
|
|
8344
8331
|
}, Qc = ({ button: e }) => {
|
|
8345
|
-
const [t, a] =
|
|
8346
|
-
return
|
|
8332
|
+
const [t, a] = g.useState(e);
|
|
8333
|
+
return ve.useListener("button", a), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
8347
8334
|
" ",
|
|
8348
8335
|
t
|
|
8349
8336
|
] });
|
|
8350
8337
|
};
|
|
8351
8338
|
const Id = { Open: to };
|
|
8352
8339
|
function Dd({ active: e, onActive: t, id: a, name: r }) {
|
|
8353
|
-
const [s, i] =
|
|
8354
|
-
|
|
8340
|
+
const [s, i] = g.useState(!!e);
|
|
8341
|
+
g.useEffect(() => {
|
|
8355
8342
|
i(!!e);
|
|
8356
8343
|
}, [e]);
|
|
8357
8344
|
let o = () => {
|
|
@@ -8375,9 +8362,9 @@ function Dd({ active: e, onActive: t, id: a, name: r }) {
|
|
|
8375
8362
|
}
|
|
8376
8363
|
export {
|
|
8377
8364
|
Uo as Action,
|
|
8378
|
-
|
|
8365
|
+
Ke as Alert,
|
|
8379
8366
|
nd as Animation,
|
|
8380
|
-
|
|
8367
|
+
ze as Api,
|
|
8381
8368
|
_d as Badge,
|
|
8382
8369
|
od as Bookmarks,
|
|
8383
8370
|
ad as Browser,
|
|
@@ -8387,8 +8374,8 @@ export {
|
|
|
8387
8374
|
En as Component,
|
|
8388
8375
|
A as Crypto,
|
|
8389
8376
|
ud as DataBase,
|
|
8390
|
-
|
|
8391
|
-
|
|
8377
|
+
ve as Event,
|
|
8378
|
+
ve as Events,
|
|
8392
8379
|
hd as Files,
|
|
8393
8380
|
jd as Filter,
|
|
8394
8381
|
pd as Form,
|
|
@@ -8403,7 +8390,7 @@ export {
|
|
|
8403
8390
|
cd as Lite,
|
|
8404
8391
|
xd as Loading,
|
|
8405
8392
|
Ne as Modal,
|
|
8406
|
-
|
|
8393
|
+
fe as Notice,
|
|
8407
8394
|
yd as Notifications,
|
|
8408
8395
|
wd as Pagination,
|
|
8409
8396
|
Id as Phone,
|