elcrm 0.9.151 → 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 +116 -112
- package/dist/index.umd.js +7 -7
- package/package.json +1 -1
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 = {
|
|
@@ -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
|
});
|
|
@@ -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";
|
|
@@ -125,7 +125,7 @@ function Ja() {
|
|
|
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;
|
|
@@ -314,9 +314,9 @@ function Ja() {
|
|
|
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
|
}
|
|
@@ -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: [
|
|
@@ -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,
|
|
@@ -1194,7 +1194,7 @@ function ps({
|
|
|
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;
|
|
@@ -1234,13 +1234,13 @@ function Ke(e, t = {}, n = Ne ? V.getSSID() : V.getAUTH()) {
|
|
|
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,7 +1260,7 @@ 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
|
}
|
|
@@ -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,
|
|
@@ -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 = {
|
|
@@ -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 };
|
|
@@ -2879,7 +2879,7 @@ function Uo({
|
|
|
2879
2879
|
)
|
|
2880
2880
|
) : Ae.set(
|
|
2881
2881
|
/* @__PURE__ */ a.jsx(
|
|
2882
|
-
|
|
2882
|
+
Wo,
|
|
2883
2883
|
{
|
|
2884
2884
|
update: Date.now(),
|
|
2885
2885
|
orientation: r,
|
|
@@ -2901,14 +2901,18 @@ function Uo({
|
|
|
2901
2901
|
}
|
|
2902
2902
|
);
|
|
2903
2903
|
}
|
|
2904
|
-
const
|
|
2904
|
+
const Wo = ({ content: e, position: t, orientation: n, update: r }) => {
|
|
2905
2905
|
const s = h.useRef(null);
|
|
2906
2906
|
return h.useEffect(() => {
|
|
2907
|
-
const i = s.current
|
|
2908
|
-
|
|
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;
|
|
2909
2913
|
switch (n) {
|
|
2910
2914
|
case "up":
|
|
2911
|
-
l = t.left + c - o.width / 2, l = l < 0 ? 0 : l, i.style.left = l + "px", i.style.top = t.top - o.height - 10 + "px";
|
|
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";
|
|
2912
2916
|
break;
|
|
2913
2917
|
case "down":
|
|
2914
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";
|
|
@@ -2920,23 +2924,23 @@ const Go = ({ content: e, position: t, orientation: n, update: r }) => {
|
|
|
2920
2924
|
i.style.top = t.top + "px", i.style.left = t.right + "px";
|
|
2921
2925
|
break;
|
|
2922
2926
|
}
|
|
2923
|
-
i.style.transition = "
|
|
2927
|
+
i.style.transition = "opacity 0.3s", i.style.textAlign = "center", i.style.opacity = "1";
|
|
2924
2928
|
}, [r]), /* @__PURE__ */ a.jsx("div", { ref: s, className: "tooltip", children: e });
|
|
2925
2929
|
};
|
|
2926
2930
|
let Qe = {}, Et = {}, Dt = "ru";
|
|
2927
|
-
const
|
|
2931
|
+
const Go = (e, t) => {
|
|
2928
2932
|
Et = e, t ? Dt = t : Dt = Object.keys(e)[0];
|
|
2929
|
-
},
|
|
2933
|
+
}, Wn = wn(
|
|
2930
2934
|
localStorage.getItem("lang") || navigator.language
|
|
2931
2935
|
), zo = ({ children: e }) => {
|
|
2932
2936
|
const [t, n] = h.useState(
|
|
2933
2937
|
localStorage.getItem("lang") || navigator.language
|
|
2934
2938
|
);
|
|
2935
|
-
return Qe.update = n, /* @__PURE__ */ a.jsx(
|
|
2939
|
+
return Qe.update = n, /* @__PURE__ */ a.jsx(Wn.Provider, { value: Et[t] || Et[Dt], children: e });
|
|
2936
2940
|
}, Ko = (e) => {
|
|
2937
2941
|
var t;
|
|
2938
2942
|
localStorage.setItem("lang", e), (t = Qe.update) == null || t.call(Qe, e);
|
|
2939
|
-
}, Ho = () => Ka(
|
|
2943
|
+
}, Ho = () => Ka(Wn), Yo = () => localStorage.getItem("lang") || navigator.language;
|
|
2940
2944
|
wn({
|
|
2941
2945
|
tab: "",
|
|
2942
2946
|
setTabs: (e) => {
|
|
@@ -3012,7 +3016,7 @@ const Zd = ({ children: e, ...t }) => /* @__PURE__ */ a.jsxs("div", { className:
|
|
|
3012
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 = {
|
|
3013
3017
|
tabs: ll,
|
|
3014
3018
|
tab: cl
|
|
3015
|
-
},
|
|
3019
|
+
}, Gn = ({ list: e = [], active: t, onTab: n }) => {
|
|
3016
3020
|
const r = (s) => {
|
|
3017
3021
|
if (n) return n(s);
|
|
3018
3022
|
Tn(s);
|
|
@@ -3068,7 +3072,7 @@ const Zd = ({ children: e, ...t }) => /* @__PURE__ */ a.jsxs("div", { className:
|
|
|
3068
3072
|
]
|
|
3069
3073
|
}
|
|
3070
3074
|
);
|
|
3071
|
-
}, Ud = { List: il, Lite:
|
|
3075
|
+
}, Ud = { List: il, Lite: Gn, Button: dl }, ul = ({
|
|
3072
3076
|
title: e = "",
|
|
3073
3077
|
button: t,
|
|
3074
3078
|
description: n = "",
|
|
@@ -3141,7 +3145,7 @@ function zn({ list: e, onClick: t, active: n, size: r, view: s }) {
|
|
|
3141
3145
|
}
|
|
3142
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 });
|
|
3143
3147
|
zn.defaultProps = { size: "M", view: "H" };
|
|
3144
|
-
const
|
|
3148
|
+
const Wd = { Section: ul, Main: hl, Item: wl, Tabs: zn };
|
|
3145
3149
|
function El({ value: e, background: t, gradient: n }) {
|
|
3146
3150
|
let r = 835.24, s = r - e / 100 * r;
|
|
3147
3151
|
const i = h.useId();
|
|
@@ -3179,7 +3183,7 @@ function El({ value: e, background: t, gradient: n }) {
|
|
|
3179
3183
|
}
|
|
3180
3184
|
);
|
|
3181
3185
|
}
|
|
3182
|
-
const
|
|
3186
|
+
const Gd = {
|
|
3183
3187
|
Circle: El
|
|
3184
3188
|
}, zd = { Icon: Lo, Item: bt, Active: Bo }, Dl = { Send: fi, Line: Zn };
|
|
3185
3189
|
function Rl() {
|
|
@@ -3371,11 +3375,11 @@ function Ul(e, t, n) {
|
|
|
3371
3375
|
s++, s <= o || (r++, s = 1, i[r] = []), i[r].push(e[_.id]);
|
|
3372
3376
|
}), { data: i };
|
|
3373
3377
|
}
|
|
3374
|
-
function
|
|
3378
|
+
function Wl(e) {
|
|
3375
3379
|
st.count(e);
|
|
3376
3380
|
}
|
|
3377
|
-
const qd = { Init: Al, useValue: Ol, Set: Zl, Run: Ul, Count:
|
|
3378
|
-
function
|
|
3381
|
+
const qd = { Init: Al, useValue: Ol, Set: Zl, Run: Ul, Count: Wl }, et = {}, Hn = {};
|
|
3382
|
+
function Gl(e) {
|
|
3379
3383
|
const [t, n] = h.useState({}), r = async (s) => {
|
|
3380
3384
|
n(
|
|
3381
3385
|
Object.keys(et).reduce((i, o) => (i ? i[o] = et[o].all : i = {}, i), {})
|
|
@@ -3392,7 +3396,7 @@ function zl(e, t) {
|
|
|
3392
3396
|
break;
|
|
3393
3397
|
}
|
|
3394
3398
|
}
|
|
3395
|
-
const Jd = { useMenu:
|
|
3399
|
+
const Jd = { useMenu: Gl, setUpdate: zl };
|
|
3396
3400
|
class Kl {
|
|
3397
3401
|
constructor(t = "el", n = "db") {
|
|
3398
3402
|
gt(this, "storeName");
|
|
@@ -4201,12 +4205,12 @@ const gc = ({ date: e, onValue: t, position: n, max: r, min: s, className: i })
|
|
|
4201
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) => {
|
|
4202
4206
|
let L = !0;
|
|
4203
4207
|
if (r) {
|
|
4204
|
-
let
|
|
4205
|
-
|
|
4208
|
+
let W = r.getTime(), ee = new Date(f.y, f.m - 1, j).getTime();
|
|
4209
|
+
W < ee && (L = !1);
|
|
4206
4210
|
}
|
|
4207
4211
|
if (s) {
|
|
4208
|
-
let
|
|
4209
|
-
|
|
4212
|
+
let W = s.getTime(), ee = new Date(f.y, f.m - 1, j).getTime();
|
|
4213
|
+
W > ee && (L = !1);
|
|
4210
4214
|
}
|
|
4211
4215
|
return L;
|
|
4212
4216
|
};
|
|
@@ -4346,8 +4350,8 @@ function At({
|
|
|
4346
4350
|
let y = !!(o && (e === "" || e === void 0));
|
|
4347
4351
|
e = H.isNumeric(e) ? Number(e) / x : 0;
|
|
4348
4352
|
let C = (b) => m === "multi" ? b.replace(/[^+\d.+-]/g, "") : b.replace(/[^+\d.]/g, ""), D = (b, j) => {
|
|
4349
|
-
let L = document.createRange(),
|
|
4350
|
-
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();
|
|
4351
4355
|
}, N = (b) => {
|
|
4352
4356
|
t == null || t({
|
|
4353
4357
|
value: C(b.target.textContent) * x,
|
|
@@ -6128,8 +6132,8 @@ function Zt({
|
|
|
6128
6132
|
}) {
|
|
6129
6133
|
l = l !== void 0 ? l : !0, _ = _ !== void 0 ? _ : !0, c = !!(c && (e === "" || e === void 0)) && !(l && _), h.useRef(null);
|
|
6130
6134
|
let g = "+_(___) ___-__-__", p = !0, y = 0, C = (b, j) => {
|
|
6131
|
-
let L = document.createRange(),
|
|
6132
|
-
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();
|
|
6133
6137
|
}, D = (b) => {
|
|
6134
6138
|
let j = T(b.target.textContent);
|
|
6135
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 });
|
|
@@ -6139,9 +6143,9 @@ function Zt({
|
|
|
6139
6143
|
}).catch((j) => {
|
|
6140
6144
|
});
|
|
6141
6145
|
}, T = (b) => {
|
|
6142
|
-
let j = 0, L = "",
|
|
6143
|
-
|
|
6144
|
-
let ee =
|
|
6146
|
+
let j = 0, L = "", W = b.replace(/\D/g, "");
|
|
6147
|
+
W === "" && (p = !0);
|
|
6148
|
+
let ee = W.split(""), oe = "";
|
|
6145
6149
|
ee.forEach((Me) => {
|
|
6146
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(
|
|
6147
6151
|
new RegExp("[0-9]", "g"),
|
|
@@ -6152,9 +6156,9 @@ function Zt({
|
|
|
6152
6156
|
), L = "")));
|
|
6153
6157
|
});
|
|
6154
6158
|
let xe = g.replace(/\D/g, "");
|
|
6155
|
-
return xe.length >=
|
|
6156
|
-
return
|
|
6157
|
-
}), 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 };
|
|
6158
6162
|
}, E = (b) => {
|
|
6159
6163
|
b.preventDefault(), navigator.clipboard.writeText(b.target.textContent.replace(/\D/g, "")).then(
|
|
6160
6164
|
function() {
|
|
@@ -6378,7 +6382,7 @@ const xc = ({
|
|
|
6378
6382
|
s
|
|
6379
6383
|
) : ""
|
|
6380
6384
|
) });
|
|
6381
|
-
function
|
|
6385
|
+
function Wt(e) {
|
|
6382
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) => {
|
|
6383
6387
|
u(e.options[m]), e.onValue({ value: m, name: e.name });
|
|
6384
6388
|
}, [_, u] = h.useState(
|
|
@@ -6516,7 +6520,7 @@ function Tt({
|
|
|
6516
6520
|
);
|
|
6517
6521
|
case "Users":
|
|
6518
6522
|
return V.getSelect("user"), /* @__PURE__ */ a.jsx(
|
|
6519
|
-
|
|
6523
|
+
Wt,
|
|
6520
6524
|
{
|
|
6521
6525
|
title: i,
|
|
6522
6526
|
show: _,
|
|
@@ -7269,7 +7273,7 @@ const e_ = {
|
|
|
7269
7273
|
Set: Tt,
|
|
7270
7274
|
Textarea: ia,
|
|
7271
7275
|
Time: oa,
|
|
7272
|
-
Users:
|
|
7276
|
+
Users: Wt,
|
|
7273
7277
|
String: Ue,
|
|
7274
7278
|
Form: Tt,
|
|
7275
7279
|
runReload: Rc,
|
|
@@ -7301,24 +7305,24 @@ function Nc({
|
|
|
7301
7305
|
}) {
|
|
7302
7306
|
_ = _ !== void 0 ? _ : !0, u = u !== void 0 ? u : !0, l = !!(l && (e === "" || e === void 0)) && !(_ && u), h.useRef(null);
|
|
7303
7307
|
let p = s, y = !0, C = 0, D = (j, L) => {
|
|
7304
|
-
let
|
|
7305
|
-
|
|
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();
|
|
7306
7310
|
}, N = (j) => {
|
|
7307
7311
|
j.preventDefault(), navigator.clipboard.readText().then((L) => {
|
|
7308
7312
|
window.document.execCommand("insertText", !1, L);
|
|
7309
7313
|
}).catch((L) => {
|
|
7310
7314
|
});
|
|
7311
7315
|
}, T = (j) => {
|
|
7312
|
-
let L = 0,
|
|
7316
|
+
let L = 0, W = "", ee = j.replace(/\D/g, "");
|
|
7313
7317
|
ee === "" && (y = !0);
|
|
7314
7318
|
let oe = ee.split(""), xe = "";
|
|
7315
7319
|
oe.forEach((He) => {
|
|
7316
|
-
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 = ""));
|
|
7317
7321
|
});
|
|
7318
7322
|
let Ee = p.replace(/\D/g, "");
|
|
7319
7323
|
return Ee.length >= ee.length && (ee = Ee), { q: p.replace(/[_\d]/g, function() {
|
|
7320
7324
|
return ee.charAt(L++) || "_";
|
|
7321
|
-
}), i: L, v: ee, f:
|
|
7325
|
+
}), i: L, v: ee, f: W };
|
|
7322
7326
|
}, E = (j) => {
|
|
7323
7327
|
j.preventDefault(), navigator.clipboard.writeText(j.target.textContent.replace(/\D/g, "")).then(
|
|
7324
7328
|
function() {
|
|
@@ -7383,7 +7387,7 @@ const t_ = {
|
|
|
7383
7387
|
Set: Tt,
|
|
7384
7388
|
Textarea: ia,
|
|
7385
7389
|
Time: oa,
|
|
7386
|
-
Users:
|
|
7390
|
+
Users: Wt,
|
|
7387
7391
|
String: Ue,
|
|
7388
7392
|
Toogle: ca,
|
|
7389
7393
|
Group: da,
|
|
@@ -7436,7 +7440,7 @@ const n_ = { Spinner: Bc, Inline: $c }, Fc = "_ph_1wjxu_1", Pc = "_e_1wjxu_5", k
|
|
|
7436
7440
|
/* @__PURE__ */ a.jsx("div", { className: kn.e }),
|
|
7437
7441
|
/* @__PURE__ */ a.jsx(Zc, { button: s })
|
|
7438
7442
|
] }),
|
|
7439
|
-
o.length > 0 && /* @__PURE__ */ a.jsx(
|
|
7443
|
+
o.length > 0 && /* @__PURE__ */ a.jsx(Gn, { list: o, active: u }),
|
|
7440
7444
|
r,
|
|
7441
7445
|
x && /* @__PURE__ */ a.jsx(
|
|
7442
7446
|
Oc,
|
|
@@ -7470,13 +7474,13 @@ let Oc = ({ m: e, t, loading: n, onDynamicURL: r }) => {
|
|
|
7470
7474
|
};
|
|
7471
7475
|
const a_ = {
|
|
7472
7476
|
Lite: Ac
|
|
7473
|
-
},
|
|
7474
|
-
s:
|
|
7477
|
+
}, Wc = "_s_t9swc_1", yn = {
|
|
7478
|
+
s: Wc
|
|
7475
7479
|
};
|
|
7476
|
-
let
|
|
7477
|
-
function
|
|
7480
|
+
let Gt;
|
|
7481
|
+
function Gc({ className: e, placeholder: t }) {
|
|
7478
7482
|
let n = (o) => {
|
|
7479
|
-
|
|
7483
|
+
Gt(o.target.textContent);
|
|
7480
7484
|
}, r = (o) => {
|
|
7481
7485
|
o.key === "Enter" && o.preventDefault();
|
|
7482
7486
|
}, s = (o) => {
|
|
@@ -7507,12 +7511,12 @@ function zc(e, t, n) {
|
|
|
7507
7511
|
}), o;
|
|
7508
7512
|
}
|
|
7509
7513
|
function Kc(e) {
|
|
7510
|
-
|
|
7514
|
+
Gt = e;
|
|
7511
7515
|
}
|
|
7512
7516
|
function Hc(e) {
|
|
7513
|
-
|
|
7517
|
+
Gt = e;
|
|
7514
7518
|
}
|
|
7515
|
-
const r_ = { Field:
|
|
7519
|
+
const r_ = { Field: Gc, Run: zc, Get: Kc, useValue: Hc };
|
|
7516
7520
|
function Yc() {
|
|
7517
7521
|
return /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
|
|
7518
7522
|
/* @__PURE__ */ a.jsx(
|
|
@@ -8065,7 +8069,7 @@ function kd(e) {
|
|
|
8065
8069
|
Mt.get && Mt.get(e);
|
|
8066
8070
|
}
|
|
8067
8071
|
const l_ = { View: vd, Reducer: Cd, useValue: jd, Lite: Kn, setValue: kd }, c_ = {
|
|
8068
|
-
addDictionary:
|
|
8072
|
+
addDictionary: Go,
|
|
8069
8073
|
getDictionary: Ho,
|
|
8070
8074
|
setDictionary: Ko,
|
|
8071
8075
|
current: Yo
|
|
@@ -8250,7 +8254,7 @@ export {
|
|
|
8250
8254
|
zd as Bookmarks,
|
|
8251
8255
|
Zd as Browser,
|
|
8252
8256
|
Vi as Button,
|
|
8253
|
-
|
|
8257
|
+
Gd as Chart,
|
|
8254
8258
|
d_ as Company,
|
|
8255
8259
|
xn as Component,
|
|
8256
8260
|
Xd as DataBase,
|
|
@@ -8278,8 +8282,8 @@ export {
|
|
|
8278
8282
|
Se as Router,
|
|
8279
8283
|
dc as Scrolling,
|
|
8280
8284
|
r_ as Search,
|
|
8281
|
-
|
|
8282
|
-
|
|
8285
|
+
Wd as Setting,
|
|
8286
|
+
Ge as Sistym,
|
|
8283
8287
|
m_ as Socket,
|
|
8284
8288
|
V as Store,
|
|
8285
8289
|
f_ as Switch,
|