elcrm 0.9.150 → 0.9.152
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 +451 -445
- package/dist/index.umd.js +7 -7
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import './index.css';var
|
|
2
|
-
var za = (e, t, n) => t in e ?
|
|
1
|
+
import './index.css';var Ga = Object.defineProperty;
|
|
2
|
+
var za = (e, t, n) => t in e ? Ga(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var gt = (e, t, n) => za(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import h, { createContext as wn, useContext as Ka, createElement as Sn } from "react";
|
|
5
5
|
let Lt = {
|
|
@@ -24,12 +24,12 @@ function qa() {
|
|
|
24
24
|
if (ln) return $e;
|
|
25
25
|
ln = 1;
|
|
26
26
|
var e = h, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
27
|
-
function o(
|
|
27
|
+
function o(c, l, _) {
|
|
28
28
|
var u, x = {}, f = null, m = null;
|
|
29
|
-
_ !== void 0 && (f = "" + _),
|
|
30
|
-
for (u in
|
|
31
|
-
if (
|
|
32
|
-
return { $$typeof: t, type:
|
|
29
|
+
_ !== void 0 && (f = "" + _), l.key !== void 0 && (f = "" + l.key), l.ref !== void 0 && (m = l.ref);
|
|
30
|
+
for (u in l) r.call(l, u) && !i.hasOwnProperty(u) && (x[u] = l[u]);
|
|
31
|
+
if (c && c.defaultProps) for (u in l = c.defaultProps, l) x[u] === void 0 && (x[u] = l[u]);
|
|
32
|
+
return { $$typeof: t, type: c, key: f, ref: m, props: x, _owner: s.current };
|
|
33
33
|
}
|
|
34
34
|
return $e.Fragment = n, $e.jsx = o, $e.jsxs = o, $e;
|
|
35
35
|
}
|
|
@@ -46,7 +46,7 @@ var Fe = {};
|
|
|
46
46
|
var cn;
|
|
47
47
|
function Ja() {
|
|
48
48
|
return cn || (cn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
49
|
-
var e = h, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"),
|
|
49
|
+
var e = h, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), c = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), v = Symbol.iterator, g = "@@iterator";
|
|
50
50
|
function p(d) {
|
|
51
51
|
if (d === null || typeof d != "object")
|
|
52
52
|
return null;
|
|
@@ -63,8 +63,8 @@ function Ja() {
|
|
|
63
63
|
}
|
|
64
64
|
function D(d, k, I) {
|
|
65
65
|
{
|
|
66
|
-
var F = y.ReactDebugCurrentFrame,
|
|
67
|
-
|
|
66
|
+
var F = y.ReactDebugCurrentFrame, G = F.getStackAddendum();
|
|
67
|
+
G !== "" && (k += "%s", I = I.concat([G]));
|
|
68
68
|
var K = I.map(function(U) {
|
|
69
69
|
return String(U);
|
|
70
70
|
});
|
|
@@ -74,7 +74,7 @@ function Ja() {
|
|
|
74
74
|
var N = !1, T = !1, E = !1, M = !1, R = !1, Z;
|
|
75
75
|
Z = Symbol.for("react.module.reference");
|
|
76
76
|
function w(d) {
|
|
77
|
-
return !!(typeof d == "string" || typeof d == "function" || d === r || d === i || R || d === s || d === _ || d === u || M || d === m || N || T || E || typeof d == "object" && d !== null && (d.$$typeof === f || d.$$typeof === x || d.$$typeof === o || d.$$typeof ===
|
|
77
|
+
return !!(typeof d == "string" || typeof d == "function" || d === r || d === i || R || d === s || d === _ || d === u || M || d === m || N || T || E || typeof d == "object" && d !== null && (d.$$typeof === f || d.$$typeof === x || d.$$typeof === o || d.$$typeof === c || d.$$typeof === l || // This needs to include all possible module reference object
|
|
78
78
|
// types supported by any Flight configuration anywhere since
|
|
79
79
|
// we don't know which Flight build this will end up being used
|
|
80
80
|
// with.
|
|
@@ -84,8 +84,8 @@ function Ja() {
|
|
|
84
84
|
var F = d.displayName;
|
|
85
85
|
if (F)
|
|
86
86
|
return F;
|
|
87
|
-
var
|
|
88
|
-
return
|
|
87
|
+
var G = k.displayName || k.name || "";
|
|
88
|
+
return G !== "" ? I + "(" + G + ")" : I;
|
|
89
89
|
}
|
|
90
90
|
function b(d) {
|
|
91
91
|
return d.displayName || "Context";
|
|
@@ -113,19 +113,19 @@ function Ja() {
|
|
|
113
113
|
}
|
|
114
114
|
if (typeof d == "object")
|
|
115
115
|
switch (d.$$typeof) {
|
|
116
|
-
case
|
|
116
|
+
case c:
|
|
117
117
|
var k = d;
|
|
118
118
|
return b(k) + ".Consumer";
|
|
119
119
|
case o:
|
|
120
120
|
var I = d;
|
|
121
121
|
return b(I._context) + ".Provider";
|
|
122
|
-
case
|
|
122
|
+
case l:
|
|
123
123
|
return B(d, d.render, "ForwardRef");
|
|
124
124
|
case x:
|
|
125
125
|
var F = d.displayName || null;
|
|
126
126
|
return F !== null ? F : j(d.type) || "Memo";
|
|
127
127
|
case f: {
|
|
128
|
-
var
|
|
128
|
+
var G = d, K = G._payload, U = G._init;
|
|
129
129
|
try {
|
|
130
130
|
return j(U(K));
|
|
131
131
|
} catch {
|
|
@@ -135,13 +135,13 @@ function Ja() {
|
|
|
135
135
|
}
|
|
136
136
|
return null;
|
|
137
137
|
}
|
|
138
|
-
var L = Object.assign,
|
|
138
|
+
var L = Object.assign, W = 0, ee, oe, xe, Ee, Me, He, zt;
|
|
139
139
|
function Kt() {
|
|
140
140
|
}
|
|
141
141
|
Kt.__reactDisabledLog = !0;
|
|
142
142
|
function pa() {
|
|
143
143
|
{
|
|
144
|
-
if (
|
|
144
|
+
if (W === 0) {
|
|
145
145
|
ee = console.log, oe = console.info, xe = console.warn, Ee = console.error, Me = console.group, He = console.groupCollapsed, zt = console.groupEnd;
|
|
146
146
|
var d = {
|
|
147
147
|
configurable: !0,
|
|
@@ -159,12 +159,12 @@ function Ja() {
|
|
|
159
159
|
groupEnd: d
|
|
160
160
|
});
|
|
161
161
|
}
|
|
162
|
-
|
|
162
|
+
W++;
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
function xa() {
|
|
166
166
|
{
|
|
167
|
-
if (
|
|
167
|
+
if (W--, W === 0) {
|
|
168
168
|
var d = {
|
|
169
169
|
configurable: !0,
|
|
170
170
|
enumerable: !0,
|
|
@@ -194,7 +194,7 @@ function Ja() {
|
|
|
194
194
|
})
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
|
-
|
|
197
|
+
W < 0 && C("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
var ot = y.ReactCurrentDispatcher, lt;
|
|
@@ -203,8 +203,8 @@ function Ja() {
|
|
|
203
203
|
if (lt === void 0)
|
|
204
204
|
try {
|
|
205
205
|
throw Error();
|
|
206
|
-
} catch (
|
|
207
|
-
var F =
|
|
206
|
+
} catch (G) {
|
|
207
|
+
var F = G.stack.trim().match(/\n( *(at )?)/);
|
|
208
208
|
lt = F && F[1] || "";
|
|
209
209
|
}
|
|
210
210
|
return `
|
|
@@ -226,7 +226,7 @@ function Ja() {
|
|
|
226
226
|
}
|
|
227
227
|
var F;
|
|
228
228
|
ct = !0;
|
|
229
|
-
var
|
|
229
|
+
var G = Error.prepareStackTrace;
|
|
230
230
|
Error.prepareStackTrace = void 0;
|
|
231
231
|
var K;
|
|
232
232
|
K = ot.current, ot.current = null, pa();
|
|
@@ -282,7 +282,7 @@ function Ja() {
|
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
284
|
} finally {
|
|
285
|
-
ct = !1, ot.current = K, xa(), Error.prepareStackTrace =
|
|
285
|
+
ct = !1, ot.current = K, xa(), Error.prepareStackTrace = G;
|
|
286
286
|
}
|
|
287
287
|
var Re = d ? d.displayName || d.name : "", ye = Re ? Ye(Re) : "";
|
|
288
288
|
return typeof d == "function" && qe.set(d, ye), ye;
|
|
@@ -309,14 +309,14 @@ function Ja() {
|
|
|
309
309
|
}
|
|
310
310
|
if (typeof d == "object")
|
|
311
311
|
switch (d.$$typeof) {
|
|
312
|
-
case
|
|
312
|
+
case l:
|
|
313
313
|
return Ca(d.render);
|
|
314
314
|
case x:
|
|
315
315
|
return Je(d.type, k, I);
|
|
316
316
|
case f: {
|
|
317
|
-
var F = d,
|
|
317
|
+
var F = d, G = F._payload, K = F._init;
|
|
318
318
|
try {
|
|
319
|
-
return Je(K(
|
|
319
|
+
return Je(K(G), k, I);
|
|
320
320
|
} catch {
|
|
321
321
|
}
|
|
322
322
|
}
|
|
@@ -331,7 +331,7 @@ function Ja() {
|
|
|
331
331
|
} else
|
|
332
332
|
qt.setExtraStackFrame(null);
|
|
333
333
|
}
|
|
334
|
-
function ka(d, k, I, F,
|
|
334
|
+
function ka(d, k, I, F, G) {
|
|
335
335
|
{
|
|
336
336
|
var K = Function.call.bind(Le);
|
|
337
337
|
for (var U in d)
|
|
@@ -346,7 +346,7 @@ function Ja() {
|
|
|
346
346
|
} catch (J) {
|
|
347
347
|
O = J;
|
|
348
348
|
}
|
|
349
|
-
O && !(O instanceof Error) && (Xe(
|
|
349
|
+
O && !(O instanceof Error) && (Xe(G), C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", F || "React class", I, U, typeof O), Xe(null)), O instanceof Error && !(O.message in Yt) && (Yt[O.message] = !0, Xe(G), C("Failed %s type: %s", I, O.message), Xe(null));
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
}
|
|
@@ -425,7 +425,7 @@ function Ja() {
|
|
|
425
425
|
});
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
|
-
var Ta = function(d, k, I, F,
|
|
428
|
+
var Ta = function(d, k, I, F, G, K, U) {
|
|
429
429
|
var O = {
|
|
430
430
|
// This tag allows us to uniquely identify this as a React Element
|
|
431
431
|
$$typeof: t,
|
|
@@ -451,13 +451,13 @@ function Ja() {
|
|
|
451
451
|
configurable: !1,
|
|
452
452
|
enumerable: !1,
|
|
453
453
|
writable: !1,
|
|
454
|
-
value:
|
|
454
|
+
value: G
|
|
455
455
|
}), Object.freeze && (Object.freeze(O.props), Object.freeze(O)), O;
|
|
456
456
|
};
|
|
457
|
-
function Ma(d, k, I, F,
|
|
457
|
+
function Ma(d, k, I, F, G) {
|
|
458
458
|
{
|
|
459
459
|
var K, U = {}, O = null, te = null;
|
|
460
|
-
I !== void 0 && (Xt(I), O = "" + I), Da(k) && (Xt(k.key), O = "" + k.key), Ea(k) && (te = k.ref, Ra(k,
|
|
460
|
+
I !== void 0 && (Xt(I), O = "" + I), Da(k) && (Xt(k.key), O = "" + k.key), Ea(k) && (te = k.ref, Ra(k, G));
|
|
461
461
|
for (K in k)
|
|
462
462
|
Le.call(k, K) && !Sa.hasOwnProperty(K) && (U[K] = k[K]);
|
|
463
463
|
if (d && d.defaultProps) {
|
|
@@ -469,7 +469,7 @@ function Ja() {
|
|
|
469
469
|
var Q = typeof d == "function" ? d.displayName || d.name || "Unknown" : d;
|
|
470
470
|
O && Ia(U, Q), te && Na(U, Q);
|
|
471
471
|
}
|
|
472
|
-
return Ta(d, O, te,
|
|
472
|
+
return Ta(d, O, te, G, F, Be.current, U);
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
475
|
var ut = y.ReactCurrentOwner, en = y.ReactDebugCurrentFrame;
|
|
@@ -538,9 +538,9 @@ Check the top-level render call using <` + I + ">.");
|
|
|
538
538
|
else if (mt(d))
|
|
539
539
|
d._store && (d._store.validated = !0);
|
|
540
540
|
else if (d) {
|
|
541
|
-
var
|
|
542
|
-
if (typeof
|
|
543
|
-
for (var K =
|
|
541
|
+
var G = p(d);
|
|
542
|
+
if (typeof G == "function" && G !== d.entries)
|
|
543
|
+
for (var K = G.call(d), U; !(U = K.next()).done; )
|
|
544
544
|
mt(U.value) && an(U.value, k);
|
|
545
545
|
}
|
|
546
546
|
}
|
|
@@ -553,7 +553,7 @@ Check the top-level render call using <` + I + ">.");
|
|
|
553
553
|
var I;
|
|
554
554
|
if (typeof k == "function")
|
|
555
555
|
I = k.propTypes;
|
|
556
|
-
else if (typeof k == "object" && (k.$$typeof ===
|
|
556
|
+
else if (typeof k == "object" && (k.$$typeof === l || // Note: Memo only checks outer props here.
|
|
557
557
|
// Inner props are checked in the reconciler.
|
|
558
558
|
k.$$typeof === x))
|
|
559
559
|
I = k.propTypes;
|
|
@@ -564,8 +564,8 @@ Check the top-level render call using <` + I + ">.");
|
|
|
564
564
|
ka(I, d.props, "prop", F, d);
|
|
565
565
|
} else if (k.PropTypes !== void 0 && !ft) {
|
|
566
566
|
ft = !0;
|
|
567
|
-
var
|
|
568
|
-
C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
567
|
+
var G = j(k);
|
|
568
|
+
C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", G || "Unknown");
|
|
569
569
|
}
|
|
570
570
|
typeof k.getDefaultProps == "function" && !k.getDefaultProps.isReactClassApproved && C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
571
571
|
}
|
|
@@ -583,7 +583,7 @@ Check the top-level render call using <` + I + ">.");
|
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
585
|
var sn = {};
|
|
586
|
-
function on(d, k, I, F,
|
|
586
|
+
function on(d, k, I, F, G, K) {
|
|
587
587
|
{
|
|
588
588
|
var U = w(d);
|
|
589
589
|
if (!U) {
|
|
@@ -594,7 +594,7 @@ Check the top-level render call using <` + I + ">.");
|
|
|
594
594
|
var J;
|
|
595
595
|
d === null ? J = "null" : dt(d) ? J = "array" : d !== void 0 && d.$$typeof === t ? (J = "<" + (j(d.type) || "Unknown") + " />", O = " Did you accidentally export a JSX literal instead of a component?") : J = typeof d, C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", J, O);
|
|
596
596
|
}
|
|
597
|
-
var Q = Ma(d, k, I,
|
|
597
|
+
var Q = Ma(d, k, I, G, K);
|
|
598
598
|
if (Q == null)
|
|
599
599
|
return Q;
|
|
600
600
|
if (U) {
|
|
@@ -611,8 +611,8 @@ Check the top-level render call using <` + I + ">.");
|
|
|
611
611
|
rn(ce, d);
|
|
612
612
|
}
|
|
613
613
|
if (Le.call(k, "key")) {
|
|
614
|
-
var ye = j(d), ae = Object.keys(k).filter(function(
|
|
615
|
-
return
|
|
614
|
+
var ye = j(d), ae = Object.keys(k).filter(function(Wa) {
|
|
615
|
+
return Wa !== "key";
|
|
616
616
|
}), ht = ae.length > 0 ? "{key: someKey, " + ae.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
617
617
|
if (!sn[ye + ht]) {
|
|
618
618
|
var Ua = ae.length > 0 ? "{" + ae.join(": ..., ") + ": ...}" : "{}";
|
|
@@ -657,7 +657,7 @@ function ar() {
|
|
|
657
657
|
t(e.filter((r) => r.key !== n));
|
|
658
658
|
}, e.length === 0 ? "" : /* @__PURE__ */ a.jsx("ul", { id: "notice", className: nr.notice, children: e.map((n) => n.item) });
|
|
659
659
|
}
|
|
660
|
-
function
|
|
660
|
+
function We({ data: e }) {
|
|
661
661
|
let [t, n] = h.useState("show");
|
|
662
662
|
h.useEffect(() => {
|
|
663
663
|
e.hide && (setTimeout(function() {
|
|
@@ -706,23 +706,23 @@ function sr(e, t = !0) {
|
|
|
706
706
|
}
|
|
707
707
|
function ir(e) {
|
|
708
708
|
let t = Date.now(), n = { key: t, hide: !0, ...e };
|
|
709
|
-
ge.set({ item: /* @__PURE__ */ a.jsx(
|
|
709
|
+
ge.set({ item: /* @__PURE__ */ a.jsx(We, { data: n }, t), key: t });
|
|
710
710
|
}
|
|
711
711
|
function or(e, t = !0) {
|
|
712
712
|
let n = Date.now(), r = { key: n, text: e, hide: t, type: "error" };
|
|
713
|
-
ge.set({ item: /* @__PURE__ */ a.jsx(
|
|
713
|
+
ge.set({ item: /* @__PURE__ */ a.jsx(We, { data: r }, n), key: n });
|
|
714
714
|
}
|
|
715
715
|
function lr(e, t = !0) {
|
|
716
716
|
let n = Date.now(), r = { key: n, text: e, hide: t, type: "success" };
|
|
717
|
-
ge.set({ item: /* @__PURE__ */ a.jsx(
|
|
717
|
+
ge.set({ item: /* @__PURE__ */ a.jsx(We, { data: r }, n), key: n });
|
|
718
718
|
}
|
|
719
719
|
function cr(e, t = !0) {
|
|
720
720
|
let n = Date.now(), r = { key: n, text: e, hide: t, type: "remark" };
|
|
721
|
-
ge.set({ item: /* @__PURE__ */ a.jsx(
|
|
721
|
+
ge.set({ item: /* @__PURE__ */ a.jsx(We, { data: r }, n), key: n });
|
|
722
722
|
}
|
|
723
723
|
function dr(e, t = !0) {
|
|
724
724
|
let n = Date.now(), r = { key: n, text: e, hide: t, type: "copy" };
|
|
725
|
-
ge.set({ item: /* @__PURE__ */ a.jsx(
|
|
725
|
+
ge.set({ item: /* @__PURE__ */ a.jsx(We, { data: r }, n), key: n });
|
|
726
726
|
}
|
|
727
727
|
const be = {};
|
|
728
728
|
be.error = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
|
|
@@ -925,9 +925,9 @@ function Pr() {
|
|
|
925
925
|
let t = localStorage.getItem("m"), n = A.deCode(t);
|
|
926
926
|
n || ie();
|
|
927
927
|
const r = (i, o) => {
|
|
928
|
-
let
|
|
929
|
-
for (;
|
|
930
|
-
return
|
|
928
|
+
let c = o + "";
|
|
929
|
+
for (; c.length < i; ) c = "0" + c;
|
|
930
|
+
return c;
|
|
931
931
|
};
|
|
932
932
|
return n.data.split(",").map((i) => "M" + r(2, i));
|
|
933
933
|
} else
|
|
@@ -969,10 +969,10 @@ function Oe(e, t) {
|
|
|
969
969
|
}
|
|
970
970
|
return e === void 0 && t === void 0 ? me.data : e !== void 0 && t === void 0 ? me.data[e] : me.data[e][t];
|
|
971
971
|
}
|
|
972
|
-
function
|
|
972
|
+
function Wr(e) {
|
|
973
973
|
Dn.data = e;
|
|
974
974
|
}
|
|
975
|
-
function
|
|
975
|
+
function Gr(e) {
|
|
976
976
|
return Dn.data[e];
|
|
977
977
|
}
|
|
978
978
|
function zr(e) {
|
|
@@ -1100,8 +1100,8 @@ const V = {
|
|
|
1100
1100
|
setSelect: Zr,
|
|
1101
1101
|
addSelect: Ur,
|
|
1102
1102
|
getSelect: Oe,
|
|
1103
|
-
setApi:
|
|
1104
|
-
getApi:
|
|
1103
|
+
setApi: Wr,
|
|
1104
|
+
getApi: Gr,
|
|
1105
1105
|
setPayment: zr,
|
|
1106
1106
|
getPayment: Kr,
|
|
1107
1107
|
setUser: Hr,
|
|
@@ -1183,18 +1183,18 @@ function ps({
|
|
|
1183
1183
|
const o = {
|
|
1184
1184
|
[s ? "backgroundImage" : "WebkitMaskImage"]: `url(${An}${e}.svg)`,
|
|
1185
1185
|
"--size": t
|
|
1186
|
-
},
|
|
1187
|
-
return i && (
|
|
1186
|
+
}, c = {};
|
|
1187
|
+
return i && (c.className = i), n && (c.onClick = n, c.pointer = ""), r && (c.hover = r), /* @__PURE__ */ a.jsx(
|
|
1188
1188
|
"i",
|
|
1189
1189
|
{
|
|
1190
1190
|
role: "icon",
|
|
1191
1191
|
style: o,
|
|
1192
1192
|
className: [hs.i, `icon-${e}`].join(" "),
|
|
1193
|
-
...
|
|
1193
|
+
...c
|
|
1194
1194
|
}
|
|
1195
1195
|
);
|
|
1196
1196
|
}
|
|
1197
|
-
const
|
|
1197
|
+
const Ge = {
|
|
1198
1198
|
version: { Api: ls, Server: os, Client: cs },
|
|
1199
1199
|
Host: ds,
|
|
1200
1200
|
SSID: bs,
|
|
@@ -1214,10 +1214,10 @@ function js() {
|
|
|
1214
1214
|
}
|
|
1215
1215
|
let ze = `${xs}.${vs}.${Cs}`;
|
|
1216
1216
|
function ks(e) {
|
|
1217
|
-
return (
|
|
1217
|
+
return (Ge.Host() || `https://${ze}/`) + "audio" + e;
|
|
1218
1218
|
}
|
|
1219
1219
|
function ys(e) {
|
|
1220
|
-
return (
|
|
1220
|
+
return (Ge.Host() || `https://${ze}/`) + "image/" + e;
|
|
1221
1221
|
}
|
|
1222
1222
|
function bs(e) {
|
|
1223
1223
|
Ne = e;
|
|
@@ -1226,21 +1226,21 @@ function Ke(e, t = {}, n = Ne ? V.getSSID() : V.getAUTH()) {
|
|
|
1226
1226
|
return new Promise((r) => {
|
|
1227
1227
|
const s = new Pn();
|
|
1228
1228
|
s.onmessage = (i) => {
|
|
1229
|
-
var o,
|
|
1230
|
-
if (Ne && ((o = i.data) != null && o.ssid) && V.setSSID(i.data.ssid), ((
|
|
1229
|
+
var o, c, l;
|
|
1230
|
+
if (Ne && ((o = i.data) != null && o.ssid) && V.setSSID(i.data.ssid), ((c = i.data) == null ? void 0 : c.status) === "logaut" || ((l = i.data) == null ? void 0 : l.status) === "logout")
|
|
1231
1231
|
return V.Logaut();
|
|
1232
1232
|
r(i.data), s.terminate();
|
|
1233
1233
|
}, s.postMessage({
|
|
1234
1234
|
link: e,
|
|
1235
1235
|
data: t,
|
|
1236
1236
|
ssid: n,
|
|
1237
|
-
host:
|
|
1237
|
+
host: Ge.Host() || `https://${ze}/`
|
|
1238
1238
|
});
|
|
1239
1239
|
});
|
|
1240
1240
|
}
|
|
1241
1241
|
async function ws(e, t = {}, n = Ne ? V.getSSID() : V.getAUTH()) {
|
|
1242
1242
|
try {
|
|
1243
|
-
return await (await Ke(
|
|
1243
|
+
return await (await Ke(Ge.Host() || `https://${ze}/` + e, {
|
|
1244
1244
|
method: "POST",
|
|
1245
1245
|
headers: {
|
|
1246
1246
|
ssid: n
|
|
@@ -1260,16 +1260,16 @@ function Ss(e, t = {}, n = Ne ? V.getSSID() : V.getAUTH()) {
|
|
|
1260
1260
|
link: e,
|
|
1261
1261
|
data: t,
|
|
1262
1262
|
ssid: n,
|
|
1263
|
-
host:
|
|
1263
|
+
host: Ge.Host() + "modules/" || `https://${ze}/modules`
|
|
1264
1264
|
});
|
|
1265
1265
|
});
|
|
1266
1266
|
}
|
|
1267
1267
|
function Es(e, t = {}, n = Ne ? V.getSSID() : V.getAUTH()) {
|
|
1268
1268
|
const [r, s] = h.useState({ status: "load" }), i = async (o) => {
|
|
1269
|
-
let
|
|
1270
|
-
if (
|
|
1269
|
+
let c = await Ke(e, o, n);
|
|
1270
|
+
if (c.status === "logaut" || c.status === "logout")
|
|
1271
1271
|
return V.Logaut();
|
|
1272
|
-
s(
|
|
1272
|
+
s(c);
|
|
1273
1273
|
};
|
|
1274
1274
|
return h.useEffect(() => {
|
|
1275
1275
|
i(t);
|
|
@@ -1433,17 +1433,17 @@ const Ls = (e) => {
|
|
|
1433
1433
|
u3: ["тысяча", "тысячи", "тысяч"],
|
|
1434
1434
|
u2: ["миллион", "миллиона", "миллионов"],
|
|
1435
1435
|
u1: ["миллиард", "миллиарда", "миллиардов"]
|
|
1436
|
-
}, s, i, o,
|
|
1437
|
-
u = parseFloat(e).toFixed(2).split("."),
|
|
1438
|
-
var v = 12 -
|
|
1436
|
+
}, s, i, o, c, p, l, _, g, u, x, f, m;
|
|
1437
|
+
u = parseFloat(e).toFixed(2).split("."), l = u[0], c = u[1];
|
|
1438
|
+
var v = 12 - l.length;
|
|
1439
1439
|
if (v < 0)
|
|
1440
1440
|
return !1;
|
|
1441
1441
|
for (var g = []; v--; )
|
|
1442
1442
|
g.push("0");
|
|
1443
|
-
|
|
1443
|
+
l = g.join("") + l;
|
|
1444
1444
|
var p = [];
|
|
1445
|
-
if (
|
|
1446
|
-
x = t(
|
|
1445
|
+
if (l > 0) {
|
|
1446
|
+
x = t(l, 3);
|
|
1447
1447
|
for (var y = -1; y < x.length; y++)
|
|
1448
1448
|
if (_ = x[y], _ > 0 && (f = t(_, 1), s = parseInt(f[0]), i = parseInt(f[1]), o = parseInt(f[2]), p.push(r.a100[s - 1]), m = y + 1 == 3 ? "a2" : "a1", i > 1 ? p.push(
|
|
1449
1449
|
r.a20[i - 2] + (o > 0 ? " " + r[m][o - 1] : "")
|
|
@@ -1455,7 +1455,7 @@ const Ls = (e) => {
|
|
|
1455
1455
|
}
|
|
1456
1456
|
} else
|
|
1457
1457
|
p.push(r.null);
|
|
1458
|
-
return p.push(n(
|
|
1458
|
+
return p.push(n(l, r.ur)), p.push(c + " " + n(c, r.uc)), p.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
|
|
1459
1459
|
};
|
|
1460
1460
|
function Bs(e) {
|
|
1461
1461
|
let t = -1, n = [" kB", " MB", " GB", " TB", "PB", "EB", "ZB", "YB"];
|
|
@@ -1571,76 +1571,76 @@ function Fs(e, t, n, r) {
|
|
|
1571
1571
|
},
|
|
1572
1572
|
prepareRules: function() {
|
|
1573
1573
|
for (var o in this.rules)
|
|
1574
|
-
for (var
|
|
1575
|
-
for (var
|
|
1576
|
-
this.rules[o][
|
|
1577
|
-
this.rules[o][
|
|
1574
|
+
for (var c in this.rules[o])
|
|
1575
|
+
for (var l = 0, _ = this.rules[o][c].length; l < _; l++)
|
|
1576
|
+
this.rules[o][c][l] = this.rule(
|
|
1577
|
+
this.rules[o][c][l]
|
|
1578
1578
|
);
|
|
1579
1579
|
},
|
|
1580
1580
|
rule: function(o) {
|
|
1581
|
-
var
|
|
1581
|
+
var c = o.match(
|
|
1582
1582
|
/^\s*([fm]?)\s*(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s*$/
|
|
1583
1583
|
);
|
|
1584
|
-
return
|
|
1585
|
-
sex:
|
|
1586
|
-
test:
|
|
1587
|
-
mods: [
|
|
1584
|
+
return c ? {
|
|
1585
|
+
sex: c[1],
|
|
1586
|
+
test: c[2].split(","),
|
|
1587
|
+
mods: [c[3], c[4], c[5], c[6], c[7]]
|
|
1588
1588
|
} : !1;
|
|
1589
1589
|
},
|
|
1590
1590
|
// склоняем слово по указанному набору правил и исключений
|
|
1591
|
-
word: function(o,
|
|
1591
|
+
word: function(o, c, l, _) {
|
|
1592
1592
|
if (_ === this.gcaseNom) return o;
|
|
1593
1593
|
if (o.match(/[-]/)) {
|
|
1594
1594
|
for (var u = o.split("-"), x = 0, f = u.length; x < f; x++)
|
|
1595
|
-
u[x] = this.word(u[x],
|
|
1595
|
+
u[x] = this.word(u[x], c, l, _);
|
|
1596
1596
|
return u.join("-");
|
|
1597
1597
|
}
|
|
1598
1598
|
if (o.match(/^[А-ЯЁ]\.?$/i)) return o;
|
|
1599
1599
|
this.init();
|
|
1600
|
-
var m = this.rules[
|
|
1600
|
+
var m = this.rules[l];
|
|
1601
1601
|
let v;
|
|
1602
|
-
return m.exceptions && (v = this.pick(o,
|
|
1602
|
+
return m.exceptions && (v = this.pick(o, c, _, m.exceptions, !0), v) ? v : (v = this.pick(o, c, _, m.suffixes, !1), v || o);
|
|
1603
1603
|
},
|
|
1604
1604
|
// выбираем из списка правил первое подходящее и применяем
|
|
1605
|
-
pick: function(o,
|
|
1605
|
+
pick: function(o, c, l, _, u) {
|
|
1606
1606
|
let x = o.toLowerCase();
|
|
1607
1607
|
for (var f = 0, m = _.length; f < m; f++)
|
|
1608
|
-
if (this.ruleMatch(x,
|
|
1609
|
-
return this.applyMod(o,
|
|
1608
|
+
if (this.ruleMatch(x, c, _[f], u))
|
|
1609
|
+
return this.applyMod(o, l, _[f]);
|
|
1610
1610
|
return !1;
|
|
1611
1611
|
},
|
|
1612
1612
|
// проверяем, подходит ли правило к слову
|
|
1613
|
-
ruleMatch: function(o,
|
|
1614
|
-
if (
|
|
1615
|
-
for (var u = 0, x =
|
|
1613
|
+
ruleMatch: function(o, c, l, _) {
|
|
1614
|
+
if (l.sex === this.sexM && c === this.sexF || l.sex === this.sexF && c !== this.sexF) return !1;
|
|
1615
|
+
for (var u = 0, x = l.test.length; u < x; u++) {
|
|
1616
1616
|
var f = _ ? o : o.substr(
|
|
1617
|
-
Math.max(o.length -
|
|
1617
|
+
Math.max(o.length - l.test[u].length, 0)
|
|
1618
1618
|
);
|
|
1619
|
-
if (f ===
|
|
1619
|
+
if (f === l.test[u]) return !0;
|
|
1620
1620
|
}
|
|
1621
1621
|
return !1;
|
|
1622
1622
|
},
|
|
1623
1623
|
// склоняем слово (правим окончание)
|
|
1624
|
-
applyMod: function(o,
|
|
1624
|
+
applyMod: function(o, c, l) {
|
|
1625
1625
|
let _;
|
|
1626
|
-
switch (
|
|
1626
|
+
switch (c) {
|
|
1627
1627
|
case this.gcaseNom:
|
|
1628
1628
|
_ = ".";
|
|
1629
1629
|
break;
|
|
1630
1630
|
case this.gcaseGen:
|
|
1631
|
-
_ =
|
|
1631
|
+
_ = l.mods[0];
|
|
1632
1632
|
break;
|
|
1633
1633
|
case this.gcaseDat:
|
|
1634
|
-
_ =
|
|
1634
|
+
_ = l.mods[1];
|
|
1635
1635
|
break;
|
|
1636
1636
|
case this.gcaseAcc:
|
|
1637
|
-
_ =
|
|
1637
|
+
_ = l.mods[2];
|
|
1638
1638
|
break;
|
|
1639
1639
|
case this.gcaseIns:
|
|
1640
|
-
_ =
|
|
1640
|
+
_ = l.mods[3];
|
|
1641
1641
|
break;
|
|
1642
1642
|
case this.gcasePos:
|
|
1643
|
-
_ =
|
|
1643
|
+
_ = l.mods[4];
|
|
1644
1644
|
break;
|
|
1645
1645
|
}
|
|
1646
1646
|
for (var u = 0, x = _.length; u < x; u++) {
|
|
@@ -1718,10 +1718,10 @@ function Us(e, t, n) {
|
|
|
1718
1718
|
let r = t / e * n;
|
|
1719
1719
|
return (typeof r != "number" || r === 1 / 0) && (r = 0), parseFloat(r).toFixed(1);
|
|
1720
1720
|
}
|
|
1721
|
-
function
|
|
1721
|
+
function Ws(e) {
|
|
1722
1722
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
1723
1723
|
}
|
|
1724
|
-
function
|
|
1724
|
+
function Gs(e, t) {
|
|
1725
1725
|
e = Math.abs(e) % 100;
|
|
1726
1726
|
let n = e % 10;
|
|
1727
1727
|
return e > 10 && e < 20 ? t[2] : n > 1 && n < 5 ? t[1] : n === 1 ? t[0] : t[2];
|
|
@@ -1883,8 +1883,8 @@ const H = {
|
|
|
1883
1883
|
Money: Os,
|
|
1884
1884
|
Number: Zs,
|
|
1885
1885
|
Percent: Us,
|
|
1886
|
-
CapitalizeFirstLetter:
|
|
1887
|
-
DeclensionWord:
|
|
1886
|
+
CapitalizeFirstLetter: Ws,
|
|
1887
|
+
DeclensionWord: Gs,
|
|
1888
1888
|
Select: zs,
|
|
1889
1889
|
SelectParams: Ks,
|
|
1890
1890
|
ObjectByArray: qs,
|
|
@@ -1899,14 +1899,14 @@ const H = {
|
|
|
1899
1899
|
s.s = !0;
|
|
1900
1900
|
const i = 1e3, o = n / (r * 10);
|
|
1901
1901
|
s.n = 0;
|
|
1902
|
-
let
|
|
1902
|
+
let c = i / (n / o), l = e ? e + " " : "";
|
|
1903
1903
|
return s.i = setInterval(() => {
|
|
1904
1904
|
if (!s.s)
|
|
1905
|
-
return s.current.textContent = `${
|
|
1905
|
+
return s.current.textContent = `${l}` + H.Money(n), clearInterval(s.i);
|
|
1906
1906
|
if (n === 0)
|
|
1907
|
-
return s.current.textContent = `${
|
|
1908
|
-
s.n = s.n + o, s.n > n && s.n >= n && (s.n = n, clearInterval(s.i)), s.current && (s.current.textContent = `${
|
|
1909
|
-
},
|
|
1907
|
+
return s.current.textContent = `${l}` + H.Money(n), clearInterval(s.i);
|
|
1908
|
+
s.n = s.n + o, s.n > n && s.n >= n && (s.n = n, clearInterval(s.i)), s.current && (s.current.textContent = `${l}` + H.Money(s.n));
|
|
1909
|
+
}, c), () => {
|
|
1910
1910
|
s.s = !1, clearInterval(s.i);
|
|
1911
1911
|
};
|
|
1912
1912
|
}, [t, n]), /* @__PURE__ */ a.jsx("span", { ref: s });
|
|
@@ -1998,10 +1998,10 @@ function Ui({ children: e, viev: t = "row", className: n }) {
|
|
|
1998
1998
|
let r = {};
|
|
1999
1999
|
return n && (r.className = n), /* @__PURE__ */ a.jsx("ul", { className: [re.f, re[t], r.className].join(" "), children: e });
|
|
2000
2000
|
}
|
|
2001
|
-
function
|
|
2001
|
+
function Wi({ children: e }) {
|
|
2002
2002
|
return /* @__PURE__ */ a.jsx("div", { className: re.c, children: e });
|
|
2003
2003
|
}
|
|
2004
|
-
function
|
|
2004
|
+
function Gi({ children: e }) {
|
|
2005
2005
|
return /* @__PURE__ */ a.jsx("div", { className: re.g, children: e });
|
|
2006
2006
|
}
|
|
2007
2007
|
const zi = "_btn_294gf_1", Ki = "_confirm_294gf_15", Hi = "_cancel_294gf_20", Yi = "_action_294gf_25", qi = "_disabled_294gf_30", Ji = "_m_294gf_44", Xi = "_l_294gf_48", Ve = {
|
|
@@ -2021,8 +2021,8 @@ const zi = "_btn_294gf_1", Ki = "_confirm_294gf_15", Hi = "_cancel_294gf_20", Yi
|
|
|
2021
2021
|
mode: s = "primary",
|
|
2022
2022
|
children: i,
|
|
2023
2023
|
isDisabled: o = !1,
|
|
2024
|
-
className:
|
|
2025
|
-
after:
|
|
2024
|
+
className: c,
|
|
2025
|
+
after: l,
|
|
2026
2026
|
before: _,
|
|
2027
2027
|
label: u,
|
|
2028
2028
|
onRef: x,
|
|
@@ -2043,7 +2043,7 @@ const zi = "_btn_294gf_1", Ki = "_confirm_294gf_15", Hi = "_cancel_294gf_20", Yi
|
|
|
2043
2043
|
Ve.btn,
|
|
2044
2044
|
m ? Ve.disabled : Ve[r],
|
|
2045
2045
|
n && Ve[n],
|
|
2046
|
-
|
|
2046
|
+
c
|
|
2047
2047
|
].join(" "),
|
|
2048
2048
|
onClick: g,
|
|
2049
2049
|
children: m ? f : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
@@ -2051,7 +2051,7 @@ const zi = "_btn_294gf_1", Ki = "_confirm_294gf_15", Hi = "_cancel_294gf_20", Yi
|
|
|
2051
2051
|
" ",
|
|
2052
2052
|
u,
|
|
2053
2053
|
" ",
|
|
2054
|
-
|
|
2054
|
+
l || ""
|
|
2055
2055
|
] }) || i
|
|
2056
2056
|
}
|
|
2057
2057
|
);
|
|
@@ -2073,9 +2073,9 @@ function eo({
|
|
|
2073
2073
|
size: s = "m",
|
|
2074
2074
|
className: i = "",
|
|
2075
2075
|
shake: o = !0,
|
|
2076
|
-
menu:
|
|
2076
|
+
menu: c
|
|
2077
2077
|
}) {
|
|
2078
|
-
const [
|
|
2078
|
+
const [l, _] = h.useState(!0), u = h.useRef(), x = (m) => {
|
|
2079
2079
|
if (n) {
|
|
2080
2080
|
if (n.onClick)
|
|
2081
2081
|
return m(!1), n.onClick({ setOpen: _ });
|
|
@@ -2091,7 +2091,7 @@ function eo({
|
|
|
2091
2091
|
u.current.setAttribute("shake", !1);
|
|
2092
2092
|
}, 1e3);
|
|
2093
2093
|
};
|
|
2094
|
-
return /* @__PURE__ */ a.jsx(a.Fragment, { children:
|
|
2094
|
+
return /* @__PURE__ */ a.jsx(a.Fragment, { children: l ? /* @__PURE__ */ a.jsxs(
|
|
2095
2095
|
"div",
|
|
2096
2096
|
{
|
|
2097
2097
|
className: `${re.modal}`,
|
|
@@ -2119,7 +2119,7 @@ function eo({
|
|
|
2119
2119
|
},
|
|
2120
2120
|
v
|
|
2121
2121
|
)) }),
|
|
2122
|
-
|
|
2122
|
+
c
|
|
2123
2123
|
] }),
|
|
2124
2124
|
/* @__PURE__ */ a.jsx(
|
|
2125
2125
|
"div",
|
|
@@ -2195,9 +2195,9 @@ const rt = {
|
|
|
2195
2195
|
Open: so,
|
|
2196
2196
|
Shake: ao,
|
|
2197
2197
|
Form: Ui,
|
|
2198
|
-
Center:
|
|
2198
|
+
Center: Wi,
|
|
2199
2199
|
Close: io,
|
|
2200
|
-
Column:
|
|
2200
|
+
Column: Gi
|
|
2201
2201
|
};
|
|
2202
2202
|
function Zn({ text: e, type: t, button: n }) {
|
|
2203
2203
|
let [r, s] = h.useState(!1), i = { active: t };
|
|
@@ -2412,22 +2412,22 @@ const yo = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
|
|
|
2412
2412
|
/* @__PURE__ */ a.jsx("i", {}),
|
|
2413
2413
|
/* @__PURE__ */ a.jsx("i", {}),
|
|
2414
2414
|
/* @__PURE__ */ a.jsx("i", {})
|
|
2415
|
-
] }) : s.list.length === 0 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : s.list.map((
|
|
2415
|
+
] }) : s.list.length === 0 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : s.list.map((c, l) => /* @__PURE__ */ a.jsx(To, { dispatch: i, data: c }, l)) })
|
|
2416
2416
|
] });
|
|
2417
2417
|
}, No = ({ id: e, dir: t, dispatch: n }) => {
|
|
2418
2418
|
let [r, s] = h.useState(!0), i = h.useRef(null), o = (_) => {
|
|
2419
2419
|
_.preventDefault(), _.stopPropagation();
|
|
2420
|
-
}, l = (_) => {
|
|
2421
2420
|
}, c = (_) => {
|
|
2421
|
+
}, l = (_) => {
|
|
2422
2422
|
};
|
|
2423
2423
|
return h.useEffect(() => {
|
|
2424
2424
|
let _ = i.current;
|
|
2425
2425
|
["dragenter", "dragover", "dragleave", "drop"].forEach((u) => {
|
|
2426
2426
|
_.addEventListener(u, o, !1), document.body.addEventListener(u, o, !1);
|
|
2427
2427
|
}), ["dragenter", "dragover"].forEach((u) => {
|
|
2428
|
-
_.addEventListener(u, l, !1);
|
|
2429
|
-
}), ["dragleave", "drop"].forEach((u) => {
|
|
2430
2428
|
_.addEventListener(u, c, !1);
|
|
2429
|
+
}), ["dragleave", "drop"].forEach((u) => {
|
|
2430
|
+
_.addEventListener(u, l, !1);
|
|
2431
2431
|
});
|
|
2432
2432
|
}, []), /* @__PURE__ */ a.jsx(a.Fragment, { children: r ? /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsx(
|
|
2433
2433
|
"div",
|
|
@@ -2474,8 +2474,8 @@ const yo = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
|
|
|
2474
2474
|
if (i.size !== 2) {
|
|
2475
2475
|
let o = new Blob([i], { type: i.type });
|
|
2476
2476
|
o = URL.createObjectURL(o);
|
|
2477
|
-
let
|
|
2478
|
-
|
|
2477
|
+
let c = document.createElement("a");
|
|
2478
|
+
c.setAttribute("href", o), c.setAttribute("download", e.name), c.click();
|
|
2479
2479
|
}
|
|
2480
2480
|
}, r = async () => {
|
|
2481
2481
|
(await (await fetch(kt.url().files + "/yandex/delete/" + e.id, {
|
|
@@ -2544,16 +2544,16 @@ const Mo = () => {
|
|
|
2544
2544
|
let i = Object.keys(q.list);
|
|
2545
2545
|
if (i.length !== 0) {
|
|
2546
2546
|
let o = [];
|
|
2547
|
-
i.forEach((
|
|
2547
|
+
i.forEach((c, l) => {
|
|
2548
2548
|
o.push({
|
|
2549
2549
|
item: /* @__PURE__ */ a.jsx(
|
|
2550
2550
|
bt,
|
|
2551
2551
|
{
|
|
2552
|
-
data: q.list[
|
|
2552
|
+
data: q.list[c]
|
|
2553
2553
|
},
|
|
2554
|
-
q.list[
|
|
2554
|
+
q.list[c].id
|
|
2555
2555
|
),
|
|
2556
|
-
link: q.list[
|
|
2556
|
+
link: q.list[c].link
|
|
2557
2557
|
});
|
|
2558
2558
|
}), t(o);
|
|
2559
2559
|
}
|
|
@@ -2567,8 +2567,8 @@ const Mo = () => {
|
|
|
2567
2567
|
{ item: /* @__PURE__ */ a.jsx(bt, { data: i }, i.id), link: i.link }
|
|
2568
2568
|
]);
|
|
2569
2569
|
}, q.del = (i) => {
|
|
2570
|
-
e.forEach((o,
|
|
2571
|
-
o.link === i && e.splice(
|
|
2570
|
+
e.forEach((o, c) => {
|
|
2571
|
+
o.link === i && e.splice(c, 1);
|
|
2572
2572
|
}), t([...e]);
|
|
2573
2573
|
}, (s = document.querySelector("app-body")) == null || s.setAttribute(
|
|
2574
2574
|
"bookmarks",
|
|
@@ -2731,10 +2731,10 @@ function Po({ id: e, type: t }) {
|
|
|
2731
2731
|
const [n, r] = h.useState({}), [s, i] = h.useState(t);
|
|
2732
2732
|
h.useEffect(() => {
|
|
2733
2733
|
r(V.getSelect("user")[e]);
|
|
2734
|
-
}, []), Y.useListener((
|
|
2735
|
-
switch (
|
|
2734
|
+
}, []), Y.useListener((l) => {
|
|
2735
|
+
switch (l.type) {
|
|
2736
2736
|
case "state":
|
|
2737
|
-
i(
|
|
2737
|
+
i(l.data);
|
|
2738
2738
|
}
|
|
2739
2739
|
});
|
|
2740
2740
|
const o = () => {
|
|
@@ -2761,7 +2761,7 @@ function Po({ id: e, type: t }) {
|
|
|
2761
2761
|
);
|
|
2762
2762
|
case "in":
|
|
2763
2763
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2764
|
-
/* @__PURE__ */ a.jsx("span", { onClick:
|
|
2764
|
+
/* @__PURE__ */ a.jsx("span", { onClick: c, children: /* @__PURE__ */ a.jsx(
|
|
2765
2765
|
"svg",
|
|
2766
2766
|
{
|
|
2767
2767
|
className: "red",
|
|
@@ -2817,11 +2817,11 @@ function Po({ id: e, type: t }) {
|
|
|
2817
2817
|
}
|
|
2818
2818
|
);
|
|
2819
2819
|
}
|
|
2820
|
-
},
|
|
2820
|
+
}, c = () => {
|
|
2821
2821
|
Y.callRefuser(n.id), Pe.del();
|
|
2822
2822
|
};
|
|
2823
2823
|
return /* @__PURE__ */ a.jsx("div", { className: "web-phone white", children: /* @__PURE__ */ a.jsxs("div", { className: "w", children: [
|
|
2824
|
-
/* @__PURE__ */ a.jsx("div", { className: "x", "data-icon": "F038", onClick:
|
|
2824
|
+
/* @__PURE__ */ a.jsx("div", { className: "x", "data-icon": "F038", onClick: c }),
|
|
2825
2825
|
/* @__PURE__ */ a.jsx("div", { className: "a" }),
|
|
2826
2826
|
/* @__PURE__ */ a.jsx("div", { className: "n", children: n.name }),
|
|
2827
2827
|
/* @__PURE__ */ a.jsx("div", { className: "b", children: o() })
|
|
@@ -2867,26 +2867,28 @@ function Uo({
|
|
|
2867
2867
|
dev: s,
|
|
2868
2868
|
...i
|
|
2869
2869
|
}) {
|
|
2870
|
-
const o = (
|
|
2870
|
+
const o = (l) => {
|
|
2871
2871
|
i.element ? Ae.set(
|
|
2872
2872
|
/* @__PURE__ */ a.jsx(
|
|
2873
2873
|
i.element,
|
|
2874
2874
|
{
|
|
2875
2875
|
content: e,
|
|
2876
|
-
position:
|
|
2876
|
+
position: l.currentTarget.getBoundingClientRect(),
|
|
2877
|
+
update: Date.now()
|
|
2877
2878
|
}
|
|
2878
2879
|
)
|
|
2879
2880
|
) : Ae.set(
|
|
2880
2881
|
/* @__PURE__ */ a.jsx(
|
|
2881
|
-
|
|
2882
|
+
Wo,
|
|
2882
2883
|
{
|
|
2884
|
+
update: Date.now(),
|
|
2883
2885
|
orientation: r,
|
|
2884
2886
|
content: e,
|
|
2885
|
-
position:
|
|
2887
|
+
position: l.currentTarget.getBoundingClientRect()
|
|
2886
2888
|
}
|
|
2887
2889
|
)
|
|
2888
2890
|
);
|
|
2889
|
-
},
|
|
2891
|
+
}, c = () => {
|
|
2890
2892
|
s || Ae.del();
|
|
2891
2893
|
};
|
|
2892
2894
|
return /* @__PURE__ */ a.jsx(
|
|
@@ -2894,47 +2896,51 @@ function Uo({
|
|
|
2894
2896
|
{
|
|
2895
2897
|
className: n,
|
|
2896
2898
|
onMouseOver: o,
|
|
2897
|
-
onMouseOut:
|
|
2899
|
+
onMouseOut: c,
|
|
2898
2900
|
children: t
|
|
2899
2901
|
}
|
|
2900
2902
|
);
|
|
2901
2903
|
}
|
|
2902
|
-
const
|
|
2903
|
-
const
|
|
2904
|
+
const Wo = ({ content: e, position: t, orientation: n, update: r }) => {
|
|
2905
|
+
const s = h.useRef(null);
|
|
2904
2906
|
return h.useEffect(() => {
|
|
2905
|
-
const
|
|
2906
|
-
|
|
2907
|
+
const i = s.current;
|
|
2908
|
+
i.style.opacity = "0";
|
|
2909
|
+
const o = i.getBoundingClientRect();
|
|
2910
|
+
let c = t.width / 2;
|
|
2911
|
+
i.style.width = o.width + "px";
|
|
2912
|
+
let l = 0;
|
|
2907
2913
|
switch (n) {
|
|
2908
2914
|
case "up":
|
|
2909
|
-
l = t.left +
|
|
2915
|
+
l = t.left + c - o.width / 2 - 10, l = window.innerWidth < l + o.width ? window.innerWidth - o.width - 20 : l, l = l < 0 ? 0 : l, i.style.left = l + "px", i.style.top = t.top - o.height - 10 + "px";
|
|
2910
2916
|
break;
|
|
2911
2917
|
case "down":
|
|
2912
|
-
l = t.left +
|
|
2918
|
+
l = t.left + c - o.width / 2, l = l < 0 ? 0 : l, i.style.left = l + "px", i.style.top = t.bottom + 10 + "px";
|
|
2913
2919
|
break;
|
|
2914
2920
|
case "left":
|
|
2915
|
-
|
|
2921
|
+
i.style.top = t.top + "px", i.style.left = t.left - o.width - t.width + "px";
|
|
2916
2922
|
break;
|
|
2917
2923
|
case "right":
|
|
2918
|
-
|
|
2924
|
+
i.style.top = t.top + "px", i.style.left = t.right + "px";
|
|
2919
2925
|
break;
|
|
2920
2926
|
}
|
|
2921
|
-
|
|
2922
|
-
}, []), /* @__PURE__ */ a.jsx("div", { ref:
|
|
2927
|
+
i.style.transition = "opacity 0.3s", i.style.textAlign = "center", i.style.opacity = "1";
|
|
2928
|
+
}, [r]), /* @__PURE__ */ a.jsx("div", { ref: s, className: "tooltip", children: e });
|
|
2923
2929
|
};
|
|
2924
2930
|
let Qe = {}, Et = {}, Dt = "ru";
|
|
2925
|
-
const
|
|
2931
|
+
const Go = (e, t) => {
|
|
2926
2932
|
Et = e, t ? Dt = t : Dt = Object.keys(e)[0];
|
|
2927
|
-
},
|
|
2933
|
+
}, Wn = wn(
|
|
2928
2934
|
localStorage.getItem("lang") || navigator.language
|
|
2929
2935
|
), zo = ({ children: e }) => {
|
|
2930
2936
|
const [t, n] = h.useState(
|
|
2931
2937
|
localStorage.getItem("lang") || navigator.language
|
|
2932
2938
|
);
|
|
2933
|
-
return Qe.update = n, /* @__PURE__ */ a.jsx(
|
|
2939
|
+
return Qe.update = n, /* @__PURE__ */ a.jsx(Wn.Provider, { value: Et[t] || Et[Dt], children: e });
|
|
2934
2940
|
}, Ko = (e) => {
|
|
2935
2941
|
var t;
|
|
2936
2942
|
localStorage.setItem("lang", e), (t = Qe.update) == null || t.call(Qe, e);
|
|
2937
|
-
}, Ho = () => Ka(
|
|
2943
|
+
}, Ho = () => Ka(Wn), Yo = () => localStorage.getItem("lang") || navigator.language;
|
|
2938
2944
|
wn({
|
|
2939
2945
|
tab: "",
|
|
2940
2946
|
setTabs: (e) => {
|
|
@@ -3010,7 +3016,7 @@ const Zd = ({ children: e, ...t }) => /* @__PURE__ */ a.jsxs("div", { className:
|
|
|
3010
3016
|
)) }) }), ol = ({ onClick: e, label: t, link: n, active: r }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(r === n), onClick: () => e(n), children: t }), ll = "_tabs_1i88v_1", cl = "_tab_1i88v_1", vn = {
|
|
3011
3017
|
tabs: ll,
|
|
3012
3018
|
tab: cl
|
|
3013
|
-
},
|
|
3019
|
+
}, Gn = ({ list: e = [], active: t, onTab: n }) => {
|
|
3014
3020
|
const r = (s) => {
|
|
3015
3021
|
if (n) return n(s);
|
|
3016
3022
|
Tn(s);
|
|
@@ -3035,16 +3041,16 @@ const Zd = ({ children: e, ...t }) => /* @__PURE__ */ a.jsxs("div", { className:
|
|
|
3035
3041
|
}) => {
|
|
3036
3042
|
const [i, o] = h.useState(t);
|
|
3037
3043
|
return /* @__PURE__ */ a.jsxs("div", { className: ["tabs-button", r].join(" "), children: [
|
|
3038
|
-
/* @__PURE__ */ a.jsx("ul", { children: e.map((
|
|
3044
|
+
/* @__PURE__ */ a.jsx("ul", { children: e.map((c) => /* @__PURE__ */ a.jsx(
|
|
3039
3045
|
_l,
|
|
3040
3046
|
{
|
|
3041
|
-
data:
|
|
3042
|
-
light:
|
|
3047
|
+
data: c,
|
|
3048
|
+
light: c.light,
|
|
3043
3049
|
setTabs: o,
|
|
3044
|
-
active:
|
|
3050
|
+
active: c.id === i,
|
|
3045
3051
|
onChange: n
|
|
3046
3052
|
},
|
|
3047
|
-
|
|
3053
|
+
c.id
|
|
3048
3054
|
)) }),
|
|
3049
3055
|
s
|
|
3050
3056
|
] });
|
|
@@ -3066,7 +3072,7 @@ const Zd = ({ children: e, ...t }) => /* @__PURE__ */ a.jsxs("div", { className:
|
|
|
3066
3072
|
]
|
|
3067
3073
|
}
|
|
3068
3074
|
);
|
|
3069
|
-
}, Ud = { List: il, Lite:
|
|
3075
|
+
}, Ud = { List: il, Lite: Gn, Button: dl }, ul = ({
|
|
3070
3076
|
title: e = "",
|
|
3071
3077
|
button: t,
|
|
3072
3078
|
description: n = "",
|
|
@@ -3139,7 +3145,7 @@ function zn({ list: e, onClick: t, active: n, size: r, view: s }) {
|
|
|
3139
3145
|
}
|
|
3140
3146
|
const Sl = ({ onClick: e, label: t, link: n, active: r }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(r === n), onClick: () => e(n), children: t });
|
|
3141
3147
|
zn.defaultProps = { size: "M", view: "H" };
|
|
3142
|
-
const
|
|
3148
|
+
const Wd = { Section: ul, Main: hl, Item: wl, Tabs: zn };
|
|
3143
3149
|
function El({ value: e, background: t, gradient: n }) {
|
|
3144
3150
|
let r = 835.24, s = r - e / 100 * r;
|
|
3145
3151
|
const i = h.useId();
|
|
@@ -3150,13 +3156,13 @@ function El({ value: e, background: t, gradient: n }) {
|
|
|
3150
3156
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3151
3157
|
style: { borderRadius: "50%", background: t },
|
|
3152
3158
|
children: [
|
|
3153
|
-
n && /* @__PURE__ */ a.jsx("linearGradient", { id: i, x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: n.map((o,
|
|
3159
|
+
n && /* @__PURE__ */ a.jsx("linearGradient", { id: i, x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: n.map((o, c) => /* @__PURE__ */ a.jsx(
|
|
3154
3160
|
"stop",
|
|
3155
3161
|
{
|
|
3156
3162
|
offset: o[0],
|
|
3157
3163
|
stopColor: o[1]
|
|
3158
3164
|
},
|
|
3159
|
-
|
|
3165
|
+
c
|
|
3160
3166
|
)) }),
|
|
3161
3167
|
/* @__PURE__ */ a.jsx(
|
|
3162
3168
|
"circle",
|
|
@@ -3177,7 +3183,7 @@ function El({ value: e, background: t, gradient: n }) {
|
|
|
3177
3183
|
}
|
|
3178
3184
|
);
|
|
3179
3185
|
}
|
|
3180
|
-
const
|
|
3186
|
+
const Gd = {
|
|
3181
3187
|
Circle: El
|
|
3182
3188
|
}, zd = { Icon: Lo, Item: bt, Active: Bo }, Dl = { Send: fi, Line: Zn };
|
|
3183
3189
|
function Rl() {
|
|
@@ -3272,24 +3278,24 @@ function Kn({
|
|
|
3272
3278
|
searchParams: s = ["p01", "p02", "p03"],
|
|
3273
3279
|
...i
|
|
3274
3280
|
}) {
|
|
3275
|
-
const [o,
|
|
3281
|
+
const [o, c] = h.useState([]), [l, _] = h.useState([]), [u, x] = h.useState(!1), f = async () => {
|
|
3276
3282
|
let m = await kt.fetch(e, t);
|
|
3277
|
-
m.data && m.data.length > 0 && (
|
|
3283
|
+
m.data && m.data.length > 0 && (c(m.data), _(m.data)), x(!0);
|
|
3278
3284
|
};
|
|
3279
3285
|
return he.useListener("list_children", (m) => {
|
|
3280
3286
|
if (m.action === "edit") {
|
|
3281
|
-
let v =
|
|
3287
|
+
let v = l.map(
|
|
3282
3288
|
(g) => g.id === m.id ? Object.assign(g, { [m.name]: m.value }) : g
|
|
3283
3289
|
);
|
|
3284
|
-
|
|
3290
|
+
c(v), _(v);
|
|
3285
3291
|
}
|
|
3286
3292
|
if (m.action === "delete") {
|
|
3287
|
-
let v =
|
|
3288
|
-
|
|
3293
|
+
let v = l.filter((g) => g.id !== m.id);
|
|
3294
|
+
c(v), _(v);
|
|
3289
3295
|
}
|
|
3290
3296
|
}), he.useListener("search", (m) => {
|
|
3291
|
-
|
|
3292
|
-
|
|
3297
|
+
c(
|
|
3298
|
+
l.filter((v) => ("" + s.map((p) => v[p]).toString()).toLowerCase().includes(m.toLowerCase()))
|
|
3293
3299
|
);
|
|
3294
3300
|
}), h.useEffect(() => {
|
|
3295
3301
|
f(), n && he.setListener("button", n);
|
|
@@ -3353,27 +3359,27 @@ function Zl(e) {
|
|
|
3353
3359
|
function Ul(e, t, n) {
|
|
3354
3360
|
let r = 1, s = 0, i = {}, o = 50;
|
|
3355
3361
|
i[r] = [];
|
|
3356
|
-
let
|
|
3357
|
-
switch (
|
|
3362
|
+
let c = {}, l = "s1a";
|
|
3363
|
+
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), n.active) {
|
|
3358
3364
|
case 1:
|
|
3359
|
-
|
|
3365
|
+
l = n.sort === ">" ? "s1d" : "s1a";
|
|
3360
3366
|
break;
|
|
3361
3367
|
case 2:
|
|
3362
|
-
|
|
3368
|
+
l = n.sort === ">" ? "s2d" : "s2a";
|
|
3363
3369
|
break;
|
|
3364
3370
|
case 3:
|
|
3365
|
-
|
|
3371
|
+
l = n.sort === ">" ? "s3d" : "s3a";
|
|
3366
3372
|
break;
|
|
3367
3373
|
}
|
|
3368
|
-
return t.sort(l
|
|
3374
|
+
return t.sort(c[l]).forEach((_) => {
|
|
3369
3375
|
s++, s <= o || (r++, s = 1, i[r] = []), i[r].push(e[_.id]);
|
|
3370
3376
|
}), { data: i };
|
|
3371
3377
|
}
|
|
3372
|
-
function
|
|
3378
|
+
function Wl(e) {
|
|
3373
3379
|
st.count(e);
|
|
3374
3380
|
}
|
|
3375
|
-
const qd = { Init: Al, useValue: Ol, Set: Zl, Run: Ul, Count:
|
|
3376
|
-
function
|
|
3381
|
+
const qd = { Init: Al, useValue: Ol, Set: Zl, Run: Ul, Count: Wl }, et = {}, Hn = {};
|
|
3382
|
+
function Gl(e) {
|
|
3377
3383
|
const [t, n] = h.useState({}), r = async (s) => {
|
|
3378
3384
|
n(
|
|
3379
3385
|
Object.keys(et).reduce((i, o) => (i ? i[o] = et[o].all : i = {}, i), {})
|
|
@@ -3390,7 +3396,7 @@ function zl(e, t) {
|
|
|
3390
3396
|
break;
|
|
3391
3397
|
}
|
|
3392
3398
|
}
|
|
3393
|
-
const Jd = { useMenu:
|
|
3399
|
+
const Jd = { useMenu: Gl, setUpdate: zl };
|
|
3394
3400
|
class Kl {
|
|
3395
3401
|
constructor(t = "el", n = "db") {
|
|
3396
3402
|
gt(this, "storeName");
|
|
@@ -3437,13 +3443,13 @@ const Te = () => (pt || (pt = new Kl()), pt), ke = (e, t, n = Te()) => n._withID
|
|
|
3437
3443
|
};
|
|
3438
3444
|
}).then(() => t);
|
|
3439
3445
|
}, ql = (e, t, n = [], r = {}) => {
|
|
3440
|
-
let s = n.length !== 0, i = [], o = r.sort,
|
|
3446
|
+
let s = n.length !== 0, i = [], o = r.sort, c = Object.keys(r).length !== 0, l = Object.keys(r), _ = Object.keys(e), u = [], x = (m) => {
|
|
3441
3447
|
let v = "";
|
|
3442
3448
|
if (n.forEach((g) => {
|
|
3443
3449
|
v += t[m][g];
|
|
3444
|
-
}),
|
|
3450
|
+
}), c) {
|
|
3445
3451
|
let g = {};
|
|
3446
|
-
|
|
3452
|
+
l.forEach((p) => {
|
|
3447
3453
|
g[p] = t[m][p];
|
|
3448
3454
|
});
|
|
3449
3455
|
for (let p in o)
|
|
@@ -3456,18 +3462,18 @@ const Te = () => (pt || (pt = new Kl()), pt), ke = (e, t, n = Te()) => n._withID
|
|
|
3456
3462
|
return _.forEach((m) => {
|
|
3457
3463
|
u.push(t[m]);
|
|
3458
3464
|
}), u.forEach((m) => {
|
|
3459
|
-
m === void 0 ? (Nt(), location.reload()) : (s && x(m.id),
|
|
3465
|
+
m === void 0 ? (Nt(), location.reload()) : (s && x(m.id), c && f(m.id));
|
|
3460
3466
|
}), { list: u, search: i, filter: r };
|
|
3461
3467
|
}, Jl = (e, t, n, r = Te()) => {
|
|
3462
3468
|
if (X[e] === void 0)
|
|
3463
3469
|
return new Promise((s, i) => {
|
|
3464
3470
|
let o;
|
|
3465
|
-
r._withIDBStore("readonly", (
|
|
3466
|
-
o =
|
|
3471
|
+
r._withIDBStore("readonly", (c) => {
|
|
3472
|
+
o = c.get(e);
|
|
3467
3473
|
}).then(() => {
|
|
3468
3474
|
if (o.result !== void 0) {
|
|
3469
|
-
let
|
|
3470
|
-
X[e] =
|
|
3475
|
+
let c = A.deCode(o.result);
|
|
3476
|
+
X[e] = c, X[e][t.id] = {
|
|
3471
3477
|
...X[e][t.id],
|
|
3472
3478
|
...t.data
|
|
3473
3479
|
}, r.put(A.enCode(X[e]), e), s({});
|
|
@@ -3586,7 +3592,7 @@ function dc({
|
|
|
3586
3592
|
h.useEffect(() => {
|
|
3587
3593
|
s.current.scrollTop = 0, e !== null && o({ type: "load", load: !0, data: e });
|
|
3588
3594
|
}, [t]);
|
|
3589
|
-
let
|
|
3595
|
+
let c = () => {
|
|
3590
3596
|
s.current.scrollHeight - s.current.scrollTop - 300 <= s.current.clientHeight && !i.wait && o({ type: "update" });
|
|
3591
3597
|
};
|
|
3592
3598
|
return /* @__PURE__ */ a.jsx(
|
|
@@ -3594,8 +3600,8 @@ function dc({
|
|
|
3594
3600
|
{
|
|
3595
3601
|
className: [lc.s, n].join(" "),
|
|
3596
3602
|
ref: s,
|
|
3597
|
-
onScroll:
|
|
3598
|
-
children: /* @__PURE__ */ a.jsx(Yn, { "el-empty": "Данные не найдены", children: i.load && i.list !== void 0 ? i.list.map((
|
|
3603
|
+
onScroll: c,
|
|
3604
|
+
children: /* @__PURE__ */ a.jsx(Yn, { "el-empty": "Данные не найдены", children: i.load && i.list !== void 0 ? i.list.map((l) => /* @__PURE__ */ a.jsx(r.item, { data: l }, l.id)) : /* @__PURE__ */ a.jsxs("div", { "data-load": "load", children: [
|
|
3599
3605
|
/* @__PURE__ */ a.jsx("i", {}),
|
|
3600
3606
|
/* @__PURE__ */ a.jsx("i", {}),
|
|
3601
3607
|
/* @__PURE__ */ a.jsx("i", {})
|
|
@@ -3651,8 +3657,8 @@ function Ue({
|
|
|
3651
3657
|
placeholder: s = "",
|
|
3652
3658
|
title: i = "",
|
|
3653
3659
|
error: o = "",
|
|
3654
|
-
hide:
|
|
3655
|
-
edit:
|
|
3660
|
+
hide: c = !1,
|
|
3661
|
+
edit: l = !0,
|
|
3656
3662
|
active: _ = !0,
|
|
3657
3663
|
after: u = "",
|
|
3658
3664
|
before: x = "",
|
|
@@ -3663,7 +3669,7 @@ function Ue({
|
|
|
3663
3669
|
isCopy: p = !0,
|
|
3664
3670
|
isReload: y = !1
|
|
3665
3671
|
}) {
|
|
3666
|
-
let C = !!(
|
|
3672
|
+
let C = !!(c && (t === "" || t === void 0)), D = (w) => {
|
|
3667
3673
|
n && n({
|
|
3668
3674
|
value: w.target.textContent.trim(),
|
|
3669
3675
|
name: r,
|
|
@@ -3694,11 +3700,11 @@ function Ue({
|
|
|
3694
3700
|
}).catch((B) => {
|
|
3695
3701
|
});
|
|
3696
3702
|
};
|
|
3697
|
-
if (!(
|
|
3703
|
+
if (!(l && _) && !f || !(l && _) && C) return "";
|
|
3698
3704
|
const M = {};
|
|
3699
3705
|
M.field = "input", g && (M.className = g);
|
|
3700
3706
|
const R = {};
|
|
3701
|
-
s && (R.placeholder = s),
|
|
3707
|
+
s && (R.placeholder = s), l && _ && (R.edit = "");
|
|
3702
3708
|
const Z = (w) => {
|
|
3703
3709
|
z.Blur(w), v == null || v({ value: w.target.textContent.trim(), name: r });
|
|
3704
3710
|
};
|
|
@@ -3714,7 +3720,7 @@ function Ue({
|
|
|
3714
3720
|
onKeyDown: N,
|
|
3715
3721
|
onContextMenu: T,
|
|
3716
3722
|
spellCheck: "true",
|
|
3717
|
-
contentEditable:
|
|
3723
|
+
contentEditable: l && _ ? z.ContentEditable : "false",
|
|
3718
3724
|
suppressContentEditableWarning: !0,
|
|
3719
3725
|
...R,
|
|
3720
3726
|
children: t
|
|
@@ -3749,8 +3755,8 @@ function Xn({
|
|
|
3749
3755
|
name: s,
|
|
3750
3756
|
view: i,
|
|
3751
3757
|
maxLength: o,
|
|
3752
|
-
edit:
|
|
3753
|
-
active:
|
|
3758
|
+
edit: c = !0,
|
|
3759
|
+
active: l = !0,
|
|
3754
3760
|
placeholder: _ = "Введите сообщение"
|
|
3755
3761
|
}) {
|
|
3756
3762
|
const u = h.useRef({
|
|
@@ -3783,7 +3789,7 @@ function Xn({
|
|
|
3783
3789
|
}, y = {
|
|
3784
3790
|
spellCheck: "true"
|
|
3785
3791
|
};
|
|
3786
|
-
return _ && (y.placeholder = _),
|
|
3792
|
+
return _ && (y.placeholder = _), c && l && (y.contentEditable = z.ContentEditable), /* @__PURE__ */ a.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ a.jsx(
|
|
3787
3793
|
"dd",
|
|
3788
3794
|
{
|
|
3789
3795
|
onPaste: g,
|
|
@@ -3798,12 +3804,12 @@ function Xn({
|
|
|
3798
3804
|
) });
|
|
3799
3805
|
}
|
|
3800
3806
|
function Vn(e) {
|
|
3801
|
-
let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = e.edit !== void 0 ? e.edit : !0, r = e.active !== void 0 ? e.active : !0, s = e.placeholder !== void 0 ? e.placeholder : "", i = (
|
|
3802
|
-
e.onValue({ value:
|
|
3803
|
-
}, o = (
|
|
3804
|
-
|
|
3805
|
-
},
|
|
3806
|
-
|
|
3807
|
+
let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = e.edit !== void 0 ? e.edit : !0, r = e.active !== void 0 ? e.active : !0, s = e.placeholder !== void 0 ? e.placeholder : "", i = (l) => {
|
|
3808
|
+
e.onValue({ value: l.target.textContent, name: e.name });
|
|
3809
|
+
}, o = (l) => {
|
|
3810
|
+
l.key === "Enter" && l.preventDefault();
|
|
3811
|
+
}, c = (l) => {
|
|
3812
|
+
l.preventDefault(), navigator.clipboard.readText().then((_) => {
|
|
3807
3813
|
window.document.execCommand("insertText", !1, _);
|
|
3808
3814
|
}).catch((_) => {
|
|
3809
3815
|
});
|
|
@@ -3813,7 +3819,7 @@ function Vn(e) {
|
|
|
3813
3819
|
/* @__PURE__ */ a.jsx(
|
|
3814
3820
|
"dd",
|
|
3815
3821
|
{
|
|
3816
|
-
onPaste:
|
|
3822
|
+
onPaste: c,
|
|
3817
3823
|
onInput: i,
|
|
3818
3824
|
onKeyDown: o,
|
|
3819
3825
|
contentEditable: n && r ? z.ContentEditable : "false",
|
|
@@ -3831,10 +3837,10 @@ function Qn({
|
|
|
3831
3837
|
placeholder: r = "",
|
|
3832
3838
|
name: s
|
|
3833
3839
|
}) {
|
|
3834
|
-
let i = (v, g) => Number(Math.round(v + Math.random() * (g - v))), o = h.useRef(null),
|
|
3840
|
+
let i = (v, g) => Number(Math.round(v + Math.random() * (g - v))), o = h.useRef(null), c = h.useRef(null), l = i(1e4, 99999), _ = (v) => {
|
|
3835
3841
|
v.key !== "Backspace" && (v.key === "Enter" && v.preventDefault(), v.target.textContent.length === 5 && v.preventDefault(), /\d/.test(v.key) || v.preventDefault());
|
|
3836
3842
|
}, u = (v) => {
|
|
3837
|
-
t({ value: Number(v.target.textContent) ===
|
|
3843
|
+
t({ value: Number(v.target.textContent) === l, name: s });
|
|
3838
3844
|
}, x = (v) => {
|
|
3839
3845
|
v.preventDefault(), navigator.clipboard.readText().then((g) => {
|
|
3840
3846
|
if (n) {
|
|
@@ -3852,8 +3858,8 @@ function Qn({
|
|
|
3852
3858
|
};
|
|
3853
3859
|
h.useEffect(() => {
|
|
3854
3860
|
const v = o.current, g = v.getContext("2d");
|
|
3855
|
-
g.clearRect(0, 0, v.width, v.height), g.font = "30px brush script mt", g.fillStyle = "#eee", g.textAlign = "center", g.fillText(
|
|
3856
|
-
}, [
|
|
3861
|
+
g.clearRect(0, 0, v.width, v.height), g.font = "30px brush script mt", g.fillStyle = "#eee", g.textAlign = "center", g.fillText(l, 50, 27), c.current.textContent = "";
|
|
3862
|
+
}, [l]);
|
|
3857
3863
|
const f = {};
|
|
3858
3864
|
f.field = "captcha";
|
|
3859
3865
|
const m = {};
|
|
@@ -3861,7 +3867,7 @@ function Qn({
|
|
|
3861
3867
|
/* @__PURE__ */ a.jsx(
|
|
3862
3868
|
"dd",
|
|
3863
3869
|
{
|
|
3864
|
-
ref:
|
|
3870
|
+
ref: c,
|
|
3865
3871
|
onPaste: x,
|
|
3866
3872
|
onInput: u,
|
|
3867
3873
|
onBlur: z.Blur,
|
|
@@ -3882,9 +3888,9 @@ function ea({
|
|
|
3882
3888
|
real: s,
|
|
3883
3889
|
onValue: i,
|
|
3884
3890
|
empty: o,
|
|
3885
|
-
name:
|
|
3891
|
+
name: c
|
|
3886
3892
|
}) {
|
|
3887
|
-
let
|
|
3893
|
+
let l = {
|
|
3888
3894
|
n1: "",
|
|
3889
3895
|
n2: "",
|
|
3890
3896
|
n3: "",
|
|
@@ -3896,7 +3902,7 @@ function ea({
|
|
|
3896
3902
|
if (g.preventDefault(), !r) return;
|
|
3897
3903
|
g.target.textContent = g.target.textContent.slice(-1).replace(/[^+\d]/g, "");
|
|
3898
3904
|
let p = window.getSelection(), y = g.target.textContent.length;
|
|
3899
|
-
if (
|
|
3905
|
+
if (l[g.target.id] = g.target.textContent, l.code = l.n1 + "" + l.n2 + l.n3 + l.n4 + l.n5 + l.n6, p.collapse(g.target.firstChild, 1), y === 0) {
|
|
3900
3906
|
g.target.blur(), g.target.focus();
|
|
3901
3907
|
return;
|
|
3902
3908
|
}
|
|
@@ -3904,18 +3910,18 @@ function ea({
|
|
|
3904
3910
|
}, u = (g) => {
|
|
3905
3911
|
if (!r) return g.preventDefault();
|
|
3906
3912
|
if (g.key === "Enter" && g.preventDefault(), g.key === "Backspace") {
|
|
3907
|
-
if (g.preventDefault(), g.target.textContent = "",
|
|
3913
|
+
if (g.preventDefault(), g.target.textContent = "", l[g.target.id] = "", g.target.previousSibling != null) {
|
|
3908
3914
|
let p = g.target.previousSibling.id.slice(1);
|
|
3909
|
-
g.target.previousSibling.textContent = "",
|
|
3915
|
+
g.target.previousSibling.textContent = "", l["n" + p] = "", g.target.previousSibling.focus();
|
|
3910
3916
|
}
|
|
3911
|
-
|
|
3917
|
+
l.code = l.n1 + "" + l.n2 + l.n3 + l.n4 + l.n5 + l.n6;
|
|
3912
3918
|
}
|
|
3913
3919
|
}, x = (g) => {
|
|
3914
3920
|
if (!r) return g.preventDefault();
|
|
3915
3921
|
if (s)
|
|
3916
|
-
i && i({ value:
|
|
3917
|
-
else if (
|
|
3918
|
-
|
|
3922
|
+
i && i({ value: l.code, name: c });
|
|
3923
|
+
else if (l.code.length === 6 && (g.target.blur(), i && i({ value: l.code, name: c }), o)) {
|
|
3924
|
+
l = {
|
|
3919
3925
|
n1: "",
|
|
3920
3926
|
n2: "",
|
|
3921
3927
|
n3: "",
|
|
@@ -3940,10 +3946,10 @@ function ea({
|
|
|
3940
3946
|
let D = C.split("");
|
|
3941
3947
|
for (let T = 1; T <= D.length; T++) {
|
|
3942
3948
|
let E = document.getElementById("n" + T);
|
|
3943
|
-
E && (E.textContent = D[T - 1],
|
|
3949
|
+
E && (E.textContent = D[T - 1], l["n" + T] = D[T - 1]);
|
|
3944
3950
|
}
|
|
3945
|
-
if (
|
|
3946
|
-
|
|
3951
|
+
if (l.code = l.n1 + "" + l.n2 + l.n3 + l.n4 + l.n5 + l.n6, l.code.length === 6 && (g.target.blur(), i && i({ value: l.code, name: c }), o)) {
|
|
3952
|
+
l = {
|
|
3947
3953
|
n1: "",
|
|
3948
3954
|
n2: "",
|
|
3949
3955
|
n3: "",
|
|
@@ -4054,8 +4060,8 @@ function ta({
|
|
|
4054
4060
|
placeholder: s = "",
|
|
4055
4061
|
title: i = "",
|
|
4056
4062
|
error: o = "",
|
|
4057
|
-
hide:
|
|
4058
|
-
length:
|
|
4063
|
+
hide: c = !1,
|
|
4064
|
+
length: l = 6,
|
|
4059
4065
|
edit: _ = !0,
|
|
4060
4066
|
active: u = !0,
|
|
4061
4067
|
after: x = "",
|
|
@@ -4076,7 +4082,7 @@ function ta({
|
|
|
4076
4082
|
}
|
|
4077
4083
|
) : /* @__PURE__ */ a.jsxs("dl", { ...D, children: [
|
|
4078
4084
|
i && /* @__PURE__ */ a.jsx("dt", { children: i }),
|
|
4079
|
-
/* @__PURE__ */ a.jsx("dd", { children:
|
|
4085
|
+
/* @__PURE__ */ a.jsx("dd", { children: l > 0 && Array.from(Array(l).keys()).map((N) => /* @__PURE__ */ a.jsx(
|
|
4080
4086
|
"s",
|
|
4081
4087
|
{
|
|
4082
4088
|
active: (Number(N) === Number(p)) + "",
|
|
@@ -4105,8 +4111,8 @@ function Ft({
|
|
|
4105
4111
|
className: s,
|
|
4106
4112
|
placeholder: i,
|
|
4107
4113
|
max: o,
|
|
4108
|
-
min:
|
|
4109
|
-
view:
|
|
4114
|
+
min: c,
|
|
4115
|
+
view: l = "date",
|
|
4110
4116
|
onValue: _,
|
|
4111
4117
|
name: u,
|
|
4112
4118
|
value: x,
|
|
@@ -4131,7 +4137,7 @@ function Ft({
|
|
|
4131
4137
|
onValue: p,
|
|
4132
4138
|
date: m,
|
|
4133
4139
|
max: o,
|
|
4134
|
-
min:
|
|
4140
|
+
min: c,
|
|
4135
4141
|
className: s
|
|
4136
4142
|
},
|
|
4137
4143
|
(/* @__PURE__ */ new Date()).getTime()
|
|
@@ -4141,7 +4147,7 @@ function Ft({
|
|
|
4141
4147
|
const C = {};
|
|
4142
4148
|
C.field = "input", s && (C.className = s);
|
|
4143
4149
|
const D = {};
|
|
4144
|
-
return i && (D.placeholder = i), g ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsx(a.Fragment, { children:
|
|
4150
|
+
return i && (D.placeholder = i), g ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsx(a.Fragment, { children: l === "icon" ? /* @__PURE__ */ a.jsx(
|
|
4145
4151
|
"i",
|
|
4146
4152
|
{
|
|
4147
4153
|
"data-icon": "F043",
|
|
@@ -4167,10 +4173,10 @@ function Ft({
|
|
|
4167
4173
|
] }) });
|
|
4168
4174
|
}
|
|
4169
4175
|
const gc = ({ date: e, onValue: t, position: n, max: r, min: s, className: i }) => {
|
|
4170
|
-
let [o,
|
|
4171
|
-
y: parseInt(
|
|
4172
|
-
d: parseInt(
|
|
4173
|
-
m: parseInt(
|
|
4176
|
+
let [o, c] = h.useState(!0), l = /* @__PURE__ */ new Date(), _ = new Date(e), u = {
|
|
4177
|
+
y: parseInt(l.getFullYear()),
|
|
4178
|
+
d: parseInt(l.getDate()),
|
|
4179
|
+
m: parseInt(l.getMonth()) + 1
|
|
4174
4180
|
}, x = {
|
|
4175
4181
|
y: parseInt(_.getFullYear()),
|
|
4176
4182
|
d: parseInt(_.getDate()),
|
|
@@ -4184,7 +4190,7 @@ const gc = ({ date: e, onValue: t, position: n, max: r, min: s, className: i })
|
|
|
4184
4190
|
for (; y.getMonth() === p; )
|
|
4185
4191
|
C.push(y.getDate()), y.setDate(y.getDate() + 1);
|
|
4186
4192
|
let D = () => {
|
|
4187
|
-
|
|
4193
|
+
c(!1);
|
|
4188
4194
|
}, N = () => {
|
|
4189
4195
|
M(f.m + 1, f.y);
|
|
4190
4196
|
}, T = () => {
|
|
@@ -4199,12 +4205,12 @@ const gc = ({ date: e, onValue: t, position: n, max: r, min: s, className: i })
|
|
|
4199
4205
|
const R = (j) => u.y === f.y && u.m === f.m && u.d === j ? { "data-active": "true" } : {}, Z = (j) => x.y === f.y && x.m === f.m && x.d === j ? { "data-current": "true" } : {}, w = (j) => {
|
|
4200
4206
|
let L = !0;
|
|
4201
4207
|
if (r) {
|
|
4202
|
-
let
|
|
4203
|
-
|
|
4208
|
+
let W = r.getTime(), ee = new Date(f.y, f.m - 1, j).getTime();
|
|
4209
|
+
W < ee && (L = !1);
|
|
4204
4210
|
}
|
|
4205
4211
|
if (s) {
|
|
4206
|
-
let
|
|
4207
|
-
|
|
4212
|
+
let W = s.getTime(), ee = new Date(f.y, f.m - 1, j).getTime();
|
|
4213
|
+
W > ee && (L = !1);
|
|
4208
4214
|
}
|
|
4209
4215
|
return L;
|
|
4210
4216
|
};
|
|
@@ -4281,8 +4287,8 @@ function Pt({
|
|
|
4281
4287
|
title: s,
|
|
4282
4288
|
error: i,
|
|
4283
4289
|
hide: o = !1,
|
|
4284
|
-
edit:
|
|
4285
|
-
show:
|
|
4290
|
+
edit: c = !0,
|
|
4291
|
+
show: l = !0,
|
|
4286
4292
|
active: _ = !0,
|
|
4287
4293
|
after: u = "",
|
|
4288
4294
|
view: x,
|
|
@@ -4292,7 +4298,7 @@ function Pt({
|
|
|
4292
4298
|
className: g
|
|
4293
4299
|
}) {
|
|
4294
4300
|
let [p, y] = h.useState(e), C = (T) => {
|
|
4295
|
-
if (!(
|
|
4301
|
+
if (!(c && _) || !f) return;
|
|
4296
4302
|
let E = f.split(".");
|
|
4297
4303
|
rt.Open(E[0], E[1], {
|
|
4298
4304
|
callback: (M) => {
|
|
@@ -4314,7 +4320,7 @@ function Pt({
|
|
|
4314
4320
|
{
|
|
4315
4321
|
...N,
|
|
4316
4322
|
onClick: C,
|
|
4317
|
-
edit: (
|
|
4323
|
+
edit: (c && _) + "",
|
|
4318
4324
|
"data-after": u,
|
|
4319
4325
|
children: p
|
|
4320
4326
|
}
|
|
@@ -4330,8 +4336,8 @@ function At({
|
|
|
4330
4336
|
title: s = "",
|
|
4331
4337
|
error: i = "",
|
|
4332
4338
|
hide: o = !1,
|
|
4333
|
-
edit:
|
|
4334
|
-
active:
|
|
4339
|
+
edit: c = !0,
|
|
4340
|
+
active: l = !0,
|
|
4335
4341
|
after: _ = "",
|
|
4336
4342
|
show: u = !0,
|
|
4337
4343
|
course: x = 100,
|
|
@@ -4344,8 +4350,8 @@ function At({
|
|
|
4344
4350
|
let y = !!(o && (e === "" || e === void 0));
|
|
4345
4351
|
e = H.isNumeric(e) ? Number(e) / x : 0;
|
|
4346
4352
|
let C = (b) => m === "multi" ? b.replace(/[^+\d.+-]/g, "") : b.replace(/[^+\d.]/g, ""), D = (b, j) => {
|
|
4347
|
-
let L = document.createRange(),
|
|
4348
|
-
L.setStart(j.childNodes[0], b), L.collapse(!0),
|
|
4353
|
+
let L = document.createRange(), W = window.getSelection();
|
|
4354
|
+
L.setStart(j.childNodes[0], b), L.collapse(!0), W.removeAllRanges(), W.addRange(L), j.focus();
|
|
4349
4355
|
}, N = (b) => {
|
|
4350
4356
|
t == null || t({
|
|
4351
4357
|
value: C(b.target.textContent) * x,
|
|
@@ -4371,11 +4377,11 @@ function At({
|
|
|
4371
4377
|
}).catch((j) => {
|
|
4372
4378
|
});
|
|
4373
4379
|
};
|
|
4374
|
-
if (!(
|
|
4380
|
+
if (!(c && l) && !u || !(c && l) && y) return "";
|
|
4375
4381
|
const w = {};
|
|
4376
4382
|
w.field = "input", g && (w.className = g);
|
|
4377
4383
|
const B = {};
|
|
4378
|
-
return B.inputMode = "decimal", r && (B.placeholder = r),
|
|
4384
|
+
return B.inputMode = "decimal", r && (B.placeholder = r), c && l && (B.edit = ""), /* @__PURE__ */ a.jsxs("dl", { ...w, children: [
|
|
4379
4385
|
s ? /* @__PURE__ */ a.jsx("dt", { children: s }) : "",
|
|
4380
4386
|
/* @__PURE__ */ a.jsx(
|
|
4381
4387
|
"dd",
|
|
@@ -4386,7 +4392,7 @@ function At({
|
|
|
4386
4392
|
onBlur: T,
|
|
4387
4393
|
onKeyDown: R,
|
|
4388
4394
|
onFocus: E,
|
|
4389
|
-
contentEditable:
|
|
4395
|
+
contentEditable: c && l ? z.ContentEditable : "false",
|
|
4390
4396
|
suppressContentEditableWarning: !0,
|
|
4391
4397
|
"data-after": _,
|
|
4392
4398
|
children: !r || e ? H.Money(e) : ""
|
|
@@ -4404,8 +4410,8 @@ function na({
|
|
|
4404
4410
|
error: s,
|
|
4405
4411
|
edit: i = !0,
|
|
4406
4412
|
active: o = !0,
|
|
4407
|
-
title:
|
|
4408
|
-
placeholder:
|
|
4413
|
+
title: c,
|
|
4414
|
+
placeholder: l = "",
|
|
4409
4415
|
className: _,
|
|
4410
4416
|
after: u
|
|
4411
4417
|
}) {
|
|
@@ -4432,8 +4438,8 @@ function na({
|
|
|
4432
4438
|
);
|
|
4433
4439
|
};
|
|
4434
4440
|
const g = {};
|
|
4435
|
-
return
|
|
4436
|
-
|
|
4441
|
+
return l && (g.placeholder = l), r === "icon" ? /* @__PURE__ */ a.jsx("i", { "data-icon": "F043", onClick: v }) : /* @__PURE__ */ a.jsxs("dl", { children: [
|
|
4442
|
+
c && /* @__PURE__ */ a.jsx("dt", { children: c }),
|
|
4437
4443
|
/* @__PURE__ */ a.jsx(
|
|
4438
4444
|
"dd",
|
|
4439
4445
|
{
|
|
@@ -4452,14 +4458,14 @@ const pc = (e) => {
|
|
|
4452
4458
|
}, o = {
|
|
4453
4459
|
y: parseInt(s.getFullYear()),
|
|
4454
4460
|
m: parseInt(s.getMonth()) + 1
|
|
4455
|
-
}, [
|
|
4461
|
+
}, [c, l] = h.useState(o.y), _ = () => {
|
|
4456
4462
|
n(!1);
|
|
4457
4463
|
}, u = () => {
|
|
4458
|
-
c
|
|
4464
|
+
l(c + 1);
|
|
4459
4465
|
}, x = () => {
|
|
4460
|
-
c
|
|
4466
|
+
l(c - 1);
|
|
4461
4467
|
}, f = (y) => {
|
|
4462
|
-
e.onValue(
|
|
4468
|
+
e.onValue(c + "-" + H.Number(2, y)), _();
|
|
4463
4469
|
}, m = (y) => i.y === o.y && i.m === y ? "_FFEB3B" : "", v = Array(12).fill("").map((y, C) => C + 1), g = 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;
|
|
4464
4470
|
return /* @__PURE__ */ a.jsx(a.Fragment, { children: t ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
4465
4471
|
/* @__PURE__ */ a.jsx(
|
|
@@ -4488,7 +4494,7 @@ const pc = (e) => {
|
|
|
4488
4494
|
children: /* @__PURE__ */ a.jsx("path", { d: "m15.09 4.594-7.646 6.553a1.126 1.126 0 0 0 0 1.708l7.647 6.552c.73.625 1.857.107 1.857-.854V5.447c0-.961-1.127-1.48-1.857-.853Z" })
|
|
4489
4495
|
}
|
|
4490
4496
|
) }),
|
|
4491
|
-
/* @__PURE__ */ a.jsx("h2", { children:
|
|
4497
|
+
/* @__PURE__ */ a.jsx("h2", { children: c }),
|
|
4492
4498
|
/* @__PURE__ */ a.jsx("i", { onClick: u, children: /* @__PURE__ */ a.jsx(
|
|
4493
4499
|
"svg",
|
|
4494
4500
|
{
|
|
@@ -4525,8 +4531,8 @@ function aa({
|
|
|
4525
4531
|
placeholder: s = "",
|
|
4526
4532
|
title: i = "",
|
|
4527
4533
|
error: o = "",
|
|
4528
|
-
hide:
|
|
4529
|
-
edit:
|
|
4534
|
+
hide: c = !1,
|
|
4535
|
+
edit: l = !0,
|
|
4530
4536
|
active: _ = !0,
|
|
4531
4537
|
after: u = "",
|
|
4532
4538
|
show: x = !0,
|
|
@@ -4537,7 +4543,7 @@ function aa({
|
|
|
4537
4543
|
isCopy: p = !0
|
|
4538
4544
|
}) {
|
|
4539
4545
|
let [y, C] = h.useState(!1);
|
|
4540
|
-
y =
|
|
4546
|
+
y = l ? !0 : y;
|
|
4541
4547
|
let D = (w) => {
|
|
4542
4548
|
n == null || n({ value: w.target.innerText, name: r });
|
|
4543
4549
|
}, N = (w) => {
|
|
@@ -4565,12 +4571,12 @@ function aa({
|
|
|
4565
4571
|
}).catch((B) => {
|
|
4566
4572
|
});
|
|
4567
4573
|
};
|
|
4568
|
-
if (
|
|
4569
|
-
if (!(
|
|
4574
|
+
if (c) return /* @__PURE__ */ a.jsx(a.Fragment, {});
|
|
4575
|
+
if (!(l && _) && !x) return "";
|
|
4570
4576
|
const M = {};
|
|
4571
4577
|
M.field = "notes", g && (M.className = g);
|
|
4572
4578
|
const R = {};
|
|
4573
|
-
s && (R.placeholder = s),
|
|
4579
|
+
s && (R.placeholder = s), l && _ && (R.edit = ""), y && (R.open = "");
|
|
4574
4580
|
const Z = (w) => {
|
|
4575
4581
|
z.Blur(w), v == null || v({ value: w.target.textContent.trim(), name: r });
|
|
4576
4582
|
};
|
|
@@ -4584,7 +4590,7 @@ function aa({
|
|
|
4584
4590
|
onBlur: Z,
|
|
4585
4591
|
onKeyDown: N,
|
|
4586
4592
|
onContextMenu: T,
|
|
4587
|
-
contentEditable:
|
|
4593
|
+
contentEditable: l && _ ? z.ContentEditable : "false",
|
|
4588
4594
|
suppressContentEditableWarning: !0,
|
|
4589
4595
|
...R,
|
|
4590
4596
|
children: t
|
|
@@ -4602,8 +4608,8 @@ function Ot({
|
|
|
4602
4608
|
edit: s,
|
|
4603
4609
|
title: i,
|
|
4604
4610
|
error: o,
|
|
4605
|
-
show:
|
|
4606
|
-
hide:
|
|
4611
|
+
show: c,
|
|
4612
|
+
hide: l,
|
|
4607
4613
|
value: _,
|
|
4608
4614
|
placeholder: u,
|
|
4609
4615
|
className: x,
|
|
@@ -4613,7 +4619,7 @@ function Ot({
|
|
|
4613
4619
|
before: g = "",
|
|
4614
4620
|
view: p
|
|
4615
4621
|
}) {
|
|
4616
|
-
s = s !== void 0 ? s : !0, n = n !== void 0 ? n : !0,
|
|
4622
|
+
s = s !== void 0 ? s : !0, n = n !== void 0 ? n : !0, l = !!(l && (_ === "" || _ === void 0)) && !(s && n), u = u !== void 0 ? u : "", r = r !== void 0 ? r : 99;
|
|
4617
4623
|
let C = !1, D = (w) => {
|
|
4618
4624
|
e == null || e({ value: w.target.textContent, name: m });
|
|
4619
4625
|
}, N = (w) => {
|
|
@@ -4639,7 +4645,7 @@ function Ot({
|
|
|
4639
4645
|
}, R = {};
|
|
4640
4646
|
R.field = "input", x && (R.className = x);
|
|
4641
4647
|
let Z = {};
|
|
4642
|
-
return s && n ? (Z.edit = "true", Z.contentEditable = z.ContentEditable) : Z.contentEditable = "false", Z.inputMode = "decimal", u && (Z.placeholder = u),
|
|
4648
|
+
return s && n ? (Z.edit = "true", Z.contentEditable = z.ContentEditable) : Z.contentEditable = "false", Z.inputMode = "decimal", u && (Z.placeholder = u), l ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...R, children: [
|
|
4643
4649
|
i && /* @__PURE__ */ a.jsx("dt", { children: i }),
|
|
4644
4650
|
g,
|
|
4645
4651
|
/* @__PURE__ */ a.jsx(
|
|
@@ -4667,8 +4673,8 @@ function ra({
|
|
|
4667
4673
|
placeholder: s = "",
|
|
4668
4674
|
className: i,
|
|
4669
4675
|
title: o,
|
|
4670
|
-
error:
|
|
4671
|
-
edit:
|
|
4676
|
+
error: c,
|
|
4677
|
+
edit: l = !0,
|
|
4672
4678
|
active: _ = !0,
|
|
4673
4679
|
reload: u = !1,
|
|
4674
4680
|
native: x = !1,
|
|
@@ -4715,7 +4721,7 @@ function ra({
|
|
|
4715
4721
|
onInput: C,
|
|
4716
4722
|
onKeyDown: D,
|
|
4717
4723
|
onBlur: T,
|
|
4718
|
-
contentEditable:
|
|
4724
|
+
contentEditable: l && _ ? z.ContentEditable : "false",
|
|
4719
4725
|
...M,
|
|
4720
4726
|
suppressContentEditableWarning: !0,
|
|
4721
4727
|
children: e
|
|
@@ -4723,7 +4729,7 @@ function ra({
|
|
|
4723
4729
|
),
|
|
4724
4730
|
v[0] && /* @__PURE__ */ a.jsx("i", { onClick: () => y(!p), children: p ? v[1] : v[0] }),
|
|
4725
4731
|
g,
|
|
4726
|
-
|
|
4732
|
+
c ? /* @__PURE__ */ a.jsx("em", { children: c }) : ""
|
|
4727
4733
|
] });
|
|
4728
4734
|
}
|
|
4729
4735
|
const xt = {
|
|
@@ -6116,18 +6122,18 @@ function Zt({
|
|
|
6116
6122
|
placeholder: s = "",
|
|
6117
6123
|
title: i = "",
|
|
6118
6124
|
error: o = "",
|
|
6119
|
-
hide:
|
|
6120
|
-
edit:
|
|
6125
|
+
hide: c = !1,
|
|
6126
|
+
edit: l = !0,
|
|
6121
6127
|
active: _ = !0,
|
|
6122
6128
|
after: u = "",
|
|
6123
6129
|
show: x = !0,
|
|
6124
6130
|
view: f,
|
|
6125
6131
|
className: m = ""
|
|
6126
6132
|
}) {
|
|
6127
|
-
|
|
6133
|
+
l = l !== void 0 ? l : !0, _ = _ !== void 0 ? _ : !0, c = !!(c && (e === "" || e === void 0)) && !(l && _), h.useRef(null);
|
|
6128
6134
|
let g = "+_(___) ___-__-__", p = !0, y = 0, C = (b, j) => {
|
|
6129
|
-
let L = document.createRange(),
|
|
6130
|
-
L.setStart(j.childNodes[0], b), L.collapse(!0),
|
|
6135
|
+
let L = document.createRange(), W = window.getSelection();
|
|
6136
|
+
L.setStart(j.childNodes[0], b), L.collapse(!0), W.removeAllRanges(), W.addRange(L), j.focus();
|
|
6131
6137
|
}, D = (b) => {
|
|
6132
6138
|
let j = T(b.target.textContent);
|
|
6133
6139
|
b.target.textContent = j.q, j.i = j.q.lastIndexOf(j.v.substr(-1)), j.i < j.q.length && j.q !== g ? j.i++ : j.i = j.q.indexOf("_"), C(j.i, b.target), t && t({ value: j.q.replace(/\D/g, ""), name: r });
|
|
@@ -6137,9 +6143,9 @@ function Zt({
|
|
|
6137
6143
|
}).catch((j) => {
|
|
6138
6144
|
});
|
|
6139
6145
|
}, T = (b) => {
|
|
6140
|
-
let j = 0, L = "",
|
|
6141
|
-
|
|
6142
|
-
let ee =
|
|
6146
|
+
let j = 0, L = "", W = b.replace(/\D/g, "");
|
|
6147
|
+
W === "" && (p = !0);
|
|
6148
|
+
let ee = W.split(""), oe = "";
|
|
6143
6149
|
ee.forEach((Me) => {
|
|
6144
6150
|
p && (oe += Me, xt[oe] !== void 0 && p ? (p = !1, g = xt[oe].mask.replace(new RegExp("[0-9]", "g"), "_"), L = xt[oe].code) : (p && (y = ("" + oe).length, g = `+${oe}_(___) ___-__-__`.replace(
|
|
6145
6151
|
new RegExp("[0-9]", "g"),
|
|
@@ -6150,9 +6156,9 @@ function Zt({
|
|
|
6150
6156
|
), L = "")));
|
|
6151
6157
|
});
|
|
6152
6158
|
let xe = g.replace(/\D/g, "");
|
|
6153
|
-
return xe.length >=
|
|
6154
|
-
return
|
|
6155
|
-
}), i: j, v:
|
|
6159
|
+
return xe.length >= W.length && (W = xe), { q: g.replace(/[_\d]/g, function() {
|
|
6160
|
+
return W.charAt(j++) || "_";
|
|
6161
|
+
}), i: j, v: W, f: L };
|
|
6156
6162
|
}, E = (b) => {
|
|
6157
6163
|
b.preventDefault(), navigator.clipboard.writeText(b.target.textContent.replace(/\D/g, "")).then(
|
|
6158
6164
|
function() {
|
|
@@ -6172,7 +6178,7 @@ function Zt({
|
|
|
6172
6178
|
}, w = {};
|
|
6173
6179
|
w.field = "input", m && (w.className = m);
|
|
6174
6180
|
let B = {};
|
|
6175
|
-
return
|
|
6181
|
+
return l && _ ? (B.edit = "true", B.contentEditable = z.ContentEditable) : B.contentEditable = "false", s && (B.placeholder = s), u && (B.after = u), c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...w, children: [
|
|
6176
6182
|
i && /* @__PURE__ */ a.jsx("dt", { children: i }),
|
|
6177
6183
|
/* @__PURE__ */ a.jsx(
|
|
6178
6184
|
"dd",
|
|
@@ -6198,8 +6204,8 @@ const sa = ({
|
|
|
6198
6204
|
edit: s = !0,
|
|
6199
6205
|
active: i = !0,
|
|
6200
6206
|
value: o,
|
|
6201
|
-
onValue:
|
|
6202
|
-
maxLength:
|
|
6207
|
+
onValue: c,
|
|
6208
|
+
maxLength: l = 20
|
|
6203
6209
|
}) => {
|
|
6204
6210
|
let _ = 0, u = h.useRef({
|
|
6205
6211
|
textContent: o
|
|
@@ -6207,20 +6213,20 @@ const sa = ({
|
|
|
6207
6213
|
u.current.textContent.trim().length === 0 && (u.current.textContent = ""), clearTimeout(_), _ = setTimeout(
|
|
6208
6214
|
() => {
|
|
6209
6215
|
var C;
|
|
6210
|
-
return
|
|
6216
|
+
return c((C = u.current) == null ? void 0 : C.textContent);
|
|
6211
6217
|
},
|
|
6212
6218
|
n
|
|
6213
6219
|
);
|
|
6214
6220
|
}, f = () => {
|
|
6215
|
-
u.current && (u.current.textContent = ""),
|
|
6221
|
+
u.current && (u.current.textContent = ""), c("");
|
|
6216
6222
|
}, m = (C) => {
|
|
6217
|
-
|
|
6223
|
+
l && C.target.textContent.trim().length >= l && C.key !== "Backspace" && C.preventDefault(), C.key === "Enter" && C.preventDefault();
|
|
6218
6224
|
}, v = (C) => {
|
|
6219
6225
|
C.preventDefault(), navigator.clipboard.readText().then((D) => {
|
|
6220
|
-
if (
|
|
6226
|
+
if (l) {
|
|
6221
6227
|
let N = C.target.textContent.length;
|
|
6222
|
-
if (N >=
|
|
6223
|
-
|
|
6228
|
+
if (N >= l) return;
|
|
6229
|
+
l -= N, D = D.slice(0, l);
|
|
6224
6230
|
}
|
|
6225
6231
|
window.document.execCommand(
|
|
6226
6232
|
"insertText",
|
|
@@ -6263,8 +6269,8 @@ function Ut({
|
|
|
6263
6269
|
hide: s,
|
|
6264
6270
|
value: i = 0,
|
|
6265
6271
|
onValue: o,
|
|
6266
|
-
options:
|
|
6267
|
-
placeholder:
|
|
6272
|
+
options: c,
|
|
6273
|
+
placeholder: l = "",
|
|
6268
6274
|
className: _,
|
|
6269
6275
|
name: u,
|
|
6270
6276
|
after: x,
|
|
@@ -6273,10 +6279,10 @@ function Ut({
|
|
|
6273
6279
|
isReload: v = !1
|
|
6274
6280
|
}) {
|
|
6275
6281
|
var Z, w;
|
|
6276
|
-
const g = h.useRef(), [p, y] = h.useState(i), [C, D] = h.useState(
|
|
6282
|
+
const g = h.useRef(), [p, y] = h.useState(i), [C, D] = h.useState(c);
|
|
6277
6283
|
h.useEffect(() => {
|
|
6278
|
-
y(i), D(
|
|
6279
|
-
}, [i,
|
|
6284
|
+
y(i), D(c);
|
|
6285
|
+
}, [i, c]), s = !!(s && (i === 0 || ((Z = C == null ? void 0 : C[i]) == null ? void 0 : Z.n) === void 0)) && !(n && r);
|
|
6280
6286
|
let T = (B) => {
|
|
6281
6287
|
y(B), o && o({ value: B, name: u, reload: v });
|
|
6282
6288
|
}, E = (B) => {
|
|
@@ -6298,7 +6304,7 @@ function Ut({
|
|
|
6298
6304
|
)
|
|
6299
6305
|
);
|
|
6300
6306
|
}, M = { field: "select", className: _ }, R = { onClick: E };
|
|
6301
|
-
return
|
|
6307
|
+
return l && (R.placeholder = l), x && (R.after = x), n && r && (R.edit = ""), s ? "" : /* @__PURE__ */ a.jsxs("dl", { ...M, children: [
|
|
6302
6308
|
e && /* @__PURE__ */ a.jsx("dt", { children: e }),
|
|
6303
6309
|
/* @__PURE__ */ a.jsx("dd", { ...R, ref: g, children: (w = C == null ? void 0 : C[p]) == null ? void 0 : w.n }),
|
|
6304
6310
|
Object.keys(C || {}).length !== 0 && /* @__PURE__ */ a.jsx("s", { children: /* @__PURE__ */ a.jsx(
|
|
@@ -6325,17 +6331,17 @@ const xc = ({
|
|
|
6325
6331
|
options: s,
|
|
6326
6332
|
order: i
|
|
6327
6333
|
}) => {
|
|
6328
|
-
let [o,
|
|
6329
|
-
|
|
6334
|
+
let [o, c] = h.useState(!0), l = () => {
|
|
6335
|
+
c(!1);
|
|
6330
6336
|
}, _ = (f) => {
|
|
6331
|
-
|
|
6337
|
+
c(!1), e(f);
|
|
6332
6338
|
}, u = window.innerHeight - t.y + t.height < 320 ? t.y - 312 : t.y + 33, x = window.innerWidth - t.x < 265 ? t.x - 235 : t.x;
|
|
6333
6339
|
return /* @__PURE__ */ a.jsx(a.Fragment, { children: o ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
6334
6340
|
/* @__PURE__ */ a.jsx(
|
|
6335
6341
|
"div",
|
|
6336
6342
|
{
|
|
6337
6343
|
"data-select": "backdrop",
|
|
6338
|
-
onClick:
|
|
6344
|
+
onClick: l
|
|
6339
6345
|
},
|
|
6340
6346
|
(/* @__PURE__ */ new Date()).getTime()
|
|
6341
6347
|
),
|
|
@@ -6376,8 +6382,8 @@ const xc = ({
|
|
|
6376
6382
|
s
|
|
6377
6383
|
) : ""
|
|
6378
6384
|
) });
|
|
6379
|
-
function
|
|
6380
|
-
let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, s = e.active !== void 0 ? e.active : !0, o = !!(e.hide && (e.default === "" || e.options[e.default] === void 0)) && !(r && s),
|
|
6385
|
+
function Wt(e) {
|
|
6386
|
+
let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, s = e.active !== void 0 ? e.active : !0, o = !!(e.hide && (e.default === "" || e.options[e.default] === void 0)) && !(r && s), c = e.placeholder !== void 0 ? e.placeholder : "", l = (m) => {
|
|
6381
6387
|
u(e.options[m]), e.onValue({ value: m, name: e.name });
|
|
6382
6388
|
}, [_, u] = h.useState(
|
|
6383
6389
|
e.default !== void 0 ? e.options[e.default] : e.default
|
|
@@ -6390,7 +6396,7 @@ function Gt(e) {
|
|
|
6390
6396
|
Cc,
|
|
6391
6397
|
{
|
|
6392
6398
|
parent: v,
|
|
6393
|
-
onValue:
|
|
6399
|
+
onValue: l,
|
|
6394
6400
|
view: e.view,
|
|
6395
6401
|
options: e.options
|
|
6396
6402
|
},
|
|
@@ -6399,7 +6405,7 @@ function Gt(e) {
|
|
|
6399
6405
|
);
|
|
6400
6406
|
};
|
|
6401
6407
|
const f = {};
|
|
6402
|
-
return
|
|
6408
|
+
return c && (f.placeholder = c), o ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs(
|
|
6403
6409
|
"dl",
|
|
6404
6410
|
{
|
|
6405
6411
|
"data-form": "select",
|
|
@@ -6422,9 +6428,9 @@ function Gt(e) {
|
|
|
6422
6428
|
const Cc = ({ onValue: e, parent: t, view: n, options: r }) => {
|
|
6423
6429
|
let [s, i] = h.useState(!0), o = () => {
|
|
6424
6430
|
i(!1);
|
|
6425
|
-
},
|
|
6431
|
+
}, c = (x) => {
|
|
6426
6432
|
i(!1), e(x);
|
|
6427
|
-
},
|
|
6433
|
+
}, l = Object.keys(r).length * 36, _ = window.innerHeight - t.y + t.height < l ? t.y - (l - 33) : t.y + 33, u = window.innerWidth - t.x < 265 ? t.x - 235 : t.x;
|
|
6428
6434
|
return /* @__PURE__ */ a.jsx(a.Fragment, { children: s ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
6429
6435
|
/* @__PURE__ */ a.jsx(
|
|
6430
6436
|
"div",
|
|
@@ -6447,7 +6453,7 @@ const Cc = ({ onValue: e, parent: t, view: n, options: r }) => {
|
|
|
6447
6453
|
"li",
|
|
6448
6454
|
{
|
|
6449
6455
|
onClick: () => {
|
|
6450
|
-
|
|
6456
|
+
c(x);
|
|
6451
6457
|
},
|
|
6452
6458
|
children: r[x]
|
|
6453
6459
|
},
|
|
@@ -6465,8 +6471,8 @@ function Tt({
|
|
|
6465
6471
|
placeholder: s = "",
|
|
6466
6472
|
title: i = "",
|
|
6467
6473
|
error: o = "",
|
|
6468
|
-
hide:
|
|
6469
|
-
edit:
|
|
6474
|
+
hide: c = !1,
|
|
6475
|
+
edit: l = !0,
|
|
6470
6476
|
show: _ = !0,
|
|
6471
6477
|
active: u = !0,
|
|
6472
6478
|
after: x = "",
|
|
@@ -6483,9 +6489,9 @@ function Tt({
|
|
|
6483
6489
|
{
|
|
6484
6490
|
title: i,
|
|
6485
6491
|
show: _,
|
|
6486
|
-
hide:
|
|
6492
|
+
hide: c,
|
|
6487
6493
|
view: f,
|
|
6488
|
-
edit:
|
|
6494
|
+
edit: l,
|
|
6489
6495
|
active: u,
|
|
6490
6496
|
value: t,
|
|
6491
6497
|
onValue: n,
|
|
@@ -6500,9 +6506,9 @@ function Tt({
|
|
|
6500
6506
|
{
|
|
6501
6507
|
title: i,
|
|
6502
6508
|
show: _,
|
|
6503
|
-
hide:
|
|
6509
|
+
hide: c,
|
|
6504
6510
|
view: f,
|
|
6505
|
-
edit:
|
|
6511
|
+
edit: l,
|
|
6506
6512
|
active: u,
|
|
6507
6513
|
value: parseInt(t || "0"),
|
|
6508
6514
|
onValue: n,
|
|
@@ -6514,13 +6520,13 @@ function Tt({
|
|
|
6514
6520
|
);
|
|
6515
6521
|
case "Users":
|
|
6516
6522
|
return V.getSelect("user"), /* @__PURE__ */ a.jsx(
|
|
6517
|
-
|
|
6523
|
+
Wt,
|
|
6518
6524
|
{
|
|
6519
6525
|
title: i,
|
|
6520
6526
|
show: _,
|
|
6521
|
-
hide:
|
|
6527
|
+
hide: c,
|
|
6522
6528
|
view: f,
|
|
6523
|
-
edit:
|
|
6529
|
+
edit: l,
|
|
6524
6530
|
active: u,
|
|
6525
6531
|
value: t,
|
|
6526
6532
|
onValue: n,
|
|
@@ -6536,9 +6542,9 @@ function Tt({
|
|
|
6536
6542
|
{
|
|
6537
6543
|
title: i,
|
|
6538
6544
|
show: _,
|
|
6539
|
-
hide:
|
|
6545
|
+
hide: c,
|
|
6540
6546
|
view: f,
|
|
6541
|
-
edit:
|
|
6547
|
+
edit: l,
|
|
6542
6548
|
active: u,
|
|
6543
6549
|
value: t,
|
|
6544
6550
|
onValue: n,
|
|
@@ -6553,9 +6559,9 @@ function Tt({
|
|
|
6553
6559
|
{
|
|
6554
6560
|
title: i,
|
|
6555
6561
|
show: _,
|
|
6556
|
-
hide:
|
|
6562
|
+
hide: c,
|
|
6557
6563
|
view: f,
|
|
6558
|
-
edit:
|
|
6564
|
+
edit: l,
|
|
6559
6565
|
active: u,
|
|
6560
6566
|
value: t,
|
|
6561
6567
|
onValue: n,
|
|
@@ -6570,9 +6576,9 @@ function Tt({
|
|
|
6570
6576
|
{
|
|
6571
6577
|
title: i,
|
|
6572
6578
|
show: _,
|
|
6573
|
-
hide:
|
|
6579
|
+
hide: c,
|
|
6574
6580
|
view: f,
|
|
6575
|
-
edit:
|
|
6581
|
+
edit: l,
|
|
6576
6582
|
active: u,
|
|
6577
6583
|
value: t,
|
|
6578
6584
|
onValue: n,
|
|
@@ -6587,9 +6593,9 @@ function Tt({
|
|
|
6587
6593
|
{
|
|
6588
6594
|
title: i,
|
|
6589
6595
|
show: _,
|
|
6590
|
-
hide:
|
|
6596
|
+
hide: c,
|
|
6591
6597
|
view: f,
|
|
6592
|
-
edit:
|
|
6598
|
+
edit: l,
|
|
6593
6599
|
active: u,
|
|
6594
6600
|
value: t,
|
|
6595
6601
|
onValue: n,
|
|
@@ -6604,9 +6610,9 @@ function Tt({
|
|
|
6604
6610
|
{
|
|
6605
6611
|
title: i,
|
|
6606
6612
|
show: _,
|
|
6607
|
-
hide:
|
|
6613
|
+
hide: c,
|
|
6608
6614
|
view: f,
|
|
6609
|
-
edit:
|
|
6615
|
+
edit: l,
|
|
6610
6616
|
active: u,
|
|
6611
6617
|
value: t,
|
|
6612
6618
|
onValue: n,
|
|
@@ -6627,8 +6633,8 @@ function ia({
|
|
|
6627
6633
|
title: s = "",
|
|
6628
6634
|
error: i = "",
|
|
6629
6635
|
hide: o = !1,
|
|
6630
|
-
edit:
|
|
6631
|
-
active:
|
|
6636
|
+
edit: c = !0,
|
|
6637
|
+
active: l = !0,
|
|
6632
6638
|
after: _ = "",
|
|
6633
6639
|
show: u = !0,
|
|
6634
6640
|
view: x,
|
|
@@ -6637,7 +6643,7 @@ function ia({
|
|
|
6637
6643
|
className: v = ""
|
|
6638
6644
|
}) {
|
|
6639
6645
|
let g = !!(o && (e === "" || e === void 0));
|
|
6640
|
-
if (!(
|
|
6646
|
+
if (!(c && l) && !u || !(c && l) && g) return "";
|
|
6641
6647
|
let p = (T) => {
|
|
6642
6648
|
t && t({ value: T.target.innerText, name: n });
|
|
6643
6649
|
}, y = (T) => {
|
|
@@ -6664,7 +6670,7 @@ function ia({
|
|
|
6664
6670
|
onPaste: C,
|
|
6665
6671
|
onBlur: y,
|
|
6666
6672
|
onInput: p,
|
|
6667
|
-
contentEditable:
|
|
6673
|
+
contentEditable: c && l ? z.ContentEditable : "false",
|
|
6668
6674
|
...N,
|
|
6669
6675
|
suppressContentEditableWarning: !0,
|
|
6670
6676
|
children: e
|
|
@@ -6681,8 +6687,8 @@ function oa({
|
|
|
6681
6687
|
title: s = "",
|
|
6682
6688
|
error: i = "",
|
|
6683
6689
|
hide: o = !1,
|
|
6684
|
-
edit:
|
|
6685
|
-
active:
|
|
6690
|
+
edit: c = !0,
|
|
6691
|
+
active: l = !0,
|
|
6686
6692
|
after: _ = "",
|
|
6687
6693
|
show: u = !0,
|
|
6688
6694
|
view: x,
|
|
@@ -6690,7 +6696,7 @@ function oa({
|
|
|
6690
6696
|
className: m = ""
|
|
6691
6697
|
}) {
|
|
6692
6698
|
let v = !!(o && (e === "" || e === void 0)), g = H.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), p = h.useRef(null);
|
|
6693
|
-
if (!(
|
|
6699
|
+
if (!(c && l) && !u || !(c && l) && v) return "";
|
|
6694
6700
|
let y = (E) => {
|
|
6695
6701
|
p.current.textContent = E, t && t({ value: E, name: n });
|
|
6696
6702
|
}, C = (E) => {
|
|
@@ -6730,7 +6736,7 @@ const jc = ({ positions: e, onSave: t, onValue: n, date: r }) => {
|
|
|
6730
6736
|
let s = r.split(":"), i = {
|
|
6731
6737
|
h: H.Number(2, s[0]),
|
|
6732
6738
|
m: H.Number(2, s[1])
|
|
6733
|
-
}, o = "hour", [
|
|
6739
|
+
}, o = "hour", [c, l] = h.useState({}), _ = !1, u = 0, x = 0, f = {
|
|
6734
6740
|
body: h.useRef(null),
|
|
6735
6741
|
time: h.useRef(null),
|
|
6736
6742
|
hour: h.useRef(null),
|
|
@@ -6738,7 +6744,7 @@ const jc = ({ positions: e, onSave: t, onValue: n, date: r }) => {
|
|
|
6738
6744
|
hourText: h.useRef(null)
|
|
6739
6745
|
};
|
|
6740
6746
|
h.useEffect(() => {
|
|
6741
|
-
|
|
6747
|
+
l(f.body.current.getBoundingClientRect()), f.hour.current.style.transform = "rotate(" + i.h * 15 + "deg)", f.time.current.style.transform = "rotate(" + i.m * 6 + "deg)";
|
|
6742
6748
|
}, [f.body, f.hour, f.time, i.m, i.h]);
|
|
6743
6749
|
let m = () => {
|
|
6744
6750
|
_ = !0;
|
|
@@ -6747,8 +6753,8 @@ const jc = ({ positions: e, onSave: t, onValue: n, date: r }) => {
|
|
|
6747
6753
|
}, g = (E) => {
|
|
6748
6754
|
if (_) {
|
|
6749
6755
|
let R = Math.atan2(
|
|
6750
|
-
E.pageX - (
|
|
6751
|
-
E.pageY - (
|
|
6756
|
+
E.pageX - (c.x + 78),
|
|
6757
|
+
E.pageY - (c.y + 78)
|
|
6752
6758
|
) * (180 / Math.PI) * -1 + 180;
|
|
6753
6759
|
f[o].current.style.transform = "rotate(" + R + "deg)", o === "hour" ? (i = {
|
|
6754
6760
|
...i,
|
|
@@ -6861,15 +6867,15 @@ function la({
|
|
|
6861
6867
|
className: s,
|
|
6862
6868
|
name: i,
|
|
6863
6869
|
text: o,
|
|
6864
|
-
id:
|
|
6865
|
-
reload:
|
|
6870
|
+
id: c,
|
|
6871
|
+
reload: l
|
|
6866
6872
|
}) {
|
|
6867
6873
|
const [_, u] = h.useState(!!n), x = t || r;
|
|
6868
6874
|
h.useEffect(() => {
|
|
6869
6875
|
u(!!n);
|
|
6870
6876
|
}, [n]);
|
|
6871
6877
|
let f = () => {
|
|
6872
|
-
e && e({ value: _ ? 0 : 1, name: i, id:
|
|
6878
|
+
e && e({ value: _ ? 0 : 1, name: i, id: c }), u(!_);
|
|
6873
6879
|
};
|
|
6874
6880
|
const m = {};
|
|
6875
6881
|
return m.field = "check", s && (m.className = s), /* @__PURE__ */ a.jsxs("dl", { ...m, children: [
|
|
@@ -6891,15 +6897,15 @@ const kc = ({ label: e, onValue: t, value: n, name: r, item: s }) => {
|
|
|
6891
6897
|
h.useEffect(() => {
|
|
6892
6898
|
o(!!n);
|
|
6893
6899
|
}, [n]);
|
|
6894
|
-
let
|
|
6895
|
-
let
|
|
6896
|
-
o(
|
|
6900
|
+
let c = () => {
|
|
6901
|
+
let l = parseInt(i) === 0 ? 1 : 0;
|
|
6902
|
+
o(l), t({ value: l, name: r, key: s, item: s });
|
|
6897
6903
|
};
|
|
6898
6904
|
return /* @__PURE__ */ a.jsx(
|
|
6899
6905
|
"div",
|
|
6900
6906
|
{
|
|
6901
6907
|
role: "switch",
|
|
6902
|
-
onClick:
|
|
6908
|
+
onClick: c,
|
|
6903
6909
|
"aria-checked": `${i ? "true" : "false"}`
|
|
6904
6910
|
}
|
|
6905
6911
|
);
|
|
@@ -6909,8 +6915,8 @@ const kc = ({ label: e, onValue: t, value: n, name: r, item: s }) => {
|
|
|
6909
6915
|
i(!!t);
|
|
6910
6916
|
}, [t]);
|
|
6911
6917
|
let o = () => {
|
|
6912
|
-
let
|
|
6913
|
-
i(
|
|
6918
|
+
let c = parseInt(s) === 0 ? 1 : 0;
|
|
6919
|
+
i(c), e({ value: c, name: n, key: r, item: r });
|
|
6914
6920
|
};
|
|
6915
6921
|
return /* @__PURE__ */ a.jsx(
|
|
6916
6922
|
"div",
|
|
@@ -6929,8 +6935,8 @@ function da({
|
|
|
6929
6935
|
title: s = "",
|
|
6930
6936
|
error: i = "",
|
|
6931
6937
|
hide: o = !1,
|
|
6932
|
-
edit:
|
|
6933
|
-
active:
|
|
6938
|
+
edit: c = !0,
|
|
6939
|
+
active: l = !0,
|
|
6934
6940
|
after: _ = "",
|
|
6935
6941
|
show: u = !0,
|
|
6936
6942
|
view: x,
|
|
@@ -6953,7 +6959,7 @@ function da({
|
|
|
6953
6959
|
p.splice(B, 1), p.length === 0 && p.push(""), y([...p]), m !== void 0 && m({ value: p.join(g), name: n });
|
|
6954
6960
|
}, N = !!(o && (e === "" || e === void 0)), T = (B) => {
|
|
6955
6961
|
};
|
|
6956
|
-
if (!(
|
|
6962
|
+
if (!(c && l) && !u || !(c && l) && N) return "";
|
|
6957
6963
|
const E = {};
|
|
6958
6964
|
E.field = "group", v && (E.className = v);
|
|
6959
6965
|
const M = (B, b) => {
|
|
@@ -6994,7 +7000,7 @@ function da({
|
|
|
6994
7000
|
name: n,
|
|
6995
7001
|
placeholder: r,
|
|
6996
7002
|
onPaste: T,
|
|
6997
|
-
contentEditable:
|
|
7003
|
+
contentEditable: c && l ? z.ContentEditable : "false",
|
|
6998
7004
|
onKeyDown: Z,
|
|
6999
7005
|
onBlur: (j) => M(j, b),
|
|
7000
7006
|
suppressContentEditableWarning: !0,
|
|
@@ -7038,8 +7044,8 @@ function _a({
|
|
|
7038
7044
|
title: s,
|
|
7039
7045
|
error: i,
|
|
7040
7046
|
hide: o = !1,
|
|
7041
|
-
edit:
|
|
7042
|
-
show:
|
|
7047
|
+
edit: c = !0,
|
|
7048
|
+
show: l = !0,
|
|
7043
7049
|
active: _ = !0,
|
|
7044
7050
|
outFormat: u = "",
|
|
7045
7051
|
after: x = "",
|
|
@@ -7050,7 +7056,7 @@ function _a({
|
|
|
7050
7056
|
className: p
|
|
7051
7057
|
}) {
|
|
7052
7058
|
const [y, C] = h.useState(yc(e)), D = (E) => {
|
|
7053
|
-
if (!(
|
|
7059
|
+
if (!(c && _) || !m) return;
|
|
7054
7060
|
let M = m.split(".");
|
|
7055
7061
|
rt.Open(M[0], M[1], {
|
|
7056
7062
|
callback: (R) => {
|
|
@@ -7101,7 +7107,7 @@ function _a({
|
|
|
7101
7107
|
{
|
|
7102
7108
|
...T,
|
|
7103
7109
|
onClick: D,
|
|
7104
|
-
edit: (
|
|
7110
|
+
edit: (c && _) + "",
|
|
7105
7111
|
"data-after": x,
|
|
7106
7112
|
children: Object.keys(y).map((E) => {
|
|
7107
7113
|
var M;
|
|
@@ -7120,8 +7126,8 @@ function jn({
|
|
|
7120
7126
|
title: s = "",
|
|
7121
7127
|
link: i = "",
|
|
7122
7128
|
error: o = "",
|
|
7123
|
-
hide:
|
|
7124
|
-
edit:
|
|
7129
|
+
hide: c = !1,
|
|
7130
|
+
edit: l = !0,
|
|
7125
7131
|
active: _ = !0,
|
|
7126
7132
|
after: u = "",
|
|
7127
7133
|
show: x = !0,
|
|
@@ -7131,8 +7137,8 @@ function jn({
|
|
|
7131
7137
|
className: g = ""
|
|
7132
7138
|
}) {
|
|
7133
7139
|
const p = h.useId();
|
|
7134
|
-
let y = !!(
|
|
7135
|
-
if (!(
|
|
7140
|
+
let y = !!(c && (e === "" || e === void 0)), [C, D] = h.useState(i);
|
|
7141
|
+
if (!(l && _) && !x || !(l && _) && y) return "";
|
|
7136
7142
|
const N = async (E) => {
|
|
7137
7143
|
if (f) {
|
|
7138
7144
|
let M = wc(E, f, e || "default");
|
|
@@ -7172,8 +7178,8 @@ const bc = ({ children: e, onFiles: t }) => {
|
|
|
7172
7178
|
}, n.highlight = (s) => {
|
|
7173
7179
|
}, n.unhighlight = (s) => {
|
|
7174
7180
|
}, n.onHandleDrop = (s) => {
|
|
7175
|
-
let
|
|
7176
|
-
t && t(
|
|
7181
|
+
let c = s.dataTransfer.files[0];
|
|
7182
|
+
t && t(c);
|
|
7177
7183
|
};
|
|
7178
7184
|
let r = n.current;
|
|
7179
7185
|
["dragenter", "dragover", "dragleave", "drop"].forEach((s) => {
|
|
@@ -7194,8 +7200,8 @@ const bc = ({ children: e, onFiles: t }) => {
|
|
|
7194
7200
|
const i = s.getContext("2d"), o = new Image();
|
|
7195
7201
|
o.addEventListener("load", () => {
|
|
7196
7202
|
i.drawImage(o, 0, 0, o.width, o.height);
|
|
7197
|
-
const
|
|
7198
|
-
return s.remove(),
|
|
7203
|
+
const c = t === "png" ? s.toDataURL() : s.toDataURL(`image/${t}`), l = Sc(c, n);
|
|
7204
|
+
return s.remove(), l;
|
|
7199
7205
|
}), o.src = URL.createObjectURL(e);
|
|
7200
7206
|
};
|
|
7201
7207
|
function Sc(e, t) {
|
|
@@ -7267,7 +7273,7 @@ const e_ = {
|
|
|
7267
7273
|
Set: Tt,
|
|
7268
7274
|
Textarea: ia,
|
|
7269
7275
|
Time: oa,
|
|
7270
|
-
Users:
|
|
7276
|
+
Users: Wt,
|
|
7271
7277
|
String: Ue,
|
|
7272
7278
|
Form: Tt,
|
|
7273
7279
|
runReload: Rc,
|
|
@@ -7288,8 +7294,8 @@ function Nc({
|
|
|
7288
7294
|
format: s = "+_(___) ___-__-__",
|
|
7289
7295
|
placeholder: i = "",
|
|
7290
7296
|
title: o = "",
|
|
7291
|
-
error:
|
|
7292
|
-
hide:
|
|
7297
|
+
error: c = "",
|
|
7298
|
+
hide: l = !1,
|
|
7293
7299
|
edit: _ = !0,
|
|
7294
7300
|
active: u = !0,
|
|
7295
7301
|
after: x = "",
|
|
@@ -7297,26 +7303,26 @@ function Nc({
|
|
|
7297
7303
|
view: m,
|
|
7298
7304
|
className: v = ""
|
|
7299
7305
|
}) {
|
|
7300
|
-
_ = _ !== void 0 ? _ : !0, u = u !== void 0 ? u : !0,
|
|
7306
|
+
_ = _ !== void 0 ? _ : !0, u = u !== void 0 ? u : !0, l = !!(l && (e === "" || e === void 0)) && !(_ && u), h.useRef(null);
|
|
7301
7307
|
let p = s, y = !0, C = 0, D = (j, L) => {
|
|
7302
|
-
let
|
|
7303
|
-
|
|
7308
|
+
let W = document.createRange(), ee = window.getSelection();
|
|
7309
|
+
W.setStart(L.childNodes[0], j), W.collapse(!0), ee.removeAllRanges(), ee.addRange(W), L.focus();
|
|
7304
7310
|
}, N = (j) => {
|
|
7305
7311
|
j.preventDefault(), navigator.clipboard.readText().then((L) => {
|
|
7306
7312
|
window.document.execCommand("insertText", !1, L);
|
|
7307
7313
|
}).catch((L) => {
|
|
7308
7314
|
});
|
|
7309
7315
|
}, T = (j) => {
|
|
7310
|
-
let L = 0,
|
|
7316
|
+
let L = 0, W = "", ee = j.replace(/\D/g, "");
|
|
7311
7317
|
ee === "" && (y = !0);
|
|
7312
7318
|
let oe = ee.split(""), xe = "";
|
|
7313
7319
|
oe.forEach((He) => {
|
|
7314
|
-
y && (xe += He, y && (C = ("" + xe).length, p = s.replace(new RegExp("[0-9]", "g"), "_"),
|
|
7320
|
+
y && (xe += He, y && (C = ("" + xe).length, p = s.replace(new RegExp("[0-9]", "g"), "_"), W = ""), C > ("" + xe).length && (y = !0, p = s.replace(new RegExp("[0-9]", "g"), "_"), W = ""));
|
|
7315
7321
|
});
|
|
7316
7322
|
let Ee = p.replace(/\D/g, "");
|
|
7317
7323
|
return Ee.length >= ee.length && (ee = Ee), { q: p.replace(/[_\d]/g, function() {
|
|
7318
7324
|
return ee.charAt(L++) || "_";
|
|
7319
|
-
}), i: L, v: ee, f:
|
|
7325
|
+
}), i: L, v: ee, f: W };
|
|
7320
7326
|
}, E = (j) => {
|
|
7321
7327
|
j.preventDefault(), navigator.clipboard.writeText(j.target.textContent.replace(/\D/g, "")).then(
|
|
7322
7328
|
function() {
|
|
@@ -7339,7 +7345,7 @@ function Nc({
|
|
|
7339
7345
|
}, B = {};
|
|
7340
7346
|
B.field = "input", v && (B.className = v);
|
|
7341
7347
|
let b = {};
|
|
7342
|
-
return _ && u ? (b.edit = "true", b.contentEditable = z.ContentEditable) : b.contentEditable = "false", i && (b.placeholder = i), x && (b.after = x),
|
|
7348
|
+
return _ && u ? (b.edit = "true", b.contentEditable = z.ContentEditable) : b.contentEditable = "false", i && (b.placeholder = i), x && (b.after = x), l ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...B, children: [
|
|
7343
7349
|
o && /* @__PURE__ */ a.jsx("dt", { children: o }),
|
|
7344
7350
|
/* @__PURE__ */ a.jsx(
|
|
7345
7351
|
"dd",
|
|
@@ -7354,7 +7360,7 @@ function Nc({
|
|
|
7354
7360
|
children: M.q
|
|
7355
7361
|
}
|
|
7356
7362
|
),
|
|
7357
|
-
|
|
7363
|
+
c && /* @__PURE__ */ a.jsx("em", { children: c })
|
|
7358
7364
|
] });
|
|
7359
7365
|
}
|
|
7360
7366
|
const t_ = {
|
|
@@ -7381,7 +7387,7 @@ const t_ = {
|
|
|
7381
7387
|
Set: Tt,
|
|
7382
7388
|
Textarea: ia,
|
|
7383
7389
|
Time: oa,
|
|
7384
|
-
Users:
|
|
7390
|
+
Users: Wt,
|
|
7385
7391
|
String: Ue,
|
|
7386
7392
|
Toogle: ca,
|
|
7387
7393
|
Group: da,
|
|
@@ -7419,8 +7425,8 @@ const n_ = { Spinner: Bc, Inline: $c }, Fc = "_ph_1wjxu_1", Pc = "_e_1wjxu_5", k
|
|
|
7419
7425
|
button: s,
|
|
7420
7426
|
page: i,
|
|
7421
7427
|
tabs: o = [],
|
|
7422
|
-
className:
|
|
7423
|
-
modules:
|
|
7428
|
+
className: c = "",
|
|
7429
|
+
modules: l,
|
|
7424
7430
|
loading: _
|
|
7425
7431
|
}) => {
|
|
7426
7432
|
const [u] = Nn(
|
|
@@ -7429,19 +7435,19 @@ const n_ = { Spinner: Bc, Inline: $c }, Fc = "_ph_1wjxu_1", Pc = "_e_1wjxu_5", k
|
|
|
7429
7435
|
return h.useEffect(() => {
|
|
7430
7436
|
f(!0);
|
|
7431
7437
|
}, []), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
7432
|
-
/* @__PURE__ */ a.jsxs("div", { className: [kn.ph,
|
|
7438
|
+
/* @__PURE__ */ a.jsxs("div", { className: [kn.ph, c].join(" "), children: [
|
|
7433
7439
|
/* @__PURE__ */ a.jsx(Uc, { title: e, affter: t }),
|
|
7434
7440
|
/* @__PURE__ */ a.jsx("div", { className: kn.e }),
|
|
7435
7441
|
/* @__PURE__ */ a.jsx(Zc, { button: s })
|
|
7436
7442
|
] }),
|
|
7437
|
-
o.length > 0 && /* @__PURE__ */ a.jsx(
|
|
7443
|
+
o.length > 0 && /* @__PURE__ */ a.jsx(Gn, { list: o, active: u }),
|
|
7438
7444
|
r,
|
|
7439
7445
|
x && /* @__PURE__ */ a.jsx(
|
|
7440
7446
|
Oc,
|
|
7441
7447
|
{
|
|
7442
7448
|
onDynamicURL: n,
|
|
7443
7449
|
loading: _,
|
|
7444
|
-
m:
|
|
7450
|
+
m: l,
|
|
7445
7451
|
t: u
|
|
7446
7452
|
}
|
|
7447
7453
|
)
|
|
@@ -7468,19 +7474,19 @@ let Oc = ({ m: e, t, loading: n, onDynamicURL: r }) => {
|
|
|
7468
7474
|
};
|
|
7469
7475
|
const a_ = {
|
|
7470
7476
|
Lite: Ac
|
|
7471
|
-
},
|
|
7472
|
-
s:
|
|
7477
|
+
}, Wc = "_s_t9swc_1", yn = {
|
|
7478
|
+
s: Wc
|
|
7473
7479
|
};
|
|
7474
|
-
let
|
|
7475
|
-
function
|
|
7480
|
+
let Gt;
|
|
7481
|
+
function Gc({ className: e, placeholder: t }) {
|
|
7476
7482
|
let n = (o) => {
|
|
7477
|
-
|
|
7483
|
+
Gt(o.target.textContent);
|
|
7478
7484
|
}, r = (o) => {
|
|
7479
7485
|
o.key === "Enter" && o.preventDefault();
|
|
7480
7486
|
}, s = (o) => {
|
|
7481
|
-
o.preventDefault(), navigator.clipboard.readText().then((
|
|
7482
|
-
window.document.execCommand("insertText", !1,
|
|
7483
|
-
}).catch((
|
|
7487
|
+
o.preventDefault(), navigator.clipboard.readText().then((c) => {
|
|
7488
|
+
window.document.execCommand("insertText", !1, c);
|
|
7489
|
+
}).catch((c) => {
|
|
7484
7490
|
});
|
|
7485
7491
|
};
|
|
7486
7492
|
const i = {};
|
|
@@ -7497,20 +7503,20 @@ function Wc({ className: e, placeholder: t }) {
|
|
|
7497
7503
|
);
|
|
7498
7504
|
}
|
|
7499
7505
|
function zc(e, t, n) {
|
|
7500
|
-
let r = [], s = 1, i = 0, o = {},
|
|
7501
|
-
return o[s] = [], e.forEach((
|
|
7502
|
-
|
|
7503
|
-
}), r.forEach((
|
|
7504
|
-
i++, i <=
|
|
7506
|
+
let r = [], s = 1, i = 0, o = {}, c = 50;
|
|
7507
|
+
return o[s] = [], e.forEach((l) => {
|
|
7508
|
+
l.text.toLowerCase().indexOf(t) > -1 && r.push(l.id);
|
|
7509
|
+
}), r.forEach((l) => {
|
|
7510
|
+
i++, i <= c || (s++, i = 1, o[s] = []), o[s].push(n[l]);
|
|
7505
7511
|
}), o;
|
|
7506
7512
|
}
|
|
7507
7513
|
function Kc(e) {
|
|
7508
|
-
|
|
7514
|
+
Gt = e;
|
|
7509
7515
|
}
|
|
7510
7516
|
function Hc(e) {
|
|
7511
|
-
|
|
7517
|
+
Gt = e;
|
|
7512
7518
|
}
|
|
7513
|
-
const r_ = { Field:
|
|
7519
|
+
const r_ = { Field: Gc, Run: zc, Get: Kc, useValue: Hc };
|
|
7514
7520
|
function Yc() {
|
|
7515
7521
|
return /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
|
|
7516
7522
|
/* @__PURE__ */ a.jsx(
|
|
@@ -7718,16 +7724,16 @@ function ad(e) {
|
|
|
7718
7724
|
ue.reset !== void 0 && ue.reset(e);
|
|
7719
7725
|
}
|
|
7720
7726
|
function rd(e, t, n, r) {
|
|
7721
|
-
let s = [], i = 1, o = 0,
|
|
7722
|
-
return
|
|
7727
|
+
let s = [], i = 1, o = 0, c = {}, l = 50;
|
|
7728
|
+
return c[i] = [], r === !0 && (Object.keys(t).forEach((_) => {
|
|
7723
7729
|
Number.parseInt(t[_]) !== 999 && (e = e.filter(
|
|
7724
7730
|
(u) => Number.parseInt(u[_]) === Number.parseInt(t[_])
|
|
7725
7731
|
));
|
|
7726
7732
|
}), ma(e.length)), e.forEach((_) => {
|
|
7727
7733
|
s.push(_.id);
|
|
7728
7734
|
}), s.forEach((_) => {
|
|
7729
|
-
o++, o <=
|
|
7730
|
-
}),
|
|
7735
|
+
o++, o <= l || (i++, o = 1, c[i] = []), c[i].push(n[_]);
|
|
7736
|
+
}), c;
|
|
7731
7737
|
}
|
|
7732
7738
|
function ma(e) {
|
|
7733
7739
|
ue.count(e);
|
|
@@ -7938,15 +7944,15 @@ function pd(e) {
|
|
|
7938
7944
|
s.push({ page: 1 }), s.push({ text: "..." });
|
|
7939
7945
|
}, o = () => {
|
|
7940
7946
|
s.push({ text: "..." }), s.push({ page: r });
|
|
7941
|
-
},
|
|
7942
|
-
for (let u =
|
|
7947
|
+
}, c = (l, _) => {
|
|
7948
|
+
for (let u = l; u < _; u++)
|
|
7943
7949
|
s.push({ page: u });
|
|
7944
7950
|
};
|
|
7945
|
-
return r < t * 2 + 6 ?
|
|
7951
|
+
return r < t * 2 + 6 ? c(1, r + 1) : n < t * 2 + 1 ? (c(1, t * 2 + 4), o()) : n > r - t * 2 ? (t = r > 1e4 ? 1 : t, i(), c(r - t * 2 - 2, r + 1)) : (t = r > 1e4 ? 1 : t, i(), c(n - t, n + t + 1), o()), s.length === 1 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("div", { className: ha.p, children: [
|
|
7946
7952
|
/* @__PURE__ */ a.jsx("i", { onClick: () => e.onChangePage(n - 1), children: /* @__PURE__ */ a.jsx("svg", { viewBox: "0 0 24 24", children: /* @__PURE__ */ a.jsx("path", { d: "M8.19486 5.40705C8.52237 4.96235 9.14837 4.86736 9.59306 5.19488C9.93847 5.44927 10.2668 5.70372 10.5528 5.92689C11.1236 6.3724 11.8882 6.98573 12.6556 7.65208C13.4181 8.31412 14.2064 9.04815 14.8119 9.73344C15.1136 10.0749 15.3911 10.4279 15.5986 10.7721C15.7895 11.0888 16 11.524 16 12.0001C16 12.4762 15.7895 12.9115 15.5986 13.2282C15.3911 13.5724 15.1136 13.9253 14.8119 14.2668C14.2064 14.9521 13.4181 15.6861 12.6556 16.3482C11.8882 17.0145 11.1236 17.6278 10.5528 18.0734C10.2668 18.2965 9.93847 18.551 9.59307 18.8054C9.14837 19.1329 8.52237 19.0379 8.19486 18.5932C8.0632 18.4144 7.99983 18.2064 8.00001 18.0002L8 12.0001L8 6.00007C7.99983 5.79387 8.0632 5.58581 8.19486 5.40705Z" }) }) }),
|
|
7947
|
-
s.map((
|
|
7953
|
+
s.map((l, _) => {
|
|
7948
7954
|
const u = {};
|
|
7949
|
-
return
|
|
7955
|
+
return l.page && (u.onClick = () => e.onChangePage(l.page)), l.page === e.page && (u.active = ""), /* @__PURE__ */ Sn("span", { ...u, key: _ }, l.page || l.text);
|
|
7950
7956
|
}),
|
|
7951
7957
|
/* @__PURE__ */ a.jsx("i", { onClick: () => e.onChangePage(n + 1), children: /* @__PURE__ */ a.jsx("svg", { viewBox: "0 0 24 24", children: /* @__PURE__ */ a.jsx("path", { d: "M8.19486 5.40705C8.52237 4.96235 9.14837 4.86736 9.59306 5.19488C9.93847 5.44927 10.2668 5.70372 10.5528 5.92689C11.1236 6.3724 11.8882 6.98573 12.6556 7.65208C13.4181 8.31412 14.2064 9.04815 14.8119 9.73344C15.1136 10.0749 15.3911 10.4279 15.5986 10.7721C15.7895 11.0888 16 11.524 16 12.0001C16 12.4762 15.7895 12.9115 15.5986 13.2282C15.3911 13.5724 15.1136 13.9253 14.8119 14.2668C14.2064 14.9521 13.4181 15.6861 12.6556 16.3482C11.8882 17.0145 11.1236 17.6278 10.5528 18.0734C10.2668 18.2965 9.93847 18.551 9.59307 18.8054C9.14837 19.1329 8.52237 19.0379 8.19486 18.5932C8.0632 18.4144 7.99983 18.2064 8.00001 18.0002L8 12.0001L8 6.00007C7.99983 5.79387 8.0632 5.58581 8.19486 5.40705Z" }) }) })
|
|
7952
7958
|
] });
|
|
@@ -7984,14 +7990,14 @@ function ga({ load: e, list: t, item: n }) {
|
|
|
7984
7990
|
h.useEffect(() => {
|
|
7985
7991
|
t !== null && i({ type: "load", load: e, data: t });
|
|
7986
7992
|
}, [e]);
|
|
7987
|
-
let o = (
|
|
7988
|
-
if (
|
|
7989
|
-
if (
|
|
7990
|
-
i({ type: "page", page:
|
|
7993
|
+
let o = (c) => {
|
|
7994
|
+
if (c === 0) return c = 1;
|
|
7995
|
+
if (c > s.size) return c = s.size;
|
|
7996
|
+
i({ type: "page", page: c });
|
|
7991
7997
|
};
|
|
7992
7998
|
return h.useEffect(() => {
|
|
7993
7999
|
}, [s]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
7994
|
-
/* @__PURE__ */ a.jsx("div", { className: ha.l, ref: r, children: /* @__PURE__ */ a.jsx(Yn, { "el-empty": "Данные не найдены", children: s.load && s.list !== void 0 ? s.list.map((
|
|
8000
|
+
/* @__PURE__ */ a.jsx("div", { className: ha.l, ref: r, children: /* @__PURE__ */ a.jsx(Yn, { "el-empty": "Данные не найдены", children: s.load && s.list !== void 0 ? s.list.map((c) => /* @__PURE__ */ a.jsx(s.item, { data: c }, c.id)) : /* @__PURE__ */ a.jsxs("div", { "type-data": "load", children: [
|
|
7995
8001
|
/* @__PURE__ */ a.jsx("i", {}),
|
|
7996
8002
|
/* @__PURE__ */ a.jsx("i", {}),
|
|
7997
8003
|
/* @__PURE__ */ a.jsx("i", {})
|
|
@@ -8063,7 +8069,7 @@ function kd(e) {
|
|
|
8063
8069
|
Mt.get && Mt.get(e);
|
|
8064
8070
|
}
|
|
8065
8071
|
const l_ = { View: vd, Reducer: Cd, useValue: jd, Lite: Kn, setValue: kd }, c_ = {
|
|
8066
|
-
addDictionary:
|
|
8072
|
+
addDictionary: Go,
|
|
8067
8073
|
getDictionary: Ho,
|
|
8068
8074
|
setDictionary: Ko,
|
|
8069
8075
|
current: Yo
|
|
@@ -8083,7 +8089,7 @@ const d_ = { Get: yd }, __ = function({
|
|
|
8083
8089
|
tabs: i,
|
|
8084
8090
|
modules: o
|
|
8085
8091
|
}) {
|
|
8086
|
-
const [
|
|
8092
|
+
const [c] = Se.useTabs(s), [l, _] = h.useState(!1);
|
|
8087
8093
|
return h.useEffect(() => {
|
|
8088
8094
|
_(!0);
|
|
8089
8095
|
}, []), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
@@ -8092,7 +8098,7 @@ const d_ = { Get: yd }, __ = function({
|
|
|
8092
8098
|
/* @__PURE__ */ a.jsx("div", { className: "empty" }),
|
|
8093
8099
|
/* @__PURE__ */ a.jsx(wd, { button: r })
|
|
8094
8100
|
] }),
|
|
8095
|
-
|
|
8101
|
+
l && /* @__PURE__ */ a.jsx(bd, { imp: n, modules: o, t: c }),
|
|
8096
8102
|
t
|
|
8097
8103
|
] });
|
|
8098
8104
|
};
|
|
@@ -8113,9 +8119,9 @@ function f_({ active: e, onActive: t, id: n, name: r }) {
|
|
|
8113
8119
|
i(!!e);
|
|
8114
8120
|
}, [e]);
|
|
8115
8121
|
let o = () => {
|
|
8116
|
-
let
|
|
8122
|
+
let c = s ? 0 : 1;
|
|
8117
8123
|
i(!s), t && t({
|
|
8118
|
-
value:
|
|
8124
|
+
value: c,
|
|
8119
8125
|
is: !s,
|
|
8120
8126
|
name: r,
|
|
8121
8127
|
id: n,
|
|
@@ -8184,27 +8190,27 @@ const Dd = async (e) => window.crypto.subtle.importKey(
|
|
|
8184
8190
|
};
|
|
8185
8191
|
function Td(e, t) {
|
|
8186
8192
|
const [n, r] = h.useState(!1), [s, i] = h.useState(null);
|
|
8187
|
-
async function o(
|
|
8188
|
-
const
|
|
8189
|
-
if (ne.isClosed = !1, !
|
|
8193
|
+
async function o(c = e) {
|
|
8194
|
+
const l = new Ed();
|
|
8195
|
+
if (ne.isClosed = !1, !c) return i(3);
|
|
8190
8196
|
let _ = localStorage.getItem("d");
|
|
8191
8197
|
if (t == null || t(_), typeof _ != "string")
|
|
8192
8198
|
return i(0);
|
|
8193
|
-
let u = await Nd(
|
|
8199
|
+
let u = await Nd(c);
|
|
8194
8200
|
if (t == null || t(u), !u) return i(1);
|
|
8195
8201
|
window.location.protocol !== "http:" && (u.d = !1), ne.send = (f) => {
|
|
8196
|
-
|
|
8202
|
+
l.port.postMessage({ type: "send", json: f });
|
|
8197
8203
|
}, ne.closed = () => {
|
|
8198
|
-
ne.isClosed = !0,
|
|
8204
|
+
ne.isClosed = !0, l.port.postMessage(!1);
|
|
8199
8205
|
};
|
|
8200
8206
|
const x = () => {
|
|
8201
|
-
|
|
8207
|
+
l.port.postMessage({
|
|
8202
8208
|
type: "connect",
|
|
8203
8209
|
ukey: _,
|
|
8204
8210
|
link: u
|
|
8205
8211
|
});
|
|
8206
8212
|
};
|
|
8207
|
-
|
|
8213
|
+
l.port.onmessage = (f) => {
|
|
8208
8214
|
t == null || t(f.data);
|
|
8209
8215
|
let m = f.data;
|
|
8210
8216
|
if (m.type === 2 && i(2), m.type === 0 && !ne.isClosed && x(), m.type === 1) return r(!0);
|
|
@@ -8248,7 +8254,7 @@ export {
|
|
|
8248
8254
|
zd as Bookmarks,
|
|
8249
8255
|
Zd as Browser,
|
|
8250
8256
|
Vi as Button,
|
|
8251
|
-
|
|
8257
|
+
Gd as Chart,
|
|
8252
8258
|
d_ as Company,
|
|
8253
8259
|
xn as Component,
|
|
8254
8260
|
Xd as DataBase,
|
|
@@ -8276,8 +8282,8 @@ export {
|
|
|
8276
8282
|
Se as Router,
|
|
8277
8283
|
dc as Scrolling,
|
|
8278
8284
|
r_ as Search,
|
|
8279
|
-
|
|
8280
|
-
|
|
8285
|
+
Wd as Setting,
|
|
8286
|
+
Ge as Sistym,
|
|
8281
8287
|
m_ as Socket,
|
|
8282
8288
|
V as Store,
|
|
8283
8289
|
f_ as Switch,
|