@elcrm/telegram 0.0.57 → 0.0.58
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/Action/index.d.ts +0 -1
- package/dist/Alert/index.d.ts +0 -1
- package/dist/Api/index.d.ts +0 -1
- package/dist/Badge/index.d.ts +0 -1
- package/dist/Button/Button.d.ts +2 -1
- package/dist/Company/Company.d.ts +0 -1
- package/dist/Company/index.d.ts +0 -1
- package/dist/Component/index.d.ts +0 -1
- package/dist/Event/index.d.ts +0 -1
- package/dist/Filter/index.d.ts +0 -1
- package/dist/Form/RandomIntFromInterval.d.ts +1 -0
- package/dist/Form/index.d.ts +0 -1
- package/dist/Header/Header.d.ts +0 -1
- package/dist/Icon/index.d.ts +0 -1
- package/dist/Input/index.d.ts +0 -1
- package/dist/List/index.d.ts +0 -1
- package/dist/Loading/index.d.ts +0 -1
- package/dist/Main/Main.d.ts +0 -1
- package/dist/Menu/Menu.d.ts +0 -1
- package/dist/Modal/Modal.d.ts +0 -1
- package/dist/Modal/index.d.ts +0 -1
- package/dist/Notice/index.d.ts +0 -1
- package/dist/Notifications/index.d.ts +0 -1
- package/dist/Pagination/index.d.ts +0 -1
- package/dist/Payment/index.d.ts +0 -1
- package/dist/Phone/index.d.ts +0 -1
- package/dist/Router/index.d.ts +0 -1
- package/dist/Scrolling/index.d.ts +0 -1
- package/dist/Search/index.d.ts +0 -1
- package/dist/Setting/Item/Accordion.d.ts +0 -1
- package/dist/Setting/Item/Button.d.ts +0 -1
- package/dist/Setting/Item/index.d.ts +0 -1
- package/dist/Setting/Main.d.ts +0 -1
- package/dist/Setting/Section.d.ts +0 -1
- package/dist/Setting/index.d.ts +0 -1
- package/dist/Sistym/index.d.ts +0 -1
- package/dist/Socket/index.d.ts +0 -1
- package/dist/Store/Store.d.ts +0 -1
- package/dist/Store/index.d.ts +0 -1
- package/dist/Switch/index.d.ts +0 -1
- package/dist/Telegram/index.d.ts +0 -1
- package/dist/Triage/index.d.ts +0 -1
- package/dist/User/index.d.ts +0 -1
- package/dist/index.css +1 -1
- package/dist/index.es.js +1032 -1065
- package/dist/index.umd.js +13 -13
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import './index.css';var ur = Object.defineProperty;
|
|
2
2
|
var dr = (e, t, n) => t in e ? ur(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
-
var
|
|
3
|
+
var Xe = (e, t, n) => dr(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import y from "react";
|
|
5
|
-
let
|
|
5
|
+
let lt = {};
|
|
6
6
|
const fr = (e) => {
|
|
7
|
-
|
|
8
|
-
}, hr = (e) =>
|
|
9
|
-
let
|
|
7
|
+
lt = e;
|
|
8
|
+
}, hr = (e) => lt.enCode(e), mr = (e) => lt.deCode(e), $ = { enCode: hr, deCode: mr, New: fr }, w = {}, U = {}, _e = {}, tn = {}, te = {};
|
|
9
|
+
let ct = "M06";
|
|
10
10
|
function gr(e) {
|
|
11
|
-
|
|
11
|
+
ct = e;
|
|
12
12
|
}
|
|
13
13
|
function pr() {
|
|
14
|
-
return
|
|
14
|
+
return ct;
|
|
15
15
|
}
|
|
16
16
|
function xr(e) {
|
|
17
17
|
if (localStorage.getItem("d")) {
|
|
18
18
|
let n = sessionStorage.getItem("f");
|
|
19
|
-
n ? (n =
|
|
19
|
+
n ? (n = $.deCode(n), n || Z(), w.id = n.id, w.tab = n.tab, w.page = n.page, w.module = n.module, w.time = n.time, w.payment = { active: !0 }, w.module_admin = n.module_admin) : (w.id = 0, w.tab = "", w.page = "Main", w.module = w.module || ct);
|
|
20
20
|
} else
|
|
21
21
|
["a", "b", "c", "d", "e", "m", "u", "s", "q", "p"].forEach(
|
|
22
22
|
(n) => localStorage.removeItem(n)
|
|
23
23
|
), ["f"].forEach((n) => sessionStorage.removeItem(n)), w.id = 0, w.tab = "", w.page = "Auth", w.module = "M00";
|
|
24
24
|
return e;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function Z() {
|
|
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();
|
|
@@ -31,51 +31,51 @@ function H() {
|
|
|
31
31
|
function vr(e) {
|
|
32
32
|
e = e.split("/"), w.page = "Main", w.module = e[0], w.tab = e[1], w.id = 0, sessionStorage.setItem(
|
|
33
33
|
"f",
|
|
34
|
-
|
|
34
|
+
$.enCode({
|
|
35
35
|
module: w.module,
|
|
36
36
|
page: w.page,
|
|
37
37
|
tab: w.tab,
|
|
38
38
|
id: w.id,
|
|
39
39
|
time: (/* @__PURE__ */ new Date()).getTime()
|
|
40
40
|
})
|
|
41
|
-
),
|
|
41
|
+
), U.page(w.page);
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function jr(e) {
|
|
44
44
|
return localStorage.setItem("d", e);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function br() {
|
|
47
47
|
let e = localStorage.getItem("d");
|
|
48
48
|
return e !== "" && e !== "undefined" && e !== null ? e : "";
|
|
49
49
|
}
|
|
50
50
|
function Cr(e) {
|
|
51
51
|
return localStorage.setItem("a", e);
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function yr() {
|
|
54
54
|
let e = localStorage.getItem("a");
|
|
55
55
|
return e !== "" && e !== "undefined" && e !== null ? e : "";
|
|
56
56
|
}
|
|
57
|
-
function
|
|
58
|
-
localStorage.setItem("p",
|
|
57
|
+
function _r(e) {
|
|
58
|
+
localStorage.setItem("p", $.enCode(e));
|
|
59
59
|
}
|
|
60
60
|
function et() {
|
|
61
61
|
let e = localStorage.getItem("p");
|
|
62
62
|
if (e !== "" && e !== "undefined" && e !== null) {
|
|
63
|
-
let t =
|
|
64
|
-
return t ||
|
|
63
|
+
let t = $.deCode(e);
|
|
64
|
+
return t || Z(), t;
|
|
65
65
|
} else
|
|
66
|
-
return
|
|
66
|
+
return Z(), !1;
|
|
67
67
|
}
|
|
68
68
|
function wr(e) {
|
|
69
69
|
if (typeof e != "function") {
|
|
70
70
|
const [t, n] = y.useState(e || nn()), s = (a) => {
|
|
71
71
|
n(a);
|
|
72
72
|
};
|
|
73
|
-
return
|
|
73
|
+
return U.page = s, [t];
|
|
74
74
|
} else
|
|
75
|
-
|
|
75
|
+
U.page = e;
|
|
76
76
|
}
|
|
77
77
|
function kr(e, t = !0) {
|
|
78
|
-
w.page = e, sessionStorage.setItem("f",
|
|
78
|
+
w.page = e, sessionStorage.setItem("f", $.enCode(w)), t && U.page(e);
|
|
79
79
|
}
|
|
80
80
|
function nn() {
|
|
81
81
|
return w.page;
|
|
@@ -88,55 +88,55 @@ function Er(e) {
|
|
|
88
88
|
const [t, n] = y.useState(e || rn()), s = (a) => {
|
|
89
89
|
n(a);
|
|
90
90
|
};
|
|
91
|
-
return
|
|
91
|
+
return U.module = s, [t];
|
|
92
92
|
} else
|
|
93
|
-
|
|
93
|
+
U.module = e;
|
|
94
94
|
}
|
|
95
|
-
function
|
|
96
|
-
w.module = e, sessionStorage.setItem("f",
|
|
95
|
+
function Dr(e, t = !0) {
|
|
96
|
+
w.module = e, sessionStorage.setItem("f", $.enCode(w)), t && U.module(e);
|
|
97
97
|
}
|
|
98
98
|
function rn() {
|
|
99
99
|
return w.module;
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function Mr(e) {
|
|
102
102
|
return w.module === e;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function Rr(e) {
|
|
105
105
|
if (typeof e != "function") {
|
|
106
106
|
const [t, n] = y.useState(e || Ae()), [s, a] = y.useState(!1);
|
|
107
107
|
return y.useEffect(() => {
|
|
108
108
|
a(!0);
|
|
109
|
-
}, []),
|
|
109
|
+
}, []), U.tabs = n, [t, s];
|
|
110
110
|
} else
|
|
111
|
-
|
|
111
|
+
U.tabs = e;
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
if (w.tab = e, sessionStorage.setItem("f",
|
|
115
|
-
if (
|
|
116
|
-
|
|
113
|
+
function Tr(e, t = !0) {
|
|
114
|
+
if (w.tab = e, sessionStorage.setItem("f", $.enCode(w)), !!t)
|
|
115
|
+
if (U.tabs)
|
|
116
|
+
U.tabs(e);
|
|
117
117
|
else
|
|
118
118
|
throw new Error("useTabs not found");
|
|
119
119
|
}
|
|
120
120
|
function Ae() {
|
|
121
121
|
return w.tab;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function $r(e) {
|
|
124
124
|
return w.tab === e;
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function Br(e) {
|
|
127
127
|
if (typeof e != "function") {
|
|
128
128
|
const [t, n] = y.useState(e || sn()), s = (a) => {
|
|
129
129
|
n(a);
|
|
130
130
|
};
|
|
131
|
-
return
|
|
131
|
+
return U.id = s, [t];
|
|
132
132
|
} else
|
|
133
|
-
|
|
133
|
+
U.id = e;
|
|
134
134
|
}
|
|
135
|
-
function
|
|
136
|
-
|
|
135
|
+
function Ir(e) {
|
|
136
|
+
U.id = e;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
139
|
-
w.id = e, sessionStorage.setItem("f",
|
|
138
|
+
function Nr(e, t = !0) {
|
|
139
|
+
w.id = e, sessionStorage.setItem("f", $.enCode(w)), t && U.id(e);
|
|
140
140
|
}
|
|
141
141
|
function sn() {
|
|
142
142
|
return w.id;
|
|
@@ -145,103 +145,101 @@ function Fr(e) {
|
|
|
145
145
|
return Number(w.id) === e;
|
|
146
146
|
}
|
|
147
147
|
function Pr(e, t, n) {
|
|
148
|
-
w.module = e, w.id = n, w.tab = t, sessionStorage.setItem("f",
|
|
148
|
+
w.module = e, w.id = n, w.tab = t, sessionStorage.setItem("f", $.enCode(w)), U.module(e), U.tabs(t);
|
|
149
149
|
}
|
|
150
150
|
function Or(e) {
|
|
151
|
-
|
|
151
|
+
_e.data = e[0], delete _e.data.id, document.body.dataset.theme = _e.data.s15, localStorage.setItem("s", $.enCode(_e.data));
|
|
152
152
|
}
|
|
153
153
|
function Lr(e, t) {
|
|
154
|
-
|
|
154
|
+
_e.data[e] = t, localStorage.setItem("s", $.enCode(_e.data));
|
|
155
155
|
}
|
|
156
156
|
function Ar(e) {
|
|
157
157
|
let t = localStorage.getItem("s");
|
|
158
|
-
return t === null ? {} : (t =
|
|
158
|
+
return t === null ? {} : (t = $.deCode(t), t ? e !== void 0 ? t[e] : t : Z());
|
|
159
159
|
}
|
|
160
160
|
function an(e) {
|
|
161
|
-
localStorage.setItem("m",
|
|
161
|
+
localStorage.setItem("m", $.enCode({ data: e }));
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function Wr() {
|
|
164
164
|
let e = localStorage.getItem("m");
|
|
165
165
|
if (e !== "" && e !== "undefined" && e !== null) {
|
|
166
|
-
let t = localStorage.getItem("m"), n =
|
|
167
|
-
n ||
|
|
166
|
+
let t = localStorage.getItem("m"), n = $.deCode(t);
|
|
167
|
+
n || Z();
|
|
168
168
|
const s = (i, l) => {
|
|
169
169
|
let c = l + "";
|
|
170
|
-
for (; c.length < i; )
|
|
171
|
-
c = "0" + c;
|
|
170
|
+
for (; c.length < i; ) c = "0" + c;
|
|
172
171
|
return c;
|
|
173
172
|
};
|
|
174
173
|
return n.data.split(",").map((i) => "M" + s(2, i));
|
|
175
174
|
} else
|
|
176
|
-
return
|
|
175
|
+
return Z(), !1;
|
|
177
176
|
}
|
|
178
|
-
function
|
|
179
|
-
|
|
177
|
+
function Ur(e) {
|
|
178
|
+
U.sort = e;
|
|
180
179
|
}
|
|
181
180
|
function on(e) {
|
|
182
181
|
let t = localStorage.getItem("b");
|
|
183
|
-
t = t === null ? {} :
|
|
182
|
+
t = t === null ? {} : $.deCode(t), t[Ae()] = e, localStorage.setItem("b", $.enCode(t));
|
|
184
183
|
}
|
|
185
184
|
function tt() {
|
|
186
185
|
let e = localStorage.getItem("b");
|
|
187
|
-
return e === null ? {} : (e =
|
|
186
|
+
return e === null ? {} : (e = $.deCode(e), e = e[Ae()], e = e === void 0 ? { active: 1, sort: "<" } : e, e);
|
|
188
187
|
}
|
|
189
188
|
function ln(e) {
|
|
190
|
-
localStorage.setItem("c",
|
|
189
|
+
localStorage.setItem("c", $.enCode(e));
|
|
191
190
|
}
|
|
192
|
-
function
|
|
191
|
+
function zr(e, t) {
|
|
193
192
|
var s;
|
|
194
193
|
let n = localStorage.getItem("c");
|
|
195
194
|
if (n !== "" && n !== "undefined" && n !== null) {
|
|
196
|
-
let a =
|
|
197
|
-
return a ||
|
|
195
|
+
let a = $.deCode(n);
|
|
196
|
+
return a || Z(), e === void 0 ? a : t ? (s = a[e][t]) == null ? void 0 : s.n : a[e];
|
|
198
197
|
} else
|
|
199
|
-
return
|
|
198
|
+
return Z(), !1;
|
|
200
199
|
}
|
|
201
|
-
function
|
|
202
|
-
te.data = e, localStorage.setItem("q",
|
|
200
|
+
function Te(e) {
|
|
201
|
+
te.data = e, localStorage.setItem("q", $.enCode(te.data));
|
|
203
202
|
}
|
|
204
|
-
function
|
|
205
|
-
te.data = { ...te.data, [e]: t }, localStorage.setItem("q",
|
|
203
|
+
function qr(e, t) {
|
|
204
|
+
te.data = { ...te.data, [e]: t }, localStorage.setItem("q", $.enCode(te.data));
|
|
206
205
|
}
|
|
207
206
|
function ae(e, t) {
|
|
208
207
|
if (!te.data) {
|
|
209
208
|
let n = localStorage.getItem("q");
|
|
210
|
-
n && (te.data =
|
|
209
|
+
n && (te.data = $.deCode(n));
|
|
211
210
|
}
|
|
212
211
|
return e === void 0 && t === void 0 ? te.data : e !== void 0 && t === void 0 ? te.data[e] : te.data[e][t];
|
|
213
212
|
}
|
|
214
|
-
function
|
|
213
|
+
function Hr(e) {
|
|
215
214
|
tn.data = e;
|
|
216
215
|
}
|
|
217
216
|
function Kr(e) {
|
|
218
217
|
return tn.data[e];
|
|
219
218
|
}
|
|
220
|
-
function
|
|
219
|
+
function Yr(e) {
|
|
221
220
|
w.payment = e;
|
|
222
221
|
}
|
|
223
|
-
function
|
|
222
|
+
function Zr() {
|
|
224
223
|
return w.payment;
|
|
225
224
|
}
|
|
226
225
|
function cn(e) {
|
|
227
|
-
localStorage.setItem("u",
|
|
226
|
+
localStorage.setItem("u", $.enCode(e));
|
|
228
227
|
}
|
|
229
|
-
function
|
|
228
|
+
function Jr() {
|
|
230
229
|
let e = localStorage.getItem("u");
|
|
231
230
|
if (e !== "" && e !== "undefined" && e !== null) {
|
|
232
|
-
let t =
|
|
233
|
-
return t ||
|
|
231
|
+
let t = $.deCode(e);
|
|
232
|
+
return t || Z(), t;
|
|
234
233
|
} else
|
|
235
|
-
return
|
|
234
|
+
return Z(), !1;
|
|
236
235
|
}
|
|
237
|
-
function
|
|
236
|
+
function Gr(e) {
|
|
238
237
|
const t = (n) => {
|
|
239
238
|
let s = localStorage.getItem(n);
|
|
240
239
|
if (s !== "" && s !== "undefined" && s !== null)
|
|
241
240
|
try {
|
|
242
|
-
let a =
|
|
243
|
-
if (!a)
|
|
244
|
-
return;
|
|
241
|
+
let a = $.deCode(s);
|
|
242
|
+
if (!a) return;
|
|
245
243
|
w[n] = { is: !0, time: a.time, data: a.data };
|
|
246
244
|
} catch {
|
|
247
245
|
w[n] = { is: !1, time: 0, data: {} };
|
|
@@ -251,95 +249,94 @@ function Xr(e) {
|
|
|
251
249
|
};
|
|
252
250
|
e.forEach((n) => t(n));
|
|
253
251
|
}
|
|
254
|
-
function
|
|
252
|
+
function Xr(e) {
|
|
255
253
|
return w[e] === void 0 ? (w[e] = { data: {}, time: 0 }, { data: {}, time: 0 }) : w[e];
|
|
256
254
|
}
|
|
257
255
|
function Qr(e, t) {
|
|
258
|
-
w[e] = { data: t.data, time: t.time }, localStorage.setItem(e,
|
|
256
|
+
w[e] = { data: t.data, time: t.time }, localStorage.setItem(e, $.enCode(w[e]));
|
|
259
257
|
}
|
|
260
258
|
function Vr(e, t, n) {
|
|
261
|
-
w[e].time = n, w[e].data[t.item][t.name] = t.value, localStorage.setItem(e,
|
|
259
|
+
w[e].time = n, w[e].data[t.item][t.name] = t.value, localStorage.setItem(e, $.enCode(w[e]));
|
|
262
260
|
}
|
|
263
261
|
const oe = {
|
|
264
|
-
setSSID:
|
|
265
|
-
getSSID:
|
|
262
|
+
setSSID: jr,
|
|
263
|
+
getSSID: br,
|
|
266
264
|
getPORT: et,
|
|
267
|
-
setPORT:
|
|
265
|
+
setPORT: _r,
|
|
268
266
|
setAUTH: Cr,
|
|
269
|
-
getAUTH:
|
|
270
|
-
Logaut:
|
|
267
|
+
getAUTH: yr,
|
|
268
|
+
Logaut: Z,
|
|
271
269
|
Start: vr,
|
|
272
270
|
setMenu: an,
|
|
273
|
-
getMenu:
|
|
274
|
-
useSort:
|
|
271
|
+
getMenu: Wr,
|
|
272
|
+
useSort: Ur,
|
|
275
273
|
setSort: on,
|
|
276
274
|
getSort: tt,
|
|
277
275
|
setCompany: ln,
|
|
278
|
-
getCompany:
|
|
279
|
-
setSelect:
|
|
280
|
-
addSelect:
|
|
276
|
+
getCompany: zr,
|
|
277
|
+
setSelect: Te,
|
|
278
|
+
addSelect: qr,
|
|
281
279
|
getSelect: ae,
|
|
282
|
-
setApi:
|
|
280
|
+
setApi: Hr,
|
|
283
281
|
getApi: Kr,
|
|
284
|
-
setPayment:
|
|
285
|
-
getPayment:
|
|
282
|
+
setPayment: Yr,
|
|
283
|
+
getPayment: Zr,
|
|
286
284
|
setUser: cn,
|
|
287
|
-
getUser:
|
|
285
|
+
getUser: Jr,
|
|
288
286
|
getDefaultModules: pr,
|
|
289
|
-
getBase:
|
|
287
|
+
getBase: Xr,
|
|
290
288
|
setBase: Qr,
|
|
291
289
|
editBase: Vr,
|
|
292
|
-
loadBase:
|
|
293
|
-
}, un = "
|
|
290
|
+
loadBase: Gr
|
|
291
|
+
}, un = '(function(){"use strict";onmessage=async t=>{try{let a=await fetch(`${t.data.host}${t.data.link}`,{method:"POST",headers:{ssid:t.data.ssid,"Content-type":"application/json;charset=utf-8"},body:JSON.stringify(t.data.data)});postMessage(await a.json())}catch(a){postMessage({status:"error",data:"worker",message:a})}}})();\n', qt = typeof self < "u" && self.Blob && new Blob([un], { type: "text/javascript;charset=utf-8" });
|
|
294
292
|
function dn(e) {
|
|
295
293
|
let t;
|
|
296
294
|
try {
|
|
297
|
-
if (t =
|
|
298
|
-
throw "";
|
|
295
|
+
if (t = qt && (self.URL || self.webkitURL).createObjectURL(qt), !t) throw "";
|
|
299
296
|
const n = new Worker(t, {
|
|
300
297
|
name: e == null ? void 0 : e.name
|
|
301
298
|
});
|
|
302
299
|
return n.addEventListener("error", () => {
|
|
303
|
-
(
|
|
300
|
+
(self.URL || self.webkitURL).revokeObjectURL(t);
|
|
304
301
|
}), n;
|
|
305
302
|
} catch {
|
|
306
303
|
return new Worker(
|
|
307
|
-
"data:text/javascript;
|
|
304
|
+
"data:text/javascript;charset=utf-8," + encodeURIComponent(un),
|
|
308
305
|
{
|
|
309
306
|
name: e == null ? void 0 : e.name
|
|
310
307
|
}
|
|
311
308
|
);
|
|
312
309
|
} finally {
|
|
313
|
-
t && (
|
|
310
|
+
t && (self.URL || self.webkitURL).revokeObjectURL(t);
|
|
314
311
|
}
|
|
315
312
|
}
|
|
316
313
|
const ue = {};
|
|
317
|
-
function
|
|
314
|
+
function es(e) {
|
|
318
315
|
return e && (ue.s = e), ue.s;
|
|
319
316
|
}
|
|
320
|
-
function
|
|
317
|
+
function ts(e) {
|
|
321
318
|
return e && (ue.a = e), ue.a;
|
|
322
319
|
}
|
|
323
|
-
function
|
|
320
|
+
function ns(e) {
|
|
324
321
|
return e && (ue.c = e), ue.c;
|
|
325
322
|
}
|
|
326
|
-
function
|
|
323
|
+
function rs(e) {
|
|
327
324
|
return e && (ue.h = e), ue.h;
|
|
328
325
|
}
|
|
329
|
-
const
|
|
330
|
-
let
|
|
331
|
-
function
|
|
326
|
+
const ut = { version: { Api: ts, Server: es, Client: ns }, Host: rs };
|
|
327
|
+
let ss = "api", as = "elcrm", is = "online";
|
|
328
|
+
function os() {
|
|
332
329
|
let e = oe.getPORT(), t = "", n = "";
|
|
333
330
|
return e.address === "localhost" ? (t = `http://localhost:${e.socket}/documents`, n = `http://localhost:${e.socket}/files`) : (t = "https://" + e.address + "/documents", n = "https://" + e.address + "/files"), {
|
|
334
331
|
documents: t,
|
|
335
332
|
files: n
|
|
336
333
|
};
|
|
337
334
|
}
|
|
338
|
-
let fn = `${
|
|
339
|
-
function
|
|
335
|
+
let fn = `${ss}.${as}.${is}`;
|
|
336
|
+
function ls(e) {
|
|
340
337
|
return "https://" + oe.getPORT().address + "/audio/" + e;
|
|
341
338
|
}
|
|
342
|
-
function
|
|
339
|
+
function We(e, t = {}, n = oe.getAUTH()) {
|
|
343
340
|
return new Promise((s) => {
|
|
344
341
|
const a = new dn();
|
|
345
342
|
a.onmessage = (i) => {
|
|
@@ -348,11 +345,11 @@ function ze(e, t = {}, n = oe.getAUTH()) {
|
|
|
348
345
|
link: e,
|
|
349
346
|
data: t,
|
|
350
347
|
ssid: n,
|
|
351
|
-
host:
|
|
348
|
+
host: ut.Host() || `https://${fn}/`
|
|
352
349
|
});
|
|
353
350
|
});
|
|
354
351
|
}
|
|
355
|
-
function
|
|
352
|
+
function cs(e, t = {}, n = oe.getAUTH()) {
|
|
356
353
|
return new Promise((s) => {
|
|
357
354
|
const a = new dn();
|
|
358
355
|
a.onmessage = (i) => {
|
|
@@ -361,13 +358,13 @@ function us(e, t = {}, n = oe.getAUTH()) {
|
|
|
361
358
|
link: e,
|
|
362
359
|
data: t,
|
|
363
360
|
ssid: n,
|
|
364
|
-
host:
|
|
361
|
+
host: ut.Host() + "modules/" || `https://${fn}/modules`
|
|
365
362
|
});
|
|
366
363
|
});
|
|
367
364
|
}
|
|
368
|
-
function
|
|
365
|
+
function us(e, t = {}, n) {
|
|
369
366
|
const [s, a] = y.useState({ status: "load" }), i = async (l) => {
|
|
370
|
-
let c = await
|
|
367
|
+
let c = await We(e, l, n);
|
|
371
368
|
a(c);
|
|
372
369
|
};
|
|
373
370
|
return y.useEffect(() => {
|
|
@@ -378,9 +375,9 @@ let hn = {
|
|
|
378
375
|
"Content-type": "application/json;charset=utf-8",
|
|
379
376
|
ssid: oe.getAUTH() || ""
|
|
380
377
|
};
|
|
381
|
-
async function
|
|
378
|
+
async function ds(e, t, n = {}) {
|
|
382
379
|
try {
|
|
383
|
-
return await (await
|
|
380
|
+
return await (await We("https://" + e + "/" + t, {
|
|
384
381
|
method: "POST",
|
|
385
382
|
headers: hn,
|
|
386
383
|
body: JSON.stringify(n)
|
|
@@ -389,9 +386,9 @@ async function fs(e, t, n = {}) {
|
|
|
389
386
|
return { status: "error" };
|
|
390
387
|
}
|
|
391
388
|
}
|
|
392
|
-
async function
|
|
389
|
+
async function fs(e, t = {}) {
|
|
393
390
|
try {
|
|
394
|
-
return await (await
|
|
391
|
+
return await (await We("https://tb.elcrm.online/v1/" + e, {
|
|
395
392
|
method: "POST",
|
|
396
393
|
headers: hn,
|
|
397
394
|
body: JSON.stringify(t)
|
|
@@ -400,8 +397,8 @@ async function hs(e, t = {}) {
|
|
|
400
397
|
return { status: "error" };
|
|
401
398
|
}
|
|
402
399
|
}
|
|
403
|
-
const
|
|
404
|
-
var
|
|
400
|
+
const gl = { audio: ls, fetch: We, modules: cs, remoute: ds, url: os, telegram: fs, use: us };
|
|
401
|
+
var Oe = { exports: {} }, Ee = {};
|
|
405
402
|
/**
|
|
406
403
|
* @license React
|
|
407
404
|
* react-jsx-runtime.production.min.js
|
|
@@ -411,25 +408,21 @@ var nt = { exports: {} }, Te = {};
|
|
|
411
408
|
* This source code is licensed under the MIT license found in the
|
|
412
409
|
* LICENSE file in the root directory of this source tree.
|
|
413
410
|
*/
|
|
414
|
-
var
|
|
415
|
-
function
|
|
416
|
-
if (
|
|
417
|
-
|
|
418
|
-
Yt = 1;
|
|
411
|
+
var Ht;
|
|
412
|
+
function hs() {
|
|
413
|
+
if (Ht) return Ee;
|
|
414
|
+
Ht = 1;
|
|
419
415
|
var e = y, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
420
416
|
function l(c, d, u) {
|
|
421
417
|
var f, g = {}, x = null, h = null;
|
|
422
418
|
u !== void 0 && (x = "" + u), d.key !== void 0 && (x = "" + d.key), d.ref !== void 0 && (h = d.ref);
|
|
423
|
-
for (f in d)
|
|
424
|
-
|
|
425
|
-
if (c && c.defaultProps)
|
|
426
|
-
for (f in d = c.defaultProps, d)
|
|
427
|
-
g[f] === void 0 && (g[f] = d[f]);
|
|
419
|
+
for (f in d) s.call(d, f) && !i.hasOwnProperty(f) && (g[f] = d[f]);
|
|
420
|
+
if (c && c.defaultProps) for (f in d = c.defaultProps, d) g[f] === void 0 && (g[f] = d[f]);
|
|
428
421
|
return { $$typeof: t, type: c, key: x, ref: h, props: g, _owner: a.current };
|
|
429
422
|
}
|
|
430
|
-
return
|
|
423
|
+
return Ee.Fragment = n, Ee.jsx = l, Ee.jsxs = l, Ee;
|
|
431
424
|
}
|
|
432
|
-
var
|
|
425
|
+
var De = {};
|
|
433
426
|
/**
|
|
434
427
|
* @license React
|
|
435
428
|
* react-jsx-runtime.development.js
|
|
@@ -440,17 +433,17 @@ var Re = {};
|
|
|
440
433
|
* LICENSE file in the root directory of this source tree.
|
|
441
434
|
*/
|
|
442
435
|
var Kt;
|
|
443
|
-
function
|
|
436
|
+
function ms() {
|
|
444
437
|
return Kt || (Kt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
445
|
-
var e = y, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"),
|
|
438
|
+
var e = y, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), j = Symbol.iterator, C = "@@iterator";
|
|
446
439
|
function m(o) {
|
|
447
440
|
if (o === null || typeof o != "object")
|
|
448
441
|
return null;
|
|
449
|
-
var v =
|
|
442
|
+
var v = j && o[j] || o[C];
|
|
450
443
|
return typeof v == "function" ? v : null;
|
|
451
444
|
}
|
|
452
445
|
var p = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
453
|
-
function
|
|
446
|
+
function b(o) {
|
|
454
447
|
{
|
|
455
448
|
for (var v = arguments.length, _ = new Array(v > 1 ? v - 1 : 0), k = 1; k < v; k++)
|
|
456
449
|
_[k - 1] = arguments[k];
|
|
@@ -459,37 +452,37 @@ function gs() {
|
|
|
459
452
|
}
|
|
460
453
|
function S(o, v, _) {
|
|
461
454
|
{
|
|
462
|
-
var k = p.ReactDebugCurrentFrame,
|
|
463
|
-
|
|
464
|
-
var F = _.map(function(
|
|
465
|
-
return String(
|
|
455
|
+
var k = p.ReactDebugCurrentFrame, N = k.getStackAddendum();
|
|
456
|
+
N !== "" && (v += "%s", _ = _.concat([N]));
|
|
457
|
+
var F = _.map(function(T) {
|
|
458
|
+
return String(T);
|
|
466
459
|
});
|
|
467
460
|
F.unshift("Warning: " + v), Function.prototype.apply.call(console[o], console, F);
|
|
468
461
|
}
|
|
469
462
|
}
|
|
470
|
-
var E = !1,
|
|
463
|
+
var E = !1, I = !1, M = !1, P = !1, ee = !1, O;
|
|
471
464
|
O = Symbol.for("react.module.reference");
|
|
472
|
-
function
|
|
473
|
-
return !!(typeof o == "string" || typeof o == "function" || o === s || o === i || ee || o === a || o === u || o === f || P || o === h || E ||
|
|
465
|
+
function B(o) {
|
|
466
|
+
return !!(typeof o == "string" || typeof o == "function" || o === s || o === i || ee || o === a || o === u || o === f || P || o === h || E || I || M || typeof o == "object" && o !== null && (o.$$typeof === x || o.$$typeof === g || o.$$typeof === l || o.$$typeof === c || o.$$typeof === d || // This needs to include all possible module reference object
|
|
474
467
|
// types supported by any Flight configuration anywhere since
|
|
475
468
|
// we don't know which Flight build this will end up being used
|
|
476
469
|
// with.
|
|
477
470
|
o.$$typeof === O || o.getModuleId !== void 0));
|
|
478
471
|
}
|
|
479
|
-
function
|
|
472
|
+
function J(o, v, _) {
|
|
480
473
|
var k = o.displayName;
|
|
481
474
|
if (k)
|
|
482
475
|
return k;
|
|
483
|
-
var
|
|
484
|
-
return
|
|
476
|
+
var N = v.displayName || v.name || "";
|
|
477
|
+
return N !== "" ? _ + "(" + N + ")" : _;
|
|
485
478
|
}
|
|
486
|
-
function
|
|
479
|
+
function be(o) {
|
|
487
480
|
return o.displayName || "Context";
|
|
488
481
|
}
|
|
489
|
-
function
|
|
482
|
+
function H(o) {
|
|
490
483
|
if (o == null)
|
|
491
484
|
return null;
|
|
492
|
-
if (typeof o.tag == "number" &&
|
|
485
|
+
if (typeof o.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
|
|
493
486
|
return o.displayName || o.name || null;
|
|
494
487
|
if (typeof o == "string")
|
|
495
488
|
return o;
|
|
@@ -511,19 +504,19 @@ function gs() {
|
|
|
511
504
|
switch (o.$$typeof) {
|
|
512
505
|
case c:
|
|
513
506
|
var v = o;
|
|
514
|
-
return
|
|
507
|
+
return be(v) + ".Consumer";
|
|
515
508
|
case l:
|
|
516
509
|
var _ = o;
|
|
517
|
-
return
|
|
510
|
+
return be(_._context) + ".Provider";
|
|
518
511
|
case d:
|
|
519
|
-
return
|
|
512
|
+
return J(o, o.render, "ForwardRef");
|
|
520
513
|
case g:
|
|
521
514
|
var k = o.displayName || null;
|
|
522
|
-
return k !== null ? k :
|
|
515
|
+
return k !== null ? k : H(o.type) || "Memo";
|
|
523
516
|
case x: {
|
|
524
|
-
var
|
|
517
|
+
var N = o, F = N._payload, T = N._init;
|
|
525
518
|
try {
|
|
526
|
-
return
|
|
519
|
+
return H(T(F));
|
|
527
520
|
} catch {
|
|
528
521
|
return null;
|
|
529
522
|
}
|
|
@@ -531,18 +524,18 @@ function gs() {
|
|
|
531
524
|
}
|
|
532
525
|
return null;
|
|
533
526
|
}
|
|
534
|
-
var re = Object.assign, ke = 0,
|
|
535
|
-
function
|
|
527
|
+
var re = Object.assign, ke = 0, Ct, yt, _t, wt, kt, St, Et;
|
|
528
|
+
function Dt() {
|
|
536
529
|
}
|
|
537
|
-
|
|
530
|
+
Dt.__reactDisabledLog = !0;
|
|
538
531
|
function Pn() {
|
|
539
532
|
{
|
|
540
533
|
if (ke === 0) {
|
|
541
|
-
|
|
534
|
+
Ct = console.log, yt = console.info, _t = console.warn, wt = console.error, kt = console.group, St = console.groupCollapsed, Et = console.groupEnd;
|
|
542
535
|
var o = {
|
|
543
536
|
configurable: !0,
|
|
544
537
|
enumerable: !0,
|
|
545
|
-
value:
|
|
538
|
+
value: Dt,
|
|
546
539
|
writable: !0
|
|
547
540
|
};
|
|
548
541
|
Object.defineProperties(console, {
|
|
@@ -568,87 +561,87 @@ function gs() {
|
|
|
568
561
|
};
|
|
569
562
|
Object.defineProperties(console, {
|
|
570
563
|
log: re({}, o, {
|
|
571
|
-
value:
|
|
564
|
+
value: Ct
|
|
572
565
|
}),
|
|
573
566
|
info: re({}, o, {
|
|
574
567
|
value: yt
|
|
575
568
|
}),
|
|
576
569
|
warn: re({}, o, {
|
|
577
|
-
value:
|
|
570
|
+
value: _t
|
|
578
571
|
}),
|
|
579
572
|
error: re({}, o, {
|
|
580
|
-
value:
|
|
573
|
+
value: wt
|
|
581
574
|
}),
|
|
582
575
|
group: re({}, o, {
|
|
583
|
-
value:
|
|
576
|
+
value: kt
|
|
584
577
|
}),
|
|
585
578
|
groupCollapsed: re({}, o, {
|
|
586
|
-
value:
|
|
579
|
+
value: St
|
|
587
580
|
}),
|
|
588
581
|
groupEnd: re({}, o, {
|
|
589
|
-
value:
|
|
582
|
+
value: Et
|
|
590
583
|
})
|
|
591
584
|
});
|
|
592
585
|
}
|
|
593
|
-
ke < 0 &&
|
|
586
|
+
ke < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
594
587
|
}
|
|
595
588
|
}
|
|
596
|
-
var
|
|
597
|
-
function
|
|
589
|
+
var ze = p.ReactCurrentDispatcher, qe;
|
|
590
|
+
function Ie(o, v, _) {
|
|
598
591
|
{
|
|
599
|
-
if (
|
|
592
|
+
if (qe === void 0)
|
|
600
593
|
try {
|
|
601
594
|
throw Error();
|
|
602
|
-
} catch (
|
|
603
|
-
var k =
|
|
604
|
-
|
|
595
|
+
} catch (N) {
|
|
596
|
+
var k = N.stack.trim().match(/\n( *(at )?)/);
|
|
597
|
+
qe = k && k[1] || "";
|
|
605
598
|
}
|
|
606
599
|
return `
|
|
607
|
-
` +
|
|
600
|
+
` + qe + o;
|
|
608
601
|
}
|
|
609
602
|
}
|
|
610
|
-
var
|
|
603
|
+
var He = !1, Ne;
|
|
611
604
|
{
|
|
612
605
|
var Ln = typeof WeakMap == "function" ? WeakMap : Map;
|
|
613
|
-
|
|
606
|
+
Ne = new Ln();
|
|
614
607
|
}
|
|
615
|
-
function
|
|
616
|
-
if (!o ||
|
|
608
|
+
function Mt(o, v) {
|
|
609
|
+
if (!o || He)
|
|
617
610
|
return "";
|
|
618
611
|
{
|
|
619
|
-
var _ =
|
|
612
|
+
var _ = Ne.get(o);
|
|
620
613
|
if (_ !== void 0)
|
|
621
614
|
return _;
|
|
622
615
|
}
|
|
623
616
|
var k;
|
|
624
|
-
|
|
625
|
-
var
|
|
617
|
+
He = !0;
|
|
618
|
+
var N = Error.prepareStackTrace;
|
|
626
619
|
Error.prepareStackTrace = void 0;
|
|
627
620
|
var F;
|
|
628
|
-
F =
|
|
621
|
+
F = ze.current, ze.current = null, Pn();
|
|
629
622
|
try {
|
|
630
623
|
if (v) {
|
|
631
|
-
var
|
|
624
|
+
var T = function() {
|
|
632
625
|
throw Error();
|
|
633
626
|
};
|
|
634
|
-
if (Object.defineProperty(
|
|
627
|
+
if (Object.defineProperty(T.prototype, "props", {
|
|
635
628
|
set: function() {
|
|
636
629
|
throw Error();
|
|
637
630
|
}
|
|
638
631
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
639
632
|
try {
|
|
640
|
-
Reflect.construct(
|
|
633
|
+
Reflect.construct(T, []);
|
|
641
634
|
} catch (K) {
|
|
642
635
|
k = K;
|
|
643
636
|
}
|
|
644
|
-
Reflect.construct(o, [],
|
|
637
|
+
Reflect.construct(o, [], T);
|
|
645
638
|
} else {
|
|
646
639
|
try {
|
|
647
|
-
|
|
640
|
+
T.call();
|
|
648
641
|
} catch (K) {
|
|
649
642
|
k = K;
|
|
650
643
|
}
|
|
651
|
-
o.call(
|
|
644
|
+
o.call(T.prototype);
|
|
652
645
|
}
|
|
653
646
|
} else {
|
|
654
647
|
try {
|
|
@@ -660,124 +653,123 @@ function gs() {
|
|
|
660
653
|
}
|
|
661
654
|
} catch (K) {
|
|
662
655
|
if (K && k && typeof K.stack == "string") {
|
|
663
|
-
for (var
|
|
664
|
-
`),
|
|
665
|
-
`), L =
|
|
666
|
-
|
|
667
|
-
for (; L >= 1 &&
|
|
668
|
-
if (
|
|
669
|
-
if (L !== 1 ||
|
|
656
|
+
for (var R = K.stack.split(`
|
|
657
|
+
`), q = k.stack.split(`
|
|
658
|
+
`), L = R.length - 1, W = q.length - 1; L >= 1 && W >= 0 && R[L] !== q[W]; )
|
|
659
|
+
W--;
|
|
660
|
+
for (; L >= 1 && W >= 0; L--, W--)
|
|
661
|
+
if (R[L] !== q[W]) {
|
|
662
|
+
if (L !== 1 || W !== 1)
|
|
670
663
|
do
|
|
671
|
-
if (L--,
|
|
672
|
-
var
|
|
673
|
-
` +
|
|
674
|
-
return o.displayName &&
|
|
664
|
+
if (L--, W--, W < 0 || R[L] !== q[W]) {
|
|
665
|
+
var G = `
|
|
666
|
+
` + R[L].replace(" at new ", " at ");
|
|
667
|
+
return o.displayName && G.includes("<anonymous>") && (G = G.replace("<anonymous>", o.displayName)), typeof o == "function" && Ne.set(o, G), G;
|
|
675
668
|
}
|
|
676
|
-
while (L >= 1 &&
|
|
669
|
+
while (L >= 1 && W >= 0);
|
|
677
670
|
break;
|
|
678
671
|
}
|
|
679
672
|
}
|
|
680
673
|
} finally {
|
|
681
|
-
|
|
674
|
+
He = !1, ze.current = F, On(), Error.prepareStackTrace = N;
|
|
682
675
|
}
|
|
683
|
-
var
|
|
684
|
-
return typeof o == "function" &&
|
|
676
|
+
var ye = o ? o.displayName || o.name : "", he = ye ? Ie(ye) : "";
|
|
677
|
+
return typeof o == "function" && Ne.set(o, he), he;
|
|
685
678
|
}
|
|
686
679
|
function An(o, v, _) {
|
|
687
|
-
return
|
|
680
|
+
return Mt(o, !1);
|
|
688
681
|
}
|
|
689
|
-
function
|
|
682
|
+
function Wn(o) {
|
|
690
683
|
var v = o.prototype;
|
|
691
684
|
return !!(v && v.isReactComponent);
|
|
692
685
|
}
|
|
693
|
-
function
|
|
686
|
+
function Fe(o, v, _) {
|
|
694
687
|
if (o == null)
|
|
695
688
|
return "";
|
|
696
689
|
if (typeof o == "function")
|
|
697
|
-
return
|
|
690
|
+
return Mt(o, Wn(o));
|
|
698
691
|
if (typeof o == "string")
|
|
699
|
-
return
|
|
692
|
+
return Ie(o);
|
|
700
693
|
switch (o) {
|
|
701
694
|
case u:
|
|
702
|
-
return
|
|
695
|
+
return Ie("Suspense");
|
|
703
696
|
case f:
|
|
704
|
-
return
|
|
697
|
+
return Ie("SuspenseList");
|
|
705
698
|
}
|
|
706
699
|
if (typeof o == "object")
|
|
707
700
|
switch (o.$$typeof) {
|
|
708
701
|
case d:
|
|
709
702
|
return An(o.render);
|
|
710
703
|
case g:
|
|
711
|
-
return
|
|
704
|
+
return Fe(o.type, v, _);
|
|
712
705
|
case x: {
|
|
713
|
-
var k = o,
|
|
706
|
+
var k = o, N = k._payload, F = k._init;
|
|
714
707
|
try {
|
|
715
|
-
return
|
|
708
|
+
return Fe(F(N), v, _);
|
|
716
709
|
} catch {
|
|
717
710
|
}
|
|
718
711
|
}
|
|
719
712
|
}
|
|
720
713
|
return "";
|
|
721
714
|
}
|
|
722
|
-
var Se = Object.prototype.hasOwnProperty,
|
|
723
|
-
function
|
|
715
|
+
var Se = Object.prototype.hasOwnProperty, Rt = {}, Tt = p.ReactDebugCurrentFrame;
|
|
716
|
+
function Pe(o) {
|
|
724
717
|
if (o) {
|
|
725
|
-
var v = o._owner, _ =
|
|
726
|
-
|
|
718
|
+
var v = o._owner, _ = Fe(o.type, o._source, v ? v.type : null);
|
|
719
|
+
Tt.setExtraStackFrame(_);
|
|
727
720
|
} else
|
|
728
|
-
|
|
721
|
+
Tt.setExtraStackFrame(null);
|
|
729
722
|
}
|
|
730
|
-
function
|
|
723
|
+
function Un(o, v, _, k, N) {
|
|
731
724
|
{
|
|
732
725
|
var F = Function.call.bind(Se);
|
|
733
|
-
for (var
|
|
734
|
-
if (F(o,
|
|
735
|
-
var
|
|
726
|
+
for (var T in o)
|
|
727
|
+
if (F(o, T)) {
|
|
728
|
+
var R = void 0;
|
|
736
729
|
try {
|
|
737
|
-
if (typeof o[
|
|
738
|
-
var
|
|
739
|
-
throw
|
|
730
|
+
if (typeof o[T] != "function") {
|
|
731
|
+
var q = Error((k || "React class") + ": " + _ + " type `" + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[T] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
732
|
+
throw q.name = "Invariant Violation", q;
|
|
740
733
|
}
|
|
741
|
-
|
|
734
|
+
R = o[T](v, T, k, _, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
742
735
|
} catch (L) {
|
|
743
|
-
|
|
736
|
+
R = L;
|
|
744
737
|
}
|
|
745
|
-
|
|
738
|
+
R && !(R instanceof Error) && (Pe(N), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", k || "React class", _, T, typeof R), Pe(null)), R instanceof Error && !(R.message in Rt) && (Rt[R.message] = !0, Pe(N), b("Failed %s type: %s", _, R.message), Pe(null));
|
|
746
739
|
}
|
|
747
740
|
}
|
|
748
741
|
}
|
|
749
|
-
var
|
|
742
|
+
var zn = Array.isArray;
|
|
750
743
|
function Ke(o) {
|
|
751
|
-
return
|
|
744
|
+
return zn(o);
|
|
752
745
|
}
|
|
753
|
-
function
|
|
746
|
+
function qn(o) {
|
|
754
747
|
{
|
|
755
748
|
var v = typeof Symbol == "function" && Symbol.toStringTag, _ = v && o[Symbol.toStringTag] || o.constructor.name || "Object";
|
|
756
749
|
return _;
|
|
757
750
|
}
|
|
758
751
|
}
|
|
759
|
-
function
|
|
752
|
+
function Hn(o) {
|
|
760
753
|
try {
|
|
761
|
-
return
|
|
754
|
+
return $t(o), !1;
|
|
762
755
|
} catch {
|
|
763
756
|
return !0;
|
|
764
757
|
}
|
|
765
758
|
}
|
|
766
|
-
function
|
|
759
|
+
function $t(o) {
|
|
767
760
|
return "" + o;
|
|
768
761
|
}
|
|
769
|
-
function
|
|
770
|
-
if (
|
|
771
|
-
return
|
|
762
|
+
function Bt(o) {
|
|
763
|
+
if (Hn(o))
|
|
764
|
+
return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", qn(o)), $t(o);
|
|
772
765
|
}
|
|
773
|
-
var
|
|
766
|
+
var It = p.ReactCurrentOwner, Kn = {
|
|
774
767
|
key: !0,
|
|
775
768
|
ref: !0,
|
|
776
769
|
__self: !0,
|
|
777
770
|
__source: !0
|
|
778
|
-
},
|
|
779
|
-
|
|
780
|
-
function Gn(o) {
|
|
771
|
+
}, Nt, Ft;
|
|
772
|
+
function Yn(o) {
|
|
781
773
|
if (Se.call(o, "ref")) {
|
|
782
774
|
var v = Object.getOwnPropertyDescriptor(o, "ref").get;
|
|
783
775
|
if (v && v.isReactWarning)
|
|
@@ -785,7 +777,7 @@ function gs() {
|
|
|
785
777
|
}
|
|
786
778
|
return o.ref !== void 0;
|
|
787
779
|
}
|
|
788
|
-
function
|
|
780
|
+
function Zn(o) {
|
|
789
781
|
if (Se.call(o, "key")) {
|
|
790
782
|
var v = Object.getOwnPropertyDescriptor(o, "key").get;
|
|
791
783
|
if (v && v.isReactWarning)
|
|
@@ -793,16 +785,13 @@ function gs() {
|
|
|
793
785
|
}
|
|
794
786
|
return o.key !== void 0;
|
|
795
787
|
}
|
|
796
|
-
function
|
|
797
|
-
|
|
798
|
-
var _ = U(Ee.current.type);
|
|
799
|
-
Ge[_] || (j('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', U(Ee.current.type), o.ref), Ge[_] = !0);
|
|
800
|
-
}
|
|
788
|
+
function Jn(o, v) {
|
|
789
|
+
typeof o.ref == "string" && It.current;
|
|
801
790
|
}
|
|
802
|
-
function
|
|
791
|
+
function Gn(o, v) {
|
|
803
792
|
{
|
|
804
793
|
var _ = function() {
|
|
805
|
-
|
|
794
|
+
Nt || (Nt = !0, b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", v));
|
|
806
795
|
};
|
|
807
796
|
_.isReactWarning = !0, Object.defineProperty(o, "key", {
|
|
808
797
|
get: _,
|
|
@@ -810,10 +799,10 @@ function gs() {
|
|
|
810
799
|
});
|
|
811
800
|
}
|
|
812
801
|
}
|
|
813
|
-
function
|
|
802
|
+
function Xn(o, v) {
|
|
814
803
|
{
|
|
815
804
|
var _ = function() {
|
|
816
|
-
Ft || (Ft = !0,
|
|
805
|
+
Ft || (Ft = !0, b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", v));
|
|
817
806
|
};
|
|
818
807
|
_.isReactWarning = !0, Object.defineProperty(o, "ref", {
|
|
819
808
|
get: _,
|
|
@@ -821,70 +810,70 @@ function gs() {
|
|
|
821
810
|
});
|
|
822
811
|
}
|
|
823
812
|
}
|
|
824
|
-
var Qn = function(o, v, _, k,
|
|
825
|
-
var
|
|
813
|
+
var Qn = function(o, v, _, k, N, F, T) {
|
|
814
|
+
var R = {
|
|
826
815
|
// This tag allows us to uniquely identify this as a React Element
|
|
827
816
|
$$typeof: t,
|
|
828
817
|
// Built-in properties that belong on the element
|
|
829
818
|
type: o,
|
|
830
819
|
key: v,
|
|
831
820
|
ref: _,
|
|
832
|
-
props:
|
|
821
|
+
props: T,
|
|
833
822
|
// Record the component responsible for creating this element.
|
|
834
823
|
_owner: F
|
|
835
824
|
};
|
|
836
|
-
return
|
|
825
|
+
return R._store = {}, Object.defineProperty(R._store, "validated", {
|
|
837
826
|
configurable: !1,
|
|
838
827
|
enumerable: !1,
|
|
839
828
|
writable: !0,
|
|
840
829
|
value: !1
|
|
841
|
-
}), Object.defineProperty(
|
|
830
|
+
}), Object.defineProperty(R, "_self", {
|
|
842
831
|
configurable: !1,
|
|
843
832
|
enumerable: !1,
|
|
844
833
|
writable: !1,
|
|
845
834
|
value: k
|
|
846
|
-
}), Object.defineProperty(
|
|
835
|
+
}), Object.defineProperty(R, "_source", {
|
|
847
836
|
configurable: !1,
|
|
848
837
|
enumerable: !1,
|
|
849
838
|
writable: !1,
|
|
850
|
-
value:
|
|
851
|
-
}), Object.freeze && (Object.freeze(
|
|
839
|
+
value: N
|
|
840
|
+
}), Object.freeze && (Object.freeze(R.props), Object.freeze(R)), R;
|
|
852
841
|
};
|
|
853
|
-
function Vn(o, v, _, k,
|
|
842
|
+
function Vn(o, v, _, k, N) {
|
|
854
843
|
{
|
|
855
|
-
var F,
|
|
856
|
-
_ !== void 0 && (
|
|
844
|
+
var F, T = {}, R = null, q = null;
|
|
845
|
+
_ !== void 0 && (Bt(_), R = "" + _), Zn(v) && (Bt(v.key), R = "" + v.key), Yn(v) && (q = v.ref, Jn(v, N));
|
|
857
846
|
for (F in v)
|
|
858
|
-
Se.call(v, F) && !Kn.hasOwnProperty(F) && (
|
|
847
|
+
Se.call(v, F) && !Kn.hasOwnProperty(F) && (T[F] = v[F]);
|
|
859
848
|
if (o && o.defaultProps) {
|
|
860
849
|
var L = o.defaultProps;
|
|
861
850
|
for (F in L)
|
|
862
|
-
|
|
851
|
+
T[F] === void 0 && (T[F] = L[F]);
|
|
863
852
|
}
|
|
864
|
-
if (
|
|
865
|
-
var
|
|
866
|
-
|
|
853
|
+
if (R || q) {
|
|
854
|
+
var W = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
|
|
855
|
+
R && Gn(T, W), q && Xn(T, W);
|
|
867
856
|
}
|
|
868
|
-
return Qn(o,
|
|
857
|
+
return Qn(o, R, q, N, k, It.current, T);
|
|
869
858
|
}
|
|
870
859
|
}
|
|
871
|
-
var
|
|
860
|
+
var Ye = p.ReactCurrentOwner, Pt = p.ReactDebugCurrentFrame;
|
|
872
861
|
function Ce(o) {
|
|
873
862
|
if (o) {
|
|
874
|
-
var v = o._owner, _ =
|
|
863
|
+
var v = o._owner, _ = Fe(o.type, o._source, v ? v.type : null);
|
|
875
864
|
Pt.setExtraStackFrame(_);
|
|
876
865
|
} else
|
|
877
866
|
Pt.setExtraStackFrame(null);
|
|
878
867
|
}
|
|
879
|
-
var
|
|
880
|
-
|
|
881
|
-
function
|
|
868
|
+
var Ze;
|
|
869
|
+
Ze = !1;
|
|
870
|
+
function Je(o) {
|
|
882
871
|
return typeof o == "object" && o !== null && o.$$typeof === t;
|
|
883
872
|
}
|
|
884
873
|
function Ot() {
|
|
885
874
|
{
|
|
886
|
-
if (
|
|
887
|
-
var o =
|
|
875
|
+
if (Ye.current) {
|
|
876
|
+
var o = H(Ye.current.type);
|
|
888
877
|
if (o)
|
|
889
878
|
return `
|
|
890
879
|
|
|
@@ -919,25 +908,25 @@ Check the top-level render call using <` + _ + ">.");
|
|
|
919
908
|
return;
|
|
920
909
|
Lt[_] = !0;
|
|
921
910
|
var k = "";
|
|
922
|
-
o && o._owner && o._owner !==
|
|
911
|
+
o && o._owner && o._owner !== Ye.current && (k = " It was passed a child from " + H(o._owner.type) + "."), Ce(o), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', _, k), Ce(null);
|
|
923
912
|
}
|
|
924
913
|
}
|
|
925
|
-
function
|
|
914
|
+
function Wt(o, v) {
|
|
926
915
|
{
|
|
927
916
|
if (typeof o != "object")
|
|
928
917
|
return;
|
|
929
918
|
if (Ke(o))
|
|
930
919
|
for (var _ = 0; _ < o.length; _++) {
|
|
931
920
|
var k = o[_];
|
|
932
|
-
|
|
921
|
+
Je(k) && At(k, v);
|
|
933
922
|
}
|
|
934
|
-
else if (
|
|
923
|
+
else if (Je(o))
|
|
935
924
|
o._store && (o._store.validated = !0);
|
|
936
925
|
else if (o) {
|
|
937
|
-
var
|
|
938
|
-
if (typeof
|
|
939
|
-
for (var F =
|
|
940
|
-
|
|
926
|
+
var N = m(o);
|
|
927
|
+
if (typeof N == "function" && N !== o.entries)
|
|
928
|
+
for (var F = N.call(o), T; !(T = F.next()).done; )
|
|
929
|
+
Je(T.value) && At(T.value, v);
|
|
941
930
|
}
|
|
942
931
|
}
|
|
943
932
|
}
|
|
@@ -956,14 +945,14 @@ Check the top-level render call using <` + _ + ">.");
|
|
|
956
945
|
else
|
|
957
946
|
return;
|
|
958
947
|
if (_) {
|
|
959
|
-
var k =
|
|
960
|
-
|
|
961
|
-
} else if (v.PropTypes !== void 0 && !
|
|
962
|
-
|
|
963
|
-
var
|
|
964
|
-
|
|
948
|
+
var k = H(v);
|
|
949
|
+
Un(_, o.props, "prop", k, o);
|
|
950
|
+
} else if (v.PropTypes !== void 0 && !Ze) {
|
|
951
|
+
Ze = !0;
|
|
952
|
+
var N = H(v);
|
|
953
|
+
b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", N || "Unknown");
|
|
965
954
|
}
|
|
966
|
-
typeof v.getDefaultProps == "function" && !v.getDefaultProps.isReactClassApproved &&
|
|
955
|
+
typeof v.getDefaultProps == "function" && !v.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
967
956
|
}
|
|
968
957
|
}
|
|
969
958
|
function rr(o) {
|
|
@@ -971,76 +960,79 @@ Check the top-level render call using <` + _ + ">.");
|
|
|
971
960
|
for (var v = Object.keys(o.props), _ = 0; _ < v.length; _++) {
|
|
972
961
|
var k = v[_];
|
|
973
962
|
if (k !== "children" && k !== "key") {
|
|
974
|
-
Ce(o),
|
|
963
|
+
Ce(o), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", k), Ce(null);
|
|
975
964
|
break;
|
|
976
965
|
}
|
|
977
966
|
}
|
|
978
|
-
o.ref !== null && (Ce(o),
|
|
967
|
+
o.ref !== null && (Ce(o), b("Invalid attribute `ref` supplied to `React.Fragment`."), Ce(null));
|
|
979
968
|
}
|
|
980
969
|
}
|
|
981
|
-
var
|
|
982
|
-
function
|
|
970
|
+
var Ut = {};
|
|
971
|
+
function zt(o, v, _, k, N, F) {
|
|
983
972
|
{
|
|
984
|
-
var
|
|
985
|
-
if (!
|
|
986
|
-
var
|
|
987
|
-
(o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (
|
|
988
|
-
var
|
|
989
|
-
|
|
973
|
+
var T = B(o);
|
|
974
|
+
if (!T) {
|
|
975
|
+
var R = "";
|
|
976
|
+
(o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (R += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
977
|
+
var q = er();
|
|
978
|
+
q ? R += q : R += Ot();
|
|
990
979
|
var L;
|
|
991
|
-
o === null ? L = "null" : Ke(o) ? L = "array" : o !== void 0 && o.$$typeof === t ? (L = "<" + (
|
|
980
|
+
o === null ? L = "null" : Ke(o) ? L = "array" : o !== void 0 && o.$$typeof === t ? (L = "<" + (H(o.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : L = typeof o, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", L, R);
|
|
992
981
|
}
|
|
993
|
-
var
|
|
994
|
-
if (
|
|
995
|
-
return
|
|
996
|
-
if (
|
|
997
|
-
var
|
|
998
|
-
if (
|
|
982
|
+
var W = Vn(o, v, _, N, F);
|
|
983
|
+
if (W == null)
|
|
984
|
+
return W;
|
|
985
|
+
if (T) {
|
|
986
|
+
var G = v.children;
|
|
987
|
+
if (G !== void 0)
|
|
999
988
|
if (k)
|
|
1000
|
-
if (Ke(
|
|
1001
|
-
for (var
|
|
1002
|
-
|
|
1003
|
-
Object.freeze && Object.freeze(
|
|
989
|
+
if (Ke(G)) {
|
|
990
|
+
for (var ye = 0; ye < G.length; ye++)
|
|
991
|
+
Wt(G[ye], o);
|
|
992
|
+
Object.freeze && Object.freeze(G);
|
|
1004
993
|
} else
|
|
1005
|
-
|
|
994
|
+
b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
1006
995
|
else
|
|
1007
|
-
|
|
996
|
+
Wt(G, o);
|
|
1008
997
|
}
|
|
1009
998
|
if (Se.call(v, "key")) {
|
|
1010
|
-
var he =
|
|
999
|
+
var he = H(o), K = Object.keys(v).filter(function(cr) {
|
|
1011
1000
|
return cr !== "key";
|
|
1012
|
-
}),
|
|
1013
|
-
if (!
|
|
1001
|
+
}), Ge = K.length > 0 ? "{key: someKey, " + K.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1002
|
+
if (!Ut[he + Ge]) {
|
|
1014
1003
|
var lr = K.length > 0 ? "{" + K.join(": ..., ") + ": ...}" : "{}";
|
|
1015
|
-
|
|
1004
|
+
b(`A props object containing a "key" prop is being spread into JSX:
|
|
1016
1005
|
let props = %s;
|
|
1017
1006
|
<%s {...props} />
|
|
1018
1007
|
React keys must be passed directly to JSX without using spread:
|
|
1019
1008
|
let props = %s;
|
|
1020
|
-
<%s key={someKey} {...props} />`,
|
|
1009
|
+
<%s key={someKey} {...props} />`, Ge, he, lr, he), Ut[he + Ge] = !0;
|
|
1021
1010
|
}
|
|
1022
1011
|
}
|
|
1023
|
-
return o === s ? rr(
|
|
1012
|
+
return o === s ? rr(W) : nr(W), W;
|
|
1024
1013
|
}
|
|
1025
1014
|
}
|
|
1026
1015
|
function sr(o, v, _) {
|
|
1027
|
-
return
|
|
1016
|
+
return zt(o, v, _, !0);
|
|
1028
1017
|
}
|
|
1029
1018
|
function ar(o, v, _) {
|
|
1030
|
-
return
|
|
1019
|
+
return zt(o, v, _, !1);
|
|
1031
1020
|
}
|
|
1032
1021
|
var ir = ar, or = sr;
|
|
1033
|
-
|
|
1034
|
-
}()),
|
|
1022
|
+
De.Fragment = s, De.jsx = ir, De.jsxs = or;
|
|
1023
|
+
}()), De;
|
|
1035
1024
|
}
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1025
|
+
var Yt;
|
|
1026
|
+
function gs() {
|
|
1027
|
+
return Yt || (Yt = 1, process.env.NODE_ENV === "production" ? Oe.exports = hs() : Oe.exports = ms()), Oe.exports;
|
|
1028
|
+
}
|
|
1029
|
+
var r = gs();
|
|
1030
|
+
const ps = "_notice_q5jau_1", xs = "_error_q5jau_10", vs = "_success_q5jau_13", js = "_warning_q5jau_16", bs = "_copy_q5jau_19", mn = {
|
|
1039
1031
|
notice: ps,
|
|
1040
1032
|
error: xs,
|
|
1041
1033
|
success: vs,
|
|
1042
|
-
warning:
|
|
1043
|
-
copy:
|
|
1034
|
+
warning: js,
|
|
1035
|
+
copy: bs,
|
|
1044
1036
|
"show-notice": "_show-notice_q5jau_1",
|
|
1045
1037
|
"hide-notice": "_hide-notice_q5jau_1"
|
|
1046
1038
|
};
|
|
@@ -1053,7 +1045,7 @@ function Cs() {
|
|
|
1053
1045
|
t(e.filter((s) => s.key !== n));
|
|
1054
1046
|
}, e.length === 0 ? "" : /* @__PURE__ */ r.jsx("ul", { className: mn.notice, children: e.map((n) => n.item) });
|
|
1055
1047
|
}
|
|
1056
|
-
function
|
|
1048
|
+
function $e({ data: e }) {
|
|
1057
1049
|
let [t, n] = y.useState("show");
|
|
1058
1050
|
y.useEffect(() => {
|
|
1059
1051
|
setTimeout(function() {
|
|
@@ -1085,25 +1077,25 @@ function De({ data: e }) {
|
|
|
1085
1077
|
/* @__PURE__ */ r.jsx("p", { children: e.text })
|
|
1086
1078
|
] });
|
|
1087
1079
|
}
|
|
1088
|
-
function
|
|
1080
|
+
function ys(e) {
|
|
1089
1081
|
let t = Date.now(), n = { key: t, ...e };
|
|
1090
|
-
de.set({ item: /* @__PURE__ */ r.jsx(
|
|
1082
|
+
de.set({ item: /* @__PURE__ */ r.jsx($e, { data: n }, t), key: t });
|
|
1091
1083
|
}
|
|
1092
|
-
function
|
|
1084
|
+
function _s(e) {
|
|
1093
1085
|
let t = Date.now(), n = { key: t, text: e, type: "error" };
|
|
1094
|
-
de.set({ item: /* @__PURE__ */ r.jsx(
|
|
1086
|
+
de.set({ item: /* @__PURE__ */ r.jsx($e, { data: n }, t), key: t });
|
|
1095
1087
|
}
|
|
1096
1088
|
function ws(e) {
|
|
1097
1089
|
let t = Date.now(), n = { key: t, text: e, type: "success" };
|
|
1098
|
-
de.set({ item: /* @__PURE__ */ r.jsx(
|
|
1090
|
+
de.set({ item: /* @__PURE__ */ r.jsx($e, { data: n }, t), key: t });
|
|
1099
1091
|
}
|
|
1100
1092
|
function ks(e) {
|
|
1101
1093
|
let t = Date.now(), n = { key: t, text: e, type: "remark" };
|
|
1102
|
-
de.set({ item: /* @__PURE__ */ r.jsx(
|
|
1094
|
+
de.set({ item: /* @__PURE__ */ r.jsx($e, { data: n }, t), key: t });
|
|
1103
1095
|
}
|
|
1104
1096
|
function Ss(e) {
|
|
1105
1097
|
let t = Date.now(), n = { key: t, text: e, type: "copy" };
|
|
1106
|
-
de.set({ item: /* @__PURE__ */ r.jsx(
|
|
1098
|
+
de.set({ item: /* @__PURE__ */ r.jsx($e, { data: n }, t), key: t });
|
|
1107
1099
|
}
|
|
1108
1100
|
const ge = {};
|
|
1109
1101
|
ge.error = () => /* @__PURE__ */ r.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
|
|
@@ -1138,21 +1130,17 @@ ge.success = () => /* @__PURE__ */ r.jsxs("svg", { viewBox: "0 0 24 24", fill: "
|
|
|
1138
1130
|
}
|
|
1139
1131
|
)
|
|
1140
1132
|
] });
|
|
1141
|
-
const Es = "_alerts_1pds5_1",
|
|
1133
|
+
const Es = "_alerts_1pds5_1", Ds = "_al_1pds5_1", nt = {
|
|
1142
1134
|
alerts: Es,
|
|
1143
|
-
menuAnimation: Ts,
|
|
1144
|
-
menuItemAnimation: Rs,
|
|
1145
1135
|
"--body": "_--body_1pds5_103",
|
|
1146
|
-
|
|
1147
|
-
"--form": "_--form_1pds5_111",
|
|
1148
|
-
al: Ns
|
|
1136
|
+
al: Ds
|
|
1149
1137
|
};
|
|
1150
|
-
let
|
|
1151
|
-
function
|
|
1138
|
+
let Re = {};
|
|
1139
|
+
function Ms() {
|
|
1152
1140
|
let [e, t] = y.useState("");
|
|
1153
|
-
return
|
|
1141
|
+
return Re.set = (n) => t(n), Re.del = () => t(""), /* @__PURE__ */ r.jsx(r.Fragment, { children: e });
|
|
1154
1142
|
}
|
|
1155
|
-
const
|
|
1143
|
+
const Rs = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ r.jsxs("div", { className: nt.alerts, children: [
|
|
1156
1144
|
/* @__PURE__ */ r.jsxs("dl", { children: [
|
|
1157
1145
|
/* @__PURE__ */ r.jsx("dt", { children: e.title }),
|
|
1158
1146
|
/* @__PURE__ */ r.jsx("dd", { children: e.text }),
|
|
@@ -1161,76 +1149,79 @@ const Ds = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "По
|
|
|
1161
1149
|
{
|
|
1162
1150
|
"data-color": e.color || "blue",
|
|
1163
1151
|
onClick: () => {
|
|
1164
|
-
t(),
|
|
1152
|
+
t(), Re.del();
|
|
1165
1153
|
},
|
|
1166
1154
|
children: e.button
|
|
1167
1155
|
}
|
|
1168
1156
|
) })
|
|
1169
1157
|
] }),
|
|
1170
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
1158
|
+
/* @__PURE__ */ r.jsx("div", { className: nt["--body"], onClick: Re.del })
|
|
1171
1159
|
] }));
|
|
1172
|
-
function
|
|
1173
|
-
|
|
1160
|
+
function Ts(e, t) {
|
|
1161
|
+
Re.set(/* @__PURE__ */ r.jsx(Rs, { data: e, callback: t }));
|
|
1174
1162
|
}
|
|
1175
|
-
const $s = "
|
|
1163
|
+
const $s = "_btn_bf4sc_11", Bs = "_confirm_bf4sc_24", Qe = {
|
|
1176
1164
|
btn: $s,
|
|
1177
|
-
confirm:
|
|
1165
|
+
confirm: Bs
|
|
1178
1166
|
};
|
|
1179
|
-
function
|
|
1180
|
-
let [
|
|
1181
|
-
const
|
|
1182
|
-
if (e)
|
|
1183
|
-
|
|
1184
|
-
a || (i(!0), t && t(i));
|
|
1167
|
+
function Is({ onClick: e, onSend: t, label: n, onRef: s, isDisable: a }) {
|
|
1168
|
+
let [i, l] = y.useState(!1);
|
|
1169
|
+
const c = () => {
|
|
1170
|
+
if (e) return e();
|
|
1171
|
+
i || (l(!0), t && t(l));
|
|
1185
1172
|
};
|
|
1186
1173
|
return /* @__PURE__ */ r.jsx(
|
|
1187
1174
|
"button",
|
|
1188
1175
|
{
|
|
1189
1176
|
ref: s,
|
|
1190
|
-
className: [
|
|
1191
|
-
|
|
1192
|
-
|
|
1177
|
+
className: [
|
|
1178
|
+
Qe.btn,
|
|
1179
|
+
Qe.confirm,
|
|
1180
|
+
a && Qe.disable
|
|
1181
|
+
].join(" "),
|
|
1182
|
+
onClick: c,
|
|
1183
|
+
children: i ? "Ожидайте" : n
|
|
1193
1184
|
}
|
|
1194
1185
|
);
|
|
1195
1186
|
}
|
|
1196
|
-
const
|
|
1197
|
-
white:
|
|
1198
|
-
black:
|
|
1199
|
-
shake:
|
|
1200
|
-
modal:
|
|
1201
|
-
o:
|
|
1202
|
-
w:
|
|
1203
|
-
h:
|
|
1204
|
-
l:
|
|
1205
|
-
t:
|
|
1206
|
-
m:
|
|
1187
|
+
const Ns = "_white_11p39_14", Fs = "_black_11p39_26", Ps = "_shake_11p39_1", Os = "_modal_11p39_73", Ls = "_o_11p39_83", As = "_w_11p39_14", Ws = "_h_11p39_107", Us = "_l_11p39_121", zs = "_t_11p39_159", qs = "_m_11p39_73", Hs = "_x_11p39_167", Ks = "_s_11p39_177", Ys = "_c_11p39_182", Zs = "_f_11p39_187", Js = "_btn_11p39_230", Gs = "_g_11p39_243", Xs = "_confirm_11p39_322", Qs = "_cancel_11p39_327", Vs = "_disabled_11p39_332", ea = "_active_11p39_389", ta = "_coincidence_11p39_395", na = "_sa_11p39_431", ra = "_ss_11p39_435", sa = "_sm_11p39_439", aa = "_sl_11p39_443", ia = "_sx_11p39_447", oa = "_sf_11p39_451", Q = {
|
|
1188
|
+
white: Ns,
|
|
1189
|
+
black: Fs,
|
|
1190
|
+
shake: Ps,
|
|
1191
|
+
modal: Os,
|
|
1192
|
+
o: Ls,
|
|
1193
|
+
w: As,
|
|
1194
|
+
h: Ws,
|
|
1195
|
+
l: Us,
|
|
1196
|
+
t: zs,
|
|
1197
|
+
m: qs,
|
|
1207
1198
|
x: Hs,
|
|
1208
|
-
s:
|
|
1209
|
-
c:
|
|
1210
|
-
f:
|
|
1211
|
-
btn:
|
|
1212
|
-
g:
|
|
1199
|
+
s: Ks,
|
|
1200
|
+
c: Ys,
|
|
1201
|
+
f: Zs,
|
|
1202
|
+
btn: Js,
|
|
1203
|
+
g: Gs,
|
|
1213
1204
|
"size-a": "_size-a_11p39_296",
|
|
1214
1205
|
"size-s": "_size-s_11p39_300",
|
|
1215
1206
|
"size-m": "_size-m_11p39_304",
|
|
1216
1207
|
"size-l": "_size-l_11p39_308",
|
|
1217
1208
|
"size-x": "_size-x_11p39_312",
|
|
1218
1209
|
"size-f": "_size-f_11p39_316",
|
|
1219
|
-
confirm:
|
|
1220
|
-
cancel:
|
|
1221
|
-
disabled:
|
|
1210
|
+
confirm: Xs,
|
|
1211
|
+
cancel: Qs,
|
|
1212
|
+
disabled: Vs,
|
|
1222
1213
|
await: "_await_11p39_339",
|
|
1223
|
-
active:
|
|
1224
|
-
coincidence:
|
|
1225
|
-
sa:
|
|
1226
|
-
ss:
|
|
1227
|
-
sm:
|
|
1228
|
-
sl:
|
|
1229
|
-
sx:
|
|
1230
|
-
sf:
|
|
1214
|
+
active: ea,
|
|
1215
|
+
coincidence: ta,
|
|
1216
|
+
sa: na,
|
|
1217
|
+
ss: ra,
|
|
1218
|
+
sm: sa,
|
|
1219
|
+
sl: aa,
|
|
1220
|
+
sx: ia,
|
|
1221
|
+
sf: oa
|
|
1231
1222
|
};
|
|
1232
1223
|
let xe = {};
|
|
1233
|
-
function
|
|
1224
|
+
function la({ config: e }) {
|
|
1234
1225
|
let [t, n] = y.useState([]);
|
|
1235
1226
|
return xe.x = (s) => {
|
|
1236
1227
|
s || n([]);
|
|
@@ -1238,7 +1229,7 @@ function da({ config: e }) {
|
|
|
1238
1229
|
n([...t, s]);
|
|
1239
1230
|
}, /* @__PURE__ */ r.jsx(r.Fragment, { children: t.map((s) => s) });
|
|
1240
1231
|
}
|
|
1241
|
-
function
|
|
1232
|
+
function ca({
|
|
1242
1233
|
title: e,
|
|
1243
1234
|
children: t,
|
|
1244
1235
|
button: n,
|
|
@@ -1308,7 +1299,7 @@ function fa({
|
|
|
1308
1299
|
)
|
|
1309
1300
|
] }),
|
|
1310
1301
|
t,
|
|
1311
|
-
n !== void 0 ? /* @__PURE__ */ r.jsx(
|
|
1302
|
+
n !== void 0 ? /* @__PURE__ */ r.jsx(Is, { label: n.label, onSend: u }) : ""
|
|
1312
1303
|
]
|
|
1313
1304
|
}
|
|
1314
1305
|
)
|
|
@@ -1316,60 +1307,57 @@ function fa({
|
|
|
1316
1307
|
}
|
|
1317
1308
|
) : "" });
|
|
1318
1309
|
}
|
|
1319
|
-
function
|
|
1320
|
-
xe.add(/* @__PURE__ */ r.jsx(
|
|
1310
|
+
function ua(e) {
|
|
1311
|
+
xe.add(/* @__PURE__ */ r.jsx(da, { children: e }, String(Date.now())));
|
|
1321
1312
|
}
|
|
1322
|
-
function
|
|
1313
|
+
function da({ children: e }) {
|
|
1323
1314
|
return /* @__PURE__ */ r.jsx(r.Fragment, { children: e });
|
|
1324
1315
|
}
|
|
1325
|
-
function
|
|
1326
|
-
if (e.target.classList[0] !== "modal")
|
|
1327
|
-
return;
|
|
1316
|
+
function fa(e) {
|
|
1317
|
+
if (e.target.classList[0] !== "modal") return;
|
|
1328
1318
|
let t = e.target.children[0];
|
|
1329
1319
|
t.setAttribute("shake", !0), setTimeout(() => {
|
|
1330
1320
|
t.setAttribute("shake", !1);
|
|
1331
1321
|
}, 1e3);
|
|
1332
1322
|
}
|
|
1333
|
-
function
|
|
1323
|
+
function ha({ type: e, name: t, params: n }) {
|
|
1334
1324
|
let [s, a] = y.useState(null);
|
|
1335
1325
|
return y.useEffect(() => {
|
|
1336
1326
|
xe.config(e, t, n, a);
|
|
1337
1327
|
}, [n.id]), /* @__PURE__ */ r.jsx(r.Fragment, { children: s });
|
|
1338
1328
|
}
|
|
1339
|
-
function
|
|
1329
|
+
function ma(e, t) {
|
|
1340
1330
|
xe.config(e, t);
|
|
1341
1331
|
}
|
|
1342
|
-
function
|
|
1332
|
+
function ga(e) {
|
|
1343
1333
|
xe.x(e);
|
|
1344
1334
|
}
|
|
1345
|
-
const
|
|
1346
|
-
function
|
|
1347
|
-
|
|
1335
|
+
const rt = {};
|
|
1336
|
+
function pa(e, t) {
|
|
1337
|
+
rt[e] = t;
|
|
1348
1338
|
}
|
|
1349
|
-
function
|
|
1350
|
-
|
|
1339
|
+
function xa(e, t) {
|
|
1340
|
+
rt[e] !== void 0 && rt[e](t);
|
|
1351
1341
|
}
|
|
1352
1342
|
const le = {};
|
|
1353
|
-
function
|
|
1343
|
+
function va(e, t) {
|
|
1354
1344
|
const [n, s] = y.useState(t);
|
|
1355
1345
|
return y.useEffect(() => {
|
|
1356
|
-
if (le[e])
|
|
1357
|
-
return le[e].push(s);
|
|
1346
|
+
if (le[e]) return le[e].push(s);
|
|
1358
1347
|
le[e] = [s];
|
|
1359
1348
|
}, []), [n];
|
|
1360
1349
|
}
|
|
1361
|
-
function
|
|
1362
|
-
if (le[e])
|
|
1363
|
-
return le[e].push(t);
|
|
1350
|
+
function ja(e, t) {
|
|
1351
|
+
if (le[e]) return le[e].push(t);
|
|
1364
1352
|
le[e] = [t];
|
|
1365
1353
|
}
|
|
1366
|
-
function
|
|
1354
|
+
function ba(e, t) {
|
|
1367
1355
|
le[e] && le[e].forEach((n) => n(t));
|
|
1368
1356
|
}
|
|
1369
|
-
const
|
|
1370
|
-
function
|
|
1357
|
+
const dt = { setListener: xa, useListener: pa, setEmitter: ba, useEmitter: va, subEmitter: ja };
|
|
1358
|
+
function Ca() {
|
|
1371
1359
|
let [e, t] = y.useState([]);
|
|
1372
|
-
return
|
|
1360
|
+
return dt.useListener("form", (n) => {
|
|
1373
1361
|
t([n]);
|
|
1374
1362
|
}), /* @__PURE__ */ r.jsx(r.Fragment, { children: e.map((n) => n) });
|
|
1375
1363
|
}
|
|
@@ -1379,20 +1367,20 @@ const ce = {
|
|
|
1379
1367
|
getPage: nn,
|
|
1380
1368
|
usePage: wr,
|
|
1381
1369
|
isPage: Sr,
|
|
1382
|
-
setModule:
|
|
1370
|
+
setModule: Dr,
|
|
1383
1371
|
getModule: rn,
|
|
1384
1372
|
useModule: Er,
|
|
1385
|
-
isModule:
|
|
1386
|
-
setTabs:
|
|
1373
|
+
isModule: Mr,
|
|
1374
|
+
setTabs: Tr,
|
|
1387
1375
|
getTabs: Ae,
|
|
1388
|
-
useTabs:
|
|
1389
|
-
isTabs:
|
|
1390
|
-
useId:
|
|
1391
|
-
setId:
|
|
1392
|
-
subId:
|
|
1376
|
+
useTabs: Rr,
|
|
1377
|
+
isTabs: $r,
|
|
1378
|
+
useId: Br,
|
|
1379
|
+
setId: Nr,
|
|
1380
|
+
subId: Ir,
|
|
1393
1381
|
getId: sn,
|
|
1394
1382
|
isId: Fr
|
|
1395
|
-
},
|
|
1383
|
+
}, st = { Send: ys, Error: _s, Remark: ks, Success: ws, Copy: Ss }, gn = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ r.jsx(
|
|
1396
1384
|
"div",
|
|
1397
1385
|
{
|
|
1398
1386
|
role: "switch",
|
|
@@ -1403,8 +1391,7 @@ const ce = {
|
|
|
1403
1391
|
function pn({ onClick: e, onSend: t, name: n, onRef: s }) {
|
|
1404
1392
|
let [a, i] = y.useState(!1);
|
|
1405
1393
|
const l = () => {
|
|
1406
|
-
if (e)
|
|
1407
|
-
return e();
|
|
1394
|
+
if (e) return e();
|
|
1408
1395
|
a || (i(!0), t && t(i));
|
|
1409
1396
|
};
|
|
1410
1397
|
return /* @__PURE__ */ r.jsx(
|
|
@@ -1444,10 +1431,10 @@ function xn({
|
|
|
1444
1431
|
p.keyCode === 16 && (u.current.shift = !0), p.keyCode === 13 && !u.current.shift && (p.preventDefault(), u.current.value.length !== 0 && (p.target.textContent = "", s && s(u.current.value), t && t(u.current.value), u.current.value = "", n(!1)));
|
|
1445
1432
|
}, h = (p) => {
|
|
1446
1433
|
p.keyCode === 16 && (u.current.shift = !1);
|
|
1447
|
-
},
|
|
1448
|
-
p.preventDefault(), navigator.clipboard.readText().then((
|
|
1449
|
-
window.document.execCommand("insertText", !1,
|
|
1450
|
-
}).catch((
|
|
1434
|
+
}, j = (p) => {
|
|
1435
|
+
p.preventDefault(), navigator.clipboard.readText().then((b) => {
|
|
1436
|
+
window.document.execCommand("insertText", !1, b);
|
|
1437
|
+
}).catch((b) => {
|
|
1451
1438
|
});
|
|
1452
1439
|
}, C = () => {
|
|
1453
1440
|
n(!1);
|
|
@@ -1457,7 +1444,7 @@ function xn({
|
|
|
1457
1444
|
return d && (m.placeholder = d), l && c && (m.contentEditable = "plaintext-only"), /* @__PURE__ */ r.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ r.jsx(
|
|
1458
1445
|
"dd",
|
|
1459
1446
|
{
|
|
1460
|
-
onPaste:
|
|
1447
|
+
onPaste: j,
|
|
1461
1448
|
onInput: g,
|
|
1462
1449
|
onKeyUp: h,
|
|
1463
1450
|
onKeyDown: x,
|
|
@@ -1495,40 +1482,40 @@ function vn(e) {
|
|
|
1495
1482
|
)
|
|
1496
1483
|
] });
|
|
1497
1484
|
}
|
|
1498
|
-
let
|
|
1499
|
-
|
|
1485
|
+
let je = {};
|
|
1486
|
+
je.KeyDown = (e) => {
|
|
1500
1487
|
e.key === "Enter" && e.preventDefault();
|
|
1501
1488
|
};
|
|
1502
|
-
|
|
1489
|
+
je.PasteOne = (e) => {
|
|
1503
1490
|
e.preventDefault(), navigator.clipboard.readText().then((t) => {
|
|
1504
1491
|
t = t.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, t);
|
|
1505
1492
|
}).catch((t) => {
|
|
1506
1493
|
});
|
|
1507
1494
|
};
|
|
1508
|
-
|
|
1495
|
+
je.Focus = (e) => {
|
|
1509
1496
|
e.target.textContent.length === 0 && (e.target.innerHTML = "<br>");
|
|
1510
1497
|
};
|
|
1511
|
-
|
|
1498
|
+
je.Blur = (e) => {
|
|
1512
1499
|
e.target.scrollLeft = 0, e.target.querySelector("br") !== null && e.target.querySelector("br").remove();
|
|
1513
1500
|
};
|
|
1514
|
-
function
|
|
1515
|
-
let a = (h,
|
|
1501
|
+
function jn({ value: e, onValue: t, placeholder: n = "", name: s }) {
|
|
1502
|
+
let a = (h, j) => Number(Math.round(h + Math.random() * (j - h))), i = y.useRef(null), l = y.useRef(null), c = a(1e4, 99999), d = (h) => {
|
|
1516
1503
|
h.key !== "Backspace" && (h.key === "Enter" && h.preventDefault(), h.target.textContent.length === 5 && h.preventDefault(), /\d/.test(h.key) || h.preventDefault());
|
|
1517
1504
|
}, u = (h) => {
|
|
1518
1505
|
t({ value: Number(h.target.textContent) === c, name: s });
|
|
1519
1506
|
}, f = (h) => {
|
|
1520
|
-
h.preventDefault(), navigator.clipboard.readText().then((
|
|
1507
|
+
h.preventDefault(), navigator.clipboard.readText().then((j) => {
|
|
1521
1508
|
window.document.execCommand(
|
|
1522
1509
|
"insertText",
|
|
1523
1510
|
!1,
|
|
1524
|
-
|
|
1511
|
+
j.replace(/(\r\n|\n|\r)/gm, " ").replace(/[^0-9]/g, "").substring(0, 5)
|
|
1525
1512
|
);
|
|
1526
|
-
}).catch((
|
|
1513
|
+
}).catch((j) => {
|
|
1527
1514
|
});
|
|
1528
1515
|
};
|
|
1529
1516
|
y.useEffect(() => {
|
|
1530
|
-
const h = i.current,
|
|
1531
|
-
|
|
1517
|
+
const h = i.current, j = h.getContext("2d");
|
|
1518
|
+
j.clearRect(0, 0, h.width, h.height), j.font = "30px brush script mt", j.fillStyle = "#eee", j.textAlign = "center", j.fillText(c, 50, 27), l.current.textContent = "";
|
|
1532
1519
|
}, [c]);
|
|
1533
1520
|
const g = {};
|
|
1534
1521
|
g.field = "captcha";
|
|
@@ -1540,7 +1527,7 @@ function bn({ value: e, onValue: t, placeholder: n = "", name: s }) {
|
|
|
1540
1527
|
ref: l,
|
|
1541
1528
|
onPaste: f,
|
|
1542
1529
|
onInput: u,
|
|
1543
|
-
onBlur:
|
|
1530
|
+
onBlur: je.Blur,
|
|
1544
1531
|
onKeyDown: d,
|
|
1545
1532
|
contentEditable: "plaintext-only",
|
|
1546
1533
|
suppressContentEditableWarning: !0,
|
|
@@ -1550,7 +1537,7 @@ function bn({ value: e, onValue: t, placeholder: n = "", name: s }) {
|
|
|
1550
1537
|
/* @__PURE__ */ r.jsx("canvas", { ref: i, width: "100", height: "35" })
|
|
1551
1538
|
] });
|
|
1552
1539
|
}
|
|
1553
|
-
function
|
|
1540
|
+
function bn(e) {
|
|
1554
1541
|
let t = () => e.title ? /* @__PURE__ */ r.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ r.jsx("em", { children: e.error }) : "", s = {
|
|
1555
1542
|
n1: "",
|
|
1556
1543
|
n2: "",
|
|
@@ -1713,7 +1700,7 @@ function Cn(e) {
|
|
|
1713
1700
|
}
|
|
1714
1701
|
) });
|
|
1715
1702
|
}
|
|
1716
|
-
function
|
|
1703
|
+
function ya(e, t) {
|
|
1717
1704
|
t === void 0 ? (t = e, e = /* @__PURE__ */ new Date()) : e = new Date(e);
|
|
1718
1705
|
let n = {
|
|
1719
1706
|
yyyy: e.getFullYear(),
|
|
@@ -1730,7 +1717,7 @@ function ka(e, t) {
|
|
|
1730
1717
|
t = t.replace(s, n[s]);
|
|
1731
1718
|
return t;
|
|
1732
1719
|
}
|
|
1733
|
-
function
|
|
1720
|
+
function _a(e) {
|
|
1734
1721
|
let t = [
|
|
1735
1722
|
"Января",
|
|
1736
1723
|
"Февраля",
|
|
@@ -1750,17 +1737,17 @@ function Sa(e) {
|
|
|
1750
1737
|
name: n.getDate() + " " + t[n.getMonth()]
|
|
1751
1738
|
};
|
|
1752
1739
|
}
|
|
1753
|
-
const
|
|
1740
|
+
const wa = (e) => {
|
|
1754
1741
|
function t(S, E) {
|
|
1755
|
-
var
|
|
1742
|
+
var I, P, M;
|
|
1756
1743
|
S = S ?? "", E = E ?? 1;
|
|
1757
|
-
for (var
|
|
1758
|
-
|
|
1759
|
-
return
|
|
1744
|
+
for (var I = [], M = 0, P = S.length; M < P; )
|
|
1745
|
+
I.push(S.slice(M, M += E));
|
|
1746
|
+
return I;
|
|
1760
1747
|
}
|
|
1761
1748
|
function n(S, E) {
|
|
1762
|
-
var
|
|
1763
|
-
return E[S > 4 && S < 20 ? 2 :
|
|
1749
|
+
var I = [2, 0, 1, 1, 1, 2];
|
|
1750
|
+
return E[S > 4 && S < 20 ? 2 : I[Math.min(S, 5)]];
|
|
1764
1751
|
}
|
|
1765
1752
|
var s = {
|
|
1766
1753
|
null: "ноль",
|
|
@@ -1826,10 +1813,10 @@ const Ea = (e) => {
|
|
|
1826
1813
|
u1: ["миллиард", "миллиарда", "миллиардов"]
|
|
1827
1814
|
}, a, i, l, c, m, d, u, C, f, g, x, h;
|
|
1828
1815
|
f = parseFloat(e).toFixed(2).split("."), d = f[0], c = f[1];
|
|
1829
|
-
var
|
|
1830
|
-
if (
|
|
1816
|
+
var j = 12 - d.length;
|
|
1817
|
+
if (j < 0)
|
|
1831
1818
|
return !1;
|
|
1832
|
-
for (var C = [];
|
|
1819
|
+
for (var C = []; j--; )
|
|
1833
1820
|
C.push("0");
|
|
1834
1821
|
d = C.join("") + d;
|
|
1835
1822
|
var m = [];
|
|
@@ -1841,25 +1828,25 @@ const Ea = (e) => {
|
|
|
1841
1828
|
) : m.push(
|
|
1842
1829
|
i > 0 ? s.a10[l] : s[h][l - 1]
|
|
1843
1830
|
), g.length > p + 1)) {
|
|
1844
|
-
var
|
|
1845
|
-
m.push(n(u,
|
|
1831
|
+
var b = s["u" + (p + 1)];
|
|
1832
|
+
m.push(n(u, b));
|
|
1846
1833
|
}
|
|
1847
1834
|
} else
|
|
1848
1835
|
m.push(s.null);
|
|
1849
1836
|
return m.push(n(d, s.ur)), m.push(c + " " + n(c, s.uc)), m.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
|
|
1850
1837
|
};
|
|
1851
|
-
function
|
|
1838
|
+
function ka(e) {
|
|
1852
1839
|
let t = -1, n = [" kB", " MB", " GB", " TB", "PB", "EB", "ZB", "YB"];
|
|
1853
1840
|
do
|
|
1854
1841
|
e = e / 1024, t++;
|
|
1855
1842
|
while (e > 1024);
|
|
1856
1843
|
return Math.max(e, 0.1).toFixed(1) + n[t];
|
|
1857
1844
|
}
|
|
1858
|
-
function
|
|
1845
|
+
function Sa(e) {
|
|
1859
1846
|
let t = {};
|
|
1860
1847
|
return t["application/atom+xml"] = "atom", t["application/json"] = "json", t["application/javascript"] = "js", t["application/ogg"] = "ogg", t["application/pdf"] = "pdf", t["application/soap+xml"] = "soap", t["application/font-woff"] = "woff", t["application/xhtml+xml"] = "xml", t["application/xml-dtd"] = "dtd", t["application/xop+xml"] = "xop", t["application/zip"] = "zip", t["application/gzip"] = "gzip", t["application/x-bittorrent"] = "bittorrent", t["application/x-tex"] = "tex", t["application/xml"] = "xml", t["application/msword"] = "doc", t["image/svg+xml"] = "svg", t[e];
|
|
1861
1848
|
}
|
|
1862
|
-
function
|
|
1849
|
+
function Ea(e, t, n, s) {
|
|
1863
1850
|
let a = {
|
|
1864
1851
|
sexM: "m",
|
|
1865
1852
|
sexF: "f",
|
|
@@ -1980,19 +1967,17 @@ function Ba(e, t, n, s) {
|
|
|
1980
1967
|
},
|
|
1981
1968
|
// склоняем слово по указанному набору правил и исключений
|
|
1982
1969
|
word: function(l, c, d, u) {
|
|
1983
|
-
if (u === this.gcaseNom)
|
|
1984
|
-
return l;
|
|
1970
|
+
if (u === this.gcaseNom) return l;
|
|
1985
1971
|
if (l.match(/[-]/)) {
|
|
1986
1972
|
for (var f = l.split("-"), g = 0, x = f.length; g < x; g++)
|
|
1987
1973
|
f[g] = this.word(f[g], c, d, u);
|
|
1988
1974
|
return f.join("-");
|
|
1989
1975
|
}
|
|
1990
|
-
if (l.match(/^[А-ЯЁ]\.?$/i))
|
|
1991
|
-
return l;
|
|
1976
|
+
if (l.match(/^[А-ЯЁ]\.?$/i)) return l;
|
|
1992
1977
|
this.init();
|
|
1993
1978
|
var h = this.rules[d];
|
|
1994
|
-
let
|
|
1995
|
-
return h.exceptions && (
|
|
1979
|
+
let j;
|
|
1980
|
+
return h.exceptions && (j = this.pick(l, c, u, h.exceptions, !0), j) ? j : (j = this.pick(l, c, u, h.suffixes, !1), j || l);
|
|
1996
1981
|
},
|
|
1997
1982
|
// выбираем из списка правил первое подходящее и применяем
|
|
1998
1983
|
pick: function(l, c, d, u, f) {
|
|
@@ -2004,14 +1989,12 @@ function Ba(e, t, n, s) {
|
|
|
2004
1989
|
},
|
|
2005
1990
|
// проверяем, подходит ли правило к слову
|
|
2006
1991
|
ruleMatch: function(l, c, d, u) {
|
|
2007
|
-
if (d.sex === this.sexM && c === this.sexF || d.sex === this.sexF && c !== this.sexF)
|
|
2008
|
-
return !1;
|
|
1992
|
+
if (d.sex === this.sexM && c === this.sexF || d.sex === this.sexF && c !== this.sexF) return !1;
|
|
2009
1993
|
for (var f = 0, g = d.test.length; f < g; f++) {
|
|
2010
1994
|
var x = u ? l : l.substr(
|
|
2011
1995
|
Math.max(l.length - d.test[f].length, 0)
|
|
2012
1996
|
);
|
|
2013
|
-
if (x === d.test[f])
|
|
2014
|
-
return !0;
|
|
1997
|
+
if (x === d.test[f]) return !0;
|
|
2015
1998
|
}
|
|
2016
1999
|
return !1;
|
|
2017
2000
|
},
|
|
@@ -2069,13 +2052,12 @@ function Ba(e, t, n, s) {
|
|
|
2069
2052
|
};
|
|
2070
2053
|
if (typeof t > "u") {
|
|
2071
2054
|
var i = e.match(/^\s*(\S+)(\s+(\S+)(\s+(\S+))?)?\s*$/);
|
|
2072
|
-
if (!i)
|
|
2073
|
-
return "Cannot parse supplied name";
|
|
2055
|
+
if (!i) return "Cannot parse supplied name";
|
|
2074
2056
|
i[5] && i[3].match(/(ич|на)$/) && !i[5].match(/(ич|на)$/) ? (e = i[5], t = i[1], n = i[3], a.fullNameSurnameLast = !0) : (e = i[1], t = i[3], n = i[5]);
|
|
2075
2057
|
}
|
|
2076
2058
|
return a.ln = e, a.fn = t || "", a.mn = n || "", a.sex = s || a.getSex(), a;
|
|
2077
2059
|
}
|
|
2078
|
-
function
|
|
2060
|
+
function Da(e) {
|
|
2079
2061
|
let t = e.split(" ");
|
|
2080
2062
|
switch (t.length) {
|
|
2081
2063
|
case 2:
|
|
@@ -2086,7 +2068,7 @@ function Na(e) {
|
|
|
2086
2068
|
return e;
|
|
2087
2069
|
}
|
|
2088
2070
|
}
|
|
2089
|
-
function
|
|
2071
|
+
function Ma(e) {
|
|
2090
2072
|
return e = typeof e == "number" ? e : new Date(e).getMonth() + 1, {
|
|
2091
2073
|
1: { val: "01", name: "Январь", names: "Января", abc: "Янв" },
|
|
2092
2074
|
2: { val: "02", name: "Февраль", names: "Февраля", abc: "Февр" },
|
|
@@ -2102,34 +2084,33 @@ function Ia(e) {
|
|
|
2102
2084
|
12: { val: "12", name: "Декабрь", names: "Декабря", abc: "Дек" }
|
|
2103
2085
|
}[e];
|
|
2104
2086
|
}
|
|
2105
|
-
function
|
|
2087
|
+
function Ra(e, t) {
|
|
2106
2088
|
return t && (e = Number(e) / t), parseFloat(e).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, "$1 ");
|
|
2107
2089
|
}
|
|
2108
|
-
function
|
|
2090
|
+
function Ta(e, t) {
|
|
2109
2091
|
let n = t + "";
|
|
2110
|
-
for (; n.length < e; )
|
|
2111
|
-
n = "0" + n;
|
|
2092
|
+
for (; n.length < e; ) n = "0" + n;
|
|
2112
2093
|
return n;
|
|
2113
2094
|
}
|
|
2114
2095
|
function $a(e, t, n) {
|
|
2115
2096
|
let s = t / e * n;
|
|
2116
2097
|
return (typeof s != "number" || s === 1 / 0) && (s = 0), parseFloat(s).toFixed(1);
|
|
2117
2098
|
}
|
|
2118
|
-
function
|
|
2099
|
+
function Ba(e) {
|
|
2119
2100
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2120
2101
|
}
|
|
2121
|
-
function
|
|
2102
|
+
function Ia(e, t) {
|
|
2122
2103
|
e = Math.abs(e) % 100;
|
|
2123
2104
|
let n = e % 10;
|
|
2124
2105
|
return e > 10 && e < 20 ? t[2] : n > 1 && n < 5 ? t[1] : n === 1 ? t[0] : t[2];
|
|
2125
2106
|
}
|
|
2126
|
-
function
|
|
2107
|
+
function Na(e, t, n) {
|
|
2127
2108
|
return ae(e, t) ? ae(e, t).n : n || "";
|
|
2128
2109
|
}
|
|
2129
|
-
function
|
|
2110
|
+
function Fa(e, t, n, s) {
|
|
2130
2111
|
return ae(e, t) ? ae(e, t)[n] : s || "";
|
|
2131
2112
|
}
|
|
2132
|
-
function
|
|
2113
|
+
function Pa(e) {
|
|
2133
2114
|
return {
|
|
2134
2115
|
0: { name: "Январь", names: "Января", abc: "Янв" },
|
|
2135
2116
|
1: { name: "Январь", names: "Января", abc: "Янв" },
|
|
@@ -2140,19 +2121,19 @@ function Aa(e) {
|
|
|
2140
2121
|
6: { name: "Июнь", names: "Июня", abc: "Июнь" }
|
|
2141
2122
|
}[e];
|
|
2142
2123
|
}
|
|
2143
|
-
function
|
|
2124
|
+
function Oa(e, t) {
|
|
2144
2125
|
return e.reduce(function(n, s) {
|
|
2145
2126
|
let a = t instanceof Function ? t(s) : s[t];
|
|
2146
2127
|
return n[a] !== void 0 || (n[a] = {}), n[a][s.id] = s, n;
|
|
2147
2128
|
}, {});
|
|
2148
2129
|
}
|
|
2149
|
-
function
|
|
2130
|
+
function La(e) {
|
|
2150
2131
|
return parseInt((Date.now() - new Date(e).getTime()) / 31536e6 + "") + "";
|
|
2151
2132
|
}
|
|
2152
|
-
function
|
|
2133
|
+
function Aa(e) {
|
|
2153
2134
|
return ["number", "string"].includes(typeof e) ? !isNaN(Number(e)) && !isNaN(parseFloat(e)) : !1;
|
|
2154
2135
|
}
|
|
2155
|
-
function
|
|
2136
|
+
function Wa(e) {
|
|
2156
2137
|
var t = "", n = {
|
|
2157
2138
|
а: "a",
|
|
2158
2139
|
б: "b",
|
|
@@ -2225,16 +2206,16 @@ function Ua(e) {
|
|
|
2225
2206
|
n[e[s]] == null ? t += e[s] : t += n[e[s]];
|
|
2226
2207
|
return t;
|
|
2227
2208
|
}
|
|
2228
|
-
function
|
|
2209
|
+
function Ua(e, t, n = !1) {
|
|
2229
2210
|
return n ? e.sort((s, a) => a[t] - s[t]) : e.sort((s, a) => s[t] - a[t]);
|
|
2230
2211
|
}
|
|
2231
|
-
function
|
|
2212
|
+
function za(e, t) {
|
|
2232
2213
|
return e.reduce(function(n, s) {
|
|
2233
2214
|
let a = t instanceof Function ? t(s) : s[t];
|
|
2234
2215
|
return n[a] !== void 0 || (n[a] = {}), n[a][s.id] = s, n;
|
|
2235
2216
|
}, {});
|
|
2236
2217
|
}
|
|
2237
|
-
function
|
|
2218
|
+
function qa(e, t, n = !1) {
|
|
2238
2219
|
return n ? e.sort(
|
|
2239
2220
|
(s, a) => new Date(a[t]).getTime() - new Date(s[t]).getTime()
|
|
2240
2221
|
) : e.sort(
|
|
@@ -2244,13 +2225,13 @@ function Ga(e, t, n = !1) {
|
|
|
2244
2225
|
function Ha(e, t) {
|
|
2245
2226
|
return e.reduce((n, s) => n + (s[t] || 0), 0);
|
|
2246
2227
|
}
|
|
2247
|
-
function
|
|
2228
|
+
function Ka(e, t, n, s = !1) {
|
|
2248
2229
|
return s ? e.sort((a, i) => n(i[t]) - n(a[t])) : e.sort((a, i) => n(a[t]) - n(i[t]));
|
|
2249
2230
|
}
|
|
2250
|
-
function
|
|
2231
|
+
function Ya(e) {
|
|
2251
2232
|
return { style: { background: `var(--color-${e})` } };
|
|
2252
2233
|
}
|
|
2253
|
-
function
|
|
2234
|
+
function Za(e) {
|
|
2254
2235
|
switch (e = e / 1e3 / 60, !0) {
|
|
2255
2236
|
case e > 1440:
|
|
2256
2237
|
return Math.ceil(Math.abs(e / 1440)) + "д";
|
|
@@ -2262,47 +2243,47 @@ function Ja(e) {
|
|
|
2262
2243
|
return "∞";
|
|
2263
2244
|
}
|
|
2264
2245
|
}
|
|
2265
|
-
function
|
|
2246
|
+
function Ja(e) {
|
|
2266
2247
|
const t = /^#{1}\s+[^#].*$/gm, n = /^#{2}\s+[^#].*$/gm, s = /^#{3}\s+[^#].*$/gm, a = /\*\*[^\*\n]+\*\*/gm, i = /[^\*]\*[^\*\n]+\*/gm, l = /\[[\w|\(|\)|\s|\*|\?|\-|\.|\,]*(\]\(){1}[^\)]*\)/gm, c = /^((\s*((\*|\-)|\d(\.|\))) [^\n]+))+$/gm, d = /^[\*|\+|\-]\s.*$/, u = /^\s\s\s*[\*|\+|\-]\s.*$/, f = /^\d\.\s.*$/, g = /^\s\s+\d\.\s.*$/;
|
|
2267
2248
|
return t.test(e) && e.match(t).forEach((h) => {
|
|
2268
|
-
const
|
|
2249
|
+
const j = h.slice(1);
|
|
2269
2250
|
e = e.replace(
|
|
2270
2251
|
h,
|
|
2271
|
-
"<h1>" +
|
|
2252
|
+
"<h1>" + j + "</h1>"
|
|
2272
2253
|
);
|
|
2273
2254
|
}), n.test(e) && e.match(n).forEach((h) => {
|
|
2274
|
-
const
|
|
2255
|
+
const j = h.slice(2);
|
|
2275
2256
|
e = e.replace(
|
|
2276
2257
|
h,
|
|
2277
|
-
"<h2>" +
|
|
2258
|
+
"<h2>" + j + "</h2>"
|
|
2278
2259
|
);
|
|
2279
2260
|
}), s.test(e) && e.match(s).forEach((h) => {
|
|
2280
|
-
const
|
|
2261
|
+
const j = h.slice(3);
|
|
2281
2262
|
e = e.replace(
|
|
2282
2263
|
h,
|
|
2283
|
-
"<h3>" +
|
|
2264
|
+
"<h3>" + j + "</h3>"
|
|
2284
2265
|
);
|
|
2285
2266
|
}), a.test(e) && e.match(a).forEach((h) => {
|
|
2286
|
-
const
|
|
2267
|
+
const j = h.slice(2, -2);
|
|
2287
2268
|
e = e.replace(
|
|
2288
2269
|
h,
|
|
2289
|
-
"<strong>" +
|
|
2270
|
+
"<strong>" + j + "</strong>"
|
|
2290
2271
|
);
|
|
2291
2272
|
}), i.test(e) && e.match(i).forEach((h) => {
|
|
2292
|
-
const
|
|
2273
|
+
const j = h.slice(2, -1);
|
|
2293
2274
|
e = e.replace(
|
|
2294
2275
|
h,
|
|
2295
|
-
" <em>" +
|
|
2276
|
+
" <em>" + j + "</em>"
|
|
2296
2277
|
);
|
|
2297
2278
|
}), l.test(e) && e.match(l).forEach((h) => {
|
|
2298
|
-
const
|
|
2279
|
+
const j = h.match(/^\[.*\]/)[0].slice(1, -1), C = h.match(/\]\(.*\)/)[0].slice(2, -1);
|
|
2299
2280
|
e = e.replace(
|
|
2300
2281
|
h,
|
|
2301
|
-
'<a href="' + C + '">' +
|
|
2282
|
+
'<a href="' + C + '">' + j + "</a>"
|
|
2302
2283
|
);
|
|
2303
2284
|
}), c.test(e) && e.match(c).forEach((h) => {
|
|
2304
2285
|
const C = h.split(`
|
|
2305
|
-
`).map((m, p,
|
|
2286
|
+
`).map((m, p, b) => (d.test(m) && (m = "<li>" + m.slice(2) + "</li>", !d.test(b[p - 1]) && !u.test(b[p - 1]) && (m = "<ul>" + m), !d.test(b[p + 1]) && !u.test(b[p + 1]) && (m = m + "</ul>"), (u.test(b[p + 1]) || g.test(b[p + 1])) && (m = m.replace("</li>", ""))), u.test(m) && (m = m.trim(), m = "<li>" + m.slice(2) + "</li>", u.test(b[p - 1]) || (m = "<ul>" + m), !u.test(b[p + 1]) && d.test(b[p + 1]) && (m = m + "</ul></li>"), !u.test(b[p + 1]) && !d.test(b[p + 1]) && (m = m + "</ul></li></ul>")), f.test(m) && (m = "<li>" + m.slice(2) + "</li>", !f.test(b[p - 1]) && !g.test(b[p - 1]) && (m = "<ol>" + m), !f.test(b[p + 1]) && !g.test(b[p + 1]) && !f.test(b[p + 1]) && (m = m + "</ol>"), (u.test(b[p + 1]) || g.test(b[p + 1])) && (m = m.replace("</li>", ""))), g.test(m) && (m = m.trim(), m = "<li>" + m.slice(2) + "</li>", g.test(b[p - 1]) || (m = "<ol>" + m), f.test(b[p + 1]) && !g.test(b[p + 1]) && (m = m + "</ol>"), !f.test(b[p + 1]) && !g.test(b[p + 1]) && (m = m + "</ol></li></ol>")), m)).join("");
|
|
2306
2287
|
e = e.replace(h, C);
|
|
2307
2288
|
}), e.split(`
|
|
2308
2289
|
`).map((x) => {
|
|
@@ -2310,49 +2291,49 @@ function Qa(e) {
|
|
|
2310
2291
|
return x.replace(x, "<p>" + x + "</p>");
|
|
2311
2292
|
}).join("");
|
|
2312
2293
|
}
|
|
2313
|
-
function
|
|
2294
|
+
function Ga(e) {
|
|
2314
2295
|
let t = Math.floor(e / 1e3 % 60), n = Math.floor(e / (1e3 * 60) % 60), s = Math.floor(e / (1e3 * 60 * 60) % 24);
|
|
2315
2296
|
return s = s < 10 ? "0" + s : s, n = n < 10 ? "0" + n : n, t = t < 10 ? "0" + t : t, { hours: s, minutes: n, seconds: t };
|
|
2316
2297
|
}
|
|
2317
|
-
function
|
|
2298
|
+
function Xa(e, t) {
|
|
2318
2299
|
return Math.floor(Math.random() * (t - e + 1) + e);
|
|
2319
2300
|
}
|
|
2320
2301
|
const ie = {
|
|
2321
|
-
Age:
|
|
2322
|
-
ArraySort:
|
|
2323
|
-
ArrayGroup:
|
|
2324
|
-
ArraySortDate:
|
|
2325
|
-
ArraySortFunction:
|
|
2302
|
+
Age: La,
|
|
2303
|
+
ArraySort: Ua,
|
|
2304
|
+
ArrayGroup: za,
|
|
2305
|
+
ArraySortDate: qa,
|
|
2306
|
+
ArraySortFunction: Ka,
|
|
2326
2307
|
ArraySumma: Ha,
|
|
2327
|
-
Translit:
|
|
2328
|
-
Date:
|
|
2329
|
-
DateSort:
|
|
2330
|
-
DateString:
|
|
2331
|
-
ColorBackground:
|
|
2332
|
-
MoneyString:
|
|
2333
|
-
CountTime:
|
|
2334
|
-
Size:
|
|
2335
|
-
TypeFiles:
|
|
2336
|
-
Cases:
|
|
2337
|
-
Initials:
|
|
2338
|
-
Month:
|
|
2339
|
-
Money:
|
|
2340
|
-
MarkdownParse:
|
|
2341
|
-
Number:
|
|
2308
|
+
Translit: Wa,
|
|
2309
|
+
Date: ya,
|
|
2310
|
+
DateSort: _a,
|
|
2311
|
+
DateString: Ga,
|
|
2312
|
+
ColorBackground: Ya,
|
|
2313
|
+
MoneyString: wa,
|
|
2314
|
+
CountTime: Za,
|
|
2315
|
+
Size: ka,
|
|
2316
|
+
TypeFiles: Sa,
|
|
2317
|
+
Cases: Ea,
|
|
2318
|
+
Initials: Da,
|
|
2319
|
+
Month: Ma,
|
|
2320
|
+
Money: Ra,
|
|
2321
|
+
MarkdownParse: Ja,
|
|
2322
|
+
Number: Ta,
|
|
2342
2323
|
Percent: $a,
|
|
2343
|
-
CapitalizeFirstLetter:
|
|
2344
|
-
RandomIntFromInterval:
|
|
2345
|
-
DeclensionWord:
|
|
2346
|
-
Select:
|
|
2347
|
-
SelectParams:
|
|
2348
|
-
ObjectByArray:
|
|
2349
|
-
isNumeric:
|
|
2350
|
-
Week:
|
|
2324
|
+
CapitalizeFirstLetter: Ba,
|
|
2325
|
+
RandomIntFromInterval: Xa,
|
|
2326
|
+
DeclensionWord: Ia,
|
|
2327
|
+
Select: Na,
|
|
2328
|
+
SelectParams: Fa,
|
|
2329
|
+
ObjectByArray: Oa,
|
|
2330
|
+
isNumeric: Aa,
|
|
2331
|
+
Week: Pa
|
|
2351
2332
|
};
|
|
2352
2333
|
ie.setFN = (e, t) => {
|
|
2353
2334
|
ie[e] = t;
|
|
2354
2335
|
};
|
|
2355
|
-
function
|
|
2336
|
+
function ft({
|
|
2356
2337
|
title: e,
|
|
2357
2338
|
value: t,
|
|
2358
2339
|
placeholder: n,
|
|
@@ -2361,20 +2342,20 @@ function ht({
|
|
|
2361
2342
|
onSave: i,
|
|
2362
2343
|
className: l
|
|
2363
2344
|
}) {
|
|
2364
|
-
const c = "__.__.____", d = new Set("_"), u = ((p) => Array.from(c, (
|
|
2345
|
+
const c = "__.__.____", d = new Set("_"), u = ((p) => Array.from(c, (b, S) => d.has(b) ? p = S + 1 : p))(0), f = [...c].findIndex((p) => d.has(p)), g = new RegExp("\\d", "g"), x = (p) => (p = p.match(g) || [], Array.from(
|
|
2365
2346
|
c,
|
|
2366
|
-
(
|
|
2347
|
+
(b) => (p[0] === b || d.has(b)) && p.shift() || b
|
|
2367
2348
|
)), h = (p) => {
|
|
2368
|
-
const [
|
|
2349
|
+
const [b, S] = [p.target.selectionStart, p.target.selectionEnd].map(
|
|
2369
2350
|
(E) => (E = x(p.target.value.slice(0, E)).findIndex(
|
|
2370
|
-
(
|
|
2351
|
+
(I) => d.has(I)
|
|
2371
2352
|
), E < 0 ? u[u.length - 1] : C ? u[E - 1] || f : E)
|
|
2372
2353
|
);
|
|
2373
|
-
p.target.value = x(p.target.value).join(""), p.target.setSelectionRange(
|
|
2354
|
+
p.target.value = x(p.target.value).join(""), p.target.setSelectionRange(b, S), C = !1, s == null || s({
|
|
2374
2355
|
name: a,
|
|
2375
2356
|
value: p.target.value.split(".").reverse().join("-")
|
|
2376
2357
|
});
|
|
2377
|
-
},
|
|
2358
|
+
}, j = (p) => {
|
|
2378
2359
|
p.target.value = x(p.target.value).join(""), i == null || i({
|
|
2379
2360
|
name: a,
|
|
2380
2361
|
value: p.target.value.split(".").reverse().join("-")
|
|
@@ -2394,37 +2375,37 @@ function ht({
|
|
|
2394
2375
|
onKeyDown: (p) => C = p.key === "Backspace",
|
|
2395
2376
|
onFocus: h,
|
|
2396
2377
|
defaultValue: ie.Date(t, "dd.mm.yyyy"),
|
|
2397
|
-
onBlur:
|
|
2378
|
+
onBlur: j
|
|
2398
2379
|
}
|
|
2399
2380
|
) })
|
|
2400
2381
|
] });
|
|
2401
2382
|
}
|
|
2402
|
-
function
|
|
2383
|
+
function Qa({ children: e }) {
|
|
2403
2384
|
return /* @__PURE__ */ r.jsx("div", { className: "l", children: /* @__PURE__ */ r.jsx("ul", { children: e }) });
|
|
2404
2385
|
}
|
|
2405
|
-
function
|
|
2386
|
+
function Va({ children: e }) {
|
|
2406
2387
|
return /* @__PURE__ */ r.jsx("div", { className: Q.s, children: e });
|
|
2407
2388
|
}
|
|
2408
|
-
function
|
|
2389
|
+
function ei({ children: e, className: t }) {
|
|
2409
2390
|
let n = {};
|
|
2410
2391
|
return t && (n.className = t), /* @__PURE__ */ r.jsx("div", { "data-form": "outline", ...n, children: /* @__PURE__ */ r.jsx("ul", { children: e }) });
|
|
2411
2392
|
}
|
|
2412
|
-
function
|
|
2393
|
+
function ti({ children: e }) {
|
|
2413
2394
|
return /* @__PURE__ */ r.jsx("div", { className: Q.c, children: e });
|
|
2414
2395
|
}
|
|
2415
|
-
const
|
|
2416
|
-
List:
|
|
2417
|
-
Scroll:
|
|
2418
|
-
Main:
|
|
2419
|
-
Add:
|
|
2420
|
-
Icon:
|
|
2421
|
-
Open:
|
|
2422
|
-
Shake:
|
|
2423
|
-
Form:
|
|
2424
|
-
Center:
|
|
2425
|
-
Close:
|
|
2396
|
+
const yn = {
|
|
2397
|
+
List: Qa,
|
|
2398
|
+
Scroll: Va,
|
|
2399
|
+
Main: ca,
|
|
2400
|
+
Add: ua,
|
|
2401
|
+
Icon: ha,
|
|
2402
|
+
Open: ma,
|
|
2403
|
+
Shake: fa,
|
|
2404
|
+
Form: ei,
|
|
2405
|
+
Center: ti,
|
|
2406
|
+
Close: ga
|
|
2426
2407
|
};
|
|
2427
|
-
function
|
|
2408
|
+
function ht({
|
|
2428
2409
|
value: e,
|
|
2429
2410
|
onValue: t,
|
|
2430
2411
|
name: n,
|
|
@@ -2439,19 +2420,18 @@ function mt({
|
|
|
2439
2420
|
view: g,
|
|
2440
2421
|
modal: x,
|
|
2441
2422
|
module: h,
|
|
2442
|
-
options:
|
|
2423
|
+
options: j,
|
|
2443
2424
|
className: C
|
|
2444
2425
|
}) {
|
|
2445
|
-
let [m, p] = y.useState(e),
|
|
2446
|
-
if (!(c && u) || !x)
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
_n.Open(R[1], {
|
|
2426
|
+
let [m, p] = y.useState(e), b = (I) => {
|
|
2427
|
+
if (!(c && u) || !x) return;
|
|
2428
|
+
let M = x.split(".");
|
|
2429
|
+
yn.Open(M[1], {
|
|
2450
2430
|
callback: (P) => {
|
|
2451
2431
|
t && t({ value: P, name: n }), p(P);
|
|
2452
2432
|
},
|
|
2453
2433
|
onValue: t,
|
|
2454
|
-
options:
|
|
2434
|
+
options: j,
|
|
2455
2435
|
name: n,
|
|
2456
2436
|
value: e
|
|
2457
2437
|
});
|
|
@@ -2465,7 +2445,7 @@ function mt({
|
|
|
2465
2445
|
"dd",
|
|
2466
2446
|
{
|
|
2467
2447
|
...E,
|
|
2468
|
-
onClick:
|
|
2448
|
+
onClick: b,
|
|
2469
2449
|
edit: (c && u) + "",
|
|
2470
2450
|
"data-after": f,
|
|
2471
2451
|
children: m
|
|
@@ -2474,10 +2454,10 @@ function mt({
|
|
|
2474
2454
|
i && /* @__PURE__ */ r.jsx("em", { children: i })
|
|
2475
2455
|
] });
|
|
2476
2456
|
}
|
|
2477
|
-
function
|
|
2457
|
+
function mt(e) {
|
|
2478
2458
|
let t = e.value, n = (g) => e.type === "multi" ? g.replace(/[^+\d.+-]/g, "") : g.replace(/[^+\d.]/g, ""), s = (g, x) => {
|
|
2479
|
-
let h = document.createRange(),
|
|
2480
|
-
h.setStart(x.childNodes[0], g), h.collapse(!0),
|
|
2459
|
+
let h = document.createRange(), j = window.getSelection();
|
|
2460
|
+
h.setStart(x.childNodes[0], g), h.collapse(!0), j.removeAllRanges(), j.addRange(h), x.focus();
|
|
2481
2461
|
}, a = (g) => {
|
|
2482
2462
|
e.onValue({
|
|
2483
2463
|
value: n(g.target.textContent),
|
|
@@ -2523,11 +2503,11 @@ function gt(e) {
|
|
|
2523
2503
|
}
|
|
2524
2504
|
);
|
|
2525
2505
|
}
|
|
2526
|
-
const
|
|
2527
|
-
o:
|
|
2528
|
-
c:
|
|
2506
|
+
const ni = "_o_1kqkq_1", ri = "_c_1kqkq_11", Zt = {
|
|
2507
|
+
o: ni,
|
|
2508
|
+
c: ri
|
|
2529
2509
|
};
|
|
2530
|
-
function
|
|
2510
|
+
function _n({
|
|
2531
2511
|
value: e,
|
|
2532
2512
|
onValue: t,
|
|
2533
2513
|
name: n,
|
|
@@ -2546,15 +2526,14 @@ function yn({
|
|
|
2546
2526
|
let x = (C) => {
|
|
2547
2527
|
g(C), t && t({ value: C, name: n });
|
|
2548
2528
|
}, h = (C) => {
|
|
2549
|
-
if (!i || !l)
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
ft.setListener(
|
|
2529
|
+
if (!i || !l) return;
|
|
2530
|
+
const m = C.target.getBoundingClientRect(), p = m.left, b = m.top;
|
|
2531
|
+
dt.setListener(
|
|
2553
2532
|
"form",
|
|
2554
2533
|
/* @__PURE__ */ r.jsx(
|
|
2555
|
-
|
|
2534
|
+
si,
|
|
2556
2535
|
{
|
|
2557
|
-
position: { x: p, y:
|
|
2536
|
+
position: { x: p, y: b },
|
|
2558
2537
|
onValue: x,
|
|
2559
2538
|
date: f
|
|
2560
2539
|
},
|
|
@@ -2562,8 +2541,8 @@ function yn({
|
|
|
2562
2541
|
)
|
|
2563
2542
|
);
|
|
2564
2543
|
};
|
|
2565
|
-
const
|
|
2566
|
-
return d && (
|
|
2544
|
+
const j = {};
|
|
2545
|
+
return d && (j.placeholder = d), /* @__PURE__ */ r.jsx(r.Fragment, { children: s === "icon" ? /* @__PURE__ */ r.jsx(
|
|
2567
2546
|
"i",
|
|
2568
2547
|
{
|
|
2569
2548
|
"data-icon": "F043",
|
|
@@ -2578,7 +2557,7 @@ function yn({
|
|
|
2578
2557
|
"dd",
|
|
2579
2558
|
{
|
|
2580
2559
|
onClick: h,
|
|
2581
|
-
...
|
|
2560
|
+
...j,
|
|
2582
2561
|
children: ie.Date(f, "mm.yyyy")
|
|
2583
2562
|
}
|
|
2584
2563
|
),
|
|
@@ -2587,7 +2566,7 @@ function yn({
|
|
|
2587
2566
|
}
|
|
2588
2567
|
) });
|
|
2589
2568
|
}
|
|
2590
|
-
const
|
|
2569
|
+
const si = (e) => {
|
|
2591
2570
|
let [t, n] = y.useState(!0), s = /* @__PURE__ */ new Date(), a = new Date(e.date), i = {
|
|
2592
2571
|
y: parseInt(s.getFullYear()),
|
|
2593
2572
|
m: parseInt(s.getMonth()) + 1
|
|
@@ -2602,12 +2581,12 @@ const oi = (e) => {
|
|
|
2602
2581
|
d(c - 1);
|
|
2603
2582
|
}, x = (p) => {
|
|
2604
2583
|
e.onValue(c + "-" + ie.Number(2, p)), u();
|
|
2605
|
-
}, h = (p) => i.y === l.y && i.m === p ? "_FFEB3B" : "",
|
|
2584
|
+
}, h = (p) => i.y === l.y && i.m === p ? "_FFEB3B" : "", j = Array(12).fill("").map((p, b) => b + 1), C = 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;
|
|
2606
2585
|
return /* @__PURE__ */ r.jsx(r.Fragment, { children: t ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2607
2586
|
/* @__PURE__ */ r.jsx(
|
|
2608
2587
|
"div",
|
|
2609
2588
|
{
|
|
2610
|
-
className:
|
|
2589
|
+
className: Zt.o,
|
|
2611
2590
|
onClick: () => u()
|
|
2612
2591
|
},
|
|
2613
2592
|
(/* @__PURE__ */ new Date()).getTime()
|
|
@@ -2615,7 +2594,7 @@ const oi = (e) => {
|
|
|
2615
2594
|
/* @__PURE__ */ r.jsxs(
|
|
2616
2595
|
"div",
|
|
2617
2596
|
{
|
|
2618
|
-
className:
|
|
2597
|
+
className: Zt.c,
|
|
2619
2598
|
style: { top: C + "px", left: m + "px" },
|
|
2620
2599
|
children: [
|
|
2621
2600
|
/* @__PURE__ */ r.jsxs("s", { children: [
|
|
@@ -2626,7 +2605,7 @@ const oi = (e) => {
|
|
|
2626
2605
|
/* @__PURE__ */ r.jsx(
|
|
2627
2606
|
"div",
|
|
2628
2607
|
{
|
|
2629
|
-
children:
|
|
2608
|
+
children: j.map((p, b) => /* @__PURE__ */ r.jsx(
|
|
2630
2609
|
"span",
|
|
2631
2610
|
{
|
|
2632
2611
|
onClick: () => {
|
|
@@ -2635,7 +2614,7 @@ const oi = (e) => {
|
|
|
2635
2614
|
color: h(p),
|
|
2636
2615
|
children: /* @__PURE__ */ r.jsx("b", { children: ie.Month(p).abc })
|
|
2637
2616
|
},
|
|
2638
|
-
|
|
2617
|
+
b
|
|
2639
2618
|
))
|
|
2640
2619
|
}
|
|
2641
2620
|
)
|
|
@@ -2659,10 +2638,10 @@ function wn(e) {
|
|
|
2659
2638
|
};
|
|
2660
2639
|
const h = (m) => {
|
|
2661
2640
|
e.onSave && e.onSave({ value: m.target.innerText, name: e.name });
|
|
2662
|
-
},
|
|
2663
|
-
|
|
2641
|
+
}, j = {};
|
|
2642
|
+
j.field = "notes", e.className && (j.className = e.className);
|
|
2664
2643
|
const C = {};
|
|
2665
|
-
return u && (C.placeholder = u), s && (C.open = ""), i && l && (C.edit = ""), d ? /* @__PURE__ */ r.jsx(r.Fragment, {}) : /* @__PURE__ */ r.jsxs("dl", { ...
|
|
2644
|
+
return u && (C.placeholder = u), s && (C.open = ""), i && l && (C.edit = ""), d ? /* @__PURE__ */ r.jsx(r.Fragment, {}) : /* @__PURE__ */ r.jsxs("dl", { ...j, children: [
|
|
2666
2645
|
t(),
|
|
2667
2646
|
/* @__PURE__ */ r.jsx(
|
|
2668
2647
|
"dd",
|
|
@@ -2680,7 +2659,7 @@ function wn(e) {
|
|
|
2680
2659
|
n()
|
|
2681
2660
|
] });
|
|
2682
2661
|
}
|
|
2683
|
-
function
|
|
2662
|
+
function gt({
|
|
2684
2663
|
onValue: e,
|
|
2685
2664
|
onSave: t,
|
|
2686
2665
|
value: n,
|
|
@@ -2695,7 +2674,7 @@ function pt({
|
|
|
2695
2674
|
placeholder: g,
|
|
2696
2675
|
className: x,
|
|
2697
2676
|
after: h,
|
|
2698
|
-
view:
|
|
2677
|
+
view: j
|
|
2699
2678
|
}) {
|
|
2700
2679
|
l = l !== void 0 ? l : !0, a = a !== void 0 ? a : !0, f = !!(f && (n === "" || n === void 0)) && !(l && a), g = g !== void 0 ? g : "", i = i !== void 0 ? i : 99;
|
|
2701
2680
|
let m = (S) => {
|
|
@@ -2703,8 +2682,8 @@ function pt({
|
|
|
2703
2682
|
};
|
|
2704
2683
|
const p = (S) => {
|
|
2705
2684
|
t == null || t({ name: s, value: S.currentTarget.value });
|
|
2706
|
-
},
|
|
2707
|
-
return
|
|
2685
|
+
}, b = {};
|
|
2686
|
+
return b.field = "input", x && (b.className = x), f ? /* @__PURE__ */ r.jsx(r.Fragment, {}) : /* @__PURE__ */ r.jsxs("dl", { ...b, children: [
|
|
2708
2687
|
c && /* @__PURE__ */ r.jsx("dt", { children: c }),
|
|
2709
2688
|
/* @__PURE__ */ r.jsx("dd", { children: /* @__PURE__ */ r.jsx(
|
|
2710
2689
|
"input",
|
|
@@ -2752,10 +2731,10 @@ function kn({
|
|
|
2752
2731
|
}).catch((p) => {
|
|
2753
2732
|
});
|
|
2754
2733
|
};
|
|
2755
|
-
const
|
|
2756
|
-
|
|
2734
|
+
const j = {};
|
|
2735
|
+
j.field = "password", a && (j.className = a);
|
|
2757
2736
|
const C = {};
|
|
2758
|
-
return s && (C.placeholder = s), /* @__PURE__ */ r.jsxs("dl", { ...
|
|
2737
|
+
return s && (C.placeholder = s), /* @__PURE__ */ r.jsxs("dl", { ...j, children: [
|
|
2759
2738
|
i ? /* @__PURE__ */ r.jsx("dt", { children: i }) : "",
|
|
2760
2739
|
/* @__PURE__ */ r.jsx(
|
|
2761
2740
|
"dd",
|
|
@@ -2763,7 +2742,7 @@ function kn({
|
|
|
2763
2742
|
onPaste: h,
|
|
2764
2743
|
onInput: g,
|
|
2765
2744
|
onKeyDown: x,
|
|
2766
|
-
onBlur:
|
|
2745
|
+
onBlur: je.Blur,
|
|
2767
2746
|
contentEditable: c && d ? "plaintext-only" : "false",
|
|
2768
2747
|
...C,
|
|
2769
2748
|
suppressContentEditableWarning: !0,
|
|
@@ -2773,7 +2752,7 @@ function kn({
|
|
|
2773
2752
|
l ? /* @__PURE__ */ r.jsx("em", { children: l }) : ""
|
|
2774
2753
|
] });
|
|
2775
2754
|
}
|
|
2776
|
-
function
|
|
2755
|
+
function pt({
|
|
2777
2756
|
onValue: e,
|
|
2778
2757
|
onSave: t,
|
|
2779
2758
|
value: n,
|
|
@@ -2787,22 +2766,22 @@ function xt({
|
|
|
2787
2766
|
className: f
|
|
2788
2767
|
}) {
|
|
2789
2768
|
i = i !== void 0 ? i : !0, a = a !== void 0 ? a : !0, d = !!(d && (n === "" || n === void 0)) && !(i && a), u = u || "";
|
|
2790
|
-
const x = "+7__________", h = new Set("_"),
|
|
2769
|
+
const x = "+7__________", h = new Set("_"), j = ((M) => Array.from(x, (P, ee) => h.has(P) ? M = ee + 1 : M))(0), C = [...x].findIndex((M) => h.has(M)), m = new RegExp("\\d", "g"), p = (M) => (M = M.match(m) || [], Array.from(
|
|
2791
2770
|
x,
|
|
2792
|
-
(P) => (
|
|
2793
|
-
)),
|
|
2794
|
-
const [P, ee] = [
|
|
2795
|
-
(O) => (O = p(
|
|
2796
|
-
(
|
|
2797
|
-
), O < 0 ?
|
|
2771
|
+
(P) => (M[0] === P || h.has(P)) && M.shift() || P
|
|
2772
|
+
)), b = (M) => {
|
|
2773
|
+
const [P, ee] = [M.target.selectionStart, M.target.selectionEnd].map(
|
|
2774
|
+
(O) => (O = p(M.target.value.slice(0, O)).findIndex(
|
|
2775
|
+
(B) => h.has(B)
|
|
2776
|
+
), O < 0 ? j[j.length - 1] : E ? j[O - 1] || C : O)
|
|
2798
2777
|
);
|
|
2799
|
-
|
|
2800
|
-
}, S = (
|
|
2801
|
-
|
|
2778
|
+
M.target.value = p(M.target.value).join(""), M.target.setSelectionRange(P, ee), E = !1, e == null || e({ name: s, value: M.target.value.match(/\d+/g)[0] });
|
|
2779
|
+
}, S = (M) => {
|
|
2780
|
+
M.target.value = p(M.target.value).join(""), t == null || t({ name: s, value: M.target.value.match(/\d+/g)[0] });
|
|
2802
2781
|
};
|
|
2803
2782
|
let E = !1;
|
|
2804
|
-
const
|
|
2805
|
-
return
|
|
2783
|
+
const I = {};
|
|
2784
|
+
return I.field = "input", f && (I.className = f), d ? /* @__PURE__ */ r.jsx(r.Fragment, {}) : /* @__PURE__ */ r.jsxs("dl", { ...I, children: [
|
|
2806
2785
|
l && /* @__PURE__ */ r.jsx("dt", { children: l }),
|
|
2807
2786
|
/* @__PURE__ */ r.jsx("dd", { children: /* @__PURE__ */ r.jsx(
|
|
2808
2787
|
"input",
|
|
@@ -2810,8 +2789,8 @@ function xt({
|
|
|
2810
2789
|
name: s,
|
|
2811
2790
|
type: "tel",
|
|
2812
2791
|
inputMode: "numeric",
|
|
2813
|
-
onChange:
|
|
2814
|
-
onFocus:
|
|
2792
|
+
onChange: b,
|
|
2793
|
+
onFocus: b,
|
|
2815
2794
|
onBlur: S,
|
|
2816
2795
|
placeholder: u,
|
|
2817
2796
|
defaultValue: n
|
|
@@ -2855,7 +2834,7 @@ const Sn = (e) => {
|
|
|
2855
2834
|
}
|
|
2856
2835
|
);
|
|
2857
2836
|
};
|
|
2858
|
-
function
|
|
2837
|
+
function xt({
|
|
2859
2838
|
title: e,
|
|
2860
2839
|
error: t,
|
|
2861
2840
|
edit: n = !0,
|
|
@@ -2870,8 +2849,8 @@ function vt({
|
|
|
2870
2849
|
view: g,
|
|
2871
2850
|
className: x
|
|
2872
2851
|
}) {
|
|
2873
|
-
var
|
|
2874
|
-
const h = y.useId(), [
|
|
2852
|
+
var b;
|
|
2853
|
+
const h = y.useId(), [j, C] = y.useState((b = c[parseInt(i)]) == null ? void 0 : b.n);
|
|
2875
2854
|
let m = (S) => {
|
|
2876
2855
|
C(c[S.target.value].n), l == null || l({ name: u, value: S.target.value });
|
|
2877
2856
|
};
|
|
@@ -2879,7 +2858,7 @@ function vt({
|
|
|
2879
2858
|
return p.field = "select", x && (p.className = x), /* @__PURE__ */ r.jsxs("dl", { ...p, children: [
|
|
2880
2859
|
e ? /* @__PURE__ */ r.jsx("dt", { children: e }) : "",
|
|
2881
2860
|
/* @__PURE__ */ r.jsxs("dd", { children: [
|
|
2882
|
-
|
|
2861
|
+
j,
|
|
2883
2862
|
/* @__PURE__ */ r.jsx(
|
|
2884
2863
|
"select",
|
|
2885
2864
|
{
|
|
@@ -2893,7 +2872,7 @@ function vt({
|
|
|
2893
2872
|
] })
|
|
2894
2873
|
] });
|
|
2895
2874
|
}
|
|
2896
|
-
function
|
|
2875
|
+
function vt({
|
|
2897
2876
|
value: e,
|
|
2898
2877
|
onValue: t,
|
|
2899
2878
|
name: n,
|
|
@@ -2909,34 +2888,33 @@ function bt({
|
|
|
2909
2888
|
onSave: x,
|
|
2910
2889
|
className: h = ""
|
|
2911
2890
|
}) {
|
|
2912
|
-
let
|
|
2891
|
+
let j = !!(l && (e === "" || e === void 0)), C = (E) => {
|
|
2913
2892
|
t == null || t({ value: E.target.value, name: n });
|
|
2914
2893
|
}, m = (E) => {
|
|
2915
|
-
E.preventDefault(), navigator.clipboard.readText().then((
|
|
2894
|
+
E.preventDefault(), navigator.clipboard.readText().then((I) => {
|
|
2916
2895
|
window.document.execCommand(
|
|
2917
2896
|
"insertText",
|
|
2918
2897
|
!1,
|
|
2919
|
-
|
|
2898
|
+
I.replace(/(\r\n|\n|\r)/gm, " ")
|
|
2920
2899
|
);
|
|
2921
|
-
}).catch((
|
|
2900
|
+
}).catch((I) => {
|
|
2922
2901
|
});
|
|
2923
2902
|
}, p = (E) => {
|
|
2924
2903
|
E.preventDefault(), navigator.clipboard.writeText(E.target.value).then(
|
|
2925
2904
|
function() {
|
|
2926
|
-
|
|
2905
|
+
st.Copy("Данные в буфер обмене");
|
|
2927
2906
|
},
|
|
2928
|
-
function(
|
|
2907
|
+
function(I) {
|
|
2929
2908
|
}
|
|
2930
2909
|
);
|
|
2931
2910
|
};
|
|
2932
|
-
if (!(c && d) && !f || !(c && d) &&
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
j.field = "input", h && (j.className = h);
|
|
2911
|
+
if (!(c && d) && !f || !(c && d) && j) return "";
|
|
2912
|
+
const b = {};
|
|
2913
|
+
b.field = "input", h && (b.className = h);
|
|
2936
2914
|
const S = (E) => {
|
|
2937
2915
|
x == null || x({ value: E.target.value, name: n });
|
|
2938
2916
|
};
|
|
2939
|
-
return /* @__PURE__ */ r.jsxs("dl", { ...
|
|
2917
|
+
return /* @__PURE__ */ r.jsxs("dl", { ...b, children: [
|
|
2940
2918
|
a ? /* @__PURE__ */ r.jsx("dt", { children: a }) : "",
|
|
2941
2919
|
/* @__PURE__ */ r.jsx("dd", { children: /* @__PURE__ */ r.jsx(
|
|
2942
2920
|
"input",
|
|
@@ -2962,15 +2940,14 @@ function jt(e) {
|
|
|
2962
2940
|
}, [u, f] = y.useState(
|
|
2963
2941
|
e.default !== void 0 ? e.options[e.default] : e.default
|
|
2964
2942
|
), g = (h) => {
|
|
2965
|
-
if (!(s && a))
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
ft.setListener(
|
|
2943
|
+
if (!(s && a)) return;
|
|
2944
|
+
const j = h.target.getBoundingClientRect();
|
|
2945
|
+
dt.setListener(
|
|
2969
2946
|
"form",
|
|
2970
2947
|
/* @__PURE__ */ r.jsx(
|
|
2971
|
-
|
|
2948
|
+
ai,
|
|
2972
2949
|
{
|
|
2973
|
-
parent:
|
|
2950
|
+
parent: j,
|
|
2974
2951
|
onValue: d,
|
|
2975
2952
|
view: e.view,
|
|
2976
2953
|
options: e.options
|
|
@@ -3000,7 +2977,7 @@ function jt(e) {
|
|
|
3000
2977
|
}
|
|
3001
2978
|
);
|
|
3002
2979
|
}
|
|
3003
|
-
const
|
|
2980
|
+
const ai = ({ onValue: e, parent: t, view: n, options: s }) => {
|
|
3004
2981
|
let [a, i] = y.useState(!0), l = () => {
|
|
3005
2982
|
i(!1);
|
|
3006
2983
|
}, c = (g) => {
|
|
@@ -3038,7 +3015,7 @@ const li = ({ onValue: e, parent: t, view: n, options: s }) => {
|
|
|
3038
3015
|
)
|
|
3039
3016
|
] }) : "" });
|
|
3040
3017
|
};
|
|
3041
|
-
function
|
|
3018
|
+
function at({
|
|
3042
3019
|
set: e,
|
|
3043
3020
|
value: t,
|
|
3044
3021
|
onValue: n,
|
|
@@ -3053,14 +3030,14 @@ function it({
|
|
|
3053
3030
|
after: g = "",
|
|
3054
3031
|
view: x,
|
|
3055
3032
|
module: h,
|
|
3056
|
-
item:
|
|
3033
|
+
item: j,
|
|
3057
3034
|
className: C = ""
|
|
3058
3035
|
}) {
|
|
3059
3036
|
let m = {};
|
|
3060
3037
|
switch (e) {
|
|
3061
3038
|
case "String":
|
|
3062
3039
|
return /* @__PURE__ */ r.jsx(
|
|
3063
|
-
|
|
3040
|
+
vt,
|
|
3064
3041
|
{
|
|
3065
3042
|
title: i,
|
|
3066
3043
|
show: u,
|
|
@@ -3076,8 +3053,8 @@ function it({
|
|
|
3076
3053
|
}
|
|
3077
3054
|
);
|
|
3078
3055
|
case "Select":
|
|
3079
|
-
return
|
|
3080
|
-
|
|
3056
|
+
return j && (m = oe.getSelect(parseInt(j)) ? oe.getSelect(parseInt(j)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ r.jsx(
|
|
3057
|
+
xt,
|
|
3081
3058
|
{
|
|
3082
3059
|
title: i,
|
|
3083
3060
|
show: u,
|
|
@@ -3113,7 +3090,7 @@ function it({
|
|
|
3113
3090
|
);
|
|
3114
3091
|
case "Date":
|
|
3115
3092
|
return /* @__PURE__ */ r.jsx(
|
|
3116
|
-
|
|
3093
|
+
ft,
|
|
3117
3094
|
{
|
|
3118
3095
|
title: i,
|
|
3119
3096
|
show: u,
|
|
@@ -3130,7 +3107,7 @@ function it({
|
|
|
3130
3107
|
);
|
|
3131
3108
|
case "Phone":
|
|
3132
3109
|
return /* @__PURE__ */ r.jsx(
|
|
3133
|
-
|
|
3110
|
+
pt,
|
|
3134
3111
|
{
|
|
3135
3112
|
title: i,
|
|
3136
3113
|
show: u,
|
|
@@ -3147,7 +3124,7 @@ function it({
|
|
|
3147
3124
|
);
|
|
3148
3125
|
case "Number":
|
|
3149
3126
|
return /* @__PURE__ */ r.jsx(
|
|
3150
|
-
|
|
3127
|
+
gt,
|
|
3151
3128
|
{
|
|
3152
3129
|
title: i,
|
|
3153
3130
|
show: u,
|
|
@@ -3164,7 +3141,7 @@ function it({
|
|
|
3164
3141
|
);
|
|
3165
3142
|
case "Money":
|
|
3166
3143
|
return /* @__PURE__ */ r.jsx(
|
|
3167
|
-
|
|
3144
|
+
mt,
|
|
3168
3145
|
{
|
|
3169
3146
|
title: i,
|
|
3170
3147
|
show: u,
|
|
@@ -3181,7 +3158,7 @@ function it({
|
|
|
3181
3158
|
);
|
|
3182
3159
|
case "Modal":
|
|
3183
3160
|
return /* @__PURE__ */ r.jsx(
|
|
3184
|
-
|
|
3161
|
+
ht,
|
|
3185
3162
|
{
|
|
3186
3163
|
title: i,
|
|
3187
3164
|
show: u,
|
|
@@ -3215,19 +3192,18 @@ function En({
|
|
|
3215
3192
|
view: g,
|
|
3216
3193
|
onBlur: x,
|
|
3217
3194
|
onSave: h,
|
|
3218
|
-
className:
|
|
3195
|
+
className: j = ""
|
|
3219
3196
|
}) {
|
|
3220
3197
|
let C = !!(l && (e === "" || e === void 0));
|
|
3221
|
-
if (!(c && d) && !f || !(c && d) && C)
|
|
3222
|
-
return "";
|
|
3198
|
+
if (!(c && d) && !f || !(c && d) && C) return "";
|
|
3223
3199
|
let m = (E) => {
|
|
3224
3200
|
t && t({ value: E.target.innerText, name: n });
|
|
3225
3201
|
}, p = (E) => {
|
|
3226
3202
|
h && h({ value: E.target.innerText, name: n });
|
|
3227
|
-
},
|
|
3228
|
-
E.preventDefault(), navigator.clipboard.readText().then((
|
|
3229
|
-
window.document.execCommand("insertText", !1,
|
|
3230
|
-
}).catch((
|
|
3203
|
+
}, b = (E) => {
|
|
3204
|
+
E.preventDefault(), navigator.clipboard.readText().then((I) => {
|
|
3205
|
+
window.document.execCommand("insertText", !1, I);
|
|
3206
|
+
}).catch((I) => {
|
|
3231
3207
|
});
|
|
3232
3208
|
};
|
|
3233
3209
|
const S = {};
|
|
@@ -3236,7 +3212,7 @@ function En({
|
|
|
3236
3212
|
/* @__PURE__ */ r.jsx(
|
|
3237
3213
|
"dd",
|
|
3238
3214
|
{
|
|
3239
|
-
onPaste:
|
|
3215
|
+
onPaste: b,
|
|
3240
3216
|
onBlur: p,
|
|
3241
3217
|
onInput: m,
|
|
3242
3218
|
contentEditable: c && d ? "plaintext-only" : "false",
|
|
@@ -3248,7 +3224,7 @@ function En({
|
|
|
3248
3224
|
i ?? /* @__PURE__ */ r.jsx("em", { children: i })
|
|
3249
3225
|
] });
|
|
3250
3226
|
}
|
|
3251
|
-
function
|
|
3227
|
+
function Dn({
|
|
3252
3228
|
value: e,
|
|
3253
3229
|
onValue: t,
|
|
3254
3230
|
name: n,
|
|
@@ -3263,23 +3239,22 @@ function Tn({
|
|
|
3263
3239
|
view: g,
|
|
3264
3240
|
onBlur: x,
|
|
3265
3241
|
onSave: h,
|
|
3266
|
-
className:
|
|
3242
|
+
className: j = ""
|
|
3267
3243
|
}) {
|
|
3268
3244
|
let C = !!(l && (e === "" || e === void 0));
|
|
3269
|
-
if (ie.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), y.useRef(null), !(c && d) && !f || !(c && d) && C)
|
|
3270
|
-
|
|
3271
|
-
const m = "__:__", p = new Set("_"), j = ((D) => Array.from(m, (q, je) => p.has(q) ? D = je + 1 : D))(0), S = [...m].findIndex((D) => p.has(D)), E = new RegExp("\\d", "g"), M = (D) => (D = D.match(E) || [], Array.from(
|
|
3245
|
+
if (ie.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), y.useRef(null), !(c && d) && !f || !(c && d) && C) return "";
|
|
3246
|
+
const m = "__:__", p = new Set("_"), b = ((B) => Array.from(m, (J, be) => p.has(J) ? B = be + 1 : B))(0), S = [...m].findIndex((B) => p.has(B)), E = new RegExp("\\d", "g"), I = (B) => (B = B.match(E) || [], Array.from(
|
|
3272
3247
|
m,
|
|
3273
|
-
(
|
|
3274
|
-
)),
|
|
3275
|
-
const [
|
|
3276
|
-
(
|
|
3248
|
+
(J) => (B[0] === J || p.has(J)) && B.shift() || J
|
|
3249
|
+
)), M = (B) => {
|
|
3250
|
+
const [J, be] = [B.target.selectionStart, B.target.selectionEnd].map(
|
|
3251
|
+
(H) => (H = I(B.target.value.slice(0, H)).findIndex(
|
|
3277
3252
|
(re) => p.has(re)
|
|
3278
|
-
),
|
|
3253
|
+
), H < 0 ? b[b.length - 1] : O ? b[H - 1] || S : H)
|
|
3279
3254
|
);
|
|
3280
|
-
|
|
3255
|
+
B.target.value = I(B.target.value).join(""), B.target.setSelectionRange(J, be), t == null || t({ name: n, value: B.target.value });
|
|
3281
3256
|
}, P = {};
|
|
3282
|
-
P.field = "input",
|
|
3257
|
+
P.field = "input", j && (P.className = j);
|
|
3283
3258
|
const ee = {};
|
|
3284
3259
|
s && (ee.placeholder = s);
|
|
3285
3260
|
let O = !1;
|
|
@@ -3290,17 +3265,17 @@ function Tn({
|
|
|
3290
3265
|
{
|
|
3291
3266
|
type: "tel",
|
|
3292
3267
|
placeholder: s,
|
|
3293
|
-
onChange:
|
|
3268
|
+
onChange: M,
|
|
3294
3269
|
inputMode: "numeric",
|
|
3295
|
-
onKeyDown: (
|
|
3296
|
-
onFocus:
|
|
3297
|
-
onBlur: (
|
|
3270
|
+
onKeyDown: (B) => O = B.key === "Backspace",
|
|
3271
|
+
onFocus: M,
|
|
3272
|
+
onBlur: (B) => B.target.value === m && (B.target.value = "")
|
|
3298
3273
|
}
|
|
3299
3274
|
) }),
|
|
3300
3275
|
i ? /* @__PURE__ */ r.jsx("em", { children: i }) : ""
|
|
3301
3276
|
] }) });
|
|
3302
3277
|
}
|
|
3303
|
-
function
|
|
3278
|
+
function Mn({
|
|
3304
3279
|
onValue: e,
|
|
3305
3280
|
label: t,
|
|
3306
3281
|
value: n,
|
|
@@ -3320,7 +3295,7 @@ function Rn({
|
|
|
3320
3295
|
/* @__PURE__ */ r.jsx("dd", { ...f, onClick: d })
|
|
3321
3296
|
] });
|
|
3322
3297
|
}
|
|
3323
|
-
const
|
|
3298
|
+
const Rn = ({ onValue: e, value: t, name: n, item: s }) => {
|
|
3324
3299
|
const [a, i] = y.useState(!!t);
|
|
3325
3300
|
y.useEffect(() => {
|
|
3326
3301
|
i(!!t);
|
|
@@ -3338,7 +3313,7 @@ const Bn = ({ onValue: e, value: t, name: n, item: s }) => {
|
|
|
3338
3313
|
}
|
|
3339
3314
|
);
|
|
3340
3315
|
};
|
|
3341
|
-
function
|
|
3316
|
+
function Tn({
|
|
3342
3317
|
value: e,
|
|
3343
3318
|
onValue: t,
|
|
3344
3319
|
name: n,
|
|
@@ -3353,7 +3328,7 @@ function Nn({
|
|
|
3353
3328
|
view: g,
|
|
3354
3329
|
onBlur: x,
|
|
3355
3330
|
onSave: h,
|
|
3356
|
-
className:
|
|
3331
|
+
className: j = ""
|
|
3357
3332
|
}) {
|
|
3358
3333
|
const [C, m] = y.useState(
|
|
3359
3334
|
e !== void 0 ? e.split(",") : []
|
|
@@ -3363,23 +3338,22 @@ function Nn({
|
|
|
3363
3338
|
}, [e]);
|
|
3364
3339
|
let p = () => {
|
|
3365
3340
|
m([...C, ""]);
|
|
3366
|
-
},
|
|
3341
|
+
}, b = (O) => {
|
|
3367
3342
|
C.splice(O, 1), C.length === 0 && C.push(""), m([...C]), x !== void 0 && x({ value: C.join(","), name: n });
|
|
3368
3343
|
}, S = !!(l && (e === "" || e === void 0)), E = (O) => {
|
|
3369
3344
|
};
|
|
3370
|
-
if (!(c && d) && !f || !(c && d) && S)
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
M
|
|
3374
|
-
|
|
3375
|
-
be.Blur(O), h && h({ value: O.target.textContent, name: n });
|
|
3345
|
+
if (!(c && d) && !f || !(c && d) && S) return "";
|
|
3346
|
+
const I = {};
|
|
3347
|
+
I.field = "group", j && (I.className = j);
|
|
3348
|
+
const M = (O) => {
|
|
3349
|
+
je.Blur(O), h && h({ value: O.target.textContent, name: n });
|
|
3376
3350
|
};
|
|
3377
|
-
let P = (O,
|
|
3378
|
-
C[
|
|
3351
|
+
let P = (O, B) => {
|
|
3352
|
+
C[B] = O.target.textContent, t !== void 0 && t({ value: C.join(","), name: n });
|
|
3379
3353
|
}, ee = (O) => {
|
|
3380
3354
|
O.key === "Enter" && O.preventDefault();
|
|
3381
3355
|
};
|
|
3382
|
-
return /* @__PURE__ */ r.jsxs("dl", { ...
|
|
3356
|
+
return /* @__PURE__ */ r.jsxs("dl", { ...I, children: [
|
|
3383
3357
|
/* @__PURE__ */ r.jsxs("dt", { children: [
|
|
3384
3358
|
a,
|
|
3385
3359
|
/* @__PURE__ */ r.jsx("i", { onClick: p, children: /* @__PURE__ */ r.jsxs(
|
|
@@ -3399,27 +3373,27 @@ function Nn({
|
|
|
3399
3373
|
}
|
|
3400
3374
|
) })
|
|
3401
3375
|
] }),
|
|
3402
|
-
/* @__PURE__ */ r.jsx("dd", { children: C.map((O,
|
|
3376
|
+
/* @__PURE__ */ r.jsx("dd", { children: C.map((O, B) => /* @__PURE__ */ r.jsxs("li", { className: "field_group_item", children: [
|
|
3403
3377
|
/* @__PURE__ */ r.jsx(
|
|
3404
3378
|
"span",
|
|
3405
3379
|
{
|
|
3406
|
-
onInput: (
|
|
3380
|
+
onInput: (J) => P(J, B),
|
|
3407
3381
|
edit: "true",
|
|
3408
3382
|
name: n,
|
|
3409
3383
|
placeholder: s,
|
|
3410
3384
|
onPaste: E,
|
|
3411
3385
|
contentEditable: !0,
|
|
3412
3386
|
onKeyDown: ee,
|
|
3413
|
-
onBlur:
|
|
3387
|
+
onBlur: M,
|
|
3414
3388
|
suppressContentEditableWarning: !0,
|
|
3415
|
-
children: C[
|
|
3389
|
+
children: C[B]
|
|
3416
3390
|
}
|
|
3417
3391
|
),
|
|
3418
3392
|
/* @__PURE__ */ r.jsx(
|
|
3419
3393
|
"i",
|
|
3420
3394
|
{
|
|
3421
3395
|
onClick: () => {
|
|
3422
|
-
|
|
3396
|
+
b(B);
|
|
3423
3397
|
},
|
|
3424
3398
|
children: /* @__PURE__ */ r.jsxs(
|
|
3425
3399
|
"svg",
|
|
@@ -3439,12 +3413,12 @@ function Nn({
|
|
|
3439
3413
|
)
|
|
3440
3414
|
}
|
|
3441
3415
|
)
|
|
3442
|
-
] },
|
|
3416
|
+
] }, B)) }),
|
|
3443
3417
|
i ? /* @__PURE__ */ r.jsx("em", { children: i }) : ""
|
|
3444
3418
|
] });
|
|
3445
3419
|
}
|
|
3446
|
-
const
|
|
3447
|
-
function
|
|
3420
|
+
const ii = (e) => (e = e !== void 0 && e !== "" ? e.split(",") : [], e.reduce((t, n) => (t[n] = !0, t), {}));
|
|
3421
|
+
function $n({
|
|
3448
3422
|
value: e,
|
|
3449
3423
|
onValue: t,
|
|
3450
3424
|
name: n,
|
|
@@ -3459,19 +3433,18 @@ function In({
|
|
|
3459
3433
|
view: g,
|
|
3460
3434
|
modal: x,
|
|
3461
3435
|
module: h,
|
|
3462
|
-
options:
|
|
3436
|
+
options: j,
|
|
3463
3437
|
className: C
|
|
3464
3438
|
}) {
|
|
3465
|
-
const [m, p] = y.useState(
|
|
3466
|
-
if (!(c && u) || !x)
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
_n.Open(R[1], {
|
|
3439
|
+
const [m, p] = y.useState(ii(e)), b = (I) => {
|
|
3440
|
+
if (!(c && u) || !x) return;
|
|
3441
|
+
let M = x.split(".");
|
|
3442
|
+
yn.Open(M[1], {
|
|
3470
3443
|
callback: (P) => {
|
|
3471
3444
|
t && t({ value: P, name: n }), p(P);
|
|
3472
3445
|
},
|
|
3473
3446
|
onValue: t,
|
|
3474
|
-
options:
|
|
3447
|
+
options: j,
|
|
3475
3448
|
name: n,
|
|
3476
3449
|
value: m
|
|
3477
3450
|
});
|
|
@@ -3481,7 +3454,7 @@ function In({
|
|
|
3481
3454
|
return s && (E.placeholder = s), l ? /* @__PURE__ */ r.jsx(r.Fragment, {}) : /* @__PURE__ */ r.jsxs("dl", { ...S, children: [
|
|
3482
3455
|
/* @__PURE__ */ r.jsxs("dt", { children: [
|
|
3483
3456
|
a,
|
|
3484
|
-
/* @__PURE__ */ r.jsx("i", { onClick:
|
|
3457
|
+
/* @__PURE__ */ r.jsx("i", { onClick: b, children: /* @__PURE__ */ r.jsxs(
|
|
3485
3458
|
"svg",
|
|
3486
3459
|
{
|
|
3487
3460
|
width: "20",
|
|
@@ -3506,51 +3479,50 @@ function In({
|
|
|
3506
3479
|
onClick: open,
|
|
3507
3480
|
edit: (c && u) + "",
|
|
3508
3481
|
"data-after": f,
|
|
3509
|
-
children: Object.keys(m).map((
|
|
3510
|
-
var
|
|
3511
|
-
return /* @__PURE__ */ r.jsx("div", { className: "field_group_item", children: (
|
|
3482
|
+
children: Object.keys(m).map((I) => {
|
|
3483
|
+
var M;
|
|
3484
|
+
return /* @__PURE__ */ r.jsx("div", { className: "field_group_item", children: (M = j[I]) == null ? void 0 : M.label }, I);
|
|
3512
3485
|
})
|
|
3513
3486
|
}
|
|
3514
3487
|
),
|
|
3515
3488
|
i && /* @__PURE__ */ r.jsx("em", { children: i })
|
|
3516
3489
|
] });
|
|
3517
3490
|
}
|
|
3518
|
-
const
|
|
3491
|
+
const oi = {
|
|
3519
3492
|
Color: Cn,
|
|
3520
|
-
Date:
|
|
3521
|
-
Code:
|
|
3522
|
-
Check:
|
|
3493
|
+
Date: ft,
|
|
3494
|
+
Code: bn,
|
|
3495
|
+
Check: Mn,
|
|
3523
3496
|
Switch: gn,
|
|
3524
3497
|
Button: pn,
|
|
3525
3498
|
Message: xn,
|
|
3526
3499
|
Generator: vn,
|
|
3527
|
-
Captcha:
|
|
3528
|
-
Modal:
|
|
3529
|
-
Money:
|
|
3530
|
-
Month:
|
|
3500
|
+
Captcha: jn,
|
|
3501
|
+
Modal: ht,
|
|
3502
|
+
Money: mt,
|
|
3503
|
+
Month: _n,
|
|
3531
3504
|
Notes: wn,
|
|
3532
|
-
Number:
|
|
3505
|
+
Number: gt,
|
|
3533
3506
|
Password: kn,
|
|
3534
|
-
Phone:
|
|
3507
|
+
Phone: pt,
|
|
3535
3508
|
Search: Sn,
|
|
3536
|
-
Select:
|
|
3537
|
-
Set:
|
|
3509
|
+
Select: xt,
|
|
3510
|
+
Set: at,
|
|
3538
3511
|
Textarea: En,
|
|
3539
|
-
Time:
|
|
3512
|
+
Time: Dn,
|
|
3540
3513
|
Users: jt,
|
|
3541
|
-
String:
|
|
3542
|
-
Toogle:
|
|
3543
|
-
Group:
|
|
3544
|
-
Options:
|
|
3545
|
-
},
|
|
3546
|
-
debug:
|
|
3547
|
-
b:
|
|
3548
|
-
o:
|
|
3549
|
-
mb:
|
|
3550
|
-
tm:
|
|
3551
|
-
ta:
|
|
3552
|
-
|
|
3553
|
-
}, T = window.Telegram.WebApp, se = { is: !1, MainButton: {}, BackButton: {} };
|
|
3514
|
+
String: vt,
|
|
3515
|
+
Toogle: Rn,
|
|
3516
|
+
Group: Tn,
|
|
3517
|
+
Options: $n
|
|
3518
|
+
}, li = "_debug_ug20b_34", ci = "_b_ug20b_46", ui = "_o_ug20b_50", di = "_mb_ug20b_55", fi = "_tm_ug20b_66", hi = "_ta_ug20b_133", me = {
|
|
3519
|
+
debug: li,
|
|
3520
|
+
b: ci,
|
|
3521
|
+
o: ui,
|
|
3522
|
+
mb: di,
|
|
3523
|
+
tm: fi,
|
|
3524
|
+
ta: hi
|
|
3525
|
+
}, D = window.Telegram.WebApp, se = { is: !1, MainButton: {}, BackButton: {} };
|
|
3554
3526
|
let pe = {};
|
|
3555
3527
|
pe.dark = {
|
|
3556
3528
|
"--tg-theme-bg-color": "#212121",
|
|
@@ -3585,35 +3557,35 @@ pe.users = {
|
|
|
3585
3557
|
"--tg-theme-button-text-color": "#000000",
|
|
3586
3558
|
"--tg-theme-secondary-bg-color": "#000000"
|
|
3587
3559
|
};
|
|
3588
|
-
|
|
3560
|
+
D.getUser = () => {
|
|
3589
3561
|
var e;
|
|
3590
|
-
return ((e =
|
|
3562
|
+
return ((e = D.initDataUnsafe) == null ? void 0 : e.user) === void 0 ? {} : D.initDataUnsafe;
|
|
3591
3563
|
};
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
se.is ? se.MainButton.set(e) : (
|
|
3595
|
-
|
|
3596
|
-
}),
|
|
3564
|
+
D.MainButton.callback = [];
|
|
3565
|
+
D.MainButton.set = (e) => {
|
|
3566
|
+
se.is ? se.MainButton.set(e) : (D.MainButton.callback.forEach((t) => {
|
|
3567
|
+
D.MainButton.offClick(t);
|
|
3568
|
+
}), D.MainButton.callback = [], typeof e == "boolean" ? D.MainButton.isVisible = !1 : (D.MainButton.text = e.text, e.color && (D.MainButton.color = e.color), e.textColor && (D.MainButton.textColor = e.textColor), D.MainButton.isVisible = !0, D.MainButton.isActive = e.isActive === void 0 ? !0 : e.isActive, D.MainButton.callback.push(() => {
|
|
3597
3569
|
var t;
|
|
3598
3570
|
e.page === void 0 ? (t = e.callback) == null || t.call(e) : ce.setPage(e.page);
|
|
3599
|
-
}),
|
|
3571
|
+
}), D.MainButton.onClick(D.MainButton.callback[0])));
|
|
3600
3572
|
};
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
e === !1 ? (
|
|
3573
|
+
D.BackButton.state = [!1];
|
|
3574
|
+
D.BackButton.listen = [];
|
|
3575
|
+
D.BackButton.router = (e) => {
|
|
3576
|
+
e === !1 ? (D.BackButton.isVisible = !1, D.BackButton.offClick(D.BackButton.listen[0]), D.BackButton.listen.shift(), D.BackButton.state.length !== 1 && D.BackButton.state.pop()) : (D.BackButton.isVisible = !0, D.BackButton.offClick(D.BackButton.listen[0]), D.BackButton.listen.shift(), D.BackButton.listen.push(() => {
|
|
3605
3577
|
var n;
|
|
3606
|
-
let t =
|
|
3578
|
+
let t = D.BackButton.state.pop();
|
|
3607
3579
|
t.page !== void 0 ? ce.setPage(t.page) : (n = t.callback) == null || n.call(t);
|
|
3608
|
-
}),
|
|
3580
|
+
}), D.BackButton.onClick(D.BackButton.listen[0]));
|
|
3609
3581
|
};
|
|
3610
|
-
|
|
3611
|
-
se.is ? se.BackButton.set(e) : (
|
|
3582
|
+
D.BackButton.set = (e) => {
|
|
3583
|
+
se.is ? se.BackButton.set(e) : (D.BackButton.state.push(e), D.BackButton.router(e));
|
|
3612
3584
|
};
|
|
3613
|
-
|
|
3614
|
-
t !== void 0 ? (
|
|
3585
|
+
D.Notice = (e, t) => {
|
|
3586
|
+
t !== void 0 ? (st.Send({ type: e, text: t }), se.is || D.HapticFeedback.notificationOccurred(e)) : (st.Send(e), se.is || D.HapticFeedback.notificationOccurred(e.type));
|
|
3615
3587
|
};
|
|
3616
|
-
|
|
3588
|
+
D.Init = ({ dev: e }) => {
|
|
3617
3589
|
if (e) {
|
|
3618
3590
|
let [t, n] = y.useState(!1), [s, a] = y.useState(!1), [i, l] = y.useState("dark"), [c, d] = y.useState(!1), [u, f] = y.useState(!1);
|
|
3619
3591
|
se.is = !0, se.MainButton.set = n, se.BackButton.set = a, y.useEffect(() => {
|
|
@@ -3624,8 +3596,8 @@ T.Init = ({ dev: e }) => {
|
|
|
3624
3596
|
);
|
|
3625
3597
|
}, []);
|
|
3626
3598
|
let g = (h) => {
|
|
3627
|
-
for (let
|
|
3628
|
-
document.documentElement.style.setProperty(
|
|
3599
|
+
for (let j in pe[h])
|
|
3600
|
+
document.documentElement.style.setProperty(j, pe[h][j]);
|
|
3629
3601
|
l(h), d(!1);
|
|
3630
3602
|
}, x = () => {
|
|
3631
3603
|
d(!1), f(!0);
|
|
@@ -3696,12 +3668,12 @@ T.Init = ({ dev: e }) => {
|
|
|
3696
3668
|
/* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx("button", { onClick: () => d(!c), children: "Closed" }) })
|
|
3697
3669
|
] })
|
|
3698
3670
|
] }) : "",
|
|
3699
|
-
u ? /* @__PURE__ */ r.jsx(
|
|
3671
|
+
u ? /* @__PURE__ */ r.jsx(mi, { setAuthorization: f }) : ""
|
|
3700
3672
|
] });
|
|
3701
3673
|
} else
|
|
3702
3674
|
return /* @__PURE__ */ r.jsx(r.Fragment, {});
|
|
3703
3675
|
};
|
|
3704
|
-
const
|
|
3676
|
+
const mi = ({ setAuthorization: e }) => {
|
|
3705
3677
|
let t = {}, n = (a) => {
|
|
3706
3678
|
t = a.value;
|
|
3707
3679
|
}, s = (a) => {
|
|
@@ -3709,7 +3681,7 @@ const xi = ({ setAuthorization: e }) => {
|
|
|
3709
3681
|
};
|
|
3710
3682
|
return /* @__PURE__ */ r.jsx("div", { className: me.ta, children: /* @__PURE__ */ r.jsxs("div", { className: "--body", children: [
|
|
3711
3683
|
/* @__PURE__ */ r.jsx("fieldset", { children: /* @__PURE__ */ r.jsx(
|
|
3712
|
-
|
|
3684
|
+
oi.Notes,
|
|
3713
3685
|
{
|
|
3714
3686
|
label: "Data JSON",
|
|
3715
3687
|
name: "description",
|
|
@@ -3719,17 +3691,17 @@ const xi = ({ setAuthorization: e }) => {
|
|
|
3719
3691
|
) }),
|
|
3720
3692
|
/* @__PURE__ */ r.jsx("div", { onClick: s, children: " Сщхранить " })
|
|
3721
3693
|
] }) });
|
|
3722
|
-
},
|
|
3694
|
+
}, pl = ({ children: e, config: t }) => (window.location.pathname === "/clear" && (window.history.pushState({}, "", "/"), Z()), $.New(t.crypto), t.defaultModule && gr(t.defaultModule), xr(
|
|
3723
3695
|
/* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
3724
|
-
/* @__PURE__ */ r.jsx(
|
|
3725
|
-
/* @__PURE__ */ r.jsx(
|
|
3696
|
+
/* @__PURE__ */ r.jsx(D.Init, { dev: t.dev }),
|
|
3697
|
+
/* @__PURE__ */ r.jsx(la, { config: t.modal }),
|
|
3726
3698
|
/* @__PURE__ */ r.jsx(Cs, {}),
|
|
3727
|
-
/* @__PURE__ */ r.jsx(
|
|
3728
|
-
/* @__PURE__ */ r.jsx(
|
|
3699
|
+
/* @__PURE__ */ r.jsx(Ms, {}),
|
|
3700
|
+
/* @__PURE__ */ r.jsx(Ca, {}),
|
|
3729
3701
|
e
|
|
3730
3702
|
] })
|
|
3731
|
-
)),
|
|
3732
|
-
|
|
3703
|
+
)), gi = ({ list: e, onClick: t, active: n, size: s, view: a }) => /* @__PURE__ */ r.jsx("nav", { children: /* @__PURE__ */ r.jsx("ul", { className: [s, a].join(" "), children: e.map((i) => /* @__PURE__ */ r.jsx(
|
|
3704
|
+
pi,
|
|
3733
3705
|
{
|
|
3734
3706
|
onClick: t,
|
|
3735
3707
|
active: n,
|
|
@@ -3737,9 +3709,9 @@ const xi = ({ setAuthorization: e }) => {
|
|
|
3737
3709
|
link: i.link
|
|
3738
3710
|
},
|
|
3739
3711
|
i.link
|
|
3740
|
-
)) }) }),
|
|
3741
|
-
|
|
3742
|
-
const
|
|
3712
|
+
)) }) }), pi = ({ onClick: e, label: t, link: n, active: s }) => /* @__PURE__ */ r.jsx("li", { "tabs-active": String(s === n), onClick: () => e(n), children: t });
|
|
3713
|
+
gi.defaultProps = { size: "M", view: "H" };
|
|
3714
|
+
const xi = ({
|
|
3743
3715
|
title: e = "",
|
|
3744
3716
|
button: t,
|
|
3745
3717
|
description: n = "",
|
|
@@ -3759,9 +3731,9 @@ const ji = ({
|
|
|
3759
3731
|
] }),
|
|
3760
3732
|
/* @__PURE__ */ r.jsx("ul", { children: s }),
|
|
3761
3733
|
n && /* @__PURE__ */ r.jsx("article", { children: n })
|
|
3762
|
-
] }),
|
|
3763
|
-
setting:
|
|
3764
|
-
},
|
|
3734
|
+
] }), vi = "_setting_dva4m_2", ji = {
|
|
3735
|
+
setting: vi
|
|
3736
|
+
}, bi = ({ children: e }) => /* @__PURE__ */ r.jsx("div", { className: ji.setting, children: e }), Ci = ({ label: e, children: t }) => {
|
|
3765
3737
|
let [n, s] = y.useState(!1);
|
|
3766
3738
|
return /* @__PURE__ */ r.jsxs("li", { "data-item": "accordion", children: [
|
|
3767
3739
|
/* @__PURE__ */ r.jsxs("dl", { onClick: () => s(!n), children: [
|
|
@@ -3770,10 +3742,10 @@ const ji = ({
|
|
|
3770
3742
|
] }),
|
|
3771
3743
|
n && /* @__PURE__ */ r.jsx("div", { children: t })
|
|
3772
3744
|
] });
|
|
3773
|
-
},
|
|
3745
|
+
}, yi = ({ label: e, onClick: t, button: n }) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsxs("dl", { children: [
|
|
3774
3746
|
/* @__PURE__ */ r.jsx("dt", { children: e }),
|
|
3775
3747
|
/* @__PURE__ */ r.jsx("dd", { role: "button", onClick: () => t(), children: n })
|
|
3776
|
-
] }) }),
|
|
3748
|
+
] }) }), _i = ({ active: e, onClick: t }) => (e = typeof e == "number" ? !!e : e, /* @__PURE__ */ r.jsx(
|
|
3777
3749
|
"div",
|
|
3778
3750
|
{
|
|
3779
3751
|
role: "switch",
|
|
@@ -3782,25 +3754,25 @@ const ji = ({
|
|
|
3782
3754
|
},
|
|
3783
3755
|
"aria-checked": e ? "true" : "false"
|
|
3784
3756
|
}
|
|
3785
|
-
)),
|
|
3757
|
+
)), wi = { Switch: _i }, ki = ({ label: e, onClick: t, active: n }) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsxs("dl", { children: [
|
|
3786
3758
|
/* @__PURE__ */ r.jsx("dt", { children: e }),
|
|
3787
|
-
/* @__PURE__ */ r.jsx("dd", { children: /* @__PURE__ */ r.jsx(
|
|
3788
|
-
] }) }),
|
|
3759
|
+
/* @__PURE__ */ r.jsx("dd", { children: /* @__PURE__ */ r.jsx(wi.Switch, { onClick: t, active: n }) })
|
|
3760
|
+
] }) }), Si = ({ label: e, active: t, options: n }) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsxs("dl", { children: [
|
|
3789
3761
|
/* @__PURE__ */ r.jsx("dt", { children: e }),
|
|
3790
3762
|
/* @__PURE__ */ r.jsx("dd", { role: "info", children: t })
|
|
3791
|
-
] }) }),
|
|
3763
|
+
] }) }), Ei = ({ label: e, info: t }) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsxs("dl", { children: [
|
|
3792
3764
|
/* @__PURE__ */ r.jsx("dt", { children: e }),
|
|
3793
3765
|
/* @__PURE__ */ r.jsx("dd", { role: "info", children: t })
|
|
3794
|
-
] }) }),
|
|
3766
|
+
] }) }), Di = ({ label: e, children: t }) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsxs("dl", { children: [
|
|
3795
3767
|
/* @__PURE__ */ r.jsx("dt", { children: e }),
|
|
3796
3768
|
/* @__PURE__ */ r.jsx("dd", { children: t })
|
|
3797
|
-
] }) }),
|
|
3769
|
+
] }) }), Mi = ({ label: e, children: t }) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsxs("dl", { children: [
|
|
3798
3770
|
/* @__PURE__ */ r.jsx("dt", { children: e }),
|
|
3799
3771
|
/* @__PURE__ */ r.jsx("dd", { children: t })
|
|
3800
|
-
] }) }),
|
|
3801
|
-
function
|
|
3772
|
+
] }) }), Ri = { Accordion: Ci, Button: yi, Switch: ki, Info: Ei, Select: Si, Component: Di, Node: Mi };
|
|
3773
|
+
function Bn({ list: e, onClick: t, active: n, size: s, view: a }) {
|
|
3802
3774
|
return /* @__PURE__ */ r.jsx("nav", { children: /* @__PURE__ */ r.jsx("ul", { className: [s, a].join(" "), children: e.map((i) => /* @__PURE__ */ r.jsx(
|
|
3803
|
-
|
|
3775
|
+
Ti,
|
|
3804
3776
|
{
|
|
3805
3777
|
onClick: t,
|
|
3806
3778
|
active: n,
|
|
@@ -3810,10 +3782,10 @@ function Dn({ list: e, onClick: t, active: n, size: s, view: a }) {
|
|
|
3810
3782
|
i.link
|
|
3811
3783
|
)) }) });
|
|
3812
3784
|
}
|
|
3813
|
-
const
|
|
3814
|
-
|
|
3815
|
-
const
|
|
3816
|
-
function
|
|
3785
|
+
const Ti = ({ onClick: e, label: t, link: n, active: s }) => /* @__PURE__ */ r.jsx("li", { "tabs-active": String(s === n), onClick: () => e(n), children: t });
|
|
3786
|
+
Bn.defaultProps = { size: "M", view: "H" };
|
|
3787
|
+
const xl = { Section: xi, Main: bi, Item: Ri, Tabs: Bn };
|
|
3788
|
+
function In({ text: e, type: t, button: n }) {
|
|
3817
3789
|
let [s, a] = y.useState(!1), i = { active: t };
|
|
3818
3790
|
const l = () => {
|
|
3819
3791
|
if (n) {
|
|
@@ -3823,7 +3795,7 @@ function Mn({ text: e, type: t, button: n }) {
|
|
|
3823
3795
|
return s ? void 0 : (a(!0), n.onSend(a));
|
|
3824
3796
|
}
|
|
3825
3797
|
};
|
|
3826
|
-
return /* @__PURE__ */ r.jsxs("div", { className:
|
|
3798
|
+
return /* @__PURE__ */ r.jsxs("div", { className: nt.al, ...i, children: [
|
|
3827
3799
|
/* @__PURE__ */ r.jsx(
|
|
3828
3800
|
"svg",
|
|
3829
3801
|
{
|
|
@@ -3845,55 +3817,54 @@ function Mn({ text: e, type: t, button: n }) {
|
|
|
3845
3817
|
n && /* @__PURE__ */ r.jsx("button", { onClick: l, children: n.label })
|
|
3846
3818
|
] });
|
|
3847
3819
|
}
|
|
3848
|
-
const $i = "_h_1usnu_1",
|
|
3820
|
+
const $i = "_h_1usnu_1", Bi = "_g_1usnu_11", Ii = "_hr_1usnu_16", Ni = "_hl_1usnu_28", Fi = "_t_1usnu_40", Pi = "_s_1usnu_60", Oi = "_u_1usnu_69", Li = "_o_1usnu_76", Ai = "_l_1usnu_105", Wi = "_hh_1usnu_115", Ui = "_c_1usnu_128", zi = "_m_1usnu_180", qi = "_ul_1usnu_196", Hi = "_f_1usnu_226", Y = {
|
|
3849
3821
|
h: $i,
|
|
3850
|
-
g:
|
|
3851
|
-
hr:
|
|
3852
|
-
hl:
|
|
3853
|
-
t:
|
|
3854
|
-
s:
|
|
3855
|
-
u:
|
|
3856
|
-
o:
|
|
3857
|
-
l:
|
|
3858
|
-
hh:
|
|
3859
|
-
c:
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
3866
|
-
|
|
3867
|
-
n && /* @__PURE__ */ r.jsx("div", { className: G.hr, children: n }),
|
|
3822
|
+
g: Bi,
|
|
3823
|
+
hr: Ii,
|
|
3824
|
+
hl: Ni,
|
|
3825
|
+
t: Fi,
|
|
3826
|
+
s: Pi,
|
|
3827
|
+
u: Oi,
|
|
3828
|
+
o: Li,
|
|
3829
|
+
l: Ai,
|
|
3830
|
+
hh: Wi,
|
|
3831
|
+
c: Ui,
|
|
3832
|
+
m: zi,
|
|
3833
|
+
ul: qi,
|
|
3834
|
+
f: Hi
|
|
3835
|
+
}, Jt = ({ title: e, left: t, right: n, children: s }) => /* @__PURE__ */ r.jsxs("div", { className: Y.h, children: [
|
|
3836
|
+
/* @__PURE__ */ r.jsx("div", { className: Y.t, children: e }),
|
|
3837
|
+
t && /* @__PURE__ */ r.jsx("div", { className: Y.hl, children: t }),
|
|
3838
|
+
n && /* @__PURE__ */ r.jsx("div", { className: Y.hr, children: n }),
|
|
3868
3839
|
s
|
|
3869
|
-
] }),
|
|
3840
|
+
] }), Gt = ({ children: e, ...t }) => /* @__PURE__ */ r.jsx("div", { className: Y.l, children: e }), Xt = ({ children: e }) => /* @__PURE__ */ r.jsx("div", { className: Y.s, children: e }), Qt = ({ children: e, edit: t }) => {
|
|
3870
3841
|
const n = {};
|
|
3871
|
-
return t && (n.edit = ""), /* @__PURE__ */ r.jsx("div", { ...n, className:
|
|
3842
|
+
return t && (n.edit = ""), /* @__PURE__ */ r.jsx("div", { ...n, className: Y.f, children: e });
|
|
3872
3843
|
};
|
|
3873
3844
|
function Vt({ children: e }) {
|
|
3874
|
-
return /* @__PURE__ */ r.jsx("div", { className:
|
|
3845
|
+
return /* @__PURE__ */ r.jsx("div", { className: Y.g, children: e });
|
|
3875
3846
|
}
|
|
3876
|
-
const
|
|
3877
|
-
n && /* @__PURE__ */ r.jsx("div", { className:
|
|
3847
|
+
const Ki = ({ children: e, className: t, title: n }) => /* @__PURE__ */ r.jsxs("div", { className: [Y.o, t].join(" "), children: [
|
|
3848
|
+
n && /* @__PURE__ */ r.jsx("div", { className: Y.hh, children: n }),
|
|
3878
3849
|
e
|
|
3879
|
-
] }),
|
|
3880
|
-
Header:
|
|
3881
|
-
Section:
|
|
3850
|
+
] }), Yi = ({ children: e }) => /* @__PURE__ */ r.jsx("div", { className: Y.u, children: e }), Zi = ({ children: e }) => /* @__PURE__ */ r.jsx("div", { className: Y.c, children: e }), Ji = ({ children: e }) => /* @__PURE__ */ r.jsx("div", { className: Y.m, children: e }), vl = {
|
|
3851
|
+
Header: Jt,
|
|
3852
|
+
Section: Xt,
|
|
3882
3853
|
Group: Vt,
|
|
3883
3854
|
Form: Qt,
|
|
3884
|
-
List:
|
|
3885
|
-
A:
|
|
3886
|
-
U:
|
|
3855
|
+
List: Gt,
|
|
3856
|
+
A: In,
|
|
3857
|
+
U: Yi,
|
|
3887
3858
|
G: Vt,
|
|
3888
|
-
C:
|
|
3889
|
-
L:
|
|
3890
|
-
O:
|
|
3891
|
-
S:
|
|
3892
|
-
H:
|
|
3893
|
-
M:
|
|
3859
|
+
C: Zi,
|
|
3860
|
+
L: Gt,
|
|
3861
|
+
O: Ki,
|
|
3862
|
+
S: Xt,
|
|
3863
|
+
H: Jt,
|
|
3864
|
+
M: Ji,
|
|
3894
3865
|
F: Qt
|
|
3895
|
-
},
|
|
3896
|
-
function
|
|
3866
|
+
}, jl = { Send: Ts, Line: In };
|
|
3867
|
+
function Gi() {
|
|
3897
3868
|
return /* @__PURE__ */ r.jsx("svg", { viewBox: "0 0 462.86 359.96", children: /* @__PURE__ */ r.jsx(
|
|
3898
3869
|
"path",
|
|
3899
3870
|
{
|
|
@@ -3902,15 +3873,15 @@ function eo() {
|
|
|
3902
3873
|
}
|
|
3903
3874
|
) });
|
|
3904
3875
|
}
|
|
3905
|
-
const
|
|
3906
|
-
function
|
|
3907
|
-
|
|
3876
|
+
const Xi = {};
|
|
3877
|
+
function Qi(e) {
|
|
3878
|
+
Xi.add(e);
|
|
3908
3879
|
}
|
|
3909
|
-
function
|
|
3880
|
+
function Vi({ color: e, size: t, name: n }) {
|
|
3910
3881
|
return /* @__PURE__ */ r.jsx("svg", { width: t, height: t, color: e, children: /* @__PURE__ */ r.jsx("use", { href: `#${n}` }) });
|
|
3911
3882
|
}
|
|
3912
|
-
const
|
|
3913
|
-
function
|
|
3883
|
+
const bl = { Logo: Gi, Sprite: Qi, Symbol: Vi };
|
|
3884
|
+
function eo() {
|
|
3914
3885
|
return /* @__PURE__ */ r.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
|
|
3915
3886
|
/* @__PURE__ */ r.jsx(
|
|
3916
3887
|
"path",
|
|
@@ -3945,7 +3916,7 @@ function so() {
|
|
|
3945
3916
|
)
|
|
3946
3917
|
] });
|
|
3947
3918
|
}
|
|
3948
|
-
function
|
|
3919
|
+
function to() {
|
|
3949
3920
|
return /* @__PURE__ */ r.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
|
|
3950
3921
|
/* @__PURE__ */ r.jsx(
|
|
3951
3922
|
"path",
|
|
@@ -3974,7 +3945,7 @@ function ao() {
|
|
|
3974
3945
|
)
|
|
3975
3946
|
] });
|
|
3976
3947
|
}
|
|
3977
|
-
function
|
|
3948
|
+
function no() {
|
|
3978
3949
|
return /* @__PURE__ */ r.jsx("svg", { viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ r.jsx(
|
|
3979
3950
|
"path",
|
|
3980
3951
|
{
|
|
@@ -3987,11 +3958,11 @@ function io() {
|
|
|
3987
3958
|
}
|
|
3988
3959
|
) });
|
|
3989
3960
|
}
|
|
3990
|
-
const
|
|
3991
|
-
n:
|
|
3961
|
+
const ro = "_n_euuvm_1", so = {
|
|
3962
|
+
n: ro
|
|
3992
3963
|
};
|
|
3993
|
-
let
|
|
3994
|
-
const
|
|
3964
|
+
let Be = {}, Me = [];
|
|
3965
|
+
const ao = (e, t) => {
|
|
3995
3966
|
switch (t.type) {
|
|
3996
3967
|
case "open":
|
|
3997
3968
|
return {
|
|
@@ -4032,7 +4003,7 @@ const co = (e, t) => {
|
|
|
4032
4003
|
s = { ...e.take, ...s }, e.active = !1;
|
|
4033
4004
|
for (let a in s)
|
|
4034
4005
|
s[a] !== "999" && (e.active = !0);
|
|
4035
|
-
return
|
|
4006
|
+
return Be.get(s, e.active), {
|
|
4036
4007
|
...e,
|
|
4037
4008
|
take: s,
|
|
4038
4009
|
active: e.active
|
|
@@ -4043,35 +4014,35 @@ const co = (e, t) => {
|
|
|
4043
4014
|
throw new Error();
|
|
4044
4015
|
}
|
|
4045
4016
|
};
|
|
4046
|
-
function
|
|
4047
|
-
|
|
4017
|
+
function io(e) {
|
|
4018
|
+
Be.fn({ action: "add", data: e });
|
|
4048
4019
|
}
|
|
4049
|
-
function
|
|
4050
|
-
|
|
4020
|
+
function oo(e) {
|
|
4021
|
+
Be.fn({ action: "add", data: e });
|
|
4051
4022
|
}
|
|
4052
|
-
function
|
|
4053
|
-
|
|
4023
|
+
function lo(e) {
|
|
4024
|
+
Be.fn({ action: "new", data: e });
|
|
4054
4025
|
}
|
|
4055
|
-
function
|
|
4056
|
-
|
|
4026
|
+
function co(e) {
|
|
4027
|
+
Be.fn = e;
|
|
4057
4028
|
}
|
|
4058
|
-
function
|
|
4059
|
-
const [e, t] = y.useReducer(
|
|
4029
|
+
function uo() {
|
|
4030
|
+
const [e, t] = y.useReducer(ao, {
|
|
4060
4031
|
open: !1,
|
|
4061
4032
|
active: !1,
|
|
4062
4033
|
news: [],
|
|
4063
4034
|
take: {}
|
|
4064
4035
|
});
|
|
4065
|
-
|
|
4066
|
-
}),
|
|
4036
|
+
it.useListener("bell", async (s) => {
|
|
4037
|
+
}), co(async (s) => {
|
|
4067
4038
|
switch (s.action) {
|
|
4068
4039
|
case "add":
|
|
4069
|
-
|
|
4040
|
+
Me.push(s.data);
|
|
4070
4041
|
break;
|
|
4071
4042
|
}
|
|
4072
4043
|
}), y.useEffect(() => {
|
|
4073
4044
|
(async () => {
|
|
4074
|
-
let s = await
|
|
4045
|
+
let s = await it.Send({
|
|
4075
4046
|
type: "module",
|
|
4076
4047
|
module: "M00",
|
|
4077
4048
|
query: "x0054",
|
|
@@ -4084,7 +4055,7 @@ function go() {
|
|
|
4084
4055
|
break;
|
|
4085
4056
|
case "M01":
|
|
4086
4057
|
s[a].forEach((i) => {
|
|
4087
|
-
|
|
4058
|
+
Me.push({
|
|
4088
4059
|
module: "M01",
|
|
4089
4060
|
type: 1,
|
|
4090
4061
|
id: i.id,
|
|
@@ -4095,7 +4066,7 @@ function go() {
|
|
|
4095
4066
|
break;
|
|
4096
4067
|
case "M02":
|
|
4097
4068
|
s[a].forEach((i) => {
|
|
4098
|
-
|
|
4069
|
+
Me.push({
|
|
4099
4070
|
module: "M02",
|
|
4100
4071
|
type: 117,
|
|
4101
4072
|
id: i.id,
|
|
@@ -4106,7 +4077,7 @@ function go() {
|
|
|
4106
4077
|
break;
|
|
4107
4078
|
}
|
|
4108
4079
|
})(), setInterval(() => {
|
|
4109
|
-
|
|
4080
|
+
Me.forEach((s, a) => {
|
|
4110
4081
|
t({
|
|
4111
4082
|
type: "add",
|
|
4112
4083
|
data: {
|
|
@@ -4116,7 +4087,7 @@ function go() {
|
|
|
4116
4087
|
datetime: s.datetime,
|
|
4117
4088
|
txt: s.title
|
|
4118
4089
|
}
|
|
4119
|
-
}), s.datetime < (/* @__PURE__ */ new Date()).getTime() &&
|
|
4090
|
+
}), s.datetime < (/* @__PURE__ */ new Date()).getTime() && Me.splice(a, 1);
|
|
4120
4091
|
});
|
|
4121
4092
|
}, 6e4);
|
|
4122
4093
|
}, []);
|
|
@@ -4127,11 +4098,11 @@ function go() {
|
|
|
4127
4098
|
/* @__PURE__ */ r.jsx(
|
|
4128
4099
|
"div",
|
|
4129
4100
|
{
|
|
4130
|
-
className:
|
|
4101
|
+
className: so.n,
|
|
4131
4102
|
onClick: () => {
|
|
4132
4103
|
t({ type: "open", open: !0 });
|
|
4133
4104
|
},
|
|
4134
|
-
children: e.active ? /* @__PURE__ */ r.jsx(
|
|
4105
|
+
children: e.active ? /* @__PURE__ */ r.jsx(to, {}) : /* @__PURE__ */ r.jsx(eo, {})
|
|
4135
4106
|
}
|
|
4136
4107
|
),
|
|
4137
4108
|
e.open ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
@@ -4146,7 +4117,7 @@ function go() {
|
|
|
4146
4117
|
),
|
|
4147
4118
|
/* @__PURE__ */ r.jsxs("div", { className: "notify-m", children: [
|
|
4148
4119
|
/* @__PURE__ */ r.jsx("div", { className: "notify-l", children: e.news.map((s, a) => /* @__PURE__ */ r.jsx(
|
|
4149
|
-
|
|
4120
|
+
fo,
|
|
4150
4121
|
{
|
|
4151
4122
|
data: s,
|
|
4152
4123
|
dispatch: t
|
|
@@ -4158,9 +4129,9 @@ function go() {
|
|
|
4158
4129
|
] }) : ""
|
|
4159
4130
|
] });
|
|
4160
4131
|
}
|
|
4161
|
-
const
|
|
4132
|
+
const fo = ({ data: e, dispatch: t }) => {
|
|
4162
4133
|
let n = async (s) => {
|
|
4163
|
-
t({ type: "hide", id: s.id }), await
|
|
4134
|
+
t({ type: "hide", id: s.id }), await it.Send({
|
|
4164
4135
|
type: "module",
|
|
4165
4136
|
module: "M00",
|
|
4166
4137
|
query: "x0055",
|
|
@@ -4175,24 +4146,24 @@ const po = ({ data: e, dispatch: t }) => {
|
|
|
4175
4146
|
] }),
|
|
4176
4147
|
/* @__PURE__ */ r.jsx("div", { className: "--hide", "data-icon": "F038", onClick: () => n(e), children: " " })
|
|
4177
4148
|
] });
|
|
4178
|
-
},
|
|
4179
|
-
function
|
|
4149
|
+
}, ho = '(function(){"use strict";let a=[],s=null;onconnect=function(l){var t=l.source;a.push(t);const n=e=>{s!==null&&s.readyState===1?s.send(JSON.stringify(e)):t.postMessage({type:"noSend"})};let r=e=>{if(s!==null&&s.readyState===1)return t.postMessage({type:"true"});e.lk.address==="localhost"?s=new WebSocket(`ws://localhost:${e.lk.socket+1}`):s=new WebSocket("wss://"+e.lk.address+":"+(e.lk.socket+1)),s.onerror=()=>t.postMessage({type:"error"}),s.onopen=()=>{n({type:"connect",ukey:e.ukey})},s.onmessage=o=>{let c=JSON.parse(o.data);a.forEach(d=>{d.postMessage(c)})},s.onclose=()=>t.postMessage({type:"closed"})};t.onmessage=function(e){switch(e.data.type){case"length":return t.postMessage(a.length);case"all":return a.forEach(o=>o.postMessage({all:a.length}));case"send":return n(e.data.json);case"connect":return r(e.data);default:t.postMessage({type:"default",data:e.data.json})}}}})();\n';
|
|
4150
|
+
function mo(e) {
|
|
4180
4151
|
return new SharedWorker(
|
|
4181
|
-
"data:text/javascript;
|
|
4152
|
+
"data:text/javascript;charset=utf-8," + encodeURIComponent(ho),
|
|
4182
4153
|
{
|
|
4183
4154
|
name: e == null ? void 0 : e.name
|
|
4184
4155
|
}
|
|
4185
4156
|
);
|
|
4186
4157
|
}
|
|
4187
|
-
function
|
|
4158
|
+
function go(e) {
|
|
4188
4159
|
let t = {}, n = {};
|
|
4189
4160
|
e.data.forEach((a) => {
|
|
4190
4161
|
t[a.id] = { s: a.v, n: a.a }, n[a.id] = a;
|
|
4191
4162
|
});
|
|
4192
4163
|
let s = { ...ae(), 901: t };
|
|
4193
|
-
ln(n),
|
|
4164
|
+
ln(n), Te(s);
|
|
4194
4165
|
}
|
|
4195
|
-
let V = {},
|
|
4166
|
+
let V = {}, z = {}, Le = [
|
|
4196
4167
|
"filter",
|
|
4197
4168
|
"online",
|
|
4198
4169
|
"users",
|
|
@@ -4202,10 +4173,10 @@ let V = {}, Z = {}, Le = [
|
|
|
4202
4173
|
"info",
|
|
4203
4174
|
"job"
|
|
4204
4175
|
];
|
|
4205
|
-
function
|
|
4176
|
+
function po() {
|
|
4206
4177
|
const [e, t] = y.useState(!1), [n, s] = y.useState(!1);
|
|
4207
4178
|
function a(i) {
|
|
4208
|
-
const l = new
|
|
4179
|
+
const l = new mo();
|
|
4209
4180
|
V.laodData = (c) => {
|
|
4210
4181
|
let d = Le.indexOf(c);
|
|
4211
4182
|
d >= 0 && Le.splice(d, 1), Le.length === 0 && t(!0);
|
|
@@ -4217,7 +4188,7 @@ function jo() {
|
|
|
4217
4188
|
type: "connect",
|
|
4218
4189
|
ukey: i,
|
|
4219
4190
|
lk: et()
|
|
4220
|
-
}), Le.length !== 0 && V.laodData(d.type),
|
|
4191
|
+
}), Le.length !== 0 && V.laodData(d.type), z[d.type] && z[d.type](d);
|
|
4221
4192
|
}, l.port.postMessage({
|
|
4222
4193
|
type: "connect",
|
|
4223
4194
|
ukey: i,
|
|
@@ -4226,23 +4197,23 @@ function jo() {
|
|
|
4226
4197
|
}
|
|
4227
4198
|
return [a, e, n];
|
|
4228
4199
|
}
|
|
4229
|
-
|
|
4200
|
+
z.module = (e) => {
|
|
4230
4201
|
V[e.listen] !== void 0 && (V[e.listen](e), delete V[e.listen]);
|
|
4231
4202
|
};
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4203
|
+
z.bell = lo;
|
|
4204
|
+
z.company = go;
|
|
4205
|
+
z.info = (e) => {
|
|
4235
4206
|
let t = {};
|
|
4236
4207
|
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);
|
|
4237
4208
|
};
|
|
4238
|
-
|
|
4239
|
-
|
|
4209
|
+
z.version = async (e) => {
|
|
4210
|
+
ut.version.Server(e.data);
|
|
4240
4211
|
};
|
|
4241
|
-
|
|
4212
|
+
z.online = async (e) => {
|
|
4242
4213
|
};
|
|
4243
|
-
|
|
4214
|
+
z.offline = async (e) => {
|
|
4244
4215
|
};
|
|
4245
|
-
|
|
4216
|
+
z.chat = (e) => {
|
|
4246
4217
|
switch (e.data.action) {
|
|
4247
4218
|
case "new_message":
|
|
4248
4219
|
ce.getModule();
|
|
@@ -4255,7 +4226,7 @@ Z.chat = (e) => {
|
|
|
4255
4226
|
break;
|
|
4256
4227
|
}
|
|
4257
4228
|
};
|
|
4258
|
-
|
|
4229
|
+
z.users = (e) => {
|
|
4259
4230
|
let t = {};
|
|
4260
4231
|
e.data.forEach((s) => {
|
|
4261
4232
|
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);
|
|
@@ -4273,40 +4244,40 @@ Z.users = (e) => {
|
|
|
4273
4244
|
};
|
|
4274
4245
|
});
|
|
4275
4246
|
let n = { ...ae(), user: t };
|
|
4276
|
-
|
|
4247
|
+
Te(n);
|
|
4277
4248
|
};
|
|
4278
|
-
|
|
4249
|
+
z.api = (e) => {
|
|
4279
4250
|
let t = {};
|
|
4280
4251
|
e.data.forEach((n) => {
|
|
4281
4252
|
t[n.api] = { key: n.key, p01: n.p01, p02: n.p02 };
|
|
4282
4253
|
});
|
|
4283
4254
|
};
|
|
4284
|
-
|
|
4285
|
-
|
|
4255
|
+
z.delete = () => {
|
|
4256
|
+
Z();
|
|
4286
4257
|
};
|
|
4287
|
-
|
|
4258
|
+
z.select = (e) => {
|
|
4288
4259
|
let t = { ...ae() };
|
|
4289
4260
|
e.data.forEach((n) => {
|
|
4290
4261
|
t[n.n] = JSON.parse(n.s);
|
|
4291
|
-
}),
|
|
4262
|
+
}), Te(t);
|
|
4292
4263
|
};
|
|
4293
|
-
|
|
4264
|
+
z.job = (e) => {
|
|
4294
4265
|
let t = { ...ae() }, n = {};
|
|
4295
4266
|
Object.keys(e.data).forEach((s) => {
|
|
4296
4267
|
n[s] = { s: 1, n: e.data[s] };
|
|
4297
|
-
}), t[1] = n,
|
|
4268
|
+
}), t[1] = n, Te(t);
|
|
4298
4269
|
};
|
|
4299
|
-
|
|
4270
|
+
z.setting = (e) => {
|
|
4300
4271
|
Or(e.data);
|
|
4301
4272
|
};
|
|
4302
|
-
|
|
4273
|
+
z.app = () => {
|
|
4303
4274
|
};
|
|
4304
|
-
const
|
|
4275
|
+
const xo = (e, t) => {
|
|
4305
4276
|
V[e] = t;
|
|
4306
|
-
},
|
|
4277
|
+
}, vo = (e, t) => {
|
|
4307
4278
|
V[e](t);
|
|
4308
4279
|
};
|
|
4309
|
-
function
|
|
4280
|
+
function jo(e) {
|
|
4310
4281
|
let t = "_" + String(Math.random()).substring(2, 7);
|
|
4311
4282
|
return new Promise((n) => {
|
|
4312
4283
|
V[t] = (s) => {
|
|
@@ -4314,11 +4285,11 @@ function yo(e) {
|
|
|
4314
4285
|
}, e = { ...e, listen: t }, e.type = "modules", V.send(e);
|
|
4315
4286
|
});
|
|
4316
4287
|
}
|
|
4317
|
-
const
|
|
4318
|
-
class
|
|
4288
|
+
const it = { useConnect: po, useListener: xo, setListener: vo, Send: jo };
|
|
4289
|
+
class bo {
|
|
4319
4290
|
constructor(t = "el", n = "db") {
|
|
4320
|
-
|
|
4321
|
-
|
|
4291
|
+
Xe(this, "storeName");
|
|
4292
|
+
Xe(this, "_dbp");
|
|
4322
4293
|
this.storeName = n, this._dbp = new Promise((s, a) => {
|
|
4323
4294
|
const i = indexedDB.open(t, 1);
|
|
4324
4295
|
i.onerror = () => a(i.error), i.onsuccess = () => s(i.result), i.onupgradeneeded = () => {
|
|
@@ -4336,53 +4307,53 @@ class wo {
|
|
|
4336
4307
|
}
|
|
4337
4308
|
}
|
|
4338
4309
|
let Ve, A = {};
|
|
4339
|
-
const we = () => (Ve || (Ve = new
|
|
4340
|
-
A[e] = t, s.put(
|
|
4310
|
+
const we = () => (Ve || (Ve = new bo()), Ve), fe = (e, t, n = we()) => n._withIDBStore("readwrite", (s) => {
|
|
4311
|
+
A[e] = t, s.put($.enCode(t), e);
|
|
4341
4312
|
}), ne = (e, t = we()) => A[e] === void 0 ? new Promise((n, s) => {
|
|
4342
4313
|
let a;
|
|
4343
4314
|
t._withIDBStore("readonly", (i) => {
|
|
4344
4315
|
a = i.get(e);
|
|
4345
4316
|
}).then(() => {
|
|
4346
4317
|
if (a.result !== void 0) {
|
|
4347
|
-
let i =
|
|
4318
|
+
let i = $.deCode(a.result);
|
|
4348
4319
|
A[e] = i, n(i);
|
|
4349
4320
|
} else
|
|
4350
4321
|
n({});
|
|
4351
4322
|
});
|
|
4352
|
-
}) : A[e],
|
|
4323
|
+
}) : A[e], Co = (e, t = we()) => t._withIDBStore("readwrite", (n) => {
|
|
4353
4324
|
n.delete(e);
|
|
4354
|
-
}),
|
|
4325
|
+
}), ot = (e = we()) => e._withIDBStore("readwrite", (t) => {
|
|
4355
4326
|
t.clear();
|
|
4356
|
-
}),
|
|
4327
|
+
}), yo = (e = we()) => {
|
|
4357
4328
|
const t = [];
|
|
4358
4329
|
return e._withIDBStore("readonly", (n) => {
|
|
4359
4330
|
(n.openKeyCursor || n.openCursor).call(n).onsuccess = function() {
|
|
4360
4331
|
this.result && (t.push(this.result.key), this.result.continue());
|
|
4361
4332
|
};
|
|
4362
4333
|
}).then(() => t);
|
|
4363
|
-
},
|
|
4334
|
+
}, _o = (e, t, n = [], s = {}) => {
|
|
4364
4335
|
let a = n.length !== 0, i = [], l = s.sort, c = Object.keys(s).length !== 0, d = Object.keys(s), u = Object.keys(e), f = [], g = (h) => {
|
|
4365
|
-
let
|
|
4336
|
+
let j = "";
|
|
4366
4337
|
if (n.forEach((C) => {
|
|
4367
|
-
|
|
4338
|
+
j += t[h][C];
|
|
4368
4339
|
}), c) {
|
|
4369
4340
|
let C = {};
|
|
4370
4341
|
d.forEach((m) => {
|
|
4371
4342
|
C[m] = t[h][m];
|
|
4372
4343
|
});
|
|
4373
4344
|
for (let m in l)
|
|
4374
|
-
t[h][l[m]] === void 0 && (
|
|
4375
|
-
i.push({ id: h, text:
|
|
4345
|
+
t[h][l[m]] === void 0 && (ot(), location.reload()), m === "s1" && (C[m] = new Date(t[h][l[m]]).getTime()), m === "s2" && (C[m] = t[h][l[m]]), m === "s3" && (C[m] = t[h][l[m]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
|
|
4346
|
+
i.push({ id: h, text: j, ...C });
|
|
4376
4347
|
} else
|
|
4377
|
-
i.push({ id: h, text:
|
|
4348
|
+
i.push({ id: h, text: j });
|
|
4378
4349
|
}, x = (h) => {
|
|
4379
4350
|
};
|
|
4380
4351
|
return u.forEach((h) => {
|
|
4381
4352
|
f.push(t[h]);
|
|
4382
4353
|
}), f.forEach((h) => {
|
|
4383
|
-
h === void 0 ? (
|
|
4354
|
+
h === void 0 ? (ot(), location.reload()) : (a && g(h.id), c && x(h.id));
|
|
4384
4355
|
}), { list: f, search: i, filter: s };
|
|
4385
|
-
},
|
|
4356
|
+
}, wo = (e, t, n, s = we()) => {
|
|
4386
4357
|
if (A[e] === void 0)
|
|
4387
4358
|
return new Promise((a, i) => {
|
|
4388
4359
|
let l;
|
|
@@ -4390,66 +4361,64 @@ const we = () => (Ve || (Ve = new wo()), Ve), fe = (e, t, n = we()) => n._withID
|
|
|
4390
4361
|
l = c.get(e);
|
|
4391
4362
|
}).then(() => {
|
|
4392
4363
|
if (l.result !== void 0) {
|
|
4393
|
-
let c =
|
|
4364
|
+
let c = $.deCode(l.result);
|
|
4394
4365
|
A[e] = c, A[e][t.id] = {
|
|
4395
4366
|
...A[e][t.id],
|
|
4396
4367
|
...t.data
|
|
4397
|
-
}, s.put(
|
|
4368
|
+
}, s.put($.enCode(A[e]), e), a({});
|
|
4398
4369
|
} else
|
|
4399
4370
|
a({});
|
|
4400
4371
|
});
|
|
4401
4372
|
});
|
|
4402
4373
|
if (A[e][t.id] !== void 0)
|
|
4403
4374
|
return A[e][t.id] = { ...A[e][t.id], ...t.data }, n !== void 0 && A[n] !== void 0 ? A[n][t.id] !== void 0 && (A[n][t.id] = t.data.eDate) : A[n] = [], delete A[e][t.id].$_item, delete A[e][t.id].$_send, s._withIDBStore("readwrite", (a) => {
|
|
4404
|
-
a.put(
|
|
4375
|
+
a.put($.enCode(A[e]), e), n !== void 0 && a.put($.enCode(A[n]), n);
|
|
4405
4376
|
});
|
|
4406
|
-
},
|
|
4377
|
+
}, ko = async (e, t, n, s) => {
|
|
4407
4378
|
let a, i;
|
|
4408
4379
|
i = await ne(n), i[e.id] = e, await fe(n, i), a !== null && (a = await ne(t), a[e.id] = e.eDate, await fe(t, a)), s !== void 0 && s({ type: "load", page: a, base: i });
|
|
4409
|
-
},
|
|
4380
|
+
}, So = async (e, t, n, s) => {
|
|
4410
4381
|
let a = await ne(t), i = await ne(n);
|
|
4411
4382
|
for (let l in e)
|
|
4412
4383
|
i[l] = e[l], a[l] = e[l].eDate;
|
|
4413
4384
|
await fe(t, a), await fe(n, i), s !== void 0 && s({ type: "load", page: a, base: i });
|
|
4414
|
-
},
|
|
4385
|
+
}, Eo = async (e, t, n, s) => {
|
|
4415
4386
|
let a = await ne(t), i = await ne(n);
|
|
4416
4387
|
e.forEach((l) => delete a[l]), await fe(t, a), s !== void 0 && s({ type: "load", page: a, base: i });
|
|
4417
|
-
},
|
|
4388
|
+
}, Do = async (e, t, n) => {
|
|
4418
4389
|
let s = await ne(t);
|
|
4419
4390
|
e.forEach((a) => delete s[a]), await fe(t, s);
|
|
4420
|
-
},
|
|
4391
|
+
}, Mo = async (e, t, n) => {
|
|
4421
4392
|
let s = await ne(t);
|
|
4422
4393
|
e.forEach((a) => s[a.id] = a.eDate), await fe(t, s);
|
|
4423
|
-
},
|
|
4394
|
+
}, Ro = async (e, t, n) => {
|
|
4424
4395
|
let s = await ne(t);
|
|
4425
4396
|
if (n !== void 0)
|
|
4426
4397
|
n({ type: "load", base: s });
|
|
4427
4398
|
else
|
|
4428
4399
|
return s[e];
|
|
4429
|
-
},
|
|
4430
|
-
id:
|
|
4400
|
+
}, To = (e) => A[e], Cl = {
|
|
4401
|
+
id: Ro,
|
|
4431
4402
|
get: ne,
|
|
4432
4403
|
set: fe,
|
|
4433
|
-
add:
|
|
4434
|
-
del:
|
|
4435
|
-
upd:
|
|
4436
|
-
key:
|
|
4437
|
-
load:
|
|
4438
|
-
split:
|
|
4439
|
-
clear:
|
|
4440
|
-
updAll:
|
|
4441
|
-
delAll:
|
|
4442
|
-
delList:
|
|
4443
|
-
addList:
|
|
4444
|
-
},
|
|
4445
|
-
s:
|
|
4446
|
-
loadingB: Po,
|
|
4447
|
-
ul: Oo
|
|
4404
|
+
add: ko,
|
|
4405
|
+
del: Co,
|
|
4406
|
+
upd: wo,
|
|
4407
|
+
key: yo,
|
|
4408
|
+
load: To,
|
|
4409
|
+
split: _o,
|
|
4410
|
+
clear: ot,
|
|
4411
|
+
updAll: So,
|
|
4412
|
+
delAll: Eo,
|
|
4413
|
+
delList: Do,
|
|
4414
|
+
addList: Mo
|
|
4415
|
+
}, yl = { setSetting: Lr, getSetting: Ar }, $o = "_s_18bde_1", Bo = {
|
|
4416
|
+
s: $o
|
|
4448
4417
|
};
|
|
4449
|
-
function
|
|
4450
|
-
return /* @__PURE__ */ r.jsx("ul", { className:
|
|
4418
|
+
function Io({ children: e }) {
|
|
4419
|
+
return /* @__PURE__ */ r.jsx("ul", { className: Y.ul, children: e });
|
|
4451
4420
|
}
|
|
4452
|
-
function
|
|
4421
|
+
function No(e, t) {
|
|
4453
4422
|
switch (t.type) {
|
|
4454
4423
|
case "load":
|
|
4455
4424
|
return {
|
|
@@ -4482,13 +4451,13 @@ function zo(e, t) {
|
|
|
4482
4451
|
throw new Error();
|
|
4483
4452
|
}
|
|
4484
4453
|
}
|
|
4485
|
-
function
|
|
4454
|
+
function _l({
|
|
4486
4455
|
list: e,
|
|
4487
4456
|
load: t,
|
|
4488
4457
|
className: n,
|
|
4489
4458
|
...s
|
|
4490
4459
|
}) {
|
|
4491
|
-
const a = y.useRef(null), [i, l] = y.useReducer(
|
|
4460
|
+
const a = y.useRef(null), [i, l] = y.useReducer(No, {
|
|
4492
4461
|
load: !1,
|
|
4493
4462
|
list: [],
|
|
4494
4463
|
data: {},
|
|
@@ -4505,10 +4474,10 @@ function Bl({
|
|
|
4505
4474
|
return /* @__PURE__ */ r.jsx(
|
|
4506
4475
|
"div",
|
|
4507
4476
|
{
|
|
4508
|
-
className: [
|
|
4477
|
+
className: [Bo.s, n].join(" "),
|
|
4509
4478
|
ref: a,
|
|
4510
4479
|
onScroll: c,
|
|
4511
|
-
children: /* @__PURE__ */ r.jsx(
|
|
4480
|
+
children: /* @__PURE__ */ r.jsx(Io, { "el-empty": "Данные не найдены", children: i.load && i.list !== void 0 ? i.list.map((d) => /* @__PURE__ */ r.jsx(s.item, { data: d }, d.id)) : /* @__PURE__ */ r.jsxs("div", { "data-load": "load", children: [
|
|
4512
4481
|
/* @__PURE__ */ r.jsx("i", {}),
|
|
4513
4482
|
/* @__PURE__ */ r.jsx("i", {}),
|
|
4514
4483
|
/* @__PURE__ */ r.jsx("i", {})
|
|
@@ -4516,7 +4485,7 @@ function Bl({
|
|
|
4516
4485
|
}
|
|
4517
4486
|
);
|
|
4518
4487
|
}
|
|
4519
|
-
const
|
|
4488
|
+
const Fo = ({ label: e, onValue: t, value: n, name: s, item: a }) => {
|
|
4520
4489
|
const [i, l] = y.useState(!!n);
|
|
4521
4490
|
y.useEffect(() => {
|
|
4522
4491
|
l(!!n);
|
|
@@ -4534,7 +4503,7 @@ const Wo = ({ label: e, onValue: t, value: n, name: s, item: a }) => {
|
|
|
4534
4503
|
}
|
|
4535
4504
|
);
|
|
4536
4505
|
}, ve = {};
|
|
4537
|
-
function
|
|
4506
|
+
function Po(e) {
|
|
4538
4507
|
const [t, n] = y.useState({}), s = y.useRef(e);
|
|
4539
4508
|
ve.u = (i) => {
|
|
4540
4509
|
s.current = { ...s.current, [i.name]: i.value };
|
|
@@ -4546,51 +4515,50 @@ function Zo(e) {
|
|
|
4546
4515
|
};
|
|
4547
4516
|
return [s.current, a];
|
|
4548
4517
|
}
|
|
4549
|
-
function
|
|
4518
|
+
function Oo(e) {
|
|
4550
4519
|
ve.u(e), e.reload && ve.r();
|
|
4551
4520
|
}
|
|
4552
|
-
function
|
|
4521
|
+
function Lo() {
|
|
4553
4522
|
ve.r && ve.r();
|
|
4554
4523
|
}
|
|
4555
|
-
const
|
|
4524
|
+
const wl = {
|
|
4556
4525
|
Color: Cn,
|
|
4557
|
-
Date:
|
|
4558
|
-
Code:
|
|
4559
|
-
Check:
|
|
4526
|
+
Date: ft,
|
|
4527
|
+
Code: bn,
|
|
4528
|
+
Check: Mn,
|
|
4560
4529
|
Switch: gn,
|
|
4561
4530
|
Button: pn,
|
|
4562
4531
|
Message: xn,
|
|
4563
4532
|
Generator: vn,
|
|
4564
|
-
Captcha:
|
|
4565
|
-
Modal:
|
|
4566
|
-
Money:
|
|
4567
|
-
Month:
|
|
4533
|
+
Captcha: jn,
|
|
4534
|
+
Modal: ht,
|
|
4535
|
+
Money: mt,
|
|
4536
|
+
Month: _n,
|
|
4568
4537
|
Notes: wn,
|
|
4569
|
-
Number:
|
|
4538
|
+
Number: gt,
|
|
4570
4539
|
Password: kn,
|
|
4571
|
-
Phone:
|
|
4540
|
+
Phone: pt,
|
|
4572
4541
|
Search: Sn,
|
|
4573
|
-
Select:
|
|
4574
|
-
Set:
|
|
4542
|
+
Select: xt,
|
|
4543
|
+
Set: at,
|
|
4575
4544
|
Textarea: En,
|
|
4576
|
-
Time:
|
|
4545
|
+
Time: Dn,
|
|
4577
4546
|
Users: jt,
|
|
4578
|
-
String:
|
|
4579
|
-
Form:
|
|
4580
|
-
runReload:
|
|
4581
|
-
useData:
|
|
4582
|
-
setValue:
|
|
4583
|
-
Palette:
|
|
4584
|
-
Toogle:
|
|
4585
|
-
Group:
|
|
4586
|
-
Options:
|
|
4587
|
-
},
|
|
4588
|
-
spinner:
|
|
4589
|
-
l:
|
|
4590
|
-
loadingB: Ho
|
|
4547
|
+
String: vt,
|
|
4548
|
+
Form: at,
|
|
4549
|
+
runReload: Lo,
|
|
4550
|
+
useData: Po,
|
|
4551
|
+
setValue: Oo,
|
|
4552
|
+
Palette: Fo,
|
|
4553
|
+
Toogle: Rn,
|
|
4554
|
+
Group: Tn,
|
|
4555
|
+
Options: $n
|
|
4556
|
+
}, Ao = "_spinner_1ul0m_1", Wo = "_l_1ul0m_75", Nn = {
|
|
4557
|
+
spinner: Ao,
|
|
4558
|
+
l: Wo
|
|
4591
4559
|
};
|
|
4592
|
-
function
|
|
4593
|
-
return /* @__PURE__ */ r.jsx("div", { className:
|
|
4560
|
+
function Uo() {
|
|
4561
|
+
return /* @__PURE__ */ r.jsx("div", { className: Nn.spinner, children: /* @__PURE__ */ r.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 483 484", children: /* @__PURE__ */ r.jsx(
|
|
4594
4562
|
"path",
|
|
4595
4563
|
{
|
|
4596
4564
|
d: "M264,492a22.2,22.2,0,0,0,22-22V411a22.2,22.2,0,0,0-22-22H236a22.2,22.2,0,0,0-22,22v59a22.2,22.2,0,0,0,22,22Zm74-134a23.9,23.9,0,0,0-6,16,20.35,20.35,0,0,0,6,15l42,42q7,7,16,7,10,0,16-7l20-20a20.35,20.35,0,0,0,6-15,23.9,23.9,0,0,0-6-16l-42-42q-7-7-16-7-8,0-15,7ZM163,389a18.94,18.94,0,0,0,7-15q0-9-7-16l-20-20q-7-7-16-7-8,0-15,7L70,380q-7,7-7,16a18.94,18.94,0,0,0,7,15l20,20q7,7,16,7a18.94,18.94,0,0,0,15-7ZM112,237a22.2,22.2,0,0,0-22-22H31a21.17,21.17,0,0,0-15.5,6.5A21.17,21.17,0,0,0,9,237v28a21.17,21.17,0,0,0,6.5,15.5A21.17,21.17,0,0,0,31,287H90a22.2,22.2,0,0,0,22-22Zm358,50a22.2,22.2,0,0,0,22-22V237a22.2,22.2,0,0,0-22-22H411a22.2,22.2,0,0,0-22,22v28a22.2,22.2,0,0,0,22,22ZM163,142q7-7,7-15.5T163,111L121,69q-7-7-15-7-7,0-16,7L70,89q-7,7-7,16a18.94,18.94,0,0,0,7,15l42,42a18.94,18.94,0,0,0,15,7q10,0,16-7Zm269-22a20.35,20.35,0,0,0,6-15,23.9,23.9,0,0,0-6-16L412,69q-7-7-16-7-7,0-16,7l-42,42q-7,8-7,16t7,15l21,20a18.94,18.94,0,0,0,15,7q10,0,16-7Zm-168-9a22.06,22.06,0,0,0,15.5-6q6.5-6,6.5-16V30a21.17,21.17,0,0,0-6.5-15.5A21.17,21.17,0,0,0,264,8H236a21.17,21.17,0,0,0-15.5,6.5A21.17,21.17,0,0,0,214,30V89q0,10,6.5,16a22.06,22.06,0,0,0,15.5,6Z",
|
|
@@ -4598,20 +4566,20 @@ function qo() {
|
|
|
4598
4566
|
}
|
|
4599
4567
|
) }) });
|
|
4600
4568
|
}
|
|
4601
|
-
function
|
|
4602
|
-
return /* @__PURE__ */ r.jsxs("div", { className:
|
|
4569
|
+
function zo() {
|
|
4570
|
+
return /* @__PURE__ */ r.jsxs("div", { className: Nn.l, children: [
|
|
4603
4571
|
/* @__PURE__ */ r.jsx("i", {}),
|
|
4604
4572
|
/* @__PURE__ */ r.jsx("i", {}),
|
|
4605
4573
|
/* @__PURE__ */ r.jsx("i", {})
|
|
4606
4574
|
] });
|
|
4607
4575
|
}
|
|
4608
|
-
const
|
|
4609
|
-
s:
|
|
4576
|
+
const kl = { Spinner: Uo, Inline: zo }, qo = "_s_t9swc_1", en = {
|
|
4577
|
+
s: qo
|
|
4610
4578
|
};
|
|
4611
|
-
let
|
|
4612
|
-
function
|
|
4579
|
+
let bt;
|
|
4580
|
+
function Ho({ className: e, placeholder: t }) {
|
|
4613
4581
|
let n = (l) => {
|
|
4614
|
-
|
|
4582
|
+
bt(l.target.textContent);
|
|
4615
4583
|
}, s = (l) => {
|
|
4616
4584
|
l.key === "Enter" && l.preventDefault();
|
|
4617
4585
|
}, a = (l) => {
|
|
@@ -4633,7 +4601,7 @@ function Qo({ className: e, placeholder: t }) {
|
|
|
4633
4601
|
}
|
|
4634
4602
|
);
|
|
4635
4603
|
}
|
|
4636
|
-
function
|
|
4604
|
+
function Ko(e, t, n) {
|
|
4637
4605
|
let s = [], a = 1, i = 0, l = {}, c = 50;
|
|
4638
4606
|
return l[a] = [], e.forEach((d) => {
|
|
4639
4607
|
d.text.toLowerCase().indexOf(t) > -1 && s.push(d.id);
|
|
@@ -4641,17 +4609,17 @@ function Vo(e, t, n) {
|
|
|
4641
4609
|
i++, i <= c || (a++, i = 1, l[a] = []), l[a].push(n[d]);
|
|
4642
4610
|
}), l;
|
|
4643
4611
|
}
|
|
4644
|
-
function
|
|
4645
|
-
|
|
4612
|
+
function Yo(e) {
|
|
4613
|
+
bt = e;
|
|
4646
4614
|
}
|
|
4647
|
-
function
|
|
4648
|
-
|
|
4615
|
+
function Zo(e) {
|
|
4616
|
+
bt = e;
|
|
4649
4617
|
}
|
|
4650
|
-
const
|
|
4651
|
-
f:
|
|
4618
|
+
const Sl = { Field: Ho, Run: Ko, Get: Yo, useValue: Zo }, Jo = "_f_q3r0i_1", Go = {
|
|
4619
|
+
f: Jo
|
|
4652
4620
|
};
|
|
4653
|
-
let
|
|
4654
|
-
function
|
|
4621
|
+
let X = {};
|
|
4622
|
+
function Xo(e, t) {
|
|
4655
4623
|
switch (t.type) {
|
|
4656
4624
|
case "open":
|
|
4657
4625
|
return {
|
|
@@ -4682,7 +4650,7 @@ function sl(e, t) {
|
|
|
4682
4650
|
s = { ...e.take, ...s }, e.active = !1;
|
|
4683
4651
|
for (let a in s)
|
|
4684
4652
|
s[a] !== "999" && (e.active = !0);
|
|
4685
|
-
return
|
|
4653
|
+
return X.get(s, e.active), {
|
|
4686
4654
|
...e,
|
|
4687
4655
|
take: s,
|
|
4688
4656
|
active: e.active
|
|
@@ -4690,7 +4658,7 @@ function sl(e, t) {
|
|
|
4690
4658
|
case "exit":
|
|
4691
4659
|
for (let a in e.take)
|
|
4692
4660
|
e.take[a] = "999";
|
|
4693
|
-
return
|
|
4661
|
+
return X.get && X.get([], !1), {
|
|
4694
4662
|
...e,
|
|
4695
4663
|
size: 0,
|
|
4696
4664
|
active: !1,
|
|
@@ -4701,8 +4669,8 @@ function sl(e, t) {
|
|
|
4701
4669
|
throw new Error();
|
|
4702
4670
|
}
|
|
4703
4671
|
}
|
|
4704
|
-
function
|
|
4705
|
-
const [e, t] = y.useReducer(
|
|
4672
|
+
function Qo() {
|
|
4673
|
+
const [e, t] = y.useReducer(Xo, {
|
|
4706
4674
|
open: !1,
|
|
4707
4675
|
view: null,
|
|
4708
4676
|
data: {},
|
|
@@ -4710,22 +4678,22 @@ function al() {
|
|
|
4710
4678
|
size: 0,
|
|
4711
4679
|
active: !1
|
|
4712
4680
|
});
|
|
4713
|
-
return
|
|
4681
|
+
return X.set = (n) => {
|
|
4714
4682
|
t({ type: "data", data: n });
|
|
4715
|
-
},
|
|
4683
|
+
}, X.count = (n) => {
|
|
4716
4684
|
t({ type: "size", size: n });
|
|
4717
|
-
},
|
|
4685
|
+
}, X.reset = () => {
|
|
4718
4686
|
t({ type: "exit" });
|
|
4719
4687
|
}, /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
4720
4688
|
/* @__PURE__ */ r.jsxs(
|
|
4721
4689
|
"div",
|
|
4722
4690
|
{
|
|
4723
|
-
className:
|
|
4691
|
+
className: Go.f,
|
|
4724
4692
|
onClick: () => {
|
|
4725
4693
|
t({ type: "open", open: !0 });
|
|
4726
4694
|
},
|
|
4727
4695
|
children: [
|
|
4728
|
-
/* @__PURE__ */ r.jsx(
|
|
4696
|
+
/* @__PURE__ */ r.jsx(no, {}),
|
|
4729
4697
|
e.active && /* @__PURE__ */ r.jsxs("i", { children: [
|
|
4730
4698
|
e.size,
|
|
4731
4699
|
"1"
|
|
@@ -4745,7 +4713,7 @@ function al() {
|
|
|
4745
4713
|
),
|
|
4746
4714
|
/* @__PURE__ */ r.jsxs("div", { className: "filter m", children: [
|
|
4747
4715
|
/* @__PURE__ */ r.jsx("div", { className: "filter l", children: Object.keys(e.data).map((n) => /* @__PURE__ */ r.jsx(
|
|
4748
|
-
|
|
4716
|
+
rl,
|
|
4749
4717
|
{
|
|
4750
4718
|
data: n,
|
|
4751
4719
|
dispatch: t,
|
|
@@ -4767,16 +4735,16 @@ function al() {
|
|
|
4767
4735
|
] }) : /* @__PURE__ */ r.jsx(r.Fragment, {})
|
|
4768
4736
|
] });
|
|
4769
4737
|
}
|
|
4770
|
-
function
|
|
4771
|
-
|
|
4738
|
+
function Vo(e) {
|
|
4739
|
+
X.get = e;
|
|
4772
4740
|
}
|
|
4773
|
-
function
|
|
4774
|
-
|
|
4741
|
+
function el(e) {
|
|
4742
|
+
X.set !== void 0 && X.set(e);
|
|
4775
4743
|
}
|
|
4776
|
-
function
|
|
4777
|
-
|
|
4744
|
+
function tl(e) {
|
|
4745
|
+
X.reset !== void 0 && X.reset(e);
|
|
4778
4746
|
}
|
|
4779
|
-
function
|
|
4747
|
+
function nl(e, t, n, s) {
|
|
4780
4748
|
let a = [], i = 1, l = 0, c = {}, d = 50;
|
|
4781
4749
|
return c[i] = [], s === !0 && (Object.keys(t).forEach((u) => {
|
|
4782
4750
|
Number.parseInt(t[u]) !== 999 && (e = e.filter(
|
|
@@ -4789,9 +4757,9 @@ function cl(e, t, n, s) {
|
|
|
4789
4757
|
}), c;
|
|
4790
4758
|
}
|
|
4791
4759
|
function Fn(e) {
|
|
4792
|
-
|
|
4760
|
+
X.count(e);
|
|
4793
4761
|
}
|
|
4794
|
-
function
|
|
4762
|
+
function rl({ data: e, state: t, dispatch: n }) {
|
|
4795
4763
|
let s = () => {
|
|
4796
4764
|
n({ type: "view", view: e });
|
|
4797
4765
|
}, a = () => {
|
|
@@ -4814,7 +4782,7 @@ function ul({ data: e, state: t, dispatch: n }) {
|
|
|
4814
4782
|
) : ""
|
|
4815
4783
|
] }),
|
|
4816
4784
|
/* @__PURE__ */ r.jsx("div", { className: "filter u", "set-active": (t.view === e) + "", children: Object.keys(t.data[e].list).map((i, l) => /* @__PURE__ */ r.jsx(
|
|
4817
|
-
|
|
4785
|
+
sl,
|
|
4818
4786
|
{
|
|
4819
4787
|
data: t.data[e].list[i],
|
|
4820
4788
|
head: e,
|
|
@@ -4826,9 +4794,8 @@ function ul({ data: e, state: t, dispatch: n }) {
|
|
|
4826
4794
|
)) })
|
|
4827
4795
|
] });
|
|
4828
4796
|
}
|
|
4829
|
-
function
|
|
4830
|
-
if (a !== "999" && e.count === void 0)
|
|
4831
|
-
return "";
|
|
4797
|
+
function sl({ data: e, head: t, state: n, dispatch: s, type: a }) {
|
|
4798
|
+
if (a !== "999" && e.count === void 0) return "";
|
|
4832
4799
|
const i = () => {
|
|
4833
4800
|
s({ type: "take", list: t, take: a });
|
|
4834
4801
|
};
|
|
@@ -4845,8 +4812,8 @@ function dl({ data: e, head: t, state: n, dispatch: s, type: a }) {
|
|
|
4845
4812
|
}
|
|
4846
4813
|
);
|
|
4847
4814
|
}
|
|
4848
|
-
const
|
|
4849
|
-
function
|
|
4815
|
+
const El = { Button: Qo, useValue: Vo, Set: el, Run: nl, Count: Fn, Reset: tl }, Dl = { Bell: uo, Send: oo, Add: io };
|
|
4816
|
+
function Ml({ active: e, onActive: t, id: n, name: s }) {
|
|
4850
4817
|
const [a, i] = y.useState(!!e);
|
|
4851
4818
|
y.useEffect(() => {
|
|
4852
4819
|
i(!!e);
|
|
@@ -4864,15 +4831,15 @@ function Fl({ active: e, onActive: t, id: n, name: s }) {
|
|
|
4864
4831
|
}
|
|
4865
4832
|
);
|
|
4866
4833
|
}
|
|
4867
|
-
const
|
|
4868
|
-
sort:
|
|
4834
|
+
const al = "_sort_1yrvt_1", il = {
|
|
4835
|
+
sort: al
|
|
4869
4836
|
};
|
|
4870
|
-
let
|
|
4871
|
-
function
|
|
4837
|
+
let Ue = {};
|
|
4838
|
+
function ol(e, t) {
|
|
4872
4839
|
switch (t.type) {
|
|
4873
4840
|
case "active":
|
|
4874
4841
|
let n = "<";
|
|
4875
|
-
return e.active === t.data && (n = e.sort === "<" ? ">" : "<"),
|
|
4842
|
+
return e.active === t.data && (n = e.sort === "<" ? ">" : "<"), Ue.get({ active: t.data, sort: n }, !1), on({ active: t.data, sort: n }), {
|
|
4876
4843
|
...e,
|
|
4877
4844
|
active: t.data,
|
|
4878
4845
|
sort: n
|
|
@@ -4881,12 +4848,12 @@ function ml(e, t) {
|
|
|
4881
4848
|
throw new Error();
|
|
4882
4849
|
}
|
|
4883
4850
|
}
|
|
4884
|
-
function
|
|
4851
|
+
function ll() {
|
|
4885
4852
|
const [e, t] = y.useReducer(
|
|
4886
|
-
|
|
4853
|
+
ol,
|
|
4887
4854
|
tt() === void 0 ? { active: 1, sort: "<" } : tt()
|
|
4888
4855
|
);
|
|
4889
|
-
return /* @__PURE__ */ r.jsxs("div", { className:
|
|
4856
|
+
return /* @__PURE__ */ r.jsxs("div", { className: il.sort, children: [
|
|
4890
4857
|
/* @__PURE__ */ r.jsx(
|
|
4891
4858
|
"i",
|
|
4892
4859
|
{
|
|
@@ -4913,13 +4880,13 @@ function gl() {
|
|
|
4913
4880
|
)
|
|
4914
4881
|
] });
|
|
4915
4882
|
}
|
|
4916
|
-
function
|
|
4917
|
-
|
|
4883
|
+
function cl(e) {
|
|
4884
|
+
Ue.get = e;
|
|
4918
4885
|
}
|
|
4919
|
-
function
|
|
4920
|
-
|
|
4886
|
+
function ul(e) {
|
|
4887
|
+
Ue.set(e);
|
|
4921
4888
|
}
|
|
4922
|
-
function
|
|
4889
|
+
function dl(e, t, n) {
|
|
4923
4890
|
let s = 1, a = 0, i = {}, l = 50;
|
|
4924
4891
|
i[s] = [];
|
|
4925
4892
|
let c = {}, d = "s1a";
|
|
@@ -4938,38 +4905,38 @@ function vl(e, t, n) {
|
|
|
4938
4905
|
a++, a <= l || (s++, a = 1, i[s] = []), i[s].push(e[u.id]);
|
|
4939
4906
|
}), { data: i };
|
|
4940
4907
|
}
|
|
4941
|
-
function
|
|
4942
|
-
|
|
4908
|
+
function fl(e) {
|
|
4909
|
+
Ue.count(e);
|
|
4943
4910
|
}
|
|
4944
|
-
const
|
|
4911
|
+
const Rl = { Init: ll, useValue: cl, Set: ul, Run: dl, Count: fl };
|
|
4945
4912
|
export {
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4913
|
+
wi as Action,
|
|
4914
|
+
jl as Alert,
|
|
4915
|
+
gl as Api,
|
|
4916
|
+
Is as Button,
|
|
4917
|
+
vl as Component,
|
|
4918
|
+
Cl as DataBase,
|
|
4919
|
+
dt as Events,
|
|
4920
|
+
El as Filter,
|
|
4921
|
+
wl as Form,
|
|
4955
4922
|
ie as Format,
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4923
|
+
bl as Icon,
|
|
4924
|
+
pl as Init,
|
|
4925
|
+
oi as Input,
|
|
4926
|
+
kl as Loading,
|
|
4927
|
+
yn as Modal,
|
|
4928
|
+
st as Notice,
|
|
4929
|
+
Dl as Notifications,
|
|
4963
4930
|
ce as Router,
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4931
|
+
_l as Scrolling,
|
|
4932
|
+
Sl as Search,
|
|
4933
|
+
xl as Setting,
|
|
4934
|
+
ut as Sistym,
|
|
4935
|
+
it as Socket,
|
|
4969
4936
|
oe as Store,
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4937
|
+
Ml as Switch,
|
|
4938
|
+
gi as Tabs,
|
|
4939
|
+
D as Telegram,
|
|
4940
|
+
Rl as Triage,
|
|
4941
|
+
yl as User
|
|
4975
4942
|
};
|