elcrm 0.8.12 → 0.8.13
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/Store/index.d.ts +2 -1
- package/dist/index.es.js +386 -382
- package/dist/index.umd.js +9 -9
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -226,10 +226,13 @@ function rr() {
|
|
|
226
226
|
function sr(e) {
|
|
227
227
|
return w[e] === void 0 ? (w[e] = { data: {}, time: 0 }, { data: {}, time: 0 }) : w[e];
|
|
228
228
|
}
|
|
229
|
-
function ir(e
|
|
229
|
+
function ir(e) {
|
|
230
|
+
return w[e] === void 0 ? (w[e] = { data: {}, time: 0 }, { data: {}, time: 0 }) : w[e];
|
|
231
|
+
}
|
|
232
|
+
function or(e, t) {
|
|
230
233
|
w[e] = { data: t.data, time: t.time }, localStorage.setItem(e, D.enCode(w[e]));
|
|
231
234
|
}
|
|
232
|
-
function
|
|
235
|
+
function lr(e, t, a) {
|
|
233
236
|
w[e].time = a, w[e].data[t.item][t.name] = t.value, localStorage.setItem(e, D.enCode(w[e]));
|
|
234
237
|
}
|
|
235
238
|
const se = {
|
|
@@ -258,10 +261,11 @@ const se = {
|
|
|
258
261
|
setUser: Cn,
|
|
259
262
|
getUser: ar,
|
|
260
263
|
getDefaultModules: Na,
|
|
261
|
-
getBase:
|
|
262
|
-
setBase:
|
|
263
|
-
editBase:
|
|
264
|
-
|
|
264
|
+
getBase: ir,
|
|
265
|
+
setBase: or,
|
|
266
|
+
editBase: lr,
|
|
267
|
+
loadBase: sr
|
|
268
|
+
}, kn = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyB0PT57dHJ5e2xldCBhPWF3YWl0IGZldGNoKGAke3QuZGF0YS5ob3N0fSR7dC5kYXRhLmxpbmt9YCx7bWV0aG9kOiJQT1NUIixoZWFkZXJzOntzc2lkOnQuZGF0YS5zc2lkLCJDb250ZW50LXR5cGUiOiJhcHBsaWNhdGlvbi9qc29uO2NoYXJzZXQ9dXRmLTgifSxib2R5OkpTT04uc3RyaW5naWZ5KHQuZGF0YS5kYXRhKX0pO3Bvc3RNZXNzYWdlKGF3YWl0IGEuanNvbigpKX1jYXRjaChhKXtwb3N0TWVzc2FnZSh7c3RhdHVzOiJlcnJvciIsZGF0YToid29ya2VyIixtZXNzYWdlOmF9KX19fSkoKTsK", cr = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), tn = typeof window < "u" && window.Blob && new Blob([cr(kn)], { type: "text/javascript;charset=utf-8" });
|
|
265
269
|
function yn(e) {
|
|
266
270
|
let t;
|
|
267
271
|
try {
|
|
@@ -285,29 +289,29 @@ function yn(e) {
|
|
|
285
289
|
}
|
|
286
290
|
}
|
|
287
291
|
const ue = {};
|
|
288
|
-
function
|
|
292
|
+
function dr(e) {
|
|
289
293
|
return e && (ue.s = e), ue.s;
|
|
290
294
|
}
|
|
291
|
-
function
|
|
295
|
+
function _r(e) {
|
|
292
296
|
return e && (ue.a = e), ue.a;
|
|
293
297
|
}
|
|
294
|
-
function
|
|
298
|
+
function ur(e) {
|
|
295
299
|
return e && (ue.c = e), ue.c;
|
|
296
300
|
}
|
|
297
|
-
function
|
|
301
|
+
function mr(e) {
|
|
298
302
|
return e && (ue.h = e), ue.h;
|
|
299
303
|
}
|
|
300
|
-
const St = { version: { Api:
|
|
301
|
-
let
|
|
302
|
-
function
|
|
304
|
+
const St = { version: { Api: _r, Server: dr, Client: ur }, Host: mr };
|
|
305
|
+
let fr = "api", hr = "elcrm", xr = "online";
|
|
306
|
+
function gr() {
|
|
303
307
|
let e = se.getPORT(), t = "", a = "";
|
|
304
308
|
return e.address === "localhost" ? (t = `http://localhost:${e.socket}/documents`, a = `http://localhost:${e.socket}/files`) : (t = "https://" + e.address + "/documents", a = "https://" + e.address + "/files"), {
|
|
305
309
|
documents: t,
|
|
306
310
|
files: a
|
|
307
311
|
};
|
|
308
312
|
}
|
|
309
|
-
let jn = `${
|
|
310
|
-
function
|
|
313
|
+
let jn = `${fr}.${hr}.${xr}`;
|
|
314
|
+
function pr(e) {
|
|
311
315
|
return "https://" + se.getPORT().address + "/audio/" + e;
|
|
312
316
|
}
|
|
313
317
|
function Xe(e, t = {}, a = se.getAUTH()) {
|
|
@@ -323,7 +327,7 @@ function Xe(e, t = {}, a = se.getAUTH()) {
|
|
|
323
327
|
});
|
|
324
328
|
});
|
|
325
329
|
}
|
|
326
|
-
function
|
|
330
|
+
function vr(e, t = {}, a = se.getAUTH()) {
|
|
327
331
|
return new Promise((r) => {
|
|
328
332
|
const s = new yn();
|
|
329
333
|
s.onmessage = (i) => {
|
|
@@ -336,7 +340,7 @@ function pr(e, t = {}, a = se.getAUTH()) {
|
|
|
336
340
|
});
|
|
337
341
|
});
|
|
338
342
|
}
|
|
339
|
-
function
|
|
343
|
+
function Cr(e, t = {}, a) {
|
|
340
344
|
const [r, s] = x.useState({ status: "load" }), i = async (l) => {
|
|
341
345
|
let c = await Xe(e, l, a);
|
|
342
346
|
s(c);
|
|
@@ -349,7 +353,7 @@ let bn = {
|
|
|
349
353
|
"Content-type": "application/json;charset=utf-8",
|
|
350
354
|
ssid: se.getAUTH() || ""
|
|
351
355
|
};
|
|
352
|
-
async function
|
|
356
|
+
async function kr(e, t, a = {}) {
|
|
353
357
|
try {
|
|
354
358
|
return await (await Xe("https://" + e + "/" + t, {
|
|
355
359
|
method: "POST",
|
|
@@ -360,7 +364,7 @@ async function Cr(e, t, a = {}) {
|
|
|
360
364
|
return { status: "error" };
|
|
361
365
|
}
|
|
362
366
|
}
|
|
363
|
-
async function
|
|
367
|
+
async function yr(e, t = {}) {
|
|
364
368
|
try {
|
|
365
369
|
return await (await Xe("https://tb.elcrm.online/v1/" + e, {
|
|
366
370
|
method: "POST",
|
|
@@ -371,7 +375,7 @@ async function kr(e, t = {}) {
|
|
|
371
375
|
return { status: "error" };
|
|
372
376
|
}
|
|
373
377
|
}
|
|
374
|
-
const nn = { audio:
|
|
378
|
+
const nn = { audio: pr, fetch: Xe, modules: vr, remoute: kr, url: gr, telegram: yr, use: Cr };
|
|
375
379
|
var ht = { exports: {} }, De = {};
|
|
376
380
|
/**
|
|
377
381
|
* @license React
|
|
@@ -383,7 +387,7 @@ var ht = { exports: {} }, De = {};
|
|
|
383
387
|
* LICENSE file in the root directory of this source tree.
|
|
384
388
|
*/
|
|
385
389
|
var an;
|
|
386
|
-
function
|
|
390
|
+
function jr() {
|
|
387
391
|
if (an)
|
|
388
392
|
return De;
|
|
389
393
|
an = 1;
|
|
@@ -411,7 +415,7 @@ var Me = {};
|
|
|
411
415
|
* LICENSE file in the root directory of this source tree.
|
|
412
416
|
*/
|
|
413
417
|
var rn;
|
|
414
|
-
function
|
|
418
|
+
function br() {
|
|
415
419
|
return rn || (rn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
416
420
|
var e = x, t = Symbol.for("react.element"), a = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), C = Symbol.iterator, v = "@@iterator";
|
|
417
421
|
function y(o) {
|
|
@@ -1004,25 +1008,25 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1004
1008
|
Me.Fragment = r, Me.jsx = ga, Me.jsxs = pa;
|
|
1005
1009
|
}()), Me;
|
|
1006
1010
|
}
|
|
1007
|
-
process.env.NODE_ENV === "production" ? ht.exports =
|
|
1011
|
+
process.env.NODE_ENV === "production" ? ht.exports = jr() : ht.exports = br();
|
|
1008
1012
|
var n = ht.exports;
|
|
1009
|
-
const
|
|
1010
|
-
notice:
|
|
1011
|
-
error:
|
|
1012
|
-
success:
|
|
1013
|
-
remark:
|
|
1014
|
-
copy:
|
|
1013
|
+
const wr = "_notice_9i5tr_2", Sr = "_error_9i5tr_9", Er = "_success_9i5tr_12", Nr = "_remark_9i5tr_15", Rr = "_copy_9i5tr_18", Tr = {
|
|
1014
|
+
notice: wr,
|
|
1015
|
+
error: Sr,
|
|
1016
|
+
success: Er,
|
|
1017
|
+
remark: Nr,
|
|
1018
|
+
copy: Rr,
|
|
1015
1019
|
"show-notice": "_show-notice_9i5tr_1",
|
|
1016
1020
|
"hide-notice": "_hide-notice_9i5tr_1"
|
|
1017
1021
|
};
|
|
1018
1022
|
let me = {};
|
|
1019
|
-
function
|
|
1023
|
+
function Ir() {
|
|
1020
1024
|
let [e, t] = x.useState([]);
|
|
1021
1025
|
return me.set = (a) => {
|
|
1022
1026
|
t([...e, a]);
|
|
1023
1027
|
}, me.del = (a) => {
|
|
1024
1028
|
t(e.filter((r) => r.key !== a));
|
|
1025
|
-
}, e.length === 0 ? "" : /* @__PURE__ */ n.jsx("ul", { className:
|
|
1029
|
+
}, e.length === 0 ? "" : /* @__PURE__ */ n.jsx("ul", { className: Tr.notice, children: e.map((a) => a.item) });
|
|
1026
1030
|
}
|
|
1027
1031
|
function Ae({ data: e }) {
|
|
1028
1032
|
let [t, a] = x.useState("show");
|
|
@@ -1057,23 +1061,23 @@ function Ae({ data: e }) {
|
|
|
1057
1061
|
/* @__PURE__ */ n.jsx("p", { children: e.text })
|
|
1058
1062
|
] });
|
|
1059
1063
|
}
|
|
1060
|
-
function
|
|
1064
|
+
function Dr(e) {
|
|
1061
1065
|
let t = Date.now(), a = { key: t, ...e };
|
|
1062
1066
|
me.set({ item: /* @__PURE__ */ n.jsx(Ae, { data: a }, t), key: t });
|
|
1063
1067
|
}
|
|
1064
|
-
function
|
|
1068
|
+
function Mr(e) {
|
|
1065
1069
|
let t = Date.now(), a = { key: t, text: e, type: "error" };
|
|
1066
1070
|
me.set({ item: /* @__PURE__ */ n.jsx(Ae, { data: a }, t), key: t });
|
|
1067
1071
|
}
|
|
1068
|
-
function
|
|
1072
|
+
function Fr(e) {
|
|
1069
1073
|
let t = Date.now(), a = { key: t, text: e, type: "success" };
|
|
1070
1074
|
me.set({ item: /* @__PURE__ */ n.jsx(Ae, { data: a }, t), key: t });
|
|
1071
1075
|
}
|
|
1072
|
-
function
|
|
1076
|
+
function Lr(e) {
|
|
1073
1077
|
let t = Date.now(), a = { key: t, text: e, type: "remark" };
|
|
1074
1078
|
me.set({ item: /* @__PURE__ */ n.jsx(Ae, { data: a }, t), key: t });
|
|
1075
1079
|
}
|
|
1076
|
-
function
|
|
1080
|
+
function $r(e) {
|
|
1077
1081
|
let t = Date.now(), a = { key: t, text: e, type: "copy" };
|
|
1078
1082
|
me.set({ item: /* @__PURE__ */ n.jsx(Ae, { data: a }, t), key: t });
|
|
1079
1083
|
}
|
|
@@ -1110,21 +1114,21 @@ pe.success = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "
|
|
|
1110
1114
|
}
|
|
1111
1115
|
)
|
|
1112
1116
|
] });
|
|
1113
|
-
const
|
|
1114
|
-
alerts:
|
|
1115
|
-
menuAnimation:
|
|
1116
|
-
menuItemAnimation:
|
|
1117
|
+
const Pr = "_alerts_1pds5_1", Br = "_menuAnimation_1pds5_1", Or = "_menuItemAnimation_1pds5_1", Ar = "_allert_1pds5_111", Zr = "_al_1pds5_1", xt = {
|
|
1118
|
+
alerts: Pr,
|
|
1119
|
+
menuAnimation: Br,
|
|
1120
|
+
menuItemAnimation: Or,
|
|
1117
1121
|
"--body": "_--body_1pds5_103",
|
|
1118
|
-
allert:
|
|
1122
|
+
allert: Ar,
|
|
1119
1123
|
"--form": "_--form_1pds5_111",
|
|
1120
|
-
al:
|
|
1124
|
+
al: Zr
|
|
1121
1125
|
};
|
|
1122
1126
|
let $e = {};
|
|
1123
|
-
function
|
|
1127
|
+
function zr() {
|
|
1124
1128
|
let [e, t] = x.useState("");
|
|
1125
1129
|
return $e.set = (a) => t(a), $e.del = () => t(""), /* @__PURE__ */ n.jsx(n.Fragment, { children: e });
|
|
1126
1130
|
}
|
|
1127
|
-
const
|
|
1131
|
+
const Gr = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ n.jsxs("div", { className: xt.alerts, children: [
|
|
1128
1132
|
/* @__PURE__ */ n.jsxs("dl", { children: [
|
|
1129
1133
|
/* @__PURE__ */ n.jsx("dt", { children: e.title }),
|
|
1130
1134
|
/* @__PURE__ */ n.jsx("dd", { children: e.text }),
|
|
@@ -1141,10 +1145,10 @@ const zr = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "По
|
|
|
1141
1145
|
] }),
|
|
1142
1146
|
/* @__PURE__ */ n.jsx("div", { className: xt["--body"], onClick: $e.del })
|
|
1143
1147
|
] }));
|
|
1144
|
-
function
|
|
1145
|
-
$e.set(/* @__PURE__ */ n.jsx(
|
|
1148
|
+
function Kr(e, t) {
|
|
1149
|
+
$e.set(/* @__PURE__ */ n.jsx(Gr, { data: e, callback: t }));
|
|
1146
1150
|
}
|
|
1147
|
-
const Pe = { Send:
|
|
1151
|
+
const Pe = { Send: Dr, Error: Mr, Remark: Lr, Success: Fr, Copy: $r }, He = {
|
|
1148
1152
|
Path: Ua,
|
|
1149
1153
|
setPage: Pa,
|
|
1150
1154
|
getPage: fn,
|
|
@@ -1160,7 +1164,7 @@ const Pe = { Send: Ir, Error: Dr, Remark: Fr, Success: Mr, Copy: Lr }, He = {
|
|
|
1160
1164
|
subId: Ga,
|
|
1161
1165
|
getId: Wa
|
|
1162
1166
|
};
|
|
1163
|
-
function
|
|
1167
|
+
function Wr() {
|
|
1164
1168
|
return /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
|
|
1165
1169
|
/* @__PURE__ */ n.jsx(
|
|
1166
1170
|
"path",
|
|
@@ -1195,7 +1199,7 @@ function Kr() {
|
|
|
1195
1199
|
)
|
|
1196
1200
|
] });
|
|
1197
1201
|
}
|
|
1198
|
-
function
|
|
1202
|
+
function Ur() {
|
|
1199
1203
|
return /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
|
|
1200
1204
|
/* @__PURE__ */ n.jsx(
|
|
1201
1205
|
"path",
|
|
@@ -1224,7 +1228,7 @@ function Wr() {
|
|
|
1224
1228
|
)
|
|
1225
1229
|
] });
|
|
1226
1230
|
}
|
|
1227
|
-
function
|
|
1231
|
+
function Vr() {
|
|
1228
1232
|
return /* @__PURE__ */ n.jsx("svg", { viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ n.jsx(
|
|
1229
1233
|
"path",
|
|
1230
1234
|
{
|
|
@@ -1237,11 +1241,11 @@ function Ur() {
|
|
|
1237
1241
|
}
|
|
1238
1242
|
) });
|
|
1239
1243
|
}
|
|
1240
|
-
const
|
|
1241
|
-
n:
|
|
1244
|
+
const Yr = "_n_euuvm_1", Hr = {
|
|
1245
|
+
n: Yr
|
|
1242
1246
|
};
|
|
1243
1247
|
let Ze = {}, Fe = [];
|
|
1244
|
-
const
|
|
1248
|
+
const qr = (e, t) => {
|
|
1245
1249
|
switch (t.type) {
|
|
1246
1250
|
case "open":
|
|
1247
1251
|
return {
|
|
@@ -1293,27 +1297,27 @@ const Hr = (e, t) => {
|
|
|
1293
1297
|
throw new Error();
|
|
1294
1298
|
}
|
|
1295
1299
|
};
|
|
1296
|
-
function qr(e) {
|
|
1297
|
-
Ze.fn({ action: "add", data: e });
|
|
1298
|
-
}
|
|
1299
1300
|
function Jr(e) {
|
|
1300
1301
|
Ze.fn({ action: "add", data: e });
|
|
1301
1302
|
}
|
|
1302
1303
|
function Xr(e) {
|
|
1303
|
-
Ze.fn({ action: "
|
|
1304
|
+
Ze.fn({ action: "add", data: e });
|
|
1304
1305
|
}
|
|
1305
1306
|
function Qr(e) {
|
|
1307
|
+
Ze.fn({ action: "new", data: e });
|
|
1308
|
+
}
|
|
1309
|
+
function es(e) {
|
|
1306
1310
|
Ze.fn = e;
|
|
1307
1311
|
}
|
|
1308
|
-
function
|
|
1309
|
-
const [e, t] = x.useReducer(
|
|
1312
|
+
function ts() {
|
|
1313
|
+
const [e, t] = x.useReducer(qr, {
|
|
1310
1314
|
open: !1,
|
|
1311
1315
|
active: !1,
|
|
1312
1316
|
news: [],
|
|
1313
1317
|
take: {}
|
|
1314
1318
|
});
|
|
1315
1319
|
ce.useListener("bell", async (r) => {
|
|
1316
|
-
}),
|
|
1320
|
+
}), es(async (r) => {
|
|
1317
1321
|
switch (r.action) {
|
|
1318
1322
|
case "add":
|
|
1319
1323
|
Fe.push(r.data);
|
|
@@ -1377,11 +1381,11 @@ function es() {
|
|
|
1377
1381
|
/* @__PURE__ */ n.jsx(
|
|
1378
1382
|
"div",
|
|
1379
1383
|
{
|
|
1380
|
-
className:
|
|
1384
|
+
className: Hr.n,
|
|
1381
1385
|
onClick: () => {
|
|
1382
1386
|
t({ type: "open", open: !0 });
|
|
1383
1387
|
},
|
|
1384
|
-
children: e.active ? /* @__PURE__ */ n.jsx(
|
|
1388
|
+
children: e.active ? /* @__PURE__ */ n.jsx(Ur, {}) : /* @__PURE__ */ n.jsx(Wr, {})
|
|
1385
1389
|
}
|
|
1386
1390
|
),
|
|
1387
1391
|
e.open ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
@@ -1396,7 +1400,7 @@ function es() {
|
|
|
1396
1400
|
),
|
|
1397
1401
|
/* @__PURE__ */ n.jsxs("div", { className: "notify-m", children: [
|
|
1398
1402
|
/* @__PURE__ */ n.jsx("div", { className: "notify-l", children: e.news.map((r, s) => /* @__PURE__ */ n.jsx(
|
|
1399
|
-
|
|
1403
|
+
ns,
|
|
1400
1404
|
{
|
|
1401
1405
|
data: r,
|
|
1402
1406
|
dispatch: t
|
|
@@ -1408,7 +1412,7 @@ function es() {
|
|
|
1408
1412
|
] }) : ""
|
|
1409
1413
|
] });
|
|
1410
1414
|
}
|
|
1411
|
-
const
|
|
1415
|
+
const ns = ({ data: e, dispatch: t }) => {
|
|
1412
1416
|
let a = async (r) => {
|
|
1413
1417
|
t({ type: "hide", id: r.id }), await ce.Send({
|
|
1414
1418
|
type: "module",
|
|
@@ -1425,16 +1429,16 @@ const ts = ({ data: e, dispatch: t }) => {
|
|
|
1425
1429
|
] }),
|
|
1426
1430
|
/* @__PURE__ */ n.jsx("div", { className: "--hide", "data-icon": "F038", onClick: () => a(e), children: " " })
|
|
1427
1431
|
] });
|
|
1428
|
-
},
|
|
1429
|
-
function
|
|
1432
|
+
}, as = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";
|
|
1433
|
+
function rs(e) {
|
|
1430
1434
|
return new SharedWorker(
|
|
1431
|
-
"data:text/javascript;base64," +
|
|
1435
|
+
"data:text/javascript;base64," + as,
|
|
1432
1436
|
{
|
|
1433
1437
|
name: e == null ? void 0 : e.name
|
|
1434
1438
|
}
|
|
1435
1439
|
);
|
|
1436
1440
|
}
|
|
1437
|
-
function
|
|
1441
|
+
function ss(e) {
|
|
1438
1442
|
let t = {}, a = {};
|
|
1439
1443
|
e.data.forEach((s) => {
|
|
1440
1444
|
t[s.id] = { s: s.v, n: s.a }, a[s.id] = s;
|
|
@@ -1442,7 +1446,7 @@ function rs(e) {
|
|
|
1442
1446
|
let r = { ...ke(), 901: t };
|
|
1443
1447
|
pn(a), Oe(r);
|
|
1444
1448
|
}
|
|
1445
|
-
function
|
|
1449
|
+
function is() {
|
|
1446
1450
|
let e = vn(), t = {};
|
|
1447
1451
|
return Object.keys(e).forEach((a) => {
|
|
1448
1452
|
t[e[a].id] = {}, t[e[a].id].name = e[a].a;
|
|
@@ -1458,10 +1462,10 @@ let ie = {}, U = {}, Ye = [
|
|
|
1458
1462
|
"info",
|
|
1459
1463
|
"job"
|
|
1460
1464
|
];
|
|
1461
|
-
function
|
|
1465
|
+
function os() {
|
|
1462
1466
|
const [e, t] = x.useState(!1), [a, r] = x.useState(!1);
|
|
1463
1467
|
function s(i) {
|
|
1464
|
-
const l = new
|
|
1468
|
+
const l = new rs();
|
|
1465
1469
|
ie.laodData = (c) => {
|
|
1466
1470
|
let _ = Ye.indexOf(c);
|
|
1467
1471
|
_ >= 0 && Ye.splice(_, 1), Ye.length === 0 && t(!0);
|
|
@@ -1485,8 +1489,8 @@ function is() {
|
|
|
1485
1489
|
U.module = (e) => {
|
|
1486
1490
|
ie[e.listen] !== void 0 && (ie[e.listen](e), delete ie[e.listen]);
|
|
1487
1491
|
};
|
|
1488
|
-
U.bell =
|
|
1489
|
-
U.company =
|
|
1492
|
+
U.bell = Qr;
|
|
1493
|
+
U.company = ss;
|
|
1490
1494
|
U.info = (e) => {
|
|
1491
1495
|
let t = {};
|
|
1492
1496
|
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), xn(e.data.menu);
|
|
@@ -1557,12 +1561,12 @@ U.setting = (e) => {
|
|
|
1557
1561
|
};
|
|
1558
1562
|
U.app = () => {
|
|
1559
1563
|
};
|
|
1560
|
-
const
|
|
1564
|
+
const ls = (e, t) => {
|
|
1561
1565
|
ie[e] = t;
|
|
1562
|
-
},
|
|
1566
|
+
}, cs = (e, t) => {
|
|
1563
1567
|
ie[e](t);
|
|
1564
1568
|
};
|
|
1565
|
-
function
|
|
1569
|
+
function ds(e) {
|
|
1566
1570
|
let t = "_" + String(Math.random()).substring(2, 7);
|
|
1567
1571
|
return new Promise((a) => {
|
|
1568
1572
|
ie[t] = (r) => {
|
|
@@ -1570,8 +1574,8 @@ function cs(e) {
|
|
|
1570
1574
|
}, e = { ...e, listen: t }, e.type = "modules", ie.send(e);
|
|
1571
1575
|
});
|
|
1572
1576
|
}
|
|
1573
|
-
const ce = { useConnect:
|
|
1574
|
-
function
|
|
1577
|
+
const ce = { useConnect: os, useListener: ls, setListener: cs, Send: ds };
|
|
1578
|
+
function _s(e, t) {
|
|
1575
1579
|
t === void 0 ? (t = e, e = /* @__PURE__ */ new Date()) : e = new Date(e);
|
|
1576
1580
|
let a = {
|
|
1577
1581
|
yyyy: e.getFullYear(),
|
|
@@ -1588,7 +1592,7 @@ function ds(e, t) {
|
|
|
1588
1592
|
t = t.replace(r, a[r]);
|
|
1589
1593
|
return t;
|
|
1590
1594
|
}
|
|
1591
|
-
function
|
|
1595
|
+
function us(e) {
|
|
1592
1596
|
let t = [
|
|
1593
1597
|
"Января",
|
|
1594
1598
|
"Февраля",
|
|
@@ -1608,7 +1612,7 @@ function _s(e) {
|
|
|
1608
1612
|
name: a.getDate() + " " + t[a.getMonth()]
|
|
1609
1613
|
};
|
|
1610
1614
|
}
|
|
1611
|
-
const
|
|
1615
|
+
const ms = (e) => {
|
|
1612
1616
|
function t($, P) {
|
|
1613
1617
|
var E, R, T;
|
|
1614
1618
|
$ = $ ?? "", P = P ?? 1;
|
|
@@ -1706,18 +1710,18 @@ const us = (e) => {
|
|
|
1706
1710
|
y.push(r.null);
|
|
1707
1711
|
return y.push(a(_, r.ur)), y.push(c + " " + a(c, r.uc)), y.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
|
|
1708
1712
|
};
|
|
1709
|
-
function
|
|
1713
|
+
function fs(e) {
|
|
1710
1714
|
let t = -1, a = [" kB", " MB", " GB", " TB", "PB", "EB", "ZB", "YB"];
|
|
1711
1715
|
do
|
|
1712
1716
|
e = e / 1024, t++;
|
|
1713
1717
|
while (e > 1024);
|
|
1714
1718
|
return Math.max(e, 0.1).toFixed(1) + a[t];
|
|
1715
1719
|
}
|
|
1716
|
-
function
|
|
1720
|
+
function hs(e) {
|
|
1717
1721
|
let t = {};
|
|
1718
1722
|
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];
|
|
1719
1723
|
}
|
|
1720
|
-
function
|
|
1724
|
+
function xs(e, t, a, r) {
|
|
1721
1725
|
let s = {
|
|
1722
1726
|
sexM: "m",
|
|
1723
1727
|
sexF: "f",
|
|
@@ -1933,7 +1937,7 @@ function hs(e, t, a, r) {
|
|
|
1933
1937
|
}
|
|
1934
1938
|
return s.ln = e, s.fn = t || "", s.mn = a || "", s.sex = r || s.getSex(), s;
|
|
1935
1939
|
}
|
|
1936
|
-
function
|
|
1940
|
+
function gs(e) {
|
|
1937
1941
|
let t = e.split(" ");
|
|
1938
1942
|
switch (t.length) {
|
|
1939
1943
|
case 2:
|
|
@@ -1944,7 +1948,7 @@ function xs(e) {
|
|
|
1944
1948
|
return e;
|
|
1945
1949
|
}
|
|
1946
1950
|
}
|
|
1947
|
-
function
|
|
1951
|
+
function ps(e) {
|
|
1948
1952
|
return {
|
|
1949
1953
|
1: { val: "01", name: "Январь", names: "Января", abc: "Янв" },
|
|
1950
1954
|
2: { val: "02", name: "Февраль", names: "Февраля", abc: "Февр" },
|
|
@@ -1960,100 +1964,100 @@ function gs(e) {
|
|
|
1960
1964
|
12: { val: "12", name: "Декабрь", names: "Декабря", abc: "Дек" }
|
|
1961
1965
|
}[e];
|
|
1962
1966
|
}
|
|
1963
|
-
function
|
|
1967
|
+
function vs(e) {
|
|
1964
1968
|
return parseFloat(e).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, "$1 ");
|
|
1965
1969
|
}
|
|
1966
|
-
function
|
|
1970
|
+
function Cs(e, t) {
|
|
1967
1971
|
let a = t + "";
|
|
1968
1972
|
for (; a.length < e; )
|
|
1969
1973
|
a = "0" + a;
|
|
1970
1974
|
return a;
|
|
1971
1975
|
}
|
|
1972
|
-
function
|
|
1976
|
+
function ks(e, t, a) {
|
|
1973
1977
|
let r = t / e * a;
|
|
1974
1978
|
return (typeof r != "number" || r === 1 / 0) && (r = 0), parseFloat(r).toFixed(1);
|
|
1975
1979
|
}
|
|
1976
|
-
function
|
|
1980
|
+
function ys(e) {
|
|
1977
1981
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
1978
1982
|
}
|
|
1979
|
-
function
|
|
1983
|
+
function js(e, t) {
|
|
1980
1984
|
e = Math.abs(e) % 100;
|
|
1981
1985
|
let a = e % 10;
|
|
1982
1986
|
return e > 10 && e < 20 ? t[2] : a > 1 && a < 5 ? t[1] : a === 1 ? t[0] : t[2];
|
|
1983
1987
|
}
|
|
1984
|
-
function
|
|
1988
|
+
function bs(e, t, a) {
|
|
1985
1989
|
return ke(e, t) ? ke(e, t).n : a || "";
|
|
1986
1990
|
}
|
|
1987
1991
|
const K = {
|
|
1988
|
-
Date:
|
|
1989
|
-
MoneyString:
|
|
1990
|
-
DateSort:
|
|
1991
|
-
Size:
|
|
1992
|
-
TypeFiles:
|
|
1993
|
-
Cases:
|
|
1994
|
-
Initials:
|
|
1995
|
-
Month:
|
|
1996
|
-
Money:
|
|
1997
|
-
Number:
|
|
1998
|
-
Percent:
|
|
1999
|
-
CapitalizeFirstLetter:
|
|
2000
|
-
DeclensionWord:
|
|
2001
|
-
Select:
|
|
1992
|
+
Date: _s,
|
|
1993
|
+
MoneyString: ms,
|
|
1994
|
+
DateSort: us,
|
|
1995
|
+
Size: fs,
|
|
1996
|
+
TypeFiles: hs,
|
|
1997
|
+
Cases: xs,
|
|
1998
|
+
Initials: gs,
|
|
1999
|
+
Month: ps,
|
|
2000
|
+
Money: vs,
|
|
2001
|
+
Number: Cs,
|
|
2002
|
+
Percent: ks,
|
|
2003
|
+
CapitalizeFirstLetter: ys,
|
|
2004
|
+
DeclensionWord: js,
|
|
2005
|
+
Select: bs
|
|
2002
2006
|
};
|
|
2003
|
-
function
|
|
2007
|
+
function ws({ children: e }) {
|
|
2004
2008
|
return /* @__PURE__ */ n.jsx("div", { className: "l", children: /* @__PURE__ */ n.jsx("ul", { children: e }) });
|
|
2005
2009
|
}
|
|
2006
|
-
const
|
|
2007
|
-
white:
|
|
2008
|
-
black:
|
|
2009
|
-
shake:
|
|
2010
|
-
modal:
|
|
2011
|
-
o:
|
|
2012
|
-
w:
|
|
2013
|
-
h:
|
|
2014
|
-
l:
|
|
2015
|
-
t:
|
|
2016
|
-
m:
|
|
2017
|
-
x:
|
|
2018
|
-
s:
|
|
2019
|
-
c:
|
|
2020
|
-
f:
|
|
2021
|
-
btn:
|
|
2022
|
-
g:
|
|
2010
|
+
const Ss = "_white_11p39_14", Es = "_black_11p39_26", Ns = "_shake_11p39_1", Rs = "_modal_11p39_73", Ts = "_o_11p39_83", Is = "_w_11p39_14", Ds = "_h_11p39_107", Ms = "_l_11p39_121", Fs = "_t_11p39_159", Ls = "_m_11p39_73", $s = "_x_11p39_167", Ps = "_s_11p39_177", Bs = "_c_11p39_182", Os = "_f_11p39_187", As = "_btn_11p39_230", Zs = "_g_11p39_243", zs = "_confirm_11p39_322", Gs = "_cancel_11p39_327", Ks = "_disabled_11p39_332", Ws = "_active_11p39_389", Us = "_coincidence_11p39_395", Vs = "_sa_11p39_431", Ys = "_ss_11p39_435", Hs = "_sm_11p39_439", qs = "_sl_11p39_443", Js = "_sx_11p39_447", Xs = "_sf_11p39_451", re = {
|
|
2011
|
+
white: Ss,
|
|
2012
|
+
black: Es,
|
|
2013
|
+
shake: Ns,
|
|
2014
|
+
modal: Rs,
|
|
2015
|
+
o: Ts,
|
|
2016
|
+
w: Is,
|
|
2017
|
+
h: Ds,
|
|
2018
|
+
l: Ms,
|
|
2019
|
+
t: Fs,
|
|
2020
|
+
m: Ls,
|
|
2021
|
+
x: $s,
|
|
2022
|
+
s: Ps,
|
|
2023
|
+
c: Bs,
|
|
2024
|
+
f: Os,
|
|
2025
|
+
btn: As,
|
|
2026
|
+
g: Zs,
|
|
2023
2027
|
"size-a": "_size-a_11p39_296",
|
|
2024
2028
|
"size-s": "_size-s_11p39_300",
|
|
2025
2029
|
"size-m": "_size-m_11p39_304",
|
|
2026
2030
|
"size-l": "_size-l_11p39_308",
|
|
2027
2031
|
"size-x": "_size-x_11p39_312",
|
|
2028
2032
|
"size-f": "_size-f_11p39_316",
|
|
2029
|
-
confirm:
|
|
2030
|
-
cancel:
|
|
2031
|
-
disabled:
|
|
2033
|
+
confirm: zs,
|
|
2034
|
+
cancel: Gs,
|
|
2035
|
+
disabled: Ks,
|
|
2032
2036
|
await: "_await_11p39_339",
|
|
2033
|
-
active:
|
|
2034
|
-
coincidence:
|
|
2035
|
-
sa:
|
|
2036
|
-
ss:
|
|
2037
|
-
sm:
|
|
2038
|
-
sl:
|
|
2039
|
-
sx:
|
|
2040
|
-
sf:
|
|
2037
|
+
active: Ws,
|
|
2038
|
+
coincidence: Us,
|
|
2039
|
+
sa: Vs,
|
|
2040
|
+
ss: Ys,
|
|
2041
|
+
sm: Hs,
|
|
2042
|
+
sl: qs,
|
|
2043
|
+
sx: Js,
|
|
2044
|
+
sf: Xs
|
|
2041
2045
|
};
|
|
2042
|
-
function
|
|
2046
|
+
function Qs({ children: e }) {
|
|
2043
2047
|
return /* @__PURE__ */ n.jsx("div", { className: re.s, children: e });
|
|
2044
2048
|
}
|
|
2045
|
-
function
|
|
2049
|
+
function ei({ children: e, className: t }) {
|
|
2046
2050
|
let a = {};
|
|
2047
2051
|
return t && (a.className = t), /* @__PURE__ */ n.jsx("div", { "data-form": "outline", ...a, children: /* @__PURE__ */ n.jsx("ul", { children: e }) });
|
|
2048
2052
|
}
|
|
2049
|
-
function
|
|
2053
|
+
function ti({ children: e }) {
|
|
2050
2054
|
return /* @__PURE__ */ n.jsx("div", { className: re.c, children: e });
|
|
2051
2055
|
}
|
|
2052
|
-
const
|
|
2053
|
-
btn:
|
|
2054
|
-
confirm:
|
|
2056
|
+
const ni = "_btn_1hz2s_6", ai = "_confirm_1hz2s_19", sn = {
|
|
2057
|
+
btn: ni,
|
|
2058
|
+
confirm: ai
|
|
2055
2059
|
};
|
|
2056
|
-
function
|
|
2060
|
+
function ri({ onClick: e, onSend: t, label: a, onRef: r }) {
|
|
2057
2061
|
let [s, i] = x.useState(!1);
|
|
2058
2062
|
const l = () => {
|
|
2059
2063
|
if (e)
|
|
@@ -2071,7 +2075,7 @@ function ai({ onClick: e, onSend: t, label: a, onRef: r }) {
|
|
|
2071
2075
|
);
|
|
2072
2076
|
}
|
|
2073
2077
|
let Ce = {};
|
|
2074
|
-
function
|
|
2078
|
+
function si({ config: e }) {
|
|
2075
2079
|
let [t, a] = x.useState([]);
|
|
2076
2080
|
return Ce.x = (r) => {
|
|
2077
2081
|
r || a([]);
|
|
@@ -2079,7 +2083,7 @@ function ri({ config: e }) {
|
|
|
2079
2083
|
a([...t, r]);
|
|
2080
2084
|
}, /* @__PURE__ */ n.jsx(n.Fragment, { children: t.map((r) => r) });
|
|
2081
2085
|
}
|
|
2082
|
-
function
|
|
2086
|
+
function ii({
|
|
2083
2087
|
title: e,
|
|
2084
2088
|
children: t,
|
|
2085
2089
|
button: a,
|
|
@@ -2149,7 +2153,7 @@ function si({
|
|
|
2149
2153
|
)
|
|
2150
2154
|
] }),
|
|
2151
2155
|
t,
|
|
2152
|
-
a !== void 0 ? /* @__PURE__ */ n.jsx(
|
|
2156
|
+
a !== void 0 ? /* @__PURE__ */ n.jsx(ri, { label: a.label, onSend: d }) : ""
|
|
2153
2157
|
]
|
|
2154
2158
|
}
|
|
2155
2159
|
)
|
|
@@ -2157,13 +2161,13 @@ function si({
|
|
|
2157
2161
|
}
|
|
2158
2162
|
) : "" });
|
|
2159
2163
|
}
|
|
2160
|
-
function
|
|
2161
|
-
Ce.add(/* @__PURE__ */ n.jsx(
|
|
2164
|
+
function oi(e) {
|
|
2165
|
+
Ce.add(/* @__PURE__ */ n.jsx(li, { children: e }, String(Date.now())));
|
|
2162
2166
|
}
|
|
2163
|
-
function
|
|
2167
|
+
function li({ children: e }) {
|
|
2164
2168
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: e });
|
|
2165
2169
|
}
|
|
2166
|
-
function
|
|
2170
|
+
function ci(e) {
|
|
2167
2171
|
if (e.target.classList[0] !== "modal")
|
|
2168
2172
|
return;
|
|
2169
2173
|
let t = e.target.children[0];
|
|
@@ -2171,29 +2175,29 @@ function li(e) {
|
|
|
2171
2175
|
t.setAttribute("shake", !1);
|
|
2172
2176
|
}, 1e3);
|
|
2173
2177
|
}
|
|
2174
|
-
function
|
|
2178
|
+
function di({ type: e, name: t, params: a }) {
|
|
2175
2179
|
let [r, s] = x.useState(null);
|
|
2176
2180
|
return x.useEffect(() => {
|
|
2177
2181
|
Ce.config(e, t, a, s);
|
|
2178
2182
|
}, [a.id]), /* @__PURE__ */ n.jsx(n.Fragment, { children: r });
|
|
2179
2183
|
}
|
|
2180
|
-
function
|
|
2184
|
+
function _i(e, t, a) {
|
|
2181
2185
|
Ce.config(e, t, a);
|
|
2182
2186
|
}
|
|
2183
|
-
function
|
|
2187
|
+
function ui(e) {
|
|
2184
2188
|
Ce.x(e);
|
|
2185
2189
|
}
|
|
2186
2190
|
const Et = {
|
|
2187
|
-
List:
|
|
2188
|
-
Scroll:
|
|
2189
|
-
Main:
|
|
2190
|
-
Add:
|
|
2191
|
-
Icon:
|
|
2192
|
-
Open:
|
|
2193
|
-
Shake:
|
|
2194
|
-
Form:
|
|
2195
|
-
Center:
|
|
2196
|
-
Close:
|
|
2191
|
+
List: ws,
|
|
2192
|
+
Scroll: Qs,
|
|
2193
|
+
Main: ii,
|
|
2194
|
+
Add: oi,
|
|
2195
|
+
Icon: di,
|
|
2196
|
+
Open: _i,
|
|
2197
|
+
Shake: ci,
|
|
2198
|
+
Form: ei,
|
|
2199
|
+
Center: ti,
|
|
2200
|
+
Close: ui
|
|
2197
2201
|
};
|
|
2198
2202
|
function wn({ text: e, type: t, button: a }) {
|
|
2199
2203
|
let [r, s] = x.useState(!1), i = { active: t };
|
|
@@ -2227,22 +2231,22 @@ function wn({ text: e, type: t, button: a }) {
|
|
|
2227
2231
|
a && /* @__PURE__ */ n.jsx("button", { onClick: l, children: a.label })
|
|
2228
2232
|
] });
|
|
2229
2233
|
}
|
|
2230
|
-
const
|
|
2231
|
-
h:
|
|
2232
|
-
g:
|
|
2233
|
-
hr:
|
|
2234
|
-
hl:
|
|
2235
|
-
t:
|
|
2236
|
-
s:
|
|
2237
|
-
u:
|
|
2238
|
-
o:
|
|
2239
|
-
l:
|
|
2240
|
-
hh:
|
|
2241
|
-
c:
|
|
2242
|
-
loadingB:
|
|
2243
|
-
m:
|
|
2244
|
-
ul:
|
|
2245
|
-
f:
|
|
2234
|
+
const mi = "_h_1usnu_1", fi = "_g_1usnu_11", hi = "_hr_1usnu_16", xi = "_hl_1usnu_28", gi = "_t_1usnu_40", pi = "_s_1usnu_60", vi = "_u_1usnu_69", Ci = "_o_1usnu_76", ki = "_l_1usnu_105", yi = "_hh_1usnu_115", ji = "_c_1usnu_128", bi = "_loadingB_1usnu_1", wi = "_m_1usnu_180", Si = "_ul_1usnu_196", Ei = "_f_1usnu_226", J = {
|
|
2235
|
+
h: mi,
|
|
2236
|
+
g: fi,
|
|
2237
|
+
hr: hi,
|
|
2238
|
+
hl: xi,
|
|
2239
|
+
t: gi,
|
|
2240
|
+
s: pi,
|
|
2241
|
+
u: vi,
|
|
2242
|
+
o: Ci,
|
|
2243
|
+
l: ki,
|
|
2244
|
+
hh: yi,
|
|
2245
|
+
c: ji,
|
|
2246
|
+
loadingB: bi,
|
|
2247
|
+
m: wi,
|
|
2248
|
+
ul: Si,
|
|
2249
|
+
f: Ei
|
|
2246
2250
|
}, on = ({ title: e, left: t, right: a, children: r }) => /* @__PURE__ */ n.jsxs("div", { className: J.h, children: [
|
|
2247
2251
|
/* @__PURE__ */ n.jsx("div", { className: J.t, children: e }),
|
|
2248
2252
|
t && /* @__PURE__ */ n.jsx("div", { className: J.hl, children: t }),
|
|
@@ -2255,26 +2259,26 @@ const ui = "_h_1usnu_1", mi = "_g_1usnu_11", fi = "_hr_1usnu_16", hi = "_hl_1usn
|
|
|
2255
2259
|
function _n({ children: e }) {
|
|
2256
2260
|
return /* @__PURE__ */ n.jsx("div", { className: J.g, children: e });
|
|
2257
2261
|
}
|
|
2258
|
-
const
|
|
2262
|
+
const Ni = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("div", { className: [J.o, t].join(" "), children: [
|
|
2259
2263
|
a && /* @__PURE__ */ n.jsx("div", { className: J.hh, children: a }),
|
|
2260
2264
|
e
|
|
2261
|
-
] }),
|
|
2265
|
+
] }), Ri = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: J.u, children: e }), Ti = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: J.c, children: e }), Ii = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: J.m, children: e }), un = {
|
|
2262
2266
|
Header: on,
|
|
2263
2267
|
Section: cn,
|
|
2264
2268
|
Group: _n,
|
|
2265
2269
|
Form: dn,
|
|
2266
2270
|
List: ln,
|
|
2267
2271
|
A: wn,
|
|
2268
|
-
U:
|
|
2272
|
+
U: Ri,
|
|
2269
2273
|
G: _n,
|
|
2270
|
-
C:
|
|
2274
|
+
C: Ti,
|
|
2271
2275
|
L: ln,
|
|
2272
|
-
O:
|
|
2276
|
+
O: Ni,
|
|
2273
2277
|
S: cn,
|
|
2274
2278
|
H: on,
|
|
2275
|
-
M:
|
|
2279
|
+
M: Ii,
|
|
2276
2280
|
F: dn
|
|
2277
|
-
},
|
|
2281
|
+
}, Di = (e, t) => {
|
|
2278
2282
|
switch (t.type) {
|
|
2279
2283
|
case "load":
|
|
2280
2284
|
return {
|
|
@@ -2335,14 +2339,14 @@ const Ei = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
|
|
|
2335
2339
|
default:
|
|
2336
2340
|
return e;
|
|
2337
2341
|
}
|
|
2338
|
-
},
|
|
2342
|
+
}, Mi = () => ({
|
|
2339
2343
|
load: !0,
|
|
2340
2344
|
list: [],
|
|
2341
2345
|
name: "Файлы",
|
|
2342
2346
|
add: !1,
|
|
2343
2347
|
search: !1,
|
|
2344
2348
|
revers: !0
|
|
2345
|
-
}),
|
|
2349
|
+
}), Fi = () => {
|
|
2346
2350
|
let [e, t] = x.useState([]);
|
|
2347
2351
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ n.jsxs("div", { className: "upload view", children: [
|
|
2348
2352
|
/* @__PURE__ */ n.jsxs("div", { className: "--head", children: [
|
|
@@ -2358,17 +2362,17 @@ const Ei = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
|
|
|
2358
2362
|
] }),
|
|
2359
2363
|
/* @__PURE__ */ n.jsx("div", { className: "--list", children: e.map((a) => a) })
|
|
2360
2364
|
] }) : "" });
|
|
2361
|
-
},
|
|
2365
|
+
}, Li = ({
|
|
2362
2366
|
id: e,
|
|
2363
2367
|
name: t,
|
|
2364
2368
|
listen: a,
|
|
2365
2369
|
dir: r
|
|
2366
2370
|
}) => {
|
|
2367
2371
|
t = t || "Файлы";
|
|
2368
|
-
const [s, i] = x.useReducer(
|
|
2372
|
+
const [s, i] = x.useReducer(Di, {}, Mi), l = () => {
|
|
2369
2373
|
Et.Add(
|
|
2370
2374
|
/* @__PURE__ */ n.jsx(
|
|
2371
|
-
|
|
2375
|
+
$i,
|
|
2372
2376
|
{
|
|
2373
2377
|
dir: r,
|
|
2374
2378
|
dispatch: i,
|
|
@@ -2417,9 +2421,9 @@ const Ei = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
|
|
|
2417
2421
|
/* @__PURE__ */ n.jsx("i", {}),
|
|
2418
2422
|
/* @__PURE__ */ n.jsx("i", {}),
|
|
2419
2423
|
/* @__PURE__ */ n.jsx("i", {})
|
|
2420
|
-
] }) : s.list.length === 0 ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : s.list.map((c, _) => /* @__PURE__ */ n.jsx(
|
|
2424
|
+
] }) : s.list.length === 0 ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : s.list.map((c, _) => /* @__PURE__ */ n.jsx(Pi, { dispatch: i, data: c }, _)) })
|
|
2421
2425
|
] });
|
|
2422
|
-
},
|
|
2426
|
+
}, $i = ({ id: e, dir: t, dispatch: a }) => {
|
|
2423
2427
|
let [r, s] = x.useState(!0), i = x.useRef(null), l = (d) => {
|
|
2424
2428
|
d.preventDefault(), d.stopPropagation();
|
|
2425
2429
|
}, c = (d) => {
|
|
@@ -2468,7 +2472,7 @@ const Ei = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
|
|
|
2468
2472
|
},
|
|
2469
2473
|
(/* @__PURE__ */ new Date()).getTime()
|
|
2470
2474
|
) }) : "" });
|
|
2471
|
-
},
|
|
2475
|
+
}, Pi = ({ data: e, dispatch: t }) => {
|
|
2472
2476
|
let a = async () => {
|
|
2473
2477
|
let i = await (await fetch(nn.url().files + "/yandex/data/" + e.id, {
|
|
2474
2478
|
headers: {
|
|
@@ -2520,7 +2524,7 @@ const Ei = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
|
|
|
2520
2524
|
let A = {};
|
|
2521
2525
|
A.list = rr();
|
|
2522
2526
|
A.active = null;
|
|
2523
|
-
const
|
|
2527
|
+
const Bi = () => {
|
|
2524
2528
|
var s;
|
|
2525
2529
|
let [e, t] = x.useState([]), [a, r] = x.useState(Nt.getSetting("s03"));
|
|
2526
2530
|
return x.useEffect(() => {
|
|
@@ -2558,7 +2562,7 @@ const Pi = () => {
|
|
|
2558
2562
|
"bookmarks",
|
|
2559
2563
|
a === 1 && e.length !== 0 ? "bottom" : ""
|
|
2560
2564
|
), a !== 0 ? /* @__PURE__ */ n.jsx(n.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ n.jsx("div", { className: "bookmarks", children: e.map((i) => i.item) }) : "" }) : "";
|
|
2561
|
-
},
|
|
2565
|
+
}, Oi = ({ id: e, type: t, name: a }) => {
|
|
2562
2566
|
let r = t + "-" + e, [s, i] = x.useState(
|
|
2563
2567
|
A.list[r] !== void 0
|
|
2564
2568
|
);
|
|
@@ -2586,7 +2590,7 @@ const Pi = () => {
|
|
|
2586
2590
|
He.setId(e.id);
|
|
2587
2591
|
};
|
|
2588
2592
|
return /* @__PURE__ */ n.jsx("span", { onContextMenu: t, onClick: a, children: e.name });
|
|
2589
|
-
},
|
|
2593
|
+
}, Ai = (e) => {
|
|
2590
2594
|
A.active(e);
|
|
2591
2595
|
}, O = {}, pt = {}, b = {};
|
|
2592
2596
|
b.config = { iceServers: [{ url: "stun:stun.l.google.com:19302" }] };
|
|
@@ -2733,7 +2737,7 @@ O.Run = async (e) => {
|
|
|
2733
2737
|
O[e.data.type] && O[e.data.type](e.data);
|
|
2734
2738
|
};
|
|
2735
2739
|
let Le = {};
|
|
2736
|
-
function
|
|
2740
|
+
function Zi() {
|
|
2737
2741
|
let [e, t] = x.useState([]), a = x.useRef(null);
|
|
2738
2742
|
return x.useEffect(() => {
|
|
2739
2743
|
}, []), Le.set = (r) => {
|
|
@@ -2747,14 +2751,14 @@ function Ai() {
|
|
|
2747
2751
|
/* @__PURE__ */ n.jsx("audio", { id: "audio", ref: a, autoPlay: !0, muted: !0 })
|
|
2748
2752
|
] });
|
|
2749
2753
|
}
|
|
2750
|
-
function
|
|
2754
|
+
function zi(e, t) {
|
|
2751
2755
|
let a = (/* @__PURE__ */ new Date()).getTime();
|
|
2752
2756
|
Le.set({
|
|
2753
|
-
item: /* @__PURE__ */ n.jsx(
|
|
2757
|
+
item: /* @__PURE__ */ n.jsx(Gi, { type: t, id: e }, a),
|
|
2754
2758
|
key: a
|
|
2755
2759
|
});
|
|
2756
2760
|
}
|
|
2757
|
-
function
|
|
2761
|
+
function Gi({ id: e, type: t }) {
|
|
2758
2762
|
const [a, r] = x.useState({}), [s, i] = x.useState(t);
|
|
2759
2763
|
x.useEffect(() => {
|
|
2760
2764
|
r(se.getSelect("user")[e]);
|
|
@@ -2855,13 +2859,13 @@ function zi({ id: e, type: t }) {
|
|
|
2855
2859
|
] }) });
|
|
2856
2860
|
}
|
|
2857
2861
|
const vt = {};
|
|
2858
|
-
function
|
|
2862
|
+
function Ki(e) {
|
|
2859
2863
|
vt.add(e);
|
|
2860
2864
|
}
|
|
2861
|
-
function
|
|
2865
|
+
function Wi({ color: e, size: t, name: a }) {
|
|
2862
2866
|
return /* @__PURE__ */ n.jsx("svg", { width: t, height: t, color: e, children: /* @__PURE__ */ n.jsx("use", { href: `#${a}` }) });
|
|
2863
2867
|
}
|
|
2864
|
-
function
|
|
2868
|
+
function Ui() {
|
|
2865
2869
|
let [e, t] = x.useState([]);
|
|
2866
2870
|
if (vt.x = () => {
|
|
2867
2871
|
t([]);
|
|
@@ -2883,14 +2887,14 @@ function Wi() {
|
|
|
2883
2887
|
)) });
|
|
2884
2888
|
}
|
|
2885
2889
|
const Ct = {};
|
|
2886
|
-
function
|
|
2890
|
+
function Vi(e, t) {
|
|
2887
2891
|
Ct[e] = t;
|
|
2888
2892
|
}
|
|
2889
|
-
function
|
|
2893
|
+
function Yi(e, t) {
|
|
2890
2894
|
Ct[e] !== void 0 && Ct[e](t);
|
|
2891
2895
|
}
|
|
2892
2896
|
const _e = {};
|
|
2893
|
-
function
|
|
2897
|
+
function Hi(e, t) {
|
|
2894
2898
|
const [a, r] = x.useState(t);
|
|
2895
2899
|
return x.useEffect(() => {
|
|
2896
2900
|
if (_e[e])
|
|
@@ -2898,54 +2902,54 @@ function Yi(e, t) {
|
|
|
2898
2902
|
_e[e] = [r];
|
|
2899
2903
|
}, []), [a];
|
|
2900
2904
|
}
|
|
2901
|
-
function
|
|
2905
|
+
function qi(e, t) {
|
|
2902
2906
|
if (_e[e])
|
|
2903
2907
|
return _e[e].push(t);
|
|
2904
2908
|
_e[e] = [t];
|
|
2905
2909
|
}
|
|
2906
|
-
function
|
|
2910
|
+
function Ji(e, t) {
|
|
2907
2911
|
_e[e] && _e[e].forEach((a) => a(t));
|
|
2908
2912
|
}
|
|
2909
|
-
const Ee = { setListener:
|
|
2910
|
-
function
|
|
2913
|
+
const Ee = { setListener: Yi, useListener: Vi, setEmitter: Ji, useEmitter: Hi, subEmitter: qi };
|
|
2914
|
+
function Xi() {
|
|
2911
2915
|
let [e, t] = x.useState([]);
|
|
2912
2916
|
return Ee.useListener("form", (a) => {
|
|
2913
2917
|
t([a]);
|
|
2914
2918
|
}), /* @__PURE__ */ n.jsx(n.Fragment, { children: e.map((a) => a) });
|
|
2915
2919
|
}
|
|
2916
|
-
const
|
|
2920
|
+
const Qi = ({ children: e, config: t }) => (D.New(t.crypto), t.defaultModule && Ea(t.defaultModule), Ra(
|
|
2917
2921
|
/* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2918
|
-
/* @__PURE__ */ n.jsx(
|
|
2919
|
-
/* @__PURE__ */ n.jsx(
|
|
2920
|
-
/* @__PURE__ */ n.jsx(
|
|
2921
|
-
/* @__PURE__ */ n.jsx(
|
|
2922
|
-
/* @__PURE__ */ n.jsx(
|
|
2923
|
-
/* @__PURE__ */ n.jsx(
|
|
2924
|
-
/* @__PURE__ */ n.jsx(
|
|
2925
|
-
/* @__PURE__ */ n.jsx(
|
|
2922
|
+
/* @__PURE__ */ n.jsx(si, { config: t.modal }),
|
|
2923
|
+
/* @__PURE__ */ n.jsx(Ir, {}),
|
|
2924
|
+
/* @__PURE__ */ n.jsx(zr, {}),
|
|
2925
|
+
/* @__PURE__ */ n.jsx(Fi, {}),
|
|
2926
|
+
/* @__PURE__ */ n.jsx(Ui, {}),
|
|
2927
|
+
/* @__PURE__ */ n.jsx(Xi, {}),
|
|
2928
|
+
/* @__PURE__ */ n.jsx(Zi, {}),
|
|
2929
|
+
/* @__PURE__ */ n.jsx(Bi, {}),
|
|
2926
2930
|
e
|
|
2927
2931
|
] })
|
|
2928
|
-
)),
|
|
2932
|
+
)), eo = ({ children: e, ...t }) => /* @__PURE__ */ n.jsx("menu", { children: e }), to = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("header", { children: [
|
|
2929
2933
|
"xz",
|
|
2930
2934
|
e
|
|
2931
|
-
] }),
|
|
2932
|
-
payment:
|
|
2935
|
+
] }), no = "_payment_1lxfv_1", ao = {
|
|
2936
|
+
payment: no
|
|
2933
2937
|
};
|
|
2934
|
-
function
|
|
2938
|
+
function ro() {
|
|
2935
2939
|
let [e, t] = x.useState({});
|
|
2936
|
-
return !e.active && !e.payment ? "" : /* @__PURE__ */ n.jsx("div", { className:
|
|
2940
|
+
return !e.active && !e.payment ? "" : /* @__PURE__ */ n.jsx("div", { className: ao.payment, children: "Истек срок оплаты! Доступ доступен до 16.04.2024" });
|
|
2937
2941
|
}
|
|
2938
|
-
const
|
|
2942
|
+
const Ol = ({ children: e, ...t }) => {
|
|
2939
2943
|
let a = {};
|
|
2940
2944
|
return a.enCode = (r) => JSON.stringify(r).toString(), a.deCode = (r) => JSON.parse(r), /* @__PURE__ */ n.jsxs("div", { className: "app", children: [
|
|
2941
|
-
/* @__PURE__ */ n.jsx(
|
|
2942
|
-
/* @__PURE__ */ n.jsx(Qi, {}),
|
|
2945
|
+
/* @__PURE__ */ n.jsx(ro, {}),
|
|
2943
2946
|
/* @__PURE__ */ n.jsx(eo, {}),
|
|
2944
|
-
/* @__PURE__ */ n.jsx(
|
|
2947
|
+
/* @__PURE__ */ n.jsx(to, {}),
|
|
2948
|
+
/* @__PURE__ */ n.jsx(Qi, { config: { modal: {}, crypto: a } }),
|
|
2945
2949
|
e
|
|
2946
2950
|
] });
|
|
2947
|
-
},
|
|
2948
|
-
|
|
2951
|
+
}, so = ({ list: e, onClick: t, active: a, size: r, view: s }) => /* @__PURE__ */ n.jsx("nav", { children: /* @__PURE__ */ n.jsx("ul", { className: [r, s].join(" "), children: e.map((i) => /* @__PURE__ */ n.jsx(
|
|
2952
|
+
io,
|
|
2949
2953
|
{
|
|
2950
2954
|
onClick: t,
|
|
2951
2955
|
active: a,
|
|
@@ -2953,9 +2957,9 @@ const Bl = ({ children: e, ...t }) => {
|
|
|
2953
2957
|
link: i.link
|
|
2954
2958
|
},
|
|
2955
2959
|
i.link
|
|
2956
|
-
)) }) }),
|
|
2957
|
-
|
|
2958
|
-
const
|
|
2960
|
+
)) }) }), io = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
|
|
2961
|
+
so.defaultProps = { size: "M", view: "H" };
|
|
2962
|
+
const oo = ({
|
|
2959
2963
|
title: e = "",
|
|
2960
2964
|
button: t,
|
|
2961
2965
|
description: a = "",
|
|
@@ -2975,9 +2979,9 @@ const io = ({
|
|
|
2975
2979
|
] }),
|
|
2976
2980
|
/* @__PURE__ */ n.jsx("ul", { children: r }),
|
|
2977
2981
|
a && /* @__PURE__ */ n.jsx("article", { children: a })
|
|
2978
|
-
] }),
|
|
2979
|
-
setting:
|
|
2980
|
-
},
|
|
2982
|
+
] }), lo = "_setting_dva4m_2", co = {
|
|
2983
|
+
setting: lo
|
|
2984
|
+
}, _o = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: co.setting, children: e }), uo = ({ label: e, children: t }) => {
|
|
2981
2985
|
let [a, r] = x.useState(!1);
|
|
2982
2986
|
return /* @__PURE__ */ n.jsxs("li", { "data-item": "accordion", children: [
|
|
2983
2987
|
/* @__PURE__ */ n.jsxs("dl", { onClick: () => r(!a), children: [
|
|
@@ -2986,10 +2990,10 @@ const io = ({
|
|
|
2986
2990
|
] }),
|
|
2987
2991
|
a && /* @__PURE__ */ n.jsx("div", { children: t })
|
|
2988
2992
|
] });
|
|
2989
|
-
},
|
|
2993
|
+
}, mo = ({ label: e, onClick: t, button: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
|
|
2990
2994
|
/* @__PURE__ */ n.jsx("dt", { children: e }),
|
|
2991
2995
|
/* @__PURE__ */ n.jsx("dd", { role: "button", onClick: () => t(), children: a })
|
|
2992
|
-
] }) }),
|
|
2996
|
+
] }) }), fo = ({ active: e, onClick: t }) => (e = typeof e == "number" ? !!e : e, /* @__PURE__ */ n.jsx(
|
|
2993
2997
|
"div",
|
|
2994
2998
|
{
|
|
2995
2999
|
role: "switch",
|
|
@@ -2998,25 +3002,25 @@ const io = ({
|
|
|
2998
3002
|
},
|
|
2999
3003
|
"aria-checked": e ? "true" : "false"
|
|
3000
3004
|
}
|
|
3001
|
-
)),
|
|
3005
|
+
)), ho = { Switch: fo }, xo = ({ label: e, onClick: t, active: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
|
|
3002
3006
|
/* @__PURE__ */ n.jsx("dt", { children: e }),
|
|
3003
|
-
/* @__PURE__ */ n.jsx("dd", { children: /* @__PURE__ */ n.jsx(
|
|
3004
|
-
] }) }),
|
|
3007
|
+
/* @__PURE__ */ n.jsx("dd", { children: /* @__PURE__ */ n.jsx(ho.Switch, { onClick: t, active: a }) })
|
|
3008
|
+
] }) }), go = ({ label: e, active: t, options: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
|
|
3005
3009
|
/* @__PURE__ */ n.jsx("dt", { children: e }),
|
|
3006
3010
|
/* @__PURE__ */ n.jsx("dd", { role: "info", children: t })
|
|
3007
|
-
] }) }),
|
|
3011
|
+
] }) }), po = ({ label: e, info: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
|
|
3008
3012
|
/* @__PURE__ */ n.jsx("dt", { children: e }),
|
|
3009
3013
|
/* @__PURE__ */ n.jsx("dd", { role: "info", children: t })
|
|
3010
|
-
] }) }),
|
|
3014
|
+
] }) }), vo = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
|
|
3011
3015
|
/* @__PURE__ */ n.jsx("dt", { children: e }),
|
|
3012
3016
|
/* @__PURE__ */ n.jsx("dd", { children: t })
|
|
3013
|
-
] }) }),
|
|
3017
|
+
] }) }), Co = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
|
|
3014
3018
|
/* @__PURE__ */ n.jsx("dt", { children: e }),
|
|
3015
3019
|
/* @__PURE__ */ n.jsx("dd", { children: t })
|
|
3016
|
-
] }) }),
|
|
3020
|
+
] }) }), ko = { Accordion: uo, Button: mo, Switch: xo, Info: po, Select: go, Component: vo, Node: Co };
|
|
3017
3021
|
function Sn({ list: e, onClick: t, active: a, size: r, view: s }) {
|
|
3018
3022
|
return /* @__PURE__ */ n.jsx("nav", { children: /* @__PURE__ */ n.jsx("ul", { className: [r, s].join(" "), children: e.map((i) => /* @__PURE__ */ n.jsx(
|
|
3019
|
-
|
|
3023
|
+
yo,
|
|
3020
3024
|
{
|
|
3021
3025
|
onClick: t,
|
|
3022
3026
|
active: a,
|
|
@@ -3026,10 +3030,10 @@ function Sn({ list: e, onClick: t, active: a, size: r, view: s }) {
|
|
|
3026
3030
|
i.link
|
|
3027
3031
|
)) }) });
|
|
3028
3032
|
}
|
|
3029
|
-
const
|
|
3033
|
+
const yo = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
|
|
3030
3034
|
Sn.defaultProps = { size: "M", view: "H" };
|
|
3031
|
-
const
|
|
3032
|
-
function
|
|
3035
|
+
const Al = { Section: oo, Main: _o, Item: ko, Tabs: Sn }, Zl = { Icon: Oi, Item: gt, Active: Ai }, zl = { Send: Kr, Line: wn };
|
|
3036
|
+
function jo() {
|
|
3033
3037
|
return /* @__PURE__ */ n.jsx("svg", { viewBox: "0 0 462.86 359.96", children: /* @__PURE__ */ n.jsx(
|
|
3034
3038
|
"path",
|
|
3035
3039
|
{
|
|
@@ -3038,11 +3042,11 @@ function yo() {
|
|
|
3038
3042
|
}
|
|
3039
3043
|
) });
|
|
3040
3044
|
}
|
|
3041
|
-
const
|
|
3042
|
-
sort:
|
|
3045
|
+
const Gl = { Logo: jo, Sprite: Ki, Symbol: Wi }, bo = "_sort_1yrvt_1", wo = {
|
|
3046
|
+
sort: bo
|
|
3043
3047
|
};
|
|
3044
3048
|
let Qe = {};
|
|
3045
|
-
function
|
|
3049
|
+
function So(e, t) {
|
|
3046
3050
|
switch (t.type) {
|
|
3047
3051
|
case "active":
|
|
3048
3052
|
let a = "<";
|
|
@@ -3055,12 +3059,12 @@ function wo(e, t) {
|
|
|
3055
3059
|
throw new Error();
|
|
3056
3060
|
}
|
|
3057
3061
|
}
|
|
3058
|
-
function
|
|
3062
|
+
function Eo() {
|
|
3059
3063
|
const [e, t] = x.useReducer(
|
|
3060
|
-
|
|
3064
|
+
So,
|
|
3061
3065
|
ft() === void 0 ? { active: 1, sort: "<" } : ft()
|
|
3062
3066
|
);
|
|
3063
|
-
return /* @__PURE__ */ n.jsxs("div", { className:
|
|
3067
|
+
return /* @__PURE__ */ n.jsxs("div", { className: wo.sort, children: [
|
|
3064
3068
|
/* @__PURE__ */ n.jsx(
|
|
3065
3069
|
"i",
|
|
3066
3070
|
{
|
|
@@ -3087,13 +3091,13 @@ function So() {
|
|
|
3087
3091
|
)
|
|
3088
3092
|
] });
|
|
3089
3093
|
}
|
|
3090
|
-
function
|
|
3094
|
+
function No(e) {
|
|
3091
3095
|
Qe.get = e;
|
|
3092
3096
|
}
|
|
3093
|
-
function
|
|
3097
|
+
function Ro(e) {
|
|
3094
3098
|
Qe.set(e);
|
|
3095
3099
|
}
|
|
3096
|
-
function
|
|
3100
|
+
function To(e, t, a) {
|
|
3097
3101
|
let r = 1, s = 0, i = {}, l = 50;
|
|
3098
3102
|
i[r] = [];
|
|
3099
3103
|
let c = {}, _ = "s1a";
|
|
@@ -3112,11 +3116,11 @@ function Ro(e, t, a) {
|
|
|
3112
3116
|
s++, s <= l || (r++, s = 1, i[r] = []), i[r].push(e[d.id]);
|
|
3113
3117
|
}), { data: i };
|
|
3114
3118
|
}
|
|
3115
|
-
function
|
|
3119
|
+
function Io(e) {
|
|
3116
3120
|
Qe.count(e);
|
|
3117
3121
|
}
|
|
3118
|
-
const
|
|
3119
|
-
function
|
|
3122
|
+
const Kl = { Init: Eo, useValue: No, Set: Ro, Run: To, Count: Io }, qe = {}, En = {};
|
|
3123
|
+
function Do(e) {
|
|
3120
3124
|
const [t, a] = x.useState({}), r = async (s) => {
|
|
3121
3125
|
a(
|
|
3122
3126
|
Object.keys(qe).reduce((i, l) => (i ? i[l] = qe[l].all : i = {}, i), {})
|
|
@@ -3126,15 +3130,15 @@ function Io(e) {
|
|
|
3126
3130
|
e.forEach((s) => qe[s] = { all: 0 }), En.menu = r, r();
|
|
3127
3131
|
}, [e]), t;
|
|
3128
3132
|
}
|
|
3129
|
-
function
|
|
3133
|
+
function Mo(e, t) {
|
|
3130
3134
|
switch (typeof t) {
|
|
3131
3135
|
case "number":
|
|
3132
3136
|
qe[e].all += t, En.menu();
|
|
3133
3137
|
break;
|
|
3134
3138
|
}
|
|
3135
3139
|
}
|
|
3136
|
-
const
|
|
3137
|
-
class
|
|
3140
|
+
const Wl = { useMenu: Do, setUpdate: Mo };
|
|
3141
|
+
class Fo {
|
|
3138
3142
|
constructor(t = "el", a = "db") {
|
|
3139
3143
|
dt(this, "storeName");
|
|
3140
3144
|
dt(this, "_dbp");
|
|
@@ -3155,7 +3159,7 @@ class Mo {
|
|
|
3155
3159
|
}
|
|
3156
3160
|
}
|
|
3157
3161
|
let _t, G = {};
|
|
3158
|
-
const Ne = () => (_t || (_t = new
|
|
3162
|
+
const Ne = () => (_t || (_t = new Fo()), _t), fe = (e, t, a = Ne()) => a._withIDBStore("readwrite", (r) => {
|
|
3159
3163
|
G[e] = t, r.put(D.enCode(t), e);
|
|
3160
3164
|
}), le = (e, t = Ne()) => G[e] === void 0 ? new Promise((a, r) => {
|
|
3161
3165
|
let s;
|
|
@@ -3168,18 +3172,18 @@ const Ne = () => (_t || (_t = new Mo()), _t), fe = (e, t, a = Ne()) => a._withID
|
|
|
3168
3172
|
} else
|
|
3169
3173
|
a({});
|
|
3170
3174
|
});
|
|
3171
|
-
}) : G[e],
|
|
3175
|
+
}) : G[e], Lo = (e, t = Ne()) => t._withIDBStore("readwrite", (a) => {
|
|
3172
3176
|
a.delete(e);
|
|
3173
3177
|
}), kt = (e = Ne()) => e._withIDBStore("readwrite", (t) => {
|
|
3174
3178
|
t.clear();
|
|
3175
|
-
}),
|
|
3179
|
+
}), $o = (e = Ne()) => {
|
|
3176
3180
|
const t = [];
|
|
3177
3181
|
return e._withIDBStore("readonly", (a) => {
|
|
3178
3182
|
(a.openKeyCursor || a.openCursor).call(a).onsuccess = function() {
|
|
3179
3183
|
this.result && (t.push(this.result.key), this.result.continue());
|
|
3180
3184
|
};
|
|
3181
3185
|
}).then(() => t);
|
|
3182
|
-
},
|
|
3186
|
+
}, Po = (e, t, a = [], r = {}) => {
|
|
3183
3187
|
let s = a.length !== 0, i = [], l = r.sort, c = Object.keys(r).length !== 0, _ = Object.keys(r), d = Object.keys(e), u = 1, m = [], f = {};
|
|
3184
3188
|
f[u] = [];
|
|
3185
3189
|
let g = (v) => {
|
|
@@ -3203,7 +3207,7 @@ const Ne = () => (_t || (_t = new Mo()), _t), fe = (e, t, a = Ne()) => a._withID
|
|
|
3203
3207
|
}), m.forEach((v) => {
|
|
3204
3208
|
v === void 0 ? (kt(), location.reload()) : (s && g(v.id), c && C(v.id));
|
|
3205
3209
|
}), { list: f, search: i, filter: r };
|
|
3206
|
-
},
|
|
3210
|
+
}, Bo = (e, t, a, r = Ne()) => {
|
|
3207
3211
|
if (G[e] === void 0)
|
|
3208
3212
|
return new Promise((s, i) => {
|
|
3209
3213
|
let l;
|
|
@@ -3224,45 +3228,45 @@ const Ne = () => (_t || (_t = new Mo()), _t), fe = (e, t, a = Ne()) => a._withID
|
|
|
3224
3228
|
return G[e][t.id] = { ...G[e][t.id], ...t.data }, a !== void 0 && G[a] !== void 0 ? G[a][t.id] !== void 0 && (G[a][t.id] = t.data.eDate) : G[a] = [], delete G[e][t.id].$_item, delete G[e][t.id].$_send, r._withIDBStore("readwrite", (s) => {
|
|
3225
3229
|
s.put(D.enCode(G[e]), e), a !== void 0 && s.put(D.enCode(G[a]), a);
|
|
3226
3230
|
});
|
|
3227
|
-
},
|
|
3231
|
+
}, Oo = async (e, t, a, r) => {
|
|
3228
3232
|
let s, i;
|
|
3229
3233
|
i = await le(a), i[e.id] = e, await fe(a, i), s !== null && (s = await le(t), s[e.id] = e.eDate, await fe(t, s)), r !== void 0 && r({ type: "load", page: s, base: i });
|
|
3230
|
-
},
|
|
3234
|
+
}, Ao = async (e, t, a, r) => {
|
|
3231
3235
|
let s = await le(t), i = await le(a);
|
|
3232
3236
|
for (let l in e)
|
|
3233
3237
|
i[l] = e[l], s[l] = e[l].eDate;
|
|
3234
3238
|
await fe(t, s), await fe(a, i), r !== void 0 && r({ type: "load", page: s, base: i });
|
|
3235
|
-
},
|
|
3239
|
+
}, Zo = async (e, t, a, r) => {
|
|
3236
3240
|
let s = await le(t), i = await le(a);
|
|
3237
3241
|
e.forEach((l) => delete s[l]), await fe(t, s), r !== void 0 && r({ type: "load", page: s, base: i });
|
|
3238
|
-
},
|
|
3242
|
+
}, zo = async (e, t, a) => {
|
|
3239
3243
|
let r = await le(t);
|
|
3240
3244
|
e.forEach((s) => delete r[s]), await fe(t, r);
|
|
3241
|
-
},
|
|
3245
|
+
}, Go = async (e, t, a) => {
|
|
3242
3246
|
let r = await le(t);
|
|
3243
3247
|
e.forEach((s) => r[s.id] = s.eDate), await fe(t, r);
|
|
3244
|
-
},
|
|
3248
|
+
}, Ko = async (e, t, a) => {
|
|
3245
3249
|
let r = await le(t);
|
|
3246
3250
|
if (a !== void 0)
|
|
3247
3251
|
a({ type: "load", base: r });
|
|
3248
3252
|
else
|
|
3249
3253
|
return r[e];
|
|
3250
|
-
},
|
|
3251
|
-
id:
|
|
3254
|
+
}, Wo = (e) => G[e], Ul = {
|
|
3255
|
+
id: Ko,
|
|
3252
3256
|
get: le,
|
|
3253
3257
|
set: fe,
|
|
3254
|
-
add:
|
|
3255
|
-
del:
|
|
3256
|
-
upd:
|
|
3257
|
-
key:
|
|
3258
|
-
load:
|
|
3259
|
-
split:
|
|
3258
|
+
add: Oo,
|
|
3259
|
+
del: Lo,
|
|
3260
|
+
upd: Bo,
|
|
3261
|
+
key: $o,
|
|
3262
|
+
load: Wo,
|
|
3263
|
+
split: Po,
|
|
3260
3264
|
clear: kt,
|
|
3261
|
-
updAll:
|
|
3262
|
-
delAll:
|
|
3263
|
-
delList:
|
|
3264
|
-
addList:
|
|
3265
|
-
},
|
|
3265
|
+
updAll: Ao,
|
|
3266
|
+
delAll: Zo,
|
|
3267
|
+
delList: zo,
|
|
3268
|
+
addList: Go
|
|
3269
|
+
}, Uo = (e, t) => {
|
|
3266
3270
|
const a = [];
|
|
3267
3271
|
t = t.map((r) => r.charCodeAt(0)), document.onkeydown = function(r) {
|
|
3268
3272
|
a.push(r.keyCode);
|
|
@@ -3273,15 +3277,15 @@ const Ne = () => (_t || (_t = new Mo()), _t), fe = (e, t, a = Ne()) => a._withID
|
|
|
3273
3277
|
}, document.onkeyup = function(r) {
|
|
3274
3278
|
a.length = 0;
|
|
3275
3279
|
};
|
|
3276
|
-
},
|
|
3277
|
-
s:
|
|
3278
|
-
loadingB:
|
|
3279
|
-
ul:
|
|
3280
|
+
}, Vl = { useKey: Uo }, Vo = "_s_18bde_1", Yo = "_loadingB_18bde_1", Ho = "_ul_18bde_31", qo = {
|
|
3281
|
+
s: Vo,
|
|
3282
|
+
loadingB: Yo,
|
|
3283
|
+
ul: Ho
|
|
3280
3284
|
};
|
|
3281
3285
|
function Nn({ children: e }) {
|
|
3282
3286
|
return /* @__PURE__ */ n.jsx("ul", { className: J.ul, children: e });
|
|
3283
3287
|
}
|
|
3284
|
-
function
|
|
3288
|
+
function Jo(e, t) {
|
|
3285
3289
|
switch (t.type) {
|
|
3286
3290
|
case "load":
|
|
3287
3291
|
return {
|
|
@@ -3315,7 +3319,7 @@ function qo(e, t) {
|
|
|
3315
3319
|
}
|
|
3316
3320
|
}
|
|
3317
3321
|
function Rn(e) {
|
|
3318
|
-
const t = x.useRef(null), [a, r] = x.useReducer(
|
|
3322
|
+
const t = x.useRef(null), [a, r] = x.useReducer(Jo, {
|
|
3319
3323
|
load: !1,
|
|
3320
3324
|
list: [],
|
|
3321
3325
|
data: {},
|
|
@@ -3330,13 +3334,13 @@ function Rn(e) {
|
|
|
3330
3334
|
let s = () => {
|
|
3331
3335
|
t.current.scrollHeight - t.current.scrollTop - 300 <= t.current.clientHeight && !a.wait && r({ type: "update" });
|
|
3332
3336
|
};
|
|
3333
|
-
return /* @__PURE__ */ n.jsx("div", { className:
|
|
3337
|
+
return /* @__PURE__ */ n.jsx("div", { className: qo.s, ref: t, onScroll: s, children: /* @__PURE__ */ n.jsx(Nn, { "el-empty": "Данные не найдены", children: a.load && a.list !== void 0 ? a.list.map((i) => /* @__PURE__ */ n.jsx(e.item, { data: i }, i.id)) : /* @__PURE__ */ n.jsxs("div", { "data-load": "load", children: [
|
|
3334
3338
|
/* @__PURE__ */ n.jsx("i", {}),
|
|
3335
3339
|
/* @__PURE__ */ n.jsx("i", {}),
|
|
3336
3340
|
/* @__PURE__ */ n.jsx("i", {})
|
|
3337
3341
|
] }) }) });
|
|
3338
3342
|
}
|
|
3339
|
-
const
|
|
3343
|
+
const Yl = { Scrolling: Rn }, Hl = { Widget: Li }, Tn = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ n.jsx(
|
|
3340
3344
|
"div",
|
|
3341
3345
|
{
|
|
3342
3346
|
role: "switch",
|
|
@@ -3716,9 +3720,9 @@ function $n(e) {
|
|
|
3716
3720
|
}
|
|
3717
3721
|
) });
|
|
3718
3722
|
}
|
|
3719
|
-
const
|
|
3720
|
-
o:
|
|
3721
|
-
c:
|
|
3723
|
+
const Xo = "_o_1kqkq_1", Qo = "_c_1kqkq_11", we = {
|
|
3724
|
+
o: Xo,
|
|
3725
|
+
c: Qo
|
|
3722
3726
|
};
|
|
3723
3727
|
function Rt(e) {
|
|
3724
3728
|
let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, s = e.active !== void 0 ? e.active : !0, i = e.placeholder !== void 0 ? e.placeholder : "", [l, c] = x.useState(
|
|
@@ -3734,7 +3738,7 @@ function Rt(e) {
|
|
|
3734
3738
|
Ee.setListener(
|
|
3735
3739
|
"form",
|
|
3736
3740
|
/* @__PURE__ */ n.jsx(
|
|
3737
|
-
|
|
3741
|
+
el,
|
|
3738
3742
|
{
|
|
3739
3743
|
position: { x: v, y },
|
|
3740
3744
|
onValue: d,
|
|
@@ -3775,7 +3779,7 @@ function Rt(e) {
|
|
|
3775
3779
|
}
|
|
3776
3780
|
) });
|
|
3777
3781
|
}
|
|
3778
|
-
const
|
|
3782
|
+
const el = (e) => {
|
|
3779
3783
|
let [t, a] = x.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
|
|
3780
3784
|
y: parseInt(r.getFullYear()),
|
|
3781
3785
|
d: parseInt(r.getDate()),
|
|
@@ -3966,7 +3970,7 @@ function Pn({
|
|
|
3966
3970
|
Ee.setListener(
|
|
3967
3971
|
"form",
|
|
3968
3972
|
/* @__PURE__ */ n.jsx(
|
|
3969
|
-
|
|
3973
|
+
tl,
|
|
3970
3974
|
{
|
|
3971
3975
|
position: { x: k, y: j },
|
|
3972
3976
|
onValue: f,
|
|
@@ -4001,7 +4005,7 @@ function Pn({
|
|
|
4001
4005
|
}
|
|
4002
4006
|
) });
|
|
4003
4007
|
}
|
|
4004
|
-
const
|
|
4008
|
+
const tl = (e) => {
|
|
4005
4009
|
let [t, a] = x.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
|
|
4006
4010
|
y: parseInt(r.getFullYear()),
|
|
4007
4011
|
m: parseInt(r.getMonth()) + 1
|
|
@@ -5729,7 +5733,7 @@ function Ft({
|
|
|
5729
5733
|
Ee.setListener(
|
|
5730
5734
|
"form",
|
|
5731
5735
|
/* @__PURE__ */ n.jsx(
|
|
5732
|
-
|
|
5736
|
+
nl,
|
|
5733
5737
|
{
|
|
5734
5738
|
parent: P,
|
|
5735
5739
|
onValue: v,
|
|
@@ -5746,7 +5750,7 @@ function Ft({
|
|
|
5746
5750
|
t && /* @__PURE__ */ n.jsx("em", { children: t })
|
|
5747
5751
|
] });
|
|
5748
5752
|
}
|
|
5749
|
-
const
|
|
5753
|
+
const nl = ({ onValue: e, parent: t, view: a, options: r }) => {
|
|
5750
5754
|
let [s, i] = x.useState(!0), l = () => {
|
|
5751
5755
|
i(!1);
|
|
5752
5756
|
}, c = (u) => {
|
|
@@ -5798,7 +5802,7 @@ function Lt(e) {
|
|
|
5798
5802
|
Ee.setListener(
|
|
5799
5803
|
"form",
|
|
5800
5804
|
/* @__PURE__ */ n.jsx(
|
|
5801
|
-
|
|
5805
|
+
al,
|
|
5802
5806
|
{
|
|
5803
5807
|
parent: C,
|
|
5804
5808
|
onValue: _,
|
|
@@ -5830,7 +5834,7 @@ function Lt(e) {
|
|
|
5830
5834
|
}
|
|
5831
5835
|
);
|
|
5832
5836
|
}
|
|
5833
|
-
const
|
|
5837
|
+
const al = ({ onValue: e, parent: t, view: a, options: r }) => {
|
|
5834
5838
|
let [s, i] = x.useState(!0), l = () => {
|
|
5835
5839
|
i(!1);
|
|
5836
5840
|
}, c = (m) => {
|
|
@@ -6092,7 +6096,7 @@ function zn({
|
|
|
6092
6096
|
Ee.setListener(
|
|
6093
6097
|
"form",
|
|
6094
6098
|
/* @__PURE__ */ n.jsx(
|
|
6095
|
-
|
|
6099
|
+
rl,
|
|
6096
6100
|
{
|
|
6097
6101
|
positions: { x: ne, y: xe },
|
|
6098
6102
|
onSave: $,
|
|
@@ -6118,7 +6122,7 @@ function zn({
|
|
|
6118
6122
|
i ? /* @__PURE__ */ n.jsx("em", { children: i }) : ""
|
|
6119
6123
|
] }) });
|
|
6120
6124
|
}
|
|
6121
|
-
const
|
|
6125
|
+
const rl = ({ positions: e, onSave: t, onValue: a, date: r }) => {
|
|
6122
6126
|
let s = r.split(":"), i = {
|
|
6123
6127
|
h: K.Number(2, s[0]),
|
|
6124
6128
|
m: K.Number(2, s[1])
|
|
@@ -6246,7 +6250,7 @@ function Gn({
|
|
|
6246
6250
|
] });
|
|
6247
6251
|
}
|
|
6248
6252
|
const Se = {};
|
|
6249
|
-
function
|
|
6253
|
+
function sl(e) {
|
|
6250
6254
|
const [t, a] = x.useState({}), r = x.useRef(e);
|
|
6251
6255
|
return Se.u = (s) => {
|
|
6252
6256
|
r.current = { ...r.current, [s.name]: s.value };
|
|
@@ -6254,13 +6258,13 @@ function rl(e) {
|
|
|
6254
6258
|
a(Date.now());
|
|
6255
6259
|
}, [r.current];
|
|
6256
6260
|
}
|
|
6257
|
-
function
|
|
6261
|
+
function il(e) {
|
|
6258
6262
|
Se.u(e), e.reload && Se.r();
|
|
6259
6263
|
}
|
|
6260
|
-
function
|
|
6264
|
+
function ol() {
|
|
6261
6265
|
Se.r && Se.r();
|
|
6262
6266
|
}
|
|
6263
|
-
const
|
|
6267
|
+
const ql = {
|
|
6264
6268
|
Color: $n,
|
|
6265
6269
|
Date: Rt,
|
|
6266
6270
|
Code: Ln,
|
|
@@ -6286,10 +6290,10 @@ const Hl = {
|
|
|
6286
6290
|
Users: Lt,
|
|
6287
6291
|
String: Be,
|
|
6288
6292
|
Form: yt,
|
|
6289
|
-
runReload:
|
|
6290
|
-
useData:
|
|
6291
|
-
setValue:
|
|
6292
|
-
},
|
|
6293
|
+
runReload: ol,
|
|
6294
|
+
useData: sl,
|
|
6295
|
+
setValue: il
|
|
6296
|
+
}, Jl = {
|
|
6293
6297
|
Color: $n,
|
|
6294
6298
|
Date: Rt,
|
|
6295
6299
|
Code: Ln,
|
|
@@ -6314,12 +6318,12 @@ const Hl = {
|
|
|
6314
6318
|
Time: zn,
|
|
6315
6319
|
Users: Lt,
|
|
6316
6320
|
String: Be
|
|
6317
|
-
},
|
|
6318
|
-
spinner:
|
|
6319
|
-
l:
|
|
6320
|
-
loadingB:
|
|
6321
|
+
}, ll = "_spinner_1ul0m_1", cl = "_l_1ul0m_75", dl = "_loadingB_1ul0m_1", Kn = {
|
|
6322
|
+
spinner: ll,
|
|
6323
|
+
l: cl,
|
|
6324
|
+
loadingB: dl
|
|
6321
6325
|
};
|
|
6322
|
-
function
|
|
6326
|
+
function _l() {
|
|
6323
6327
|
return /* @__PURE__ */ n.jsx("div", { className: Kn.spinner, children: /* @__PURE__ */ n.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 483 484", children: /* @__PURE__ */ n.jsx(
|
|
6324
6328
|
"path",
|
|
6325
6329
|
{
|
|
@@ -6328,18 +6332,18 @@ function dl() {
|
|
|
6328
6332
|
}
|
|
6329
6333
|
) }) });
|
|
6330
6334
|
}
|
|
6331
|
-
function
|
|
6335
|
+
function ul() {
|
|
6332
6336
|
return /* @__PURE__ */ n.jsxs("div", { className: Kn.l, children: [
|
|
6333
6337
|
/* @__PURE__ */ n.jsx("i", {}),
|
|
6334
6338
|
/* @__PURE__ */ n.jsx("i", {}),
|
|
6335
6339
|
/* @__PURE__ */ n.jsx("i", {})
|
|
6336
6340
|
] });
|
|
6337
6341
|
}
|
|
6338
|
-
const
|
|
6339
|
-
s:
|
|
6342
|
+
const Xl = { Spinner: _l, Inline: ul }, ml = "_s_t9swc_1", fl = {
|
|
6343
|
+
s: ml
|
|
6340
6344
|
};
|
|
6341
6345
|
let $t;
|
|
6342
|
-
function
|
|
6346
|
+
function hl() {
|
|
6343
6347
|
let e = (s) => {
|
|
6344
6348
|
$t(s.target.textContent);
|
|
6345
6349
|
}, t = (s) => {
|
|
@@ -6354,7 +6358,7 @@ function fl() {
|
|
|
6354
6358
|
return r.placeholder = "Что искать?", /* @__PURE__ */ n.jsx(
|
|
6355
6359
|
"div",
|
|
6356
6360
|
{
|
|
6357
|
-
className:
|
|
6361
|
+
className: fl.s,
|
|
6358
6362
|
onPaste: a,
|
|
6359
6363
|
onInput: e,
|
|
6360
6364
|
onKeyDown: t,
|
|
@@ -6364,7 +6368,7 @@ function fl() {
|
|
|
6364
6368
|
}
|
|
6365
6369
|
);
|
|
6366
6370
|
}
|
|
6367
|
-
function
|
|
6371
|
+
function xl(e, t, a) {
|
|
6368
6372
|
let r = [], s = 1, i = 0, l = {}, c = 50;
|
|
6369
6373
|
return l[s] = [], e.forEach((_) => {
|
|
6370
6374
|
_.text.toLowerCase().indexOf(t) > -1 && r.push(_.id);
|
|
@@ -6372,17 +6376,17 @@ function hl(e, t, a) {
|
|
|
6372
6376
|
i++, i <= c || (s++, i = 1, l[s] = []), l[s].push(a[_]);
|
|
6373
6377
|
}), l;
|
|
6374
6378
|
}
|
|
6375
|
-
function
|
|
6379
|
+
function gl(e) {
|
|
6376
6380
|
$t = e;
|
|
6377
6381
|
}
|
|
6378
|
-
function
|
|
6382
|
+
function pl(e) {
|
|
6379
6383
|
$t = e;
|
|
6380
6384
|
}
|
|
6381
|
-
const
|
|
6382
|
-
f:
|
|
6385
|
+
const Ql = { Field: hl, Run: xl, Get: gl, useValue: pl }, vl = "_f_q3r0i_1", Cl = {
|
|
6386
|
+
f: vl
|
|
6383
6387
|
};
|
|
6384
6388
|
let te = {};
|
|
6385
|
-
function
|
|
6389
|
+
function kl(e, t) {
|
|
6386
6390
|
switch (t.type) {
|
|
6387
6391
|
case "open":
|
|
6388
6392
|
return {
|
|
@@ -6432,8 +6436,8 @@ function Cl(e, t) {
|
|
|
6432
6436
|
throw new Error();
|
|
6433
6437
|
}
|
|
6434
6438
|
}
|
|
6435
|
-
function
|
|
6436
|
-
const [e, t] = x.useReducer(
|
|
6439
|
+
function yl() {
|
|
6440
|
+
const [e, t] = x.useReducer(kl, {
|
|
6437
6441
|
open: !1,
|
|
6438
6442
|
view: null,
|
|
6439
6443
|
data: {},
|
|
@@ -6451,12 +6455,12 @@ function kl() {
|
|
|
6451
6455
|
/* @__PURE__ */ n.jsxs(
|
|
6452
6456
|
"div",
|
|
6453
6457
|
{
|
|
6454
|
-
className:
|
|
6458
|
+
className: Cl.f,
|
|
6455
6459
|
onClick: () => {
|
|
6456
6460
|
t({ type: "open", open: !0 });
|
|
6457
6461
|
},
|
|
6458
6462
|
children: [
|
|
6459
|
-
/* @__PURE__ */ n.jsx(
|
|
6463
|
+
/* @__PURE__ */ n.jsx(Vr, {}),
|
|
6460
6464
|
e.active && /* @__PURE__ */ n.jsxs("i", { children: [
|
|
6461
6465
|
e.size,
|
|
6462
6466
|
"1"
|
|
@@ -6476,7 +6480,7 @@ function kl() {
|
|
|
6476
6480
|
),
|
|
6477
6481
|
/* @__PURE__ */ n.jsxs("div", { className: "filter m", children: [
|
|
6478
6482
|
/* @__PURE__ */ n.jsx("div", { className: "filter l", children: Object.keys(e.data).map((a) => /* @__PURE__ */ n.jsx(
|
|
6479
|
-
|
|
6483
|
+
El,
|
|
6480
6484
|
{
|
|
6481
6485
|
data: a,
|
|
6482
6486
|
dispatch: t,
|
|
@@ -6498,16 +6502,16 @@ function kl() {
|
|
|
6498
6502
|
] }) : /* @__PURE__ */ n.jsx(n.Fragment, {})
|
|
6499
6503
|
] });
|
|
6500
6504
|
}
|
|
6501
|
-
function
|
|
6505
|
+
function jl(e) {
|
|
6502
6506
|
te.get = e;
|
|
6503
6507
|
}
|
|
6504
|
-
function
|
|
6508
|
+
function bl(e) {
|
|
6505
6509
|
te.set !== void 0 && te.set(e);
|
|
6506
6510
|
}
|
|
6507
|
-
function
|
|
6511
|
+
function wl(e) {
|
|
6508
6512
|
te.reset !== void 0 && te.reset(e);
|
|
6509
6513
|
}
|
|
6510
|
-
function
|
|
6514
|
+
function Sl(e, t, a, r) {
|
|
6511
6515
|
let s = [], i = 1, l = 0, c = {}, _ = 50;
|
|
6512
6516
|
return c[i] = [], r === !0 && (Object.keys(t).forEach((d) => {
|
|
6513
6517
|
Number.parseInt(t[d]) !== 999 && (e = e.filter(
|
|
@@ -6522,7 +6526,7 @@ function wl(e, t, a, r) {
|
|
|
6522
6526
|
function Wn(e) {
|
|
6523
6527
|
te.count(e);
|
|
6524
6528
|
}
|
|
6525
|
-
function
|
|
6529
|
+
function El({ data: e, state: t, dispatch: a }) {
|
|
6526
6530
|
let r = () => {
|
|
6527
6531
|
a({ type: "view", view: e });
|
|
6528
6532
|
}, s = () => {
|
|
@@ -6545,7 +6549,7 @@ function Sl({ data: e, state: t, dispatch: a }) {
|
|
|
6545
6549
|
) : ""
|
|
6546
6550
|
] }),
|
|
6547
6551
|
/* @__PURE__ */ n.jsx("div", { className: "filter u", "set-active": (t.view === e) + "", children: Object.keys(t.data[e].list).map((i, l) => /* @__PURE__ */ n.jsx(
|
|
6548
|
-
|
|
6552
|
+
Nl,
|
|
6549
6553
|
{
|
|
6550
6554
|
data: t.data[e].list[i],
|
|
6551
6555
|
head: e,
|
|
@@ -6557,7 +6561,7 @@ function Sl({ data: e, state: t, dispatch: a }) {
|
|
|
6557
6561
|
)) })
|
|
6558
6562
|
] });
|
|
6559
6563
|
}
|
|
6560
|
-
function
|
|
6564
|
+
function Nl({ data: e, head: t, state: a, dispatch: r, type: s }) {
|
|
6561
6565
|
if (s !== "999" && e.count === void 0)
|
|
6562
6566
|
return "";
|
|
6563
6567
|
const i = () => {
|
|
@@ -6576,11 +6580,11 @@ function El({ data: e, head: t, state: a, dispatch: r, type: s }) {
|
|
|
6576
6580
|
}
|
|
6577
6581
|
);
|
|
6578
6582
|
}
|
|
6579
|
-
const
|
|
6580
|
-
p:
|
|
6581
|
-
l:
|
|
6583
|
+
const ec = { Button: yl, useValue: jl, Set: bl, Run: Sl, Count: Wn, Reset: wl }, tc = { Bell: ts, Send: Xr, Add: Jr }, Rl = "_p_djnh1_1", Tl = "_l_djnh1_38", Un = {
|
|
6584
|
+
p: Rl,
|
|
6585
|
+
l: Tl
|
|
6582
6586
|
};
|
|
6583
|
-
function
|
|
6587
|
+
function Il(e) {
|
|
6584
6588
|
let t = 3, a = e.page, r = e.count, s = [], i = () => {
|
|
6585
6589
|
s.push({ page: 1 }), s.push({ text: "..." });
|
|
6586
6590
|
}, l = () => {
|
|
@@ -6598,7 +6602,7 @@ function Tl(e) {
|
|
|
6598
6602
|
/* @__PURE__ */ n.jsx("i", { onClick: () => e.onChangePage(a + 1), children: /* @__PURE__ */ n.jsx("svg", { viewBox: "0 0 24 24", children: /* @__PURE__ */ n.jsx("path", { d: "M8.19486 5.40705C8.52237 4.96235 9.14837 4.86736 9.59306 5.19488C9.93847 5.44927 10.2668 5.70372 10.5528 5.92689C11.1236 6.3724 11.8882 6.98573 12.6556 7.65208C13.4181 8.31412 14.2064 9.04815 14.8119 9.73344C15.1136 10.0749 15.3911 10.4279 15.5986 10.7721C15.7895 11.0888 16 11.524 16 12.0001C16 12.4762 15.7895 12.9115 15.5986 13.2282C15.3911 13.5724 15.1136 13.9253 14.8119 14.2668C14.2064 14.9521 13.4181 15.6861 12.6556 16.3482C11.8882 17.0145 11.1236 17.6278 10.5528 18.0734C10.2668 18.2965 9.93847 18.551 9.59307 18.8054C9.14837 19.1329 8.52237 19.0379 8.19486 18.5932C8.0632 18.4144 7.99983 18.2064 8.00001 18.0002L8 12.0001L8 6.00007C7.99983 5.79387 8.0632 5.58581 8.19486 5.40705Z" }) }) })
|
|
6599
6603
|
] });
|
|
6600
6604
|
}
|
|
6601
|
-
function
|
|
6605
|
+
function Dl(e, t) {
|
|
6602
6606
|
switch (t.type) {
|
|
6603
6607
|
case "load":
|
|
6604
6608
|
return {
|
|
@@ -6620,7 +6624,7 @@ function Il(e, t) {
|
|
|
6620
6624
|
}
|
|
6621
6625
|
}
|
|
6622
6626
|
function Vn({ load: e, list: t, item: a }) {
|
|
6623
|
-
const r = x.useRef(null), [s, i] = x.useReducer(
|
|
6627
|
+
const r = x.useRef(null), [s, i] = x.useReducer(Dl, {
|
|
6624
6628
|
load: !1,
|
|
6625
6629
|
list: [],
|
|
6626
6630
|
data: {},
|
|
@@ -6646,7 +6650,7 @@ function Vn({ load: e, list: t, item: a }) {
|
|
|
6646
6650
|
/* @__PURE__ */ n.jsx("i", {})
|
|
6647
6651
|
] }) }) }),
|
|
6648
6652
|
s.load && s.list !== void 0 ? /* @__PURE__ */ n.jsx(
|
|
6649
|
-
|
|
6653
|
+
Il,
|
|
6650
6654
|
{
|
|
6651
6655
|
page: s.page,
|
|
6652
6656
|
count: s.size,
|
|
@@ -6655,15 +6659,15 @@ function Vn({ load: e, list: t, item: a }) {
|
|
|
6655
6659
|
) : /* @__PURE__ */ n.jsx(n.Fragment, {})
|
|
6656
6660
|
] });
|
|
6657
6661
|
}
|
|
6658
|
-
const
|
|
6659
|
-
function
|
|
6662
|
+
const nc = { Pagination: Vn };
|
|
6663
|
+
function Ml({ head: e, load: t, list: a, item: r }) {
|
|
6660
6664
|
const s = e;
|
|
6661
6665
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
6662
6666
|
/* @__PURE__ */ n.jsx(s, {}),
|
|
6663
6667
|
Nt.getSetting("s05") === 1 ? /* @__PURE__ */ n.jsx(Vn, { list: a, load: t, item: r }) : /* @__PURE__ */ n.jsx(Rn, { list: a, load: t, item: r })
|
|
6664
6668
|
] });
|
|
6665
6669
|
}
|
|
6666
|
-
function
|
|
6670
|
+
function Fl(e, t) {
|
|
6667
6671
|
switch (t.type) {
|
|
6668
6672
|
case "load":
|
|
6669
6673
|
return {
|
|
@@ -6705,50 +6709,50 @@ function Ml(e, t) {
|
|
|
6705
6709
|
}
|
|
6706
6710
|
}
|
|
6707
6711
|
const jt = {};
|
|
6708
|
-
function
|
|
6712
|
+
function Ll(e) {
|
|
6709
6713
|
jt.get = e;
|
|
6710
6714
|
}
|
|
6711
|
-
function
|
|
6715
|
+
function $l(e) {
|
|
6712
6716
|
jt.get && jt.get(e);
|
|
6713
6717
|
}
|
|
6714
|
-
const
|
|
6718
|
+
const ac = { View: Ml, Reducer: Fl, useValue: Ll, setValue: $l }, rc = { Get: is }, sc = { Open: zi };
|
|
6715
6719
|
export {
|
|
6716
|
-
|
|
6717
|
-
|
|
6720
|
+
ho as Action,
|
|
6721
|
+
zl as Alert,
|
|
6718
6722
|
nn as Api,
|
|
6719
|
-
|
|
6720
|
-
|
|
6721
|
-
|
|
6722
|
-
|
|
6723
|
-
|
|
6723
|
+
Wl as Badge,
|
|
6724
|
+
Zl as Bookmarks,
|
|
6725
|
+
Ol as Browser,
|
|
6726
|
+
ri as Button,
|
|
6727
|
+
rc as Company,
|
|
6724
6728
|
un as Component,
|
|
6725
|
-
|
|
6729
|
+
Ul as DataBase,
|
|
6726
6730
|
Ee as Event,
|
|
6727
6731
|
Ee as Events,
|
|
6728
|
-
|
|
6729
|
-
|
|
6730
|
-
|
|
6732
|
+
Hl as Files,
|
|
6733
|
+
ec as Filter,
|
|
6734
|
+
ql as Form,
|
|
6731
6735
|
K as Format,
|
|
6732
|
-
|
|
6733
|
-
|
|
6734
|
-
|
|
6735
|
-
|
|
6736
|
-
|
|
6737
|
-
|
|
6736
|
+
Vl as HotKey,
|
|
6737
|
+
Gl as Icon,
|
|
6738
|
+
Qi as Init,
|
|
6739
|
+
Jl as Input,
|
|
6740
|
+
ac as List,
|
|
6741
|
+
Xl as Loading,
|
|
6738
6742
|
Et as Modal,
|
|
6739
6743
|
Pe as Notice,
|
|
6740
|
-
|
|
6741
|
-
|
|
6742
|
-
|
|
6744
|
+
tc as Notifications,
|
|
6745
|
+
nc as Pagination,
|
|
6746
|
+
sc as Phone,
|
|
6743
6747
|
He as Router,
|
|
6744
|
-
|
|
6745
|
-
|
|
6746
|
-
|
|
6748
|
+
Yl as Scrolling,
|
|
6749
|
+
Ql as Search,
|
|
6750
|
+
Al as Setting,
|
|
6747
6751
|
St as Sistym,
|
|
6748
6752
|
ce as Socket,
|
|
6749
6753
|
se as Store,
|
|
6750
|
-
|
|
6751
|
-
|
|
6754
|
+
so as Tabs,
|
|
6755
|
+
Kl as Triage,
|
|
6752
6756
|
Nt as User,
|
|
6753
6757
|
O as WebRTC
|
|
6754
6758
|
};
|