@elcrm/telegram 0.0.34 → 0.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +836 -828
- package/dist/index.umd.js +4 -4
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';var _a = Object.defineProperty;
|
|
2
2
|
var da = (e, t, a) => t in e ? _a(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
|
|
3
|
-
var
|
|
3
|
+
var it = (e, t, a) => (da(e, typeof t != "symbol" ? t + "" : t, a), a);
|
|
4
4
|
import b from "react";
|
|
5
5
|
let gt = {};
|
|
6
6
|
const ua = (e) => {
|
|
@@ -67,8 +67,8 @@ function lt() {
|
|
|
67
67
|
}
|
|
68
68
|
function ya(e) {
|
|
69
69
|
if (typeof e != "function") {
|
|
70
|
-
const [t, a] = b.useState(e || an()), r = (
|
|
71
|
-
a(
|
|
70
|
+
const [t, a] = b.useState(e || an()), r = (i) => {
|
|
71
|
+
a(i);
|
|
72
72
|
};
|
|
73
73
|
return U.page = r, [t];
|
|
74
74
|
} else
|
|
@@ -85,8 +85,8 @@ function Sa(e) {
|
|
|
85
85
|
}
|
|
86
86
|
function Ea(e) {
|
|
87
87
|
if (typeof e != "function") {
|
|
88
|
-
const [t, a] = b.useState(e || rn()), r = (
|
|
89
|
-
a(
|
|
88
|
+
const [t, a] = b.useState(e || rn()), r = (i) => {
|
|
89
|
+
a(i);
|
|
90
90
|
};
|
|
91
91
|
return U.module = r, [t];
|
|
92
92
|
} else
|
|
@@ -103,9 +103,9 @@ function Ta(e) {
|
|
|
103
103
|
}
|
|
104
104
|
function Ra(e) {
|
|
105
105
|
if (typeof e != "function") {
|
|
106
|
-
const [t, a] = b.useState(e || Ze()), [r,
|
|
106
|
+
const [t, a] = b.useState(e || Ze()), [r, i] = b.useState(!1);
|
|
107
107
|
return b.useEffect(() => {
|
|
108
|
-
|
|
108
|
+
i(!0);
|
|
109
109
|
}, []), U.tabs = a, [t, r];
|
|
110
110
|
} else
|
|
111
111
|
U.tabs = e;
|
|
@@ -125,8 +125,8 @@ function Ia(e) {
|
|
|
125
125
|
}
|
|
126
126
|
function Na(e) {
|
|
127
127
|
if (typeof e != "function") {
|
|
128
|
-
const [t, a] = b.useState(e || on()), r = (
|
|
129
|
-
a(
|
|
128
|
+
const [t, a] = b.useState(e || on()), r = (i) => {
|
|
129
|
+
a(i);
|
|
130
130
|
};
|
|
131
131
|
return U.id = r, [t];
|
|
132
132
|
} else
|
|
@@ -165,13 +165,13 @@ function Ga() {
|
|
|
165
165
|
if (e !== "" && e !== "undefined" && e !== null) {
|
|
166
166
|
let t = localStorage.getItem("m"), a = N.deCode(t);
|
|
167
167
|
a || X();
|
|
168
|
-
const r = (
|
|
168
|
+
const r = (o, l) => {
|
|
169
169
|
let c = l + "";
|
|
170
|
-
for (; c.length <
|
|
170
|
+
for (; c.length < o; )
|
|
171
171
|
c = "0" + c;
|
|
172
172
|
return c;
|
|
173
173
|
};
|
|
174
|
-
return a.data.split(",").map((
|
|
174
|
+
return a.data.split(",").map((o) => "M" + r(2, o));
|
|
175
175
|
} else
|
|
176
176
|
return X(), !1;
|
|
177
177
|
}
|
|
@@ -193,8 +193,8 @@ function Wa(e, t) {
|
|
|
193
193
|
var r;
|
|
194
194
|
let a = localStorage.getItem("c");
|
|
195
195
|
if (a !== "" && a !== "undefined" && a !== null) {
|
|
196
|
-
let
|
|
197
|
-
return
|
|
196
|
+
let i = N.deCode(a);
|
|
197
|
+
return i || X(), e === void 0 ? i : t ? (r = i[e][t]) == null ? void 0 : r.n : i[e];
|
|
198
198
|
} else
|
|
199
199
|
return X(), !1;
|
|
200
200
|
}
|
|
@@ -239,10 +239,10 @@ function qa(e) {
|
|
|
239
239
|
let r = localStorage.getItem(a);
|
|
240
240
|
if (r !== "" && r !== "undefined" && r !== null)
|
|
241
241
|
try {
|
|
242
|
-
let
|
|
243
|
-
if (!
|
|
242
|
+
let i = N.deCode(r);
|
|
243
|
+
if (!i)
|
|
244
244
|
return;
|
|
245
|
-
j[a] = { is: !0, time:
|
|
245
|
+
j[a] = { is: !0, time: i.time, data: i.data };
|
|
246
246
|
} catch {
|
|
247
247
|
j[a] = { is: !1, time: 0, data: {} };
|
|
248
248
|
}
|
|
@@ -260,7 +260,7 @@ function Xa(e, t) {
|
|
|
260
260
|
function Qa(e, t, a) {
|
|
261
261
|
j[e].time = a, j[e].data[t.item][t.name] = t.value, localStorage.setItem(e, N.enCode(j[e]));
|
|
262
262
|
}
|
|
263
|
-
const
|
|
263
|
+
const le = {
|
|
264
264
|
setSSID: va,
|
|
265
265
|
getSSID: ka,
|
|
266
266
|
getPORT: lt,
|
|
@@ -313,38 +313,38 @@ function un(e) {
|
|
|
313
313
|
t && (window.URL || window.webkitURL).revokeObjectURL(t);
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
|
-
const
|
|
316
|
+
const de = {};
|
|
317
317
|
function tr(e) {
|
|
318
|
-
return e && (
|
|
318
|
+
return e && (de.s = e), de.s;
|
|
319
319
|
}
|
|
320
320
|
function nr(e) {
|
|
321
|
-
return e && (
|
|
321
|
+
return e && (de.a = e), de.a;
|
|
322
322
|
}
|
|
323
323
|
function ar(e) {
|
|
324
|
-
return e && (
|
|
324
|
+
return e && (de.c = e), de.c;
|
|
325
325
|
}
|
|
326
326
|
function rr(e) {
|
|
327
|
-
return e && (
|
|
327
|
+
return e && (de.h = e), de.h;
|
|
328
328
|
}
|
|
329
329
|
const xt = { version: { Api: nr, Server: tr, Client: ar }, Host: rr };
|
|
330
|
-
let
|
|
330
|
+
let ir = "api", or = "elcrm", sr = "online";
|
|
331
331
|
function lr() {
|
|
332
|
-
let e =
|
|
332
|
+
let e = le.getPORT(), t = "", a = "";
|
|
333
333
|
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"), {
|
|
334
334
|
documents: t,
|
|
335
335
|
files: a
|
|
336
336
|
};
|
|
337
337
|
}
|
|
338
|
-
let fn = `${
|
|
338
|
+
let fn = `${ir}.${or}.${sr}`;
|
|
339
339
|
function cr(e) {
|
|
340
|
-
return "https://" +
|
|
340
|
+
return "https://" + le.getPORT().address + "/audio/" + e;
|
|
341
341
|
}
|
|
342
|
-
function Ue(e, t = {}, a =
|
|
342
|
+
function Ue(e, t = {}, a = le.getAUTH()) {
|
|
343
343
|
return new Promise((r) => {
|
|
344
|
-
const
|
|
345
|
-
|
|
346
|
-
r(
|
|
347
|
-
},
|
|
344
|
+
const i = new un();
|
|
345
|
+
i.onmessage = (o) => {
|
|
346
|
+
r(o.data), i.terminate();
|
|
347
|
+
}, i.postMessage({
|
|
348
348
|
link: e,
|
|
349
349
|
data: t,
|
|
350
350
|
ssid: a,
|
|
@@ -352,12 +352,12 @@ function Ue(e, t = {}, a = ie.getAUTH()) {
|
|
|
352
352
|
});
|
|
353
353
|
});
|
|
354
354
|
}
|
|
355
|
-
function _r(e, t = {}, a =
|
|
355
|
+
function _r(e, t = {}, a = le.getAUTH()) {
|
|
356
356
|
return new Promise((r) => {
|
|
357
|
-
const
|
|
358
|
-
|
|
359
|
-
r(
|
|
360
|
-
},
|
|
357
|
+
const i = new un();
|
|
358
|
+
i.onmessage = (o) => {
|
|
359
|
+
r(o.data), i.terminate();
|
|
360
|
+
}, i.postMessage({
|
|
361
361
|
link: e,
|
|
362
362
|
data: t,
|
|
363
363
|
ssid: a,
|
|
@@ -366,17 +366,17 @@ function _r(e, t = {}, a = ie.getAUTH()) {
|
|
|
366
366
|
});
|
|
367
367
|
}
|
|
368
368
|
function dr(e, t = {}, a) {
|
|
369
|
-
const [r,
|
|
369
|
+
const [r, i] = b.useState({ status: "load" }), o = async (l) => {
|
|
370
370
|
let c = await Ue(e, l, a);
|
|
371
|
-
|
|
371
|
+
i(c);
|
|
372
372
|
};
|
|
373
373
|
return b.useEffect(() => {
|
|
374
|
-
|
|
375
|
-
}, []), [r,
|
|
374
|
+
o(t);
|
|
375
|
+
}, []), [r, o];
|
|
376
376
|
}
|
|
377
377
|
let mn = {
|
|
378
378
|
"Content-type": "application/json;charset=utf-8",
|
|
379
|
-
ssid:
|
|
379
|
+
ssid: le.getAUTH() || ""
|
|
380
380
|
};
|
|
381
381
|
async function ur(e, t, a = {}) {
|
|
382
382
|
try {
|
|
@@ -416,16 +416,16 @@ function mr() {
|
|
|
416
416
|
if (Ut)
|
|
417
417
|
return Re;
|
|
418
418
|
Ut = 1;
|
|
419
|
-
var e = b, t = Symbol.for("react.element"), a = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty,
|
|
419
|
+
var e = b, t = Symbol.for("react.element"), a = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
420
420
|
function l(c, d, _) {
|
|
421
421
|
var u, f = {}, x = null, m = null;
|
|
422
422
|
_ !== void 0 && (x = "" + _), d.key !== void 0 && (x = "" + d.key), d.ref !== void 0 && (m = d.ref);
|
|
423
423
|
for (u in d)
|
|
424
|
-
r.call(d, u) && !
|
|
424
|
+
r.call(d, u) && !o.hasOwnProperty(u) && (f[u] = d[u]);
|
|
425
425
|
if (c && c.defaultProps)
|
|
426
426
|
for (u in d = c.defaultProps, d)
|
|
427
427
|
f[u] === void 0 && (f[u] = d[u]);
|
|
428
|
-
return { $$typeof: t, type: c, key: x, ref: m, props: f, _owner:
|
|
428
|
+
return { $$typeof: t, type: c, key: x, ref: m, props: f, _owner: i.current };
|
|
429
429
|
}
|
|
430
430
|
return Re.Fragment = a, Re.jsx = l, Re.jsxs = l, Re;
|
|
431
431
|
}
|
|
@@ -442,86 +442,86 @@ var Me = {};
|
|
|
442
442
|
var Ht;
|
|
443
443
|
function hr() {
|
|
444
444
|
return Ht || (Ht = 1, process.env.NODE_ENV !== "production" && function() {
|
|
445
|
-
var e = b, t = Symbol.for("react.element"), a = Symbol.for("react.portal"), r = Symbol.for("react.fragment"),
|
|
446
|
-
function p(
|
|
447
|
-
if (
|
|
445
|
+
var e = b, t = Symbol.for("react.element"), a = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), g = Symbol.iterator, v = "@@iterator";
|
|
446
|
+
function p(s) {
|
|
447
|
+
if (s === null || typeof s != "object")
|
|
448
448
|
return null;
|
|
449
|
-
var h = g &&
|
|
449
|
+
var h = g && s[g] || s[v];
|
|
450
450
|
return typeof h == "function" ? h : null;
|
|
451
451
|
}
|
|
452
452
|
var C = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
453
|
-
function y(
|
|
453
|
+
function y(s) {
|
|
454
454
|
{
|
|
455
455
|
for (var h = arguments.length, k = new Array(h > 1 ? h - 1 : 0), w = 1; w < h; w++)
|
|
456
456
|
k[w - 1] = arguments[w];
|
|
457
|
-
B("error",
|
|
457
|
+
B("error", s, k);
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
|
-
function B(
|
|
460
|
+
function B(s, h, k) {
|
|
461
461
|
{
|
|
462
462
|
var w = C.ReactDebugCurrentFrame, D = w.getStackAddendum();
|
|
463
463
|
D !== "" && (h += "%s", k = k.concat([D]));
|
|
464
464
|
var F = k.map(function(I) {
|
|
465
465
|
return String(I);
|
|
466
466
|
});
|
|
467
|
-
F.unshift("Warning: " + h), Function.prototype.apply.call(console[
|
|
467
|
+
F.unshift("Warning: " + h), Function.prototype.apply.call(console[s], console, F);
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
470
|
var T = !1, P = !1, O = !1, K = !1, se = !1, z;
|
|
471
471
|
z = Symbol.for("react.module.reference");
|
|
472
|
-
function M(
|
|
473
|
-
return !!(typeof
|
|
472
|
+
function M(s) {
|
|
473
|
+
return !!(typeof s == "string" || typeof s == "function" || s === r || s === o || se || s === i || s === _ || s === u || K || s === m || T || P || O || typeof s == "object" && s !== null && (s.$$typeof === x || s.$$typeof === f || s.$$typeof === l || s.$$typeof === c || s.$$typeof === d || // This needs to include all possible module reference object
|
|
474
474
|
// types supported by any Flight configuration anywhere since
|
|
475
475
|
// we don't know which Flight build this will end up being used
|
|
476
476
|
// with.
|
|
477
|
-
|
|
477
|
+
s.$$typeof === z || s.getModuleId !== void 0));
|
|
478
478
|
}
|
|
479
|
-
function W(
|
|
480
|
-
var w =
|
|
479
|
+
function W(s, h, k) {
|
|
480
|
+
var w = s.displayName;
|
|
481
481
|
if (w)
|
|
482
482
|
return w;
|
|
483
483
|
var D = h.displayName || h.name || "";
|
|
484
484
|
return D !== "" ? k + "(" + D + ")" : k;
|
|
485
485
|
}
|
|
486
|
-
function $(
|
|
487
|
-
return
|
|
486
|
+
function $(s) {
|
|
487
|
+
return s.displayName || "Context";
|
|
488
488
|
}
|
|
489
|
-
function E(
|
|
490
|
-
if (
|
|
489
|
+
function E(s) {
|
|
490
|
+
if (s == null)
|
|
491
491
|
return null;
|
|
492
|
-
if (typeof
|
|
493
|
-
return
|
|
494
|
-
if (typeof
|
|
495
|
-
return
|
|
496
|
-
switch (
|
|
492
|
+
if (typeof s.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof s == "function")
|
|
493
|
+
return s.displayName || s.name || null;
|
|
494
|
+
if (typeof s == "string")
|
|
495
|
+
return s;
|
|
496
|
+
switch (s) {
|
|
497
497
|
case r:
|
|
498
498
|
return "Fragment";
|
|
499
499
|
case a:
|
|
500
500
|
return "Portal";
|
|
501
|
-
case s:
|
|
502
|
-
return "Profiler";
|
|
503
501
|
case o:
|
|
502
|
+
return "Profiler";
|
|
503
|
+
case i:
|
|
504
504
|
return "StrictMode";
|
|
505
505
|
case _:
|
|
506
506
|
return "Suspense";
|
|
507
507
|
case u:
|
|
508
508
|
return "SuspenseList";
|
|
509
509
|
}
|
|
510
|
-
if (typeof
|
|
511
|
-
switch (
|
|
510
|
+
if (typeof s == "object")
|
|
511
|
+
switch (s.$$typeof) {
|
|
512
512
|
case c:
|
|
513
|
-
var h =
|
|
513
|
+
var h = s;
|
|
514
514
|
return $(h) + ".Consumer";
|
|
515
515
|
case l:
|
|
516
|
-
var k =
|
|
516
|
+
var k = s;
|
|
517
517
|
return $(k._context) + ".Provider";
|
|
518
518
|
case d:
|
|
519
|
-
return W(
|
|
519
|
+
return W(s, s.render, "ForwardRef");
|
|
520
520
|
case f:
|
|
521
|
-
var w =
|
|
522
|
-
return w !== null ? w : E(
|
|
521
|
+
var w = s.displayName || null;
|
|
522
|
+
return w !== null ? w : E(s.type) || "Memo";
|
|
523
523
|
case x: {
|
|
524
|
-
var D =
|
|
524
|
+
var D = s, F = D._payload, I = D._init;
|
|
525
525
|
try {
|
|
526
526
|
return E(I(F));
|
|
527
527
|
} catch {
|
|
@@ -539,20 +539,20 @@ function hr() {
|
|
|
539
539
|
{
|
|
540
540
|
if (Y === 0) {
|
|
541
541
|
$e = console.log, te = console.info, Ee = console.warn, Ve = console.error, Le = console.group, Bt = console.groupCollapsed, Tt = console.groupEnd;
|
|
542
|
-
var
|
|
542
|
+
var s = {
|
|
543
543
|
configurable: !0,
|
|
544
544
|
enumerable: !0,
|
|
545
545
|
value: Rt,
|
|
546
546
|
writable: !0
|
|
547
547
|
};
|
|
548
548
|
Object.defineProperties(console, {
|
|
549
|
-
info:
|
|
550
|
-
log:
|
|
551
|
-
warn:
|
|
552
|
-
error:
|
|
553
|
-
group:
|
|
554
|
-
groupCollapsed:
|
|
555
|
-
groupEnd:
|
|
549
|
+
info: s,
|
|
550
|
+
log: s,
|
|
551
|
+
warn: s,
|
|
552
|
+
error: s,
|
|
553
|
+
group: s,
|
|
554
|
+
groupCollapsed: s,
|
|
555
|
+
groupEnd: s
|
|
556
556
|
});
|
|
557
557
|
}
|
|
558
558
|
Y++;
|
|
@@ -561,31 +561,31 @@ function hr() {
|
|
|
561
561
|
function Ln() {
|
|
562
562
|
{
|
|
563
563
|
if (Y--, Y === 0) {
|
|
564
|
-
var
|
|
564
|
+
var s = {
|
|
565
565
|
configurable: !0,
|
|
566
566
|
enumerable: !0,
|
|
567
567
|
writable: !0
|
|
568
568
|
};
|
|
569
569
|
Object.defineProperties(console, {
|
|
570
|
-
log: Z({},
|
|
570
|
+
log: Z({}, s, {
|
|
571
571
|
value: $e
|
|
572
572
|
}),
|
|
573
|
-
info: Z({},
|
|
573
|
+
info: Z({}, s, {
|
|
574
574
|
value: te
|
|
575
575
|
}),
|
|
576
|
-
warn: Z({},
|
|
576
|
+
warn: Z({}, s, {
|
|
577
577
|
value: Ee
|
|
578
578
|
}),
|
|
579
|
-
error: Z({},
|
|
579
|
+
error: Z({}, s, {
|
|
580
580
|
value: Ve
|
|
581
581
|
}),
|
|
582
|
-
group: Z({},
|
|
582
|
+
group: Z({}, s, {
|
|
583
583
|
value: Le
|
|
584
584
|
}),
|
|
585
|
-
groupCollapsed: Z({},
|
|
585
|
+
groupCollapsed: Z({}, s, {
|
|
586
586
|
value: Bt
|
|
587
587
|
}),
|
|
588
|
-
groupEnd: Z({},
|
|
588
|
+
groupEnd: Z({}, s, {
|
|
589
589
|
value: Tt
|
|
590
590
|
})
|
|
591
591
|
});
|
|
@@ -594,7 +594,7 @@ function hr() {
|
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
596
|
var qe = C.ReactCurrentDispatcher, Je;
|
|
597
|
-
function Ae(
|
|
597
|
+
function Ae(s, h, k) {
|
|
598
598
|
{
|
|
599
599
|
if (Je === void 0)
|
|
600
600
|
try {
|
|
@@ -604,7 +604,7 @@ function hr() {
|
|
|
604
604
|
Je = w && w[1] || "";
|
|
605
605
|
}
|
|
606
606
|
return `
|
|
607
|
-
` + Je +
|
|
607
|
+
` + Je + s;
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
610
|
var Xe = !1, Oe;
|
|
@@ -612,11 +612,11 @@ function hr() {
|
|
|
612
612
|
var An = typeof WeakMap == "function" ? WeakMap : Map;
|
|
613
613
|
Oe = new An();
|
|
614
614
|
}
|
|
615
|
-
function Mt(
|
|
616
|
-
if (!
|
|
615
|
+
function Mt(s, h) {
|
|
616
|
+
if (!s || Xe)
|
|
617
617
|
return "";
|
|
618
618
|
{
|
|
619
|
-
var k = Oe.get(
|
|
619
|
+
var k = Oe.get(s);
|
|
620
620
|
if (k !== void 0)
|
|
621
621
|
return k;
|
|
622
622
|
}
|
|
@@ -641,14 +641,14 @@ function hr() {
|
|
|
641
641
|
} catch (q) {
|
|
642
642
|
w = q;
|
|
643
643
|
}
|
|
644
|
-
Reflect.construct(
|
|
644
|
+
Reflect.construct(s, [], I);
|
|
645
645
|
} else {
|
|
646
646
|
try {
|
|
647
647
|
I.call();
|
|
648
648
|
} catch (q) {
|
|
649
649
|
w = q;
|
|
650
650
|
}
|
|
651
|
-
|
|
651
|
+
s.call(I.prototype);
|
|
652
652
|
}
|
|
653
653
|
} else {
|
|
654
654
|
try {
|
|
@@ -656,7 +656,7 @@ function hr() {
|
|
|
656
656
|
} catch (q) {
|
|
657
657
|
w = q;
|
|
658
658
|
}
|
|
659
|
-
|
|
659
|
+
s();
|
|
660
660
|
}
|
|
661
661
|
} catch (q) {
|
|
662
662
|
if (q && w && typeof q.stack == "string") {
|
|
@@ -671,7 +671,7 @@ function hr() {
|
|
|
671
671
|
if (L--, G--, G < 0 || R[L] !== V[G]) {
|
|
672
672
|
var Q = `
|
|
673
673
|
` + R[L].replace(" at new ", " at ");
|
|
674
|
-
return
|
|
674
|
+
return s.displayName && Q.includes("<anonymous>") && (Q = Q.replace("<anonymous>", s.displayName)), typeof s == "function" && Oe.set(s, Q), Q;
|
|
675
675
|
}
|
|
676
676
|
while (L >= 1 && G >= 0);
|
|
677
677
|
break;
|
|
@@ -680,37 +680,37 @@ function hr() {
|
|
|
680
680
|
} finally {
|
|
681
681
|
Xe = !1, qe.current = F, Ln(), Error.prepareStackTrace = D;
|
|
682
682
|
}
|
|
683
|
-
var Ce =
|
|
684
|
-
return typeof
|
|
683
|
+
var Ce = s ? s.displayName || s.name : "", he = Ce ? Ae(Ce) : "";
|
|
684
|
+
return typeof s == "function" && Oe.set(s, he), he;
|
|
685
685
|
}
|
|
686
|
-
function On(
|
|
687
|
-
return Mt(
|
|
686
|
+
function On(s, h, k) {
|
|
687
|
+
return Mt(s, !1);
|
|
688
688
|
}
|
|
689
|
-
function Gn(
|
|
690
|
-
var h =
|
|
689
|
+
function Gn(s) {
|
|
690
|
+
var h = s.prototype;
|
|
691
691
|
return !!(h && h.isReactComponent);
|
|
692
692
|
}
|
|
693
|
-
function Ge(
|
|
694
|
-
if (
|
|
693
|
+
function Ge(s, h, k) {
|
|
694
|
+
if (s == null)
|
|
695
695
|
return "";
|
|
696
|
-
if (typeof
|
|
697
|
-
return Mt(
|
|
698
|
-
if (typeof
|
|
699
|
-
return Ae(
|
|
700
|
-
switch (
|
|
696
|
+
if (typeof s == "function")
|
|
697
|
+
return Mt(s, Gn(s));
|
|
698
|
+
if (typeof s == "string")
|
|
699
|
+
return Ae(s);
|
|
700
|
+
switch (s) {
|
|
701
701
|
case _:
|
|
702
702
|
return Ae("Suspense");
|
|
703
703
|
case u:
|
|
704
704
|
return Ae("SuspenseList");
|
|
705
705
|
}
|
|
706
|
-
if (typeof
|
|
707
|
-
switch (
|
|
706
|
+
if (typeof s == "object")
|
|
707
|
+
switch (s.$$typeof) {
|
|
708
708
|
case d:
|
|
709
|
-
return On(
|
|
709
|
+
return On(s.render);
|
|
710
710
|
case f:
|
|
711
|
-
return Ge(
|
|
711
|
+
return Ge(s.type, h, k);
|
|
712
712
|
case x: {
|
|
713
|
-
var w =
|
|
713
|
+
var w = s, D = w._payload, F = w._init;
|
|
714
714
|
try {
|
|
715
715
|
return Ge(F(D), h, k);
|
|
716
716
|
} catch {
|
|
@@ -720,25 +720,25 @@ function hr() {
|
|
|
720
720
|
return "";
|
|
721
721
|
}
|
|
722
722
|
var Be = Object.prototype.hasOwnProperty, It = {}, Nt = C.ReactDebugCurrentFrame;
|
|
723
|
-
function ze(
|
|
724
|
-
if (
|
|
725
|
-
var h =
|
|
723
|
+
function ze(s) {
|
|
724
|
+
if (s) {
|
|
725
|
+
var h = s._owner, k = Ge(s.type, s._source, h ? h.type : null);
|
|
726
726
|
Nt.setExtraStackFrame(k);
|
|
727
727
|
} else
|
|
728
728
|
Nt.setExtraStackFrame(null);
|
|
729
729
|
}
|
|
730
|
-
function zn(
|
|
730
|
+
function zn(s, h, k, w, D) {
|
|
731
731
|
{
|
|
732
732
|
var F = Function.call.bind(Be);
|
|
733
|
-
for (var I in
|
|
734
|
-
if (F(
|
|
733
|
+
for (var I in s)
|
|
734
|
+
if (F(s, I)) {
|
|
735
735
|
var R = void 0;
|
|
736
736
|
try {
|
|
737
|
-
if (typeof
|
|
738
|
-
var V = Error((w || "React class") + ": " + k + " type `" + I + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof
|
|
737
|
+
if (typeof s[I] != "function") {
|
|
738
|
+
var V = Error((w || "React class") + ": " + k + " type `" + I + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[I] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
739
739
|
throw V.name = "Invariant Violation", V;
|
|
740
740
|
}
|
|
741
|
-
R =
|
|
741
|
+
R = s[I](h, I, w, k, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
742
742
|
} catch (L) {
|
|
743
743
|
R = L;
|
|
744
744
|
}
|
|
@@ -747,28 +747,28 @@ function hr() {
|
|
|
747
747
|
}
|
|
748
748
|
}
|
|
749
749
|
var Wn = Array.isArray;
|
|
750
|
-
function Qe(
|
|
751
|
-
return Wn(
|
|
750
|
+
function Qe(s) {
|
|
751
|
+
return Wn(s);
|
|
752
752
|
}
|
|
753
|
-
function Kn(
|
|
753
|
+
function Kn(s) {
|
|
754
754
|
{
|
|
755
|
-
var h = typeof Symbol == "function" && Symbol.toStringTag, k = h &&
|
|
755
|
+
var h = typeof Symbol == "function" && Symbol.toStringTag, k = h && s[Symbol.toStringTag] || s.constructor.name || "Object";
|
|
756
756
|
return k;
|
|
757
757
|
}
|
|
758
758
|
}
|
|
759
|
-
function Zn(
|
|
759
|
+
function Zn(s) {
|
|
760
760
|
try {
|
|
761
|
-
return Dt(
|
|
761
|
+
return Dt(s), !1;
|
|
762
762
|
} catch {
|
|
763
763
|
return !0;
|
|
764
764
|
}
|
|
765
765
|
}
|
|
766
|
-
function Dt(
|
|
767
|
-
return "" +
|
|
766
|
+
function Dt(s) {
|
|
767
|
+
return "" + s;
|
|
768
768
|
}
|
|
769
|
-
function Pt(
|
|
770
|
-
if (Zn(
|
|
771
|
-
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Kn(
|
|
769
|
+
function Pt(s) {
|
|
770
|
+
if (Zn(s))
|
|
771
|
+
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Kn(s)), Dt(s);
|
|
772
772
|
}
|
|
773
773
|
var Te = C.ReactCurrentOwner, Un = {
|
|
774
774
|
key: !0,
|
|
@@ -777,56 +777,56 @@ function hr() {
|
|
|
777
777
|
__source: !0
|
|
778
778
|
}, Ft, $t, et;
|
|
779
779
|
et = {};
|
|
780
|
-
function Hn(
|
|
781
|
-
if (Be.call(
|
|
782
|
-
var h = Object.getOwnPropertyDescriptor(
|
|
780
|
+
function Hn(s) {
|
|
781
|
+
if (Be.call(s, "ref")) {
|
|
782
|
+
var h = Object.getOwnPropertyDescriptor(s, "ref").get;
|
|
783
783
|
if (h && h.isReactWarning)
|
|
784
784
|
return !1;
|
|
785
785
|
}
|
|
786
|
-
return
|
|
786
|
+
return s.ref !== void 0;
|
|
787
787
|
}
|
|
788
|
-
function Yn(
|
|
789
|
-
if (Be.call(
|
|
790
|
-
var h = Object.getOwnPropertyDescriptor(
|
|
788
|
+
function Yn(s) {
|
|
789
|
+
if (Be.call(s, "key")) {
|
|
790
|
+
var h = Object.getOwnPropertyDescriptor(s, "key").get;
|
|
791
791
|
if (h && h.isReactWarning)
|
|
792
792
|
return !1;
|
|
793
793
|
}
|
|
794
|
-
return
|
|
794
|
+
return s.key !== void 0;
|
|
795
795
|
}
|
|
796
|
-
function Vn(
|
|
797
|
-
if (typeof
|
|
796
|
+
function Vn(s, h) {
|
|
797
|
+
if (typeof s.ref == "string" && Te.current && h && Te.current.stateNode !== h) {
|
|
798
798
|
var k = E(Te.current.type);
|
|
799
|
-
et[k] || (y('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', E(Te.current.type),
|
|
799
|
+
et[k] || (y('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', E(Te.current.type), s.ref), et[k] = !0);
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
|
-
function qn(
|
|
802
|
+
function qn(s, h) {
|
|
803
803
|
{
|
|
804
804
|
var k = function() {
|
|
805
805
|
Ft || (Ft = !0, y("%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)", h));
|
|
806
806
|
};
|
|
807
|
-
k.isReactWarning = !0, Object.defineProperty(
|
|
807
|
+
k.isReactWarning = !0, Object.defineProperty(s, "key", {
|
|
808
808
|
get: k,
|
|
809
809
|
configurable: !0
|
|
810
810
|
});
|
|
811
811
|
}
|
|
812
812
|
}
|
|
813
|
-
function Jn(
|
|
813
|
+
function Jn(s, h) {
|
|
814
814
|
{
|
|
815
815
|
var k = function() {
|
|
816
816
|
$t || ($t = !0, y("%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)", h));
|
|
817
817
|
};
|
|
818
|
-
k.isReactWarning = !0, Object.defineProperty(
|
|
818
|
+
k.isReactWarning = !0, Object.defineProperty(s, "ref", {
|
|
819
819
|
get: k,
|
|
820
820
|
configurable: !0
|
|
821
821
|
});
|
|
822
822
|
}
|
|
823
823
|
}
|
|
824
|
-
var Xn = function(
|
|
824
|
+
var Xn = function(s, h, k, w, D, F, I) {
|
|
825
825
|
var R = {
|
|
826
826
|
// This tag allows us to uniquely identify this as a React Element
|
|
827
827
|
$$typeof: t,
|
|
828
828
|
// Built-in properties that belong on the element
|
|
829
|
-
type:
|
|
829
|
+
type: s,
|
|
830
830
|
key: h,
|
|
831
831
|
ref: k,
|
|
832
832
|
props: I,
|
|
@@ -850,58 +850,58 @@ function hr() {
|
|
|
850
850
|
value: D
|
|
851
851
|
}), Object.freeze && (Object.freeze(R.props), Object.freeze(R)), R;
|
|
852
852
|
};
|
|
853
|
-
function Qn(
|
|
853
|
+
function Qn(s, h, k, w, D) {
|
|
854
854
|
{
|
|
855
855
|
var F, I = {}, R = null, V = null;
|
|
856
856
|
k !== void 0 && (Pt(k), R = "" + k), Yn(h) && (Pt(h.key), R = "" + h.key), Hn(h) && (V = h.ref, Vn(h, D));
|
|
857
857
|
for (F in h)
|
|
858
858
|
Be.call(h, F) && !Un.hasOwnProperty(F) && (I[F] = h[F]);
|
|
859
|
-
if (
|
|
860
|
-
var L =
|
|
859
|
+
if (s && s.defaultProps) {
|
|
860
|
+
var L = s.defaultProps;
|
|
861
861
|
for (F in L)
|
|
862
862
|
I[F] === void 0 && (I[F] = L[F]);
|
|
863
863
|
}
|
|
864
864
|
if (R || V) {
|
|
865
|
-
var G = typeof
|
|
865
|
+
var G = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
|
|
866
866
|
R && qn(I, G), V && Jn(I, G);
|
|
867
867
|
}
|
|
868
|
-
return Xn(
|
|
868
|
+
return Xn(s, R, V, D, w, Te.current, I);
|
|
869
869
|
}
|
|
870
870
|
}
|
|
871
871
|
var tt = C.ReactCurrentOwner, Lt = C.ReactDebugCurrentFrame;
|
|
872
|
-
function be(
|
|
873
|
-
if (
|
|
874
|
-
var h =
|
|
872
|
+
function be(s) {
|
|
873
|
+
if (s) {
|
|
874
|
+
var h = s._owner, k = Ge(s.type, s._source, h ? h.type : null);
|
|
875
875
|
Lt.setExtraStackFrame(k);
|
|
876
876
|
} else
|
|
877
877
|
Lt.setExtraStackFrame(null);
|
|
878
878
|
}
|
|
879
879
|
var nt;
|
|
880
880
|
nt = !1;
|
|
881
|
-
function at(
|
|
882
|
-
return typeof
|
|
881
|
+
function at(s) {
|
|
882
|
+
return typeof s == "object" && s !== null && s.$$typeof === t;
|
|
883
883
|
}
|
|
884
884
|
function At() {
|
|
885
885
|
{
|
|
886
886
|
if (tt.current) {
|
|
887
|
-
var
|
|
888
|
-
if (
|
|
887
|
+
var s = E(tt.current.type);
|
|
888
|
+
if (s)
|
|
889
889
|
return `
|
|
890
890
|
|
|
891
|
-
Check the render method of \`` +
|
|
891
|
+
Check the render method of \`` + s + "`.";
|
|
892
892
|
}
|
|
893
893
|
return "";
|
|
894
894
|
}
|
|
895
895
|
}
|
|
896
|
-
function ea(
|
|
896
|
+
function ea(s) {
|
|
897
897
|
return "";
|
|
898
898
|
}
|
|
899
899
|
var Ot = {};
|
|
900
|
-
function ta(
|
|
900
|
+
function ta(s) {
|
|
901
901
|
{
|
|
902
902
|
var h = At();
|
|
903
903
|
if (!h) {
|
|
904
|
-
var k = typeof
|
|
904
|
+
var k = typeof s == "string" ? s : s.displayName || s.name;
|
|
905
905
|
k && (h = `
|
|
906
906
|
|
|
907
907
|
Check the top-level render call using <` + k + ">.");
|
|
@@ -909,41 +909,41 @@ Check the top-level render call using <` + k + ">.");
|
|
|
909
909
|
return h;
|
|
910
910
|
}
|
|
911
911
|
}
|
|
912
|
-
function Gt(
|
|
912
|
+
function Gt(s, h) {
|
|
913
913
|
{
|
|
914
|
-
if (!
|
|
914
|
+
if (!s._store || s._store.validated || s.key != null)
|
|
915
915
|
return;
|
|
916
|
-
|
|
916
|
+
s._store.validated = !0;
|
|
917
917
|
var k = ta(h);
|
|
918
918
|
if (Ot[k])
|
|
919
919
|
return;
|
|
920
920
|
Ot[k] = !0;
|
|
921
921
|
var w = "";
|
|
922
|
-
|
|
922
|
+
s && s._owner && s._owner !== tt.current && (w = " It was passed a child from " + E(s._owner.type) + "."), be(s), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', k, w), be(null);
|
|
923
923
|
}
|
|
924
924
|
}
|
|
925
|
-
function zt(
|
|
925
|
+
function zt(s, h) {
|
|
926
926
|
{
|
|
927
|
-
if (typeof
|
|
927
|
+
if (typeof s != "object")
|
|
928
928
|
return;
|
|
929
|
-
if (Qe(
|
|
930
|
-
for (var k = 0; k <
|
|
931
|
-
var w =
|
|
929
|
+
if (Qe(s))
|
|
930
|
+
for (var k = 0; k < s.length; k++) {
|
|
931
|
+
var w = s[k];
|
|
932
932
|
at(w) && Gt(w, h);
|
|
933
933
|
}
|
|
934
|
-
else if (at(
|
|
935
|
-
|
|
936
|
-
else if (
|
|
937
|
-
var D = p(
|
|
938
|
-
if (typeof D == "function" && D !==
|
|
939
|
-
for (var F = D.call(
|
|
934
|
+
else if (at(s))
|
|
935
|
+
s._store && (s._store.validated = !0);
|
|
936
|
+
else if (s) {
|
|
937
|
+
var D = p(s);
|
|
938
|
+
if (typeof D == "function" && D !== s.entries)
|
|
939
|
+
for (var F = D.call(s), I; !(I = F.next()).done; )
|
|
940
940
|
at(I.value) && Gt(I.value, h);
|
|
941
941
|
}
|
|
942
942
|
}
|
|
943
943
|
}
|
|
944
|
-
function na(
|
|
944
|
+
function na(s) {
|
|
945
945
|
{
|
|
946
|
-
var h =
|
|
946
|
+
var h = s.type;
|
|
947
947
|
if (h == null || typeof h == "string")
|
|
948
948
|
return;
|
|
949
949
|
var k;
|
|
@@ -957,7 +957,7 @@ Check the top-level render call using <` + k + ">.");
|
|
|
957
957
|
return;
|
|
958
958
|
if (k) {
|
|
959
959
|
var w = E(h);
|
|
960
|
-
zn(k,
|
|
960
|
+
zn(k, s.props, "prop", w, s);
|
|
961
961
|
} else if (h.PropTypes !== void 0 && !nt) {
|
|
962
962
|
nt = !0;
|
|
963
963
|
var D = E(h);
|
|
@@ -966,31 +966,31 @@ Check the top-level render call using <` + k + ">.");
|
|
|
966
966
|
typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
967
967
|
}
|
|
968
968
|
}
|
|
969
|
-
function aa(
|
|
969
|
+
function aa(s) {
|
|
970
970
|
{
|
|
971
|
-
for (var h = Object.keys(
|
|
971
|
+
for (var h = Object.keys(s.props), k = 0; k < h.length; k++) {
|
|
972
972
|
var w = h[k];
|
|
973
973
|
if (w !== "children" && w !== "key") {
|
|
974
|
-
be(
|
|
974
|
+
be(s), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", w), be(null);
|
|
975
975
|
break;
|
|
976
976
|
}
|
|
977
977
|
}
|
|
978
|
-
|
|
978
|
+
s.ref !== null && (be(s), y("Invalid attribute `ref` supplied to `React.Fragment`."), be(null));
|
|
979
979
|
}
|
|
980
980
|
}
|
|
981
981
|
var Wt = {};
|
|
982
|
-
function Kt(
|
|
982
|
+
function Kt(s, h, k, w, D, F) {
|
|
983
983
|
{
|
|
984
|
-
var I = M(
|
|
984
|
+
var I = M(s);
|
|
985
985
|
if (!I) {
|
|
986
986
|
var R = "";
|
|
987
|
-
(
|
|
987
|
+
(s === void 0 || typeof s == "object" && s !== null && Object.keys(s).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.");
|
|
988
988
|
var V = ea();
|
|
989
989
|
V ? R += V : R += At();
|
|
990
990
|
var L;
|
|
991
|
-
|
|
991
|
+
s === null ? L = "null" : Qe(s) ? L = "array" : s !== void 0 && s.$$typeof === t ? (L = "<" + (E(s.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : L = typeof s, y("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
992
|
}
|
|
993
|
-
var G = Qn(
|
|
993
|
+
var G = Qn(s, h, k, D, F);
|
|
994
994
|
if (G == null)
|
|
995
995
|
return G;
|
|
996
996
|
if (I) {
|
|
@@ -999,38 +999,38 @@ Check the top-level render call using <` + k + ">.");
|
|
|
999
999
|
if (w)
|
|
1000
1000
|
if (Qe(Q)) {
|
|
1001
1001
|
for (var Ce = 0; Ce < Q.length; Ce++)
|
|
1002
|
-
zt(Q[Ce],
|
|
1002
|
+
zt(Q[Ce], s);
|
|
1003
1003
|
Object.freeze && Object.freeze(Q);
|
|
1004
1004
|
} else
|
|
1005
1005
|
y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
1006
1006
|
else
|
|
1007
|
-
zt(Q,
|
|
1007
|
+
zt(Q, s);
|
|
1008
1008
|
}
|
|
1009
1009
|
if (Be.call(h, "key")) {
|
|
1010
|
-
var
|
|
1010
|
+
var he = E(s), q = Object.keys(h).filter(function(ca) {
|
|
1011
1011
|
return ca !== "key";
|
|
1012
1012
|
}), rt = q.length > 0 ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1013
|
-
if (!Wt[
|
|
1013
|
+
if (!Wt[he + rt]) {
|
|
1014
1014
|
var la = q.length > 0 ? "{" + q.join(": ..., ") + ": ...}" : "{}";
|
|
1015
1015
|
y(`A props object containing a "key" prop is being spread into JSX:
|
|
1016
1016
|
let props = %s;
|
|
1017
1017
|
<%s {...props} />
|
|
1018
1018
|
React keys must be passed directly to JSX without using spread:
|
|
1019
1019
|
let props = %s;
|
|
1020
|
-
<%s key={someKey} {...props} />`, rt,
|
|
1020
|
+
<%s key={someKey} {...props} />`, rt, he, la, he), Wt[he + rt] = !0;
|
|
1021
1021
|
}
|
|
1022
1022
|
}
|
|
1023
|
-
return
|
|
1023
|
+
return s === r ? aa(G) : na(G), G;
|
|
1024
1024
|
}
|
|
1025
1025
|
}
|
|
1026
|
-
function ra(
|
|
1027
|
-
return Kt(
|
|
1026
|
+
function ra(s, h, k) {
|
|
1027
|
+
return Kt(s, h, k, !0);
|
|
1028
1028
|
}
|
|
1029
|
-
function
|
|
1030
|
-
return Kt(
|
|
1029
|
+
function ia(s, h, k) {
|
|
1030
|
+
return Kt(s, h, k, !1);
|
|
1031
1031
|
}
|
|
1032
|
-
var
|
|
1033
|
-
Me.Fragment = r, Me.jsx =
|
|
1032
|
+
var oa = ia, sa = ra;
|
|
1033
|
+
Me.Fragment = r, Me.jsx = oa, Me.jsxs = sa;
|
|
1034
1034
|
}()), Me;
|
|
1035
1035
|
}
|
|
1036
1036
|
process.env.NODE_ENV === "production" ? _t.exports = mr() : _t.exports = hr();
|
|
@@ -1044,12 +1044,12 @@ const gr = "_notice_1fns6_2", pr = "_error_1fns6_11", xr = "_success_1fns6_14",
|
|
|
1044
1044
|
"show-notice": "_show-notice_1fns6_1",
|
|
1045
1045
|
"hide-notice": "_hide-notice_1fns6_1"
|
|
1046
1046
|
};
|
|
1047
|
-
let
|
|
1047
|
+
let ue = {};
|
|
1048
1048
|
function Cr() {
|
|
1049
1049
|
let [e, t] = b.useState([]);
|
|
1050
|
-
return
|
|
1050
|
+
return ue.set = (a) => {
|
|
1051
1051
|
t([...e, a]);
|
|
1052
|
-
},
|
|
1052
|
+
}, ue.del = (a) => {
|
|
1053
1053
|
t(e.filter((r) => r.key !== a));
|
|
1054
1054
|
}, e.length === 0 ? "" : /* @__PURE__ */ n.jsx("ul", { className: br.notice, children: e.map((a) => a.item) });
|
|
1055
1055
|
}
|
|
@@ -1059,25 +1059,25 @@ function Pe({ data: e }) {
|
|
|
1059
1059
|
setTimeout(function() {
|
|
1060
1060
|
a("hide");
|
|
1061
1061
|
}, 1800), setTimeout(function() {
|
|
1062
|
-
|
|
1062
|
+
ue.del(e.key);
|
|
1063
1063
|
}, 2500);
|
|
1064
1064
|
}, [e.key]);
|
|
1065
1065
|
let r;
|
|
1066
1066
|
switch (e.type) {
|
|
1067
1067
|
case "error":
|
|
1068
|
-
r = /* @__PURE__ */ n.jsx(
|
|
1068
|
+
r = /* @__PURE__ */ n.jsx(pe.error, {});
|
|
1069
1069
|
break;
|
|
1070
1070
|
case "success":
|
|
1071
|
-
r = /* @__PURE__ */ n.jsx(
|
|
1071
|
+
r = /* @__PURE__ */ n.jsx(pe.success, {});
|
|
1072
1072
|
break;
|
|
1073
1073
|
case "copy":
|
|
1074
|
-
r = /* @__PURE__ */ n.jsx(
|
|
1074
|
+
r = /* @__PURE__ */ n.jsx(pe.success, {});
|
|
1075
1075
|
break;
|
|
1076
1076
|
case "remark":
|
|
1077
|
-
r = /* @__PURE__ */ n.jsx(
|
|
1077
|
+
r = /* @__PURE__ */ n.jsx(pe.success, {});
|
|
1078
1078
|
break;
|
|
1079
1079
|
default:
|
|
1080
|
-
r = /* @__PURE__ */ n.jsx(
|
|
1080
|
+
r = /* @__PURE__ */ n.jsx(pe.success, {});
|
|
1081
1081
|
break;
|
|
1082
1082
|
}
|
|
1083
1083
|
return /* @__PURE__ */ n.jsxs("li", { className: "item " + e.type, "data-status": t, children: [
|
|
@@ -1087,26 +1087,26 @@ function Pe({ data: e }) {
|
|
|
1087
1087
|
}
|
|
1088
1088
|
function jr(e) {
|
|
1089
1089
|
let t = Date.now(), a = { key: t, ...e };
|
|
1090
|
-
|
|
1090
|
+
ue.set({ item: /* @__PURE__ */ n.jsx(Pe, { data: a }, t), key: t });
|
|
1091
1091
|
}
|
|
1092
1092
|
function yr(e) {
|
|
1093
1093
|
let t = Date.now(), a = { key: t, text: e, type: "error" };
|
|
1094
|
-
|
|
1094
|
+
ue.set({ item: /* @__PURE__ */ n.jsx(Pe, { data: a }, t), key: t });
|
|
1095
1095
|
}
|
|
1096
1096
|
function wr(e) {
|
|
1097
1097
|
let t = Date.now(), a = { key: t, text: e, type: "success" };
|
|
1098
|
-
|
|
1098
|
+
ue.set({ item: /* @__PURE__ */ n.jsx(Pe, { data: a }, t), key: t });
|
|
1099
1099
|
}
|
|
1100
1100
|
function Sr(e) {
|
|
1101
1101
|
let t = Date.now(), a = { key: t, text: e, type: "remark" };
|
|
1102
|
-
|
|
1102
|
+
ue.set({ item: /* @__PURE__ */ n.jsx(Pe, { data: a }, t), key: t });
|
|
1103
1103
|
}
|
|
1104
1104
|
function Er(e) {
|
|
1105
1105
|
let t = Date.now(), a = { key: t, text: e, type: "copy" };
|
|
1106
|
-
|
|
1106
|
+
ue.set({ item: /* @__PURE__ */ n.jsx(Pe, { data: a }, t), key: t });
|
|
1107
1107
|
}
|
|
1108
|
-
const
|
|
1109
|
-
|
|
1108
|
+
const pe = {};
|
|
1109
|
+
pe.error = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
|
|
1110
1110
|
/* @__PURE__ */ n.jsx(
|
|
1111
1111
|
"path",
|
|
1112
1112
|
{
|
|
@@ -1122,7 +1122,7 @@ ge.error = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "no
|
|
|
1122
1122
|
}
|
|
1123
1123
|
)
|
|
1124
1124
|
] });
|
|
1125
|
-
|
|
1125
|
+
pe.success = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
|
|
1126
1126
|
/* @__PURE__ */ n.jsx(
|
|
1127
1127
|
"path",
|
|
1128
1128
|
{
|
|
@@ -1177,11 +1177,11 @@ const Fr = "_btn_1hz2s_6", $r = "_confirm_1hz2s_19", Yt = {
|
|
|
1177
1177
|
confirm: $r
|
|
1178
1178
|
};
|
|
1179
1179
|
function Lr({ onClick: e, onSend: t, label: a, onRef: r }) {
|
|
1180
|
-
let [
|
|
1180
|
+
let [i, o] = b.useState(!1);
|
|
1181
1181
|
const l = () => {
|
|
1182
1182
|
if (e)
|
|
1183
1183
|
return e();
|
|
1184
|
-
|
|
1184
|
+
i || (o(!0), t && t(o));
|
|
1185
1185
|
};
|
|
1186
1186
|
return /* @__PURE__ */ n.jsx(
|
|
1187
1187
|
"button",
|
|
@@ -1189,11 +1189,11 @@ function Lr({ onClick: e, onSend: t, label: a, onRef: r }) {
|
|
|
1189
1189
|
ref: r,
|
|
1190
1190
|
className: [Yt.btn, Yt.confirm].join(" "),
|
|
1191
1191
|
onClick: l,
|
|
1192
|
-
children:
|
|
1192
|
+
children: i ? "Ожидайте" : a
|
|
1193
1193
|
}
|
|
1194
1194
|
);
|
|
1195
1195
|
}
|
|
1196
|
-
const Ar = "_white_11p39_14", Or = "_black_11p39_26", Gr = "_shake_11p39_1", zr = "_modal_11p39_73", Wr = "_o_11p39_83", Kr = "_w_11p39_14", Zr = "_h_11p39_107", Ur = "_l_11p39_121", Hr = "_t_11p39_159", Yr = "_m_11p39_73", Vr = "_x_11p39_167", qr = "_s_11p39_177", Jr = "_c_11p39_182", Xr = "_f_11p39_187", Qr = "_btn_11p39_230",
|
|
1196
|
+
const Ar = "_white_11p39_14", Or = "_black_11p39_26", Gr = "_shake_11p39_1", zr = "_modal_11p39_73", Wr = "_o_11p39_83", Kr = "_w_11p39_14", Zr = "_h_11p39_107", Ur = "_l_11p39_121", Hr = "_t_11p39_159", Yr = "_m_11p39_73", Vr = "_x_11p39_167", qr = "_s_11p39_177", Jr = "_c_11p39_182", Xr = "_f_11p39_187", Qr = "_btn_11p39_230", ei = "_g_11p39_243", ti = "_confirm_11p39_322", ni = "_cancel_11p39_327", ai = "_disabled_11p39_332", ri = "_active_11p39_389", ii = "_coincidence_11p39_395", oi = "_sa_11p39_431", si = "_ss_11p39_435", li = "_sm_11p39_439", ci = "_sl_11p39_443", _i = "_sx_11p39_447", di = "_sf_11p39_451", ne = {
|
|
1197
1197
|
white: Ar,
|
|
1198
1198
|
black: Or,
|
|
1199
1199
|
shake: Gr,
|
|
@@ -1209,42 +1209,42 @@ const Ar = "_white_11p39_14", Or = "_black_11p39_26", Gr = "_shake_11p39_1", zr
|
|
|
1209
1209
|
c: Jr,
|
|
1210
1210
|
f: Xr,
|
|
1211
1211
|
btn: Qr,
|
|
1212
|
-
g:
|
|
1212
|
+
g: ei,
|
|
1213
1213
|
"size-a": "_size-a_11p39_296",
|
|
1214
1214
|
"size-s": "_size-s_11p39_300",
|
|
1215
1215
|
"size-m": "_size-m_11p39_304",
|
|
1216
1216
|
"size-l": "_size-l_11p39_308",
|
|
1217
1217
|
"size-x": "_size-x_11p39_312",
|
|
1218
1218
|
"size-f": "_size-f_11p39_316",
|
|
1219
|
-
confirm:
|
|
1220
|
-
cancel:
|
|
1221
|
-
disabled:
|
|
1219
|
+
confirm: ti,
|
|
1220
|
+
cancel: ni,
|
|
1221
|
+
disabled: ai,
|
|
1222
1222
|
await: "_await_11p39_339",
|
|
1223
|
-
active:
|
|
1224
|
-
coincidence:
|
|
1225
|
-
sa:
|
|
1226
|
-
ss:
|
|
1227
|
-
sm:
|
|
1228
|
-
sl:
|
|
1229
|
-
sx:
|
|
1230
|
-
sf:
|
|
1223
|
+
active: ri,
|
|
1224
|
+
coincidence: ii,
|
|
1225
|
+
sa: oi,
|
|
1226
|
+
ss: si,
|
|
1227
|
+
sm: li,
|
|
1228
|
+
sl: ci,
|
|
1229
|
+
sx: _i,
|
|
1230
|
+
sf: di
|
|
1231
1231
|
};
|
|
1232
|
-
let
|
|
1233
|
-
function
|
|
1232
|
+
let ve = {};
|
|
1233
|
+
function ui({ config: e }) {
|
|
1234
1234
|
let [t, a] = b.useState([]);
|
|
1235
|
-
return
|
|
1235
|
+
return ve.x = (r) => {
|
|
1236
1236
|
r || a([]);
|
|
1237
|
-
},
|
|
1237
|
+
}, ve.config = e, ve.add = (r) => {
|
|
1238
1238
|
a([...t, r]);
|
|
1239
1239
|
}, /* @__PURE__ */ n.jsx(n.Fragment, { children: t.map((r) => r) });
|
|
1240
1240
|
}
|
|
1241
|
-
function
|
|
1241
|
+
function fi({
|
|
1242
1242
|
title: e,
|
|
1243
1243
|
children: t,
|
|
1244
1244
|
button: a,
|
|
1245
1245
|
tabs: r,
|
|
1246
|
-
size:
|
|
1247
|
-
menu:
|
|
1246
|
+
size: i = "m",
|
|
1247
|
+
menu: o
|
|
1248
1248
|
}) {
|
|
1249
1249
|
const [l, c] = b.useState(!0), d = b.useRef(), _ = (f) => {
|
|
1250
1250
|
if (a) {
|
|
@@ -1270,7 +1270,7 @@ function mo({
|
|
|
1270
1270
|
/* @__PURE__ */ n.jsxs(
|
|
1271
1271
|
"div",
|
|
1272
1272
|
{
|
|
1273
|
-
className: [ne.w, ne[`s${
|
|
1273
|
+
className: [ne.w, ne[`s${i}`]].join(" "),
|
|
1274
1274
|
ref: d,
|
|
1275
1275
|
children: [
|
|
1276
1276
|
/* @__PURE__ */ n.jsxs("div", { className: ne.h, children: [
|
|
@@ -1285,7 +1285,7 @@ function mo({
|
|
|
1285
1285
|
},
|
|
1286
1286
|
x
|
|
1287
1287
|
)) }),
|
|
1288
|
-
|
|
1288
|
+
o
|
|
1289
1289
|
] }),
|
|
1290
1290
|
/* @__PURE__ */ n.jsx(
|
|
1291
1291
|
"div",
|
|
@@ -1316,13 +1316,13 @@ function mo({
|
|
|
1316
1316
|
}
|
|
1317
1317
|
) : "" });
|
|
1318
1318
|
}
|
|
1319
|
-
function
|
|
1320
|
-
|
|
1319
|
+
function mi(e) {
|
|
1320
|
+
ve.add(/* @__PURE__ */ n.jsx(hi, { children: e }, String(Date.now())));
|
|
1321
1321
|
}
|
|
1322
|
-
function
|
|
1322
|
+
function hi({ children: e }) {
|
|
1323
1323
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: e });
|
|
1324
1324
|
}
|
|
1325
|
-
function
|
|
1325
|
+
function gi(e) {
|
|
1326
1326
|
if (e.target.classList[0] !== "modal")
|
|
1327
1327
|
return;
|
|
1328
1328
|
let t = e.target.children[0];
|
|
@@ -1330,50 +1330,50 @@ function po(e) {
|
|
|
1330
1330
|
t.setAttribute("shake", !1);
|
|
1331
1331
|
}, 1e3);
|
|
1332
1332
|
}
|
|
1333
|
-
function
|
|
1334
|
-
let [r,
|
|
1333
|
+
function pi({ type: e, name: t, params: a }) {
|
|
1334
|
+
let [r, i] = b.useState(null);
|
|
1335
1335
|
return b.useEffect(() => {
|
|
1336
|
-
|
|
1336
|
+
ve.config(e, t, a, i);
|
|
1337
1337
|
}, [a.id]), /* @__PURE__ */ n.jsx(n.Fragment, { children: r });
|
|
1338
1338
|
}
|
|
1339
|
-
function
|
|
1340
|
-
|
|
1339
|
+
function xi(e, t) {
|
|
1340
|
+
ve.config(e, t);
|
|
1341
1341
|
}
|
|
1342
|
-
function
|
|
1343
|
-
|
|
1342
|
+
function vi(e) {
|
|
1343
|
+
ve.x(e);
|
|
1344
1344
|
}
|
|
1345
1345
|
const ut = {};
|
|
1346
|
-
function
|
|
1346
|
+
function ki(e, t) {
|
|
1347
1347
|
ut[e] = t;
|
|
1348
1348
|
}
|
|
1349
|
-
function
|
|
1349
|
+
function bi(e, t) {
|
|
1350
1350
|
ut[e] !== void 0 && ut[e](t);
|
|
1351
1351
|
}
|
|
1352
|
-
const
|
|
1353
|
-
function
|
|
1352
|
+
const ce = {};
|
|
1353
|
+
function Ci(e, t) {
|
|
1354
1354
|
const [a, r] = b.useState(t);
|
|
1355
1355
|
return b.useEffect(() => {
|
|
1356
|
-
if (
|
|
1357
|
-
return
|
|
1358
|
-
|
|
1356
|
+
if (ce[e])
|
|
1357
|
+
return ce[e].push(r);
|
|
1358
|
+
ce[e] = [r];
|
|
1359
1359
|
}, []), [a];
|
|
1360
1360
|
}
|
|
1361
|
-
function
|
|
1362
|
-
if (
|
|
1363
|
-
return
|
|
1364
|
-
|
|
1361
|
+
function ji(e, t) {
|
|
1362
|
+
if (ce[e])
|
|
1363
|
+
return ce[e].push(t);
|
|
1364
|
+
ce[e] = [t];
|
|
1365
1365
|
}
|
|
1366
|
-
function
|
|
1367
|
-
|
|
1366
|
+
function yi(e, t) {
|
|
1367
|
+
ce[e] && ce[e].forEach((a) => a(t));
|
|
1368
1368
|
}
|
|
1369
|
-
const He = { setListener:
|
|
1370
|
-
function
|
|
1369
|
+
const He = { setListener: bi, useListener: ki, setEmitter: yi, useEmitter: Ci, subEmitter: ji };
|
|
1370
|
+
function wi() {
|
|
1371
1371
|
let [e, t] = b.useState([]);
|
|
1372
1372
|
return He.useListener("form", (a) => {
|
|
1373
1373
|
t([a]);
|
|
1374
1374
|
}), /* @__PURE__ */ n.jsx(n.Fragment, { children: e.map((a) => a) });
|
|
1375
1375
|
}
|
|
1376
|
-
const
|
|
1376
|
+
const _e = {
|
|
1377
1377
|
Path: $a,
|
|
1378
1378
|
setPage: wa,
|
|
1379
1379
|
getPage: an,
|
|
@@ -1401,20 +1401,20 @@ const ce = {
|
|
|
1401
1401
|
}
|
|
1402
1402
|
));
|
|
1403
1403
|
function gn({ onClick: e, onSend: t, name: a, onRef: r }) {
|
|
1404
|
-
let [
|
|
1404
|
+
let [i, o] = b.useState(!1);
|
|
1405
1405
|
const l = () => {
|
|
1406
1406
|
if (e)
|
|
1407
1407
|
return e();
|
|
1408
|
-
|
|
1408
|
+
i || (o(!0), t && t(o));
|
|
1409
1409
|
};
|
|
1410
1410
|
return /* @__PURE__ */ n.jsx(
|
|
1411
1411
|
"button",
|
|
1412
1412
|
{
|
|
1413
1413
|
ref: r,
|
|
1414
1414
|
"data-form": "button",
|
|
1415
|
-
className:
|
|
1415
|
+
className: i ? "btn await" : "btn confirm pointer",
|
|
1416
1416
|
onClick: l,
|
|
1417
|
-
children:
|
|
1417
|
+
children: i ? "Ожидайте" : a
|
|
1418
1418
|
}
|
|
1419
1419
|
);
|
|
1420
1420
|
}
|
|
@@ -1423,8 +1423,8 @@ function pn({
|
|
|
1423
1423
|
onValue: t,
|
|
1424
1424
|
onActive: a,
|
|
1425
1425
|
data: r,
|
|
1426
|
-
name:
|
|
1427
|
-
view:
|
|
1426
|
+
name: i,
|
|
1427
|
+
view: o,
|
|
1428
1428
|
edit: l = !0,
|
|
1429
1429
|
active: c = !0,
|
|
1430
1430
|
placeholder: d = "Введите сообщение"
|
|
@@ -1469,7 +1469,7 @@ function pn({
|
|
|
1469
1469
|
) });
|
|
1470
1470
|
}
|
|
1471
1471
|
function xn(e) {
|
|
1472
|
-
let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = e.edit !== void 0 ? e.edit : !0, r = e.active !== void 0 ? e.active : !0,
|
|
1472
|
+
let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = e.edit !== void 0 ? e.edit : !0, r = e.active !== void 0 ? e.active : !0, i = e.placeholder !== void 0 ? e.placeholder : "", o = (d) => {
|
|
1473
1473
|
e.onValue({ value: d.target.textContent, name: e.name });
|
|
1474
1474
|
}, l = (d) => {
|
|
1475
1475
|
d.key === "Enter" && d.preventDefault();
|
|
@@ -1485,34 +1485,34 @@ function xn(e) {
|
|
|
1485
1485
|
"dd",
|
|
1486
1486
|
{
|
|
1487
1487
|
onPaste: c,
|
|
1488
|
-
onInput:
|
|
1488
|
+
onInput: o,
|
|
1489
1489
|
onKeyDown: l,
|
|
1490
1490
|
contentEditable: a && r ? "plaintext-only" : "false",
|
|
1491
|
-
"data-placeholder":
|
|
1491
|
+
"data-placeholder": i,
|
|
1492
1492
|
suppressContentEditableWarning: !0,
|
|
1493
1493
|
children: e.value
|
|
1494
1494
|
}
|
|
1495
1495
|
)
|
|
1496
1496
|
] });
|
|
1497
1497
|
}
|
|
1498
|
-
let
|
|
1499
|
-
|
|
1498
|
+
let me = {};
|
|
1499
|
+
me.KeyDown = (e) => {
|
|
1500
1500
|
e.key === "Enter" && e.preventDefault();
|
|
1501
1501
|
};
|
|
1502
|
-
|
|
1502
|
+
me.PasteOne = (e) => {
|
|
1503
1503
|
e.preventDefault(), navigator.clipboard.readText().then((t) => {
|
|
1504
1504
|
t = t.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, t);
|
|
1505
1505
|
}).catch((t) => {
|
|
1506
1506
|
});
|
|
1507
1507
|
};
|
|
1508
|
-
|
|
1508
|
+
me.Focus = (e) => {
|
|
1509
1509
|
e.target.textContent.length === 0 && (e.target.innerHTML = "<br>");
|
|
1510
1510
|
};
|
|
1511
|
-
|
|
1511
|
+
me.Blur = (e) => {
|
|
1512
1512
|
e.target.scrollLeft = 0, e.target.querySelector("br") !== null && e.target.querySelector("br").remove();
|
|
1513
1513
|
};
|
|
1514
1514
|
function vn({ value: e, onValue: t, placeholder: a = "", name: r }) {
|
|
1515
|
-
let
|
|
1515
|
+
let i = (m, g) => Number(Math.round(m + Math.random() * (g - m))), o = b.useRef(null), l = b.useRef(null), c = i(1e4, 99999), d = (m) => {
|
|
1516
1516
|
m.key !== "Backspace" && (m.key === "Enter" && m.preventDefault(), m.target.textContent.length === 5 && m.preventDefault(), /\d/.test(m.key) || m.preventDefault());
|
|
1517
1517
|
}, _ = (m) => {
|
|
1518
1518
|
t({ value: Number(m.target.textContent) === c, name: r });
|
|
@@ -1527,7 +1527,7 @@ function vn({ value: e, onValue: t, placeholder: a = "", name: r }) {
|
|
|
1527
1527
|
});
|
|
1528
1528
|
};
|
|
1529
1529
|
b.useEffect(() => {
|
|
1530
|
-
const m =
|
|
1530
|
+
const m = o.current, g = m.getContext("2d");
|
|
1531
1531
|
g.clearRect(0, 0, m.width, m.height), g.font = "30px brush script mt", g.fillStyle = "#eee", g.textAlign = "center", g.fillText(c, 50, 27), l.current.textContent = "";
|
|
1532
1532
|
}, [c]);
|
|
1533
1533
|
const f = {};
|
|
@@ -1540,14 +1540,14 @@ function vn({ value: e, onValue: t, placeholder: a = "", name: r }) {
|
|
|
1540
1540
|
ref: l,
|
|
1541
1541
|
onPaste: u,
|
|
1542
1542
|
onInput: _,
|
|
1543
|
-
onBlur:
|
|
1543
|
+
onBlur: me.Blur,
|
|
1544
1544
|
onKeyDown: d,
|
|
1545
1545
|
contentEditable: "plaintext-only",
|
|
1546
1546
|
suppressContentEditableWarning: !0,
|
|
1547
1547
|
...x
|
|
1548
1548
|
}
|
|
1549
1549
|
),
|
|
1550
|
-
/* @__PURE__ */ n.jsx("canvas", { ref:
|
|
1550
|
+
/* @__PURE__ */ n.jsx("canvas", { ref: o, width: "100", height: "35" })
|
|
1551
1551
|
] });
|
|
1552
1552
|
}
|
|
1553
1553
|
function kn(e) {
|
|
@@ -1559,7 +1559,7 @@ function kn(e) {
|
|
|
1559
1559
|
n5: "",
|
|
1560
1560
|
n6: "",
|
|
1561
1561
|
code: ""
|
|
1562
|
-
},
|
|
1562
|
+
}, i = (_) => {
|
|
1563
1563
|
_.preventDefault(), _.target.textContent = _.target.textContent.slice(-1).replace(/[^+\d]/g, "");
|
|
1564
1564
|
let u = window.getSelection(), f = _.target.textContent.length;
|
|
1565
1565
|
if (r[_.target.id] = _.target.textContent, r.code = r.n1 + "" + r.n2 + r.n3 + r.n4 + r.n5 + r.n6, u.collapse(_.target.firstChild, 1), f === 0) {
|
|
@@ -1567,7 +1567,7 @@ function kn(e) {
|
|
|
1567
1567
|
return;
|
|
1568
1568
|
}
|
|
1569
1569
|
_.target.nextSibling != null && _.target.nextSibling.focus();
|
|
1570
|
-
},
|
|
1570
|
+
}, o = (_) => {
|
|
1571
1571
|
if (_.key === "Enter" && _.preventDefault(), _.key === "Backspace") {
|
|
1572
1572
|
if (_.preventDefault(), _.target.textContent = "", r[_.target.id] = "", _.target.previousSibling != null) {
|
|
1573
1573
|
let u = _.target.previousSibling.id.slice(1);
|
|
@@ -1609,11 +1609,11 @@ function kn(e) {
|
|
|
1609
1609
|
"dd",
|
|
1610
1610
|
{
|
|
1611
1611
|
id: "n1",
|
|
1612
|
-
onKeyDown:
|
|
1612
|
+
onKeyDown: o,
|
|
1613
1613
|
onKeyUp: l,
|
|
1614
1614
|
onFocus: c,
|
|
1615
1615
|
onPaste: d,
|
|
1616
|
-
onInput:
|
|
1616
|
+
onInput: i,
|
|
1617
1617
|
contentEditable: !0
|
|
1618
1618
|
}
|
|
1619
1619
|
),
|
|
@@ -1621,11 +1621,11 @@ function kn(e) {
|
|
|
1621
1621
|
"dd",
|
|
1622
1622
|
{
|
|
1623
1623
|
id: "n2",
|
|
1624
|
-
onKeyDown:
|
|
1624
|
+
onKeyDown: o,
|
|
1625
1625
|
onKeyUp: l,
|
|
1626
1626
|
onFocus: c,
|
|
1627
1627
|
onPaste: d,
|
|
1628
|
-
onInput:
|
|
1628
|
+
onInput: i,
|
|
1629
1629
|
contentEditable: !0
|
|
1630
1630
|
}
|
|
1631
1631
|
),
|
|
@@ -1633,11 +1633,11 @@ function kn(e) {
|
|
|
1633
1633
|
"dd",
|
|
1634
1634
|
{
|
|
1635
1635
|
id: "n3",
|
|
1636
|
-
onKeyDown:
|
|
1636
|
+
onKeyDown: o,
|
|
1637
1637
|
onKeyUp: l,
|
|
1638
1638
|
onFocus: c,
|
|
1639
1639
|
onPaste: d,
|
|
1640
|
-
onInput:
|
|
1640
|
+
onInput: i,
|
|
1641
1641
|
contentEditable: !0
|
|
1642
1642
|
}
|
|
1643
1643
|
),
|
|
@@ -1645,11 +1645,11 @@ function kn(e) {
|
|
|
1645
1645
|
"dd",
|
|
1646
1646
|
{
|
|
1647
1647
|
id: "n4",
|
|
1648
|
-
onKeyDown:
|
|
1648
|
+
onKeyDown: o,
|
|
1649
1649
|
onKeyUp: l,
|
|
1650
1650
|
onFocus: c,
|
|
1651
1651
|
onPaste: d,
|
|
1652
|
-
onInput:
|
|
1652
|
+
onInput: i,
|
|
1653
1653
|
contentEditable: !0
|
|
1654
1654
|
}
|
|
1655
1655
|
),
|
|
@@ -1657,11 +1657,11 @@ function kn(e) {
|
|
|
1657
1657
|
"dd",
|
|
1658
1658
|
{
|
|
1659
1659
|
id: "n5",
|
|
1660
|
-
onKeyDown:
|
|
1660
|
+
onKeyDown: o,
|
|
1661
1661
|
onKeyUp: l,
|
|
1662
1662
|
onFocus: c,
|
|
1663
1663
|
onPaste: d,
|
|
1664
|
-
onInput:
|
|
1664
|
+
onInput: i,
|
|
1665
1665
|
contentEditable: !0
|
|
1666
1666
|
}
|
|
1667
1667
|
),
|
|
@@ -1669,11 +1669,11 @@ function kn(e) {
|
|
|
1669
1669
|
"dd",
|
|
1670
1670
|
{
|
|
1671
1671
|
id: "n6",
|
|
1672
|
-
onKeyDown:
|
|
1672
|
+
onKeyDown: o,
|
|
1673
1673
|
onKeyUp: l,
|
|
1674
1674
|
onFocus: c,
|
|
1675
1675
|
onPaste: d,
|
|
1676
|
-
onInput:
|
|
1676
|
+
onInput: i,
|
|
1677
1677
|
contentEditable: !0
|
|
1678
1678
|
}
|
|
1679
1679
|
)
|
|
@@ -1686,9 +1686,9 @@ function kn(e) {
|
|
|
1686
1686
|
function bn(e) {
|
|
1687
1687
|
let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "";
|
|
1688
1688
|
e.edit !== void 0 && e.edit, e.active !== void 0 && e.active;
|
|
1689
|
-
let [r,
|
|
1689
|
+
let [r, i] = b.useState(e.value), o = (l) => {
|
|
1690
1690
|
let c = l.target.getAttribute("set-color");
|
|
1691
|
-
|
|
1691
|
+
i(c), e.onValue({ value: c, name: e.name });
|
|
1692
1692
|
};
|
|
1693
1693
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: e.view === "icon" ? /* @__PURE__ */ n.jsx(
|
|
1694
1694
|
"i",
|
|
@@ -1701,21 +1701,21 @@ function bn(e) {
|
|
|
1701
1701
|
children: [
|
|
1702
1702
|
t(),
|
|
1703
1703
|
/* @__PURE__ */ n.jsxs("dd", { "el-val": r, children: [
|
|
1704
|
-
/* @__PURE__ */ n.jsx("em", { onClick:
|
|
1705
|
-
/* @__PURE__ */ n.jsx("em", { onClick:
|
|
1706
|
-
/* @__PURE__ */ n.jsx("em", { onClick:
|
|
1707
|
-
/* @__PURE__ */ n.jsx("em", { onClick:
|
|
1708
|
-
/* @__PURE__ */ n.jsx("em", { onClick:
|
|
1709
|
-
/* @__PURE__ */ n.jsx("em", { onClick:
|
|
1704
|
+
/* @__PURE__ */ n.jsx("em", { onClick: o, "set-color": "0" }),
|
|
1705
|
+
/* @__PURE__ */ n.jsx("em", { onClick: o, "set-color": "1" }),
|
|
1706
|
+
/* @__PURE__ */ n.jsx("em", { onClick: o, "set-color": "2" }),
|
|
1707
|
+
/* @__PURE__ */ n.jsx("em", { onClick: o, "set-color": "3" }),
|
|
1708
|
+
/* @__PURE__ */ n.jsx("em", { onClick: o, "set-color": "4" }),
|
|
1709
|
+
/* @__PURE__ */ n.jsx("em", { onClick: o, "set-color": "5" })
|
|
1710
1710
|
] }),
|
|
1711
1711
|
a()
|
|
1712
1712
|
]
|
|
1713
1713
|
}
|
|
1714
1714
|
) });
|
|
1715
1715
|
}
|
|
1716
|
-
function vt({ label: e, value: t, placeholder: a, onValue: r, name:
|
|
1717
|
-
const
|
|
1718
|
-
|
|
1716
|
+
function vt({ label: e, value: t, placeholder: a, onValue: r, name: i }) {
|
|
1717
|
+
const o = "__.__.____", l = new Set("_"), c = ((g) => Array.from(o, (v, p) => l.has(v) ? g = p + 1 : g))(0), d = [...o].findIndex((g) => l.has(g)), _ = new RegExp("\\d", "g"), u = (g) => (g = g.match(_) || [], Array.from(
|
|
1718
|
+
o,
|
|
1719
1719
|
(v) => (g[0] === v || l.has(v)) && g.shift() || v
|
|
1720
1720
|
)), f = (g) => {
|
|
1721
1721
|
const [v, p] = [g.target.selectionStart, g.target.selectionEnd].map(
|
|
@@ -1723,7 +1723,7 @@ function vt({ label: e, value: t, placeholder: a, onValue: r, name: o }) {
|
|
|
1723
1723
|
(y) => l.has(y)
|
|
1724
1724
|
), C < 0 ? c[c.length - 1] : x ? c[C - 1] || d : C)
|
|
1725
1725
|
);
|
|
1726
|
-
g.target.value = u(g.target.value).join(""), g.target.setSelectionRange(v, p), x = !1, r == null || r({ name:
|
|
1726
|
+
g.target.value = u(g.target.value).join(""), g.target.setSelectionRange(v, p), x = !1, r == null || r({ name: i, value: g.target.value });
|
|
1727
1727
|
};
|
|
1728
1728
|
let x = !1;
|
|
1729
1729
|
const m = {};
|
|
@@ -1738,43 +1738,43 @@ function vt({ label: e, value: t, placeholder: a, onValue: r, name: o }) {
|
|
|
1738
1738
|
inputMode: "numeric",
|
|
1739
1739
|
onKeyDown: (g) => x = g.key === "Backspace",
|
|
1740
1740
|
onFocus: f,
|
|
1741
|
-
onBlur: (g) => g.target.value ===
|
|
1741
|
+
onBlur: (g) => g.target.value === o && (g.target.value = "")
|
|
1742
1742
|
}
|
|
1743
1743
|
) })
|
|
1744
1744
|
] });
|
|
1745
1745
|
}
|
|
1746
|
-
function
|
|
1746
|
+
function Si({ children: e }) {
|
|
1747
1747
|
return /* @__PURE__ */ n.jsx("div", { className: "l", children: /* @__PURE__ */ n.jsx("ul", { children: e }) });
|
|
1748
1748
|
}
|
|
1749
|
-
function
|
|
1749
|
+
function Ei({ children: e }) {
|
|
1750
1750
|
return /* @__PURE__ */ n.jsx("div", { className: ne.s, children: e });
|
|
1751
1751
|
}
|
|
1752
|
-
function
|
|
1752
|
+
function Bi({ children: e, className: t }) {
|
|
1753
1753
|
let a = {};
|
|
1754
1754
|
return t && (a.className = t), /* @__PURE__ */ n.jsx("div", { "data-form": "outline", ...a, children: /* @__PURE__ */ n.jsx("ul", { children: e }) });
|
|
1755
1755
|
}
|
|
1756
|
-
function
|
|
1756
|
+
function Ti({ children: e }) {
|
|
1757
1757
|
return /* @__PURE__ */ n.jsx("div", { className: ne.c, children: e });
|
|
1758
1758
|
}
|
|
1759
1759
|
const Cn = {
|
|
1760
|
-
List:
|
|
1761
|
-
Scroll:
|
|
1762
|
-
Main:
|
|
1763
|
-
Add:
|
|
1764
|
-
Icon:
|
|
1765
|
-
Open:
|
|
1766
|
-
Shake:
|
|
1767
|
-
Form:
|
|
1768
|
-
Center:
|
|
1769
|
-
Close:
|
|
1760
|
+
List: Si,
|
|
1761
|
+
Scroll: Ei,
|
|
1762
|
+
Main: fi,
|
|
1763
|
+
Add: mi,
|
|
1764
|
+
Icon: pi,
|
|
1765
|
+
Open: xi,
|
|
1766
|
+
Shake: gi,
|
|
1767
|
+
Form: Bi,
|
|
1768
|
+
Center: Ti,
|
|
1769
|
+
Close: vi
|
|
1770
1770
|
};
|
|
1771
1771
|
function kt({
|
|
1772
1772
|
value: e,
|
|
1773
1773
|
onValue: t,
|
|
1774
1774
|
name: a,
|
|
1775
1775
|
placeholder: r = "",
|
|
1776
|
-
title:
|
|
1777
|
-
error:
|
|
1776
|
+
title: i,
|
|
1777
|
+
error: o,
|
|
1778
1778
|
hide: l = !1,
|
|
1779
1779
|
edit: c = !0,
|
|
1780
1780
|
show: d = !0,
|
|
@@ -1804,7 +1804,7 @@ function kt({
|
|
|
1804
1804
|
B.field = "input", v && (B.className = v);
|
|
1805
1805
|
const T = {};
|
|
1806
1806
|
return r && (T.placeholder = r), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...B, children: [
|
|
1807
|
-
|
|
1807
|
+
i && /* @__PURE__ */ n.jsx("dt", { children: i }),
|
|
1808
1808
|
/* @__PURE__ */ n.jsx(
|
|
1809
1809
|
"dd",
|
|
1810
1810
|
{
|
|
@@ -1815,10 +1815,10 @@ function kt({
|
|
|
1815
1815
|
children: p
|
|
1816
1816
|
}
|
|
1817
1817
|
),
|
|
1818
|
-
|
|
1818
|
+
o && /* @__PURE__ */ n.jsx("em", { children: o })
|
|
1819
1819
|
] });
|
|
1820
1820
|
}
|
|
1821
|
-
function
|
|
1821
|
+
function Ri(e, t) {
|
|
1822
1822
|
t === void 0 ? (t = e, e = /* @__PURE__ */ new Date()) : e = new Date(e);
|
|
1823
1823
|
let a = {
|
|
1824
1824
|
yyyy: e.getFullYear(),
|
|
@@ -1835,7 +1835,7 @@ function Mo(e, t) {
|
|
|
1835
1835
|
t = t.replace(r, a[r]);
|
|
1836
1836
|
return t;
|
|
1837
1837
|
}
|
|
1838
|
-
function
|
|
1838
|
+
function Mi(e) {
|
|
1839
1839
|
let t = [
|
|
1840
1840
|
"Января",
|
|
1841
1841
|
"Февраля",
|
|
@@ -1855,7 +1855,7 @@ function Io(e) {
|
|
|
1855
1855
|
name: a.getDate() + " " + t[a.getMonth()]
|
|
1856
1856
|
};
|
|
1857
1857
|
}
|
|
1858
|
-
const
|
|
1858
|
+
const Ii = (e) => {
|
|
1859
1859
|
function t(B, T) {
|
|
1860
1860
|
var P, K, O;
|
|
1861
1861
|
B = B ?? "", T = T ?? 1;
|
|
@@ -1929,7 +1929,7 @@ const No = (e) => {
|
|
|
1929
1929
|
u3: ["тысяча", "тысячи", "тысяч"],
|
|
1930
1930
|
u2: ["миллион", "миллиона", "миллионов"],
|
|
1931
1931
|
u1: ["миллиард", "миллиарда", "миллиардов"]
|
|
1932
|
-
},
|
|
1932
|
+
}, i, o, l, c, p, d, _, v, u, f, x, m;
|
|
1933
1933
|
u = parseFloat(e).toFixed(2).split("."), d = u[0], c = u[1];
|
|
1934
1934
|
var g = 12 - d.length;
|
|
1935
1935
|
if (g < 0)
|
|
@@ -1941,10 +1941,10 @@ const No = (e) => {
|
|
|
1941
1941
|
if (d > 0) {
|
|
1942
1942
|
f = t(d, 3);
|
|
1943
1943
|
for (var C = -1; C < f.length; C++)
|
|
1944
|
-
if (_ = f[C], _ > 0 && (x = t(_, 1),
|
|
1945
|
-
r.a20[
|
|
1944
|
+
if (_ = f[C], _ > 0 && (x = t(_, 1), i = parseInt(x[0]), o = parseInt(x[1]), l = parseInt(x[2]), p.push(r.a100[i - 1]), m = C + 1 == 3 ? "a2" : "a1", o > 1 ? p.push(
|
|
1945
|
+
r.a20[o - 2] + (l > 0 ? " " + r[m][l - 1] : "")
|
|
1946
1946
|
) : p.push(
|
|
1947
|
-
|
|
1947
|
+
o > 0 ? r.a10[l] : r[m][l - 1]
|
|
1948
1948
|
), f.length > C + 1)) {
|
|
1949
1949
|
var y = r["u" + (C + 1)];
|
|
1950
1950
|
p.push(a(_, y));
|
|
@@ -1953,19 +1953,19 @@ const No = (e) => {
|
|
|
1953
1953
|
p.push(r.null);
|
|
1954
1954
|
return p.push(a(d, r.ur)), p.push(c + " " + a(c, r.uc)), p.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
|
|
1955
1955
|
};
|
|
1956
|
-
function
|
|
1956
|
+
function Ni(e) {
|
|
1957
1957
|
let t = -1, a = [" kB", " MB", " GB", " TB", "PB", "EB", "ZB", "YB"];
|
|
1958
1958
|
do
|
|
1959
1959
|
e = e / 1024, t++;
|
|
1960
1960
|
while (e > 1024);
|
|
1961
1961
|
return Math.max(e, 0.1).toFixed(1) + a[t];
|
|
1962
1962
|
}
|
|
1963
|
-
function
|
|
1963
|
+
function Di(e) {
|
|
1964
1964
|
let t = {};
|
|
1965
1965
|
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];
|
|
1966
1966
|
}
|
|
1967
|
-
function
|
|
1968
|
-
let
|
|
1967
|
+
function Pi(e, t, a, r) {
|
|
1968
|
+
let i = {
|
|
1969
1969
|
sexM: "m",
|
|
1970
1970
|
sexF: "f",
|
|
1971
1971
|
gcaseIm: "nominative",
|
|
@@ -2158,8 +2158,8 @@ function Fo(e, t, a, r) {
|
|
|
2158
2158
|
return l;
|
|
2159
2159
|
},
|
|
2160
2160
|
getSex: () => {
|
|
2161
|
-
if (
|
|
2162
|
-
switch (
|
|
2161
|
+
if (i.mn.length > 2)
|
|
2162
|
+
switch (i.mn.substr(i.mn.length - 2)) {
|
|
2163
2163
|
case "ич":
|
|
2164
2164
|
return "m";
|
|
2165
2165
|
case "на":
|
|
@@ -2167,20 +2167,20 @@ function Fo(e, t, a, r) {
|
|
|
2167
2167
|
}
|
|
2168
2168
|
return "";
|
|
2169
2169
|
},
|
|
2170
|
-
fullName: (l) => ((
|
|
2171
|
-
lastName: (l) =>
|
|
2172
|
-
firstName: (l) =>
|
|
2173
|
-
middleName: (l) =>
|
|
2170
|
+
fullName: (l) => ((i.fullNameSurnameLast ? "" : i.lastName(l) + " ") + i.firstName(l) + " " + i.middleName(l) + (i.fullNameSurnameLast ? " " + i.lastName(l) : "")).replace(/^ +| +$/g, ""),
|
|
2171
|
+
lastName: (l) => i.word(i.ln, i.sex, "lastName", l),
|
|
2172
|
+
firstName: (l) => i.word(i.fn, i.sex, "firstName", l),
|
|
2173
|
+
middleName: (l) => i.word(i.mn, i.sex, "middleName", l)
|
|
2174
2174
|
};
|
|
2175
2175
|
if (typeof t > "u") {
|
|
2176
|
-
var
|
|
2177
|
-
if (!
|
|
2176
|
+
var o = e.match(/^\s*(\S+)(\s+(\S+)(\s+(\S+))?)?\s*$/);
|
|
2177
|
+
if (!o)
|
|
2178
2178
|
return "Cannot parse supplied name";
|
|
2179
|
-
|
|
2179
|
+
o[5] && o[3].match(/(ич|на)$/) && !o[5].match(/(ич|на)$/) ? (e = o[5], t = o[1], a = o[3], i.fullNameSurnameLast = !0) : (e = o[1], t = o[3], a = o[5]);
|
|
2180
2180
|
}
|
|
2181
|
-
return
|
|
2181
|
+
return i.ln = e, i.fn = t || "", i.mn = a || "", i.sex = r || i.getSex(), i;
|
|
2182
2182
|
}
|
|
2183
|
-
function
|
|
2183
|
+
function Fi(e) {
|
|
2184
2184
|
let t = e.split(" ");
|
|
2185
2185
|
switch (t.length) {
|
|
2186
2186
|
case 2:
|
|
@@ -2191,7 +2191,7 @@ function $o(e) {
|
|
|
2191
2191
|
return e;
|
|
2192
2192
|
}
|
|
2193
2193
|
}
|
|
2194
|
-
function
|
|
2194
|
+
function $i(e) {
|
|
2195
2195
|
return {
|
|
2196
2196
|
1: { val: "01", name: "Январь", names: "Января", abc: "Янв" },
|
|
2197
2197
|
2: { val: "02", name: "Февраль", names: "Февраля", abc: "Февр" },
|
|
@@ -2207,67 +2207,67 @@ function Lo(e) {
|
|
|
2207
2207
|
12: { val: "12", name: "Декабрь", names: "Декабря", abc: "Дек" }
|
|
2208
2208
|
}[e];
|
|
2209
2209
|
}
|
|
2210
|
-
function
|
|
2210
|
+
function Li(e) {
|
|
2211
2211
|
return parseFloat(e).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, "$1 ");
|
|
2212
2212
|
}
|
|
2213
|
-
function
|
|
2213
|
+
function Ai(e, t) {
|
|
2214
2214
|
let a = t + "";
|
|
2215
2215
|
for (; a.length < e; )
|
|
2216
2216
|
a = "0" + a;
|
|
2217
2217
|
return a;
|
|
2218
2218
|
}
|
|
2219
|
-
function
|
|
2219
|
+
function Oi(e, t, a) {
|
|
2220
2220
|
let r = t / e * a;
|
|
2221
2221
|
return (typeof r != "number" || r === 1 / 0) && (r = 0), parseFloat(r).toFixed(1);
|
|
2222
2222
|
}
|
|
2223
|
-
function
|
|
2223
|
+
function Gi(e) {
|
|
2224
2224
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2225
2225
|
}
|
|
2226
|
-
function
|
|
2226
|
+
function zi(e, t) {
|
|
2227
2227
|
e = Math.abs(e) % 100;
|
|
2228
2228
|
let a = e % 10;
|
|
2229
2229
|
return e > 10 && e < 20 ? t[2] : a > 1 && a < 5 ? t[1] : a === 1 ? t[0] : t[2];
|
|
2230
2230
|
}
|
|
2231
|
-
function
|
|
2231
|
+
function Wi(e, t, a) {
|
|
2232
2232
|
return ke(e, t) ? ke(e, t).n : a || "";
|
|
2233
2233
|
}
|
|
2234
|
-
function
|
|
2234
|
+
function Ki(e, t) {
|
|
2235
2235
|
return e.reduce(function(a, r) {
|
|
2236
|
-
let
|
|
2237
|
-
return a[
|
|
2236
|
+
let i = t instanceof Function ? t(r) : r[t];
|
|
2237
|
+
return a[i] !== void 0 || (a[i] = {}), a[i][r.id] = r, a;
|
|
2238
2238
|
}, {});
|
|
2239
2239
|
}
|
|
2240
|
-
function
|
|
2240
|
+
function Zi(e) {
|
|
2241
2241
|
return parseInt((Date.now() - new Date(e).getTime()) / 31536e6 + "") + "";
|
|
2242
2242
|
}
|
|
2243
2243
|
const ye = {
|
|
2244
|
-
Age:
|
|
2245
|
-
Date:
|
|
2246
|
-
MoneyString:
|
|
2247
|
-
DateSort:
|
|
2248
|
-
Size:
|
|
2249
|
-
TypeFiles:
|
|
2250
|
-
Cases:
|
|
2251
|
-
Initials:
|
|
2252
|
-
Month:
|
|
2253
|
-
Money:
|
|
2254
|
-
Number:
|
|
2255
|
-
Percent:
|
|
2256
|
-
CapitalizeFirstLetter:
|
|
2257
|
-
DeclensionWord:
|
|
2258
|
-
Select:
|
|
2259
|
-
ObjectByArray:
|
|
2244
|
+
Age: Zi,
|
|
2245
|
+
Date: Ri,
|
|
2246
|
+
MoneyString: Ii,
|
|
2247
|
+
DateSort: Mi,
|
|
2248
|
+
Size: Ni,
|
|
2249
|
+
TypeFiles: Di,
|
|
2250
|
+
Cases: Pi,
|
|
2251
|
+
Initials: Fi,
|
|
2252
|
+
Month: $i,
|
|
2253
|
+
Money: Li,
|
|
2254
|
+
Number: Ai,
|
|
2255
|
+
Percent: Oi,
|
|
2256
|
+
CapitalizeFirstLetter: Gi,
|
|
2257
|
+
DeclensionWord: zi,
|
|
2258
|
+
Select: Wi,
|
|
2259
|
+
ObjectByArray: Ki
|
|
2260
2260
|
};
|
|
2261
2261
|
function bt(e) {
|
|
2262
2262
|
let t = e.value, a = (f) => e.type === "multi" ? f.replace(/[^+\d.+-]/g, "") : f.replace(/[^+\d.]/g, ""), r = (f, x) => {
|
|
2263
2263
|
let m = document.createRange(), g = window.getSelection();
|
|
2264
2264
|
m.setStart(x.childNodes[0], f), m.collapse(!0), g.removeAllRanges(), g.addRange(m), x.focus();
|
|
2265
|
-
},
|
|
2265
|
+
}, i = (f) => {
|
|
2266
2266
|
e.onValue({
|
|
2267
2267
|
value: a(f.target.textContent),
|
|
2268
2268
|
name: e.name
|
|
2269
2269
|
}), f.target.textContent = a(f.target.textContent), f.target.textContent.length > 0 && r(f.target.textContent.length, f.target);
|
|
2270
|
-
},
|
|
2270
|
+
}, o = (f) => {
|
|
2271
2271
|
f.target.textContent === "" && (f.target.textContent = 0), e.onValue({
|
|
2272
2272
|
value: a(f.target.textContent),
|
|
2273
2273
|
name: e.name
|
|
@@ -2291,9 +2291,9 @@ function bt(e) {
|
|
|
2291
2291
|
/* @__PURE__ */ n.jsx(
|
|
2292
2292
|
"dd",
|
|
2293
2293
|
{
|
|
2294
|
-
onInput:
|
|
2294
|
+
onInput: i,
|
|
2295
2295
|
onPaste: d,
|
|
2296
|
-
onBlur:
|
|
2296
|
+
onBlur: o,
|
|
2297
2297
|
onKeyDown: c,
|
|
2298
2298
|
onFocus: l,
|
|
2299
2299
|
contentEditable: !0,
|
|
@@ -2307,17 +2307,17 @@ function bt(e) {
|
|
|
2307
2307
|
}
|
|
2308
2308
|
);
|
|
2309
2309
|
}
|
|
2310
|
-
const
|
|
2311
|
-
o:
|
|
2312
|
-
c:
|
|
2310
|
+
const Ui = "_o_1kqkq_1", Hi = "_c_1kqkq_11", Vt = {
|
|
2311
|
+
o: Ui,
|
|
2312
|
+
c: Hi
|
|
2313
2313
|
};
|
|
2314
2314
|
function jn({
|
|
2315
2315
|
value: e,
|
|
2316
2316
|
onValue: t,
|
|
2317
2317
|
name: a,
|
|
2318
2318
|
view: r,
|
|
2319
|
-
error:
|
|
2320
|
-
edit:
|
|
2319
|
+
error: i,
|
|
2320
|
+
edit: o = !0,
|
|
2321
2321
|
active: l = !0,
|
|
2322
2322
|
title: c,
|
|
2323
2323
|
placeholder: d = "",
|
|
@@ -2330,13 +2330,13 @@ function jn({
|
|
|
2330
2330
|
let x = (v) => {
|
|
2331
2331
|
f(v), t && t({ value: v, name: a });
|
|
2332
2332
|
}, m = (v) => {
|
|
2333
|
-
if (!
|
|
2333
|
+
if (!o || !l)
|
|
2334
2334
|
return;
|
|
2335
2335
|
const p = v.target.getBoundingClientRect(), C = p.left, y = p.top;
|
|
2336
2336
|
He.setListener(
|
|
2337
2337
|
"form",
|
|
2338
2338
|
/* @__PURE__ */ n.jsx(
|
|
2339
|
-
|
|
2339
|
+
Yi,
|
|
2340
2340
|
{
|
|
2341
2341
|
position: { x: C, y },
|
|
2342
2342
|
onValue: x,
|
|
@@ -2366,18 +2366,18 @@ function jn({
|
|
|
2366
2366
|
children: ye.Date(u, "mm.yyyy")
|
|
2367
2367
|
}
|
|
2368
2368
|
),
|
|
2369
|
-
|
|
2369
|
+
i && /* @__PURE__ */ n.jsx("em", { children: i })
|
|
2370
2370
|
]
|
|
2371
2371
|
}
|
|
2372
2372
|
) });
|
|
2373
2373
|
}
|
|
2374
|
-
const
|
|
2375
|
-
let [t, a] = b.useState(!0), r = /* @__PURE__ */ new Date(),
|
|
2374
|
+
const Yi = (e) => {
|
|
2375
|
+
let [t, a] = b.useState(!0), r = /* @__PURE__ */ new Date(), i = new Date(e.date), o = {
|
|
2376
2376
|
y: parseInt(r.getFullYear()),
|
|
2377
2377
|
m: parseInt(r.getMonth()) + 1
|
|
2378
2378
|
}, l = {
|
|
2379
|
-
y: parseInt(
|
|
2380
|
-
m: parseInt(
|
|
2379
|
+
y: parseInt(i.getFullYear()),
|
|
2380
|
+
m: parseInt(i.getMonth()) + 1
|
|
2381
2381
|
}, [c, d] = b.useState(l.y), _ = () => {
|
|
2382
2382
|
a(!1);
|
|
2383
2383
|
}, u = () => {
|
|
@@ -2386,7 +2386,7 @@ const Vo = (e) => {
|
|
|
2386
2386
|
d(c - 1);
|
|
2387
2387
|
}, x = (C) => {
|
|
2388
2388
|
e.onValue(c + "-" + ye.Number(2, C)), _();
|
|
2389
|
-
}, m = (C) =>
|
|
2389
|
+
}, m = (C) => o.y === l.y && o.m === C ? "_FFEB3B" : "", g = Array(12).fill("").map((C, y) => y + 1), v = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, p = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
|
|
2390
2390
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: t ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2391
2391
|
/* @__PURE__ */ n.jsx(
|
|
2392
2392
|
"div",
|
|
@@ -2429,8 +2429,8 @@ const Vo = (e) => {
|
|
|
2429
2429
|
] }) : "" });
|
|
2430
2430
|
};
|
|
2431
2431
|
function yn(e) {
|
|
2432
|
-
let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", [r,
|
|
2433
|
-
r =
|
|
2432
|
+
let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", [r, i] = b.useState(!1), o = e.edit !== void 0 ? e.edit : !0, l = e.active !== void 0 ? e.active : !0, d = !!(e.hide && (e.value === "" || e.value === void 0)) && !(o && l);
|
|
2433
|
+
r = o ? !0 : r;
|
|
2434
2434
|
let _ = e.placeholder !== void 0 ? e.placeholder : "Заметка пуста", u = (p) => {
|
|
2435
2435
|
e.onValue && e.onValue({ value: p.target.innerText, name: e.name });
|
|
2436
2436
|
}, f = (p) => {
|
|
@@ -2439,14 +2439,14 @@ function yn(e) {
|
|
|
2439
2439
|
}).catch((C) => {
|
|
2440
2440
|
});
|
|
2441
2441
|
}, x = (p) => {
|
|
2442
|
-
|
|
2442
|
+
o || i(!r);
|
|
2443
2443
|
};
|
|
2444
2444
|
const m = (p) => {
|
|
2445
2445
|
e.onSave && e.onSave({ value: p.target.innerText, name: e.name });
|
|
2446
2446
|
}, g = {};
|
|
2447
2447
|
g.field = "notes", e.className && (g.className = e.className);
|
|
2448
2448
|
const v = {};
|
|
2449
|
-
return _ && (v.placeholder = _), r && (v.open = ""),
|
|
2449
|
+
return _ && (v.placeholder = _), r && (v.open = ""), o && l && (v.edit = ""), d ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...g, children: [
|
|
2450
2450
|
t(),
|
|
2451
2451
|
/* @__PURE__ */ n.jsx(
|
|
2452
2452
|
"dd",
|
|
@@ -2454,7 +2454,7 @@ function yn(e) {
|
|
|
2454
2454
|
onPaste: f,
|
|
2455
2455
|
onInput: u,
|
|
2456
2456
|
onBlur: m,
|
|
2457
|
-
contentEditable:
|
|
2457
|
+
contentEditable: o && l ? "plaintext-only" : "false",
|
|
2458
2458
|
...v,
|
|
2459
2459
|
onDoubleClick: x,
|
|
2460
2460
|
suppressContentEditableWarning: !0,
|
|
@@ -2469,8 +2469,8 @@ function Ct({
|
|
|
2469
2469
|
active: t,
|
|
2470
2470
|
max: a,
|
|
2471
2471
|
edit: r,
|
|
2472
|
-
title:
|
|
2473
|
-
error:
|
|
2472
|
+
title: i,
|
|
2473
|
+
error: o,
|
|
2474
2474
|
show: l,
|
|
2475
2475
|
hide: c,
|
|
2476
2476
|
value: d,
|
|
@@ -2486,7 +2486,7 @@ function Ct({
|
|
|
2486
2486
|
};
|
|
2487
2487
|
const p = {};
|
|
2488
2488
|
return p.field = "input", u && (p.className = u), c ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...p, children: [
|
|
2489
|
-
|
|
2489
|
+
i && /* @__PURE__ */ n.jsx("dt", { children: i }),
|
|
2490
2490
|
/* @__PURE__ */ n.jsx("dd", { children: /* @__PURE__ */ n.jsx(
|
|
2491
2491
|
"input",
|
|
2492
2492
|
{
|
|
@@ -2497,7 +2497,7 @@ function Ct({
|
|
|
2497
2497
|
placeholder: _
|
|
2498
2498
|
}
|
|
2499
2499
|
) }),
|
|
2500
|
-
|
|
2500
|
+
o && /* @__PURE__ */ n.jsx("em", { children: o })
|
|
2501
2501
|
] });
|
|
2502
2502
|
}
|
|
2503
2503
|
function wn({
|
|
@@ -2505,8 +2505,8 @@ function wn({
|
|
|
2505
2505
|
onValue: t,
|
|
2506
2506
|
name: a,
|
|
2507
2507
|
placeholder: r = "",
|
|
2508
|
-
className:
|
|
2509
|
-
title:
|
|
2508
|
+
className: i,
|
|
2509
|
+
title: o,
|
|
2510
2510
|
error: l,
|
|
2511
2511
|
edit: c = !0,
|
|
2512
2512
|
active: d = !0,
|
|
@@ -2532,17 +2532,17 @@ function wn({
|
|
|
2532
2532
|
});
|
|
2533
2533
|
};
|
|
2534
2534
|
const g = {};
|
|
2535
|
-
g.field = "password",
|
|
2535
|
+
g.field = "password", i && (g.className = i);
|
|
2536
2536
|
const v = {};
|
|
2537
2537
|
return r && (v.placeholder = r), /* @__PURE__ */ n.jsxs("dl", { ...g, children: [
|
|
2538
|
-
|
|
2538
|
+
o ? /* @__PURE__ */ n.jsx("dt", { children: o }) : "",
|
|
2539
2539
|
/* @__PURE__ */ n.jsx(
|
|
2540
2540
|
"dd",
|
|
2541
2541
|
{
|
|
2542
2542
|
onPaste: m,
|
|
2543
2543
|
onInput: f,
|
|
2544
2544
|
onKeyDown: x,
|
|
2545
|
-
onBlur:
|
|
2545
|
+
onBlur: me.Blur,
|
|
2546
2546
|
contentEditable: c && d ? "plaintext-only" : "false",
|
|
2547
2547
|
...v,
|
|
2548
2548
|
suppressContentEditableWarning: !0,
|
|
@@ -2552,7 +2552,7 @@ function wn({
|
|
|
2552
2552
|
l ? /* @__PURE__ */ n.jsx("em", { children: l }) : ""
|
|
2553
2553
|
] });
|
|
2554
2554
|
}
|
|
2555
|
-
const
|
|
2555
|
+
const ot = {
|
|
2556
2556
|
0: {
|
|
2557
2557
|
name: "Heard Island and Mcdonald Islands",
|
|
2558
2558
|
dial_code: "+0",
|
|
@@ -3939,8 +3939,8 @@ function jt({
|
|
|
3939
3939
|
onValue: t,
|
|
3940
3940
|
onSave: a,
|
|
3941
3941
|
name: r,
|
|
3942
|
-
placeholder:
|
|
3943
|
-
title:
|
|
3942
|
+
placeholder: i = "",
|
|
3943
|
+
title: o = "",
|
|
3944
3944
|
error: l = "",
|
|
3945
3945
|
hide: c = !1,
|
|
3946
3946
|
edit: d = !0,
|
|
@@ -3964,7 +3964,7 @@ function jt({
|
|
|
3964
3964
|
Y === "" && (p = !0);
|
|
3965
3965
|
let $e = Y.split(""), te = "";
|
|
3966
3966
|
$e.forEach((Le) => {
|
|
3967
|
-
p && (te += Le,
|
|
3967
|
+
p && (te += Le, ot[te] !== void 0 && p ? (p = !1, v = ot[te].mask.replace(new RegExp("[0-9]", "g"), "_"), Z = ot[te].code) : (p && (C = ("" + te).length, v = `+${te}_(___) ___-__-__`.replace(
|
|
3968
3968
|
new RegExp("[0-9]", "g"),
|
|
3969
3969
|
"_"
|
|
3970
3970
|
), Z = ""), C > ("" + te).length && (p = !0, v = `+${te}_(___) ___-__-__`.replace(
|
|
@@ -3991,15 +3991,15 @@ function jt({
|
|
|
3991
3991
|
$.key === "Enter" && $.preventDefault();
|
|
3992
3992
|
};
|
|
3993
3993
|
const z = ($) => {
|
|
3994
|
-
|
|
3994
|
+
me.Blur($), a && a({
|
|
3995
3995
|
value: $.target.textContent.replace(/\D/g, ""),
|
|
3996
3996
|
name: r
|
|
3997
3997
|
});
|
|
3998
3998
|
}, M = {};
|
|
3999
3999
|
M.field = "input", m && (M.className = m);
|
|
4000
4000
|
let W = {};
|
|
4001
|
-
return d && _ ? (W.edit = "true", W.contentEditable = "plaintext-only") : W.contentEditable = "false",
|
|
4002
|
-
|
|
4001
|
+
return d && _ ? (W.edit = "true", W.contentEditable = "plaintext-only") : W.contentEditable = "false", i && (W.placeholder = i), u && (W.after = u), c ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...M, children: [
|
|
4002
|
+
o && /* @__PURE__ */ n.jsx("dt", { children: o }),
|
|
4003
4003
|
/* @__PURE__ */ n.jsx(
|
|
4004
4004
|
"dd",
|
|
4005
4005
|
{
|
|
@@ -4017,8 +4017,8 @@ function jt({
|
|
|
4017
4017
|
] });
|
|
4018
4018
|
}
|
|
4019
4019
|
const Sn = (e) => {
|
|
4020
|
-
let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = e.edit !== void 0 ? e.edit : !0, r = e.active !== void 0 ? e.active : !0,
|
|
4021
|
-
clearTimeout(
|
|
4020
|
+
let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = e.edit !== void 0 ? e.edit : !0, r = e.active !== void 0 ? e.active : !0, i = e.placeholder !== void 0 ? e.placeholder : "", o = 0, l = () => {
|
|
4021
|
+
clearTimeout(o), o = setTimeout(() => {
|
|
4022
4022
|
}, 1e3);
|
|
4023
4023
|
}, c = (u) => {
|
|
4024
4024
|
u.key === "Enter" && u.preventDefault();
|
|
@@ -4029,7 +4029,7 @@ const Sn = (e) => {
|
|
|
4029
4029
|
});
|
|
4030
4030
|
};
|
|
4031
4031
|
const _ = {};
|
|
4032
|
-
return
|
|
4032
|
+
return i && (_.placeholder = i), /* @__PURE__ */ n.jsxs(
|
|
4033
4033
|
"dl",
|
|
4034
4034
|
{
|
|
4035
4035
|
"data-form": "input",
|
|
@@ -4056,8 +4056,8 @@ function yt({
|
|
|
4056
4056
|
error: t,
|
|
4057
4057
|
edit: a = !0,
|
|
4058
4058
|
active: r = !0,
|
|
4059
|
-
hide:
|
|
4060
|
-
value:
|
|
4059
|
+
hide: i,
|
|
4060
|
+
value: o = "0",
|
|
4061
4061
|
onValue: l,
|
|
4062
4062
|
options: c,
|
|
4063
4063
|
placeholder: d = "",
|
|
@@ -4066,8 +4066,8 @@ function yt({
|
|
|
4066
4066
|
view: f
|
|
4067
4067
|
}) {
|
|
4068
4068
|
const x = b.useRef();
|
|
4069
|
-
|
|
4070
|
-
let g =
|
|
4069
|
+
i = !!(i && (o === "" || c[o].n === void 0)) && !(a && r);
|
|
4070
|
+
let g = o !== void 0 && o !== "" ? c[o].n : o, v = (B) => {
|
|
4071
4071
|
x.current.textContent = c[B].n, l && l({ value: B, name: _ });
|
|
4072
4072
|
}, p = (B) => {
|
|
4073
4073
|
if (!(a && r))
|
|
@@ -4076,7 +4076,7 @@ function yt({
|
|
|
4076
4076
|
He.setListener(
|
|
4077
4077
|
"form",
|
|
4078
4078
|
/* @__PURE__ */ n.jsx(
|
|
4079
|
-
|
|
4079
|
+
Vi,
|
|
4080
4080
|
{
|
|
4081
4081
|
parent: T,
|
|
4082
4082
|
onValue: v,
|
|
@@ -4087,19 +4087,19 @@ function yt({
|
|
|
4087
4087
|
)
|
|
4088
4088
|
);
|
|
4089
4089
|
}, C = { field: "select" }, y = { onClick: p };
|
|
4090
|
-
return d && (y.placeholder = d), u && (y.after = u), a && r && (y.edit = ""),
|
|
4090
|
+
return d && (y.placeholder = d), u && (y.after = u), a && r && (y.edit = ""), i ? "" : /* @__PURE__ */ n.jsxs("dl", { ...C, children: [
|
|
4091
4091
|
e && /* @__PURE__ */ n.jsx("dt", { children: e }),
|
|
4092
4092
|
/* @__PURE__ */ n.jsx("dd", { ...y, ref: x, children: g }),
|
|
4093
4093
|
t && /* @__PURE__ */ n.jsx("em", { children: t })
|
|
4094
4094
|
] });
|
|
4095
4095
|
}
|
|
4096
|
-
const
|
|
4097
|
-
let [
|
|
4098
|
-
|
|
4096
|
+
const Vi = ({ onValue: e, parent: t, view: a, options: r }) => {
|
|
4097
|
+
let [i, o] = b.useState(!0), l = () => {
|
|
4098
|
+
o(!1);
|
|
4099
4099
|
}, c = (u) => {
|
|
4100
|
-
|
|
4100
|
+
o(!1), e(u);
|
|
4101
4101
|
}, d = window.innerHeight - t.y + t.height < 320 ? t.y - 312 : t.y + 33, _ = window.innerWidth - t.x < 265 ? t.x - 235 : t.x;
|
|
4102
|
-
return /* @__PURE__ */ n.jsx(n.Fragment, { children:
|
|
4102
|
+
return /* @__PURE__ */ n.jsx(n.Fragment, { children: i ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
4103
4103
|
/* @__PURE__ */ n.jsx(
|
|
4104
4104
|
"div",
|
|
4105
4105
|
{
|
|
@@ -4138,8 +4138,8 @@ function wt({
|
|
|
4138
4138
|
onValue: t,
|
|
4139
4139
|
name: a,
|
|
4140
4140
|
placeholder: r = "",
|
|
4141
|
-
title:
|
|
4142
|
-
error:
|
|
4141
|
+
title: i = "",
|
|
4142
|
+
error: o = "",
|
|
4143
4143
|
hide: l = !1,
|
|
4144
4144
|
edit: c = !0,
|
|
4145
4145
|
active: d = !0,
|
|
@@ -4174,7 +4174,7 @@ function wt({
|
|
|
4174
4174
|
return "";
|
|
4175
4175
|
const B = {};
|
|
4176
4176
|
return B.field = "input", g && (B.className = g), /* @__PURE__ */ n.jsxs("dl", { ...B, children: [
|
|
4177
|
-
|
|
4177
|
+
i ? /* @__PURE__ */ n.jsx("dt", { children: i }) : "",
|
|
4178
4178
|
/* @__PURE__ */ n.jsx("dd", { children: /* @__PURE__ */ n.jsx(
|
|
4179
4179
|
"input",
|
|
4180
4180
|
{
|
|
@@ -4187,22 +4187,22 @@ function wt({
|
|
|
4187
4187
|
placeholder: r
|
|
4188
4188
|
}
|
|
4189
4189
|
) }),
|
|
4190
|
-
|
|
4190
|
+
o ? /* @__PURE__ */ n.jsx("em", { children: o }) : ""
|
|
4191
4191
|
] });
|
|
4192
4192
|
}
|
|
4193
4193
|
function St(e) {
|
|
4194
|
-
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,
|
|
4194
|
+
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, i = e.active !== void 0 ? e.active : !0, l = !!(e.hide && (e.default === "" || e.options[e.default] === void 0)) && !(r && i), c = e.placeholder !== void 0 ? e.placeholder : "", d = (m) => {
|
|
4195
4195
|
u(e.options[m]), e.onValue({ value: m, name: e.name });
|
|
4196
4196
|
}, [_, u] = b.useState(
|
|
4197
4197
|
e.default !== void 0 ? e.options[e.default] : e.default
|
|
4198
4198
|
), f = (m) => {
|
|
4199
|
-
if (!(r &&
|
|
4199
|
+
if (!(r && i))
|
|
4200
4200
|
return;
|
|
4201
4201
|
const g = m.target.getBoundingClientRect();
|
|
4202
4202
|
He.setListener(
|
|
4203
4203
|
"form",
|
|
4204
4204
|
/* @__PURE__ */ n.jsx(
|
|
4205
|
-
|
|
4205
|
+
qi,
|
|
4206
4206
|
{
|
|
4207
4207
|
parent: g,
|
|
4208
4208
|
onValue: d,
|
|
@@ -4224,7 +4224,7 @@ function St(e) {
|
|
|
4224
4224
|
"dd",
|
|
4225
4225
|
{
|
|
4226
4226
|
onClick: f,
|
|
4227
|
-
"data-edit": (r &&
|
|
4227
|
+
"data-edit": (r && i) + "",
|
|
4228
4228
|
...x,
|
|
4229
4229
|
children: _
|
|
4230
4230
|
}
|
|
@@ -4234,13 +4234,13 @@ function St(e) {
|
|
|
4234
4234
|
}
|
|
4235
4235
|
);
|
|
4236
4236
|
}
|
|
4237
|
-
const
|
|
4238
|
-
let [
|
|
4239
|
-
|
|
4237
|
+
const qi = ({ onValue: e, parent: t, view: a, options: r }) => {
|
|
4238
|
+
let [i, o] = b.useState(!0), l = () => {
|
|
4239
|
+
o(!1);
|
|
4240
4240
|
}, c = (f) => {
|
|
4241
|
-
|
|
4241
|
+
o(!1), e(f);
|
|
4242
4242
|
}, d = Object.keys(r).length * 36, _ = window.innerHeight - t.y + t.height < d ? t.y - (d - 33) : t.y + 33, u = window.innerWidth - t.x < 265 ? t.x - 235 : t.x;
|
|
4243
|
-
return /* @__PURE__ */ n.jsx(n.Fragment, { children:
|
|
4243
|
+
return /* @__PURE__ */ n.jsx(n.Fragment, { children: i ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
4244
4244
|
/* @__PURE__ */ n.jsx(
|
|
4245
4245
|
"div",
|
|
4246
4246
|
{
|
|
@@ -4277,8 +4277,8 @@ function ft({
|
|
|
4277
4277
|
value: t,
|
|
4278
4278
|
onValue: a,
|
|
4279
4279
|
name: r,
|
|
4280
|
-
placeholder:
|
|
4281
|
-
title:
|
|
4280
|
+
placeholder: i = "",
|
|
4281
|
+
title: o = "",
|
|
4282
4282
|
error: l = "",
|
|
4283
4283
|
hide: c = !1,
|
|
4284
4284
|
edit: d = !0,
|
|
@@ -4296,7 +4296,7 @@ function ft({
|
|
|
4296
4296
|
return /* @__PURE__ */ n.jsx(
|
|
4297
4297
|
wt,
|
|
4298
4298
|
{
|
|
4299
|
-
title:
|
|
4299
|
+
title: o,
|
|
4300
4300
|
show: _,
|
|
4301
4301
|
hide: c,
|
|
4302
4302
|
view: x,
|
|
@@ -4305,15 +4305,15 @@ function ft({
|
|
|
4305
4305
|
value: t,
|
|
4306
4306
|
onValue: a,
|
|
4307
4307
|
name: r,
|
|
4308
|
-
placeholder:
|
|
4308
|
+
placeholder: i,
|
|
4309
4309
|
className: v
|
|
4310
4310
|
}
|
|
4311
4311
|
);
|
|
4312
4312
|
case "Select":
|
|
4313
|
-
return g && (p =
|
|
4313
|
+
return g && (p = le.getSelect(parseInt(g)) ? le.getSelect(parseInt(g)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ n.jsx(
|
|
4314
4314
|
yt,
|
|
4315
4315
|
{
|
|
4316
|
-
title:
|
|
4316
|
+
title: o,
|
|
4317
4317
|
show: _,
|
|
4318
4318
|
hide: c,
|
|
4319
4319
|
view: x,
|
|
@@ -4322,16 +4322,16 @@ function ft({
|
|
|
4322
4322
|
value: t,
|
|
4323
4323
|
onValue: a,
|
|
4324
4324
|
name: r,
|
|
4325
|
-
placeholder:
|
|
4325
|
+
placeholder: i,
|
|
4326
4326
|
className: v,
|
|
4327
4327
|
options: p
|
|
4328
4328
|
}
|
|
4329
4329
|
);
|
|
4330
4330
|
case "Users":
|
|
4331
|
-
return
|
|
4331
|
+
return le.getSelect("user"), /* @__PURE__ */ n.jsx(
|
|
4332
4332
|
St,
|
|
4333
4333
|
{
|
|
4334
|
-
title:
|
|
4334
|
+
title: o,
|
|
4335
4335
|
show: _,
|
|
4336
4336
|
hide: c,
|
|
4337
4337
|
view: x,
|
|
@@ -4340,7 +4340,7 @@ function ft({
|
|
|
4340
4340
|
value: t,
|
|
4341
4341
|
onValue: a,
|
|
4342
4342
|
name: r,
|
|
4343
|
-
placeholder:
|
|
4343
|
+
placeholder: i,
|
|
4344
4344
|
className: v,
|
|
4345
4345
|
options: p
|
|
4346
4346
|
}
|
|
@@ -4349,7 +4349,7 @@ function ft({
|
|
|
4349
4349
|
return /* @__PURE__ */ n.jsx(
|
|
4350
4350
|
vt,
|
|
4351
4351
|
{
|
|
4352
|
-
title:
|
|
4352
|
+
title: o,
|
|
4353
4353
|
show: _,
|
|
4354
4354
|
hide: c,
|
|
4355
4355
|
view: x,
|
|
@@ -4358,7 +4358,7 @@ function ft({
|
|
|
4358
4358
|
value: t,
|
|
4359
4359
|
onValue: a,
|
|
4360
4360
|
name: r,
|
|
4361
|
-
placeholder:
|
|
4361
|
+
placeholder: i,
|
|
4362
4362
|
className: v
|
|
4363
4363
|
}
|
|
4364
4364
|
);
|
|
@@ -4366,7 +4366,7 @@ function ft({
|
|
|
4366
4366
|
return /* @__PURE__ */ n.jsx(
|
|
4367
4367
|
jt,
|
|
4368
4368
|
{
|
|
4369
|
-
title:
|
|
4369
|
+
title: o,
|
|
4370
4370
|
show: _,
|
|
4371
4371
|
hide: c,
|
|
4372
4372
|
view: x,
|
|
@@ -4375,7 +4375,7 @@ function ft({
|
|
|
4375
4375
|
value: t,
|
|
4376
4376
|
onValue: a,
|
|
4377
4377
|
name: r,
|
|
4378
|
-
placeholder:
|
|
4378
|
+
placeholder: i,
|
|
4379
4379
|
className: v
|
|
4380
4380
|
}
|
|
4381
4381
|
);
|
|
@@ -4383,7 +4383,7 @@ function ft({
|
|
|
4383
4383
|
return /* @__PURE__ */ n.jsx(
|
|
4384
4384
|
Ct,
|
|
4385
4385
|
{
|
|
4386
|
-
title:
|
|
4386
|
+
title: o,
|
|
4387
4387
|
show: _,
|
|
4388
4388
|
hide: c,
|
|
4389
4389
|
view: x,
|
|
@@ -4392,7 +4392,7 @@ function ft({
|
|
|
4392
4392
|
value: t,
|
|
4393
4393
|
onValue: a,
|
|
4394
4394
|
name: r,
|
|
4395
|
-
placeholder:
|
|
4395
|
+
placeholder: i,
|
|
4396
4396
|
className: v
|
|
4397
4397
|
}
|
|
4398
4398
|
);
|
|
@@ -4400,7 +4400,7 @@ function ft({
|
|
|
4400
4400
|
return /* @__PURE__ */ n.jsx(
|
|
4401
4401
|
bt,
|
|
4402
4402
|
{
|
|
4403
|
-
title:
|
|
4403
|
+
title: o,
|
|
4404
4404
|
show: _,
|
|
4405
4405
|
hide: c,
|
|
4406
4406
|
view: x,
|
|
@@ -4409,7 +4409,7 @@ function ft({
|
|
|
4409
4409
|
value: t,
|
|
4410
4410
|
onValue: a,
|
|
4411
4411
|
name: r,
|
|
4412
|
-
placeholder:
|
|
4412
|
+
placeholder: i,
|
|
4413
4413
|
className: v
|
|
4414
4414
|
}
|
|
4415
4415
|
);
|
|
@@ -4417,7 +4417,7 @@ function ft({
|
|
|
4417
4417
|
return /* @__PURE__ */ n.jsx(
|
|
4418
4418
|
kt,
|
|
4419
4419
|
{
|
|
4420
|
-
title:
|
|
4420
|
+
title: o,
|
|
4421
4421
|
show: _,
|
|
4422
4422
|
hide: c,
|
|
4423
4423
|
view: x,
|
|
@@ -4426,7 +4426,7 @@ function ft({
|
|
|
4426
4426
|
value: t,
|
|
4427
4427
|
onValue: a,
|
|
4428
4428
|
name: r || "",
|
|
4429
|
-
placeholder:
|
|
4429
|
+
placeholder: i,
|
|
4430
4430
|
className: v,
|
|
4431
4431
|
options: p,
|
|
4432
4432
|
module: m || ""
|
|
@@ -4439,8 +4439,8 @@ function En({
|
|
|
4439
4439
|
onValue: t,
|
|
4440
4440
|
name: a,
|
|
4441
4441
|
placeholder: r = "",
|
|
4442
|
-
title:
|
|
4443
|
-
error:
|
|
4442
|
+
title: i = "",
|
|
4443
|
+
error: o = "",
|
|
4444
4444
|
hide: l = !1,
|
|
4445
4445
|
edit: c = !0,
|
|
4446
4446
|
active: d = !0,
|
|
@@ -4466,7 +4466,7 @@ function En({
|
|
|
4466
4466
|
};
|
|
4467
4467
|
const B = {};
|
|
4468
4468
|
return r && (B.placeholder = r), /* @__PURE__ */ n.jsxs("dl", { children: [
|
|
4469
|
-
|
|
4469
|
+
i ?? /* @__PURE__ */ n.jsx("dt", { children: i }),
|
|
4470
4470
|
/* @__PURE__ */ n.jsx(
|
|
4471
4471
|
"dd",
|
|
4472
4472
|
{
|
|
@@ -4479,7 +4479,7 @@ function En({
|
|
|
4479
4479
|
children: e
|
|
4480
4480
|
}
|
|
4481
4481
|
),
|
|
4482
|
-
|
|
4482
|
+
o ?? /* @__PURE__ */ n.jsx("em", { children: o })
|
|
4483
4483
|
] });
|
|
4484
4484
|
}
|
|
4485
4485
|
function Bn({
|
|
@@ -4487,8 +4487,8 @@ function Bn({
|
|
|
4487
4487
|
onValue: t,
|
|
4488
4488
|
name: a,
|
|
4489
4489
|
placeholder: r = "",
|
|
4490
|
-
title:
|
|
4491
|
-
error:
|
|
4490
|
+
title: i = "",
|
|
4491
|
+
error: o = "",
|
|
4492
4492
|
hide: l = !1,
|
|
4493
4493
|
edit: c = !0,
|
|
4494
4494
|
active: d = !0,
|
|
@@ -4518,7 +4518,7 @@ function Bn({
|
|
|
4518
4518
|
r && (se.placeholder = r);
|
|
4519
4519
|
let z = !1;
|
|
4520
4520
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs("dl", { ...K, children: [
|
|
4521
|
-
|
|
4521
|
+
i ? /* @__PURE__ */ n.jsx("dt", { children: i }) : "",
|
|
4522
4522
|
/* @__PURE__ */ n.jsx("dd", { ...se, children: /* @__PURE__ */ n.jsx(
|
|
4523
4523
|
"input",
|
|
4524
4524
|
{
|
|
@@ -4531,7 +4531,7 @@ function Bn({
|
|
|
4531
4531
|
onBlur: (M) => M.target.value === p && (M.target.value = "")
|
|
4532
4532
|
}
|
|
4533
4533
|
) }),
|
|
4534
|
-
|
|
4534
|
+
o ? /* @__PURE__ */ n.jsx("em", { children: o }) : ""
|
|
4535
4535
|
] }) });
|
|
4536
4536
|
}
|
|
4537
4537
|
function Tn({
|
|
@@ -4539,13 +4539,13 @@ function Tn({
|
|
|
4539
4539
|
label: t,
|
|
4540
4540
|
value: a,
|
|
4541
4541
|
className: r,
|
|
4542
|
-
name:
|
|
4543
|
-
reload:
|
|
4542
|
+
name: i,
|
|
4543
|
+
reload: o
|
|
4544
4544
|
}) {
|
|
4545
4545
|
a = !!a;
|
|
4546
4546
|
const [l, c] = b.useState(a), d = () => {
|
|
4547
4547
|
let f = !l;
|
|
4548
|
-
e({ name:
|
|
4548
|
+
e({ name: i, value: f, reload: o }), c(f);
|
|
4549
4549
|
}, _ = {};
|
|
4550
4550
|
_.field = "check", r && (_.className = r);
|
|
4551
4551
|
const u = {};
|
|
@@ -4555,20 +4555,20 @@ function Tn({
|
|
|
4555
4555
|
] });
|
|
4556
4556
|
}
|
|
4557
4557
|
const Rn = ({ onValue: e, value: t, name: a, item: r }) => {
|
|
4558
|
-
const [
|
|
4558
|
+
const [i, o] = b.useState(!!t);
|
|
4559
4559
|
b.useEffect(() => {
|
|
4560
|
-
|
|
4560
|
+
o(!!t);
|
|
4561
4561
|
}, [t]);
|
|
4562
4562
|
let l = () => {
|
|
4563
|
-
let c = parseInt(
|
|
4564
|
-
|
|
4563
|
+
let c = parseInt(i) === 0 ? 1 : 0;
|
|
4564
|
+
o(c), e({ value: c, name: a, key: r, item: r });
|
|
4565
4565
|
};
|
|
4566
4566
|
return /* @__PURE__ */ n.jsx(
|
|
4567
4567
|
"div",
|
|
4568
4568
|
{
|
|
4569
4569
|
role: "switch",
|
|
4570
4570
|
onClick: l,
|
|
4571
|
-
"aria-checked": `${
|
|
4571
|
+
"aria-checked": `${i ? "true" : "false"}`
|
|
4572
4572
|
}
|
|
4573
4573
|
);
|
|
4574
4574
|
};
|
|
@@ -4577,8 +4577,8 @@ function Mn({
|
|
|
4577
4577
|
onValue: t,
|
|
4578
4578
|
name: a,
|
|
4579
4579
|
placeholder: r = "",
|
|
4580
|
-
title:
|
|
4581
|
-
error:
|
|
4580
|
+
title: i = "",
|
|
4581
|
+
error: o = "",
|
|
4582
4582
|
hide: l = !1,
|
|
4583
4583
|
edit: c = !0,
|
|
4584
4584
|
active: d = !0,
|
|
@@ -4606,7 +4606,7 @@ function Mn({
|
|
|
4606
4606
|
const P = {};
|
|
4607
4607
|
P.field = "group", g && (P.className = g);
|
|
4608
4608
|
const O = (z) => {
|
|
4609
|
-
|
|
4609
|
+
me.Blur(z), m && m({ value: z.target.textContent, name: a });
|
|
4610
4610
|
};
|
|
4611
4611
|
let K = (z, M) => {
|
|
4612
4612
|
v[M] = z.target.textContent, t !== void 0 && t({ value: v.join(","), name: a });
|
|
@@ -4615,7 +4615,7 @@ function Mn({
|
|
|
4615
4615
|
};
|
|
4616
4616
|
return /* @__PURE__ */ n.jsxs("dl", { ...P, children: [
|
|
4617
4617
|
/* @__PURE__ */ n.jsxs("dt", { children: [
|
|
4618
|
-
|
|
4618
|
+
i,
|
|
4619
4619
|
/* @__PURE__ */ n.jsx("i", { onClick: C, children: /* @__PURE__ */ n.jsxs(
|
|
4620
4620
|
"svg",
|
|
4621
4621
|
{
|
|
@@ -4674,17 +4674,17 @@ function Mn({
|
|
|
4674
4674
|
}
|
|
4675
4675
|
)
|
|
4676
4676
|
] }, M)) }),
|
|
4677
|
-
|
|
4677
|
+
o ? /* @__PURE__ */ n.jsx("em", { children: o }) : ""
|
|
4678
4678
|
] });
|
|
4679
4679
|
}
|
|
4680
|
-
const
|
|
4680
|
+
const Ji = (e) => (e = e !== void 0 && e !== "" ? e.split(",") : [], e.reduce((t, a) => (t[a] = !0, t), {}));
|
|
4681
4681
|
function In({
|
|
4682
4682
|
value: e,
|
|
4683
4683
|
onValue: t,
|
|
4684
4684
|
name: a,
|
|
4685
4685
|
placeholder: r = "",
|
|
4686
|
-
title:
|
|
4687
|
-
error:
|
|
4686
|
+
title: i,
|
|
4687
|
+
error: o,
|
|
4688
4688
|
hide: l = !1,
|
|
4689
4689
|
edit: c = !0,
|
|
4690
4690
|
show: d = !0,
|
|
@@ -4696,7 +4696,7 @@ function In({
|
|
|
4696
4696
|
options: g,
|
|
4697
4697
|
className: v
|
|
4698
4698
|
}) {
|
|
4699
|
-
const [p, C] = b.useState(
|
|
4699
|
+
const [p, C] = b.useState(Ji(e)), y = (P) => {
|
|
4700
4700
|
if (!(c && _) || !x)
|
|
4701
4701
|
return;
|
|
4702
4702
|
let O = x.split(".");
|
|
@@ -4714,7 +4714,7 @@ function In({
|
|
|
4714
4714
|
const T = {};
|
|
4715
4715
|
return r && (T.placeholder = r), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...B, children: [
|
|
4716
4716
|
/* @__PURE__ */ n.jsxs("dt", { children: [
|
|
4717
|
-
|
|
4717
|
+
i,
|
|
4718
4718
|
/* @__PURE__ */ n.jsx("i", { onClick: y, children: /* @__PURE__ */ n.jsxs(
|
|
4719
4719
|
"svg",
|
|
4720
4720
|
{
|
|
@@ -4746,10 +4746,10 @@ function In({
|
|
|
4746
4746
|
})
|
|
4747
4747
|
}
|
|
4748
4748
|
),
|
|
4749
|
-
|
|
4749
|
+
o && /* @__PURE__ */ n.jsx("em", { children: o })
|
|
4750
4750
|
] });
|
|
4751
4751
|
}
|
|
4752
|
-
const
|
|
4752
|
+
const Xi = {
|
|
4753
4753
|
Color: bn,
|
|
4754
4754
|
Date: vt,
|
|
4755
4755
|
Code: kn,
|
|
@@ -4776,17 +4776,17 @@ const Qo = {
|
|
|
4776
4776
|
Toogle: Rn,
|
|
4777
4777
|
Group: Mn,
|
|
4778
4778
|
Options: In
|
|
4779
|
-
},
|
|
4780
|
-
debug:
|
|
4781
|
-
b:
|
|
4782
|
-
o:
|
|
4783
|
-
mb:
|
|
4784
|
-
tm:
|
|
4785
|
-
ta:
|
|
4779
|
+
}, Qi = "_debug_ug20b_34", eo = "_b_ug20b_46", to = "_o_ug20b_50", no = "_mb_ug20b_55", ao = "_tm_ug20b_66", ro = "_ta_ug20b_133", ge = {
|
|
4780
|
+
debug: Qi,
|
|
4781
|
+
b: eo,
|
|
4782
|
+
o: to,
|
|
4783
|
+
mb: no,
|
|
4784
|
+
tm: ao,
|
|
4785
|
+
ta: ro,
|
|
4786
4786
|
"--body": "_--body_ug20b_143"
|
|
4787
|
-
}, S = window.Telegram.WebApp,
|
|
4788
|
-
let
|
|
4789
|
-
|
|
4787
|
+
}, S = window.Telegram.WebApp, oe = { is: !1, MainButton: {}, BackButton: {} };
|
|
4788
|
+
let xe = {};
|
|
4789
|
+
xe.dark = {
|
|
4790
4790
|
"--tg-theme-bg-color": "#212121",
|
|
4791
4791
|
"--tg-theme-text-color": "#ffffff",
|
|
4792
4792
|
"--tg-theme-hint-color": "#aaaaaa",
|
|
@@ -4801,7 +4801,7 @@ pe.dark = {
|
|
|
4801
4801
|
"--tg-theme-subtitle-text-color": "#aaaaaa",
|
|
4802
4802
|
"--tg-theme-destructive-text-color": "#e53935"
|
|
4803
4803
|
};
|
|
4804
|
-
|
|
4804
|
+
xe.light = {
|
|
4805
4805
|
"--tg-theme-bg-color": "#ffffff",
|
|
4806
4806
|
"--tg-theme-text-color": "#000000",
|
|
4807
4807
|
"--tg-theme-hint-color": "#999999",
|
|
@@ -4810,7 +4810,7 @@ pe.light = {
|
|
|
4810
4810
|
"--tg-theme-button-text-color": "#ffffff",
|
|
4811
4811
|
"--tg-theme-secondary-bg-color": "#efeff3"
|
|
4812
4812
|
};
|
|
4813
|
-
|
|
4813
|
+
xe.users = {
|
|
4814
4814
|
"--tg-theme-bg-color": "#000000",
|
|
4815
4815
|
"--tg-theme-text-color": "#ffffff",
|
|
4816
4816
|
"--tg-theme-hint-color": "#98989e",
|
|
@@ -4825,11 +4825,11 @@ S.getUser = () => {
|
|
|
4825
4825
|
};
|
|
4826
4826
|
S.MainButton.callback = [];
|
|
4827
4827
|
S.MainButton.set = (e) => {
|
|
4828
|
-
|
|
4828
|
+
oe.is ? oe.MainButton.set(e) : (S.MainButton.callback.forEach((t) => {
|
|
4829
4829
|
S.MainButton.offClick(t);
|
|
4830
4830
|
}), S.MainButton.callback = [], typeof e == "boolean" ? S.MainButton.isVisible = !1 : (S.MainButton.text = e.text, e.color && (S.MainButton.color = e.color), e.textColor && (S.MainButton.textColor = e.textColor), S.MainButton.isVisible = !0, S.MainButton.isActive = e.isActive === void 0 ? !0 : e.isActive, S.MainButton.callback.push(() => {
|
|
4831
4831
|
var t;
|
|
4832
|
-
e.page === void 0 ? (t = e.callback) == null || t.call(e) :
|
|
4832
|
+
e.page === void 0 ? (t = e.callback) == null || t.call(e) : _e.setPage(e.page);
|
|
4833
4833
|
}), S.MainButton.onClick(S.MainButton.callback[0])));
|
|
4834
4834
|
};
|
|
4835
4835
|
S.BackButton.state = [!1];
|
|
@@ -4838,7 +4838,7 @@ S.BackButton.router = (e) => {
|
|
|
4838
4838
|
e === !1 ? (S.BackButton.isVisible = !1, S.BackButton.offClick(S.BackButton.listen[0]), S.BackButton.listen.shift(), S.BackButton.state.length !== 1 && S.BackButton.state.pop()) : (S.BackButton.isVisible = !0, S.BackButton.offClick(S.BackButton.listen[0]), S.BackButton.listen.shift(), S.BackButton.listen.push(() => {
|
|
4839
4839
|
let t = S.BackButton.state.pop();
|
|
4840
4840
|
if (t.page !== void 0)
|
|
4841
|
-
|
|
4841
|
+
_e.setPage(t.page);
|
|
4842
4842
|
else {
|
|
4843
4843
|
let a = S.BackButton.state[S.BackButton.state.length - 1];
|
|
4844
4844
|
S.BackButton.router(a);
|
|
@@ -4846,54 +4846,62 @@ S.BackButton.router = (e) => {
|
|
|
4846
4846
|
}), S.BackButton.onClick(S.BackButton.listen[0]));
|
|
4847
4847
|
};
|
|
4848
4848
|
S.BackButton.set = (e) => {
|
|
4849
|
-
|
|
4849
|
+
oe.is ? oe.BackButton.set(e) : (S.BackButton.state.push(e), S.BackButton.router(e));
|
|
4850
4850
|
};
|
|
4851
4851
|
S.Notice = (e, t) => {
|
|
4852
|
-
t !== void 0 ? (Ke.Send({ type: e, text: t }), S.HapticFeedback.notificationOccurred(e)) : (Ke.Send(e), S.HapticFeedback.notificationOccurred(e.type));
|
|
4852
|
+
t !== void 0 ? (Ke.Send({ type: e, text: t }), oe.is || S.HapticFeedback.notificationOccurred(e)) : (Ke.Send(e), oe.is || S.HapticFeedback.notificationOccurred(e.type));
|
|
4853
4853
|
};
|
|
4854
4854
|
S.Init = ({ dev: e }) => {
|
|
4855
4855
|
if (e) {
|
|
4856
|
-
let [t, a] = b.useState(!1), [r,
|
|
4857
|
-
|
|
4858
|
-
for (let m in
|
|
4856
|
+
let [t, a] = b.useState(!1), [r, i] = b.useState(!1), [o, l] = b.useState("dark"), [c, d] = b.useState(!1), [_, u] = b.useState(!1);
|
|
4857
|
+
oe.is = !0, oe.MainButton.set = a, oe.BackButton.set = i, b.useEffect(() => {
|
|
4858
|
+
for (let m in xe[o])
|
|
4859
4859
|
document.documentElement.style.setProperty(
|
|
4860
4860
|
m,
|
|
4861
|
-
|
|
4861
|
+
xe[o][m]
|
|
4862
4862
|
);
|
|
4863
4863
|
}, []);
|
|
4864
4864
|
let f = (m) => {
|
|
4865
|
-
for (let g in
|
|
4866
|
-
document.documentElement.style.setProperty(g,
|
|
4865
|
+
for (let g in xe[m])
|
|
4866
|
+
document.documentElement.style.setProperty(g, xe[m][g]);
|
|
4867
4867
|
l(m), d(!1);
|
|
4868
4868
|
}, x = () => {
|
|
4869
4869
|
d(!1), u(!0);
|
|
4870
4870
|
};
|
|
4871
4871
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
4872
|
-
/* @__PURE__ */ n.jsxs("div", { className:
|
|
4873
|
-
r === !1 ? /* @__PURE__ */ n.jsx("div", { className:
|
|
4872
|
+
/* @__PURE__ */ n.jsxs("div", { className: ge.debug, children: [
|
|
4873
|
+
r === !1 ? /* @__PURE__ */ n.jsx("div", { className: ge.b, children: "Отмена" }) : /* @__PURE__ */ n.jsx(
|
|
4874
4874
|
"div",
|
|
4875
4875
|
{
|
|
4876
4876
|
onClick: () => {
|
|
4877
|
-
r.page === void 0 ||
|
|
4877
|
+
r.page === void 0 || _e.setPage(r.page);
|
|
4878
4878
|
},
|
|
4879
|
-
className:
|
|
4879
|
+
className: ge.b,
|
|
4880
4880
|
children: "Назад"
|
|
4881
4881
|
}
|
|
4882
4882
|
),
|
|
4883
4883
|
/* @__PURE__ */ n.jsx(
|
|
4884
4884
|
"div",
|
|
4885
4885
|
{
|
|
4886
|
-
className:
|
|
4886
|
+
className: ge.o,
|
|
4887
4887
|
onClick: () => d(!c),
|
|
4888
4888
|
children: "Меню"
|
|
4889
4889
|
}
|
|
4890
4890
|
)
|
|
4891
4891
|
] }),
|
|
4892
|
-
t && /* @__PURE__ */ n.jsx("div", { className:
|
|
4893
|
-
|
|
4892
|
+
t && /* @__PURE__ */ n.jsx("div", { className: ge.mb, children: /* @__PURE__ */ n.jsx(
|
|
4893
|
+
"button",
|
|
4894
|
+
{
|
|
4895
|
+
onClick: () => {
|
|
4896
|
+
t.page && _e.setPage(t.page), t.callback && t.callback();
|
|
4897
|
+
},
|
|
4898
|
+
children: t.text
|
|
4899
|
+
}
|
|
4900
|
+
) }),
|
|
4901
|
+
c ? /* @__PURE__ */ n.jsxs("div", { className: ge.tm, children: [
|
|
4894
4902
|
/* @__PURE__ */ n.jsxs("ul", { children: [
|
|
4895
4903
|
/* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { onClick: x, children: "Authorization" }) }),
|
|
4896
|
-
/* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { onClick: () =>
|
|
4904
|
+
/* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { onClick: () => _e.setPage("Add"), children: "Add Page" }) })
|
|
4897
4905
|
] }),
|
|
4898
4906
|
/* @__PURE__ */ n.jsxs("ul", { children: [
|
|
4899
4907
|
/* @__PURE__ */ n.jsxs("li", { children: [
|
|
@@ -4925,20 +4933,20 @@ S.Init = ({ dev: e }) => {
|
|
|
4925
4933
|
/* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { onClick: () => d(!c), children: "Closed" }) })
|
|
4926
4934
|
] })
|
|
4927
4935
|
] }) : "",
|
|
4928
|
-
_ ? /* @__PURE__ */ n.jsx(
|
|
4936
|
+
_ ? /* @__PURE__ */ n.jsx(io, { setAuthorization: u }) : ""
|
|
4929
4937
|
] });
|
|
4930
4938
|
} else
|
|
4931
4939
|
return /* @__PURE__ */ n.jsx(n.Fragment, {});
|
|
4932
4940
|
};
|
|
4933
|
-
const
|
|
4934
|
-
let t = {}, a = (
|
|
4935
|
-
t =
|
|
4936
|
-
}, r = (
|
|
4941
|
+
const io = ({ setAuthorization: e }) => {
|
|
4942
|
+
let t = {}, a = (i) => {
|
|
4943
|
+
t = i.value;
|
|
4944
|
+
}, r = (i) => {
|
|
4937
4945
|
localStorage.setItem("auth", t);
|
|
4938
4946
|
};
|
|
4939
|
-
return /* @__PURE__ */ n.jsx("div", { className:
|
|
4947
|
+
return /* @__PURE__ */ n.jsx("div", { className: ge.ta, children: /* @__PURE__ */ n.jsxs("div", { className: "--body", children: [
|
|
4940
4948
|
/* @__PURE__ */ n.jsx("fieldset", { children: /* @__PURE__ */ n.jsx(
|
|
4941
|
-
|
|
4949
|
+
Xi.Notes,
|
|
4942
4950
|
{
|
|
4943
4951
|
label: "Data JSON",
|
|
4944
4952
|
name: "description",
|
|
@@ -4951,24 +4959,24 @@ const ss = ({ setAuthorization: e }) => {
|
|
|
4951
4959
|
}, dl = ({ children: e, config: t }) => (window.location.pathname === "/clear" && (window.history.pushState({}, "", "/"), X()), N.New(t.crypto), t.defaultModule && ha(t.defaultModule), pa(
|
|
4952
4960
|
/* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
4953
4961
|
/* @__PURE__ */ n.jsx(S.Init, { dev: t.dev }),
|
|
4954
|
-
/* @__PURE__ */ n.jsx(
|
|
4962
|
+
/* @__PURE__ */ n.jsx(ui, { config: t.modal }),
|
|
4955
4963
|
/* @__PURE__ */ n.jsx(Cr, {}),
|
|
4956
4964
|
/* @__PURE__ */ n.jsx(Nr, {}),
|
|
4957
|
-
/* @__PURE__ */ n.jsx(
|
|
4965
|
+
/* @__PURE__ */ n.jsx(wi, {}),
|
|
4958
4966
|
e
|
|
4959
4967
|
] })
|
|
4960
|
-
)),
|
|
4961
|
-
|
|
4968
|
+
)), oo = ({ list: e, onClick: t, active: a, size: r, view: i }) => /* @__PURE__ */ n.jsx("nav", { children: /* @__PURE__ */ n.jsx("ul", { className: [r, i].join(" "), children: e.map((o) => /* @__PURE__ */ n.jsx(
|
|
4969
|
+
so,
|
|
4962
4970
|
{
|
|
4963
4971
|
onClick: t,
|
|
4964
4972
|
active: a,
|
|
4965
|
-
label:
|
|
4966
|
-
link:
|
|
4973
|
+
label: o.label,
|
|
4974
|
+
link: o.link
|
|
4967
4975
|
},
|
|
4968
|
-
|
|
4969
|
-
)) }) }),
|
|
4970
|
-
|
|
4971
|
-
const
|
|
4976
|
+
o.link
|
|
4977
|
+
)) }) }), so = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
|
|
4978
|
+
oo.defaultProps = { size: "M", view: "H" };
|
|
4979
|
+
const lo = ({
|
|
4972
4980
|
title: e = "",
|
|
4973
4981
|
button: t,
|
|
4974
4982
|
description: a = "",
|
|
@@ -4988,9 +4996,9 @@ const cs = ({
|
|
|
4988
4996
|
] }),
|
|
4989
4997
|
/* @__PURE__ */ n.jsx("ul", { children: r }),
|
|
4990
4998
|
a && /* @__PURE__ */ n.jsx("article", { children: a })
|
|
4991
|
-
] }),
|
|
4992
|
-
setting:
|
|
4993
|
-
},
|
|
4999
|
+
] }), co = "_setting_dva4m_2", _o = {
|
|
5000
|
+
setting: co
|
|
5001
|
+
}, uo = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: _o.setting, children: e }), fo = ({ label: e, children: t }) => {
|
|
4994
5002
|
let [a, r] = b.useState(!1);
|
|
4995
5003
|
return /* @__PURE__ */ n.jsxs("li", { "data-item": "accordion", children: [
|
|
4996
5004
|
/* @__PURE__ */ n.jsxs("dl", { onClick: () => r(!a), children: [
|
|
@@ -4999,10 +5007,10 @@ const cs = ({
|
|
|
4999
5007
|
] }),
|
|
5000
5008
|
a && /* @__PURE__ */ n.jsx("div", { children: t })
|
|
5001
5009
|
] });
|
|
5002
|
-
},
|
|
5010
|
+
}, mo = ({ label: e, onClick: t, button: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
|
|
5003
5011
|
/* @__PURE__ */ n.jsx("dt", { children: e }),
|
|
5004
5012
|
/* @__PURE__ */ n.jsx("dd", { role: "button", onClick: () => t(), children: a })
|
|
5005
|
-
] }) }),
|
|
5013
|
+
] }) }), ho = ({ active: e, onClick: t }) => (e = typeof e == "number" ? !!e : e, /* @__PURE__ */ n.jsx(
|
|
5006
5014
|
"div",
|
|
5007
5015
|
{
|
|
5008
5016
|
role: "switch",
|
|
@@ -5011,48 +5019,48 @@ const cs = ({
|
|
|
5011
5019
|
},
|
|
5012
5020
|
"aria-checked": e ? "true" : "false"
|
|
5013
5021
|
}
|
|
5014
|
-
)),
|
|
5022
|
+
)), go = { Switch: ho }, po = ({ label: e, onClick: t, active: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
|
|
5015
5023
|
/* @__PURE__ */ n.jsx("dt", { children: e }),
|
|
5016
|
-
/* @__PURE__ */ n.jsx("dd", { children: /* @__PURE__ */ n.jsx(
|
|
5017
|
-
] }) }),
|
|
5024
|
+
/* @__PURE__ */ n.jsx("dd", { children: /* @__PURE__ */ n.jsx(go.Switch, { onClick: t, active: a }) })
|
|
5025
|
+
] }) }), xo = ({ label: e, active: t, options: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
|
|
5018
5026
|
/* @__PURE__ */ n.jsx("dt", { children: e }),
|
|
5019
5027
|
/* @__PURE__ */ n.jsx("dd", { role: "info", children: t })
|
|
5020
|
-
] }) }),
|
|
5028
|
+
] }) }), vo = ({ label: e, info: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
|
|
5021
5029
|
/* @__PURE__ */ n.jsx("dt", { children: e }),
|
|
5022
5030
|
/* @__PURE__ */ n.jsx("dd", { role: "info", children: t })
|
|
5023
|
-
] }) }),
|
|
5031
|
+
] }) }), ko = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
|
|
5024
5032
|
/* @__PURE__ */ n.jsx("dt", { children: e }),
|
|
5025
5033
|
/* @__PURE__ */ n.jsx("dd", { children: t })
|
|
5026
|
-
] }) }),
|
|
5034
|
+
] }) }), bo = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
|
|
5027
5035
|
/* @__PURE__ */ n.jsx("dt", { children: e }),
|
|
5028
5036
|
/* @__PURE__ */ n.jsx("dd", { children: t })
|
|
5029
|
-
] }) }),
|
|
5030
|
-
function Nn({ list: e, onClick: t, active: a, size: r, view:
|
|
5031
|
-
return /* @__PURE__ */ n.jsx("nav", { children: /* @__PURE__ */ n.jsx("ul", { className: [r,
|
|
5032
|
-
|
|
5037
|
+
] }) }), Co = { Accordion: fo, Button: mo, Switch: po, Info: vo, Select: xo, Component: ko, Node: bo };
|
|
5038
|
+
function Nn({ list: e, onClick: t, active: a, size: r, view: i }) {
|
|
5039
|
+
return /* @__PURE__ */ n.jsx("nav", { children: /* @__PURE__ */ n.jsx("ul", { className: [r, i].join(" "), children: e.map((o) => /* @__PURE__ */ n.jsx(
|
|
5040
|
+
jo,
|
|
5033
5041
|
{
|
|
5034
5042
|
onClick: t,
|
|
5035
5043
|
active: a,
|
|
5036
|
-
label:
|
|
5037
|
-
link:
|
|
5044
|
+
label: o.label,
|
|
5045
|
+
link: o.link
|
|
5038
5046
|
},
|
|
5039
|
-
|
|
5047
|
+
o.link
|
|
5040
5048
|
)) }) });
|
|
5041
5049
|
}
|
|
5042
|
-
const
|
|
5050
|
+
const jo = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
|
|
5043
5051
|
Nn.defaultProps = { size: "M", view: "H" };
|
|
5044
|
-
const ul = { Section:
|
|
5052
|
+
const ul = { Section: lo, Main: uo, Item: Co, Tabs: Nn };
|
|
5045
5053
|
function Dn({ text: e, type: t, button: a }) {
|
|
5046
|
-
let [r,
|
|
5054
|
+
let [r, i] = b.useState(!1), o = { active: t };
|
|
5047
5055
|
const l = () => {
|
|
5048
5056
|
if (a) {
|
|
5049
5057
|
if (a.onClick)
|
|
5050
5058
|
return a.onClick({});
|
|
5051
5059
|
if (a.onSend)
|
|
5052
|
-
return r ? void 0 : (
|
|
5060
|
+
return r ? void 0 : (i(!0), a.onSend(i));
|
|
5053
5061
|
}
|
|
5054
5062
|
};
|
|
5055
|
-
return /* @__PURE__ */ n.jsxs("div", { className: dt.al, ...
|
|
5063
|
+
return /* @__PURE__ */ n.jsxs("div", { className: dt.al, ...o, children: [
|
|
5056
5064
|
/* @__PURE__ */ n.jsx(
|
|
5057
5065
|
"svg",
|
|
5058
5066
|
{
|
|
@@ -5074,22 +5082,22 @@ function Dn({ text: e, type: t, button: a }) {
|
|
|
5074
5082
|
a && /* @__PURE__ */ n.jsx("button", { onClick: l, children: a.label })
|
|
5075
5083
|
] });
|
|
5076
5084
|
}
|
|
5077
|
-
const
|
|
5078
|
-
h:
|
|
5079
|
-
g:
|
|
5080
|
-
hr:
|
|
5081
|
-
hl:
|
|
5082
|
-
t:
|
|
5083
|
-
s:
|
|
5084
|
-
u:
|
|
5085
|
-
o:
|
|
5086
|
-
l:
|
|
5087
|
-
hh:
|
|
5088
|
-
c:
|
|
5089
|
-
loadingB:
|
|
5090
|
-
m:
|
|
5091
|
-
ul: $
|
|
5092
|
-
f:
|
|
5085
|
+
const yo = "_h_1usnu_1", wo = "_g_1usnu_11", So = "_hr_1usnu_16", Eo = "_hl_1usnu_28", Bo = "_t_1usnu_40", To = "_s_1usnu_60", Ro = "_u_1usnu_69", Mo = "_o_1usnu_76", Io = "_l_1usnu_105", No = "_hh_1usnu_115", Do = "_c_1usnu_128", Po = "_loadingB_1usnu_1", Fo = "_m_1usnu_180", $o = "_ul_1usnu_196", Lo = "_f_1usnu_226", J = {
|
|
5086
|
+
h: yo,
|
|
5087
|
+
g: wo,
|
|
5088
|
+
hr: So,
|
|
5089
|
+
hl: Eo,
|
|
5090
|
+
t: Bo,
|
|
5091
|
+
s: To,
|
|
5092
|
+
u: Ro,
|
|
5093
|
+
o: Mo,
|
|
5094
|
+
l: Io,
|
|
5095
|
+
hh: No,
|
|
5096
|
+
c: Do,
|
|
5097
|
+
loadingB: Po,
|
|
5098
|
+
m: Fo,
|
|
5099
|
+
ul: $o,
|
|
5100
|
+
f: Lo
|
|
5093
5101
|
}, qt = ({ title: e, left: t, right: a, children: r }) => /* @__PURE__ */ n.jsxs("div", { className: J.h, children: [
|
|
5094
5102
|
/* @__PURE__ */ n.jsx("div", { className: J.t, children: e }),
|
|
5095
5103
|
t && /* @__PURE__ */ n.jsx("div", { className: J.hl, children: t }),
|
|
@@ -5102,27 +5110,27 @@ const ys = "_h_1usnu_1", ws = "_g_1usnu_11", Ss = "_hr_1usnu_16", Es = "_hl_1usn
|
|
|
5102
5110
|
function en({ children: e }) {
|
|
5103
5111
|
return /* @__PURE__ */ n.jsx("div", { className: J.g, children: e });
|
|
5104
5112
|
}
|
|
5105
|
-
const
|
|
5113
|
+
const Ao = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("div", { className: [J.o, t].join(" "), children: [
|
|
5106
5114
|
a && /* @__PURE__ */ n.jsx("div", { className: J.hh, children: a }),
|
|
5107
5115
|
e
|
|
5108
|
-
] }),
|
|
5116
|
+
] }), Oo = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: J.u, children: e }), Go = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: J.c, children: e }), zo = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: J.m, children: e }), fl = {
|
|
5109
5117
|
Header: qt,
|
|
5110
5118
|
Section: Xt,
|
|
5111
5119
|
Group: en,
|
|
5112
5120
|
Form: Qt,
|
|
5113
5121
|
List: Jt,
|
|
5114
5122
|
A: Dn,
|
|
5115
|
-
U:
|
|
5123
|
+
U: Oo,
|
|
5116
5124
|
G: en,
|
|
5117
|
-
C:
|
|
5125
|
+
C: Go,
|
|
5118
5126
|
L: Jt,
|
|
5119
|
-
O:
|
|
5127
|
+
O: Ao,
|
|
5120
5128
|
S: Xt,
|
|
5121
5129
|
H: qt,
|
|
5122
|
-
M:
|
|
5130
|
+
M: zo,
|
|
5123
5131
|
F: Qt
|
|
5124
5132
|
}, ml = { Send: Pr, Line: Dn };
|
|
5125
|
-
function
|
|
5133
|
+
function Wo() {
|
|
5126
5134
|
return /* @__PURE__ */ n.jsx("svg", { viewBox: "0 0 462.86 359.96", children: /* @__PURE__ */ n.jsx(
|
|
5127
5135
|
"path",
|
|
5128
5136
|
{
|
|
@@ -5131,15 +5139,15 @@ function Ws() {
|
|
|
5131
5139
|
}
|
|
5132
5140
|
) });
|
|
5133
5141
|
}
|
|
5134
|
-
const
|
|
5135
|
-
function
|
|
5136
|
-
|
|
5142
|
+
const Ko = {};
|
|
5143
|
+
function Zo(e) {
|
|
5144
|
+
Ko.add(e);
|
|
5137
5145
|
}
|
|
5138
|
-
function
|
|
5146
|
+
function Uo({ color: e, size: t, name: a }) {
|
|
5139
5147
|
return /* @__PURE__ */ n.jsx("svg", { width: t, height: t, color: e, children: /* @__PURE__ */ n.jsx("use", { href: `#${a}` }) });
|
|
5140
5148
|
}
|
|
5141
|
-
const hl = { Logo:
|
|
5142
|
-
function
|
|
5149
|
+
const hl = { Logo: Wo, Sprite: Zo, Symbol: Uo };
|
|
5150
|
+
function Ho() {
|
|
5143
5151
|
return /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
|
|
5144
5152
|
/* @__PURE__ */ n.jsx(
|
|
5145
5153
|
"path",
|
|
@@ -5174,7 +5182,7 @@ function Hs() {
|
|
|
5174
5182
|
)
|
|
5175
5183
|
] });
|
|
5176
5184
|
}
|
|
5177
|
-
function
|
|
5185
|
+
function Yo() {
|
|
5178
5186
|
return /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
|
|
5179
5187
|
/* @__PURE__ */ n.jsx(
|
|
5180
5188
|
"path",
|
|
@@ -5203,7 +5211,7 @@ function Ys() {
|
|
|
5203
5211
|
)
|
|
5204
5212
|
] });
|
|
5205
5213
|
}
|
|
5206
|
-
function
|
|
5214
|
+
function Vo() {
|
|
5207
5215
|
return /* @__PURE__ */ n.jsx("svg", { viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ n.jsx(
|
|
5208
5216
|
"path",
|
|
5209
5217
|
{
|
|
@@ -5216,11 +5224,11 @@ function Vs() {
|
|
|
5216
5224
|
}
|
|
5217
5225
|
) });
|
|
5218
5226
|
}
|
|
5219
|
-
const
|
|
5220
|
-
n:
|
|
5227
|
+
const qo = "_n_euuvm_1", Jo = {
|
|
5228
|
+
n: qo
|
|
5221
5229
|
};
|
|
5222
5230
|
let Fe = {}, Ie = [];
|
|
5223
|
-
const
|
|
5231
|
+
const Xo = (e, t) => {
|
|
5224
5232
|
switch (t.type) {
|
|
5225
5233
|
case "open":
|
|
5226
5234
|
return {
|
|
@@ -5245,7 +5253,7 @@ const Xs = (e, t) => {
|
|
|
5245
5253
|
active: t.data.length !== 0
|
|
5246
5254
|
};
|
|
5247
5255
|
case "hide":
|
|
5248
|
-
let a = e.news.filter((
|
|
5256
|
+
let a = e.news.filter((i) => i.id !== t.id);
|
|
5249
5257
|
return {
|
|
5250
5258
|
...e,
|
|
5251
5259
|
news: a,
|
|
@@ -5259,8 +5267,8 @@ const Xs = (e, t) => {
|
|
|
5259
5267
|
case "take":
|
|
5260
5268
|
let r = { [t.list]: t.take };
|
|
5261
5269
|
r = { ...e.take, ...r }, e.active = !1;
|
|
5262
|
-
for (let
|
|
5263
|
-
r[
|
|
5270
|
+
for (let i in r)
|
|
5271
|
+
r[i] !== "999" && (e.active = !0);
|
|
5264
5272
|
return Fe.get(r, e.active), {
|
|
5265
5273
|
...e,
|
|
5266
5274
|
take: r,
|
|
@@ -5272,27 +5280,27 @@ const Xs = (e, t) => {
|
|
|
5272
5280
|
throw new Error();
|
|
5273
5281
|
}
|
|
5274
5282
|
};
|
|
5275
|
-
function
|
|
5283
|
+
function Qo(e) {
|
|
5276
5284
|
Fe.fn({ action: "add", data: e });
|
|
5277
5285
|
}
|
|
5278
|
-
function
|
|
5286
|
+
function es(e) {
|
|
5279
5287
|
Fe.fn({ action: "add", data: e });
|
|
5280
5288
|
}
|
|
5281
|
-
function
|
|
5289
|
+
function ts(e) {
|
|
5282
5290
|
Fe.fn({ action: "new", data: e });
|
|
5283
5291
|
}
|
|
5284
|
-
function
|
|
5292
|
+
function ns(e) {
|
|
5285
5293
|
Fe.fn = e;
|
|
5286
5294
|
}
|
|
5287
|
-
function
|
|
5288
|
-
const [e, t] = b.useReducer(
|
|
5295
|
+
function as() {
|
|
5296
|
+
const [e, t] = b.useReducer(Xo, {
|
|
5289
5297
|
open: !1,
|
|
5290
5298
|
active: !1,
|
|
5291
5299
|
news: [],
|
|
5292
5300
|
take: {}
|
|
5293
5301
|
});
|
|
5294
5302
|
mt.useListener("bell", async (r) => {
|
|
5295
|
-
}),
|
|
5303
|
+
}), ns(async (r) => {
|
|
5296
5304
|
switch (r.action) {
|
|
5297
5305
|
case "add":
|
|
5298
5306
|
Ie.push(r.data);
|
|
@@ -5306,36 +5314,36 @@ function ai() {
|
|
|
5306
5314
|
query: "x0054",
|
|
5307
5315
|
array: ["M01", "M02"]
|
|
5308
5316
|
});
|
|
5309
|
-
for (let
|
|
5310
|
-
switch (
|
|
5317
|
+
for (let i in r)
|
|
5318
|
+
switch (i) {
|
|
5311
5319
|
case "news":
|
|
5312
5320
|
t({ type: "news", data: r.news });
|
|
5313
5321
|
break;
|
|
5314
5322
|
case "M01":
|
|
5315
|
-
r[
|
|
5323
|
+
r[i].forEach((o) => {
|
|
5316
5324
|
Ie.push({
|
|
5317
5325
|
module: "M01",
|
|
5318
5326
|
type: 1,
|
|
5319
|
-
id:
|
|
5320
|
-
datetime: new Date(
|
|
5321
|
-
txt:
|
|
5327
|
+
id: o.id,
|
|
5328
|
+
datetime: new Date(o.tDate).getTime(),
|
|
5329
|
+
txt: o.p01
|
|
5322
5330
|
});
|
|
5323
5331
|
});
|
|
5324
5332
|
break;
|
|
5325
5333
|
case "M02":
|
|
5326
|
-
r[
|
|
5334
|
+
r[i].forEach((o) => {
|
|
5327
5335
|
Ie.push({
|
|
5328
5336
|
module: "M02",
|
|
5329
5337
|
type: 117,
|
|
5330
|
-
id:
|
|
5331
|
-
datetime: new Date(
|
|
5332
|
-
txt:
|
|
5338
|
+
id: o.id,
|
|
5339
|
+
datetime: new Date(o.tDate).getTime(),
|
|
5340
|
+
txt: o.p01
|
|
5333
5341
|
});
|
|
5334
5342
|
});
|
|
5335
5343
|
break;
|
|
5336
5344
|
}
|
|
5337
5345
|
})(), setInterval(() => {
|
|
5338
|
-
Ie.forEach((r,
|
|
5346
|
+
Ie.forEach((r, i) => {
|
|
5339
5347
|
t({
|
|
5340
5348
|
type: "add",
|
|
5341
5349
|
data: {
|
|
@@ -5345,7 +5353,7 @@ function ai() {
|
|
|
5345
5353
|
datetime: r.datetime,
|
|
5346
5354
|
txt: r.title
|
|
5347
5355
|
}
|
|
5348
|
-
}), r.datetime < (/* @__PURE__ */ new Date()).getTime() && Ie.splice(
|
|
5356
|
+
}), r.datetime < (/* @__PURE__ */ new Date()).getTime() && Ie.splice(i, 1);
|
|
5349
5357
|
});
|
|
5350
5358
|
}, 6e4);
|
|
5351
5359
|
}, []);
|
|
@@ -5356,11 +5364,11 @@ function ai() {
|
|
|
5356
5364
|
/* @__PURE__ */ n.jsx(
|
|
5357
5365
|
"div",
|
|
5358
5366
|
{
|
|
5359
|
-
className:
|
|
5367
|
+
className: Jo.n,
|
|
5360
5368
|
onClick: () => {
|
|
5361
5369
|
t({ type: "open", open: !0 });
|
|
5362
5370
|
},
|
|
5363
|
-
children: e.active ? /* @__PURE__ */ n.jsx(
|
|
5371
|
+
children: e.active ? /* @__PURE__ */ n.jsx(Yo, {}) : /* @__PURE__ */ n.jsx(Ho, {})
|
|
5364
5372
|
}
|
|
5365
5373
|
),
|
|
5366
5374
|
e.open ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
@@ -5374,20 +5382,20 @@ function ai() {
|
|
|
5374
5382
|
}
|
|
5375
5383
|
),
|
|
5376
5384
|
/* @__PURE__ */ n.jsxs("div", { className: "notify-m", children: [
|
|
5377
|
-
/* @__PURE__ */ n.jsx("div", { className: "notify-l", children: e.news.map((r,
|
|
5378
|
-
|
|
5385
|
+
/* @__PURE__ */ n.jsx("div", { className: "notify-l", children: e.news.map((r, i) => /* @__PURE__ */ n.jsx(
|
|
5386
|
+
rs,
|
|
5379
5387
|
{
|
|
5380
5388
|
data: r,
|
|
5381
5389
|
dispatch: t
|
|
5382
5390
|
},
|
|
5383
|
-
|
|
5391
|
+
i
|
|
5384
5392
|
)) }),
|
|
5385
5393
|
/* @__PURE__ */ n.jsx("div", { className: "notify-b", onClick: a, children: "История" })
|
|
5386
5394
|
] })
|
|
5387
5395
|
] }) : ""
|
|
5388
5396
|
] });
|
|
5389
5397
|
}
|
|
5390
|
-
const
|
|
5398
|
+
const rs = ({ data: e, dispatch: t }) => {
|
|
5391
5399
|
let a = async (r) => {
|
|
5392
5400
|
t({ type: "hide", id: r.id }), await mt.Send({
|
|
5393
5401
|
type: "module",
|
|
@@ -5404,19 +5412,19 @@ const ri = ({ data: e, dispatch: t }) => {
|
|
|
5404
5412
|
] }),
|
|
5405
5413
|
/* @__PURE__ */ n.jsx("div", { className: "--hide", "data-icon": "F038", onClick: () => a(e), children: " " })
|
|
5406
5414
|
] });
|
|
5407
|
-
},
|
|
5408
|
-
function
|
|
5415
|
+
}, is = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";
|
|
5416
|
+
function os(e) {
|
|
5409
5417
|
return new SharedWorker(
|
|
5410
|
-
"data:text/javascript;base64," +
|
|
5418
|
+
"data:text/javascript;base64," + is,
|
|
5411
5419
|
{
|
|
5412
5420
|
name: e == null ? void 0 : e.name
|
|
5413
5421
|
}
|
|
5414
5422
|
);
|
|
5415
5423
|
}
|
|
5416
|
-
function
|
|
5424
|
+
function ss(e) {
|
|
5417
5425
|
let t = {}, a = {};
|
|
5418
|
-
e.data.forEach((
|
|
5419
|
-
t[
|
|
5426
|
+
e.data.forEach((i) => {
|
|
5427
|
+
t[i.id] = { s: i.v, n: i.a }, a[i.id] = i;
|
|
5420
5428
|
});
|
|
5421
5429
|
let r = { ...ke(), 901: t };
|
|
5422
5430
|
cn(a), De(r);
|
|
@@ -5431,10 +5439,10 @@ let ae = {}, H = {}, We = [
|
|
|
5431
5439
|
"info",
|
|
5432
5440
|
"job"
|
|
5433
5441
|
];
|
|
5434
|
-
function
|
|
5442
|
+
function ls() {
|
|
5435
5443
|
const [e, t] = b.useState(!1), [a, r] = b.useState(!1);
|
|
5436
|
-
function o
|
|
5437
|
-
const l = new
|
|
5444
|
+
function i(o) {
|
|
5445
|
+
const l = new os();
|
|
5438
5446
|
ae.laodData = (c) => {
|
|
5439
5447
|
let d = We.indexOf(c);
|
|
5440
5448
|
d >= 0 && We.splice(d, 1), We.length === 0 && t(!0);
|
|
@@ -5444,22 +5452,22 @@ function li() {
|
|
|
5444
5452
|
let d = c.data;
|
|
5445
5453
|
d.type === "error" && r(!0), d.type === "true" && t(!0), d.type === "closed" && l.port.postMessage({
|
|
5446
5454
|
type: "connect",
|
|
5447
|
-
ukey:
|
|
5455
|
+
ukey: o,
|
|
5448
5456
|
lk: lt()
|
|
5449
5457
|
}), We.length !== 0 && ae.laodData(d.type), H[d.type] && H[d.type](d);
|
|
5450
5458
|
}, l.port.postMessage({
|
|
5451
5459
|
type: "connect",
|
|
5452
|
-
ukey:
|
|
5460
|
+
ukey: o,
|
|
5453
5461
|
lk: lt()
|
|
5454
5462
|
});
|
|
5455
5463
|
}
|
|
5456
|
-
return [
|
|
5464
|
+
return [i, e, a];
|
|
5457
5465
|
}
|
|
5458
5466
|
H.module = (e) => {
|
|
5459
5467
|
ae[e.listen] !== void 0 && (ae[e.listen](e), delete ae[e.listen]);
|
|
5460
5468
|
};
|
|
5461
|
-
H.bell =
|
|
5462
|
-
H.company =
|
|
5469
|
+
H.bell = ts;
|
|
5470
|
+
H.company = ss;
|
|
5463
5471
|
H.info = (e) => {
|
|
5464
5472
|
let t = {};
|
|
5465
5473
|
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"), _n(t), sn(e.data.menu);
|
|
@@ -5474,20 +5482,20 @@ H.offline = async (e) => {
|
|
|
5474
5482
|
H.chat = (e) => {
|
|
5475
5483
|
switch (e.data.action) {
|
|
5476
5484
|
case "new_message":
|
|
5477
|
-
|
|
5485
|
+
_e.getModule();
|
|
5478
5486
|
break;
|
|
5479
5487
|
case "view_message":
|
|
5480
|
-
|
|
5488
|
+
_e.getModule();
|
|
5481
5489
|
break;
|
|
5482
5490
|
case "write_message":
|
|
5483
|
-
|
|
5491
|
+
_e.getModule();
|
|
5484
5492
|
break;
|
|
5485
5493
|
}
|
|
5486
5494
|
};
|
|
5487
5495
|
H.users = (e) => {
|
|
5488
5496
|
let t = {};
|
|
5489
5497
|
e.data.forEach((r) => {
|
|
5490
|
-
let
|
|
5498
|
+
let i = r.p01 + " " + r.p02 + " " + r.p03, o = r.p01 + " " + r.p02.substring(0, 1) + "." + r.p03.substring(0, 1) + ".", l = r.p01.substring(0, 1) + "" + r.p02.substring(0, 1) + r.p03.substring(0, 1);
|
|
5491
5499
|
t[r.id] = {
|
|
5492
5500
|
id: r.id,
|
|
5493
5501
|
admin: r.m.includes("99"),
|
|
@@ -5496,8 +5504,8 @@ H.users = (e) => {
|
|
|
5496
5504
|
login: "",
|
|
5497
5505
|
online: { time: r.o, status: 0 },
|
|
5498
5506
|
sts: r.s,
|
|
5499
|
-
nameFull:
|
|
5500
|
-
name:
|
|
5507
|
+
nameFull: i,
|
|
5508
|
+
name: o,
|
|
5501
5509
|
number: l
|
|
5502
5510
|
};
|
|
5503
5511
|
});
|
|
@@ -5530,12 +5538,12 @@ H.setting = (e) => {
|
|
|
5530
5538
|
};
|
|
5531
5539
|
H.app = () => {
|
|
5532
5540
|
};
|
|
5533
|
-
const
|
|
5541
|
+
const cs = (e, t) => {
|
|
5534
5542
|
ae[e] = t;
|
|
5535
|
-
},
|
|
5543
|
+
}, _s = (e, t) => {
|
|
5536
5544
|
ae[e](t);
|
|
5537
5545
|
};
|
|
5538
|
-
function
|
|
5546
|
+
function ds(e) {
|
|
5539
5547
|
let t = "_" + String(Math.random()).substring(2, 7);
|
|
5540
5548
|
return new Promise((a) => {
|
|
5541
5549
|
ae[t] = (r) => {
|
|
@@ -5543,54 +5551,54 @@ function di(e) {
|
|
|
5543
5551
|
}, e = { ...e, listen: t }, e.type = "modules", ae.send(e);
|
|
5544
5552
|
});
|
|
5545
5553
|
}
|
|
5546
|
-
const mt = { useConnect:
|
|
5547
|
-
class
|
|
5554
|
+
const mt = { useConnect: ls, useListener: cs, setListener: _s, Send: ds };
|
|
5555
|
+
class us {
|
|
5548
5556
|
constructor(t = "el", a = "db") {
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
this.storeName = a, this._dbp = new Promise((r,
|
|
5552
|
-
const
|
|
5553
|
-
|
|
5554
|
-
|
|
5557
|
+
it(this, "storeName");
|
|
5558
|
+
it(this, "_dbp");
|
|
5559
|
+
this.storeName = a, this._dbp = new Promise((r, i) => {
|
|
5560
|
+
const o = indexedDB.open(t, 1);
|
|
5561
|
+
o.onerror = () => i(o.error), o.onsuccess = () => r(o.result), o.onupgradeneeded = () => {
|
|
5562
|
+
o.result.createObjectStore(a);
|
|
5555
5563
|
};
|
|
5556
5564
|
});
|
|
5557
5565
|
}
|
|
5558
5566
|
_withIDBStore(t, a) {
|
|
5559
5567
|
return this._dbp.then(
|
|
5560
|
-
(r) => new Promise((
|
|
5568
|
+
(r) => new Promise((i, o) => {
|
|
5561
5569
|
const l = r.transaction(this.storeName, t);
|
|
5562
|
-
l.oncomplete = () =>
|
|
5570
|
+
l.oncomplete = () => i(), l.onabort = l.onerror = () => o(l.error), a(l.objectStore(this.storeName));
|
|
5563
5571
|
})
|
|
5564
5572
|
);
|
|
5565
5573
|
}
|
|
5566
5574
|
}
|
|
5567
|
-
let
|
|
5568
|
-
const Se = () => (
|
|
5575
|
+
let st, A = {};
|
|
5576
|
+
const Se = () => (st || (st = new us()), st), fe = (e, t, a = Se()) => a._withIDBStore("readwrite", (r) => {
|
|
5569
5577
|
A[e] = t, r.put(N.enCode(t), e);
|
|
5570
|
-
}),
|
|
5571
|
-
let
|
|
5572
|
-
t._withIDBStore("readonly", (
|
|
5573
|
-
|
|
5578
|
+
}), ie = (e, t = Se()) => A[e] === void 0 ? new Promise((a, r) => {
|
|
5579
|
+
let i;
|
|
5580
|
+
t._withIDBStore("readonly", (o) => {
|
|
5581
|
+
i = o.get(e);
|
|
5574
5582
|
}).then(() => {
|
|
5575
|
-
if (
|
|
5576
|
-
let
|
|
5577
|
-
A[e] =
|
|
5583
|
+
if (i.result !== void 0) {
|
|
5584
|
+
let o = N.deCode(i.result);
|
|
5585
|
+
A[e] = o, a(o);
|
|
5578
5586
|
} else
|
|
5579
5587
|
a({});
|
|
5580
5588
|
});
|
|
5581
|
-
}) : A[e],
|
|
5589
|
+
}) : A[e], fs = (e, t = Se()) => t._withIDBStore("readwrite", (a) => {
|
|
5582
5590
|
a.delete(e);
|
|
5583
5591
|
}), ht = (e = Se()) => e._withIDBStore("readwrite", (t) => {
|
|
5584
5592
|
t.clear();
|
|
5585
|
-
}),
|
|
5593
|
+
}), ms = (e = Se()) => {
|
|
5586
5594
|
const t = [];
|
|
5587
5595
|
return e._withIDBStore("readonly", (a) => {
|
|
5588
5596
|
(a.openKeyCursor || a.openCursor).call(a).onsuccess = function() {
|
|
5589
5597
|
this.result && (t.push(this.result.key), this.result.continue());
|
|
5590
5598
|
};
|
|
5591
5599
|
}).then(() => t);
|
|
5592
|
-
},
|
|
5593
|
-
let
|
|
5600
|
+
}, hs = (e, t, a = [], r = {}) => {
|
|
5601
|
+
let i = a.length !== 0, o = [], l = r.sort, c = Object.keys(r).length !== 0, d = Object.keys(r), _ = Object.keys(e), u = [], f = (m) => {
|
|
5594
5602
|
let g = "";
|
|
5595
5603
|
if (a.forEach((v) => {
|
|
5596
5604
|
g += t[m][v];
|
|
@@ -5601,19 +5609,19 @@ const Se = () => (it || (it = new ui()), it), ue = (e, t, a = Se()) => a._withID
|
|
|
5601
5609
|
});
|
|
5602
5610
|
for (let p in l)
|
|
5603
5611
|
t[m][l[p]] === void 0 && (ht(), location.reload()), p === "s1" && (v[p] = new Date(t[m][l[p]]).getTime()), p === "s2" && (v[p] = t[m][l[p]]), p === "s3" && (v[p] = t[m][l[p]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
|
|
5604
|
-
|
|
5612
|
+
o.push({ id: m, text: g, ...v });
|
|
5605
5613
|
} else
|
|
5606
|
-
|
|
5614
|
+
o.push({ id: m, text: g });
|
|
5607
5615
|
}, x = (m) => {
|
|
5608
5616
|
};
|
|
5609
5617
|
return _.forEach((m) => {
|
|
5610
5618
|
u.push(t[m]);
|
|
5611
5619
|
}), u.forEach((m) => {
|
|
5612
|
-
m === void 0 ? (ht(), location.reload()) : (
|
|
5613
|
-
}), { list: u, search:
|
|
5614
|
-
},
|
|
5620
|
+
m === void 0 ? (ht(), location.reload()) : (i && f(m.id), c && x(m.id));
|
|
5621
|
+
}), { list: u, search: o, filter: r };
|
|
5622
|
+
}, gs = (e, t, a, r = Se()) => {
|
|
5615
5623
|
if (A[e] === void 0)
|
|
5616
|
-
return new Promise((
|
|
5624
|
+
return new Promise((i, o) => {
|
|
5617
5625
|
let l;
|
|
5618
5626
|
r._withIDBStore("readonly", (c) => {
|
|
5619
5627
|
l = c.get(e);
|
|
@@ -5623,62 +5631,62 @@ const Se = () => (it || (it = new ui()), it), ue = (e, t, a = Se()) => a._withID
|
|
|
5623
5631
|
A[e] = c, A[e][t.id] = {
|
|
5624
5632
|
...A[e][t.id],
|
|
5625
5633
|
...t.data
|
|
5626
|
-
}, r.put(N.enCode(A[e]), e),
|
|
5634
|
+
}, r.put(N.enCode(A[e]), e), i({});
|
|
5627
5635
|
} else
|
|
5628
|
-
|
|
5636
|
+
i({});
|
|
5629
5637
|
});
|
|
5630
5638
|
});
|
|
5631
5639
|
if (A[e][t.id] !== void 0)
|
|
5632
|
-
return A[e][t.id] = { ...A[e][t.id], ...t.data }, a !== void 0 && A[a] !== void 0 ? A[a][t.id] !== void 0 && (A[a][t.id] = t.data.eDate) : A[a] = [], delete A[e][t.id].$_item, delete A[e][t.id].$_send, r._withIDBStore("readwrite", (
|
|
5633
|
-
|
|
5640
|
+
return A[e][t.id] = { ...A[e][t.id], ...t.data }, a !== void 0 && A[a] !== void 0 ? A[a][t.id] !== void 0 && (A[a][t.id] = t.data.eDate) : A[a] = [], delete A[e][t.id].$_item, delete A[e][t.id].$_send, r._withIDBStore("readwrite", (i) => {
|
|
5641
|
+
i.put(N.enCode(A[e]), e), a !== void 0 && i.put(N.enCode(A[a]), a);
|
|
5634
5642
|
});
|
|
5635
|
-
},
|
|
5636
|
-
let
|
|
5637
|
-
|
|
5638
|
-
},
|
|
5639
|
-
let
|
|
5643
|
+
}, ps = async (e, t, a, r) => {
|
|
5644
|
+
let i, o;
|
|
5645
|
+
o = await ie(a), o[e.id] = e, await fe(a, o), i !== null && (i = await ie(t), i[e.id] = e.eDate, await fe(t, i)), r !== void 0 && r({ type: "load", page: i, base: o });
|
|
5646
|
+
}, xs = async (e, t, a, r) => {
|
|
5647
|
+
let i = await ie(t), o = await ie(a);
|
|
5640
5648
|
for (let l in e)
|
|
5641
|
-
|
|
5642
|
-
await
|
|
5643
|
-
},
|
|
5644
|
-
let
|
|
5645
|
-
e.forEach((l) => delete
|
|
5646
|
-
},
|
|
5647
|
-
let r = await
|
|
5648
|
-
e.forEach((
|
|
5649
|
-
},
|
|
5650
|
-
let r = await
|
|
5651
|
-
e.forEach((
|
|
5652
|
-
},
|
|
5653
|
-
let r = await
|
|
5649
|
+
o[l] = e[l], i[l] = e[l].eDate;
|
|
5650
|
+
await fe(t, i), await fe(a, o), r !== void 0 && r({ type: "load", page: i, base: o });
|
|
5651
|
+
}, vs = async (e, t, a, r) => {
|
|
5652
|
+
let i = await ie(t), o = await ie(a);
|
|
5653
|
+
e.forEach((l) => delete i[l]), await fe(t, i), r !== void 0 && r({ type: "load", page: i, base: o });
|
|
5654
|
+
}, ks = async (e, t, a) => {
|
|
5655
|
+
let r = await ie(t);
|
|
5656
|
+
e.forEach((i) => delete r[i]), await fe(t, r);
|
|
5657
|
+
}, bs = async (e, t, a) => {
|
|
5658
|
+
let r = await ie(t);
|
|
5659
|
+
e.forEach((i) => r[i.id] = i.eDate), await fe(t, r);
|
|
5660
|
+
}, Cs = async (e, t, a) => {
|
|
5661
|
+
let r = await ie(t);
|
|
5654
5662
|
if (a !== void 0)
|
|
5655
5663
|
a({ type: "load", base: r });
|
|
5656
5664
|
else
|
|
5657
5665
|
return r[e];
|
|
5658
|
-
},
|
|
5659
|
-
id:
|
|
5660
|
-
get:
|
|
5661
|
-
set:
|
|
5662
|
-
add:
|
|
5663
|
-
del:
|
|
5664
|
-
upd:
|
|
5665
|
-
key:
|
|
5666
|
-
load:
|
|
5667
|
-
split:
|
|
5666
|
+
}, js = (e) => A[e], gl = {
|
|
5667
|
+
id: Cs,
|
|
5668
|
+
get: ie,
|
|
5669
|
+
set: fe,
|
|
5670
|
+
add: ps,
|
|
5671
|
+
del: fs,
|
|
5672
|
+
upd: gs,
|
|
5673
|
+
key: ms,
|
|
5674
|
+
load: js,
|
|
5675
|
+
split: hs,
|
|
5668
5676
|
clear: ht,
|
|
5669
|
-
updAll:
|
|
5670
|
-
delAll:
|
|
5671
|
-
delList:
|
|
5672
|
-
addList:
|
|
5673
|
-
}, pl = { setSetting: Aa, getSetting: Oa },
|
|
5674
|
-
s:
|
|
5675
|
-
loadingB:
|
|
5676
|
-
ul:
|
|
5677
|
+
updAll: xs,
|
|
5678
|
+
delAll: vs,
|
|
5679
|
+
delList: ks,
|
|
5680
|
+
addList: bs
|
|
5681
|
+
}, pl = { setSetting: Aa, getSetting: Oa }, ys = "_s_18bde_1", ws = "_loadingB_18bde_1", Ss = "_ul_18bde_31", Es = {
|
|
5682
|
+
s: ys,
|
|
5683
|
+
loadingB: ws,
|
|
5684
|
+
ul: Ss
|
|
5677
5685
|
};
|
|
5678
|
-
function
|
|
5686
|
+
function Bs({ children: e }) {
|
|
5679
5687
|
return /* @__PURE__ */ n.jsx("ul", { className: J.ul, children: e });
|
|
5680
5688
|
}
|
|
5681
|
-
function
|
|
5689
|
+
function Ts(e, t) {
|
|
5682
5690
|
switch (t.type) {
|
|
5683
5691
|
case "load":
|
|
5684
5692
|
return {
|
|
@@ -5717,7 +5725,7 @@ function xl({
|
|
|
5717
5725
|
className: a,
|
|
5718
5726
|
...r
|
|
5719
5727
|
}) {
|
|
5720
|
-
const
|
|
5728
|
+
const i = b.useRef(null), [o, l] = b.useReducer(Ts, {
|
|
5721
5729
|
load: !1,
|
|
5722
5730
|
list: [],
|
|
5723
5731
|
data: {},
|
|
@@ -5726,18 +5734,18 @@ function xl({
|
|
|
5726
5734
|
size: 0
|
|
5727
5735
|
});
|
|
5728
5736
|
b.useEffect(() => {
|
|
5729
|
-
|
|
5737
|
+
i.current.scrollTop = 0, e !== null && l({ type: "load", load: !0, data: e });
|
|
5730
5738
|
}, [t]);
|
|
5731
5739
|
let c = () => {
|
|
5732
|
-
|
|
5740
|
+
i.current.scrollHeight - i.current.scrollTop - 300 <= i.current.clientHeight && !o.wait && l({ type: "update" });
|
|
5733
5741
|
};
|
|
5734
5742
|
return /* @__PURE__ */ n.jsx(
|
|
5735
5743
|
"div",
|
|
5736
5744
|
{
|
|
5737
|
-
className: [
|
|
5738
|
-
ref:
|
|
5745
|
+
className: [Es.s, a].join(" "),
|
|
5746
|
+
ref: i,
|
|
5739
5747
|
onScroll: c,
|
|
5740
|
-
children: /* @__PURE__ */ n.jsx(
|
|
5748
|
+
children: /* @__PURE__ */ n.jsx(Bs, { "el-empty": "Данные не найдены", children: o.load && o.list !== void 0 ? o.list.map((d) => /* @__PURE__ */ n.jsx(r.item, { data: d }, d.id)) : /* @__PURE__ */ n.jsxs("div", { "data-load": "load", children: [
|
|
5741
5749
|
/* @__PURE__ */ n.jsx("i", {}),
|
|
5742
5750
|
/* @__PURE__ */ n.jsx("i", {}),
|
|
5743
5751
|
/* @__PURE__ */ n.jsx("i", {})
|
|
@@ -5745,36 +5753,36 @@ function xl({
|
|
|
5745
5753
|
}
|
|
5746
5754
|
);
|
|
5747
5755
|
}
|
|
5748
|
-
const
|
|
5749
|
-
const [
|
|
5756
|
+
const Rs = ({ label: e, onValue: t, value: a, name: r, item: i }) => {
|
|
5757
|
+
const [o, l] = b.useState(!!a);
|
|
5750
5758
|
b.useEffect(() => {
|
|
5751
5759
|
l(!!a);
|
|
5752
5760
|
}, [a]);
|
|
5753
5761
|
let c = () => {
|
|
5754
|
-
let d = parseInt(
|
|
5755
|
-
l(d), t({ value: d, name: r, key:
|
|
5762
|
+
let d = parseInt(o) === 0 ? 1 : 0;
|
|
5763
|
+
l(d), t({ value: d, name: r, key: i, item: i });
|
|
5756
5764
|
};
|
|
5757
5765
|
return /* @__PURE__ */ n.jsx(
|
|
5758
5766
|
"div",
|
|
5759
5767
|
{
|
|
5760
5768
|
role: "switch",
|
|
5761
5769
|
onClick: c,
|
|
5762
|
-
"aria-checked": `${
|
|
5770
|
+
"aria-checked": `${o ? "true" : "false"}`
|
|
5763
5771
|
}
|
|
5764
5772
|
);
|
|
5765
5773
|
}, we = {};
|
|
5766
|
-
function
|
|
5774
|
+
function Ms(e) {
|
|
5767
5775
|
const [t, a] = b.useState({}), r = b.useRef(e);
|
|
5768
|
-
return we.u = (
|
|
5769
|
-
r.current = { ...r.current, [
|
|
5776
|
+
return we.u = (i) => {
|
|
5777
|
+
r.current = { ...r.current, [i.name]: i.value };
|
|
5770
5778
|
}, we.r = () => {
|
|
5771
5779
|
a(Date.now());
|
|
5772
5780
|
}, [r.current];
|
|
5773
5781
|
}
|
|
5774
|
-
function
|
|
5782
|
+
function Is(e) {
|
|
5775
5783
|
we.u(e), e.reload && we.r();
|
|
5776
5784
|
}
|
|
5777
|
-
function
|
|
5785
|
+
function Ns() {
|
|
5778
5786
|
we.r && we.r();
|
|
5779
5787
|
}
|
|
5780
5788
|
const vl = {
|
|
@@ -5802,19 +5810,19 @@ const vl = {
|
|
|
5802
5810
|
Users: St,
|
|
5803
5811
|
String: wt,
|
|
5804
5812
|
Form: ft,
|
|
5805
|
-
runReload:
|
|
5806
|
-
useData:
|
|
5807
|
-
setValue:
|
|
5808
|
-
Palette:
|
|
5813
|
+
runReload: Ns,
|
|
5814
|
+
useData: Ms,
|
|
5815
|
+
setValue: Is,
|
|
5816
|
+
Palette: Rs,
|
|
5809
5817
|
Toogle: Rn,
|
|
5810
5818
|
Group: Mn,
|
|
5811
5819
|
Options: In
|
|
5812
|
-
},
|
|
5813
|
-
spinner:
|
|
5814
|
-
l:
|
|
5815
|
-
loadingB:
|
|
5820
|
+
}, Ds = "_spinner_1ul0m_1", Ps = "_l_1ul0m_75", Fs = "_loadingB_1ul0m_1", Pn = {
|
|
5821
|
+
spinner: Ds,
|
|
5822
|
+
l: Ps,
|
|
5823
|
+
loadingB: Fs
|
|
5816
5824
|
};
|
|
5817
|
-
function $
|
|
5825
|
+
function $s() {
|
|
5818
5826
|
return /* @__PURE__ */ n.jsx("div", { className: Pn.spinner, children: /* @__PURE__ */ n.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 483 484", children: /* @__PURE__ */ n.jsx(
|
|
5819
5827
|
"path",
|
|
5820
5828
|
{
|
|
@@ -5823,60 +5831,60 @@ function $i() {
|
|
|
5823
5831
|
}
|
|
5824
5832
|
) }) });
|
|
5825
5833
|
}
|
|
5826
|
-
function
|
|
5834
|
+
function Ls() {
|
|
5827
5835
|
return /* @__PURE__ */ n.jsxs("div", { className: Pn.l, children: [
|
|
5828
5836
|
/* @__PURE__ */ n.jsx("i", {}),
|
|
5829
5837
|
/* @__PURE__ */ n.jsx("i", {}),
|
|
5830
5838
|
/* @__PURE__ */ n.jsx("i", {})
|
|
5831
5839
|
] });
|
|
5832
5840
|
}
|
|
5833
|
-
const kl = { Spinner: $
|
|
5834
|
-
s:
|
|
5841
|
+
const kl = { Spinner: $s, Inline: Ls }, As = "_s_t9swc_1", tn = {
|
|
5842
|
+
s: As
|
|
5835
5843
|
};
|
|
5836
5844
|
let Et;
|
|
5837
|
-
function
|
|
5845
|
+
function Os({ className: e, placeholder: t }) {
|
|
5838
5846
|
let a = (l) => {
|
|
5839
5847
|
Et(l.target.textContent);
|
|
5840
5848
|
}, r = (l) => {
|
|
5841
5849
|
l.key === "Enter" && l.preventDefault();
|
|
5842
|
-
},
|
|
5850
|
+
}, i = (l) => {
|
|
5843
5851
|
l.preventDefault(), navigator.clipboard.readText().then((c) => {
|
|
5844
5852
|
window.document.execCommand("insertText", !1, c);
|
|
5845
5853
|
}).catch((c) => {
|
|
5846
5854
|
});
|
|
5847
5855
|
};
|
|
5848
|
-
const
|
|
5849
|
-
return t && (
|
|
5856
|
+
const o = {};
|
|
5857
|
+
return t && (o.placeholder = t), o.className = e ? [tn.s, e].join(" ") : tn.s, /* @__PURE__ */ n.jsx(
|
|
5850
5858
|
"div",
|
|
5851
5859
|
{
|
|
5852
|
-
onPaste:
|
|
5860
|
+
onPaste: i,
|
|
5853
5861
|
onInput: a,
|
|
5854
5862
|
onKeyDown: r,
|
|
5855
5863
|
contentEditable: "true",
|
|
5856
|
-
...
|
|
5864
|
+
...o,
|
|
5857
5865
|
suppressContentEditableWarning: !0
|
|
5858
5866
|
}
|
|
5859
5867
|
);
|
|
5860
5868
|
}
|
|
5861
|
-
function
|
|
5862
|
-
let r = [],
|
|
5863
|
-
return l[
|
|
5869
|
+
function Gs(e, t, a) {
|
|
5870
|
+
let r = [], i = 1, o = 0, l = {}, c = 50;
|
|
5871
|
+
return l[i] = [], e.forEach((d) => {
|
|
5864
5872
|
d.text.toLowerCase().indexOf(t) > -1 && r.push(d.id);
|
|
5865
5873
|
}), r.forEach((d) => {
|
|
5866
|
-
|
|
5874
|
+
o++, o <= c || (i++, o = 1, l[i] = []), l[i].push(a[d]);
|
|
5867
5875
|
}), l;
|
|
5868
5876
|
}
|
|
5869
|
-
function
|
|
5877
|
+
function zs(e) {
|
|
5870
5878
|
Et = e;
|
|
5871
5879
|
}
|
|
5872
|
-
function
|
|
5880
|
+
function Ws(e) {
|
|
5873
5881
|
Et = e;
|
|
5874
5882
|
}
|
|
5875
|
-
const bl = { Field:
|
|
5876
|
-
f:
|
|
5883
|
+
const bl = { Field: Os, Run: Gs, Get: zs, useValue: Ws }, Ks = "_f_q3r0i_1", Zs = {
|
|
5884
|
+
f: Ks
|
|
5877
5885
|
};
|
|
5878
5886
|
let ee = {};
|
|
5879
|
-
function
|
|
5887
|
+
function Us(e, t) {
|
|
5880
5888
|
switch (t.type) {
|
|
5881
5889
|
case "open":
|
|
5882
5890
|
return {
|
|
@@ -5890,8 +5898,8 @@ function Ui(e, t) {
|
|
|
5890
5898
|
};
|
|
5891
5899
|
case "data":
|
|
5892
5900
|
let a = {};
|
|
5893
|
-
return Object.keys(t.data).forEach((
|
|
5894
|
-
|
|
5901
|
+
return Object.keys(t.data).forEach((i) => {
|
|
5902
|
+
i !== "sort" && (a[i] = t.data[i], e.take[i] = "999");
|
|
5895
5903
|
}), {
|
|
5896
5904
|
...e,
|
|
5897
5905
|
data: a,
|
|
@@ -5905,16 +5913,16 @@ function Ui(e, t) {
|
|
|
5905
5913
|
case "take":
|
|
5906
5914
|
let r = { [t.list]: t.take };
|
|
5907
5915
|
r = { ...e.take, ...r }, e.active = !1;
|
|
5908
|
-
for (let
|
|
5909
|
-
r[
|
|
5916
|
+
for (let i in r)
|
|
5917
|
+
r[i] !== "999" && (e.active = !0);
|
|
5910
5918
|
return ee.get(r, e.active), {
|
|
5911
5919
|
...e,
|
|
5912
5920
|
take: r,
|
|
5913
5921
|
active: e.active
|
|
5914
5922
|
};
|
|
5915
5923
|
case "exit":
|
|
5916
|
-
for (let
|
|
5917
|
-
e.take[
|
|
5924
|
+
for (let i in e.take)
|
|
5925
|
+
e.take[i] = "999";
|
|
5918
5926
|
return ee.get && ee.get([], !1), {
|
|
5919
5927
|
...e,
|
|
5920
5928
|
size: 0,
|
|
@@ -5926,8 +5934,8 @@ function Ui(e, t) {
|
|
|
5926
5934
|
throw new Error();
|
|
5927
5935
|
}
|
|
5928
5936
|
}
|
|
5929
|
-
function
|
|
5930
|
-
const [e, t] = b.useReducer(
|
|
5937
|
+
function Hs() {
|
|
5938
|
+
const [e, t] = b.useReducer(Us, {
|
|
5931
5939
|
open: !1,
|
|
5932
5940
|
view: null,
|
|
5933
5941
|
data: {},
|
|
@@ -5945,12 +5953,12 @@ function Hi() {
|
|
|
5945
5953
|
/* @__PURE__ */ n.jsxs(
|
|
5946
5954
|
"div",
|
|
5947
5955
|
{
|
|
5948
|
-
className:
|
|
5956
|
+
className: Zs.f,
|
|
5949
5957
|
onClick: () => {
|
|
5950
5958
|
t({ type: "open", open: !0 });
|
|
5951
5959
|
},
|
|
5952
5960
|
children: [
|
|
5953
|
-
/* @__PURE__ */ n.jsx(
|
|
5961
|
+
/* @__PURE__ */ n.jsx(Vo, {}),
|
|
5954
5962
|
e.active && /* @__PURE__ */ n.jsxs("i", { children: [
|
|
5955
5963
|
e.size,
|
|
5956
5964
|
"1"
|
|
@@ -5970,7 +5978,7 @@ function Hi() {
|
|
|
5970
5978
|
),
|
|
5971
5979
|
/* @__PURE__ */ n.jsxs("div", { className: "filter m", children: [
|
|
5972
5980
|
/* @__PURE__ */ n.jsx("div", { className: "filter l", children: Object.keys(e.data).map((a) => /* @__PURE__ */ n.jsx(
|
|
5973
|
-
|
|
5981
|
+
Xs,
|
|
5974
5982
|
{
|
|
5975
5983
|
data: a,
|
|
5976
5984
|
dispatch: t,
|
|
@@ -5992,34 +6000,34 @@ function Hi() {
|
|
|
5992
6000
|
] }) : /* @__PURE__ */ n.jsx(n.Fragment, {})
|
|
5993
6001
|
] });
|
|
5994
6002
|
}
|
|
5995
|
-
function
|
|
6003
|
+
function Ys(e) {
|
|
5996
6004
|
ee.get = e;
|
|
5997
6005
|
}
|
|
5998
|
-
function
|
|
6006
|
+
function Vs(e) {
|
|
5999
6007
|
ee.set !== void 0 && ee.set(e);
|
|
6000
6008
|
}
|
|
6001
|
-
function
|
|
6009
|
+
function qs(e) {
|
|
6002
6010
|
ee.reset !== void 0 && ee.reset(e);
|
|
6003
6011
|
}
|
|
6004
|
-
function
|
|
6005
|
-
let
|
|
6006
|
-
return c[
|
|
6012
|
+
function Js(e, t, a, r) {
|
|
6013
|
+
let i = [], o = 1, l = 0, c = {}, d = 50;
|
|
6014
|
+
return c[o] = [], r === !0 && (Object.keys(t).forEach((_) => {
|
|
6007
6015
|
Number.parseInt(t[_]) !== 999 && (e = e.filter(
|
|
6008
6016
|
(u) => Number.parseInt(u[_]) === Number.parseInt(t[_])
|
|
6009
6017
|
));
|
|
6010
6018
|
}), Fn(e.length)), e.forEach((_) => {
|
|
6011
|
-
|
|
6012
|
-
}),
|
|
6013
|
-
l++, l <= d || (
|
|
6019
|
+
i.push(_.id);
|
|
6020
|
+
}), i.forEach((_) => {
|
|
6021
|
+
l++, l <= d || (o++, l = 1, c[o] = []), c[o].push(a[_]);
|
|
6014
6022
|
}), c;
|
|
6015
6023
|
}
|
|
6016
6024
|
function Fn(e) {
|
|
6017
6025
|
ee.count(e);
|
|
6018
6026
|
}
|
|
6019
|
-
function
|
|
6027
|
+
function Xs({ data: e, state: t, dispatch: a }) {
|
|
6020
6028
|
let r = () => {
|
|
6021
6029
|
a({ type: "view", view: e });
|
|
6022
|
-
},
|
|
6030
|
+
}, i = () => {
|
|
6023
6031
|
a({ type: "take", list: e, take: "999" });
|
|
6024
6032
|
};
|
|
6025
6033
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
@@ -6032,18 +6040,18 @@ function Xi({ data: e, state: t, dispatch: a }) {
|
|
|
6032
6040
|
t.take[e] !== "999" ? /* @__PURE__ */ n.jsx(
|
|
6033
6041
|
"div",
|
|
6034
6042
|
{
|
|
6035
|
-
onClick:
|
|
6043
|
+
onClick: i,
|
|
6036
6044
|
className: "filter x",
|
|
6037
6045
|
"data-icon": "F038"
|
|
6038
6046
|
}
|
|
6039
6047
|
) : ""
|
|
6040
6048
|
] }),
|
|
6041
|
-
/* @__PURE__ */ n.jsx("div", { className: "filter u", "set-active": (t.view === e) + "", children: Object.keys(t.data[e].list).map((
|
|
6042
|
-
|
|
6049
|
+
/* @__PURE__ */ n.jsx("div", { className: "filter u", "set-active": (t.view === e) + "", children: Object.keys(t.data[e].list).map((o, l) => /* @__PURE__ */ n.jsx(
|
|
6050
|
+
Qs,
|
|
6043
6051
|
{
|
|
6044
|
-
data: t.data[e].list[
|
|
6052
|
+
data: t.data[e].list[o],
|
|
6045
6053
|
head: e,
|
|
6046
|
-
type:
|
|
6054
|
+
type: o,
|
|
6047
6055
|
dispatch: a,
|
|
6048
6056
|
state: t
|
|
6049
6057
|
},
|
|
@@ -6051,18 +6059,18 @@ function Xi({ data: e, state: t, dispatch: a }) {
|
|
|
6051
6059
|
)) })
|
|
6052
6060
|
] });
|
|
6053
6061
|
}
|
|
6054
|
-
function
|
|
6055
|
-
if (
|
|
6062
|
+
function Qs({ data: e, head: t, state: a, dispatch: r, type: i }) {
|
|
6063
|
+
if (i !== "999" && e.count === void 0)
|
|
6056
6064
|
return "";
|
|
6057
|
-
const
|
|
6058
|
-
r({ type: "take", list: t, take:
|
|
6065
|
+
const o = () => {
|
|
6066
|
+
r({ type: "take", list: t, take: i });
|
|
6059
6067
|
};
|
|
6060
6068
|
return /* @__PURE__ */ n.jsxs(
|
|
6061
6069
|
"div",
|
|
6062
6070
|
{
|
|
6063
6071
|
className: "filter a",
|
|
6064
|
-
onClick:
|
|
6065
|
-
"set-active": (a.take[t] ===
|
|
6072
|
+
onClick: o,
|
|
6073
|
+
"set-active": (a.take[t] === i) + "",
|
|
6066
6074
|
children: [
|
|
6067
6075
|
e.name,
|
|
6068
6076
|
/* @__PURE__ */ n.jsx("div", { className: "filter e", children: e.count })
|
|
@@ -6070,22 +6078,22 @@ function Qi({ data: e, head: t, state: a, dispatch: r, type: o }) {
|
|
|
6070
6078
|
}
|
|
6071
6079
|
);
|
|
6072
6080
|
}
|
|
6073
|
-
const Cl = { Button:
|
|
6081
|
+
const Cl = { Button: Hs, useValue: Ys, Set: Vs, Run: Js, Count: Fn, Reset: qs }, jl = { Bell: as, Send: es, Add: Qo };
|
|
6074
6082
|
function yl({ active: e, onActive: t, id: a, name: r }) {
|
|
6075
|
-
const [
|
|
6083
|
+
const [i, o] = b.useState(!!e);
|
|
6076
6084
|
b.useEffect(() => {
|
|
6077
|
-
|
|
6085
|
+
o(!!e);
|
|
6078
6086
|
}, [e]);
|
|
6079
6087
|
let l = () => {
|
|
6080
|
-
let c = parseInt(
|
|
6081
|
-
|
|
6088
|
+
let c = parseInt(i) === 0 ? 1 : 0;
|
|
6089
|
+
o(c), t && t({ value: c, name: r, id: a });
|
|
6082
6090
|
};
|
|
6083
6091
|
return /* @__PURE__ */ n.jsx(
|
|
6084
6092
|
"div",
|
|
6085
6093
|
{
|
|
6086
6094
|
role: "switch",
|
|
6087
6095
|
onClick: l,
|
|
6088
|
-
"aria-checked": `${
|
|
6096
|
+
"aria-checked": `${i ? "true" : "false"}`
|
|
6089
6097
|
}
|
|
6090
6098
|
);
|
|
6091
6099
|
}
|
|
@@ -6141,12 +6149,12 @@ function al() {
|
|
|
6141
6149
|
function rl(e) {
|
|
6142
6150
|
Ye.get = e;
|
|
6143
6151
|
}
|
|
6144
|
-
function
|
|
6152
|
+
function il(e) {
|
|
6145
6153
|
Ye.set(e);
|
|
6146
6154
|
}
|
|
6147
|
-
function
|
|
6148
|
-
let r = 1,
|
|
6149
|
-
|
|
6155
|
+
function ol(e, t, a) {
|
|
6156
|
+
let r = 1, i = 0, o = {}, l = 50;
|
|
6157
|
+
o[r] = [];
|
|
6150
6158
|
let c = {}, d = "s1a";
|
|
6151
6159
|
switch (c.s1a = (_, u) => u.s1 - _.s1, c.s1d = (_, u) => _.s1 - u.s1, c.s2a = (_, u) => _.s2 - u.s2, c.s2d = (_, u) => u.s2 - _.s2, c.s3a = (_, u) => _.s3.localeCompare(u.s3), c.s3d = (_, u) => u.s3.localeCompare(_.s3), a.active) {
|
|
6152
6160
|
case 1:
|
|
@@ -6160,15 +6168,15 @@ function sl(e, t, a) {
|
|
|
6160
6168
|
break;
|
|
6161
6169
|
}
|
|
6162
6170
|
return t.sort(c[d]).forEach((_) => {
|
|
6163
|
-
|
|
6164
|
-
}), { data:
|
|
6171
|
+
i++, i <= l || (r++, i = 1, o[r] = []), o[r].push(e[_.id]);
|
|
6172
|
+
}), { data: o };
|
|
6165
6173
|
}
|
|
6166
|
-
function
|
|
6174
|
+
function sl(e) {
|
|
6167
6175
|
Ye.count(e);
|
|
6168
6176
|
}
|
|
6169
|
-
const wl = { Init: al, useValue: rl, Set:
|
|
6177
|
+
const wl = { Init: al, useValue: rl, Set: il, Run: ol, Count: sl };
|
|
6170
6178
|
export {
|
|
6171
|
-
|
|
6179
|
+
go as Action,
|
|
6172
6180
|
ml as Alert,
|
|
6173
6181
|
_l as Api,
|
|
6174
6182
|
Lr as Button,
|
|
@@ -6180,20 +6188,20 @@ export {
|
|
|
6180
6188
|
ye as Format,
|
|
6181
6189
|
hl as Icon,
|
|
6182
6190
|
dl as Init,
|
|
6183
|
-
|
|
6191
|
+
Xi as Input,
|
|
6184
6192
|
kl as Loading,
|
|
6185
6193
|
Cn as Modal,
|
|
6186
6194
|
Ke as Notice,
|
|
6187
6195
|
jl as Notifications,
|
|
6188
|
-
|
|
6196
|
+
_e as Router,
|
|
6189
6197
|
xl as Scrolling,
|
|
6190
6198
|
bl as Search,
|
|
6191
6199
|
ul as Setting,
|
|
6192
6200
|
xt as Sistym,
|
|
6193
6201
|
mt as Socket,
|
|
6194
|
-
|
|
6202
|
+
le as Store,
|
|
6195
6203
|
yl as Switch,
|
|
6196
|
-
|
|
6204
|
+
oo as Tabs,
|
|
6197
6205
|
S as Telegram,
|
|
6198
6206
|
wl as Triage,
|
|
6199
6207
|
pl as User
|