elcrm 0.8.66 → 0.8.67

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 p, { createElement as Ea } from "react";
5
5
  let Et = {};
6
6
  const Ra = (e) => {
7
7
  Et = e;
8
- }, Na = (e) => Et.enCode(e), Ta = (e) => Et.deCode(e), L = { enCode: Na, deCode: Ta, New: Ra }, E = {}, Y = {}, be = {}, hn = {}, oe = {};
8
+ }, Na = (e) => Et.enCode(e), Ta = (e) => Et.deCode(e), L = { enCode: Na, deCode: Ta, New: Ra }, E = {}, Y = {}, be = {}, hn = {}, le = {};
9
9
  let Xe = "M06";
10
10
  function Ia(e) {
11
11
  Xe = e;
@@ -194,17 +194,17 @@ function jn(e, t) {
194
194
  return ee(), !1;
195
195
  }
196
196
  function Oe(e) {
197
- oe.data = e, localStorage.setItem("q", L.enCode(oe.data));
197
+ le.data = e, localStorage.setItem("q", L.enCode(le.data));
198
198
  }
199
199
  function sr(e, t) {
200
- oe.data = { ...oe.data, [e]: t }, localStorage.setItem("q", L.enCode(oe.data));
200
+ le.data = { ...le.data, [e]: t }, localStorage.setItem("q", L.enCode(le.data));
201
201
  }
202
202
  function je(e, t) {
203
- if (!oe.data) {
203
+ if (!le.data) {
204
204
  let a = localStorage.getItem("q");
205
- a && (oe.data = L.deCode(a));
205
+ a && (le.data = L.deCode(a));
206
206
  }
207
- return e === void 0 && t === void 0 ? oe.data : e !== void 0 && t === void 0 ? oe.data[e] : oe.data[e][t];
207
+ return e === void 0 && t === void 0 ? le.data : e !== void 0 && t === void 0 ? le.data[e] : le.data[e][t];
208
208
  }
209
209
  function ir(e) {
210
210
  hn.data = e;
@@ -509,14 +509,14 @@ function Lr() {
509
509
  P.unshift("Warning: " + g), Function.prototype.apply.call(console[c], console, P);
510
510
  }
511
511
  }
512
- var D = !1, S = !1, R = !1, N = !1, w = !1, U;
513
- U = Symbol.for("react.module.reference");
514
- function ce(c) {
512
+ var D = !1, S = !1, R = !1, N = !1, w = !1, G;
513
+ G = Symbol.for("react.module.reference");
514
+ function re(c) {
515
515
  return !!(typeof c == "string" || typeof c == "function" || c === r || c === i || w || c === s || c === _ || c === u || N || c === h || D || S || R || typeof c == "object" && c !== null && (c.$$typeof === m || c.$$typeof === f || c.$$typeof === o || c.$$typeof === l || c.$$typeof === d || // This needs to include all possible module reference object
516
516
  // types supported by any Flight configuration anywhere since
517
517
  // we don't know which Flight build this will end up being used
518
518
  // with.
519
- c.$$typeof === U || c.getModuleId !== void 0));
519
+ c.$$typeof === G || c.getModuleId !== void 0));
520
520
  }
521
521
  function ue(c, g, j) {
522
522
  var I = c.displayName;
@@ -525,7 +525,7 @@ function Lr() {
525
525
  var $ = g.displayName || g.name || "";
526
526
  return $ !== "" ? j + "(" + $ + ")" : j;
527
527
  }
528
- function G(c) {
528
+ function Z(c) {
529
529
  return c.displayName || "Context";
530
530
  }
531
531
  function B(c) {
@@ -553,10 +553,10 @@ function Lr() {
553
553
  switch (c.$$typeof) {
554
554
  case l:
555
555
  var g = c;
556
- return G(g) + ".Consumer";
556
+ return Z(g) + ".Consumer";
557
557
  case o:
558
558
  var j = c;
559
- return G(j._context) + ".Provider";
559
+ return Z(j._context) + ".Provider";
560
560
  case d:
561
561
  return ue(c, c.render, "ForwardRef");
562
562
  case f:
@@ -573,14 +573,14 @@ function Lr() {
573
573
  }
574
574
  return null;
575
575
  }
576
- var V = Object.assign, q = 0, ze, re, Ne, at, Ke, Pt, Ot;
576
+ var V = Object.assign, q = 0, ze, se, Ne, at, Ke, Pt, Ot;
577
577
  function At() {
578
578
  }
579
579
  At.__reactDisabledLog = !0;
580
580
  function Xn() {
581
581
  {
582
582
  if (q === 0) {
583
- ze = console.log, re = console.info, Ne = console.warn, at = console.error, Ke = console.group, Pt = console.groupCollapsed, Ot = console.groupEnd;
583
+ ze = console.log, se = console.info, Ne = console.warn, at = console.error, Ke = console.group, Pt = console.groupCollapsed, Ot = console.groupEnd;
584
584
  var c = {
585
585
  configurable: !0,
586
586
  enumerable: !0,
@@ -613,7 +613,7 @@ function Lr() {
613
613
  value: ze
614
614
  }),
615
615
  info: V({}, c, {
616
- value: re
616
+ value: se
617
617
  }),
618
618
  warn: V({}, c, {
619
619
  value: Ne
@@ -704,18 +704,18 @@ function Lr() {
704
704
  if (X && I && typeof X.stack == "string") {
705
705
  for (var M = X.stack.split(`
706
706
  `), J = I.stack.split(`
707
- `), Z = M.length - 1, W = J.length - 1; Z >= 1 && W >= 0 && M[Z] !== J[W]; )
708
- W--;
709
- for (; Z >= 1 && W >= 0; Z--, W--)
710
- if (M[Z] !== J[W]) {
711
- if (Z !== 1 || W !== 1)
707
+ `), z = M.length - 1, U = J.length - 1; z >= 1 && U >= 0 && M[z] !== J[U]; )
708
+ U--;
709
+ for (; z >= 1 && U >= 0; z--, U--)
710
+ if (M[z] !== J[U]) {
711
+ if (z !== 1 || U !== 1)
712
712
  do
713
- if (Z--, W--, W < 0 || M[Z] !== J[W]) {
713
+ if (z--, U--, U < 0 || M[z] !== J[U]) {
714
714
  var te = `
715
- ` + M[Z].replace(" at new ", " at ");
715
+ ` + M[z].replace(" at new ", " at ");
716
716
  return c.displayName && te.includes("<anonymous>") && (te = te.replace("<anonymous>", c.displayName)), typeof c == "function" && Ue.set(c, te), te;
717
717
  }
718
- while (Z >= 1 && W >= 0);
718
+ while (z >= 1 && U >= 0);
719
719
  break;
720
720
  }
721
721
  }
@@ -781,8 +781,8 @@ function Lr() {
781
781
  throw J.name = "Invariant Violation", J;
782
782
  }
783
783
  M = c[F](g, F, I, j, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
784
- } catch (Z) {
785
- M = Z;
784
+ } catch (z) {
785
+ M = z;
786
786
  }
787
787
  M && !(M instanceof Error) && (He($), b("%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).", I || "React class", j, F, typeof M), He(null)), M instanceof Error && !(M.message in Zt) && (Zt[M.message] = !0, He($), b("Failed %s type: %s", j, M.message), He(null));
788
788
  }
@@ -899,13 +899,13 @@ function Lr() {
899
899
  for (P in g)
900
900
  Te.call(g, P) && !oa.hasOwnProperty(P) && (F[P] = g[P]);
901
901
  if (c && c.defaultProps) {
902
- var Z = c.defaultProps;
903
- for (P in Z)
904
- F[P] === void 0 && (F[P] = Z[P]);
902
+ var z = c.defaultProps;
903
+ for (P in z)
904
+ F[P] === void 0 && (F[P] = z[P]);
905
905
  }
906
906
  if (M || J) {
907
- var W = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
908
- M && _a(F, W), J && ua(F, W);
907
+ var U = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
908
+ M && _a(F, U), J && ua(F, U);
909
909
  }
910
910
  return fa(c, M, J, $, I, Ie.current, F);
911
911
  }
@@ -1023,18 +1023,18 @@ Check the top-level render call using <` + j + ">.");
1023
1023
  var Qt = {};
1024
1024
  function en(c, g, j, I, $, P) {
1025
1025
  {
1026
- var F = ce(c);
1026
+ var F = re(c);
1027
1027
  if (!F) {
1028
1028
  var M = "";
1029
1029
  (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.");
1030
1030
  var J = ha();
1031
1031
  J ? M += J : M += Vt();
1032
- var Z;
1033
- c === null ? Z = "null" : ot(c) ? Z = "array" : c !== void 0 && c.$$typeof === t ? (Z = "<" + (B(c.type) || "Unknown") + " />", M = " Did you accidentally export a JSX literal instead of a component?") : Z = typeof c, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Z, M);
1032
+ var z;
1033
+ c === null ? z = "null" : ot(c) ? z = "array" : c !== void 0 && c.$$typeof === t ? (z = "<" + (B(c.type) || "Unknown") + " />", M = " Did you accidentally export a JSX literal instead of a component?") : z = typeof c, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", z, M);
1034
1034
  }
1035
- var W = ma(c, g, j, $, P);
1036
- if (W == null)
1037
- return W;
1035
+ var U = ma(c, g, j, $, P);
1036
+ if (U == null)
1037
+ return U;
1038
1038
  if (F) {
1039
1039
  var te = g.children;
1040
1040
  if (te !== void 0)
@@ -1062,7 +1062,7 @@ React keys must be passed directly to JSX without using spread:
1062
1062
  <%s key={someKey} {...props} />`, ut, ge, ya, ge), Qt[ge + ut] = !0;
1063
1063
  }
1064
1064
  }
1065
- return c === r ? ga(W) : pa(W), W;
1065
+ return c === r ? ga(U) : pa(U), U;
1066
1066
  }
1067
1067
  }
1068
1068
  function va(c, g, j) {
@@ -1523,7 +1523,7 @@ function xs() {
1523
1523
  t[e[a].id] = {}, t[e[a].id].name = e[a].a;
1524
1524
  }), t;
1525
1525
  }
1526
- let ie = {}, H = {}, Ve = [
1526
+ let oe = {}, H = {}, Ve = [
1527
1527
  "filter",
1528
1528
  "online",
1529
1529
  "users",
@@ -1537,10 +1537,10 @@ function ps() {
1537
1537
  const [e, t] = p.useState(!1), [a, r] = p.useState(!1);
1538
1538
  function s(i) {
1539
1539
  const o = new ms();
1540
- ie.laodData = (l) => {
1540
+ oe.laodData = (l) => {
1541
1541
  let d = Ve.indexOf(l);
1542
1542
  d >= 0 && Ve.splice(d, 1), Ve.length === 0 && t(!0);
1543
- }, ie.send = (l) => {
1543
+ }, oe.send = (l) => {
1544
1544
  o.port.postMessage({ type: "send", json: l });
1545
1545
  }, o.port.onmessage = (l) => {
1546
1546
  let d = l.data;
@@ -1548,7 +1548,7 @@ function ps() {
1548
1548
  type: "connect",
1549
1549
  ukey: i,
1550
1550
  lk: xt()
1551
- }), Ve.length !== 0 && ie.laodData(d.type), H[d.type] && H[d.type](d);
1551
+ }), Ve.length !== 0 && oe.laodData(d.type), H[d.type] && H[d.type](d);
1552
1552
  }, o.port.postMessage({
1553
1553
  type: "connect",
1554
1554
  ukey: i,
@@ -1558,7 +1558,7 @@ function ps() {
1558
1558
  return [s, e, a];
1559
1559
  }
1560
1560
  H.module = (e) => {
1561
- ie[e.listen] !== void 0 && (ie[e.listen](e), delete ie[e.listen]);
1561
+ oe[e.listen] !== void 0 && (oe[e.listen](e), delete oe[e.listen]);
1562
1562
  };
1563
1563
  H.bell = cs;
1564
1564
  H.company = hs;
@@ -1633,16 +1633,16 @@ H.setting = (e) => {
1633
1633
  H.app = () => {
1634
1634
  };
1635
1635
  const gs = (e, t) => {
1636
- ie[e] = t;
1636
+ oe[e] = t;
1637
1637
  }, vs = (e, t) => {
1638
- ie[e](t);
1638
+ oe[e](t);
1639
1639
  };
1640
1640
  function Cs(e) {
1641
1641
  let t = "_" + String(Math.random()).substring(2, 7);
1642
1642
  return new Promise((a) => {
1643
- ie[t] = (r) => {
1644
- r.error !== void 0 ? a({ error: r.error }) : a(r.data), delete ie[t];
1645
- }, e = { ...e, listen: t }, e.type = "modules", ie.send(e);
1643
+ oe[t] = (r) => {
1644
+ r.error !== void 0 ? a({ error: r.error }) : a(r.data), delete oe[t];
1645
+ }, e = { ...e, listen: t }, e.type = "modules", oe.send(e);
1646
1646
  });
1647
1647
  }
1648
1648
  const de = { useConnect: ps, useListener: gs, setListener: vs, Send: Cs };
@@ -2068,7 +2068,7 @@ function Fs(e, t) {
2068
2068
  function Bs(e) {
2069
2069
  return parseInt((Date.now() - new Date(e).getTime()) / 31536e6 + "") + "";
2070
2070
  }
2071
- const K = {
2071
+ const W = {
2072
2072
  Age: Bs,
2073
2073
  Date: ks,
2074
2074
  MoneyString: ys,
@@ -2089,7 +2089,7 @@ const K = {
2089
2089
  function $s({ children: e }) {
2090
2090
  return /* @__PURE__ */ n.jsx("div", { className: "l", children: /* @__PURE__ */ n.jsx("ul", { children: e }) });
2091
2091
  }
2092
- const Ps = "_white_11p39_14", Os = "_black_11p39_26", As = "_shake_11p39_1", Gs = "_modal_11p39_73", Zs = "_o_11p39_83", zs = "_w_11p39_14", Ks = "_h_11p39_107", Ws = "_l_11p39_121", Us = "_t_11p39_159", Ys = "_m_11p39_73", Hs = "_x_11p39_167", Vs = "_s_11p39_177", qs = "_c_11p39_182", Js = "_f_11p39_187", Xs = "_btn_11p39_230", Qs = "_g_11p39_243", ei = "_confirm_11p39_322", ti = "_cancel_11p39_327", ni = "_disabled_11p39_332", ai = "_active_11p39_389", ri = "_coincidence_11p39_395", si = "_sa_11p39_431", ii = "_ss_11p39_435", oi = "_sm_11p39_439", li = "_sl_11p39_443", ci = "_sx_11p39_447", di = "_sf_11p39_451", se = {
2092
+ const Ps = "_white_11p39_14", Os = "_black_11p39_26", As = "_shake_11p39_1", Gs = "_modal_11p39_73", Zs = "_o_11p39_83", zs = "_w_11p39_14", Ks = "_h_11p39_107", Ws = "_l_11p39_121", Us = "_t_11p39_159", Ys = "_m_11p39_73", Hs = "_x_11p39_167", Vs = "_s_11p39_177", qs = "_c_11p39_182", Js = "_f_11p39_187", Xs = "_btn_11p39_230", Qs = "_g_11p39_243", ei = "_confirm_11p39_322", ti = "_cancel_11p39_327", ni = "_disabled_11p39_332", ai = "_active_11p39_389", ri = "_coincidence_11p39_395", si = "_sa_11p39_431", ii = "_ss_11p39_435", oi = "_sm_11p39_439", li = "_sl_11p39_443", ci = "_sx_11p39_447", di = "_sf_11p39_451", ie = {
2093
2093
  white: Ps,
2094
2094
  black: Os,
2095
2095
  shake: As,
@@ -2126,13 +2126,13 @@ const Ps = "_white_11p39_14", Os = "_black_11p39_26", As = "_shake_11p39_1", Gs
2126
2126
  sf: di
2127
2127
  };
2128
2128
  function _i({ children: e }) {
2129
- return /* @__PURE__ */ n.jsx("div", { className: se.s, children: e });
2129
+ return /* @__PURE__ */ n.jsx("div", { className: ie.s, children: e });
2130
2130
  }
2131
2131
  function ui({ children: e, className: t }) {
2132
2132
  return /* @__PURE__ */ n.jsx("div", { "data-form": "outline", className: "f", children: /* @__PURE__ */ n.jsx("ul", { children: e }) });
2133
2133
  }
2134
2134
  function fi({ children: e }) {
2135
- return /* @__PURE__ */ n.jsx("div", { className: se.c, children: e });
2135
+ return /* @__PURE__ */ n.jsx("div", { className: ie.c, children: e });
2136
2136
  }
2137
2137
  const mi = "_btn_1hz2s_6", hi = "_confirm_1hz2s_19", on = {
2138
2138
  btn: mi,
@@ -2190,18 +2190,18 @@ function gi({
2190
2190
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: o ? /* @__PURE__ */ n.jsxs(
2191
2191
  "div",
2192
2192
  {
2193
- className: `${se.modal} ${se.white}`,
2193
+ className: `${ie.modal} ${ie.white}`,
2194
2194
  children: [
2195
- /* @__PURE__ */ n.jsx("div", { className: se.o, onClick: u }),
2195
+ /* @__PURE__ */ n.jsx("div", { className: ie.o, onClick: u }),
2196
2196
  /* @__PURE__ */ n.jsxs(
2197
2197
  "div",
2198
2198
  {
2199
- className: [se.w, se[`s${s}`]].join(" "),
2199
+ className: [ie.w, ie[`s${s}`]].join(" "),
2200
2200
  ref: d,
2201
2201
  children: [
2202
- /* @__PURE__ */ n.jsxs("div", { className: se.h, children: [
2203
- /* @__PURE__ */ n.jsx("div", { className: se.t, children: e }),
2204
- /* @__PURE__ */ n.jsxs("div", { className: se.m, children: [
2202
+ /* @__PURE__ */ n.jsxs("div", { className: ie.h, children: [
2203
+ /* @__PURE__ */ n.jsx("div", { className: ie.t, children: e }),
2204
+ /* @__PURE__ */ n.jsxs("div", { className: ie.m, children: [
2205
2205
  r && /* @__PURE__ */ n.jsx("nav", { children: r.map((f, m) => /* @__PURE__ */ n.jsx(
2206
2206
  "span",
2207
2207
  {
@@ -2216,7 +2216,7 @@ function gi({
2216
2216
  /* @__PURE__ */ n.jsx(
2217
2217
  "div",
2218
2218
  {
2219
- className: se.x,
2219
+ className: ie.x,
2220
2220
  onClick: () => {
2221
2221
  l(!1);
2222
2222
  },
@@ -2576,8 +2576,8 @@ const Ai = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2576
2576
  })).json()).status === "success" && (t({ type: "delete", id: e.id }), $e.Send({ type: "success", text: "Файл успешно удалён" }));
2577
2577
  };
2578
2578
  return /* @__PURE__ */ n.jsxs("li", { children: [
2579
- /* @__PURE__ */ n.jsx("div", { className: "f035", children: K.TypeFiles(e.type) }),
2580
- /* @__PURE__ */ n.jsx("div", { className: "f100", children: K.Date(e.uDate, "dd.mm.yy") }),
2579
+ /* @__PURE__ */ n.jsx("div", { className: "f035", children: W.TypeFiles(e.type) }),
2580
+ /* @__PURE__ */ n.jsx("div", { className: "f100", children: W.Date(e.uDate, "dd.mm.yy") }),
2581
2581
  /* @__PURE__ */ n.jsx("div", { className: "f000", children: e.name }),
2582
2582
  /* @__PURE__ */ n.jsxs("div", { className: "f050 flex button", children: [
2583
2583
  /* @__PURE__ */ n.jsx(
@@ -2599,7 +2599,7 @@ const Ai = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2599
2599
  }
2600
2600
  )
2601
2601
  ] }),
2602
- /* @__PURE__ */ n.jsx("div", { className: "f080", children: K.Size(e.size) })
2602
+ /* @__PURE__ */ n.jsx("div", { className: "f080", children: W.Size(e.size) })
2603
2603
  ] });
2604
2604
  }, Nt = { setSetting: tr, getSetting: nr };
2605
2605
  let A = {};
@@ -3239,21 +3239,21 @@ class Uo {
3239
3239
  );
3240
3240
  }
3241
3241
  }
3242
- let mt, z = {};
3242
+ let mt, K = {};
3243
3243
  const Re = () => (mt || (mt = new Uo()), mt), pe = (e, t, a = Re()) => a._withIDBStore("readwrite", (r) => {
3244
- z[e] = t, r.put(L.enCode(t), e);
3245
- }), le = (e, t = Re()) => z[e] === void 0 ? new Promise((a, r) => {
3244
+ K[e] = t, r.put(L.enCode(t), e);
3245
+ }), ce = (e, t = Re()) => K[e] === void 0 ? new Promise((a, r) => {
3246
3246
  let s;
3247
3247
  t._withIDBStore("readonly", (i) => {
3248
3248
  s = i.get(e);
3249
3249
  }).then(() => {
3250
3250
  if (s.result !== void 0) {
3251
3251
  let i = L.deCode(s.result);
3252
- z[e] = i, a(i);
3252
+ K[e] = i, a(i);
3253
3253
  } else
3254
3254
  a({});
3255
3255
  });
3256
- }) : z[e], Yo = (e, t = Re()) => t._withIDBStore("readwrite", (a) => {
3256
+ }) : K[e], Yo = (e, t = Re()) => t._withIDBStore("readwrite", (a) => {
3257
3257
  a.delete(e);
3258
3258
  }), wt = (e = Re()) => e._withIDBStore("readwrite", (t) => {
3259
3259
  t.clear();
@@ -3287,7 +3287,7 @@ const Re = () => (mt || (mt = new Uo()), mt), pe = (e, t, a = Re()) => a._withID
3287
3287
  h === void 0 ? (wt(), location.reload()) : (s && f(h.id), l && m(h.id));
3288
3288
  }), { list: u, search: i, filter: r };
3289
3289
  }, qo = (e, t, a, r = Re()) => {
3290
- if (z[e] === void 0)
3290
+ if (K[e] === void 0)
3291
3291
  return new Promise((s, i) => {
3292
3292
  let o;
3293
3293
  r._withIDBStore("readonly", (l) => {
@@ -3295,44 +3295,44 @@ const Re = () => (mt || (mt = new Uo()), mt), pe = (e, t, a = Re()) => a._withID
3295
3295
  }).then(() => {
3296
3296
  if (o.result !== void 0) {
3297
3297
  let l = L.deCode(o.result);
3298
- z[e] = l, z[e][t.id] = {
3299
- ...z[e][t.id],
3298
+ K[e] = l, K[e][t.id] = {
3299
+ ...K[e][t.id],
3300
3300
  ...t.data
3301
- }, r.put(L.enCode(z[e]), e), s({});
3301
+ }, r.put(L.enCode(K[e]), e), s({});
3302
3302
  } else
3303
3303
  s({});
3304
3304
  });
3305
3305
  });
3306
- if (z[e][t.id] !== void 0)
3307
- return z[e][t.id] = { ...z[e][t.id], ...t.data }, a !== void 0 && z[a] !== void 0 ? z[a][t.id] !== void 0 && (z[a][t.id] = t.data.eDate) : z[a] = [], delete z[e][t.id].$_item, delete z[e][t.id].$_send, r._withIDBStore("readwrite", (s) => {
3308
- s.put(L.enCode(z[e]), e), a !== void 0 && s.put(L.enCode(z[a]), a);
3306
+ if (K[e][t.id] !== void 0)
3307
+ 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) => {
3308
+ s.put(L.enCode(K[e]), e), a !== void 0 && s.put(L.enCode(K[a]), a);
3309
3309
  });
3310
3310
  }, Jo = async (e, t, a, r) => {
3311
3311
  let s, i;
3312
- i = await le(a), i[e.id] = e, await pe(a, i), s !== null && (s = await le(t), s[e.id] = e.eDate, await pe(t, s)), r !== void 0 && r({ type: "load", page: s, base: i });
3312
+ i = await ce(a), i[e.id] = e, await pe(a, i), s !== null && (s = await ce(t), s[e.id] = e.eDate, await pe(t, s)), r !== void 0 && r({ type: "load", page: s, base: i });
3313
3313
  }, Xo = async (e, t, a, r) => {
3314
- let s = await le(t), i = await le(a);
3314
+ let s = await ce(t), i = await ce(a);
3315
3315
  for (let o in e)
3316
3316
  i[o] = e[o], s[o] = e[o].eDate;
3317
3317
  await pe(t, s), await pe(a, i), r !== void 0 && r({ type: "load", page: s, base: i });
3318
3318
  }, Qo = async (e, t, a, r) => {
3319
- let s = await le(t), i = await le(a);
3319
+ let s = await ce(t), i = await ce(a);
3320
3320
  e.forEach((o) => delete s[o]), await pe(t, s), r !== void 0 && r({ type: "load", page: s, base: i });
3321
3321
  }, el = async (e, t, a) => {
3322
- let r = await le(t);
3322
+ let r = await ce(t);
3323
3323
  e.forEach((s) => delete r[s]), await pe(t, r);
3324
3324
  }, tl = async (e, t, a) => {
3325
- let r = await le(t);
3325
+ let r = await ce(t);
3326
3326
  e.forEach((s) => r[s.id] = s.eDate), await pe(t, r);
3327
3327
  }, nl = async (e, t, a) => {
3328
- let r = await le(t);
3328
+ let r = await ce(t);
3329
3329
  if (a !== void 0)
3330
3330
  a({ type: "load", base: r });
3331
3331
  else
3332
3332
  return r[e];
3333
- }, al = (e) => z[e], ic = {
3333
+ }, al = (e) => K[e], ic = {
3334
3334
  id: nl,
3335
- get: le,
3335
+ get: ce,
3336
3336
  set: pe,
3337
3337
  add: Jo,
3338
3338
  del: Yo,
@@ -3877,7 +3877,7 @@ function Tt(e) {
3877
3877
  onClick: u,
3878
3878
  ...m,
3879
3879
  "data-edit": (r && s) + "",
3880
- children: K.Date(o, "dd.mm.yyyy")
3880
+ children: W.Date(o, "dd.mm.yyyy")
3881
3881
  }
3882
3882
  ),
3883
3883
  a()
@@ -3910,7 +3910,7 @@ const fl = (e) => {
3910
3910
  b(l.m - 1, l.y);
3911
3911
  }, k = (S) => {
3912
3912
  e.onValue(
3913
- l.y + "-" + K.Number(2, l.m) + "-" + K.Number(2, S)
3913
+ l.y + "-" + W.Number(2, l.m) + "-" + W.Number(2, S)
3914
3914
  ), C();
3915
3915
  }, b = (S, R) => {
3916
3916
  R = S > 12 ? R + 1 : S < 1 ? R - 1 : R, S = S > 12 ? 1 : S < 1 ? 12 : S, d({ y: R, m: S });
@@ -3943,7 +3943,7 @@ const fl = (e) => {
3943
3943
  }
3944
3944
  ) }),
3945
3945
  /* @__PURE__ */ n.jsxs("h2", { children: [
3946
- K.Month(l.m).name,
3946
+ W.Month(l.m).name,
3947
3947
  " ",
3948
3948
  l.y
3949
3949
  ] }),
@@ -4038,7 +4038,7 @@ function Dt(e) {
4038
4038
  f.target.textContent === "" && (f.target.textContent = 0), e.onValue({
4039
4039
  value: a(f.target.textContent),
4040
4040
  name: e.name
4041
- }), f.target.textContent = K.Money(f.target.textContent);
4041
+ }), f.target.textContent = W.Money(f.target.textContent);
4042
4042
  }, o = (f) => {
4043
4043
  f.target.textContent = a(f.target.textContent);
4044
4044
  }, l = (f) => {
@@ -4066,7 +4066,7 @@ function Dt(e) {
4066
4066
  contentEditable: !0,
4067
4067
  suppressContentEditableWarning: !0,
4068
4068
  "e-after": e.after,
4069
- children: K.Money(t)
4069
+ children: W.Money(t)
4070
4070
  }
4071
4071
  ),
4072
4072
  u()
@@ -4118,7 +4118,7 @@ function Pn({
4118
4118
  {
4119
4119
  onClick: C,
4120
4120
  ...x,
4121
- children: K.Date(f, "mm.yyyy")
4121
+ children: W.Date(f, "mm.yyyy")
4122
4122
  }
4123
4123
  ),
4124
4124
  s && /* @__PURE__ */ n.jsx("em", { children: s })
@@ -4138,7 +4138,7 @@ const ml = (e) => {
4138
4138
  }, f = () => {
4139
4139
  d(l - 1);
4140
4140
  }, m = (k) => {
4141
- e.onValue(l + "-" + K.Number(2, k)), _();
4141
+ e.onValue(l + "-" + W.Number(2, k)), _();
4142
4142
  }, h = (k) => i.y === o.y && i.m === k ? "_FFEB3B" : "", C = Array(12).fill("").map((k, b) => b + 1), x = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, v = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
4143
4143
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: t ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
4144
4144
  /* @__PURE__ */ n.jsx(
@@ -4187,7 +4187,7 @@ const ml = (e) => {
4187
4187
  m(k);
4188
4188
  },
4189
4189
  color: h(k),
4190
- children: /* @__PURE__ */ n.jsx("b", { children: K.Month(k).abc })
4190
+ children: /* @__PURE__ */ n.jsx("b", { children: W.Month(k).abc })
4191
4191
  },
4192
4192
  b
4193
4193
  )) })
@@ -4262,13 +4262,13 @@ function Mt({
4262
4262
  if (w.which === 17 || w.which === 91)
4263
4263
  return k = !1;
4264
4264
  }, S = (w) => {
4265
- w.preventDefault(), navigator.clipboard.readText().then((U) => {
4266
- U = U.replace(/\D/g, ""), window.document.execCommand(
4265
+ w.preventDefault(), navigator.clipboard.readText().then((G) => {
4266
+ G = G.replace(/\D/g, ""), window.document.execCommand(
4267
4267
  "insertText",
4268
4268
  !1,
4269
- "" + U.replace(/\D/g, "")
4269
+ "" + G.replace(/\D/g, "")
4270
4270
  );
4271
- }).catch((U) => {
4271
+ }).catch((G) => {
4272
4272
  });
4273
4273
  };
4274
4274
  const R = {};
@@ -5743,23 +5743,23 @@ function Lt({
5743
5743
  className: h = ""
5744
5744
  }) {
5745
5745
  d = d !== void 0 ? d : !0, _ = _ !== void 0 ? _ : !0, l = !!(l && (e === "" || e === void 0)) && !(d && _), p.useRef(null);
5746
- let x = "+_(___) ___-__-__", v = !0, k = 0, b = (G, B) => {
5746
+ let x = "+_(___) ___-__-__", v = !0, k = 0, b = (Z, B) => {
5747
5747
  let V = document.createRange(), q = window.getSelection();
5748
- V.setStart(B.childNodes[0], G), V.collapse(!0), q.removeAllRanges(), q.addRange(V), B.focus();
5749
- }, T = (G) => {
5750
- G.preventDefault(), navigator.clipboard.readText().then((B) => {
5748
+ V.setStart(B.childNodes[0], Z), V.collapse(!0), q.removeAllRanges(), q.addRange(V), B.focus();
5749
+ }, T = (Z) => {
5750
+ Z.preventDefault(), navigator.clipboard.readText().then((B) => {
5751
5751
  window.document.execCommand("insertText", !1, B);
5752
5752
  }).catch((B) => {
5753
5753
  });
5754
- }, D = (G) => {
5755
- let B = 0, V = "", q = G.replace(/\D/g, "");
5754
+ }, D = (Z) => {
5755
+ let B = 0, V = "", q = Z.replace(/\D/g, "");
5756
5756
  q === "" && (v = !0);
5757
- let ze = q.split(""), re = "";
5757
+ let ze = q.split(""), se = "";
5758
5758
  ze.forEach((Ke) => {
5759
- v && (re += Ke, ht[re] !== void 0 && v ? (v = !1, x = ht[re].mask.replace(new RegExp("[0-9]", "g"), "_"), V = ht[re].code) : (v && (k = ("" + re).length, x = `+${re}_(___) ___-__-__`.replace(
5759
+ v && (se += Ke, ht[se] !== void 0 && v ? (v = !1, x = ht[se].mask.replace(new RegExp("[0-9]", "g"), "_"), V = ht[se].code) : (v && (k = ("" + se).length, x = `+${se}_(___) ___-__-__`.replace(
5760
5760
  new RegExp("[0-9]", "g"),
5761
5761
  "_"
5762
- ), V = ""), k > ("" + re).length && (v = !0, x = `+${re}_(___) ___-__-__`.replace(
5762
+ ), V = ""), k > ("" + se).length && (v = !0, x = `+${se}_(___) ___-__-__`.replace(
5763
5763
  new RegExp("[0-9]", "g"),
5764
5764
  "_"
5765
5765
  ), V = "")));
@@ -5768,29 +5768,29 @@ function Lt({
5768
5768
  return Ne.length >= q.length && (q = Ne), { q: x.replace(/[_\d]/g, function() {
5769
5769
  return q.charAt(B++) || "_";
5770
5770
  }), i: B, v: q, f: V };
5771
- }, S = (G) => {
5772
- G.preventDefault(), navigator.clipboard.writeText(G.target.textContent.replace(/\D/g, "")).then(
5771
+ }, S = (Z) => {
5772
+ Z.preventDefault(), navigator.clipboard.writeText(Z.target.textContent.replace(/\D/g, "")).then(
5773
5773
  function() {
5774
5774
  $e.Copy("Данные в буфер обмене");
5775
5775
  },
5776
5776
  function(B) {
5777
5777
  }
5778
5778
  );
5779
- }, R = D(e), N = (G) => {
5780
- let B = D(G.target.textContent);
5781
- G.target.textContent = B.q, B.i = B.q.lastIndexOf(B.v.substr(-1)), B.i < B.q.length && B.q !== x ? B.i++ : B.i = B.q.indexOf("_"), b(B.i, G.target), t && t({ value: B.q.replace(/\D/g, ""), name: r });
5782
- }, w = (G) => {
5783
- G.key === "Enter" && G.preventDefault();
5779
+ }, R = D(e), N = (Z) => {
5780
+ let B = D(Z.target.textContent);
5781
+ Z.target.textContent = B.q, B.i = B.q.lastIndexOf(B.v.substr(-1)), B.i < B.q.length && B.q !== x ? B.i++ : B.i = B.q.indexOf("_"), b(B.i, Z.target), t && t({ value: B.q.replace(/\D/g, ""), name: r });
5782
+ }, w = (Z) => {
5783
+ Z.key === "Enter" && Z.preventDefault();
5784
5784
  };
5785
- const U = (G) => {
5786
- _e.Blur(G), a && a({
5787
- value: G.target.textContent.replace(/\D/g, ""),
5785
+ const G = (Z) => {
5786
+ _e.Blur(Z), a && a({
5787
+ value: Z.target.textContent.replace(/\D/g, ""),
5788
5788
  name: r
5789
5789
  });
5790
- }, ce = {};
5791
- ce.field = "input", h && (ce.className = h);
5790
+ }, re = {};
5791
+ re.field = "input", h && (re.className = h);
5792
5792
  let ue = {};
5793
- return d && _ ? (ue.edit = "true", ue.contentEditable = "plaintext-only") : ue.contentEditable = "false", s && (ue.placeholder = s), u && (ue.after = u), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...ce, children: [
5793
+ return d && _ ? (ue.edit = "true", ue.contentEditable = "plaintext-only") : ue.contentEditable = "false", s && (ue.placeholder = s), u && (ue.after = u), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...re, children: [
5794
5794
  i && /* @__PURE__ */ n.jsx("dt", { children: i }),
5795
5795
  /* @__PURE__ */ n.jsx(
5796
5796
  "dd",
@@ -5800,7 +5800,7 @@ function Lt({
5800
5800
  onInput: N,
5801
5801
  onKeyDown: w,
5802
5802
  onContextMenu: S,
5803
- onBlur: U,
5803
+ onBlur: G,
5804
5804
  suppressContentEditableWarning: !0,
5805
5805
  children: R.q
5806
5806
  }
@@ -6239,7 +6239,7 @@ function zn({
6239
6239
  onSave: h,
6240
6240
  className: C = ""
6241
6241
  }) {
6242
- let x = !!(o && (e === "" || e === void 0)), v = K.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), k = p.useRef(null);
6242
+ let x = !!(o && (e === "" || e === void 0)), v = W.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), k = p.useRef(null);
6243
6243
  if (!(l && d) && !u || !(l && d) && x)
6244
6244
  return "";
6245
6245
  let b = (N) => {
@@ -6247,13 +6247,13 @@ function zn({
6247
6247
  }, T = (N) => {
6248
6248
  h && h({ value: N, name: a });
6249
6249
  }, D = (N) => {
6250
- const w = N.target.getBoundingClientRect(), U = w.left, ce = w.top;
6250
+ const w = N.target.getBoundingClientRect(), G = w.left, re = w.top;
6251
6251
  Ee.setListener(
6252
6252
  "form",
6253
6253
  /* @__PURE__ */ n.jsx(
6254
6254
  pl,
6255
6255
  {
6256
- positions: { x: U, y: ce },
6256
+ positions: { x: G, y: re },
6257
6257
  onSave: T,
6258
6258
  onValue: b,
6259
6259
  date: v
@@ -6279,8 +6279,8 @@ function zn({
6279
6279
  }
6280
6280
  const pl = ({ positions: e, onSave: t, onValue: a, date: r }) => {
6281
6281
  let s = r.split(":"), i = {
6282
- h: K.Number(2, s[0]),
6283
- m: K.Number(2, s[1])
6282
+ h: W.Number(2, s[0]),
6283
+ m: W.Number(2, s[1])
6284
6284
  }, o = "hour", [l, d] = p.useState({}), _ = !1, u = 0, f = 0, m = {
6285
6285
  body: p.useRef(null),
6286
6286
  time: p.useRef(null),
@@ -6303,10 +6303,10 @@ const pl = ({ positions: e, onSave: t, onValue: a, date: r }) => {
6303
6303
  ) * (180 / Math.PI) * -1 + 180;
6304
6304
  m[o].current.style.transform = "rotate(" + w + "deg)", o === "hour" ? (i = {
6305
6305
  ...i,
6306
- h: K.Number(2, parseInt(String(w / 15), 10))
6306
+ h: W.Number(2, parseInt(String(w / 15), 10))
6307
6307
  }, m.hourText.current.textContent = i.h) : (i = {
6308
6308
  ...i,
6309
- m: K.Number(2, parseInt(String(w / 6), 10))
6309
+ m: W.Number(2, parseInt(String(w / 6), 10))
6310
6310
  }, m.timeText.current.textContent = i.m), a(i.h + ":" + i.m);
6311
6311
  }
6312
6312
  }, v = (R) => {
@@ -6317,7 +6317,7 @@ const pl = ({ positions: e, onSave: t, onValue: a, date: r }) => {
6317
6317
  if (f !== N) {
6318
6318
  f = N;
6319
6319
  let w = parseInt(i.h, 10) + 1;
6320
- w = w > 23 ? 0 : w, i = { ...i, h: K.Number(2, w) }, m.hourText.current.textContent = i.h, m[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
6320
+ w = w > 23 ? 0 : w, i = { ...i, h: W.Number(2, w) }, m.hourText.current.textContent = i.h, m[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
6321
6321
  }
6322
6322
  } else {
6323
6323
  u -= R.deltaY;
@@ -6325,7 +6325,7 @@ const pl = ({ positions: e, onSave: t, onValue: a, date: r }) => {
6325
6325
  if (f !== N) {
6326
6326
  f = N;
6327
6327
  let w = parseInt(i.h, 10) - 1;
6328
- w = w < 0 ? 23 : w, i = { ...i, h: K.Number(2, w) }, m.hourText.current.textContent = i.h, m[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
6328
+ w = w < 0 ? 23 : w, i = { ...i, h: W.Number(2, w) }, m.hourText.current.textContent = i.h, m[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
6329
6329
  }
6330
6330
  }
6331
6331
  else if (R.deltaY > 0) {
@@ -6334,7 +6334,7 @@ const pl = ({ positions: e, onSave: t, onValue: a, date: r }) => {
6334
6334
  if (f !== N) {
6335
6335
  f = N;
6336
6336
  let w = parseInt(i.m, 10) + 1;
6337
- w = w > 59 ? 0 : w, i = { ...i, m: K.Number(2, w) }, m.timeText.current.textContent = i.m, m[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
6337
+ w = w > 59 ? 0 : w, i = { ...i, m: W.Number(2, w) }, m.timeText.current.textContent = i.m, m[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
6338
6338
  }
6339
6339
  } else {
6340
6340
  u -= R.deltaY;
@@ -6342,7 +6342,7 @@ const pl = ({ positions: e, onSave: t, onValue: a, date: r }) => {
6342
6342
  if (f !== N) {
6343
6343
  f = N;
6344
6344
  let w = parseInt(i.m, 10) - 1;
6345
- w = w < 0 ? 59 : w, i = { ...i, m: K.Number(2, w) }, m.timeText.current.textContent = i.m, m[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
6345
+ w = w < 0 ? 59 : w, i = { ...i, m: W.Number(2, w) }, m.timeText.current.textContent = i.m, m[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
6346
6346
  }
6347
6347
  }
6348
6348
  a(i.h + ":" + i.m);
@@ -6484,11 +6484,11 @@ function Un({
6484
6484
  return "";
6485
6485
  const D = {};
6486
6486
  D.field = "group", h && (D.className = h);
6487
- const S = (w) => {
6488
- _e.Blur(w), m && m({ value: w.target.textContent, name: a });
6487
+ const S = (w, G) => {
6488
+ _e.Blur(w), C[G] = w.target.textContent, m && m({ value: C, name: a });
6489
6489
  };
6490
- let R = (w, U) => {
6491
- C[U] = w.target.textContent, t && t({ value: C.join(","), name: a });
6490
+ let R = (w, G) => {
6491
+ C[G] = w.target.textContent, t && t({ value: C.join(","), name: a });
6492
6492
  }, N = (w) => {
6493
6493
  w.key === "Enter" && w.preventDefault();
6494
6494
  };
@@ -6512,27 +6512,27 @@ function Un({
6512
6512
  }
6513
6513
  ) })
6514
6514
  ] }),
6515
- /* @__PURE__ */ n.jsx("dd", { children: C.map((w, U) => /* @__PURE__ */ n.jsxs("li", { className: "field_group_item", children: [
6515
+ /* @__PURE__ */ n.jsx("dd", { children: C.map((w, G) => /* @__PURE__ */ n.jsxs("li", { className: "field_group_item", children: [
6516
6516
  /* @__PURE__ */ n.jsx(
6517
6517
  "span",
6518
6518
  {
6519
- onInput: (ce) => R(ce, U),
6519
+ onInput: (re) => R(re, G),
6520
6520
  edit: "true",
6521
6521
  name: a,
6522
6522
  placeholder: r,
6523
6523
  onPaste: T,
6524
6524
  contentEditable: !0,
6525
6525
  onKeyDown: N,
6526
- onBlur: S,
6526
+ onBlur: (re) => S(re, G),
6527
6527
  suppressContentEditableWarning: !0,
6528
- children: C[U]
6528
+ children: C[G]
6529
6529
  }
6530
6530
  ),
6531
6531
  /* @__PURE__ */ n.jsx(
6532
6532
  "i",
6533
6533
  {
6534
6534
  onClick: () => {
6535
- k(U);
6535
+ k(G);
6536
6536
  },
6537
6537
  children: /* @__PURE__ */ n.jsxs(
6538
6538
  "svg",
@@ -6552,7 +6552,7 @@ function Un({
6552
6552
  )
6553
6553
  }
6554
6554
  )
6555
- ] }, U)) }),
6555
+ ] }, G)) }),
6556
6556
  i && /* @__PURE__ */ n.jsx("em", { children: i })
6557
6557
  ] });
6558
6558
  }
@@ -7137,7 +7137,7 @@ export {
7137
7137
  lc as Files,
7138
7138
  fc as Filter,
7139
7139
  cc as Form,
7140
- K as Format,
7140
+ W as Format,
7141
7141
  oc as HotKey,
7142
7142
  ac as Icon,
7143
7143
  uo as Init,