elcrm 0.8.922 → 0.8.924
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 +130 -130
- package/dist/index.umd.js +6 -6
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -5,7 +5,7 @@ import x, { createElement as Ra } from "react";
|
|
|
5
5
|
let Dt = {};
|
|
6
6
|
const Da = (e) => {
|
|
7
7
|
Dt = e;
|
|
8
|
-
}, Na = (e) => Dt.enCode(e), Ia = (e) => Dt.deCode(e), $ = { enCode: Na, deCode: Ia, New: Da }, D = {}, J = {},
|
|
8
|
+
}, Na = (e) => Dt.enCode(e), Ia = (e) => Dt.deCode(e), $ = { enCode: Na, deCode: Ia, New: Da }, D = {}, J = {}, De = {}, gn = {}, ue = {};
|
|
9
9
|
let tt = "M06";
|
|
10
10
|
function Ta(e) {
|
|
11
11
|
tt = e;
|
|
@@ -143,10 +143,10 @@ function er(e, t, a) {
|
|
|
143
143
|
D.module = e, D.id = a, D.tab = t, sessionStorage.setItem("f", $.enCode(D)), J.module(e), J.tabs(t);
|
|
144
144
|
}
|
|
145
145
|
function tr(e) {
|
|
146
|
-
|
|
146
|
+
De.data = e[0], delete De.data.id, document.body.dataset.theme = De.data.s15, localStorage.setItem("s", $.enCode(De.data));
|
|
147
147
|
}
|
|
148
148
|
function nr(e, t) {
|
|
149
|
-
|
|
149
|
+
De.data[e] = t, localStorage.setItem("s", $.enCode(De.data));
|
|
150
150
|
}
|
|
151
151
|
function ar(e) {
|
|
152
152
|
let t = localStorage.getItem("s");
|
|
@@ -194,17 +194,17 @@ function yn(e, t) {
|
|
|
194
194
|
return se(), !1;
|
|
195
195
|
}
|
|
196
196
|
function Ze(e) {
|
|
197
|
-
|
|
197
|
+
ue.data = e, localStorage.setItem("q", $.enCode(ue.data));
|
|
198
198
|
}
|
|
199
199
|
function ir(e, t) {
|
|
200
|
-
|
|
200
|
+
ue.data = { ...ue.data, [e]: t }, localStorage.setItem("q", $.enCode(ue.data));
|
|
201
201
|
}
|
|
202
|
-
function
|
|
203
|
-
if (!
|
|
202
|
+
function he(e, t) {
|
|
203
|
+
if (!ue.data) {
|
|
204
204
|
let a = localStorage.getItem("q");
|
|
205
|
-
a && (
|
|
205
|
+
a && (ue.data = $.deCode(a));
|
|
206
206
|
}
|
|
207
|
-
return e === void 0 && t === void 0 ?
|
|
207
|
+
return e === void 0 && t === void 0 ? ue.data : e !== void 0 && t === void 0 ? ue.data[e] : ue.data[e][t];
|
|
208
208
|
}
|
|
209
209
|
function or(e) {
|
|
210
210
|
gn.data = e;
|
|
@@ -288,7 +288,7 @@ const oe = {
|
|
|
288
288
|
getCompany: yn,
|
|
289
289
|
setSelect: Ze,
|
|
290
290
|
addSelect: ir,
|
|
291
|
-
getSelect:
|
|
291
|
+
getSelect: he,
|
|
292
292
|
setApi: or,
|
|
293
293
|
getApi: lr,
|
|
294
294
|
setPayment: cr,
|
|
@@ -323,18 +323,18 @@ function Sn(e) {
|
|
|
323
323
|
t && (window.URL || window.webkitURL).revokeObjectURL(t);
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
|
-
const
|
|
326
|
+
const ve = {};
|
|
327
327
|
function xr(e) {
|
|
328
|
-
return e && (
|
|
328
|
+
return e && (ve.s = e), ve.s;
|
|
329
329
|
}
|
|
330
330
|
function vr(e) {
|
|
331
|
-
return e && (
|
|
331
|
+
return e && (ve.a = e), ve.a;
|
|
332
332
|
}
|
|
333
333
|
function Cr(e) {
|
|
334
|
-
return e && (
|
|
334
|
+
return e && (ve.c = e), ve.c;
|
|
335
335
|
}
|
|
336
336
|
function kr(e) {
|
|
337
|
-
return e && (
|
|
337
|
+
return e && (ve.h = e), ve.h;
|
|
338
338
|
}
|
|
339
339
|
const at = { version: { Api: vr, Server: xr, Client: Cr }, Host: kr };
|
|
340
340
|
let jr = "api", yr = "elcrm", wr = "online";
|
|
@@ -573,14 +573,14 @@ function Fr() {
|
|
|
573
573
|
}
|
|
574
574
|
return null;
|
|
575
575
|
}
|
|
576
|
-
var F = Object.assign, W = 0, ee, ae,
|
|
576
|
+
var F = Object.assign, W = 0, ee, ae, me, Se, Me, Ke, At;
|
|
577
577
|
function Gt() {
|
|
578
578
|
}
|
|
579
579
|
Gt.__reactDisabledLog = !0;
|
|
580
580
|
function Qn() {
|
|
581
581
|
{
|
|
582
582
|
if (W === 0) {
|
|
583
|
-
ee = console.log, ae = console.info,
|
|
583
|
+
ee = console.log, ae = console.info, me = console.warn, Se = console.error, Me = console.group, Ke = console.groupCollapsed, At = console.groupEnd;
|
|
584
584
|
var c = {
|
|
585
585
|
configurable: !0,
|
|
586
586
|
enumerable: !0,
|
|
@@ -616,10 +616,10 @@ function Fr() {
|
|
|
616
616
|
value: ae
|
|
617
617
|
}),
|
|
618
618
|
warn: F({}, c, {
|
|
619
|
-
value:
|
|
619
|
+
value: me
|
|
620
620
|
}),
|
|
621
621
|
error: F({}, c, {
|
|
622
|
-
value:
|
|
622
|
+
value: Se
|
|
623
623
|
}),
|
|
624
624
|
group: F({}, c, {
|
|
625
625
|
value: Me
|
|
@@ -722,8 +722,8 @@ function Fr() {
|
|
|
722
722
|
} finally {
|
|
723
723
|
lt = !1, it.current = Z, ea(), Error.prepareStackTrace = A;
|
|
724
724
|
}
|
|
725
|
-
var
|
|
726
|
-
return typeof c == "function" && Ye.set(c,
|
|
725
|
+
var Re = c ? c.displayName || c.name : "", je = Re ? He(Re) : "";
|
|
726
|
+
return typeof c == "function" && Ye.set(c, je), je;
|
|
727
727
|
}
|
|
728
728
|
function na(c, v, j) {
|
|
729
729
|
return Zt(c, !1);
|
|
@@ -911,7 +911,7 @@ function Fr() {
|
|
|
911
911
|
}
|
|
912
912
|
}
|
|
913
913
|
var _t = k.ReactCurrentOwner, qt = k.ReactDebugCurrentFrame;
|
|
914
|
-
function
|
|
914
|
+
function Ee(c) {
|
|
915
915
|
if (c) {
|
|
916
916
|
var v = c._owner, j = qe(c.type, c._source, v ? v.type : null);
|
|
917
917
|
qt.setExtraStackFrame(j);
|
|
@@ -961,7 +961,7 @@ Check the top-level render call using <` + j + ">.");
|
|
|
961
961
|
return;
|
|
962
962
|
Jt[j] = !0;
|
|
963
963
|
var L = "";
|
|
964
|
-
c && c._owner && c._owner !== _t.current && (L = " It was passed a child from " + N(c._owner.type) + "."),
|
|
964
|
+
c && c._owner && c._owner !== _t.current && (L = " It was passed a child from " + N(c._owner.type) + "."), Ee(c), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', j, L), Ee(null);
|
|
965
965
|
}
|
|
966
966
|
}
|
|
967
967
|
function Qt(c, v) {
|
|
@@ -1013,11 +1013,11 @@ Check the top-level render call using <` + j + ">.");
|
|
|
1013
1013
|
for (var v = Object.keys(c.props), j = 0; j < v.length; j++) {
|
|
1014
1014
|
var L = v[j];
|
|
1015
1015
|
if (L !== "children" && L !== "key") {
|
|
1016
|
-
|
|
1016
|
+
Ee(c), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", L), Ee(null);
|
|
1017
1017
|
break;
|
|
1018
1018
|
}
|
|
1019
1019
|
}
|
|
1020
|
-
c.ref !== null && (
|
|
1020
|
+
c.ref !== null && (Ee(c), y("Invalid attribute `ref` supplied to `React.Fragment`."), Ee(null));
|
|
1021
1021
|
}
|
|
1022
1022
|
}
|
|
1023
1023
|
var en = {};
|
|
@@ -1040,8 +1040,8 @@ Check the top-level render call using <` + j + ">.");
|
|
|
1040
1040
|
if (ie !== void 0)
|
|
1041
1041
|
if (L)
|
|
1042
1042
|
if (ct(ie)) {
|
|
1043
|
-
for (var
|
|
1044
|
-
Qt(ie[
|
|
1043
|
+
for (var Re = 0; Re < ie.length; Re++)
|
|
1044
|
+
Qt(ie[Re], c);
|
|
1045
1045
|
Object.freeze && Object.freeze(ie);
|
|
1046
1046
|
} else
|
|
1047
1047
|
y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
@@ -1049,17 +1049,17 @@ Check the top-level render call using <` + j + ">.");
|
|
|
1049
1049
|
Qt(ie, c);
|
|
1050
1050
|
}
|
|
1051
1051
|
if (Le.call(v, "key")) {
|
|
1052
|
-
var
|
|
1052
|
+
var je = N(c), te = Object.keys(v).filter(function(ba) {
|
|
1053
1053
|
return ba !== "key";
|
|
1054
1054
|
}), mt = te.length > 0 ? "{key: someKey, " + te.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1055
|
-
if (!en[
|
|
1055
|
+
if (!en[je + mt]) {
|
|
1056
1056
|
var wa = te.length > 0 ? "{" + te.join(": ..., ") + ": ...}" : "{}";
|
|
1057
1057
|
y(`A props object containing a "key" prop is being spread into JSX:
|
|
1058
1058
|
let props = %s;
|
|
1059
1059
|
<%s {...props} />
|
|
1060
1060
|
React keys must be passed directly to JSX without using spread:
|
|
1061
1061
|
let props = %s;
|
|
1062
|
-
<%s key={someKey} {...props} />`, mt,
|
|
1062
|
+
<%s key={someKey} {...props} />`, mt, je, wa, je), en[je + mt] = !0;
|
|
1063
1063
|
}
|
|
1064
1064
|
}
|
|
1065
1065
|
return c === r ? va(V) : xa(V), V;
|
|
@@ -1086,12 +1086,12 @@ const Br = "_notice_9i5tr_2", $r = "_error_9i5tr_9", Pr = "_success_9i5tr_12", O
|
|
|
1086
1086
|
"show-notice": "_show-notice_9i5tr_1",
|
|
1087
1087
|
"hide-notice": "_hide-notice_9i5tr_1"
|
|
1088
1088
|
};
|
|
1089
|
-
let
|
|
1089
|
+
let Ce = {};
|
|
1090
1090
|
function Zr() {
|
|
1091
1091
|
let [e, t] = x.useState([]);
|
|
1092
|
-
return
|
|
1092
|
+
return Ce.set = (a) => {
|
|
1093
1093
|
t([...e, a]);
|
|
1094
|
-
},
|
|
1094
|
+
}, Ce.del = (a) => {
|
|
1095
1095
|
t(e.filter((r) => r.key !== a));
|
|
1096
1096
|
}, e.length === 0 ? "" : /* @__PURE__ */ n.jsx("ul", { className: Gr.notice, children: e.map((a) => a.item) });
|
|
1097
1097
|
}
|
|
@@ -1101,25 +1101,25 @@ function ze({ data: e }) {
|
|
|
1101
1101
|
setTimeout(function() {
|
|
1102
1102
|
a("hide");
|
|
1103
1103
|
}, 1800), setTimeout(function() {
|
|
1104
|
-
|
|
1104
|
+
Ce.del(e.key);
|
|
1105
1105
|
}, 2500);
|
|
1106
1106
|
}, [e.key]);
|
|
1107
1107
|
let r, s;
|
|
1108
1108
|
switch (e.type) {
|
|
1109
1109
|
case "error":
|
|
1110
|
-
r = /* @__PURE__ */ n.jsx(
|
|
1110
|
+
r = /* @__PURE__ */ n.jsx(ye.error, {}), s = "Ошибка:";
|
|
1111
1111
|
break;
|
|
1112
1112
|
case "success":
|
|
1113
|
-
r = /* @__PURE__ */ n.jsx(
|
|
1113
|
+
r = /* @__PURE__ */ n.jsx(ye.success, {}), s = "Информация:";
|
|
1114
1114
|
break;
|
|
1115
1115
|
case "copy":
|
|
1116
|
-
r = /* @__PURE__ */ n.jsx(
|
|
1116
|
+
r = /* @__PURE__ */ n.jsx(ye.success, {}), s = "Копирование:";
|
|
1117
1117
|
break;
|
|
1118
1118
|
case "remark":
|
|
1119
|
-
r = /* @__PURE__ */ n.jsx(
|
|
1119
|
+
r = /* @__PURE__ */ n.jsx(ye.success, {}), s = "Подсказка:";
|
|
1120
1120
|
break;
|
|
1121
1121
|
default:
|
|
1122
|
-
r = /* @__PURE__ */ n.jsx(
|
|
1122
|
+
r = /* @__PURE__ */ n.jsx(ye.success, {}), s = "Предупреждение:";
|
|
1123
1123
|
break;
|
|
1124
1124
|
}
|
|
1125
1125
|
return /* @__PURE__ */ n.jsxs("li", { className: "item " + e.type, "data-status": t, children: [
|
|
@@ -1130,26 +1130,26 @@ function ze({ data: e }) {
|
|
|
1130
1130
|
}
|
|
1131
1131
|
function Ur(e) {
|
|
1132
1132
|
let t = Date.now(), a = { key: t, ...e };
|
|
1133
|
-
|
|
1133
|
+
Ce.set({ item: /* @__PURE__ */ n.jsx(ze, { data: a }, t), key: t });
|
|
1134
1134
|
}
|
|
1135
1135
|
function zr(e) {
|
|
1136
1136
|
let t = Date.now(), a = { key: t, text: e, type: "error" };
|
|
1137
|
-
|
|
1137
|
+
Ce.set({ item: /* @__PURE__ */ n.jsx(ze, { data: a }, t), key: t });
|
|
1138
1138
|
}
|
|
1139
1139
|
function Wr(e) {
|
|
1140
1140
|
let t = Date.now(), a = { key: t, text: e, type: "success" };
|
|
1141
|
-
|
|
1141
|
+
Ce.set({ item: /* @__PURE__ */ n.jsx(ze, { data: a }, t), key: t });
|
|
1142
1142
|
}
|
|
1143
1143
|
function Kr(e) {
|
|
1144
1144
|
let t = Date.now(), a = { key: t, text: e, type: "remark" };
|
|
1145
|
-
|
|
1145
|
+
Ce.set({ item: /* @__PURE__ */ n.jsx(ze, { data: a }, t), key: t });
|
|
1146
1146
|
}
|
|
1147
1147
|
function Hr(e) {
|
|
1148
1148
|
let t = Date.now(), a = { key: t, text: e, type: "copy" };
|
|
1149
|
-
|
|
1149
|
+
Ce.set({ item: /* @__PURE__ */ n.jsx(ze, { data: a }, t), key: t });
|
|
1150
1150
|
}
|
|
1151
|
-
const
|
|
1152
|
-
|
|
1151
|
+
const ye = {};
|
|
1152
|
+
ye.error = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
|
|
1153
1153
|
/* @__PURE__ */ n.jsx(
|
|
1154
1154
|
"path",
|
|
1155
1155
|
{
|
|
@@ -1165,7 +1165,7 @@ je.error = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "no
|
|
|
1165
1165
|
}
|
|
1166
1166
|
)
|
|
1167
1167
|
] });
|
|
1168
|
-
|
|
1168
|
+
ye.success = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
|
|
1169
1169
|
/* @__PURE__ */ n.jsx(
|
|
1170
1170
|
"path",
|
|
1171
1171
|
{
|
|
@@ -1225,7 +1225,7 @@ function ts(e, t, a) {
|
|
|
1225
1225
|
/* @__PURE__ */ n.jsx(es, { data: e, callback: t, cancel: a })
|
|
1226
1226
|
);
|
|
1227
1227
|
}
|
|
1228
|
-
const
|
|
1228
|
+
const Ne = { Send: Ur, Error: zr, Remark: Kr, Success: Wr, Copy: Hr }, Qe = {
|
|
1229
1229
|
Path: er,
|
|
1230
1230
|
setPage: Za,
|
|
1231
1231
|
getPage: pn,
|
|
@@ -1397,7 +1397,7 @@ function us() {
|
|
|
1397
1397
|
news: [],
|
|
1398
1398
|
take: {}
|
|
1399
1399
|
});
|
|
1400
|
-
|
|
1400
|
+
ge.useListener("bell", async (r) => {
|
|
1401
1401
|
}), _s(async (r) => {
|
|
1402
1402
|
switch (r.action) {
|
|
1403
1403
|
case "add":
|
|
@@ -1406,7 +1406,7 @@ function us() {
|
|
|
1406
1406
|
}
|
|
1407
1407
|
}), x.useEffect(() => {
|
|
1408
1408
|
(async () => {
|
|
1409
|
-
let r = await
|
|
1409
|
+
let r = await ge.Send({
|
|
1410
1410
|
type: "module",
|
|
1411
1411
|
module: "M00",
|
|
1412
1412
|
query: "x0054",
|
|
@@ -1495,7 +1495,7 @@ function us() {
|
|
|
1495
1495
|
}
|
|
1496
1496
|
const fs = ({ data: e, dispatch: t }) => {
|
|
1497
1497
|
let a = async (r) => {
|
|
1498
|
-
t({ type: "hide", id: r.id }), await
|
|
1498
|
+
t({ type: "hide", id: r.id }), await ge.Send({
|
|
1499
1499
|
type: "module",
|
|
1500
1500
|
module: "M00",
|
|
1501
1501
|
query: "x0055",
|
|
@@ -1524,7 +1524,7 @@ function gs(e) {
|
|
|
1524
1524
|
e.data.forEach((s) => {
|
|
1525
1525
|
t[s.id] = { s: s.v, n: s.a }, a[s.id] = s;
|
|
1526
1526
|
});
|
|
1527
|
-
let r = { ...
|
|
1527
|
+
let r = { ...he(), 901: t };
|
|
1528
1528
|
jn(a), Ze(r);
|
|
1529
1529
|
}
|
|
1530
1530
|
function ps() {
|
|
@@ -1613,7 +1613,7 @@ X.users = (e) => {
|
|
|
1613
1613
|
number: o
|
|
1614
1614
|
};
|
|
1615
1615
|
});
|
|
1616
|
-
let a = { ...
|
|
1616
|
+
let a = { ...he(), user: t };
|
|
1617
1617
|
Ze(a);
|
|
1618
1618
|
};
|
|
1619
1619
|
X.api = (e) => {
|
|
@@ -1626,13 +1626,13 @@ X.delete = () => {
|
|
|
1626
1626
|
se();
|
|
1627
1627
|
};
|
|
1628
1628
|
X.select = (e) => {
|
|
1629
|
-
let t = { ...
|
|
1629
|
+
let t = { ...he() };
|
|
1630
1630
|
e.data.forEach((a) => {
|
|
1631
1631
|
t[a.n] = JSON.parse(a.s);
|
|
1632
1632
|
}), Ze(t);
|
|
1633
1633
|
};
|
|
1634
1634
|
X.job = (e) => {
|
|
1635
|
-
let t = { ...
|
|
1635
|
+
let t = { ...he() }, a = {};
|
|
1636
1636
|
Object.keys(e.data).forEach((r) => {
|
|
1637
1637
|
a[r] = { s: 1, n: e.data[r] };
|
|
1638
1638
|
}), t[1] = a, Ze(t);
|
|
@@ -1655,7 +1655,7 @@ function ks(e) {
|
|
|
1655
1655
|
}, e = { ...e, listen: t }, e.type = "modules", de.send(e);
|
|
1656
1656
|
});
|
|
1657
1657
|
}
|
|
1658
|
-
const
|
|
1658
|
+
const ge = { useConnect: xs, useListener: vs, setListener: Cs, Send: ks };
|
|
1659
1659
|
function js(e, t) {
|
|
1660
1660
|
t === void 0 ? (t = e, e = /* @__PURE__ */ new Date()) : e = new Date(e);
|
|
1661
1661
|
let a = {
|
|
@@ -2067,10 +2067,10 @@ function Ls(e, t) {
|
|
|
2067
2067
|
return e > 10 && e < 20 ? t[2] : a > 1 && a < 5 ? t[1] : a === 1 ? t[0] : t[2];
|
|
2068
2068
|
}
|
|
2069
2069
|
function Fs(e, t, a) {
|
|
2070
|
-
return
|
|
2070
|
+
return he(e, t) ? he(e, t).n : a || "";
|
|
2071
2071
|
}
|
|
2072
2072
|
function Bs(e, t, a, r) {
|
|
2073
|
-
return
|
|
2073
|
+
return he(e, t) ? he(e, t)[a] : r || "";
|
|
2074
2074
|
}
|
|
2075
2075
|
function $s(e, t) {
|
|
2076
2076
|
return t && (e = e === 0 ? 7 : e), {
|
|
@@ -2208,12 +2208,12 @@ function ki({
|
|
|
2208
2208
|
}
|
|
2209
2209
|
);
|
|
2210
2210
|
}
|
|
2211
|
-
let
|
|
2211
|
+
let be = {};
|
|
2212
2212
|
function ji({ config: e }) {
|
|
2213
2213
|
let [t, a] = x.useState([]);
|
|
2214
|
-
return
|
|
2214
|
+
return be.x = (r) => {
|
|
2215
2215
|
r || a([]);
|
|
2216
|
-
},
|
|
2216
|
+
}, be.config = e, be.add = (r) => {
|
|
2217
2217
|
a([...t, r]);
|
|
2218
2218
|
}, /* @__PURE__ */ n.jsx(n.Fragment, { children: t.map((r) => r) });
|
|
2219
2219
|
}
|
|
@@ -2303,7 +2303,7 @@ function yi({
|
|
|
2303
2303
|
) : "" });
|
|
2304
2304
|
}
|
|
2305
2305
|
function wi(e) {
|
|
2306
|
-
|
|
2306
|
+
be.add(/* @__PURE__ */ n.jsx(bi, { children: e }, String(Date.now())));
|
|
2307
2307
|
}
|
|
2308
2308
|
function bi({ children: e }) {
|
|
2309
2309
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: e });
|
|
@@ -2319,14 +2319,14 @@ function Si(e) {
|
|
|
2319
2319
|
function Ei({ type: e, name: t, params: a }) {
|
|
2320
2320
|
let [r, s] = x.useState(null);
|
|
2321
2321
|
return x.useEffect(() => {
|
|
2322
|
-
|
|
2322
|
+
be.config(e, t, a, s);
|
|
2323
2323
|
}, [a.id]), /* @__PURE__ */ n.jsx(n.Fragment, { children: r });
|
|
2324
2324
|
}
|
|
2325
2325
|
function Ri(e, t, a) {
|
|
2326
|
-
|
|
2326
|
+
be.config(e, t, a);
|
|
2327
2327
|
}
|
|
2328
2328
|
function Di(e) {
|
|
2329
|
-
|
|
2329
|
+
be.x(e);
|
|
2330
2330
|
}
|
|
2331
2331
|
const rt = {
|
|
2332
2332
|
List: Gs,
|
|
@@ -2525,7 +2525,7 @@ const Wi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
|
|
|
2525
2525
|
};
|
|
2526
2526
|
return x.useEffect(() => {
|
|
2527
2527
|
(async () => {
|
|
2528
|
-
let l = await
|
|
2528
|
+
let l = await ge.Send({
|
|
2529
2529
|
type: "module",
|
|
2530
2530
|
module: "M09",
|
|
2531
2531
|
query: "x0900",
|
|
@@ -2633,7 +2633,7 @@ const Wi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
|
|
|
2633
2633
|
"Content-type": "application/json;charset=utf-8",
|
|
2634
2634
|
SSID: oe.getSSID() || ""
|
|
2635
2635
|
}
|
|
2636
|
-
})).json()).status === "success" && (t({ type: "delete", id: e.id }),
|
|
2636
|
+
})).json()).status === "success" && (t({ type: "delete", id: e.id }), Ne.Send({ type: "success", text: "Файл успешно удалён" }));
|
|
2637
2637
|
};
|
|
2638
2638
|
return /* @__PURE__ */ n.jsxs("li", { children: [
|
|
2639
2639
|
/* @__PURE__ */ n.jsx("div", { className: "f035", children: H.TypeFiles(e.type) }),
|
|
@@ -2711,7 +2711,7 @@ const to = () => {
|
|
|
2711
2711
|
i(K.list[r] !== void 0);
|
|
2712
2712
|
}, [r]);
|
|
2713
2713
|
let o = () => {
|
|
2714
|
-
K.list[r] !== void 0 ? (K.del(r), delete K.list[r], nn(K.list), i(!1),
|
|
2714
|
+
K.list[r] !== void 0 ? (K.del(r), delete K.list[r], nn(K.list), i(!1), Ne.Send({ type: "success", text: "Запись удален из закладок" })) : (K.list[r] = { id: e, name: a, type: t, link: r }, K.set(K.list[r]), nn(K.list), i(!0), Ne.Send({
|
|
2715
2715
|
type: "success",
|
|
2716
2716
|
text: "Запись добавлен в закладки"
|
|
2717
2717
|
}));
|
|
@@ -2746,19 +2746,19 @@ R.connect = !1;
|
|
|
2746
2746
|
R.offer = null;
|
|
2747
2747
|
R.btnRefuse = null;
|
|
2748
2748
|
R.time = !1;
|
|
2749
|
-
let
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2749
|
+
let we;
|
|
2750
|
+
we = document.createElement("audio");
|
|
2751
|
+
we.setAttribute("autoplay", "true");
|
|
2752
|
+
we.setAttribute("muted", "true");
|
|
2753
2753
|
z.start = async (e) => {
|
|
2754
2754
|
R.rtc = new RTCPeerConnection(R.config), R.other = [], R.remoute = !1, R.rtc.onicecandidate = (a) => {
|
|
2755
2755
|
a.candidate && R.other.push(a.candidate);
|
|
2756
2756
|
}, R.rtc.ontrack = (a) => {
|
|
2757
2757
|
if (a.streams && a.streams[0])
|
|
2758
|
-
|
|
2758
|
+
we.srcObject = a.streams[0];
|
|
2759
2759
|
else {
|
|
2760
2760
|
let r = new MediaStream(a.track);
|
|
2761
|
-
|
|
2761
|
+
we.srcObject = r;
|
|
2762
2762
|
}
|
|
2763
2763
|
};
|
|
2764
2764
|
const t = await navigator.mediaDevices.getUserMedia({
|
|
@@ -2771,10 +2771,10 @@ z.start = async (e) => {
|
|
|
2771
2771
|
R.rtc.connectionState;
|
|
2772
2772
|
}, R.rtc.ontrack = async (a) => {
|
|
2773
2773
|
if (a.streams && a.streams[0])
|
|
2774
|
-
|
|
2774
|
+
we.srcObject = a.streams[0];
|
|
2775
2775
|
else {
|
|
2776
2776
|
let r = new MediaStream(a.track);
|
|
2777
|
-
|
|
2777
|
+
we.srcObject = r;
|
|
2778
2778
|
}
|
|
2779
2779
|
}, R.rtc.onaddstream = (a) => {
|
|
2780
2780
|
}, R.rtc.onnegotiationneeded = (a) => {
|
|
@@ -2795,7 +2795,7 @@ z.setListener = (e) => {
|
|
|
2795
2795
|
z.callTo = async (e) => {
|
|
2796
2796
|
z.start(async () => {
|
|
2797
2797
|
const t = await R.rtc.createOffer();
|
|
2798
|
-
await R.rtc.setLocalDescription(t), R.uid = e,
|
|
2798
|
+
await R.rtc.setLocalDescription(t), R.uid = e, ge.Send({
|
|
2799
2799
|
type: "module",
|
|
2800
2800
|
module: "M00",
|
|
2801
2801
|
query: "x0050",
|
|
@@ -2816,7 +2816,7 @@ z.callRise = async () => {
|
|
|
2816
2816
|
new RTCSessionDescription(JSON.parse(atob(R.offer)))
|
|
2817
2817
|
);
|
|
2818
2818
|
const e = await R.rtc.createAnswer();
|
|
2819
|
-
await R.rtc.setLocalDescription(e),
|
|
2819
|
+
await R.rtc.setLocalDescription(e), ge.Send({
|
|
2820
2820
|
type: "module",
|
|
2821
2821
|
module: "M00",
|
|
2822
2822
|
query: "x0050",
|
|
@@ -2831,7 +2831,7 @@ z.callRise = async () => {
|
|
|
2831
2831
|
z.callOk = async (e) => {
|
|
2832
2832
|
R.asset = e.id;
|
|
2833
2833
|
const t = new RTCSessionDescription(JSON.parse(atob(e.answer)));
|
|
2834
|
-
await R.rtc.setRemoteDescription(t),
|
|
2834
|
+
await R.rtc.setRemoteDescription(t), ge.Send({
|
|
2835
2835
|
type: "module",
|
|
2836
2836
|
module: "M00",
|
|
2837
2837
|
query: "x0050",
|
|
@@ -2846,7 +2846,7 @@ z.callOk = async (e) => {
|
|
|
2846
2846
|
z.IceCandidate = async (e) => {
|
|
2847
2847
|
e.candidate.forEach((t) => {
|
|
2848
2848
|
R.rtc.addIceCandidate(new RTCIceCandidate(t));
|
|
2849
|
-
}), e.send &&
|
|
2849
|
+
}), e.send && ge.Send({
|
|
2850
2850
|
type: "module",
|
|
2851
2851
|
module: "M00",
|
|
2852
2852
|
query: "x0050",
|
|
@@ -2867,7 +2867,7 @@ z.callOf = () => {
|
|
|
2867
2867
|
R.asset = 0, R.time = !1, R.rtc.close();
|
|
2868
2868
|
};
|
|
2869
2869
|
z.callRefuser = async () => {
|
|
2870
|
-
|
|
2870
|
+
ge.Send({
|
|
2871
2871
|
type: "module",
|
|
2872
2872
|
module: "M00",
|
|
2873
2873
|
query: "x0050",
|
|
@@ -3034,22 +3034,22 @@ function _o(e, t) {
|
|
|
3034
3034
|
function uo(e, t) {
|
|
3035
3035
|
bt[e] !== void 0 && bt[e](t);
|
|
3036
3036
|
}
|
|
3037
|
-
const
|
|
3037
|
+
const xe = {};
|
|
3038
3038
|
function fo(e, t) {
|
|
3039
3039
|
const [a, r] = x.useState(t);
|
|
3040
3040
|
return x.useEffect(() => {
|
|
3041
|
-
if (
|
|
3042
|
-
return
|
|
3043
|
-
|
|
3041
|
+
if (xe[e])
|
|
3042
|
+
return xe[e].push(r);
|
|
3043
|
+
xe[e] = [r];
|
|
3044
3044
|
}, []), [a];
|
|
3045
3045
|
}
|
|
3046
3046
|
function mo(e, t) {
|
|
3047
|
-
if (
|
|
3048
|
-
return
|
|
3049
|
-
|
|
3047
|
+
if (xe[e])
|
|
3048
|
+
return xe[e].push(t);
|
|
3049
|
+
xe[e] = [t];
|
|
3050
3050
|
}
|
|
3051
3051
|
function ho(e, t) {
|
|
3052
|
-
|
|
3052
|
+
xe[e] && xe[e].forEach((a) => a(t));
|
|
3053
3053
|
}
|
|
3054
3054
|
const Ie = { setListener: uo, useListener: _o, setEmitter: ho, useEmitter: fo, subEmitter: mo };
|
|
3055
3055
|
function go() {
|
|
@@ -3300,9 +3300,9 @@ class Jo {
|
|
|
3300
3300
|
}
|
|
3301
3301
|
}
|
|
3302
3302
|
let gt, q = {};
|
|
3303
|
-
const Te = () => (gt || (gt = new Jo()), gt),
|
|
3303
|
+
const Te = () => (gt || (gt = new Jo()), gt), ke = (e, t, a = Te()) => a._withIDBStore("readwrite", (r) => {
|
|
3304
3304
|
q[e] = t, r.put($.enCode(t), e);
|
|
3305
|
-
}),
|
|
3305
|
+
}), fe = (e, t = Te()) => q[e] === void 0 ? new Promise((a, r) => {
|
|
3306
3306
|
let s;
|
|
3307
3307
|
t._withIDBStore("readonly", (i) => {
|
|
3308
3308
|
s = i.get(e);
|
|
@@ -3369,31 +3369,31 @@ const Te = () => (gt || (gt = new Jo()), gt), Ce = (e, t, a = Te()) => a._withID
|
|
|
3369
3369
|
});
|
|
3370
3370
|
}, nl = async (e, t, a, r) => {
|
|
3371
3371
|
let s, i;
|
|
3372
|
-
i = await
|
|
3372
|
+
i = await fe(a), i[e.id] = e, await ke(a, i), s !== null && (s = await fe(t), s[e.id] = e.eDate, await ke(t, s)), r !== void 0 && r({ type: "load", page: s, base: i });
|
|
3373
3373
|
}, al = async (e, t, a, r) => {
|
|
3374
|
-
let s = await
|
|
3374
|
+
let s = await fe(t), i = await fe(a);
|
|
3375
3375
|
for (let o in e)
|
|
3376
3376
|
i[o] = e[o], s[o] = e[o].eDate;
|
|
3377
|
-
await
|
|
3377
|
+
await ke(t, s), await ke(a, i), r !== void 0 && r({ type: "load", page: s, base: i });
|
|
3378
3378
|
}, rl = async (e, t, a, r) => {
|
|
3379
|
-
let s = await
|
|
3380
|
-
e.forEach((o) => delete s[o]), await
|
|
3379
|
+
let s = await fe(t), i = await fe(a);
|
|
3380
|
+
e.forEach((o) => delete s[o]), await ke(t, s), r !== void 0 && r({ type: "load", page: s, base: i });
|
|
3381
3381
|
}, sl = async (e, t, a) => {
|
|
3382
|
-
let r = await
|
|
3383
|
-
e.forEach((s) => delete r[s]), await
|
|
3382
|
+
let r = await fe(t);
|
|
3383
|
+
e.forEach((s) => delete r[s]), await ke(t, r);
|
|
3384
3384
|
}, il = async (e, t, a) => {
|
|
3385
|
-
let r = await
|
|
3386
|
-
e.forEach((s) => r[s.id] = s.eDate), await
|
|
3385
|
+
let r = await fe(t);
|
|
3386
|
+
e.forEach((s) => r[s.id] = s.eDate), await ke(t, r);
|
|
3387
3387
|
}, ol = async (e, t, a) => {
|
|
3388
|
-
let r = await
|
|
3388
|
+
let r = await fe(t);
|
|
3389
3389
|
if (a !== void 0)
|
|
3390
3390
|
a({ type: "load", base: r });
|
|
3391
3391
|
else
|
|
3392
3392
|
return r[e];
|
|
3393
3393
|
}, ll = (e) => q[e], xc = {
|
|
3394
3394
|
id: ol,
|
|
3395
|
-
get:
|
|
3396
|
-
set:
|
|
3395
|
+
get: fe,
|
|
3396
|
+
set: ke,
|
|
3397
3397
|
add: nl,
|
|
3398
3398
|
del: Xo,
|
|
3399
3399
|
upd: tl,
|
|
@@ -3540,7 +3540,7 @@ function Ge({
|
|
|
3540
3540
|
}, I = (b) => {
|
|
3541
3541
|
b.preventDefault(), navigator.clipboard.writeText(b.target.textContent).then(
|
|
3542
3542
|
function() {
|
|
3543
|
-
|
|
3543
|
+
Ne.Copy("Данные в буфер обмене");
|
|
3544
3544
|
},
|
|
3545
3545
|
function(E) {
|
|
3546
3546
|
}
|
|
@@ -3886,7 +3886,7 @@ function Pn(e) {
|
|
|
3886
3886
|
}
|
|
3887
3887
|
) });
|
|
3888
3888
|
}
|
|
3889
|
-
const gl = "_o_66f7n_1", pl = "_c_66f7n_11", xl = "_as_66f7n_87", vl = "_ap_66f7n_90",
|
|
3889
|
+
const gl = "_o_66f7n_1", pl = "_c_66f7n_11", xl = "_as_66f7n_87", vl = "_ap_66f7n_90", _e = {
|
|
3890
3890
|
o: gl,
|
|
3891
3891
|
c: pl,
|
|
3892
3892
|
as: xl,
|
|
@@ -3981,7 +3981,7 @@ const Cl = (e) => {
|
|
|
3981
3981
|
/* @__PURE__ */ n.jsx(
|
|
3982
3982
|
"div",
|
|
3983
3983
|
{
|
|
3984
|
-
className:
|
|
3984
|
+
className: _e.o,
|
|
3985
3985
|
onClick: () => C()
|
|
3986
3986
|
},
|
|
3987
3987
|
(/* @__PURE__ */ new Date()).getTime()
|
|
@@ -3989,7 +3989,7 @@ const Cl = (e) => {
|
|
|
3989
3989
|
/* @__PURE__ */ n.jsxs(
|
|
3990
3990
|
"div",
|
|
3991
3991
|
{
|
|
3992
|
-
className:
|
|
3992
|
+
className: _e.c,
|
|
3993
3993
|
style: { top: I + "px", left: T + "px" },
|
|
3994
3994
|
children: [
|
|
3995
3995
|
/* @__PURE__ */ n.jsxs("s", { children: [
|
|
@@ -4223,7 +4223,7 @@ const kl = (e) => {
|
|
|
4223
4223
|
/* @__PURE__ */ n.jsx(
|
|
4224
4224
|
"div",
|
|
4225
4225
|
{
|
|
4226
|
-
className:
|
|
4226
|
+
className: _e.o,
|
|
4227
4227
|
onClick: () => _()
|
|
4228
4228
|
},
|
|
4229
4229
|
(/* @__PURE__ */ new Date()).getTime()
|
|
@@ -4231,7 +4231,7 @@ const kl = (e) => {
|
|
|
4231
4231
|
/* @__PURE__ */ n.jsxs(
|
|
4232
4232
|
"div",
|
|
4233
4233
|
{
|
|
4234
|
-
className:
|
|
4234
|
+
className: _e.c,
|
|
4235
4235
|
style: { top: h + "px", left: p + "px" },
|
|
4236
4236
|
children: [
|
|
4237
4237
|
/* @__PURE__ */ n.jsxs("s", { children: [
|
|
@@ -5846,14 +5846,14 @@ function Bt({
|
|
|
5846
5846
|
"_"
|
|
5847
5847
|
), F = "")));
|
|
5848
5848
|
});
|
|
5849
|
-
let
|
|
5850
|
-
return
|
|
5849
|
+
let me = h.replace(/\D/g, "");
|
|
5850
|
+
return me.length >= W.length && (W = me), { q: h.replace(/[_\d]/g, function() {
|
|
5851
5851
|
return W.charAt(N++) || "_";
|
|
5852
5852
|
}), i: N, v: W, f: F };
|
|
5853
5853
|
}, w = (O) => {
|
|
5854
5854
|
O.preventDefault(), navigator.clipboard.writeText(O.target.textContent.replace(/\D/g, "")).then(
|
|
5855
5855
|
function() {
|
|
5856
|
-
|
|
5856
|
+
Ne.Copy("Данные в буфер обмене");
|
|
5857
5857
|
},
|
|
5858
5858
|
function(N) {
|
|
5859
5859
|
}
|
|
@@ -6457,7 +6457,7 @@ const bl = ({ positions: e, onSave: t, onValue: a, date: r }) => {
|
|
|
6457
6457
|
/* @__PURE__ */ n.jsx(
|
|
6458
6458
|
"div",
|
|
6459
6459
|
{
|
|
6460
|
-
className:
|
|
6460
|
+
className: _e.o,
|
|
6461
6461
|
onClick: () => I()
|
|
6462
6462
|
},
|
|
6463
6463
|
(/* @__PURE__ */ new Date()).getTime()
|
|
@@ -6465,7 +6465,7 @@ const bl = ({ positions: e, onSave: t, onValue: a, date: r }) => {
|
|
|
6465
6465
|
/* @__PURE__ */ n.jsxs(
|
|
6466
6466
|
"div",
|
|
6467
6467
|
{
|
|
6468
|
-
className:
|
|
6468
|
+
className: _e.c,
|
|
6469
6469
|
onMouseDown: m,
|
|
6470
6470
|
onMouseUp: C,
|
|
6471
6471
|
onMouseMove: h,
|
|
@@ -6480,7 +6480,7 @@ const bl = ({ positions: e, onSave: t, onValue: a, date: r }) => {
|
|
|
6480
6480
|
{
|
|
6481
6481
|
className: [
|
|
6482
6482
|
"hour",
|
|
6483
|
-
o === "hour" ?
|
|
6483
|
+
o === "hour" ? _e.as : _e.ap
|
|
6484
6484
|
].join(" "),
|
|
6485
6485
|
ref: f.hourText,
|
|
6486
6486
|
children: i.h
|
|
@@ -6494,7 +6494,7 @@ const bl = ({ positions: e, onSave: t, onValue: a, date: r }) => {
|
|
|
6494
6494
|
{
|
|
6495
6495
|
className: [
|
|
6496
6496
|
"min",
|
|
6497
|
-
o === "time" ?
|
|
6497
|
+
o === "time" ? _e.as : _e.ap
|
|
6498
6498
|
].join(" "),
|
|
6499
6499
|
ref: f.timeText,
|
|
6500
6500
|
children: i.m
|
|
@@ -6848,22 +6848,22 @@ function Nl(e, t) {
|
|
|
6848
6848
|
o[i] = s.charCodeAt(i);
|
|
6849
6849
|
return new File([o], t, { type: r });
|
|
6850
6850
|
}
|
|
6851
|
-
const
|
|
6851
|
+
const pe = {};
|
|
6852
6852
|
function Il(e) {
|
|
6853
6853
|
const [t, a] = x.useState({}), r = x.useRef(e);
|
|
6854
|
-
return
|
|
6854
|
+
return pe.u = (s) => {
|
|
6855
6855
|
r.current = { ...r.current, [s.name]: s.value };
|
|
6856
|
-
},
|
|
6856
|
+
}, pe.n = (s) => {
|
|
6857
6857
|
r.current = s, a(Date.now());
|
|
6858
|
-
},
|
|
6858
|
+
}, pe.r = () => {
|
|
6859
6859
|
a(Date.now());
|
|
6860
|
-
}, [r.current,
|
|
6860
|
+
}, [r.current, pe.n];
|
|
6861
6861
|
}
|
|
6862
6862
|
function Tl(e) {
|
|
6863
|
-
|
|
6863
|
+
pe.u(e), e.reload && pe.r();
|
|
6864
6864
|
}
|
|
6865
6865
|
function Ml() {
|
|
6866
|
-
|
|
6866
|
+
pe.r && pe.r();
|
|
6867
6867
|
}
|
|
6868
6868
|
const kc = {
|
|
6869
6869
|
Color: Pn,
|
|
@@ -6930,18 +6930,18 @@ function Ll({
|
|
|
6930
6930
|
}, w = (N) => {
|
|
6931
6931
|
let F = 0, W = "", ee = N.replace(/\D/g, "");
|
|
6932
6932
|
ee === "" && (k = !0);
|
|
6933
|
-
let ae = ee.split(""),
|
|
6933
|
+
let ae = ee.split(""), me = "";
|
|
6934
6934
|
ae.forEach((Ke) => {
|
|
6935
|
-
k && (
|
|
6935
|
+
k && (me += Ke, k && (y = ("" + me).length, p = s.replace(new RegExp("[0-9]", "g"), "_"), W = ""), y > ("" + me).length && (k = !0, p = s.replace(new RegExp("[0-9]", "g"), "_"), W = ""));
|
|
6936
6936
|
});
|
|
6937
|
-
let
|
|
6938
|
-
return
|
|
6937
|
+
let Se = p.replace(/\D/g, "");
|
|
6938
|
+
return Se.length >= ee.length && (ee = Se), { q: p.replace(/[_\d]/g, function() {
|
|
6939
6939
|
return ee.charAt(F++) || "_";
|
|
6940
6940
|
}), i: F, v: ee, f: W };
|
|
6941
6941
|
}, S = (N) => {
|
|
6942
6942
|
N.preventDefault(), navigator.clipboard.writeText(N.target.textContent.replace(/\D/g, "")).then(
|
|
6943
6943
|
function() {
|
|
6944
|
-
|
|
6944
|
+
Ne.Copy("Данные в буфер обмене");
|
|
6945
6945
|
},
|
|
6946
6946
|
function(F) {
|
|
6947
6947
|
}
|
|
@@ -7452,7 +7452,7 @@ export {
|
|
|
7452
7452
|
Rc as List,
|
|
7453
7453
|
yc as Loading,
|
|
7454
7454
|
rt as Modal,
|
|
7455
|
-
|
|
7455
|
+
Ne as Notice,
|
|
7456
7456
|
Sc as Notifications,
|
|
7457
7457
|
Ec as Pagination,
|
|
7458
7458
|
Nc as Phone,
|
|
@@ -7461,7 +7461,7 @@ export {
|
|
|
7461
7461
|
wc as Search,
|
|
7462
7462
|
uc as Setting,
|
|
7463
7463
|
at as Sistym,
|
|
7464
|
-
|
|
7464
|
+
ge as Socket,
|
|
7465
7465
|
oe as Store,
|
|
7466
7466
|
Ic as Switch,
|
|
7467
7467
|
yo as Tabs,
|