elcrm 0.8.56 → 0.8.57

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 CHANGED
@@ -5,7 +5,7 @@ import x, { createElement as Ea } from "react";
5
5
  let St = {};
6
6
  const Ra = (e) => {
7
7
  St = e;
8
- }, Na = (e) => St.enCode(e), Ia = (e) => St.deCode(e), F = { enCode: Na, deCode: Ia, New: Ra }, b = {}, Y = {}, be = {}, hn = {}, ce = {};
8
+ }, Na = (e) => St.enCode(e), Ia = (e) => St.deCode(e), L = { enCode: Na, deCode: Ia, New: Ra }, b = {}, Y = {}, be = {}, hn = {}, ce = {};
9
9
  let Et = "M06";
10
10
  function Ta(e) {
11
11
  Et = e;
@@ -16,7 +16,7 @@ function Da() {
16
16
  function Ma(e) {
17
17
  if (localStorage.getItem("d")) {
18
18
  let a = sessionStorage.getItem("f");
19
- a ? (a = F.deCode(a), a || te(), b.id = a.id, b.tab = a.tab, b.page = a.page, b.module = a.module, b.time = a.time, b.payment = { active: !0 }, b.module_admin = a.module_admin) : (b.id = 0, b.tab = "", b.page = "Main", b.module = b.module || Et);
19
+ a ? (a = L.deCode(a), a || te(), b.id = a.id, b.tab = a.tab, b.page = a.page, b.module = a.module, b.time = a.time, b.payment = { active: !0 }, b.module_admin = a.module_admin) : (b.id = 0, b.tab = "", b.page = "Main", b.module = b.module || Et);
20
20
  } else
21
21
  ["a", "b", "c", "d", "e", "m", "u", "s", "q", "p"].forEach(
22
22
  (a) => localStorage.removeItem(a)
@@ -28,10 +28,10 @@ function te() {
28
28
  (e) => localStorage.removeItem(e)
29
29
  ), ["f"].forEach((e) => sessionStorage.removeItem(e)), window.location.reload();
30
30
  }
31
- function Fa(e) {
31
+ function La(e) {
32
32
  e = e.split("/"), b.page = "Main", b.module = e[0], b.tab = e[1], b.id = 0, sessionStorage.setItem(
33
33
  "f",
34
- F.enCode({
34
+ L.enCode({
35
35
  module: b.module,
36
36
  page: b.page,
37
37
  tab: b.tab,
@@ -40,7 +40,7 @@ function Fa(e) {
40
40
  })
41
41
  ), Y.page(b.page);
42
42
  }
43
- function La(e) {
43
+ function Fa(e) {
44
44
  return localStorage.setItem("d", e);
45
45
  }
46
46
  function Ba() {
@@ -55,12 +55,12 @@ function Pa() {
55
55
  return e !== "" && e !== "undefined" && e !== null ? e : "";
56
56
  }
57
57
  function Oa(e) {
58
- localStorage.setItem("p", F.enCode(e));
58
+ localStorage.setItem("p", L.enCode(e));
59
59
  }
60
60
  function ht() {
61
61
  let e = localStorage.getItem("p");
62
62
  if (e !== "" && e !== "undefined" && e !== null) {
63
- let t = F.deCode(e);
63
+ let t = L.deCode(e);
64
64
  return t || te(), t;
65
65
  } else
66
66
  return te(), !1;
@@ -72,7 +72,7 @@ function Aa() {
72
72
  return Y.page = a, [e];
73
73
  }
74
74
  function Ga(e, t = !0) {
75
- b.page = e, sessionStorage.setItem("f", F.enCode(b)), t && Y.page(e);
75
+ b.page = e, sessionStorage.setItem("f", L.enCode(b)), t && Y.page(e);
76
76
  }
77
77
  function pn() {
78
78
  return b.page;
@@ -90,7 +90,7 @@ function za(e) {
90
90
  Y.module = e;
91
91
  }
92
92
  function Ka(e, t = !0) {
93
- b.module = e, sessionStorage.setItem("f", F.enCode(b)), t && Y.module(e);
93
+ b.module = e, sessionStorage.setItem("f", L.enCode(b)), t && Y.module(e);
94
94
  }
95
95
  function xn() {
96
96
  return b.module;
@@ -106,7 +106,7 @@ function Ua(e) {
106
106
  Y.tabs = e;
107
107
  }
108
108
  function Ya(e, t = !0) {
109
- if (b.tab = e, sessionStorage.setItem("f", F.enCode(b)), !!t)
109
+ if (b.tab = e, sessionStorage.setItem("f", L.enCode(b)), !!t)
110
110
  if (Y.tabs)
111
111
  Y.tabs(e);
112
112
  else
@@ -131,7 +131,7 @@ function qa(e) {
131
131
  Y.id = e;
132
132
  }
133
133
  function Ja(e, t = !0) {
134
- b.id = e, sessionStorage.setItem("f", F.enCode(b)), t && Y.id(e);
134
+ b.id = e, sessionStorage.setItem("f", L.enCode(b)), t && Y.id(e);
135
135
  }
136
136
  function gn() {
137
137
  return b.id;
@@ -140,25 +140,25 @@ function Xa(e) {
140
140
  return Number(b.id) === e;
141
141
  }
142
142
  function Qa(e, t, a) {
143
- b.module = e, b.id = a, b.tab = t, sessionStorage.setItem("f", F.enCode(b)), Y.module(e), Y.tabs(t);
143
+ b.module = e, b.id = a, b.tab = t, sessionStorage.setItem("f", L.enCode(b)), Y.module(e), Y.tabs(t);
144
144
  }
145
145
  function er(e) {
146
- be.data = e[0], delete be.data.id, document.body.dataset.theme = be.data.s15, localStorage.setItem("s", F.enCode(be.data));
146
+ be.data = e[0], delete be.data.id, document.body.dataset.theme = be.data.s15, localStorage.setItem("s", L.enCode(be.data));
147
147
  }
148
148
  function tr(e, t) {
149
- be.data[e] = t, localStorage.setItem("s", F.enCode(be.data));
149
+ be.data[e] = t, localStorage.setItem("s", L.enCode(be.data));
150
150
  }
151
151
  function nr(e) {
152
152
  let t = localStorage.getItem("s");
153
- return t === null ? {} : (t = F.deCode(t), t ? e !== void 0 ? t[e] : t : te());
153
+ return t === null ? {} : (t = L.deCode(t), t ? e !== void 0 ? t[e] : t : te());
154
154
  }
155
155
  function vn(e) {
156
- localStorage.setItem("m", F.enCode({ data: e }));
156
+ localStorage.setItem("m", L.enCode({ data: e }));
157
157
  }
158
158
  function ar() {
159
159
  let e = localStorage.getItem("m");
160
160
  if (e !== "" && e !== "undefined" && e !== null) {
161
- let t = localStorage.getItem("m"), a = F.deCode(t);
161
+ let t = localStorage.getItem("m"), a = L.deCode(t);
162
162
  a || te();
163
163
  const r = (i, o) => {
164
164
  let l = o + "";
@@ -175,34 +175,34 @@ function rr(e) {
175
175
  }
176
176
  function Cn(e) {
177
177
  let t = localStorage.getItem("b");
178
- t = t === null ? {} : F.deCode(t), t[Xe()] = e, localStorage.setItem("b", F.enCode(t));
178
+ t = t === null ? {} : L.deCode(t), t[Xe()] = e, localStorage.setItem("b", L.enCode(t));
179
179
  }
180
180
  function pt() {
181
181
  let e = localStorage.getItem("b");
182
- return e === null ? {} : (e = F.deCode(e), e = e[Xe()], e = e === void 0 ? { active: 1, sort: "<" } : e, e);
182
+ return e === null ? {} : (e = L.deCode(e), e = e[Xe()], e = e === void 0 ? { active: 1, sort: "<" } : e, e);
183
183
  }
184
184
  function kn(e) {
185
- localStorage.setItem("c", F.enCode(e));
185
+ localStorage.setItem("c", L.enCode(e));
186
186
  }
187
187
  function jn(e, t) {
188
188
  var r;
189
189
  let a = localStorage.getItem("c");
190
190
  if (a !== "" && a !== "undefined" && a !== null) {
191
- let s = F.deCode(a);
191
+ let s = L.deCode(a);
192
192
  return s || te(), e === void 0 ? s : t ? (r = s[e][t]) == null ? void 0 : r.n : s[e];
193
193
  } else
194
194
  return te(), !1;
195
195
  }
196
196
  function Oe(e) {
197
- ce.data = e, localStorage.setItem("q", F.enCode(ce.data));
197
+ ce.data = e, localStorage.setItem("q", L.enCode(ce.data));
198
198
  }
199
199
  function sr(e, t) {
200
- ce.data = { ...ce.data, [e]: t }, localStorage.setItem("q", F.enCode(ce.data));
200
+ ce.data = { ...ce.data, [e]: t }, localStorage.setItem("q", L.enCode(ce.data));
201
201
  }
202
202
  function je(e, t) {
203
203
  if (!ce.data) {
204
204
  let a = localStorage.getItem("q");
205
- a && (ce.data = F.deCode(a));
205
+ a && (ce.data = L.deCode(a));
206
206
  }
207
207
  return e === void 0 && t === void 0 ? ce.data : e !== void 0 && t === void 0 ? ce.data[e] : ce.data[e][t];
208
208
  }
@@ -219,24 +219,24 @@ function cr() {
219
219
  return b.payment;
220
220
  }
221
221
  function yn(e) {
222
- localStorage.setItem("u", F.enCode(e));
222
+ localStorage.setItem("u", L.enCode(e));
223
223
  }
224
224
  function dr() {
225
225
  let e = localStorage.getItem("u");
226
226
  if (e !== "" && e !== "undefined" && e !== null) {
227
- let t = F.deCode(e);
227
+ let t = L.deCode(e);
228
228
  return t || te(), t;
229
229
  } else
230
230
  return te(), !1;
231
231
  }
232
232
  function tn(e) {
233
- localStorage.setItem("e", F.enCode(e));
233
+ localStorage.setItem("e", L.enCode(e));
234
234
  }
235
235
  function _r() {
236
236
  let e = localStorage.getItem("e");
237
237
  if (e !== "" && e !== "undefined" && e !== null)
238
238
  try {
239
- let t = F.deCode(e);
239
+ let t = L.deCode(e);
240
240
  return t || te(), t;
241
241
  } catch {
242
242
  return {};
@@ -249,7 +249,7 @@ function ur(e) {
249
249
  let r = localStorage.getItem(a);
250
250
  if (r !== "" && r !== "undefined" && r !== null)
251
251
  try {
252
- let s = F.deCode(r);
252
+ let s = L.deCode(r);
253
253
  if (!s)
254
254
  return;
255
255
  b[a] = { is: !0, time: s.time, data: s.data };
@@ -265,20 +265,20 @@ function fr(e) {
265
265
  return b[e] === void 0 ? (b[e] = { data: {}, time: 0 }, { data: {}, time: 0 }) : b[e];
266
266
  }
267
267
  function mr(e, t) {
268
- b[e] = { data: t.data, time: t.time }, localStorage.setItem(e, F.enCode(b[e]));
268
+ b[e] = { data: t.data, time: t.time }, localStorage.setItem(e, L.enCode(b[e]));
269
269
  }
270
270
  function hr(e, t, a) {
271
- b[e].time = a, b[e].data[t.item][t.name] = t.value, localStorage.setItem(e, F.enCode(b[e]));
271
+ b[e].time = a, b[e].data[t.item][t.name] = t.value, localStorage.setItem(e, L.enCode(b[e]));
272
272
  }
273
273
  const ae = {
274
- setSSID: La,
274
+ setSSID: Fa,
275
275
  getSSID: Ba,
276
276
  getPORT: ht,
277
277
  setPORT: Oa,
278
278
  setAUTH: $a,
279
279
  getAUTH: Pa,
280
280
  Logaut: te,
281
- Start: Fa,
281
+ Start: La,
282
282
  setMenu: vn,
283
283
  getMenu: ar,
284
284
  useSort: rr,
@@ -497,8 +497,8 @@ function Mr() {
497
497
  {
498
498
  var T = k.ReactDebugCurrentFrame, $ = T.getStackAddendum();
499
499
  $ !== "" && (v += "%s", j = j.concat([$]));
500
- var P = j.map(function(L) {
501
- return String(L);
500
+ var P = j.map(function(F) {
501
+ return String(F);
502
502
  });
503
503
  P.unshift("Warning: " + v), Function.prototype.apply.call(console[c], console, P);
504
504
  }
@@ -557,9 +557,9 @@ function Mr() {
557
557
  var T = c.displayName || null;
558
558
  return T !== null ? T : B(c.type) || "Memo";
559
559
  case m: {
560
- var $ = c, P = $._payload, L = $._init;
560
+ var $ = c, P = $._payload, F = $._init;
561
561
  try {
562
- return B(L(P));
562
+ return B(F(P));
563
563
  } catch {
564
564
  return null;
565
565
  }
@@ -664,27 +664,27 @@ function Mr() {
664
664
  P = at.current, at.current = null, Xn();
665
665
  try {
666
666
  if (v) {
667
- var L = function() {
667
+ var F = function() {
668
668
  throw Error();
669
669
  };
670
- if (Object.defineProperty(L.prototype, "props", {
670
+ if (Object.defineProperty(F.prototype, "props", {
671
671
  set: function() {
672
672
  throw Error();
673
673
  }
674
674
  }), typeof Reflect == "object" && Reflect.construct) {
675
675
  try {
676
- Reflect.construct(L, []);
676
+ Reflect.construct(F, []);
677
677
  } catch (Q) {
678
678
  T = Q;
679
679
  }
680
- Reflect.construct(c, [], L);
680
+ Reflect.construct(c, [], F);
681
681
  } else {
682
682
  try {
683
- L.call();
683
+ F.call();
684
684
  } catch (Q) {
685
685
  T = Q;
686
686
  }
687
- c.call(L.prototype);
687
+ c.call(F.prototype);
688
688
  }
689
689
  } else {
690
690
  try {
@@ -766,19 +766,19 @@ function Mr() {
766
766
  function aa(c, v, j, T, $) {
767
767
  {
768
768
  var P = Function.call.bind(Ie);
769
- for (var L in c)
770
- if (P(c, L)) {
769
+ for (var F in c)
770
+ if (P(c, F)) {
771
771
  var M = void 0;
772
772
  try {
773
- if (typeof c[L] != "function") {
774
- var J = Error((T || "React class") + ": " + j + " type `" + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof c[L] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
773
+ if (typeof c[F] != "function") {
774
+ var J = Error((T || "React class") + ": " + j + " type `" + F + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof c[F] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
775
775
  throw J.name = "Invariant Violation", J;
776
776
  }
777
- M = c[L](v, L, T, j, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
777
+ M = c[F](v, F, T, j, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
778
778
  } catch (z) {
779
779
  M = z;
780
780
  }
781
- M && !(M instanceof Error) && (He($), w("%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).", T || "React class", j, L, typeof M), He(null)), M instanceof Error && !(M.message in Zt) && (Zt[M.message] = !0, He($), w("Failed %s type: %s", j, M.message), He(null));
781
+ M && !(M instanceof Error) && (He($), w("%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).", T || "React class", j, F, typeof M), He(null)), M instanceof Error && !(M.message in Zt) && (Zt[M.message] = !0, He($), w("Failed %s type: %s", j, M.message), He(null));
782
782
  }
783
783
  }
784
784
  }
@@ -857,7 +857,7 @@ function Mr() {
857
857
  });
858
858
  }
859
859
  }
860
- var fa = function(c, v, j, T, $, P, L) {
860
+ var fa = function(c, v, j, T, $, P, F) {
861
861
  var M = {
862
862
  // This tag allows us to uniquely identify this as a React Element
863
863
  $$typeof: t,
@@ -865,7 +865,7 @@ function Mr() {
865
865
  type: c,
866
866
  key: v,
867
867
  ref: j,
868
- props: L,
868
+ props: F,
869
869
  // Record the component responsible for creating this element.
870
870
  _owner: P
871
871
  };
@@ -888,20 +888,20 @@ function Mr() {
888
888
  };
889
889
  function ma(c, v, j, T, $) {
890
890
  {
891
- var P, L = {}, M = null, J = null;
891
+ var P, F = {}, M = null, J = null;
892
892
  j !== void 0 && (Wt(j), M = "" + j), ca(v) && (Wt(v.key), M = "" + v.key), la(v) && (J = v.ref, da(v, $));
893
893
  for (P in v)
894
- Ie.call(v, P) && !oa.hasOwnProperty(P) && (L[P] = v[P]);
894
+ Ie.call(v, P) && !oa.hasOwnProperty(P) && (F[P] = v[P]);
895
895
  if (c && c.defaultProps) {
896
896
  var z = c.defaultProps;
897
897
  for (P in z)
898
- L[P] === void 0 && (L[P] = z[P]);
898
+ F[P] === void 0 && (F[P] = z[P]);
899
899
  }
900
900
  if (M || J) {
901
901
  var U = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
902
- M && _a(L, U), J && ua(L, U);
902
+ M && _a(F, U), J && ua(F, U);
903
903
  }
904
- return fa(c, M, J, $, T, Te.current, L);
904
+ return fa(c, M, J, $, T, Te.current, F);
905
905
  }
906
906
  }
907
907
  var lt = k.ReactCurrentOwner, Ht = k.ReactDebugCurrentFrame;
@@ -972,8 +972,8 @@ Check the top-level render call using <` + j + ">.");
972
972
  else if (c) {
973
973
  var $ = g(c);
974
974
  if (typeof $ == "function" && $ !== c.entries)
975
- for (var P = $.call(c), L; !(L = P.next()).done; )
976
- dt(L.value) && Jt(L.value, v);
975
+ for (var P = $.call(c), F; !(F = P.next()).done; )
976
+ dt(F.value) && Jt(F.value, v);
977
977
  }
978
978
  }
979
979
  }
@@ -1017,8 +1017,8 @@ Check the top-level render call using <` + j + ">.");
1017
1017
  var Qt = {};
1018
1018
  function en(c, v, j, T, $, P) {
1019
1019
  {
1020
- var L = X(c);
1021
- if (!L) {
1020
+ var F = X(c);
1021
+ if (!F) {
1022
1022
  var M = "";
1023
1023
  (c === void 0 || typeof c == "object" && c !== null && Object.keys(c).length === 0) && (M += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
1024
1024
  var J = ha();
@@ -1029,7 +1029,7 @@ Check the top-level render call using <` + j + ">.");
1029
1029
  var U = ma(c, v, j, $, P);
1030
1030
  if (U == null)
1031
1031
  return U;
1032
- if (L) {
1032
+ if (F) {
1033
1033
  var ne = v.children;
1034
1034
  if (ne !== void 0)
1035
1035
  if (T)
@@ -1071,9 +1071,9 @@ React keys must be passed directly to JSX without using spread:
1071
1071
  }
1072
1072
  process.env.NODE_ENV === "production" ? xt.exports = Dr() : xt.exports = Mr();
1073
1073
  var n = xt.exports;
1074
- const Fr = "_notice_9i5tr_2", Lr = "_error_9i5tr_9", Br = "_success_9i5tr_12", $r = "_remark_9i5tr_15", Pr = "_copy_9i5tr_18", Or = {
1075
- notice: Fr,
1076
- error: Lr,
1074
+ const Lr = "_notice_9i5tr_2", Fr = "_error_9i5tr_9", Br = "_success_9i5tr_12", $r = "_remark_9i5tr_15", Pr = "_copy_9i5tr_18", Or = {
1075
+ notice: Lr,
1076
+ error: Fr,
1077
1077
  success: Br,
1078
1078
  remark: $r,
1079
1079
  copy: Pr,
@@ -1309,7 +1309,7 @@ function ns() {
1309
1309
  const as = "_n_euuvm_1", rs = {
1310
1310
  n: as
1311
1311
  };
1312
- let Ze = {}, Fe = [];
1312
+ let Ze = {}, Le = [];
1313
1313
  const ss = (e, t) => {
1314
1314
  switch (t.type) {
1315
1315
  case "open":
@@ -1385,7 +1385,7 @@ function ds() {
1385
1385
  }), cs(async (r) => {
1386
1386
  switch (r.action) {
1387
1387
  case "add":
1388
- Fe.push(r.data);
1388
+ Le.push(r.data);
1389
1389
  break;
1390
1390
  }
1391
1391
  }), x.useEffect(() => {
@@ -1403,7 +1403,7 @@ function ds() {
1403
1403
  break;
1404
1404
  case "M01":
1405
1405
  r[s].forEach((i) => {
1406
- Fe.push({
1406
+ Le.push({
1407
1407
  module: "M01",
1408
1408
  type: 1,
1409
1409
  id: i.id,
@@ -1414,7 +1414,7 @@ function ds() {
1414
1414
  break;
1415
1415
  case "M02":
1416
1416
  r[s].forEach((i) => {
1417
- Fe.push({
1417
+ Le.push({
1418
1418
  module: "M02",
1419
1419
  type: 117,
1420
1420
  id: i.id,
@@ -1425,7 +1425,7 @@ function ds() {
1425
1425
  break;
1426
1426
  }
1427
1427
  })(), setInterval(() => {
1428
- Fe.forEach((r, s) => {
1428
+ Le.forEach((r, s) => {
1429
1429
  t({
1430
1430
  type: "add",
1431
1431
  data: {
@@ -1435,7 +1435,7 @@ function ds() {
1435
1435
  datetime: r.datetime,
1436
1436
  txt: r.title
1437
1437
  }
1438
- }), r.datetime < (/* @__PURE__ */ new Date()).getTime() && Fe.splice(s, 1);
1438
+ }), r.datetime < (/* @__PURE__ */ new Date()).getTime() && Le.splice(s, 1);
1439
1439
  });
1440
1440
  }, 6e4);
1441
1441
  }, []);
@@ -2053,17 +2053,17 @@ function Ds(e, t) {
2053
2053
  function Ms(e, t, a) {
2054
2054
  return je(e, t) ? je(e, t).n : a || "";
2055
2055
  }
2056
- function Fs(e, t) {
2056
+ function Ls(e, t) {
2057
2057
  return e.reduce(function(a, r) {
2058
2058
  let s = t instanceof Function ? t(r) : r[t];
2059
2059
  return a[s] !== void 0 || (a[s] = {}), a[s][r.id] = r, a;
2060
2060
  }, {});
2061
2061
  }
2062
- function Ls(e) {
2062
+ function Fs(e) {
2063
2063
  return parseInt((Date.now() - new Date(e).getTime()) / 31536e6 + "") + "";
2064
2064
  }
2065
2065
  const W = {
2066
- Age: Ls,
2066
+ Age: Fs,
2067
2067
  Date: Cs,
2068
2068
  MoneyString: js,
2069
2069
  DateSort: ks,
@@ -2078,7 +2078,7 @@ const W = {
2078
2078
  CapitalizeFirstLetter: Ts,
2079
2079
  DeclensionWord: Ds,
2080
2080
  Select: Ms,
2081
- ObjectByArray: Fs
2081
+ ObjectByArray: Ls
2082
2082
  };
2083
2083
  function Bs({ children: e }) {
2084
2084
  return /* @__PURE__ */ n.jsx("div", { className: "l", children: /* @__PURE__ */ n.jsx("ul", { children: e }) });
@@ -2307,7 +2307,7 @@ function En({ text: e, type: t, button: a }) {
2307
2307
  a && /* @__PURE__ */ n.jsx("button", { onClick: o, children: a.label })
2308
2308
  ] });
2309
2309
  }
2310
- const wi = "_h_1usnu_1", bi = "_g_1usnu_11", Si = "_hr_1usnu_16", Ei = "_hl_1usnu_28", Ri = "_t_1usnu_40", Ni = "_s_1usnu_60", Ii = "_u_1usnu_69", Ti = "_o_1usnu_76", Di = "_l_1usnu_105", Mi = "_hh_1usnu_115", Fi = "_c_1usnu_128", Li = "_loadingB_1usnu_1", Bi = "_m_1usnu_180", $i = "_ul_1usnu_196", Pi = "_f_1usnu_226", ee = {
2310
+ const wi = "_h_1usnu_1", bi = "_g_1usnu_11", Si = "_hr_1usnu_16", Ei = "_hl_1usnu_28", Ri = "_t_1usnu_40", Ni = "_s_1usnu_60", Ii = "_u_1usnu_69", Ti = "_o_1usnu_76", Di = "_l_1usnu_105", Mi = "_hh_1usnu_115", Li = "_c_1usnu_128", Fi = "_loadingB_1usnu_1", Bi = "_m_1usnu_180", $i = "_ul_1usnu_196", Pi = "_f_1usnu_226", ee = {
2311
2311
  h: wi,
2312
2312
  g: bi,
2313
2313
  hr: Si,
@@ -2318,8 +2318,8 @@ const wi = "_h_1usnu_1", bi = "_g_1usnu_11", Si = "_hr_1usnu_16", Ei = "_hl_1usn
2318
2318
  o: Ti,
2319
2319
  l: Di,
2320
2320
  hh: Mi,
2321
- c: Fi,
2322
- loadingB: Li,
2321
+ c: Li,
2322
+ loadingB: Fi,
2323
2323
  m: Bi,
2324
2324
  ul: $i,
2325
2325
  f: Pi
@@ -2812,15 +2812,15 @@ O.callRefuser = async () => {
2812
2812
  O.Run = async (e) => {
2813
2813
  O[e.data.type] && O[e.data.type](e.data);
2814
2814
  };
2815
- let Le = {};
2815
+ let Fe = {};
2816
2816
  function Xi() {
2817
2817
  let [e, t] = x.useState([]), a = x.useRef(null);
2818
2818
  return x.useEffect(() => {
2819
- }, []), Le.set = (r) => {
2819
+ }, []), Fe.set = (r) => {
2820
2820
  t([...e, r]);
2821
- }, Le.del = () => {
2821
+ }, Fe.del = () => {
2822
2822
  t([]);
2823
- }, Le.audio = (r, s) => {
2823
+ }, Fe.audio = (r, s) => {
2824
2824
  a.current.volume = 0.5, a.current.loop = s, a.current.src = "/audio/" + r, a.current.muted = !1;
2825
2825
  }, /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2826
2826
  e.map((r) => r.item),
@@ -2829,7 +2829,7 @@ function Xi() {
2829
2829
  }
2830
2830
  function Qi(e, t) {
2831
2831
  let a = (/* @__PURE__ */ new Date()).getTime();
2832
- Le.set({
2832
+ Fe.set({
2833
2833
  item: /* @__PURE__ */ n.jsx(eo, { type: t, id: e }, a),
2834
2834
  key: a
2835
2835
  });
@@ -2925,7 +2925,7 @@ function eo({ id: e, type: t }) {
2925
2925
  );
2926
2926
  }
2927
2927
  }, l = () => {
2928
- O.callRefuser(a.id), Le.del();
2928
+ O.callRefuser(a.id), Fe.del();
2929
2929
  };
2930
2930
  return /* @__PURE__ */ n.jsx("div", { className: "web-phone white", children: /* @__PURE__ */ n.jsxs("div", { className: "w", children: [
2931
2931
  /* @__PURE__ */ n.jsx("div", { className: "x", "data-icon": "F038", onClick: l }),
@@ -2993,7 +2993,7 @@ function co() {
2993
2993
  t([a]);
2994
2994
  }), /* @__PURE__ */ n.jsx(n.Fragment, { children: e.map((a) => a) });
2995
2995
  }
2996
- const _o = ({ children: e, config: t }) => (F.New(t.crypto), t.defaultModule && Ta(t.defaultModule), Ma(
2996
+ const _o = ({ children: e, config: t }) => (L.New(t.crypto), t.defaultModule && Ta(t.defaultModule), Ma(
2997
2997
  /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2998
2998
  /* @__PURE__ */ n.jsx(pi, { config: t.modal }),
2999
2999
  /* @__PURE__ */ n.jsx(Ar, {}),
@@ -3109,7 +3109,7 @@ function Rn({ list: e, onClick: t, active: a, size: r, view: s }) {
3109
3109
  const Mo = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
3110
3110
  Rn.defaultProps = { size: "M", view: "H" };
3111
3111
  const Ql = { Section: vo, Main: jo, Item: Do, Tabs: Rn }, ec = { Icon: qi, Item: vt, Active: Ji }, tc = { Send: Qr, Line: En };
3112
- function Fo() {
3112
+ function Lo() {
3113
3113
  return /* @__PURE__ */ n.jsx("svg", { viewBox: "0 0 462.86 359.96", children: /* @__PURE__ */ n.jsx(
3114
3114
  "path",
3115
3115
  {
@@ -3118,8 +3118,8 @@ function Fo() {
3118
3118
  }
3119
3119
  ) });
3120
3120
  }
3121
- const nc = { Logo: Fo, Sprite: to, Symbol: no }, Lo = "_sort_1yrvt_1", Bo = {
3122
- sort: Lo
3121
+ const nc = { Logo: Lo, Sprite: to, Symbol: no }, Fo = "_sort_1yrvt_1", Bo = {
3122
+ sort: Fo
3123
3123
  };
3124
3124
  let tt = {};
3125
3125
  function $o(e, t) {
@@ -3236,14 +3236,14 @@ class Wo {
3236
3236
  }
3237
3237
  let ft, K = {};
3238
3238
  const Re = () => (ft || (ft = new Wo()), ft), xe = (e, t, a = Re()) => a._withIDBStore("readwrite", (r) => {
3239
- K[e] = t, r.put(F.enCode(t), e);
3239
+ K[e] = t, r.put(L.enCode(t), e);
3240
3240
  }), de = (e, t = Re()) => K[e] === void 0 ? new Promise((a, r) => {
3241
3241
  let s;
3242
3242
  t._withIDBStore("readonly", (i) => {
3243
3243
  s = i.get(e);
3244
3244
  }).then(() => {
3245
3245
  if (s.result !== void 0) {
3246
- let i = F.deCode(s.result);
3246
+ let i = L.deCode(s.result);
3247
3247
  K[e] = i, a(i);
3248
3248
  } else
3249
3249
  a({});
@@ -3289,18 +3289,18 @@ const Re = () => (ft || (ft = new Wo()), ft), xe = (e, t, a = Re()) => a._withID
3289
3289
  o = l.get(e);
3290
3290
  }).then(() => {
3291
3291
  if (o.result !== void 0) {
3292
- let l = F.deCode(o.result);
3292
+ let l = L.deCode(o.result);
3293
3293
  K[e] = l, K[e][t.id] = {
3294
3294
  ...K[e][t.id],
3295
3295
  ...t.data
3296
- }, r.put(F.enCode(K[e]), e), s({});
3296
+ }, r.put(L.enCode(K[e]), e), s({});
3297
3297
  } else
3298
3298
  s({});
3299
3299
  });
3300
3300
  });
3301
3301
  if (K[e][t.id] !== void 0)
3302
3302
  return K[e][t.id] = { ...K[e][t.id], ...t.data }, a !== void 0 && K[a] !== void 0 ? K[a][t.id] !== void 0 && (K[a][t.id] = t.data.eDate) : K[a] = [], delete K[e][t.id].$_item, delete K[e][t.id].$_send, r._withIDBStore("readwrite", (s) => {
3303
- s.put(F.enCode(K[e]), e), a !== void 0 && s.put(F.enCode(K[a]), a);
3303
+ s.put(L.enCode(K[e]), e), a !== void 0 && s.put(L.enCode(K[a]), a);
3304
3304
  });
3305
3305
  }, qo = async (e, t, a, r) => {
3306
3306
  let s, i;
@@ -3577,7 +3577,7 @@ function Mn({
3577
3577
  }
3578
3578
  ) });
3579
3579
  }
3580
- function Fn(e) {
3580
+ function Ln(e) {
3581
3581
  let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = e.edit !== void 0 ? e.edit : !0, r = e.active !== void 0 ? e.active : !0, s = e.placeholder !== void 0 ? e.placeholder : "", i = (d) => {
3582
3582
  e.onValue({ value: d.target.textContent, name: e.name });
3583
3583
  }, o = (d) => {
@@ -3604,7 +3604,7 @@ function Fn(e) {
3604
3604
  )
3605
3605
  ] });
3606
3606
  }
3607
- function Ln({ value: e, onValue: t, placeholder: a = "", name: r }) {
3607
+ function Fn({ value: e, onValue: t, placeholder: a = "", name: r }) {
3608
3608
  let s = (h, C) => Number(Math.round(h + Math.random() * (C - h))), i = x.useRef(null), o = x.useRef(null), l = s(1e4, 99999), d = (h) => {
3609
3609
  h.key !== "Backspace" && (h.key === "Enter" && h.preventDefault(), h.target.textContent.length === 5 && h.preventDefault(), /\d/.test(h.key) || h.preventDefault());
3610
3610
  }, _ = (h) => {
@@ -3672,7 +3672,7 @@ function Bn({
3672
3672
  }
3673
3673
  p.target.nextSibling != null && p.target.nextSibling.focus();
3674
3674
  }, u = (p) => {
3675
- if (p.key === "Enter" && p.preventDefault(), p.key === "Backspace") {
3675
+ if (r && (p.key === "Enter" && p.preventDefault(), p.key === "Backspace")) {
3676
3676
  if (p.preventDefault(), p.target.textContent = "", d[p.target.id] = "", p.target.previousSibling != null) {
3677
3677
  let g = p.target.previousSibling.id.slice(1);
3678
3678
  p.target.previousSibling.textContent = "", d["n" + g] = "", p.target.previousSibling.focus();
@@ -3680,21 +3680,23 @@ function Bn({
3680
3680
  d.code = d.n1 + "" + d.n2 + d.n3 + d.n4 + d.n5 + d.n6;
3681
3681
  }
3682
3682
  }, f = (p) => {
3683
- if (s)
3684
- i && i({ value: d.code, name: l });
3685
- else if (d.code.length === 6 && (i && i({ value: d.code, name: l }), o)) {
3686
- d = {
3687
- n1: "",
3688
- n2: "",
3689
- n3: "",
3690
- n4: "",
3691
- n5: "",
3692
- n6: "",
3693
- code: ""
3694
- };
3695
- for (let g = 1; g <= 6; g++) {
3696
- let k = document.getElementById("n" + g);
3697
- k && (k.textContent = "");
3683
+ if (r) {
3684
+ if (s)
3685
+ i && i({ value: d.code, name: l });
3686
+ else if (d.code.length === 6 && (i && i({ value: d.code, name: l }), o)) {
3687
+ d = {
3688
+ n1: "",
3689
+ n2: "",
3690
+ n3: "",
3691
+ n4: "",
3692
+ n5: "",
3693
+ n6: "",
3694
+ code: ""
3695
+ };
3696
+ for (let g = 1; g <= 6; g++) {
3697
+ let k = document.getElementById("n" + g);
3698
+ k && (k.textContent = "");
3699
+ }
3698
3700
  }
3699
3701
  }
3700
3702
  }, m = (p) => {
@@ -3704,7 +3706,7 @@ function Bn({
3704
3706
  let k = g.split("");
3705
3707
  for (let w = 1; w <= k.length; w++) {
3706
3708
  let I = document.getElementById("n" + w);
3707
- I && (I.textContent = k[w]);
3709
+ I && (I.textContent = k[w - 1]);
3708
3710
  }
3709
3711
  }).catch((g) => {
3710
3712
  });
@@ -5718,7 +5720,7 @@ const mt = {
5718
5720
  mask: "+1939(___) ___-__-__"
5719
5721
  }
5720
5722
  };
5721
- function Ft({
5723
+ function Lt({
5722
5724
  value: e,
5723
5725
  onValue: t,
5724
5726
  onSave: a,
@@ -5835,7 +5837,7 @@ const Gn = (e) => {
5835
5837
  }
5836
5838
  );
5837
5839
  };
5838
- function Lt({
5840
+ function Ft({
5839
5841
  title: e,
5840
5842
  error: t,
5841
5843
  edit: a = !0,
@@ -6038,7 +6040,7 @@ function wt({
6038
6040
  );
6039
6041
  case "Select":
6040
6042
  return C && (g = ae.getSelect(parseInt(C)) ? ae.getSelect(parseInt(C)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ n.jsx(
6041
- Lt,
6043
+ Ft,
6042
6044
  {
6043
6045
  title: i,
6044
6046
  show: _,
@@ -6091,7 +6093,7 @@ function wt({
6091
6093
  );
6092
6094
  case "Phone":
6093
6095
  return /* @__PURE__ */ n.jsx(
6094
- Ft,
6096
+ Lt,
6095
6097
  {
6096
6098
  title: i,
6097
6099
  show: _,
@@ -6629,17 +6631,17 @@ const lc = {
6629
6631
  Input: Pe,
6630
6632
  Button: Dn,
6631
6633
  Message: Mn,
6632
- Generator: Fn,
6633
- Captcha: Ln,
6634
+ Generator: Ln,
6635
+ Captcha: Fn,
6634
6636
  Modal: Tt,
6635
6637
  Money: Dt,
6636
6638
  Month: Pn,
6637
6639
  Notes: On,
6638
6640
  Number: Mt,
6639
6641
  Password: An,
6640
- Phone: Ft,
6642
+ Phone: Lt,
6641
6643
  Search: Gn,
6642
- Select: Lt,
6644
+ Select: Ft,
6643
6645
  Set: wt,
6644
6646
  Textarea: Zn,
6645
6647
  Time: zn,
@@ -6662,17 +6664,17 @@ const lc = {
6662
6664
  Input: Pe,
6663
6665
  Button: Dn,
6664
6666
  Message: Mn,
6665
- Generator: Fn,
6666
- Captcha: Ln,
6667
+ Generator: Ln,
6668
+ Captcha: Fn,
6667
6669
  Modal: Tt,
6668
6670
  Money: Dt,
6669
6671
  Month: Pn,
6670
6672
  Notes: On,
6671
6673
  Number: Mt,
6672
6674
  Password: An,
6673
- Phone: Ft,
6675
+ Phone: Lt,
6674
6676
  Search: Gn,
6675
- Select: Lt,
6677
+ Select: Ft,
6676
6678
  Set: wt,
6677
6679
  Textarea: Zn,
6678
6680
  Time: zn,
@@ -6748,7 +6750,7 @@ const _c = { Field: Rl, Run: Nl, Get: Il, useValue: Tl }, Dl = "_f_q3r0i_1", Ml
6748
6750
  f: Dl
6749
6751
  };
6750
6752
  let re = {};
6751
- function Fl(e, t) {
6753
+ function Ll(e, t) {
6752
6754
  switch (t.type) {
6753
6755
  case "open":
6754
6756
  return {
@@ -6798,8 +6800,8 @@ function Fl(e, t) {
6798
6800
  throw new Error();
6799
6801
  }
6800
6802
  }
6801
- function Ll() {
6802
- const [e, t] = x.useReducer(Fl, {
6803
+ function Fl() {
6804
+ const [e, t] = x.useReducer(Ll, {
6803
6805
  open: !1,
6804
6806
  view: null,
6805
6807
  data: {},
@@ -6942,7 +6944,7 @@ function Gl({ data: e, head: t, state: a, dispatch: r, type: s }) {
6942
6944
  }
6943
6945
  );
6944
6946
  }
6945
- const uc = { Button: Ll, useValue: Bl, Set: $l, Run: Ol, Count: Vn, Reset: Pl }, fc = { Bell: ds, Send: os, Add: is }, Zl = "_p_djnh1_1", zl = "_l_djnh1_38", qn = {
6947
+ const uc = { Button: Fl, useValue: Bl, Set: $l, Run: Ol, Count: Vn, Reset: Pl }, fc = { Bell: ds, Send: os, Add: is }, Zl = "_p_djnh1_1", zl = "_l_djnh1_38", qn = {
6946
6948
  p: Zl,
6947
6949
  l: zl
6948
6950
  };