@elcrm/telegram 0.0.48 → 0.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Form/Date.d.ts +1 -1
- package/dist/Form/Phone.d.ts +1 -1
- package/dist/index.es.js +803 -802
- package/dist/index.umd.js +11 -11
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -5,7 +5,7 @@ import _ from "react";
|
|
|
5
5
|
let ct = {};
|
|
6
6
|
const fr = (e) => {
|
|
7
7
|
ct = e;
|
|
8
|
-
}, hr = (e) => ct.enCode(e), mr = (e) => ct.deCode(e), N = { enCode: hr, deCode: mr, New: fr },
|
|
8
|
+
}, hr = (e) => ct.enCode(e), mr = (e) => ct.deCode(e), N = { enCode: hr, deCode: mr, New: fr }, C = {}, W = {}, Ce = {}, tn = {}, te = {};
|
|
9
9
|
let ut = "M06";
|
|
10
10
|
function gr(e) {
|
|
11
11
|
ut = e;
|
|
@@ -16,29 +16,29 @@ function xr() {
|
|
|
16
16
|
function pr(e) {
|
|
17
17
|
if (localStorage.getItem("d")) {
|
|
18
18
|
let r = sessionStorage.getItem("f");
|
|
19
|
-
r ? (r = N.deCode(r), r ||
|
|
19
|
+
r ? (r = N.deCode(r), r || H(), C.id = r.id, C.tab = r.tab, C.page = r.page, C.module = r.module, C.time = r.time, C.payment = { active: !0 }, C.module_admin = r.module_admin) : (C.id = 0, C.tab = "", C.page = "Main", C.module = C.module || ut);
|
|
20
20
|
} else
|
|
21
21
|
["a", "b", "c", "d", "e", "m", "u", "s", "q", "p"].forEach(
|
|
22
22
|
(r) => localStorage.removeItem(r)
|
|
23
|
-
), ["f"].forEach((r) => sessionStorage.removeItem(r)),
|
|
23
|
+
), ["f"].forEach((r) => sessionStorage.removeItem(r)), C.id = 0, C.tab = "", C.page = "Auth", C.module = "M00";
|
|
24
24
|
return e;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function H() {
|
|
27
27
|
["a", "b", "c", "d", "e", "m", "u", "s", "q", "p"].forEach(
|
|
28
28
|
(e) => localStorage.removeItem(e)
|
|
29
29
|
), ["f"].forEach((e) => sessionStorage.removeItem(e)), window.location.reload();
|
|
30
30
|
}
|
|
31
31
|
function vr(e) {
|
|
32
|
-
e = e.split("/"),
|
|
32
|
+
e = e.split("/"), C.page = "Main", C.module = e[0], C.tab = e[1], C.id = 0, sessionStorage.setItem(
|
|
33
33
|
"f",
|
|
34
34
|
N.enCode({
|
|
35
|
-
module:
|
|
36
|
-
page:
|
|
37
|
-
tab:
|
|
38
|
-
id:
|
|
35
|
+
module: C.module,
|
|
36
|
+
page: C.page,
|
|
37
|
+
tab: C.tab,
|
|
38
|
+
id: C.id,
|
|
39
39
|
time: (/* @__PURE__ */ new Date()).getTime()
|
|
40
40
|
})
|
|
41
|
-
),
|
|
41
|
+
), W.page(C.page);
|
|
42
42
|
}
|
|
43
43
|
function jr(e) {
|
|
44
44
|
return localStorage.setItem("d", e);
|
|
@@ -61,91 +61,91 @@ function et() {
|
|
|
61
61
|
let e = localStorage.getItem("p");
|
|
62
62
|
if (e !== "" && e !== "undefined" && e !== null) {
|
|
63
63
|
let t = N.deCode(e);
|
|
64
|
-
return t ||
|
|
64
|
+
return t || H(), t;
|
|
65
65
|
} else
|
|
66
|
-
return
|
|
66
|
+
return H(), !1;
|
|
67
67
|
}
|
|
68
68
|
function wr(e) {
|
|
69
69
|
if (typeof e != "function") {
|
|
70
70
|
const [t, r] = _.useState(e || nn()), s = (a) => {
|
|
71
71
|
r(a);
|
|
72
72
|
};
|
|
73
|
-
return
|
|
73
|
+
return W.page = s, [t];
|
|
74
74
|
} else
|
|
75
|
-
|
|
75
|
+
W.page = e;
|
|
76
76
|
}
|
|
77
77
|
function kr(e, t = !0) {
|
|
78
|
-
|
|
78
|
+
C.page = e, sessionStorage.setItem("f", N.enCode(C)), t && W.page(e);
|
|
79
79
|
}
|
|
80
80
|
function nn() {
|
|
81
|
-
return
|
|
81
|
+
return C.page;
|
|
82
82
|
}
|
|
83
83
|
function Sr(e) {
|
|
84
|
-
return
|
|
84
|
+
return C.page === e;
|
|
85
85
|
}
|
|
86
86
|
function Er(e) {
|
|
87
87
|
if (typeof e != "function") {
|
|
88
88
|
const [t, r] = _.useState(e || rn()), s = (a) => {
|
|
89
89
|
r(a);
|
|
90
90
|
};
|
|
91
|
-
return
|
|
91
|
+
return W.module = s, [t];
|
|
92
92
|
} else
|
|
93
|
-
|
|
93
|
+
W.module = e;
|
|
94
94
|
}
|
|
95
95
|
function Rr(e, t = !0) {
|
|
96
|
-
|
|
96
|
+
C.module = e, sessionStorage.setItem("f", N.enCode(C)), t && W.module(e);
|
|
97
97
|
}
|
|
98
98
|
function rn() {
|
|
99
|
-
return
|
|
99
|
+
return C.module;
|
|
100
100
|
}
|
|
101
101
|
function Br(e) {
|
|
102
|
-
return
|
|
102
|
+
return C.module === e;
|
|
103
103
|
}
|
|
104
104
|
function Tr(e) {
|
|
105
105
|
if (typeof e != "function") {
|
|
106
106
|
const [t, r] = _.useState(e || Ae()), [s, a] = _.useState(!1);
|
|
107
107
|
return _.useEffect(() => {
|
|
108
108
|
a(!0);
|
|
109
|
-
}, []),
|
|
109
|
+
}, []), W.tabs = r, [t, s];
|
|
110
110
|
} else
|
|
111
|
-
|
|
111
|
+
W.tabs = e;
|
|
112
112
|
}
|
|
113
113
|
function Ir(e, t = !0) {
|
|
114
|
-
if (
|
|
115
|
-
if (
|
|
116
|
-
|
|
114
|
+
if (C.tab = e, sessionStorage.setItem("f", N.enCode(C)), !!t)
|
|
115
|
+
if (W.tabs)
|
|
116
|
+
W.tabs(e);
|
|
117
117
|
else
|
|
118
118
|
throw new Error("useTabs not found");
|
|
119
119
|
}
|
|
120
120
|
function Ae() {
|
|
121
|
-
return
|
|
121
|
+
return C.tab;
|
|
122
122
|
}
|
|
123
123
|
function Nr(e) {
|
|
124
|
-
return
|
|
124
|
+
return C.tab === e;
|
|
125
125
|
}
|
|
126
126
|
function Dr(e) {
|
|
127
127
|
if (typeof e != "function") {
|
|
128
128
|
const [t, r] = _.useState(e || sn()), s = (a) => {
|
|
129
129
|
r(a);
|
|
130
130
|
};
|
|
131
|
-
return
|
|
131
|
+
return W.id = s, [t];
|
|
132
132
|
} else
|
|
133
|
-
|
|
133
|
+
W.id = e;
|
|
134
134
|
}
|
|
135
135
|
function Mr(e) {
|
|
136
|
-
|
|
136
|
+
W.id = e;
|
|
137
137
|
}
|
|
138
138
|
function $r(e, t = !0) {
|
|
139
|
-
|
|
139
|
+
C.id = e, sessionStorage.setItem("f", N.enCode(C)), t && W.id(e);
|
|
140
140
|
}
|
|
141
141
|
function sn() {
|
|
142
|
-
return
|
|
142
|
+
return C.id;
|
|
143
143
|
}
|
|
144
144
|
function Fr(e) {
|
|
145
|
-
return Number(
|
|
145
|
+
return Number(C.id) === e;
|
|
146
146
|
}
|
|
147
147
|
function Pr(e, t, r) {
|
|
148
|
-
|
|
148
|
+
C.module = e, C.id = r, C.tab = t, sessionStorage.setItem("f", N.enCode(C)), W.module(e), W.tabs(t);
|
|
149
149
|
}
|
|
150
150
|
function Or(e) {
|
|
151
151
|
Ce.data = e[0], delete Ce.data.id, document.body.dataset.theme = Ce.data.s15, localStorage.setItem("s", N.enCode(Ce.data));
|
|
@@ -155,7 +155,7 @@ function Lr(e, t) {
|
|
|
155
155
|
}
|
|
156
156
|
function Ar(e) {
|
|
157
157
|
let t = localStorage.getItem("s");
|
|
158
|
-
return t === null ? {} : (t = N.deCode(t), t ? e !== void 0 ? t[e] : t :
|
|
158
|
+
return t === null ? {} : (t = N.deCode(t), t ? e !== void 0 ? t[e] : t : H());
|
|
159
159
|
}
|
|
160
160
|
function an(e) {
|
|
161
161
|
localStorage.setItem("m", N.enCode({ data: e }));
|
|
@@ -164,7 +164,7 @@ function zr() {
|
|
|
164
164
|
let e = localStorage.getItem("m");
|
|
165
165
|
if (e !== "" && e !== "undefined" && e !== null) {
|
|
166
166
|
let t = localStorage.getItem("m"), r = N.deCode(t);
|
|
167
|
-
r ||
|
|
167
|
+
r || H();
|
|
168
168
|
const s = (i, l) => {
|
|
169
169
|
let c = l + "";
|
|
170
170
|
for (; c.length < i; )
|
|
@@ -173,10 +173,10 @@ function zr() {
|
|
|
173
173
|
};
|
|
174
174
|
return r.data.split(",").map((i) => "M" + s(2, i));
|
|
175
175
|
} else
|
|
176
|
-
return
|
|
176
|
+
return H(), !1;
|
|
177
177
|
}
|
|
178
178
|
function Wr(e) {
|
|
179
|
-
|
|
179
|
+
W.sort = e;
|
|
180
180
|
}
|
|
181
181
|
function on(e) {
|
|
182
182
|
let t = localStorage.getItem("b");
|
|
@@ -194,22 +194,22 @@ function Zr(e, t) {
|
|
|
194
194
|
let r = localStorage.getItem("c");
|
|
195
195
|
if (r !== "" && r !== "undefined" && r !== null) {
|
|
196
196
|
let a = N.deCode(r);
|
|
197
|
-
return a ||
|
|
197
|
+
return a || H(), e === void 0 ? a : t ? (s = a[e][t]) == null ? void 0 : s.n : a[e];
|
|
198
198
|
} else
|
|
199
|
-
return
|
|
199
|
+
return H(), !1;
|
|
200
200
|
}
|
|
201
201
|
function Ne(e) {
|
|
202
|
-
|
|
202
|
+
te.data = e, localStorage.setItem("q", N.enCode(te.data));
|
|
203
203
|
}
|
|
204
204
|
function Ur(e, t) {
|
|
205
|
-
|
|
205
|
+
te.data = { ...te.data, [e]: t }, localStorage.setItem("q", N.enCode(te.data));
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
if (!
|
|
207
|
+
function pe(e, t) {
|
|
208
|
+
if (!te.data) {
|
|
209
209
|
let r = localStorage.getItem("q");
|
|
210
|
-
r && (
|
|
210
|
+
r && (te.data = N.deCode(r));
|
|
211
211
|
}
|
|
212
|
-
return e === void 0 && t === void 0 ?
|
|
212
|
+
return e === void 0 && t === void 0 ? te.data : e !== void 0 && t === void 0 ? te.data[e] : te.data[e][t];
|
|
213
213
|
}
|
|
214
214
|
function Yr(e) {
|
|
215
215
|
tn.data = e;
|
|
@@ -218,23 +218,23 @@ function Kr(e) {
|
|
|
218
218
|
return tn.data[e];
|
|
219
219
|
}
|
|
220
220
|
function Gr(e) {
|
|
221
|
-
|
|
221
|
+
C.payment = e;
|
|
222
222
|
}
|
|
223
223
|
function Hr() {
|
|
224
|
-
return
|
|
224
|
+
return C.payment;
|
|
225
225
|
}
|
|
226
226
|
function cn(e) {
|
|
227
227
|
localStorage.setItem("u", N.enCode(e));
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function Vr() {
|
|
230
230
|
let e = localStorage.getItem("u");
|
|
231
231
|
if (e !== "" && e !== "undefined" && e !== null) {
|
|
232
232
|
let t = N.deCode(e);
|
|
233
|
-
return t ||
|
|
233
|
+
return t || H(), t;
|
|
234
234
|
} else
|
|
235
|
-
return
|
|
235
|
+
return H(), !1;
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function qr(e) {
|
|
238
238
|
const t = (r) => {
|
|
239
239
|
let s = localStorage.getItem(r);
|
|
240
240
|
if (s !== "" && s !== "undefined" && s !== null)
|
|
@@ -242,32 +242,32 @@ function Vr(e) {
|
|
|
242
242
|
let a = N.deCode(s);
|
|
243
243
|
if (!a)
|
|
244
244
|
return;
|
|
245
|
-
|
|
245
|
+
C[r] = { is: !0, time: a.time, data: a.data };
|
|
246
246
|
} catch {
|
|
247
|
-
|
|
247
|
+
C[r] = { is: !1, time: 0, data: {} };
|
|
248
248
|
}
|
|
249
249
|
else
|
|
250
|
-
|
|
250
|
+
C[r] = { is: !1, time: 0, data: {} };
|
|
251
251
|
};
|
|
252
252
|
e.forEach((r) => t(r));
|
|
253
253
|
}
|
|
254
254
|
function Xr(e) {
|
|
255
|
-
return
|
|
255
|
+
return C[e] === void 0 ? (C[e] = { data: {}, time: 0 }, { data: {}, time: 0 }) : C[e];
|
|
256
256
|
}
|
|
257
257
|
function Jr(e, t) {
|
|
258
|
-
|
|
258
|
+
C[e] = { data: t.data, time: t.time }, localStorage.setItem(e, N.enCode(C[e]));
|
|
259
259
|
}
|
|
260
260
|
function Qr(e, t, r) {
|
|
261
|
-
|
|
261
|
+
C[e].time = r, C[e].data[t.item][t.name] = t.value, localStorage.setItem(e, N.enCode(C[e]));
|
|
262
262
|
}
|
|
263
|
-
const
|
|
263
|
+
const ae = {
|
|
264
264
|
setSSID: jr,
|
|
265
265
|
getSSID: br,
|
|
266
266
|
getPORT: et,
|
|
267
267
|
setPORT: Cr,
|
|
268
268
|
setAUTH: yr,
|
|
269
269
|
getAUTH: _r,
|
|
270
|
-
Logaut:
|
|
270
|
+
Logaut: H,
|
|
271
271
|
Start: vr,
|
|
272
272
|
setMenu: an,
|
|
273
273
|
getMenu: zr,
|
|
@@ -278,18 +278,18 @@ const ie = {
|
|
|
278
278
|
getCompany: Zr,
|
|
279
279
|
setSelect: Ne,
|
|
280
280
|
addSelect: Ur,
|
|
281
|
-
getSelect:
|
|
281
|
+
getSelect: pe,
|
|
282
282
|
setApi: Yr,
|
|
283
283
|
getApi: Kr,
|
|
284
284
|
setPayment: Gr,
|
|
285
285
|
getPayment: Hr,
|
|
286
286
|
setUser: cn,
|
|
287
|
-
getUser:
|
|
287
|
+
getUser: Vr,
|
|
288
288
|
getDefaultModules: xr,
|
|
289
289
|
getBase: Xr,
|
|
290
290
|
setBase: Jr,
|
|
291
291
|
editBase: Qr,
|
|
292
|
-
loadBase:
|
|
292
|
+
loadBase: qr
|
|
293
293
|
}, un = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyB0PT57dHJ5e2xldCBhPWF3YWl0IGZldGNoKGAke3QuZGF0YS5ob3N0fSR7dC5kYXRhLmxpbmt9YCx7bWV0aG9kOiJQT1NUIixoZWFkZXJzOntzc2lkOnQuZGF0YS5zc2lkLCJDb250ZW50LXR5cGUiOiJhcHBsaWNhdGlvbi9qc29uO2NoYXJzZXQ9dXRmLTgifSxib2R5OkpTT04uc3RyaW5naWZ5KHQuZGF0YS5kYXRhKX0pO3Bvc3RNZXNzYWdlKGF3YWl0IGEuanNvbigpKX1jYXRjaChhKXtwb3N0TWVzc2FnZSh7c3RhdHVzOiJlcnJvciIsZGF0YToid29ya2VyIixtZXNzYWdlOmF9KX19fSkoKTsK", es = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), Ut = typeof window < "u" && window.Blob && new Blob([es(un)], { type: "text/javascript;charset=utf-8" });
|
|
294
294
|
function dn(e) {
|
|
295
295
|
let t;
|
|
@@ -313,23 +313,23 @@ function dn(e) {
|
|
|
313
313
|
t && (window.URL || window.webkitURL).revokeObjectURL(t);
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
|
-
const
|
|
316
|
+
const le = {};
|
|
317
317
|
function ts(e) {
|
|
318
|
-
return e && (
|
|
318
|
+
return e && (le.s = e), le.s;
|
|
319
319
|
}
|
|
320
320
|
function ns(e) {
|
|
321
|
-
return e && (
|
|
321
|
+
return e && (le.a = e), le.a;
|
|
322
322
|
}
|
|
323
323
|
function rs(e) {
|
|
324
|
-
return e && (
|
|
324
|
+
return e && (le.c = e), le.c;
|
|
325
325
|
}
|
|
326
326
|
function ss(e) {
|
|
327
|
-
return e && (
|
|
327
|
+
return e && (le.h = e), le.h;
|
|
328
328
|
}
|
|
329
329
|
const dt = { version: { Api: ns, Server: ts, Client: rs }, Host: ss };
|
|
330
330
|
let as = "api", is = "elcrm", os = "online";
|
|
331
331
|
function ls() {
|
|
332
|
-
let e =
|
|
332
|
+
let e = ae.getPORT(), t = "", r = "";
|
|
333
333
|
return e.address === "localhost" ? (t = `http://localhost:${e.socket}/documents`, r = `http://localhost:${e.socket}/files`) : (t = "https://" + e.address + "/documents", r = "https://" + e.address + "/files"), {
|
|
334
334
|
documents: t,
|
|
335
335
|
files: r
|
|
@@ -337,9 +337,9 @@ function ls() {
|
|
|
337
337
|
}
|
|
338
338
|
let fn = `${as}.${is}.${os}`;
|
|
339
339
|
function cs(e) {
|
|
340
|
-
return "https://" +
|
|
340
|
+
return "https://" + ae.getPORT().address + "/audio/" + e;
|
|
341
341
|
}
|
|
342
|
-
function ze(e, t = {}, r =
|
|
342
|
+
function ze(e, t = {}, r = ae.getAUTH()) {
|
|
343
343
|
return new Promise((s) => {
|
|
344
344
|
const a = new dn();
|
|
345
345
|
a.onmessage = (i) => {
|
|
@@ -352,7 +352,7 @@ function ze(e, t = {}, r = ie.getAUTH()) {
|
|
|
352
352
|
});
|
|
353
353
|
});
|
|
354
354
|
}
|
|
355
|
-
function us(e, t = {}, r =
|
|
355
|
+
function us(e, t = {}, r = ae.getAUTH()) {
|
|
356
356
|
return new Promise((s) => {
|
|
357
357
|
const a = new dn();
|
|
358
358
|
a.onmessage = (i) => {
|
|
@@ -376,7 +376,7 @@ function ds(e, t = {}, r) {
|
|
|
376
376
|
}
|
|
377
377
|
let hn = {
|
|
378
378
|
"Content-type": "application/json;charset=utf-8",
|
|
379
|
-
ssid:
|
|
379
|
+
ssid: ae.getAUTH() || ""
|
|
380
380
|
};
|
|
381
381
|
async function fs(e, t, r = {}) {
|
|
382
382
|
try {
|
|
@@ -418,14 +418,14 @@ function ms() {
|
|
|
418
418
|
Yt = 1;
|
|
419
419
|
var e = _, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
420
420
|
function l(c, u, d) {
|
|
421
|
-
var f, h = {}, p = null,
|
|
422
|
-
d !== void 0 && (p = "" + d), u.key !== void 0 && (p = "" + u.key), u.ref !== void 0 && (
|
|
421
|
+
var f, h = {}, p = null, g = null;
|
|
422
|
+
d !== void 0 && (p = "" + d), u.key !== void 0 && (p = "" + u.key), u.ref !== void 0 && (g = u.ref);
|
|
423
423
|
for (f in u)
|
|
424
424
|
s.call(u, f) && !i.hasOwnProperty(f) && (h[f] = u[f]);
|
|
425
425
|
if (c && c.defaultProps)
|
|
426
426
|
for (f in u = c.defaultProps, u)
|
|
427
427
|
h[f] === void 0 && (h[f] = u[f]);
|
|
428
|
-
return { $$typeof: t, type: c, key: p, ref:
|
|
428
|
+
return { $$typeof: t, type: c, key: p, ref: g, props: h, _owner: a.current };
|
|
429
429
|
}
|
|
430
430
|
return Re.Fragment = r, Re.jsx = l, Re.jsxs = l, Re;
|
|
431
431
|
}
|
|
@@ -442,54 +442,54 @@ var Be = {};
|
|
|
442
442
|
var Kt;
|
|
443
443
|
function gs() {
|
|
444
444
|
return Kt || (Kt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
445
|
-
var e = _, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), p = Symbol.for("react.lazy"),
|
|
446
|
-
function
|
|
445
|
+
var e = _, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), v = Symbol.iterator, y = "@@iterator";
|
|
446
|
+
function m(o) {
|
|
447
447
|
if (o === null || typeof o != "object")
|
|
448
448
|
return null;
|
|
449
|
-
var
|
|
450
|
-
return typeof
|
|
449
|
+
var x = v && o[v] || o[y];
|
|
450
|
+
return typeof x == "function" ? x : null;
|
|
451
451
|
}
|
|
452
|
-
var
|
|
453
|
-
function
|
|
452
|
+
var j = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
453
|
+
function w(o) {
|
|
454
454
|
{
|
|
455
|
-
for (var
|
|
456
|
-
|
|
457
|
-
|
|
455
|
+
for (var x = arguments.length, b = new Array(x > 1 ? x - 1 : 0), S = 1; S < x; S++)
|
|
456
|
+
b[S - 1] = arguments[S];
|
|
457
|
+
k("error", o, b);
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
|
-
function
|
|
460
|
+
function k(o, x, b) {
|
|
461
461
|
{
|
|
462
|
-
var S =
|
|
463
|
-
|
|
464
|
-
var F =
|
|
462
|
+
var S = j.ReactDebugCurrentFrame, $ = S.getStackAddendum();
|
|
463
|
+
$ !== "" && (x += "%s", b = b.concat([$]));
|
|
464
|
+
var F = b.map(function(I) {
|
|
465
465
|
return String(I);
|
|
466
466
|
});
|
|
467
|
-
F.unshift("Warning: " +
|
|
467
|
+
F.unshift("Warning: " + x), Function.prototype.apply.call(console[o], console, F);
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
|
-
var
|
|
470
|
+
var B = !1, M = !1, R = !1, P = !1, ee = !1, O;
|
|
471
471
|
O = Symbol.for("react.module.reference");
|
|
472
|
-
function
|
|
473
|
-
return !!(typeof o == "string" || typeof o == "function" || o === s || o === i || ee || o === a || o === d || o === f ||
|
|
472
|
+
function D(o) {
|
|
473
|
+
return !!(typeof o == "string" || typeof o == "function" || o === s || o === i || ee || o === a || o === d || o === f || P || o === g || B || M || R || typeof o == "object" && o !== null && (o.$$typeof === p || o.$$typeof === h || o.$$typeof === l || o.$$typeof === c || o.$$typeof === u || // This needs to include all possible module reference object
|
|
474
474
|
// types supported by any Flight configuration anywhere since
|
|
475
475
|
// we don't know which Flight build this will end up being used
|
|
476
476
|
// with.
|
|
477
477
|
o.$$typeof === O || o.getModuleId !== void 0));
|
|
478
478
|
}
|
|
479
|
-
function
|
|
479
|
+
function V(o, x, b) {
|
|
480
480
|
var S = o.displayName;
|
|
481
481
|
if (S)
|
|
482
482
|
return S;
|
|
483
|
-
var
|
|
484
|
-
return
|
|
483
|
+
var $ = x.displayName || x.name || "";
|
|
484
|
+
return $ !== "" ? b + "(" + $ + ")" : b;
|
|
485
485
|
}
|
|
486
|
-
function
|
|
486
|
+
function be(o) {
|
|
487
487
|
return o.displayName || "Context";
|
|
488
488
|
}
|
|
489
|
-
function
|
|
489
|
+
function U(o) {
|
|
490
490
|
if (o == null)
|
|
491
491
|
return null;
|
|
492
|
-
if (typeof o.tag == "number" &&
|
|
492
|
+
if (typeof o.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
|
|
493
493
|
return o.displayName || o.name || null;
|
|
494
494
|
if (typeof o == "string")
|
|
495
495
|
return o;
|
|
@@ -510,20 +510,20 @@ function gs() {
|
|
|
510
510
|
if (typeof o == "object")
|
|
511
511
|
switch (o.$$typeof) {
|
|
512
512
|
case c:
|
|
513
|
-
var
|
|
514
|
-
return
|
|
513
|
+
var x = o;
|
|
514
|
+
return be(x) + ".Consumer";
|
|
515
515
|
case l:
|
|
516
|
-
var
|
|
517
|
-
return
|
|
516
|
+
var b = o;
|
|
517
|
+
return be(b._context) + ".Provider";
|
|
518
518
|
case u:
|
|
519
|
-
return
|
|
519
|
+
return V(o, o.render, "ForwardRef");
|
|
520
520
|
case h:
|
|
521
521
|
var S = o.displayName || null;
|
|
522
|
-
return S !== null ? S :
|
|
522
|
+
return S !== null ? S : U(o.type) || "Memo";
|
|
523
523
|
case p: {
|
|
524
|
-
var
|
|
524
|
+
var $ = o, F = $._payload, I = $._init;
|
|
525
525
|
try {
|
|
526
|
-
return
|
|
526
|
+
return U(I(F));
|
|
527
527
|
} catch {
|
|
528
528
|
return null;
|
|
529
529
|
}
|
|
@@ -531,7 +531,7 @@ function gs() {
|
|
|
531
531
|
}
|
|
532
532
|
return null;
|
|
533
533
|
}
|
|
534
|
-
var
|
|
534
|
+
var re = Object.assign, ke = 0, _t, Ct, wt, kt, St, Et, Rt;
|
|
535
535
|
function Bt() {
|
|
536
536
|
}
|
|
537
537
|
Bt.__reactDisabledLog = !0;
|
|
@@ -567,40 +567,40 @@ function gs() {
|
|
|
567
567
|
writable: !0
|
|
568
568
|
};
|
|
569
569
|
Object.defineProperties(console, {
|
|
570
|
-
log:
|
|
570
|
+
log: re({}, o, {
|
|
571
571
|
value: _t
|
|
572
572
|
}),
|
|
573
|
-
info:
|
|
573
|
+
info: re({}, o, {
|
|
574
574
|
value: Ct
|
|
575
575
|
}),
|
|
576
|
-
warn:
|
|
576
|
+
warn: re({}, o, {
|
|
577
577
|
value: wt
|
|
578
578
|
}),
|
|
579
|
-
error:
|
|
579
|
+
error: re({}, o, {
|
|
580
580
|
value: kt
|
|
581
581
|
}),
|
|
582
|
-
group:
|
|
582
|
+
group: re({}, o, {
|
|
583
583
|
value: St
|
|
584
584
|
}),
|
|
585
|
-
groupCollapsed:
|
|
585
|
+
groupCollapsed: re({}, o, {
|
|
586
586
|
value: Et
|
|
587
587
|
}),
|
|
588
|
-
groupEnd:
|
|
588
|
+
groupEnd: re({}, o, {
|
|
589
589
|
value: Rt
|
|
590
590
|
})
|
|
591
591
|
});
|
|
592
592
|
}
|
|
593
|
-
ke < 0 &&
|
|
593
|
+
ke < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
|
-
var Ze =
|
|
597
|
-
function $e(o,
|
|
596
|
+
var Ze = j.ReactCurrentDispatcher, Ue;
|
|
597
|
+
function $e(o, x, b) {
|
|
598
598
|
{
|
|
599
599
|
if (Ue === void 0)
|
|
600
600
|
try {
|
|
601
601
|
throw Error();
|
|
602
|
-
} catch (
|
|
603
|
-
var S =
|
|
602
|
+
} catch ($) {
|
|
603
|
+
var S = $.stack.trim().match(/\n( *(at )?)/);
|
|
604
604
|
Ue = S && S[1] || "";
|
|
605
605
|
}
|
|
606
606
|
return `
|
|
@@ -612,22 +612,22 @@ function gs() {
|
|
|
612
612
|
var Ln = typeof WeakMap == "function" ? WeakMap : Map;
|
|
613
613
|
Fe = new Ln();
|
|
614
614
|
}
|
|
615
|
-
function Tt(o,
|
|
615
|
+
function Tt(o, x) {
|
|
616
616
|
if (!o || Ye)
|
|
617
617
|
return "";
|
|
618
618
|
{
|
|
619
|
-
var
|
|
620
|
-
if (
|
|
621
|
-
return
|
|
619
|
+
var b = Fe.get(o);
|
|
620
|
+
if (b !== void 0)
|
|
621
|
+
return b;
|
|
622
622
|
}
|
|
623
623
|
var S;
|
|
624
624
|
Ye = !0;
|
|
625
|
-
var
|
|
625
|
+
var $ = Error.prepareStackTrace;
|
|
626
626
|
Error.prepareStackTrace = void 0;
|
|
627
627
|
var F;
|
|
628
628
|
F = Ze.current, Ze.current = null, Pn();
|
|
629
629
|
try {
|
|
630
|
-
if (
|
|
630
|
+
if (x) {
|
|
631
631
|
var I = function() {
|
|
632
632
|
throw Error();
|
|
633
633
|
};
|
|
@@ -638,59 +638,59 @@ function gs() {
|
|
|
638
638
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
639
639
|
try {
|
|
640
640
|
Reflect.construct(I, []);
|
|
641
|
-
} catch (
|
|
642
|
-
S =
|
|
641
|
+
} catch (K) {
|
|
642
|
+
S = K;
|
|
643
643
|
}
|
|
644
644
|
Reflect.construct(o, [], I);
|
|
645
645
|
} else {
|
|
646
646
|
try {
|
|
647
647
|
I.call();
|
|
648
|
-
} catch (
|
|
649
|
-
S =
|
|
648
|
+
} catch (K) {
|
|
649
|
+
S = K;
|
|
650
650
|
}
|
|
651
651
|
o.call(I.prototype);
|
|
652
652
|
}
|
|
653
653
|
} else {
|
|
654
654
|
try {
|
|
655
655
|
throw Error();
|
|
656
|
-
} catch (
|
|
657
|
-
S =
|
|
656
|
+
} catch (K) {
|
|
657
|
+
S = K;
|
|
658
658
|
}
|
|
659
659
|
o();
|
|
660
660
|
}
|
|
661
|
-
} catch (
|
|
662
|
-
if (
|
|
663
|
-
for (var
|
|
664
|
-
`),
|
|
665
|
-
`), L =
|
|
666
|
-
|
|
667
|
-
for (; L >= 1 &&
|
|
668
|
-
if (
|
|
669
|
-
if (L !== 1 ||
|
|
661
|
+
} catch (K) {
|
|
662
|
+
if (K && S && typeof K.stack == "string") {
|
|
663
|
+
for (var T = K.stack.split(`
|
|
664
|
+
`), Y = S.stack.split(`
|
|
665
|
+
`), L = T.length - 1, z = Y.length - 1; L >= 1 && z >= 0 && T[L] !== Y[z]; )
|
|
666
|
+
z--;
|
|
667
|
+
for (; L >= 1 && z >= 0; L--, z--)
|
|
668
|
+
if (T[L] !== Y[z]) {
|
|
669
|
+
if (L !== 1 || z !== 1)
|
|
670
670
|
do
|
|
671
|
-
if (L--,
|
|
672
|
-
var
|
|
673
|
-
` +
|
|
674
|
-
return o.displayName &&
|
|
671
|
+
if (L--, z--, z < 0 || T[L] !== Y[z]) {
|
|
672
|
+
var q = `
|
|
673
|
+
` + T[L].replace(" at new ", " at ");
|
|
674
|
+
return o.displayName && q.includes("<anonymous>") && (q = q.replace("<anonymous>", o.displayName)), typeof o == "function" && Fe.set(o, q), q;
|
|
675
675
|
}
|
|
676
|
-
while (L >= 1 &&
|
|
676
|
+
while (L >= 1 && z >= 0);
|
|
677
677
|
break;
|
|
678
678
|
}
|
|
679
679
|
}
|
|
680
680
|
} finally {
|
|
681
|
-
Ye = !1, Ze.current = F, On(), Error.prepareStackTrace =
|
|
681
|
+
Ye = !1, Ze.current = F, On(), Error.prepareStackTrace = $;
|
|
682
682
|
}
|
|
683
|
-
var _e = o ? o.displayName || o.name : "",
|
|
684
|
-
return typeof o == "function" && Fe.set(o,
|
|
683
|
+
var _e = o ? o.displayName || o.name : "", de = _e ? $e(_e) : "";
|
|
684
|
+
return typeof o == "function" && Fe.set(o, de), de;
|
|
685
685
|
}
|
|
686
|
-
function An(o,
|
|
686
|
+
function An(o, x, b) {
|
|
687
687
|
return Tt(o, !1);
|
|
688
688
|
}
|
|
689
689
|
function zn(o) {
|
|
690
|
-
var
|
|
691
|
-
return !!(
|
|
690
|
+
var x = o.prototype;
|
|
691
|
+
return !!(x && x.isReactComponent);
|
|
692
692
|
}
|
|
693
|
-
function Pe(o,
|
|
693
|
+
function Pe(o, x, b) {
|
|
694
694
|
if (o == null)
|
|
695
695
|
return "";
|
|
696
696
|
if (typeof o == "function")
|
|
@@ -708,41 +708,41 @@ function gs() {
|
|
|
708
708
|
case u:
|
|
709
709
|
return An(o.render);
|
|
710
710
|
case h:
|
|
711
|
-
return Pe(o.type,
|
|
711
|
+
return Pe(o.type, x, b);
|
|
712
712
|
case p: {
|
|
713
|
-
var S = o,
|
|
713
|
+
var S = o, $ = S._payload, F = S._init;
|
|
714
714
|
try {
|
|
715
|
-
return Pe(F(
|
|
715
|
+
return Pe(F($), x, b);
|
|
716
716
|
} catch {
|
|
717
717
|
}
|
|
718
718
|
}
|
|
719
719
|
}
|
|
720
720
|
return "";
|
|
721
721
|
}
|
|
722
|
-
var Se = Object.prototype.hasOwnProperty, It = {}, Nt =
|
|
722
|
+
var Se = Object.prototype.hasOwnProperty, It = {}, Nt = j.ReactDebugCurrentFrame;
|
|
723
723
|
function Oe(o) {
|
|
724
724
|
if (o) {
|
|
725
|
-
var
|
|
726
|
-
Nt.setExtraStackFrame(
|
|
725
|
+
var x = o._owner, b = Pe(o.type, o._source, x ? x.type : null);
|
|
726
|
+
Nt.setExtraStackFrame(b);
|
|
727
727
|
} else
|
|
728
728
|
Nt.setExtraStackFrame(null);
|
|
729
729
|
}
|
|
730
|
-
function Wn(o,
|
|
730
|
+
function Wn(o, x, b, S, $) {
|
|
731
731
|
{
|
|
732
732
|
var F = Function.call.bind(Se);
|
|
733
733
|
for (var I in o)
|
|
734
734
|
if (F(o, I)) {
|
|
735
|
-
var
|
|
735
|
+
var T = void 0;
|
|
736
736
|
try {
|
|
737
737
|
if (typeof o[I] != "function") {
|
|
738
|
-
var
|
|
739
|
-
throw
|
|
738
|
+
var Y = Error((S || "React class") + ": " + b + " type `" + I + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[I] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
739
|
+
throw Y.name = "Invariant Violation", Y;
|
|
740
740
|
}
|
|
741
|
-
|
|
741
|
+
T = o[I](x, I, S, b, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
742
742
|
} catch (L) {
|
|
743
|
-
|
|
743
|
+
T = L;
|
|
744
744
|
}
|
|
745
|
-
|
|
745
|
+
T && !(T instanceof Error) && (Oe($), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", S || "React class", b, I, typeof T), Oe(null)), T instanceof Error && !(T.message in It) && (It[T.message] = !0, Oe($), w("Failed %s type: %s", b, T.message), Oe(null));
|
|
746
746
|
}
|
|
747
747
|
}
|
|
748
748
|
}
|
|
@@ -752,8 +752,8 @@ function gs() {
|
|
|
752
752
|
}
|
|
753
753
|
function Un(o) {
|
|
754
754
|
{
|
|
755
|
-
var
|
|
756
|
-
return
|
|
755
|
+
var x = typeof Symbol == "function" && Symbol.toStringTag, b = x && o[Symbol.toStringTag] || o.constructor.name || "Object";
|
|
756
|
+
return b;
|
|
757
757
|
}
|
|
758
758
|
}
|
|
759
759
|
function Yn(o) {
|
|
@@ -768,9 +768,9 @@ function gs() {
|
|
|
768
768
|
}
|
|
769
769
|
function Mt(o) {
|
|
770
770
|
if (Yn(o))
|
|
771
|
-
return
|
|
771
|
+
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Un(o)), Dt(o);
|
|
772
772
|
}
|
|
773
|
-
var Ee =
|
|
773
|
+
var Ee = j.ReactCurrentOwner, Kn = {
|
|
774
774
|
key: !0,
|
|
775
775
|
ref: !0,
|
|
776
776
|
__self: !0,
|
|
@@ -779,112 +779,112 @@ function gs() {
|
|
|
779
779
|
Ge = {};
|
|
780
780
|
function Gn(o) {
|
|
781
781
|
if (Se.call(o, "ref")) {
|
|
782
|
-
var
|
|
783
|
-
if (
|
|
782
|
+
var x = Object.getOwnPropertyDescriptor(o, "ref").get;
|
|
783
|
+
if (x && x.isReactWarning)
|
|
784
784
|
return !1;
|
|
785
785
|
}
|
|
786
786
|
return o.ref !== void 0;
|
|
787
787
|
}
|
|
788
788
|
function Hn(o) {
|
|
789
789
|
if (Se.call(o, "key")) {
|
|
790
|
-
var
|
|
791
|
-
if (
|
|
790
|
+
var x = Object.getOwnPropertyDescriptor(o, "key").get;
|
|
791
|
+
if (x && x.isReactWarning)
|
|
792
792
|
return !1;
|
|
793
793
|
}
|
|
794
794
|
return o.key !== void 0;
|
|
795
795
|
}
|
|
796
|
-
function
|
|
797
|
-
if (typeof o.ref == "string" && Ee.current &&
|
|
798
|
-
var
|
|
799
|
-
Ge[
|
|
796
|
+
function Vn(o, x) {
|
|
797
|
+
if (typeof o.ref == "string" && Ee.current && x && Ee.current.stateNode !== x) {
|
|
798
|
+
var b = U(Ee.current.type);
|
|
799
|
+
Ge[b] || (w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', U(Ee.current.type), o.ref), Ge[b] = !0);
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
|
-
function
|
|
802
|
+
function qn(o, x) {
|
|
803
803
|
{
|
|
804
|
-
var
|
|
805
|
-
$t || ($t = !0,
|
|
804
|
+
var b = function() {
|
|
805
|
+
$t || ($t = !0, w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", x));
|
|
806
806
|
};
|
|
807
|
-
|
|
808
|
-
get:
|
|
807
|
+
b.isReactWarning = !0, Object.defineProperty(o, "key", {
|
|
808
|
+
get: b,
|
|
809
809
|
configurable: !0
|
|
810
810
|
});
|
|
811
811
|
}
|
|
812
812
|
}
|
|
813
|
-
function Xn(o,
|
|
813
|
+
function Xn(o, x) {
|
|
814
814
|
{
|
|
815
|
-
var
|
|
816
|
-
Ft || (Ft = !0,
|
|
815
|
+
var b = function() {
|
|
816
|
+
Ft || (Ft = !0, w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", x));
|
|
817
817
|
};
|
|
818
|
-
|
|
819
|
-
get:
|
|
818
|
+
b.isReactWarning = !0, Object.defineProperty(o, "ref", {
|
|
819
|
+
get: b,
|
|
820
820
|
configurable: !0
|
|
821
821
|
});
|
|
822
822
|
}
|
|
823
823
|
}
|
|
824
|
-
var Jn = function(o,
|
|
825
|
-
var
|
|
824
|
+
var Jn = function(o, x, b, S, $, F, I) {
|
|
825
|
+
var T = {
|
|
826
826
|
// This tag allows us to uniquely identify this as a React Element
|
|
827
827
|
$$typeof: t,
|
|
828
828
|
// Built-in properties that belong on the element
|
|
829
829
|
type: o,
|
|
830
|
-
key:
|
|
831
|
-
ref:
|
|
830
|
+
key: x,
|
|
831
|
+
ref: b,
|
|
832
832
|
props: I,
|
|
833
833
|
// Record the component responsible for creating this element.
|
|
834
834
|
_owner: F
|
|
835
835
|
};
|
|
836
|
-
return
|
|
836
|
+
return T._store = {}, Object.defineProperty(T._store, "validated", {
|
|
837
837
|
configurable: !1,
|
|
838
838
|
enumerable: !1,
|
|
839
839
|
writable: !0,
|
|
840
840
|
value: !1
|
|
841
|
-
}), Object.defineProperty(
|
|
841
|
+
}), Object.defineProperty(T, "_self", {
|
|
842
842
|
configurable: !1,
|
|
843
843
|
enumerable: !1,
|
|
844
844
|
writable: !1,
|
|
845
845
|
value: S
|
|
846
|
-
}), Object.defineProperty(
|
|
846
|
+
}), Object.defineProperty(T, "_source", {
|
|
847
847
|
configurable: !1,
|
|
848
848
|
enumerable: !1,
|
|
849
849
|
writable: !1,
|
|
850
|
-
value:
|
|
851
|
-
}), Object.freeze && (Object.freeze(
|
|
850
|
+
value: $
|
|
851
|
+
}), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T;
|
|
852
852
|
};
|
|
853
|
-
function Qn(o,
|
|
853
|
+
function Qn(o, x, b, S, $) {
|
|
854
854
|
{
|
|
855
|
-
var F, I = {},
|
|
856
|
-
|
|
857
|
-
for (F in
|
|
858
|
-
Se.call(
|
|
855
|
+
var F, I = {}, T = null, Y = null;
|
|
856
|
+
b !== void 0 && (Mt(b), T = "" + b), Hn(x) && (Mt(x.key), T = "" + x.key), Gn(x) && (Y = x.ref, Vn(x, $));
|
|
857
|
+
for (F in x)
|
|
858
|
+
Se.call(x, F) && !Kn.hasOwnProperty(F) && (I[F] = x[F]);
|
|
859
859
|
if (o && o.defaultProps) {
|
|
860
860
|
var L = o.defaultProps;
|
|
861
861
|
for (F in L)
|
|
862
862
|
I[F] === void 0 && (I[F] = L[F]);
|
|
863
863
|
}
|
|
864
|
-
if (
|
|
865
|
-
var
|
|
866
|
-
|
|
864
|
+
if (T || Y) {
|
|
865
|
+
var z = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
|
|
866
|
+
T && qn(I, z), Y && Xn(I, z);
|
|
867
867
|
}
|
|
868
|
-
return Jn(o,
|
|
868
|
+
return Jn(o, T, Y, $, S, Ee.current, I);
|
|
869
869
|
}
|
|
870
870
|
}
|
|
871
|
-
var He =
|
|
871
|
+
var He = j.ReactCurrentOwner, Pt = j.ReactDebugCurrentFrame;
|
|
872
872
|
function ye(o) {
|
|
873
873
|
if (o) {
|
|
874
|
-
var
|
|
875
|
-
Pt.setExtraStackFrame(
|
|
874
|
+
var x = o._owner, b = Pe(o.type, o._source, x ? x.type : null);
|
|
875
|
+
Pt.setExtraStackFrame(b);
|
|
876
876
|
} else
|
|
877
877
|
Pt.setExtraStackFrame(null);
|
|
878
878
|
}
|
|
879
|
-
var
|
|
880
|
-
|
|
881
|
-
function
|
|
879
|
+
var Ve;
|
|
880
|
+
Ve = !1;
|
|
881
|
+
function qe(o) {
|
|
882
882
|
return typeof o == "object" && o !== null && o.$$typeof === t;
|
|
883
883
|
}
|
|
884
884
|
function Ot() {
|
|
885
885
|
{
|
|
886
886
|
if (He.current) {
|
|
887
|
-
var o =
|
|
887
|
+
var o = U(He.current.type);
|
|
888
888
|
if (o)
|
|
889
889
|
return `
|
|
890
890
|
|
|
@@ -899,135 +899,135 @@ Check the render method of \`` + o + "`.";
|
|
|
899
899
|
var Lt = {};
|
|
900
900
|
function tr(o) {
|
|
901
901
|
{
|
|
902
|
-
var
|
|
903
|
-
if (!
|
|
904
|
-
var
|
|
905
|
-
|
|
902
|
+
var x = Ot();
|
|
903
|
+
if (!x) {
|
|
904
|
+
var b = typeof o == "string" ? o : o.displayName || o.name;
|
|
905
|
+
b && (x = `
|
|
906
906
|
|
|
907
|
-
Check the top-level render call using <` +
|
|
907
|
+
Check the top-level render call using <` + b + ">.");
|
|
908
908
|
}
|
|
909
|
-
return
|
|
909
|
+
return x;
|
|
910
910
|
}
|
|
911
911
|
}
|
|
912
|
-
function At(o,
|
|
912
|
+
function At(o, x) {
|
|
913
913
|
{
|
|
914
914
|
if (!o._store || o._store.validated || o.key != null)
|
|
915
915
|
return;
|
|
916
916
|
o._store.validated = !0;
|
|
917
|
-
var
|
|
918
|
-
if (Lt[
|
|
917
|
+
var b = tr(x);
|
|
918
|
+
if (Lt[b])
|
|
919
919
|
return;
|
|
920
|
-
Lt[
|
|
920
|
+
Lt[b] = !0;
|
|
921
921
|
var S = "";
|
|
922
|
-
o && o._owner && o._owner !== He.current && (S = " It was passed a child from " +
|
|
922
|
+
o && o._owner && o._owner !== He.current && (S = " It was passed a child from " + U(o._owner.type) + "."), ye(o), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', b, S), ye(null);
|
|
923
923
|
}
|
|
924
924
|
}
|
|
925
|
-
function zt(o,
|
|
925
|
+
function zt(o, x) {
|
|
926
926
|
{
|
|
927
927
|
if (typeof o != "object")
|
|
928
928
|
return;
|
|
929
929
|
if (Ke(o))
|
|
930
|
-
for (var
|
|
931
|
-
var S = o[
|
|
932
|
-
|
|
930
|
+
for (var b = 0; b < o.length; b++) {
|
|
931
|
+
var S = o[b];
|
|
932
|
+
qe(S) && At(S, x);
|
|
933
933
|
}
|
|
934
|
-
else if (
|
|
934
|
+
else if (qe(o))
|
|
935
935
|
o._store && (o._store.validated = !0);
|
|
936
936
|
else if (o) {
|
|
937
|
-
var
|
|
938
|
-
if (typeof
|
|
939
|
-
for (var F =
|
|
940
|
-
|
|
937
|
+
var $ = m(o);
|
|
938
|
+
if (typeof $ == "function" && $ !== o.entries)
|
|
939
|
+
for (var F = $.call(o), I; !(I = F.next()).done; )
|
|
940
|
+
qe(I.value) && At(I.value, x);
|
|
941
941
|
}
|
|
942
942
|
}
|
|
943
943
|
}
|
|
944
944
|
function nr(o) {
|
|
945
945
|
{
|
|
946
|
-
var
|
|
947
|
-
if (
|
|
946
|
+
var x = o.type;
|
|
947
|
+
if (x == null || typeof x == "string")
|
|
948
948
|
return;
|
|
949
|
-
var
|
|
950
|
-
if (typeof
|
|
951
|
-
|
|
952
|
-
else if (typeof
|
|
949
|
+
var b;
|
|
950
|
+
if (typeof x == "function")
|
|
951
|
+
b = x.propTypes;
|
|
952
|
+
else if (typeof x == "object" && (x.$$typeof === u || // Note: Memo only checks outer props here.
|
|
953
953
|
// Inner props are checked in the reconciler.
|
|
954
|
-
|
|
955
|
-
|
|
954
|
+
x.$$typeof === h))
|
|
955
|
+
b = x.propTypes;
|
|
956
956
|
else
|
|
957
957
|
return;
|
|
958
|
-
if (
|
|
959
|
-
var S =
|
|
960
|
-
Wn(
|
|
961
|
-
} else if (
|
|
962
|
-
|
|
963
|
-
var
|
|
964
|
-
|
|
958
|
+
if (b) {
|
|
959
|
+
var S = U(x);
|
|
960
|
+
Wn(b, o.props, "prop", S, o);
|
|
961
|
+
} else if (x.PropTypes !== void 0 && !Ve) {
|
|
962
|
+
Ve = !0;
|
|
963
|
+
var $ = U(x);
|
|
964
|
+
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", $ || "Unknown");
|
|
965
965
|
}
|
|
966
|
-
typeof
|
|
966
|
+
typeof x.getDefaultProps == "function" && !x.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
967
967
|
}
|
|
968
968
|
}
|
|
969
969
|
function rr(o) {
|
|
970
970
|
{
|
|
971
|
-
for (var
|
|
972
|
-
var S =
|
|
971
|
+
for (var x = Object.keys(o.props), b = 0; b < x.length; b++) {
|
|
972
|
+
var S = x[b];
|
|
973
973
|
if (S !== "children" && S !== "key") {
|
|
974
|
-
ye(o),
|
|
974
|
+
ye(o), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", S), ye(null);
|
|
975
975
|
break;
|
|
976
976
|
}
|
|
977
977
|
}
|
|
978
|
-
o.ref !== null && (ye(o),
|
|
978
|
+
o.ref !== null && (ye(o), w("Invalid attribute `ref` supplied to `React.Fragment`."), ye(null));
|
|
979
979
|
}
|
|
980
980
|
}
|
|
981
981
|
var Wt = {};
|
|
982
|
-
function Zt(o,
|
|
982
|
+
function Zt(o, x, b, S, $, F) {
|
|
983
983
|
{
|
|
984
|
-
var I =
|
|
984
|
+
var I = D(o);
|
|
985
985
|
if (!I) {
|
|
986
|
-
var
|
|
987
|
-
(o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (
|
|
988
|
-
var
|
|
989
|
-
|
|
986
|
+
var T = "";
|
|
987
|
+
(o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (T += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
988
|
+
var Y = er();
|
|
989
|
+
Y ? T += Y : T += Ot();
|
|
990
990
|
var L;
|
|
991
|
-
o === null ? L = "null" : Ke(o) ? L = "array" : o !== void 0 && o.$$typeof === t ? (L = "<" + (
|
|
991
|
+
o === null ? L = "null" : Ke(o) ? L = "array" : o !== void 0 && o.$$typeof === t ? (L = "<" + (U(o.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : L = typeof o, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", L, T);
|
|
992
992
|
}
|
|
993
|
-
var
|
|
994
|
-
if (
|
|
995
|
-
return
|
|
993
|
+
var z = Qn(o, x, b, $, F);
|
|
994
|
+
if (z == null)
|
|
995
|
+
return z;
|
|
996
996
|
if (I) {
|
|
997
|
-
var
|
|
998
|
-
if (
|
|
997
|
+
var q = x.children;
|
|
998
|
+
if (q !== void 0)
|
|
999
999
|
if (S)
|
|
1000
|
-
if (Ke(
|
|
1001
|
-
for (var _e = 0; _e <
|
|
1002
|
-
zt(
|
|
1003
|
-
Object.freeze && Object.freeze(
|
|
1000
|
+
if (Ke(q)) {
|
|
1001
|
+
for (var _e = 0; _e < q.length; _e++)
|
|
1002
|
+
zt(q[_e], o);
|
|
1003
|
+
Object.freeze && Object.freeze(q);
|
|
1004
1004
|
} else
|
|
1005
|
-
|
|
1005
|
+
w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
1006
1006
|
else
|
|
1007
|
-
zt(
|
|
1007
|
+
zt(q, o);
|
|
1008
1008
|
}
|
|
1009
|
-
if (Se.call(
|
|
1010
|
-
var
|
|
1009
|
+
if (Se.call(x, "key")) {
|
|
1010
|
+
var de = U(o), K = Object.keys(x).filter(function(cr) {
|
|
1011
1011
|
return cr !== "key";
|
|
1012
|
-
}), Xe =
|
|
1013
|
-
if (!Wt[
|
|
1014
|
-
var lr =
|
|
1015
|
-
|
|
1012
|
+
}), Xe = K.length > 0 ? "{key: someKey, " + K.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1013
|
+
if (!Wt[de + Xe]) {
|
|
1014
|
+
var lr = K.length > 0 ? "{" + K.join(": ..., ") + ": ...}" : "{}";
|
|
1015
|
+
w(`A props object containing a "key" prop is being spread into JSX:
|
|
1016
1016
|
let props = %s;
|
|
1017
1017
|
<%s {...props} />
|
|
1018
1018
|
React keys must be passed directly to JSX without using spread:
|
|
1019
1019
|
let props = %s;
|
|
1020
|
-
<%s key={someKey} {...props} />`, Xe,
|
|
1020
|
+
<%s key={someKey} {...props} />`, Xe, de, lr, de), Wt[de + Xe] = !0;
|
|
1021
1021
|
}
|
|
1022
1022
|
}
|
|
1023
|
-
return o === s ? rr(
|
|
1023
|
+
return o === s ? rr(z) : nr(z), z;
|
|
1024
1024
|
}
|
|
1025
1025
|
}
|
|
1026
|
-
function sr(o,
|
|
1027
|
-
return Zt(o,
|
|
1026
|
+
function sr(o, x, b) {
|
|
1027
|
+
return Zt(o, x, b, !0);
|
|
1028
1028
|
}
|
|
1029
|
-
function ar(o,
|
|
1030
|
-
return Zt(o,
|
|
1029
|
+
function ar(o, x, b) {
|
|
1030
|
+
return Zt(o, x, b, !1);
|
|
1031
1031
|
}
|
|
1032
1032
|
var ir = ar, or = sr;
|
|
1033
1033
|
Be.Fragment = s, Be.jsx = ir, Be.jsxs = or;
|
|
@@ -1044,12 +1044,12 @@ const xs = "_notice_q5jau_1", ps = "_error_q5jau_10", vs = "_success_q5jau_13",
|
|
|
1044
1044
|
"show-notice": "_show-notice_q5jau_1",
|
|
1045
1045
|
"hide-notice": "_hide-notice_q5jau_1"
|
|
1046
1046
|
};
|
|
1047
|
-
let
|
|
1047
|
+
let ce = {};
|
|
1048
1048
|
function ys() {
|
|
1049
1049
|
let [e, t] = _.useState([]);
|
|
1050
|
-
return
|
|
1050
|
+
return ce.set = (r) => {
|
|
1051
1051
|
t([...e, r]);
|
|
1052
|
-
},
|
|
1052
|
+
}, ce.del = (r) => {
|
|
1053
1053
|
t(e.filter((s) => s.key !== r));
|
|
1054
1054
|
}, e.length === 0 ? "" : /* @__PURE__ */ n.jsx("ul", { className: mn.notice, children: e.map((r) => r.item) });
|
|
1055
1055
|
}
|
|
@@ -1059,25 +1059,25 @@ function De({ data: e }) {
|
|
|
1059
1059
|
setTimeout(function() {
|
|
1060
1060
|
r("hide");
|
|
1061
1061
|
}, 1800), setTimeout(function() {
|
|
1062
|
-
|
|
1062
|
+
ce.del(e.key);
|
|
1063
1063
|
}, 2500);
|
|
1064
1064
|
}, [e.key]);
|
|
1065
1065
|
let s;
|
|
1066
1066
|
switch (e.type) {
|
|
1067
1067
|
case "error":
|
|
1068
|
-
s = /* @__PURE__ */ n.jsx(
|
|
1068
|
+
s = /* @__PURE__ */ n.jsx(he.error, {});
|
|
1069
1069
|
break;
|
|
1070
1070
|
case "success":
|
|
1071
|
-
s = /* @__PURE__ */ n.jsx(
|
|
1071
|
+
s = /* @__PURE__ */ n.jsx(he.success, {});
|
|
1072
1072
|
break;
|
|
1073
1073
|
case "copy":
|
|
1074
|
-
s = /* @__PURE__ */ n.jsx(
|
|
1074
|
+
s = /* @__PURE__ */ n.jsx(he.success, {});
|
|
1075
1075
|
break;
|
|
1076
1076
|
case "remark":
|
|
1077
|
-
s = /* @__PURE__ */ n.jsx(
|
|
1077
|
+
s = /* @__PURE__ */ n.jsx(he.success, {});
|
|
1078
1078
|
break;
|
|
1079
1079
|
default:
|
|
1080
|
-
s = /* @__PURE__ */ n.jsx(
|
|
1080
|
+
s = /* @__PURE__ */ n.jsx(he.success, {});
|
|
1081
1081
|
break;
|
|
1082
1082
|
}
|
|
1083
1083
|
return /* @__PURE__ */ n.jsxs("li", { className: "item " + mn[e.type], "data-status": t, children: [
|
|
@@ -1087,26 +1087,26 @@ function De({ data: e }) {
|
|
|
1087
1087
|
}
|
|
1088
1088
|
function _s(e) {
|
|
1089
1089
|
let t = Date.now(), r = { key: t, ...e };
|
|
1090
|
-
|
|
1090
|
+
ce.set({ item: /* @__PURE__ */ n.jsx(De, { data: r }, t), key: t });
|
|
1091
1091
|
}
|
|
1092
1092
|
function Cs(e) {
|
|
1093
1093
|
let t = Date.now(), r = { key: t, text: e, type: "error" };
|
|
1094
|
-
|
|
1094
|
+
ce.set({ item: /* @__PURE__ */ n.jsx(De, { data: r }, t), key: t });
|
|
1095
1095
|
}
|
|
1096
1096
|
function ws(e) {
|
|
1097
1097
|
let t = Date.now(), r = { key: t, text: e, type: "success" };
|
|
1098
|
-
|
|
1098
|
+
ce.set({ item: /* @__PURE__ */ n.jsx(De, { data: r }, t), key: t });
|
|
1099
1099
|
}
|
|
1100
1100
|
function ks(e) {
|
|
1101
1101
|
let t = Date.now(), r = { key: t, text: e, type: "remark" };
|
|
1102
|
-
|
|
1102
|
+
ce.set({ item: /* @__PURE__ */ n.jsx(De, { data: r }, t), key: t });
|
|
1103
1103
|
}
|
|
1104
1104
|
function Ss(e) {
|
|
1105
1105
|
let t = Date.now(), r = { key: t, text: e, type: "copy" };
|
|
1106
|
-
|
|
1106
|
+
ce.set({ item: /* @__PURE__ */ n.jsx(De, { data: r }, t), key: t });
|
|
1107
1107
|
}
|
|
1108
|
-
const
|
|
1109
|
-
|
|
1108
|
+
const he = {};
|
|
1109
|
+
he.error = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
|
|
1110
1110
|
/* @__PURE__ */ n.jsx(
|
|
1111
1111
|
"path",
|
|
1112
1112
|
{
|
|
@@ -1122,7 +1122,7 @@ me.error = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "no
|
|
|
1122
1122
|
}
|
|
1123
1123
|
)
|
|
1124
1124
|
] });
|
|
1125
|
-
|
|
1125
|
+
he.success = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
|
|
1126
1126
|
/* @__PURE__ */ n.jsx(
|
|
1127
1127
|
"path",
|
|
1128
1128
|
{
|
|
@@ -1193,7 +1193,7 @@ function Ps({ onClick: e, onSend: t, label: r, onRef: s }) {
|
|
|
1193
1193
|
}
|
|
1194
1194
|
);
|
|
1195
1195
|
}
|
|
1196
|
-
const Os = "_white_11p39_14", Ls = "_black_11p39_26", As = "_shake_11p39_1", zs = "_modal_11p39_73", Ws = "_o_11p39_83", Zs = "_w_11p39_14", Us = "_h_11p39_107", Ys = "_l_11p39_121", Ks = "_t_11p39_159", Gs = "_m_11p39_73", Hs = "_x_11p39_167",
|
|
1196
|
+
const Os = "_white_11p39_14", Ls = "_black_11p39_26", As = "_shake_11p39_1", zs = "_modal_11p39_73", Ws = "_o_11p39_83", Zs = "_w_11p39_14", Us = "_h_11p39_107", Ys = "_l_11p39_121", Ks = "_t_11p39_159", Gs = "_m_11p39_73", Hs = "_x_11p39_167", Vs = "_s_11p39_177", qs = "_c_11p39_182", Xs = "_f_11p39_187", Js = "_btn_11p39_230", Qs = "_g_11p39_243", ea = "_confirm_11p39_322", ta = "_cancel_11p39_327", na = "_disabled_11p39_332", ra = "_active_11p39_389", sa = "_coincidence_11p39_395", aa = "_sa_11p39_431", ia = "_ss_11p39_435", oa = "_sm_11p39_439", la = "_sl_11p39_443", ca = "_sx_11p39_447", ua = "_sf_11p39_451", J = {
|
|
1197
1197
|
white: Os,
|
|
1198
1198
|
black: Ls,
|
|
1199
1199
|
shake: As,
|
|
@@ -1205,8 +1205,8 @@ const Os = "_white_11p39_14", Ls = "_black_11p39_26", As = "_shake_11p39_1", zs
|
|
|
1205
1205
|
t: Ks,
|
|
1206
1206
|
m: Gs,
|
|
1207
1207
|
x: Hs,
|
|
1208
|
-
s:
|
|
1209
|
-
c:
|
|
1208
|
+
s: Vs,
|
|
1209
|
+
c: qs,
|
|
1210
1210
|
f: Xs,
|
|
1211
1211
|
btn: Js,
|
|
1212
1212
|
g: Qs,
|
|
@@ -1229,12 +1229,12 @@ const Os = "_white_11p39_14", Ls = "_black_11p39_26", As = "_shake_11p39_1", zs
|
|
|
1229
1229
|
sx: ca,
|
|
1230
1230
|
sf: ua
|
|
1231
1231
|
};
|
|
1232
|
-
let
|
|
1232
|
+
let ge = {};
|
|
1233
1233
|
function da({ config: e }) {
|
|
1234
1234
|
let [t, r] = _.useState([]);
|
|
1235
|
-
return
|
|
1235
|
+
return ge.x = (s) => {
|
|
1236
1236
|
s || r([]);
|
|
1237
|
-
},
|
|
1237
|
+
}, ge.config = e, ge.add = (s) => {
|
|
1238
1238
|
r([...t, s]);
|
|
1239
1239
|
}, /* @__PURE__ */ n.jsx(n.Fragment, { children: t.map((s) => s) });
|
|
1240
1240
|
}
|
|
@@ -1264,18 +1264,18 @@ function fa({
|
|
|
1264
1264
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: l ? /* @__PURE__ */ n.jsxs(
|
|
1265
1265
|
"div",
|
|
1266
1266
|
{
|
|
1267
|
-
className: `${
|
|
1267
|
+
className: `${J.modal} ${J.white}`,
|
|
1268
1268
|
children: [
|
|
1269
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
1269
|
+
/* @__PURE__ */ n.jsx("div", { className: J.o, onClick: f }),
|
|
1270
1270
|
/* @__PURE__ */ n.jsxs(
|
|
1271
1271
|
"div",
|
|
1272
1272
|
{
|
|
1273
|
-
className: [
|
|
1273
|
+
className: [J.w, J[`s${a}`]].join(" "),
|
|
1274
1274
|
ref: u,
|
|
1275
1275
|
children: [
|
|
1276
|
-
/* @__PURE__ */ n.jsxs("div", { className:
|
|
1277
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
1278
|
-
/* @__PURE__ */ n.jsxs("div", { className:
|
|
1276
|
+
/* @__PURE__ */ n.jsxs("div", { className: J.h, children: [
|
|
1277
|
+
/* @__PURE__ */ n.jsx("div", { className: J.t, children: e }),
|
|
1278
|
+
/* @__PURE__ */ n.jsxs("div", { className: J.m, children: [
|
|
1279
1279
|
s && /* @__PURE__ */ n.jsx("nav", { children: s.map((h, p) => /* @__PURE__ */ n.jsx(
|
|
1280
1280
|
"span",
|
|
1281
1281
|
{
|
|
@@ -1290,7 +1290,7 @@ function fa({
|
|
|
1290
1290
|
/* @__PURE__ */ n.jsx(
|
|
1291
1291
|
"div",
|
|
1292
1292
|
{
|
|
1293
|
-
className:
|
|
1293
|
+
className: J.x,
|
|
1294
1294
|
onClick: () => {
|
|
1295
1295
|
c(!1);
|
|
1296
1296
|
},
|
|
@@ -1317,7 +1317,7 @@ function fa({
|
|
|
1317
1317
|
) : "" });
|
|
1318
1318
|
}
|
|
1319
1319
|
function ha(e) {
|
|
1320
|
-
|
|
1320
|
+
ge.add(/* @__PURE__ */ n.jsx(ma, { children: e }, String(Date.now())));
|
|
1321
1321
|
}
|
|
1322
1322
|
function ma({ children: e }) {
|
|
1323
1323
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: e });
|
|
@@ -1333,14 +1333,14 @@ function ga(e) {
|
|
|
1333
1333
|
function xa({ type: e, name: t, params: r }) {
|
|
1334
1334
|
let [s, a] = _.useState(null);
|
|
1335
1335
|
return _.useEffect(() => {
|
|
1336
|
-
|
|
1336
|
+
ge.config(e, t, r, a);
|
|
1337
1337
|
}, [r.id]), /* @__PURE__ */ n.jsx(n.Fragment, { children: s });
|
|
1338
1338
|
}
|
|
1339
1339
|
function pa(e, t) {
|
|
1340
|
-
|
|
1340
|
+
ge.config(e, t);
|
|
1341
1341
|
}
|
|
1342
1342
|
function va(e) {
|
|
1343
|
-
|
|
1343
|
+
ge.x(e);
|
|
1344
1344
|
}
|
|
1345
1345
|
const st = {};
|
|
1346
1346
|
function ja(e, t) {
|
|
@@ -1349,22 +1349,22 @@ function ja(e, t) {
|
|
|
1349
1349
|
function ba(e, t) {
|
|
1350
1350
|
st[e] !== void 0 && st[e](t);
|
|
1351
1351
|
}
|
|
1352
|
-
const
|
|
1352
|
+
const ie = {};
|
|
1353
1353
|
function ya(e, t) {
|
|
1354
1354
|
const [r, s] = _.useState(t);
|
|
1355
1355
|
return _.useEffect(() => {
|
|
1356
|
-
if (
|
|
1357
|
-
return
|
|
1358
|
-
|
|
1356
|
+
if (ie[e])
|
|
1357
|
+
return ie[e].push(s);
|
|
1358
|
+
ie[e] = [s];
|
|
1359
1359
|
}, []), [r];
|
|
1360
1360
|
}
|
|
1361
1361
|
function _a(e, t) {
|
|
1362
|
-
if (
|
|
1363
|
-
return
|
|
1364
|
-
|
|
1362
|
+
if (ie[e])
|
|
1363
|
+
return ie[e].push(t);
|
|
1364
|
+
ie[e] = [t];
|
|
1365
1365
|
}
|
|
1366
1366
|
function Ca(e, t) {
|
|
1367
|
-
|
|
1367
|
+
ie[e] && ie[e].forEach((r) => r(t));
|
|
1368
1368
|
}
|
|
1369
1369
|
const ft = { setListener: ba, useListener: ja, setEmitter: Ca, useEmitter: ya, subEmitter: _a };
|
|
1370
1370
|
function wa() {
|
|
@@ -1373,7 +1373,7 @@ function wa() {
|
|
|
1373
1373
|
t([r]);
|
|
1374
1374
|
}), /* @__PURE__ */ n.jsx(n.Fragment, { children: e.map((r) => r) });
|
|
1375
1375
|
}
|
|
1376
|
-
const
|
|
1376
|
+
const oe = {
|
|
1377
1377
|
Path: Pr,
|
|
1378
1378
|
setPage: kr,
|
|
1379
1379
|
getPage: nn,
|
|
@@ -1438,31 +1438,31 @@ function pn({
|
|
|
1438
1438
|
d.current.value.length > 0 ? d.current.send && (r(!0), d.current.send = !1, d.current.timerId = setTimeout(() => {
|
|
1439
1439
|
d.current.send = !0;
|
|
1440
1440
|
}, 3e3)) : r(!1);
|
|
1441
|
-
}, h = (
|
|
1442
|
-
d.current.value =
|
|
1443
|
-
}, p = (
|
|
1444
|
-
|
|
1445
|
-
},
|
|
1446
|
-
|
|
1447
|
-
},
|
|
1448
|
-
|
|
1449
|
-
window.document.execCommand("insertText", !1,
|
|
1450
|
-
}).catch((
|
|
1441
|
+
}, h = (j) => {
|
|
1442
|
+
d.current.value = j.target.textContent, f();
|
|
1443
|
+
}, p = (j) => {
|
|
1444
|
+
j.keyCode === 16 && (d.current.shift = !0), j.keyCode === 13 && !d.current.shift && (j.preventDefault(), d.current.value.length !== 0 && (j.target.textContent = "", s && s(d.current.value), t && t(d.current.value), d.current.value = "", r(!1)));
|
|
1445
|
+
}, g = (j) => {
|
|
1446
|
+
j.keyCode === 16 && (d.current.shift = !1);
|
|
1447
|
+
}, v = (j) => {
|
|
1448
|
+
j.preventDefault(), navigator.clipboard.readText().then((w) => {
|
|
1449
|
+
window.document.execCommand("insertText", !1, w);
|
|
1450
|
+
}).catch((w) => {
|
|
1451
1451
|
});
|
|
1452
|
-
},
|
|
1452
|
+
}, y = () => {
|
|
1453
1453
|
r(!1);
|
|
1454
|
-
},
|
|
1454
|
+
}, m = {
|
|
1455
1455
|
spellCheck: "true"
|
|
1456
1456
|
};
|
|
1457
|
-
return u && (
|
|
1457
|
+
return u && (m.placeholder = u), l && c && (m.contentEditable = "plaintext-only"), /* @__PURE__ */ n.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ n.jsx(
|
|
1458
1458
|
"dd",
|
|
1459
1459
|
{
|
|
1460
|
-
onPaste:
|
|
1460
|
+
onPaste: v,
|
|
1461
1461
|
onInput: h,
|
|
1462
|
-
onKeyUp:
|
|
1462
|
+
onKeyUp: g,
|
|
1463
1463
|
onKeyDown: p,
|
|
1464
|
-
onBlur:
|
|
1465
|
-
...
|
|
1464
|
+
onBlur: y,
|
|
1465
|
+
...m,
|
|
1466
1466
|
suppressContentEditableWarning: !0,
|
|
1467
1467
|
children: e
|
|
1468
1468
|
}
|
|
@@ -1495,40 +1495,40 @@ function vn(e) {
|
|
|
1495
1495
|
)
|
|
1496
1496
|
] });
|
|
1497
1497
|
}
|
|
1498
|
-
let
|
|
1499
|
-
|
|
1498
|
+
let je = {};
|
|
1499
|
+
je.KeyDown = (e) => {
|
|
1500
1500
|
e.key === "Enter" && e.preventDefault();
|
|
1501
1501
|
};
|
|
1502
|
-
|
|
1502
|
+
je.PasteOne = (e) => {
|
|
1503
1503
|
e.preventDefault(), navigator.clipboard.readText().then((t) => {
|
|
1504
1504
|
t = t.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, t);
|
|
1505
1505
|
}).catch((t) => {
|
|
1506
1506
|
});
|
|
1507
1507
|
};
|
|
1508
|
-
|
|
1508
|
+
je.Focus = (e) => {
|
|
1509
1509
|
e.target.textContent.length === 0 && (e.target.innerHTML = "<br>");
|
|
1510
1510
|
};
|
|
1511
|
-
|
|
1511
|
+
je.Blur = (e) => {
|
|
1512
1512
|
e.target.scrollLeft = 0, e.target.querySelector("br") !== null && e.target.querySelector("br").remove();
|
|
1513
1513
|
};
|
|
1514
1514
|
function jn({ value: e, onValue: t, placeholder: r = "", name: s }) {
|
|
1515
|
-
let a = (
|
|
1516
|
-
|
|
1517
|
-
}, d = (
|
|
1518
|
-
t({ value: Number(
|
|
1519
|
-
}, f = (
|
|
1520
|
-
|
|
1515
|
+
let a = (g, v) => Number(Math.round(g + Math.random() * (v - g))), i = _.useRef(null), l = _.useRef(null), c = a(1e4, 99999), u = (g) => {
|
|
1516
|
+
g.key !== "Backspace" && (g.key === "Enter" && g.preventDefault(), g.target.textContent.length === 5 && g.preventDefault(), /\d/.test(g.key) || g.preventDefault());
|
|
1517
|
+
}, d = (g) => {
|
|
1518
|
+
t({ value: Number(g.target.textContent) === c, name: s });
|
|
1519
|
+
}, f = (g) => {
|
|
1520
|
+
g.preventDefault(), navigator.clipboard.readText().then((v) => {
|
|
1521
1521
|
window.document.execCommand(
|
|
1522
1522
|
"insertText",
|
|
1523
1523
|
!1,
|
|
1524
|
-
|
|
1524
|
+
v.replace(/(\r\n|\n|\r)/gm, " ").replace(/[^0-9]/g, "").substring(0, 5)
|
|
1525
1525
|
);
|
|
1526
|
-
}).catch((
|
|
1526
|
+
}).catch((v) => {
|
|
1527
1527
|
});
|
|
1528
1528
|
};
|
|
1529
1529
|
_.useEffect(() => {
|
|
1530
|
-
const
|
|
1531
|
-
|
|
1530
|
+
const g = i.current, v = g.getContext("2d");
|
|
1531
|
+
v.clearRect(0, 0, g.width, g.height), v.font = "30px brush script mt", v.fillStyle = "#eee", v.textAlign = "center", v.fillText(c, 50, 27), l.current.textContent = "";
|
|
1532
1532
|
}, [c]);
|
|
1533
1533
|
const h = {};
|
|
1534
1534
|
h.field = "captcha";
|
|
@@ -1540,7 +1540,7 @@ function jn({ value: e, onValue: t, placeholder: r = "", name: s }) {
|
|
|
1540
1540
|
ref: l,
|
|
1541
1541
|
onPaste: f,
|
|
1542
1542
|
onInput: d,
|
|
1543
|
-
onBlur:
|
|
1543
|
+
onBlur: je.Blur,
|
|
1544
1544
|
onKeyDown: u,
|
|
1545
1545
|
contentEditable: "plaintext-only",
|
|
1546
1546
|
suppressContentEditableWarning: !0,
|
|
@@ -1751,16 +1751,16 @@ function Sa(e) {
|
|
|
1751
1751
|
};
|
|
1752
1752
|
}
|
|
1753
1753
|
const Ea = (e) => {
|
|
1754
|
-
function t(
|
|
1755
|
-
var
|
|
1756
|
-
|
|
1757
|
-
for (var
|
|
1758
|
-
|
|
1759
|
-
return
|
|
1754
|
+
function t(k, B) {
|
|
1755
|
+
var M, P, R;
|
|
1756
|
+
k = k ?? "", B = B ?? 1;
|
|
1757
|
+
for (var M = [], R = 0, P = k.length; R < P; )
|
|
1758
|
+
M.push(k.slice(R, R += B));
|
|
1759
|
+
return M;
|
|
1760
1760
|
}
|
|
1761
|
-
function r(
|
|
1762
|
-
var
|
|
1763
|
-
return
|
|
1761
|
+
function r(k, B) {
|
|
1762
|
+
var M = [2, 0, 1, 1, 1, 2];
|
|
1763
|
+
return B[k > 4 && k < 20 ? 2 : M[Math.min(k, 5)]];
|
|
1764
1764
|
}
|
|
1765
1765
|
var s = {
|
|
1766
1766
|
null: "ноль",
|
|
@@ -1824,29 +1824,29 @@ const Ea = (e) => {
|
|
|
1824
1824
|
u3: ["тысяча", "тысячи", "тысяч"],
|
|
1825
1825
|
u2: ["миллион", "миллиона", "миллионов"],
|
|
1826
1826
|
u1: ["миллиард", "миллиарда", "миллиардов"]
|
|
1827
|
-
}, a, i, l, c,
|
|
1827
|
+
}, a, i, l, c, m, u, d, y, f, h, p, g;
|
|
1828
1828
|
f = parseFloat(e).toFixed(2).split("."), u = f[0], c = f[1];
|
|
1829
|
-
var
|
|
1830
|
-
if (
|
|
1829
|
+
var v = 12 - u.length;
|
|
1830
|
+
if (v < 0)
|
|
1831
1831
|
return !1;
|
|
1832
|
-
for (var
|
|
1833
|
-
|
|
1834
|
-
u =
|
|
1835
|
-
var
|
|
1832
|
+
for (var y = []; v--; )
|
|
1833
|
+
y.push("0");
|
|
1834
|
+
u = y.join("") + u;
|
|
1835
|
+
var m = [];
|
|
1836
1836
|
if (u > 0) {
|
|
1837
1837
|
h = t(u, 3);
|
|
1838
|
-
for (var
|
|
1839
|
-
if (d = h[
|
|
1840
|
-
s.a20[i - 2] + (l > 0 ? " " + s[
|
|
1841
|
-
) :
|
|
1842
|
-
i > 0 ? s.a10[l] : s[
|
|
1843
|
-
), h.length >
|
|
1844
|
-
var
|
|
1845
|
-
|
|
1838
|
+
for (var j = -1; j < h.length; j++)
|
|
1839
|
+
if (d = h[j], d > 0 && (p = t(d, 1), a = parseInt(p[0]), i = parseInt(p[1]), l = parseInt(p[2]), m.push(s.a100[a - 1]), g = j + 1 == 3 ? "a2" : "a1", i > 1 ? m.push(
|
|
1840
|
+
s.a20[i - 2] + (l > 0 ? " " + s[g][l - 1] : "")
|
|
1841
|
+
) : m.push(
|
|
1842
|
+
i > 0 ? s.a10[l] : s[g][l - 1]
|
|
1843
|
+
), h.length > j + 1)) {
|
|
1844
|
+
var w = s["u" + (j + 1)];
|
|
1845
|
+
m.push(r(d, w));
|
|
1846
1846
|
}
|
|
1847
1847
|
} else
|
|
1848
|
-
|
|
1849
|
-
return
|
|
1848
|
+
m.push(s.null);
|
|
1849
|
+
return m.push(r(u, s.ur)), m.push(c + " " + r(c, s.uc)), m.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
|
|
1850
1850
|
};
|
|
1851
1851
|
function Ra(e) {
|
|
1852
1852
|
let t = -1, r = [" kB", " MB", " GB", " TB", "PB", "EB", "ZB", "YB"];
|
|
@@ -1990,14 +1990,14 @@ function Ta(e, t, r, s) {
|
|
|
1990
1990
|
if (l.match(/^[А-ЯЁ]\.?$/i))
|
|
1991
1991
|
return l;
|
|
1992
1992
|
this.init();
|
|
1993
|
-
var
|
|
1994
|
-
let
|
|
1995
|
-
return
|
|
1993
|
+
var g = this.rules[u];
|
|
1994
|
+
let v;
|
|
1995
|
+
return g.exceptions && (v = this.pick(l, c, d, g.exceptions, !0), v) ? v : (v = this.pick(l, c, d, g.suffixes, !1), v || l);
|
|
1996
1996
|
},
|
|
1997
1997
|
// выбираем из списка правил первое подходящее и применяем
|
|
1998
1998
|
pick: function(l, c, u, d, f) {
|
|
1999
1999
|
let h = l.toLowerCase();
|
|
2000
|
-
for (var p = 0,
|
|
2000
|
+
for (var p = 0, g = d.length; p < g; p++)
|
|
2001
2001
|
if (this.ruleMatch(h, c, d[p], f))
|
|
2002
2002
|
return this.applyMod(l, u, d[p]);
|
|
2003
2003
|
return !1;
|
|
@@ -2124,7 +2124,7 @@ function Pa(e, t) {
|
|
|
2124
2124
|
return e > 10 && e < 20 ? t[2] : r > 1 && r < 5 ? t[1] : r === 1 ? t[0] : t[2];
|
|
2125
2125
|
}
|
|
2126
2126
|
function Oa(e, t, r) {
|
|
2127
|
-
return
|
|
2127
|
+
return pe(e, t) ? pe(e, t).n : r || "";
|
|
2128
2128
|
}
|
|
2129
2129
|
function La(e, t) {
|
|
2130
2130
|
return e.reduce(function(r, s) {
|
|
@@ -2135,7 +2135,7 @@ function La(e, t) {
|
|
|
2135
2135
|
function Aa(e) {
|
|
2136
2136
|
return parseInt((Date.now() - new Date(e).getTime()) / 31536e6 + "") + "";
|
|
2137
2137
|
}
|
|
2138
|
-
const
|
|
2138
|
+
const ve = {
|
|
2139
2139
|
Age: Aa,
|
|
2140
2140
|
Date: ka,
|
|
2141
2141
|
MoneyString: Ea,
|
|
@@ -2153,33 +2153,42 @@ const je = {
|
|
|
2153
2153
|
Select: Oa,
|
|
2154
2154
|
ObjectByArray: La
|
|
2155
2155
|
};
|
|
2156
|
-
function ht({
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2156
|
+
function ht({
|
|
2157
|
+
label: e,
|
|
2158
|
+
value: t,
|
|
2159
|
+
placeholder: r,
|
|
2160
|
+
onValue: s,
|
|
2161
|
+
name: a,
|
|
2162
|
+
onSave: i
|
|
2163
|
+
}) {
|
|
2164
|
+
const l = "__.__.____", c = new Set("_"), u = ((m) => Array.from(l, (j, w) => c.has(j) ? m = w + 1 : m))(0), d = [...l].findIndex((m) => c.has(m)), f = new RegExp("\\d", "g"), h = (m) => (m = m.match(f) || [], Array.from(
|
|
2165
|
+
l,
|
|
2166
|
+
(j) => (m[0] === j || c.has(j)) && m.shift() || j
|
|
2167
|
+
)), p = (m) => {
|
|
2168
|
+
const [j, w] = [m.target.selectionStart, m.target.selectionEnd].map(
|
|
2169
|
+
(k) => (k = h(m.target.value.slice(0, k)).findIndex(
|
|
2170
|
+
(B) => c.has(B)
|
|
2171
|
+
), k < 0 ? u[u.length - 1] : v ? u[k - 1] || d : k)
|
|
2165
2172
|
);
|
|
2166
|
-
|
|
2173
|
+
m.target.value = h(m.target.value).join(""), m.target.setSelectionRange(j, w), v = !1, s == null || s({ name: a, value: m.target.value });
|
|
2174
|
+
}, g = (m) => {
|
|
2175
|
+
m.target.value = h(m.target.value).join(""), i == null || i({ name: a, value: m.target.value });
|
|
2167
2176
|
};
|
|
2168
|
-
let
|
|
2169
|
-
const
|
|
2170
|
-
return
|
|
2177
|
+
let v = !1;
|
|
2178
|
+
const y = {};
|
|
2179
|
+
return y.field = "input", /* @__PURE__ */ n.jsxs("dl", { ...y, children: [
|
|
2171
2180
|
/* @__PURE__ */ n.jsx("dt", {}),
|
|
2172
2181
|
/* @__PURE__ */ n.jsx("dd", { children: /* @__PURE__ */ n.jsx(
|
|
2173
2182
|
"input",
|
|
2174
2183
|
{
|
|
2175
2184
|
type: "tel",
|
|
2176
2185
|
placeholder: r,
|
|
2177
|
-
onChange:
|
|
2186
|
+
onChange: p,
|
|
2178
2187
|
inputMode: "numeric",
|
|
2179
|
-
onKeyDown: (
|
|
2180
|
-
onFocus:
|
|
2181
|
-
defaultValue:
|
|
2182
|
-
onBlur:
|
|
2188
|
+
onKeyDown: (m) => v = m.key === "Backspace",
|
|
2189
|
+
onFocus: p,
|
|
2190
|
+
defaultValue: ve.Date(t, "dd.mm.yyyy"),
|
|
2191
|
+
onBlur: g
|
|
2183
2192
|
}
|
|
2184
2193
|
) })
|
|
2185
2194
|
] });
|
|
@@ -2188,14 +2197,14 @@ function za({ children: e }) {
|
|
|
2188
2197
|
return /* @__PURE__ */ n.jsx("div", { className: "l", children: /* @__PURE__ */ n.jsx("ul", { children: e }) });
|
|
2189
2198
|
}
|
|
2190
2199
|
function Wa({ children: e }) {
|
|
2191
|
-
return /* @__PURE__ */ n.jsx("div", { className:
|
|
2200
|
+
return /* @__PURE__ */ n.jsx("div", { className: J.s, children: e });
|
|
2192
2201
|
}
|
|
2193
2202
|
function Za({ children: e, className: t }) {
|
|
2194
2203
|
let r = {};
|
|
2195
2204
|
return t && (r.className = t), /* @__PURE__ */ n.jsx("div", { "data-form": "outline", ...r, children: /* @__PURE__ */ n.jsx("ul", { children: e }) });
|
|
2196
2205
|
}
|
|
2197
2206
|
function Ua({ children: e }) {
|
|
2198
|
-
return /* @__PURE__ */ n.jsx("div", { className:
|
|
2207
|
+
return /* @__PURE__ */ n.jsx("div", { className: J.c, children: e });
|
|
2199
2208
|
}
|
|
2200
2209
|
const _n = {
|
|
2201
2210
|
List: za,
|
|
@@ -2223,37 +2232,37 @@ function mt({
|
|
|
2223
2232
|
after: f = "",
|
|
2224
2233
|
view: h,
|
|
2225
2234
|
modal: p,
|
|
2226
|
-
module:
|
|
2227
|
-
options:
|
|
2228
|
-
className:
|
|
2235
|
+
module: g,
|
|
2236
|
+
options: v,
|
|
2237
|
+
className: y
|
|
2229
2238
|
}) {
|
|
2230
|
-
let [
|
|
2239
|
+
let [m, j] = _.useState(e), w = (M) => {
|
|
2231
2240
|
if (!(c && d) || !p)
|
|
2232
2241
|
return;
|
|
2233
|
-
let
|
|
2234
|
-
_n.Open(
|
|
2235
|
-
callback: (
|
|
2236
|
-
t && t({ value:
|
|
2242
|
+
let R = p.split(".");
|
|
2243
|
+
_n.Open(R[1], {
|
|
2244
|
+
callback: (P) => {
|
|
2245
|
+
t && t({ value: P, name: r }), j(P);
|
|
2237
2246
|
},
|
|
2238
2247
|
onValue: t,
|
|
2239
|
-
options:
|
|
2248
|
+
options: v,
|
|
2240
2249
|
name: r,
|
|
2241
2250
|
value: e
|
|
2242
2251
|
});
|
|
2243
2252
|
};
|
|
2244
|
-
const
|
|
2245
|
-
|
|
2246
|
-
const
|
|
2247
|
-
return s && (
|
|
2253
|
+
const k = {};
|
|
2254
|
+
k.field = "input", y && (k.className = y);
|
|
2255
|
+
const B = {};
|
|
2256
|
+
return s && (B.placeholder = s), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...k, children: [
|
|
2248
2257
|
a && /* @__PURE__ */ n.jsx("dt", { children: a }),
|
|
2249
2258
|
/* @__PURE__ */ n.jsx(
|
|
2250
2259
|
"dd",
|
|
2251
2260
|
{
|
|
2252
|
-
...
|
|
2253
|
-
onClick:
|
|
2261
|
+
...B,
|
|
2262
|
+
onClick: w,
|
|
2254
2263
|
edit: (c && d) + "",
|
|
2255
2264
|
"data-after": f,
|
|
2256
|
-
children:
|
|
2265
|
+
children: m
|
|
2257
2266
|
}
|
|
2258
2267
|
),
|
|
2259
2268
|
i && /* @__PURE__ */ n.jsx("em", { children: i })
|
|
@@ -2261,8 +2270,8 @@ function mt({
|
|
|
2261
2270
|
}
|
|
2262
2271
|
function gt(e) {
|
|
2263
2272
|
let t = e.value, r = (h) => e.type === "multi" ? h.replace(/[^+\d.+-]/g, "") : h.replace(/[^+\d.]/g, ""), s = (h, p) => {
|
|
2264
|
-
let
|
|
2265
|
-
|
|
2273
|
+
let g = document.createRange(), v = window.getSelection();
|
|
2274
|
+
g.setStart(p.childNodes[0], h), g.collapse(!0), v.removeAllRanges(), v.addRange(g), p.focus();
|
|
2266
2275
|
}, a = (h) => {
|
|
2267
2276
|
e.onValue({
|
|
2268
2277
|
value: r(h.target.textContent),
|
|
@@ -2272,7 +2281,7 @@ function gt(e) {
|
|
|
2272
2281
|
h.target.textContent === "" && (h.target.textContent = 0), e.onValue({
|
|
2273
2282
|
value: r(h.target.textContent),
|
|
2274
2283
|
name: e.name
|
|
2275
|
-
}), h.target.textContent =
|
|
2284
|
+
}), h.target.textContent = ve.Money(h.target.textContent);
|
|
2276
2285
|
}, l = (h) => {
|
|
2277
2286
|
h.target.textContent = r(h.target.textContent);
|
|
2278
2287
|
}, c = (h) => {
|
|
@@ -2300,7 +2309,7 @@ function gt(e) {
|
|
|
2300
2309
|
contentEditable: !0,
|
|
2301
2310
|
suppressContentEditableWarning: !0,
|
|
2302
2311
|
"e-after": e.after,
|
|
2303
|
-
children:
|
|
2312
|
+
children: ve.Money(t)
|
|
2304
2313
|
}
|
|
2305
2314
|
),
|
|
2306
2315
|
f()
|
|
@@ -2328,18 +2337,18 @@ function Cn({
|
|
|
2328
2337
|
_.useEffect(() => {
|
|
2329
2338
|
h(e);
|
|
2330
2339
|
}, [e]);
|
|
2331
|
-
let p = (
|
|
2332
|
-
h(
|
|
2333
|
-
},
|
|
2340
|
+
let p = (y) => {
|
|
2341
|
+
h(y), t && t({ value: y, name: r });
|
|
2342
|
+
}, g = (y) => {
|
|
2334
2343
|
if (!i || !l)
|
|
2335
2344
|
return;
|
|
2336
|
-
const
|
|
2345
|
+
const m = y.target.getBoundingClientRect(), j = m.left, w = m.top;
|
|
2337
2346
|
ft.setListener(
|
|
2338
2347
|
"form",
|
|
2339
2348
|
/* @__PURE__ */ n.jsx(
|
|
2340
2349
|
Ga,
|
|
2341
2350
|
{
|
|
2342
|
-
position: { x:
|
|
2351
|
+
position: { x: j, y: w },
|
|
2343
2352
|
onValue: p,
|
|
2344
2353
|
date: f
|
|
2345
2354
|
},
|
|
@@ -2347,12 +2356,12 @@ function Cn({
|
|
|
2347
2356
|
)
|
|
2348
2357
|
);
|
|
2349
2358
|
};
|
|
2350
|
-
const
|
|
2351
|
-
return u && (
|
|
2359
|
+
const v = {};
|
|
2360
|
+
return u && (v.placeholder = u), /* @__PURE__ */ n.jsx(n.Fragment, { children: s === "icon" ? /* @__PURE__ */ n.jsx(
|
|
2352
2361
|
"i",
|
|
2353
2362
|
{
|
|
2354
2363
|
"data-icon": "F043",
|
|
2355
|
-
onClick:
|
|
2364
|
+
onClick: g
|
|
2356
2365
|
}
|
|
2357
2366
|
) : /* @__PURE__ */ n.jsxs(
|
|
2358
2367
|
"dl",
|
|
@@ -2362,9 +2371,9 @@ function Cn({
|
|
|
2362
2371
|
/* @__PURE__ */ n.jsx(
|
|
2363
2372
|
"dd",
|
|
2364
2373
|
{
|
|
2365
|
-
onClick:
|
|
2366
|
-
...
|
|
2367
|
-
children:
|
|
2374
|
+
onClick: g,
|
|
2375
|
+
...v,
|
|
2376
|
+
children: ve.Date(f, "mm.yyyy")
|
|
2368
2377
|
}
|
|
2369
2378
|
),
|
|
2370
2379
|
a && /* @__PURE__ */ n.jsx("em", { children: a })
|
|
@@ -2385,9 +2394,9 @@ const Ga = (e) => {
|
|
|
2385
2394
|
u(c + 1);
|
|
2386
2395
|
}, h = () => {
|
|
2387
2396
|
u(c - 1);
|
|
2388
|
-
}, p = (
|
|
2389
|
-
e.onValue(c + "-" +
|
|
2390
|
-
},
|
|
2397
|
+
}, p = (j) => {
|
|
2398
|
+
e.onValue(c + "-" + ve.Number(2, j)), d();
|
|
2399
|
+
}, g = (j) => i.y === l.y && i.m === j ? "_FFEB3B" : "", v = Array(12).fill("").map((j, w) => w + 1), y = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, m = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
|
|
2391
2400
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: t ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2392
2401
|
/* @__PURE__ */ n.jsx(
|
|
2393
2402
|
"div",
|
|
@@ -2401,7 +2410,7 @@ const Ga = (e) => {
|
|
|
2401
2410
|
"div",
|
|
2402
2411
|
{
|
|
2403
2412
|
className: Ht.c,
|
|
2404
|
-
style: { top:
|
|
2413
|
+
style: { top: y + "px", left: m + "px" },
|
|
2405
2414
|
children: [
|
|
2406
2415
|
/* @__PURE__ */ n.jsxs("s", { children: [
|
|
2407
2416
|
/* @__PURE__ */ n.jsx("i", { "data-icon": "F021", onClick: () => h() }),
|
|
@@ -2411,16 +2420,16 @@ const Ga = (e) => {
|
|
|
2411
2420
|
/* @__PURE__ */ n.jsx(
|
|
2412
2421
|
"div",
|
|
2413
2422
|
{
|
|
2414
|
-
children:
|
|
2423
|
+
children: v.map((j, w) => /* @__PURE__ */ n.jsx(
|
|
2415
2424
|
"span",
|
|
2416
2425
|
{
|
|
2417
2426
|
onClick: () => {
|
|
2418
|
-
p(
|
|
2427
|
+
p(j);
|
|
2419
2428
|
},
|
|
2420
|
-
color:
|
|
2421
|
-
children: /* @__PURE__ */ n.jsx("b", { children:
|
|
2429
|
+
color: g(j),
|
|
2430
|
+
children: /* @__PURE__ */ n.jsx("b", { children: ve.Month(j).abc })
|
|
2422
2431
|
},
|
|
2423
|
-
|
|
2432
|
+
w
|
|
2424
2433
|
))
|
|
2425
2434
|
}
|
|
2426
2435
|
)
|
|
@@ -2432,31 +2441,31 @@ const Ga = (e) => {
|
|
|
2432
2441
|
function wn(e) {
|
|
2433
2442
|
let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", r = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", [s, a] = _.useState(!1), i = e.edit !== void 0 ? e.edit : !0, l = e.active !== void 0 ? e.active : !0, u = !!(e.hide && (e.value === "" || e.value === void 0)) && !(i && l);
|
|
2434
2443
|
s = i ? !0 : s;
|
|
2435
|
-
let d = e.placeholder !== void 0 ? e.placeholder : "Заметка пуста", f = (
|
|
2436
|
-
e.onValue && e.onValue({ value:
|
|
2437
|
-
}, h = (
|
|
2438
|
-
|
|
2439
|
-
window.document.execCommand("insertText", !1,
|
|
2440
|
-
}).catch((
|
|
2444
|
+
let d = e.placeholder !== void 0 ? e.placeholder : "Заметка пуста", f = (m) => {
|
|
2445
|
+
e.onValue && e.onValue({ value: m.target.innerText, name: e.name });
|
|
2446
|
+
}, h = (m) => {
|
|
2447
|
+
m.preventDefault(), navigator.clipboard.readText().then((j) => {
|
|
2448
|
+
window.document.execCommand("insertText", !1, j);
|
|
2449
|
+
}).catch((j) => {
|
|
2441
2450
|
});
|
|
2442
|
-
}, p = (
|
|
2451
|
+
}, p = (m) => {
|
|
2443
2452
|
i || a(!s);
|
|
2444
2453
|
};
|
|
2445
|
-
const
|
|
2446
|
-
e.onSave && e.onSave({ value:
|
|
2447
|
-
},
|
|
2448
|
-
|
|
2449
|
-
const
|
|
2450
|
-
return d && (
|
|
2454
|
+
const g = (m) => {
|
|
2455
|
+
e.onSave && e.onSave({ value: m.target.innerText, name: e.name });
|
|
2456
|
+
}, v = {};
|
|
2457
|
+
v.field = "notes", e.className && (v.className = e.className);
|
|
2458
|
+
const y = {};
|
|
2459
|
+
return d && (y.placeholder = d), s && (y.open = ""), i && l && (y.edit = ""), u ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...v, children: [
|
|
2451
2460
|
t(),
|
|
2452
2461
|
/* @__PURE__ */ n.jsx(
|
|
2453
2462
|
"dd",
|
|
2454
2463
|
{
|
|
2455
2464
|
onPaste: h,
|
|
2456
2465
|
onInput: f,
|
|
2457
|
-
onBlur:
|
|
2466
|
+
onBlur: g,
|
|
2458
2467
|
contentEditable: i && l ? "plaintext-only" : "false",
|
|
2459
|
-
...
|
|
2468
|
+
...y,
|
|
2460
2469
|
onDoubleClick: p,
|
|
2461
2470
|
suppressContentEditableWarning: !0,
|
|
2462
2471
|
children: e.value
|
|
@@ -2479,17 +2488,17 @@ function xt({
|
|
|
2479
2488
|
hide: f,
|
|
2480
2489
|
placeholder: h,
|
|
2481
2490
|
className: p,
|
|
2482
|
-
after:
|
|
2483
|
-
view:
|
|
2491
|
+
after: g,
|
|
2492
|
+
view: v
|
|
2484
2493
|
}) {
|
|
2485
2494
|
l = l !== void 0 ? l : !0, a = a !== void 0 ? a : !0, f = !!(f && (r === "" || r === void 0)) && !(l && a), h = h !== void 0 ? h : "", i = i !== void 0 ? i : 99;
|
|
2486
|
-
let
|
|
2487
|
-
e == null || e({ name: s, value:
|
|
2495
|
+
let m = (k) => {
|
|
2496
|
+
e == null || e({ name: s, value: k.currentTarget.value });
|
|
2488
2497
|
};
|
|
2489
|
-
const
|
|
2490
|
-
t == null || t({ name: s, value:
|
|
2491
|
-
},
|
|
2492
|
-
return
|
|
2498
|
+
const j = (k) => {
|
|
2499
|
+
t == null || t({ name: s, value: k.currentTarget.value });
|
|
2500
|
+
}, w = {};
|
|
2501
|
+
return w.field = "input", p && (w.className = p), f ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...w, children: [
|
|
2493
2502
|
c && /* @__PURE__ */ n.jsx("dt", { children: c }),
|
|
2494
2503
|
/* @__PURE__ */ n.jsx("dd", { children: /* @__PURE__ */ n.jsx(
|
|
2495
2504
|
"input",
|
|
@@ -2497,8 +2506,8 @@ function xt({
|
|
|
2497
2506
|
name: s,
|
|
2498
2507
|
type: "tel",
|
|
2499
2508
|
inputMode: "numeric",
|
|
2500
|
-
onChange:
|
|
2501
|
-
onBlur:
|
|
2509
|
+
onChange: m,
|
|
2510
|
+
onBlur: j,
|
|
2502
2511
|
placeholder: h,
|
|
2503
2512
|
defaultValue: r
|
|
2504
2513
|
}
|
|
@@ -2519,38 +2528,38 @@ function kn({
|
|
|
2519
2528
|
reload: d = !1,
|
|
2520
2529
|
after: f = ""
|
|
2521
2530
|
}) {
|
|
2522
|
-
let h = (
|
|
2531
|
+
let h = (m) => {
|
|
2523
2532
|
t && t({
|
|
2524
|
-
value:
|
|
2533
|
+
value: m.target.textContent,
|
|
2525
2534
|
name: r,
|
|
2526
2535
|
reload: d
|
|
2527
2536
|
});
|
|
2528
|
-
}, p = (
|
|
2529
|
-
|
|
2530
|
-
},
|
|
2531
|
-
|
|
2537
|
+
}, p = (m) => {
|
|
2538
|
+
m.key === "Enter" && m.preventDefault();
|
|
2539
|
+
}, g = (m) => {
|
|
2540
|
+
m.preventDefault(), navigator.clipboard.readText().then((j) => {
|
|
2532
2541
|
window.document.execCommand(
|
|
2533
2542
|
"insertText",
|
|
2534
2543
|
!1,
|
|
2535
|
-
|
|
2544
|
+
j.replace(/(\r\n|\n|\r)/gm, " ")
|
|
2536
2545
|
);
|
|
2537
|
-
}).catch((
|
|
2546
|
+
}).catch((j) => {
|
|
2538
2547
|
});
|
|
2539
2548
|
};
|
|
2540
|
-
const
|
|
2541
|
-
|
|
2542
|
-
const
|
|
2543
|
-
return s && (
|
|
2549
|
+
const v = {};
|
|
2550
|
+
v.field = "password", a && (v.className = a);
|
|
2551
|
+
const y = {};
|
|
2552
|
+
return s && (y.placeholder = s), /* @__PURE__ */ n.jsxs("dl", { ...v, children: [
|
|
2544
2553
|
i ? /* @__PURE__ */ n.jsx("dt", { children: i }) : "",
|
|
2545
2554
|
/* @__PURE__ */ n.jsx(
|
|
2546
2555
|
"dd",
|
|
2547
2556
|
{
|
|
2548
|
-
onPaste:
|
|
2557
|
+
onPaste: g,
|
|
2549
2558
|
onInput: h,
|
|
2550
2559
|
onKeyDown: p,
|
|
2551
|
-
onBlur:
|
|
2560
|
+
onBlur: je.Blur,
|
|
2552
2561
|
contentEditable: c && u ? "plaintext-only" : "false",
|
|
2553
|
-
...
|
|
2562
|
+
...y,
|
|
2554
2563
|
suppressContentEditableWarning: !0,
|
|
2555
2564
|
children: e
|
|
2556
2565
|
}
|
|
@@ -2564,53 +2573,45 @@ function pt({
|
|
|
2564
2573
|
value: r,
|
|
2565
2574
|
name: s,
|
|
2566
2575
|
active: a,
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
placeholder: h,
|
|
2574
|
-
className: p,
|
|
2575
|
-
after: m,
|
|
2576
|
-
view: x
|
|
2576
|
+
edit: i,
|
|
2577
|
+
title: l,
|
|
2578
|
+
error: c,
|
|
2579
|
+
hide: u,
|
|
2580
|
+
placeholder: d,
|
|
2581
|
+
className: f
|
|
2577
2582
|
}) {
|
|
2578
|
-
|
|
2579
|
-
const
|
|
2580
|
-
|
|
2581
|
-
(P) => (
|
|
2582
|
-
)),
|
|
2583
|
-
const [P,
|
|
2584
|
-
(
|
|
2585
|
-
(
|
|
2586
|
-
),
|
|
2587
|
-
);
|
|
2588
|
-
k.target.value = D(k.target.value).join(""), k.target.setSelectionRange(P, X), ee = !1, e == null || e({ name: s, value: k.target.value });
|
|
2589
|
-
}, Z = (k) => {
|
|
2590
|
-
const [P, X] = [k.target.selectionStart, k.target.selectionEnd].map(
|
|
2591
|
-
($) => ($ = D(k.target.value.slice(0, $)).findIndex(
|
|
2592
|
-
(q) => b.has(q)
|
|
2593
|
-
), $ < 0 ? C[C.length - 1] : ee ? C[$ - 1] || R : $)
|
|
2583
|
+
i = i !== void 0 ? i : !0, a = a !== void 0 ? a : !0, u = !!(u && (r === "" || r === void 0)) && !(i && a), d = d || "";
|
|
2584
|
+
const p = "+7__________", g = new Set("_"), v = ((R) => Array.from(p, (P, ee) => g.has(P) ? R = ee + 1 : R))(0), y = [...p].findIndex((R) => g.has(R)), m = new RegExp("\\d", "g"), j = (R) => (R = R.match(m) || [], Array.from(
|
|
2585
|
+
p,
|
|
2586
|
+
(P) => (R[0] === P || g.has(P)) && R.shift() || P
|
|
2587
|
+
)), w = (R) => {
|
|
2588
|
+
const [P, ee] = [R.target.selectionStart, R.target.selectionEnd].map(
|
|
2589
|
+
(O) => (O = j(R.target.value.slice(0, O)).findIndex(
|
|
2590
|
+
(D) => g.has(D)
|
|
2591
|
+
), O < 0 ? v[v.length - 1] : B ? v[O - 1] || y : O)
|
|
2594
2592
|
);
|
|
2595
|
-
|
|
2593
|
+
R.target.value = j(R.target.value).join(""), R.target.setSelectionRange(P, ee), B = !1, e == null || e({ name: s, value: R.target.value.match(/\d+/g)[0] });
|
|
2594
|
+
}, k = (R) => {
|
|
2595
|
+
R.target.value = j(R.target.value).join(""), t == null || t({ name: s, value: R.target.value.match(/\d+/g)[0] });
|
|
2596
2596
|
};
|
|
2597
|
-
let
|
|
2598
|
-
const
|
|
2599
|
-
return
|
|
2600
|
-
|
|
2597
|
+
let B = !1;
|
|
2598
|
+
const M = {};
|
|
2599
|
+
return M.field = "input", f && (M.className = f), u ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...M, children: [
|
|
2600
|
+
l && /* @__PURE__ */ n.jsx("dt", { children: l }),
|
|
2601
2601
|
/* @__PURE__ */ n.jsx("dd", { children: /* @__PURE__ */ n.jsx(
|
|
2602
2602
|
"input",
|
|
2603
2603
|
{
|
|
2604
2604
|
name: s,
|
|
2605
2605
|
type: "tel",
|
|
2606
2606
|
inputMode: "numeric",
|
|
2607
|
-
onChange:
|
|
2608
|
-
|
|
2609
|
-
|
|
2607
|
+
onChange: w,
|
|
2608
|
+
onFocus: w,
|
|
2609
|
+
onBlur: k,
|
|
2610
|
+
placeholder: d,
|
|
2610
2611
|
defaultValue: r
|
|
2611
2612
|
}
|
|
2612
2613
|
) }),
|
|
2613
|
-
|
|
2614
|
+
c && /* @__PURE__ */ n.jsx("em", { children: c })
|
|
2614
2615
|
] });
|
|
2615
2616
|
}
|
|
2616
2617
|
const Sn = (e) => {
|
|
@@ -2663,24 +2664,24 @@ function vt({
|
|
|
2663
2664
|
view: h,
|
|
2664
2665
|
className: p
|
|
2665
2666
|
}) {
|
|
2666
|
-
var
|
|
2667
|
-
const
|
|
2668
|
-
let
|
|
2669
|
-
|
|
2667
|
+
var w;
|
|
2668
|
+
const g = _.useId(), [v, y] = _.useState((w = c[parseInt(i)]) == null ? void 0 : w.n);
|
|
2669
|
+
let m = (k) => {
|
|
2670
|
+
y(c[k.target.value].n), l == null || l({ name: d, value: k.target.value });
|
|
2670
2671
|
};
|
|
2671
|
-
const
|
|
2672
|
-
return
|
|
2672
|
+
const j = {};
|
|
2673
|
+
return j.field = "select", p && (j.className = p), /* @__PURE__ */ n.jsxs("dl", { ...j, children: [
|
|
2673
2674
|
e ? /* @__PURE__ */ n.jsx("dt", { children: e }) : "",
|
|
2674
2675
|
/* @__PURE__ */ n.jsxs("dd", { children: [
|
|
2675
|
-
|
|
2676
|
+
v,
|
|
2676
2677
|
/* @__PURE__ */ n.jsx(
|
|
2677
2678
|
"select",
|
|
2678
2679
|
{
|
|
2679
2680
|
name: d,
|
|
2680
|
-
id:
|
|
2681
|
+
id: g,
|
|
2681
2682
|
defaultValue: i + "",
|
|
2682
|
-
onChange:
|
|
2683
|
-
children: Object.keys(c).map((
|
|
2683
|
+
onChange: m,
|
|
2684
|
+
children: Object.keys(c).map((k) => /* @__PURE__ */ n.jsx("option", { value: k, children: c[k].n }, k))
|
|
2684
2685
|
}
|
|
2685
2686
|
)
|
|
2686
2687
|
] })
|
|
@@ -2700,36 +2701,36 @@ function jt({
|
|
|
2700
2701
|
show: f = !0,
|
|
2701
2702
|
view: h,
|
|
2702
2703
|
onSave: p,
|
|
2703
|
-
className:
|
|
2704
|
+
className: g = ""
|
|
2704
2705
|
}) {
|
|
2705
|
-
let
|
|
2706
|
-
t == null || t({ value:
|
|
2707
|
-
},
|
|
2708
|
-
|
|
2706
|
+
let v = !!(l && (e === "" || e === void 0)), y = (B) => {
|
|
2707
|
+
t == null || t({ value: B.target.value, name: r });
|
|
2708
|
+
}, m = (B) => {
|
|
2709
|
+
B.preventDefault(), navigator.clipboard.readText().then((M) => {
|
|
2709
2710
|
window.document.execCommand(
|
|
2710
2711
|
"insertText",
|
|
2711
2712
|
!1,
|
|
2712
|
-
|
|
2713
|
+
M.replace(/(\r\n|\n|\r)/gm, " ")
|
|
2713
2714
|
);
|
|
2714
|
-
}).catch((
|
|
2715
|
+
}).catch((M) => {
|
|
2715
2716
|
});
|
|
2716
|
-
},
|
|
2717
|
-
|
|
2717
|
+
}, j = (B) => {
|
|
2718
|
+
B.preventDefault(), navigator.clipboard.writeText(B.target.value).then(
|
|
2718
2719
|
function() {
|
|
2719
2720
|
at.Copy("Данные в буфер обмене");
|
|
2720
2721
|
},
|
|
2721
|
-
function(
|
|
2722
|
+
function(M) {
|
|
2722
2723
|
}
|
|
2723
2724
|
);
|
|
2724
2725
|
};
|
|
2725
|
-
if (!(c && u) && !f || !(c && u) &&
|
|
2726
|
+
if (!(c && u) && !f || !(c && u) && v)
|
|
2726
2727
|
return "";
|
|
2727
|
-
const
|
|
2728
|
-
|
|
2729
|
-
const
|
|
2730
|
-
p == null || p({ value:
|
|
2728
|
+
const w = {};
|
|
2729
|
+
w.field = "input", g && (w.className = g);
|
|
2730
|
+
const k = (B) => {
|
|
2731
|
+
p == null || p({ value: B.target.value, name: r });
|
|
2731
2732
|
};
|
|
2732
|
-
return /* @__PURE__ */ n.jsxs("dl", { ...
|
|
2733
|
+
return /* @__PURE__ */ n.jsxs("dl", { ...w, children: [
|
|
2733
2734
|
a ? /* @__PURE__ */ n.jsx("dt", { children: a }) : "",
|
|
2734
2735
|
/* @__PURE__ */ n.jsx("dd", { children: /* @__PURE__ */ n.jsx(
|
|
2735
2736
|
"input",
|
|
@@ -2737,10 +2738,10 @@ function jt({
|
|
|
2737
2738
|
name: r,
|
|
2738
2739
|
autoComplete: "off",
|
|
2739
2740
|
type: "text",
|
|
2740
|
-
onChange:
|
|
2741
|
-
onPaste:
|
|
2742
|
-
onBlur:
|
|
2743
|
-
onContextMenu:
|
|
2741
|
+
onChange: y,
|
|
2742
|
+
onPaste: m,
|
|
2743
|
+
onBlur: k,
|
|
2744
|
+
onContextMenu: j,
|
|
2744
2745
|
placeholder: s,
|
|
2745
2746
|
defaultValue: e,
|
|
2746
2747
|
spellCheck: "false"
|
|
@@ -2750,20 +2751,20 @@ function jt({
|
|
|
2750
2751
|
] });
|
|
2751
2752
|
}
|
|
2752
2753
|
function bt(e) {
|
|
2753
|
-
let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", r = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", s = e.edit !== void 0 ? e.edit : !0, a = e.active !== void 0 ? e.active : !0, l = !!(e.hide && (e.default === "" || e.options[e.default] === void 0)) && !(s && a), c = e.placeholder !== void 0 ? e.placeholder : "", u = (
|
|
2754
|
-
f(e.options[
|
|
2754
|
+
let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", r = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", s = e.edit !== void 0 ? e.edit : !0, a = e.active !== void 0 ? e.active : !0, l = !!(e.hide && (e.default === "" || e.options[e.default] === void 0)) && !(s && a), c = e.placeholder !== void 0 ? e.placeholder : "", u = (g) => {
|
|
2755
|
+
f(e.options[g]), e.onValue({ value: g, name: e.name });
|
|
2755
2756
|
}, [d, f] = _.useState(
|
|
2756
2757
|
e.default !== void 0 ? e.options[e.default] : e.default
|
|
2757
|
-
), h = (
|
|
2758
|
+
), h = (g) => {
|
|
2758
2759
|
if (!(s && a))
|
|
2759
2760
|
return;
|
|
2760
|
-
const
|
|
2761
|
+
const v = g.target.getBoundingClientRect();
|
|
2761
2762
|
ft.setListener(
|
|
2762
2763
|
"form",
|
|
2763
2764
|
/* @__PURE__ */ n.jsx(
|
|
2764
2765
|
Ha,
|
|
2765
2766
|
{
|
|
2766
|
-
parent:
|
|
2767
|
+
parent: v,
|
|
2767
2768
|
onValue: u,
|
|
2768
2769
|
view: e.view,
|
|
2769
2770
|
options: e.options
|
|
@@ -2845,11 +2846,11 @@ function it({
|
|
|
2845
2846
|
active: f = !0,
|
|
2846
2847
|
after: h = "",
|
|
2847
2848
|
view: p,
|
|
2848
|
-
module:
|
|
2849
|
-
item:
|
|
2850
|
-
className:
|
|
2849
|
+
module: g,
|
|
2850
|
+
item: v,
|
|
2851
|
+
className: y = ""
|
|
2851
2852
|
}) {
|
|
2852
|
-
let
|
|
2853
|
+
let m = {};
|
|
2853
2854
|
switch (e) {
|
|
2854
2855
|
case "String":
|
|
2855
2856
|
return /* @__PURE__ */ n.jsx(
|
|
@@ -2865,11 +2866,11 @@ function it({
|
|
|
2865
2866
|
onValue: r,
|
|
2866
2867
|
name: s,
|
|
2867
2868
|
placeholder: a,
|
|
2868
|
-
className:
|
|
2869
|
+
className: y
|
|
2869
2870
|
}
|
|
2870
2871
|
);
|
|
2871
2872
|
case "Select":
|
|
2872
|
-
return
|
|
2873
|
+
return v && (m = ae.getSelect(parseInt(v)) ? ae.getSelect(parseInt(v)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ n.jsx(
|
|
2873
2874
|
vt,
|
|
2874
2875
|
{
|
|
2875
2876
|
title: i,
|
|
@@ -2882,12 +2883,12 @@ function it({
|
|
|
2882
2883
|
onValue: r,
|
|
2883
2884
|
name: s,
|
|
2884
2885
|
placeholder: a,
|
|
2885
|
-
className:
|
|
2886
|
-
options:
|
|
2886
|
+
className: y,
|
|
2887
|
+
options: m
|
|
2887
2888
|
}
|
|
2888
2889
|
);
|
|
2889
2890
|
case "Users":
|
|
2890
|
-
return
|
|
2891
|
+
return ae.getSelect("user"), /* @__PURE__ */ n.jsx(
|
|
2891
2892
|
bt,
|
|
2892
2893
|
{
|
|
2893
2894
|
title: i,
|
|
@@ -2900,8 +2901,8 @@ function it({
|
|
|
2900
2901
|
onValue: r,
|
|
2901
2902
|
name: s,
|
|
2902
2903
|
placeholder: a,
|
|
2903
|
-
className:
|
|
2904
|
-
options:
|
|
2904
|
+
className: y,
|
|
2905
|
+
options: m
|
|
2905
2906
|
}
|
|
2906
2907
|
);
|
|
2907
2908
|
case "Date":
|
|
@@ -2918,7 +2919,7 @@ function it({
|
|
|
2918
2919
|
onValue: r,
|
|
2919
2920
|
name: s,
|
|
2920
2921
|
placeholder: a,
|
|
2921
|
-
className:
|
|
2922
|
+
className: y
|
|
2922
2923
|
}
|
|
2923
2924
|
);
|
|
2924
2925
|
case "Phone":
|
|
@@ -2935,7 +2936,7 @@ function it({
|
|
|
2935
2936
|
onValue: r,
|
|
2936
2937
|
name: s,
|
|
2937
2938
|
placeholder: a,
|
|
2938
|
-
className:
|
|
2939
|
+
className: y
|
|
2939
2940
|
}
|
|
2940
2941
|
);
|
|
2941
2942
|
case "Number":
|
|
@@ -2952,7 +2953,7 @@ function it({
|
|
|
2952
2953
|
onValue: r,
|
|
2953
2954
|
name: s,
|
|
2954
2955
|
placeholder: a,
|
|
2955
|
-
className:
|
|
2956
|
+
className: y
|
|
2956
2957
|
}
|
|
2957
2958
|
);
|
|
2958
2959
|
case "Money":
|
|
@@ -2969,7 +2970,7 @@ function it({
|
|
|
2969
2970
|
onValue: r,
|
|
2970
2971
|
name: s,
|
|
2971
2972
|
placeholder: a,
|
|
2972
|
-
className:
|
|
2973
|
+
className: y
|
|
2973
2974
|
}
|
|
2974
2975
|
);
|
|
2975
2976
|
case "Modal":
|
|
@@ -2986,9 +2987,9 @@ function it({
|
|
|
2986
2987
|
onValue: r,
|
|
2987
2988
|
name: s || "",
|
|
2988
2989
|
placeholder: a,
|
|
2989
|
-
className:
|
|
2990
|
-
options:
|
|
2991
|
-
module:
|
|
2990
|
+
className: y,
|
|
2991
|
+
options: m,
|
|
2992
|
+
module: g || ""
|
|
2992
2993
|
}
|
|
2993
2994
|
);
|
|
2994
2995
|
}
|
|
@@ -3007,33 +3008,33 @@ function En({
|
|
|
3007
3008
|
show: f = !0,
|
|
3008
3009
|
view: h,
|
|
3009
3010
|
onBlur: p,
|
|
3010
|
-
onSave:
|
|
3011
|
-
className:
|
|
3011
|
+
onSave: g,
|
|
3012
|
+
className: v = ""
|
|
3012
3013
|
}) {
|
|
3013
|
-
let
|
|
3014
|
-
if (!(c && u) && !f || !(c && u) &&
|
|
3014
|
+
let y = !!(l && (e === "" || e === void 0));
|
|
3015
|
+
if (!(c && u) && !f || !(c && u) && y)
|
|
3015
3016
|
return "";
|
|
3016
|
-
let
|
|
3017
|
-
t && t({ value:
|
|
3018
|
-
},
|
|
3019
|
-
|
|
3020
|
-
},
|
|
3021
|
-
|
|
3022
|
-
window.document.execCommand("insertText", !1,
|
|
3023
|
-
}).catch((
|
|
3017
|
+
let m = (B) => {
|
|
3018
|
+
t && t({ value: B.target.innerText, name: r });
|
|
3019
|
+
}, j = (B) => {
|
|
3020
|
+
g && g({ value: B.target.innerText, name: r });
|
|
3021
|
+
}, w = (B) => {
|
|
3022
|
+
B.preventDefault(), navigator.clipboard.readText().then((M) => {
|
|
3023
|
+
window.document.execCommand("insertText", !1, M);
|
|
3024
|
+
}).catch((M) => {
|
|
3024
3025
|
});
|
|
3025
3026
|
};
|
|
3026
|
-
const
|
|
3027
|
-
return s && (
|
|
3027
|
+
const k = {};
|
|
3028
|
+
return s && (k.placeholder = s), /* @__PURE__ */ n.jsxs("dl", { children: [
|
|
3028
3029
|
a ?? /* @__PURE__ */ n.jsx("dt", { children: a }),
|
|
3029
3030
|
/* @__PURE__ */ n.jsx(
|
|
3030
3031
|
"dd",
|
|
3031
3032
|
{
|
|
3032
|
-
onPaste:
|
|
3033
|
-
onBlur:
|
|
3034
|
-
onInput:
|
|
3033
|
+
onPaste: w,
|
|
3034
|
+
onBlur: j,
|
|
3035
|
+
onInput: m,
|
|
3035
3036
|
contentEditable: c && u ? "plaintext-only" : "false",
|
|
3036
|
-
...
|
|
3037
|
+
...k,
|
|
3037
3038
|
suppressContentEditableWarning: !0,
|
|
3038
3039
|
children: e
|
|
3039
3040
|
}
|
|
@@ -3055,39 +3056,39 @@ function Rn({
|
|
|
3055
3056
|
show: f = !0,
|
|
3056
3057
|
view: h,
|
|
3057
3058
|
onBlur: p,
|
|
3058
|
-
onSave:
|
|
3059
|
-
className:
|
|
3059
|
+
onSave: g,
|
|
3060
|
+
className: v = ""
|
|
3060
3061
|
}) {
|
|
3061
|
-
let
|
|
3062
|
-
if (
|
|
3062
|
+
let y = !!(l && (e === "" || e === void 0));
|
|
3063
|
+
if (ve.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), _.useRef(null), !(c && u) && !f || !(c && u) && y)
|
|
3063
3064
|
return "";
|
|
3064
|
-
const
|
|
3065
|
-
|
|
3066
|
-
(
|
|
3067
|
-
)),
|
|
3068
|
-
const [
|
|
3069
|
-
(
|
|
3070
|
-
(
|
|
3071
|
-
),
|
|
3065
|
+
const m = "__:__", j = new Set("_"), w = ((D) => Array.from(m, (V, be) => j.has(V) ? D = be + 1 : D))(0), k = [...m].findIndex((D) => j.has(D)), B = new RegExp("\\d", "g"), M = (D) => (D = D.match(B) || [], Array.from(
|
|
3066
|
+
m,
|
|
3067
|
+
(V) => (D[0] === V || j.has(V)) && D.shift() || V
|
|
3068
|
+
)), R = (D) => {
|
|
3069
|
+
const [V, be] = [D.target.selectionStart, D.target.selectionEnd].map(
|
|
3070
|
+
(U) => (U = M(D.target.value.slice(0, U)).findIndex(
|
|
3071
|
+
(re) => j.has(re)
|
|
3072
|
+
), U < 0 ? w[w.length - 1] : O ? w[U - 1] || k : U)
|
|
3072
3073
|
);
|
|
3073
|
-
|
|
3074
|
-
},
|
|
3075
|
-
|
|
3074
|
+
D.target.value = M(D.target.value).join(""), D.target.setSelectionRange(V, be), t == null || t({ name: r, value: D.target.value });
|
|
3075
|
+
}, P = {};
|
|
3076
|
+
P.field = "input", v && (P.className = v);
|
|
3076
3077
|
const ee = {};
|
|
3077
3078
|
s && (ee.placeholder = s);
|
|
3078
3079
|
let O = !1;
|
|
3079
|
-
return /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs("dl", { ...
|
|
3080
|
+
return /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs("dl", { ...P, children: [
|
|
3080
3081
|
a ? /* @__PURE__ */ n.jsx("dt", { children: a }) : "",
|
|
3081
3082
|
/* @__PURE__ */ n.jsx("dd", { ...ee, children: /* @__PURE__ */ n.jsx(
|
|
3082
3083
|
"input",
|
|
3083
3084
|
{
|
|
3084
3085
|
type: "tel",
|
|
3085
3086
|
placeholder: s,
|
|
3086
|
-
onChange:
|
|
3087
|
+
onChange: R,
|
|
3087
3088
|
inputMode: "numeric",
|
|
3088
|
-
onKeyDown: (
|
|
3089
|
-
onFocus:
|
|
3090
|
-
onBlur: (
|
|
3089
|
+
onKeyDown: (D) => O = D.key === "Backspace",
|
|
3090
|
+
onFocus: R,
|
|
3091
|
+
onBlur: (D) => D.target.value === m && (D.target.value = "")
|
|
3091
3092
|
}
|
|
3092
3093
|
) }),
|
|
3093
3094
|
i ? /* @__PURE__ */ n.jsx("em", { children: i }) : ""
|
|
@@ -3145,37 +3146,37 @@ function In({
|
|
|
3145
3146
|
show: f = !0,
|
|
3146
3147
|
view: h,
|
|
3147
3148
|
onBlur: p,
|
|
3148
|
-
onSave:
|
|
3149
|
-
className:
|
|
3149
|
+
onSave: g,
|
|
3150
|
+
className: v = ""
|
|
3150
3151
|
}) {
|
|
3151
|
-
const [
|
|
3152
|
+
const [y, m] = _.useState(
|
|
3152
3153
|
e !== void 0 ? e.split(",") : []
|
|
3153
3154
|
);
|
|
3154
3155
|
_.useEffect(() => {
|
|
3155
|
-
e !== void 0 &&
|
|
3156
|
+
e !== void 0 && m(e !== void 0 ? e.split(",") : []);
|
|
3156
3157
|
}, [e]);
|
|
3157
|
-
let
|
|
3158
|
-
|
|
3159
|
-
},
|
|
3160
|
-
|
|
3161
|
-
},
|
|
3158
|
+
let j = () => {
|
|
3159
|
+
m([...y, ""]);
|
|
3160
|
+
}, w = (O) => {
|
|
3161
|
+
y.splice(O, 1), y.length === 0 && y.push(""), m([...y]), p !== void 0 && p({ value: y.join(","), name: r });
|
|
3162
|
+
}, k = !!(l && (e === "" || e === void 0)), B = (O) => {
|
|
3162
3163
|
};
|
|
3163
|
-
if (!(c && u) && !f || !(c && u) &&
|
|
3164
|
+
if (!(c && u) && !f || !(c && u) && k)
|
|
3164
3165
|
return "";
|
|
3165
|
-
const
|
|
3166
|
-
|
|
3167
|
-
const
|
|
3168
|
-
|
|
3166
|
+
const M = {};
|
|
3167
|
+
M.field = "group", v && (M.className = v);
|
|
3168
|
+
const R = (O) => {
|
|
3169
|
+
je.Blur(O), g && g({ value: O.target.textContent, name: r });
|
|
3169
3170
|
};
|
|
3170
|
-
let
|
|
3171
|
-
|
|
3171
|
+
let P = (O, D) => {
|
|
3172
|
+
y[D] = O.target.textContent, t !== void 0 && t({ value: y.join(","), name: r });
|
|
3172
3173
|
}, ee = (O) => {
|
|
3173
3174
|
O.key === "Enter" && O.preventDefault();
|
|
3174
3175
|
};
|
|
3175
|
-
return /* @__PURE__ */ n.jsxs("dl", { ...
|
|
3176
|
+
return /* @__PURE__ */ n.jsxs("dl", { ...M, children: [
|
|
3176
3177
|
/* @__PURE__ */ n.jsxs("dt", { children: [
|
|
3177
3178
|
a,
|
|
3178
|
-
/* @__PURE__ */ n.jsx("i", { onClick:
|
|
3179
|
+
/* @__PURE__ */ n.jsx("i", { onClick: j, children: /* @__PURE__ */ n.jsxs(
|
|
3179
3180
|
"svg",
|
|
3180
3181
|
{
|
|
3181
3182
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3192,27 +3193,27 @@ function In({
|
|
|
3192
3193
|
}
|
|
3193
3194
|
) })
|
|
3194
3195
|
] }),
|
|
3195
|
-
/* @__PURE__ */ n.jsx("dd", { children:
|
|
3196
|
+
/* @__PURE__ */ n.jsx("dd", { children: y.map((O, D) => /* @__PURE__ */ n.jsxs("li", { className: "field_group_item", children: [
|
|
3196
3197
|
/* @__PURE__ */ n.jsx(
|
|
3197
3198
|
"span",
|
|
3198
3199
|
{
|
|
3199
|
-
onInput: (
|
|
3200
|
+
onInput: (V) => P(V, D),
|
|
3200
3201
|
edit: "true",
|
|
3201
3202
|
name: r,
|
|
3202
3203
|
placeholder: s,
|
|
3203
|
-
onPaste:
|
|
3204
|
+
onPaste: B,
|
|
3204
3205
|
contentEditable: !0,
|
|
3205
3206
|
onKeyDown: ee,
|
|
3206
|
-
onBlur:
|
|
3207
|
+
onBlur: R,
|
|
3207
3208
|
suppressContentEditableWarning: !0,
|
|
3208
|
-
children:
|
|
3209
|
+
children: y[D]
|
|
3209
3210
|
}
|
|
3210
3211
|
),
|
|
3211
3212
|
/* @__PURE__ */ n.jsx(
|
|
3212
3213
|
"i",
|
|
3213
3214
|
{
|
|
3214
3215
|
onClick: () => {
|
|
3215
|
-
|
|
3216
|
+
w(D);
|
|
3216
3217
|
},
|
|
3217
3218
|
children: /* @__PURE__ */ n.jsxs(
|
|
3218
3219
|
"svg",
|
|
@@ -3232,11 +3233,11 @@ function In({
|
|
|
3232
3233
|
)
|
|
3233
3234
|
}
|
|
3234
3235
|
)
|
|
3235
|
-
] },
|
|
3236
|
+
] }, D)) }),
|
|
3236
3237
|
i ? /* @__PURE__ */ n.jsx("em", { children: i }) : ""
|
|
3237
3238
|
] });
|
|
3238
3239
|
}
|
|
3239
|
-
const
|
|
3240
|
+
const Va = (e) => (e = e !== void 0 && e !== "" ? e.split(",") : [], e.reduce((t, r) => (t[r] = !0, t), {}));
|
|
3240
3241
|
function Nn({
|
|
3241
3242
|
value: e,
|
|
3242
3243
|
onValue: t,
|
|
@@ -3251,30 +3252,30 @@ function Nn({
|
|
|
3251
3252
|
after: f = "",
|
|
3252
3253
|
view: h,
|
|
3253
3254
|
modal: p,
|
|
3254
|
-
module:
|
|
3255
|
-
options:
|
|
3256
|
-
className:
|
|
3255
|
+
module: g,
|
|
3256
|
+
options: v,
|
|
3257
|
+
className: y
|
|
3257
3258
|
}) {
|
|
3258
|
-
const [
|
|
3259
|
+
const [m, j] = _.useState(Va(e)), w = (M) => {
|
|
3259
3260
|
if (!(c && d) || !p)
|
|
3260
3261
|
return;
|
|
3261
|
-
let
|
|
3262
|
-
_n.Open(
|
|
3263
|
-
callback: (
|
|
3264
|
-
t && t({ value:
|
|
3262
|
+
let R = p.split(".");
|
|
3263
|
+
_n.Open(R[1], {
|
|
3264
|
+
callback: (P) => {
|
|
3265
|
+
t && t({ value: P, name: r }), j(P);
|
|
3265
3266
|
},
|
|
3266
3267
|
onValue: t,
|
|
3267
|
-
options:
|
|
3268
|
+
options: v,
|
|
3268
3269
|
name: r,
|
|
3269
|
-
value:
|
|
3270
|
+
value: m
|
|
3270
3271
|
});
|
|
3271
|
-
},
|
|
3272
|
-
|
|
3273
|
-
const
|
|
3274
|
-
return s && (
|
|
3272
|
+
}, k = {};
|
|
3273
|
+
k.field = "group", y && (k.className = y);
|
|
3274
|
+
const B = {};
|
|
3275
|
+
return s && (B.placeholder = s), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...k, children: [
|
|
3275
3276
|
/* @__PURE__ */ n.jsxs("dt", { children: [
|
|
3276
3277
|
a,
|
|
3277
|
-
/* @__PURE__ */ n.jsx("i", { onClick:
|
|
3278
|
+
/* @__PURE__ */ n.jsx("i", { onClick: w, children: /* @__PURE__ */ n.jsxs(
|
|
3278
3279
|
"svg",
|
|
3279
3280
|
{
|
|
3280
3281
|
width: "20",
|
|
@@ -3295,20 +3296,20 @@ function Nn({
|
|
|
3295
3296
|
/* @__PURE__ */ n.jsx(
|
|
3296
3297
|
"dd",
|
|
3297
3298
|
{
|
|
3298
|
-
...
|
|
3299
|
+
...B,
|
|
3299
3300
|
onClick: open,
|
|
3300
3301
|
edit: (c && d) + "",
|
|
3301
3302
|
"data-after": f,
|
|
3302
|
-
children: Object.keys(
|
|
3303
|
-
var
|
|
3304
|
-
return /* @__PURE__ */ n.jsx("div", { className: "field_group_item", children: (
|
|
3303
|
+
children: Object.keys(m).map((M) => {
|
|
3304
|
+
var R;
|
|
3305
|
+
return /* @__PURE__ */ n.jsx("div", { className: "field_group_item", children: (R = v[M]) == null ? void 0 : R.label }, M);
|
|
3305
3306
|
})
|
|
3306
3307
|
}
|
|
3307
3308
|
),
|
|
3308
3309
|
i && /* @__PURE__ */ n.jsx("em", { children: i })
|
|
3309
3310
|
] });
|
|
3310
3311
|
}
|
|
3311
|
-
const
|
|
3312
|
+
const qa = {
|
|
3312
3313
|
Color: yn,
|
|
3313
3314
|
Date: ht,
|
|
3314
3315
|
Code: bn,
|
|
@@ -3335,7 +3336,7 @@ const Va = {
|
|
|
3335
3336
|
Toogle: Tn,
|
|
3336
3337
|
Group: In,
|
|
3337
3338
|
Options: Nn
|
|
3338
|
-
}, Xa = "_debug_ug20b_34", Ja = "_b_ug20b_46", Qa = "_o_ug20b_50", ei = "_mb_ug20b_55", ti = "_tm_ug20b_66", ni = "_ta_ug20b_133",
|
|
3339
|
+
}, Xa = "_debug_ug20b_34", Ja = "_b_ug20b_46", Qa = "_o_ug20b_50", ei = "_mb_ug20b_55", ti = "_tm_ug20b_66", ni = "_ta_ug20b_133", fe = {
|
|
3339
3340
|
debug: Xa,
|
|
3340
3341
|
b: Ja,
|
|
3341
3342
|
o: Qa,
|
|
@@ -3343,9 +3344,9 @@ const Va = {
|
|
|
3343
3344
|
tm: ti,
|
|
3344
3345
|
ta: ni,
|
|
3345
3346
|
"--body": "_--body_ug20b_143"
|
|
3346
|
-
}, E = window.Telegram.WebApp,
|
|
3347
|
-
let
|
|
3348
|
-
|
|
3347
|
+
}, E = window.Telegram.WebApp, se = { is: !1, MainButton: {}, BackButton: {} };
|
|
3348
|
+
let me = {};
|
|
3349
|
+
me.dark = {
|
|
3349
3350
|
"--tg-theme-bg-color": "#212121",
|
|
3350
3351
|
"--tg-theme-text-color": "#ffffff",
|
|
3351
3352
|
"--tg-theme-hint-color": "#aaaaaa",
|
|
@@ -3360,7 +3361,7 @@ ge.dark = {
|
|
|
3360
3361
|
"--tg-theme-subtitle-text-color": "#aaaaaa",
|
|
3361
3362
|
"--tg-theme-destructive-text-color": "#e53935"
|
|
3362
3363
|
};
|
|
3363
|
-
|
|
3364
|
+
me.light = {
|
|
3364
3365
|
"--tg-theme-bg-color": "#ffffff",
|
|
3365
3366
|
"--tg-theme-text-color": "#000000",
|
|
3366
3367
|
"--tg-theme-hint-color": "#999999",
|
|
@@ -3369,7 +3370,7 @@ ge.light = {
|
|
|
3369
3370
|
"--tg-theme-button-text-color": "#ffffff",
|
|
3370
3371
|
"--tg-theme-secondary-bg-color": "#efeff3"
|
|
3371
3372
|
};
|
|
3372
|
-
|
|
3373
|
+
me.users = {
|
|
3373
3374
|
"--tg-theme-bg-color": "#000000",
|
|
3374
3375
|
"--tg-theme-text-color": "#ffffff",
|
|
3375
3376
|
"--tg-theme-hint-color": "#98989e",
|
|
@@ -3384,11 +3385,11 @@ E.getUser = () => {
|
|
|
3384
3385
|
};
|
|
3385
3386
|
E.MainButton.callback = [];
|
|
3386
3387
|
E.MainButton.set = (e) => {
|
|
3387
|
-
|
|
3388
|
+
se.is ? se.MainButton.set(e) : (E.MainButton.callback.forEach((t) => {
|
|
3388
3389
|
E.MainButton.offClick(t);
|
|
3389
3390
|
}), E.MainButton.callback = [], typeof e == "boolean" ? E.MainButton.isVisible = !1 : (E.MainButton.text = e.text, e.color && (E.MainButton.color = e.color), e.textColor && (E.MainButton.textColor = e.textColor), E.MainButton.isVisible = !0, E.MainButton.isActive = e.isActive === void 0 ? !0 : e.isActive, E.MainButton.callback.push(() => {
|
|
3390
3391
|
var t;
|
|
3391
|
-
e.page === void 0 ? (t = e.callback) == null || t.call(e) :
|
|
3392
|
+
e.page === void 0 ? (t = e.callback) == null || t.call(e) : oe.setPage(e.page);
|
|
3392
3393
|
}), E.MainButton.onClick(E.MainButton.callback[0])));
|
|
3393
3394
|
};
|
|
3394
3395
|
E.BackButton.state = [!1];
|
|
@@ -3397,7 +3398,7 @@ E.BackButton.router = (e) => {
|
|
|
3397
3398
|
e === !1 ? (E.BackButton.isVisible = !1, E.BackButton.offClick(E.BackButton.listen[0]), E.BackButton.listen.shift(), E.BackButton.state.length !== 1 && E.BackButton.state.pop()) : (E.BackButton.isVisible = !0, E.BackButton.offClick(E.BackButton.listen[0]), E.BackButton.listen.shift(), E.BackButton.listen.push(() => {
|
|
3398
3399
|
let t = E.BackButton.state.pop();
|
|
3399
3400
|
if (t.page !== void 0)
|
|
3400
|
-
|
|
3401
|
+
oe.setPage(t.page);
|
|
3401
3402
|
else {
|
|
3402
3403
|
let r = E.BackButton.state[E.BackButton.state.length - 1];
|
|
3403
3404
|
E.BackButton.router(r);
|
|
@@ -3405,62 +3406,62 @@ E.BackButton.router = (e) => {
|
|
|
3405
3406
|
}), E.BackButton.onClick(E.BackButton.listen[0]));
|
|
3406
3407
|
};
|
|
3407
3408
|
E.BackButton.set = (e) => {
|
|
3408
|
-
|
|
3409
|
+
se.is ? se.BackButton.set(e) : (E.BackButton.state.push(e), E.BackButton.router(e));
|
|
3409
3410
|
};
|
|
3410
3411
|
E.Notice = (e, t) => {
|
|
3411
|
-
t !== void 0 ? (at.Send({ type: e, text: t }),
|
|
3412
|
+
t !== void 0 ? (at.Send({ type: e, text: t }), se.is || E.HapticFeedback.notificationOccurred(e)) : (at.Send(e), se.is || E.HapticFeedback.notificationOccurred(e.type));
|
|
3412
3413
|
};
|
|
3413
3414
|
E.Init = ({ dev: e }) => {
|
|
3414
3415
|
if (e) {
|
|
3415
3416
|
let [t, r] = _.useState(!1), [s, a] = _.useState(!1), [i, l] = _.useState("dark"), [c, u] = _.useState(!1), [d, f] = _.useState(!1);
|
|
3416
|
-
|
|
3417
|
-
for (let
|
|
3417
|
+
se.is = !0, se.MainButton.set = r, se.BackButton.set = a, _.useEffect(() => {
|
|
3418
|
+
for (let g in me[i])
|
|
3418
3419
|
document.documentElement.style.setProperty(
|
|
3419
|
-
|
|
3420
|
-
|
|
3420
|
+
g,
|
|
3421
|
+
me[i][g]
|
|
3421
3422
|
);
|
|
3422
3423
|
}, []);
|
|
3423
|
-
let h = (
|
|
3424
|
-
for (let
|
|
3425
|
-
document.documentElement.style.setProperty(
|
|
3426
|
-
l(
|
|
3424
|
+
let h = (g) => {
|
|
3425
|
+
for (let v in me[g])
|
|
3426
|
+
document.documentElement.style.setProperty(v, me[g][v]);
|
|
3427
|
+
l(g), u(!1);
|
|
3427
3428
|
}, p = () => {
|
|
3428
3429
|
u(!1), f(!0);
|
|
3429
3430
|
};
|
|
3430
3431
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
3431
|
-
/* @__PURE__ */ n.jsxs("div", { className:
|
|
3432
|
-
s === !1 ? /* @__PURE__ */ n.jsx("div", { className:
|
|
3432
|
+
/* @__PURE__ */ n.jsxs("div", { className: fe.debug, children: [
|
|
3433
|
+
s === !1 ? /* @__PURE__ */ n.jsx("div", { className: fe.b, children: "Отмена" }) : /* @__PURE__ */ n.jsx(
|
|
3433
3434
|
"div",
|
|
3434
3435
|
{
|
|
3435
3436
|
onClick: () => {
|
|
3436
|
-
s.page === void 0 ||
|
|
3437
|
+
s.page === void 0 || oe.setPage(s.page);
|
|
3437
3438
|
},
|
|
3438
|
-
className:
|
|
3439
|
+
className: fe.b,
|
|
3439
3440
|
children: "Назад"
|
|
3440
3441
|
}
|
|
3441
3442
|
),
|
|
3442
3443
|
/* @__PURE__ */ n.jsx(
|
|
3443
3444
|
"div",
|
|
3444
3445
|
{
|
|
3445
|
-
className:
|
|
3446
|
+
className: fe.o,
|
|
3446
3447
|
onClick: () => u(!c),
|
|
3447
3448
|
children: "Меню"
|
|
3448
3449
|
}
|
|
3449
3450
|
)
|
|
3450
3451
|
] }),
|
|
3451
|
-
t && /* @__PURE__ */ n.jsx("div", { className:
|
|
3452
|
+
t && /* @__PURE__ */ n.jsx("div", { className: fe.mb, children: /* @__PURE__ */ n.jsx(
|
|
3452
3453
|
"button",
|
|
3453
3454
|
{
|
|
3454
3455
|
onClick: () => {
|
|
3455
|
-
t.page &&
|
|
3456
|
+
t.page && oe.setPage(t.page), t.callback && t.callback();
|
|
3456
3457
|
},
|
|
3457
3458
|
children: t.text
|
|
3458
3459
|
}
|
|
3459
3460
|
) }),
|
|
3460
|
-
c ? /* @__PURE__ */ n.jsxs("div", { className:
|
|
3461
|
+
c ? /* @__PURE__ */ n.jsxs("div", { className: fe.tm, children: [
|
|
3461
3462
|
/* @__PURE__ */ n.jsxs("ul", { children: [
|
|
3462
3463
|
/* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { onClick: p, children: "Authorization" }) }),
|
|
3463
|
-
/* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { onClick: () =>
|
|
3464
|
+
/* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { onClick: () => oe.setPage("Add"), children: "Add Page" }) })
|
|
3464
3465
|
] }),
|
|
3465
3466
|
/* @__PURE__ */ n.jsxs("ul", { children: [
|
|
3466
3467
|
/* @__PURE__ */ n.jsxs("li", { children: [
|
|
@@ -3503,9 +3504,9 @@ const ri = ({ setAuthorization: e }) => {
|
|
|
3503
3504
|
}, s = (a) => {
|
|
3504
3505
|
localStorage.setItem("auth", t);
|
|
3505
3506
|
};
|
|
3506
|
-
return /* @__PURE__ */ n.jsx("div", { className:
|
|
3507
|
+
return /* @__PURE__ */ n.jsx("div", { className: fe.ta, children: /* @__PURE__ */ n.jsxs("div", { className: "--body", children: [
|
|
3507
3508
|
/* @__PURE__ */ n.jsx("fieldset", { children: /* @__PURE__ */ n.jsx(
|
|
3508
|
-
|
|
3509
|
+
qa.Notes,
|
|
3509
3510
|
{
|
|
3510
3511
|
label: "Data JSON",
|
|
3511
3512
|
name: "description",
|
|
@@ -3515,7 +3516,7 @@ const ri = ({ setAuthorization: e }) => {
|
|
|
3515
3516
|
) }),
|
|
3516
3517
|
/* @__PURE__ */ n.jsx("div", { onClick: s, children: " Сщхранить " })
|
|
3517
3518
|
] }) });
|
|
3518
|
-
}, cl = ({ children: e, config: t }) => (window.location.pathname === "/clear" && (window.history.pushState({}, "", "/"),
|
|
3519
|
+
}, cl = ({ children: e, config: t }) => (window.location.pathname === "/clear" && (window.history.pushState({}, "", "/"), H()), N.New(t.crypto), t.defaultModule && gr(t.defaultModule), pr(
|
|
3519
3520
|
/* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
3520
3521
|
/* @__PURE__ */ n.jsx(E.Init, { dev: t.dev }),
|
|
3521
3522
|
/* @__PURE__ */ n.jsx(da, { config: t.modal }),
|
|
@@ -3641,7 +3642,7 @@ function Mn({ text: e, type: t, button: r }) {
|
|
|
3641
3642
|
r && /* @__PURE__ */ n.jsx("button", { onClick: l, children: r.label })
|
|
3642
3643
|
] });
|
|
3643
3644
|
}
|
|
3644
|
-
const yi = "_h_1usnu_1", _i = "_g_1usnu_11", Ci = "_hr_1usnu_16", wi = "_hl_1usnu_28", ki = "_t_1usnu_40", Si = "_s_1usnu_60", Ei = "_u_1usnu_69", Ri = "_o_1usnu_76", Bi = "_l_1usnu_105", Ti = "_hh_1usnu_115", Ii = "_c_1usnu_128", Ni = "_loadingB_1usnu_1", Di = "_m_1usnu_180", Mi = "_ul_1usnu_196", $i = "_f_1usnu_226",
|
|
3645
|
+
const yi = "_h_1usnu_1", _i = "_g_1usnu_11", Ci = "_hr_1usnu_16", wi = "_hl_1usnu_28", ki = "_t_1usnu_40", Si = "_s_1usnu_60", Ei = "_u_1usnu_69", Ri = "_o_1usnu_76", Bi = "_l_1usnu_105", Ti = "_hh_1usnu_115", Ii = "_c_1usnu_128", Ni = "_loadingB_1usnu_1", Di = "_m_1usnu_180", Mi = "_ul_1usnu_196", $i = "_f_1usnu_226", G = {
|
|
3645
3646
|
h: yi,
|
|
3646
3647
|
g: _i,
|
|
3647
3648
|
hr: Ci,
|
|
@@ -3657,35 +3658,35 @@ const yi = "_h_1usnu_1", _i = "_g_1usnu_11", Ci = "_hr_1usnu_16", wi = "_hl_1usn
|
|
|
3657
3658
|
m: Di,
|
|
3658
3659
|
ul: Mi,
|
|
3659
3660
|
f: $i
|
|
3660
|
-
},
|
|
3661
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
3662
|
-
t && /* @__PURE__ */ n.jsx("div", { className:
|
|
3663
|
-
r && /* @__PURE__ */ n.jsx("div", { className:
|
|
3661
|
+
}, Vt = ({ title: e, left: t, right: r, children: s }) => /* @__PURE__ */ n.jsxs("div", { className: G.h, children: [
|
|
3662
|
+
/* @__PURE__ */ n.jsx("div", { className: G.t, children: e }),
|
|
3663
|
+
t && /* @__PURE__ */ n.jsx("div", { className: G.hl, children: t }),
|
|
3664
|
+
r && /* @__PURE__ */ n.jsx("div", { className: G.hr, children: r }),
|
|
3664
3665
|
s
|
|
3665
|
-
] }),
|
|
3666
|
+
] }), qt = ({ children: e, ...t }) => /* @__PURE__ */ n.jsx("div", { className: G.l, children: e }), Xt = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: G.s, children: e }), Jt = ({ children: e, edit: t }) => {
|
|
3666
3667
|
const r = {};
|
|
3667
|
-
return t && (r.edit = ""), /* @__PURE__ */ n.jsx("div", { ...r, className:
|
|
3668
|
+
return t && (r.edit = ""), /* @__PURE__ */ n.jsx("div", { ...r, className: G.f, children: e });
|
|
3668
3669
|
};
|
|
3669
3670
|
function Qt({ children: e }) {
|
|
3670
|
-
return /* @__PURE__ */ n.jsx("div", { className:
|
|
3671
|
+
return /* @__PURE__ */ n.jsx("div", { className: G.g, children: e });
|
|
3671
3672
|
}
|
|
3672
|
-
const Fi = ({ children: e, className: t, title: r }) => /* @__PURE__ */ n.jsxs("div", { className: [
|
|
3673
|
-
r && /* @__PURE__ */ n.jsx("div", { className:
|
|
3673
|
+
const Fi = ({ children: e, className: t, title: r }) => /* @__PURE__ */ n.jsxs("div", { className: [G.o, t].join(" "), children: [
|
|
3674
|
+
r && /* @__PURE__ */ n.jsx("div", { className: G.hh, children: r }),
|
|
3674
3675
|
e
|
|
3675
|
-
] }), Pi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className:
|
|
3676
|
-
Header:
|
|
3676
|
+
] }), Pi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: G.u, children: e }), Oi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: G.c, children: e }), Li = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: G.m, children: e }), dl = {
|
|
3677
|
+
Header: Vt,
|
|
3677
3678
|
Section: Xt,
|
|
3678
3679
|
Group: Qt,
|
|
3679
3680
|
Form: Jt,
|
|
3680
|
-
List:
|
|
3681
|
+
List: qt,
|
|
3681
3682
|
A: Mn,
|
|
3682
3683
|
U: Pi,
|
|
3683
3684
|
G: Qt,
|
|
3684
3685
|
C: Oi,
|
|
3685
|
-
L:
|
|
3686
|
+
L: qt,
|
|
3686
3687
|
O: Fi,
|
|
3687
3688
|
S: Xt,
|
|
3688
|
-
H:
|
|
3689
|
+
H: Vt,
|
|
3689
3690
|
M: Li,
|
|
3690
3691
|
F: Jt
|
|
3691
3692
|
}, fl = { Send: Ms, Line: Mn };
|
|
@@ -3787,7 +3788,7 @@ const Gi = "_n_euuvm_1", Hi = {
|
|
|
3787
3788
|
n: Gi
|
|
3788
3789
|
};
|
|
3789
3790
|
let Me = {}, Te = [];
|
|
3790
|
-
const
|
|
3791
|
+
const Vi = (e, t) => {
|
|
3791
3792
|
switch (t.type) {
|
|
3792
3793
|
case "open":
|
|
3793
3794
|
return {
|
|
@@ -3839,7 +3840,7 @@ const qi = (e, t) => {
|
|
|
3839
3840
|
throw new Error();
|
|
3840
3841
|
}
|
|
3841
3842
|
};
|
|
3842
|
-
function
|
|
3843
|
+
function qi(e) {
|
|
3843
3844
|
Me.fn({ action: "add", data: e });
|
|
3844
3845
|
}
|
|
3845
3846
|
function Xi(e) {
|
|
@@ -3852,7 +3853,7 @@ function Qi(e) {
|
|
|
3852
3853
|
Me.fn = e;
|
|
3853
3854
|
}
|
|
3854
3855
|
function eo() {
|
|
3855
|
-
const [e, t] = _.useReducer(
|
|
3856
|
+
const [e, t] = _.useReducer(Vi, {
|
|
3856
3857
|
open: !1,
|
|
3857
3858
|
active: !1,
|
|
3858
3859
|
news: [],
|
|
@@ -3985,10 +3986,10 @@ function so(e) {
|
|
|
3985
3986
|
e.data.forEach((a) => {
|
|
3986
3987
|
t[a.id] = { s: a.v, n: a.a }, r[a.id] = a;
|
|
3987
3988
|
});
|
|
3988
|
-
let s = { ...
|
|
3989
|
+
let s = { ...pe(), 901: t };
|
|
3989
3990
|
ln(r), Ne(s);
|
|
3990
3991
|
}
|
|
3991
|
-
let
|
|
3992
|
+
let Q = {}, Z = {}, Le = [
|
|
3992
3993
|
"filter",
|
|
3993
3994
|
"online",
|
|
3994
3995
|
"users",
|
|
@@ -4002,10 +4003,10 @@ function ao() {
|
|
|
4002
4003
|
const [e, t] = _.useState(!1), [r, s] = _.useState(!1);
|
|
4003
4004
|
function a(i) {
|
|
4004
4005
|
const l = new ro();
|
|
4005
|
-
|
|
4006
|
+
Q.laodData = (c) => {
|
|
4006
4007
|
let u = Le.indexOf(c);
|
|
4007
4008
|
u >= 0 && Le.splice(u, 1), Le.length === 0 && t(!0);
|
|
4008
|
-
},
|
|
4009
|
+
}, Q.send = (c) => {
|
|
4009
4010
|
l.port.postMessage({ type: "send", json: c });
|
|
4010
4011
|
}, l.port.onmessage = (c) => {
|
|
4011
4012
|
let u = c.data;
|
|
@@ -4013,7 +4014,7 @@ function ao() {
|
|
|
4013
4014
|
type: "connect",
|
|
4014
4015
|
ukey: i,
|
|
4015
4016
|
lk: et()
|
|
4016
|
-
}), Le.length !== 0 &&
|
|
4017
|
+
}), Le.length !== 0 && Q.laodData(u.type), Z[u.type] && Z[u.type](u);
|
|
4017
4018
|
}, l.port.postMessage({
|
|
4018
4019
|
type: "connect",
|
|
4019
4020
|
ukey: i,
|
|
@@ -4022,36 +4023,36 @@ function ao() {
|
|
|
4022
4023
|
}
|
|
4023
4024
|
return [a, e, r];
|
|
4024
4025
|
}
|
|
4025
|
-
|
|
4026
|
-
|
|
4026
|
+
Z.module = (e) => {
|
|
4027
|
+
Q[e.listen] !== void 0 && (Q[e.listen](e), delete Q[e.listen]);
|
|
4027
4028
|
};
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4029
|
+
Z.bell = Ji;
|
|
4030
|
+
Z.company = so;
|
|
4031
|
+
Z.info = (e) => {
|
|
4031
4032
|
let t = {};
|
|
4032
4033
|
t.db = e.db, t.id = e.data.id, t.job = e.data.job, t.login = e.data.login, t.name = e.data.p02, t.patronymic = e.data.p03, t.surname = e.data.p01, t.email = e.data.email, t.admin = e.data.menu.includes("99"), cn(t), an(e.data.menu);
|
|
4033
4034
|
};
|
|
4034
|
-
|
|
4035
|
+
Z.version = async (e) => {
|
|
4035
4036
|
dt.version.Server(e.data);
|
|
4036
4037
|
};
|
|
4037
|
-
|
|
4038
|
+
Z.online = async (e) => {
|
|
4038
4039
|
};
|
|
4039
|
-
|
|
4040
|
+
Z.offline = async (e) => {
|
|
4040
4041
|
};
|
|
4041
|
-
|
|
4042
|
+
Z.chat = (e) => {
|
|
4042
4043
|
switch (e.data.action) {
|
|
4043
4044
|
case "new_message":
|
|
4044
|
-
|
|
4045
|
+
oe.getModule();
|
|
4045
4046
|
break;
|
|
4046
4047
|
case "view_message":
|
|
4047
|
-
|
|
4048
|
+
oe.getModule();
|
|
4048
4049
|
break;
|
|
4049
4050
|
case "write_message":
|
|
4050
|
-
|
|
4051
|
+
oe.getModule();
|
|
4051
4052
|
break;
|
|
4052
4053
|
}
|
|
4053
4054
|
};
|
|
4054
|
-
|
|
4055
|
+
Z.users = (e) => {
|
|
4055
4056
|
let t = {};
|
|
4056
4057
|
e.data.forEach((s) => {
|
|
4057
4058
|
let a = s.p01 + " " + s.p02 + " " + s.p03, i = s.p01 + " " + s.p02.substring(0, 1) + "." + s.p03.substring(0, 1) + ".", l = s.p01.substring(0, 1) + "" + s.p02.substring(0, 1) + s.p03.substring(0, 1);
|
|
@@ -4068,46 +4069,46 @@ Y.users = (e) => {
|
|
|
4068
4069
|
number: l
|
|
4069
4070
|
};
|
|
4070
4071
|
});
|
|
4071
|
-
let r = { ...
|
|
4072
|
+
let r = { ...pe(), user: t };
|
|
4072
4073
|
Ne(r);
|
|
4073
4074
|
};
|
|
4074
|
-
|
|
4075
|
+
Z.api = (e) => {
|
|
4075
4076
|
let t = {};
|
|
4076
4077
|
e.data.forEach((r) => {
|
|
4077
4078
|
t[r.api] = { key: r.key, p01: r.p01, p02: r.p02 };
|
|
4078
4079
|
});
|
|
4079
4080
|
};
|
|
4080
|
-
|
|
4081
|
-
|
|
4081
|
+
Z.delete = () => {
|
|
4082
|
+
H();
|
|
4082
4083
|
};
|
|
4083
|
-
|
|
4084
|
-
let t = { ...
|
|
4084
|
+
Z.select = (e) => {
|
|
4085
|
+
let t = { ...pe() };
|
|
4085
4086
|
e.data.forEach((r) => {
|
|
4086
4087
|
t[r.n] = JSON.parse(r.s);
|
|
4087
4088
|
}), Ne(t);
|
|
4088
4089
|
};
|
|
4089
|
-
|
|
4090
|
-
let t = { ...
|
|
4090
|
+
Z.job = (e) => {
|
|
4091
|
+
let t = { ...pe() }, r = {};
|
|
4091
4092
|
Object.keys(e.data).forEach((s) => {
|
|
4092
4093
|
r[s] = { s: 1, n: e.data[s] };
|
|
4093
4094
|
}), t[1] = r, Ne(t);
|
|
4094
4095
|
};
|
|
4095
|
-
|
|
4096
|
+
Z.setting = (e) => {
|
|
4096
4097
|
Or(e.data);
|
|
4097
4098
|
};
|
|
4098
|
-
|
|
4099
|
+
Z.app = () => {
|
|
4099
4100
|
};
|
|
4100
4101
|
const io = (e, t) => {
|
|
4101
|
-
|
|
4102
|
+
Q[e] = t;
|
|
4102
4103
|
}, oo = (e, t) => {
|
|
4103
|
-
|
|
4104
|
+
Q[e](t);
|
|
4104
4105
|
};
|
|
4105
4106
|
function lo(e) {
|
|
4106
4107
|
let t = "_" + String(Math.random()).substring(2, 7);
|
|
4107
4108
|
return new Promise((r) => {
|
|
4108
|
-
|
|
4109
|
-
s.error !== void 0 ? r({ error: s.error }) : r(s.data), delete
|
|
4110
|
-
}, e = { ...e, listen: t }, e.type = "modules",
|
|
4109
|
+
Q[t] = (s) => {
|
|
4110
|
+
s.error !== void 0 ? r({ error: s.error }) : r(s.data), delete Q[t];
|
|
4111
|
+
}, e = { ...e, listen: t }, e.type = "modules", Q.send(e);
|
|
4111
4112
|
});
|
|
4112
4113
|
}
|
|
4113
4114
|
const ot = { useConnect: ao, useListener: io, setListener: oo, Send: lo };
|
|
@@ -4132,9 +4133,9 @@ class co {
|
|
|
4132
4133
|
}
|
|
4133
4134
|
}
|
|
4134
4135
|
let Qe, A = {};
|
|
4135
|
-
const we = () => (Qe || (Qe = new co()), Qe),
|
|
4136
|
+
const we = () => (Qe || (Qe = new co()), Qe), ue = (e, t, r = we()) => r._withIDBStore("readwrite", (s) => {
|
|
4136
4137
|
A[e] = t, s.put(N.enCode(t), e);
|
|
4137
|
-
}),
|
|
4138
|
+
}), ne = (e, t = we()) => A[e] === void 0 ? new Promise((r, s) => {
|
|
4138
4139
|
let a;
|
|
4139
4140
|
t._withIDBStore("readonly", (i) => {
|
|
4140
4141
|
a = i.get(e);
|
|
@@ -4157,26 +4158,26 @@ const we = () => (Qe || (Qe = new co()), Qe), de = (e, t, r = we()) => r._withID
|
|
|
4157
4158
|
};
|
|
4158
4159
|
}).then(() => t);
|
|
4159
4160
|
}, ho = (e, t, r = [], s = {}) => {
|
|
4160
|
-
let a = r.length !== 0, i = [], l = s.sort, c = Object.keys(s).length !== 0, u = Object.keys(s), d = Object.keys(e), f = [], h = (
|
|
4161
|
-
let
|
|
4162
|
-
if (r.forEach((
|
|
4163
|
-
|
|
4161
|
+
let a = r.length !== 0, i = [], l = s.sort, c = Object.keys(s).length !== 0, u = Object.keys(s), d = Object.keys(e), f = [], h = (g) => {
|
|
4162
|
+
let v = "";
|
|
4163
|
+
if (r.forEach((y) => {
|
|
4164
|
+
v += t[g][y];
|
|
4164
4165
|
}), c) {
|
|
4165
|
-
let
|
|
4166
|
-
u.forEach((
|
|
4167
|
-
|
|
4166
|
+
let y = {};
|
|
4167
|
+
u.forEach((m) => {
|
|
4168
|
+
y[m] = t[g][m];
|
|
4168
4169
|
});
|
|
4169
|
-
for (let
|
|
4170
|
-
t[
|
|
4171
|
-
i.push({ id:
|
|
4170
|
+
for (let m in l)
|
|
4171
|
+
t[g][l[m]] === void 0 && (lt(), location.reload()), m === "s1" && (y[m] = new Date(t[g][l[m]]).getTime()), m === "s2" && (y[m] = t[g][l[m]]), m === "s3" && (y[m] = t[g][l[m]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
|
|
4172
|
+
i.push({ id: g, text: v, ...y });
|
|
4172
4173
|
} else
|
|
4173
|
-
i.push({ id:
|
|
4174
|
-
}, p = (
|
|
4174
|
+
i.push({ id: g, text: v });
|
|
4175
|
+
}, p = (g) => {
|
|
4175
4176
|
};
|
|
4176
|
-
return d.forEach((
|
|
4177
|
-
f.push(t[
|
|
4178
|
-
}), f.forEach((
|
|
4179
|
-
|
|
4177
|
+
return d.forEach((g) => {
|
|
4178
|
+
f.push(t[g]);
|
|
4179
|
+
}), f.forEach((g) => {
|
|
4180
|
+
g === void 0 ? (lt(), location.reload()) : (a && h(g.id), c && p(g.id));
|
|
4180
4181
|
}), { list: f, search: i, filter: s };
|
|
4181
4182
|
}, mo = (e, t, r, s = we()) => {
|
|
4182
4183
|
if (A[e] === void 0)
|
|
@@ -4201,31 +4202,31 @@ const we = () => (Qe || (Qe = new co()), Qe), de = (e, t, r = we()) => r._withID
|
|
|
4201
4202
|
});
|
|
4202
4203
|
}, go = async (e, t, r, s) => {
|
|
4203
4204
|
let a, i;
|
|
4204
|
-
i = await
|
|
4205
|
+
i = await ne(r), i[e.id] = e, await ue(r, i), a !== null && (a = await ne(t), a[e.id] = e.eDate, await ue(t, a)), s !== void 0 && s({ type: "load", page: a, base: i });
|
|
4205
4206
|
}, xo = async (e, t, r, s) => {
|
|
4206
|
-
let a = await
|
|
4207
|
+
let a = await ne(t), i = await ne(r);
|
|
4207
4208
|
for (let l in e)
|
|
4208
4209
|
i[l] = e[l], a[l] = e[l].eDate;
|
|
4209
|
-
await
|
|
4210
|
+
await ue(t, a), await ue(r, i), s !== void 0 && s({ type: "load", page: a, base: i });
|
|
4210
4211
|
}, po = async (e, t, r, s) => {
|
|
4211
|
-
let a = await
|
|
4212
|
-
e.forEach((l) => delete a[l]), await
|
|
4212
|
+
let a = await ne(t), i = await ne(r);
|
|
4213
|
+
e.forEach((l) => delete a[l]), await ue(t, a), s !== void 0 && s({ type: "load", page: a, base: i });
|
|
4213
4214
|
}, vo = async (e, t, r) => {
|
|
4214
|
-
let s = await
|
|
4215
|
-
e.forEach((a) => delete s[a]), await
|
|
4215
|
+
let s = await ne(t);
|
|
4216
|
+
e.forEach((a) => delete s[a]), await ue(t, s);
|
|
4216
4217
|
}, jo = async (e, t, r) => {
|
|
4217
|
-
let s = await
|
|
4218
|
-
e.forEach((a) => s[a.id] = a.eDate), await
|
|
4218
|
+
let s = await ne(t);
|
|
4219
|
+
e.forEach((a) => s[a.id] = a.eDate), await ue(t, s);
|
|
4219
4220
|
}, bo = async (e, t, r) => {
|
|
4220
|
-
let s = await
|
|
4221
|
+
let s = await ne(t);
|
|
4221
4222
|
if (r !== void 0)
|
|
4222
4223
|
r({ type: "load", base: s });
|
|
4223
4224
|
else
|
|
4224
4225
|
return s[e];
|
|
4225
4226
|
}, yo = (e) => A[e], ml = {
|
|
4226
4227
|
id: bo,
|
|
4227
|
-
get:
|
|
4228
|
-
set:
|
|
4228
|
+
get: ne,
|
|
4229
|
+
set: ue,
|
|
4229
4230
|
add: go,
|
|
4230
4231
|
del: uo,
|
|
4231
4232
|
upd: mo,
|
|
@@ -4243,7 +4244,7 @@ const we = () => (Qe || (Qe = new co()), Qe), de = (e, t, r = we()) => r._withID
|
|
|
4243
4244
|
ul: wo
|
|
4244
4245
|
};
|
|
4245
4246
|
function So({ children: e }) {
|
|
4246
|
-
return /* @__PURE__ */ n.jsx("ul", { className:
|
|
4247
|
+
return /* @__PURE__ */ n.jsx("ul", { className: G.ul, children: e });
|
|
4247
4248
|
}
|
|
4248
4249
|
function Eo(e, t) {
|
|
4249
4250
|
switch (t.type) {
|
|
@@ -4329,24 +4330,24 @@ const Ro = ({ label: e, onValue: t, value: r, name: s, item: a }) => {
|
|
|
4329
4330
|
"aria-checked": `${i ? "true" : "false"}`
|
|
4330
4331
|
}
|
|
4331
4332
|
);
|
|
4332
|
-
},
|
|
4333
|
+
}, xe = {};
|
|
4333
4334
|
function Bo(e) {
|
|
4334
4335
|
const [t, r] = _.useState({}), s = _.useRef(e);
|
|
4335
|
-
|
|
4336
|
+
xe.u = (i) => {
|
|
4336
4337
|
s.current = { ...s.current, [i.name]: i.value };
|
|
4337
|
-
},
|
|
4338
|
+
}, xe.r = () => {
|
|
4338
4339
|
r(Date.now());
|
|
4339
4340
|
};
|
|
4340
4341
|
const a = (i) => {
|
|
4341
|
-
s.current[i.name] = i.value, i.reload &&
|
|
4342
|
+
s.current[i.name] = i.value, i.reload && xe.r();
|
|
4342
4343
|
};
|
|
4343
4344
|
return [s.current, a];
|
|
4344
4345
|
}
|
|
4345
4346
|
function To(e) {
|
|
4346
|
-
|
|
4347
|
+
xe.u(e), e.reload && xe.r();
|
|
4347
4348
|
}
|
|
4348
4349
|
function Io() {
|
|
4349
|
-
|
|
4350
|
+
xe.r && xe.r();
|
|
4350
4351
|
}
|
|
4351
4352
|
const pl = {
|
|
4352
4353
|
Color: yn,
|
|
@@ -4446,7 +4447,7 @@ function zo(e) {
|
|
|
4446
4447
|
const jl = { Field: Oo, Run: Lo, Get: Ao, useValue: zo }, Wo = "_f_q3r0i_1", Zo = {
|
|
4447
4448
|
f: Wo
|
|
4448
4449
|
};
|
|
4449
|
-
let
|
|
4450
|
+
let X = {};
|
|
4450
4451
|
function Uo(e, t) {
|
|
4451
4452
|
switch (t.type) {
|
|
4452
4453
|
case "open":
|
|
@@ -4478,7 +4479,7 @@ function Uo(e, t) {
|
|
|
4478
4479
|
s = { ...e.take, ...s }, e.active = !1;
|
|
4479
4480
|
for (let a in s)
|
|
4480
4481
|
s[a] !== "999" && (e.active = !0);
|
|
4481
|
-
return
|
|
4482
|
+
return X.get(s, e.active), {
|
|
4482
4483
|
...e,
|
|
4483
4484
|
take: s,
|
|
4484
4485
|
active: e.active
|
|
@@ -4486,7 +4487,7 @@ function Uo(e, t) {
|
|
|
4486
4487
|
case "exit":
|
|
4487
4488
|
for (let a in e.take)
|
|
4488
4489
|
e.take[a] = "999";
|
|
4489
|
-
return
|
|
4490
|
+
return X.get && X.get([], !1), {
|
|
4490
4491
|
...e,
|
|
4491
4492
|
size: 0,
|
|
4492
4493
|
active: !1,
|
|
@@ -4506,11 +4507,11 @@ function Yo() {
|
|
|
4506
4507
|
size: 0,
|
|
4507
4508
|
active: !1
|
|
4508
4509
|
});
|
|
4509
|
-
return
|
|
4510
|
+
return X.set = (r) => {
|
|
4510
4511
|
t({ type: "data", data: r });
|
|
4511
|
-
},
|
|
4512
|
+
}, X.count = (r) => {
|
|
4512
4513
|
t({ type: "size", size: r });
|
|
4513
|
-
},
|
|
4514
|
+
}, X.reset = () => {
|
|
4514
4515
|
t({ type: "exit" });
|
|
4515
4516
|
}, /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
4516
4517
|
/* @__PURE__ */ n.jsxs(
|
|
@@ -4541,7 +4542,7 @@ function Yo() {
|
|
|
4541
4542
|
),
|
|
4542
4543
|
/* @__PURE__ */ n.jsxs("div", { className: "filter m", children: [
|
|
4543
4544
|
/* @__PURE__ */ n.jsx("div", { className: "filter l", children: Object.keys(e.data).map((r) => /* @__PURE__ */ n.jsx(
|
|
4544
|
-
|
|
4545
|
+
qo,
|
|
4545
4546
|
{
|
|
4546
4547
|
data: r,
|
|
4547
4548
|
dispatch: t,
|
|
@@ -4564,15 +4565,15 @@ function Yo() {
|
|
|
4564
4565
|
] });
|
|
4565
4566
|
}
|
|
4566
4567
|
function Ko(e) {
|
|
4567
|
-
|
|
4568
|
+
X.get = e;
|
|
4568
4569
|
}
|
|
4569
4570
|
function Go(e) {
|
|
4570
|
-
|
|
4571
|
+
X.set !== void 0 && X.set(e);
|
|
4571
4572
|
}
|
|
4572
4573
|
function Ho(e) {
|
|
4573
|
-
|
|
4574
|
+
X.reset !== void 0 && X.reset(e);
|
|
4574
4575
|
}
|
|
4575
|
-
function
|
|
4576
|
+
function Vo(e, t, r, s) {
|
|
4576
4577
|
let a = [], i = 1, l = 0, c = {}, u = 50;
|
|
4577
4578
|
return c[i] = [], s === !0 && (Object.keys(t).forEach((d) => {
|
|
4578
4579
|
Number.parseInt(t[d]) !== 999 && (e = e.filter(
|
|
@@ -4585,9 +4586,9 @@ function qo(e, t, r, s) {
|
|
|
4585
4586
|
}), c;
|
|
4586
4587
|
}
|
|
4587
4588
|
function Fn(e) {
|
|
4588
|
-
|
|
4589
|
+
X.count(e);
|
|
4589
4590
|
}
|
|
4590
|
-
function
|
|
4591
|
+
function qo({ data: e, state: t, dispatch: r }) {
|
|
4591
4592
|
let s = () => {
|
|
4592
4593
|
r({ type: "view", view: e });
|
|
4593
4594
|
}, a = () => {
|
|
@@ -4641,7 +4642,7 @@ function Xo({ data: e, head: t, state: r, dispatch: s, type: a }) {
|
|
|
4641
4642
|
}
|
|
4642
4643
|
);
|
|
4643
4644
|
}
|
|
4644
|
-
const bl = { Button: Yo, useValue: Ko, Set: Go, Run:
|
|
4645
|
+
const bl = { Button: Yo, useValue: Ko, Set: Go, Run: Vo, Count: Fn, Reset: Ho }, yl = { Bell: eo, Send: Xi, Add: qi };
|
|
4645
4646
|
function _l({ active: e, onActive: t, id: r, name: s }) {
|
|
4646
4647
|
const [a, i] = _.useState(!!e);
|
|
4647
4648
|
_.useEffect(() => {
|
|
@@ -4748,21 +4749,21 @@ export {
|
|
|
4748
4749
|
ft as Events,
|
|
4749
4750
|
bl as Filter,
|
|
4750
4751
|
pl as Form,
|
|
4751
|
-
|
|
4752
|
+
ve as Format,
|
|
4752
4753
|
hl as Icon,
|
|
4753
4754
|
cl as Init,
|
|
4754
|
-
|
|
4755
|
+
qa as Input,
|
|
4755
4756
|
vl as Loading,
|
|
4756
4757
|
_n as Modal,
|
|
4757
4758
|
at as Notice,
|
|
4758
4759
|
yl as Notifications,
|
|
4759
|
-
|
|
4760
|
+
oe as Router,
|
|
4760
4761
|
xl as Scrolling,
|
|
4761
4762
|
jl as Search,
|
|
4762
4763
|
ul as Setting,
|
|
4763
4764
|
dt as Sistym,
|
|
4764
4765
|
ot as Socket,
|
|
4765
|
-
|
|
4766
|
+
ae as Store,
|
|
4766
4767
|
_l as Switch,
|
|
4767
4768
|
si as Tabs,
|
|
4768
4769
|
E as Telegram,
|