elcrm 0.8.40 → 0.8.42
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 +90 -88
- package/dist/index.umd.js +4 -4
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -5,7 +5,7 @@ import x, { createElement as Ea } from "react";
|
|
|
5
5
|
let wt = {};
|
|
6
6
|
const Na = (e) => {
|
|
7
7
|
wt = e;
|
|
8
|
-
}, Ra = (e) => wt.enCode(e), Ta = (e) => wt.deCode(e), F = { enCode: Ra, deCode: Ta, New: Na }, b = {}, V = {},
|
|
8
|
+
}, Ra = (e) => wt.enCode(e), Ta = (e) => wt.deCode(e), F = { enCode: Ra, deCode: Ta, New: Na }, b = {}, V = {}, we = {}, mn = {}, ce = {};
|
|
9
9
|
let St = "M06";
|
|
10
10
|
function Ia(e) {
|
|
11
11
|
St = e;
|
|
@@ -143,10 +143,10 @@ function Qa(e, t, a) {
|
|
|
143
143
|
b.module = e, b.id = a, b.tab = t, sessionStorage.setItem("f", F.enCode(b)), V.module(e), V.tabs(t);
|
|
144
144
|
}
|
|
145
145
|
function er(e) {
|
|
146
|
-
|
|
146
|
+
we.data = e[0], delete we.data.id, document.body.dataset.theme = we.data.s15, localStorage.setItem("s", F.enCode(we.data));
|
|
147
147
|
}
|
|
148
148
|
function tr(e, t) {
|
|
149
|
-
|
|
149
|
+
we.data[e] = t, localStorage.setItem("s", F.enCode(we.data));
|
|
150
150
|
}
|
|
151
151
|
function nr(e) {
|
|
152
152
|
let t = localStorage.getItem("s");
|
|
@@ -199,7 +199,7 @@ function Oe(e) {
|
|
|
199
199
|
function sr(e, t) {
|
|
200
200
|
ce.data = { ...ce.data, [e]: t }, localStorage.setItem("q", F.enCode(ce.data));
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function je(e, t) {
|
|
203
203
|
if (!ce.data) {
|
|
204
204
|
let a = localStorage.getItem("q");
|
|
205
205
|
a && (ce.data = F.deCode(a));
|
|
@@ -288,7 +288,7 @@ const ie = {
|
|
|
288
288
|
getCompany: kn,
|
|
289
289
|
setSelect: Oe,
|
|
290
290
|
addSelect: sr,
|
|
291
|
-
getSelect:
|
|
291
|
+
getSelect: je,
|
|
292
292
|
setApi: ir,
|
|
293
293
|
getApi: or,
|
|
294
294
|
setPayment: lr,
|
|
@@ -323,18 +323,18 @@ function bn(e) {
|
|
|
323
323
|
t && (window.URL || window.webkitURL).revokeObjectURL(t);
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
|
-
const
|
|
326
|
+
const he = {};
|
|
327
327
|
function pr(e) {
|
|
328
|
-
return e && (
|
|
328
|
+
return e && (he.s = e), he.s;
|
|
329
329
|
}
|
|
330
330
|
function gr(e) {
|
|
331
|
-
return e && (
|
|
331
|
+
return e && (he.a = e), he.a;
|
|
332
332
|
}
|
|
333
333
|
function vr(e) {
|
|
334
|
-
return e && (
|
|
334
|
+
return e && (he.c = e), he.c;
|
|
335
335
|
}
|
|
336
336
|
function Cr(e) {
|
|
337
|
-
return e && (
|
|
337
|
+
return e && (he.h = e), he.h;
|
|
338
338
|
}
|
|
339
339
|
const Et = { version: { Api: gr, Server: pr, Client: vr }, Host: Cr };
|
|
340
340
|
let kr = "api", jr = "elcrm", yr = "online";
|
|
@@ -690,8 +690,8 @@ function Ir() {
|
|
|
690
690
|
} finally {
|
|
691
691
|
rt = !1, nt.current = P, Qn(), Error.prepareStackTrace = B;
|
|
692
692
|
}
|
|
693
|
-
var
|
|
694
|
-
return typeof c == "function" && Ke.set(c,
|
|
693
|
+
var be = c ? c.displayName || c.name : "", ge = be ? We(be) : "";
|
|
694
|
+
return typeof c == "function" && Ke.set(c, ge), ge;
|
|
695
695
|
}
|
|
696
696
|
function ta(c, p, k) {
|
|
697
697
|
return At(c, !1);
|
|
@@ -879,7 +879,7 @@ function Ir() {
|
|
|
879
879
|
}
|
|
880
880
|
}
|
|
881
881
|
var ot = j.ReactCurrentOwner, Vt = j.ReactDebugCurrentFrame;
|
|
882
|
-
function
|
|
882
|
+
function ye(c) {
|
|
883
883
|
if (c) {
|
|
884
884
|
var p = c._owner, k = Ue(c.type, c._source, p ? p.type : null);
|
|
885
885
|
Vt.setExtraStackFrame(k);
|
|
@@ -929,7 +929,7 @@ Check the top-level render call using <` + k + ">.");
|
|
|
929
929
|
return;
|
|
930
930
|
Ht[k] = !0;
|
|
931
931
|
var T = "";
|
|
932
|
-
c && c._owner && c._owner !== ot.current && (T = " It was passed a child from " + $(c._owner.type) + "."),
|
|
932
|
+
c && c._owner && c._owner !== ot.current && (T = " It was passed a child from " + $(c._owner.type) + "."), ye(c), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', k, T), ye(null);
|
|
933
933
|
}
|
|
934
934
|
}
|
|
935
935
|
function Jt(c, p) {
|
|
@@ -981,11 +981,11 @@ Check the top-level render call using <` + k + ">.");
|
|
|
981
981
|
for (var p = Object.keys(c.props), k = 0; k < p.length; k++) {
|
|
982
982
|
var T = p[k];
|
|
983
983
|
if (T !== "children" && T !== "key") {
|
|
984
|
-
|
|
984
|
+
ye(c), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", T), ye(null);
|
|
985
985
|
break;
|
|
986
986
|
}
|
|
987
987
|
}
|
|
988
|
-
c.ref !== null && (
|
|
988
|
+
c.ref !== null && (ye(c), S("Invalid attribute `ref` supplied to `React.Fragment`."), ye(null));
|
|
989
989
|
}
|
|
990
990
|
}
|
|
991
991
|
var Xt = {};
|
|
@@ -1008,8 +1008,8 @@ Check the top-level render call using <` + k + ">.");
|
|
|
1008
1008
|
if (ne !== void 0)
|
|
1009
1009
|
if (T)
|
|
1010
1010
|
if (st(ne)) {
|
|
1011
|
-
for (var
|
|
1012
|
-
Jt(ne[
|
|
1011
|
+
for (var be = 0; be < ne.length; be++)
|
|
1012
|
+
Jt(ne[be], c);
|
|
1013
1013
|
Object.freeze && Object.freeze(ne);
|
|
1014
1014
|
} else
|
|
1015
1015
|
S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
@@ -1017,17 +1017,17 @@ Check the top-level render call using <` + k + ">.");
|
|
|
1017
1017
|
Jt(ne, c);
|
|
1018
1018
|
}
|
|
1019
1019
|
if (Te.call(p, "key")) {
|
|
1020
|
-
var
|
|
1020
|
+
var ge = $(c), Q = Object.keys(p).filter(function(ba) {
|
|
1021
1021
|
return ba !== "key";
|
|
1022
1022
|
}), dt = Q.length > 0 ? "{key: someKey, " + Q.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1023
|
-
if (!Xt[
|
|
1023
|
+
if (!Xt[ge + dt]) {
|
|
1024
1024
|
var ya = Q.length > 0 ? "{" + Q.join(": ..., ") + ": ...}" : "{}";
|
|
1025
1025
|
S(`A props object containing a "key" prop is being spread into JSX:
|
|
1026
1026
|
let props = %s;
|
|
1027
1027
|
<%s {...props} />
|
|
1028
1028
|
React keys must be passed directly to JSX without using spread:
|
|
1029
1029
|
let props = %s;
|
|
1030
|
-
<%s key={someKey} {...props} />`, dt,
|
|
1030
|
+
<%s key={someKey} {...props} />`, dt, ge, ya, ge), Xt[ge + dt] = !0;
|
|
1031
1031
|
}
|
|
1032
1032
|
}
|
|
1033
1033
|
return c === r ? ga(U) : pa(U), U;
|
|
@@ -1054,12 +1054,12 @@ const Dr = "_notice_9i5tr_2", Mr = "_error_9i5tr_9", Fr = "_success_9i5tr_12", L
|
|
|
1054
1054
|
"show-notice": "_show-notice_9i5tr_1",
|
|
1055
1055
|
"hide-notice": "_hide-notice_9i5tr_1"
|
|
1056
1056
|
};
|
|
1057
|
-
let
|
|
1057
|
+
let xe = {};
|
|
1058
1058
|
function Pr() {
|
|
1059
1059
|
let [e, t] = x.useState([]);
|
|
1060
|
-
return
|
|
1060
|
+
return xe.set = (a) => {
|
|
1061
1061
|
t([...e, a]);
|
|
1062
|
-
},
|
|
1062
|
+
}, xe.del = (a) => {
|
|
1063
1063
|
t(e.filter((r) => r.key !== a));
|
|
1064
1064
|
}, e.length === 0 ? "" : /* @__PURE__ */ n.jsx("ul", { className: Br.notice, children: e.map((a) => a.item) });
|
|
1065
1065
|
}
|
|
@@ -1069,25 +1069,25 @@ function Ae({ data: e }) {
|
|
|
1069
1069
|
setTimeout(function() {
|
|
1070
1070
|
a("hide");
|
|
1071
1071
|
}, 1800), setTimeout(function() {
|
|
1072
|
-
|
|
1072
|
+
xe.del(e.key);
|
|
1073
1073
|
}, 2500);
|
|
1074
1074
|
}, [e.key]);
|
|
1075
1075
|
let r, s;
|
|
1076
1076
|
switch (e.type) {
|
|
1077
1077
|
case "error":
|
|
1078
|
-
r = /* @__PURE__ */ n.jsx(
|
|
1078
|
+
r = /* @__PURE__ */ n.jsx(ve.error, {}), s = "Ошибка:";
|
|
1079
1079
|
break;
|
|
1080
1080
|
case "success":
|
|
1081
|
-
r = /* @__PURE__ */ n.jsx(
|
|
1081
|
+
r = /* @__PURE__ */ n.jsx(ve.success, {}), s = "Информация:";
|
|
1082
1082
|
break;
|
|
1083
1083
|
case "copy":
|
|
1084
|
-
r = /* @__PURE__ */ n.jsx(
|
|
1084
|
+
r = /* @__PURE__ */ n.jsx(ve.success, {}), s = "Копирование:";
|
|
1085
1085
|
break;
|
|
1086
1086
|
case "remark":
|
|
1087
|
-
r = /* @__PURE__ */ n.jsx(
|
|
1087
|
+
r = /* @__PURE__ */ n.jsx(ve.success, {}), s = "Подсказка:";
|
|
1088
1088
|
break;
|
|
1089
1089
|
default:
|
|
1090
|
-
r = /* @__PURE__ */ n.jsx(
|
|
1090
|
+
r = /* @__PURE__ */ n.jsx(ve.success, {}), s = "Предупреждение:";
|
|
1091
1091
|
break;
|
|
1092
1092
|
}
|
|
1093
1093
|
return /* @__PURE__ */ n.jsxs("li", { className: "item " + e.type, "data-status": t, children: [
|
|
@@ -1098,26 +1098,26 @@ function Ae({ data: e }) {
|
|
|
1098
1098
|
}
|
|
1099
1099
|
function Or(e) {
|
|
1100
1100
|
let t = Date.now(), a = { key: t, ...e };
|
|
1101
|
-
|
|
1101
|
+
xe.set({ item: /* @__PURE__ */ n.jsx(Ae, { data: a }, t), key: t });
|
|
1102
1102
|
}
|
|
1103
1103
|
function Ar(e) {
|
|
1104
1104
|
let t = Date.now(), a = { key: t, text: e, type: "error" };
|
|
1105
|
-
|
|
1105
|
+
xe.set({ item: /* @__PURE__ */ n.jsx(Ae, { data: a }, t), key: t });
|
|
1106
1106
|
}
|
|
1107
1107
|
function Zr(e) {
|
|
1108
1108
|
let t = Date.now(), a = { key: t, text: e, type: "success" };
|
|
1109
|
-
|
|
1109
|
+
xe.set({ item: /* @__PURE__ */ n.jsx(Ae, { data: a }, t), key: t });
|
|
1110
1110
|
}
|
|
1111
1111
|
function zr(e) {
|
|
1112
1112
|
let t = Date.now(), a = { key: t, text: e, type: "remark" };
|
|
1113
|
-
|
|
1113
|
+
xe.set({ item: /* @__PURE__ */ n.jsx(Ae, { data: a }, t), key: t });
|
|
1114
1114
|
}
|
|
1115
1115
|
function Gr(e) {
|
|
1116
1116
|
let t = Date.now(), a = { key: t, text: e, type: "copy" };
|
|
1117
|
-
|
|
1117
|
+
xe.set({ item: /* @__PURE__ */ n.jsx(Ae, { data: a }, t), key: t });
|
|
1118
1118
|
}
|
|
1119
|
-
const
|
|
1120
|
-
|
|
1119
|
+
const ve = {};
|
|
1120
|
+
ve.error = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
|
|
1121
1121
|
/* @__PURE__ */ n.jsx(
|
|
1122
1122
|
"path",
|
|
1123
1123
|
{
|
|
@@ -1133,7 +1133,7 @@ ge.error = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "no
|
|
|
1133
1133
|
}
|
|
1134
1134
|
)
|
|
1135
1135
|
] });
|
|
1136
|
-
|
|
1136
|
+
ve.success = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
|
|
1137
1137
|
/* @__PURE__ */ n.jsx(
|
|
1138
1138
|
"path",
|
|
1139
1139
|
{
|
|
@@ -1482,7 +1482,7 @@ function us(e) {
|
|
|
1482
1482
|
e.data.forEach((s) => {
|
|
1483
1483
|
t[s.id] = { s: s.v, n: s.a }, a[s.id] = s;
|
|
1484
1484
|
});
|
|
1485
|
-
let r = { ...
|
|
1485
|
+
let r = { ...je(), 901: t };
|
|
1486
1486
|
Cn(a), Oe(r);
|
|
1487
1487
|
}
|
|
1488
1488
|
function fs() {
|
|
@@ -1571,7 +1571,7 @@ Y.users = (e) => {
|
|
|
1571
1571
|
number: o
|
|
1572
1572
|
};
|
|
1573
1573
|
});
|
|
1574
|
-
let a = { ...
|
|
1574
|
+
let a = { ...je(), user: t };
|
|
1575
1575
|
Oe(a);
|
|
1576
1576
|
};
|
|
1577
1577
|
Y.api = (e) => {
|
|
@@ -1584,13 +1584,13 @@ Y.delete = () => {
|
|
|
1584
1584
|
te();
|
|
1585
1585
|
};
|
|
1586
1586
|
Y.select = (e) => {
|
|
1587
|
-
let t = { ...
|
|
1587
|
+
let t = { ...je() };
|
|
1588
1588
|
e.data.forEach((a) => {
|
|
1589
1589
|
t[a.n] = JSON.parse(a.s);
|
|
1590
1590
|
}), Oe(t);
|
|
1591
1591
|
};
|
|
1592
1592
|
Y.job = (e) => {
|
|
1593
|
-
let t = { ...
|
|
1593
|
+
let t = { ...je() }, a = {};
|
|
1594
1594
|
Object.keys(e.data).forEach((r) => {
|
|
1595
1595
|
a[r] = { s: 1, n: e.data[r] };
|
|
1596
1596
|
}), t[1] = a, Oe(t);
|
|
@@ -2025,7 +2025,7 @@ function Ts(e, t) {
|
|
|
2025
2025
|
return e > 10 && e < 20 ? t[2] : a > 1 && a < 5 ? t[1] : a === 1 ? t[0] : t[2];
|
|
2026
2026
|
}
|
|
2027
2027
|
function Is(e, t, a) {
|
|
2028
|
-
return
|
|
2028
|
+
return je(e, t) ? je(e, t).n : a || "";
|
|
2029
2029
|
}
|
|
2030
2030
|
function Ds(e, t) {
|
|
2031
2031
|
return e.reduce(function(a, r) {
|
|
@@ -2109,10 +2109,10 @@ const _i = "_btn_1hz2s_6", ui = "_confirm_1hz2s_19", sn = {
|
|
|
2109
2109
|
};
|
|
2110
2110
|
function fi({ onClick: e, onSend: t, label: a, onRef: r }) {
|
|
2111
2111
|
let [s, i] = x.useState(!1);
|
|
2112
|
-
const o = () => {
|
|
2112
|
+
const o = (l) => {
|
|
2113
2113
|
if (e)
|
|
2114
2114
|
return e();
|
|
2115
|
-
s || (i(!0), t
|
|
2115
|
+
s || (t ? (i(!0), t(i)) : l.preventDefault());
|
|
2116
2116
|
};
|
|
2117
2117
|
return /* @__PURE__ */ n.jsx(
|
|
2118
2118
|
"button",
|
|
@@ -2124,12 +2124,12 @@ function fi({ onClick: e, onSend: t, label: a, onRef: r }) {
|
|
|
2124
2124
|
}
|
|
2125
2125
|
);
|
|
2126
2126
|
}
|
|
2127
|
-
let
|
|
2127
|
+
let ke = {};
|
|
2128
2128
|
function mi({ config: e }) {
|
|
2129
2129
|
let [t, a] = x.useState([]);
|
|
2130
|
-
return
|
|
2130
|
+
return ke.x = (r) => {
|
|
2131
2131
|
r || a([]);
|
|
2132
|
-
},
|
|
2132
|
+
}, ke.config = e, ke.add = (r) => {
|
|
2133
2133
|
a([...t, r]);
|
|
2134
2134
|
}, /* @__PURE__ */ n.jsx(n.Fragment, { children: t.map((r) => r) });
|
|
2135
2135
|
}
|
|
@@ -2212,7 +2212,7 @@ function hi({
|
|
|
2212
2212
|
) : "" });
|
|
2213
2213
|
}
|
|
2214
2214
|
function xi(e) {
|
|
2215
|
-
|
|
2215
|
+
ke.add(/* @__PURE__ */ n.jsx(pi, { children: e }, String(Date.now())));
|
|
2216
2216
|
}
|
|
2217
2217
|
function pi({ children: e }) {
|
|
2218
2218
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: e });
|
|
@@ -2228,14 +2228,14 @@ function gi(e) {
|
|
|
2228
2228
|
function vi({ type: e, name: t, params: a }) {
|
|
2229
2229
|
let [r, s] = x.useState(null);
|
|
2230
2230
|
return x.useEffect(() => {
|
|
2231
|
-
|
|
2231
|
+
ke.config(e, t, a, s);
|
|
2232
2232
|
}, [a.id]), /* @__PURE__ */ n.jsx(n.Fragment, { children: r });
|
|
2233
2233
|
}
|
|
2234
2234
|
function Ci(e, t, a) {
|
|
2235
|
-
|
|
2235
|
+
ke.config(e, t, a);
|
|
2236
2236
|
}
|
|
2237
2237
|
function ki(e) {
|
|
2238
|
-
|
|
2238
|
+
ke.x(e);
|
|
2239
2239
|
}
|
|
2240
2240
|
const Qe = {
|
|
2241
2241
|
List: Fs,
|
|
@@ -2655,19 +2655,19 @@ y.connect = !1;
|
|
|
2655
2655
|
y.offer = null;
|
|
2656
2656
|
y.btnRefuse = null;
|
|
2657
2657
|
y.time = !1;
|
|
2658
|
-
let
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2658
|
+
let Ce;
|
|
2659
|
+
Ce = document.createElement("audio");
|
|
2660
|
+
Ce.setAttribute("autoplay", "true");
|
|
2661
|
+
Ce.setAttribute("muted", "true");
|
|
2662
2662
|
O.start = async (e) => {
|
|
2663
2663
|
y.rtc = new RTCPeerConnection(y.config), y.other = [], y.remoute = !1, y.rtc.onicecandidate = (a) => {
|
|
2664
2664
|
a.candidate && y.other.push(a.candidate);
|
|
2665
2665
|
}, y.rtc.ontrack = (a) => {
|
|
2666
2666
|
if (a.streams && a.streams[0])
|
|
2667
|
-
|
|
2667
|
+
Ce.srcObject = a.streams[0];
|
|
2668
2668
|
else {
|
|
2669
2669
|
let r = new MediaStream(a.track);
|
|
2670
|
-
|
|
2670
|
+
Ce.srcObject = r;
|
|
2671
2671
|
}
|
|
2672
2672
|
};
|
|
2673
2673
|
const t = await navigator.mediaDevices.getUserMedia({
|
|
@@ -2680,10 +2680,10 @@ O.start = async (e) => {
|
|
|
2680
2680
|
y.rtc.connectionState;
|
|
2681
2681
|
}, y.rtc.ontrack = async (a) => {
|
|
2682
2682
|
if (a.streams && a.streams[0])
|
|
2683
|
-
|
|
2683
|
+
Ce.srcObject = a.streams[0];
|
|
2684
2684
|
else {
|
|
2685
2685
|
let r = new MediaStream(a.track);
|
|
2686
|
-
|
|
2686
|
+
Ce.srcObject = r;
|
|
2687
2687
|
}
|
|
2688
2688
|
}, y.rtc.onaddstream = (a) => {
|
|
2689
2689
|
}, y.rtc.onnegotiationneeded = (a) => {
|
|
@@ -2943,22 +2943,22 @@ function no(e, t) {
|
|
|
2943
2943
|
function ao(e, t) {
|
|
2944
2944
|
kt[e] !== void 0 && kt[e](t);
|
|
2945
2945
|
}
|
|
2946
|
-
const
|
|
2946
|
+
const me = {};
|
|
2947
2947
|
function ro(e, t) {
|
|
2948
2948
|
const [a, r] = x.useState(t);
|
|
2949
2949
|
return x.useEffect(() => {
|
|
2950
|
-
if (
|
|
2951
|
-
return
|
|
2952
|
-
|
|
2950
|
+
if (me[e])
|
|
2951
|
+
return me[e].push(r);
|
|
2952
|
+
me[e] = [r];
|
|
2953
2953
|
}, []), [a];
|
|
2954
2954
|
}
|
|
2955
2955
|
function so(e, t) {
|
|
2956
|
-
if (
|
|
2957
|
-
return
|
|
2958
|
-
|
|
2956
|
+
if (me[e])
|
|
2957
|
+
return me[e].push(t);
|
|
2958
|
+
me[e] = [t];
|
|
2959
2959
|
}
|
|
2960
2960
|
function io(e, t) {
|
|
2961
|
-
|
|
2961
|
+
me[e] && me[e].forEach((a) => a(t));
|
|
2962
2962
|
}
|
|
2963
2963
|
const Ee = { setListener: ao, useListener: no, setEmitter: io, useEmitter: ro, subEmitter: so };
|
|
2964
2964
|
function oo() {
|
|
@@ -3209,7 +3209,7 @@ class Go {
|
|
|
3209
3209
|
}
|
|
3210
3210
|
}
|
|
3211
3211
|
let ut, W = {};
|
|
3212
|
-
const Ne = () => (ut || (ut = new Go()), ut),
|
|
3212
|
+
const Ne = () => (ut || (ut = new Go()), ut), pe = (e, t, a = Ne()) => a._withIDBStore("readwrite", (r) => {
|
|
3213
3213
|
W[e] = t, r.put(F.enCode(t), e);
|
|
3214
3214
|
}), de = (e, t = Ne()) => W[e] === void 0 ? new Promise((a, r) => {
|
|
3215
3215
|
let s;
|
|
@@ -3278,21 +3278,21 @@ const Ne = () => (ut || (ut = new Go()), ut), xe = (e, t, a = Ne()) => a._withID
|
|
|
3278
3278
|
});
|
|
3279
3279
|
}, Yo = async (e, t, a, r) => {
|
|
3280
3280
|
let s, i;
|
|
3281
|
-
i = await de(a), i[e.id] = e, await
|
|
3281
|
+
i = await de(a), i[e.id] = e, await pe(a, i), s !== null && (s = await de(t), s[e.id] = e.eDate, await pe(t, s)), r !== void 0 && r({ type: "load", page: s, base: i });
|
|
3282
3282
|
}, Ho = async (e, t, a, r) => {
|
|
3283
3283
|
let s = await de(t), i = await de(a);
|
|
3284
3284
|
for (let o in e)
|
|
3285
3285
|
i[o] = e[o], s[o] = e[o].eDate;
|
|
3286
|
-
await
|
|
3286
|
+
await pe(t, s), await pe(a, i), r !== void 0 && r({ type: "load", page: s, base: i });
|
|
3287
3287
|
}, qo = async (e, t, a, r) => {
|
|
3288
3288
|
let s = await de(t), i = await de(a);
|
|
3289
|
-
e.forEach((o) => delete s[o]), await
|
|
3289
|
+
e.forEach((o) => delete s[o]), await pe(t, s), r !== void 0 && r({ type: "load", page: s, base: i });
|
|
3290
3290
|
}, Jo = async (e, t, a) => {
|
|
3291
3291
|
let r = await de(t);
|
|
3292
|
-
e.forEach((s) => delete r[s]), await
|
|
3292
|
+
e.forEach((s) => delete r[s]), await pe(t, r);
|
|
3293
3293
|
}, Xo = async (e, t, a) => {
|
|
3294
3294
|
let r = await de(t);
|
|
3295
|
-
e.forEach((s) => r[s.id] = s.eDate), await
|
|
3295
|
+
e.forEach((s) => r[s.id] = s.eDate), await pe(t, r);
|
|
3296
3296
|
}, Qo = async (e, t, a) => {
|
|
3297
3297
|
let r = await de(t);
|
|
3298
3298
|
if (a !== void 0)
|
|
@@ -3302,7 +3302,7 @@ const Ne = () => (ut || (ut = new Go()), ut), xe = (e, t, a = Ne()) => a._withID
|
|
|
3302
3302
|
}, el = (e) => W[e], ac = {
|
|
3303
3303
|
id: Qo,
|
|
3304
3304
|
get: de,
|
|
3305
|
-
set:
|
|
3305
|
+
set: pe,
|
|
3306
3306
|
add: Yo,
|
|
3307
3307
|
del: Wo,
|
|
3308
3308
|
upd: Vo,
|
|
@@ -3780,7 +3780,7 @@ function Bn(e) {
|
|
|
3780
3780
|
}
|
|
3781
3781
|
) });
|
|
3782
3782
|
}
|
|
3783
|
-
const ll = "_o_1kqkq_1", cl = "_c_1kqkq_11",
|
|
3783
|
+
const ll = "_o_1kqkq_1", cl = "_c_1kqkq_11", Se = {
|
|
3784
3784
|
o: ll,
|
|
3785
3785
|
c: cl
|
|
3786
3786
|
};
|
|
@@ -3873,7 +3873,7 @@ const dl = (e) => {
|
|
|
3873
3873
|
/* @__PURE__ */ n.jsx(
|
|
3874
3874
|
"div",
|
|
3875
3875
|
{
|
|
3876
|
-
className:
|
|
3876
|
+
className: Se.o,
|
|
3877
3877
|
onClick: () => C()
|
|
3878
3878
|
},
|
|
3879
3879
|
(/* @__PURE__ */ new Date()).getTime()
|
|
@@ -3881,7 +3881,7 @@ const dl = (e) => {
|
|
|
3881
3881
|
/* @__PURE__ */ n.jsxs(
|
|
3882
3882
|
"div",
|
|
3883
3883
|
{
|
|
3884
|
-
className:
|
|
3884
|
+
className: Se.c,
|
|
3885
3885
|
style: { top: I + "px", left: D + "px" },
|
|
3886
3886
|
children: [
|
|
3887
3887
|
/* @__PURE__ */ n.jsxs("s", { children: [
|
|
@@ -4088,7 +4088,7 @@ const _l = (e) => {
|
|
|
4088
4088
|
/* @__PURE__ */ n.jsx(
|
|
4089
4089
|
"div",
|
|
4090
4090
|
{
|
|
4091
|
-
className:
|
|
4091
|
+
className: Se.o,
|
|
4092
4092
|
onClick: () => d()
|
|
4093
4093
|
},
|
|
4094
4094
|
(/* @__PURE__ */ new Date()).getTime()
|
|
@@ -4096,7 +4096,7 @@ const _l = (e) => {
|
|
|
4096
4096
|
/* @__PURE__ */ n.jsxs(
|
|
4097
4097
|
"div",
|
|
4098
4098
|
{
|
|
4099
|
-
className:
|
|
4099
|
+
className: Se.c,
|
|
4100
4100
|
style: { top: v + "px", left: g + "px" },
|
|
4101
4101
|
children: [
|
|
4102
4102
|
/* @__PURE__ */ n.jsxs("s", { children: [
|
|
@@ -6276,7 +6276,7 @@ const ml = ({ positions: e, onSave: t, onValue: a, date: r }) => {
|
|
|
6276
6276
|
/* @__PURE__ */ n.jsx(
|
|
6277
6277
|
"div",
|
|
6278
6278
|
{
|
|
6279
|
-
className:
|
|
6279
|
+
className: Se.o,
|
|
6280
6280
|
onClick: () => I()
|
|
6281
6281
|
},
|
|
6282
6282
|
(/* @__PURE__ */ new Date()).getTime()
|
|
@@ -6284,7 +6284,7 @@ const ml = ({ positions: e, onSave: t, onValue: a, date: r }) => {
|
|
|
6284
6284
|
/* @__PURE__ */ n.jsxs(
|
|
6285
6285
|
"div",
|
|
6286
6286
|
{
|
|
6287
|
-
className:
|
|
6287
|
+
className: Se.c,
|
|
6288
6288
|
onMouseDown: h,
|
|
6289
6289
|
onMouseUp: C,
|
|
6290
6290
|
onMouseMove: v,
|
|
@@ -6539,20 +6539,22 @@ function Vn({
|
|
|
6539
6539
|
i && /* @__PURE__ */ n.jsx("em", { children: i })
|
|
6540
6540
|
] });
|
|
6541
6541
|
}
|
|
6542
|
-
const
|
|
6542
|
+
const fe = {};
|
|
6543
6543
|
function pl(e) {
|
|
6544
6544
|
const [t, a] = x.useState({}), r = x.useRef(e);
|
|
6545
|
-
return
|
|
6545
|
+
return fe.u = (s) => {
|
|
6546
6546
|
r.current = { ...r.current, [s.name]: s.value };
|
|
6547
|
-
},
|
|
6547
|
+
}, fe.n = (s) => {
|
|
6548
|
+
r.current = s, a(Date.now());
|
|
6549
|
+
}, fe.r = () => {
|
|
6548
6550
|
a(Date.now());
|
|
6549
|
-
}, [r.current];
|
|
6551
|
+
}, [r.current, fe.n];
|
|
6550
6552
|
}
|
|
6551
6553
|
function gl(e) {
|
|
6552
|
-
|
|
6554
|
+
fe.u(e), e.reload && fe.r();
|
|
6553
6555
|
}
|
|
6554
6556
|
function vl() {
|
|
6555
|
-
|
|
6557
|
+
fe.r && fe.r();
|
|
6556
6558
|
}
|
|
6557
6559
|
const ic = {
|
|
6558
6560
|
Color: Bn,
|