elcrm 0.8.921 → 0.8.922

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
@@ -1,7 +1,7 @@
1
1
  import './index.css';var Sa = Object.defineProperty;
2
2
  var Ea = (e, t, a) => t in e ? Sa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
3
  var ht = (e, t, a) => (Ea(e, typeof t != "symbol" ? t + "" : t, a), a);
4
- import p, { createElement as Ra } from "react";
4
+ import x, { createElement as Ra } from "react";
5
5
  let Dt = {};
6
6
  const Da = (e) => {
7
7
  Dt = e;
@@ -57,7 +57,7 @@ function Oa() {
57
57
  function Aa(e) {
58
58
  localStorage.setItem("p", $.enCode(e));
59
59
  }
60
- function pt() {
60
+ function xt() {
61
61
  let e = localStorage.getItem("p");
62
62
  if (e !== "" && e !== "undefined" && e !== null) {
63
63
  let t = $.deCode(e);
@@ -66,7 +66,7 @@ function pt() {
66
66
  return se(), !1;
67
67
  }
68
68
  function Ga() {
69
- const [e, t] = p.useState(xn()), a = (r) => {
69
+ const [e, t] = x.useState(pn()), a = (r) => {
70
70
  t(r);
71
71
  };
72
72
  return J.page = a, [e];
@@ -74,7 +74,7 @@ function Ga() {
74
74
  function Za(e, t = !0) {
75
75
  D.page = e, sessionStorage.setItem("f", $.enCode(D)), t && J.page(e);
76
76
  }
77
- function xn() {
77
+ function pn() {
78
78
  return D.page;
79
79
  }
80
80
  function Ua(e) {
@@ -82,7 +82,7 @@ function Ua(e) {
82
82
  }
83
83
  function za(e) {
84
84
  if (typeof e != "function") {
85
- const [t, a] = p.useState(e || pn()), r = (s) => {
85
+ const [t, a] = x.useState(e || xn()), r = (s) => {
86
86
  a(s);
87
87
  };
88
88
  return J.module = r, [t];
@@ -92,7 +92,7 @@ function za(e) {
92
92
  function Wa(e, t = !0) {
93
93
  D.module = e, sessionStorage.setItem("f", $.enCode(D)), t && J.module(e);
94
94
  }
95
- function pn() {
95
+ function xn() {
96
96
  return D.module;
97
97
  }
98
98
  function Ka(e) {
@@ -100,7 +100,7 @@ function Ka(e) {
100
100
  }
101
101
  function Ha(e) {
102
102
  if (typeof e != "function") {
103
- const [t, a] = p.useState(e || nt());
103
+ const [t, a] = x.useState(e || nt());
104
104
  return J.tabs = a, [t];
105
105
  } else
106
106
  J.tabs = e;
@@ -120,7 +120,7 @@ function qa(e) {
120
120
  }
121
121
  function Va(e) {
122
122
  if (typeof e != "function") {
123
- const [t, a] = p.useState(e || vn()), r = (s) => {
123
+ const [t, a] = x.useState(e || vn()), r = (s) => {
124
124
  a(s);
125
125
  };
126
126
  return J.id = r, [t];
@@ -273,7 +273,7 @@ function gr(e, t, a) {
273
273
  const oe = {
274
274
  setSSID: Ba,
275
275
  getSSID: $a,
276
- getPORT: pt,
276
+ getPORT: xt,
277
277
  setPORT: Aa,
278
278
  setAUTH: Pa,
279
279
  getAUTH: Oa,
@@ -300,7 +300,7 @@ const oe = {
300
300
  setBase: hr,
301
301
  editBase: gr,
302
302
  loadBase: fr
303
- }, bn = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyBhPT57bGV0IHM9YS5kYXRhLmRhdGEgaW5zdGFuY2VvZiBGb3JtRGF0YT97fTp7IkNvbnRlbnQtdHlwZSI6ImFwcGxpY2F0aW9uL2pzb247Y2hhcnNldD11dGYtOCJ9O3RyeXtsZXQgdD1hd2FpdCBmZXRjaChgJHthLmRhdGEuaG9zdH0ke2EuZGF0YS5saW5rfWAse21ldGhvZDoiUE9TVCIsaGVhZGVyczp7c3NpZDphLmRhdGEuc3NpZCwuLi5zfSxib2R5OmEuZGF0YS5kYXRhIGluc3RhbmNlb2YgRm9ybURhdGE/YS5kYXRhLmRhdGE6SlNPTi5zdHJpbmdpZnkoYS5kYXRhLmRhdGEpfSk7cG9zdE1lc3NhZ2UoYXdhaXQgdC5qc29uKCkpfWNhdGNoKHQpe3Bvc3RNZXNzYWdlKHtzdGF0dXM6ImVycm9yIixkYXRhOiJ3b3JrZXIiLG1lc3NhZ2U6dH0pfX19KSgpOwo=", xr = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), an = typeof window < "u" && window.Blob && new Blob([xr(bn)], { type: "text/javascript;charset=utf-8" });
303
+ }, bn = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyBhPT57bGV0IHM9YS5kYXRhLmRhdGEgaW5zdGFuY2VvZiBGb3JtRGF0YT97fTp7IkNvbnRlbnQtdHlwZSI6ImFwcGxpY2F0aW9uL2pzb247Y2hhcnNldD11dGYtOCJ9O3RyeXtsZXQgdD1hd2FpdCBmZXRjaChgJHthLmRhdGEuaG9zdH0ke2EuZGF0YS5saW5rfWAse21ldGhvZDoiUE9TVCIsaGVhZGVyczp7c3NpZDphLmRhdGEuc3NpZCwuLi5zfSxib2R5OmEuZGF0YS5kYXRhIGluc3RhbmNlb2YgRm9ybURhdGE/YS5kYXRhLmRhdGE6SlNPTi5zdHJpbmdpZnkoYS5kYXRhLmRhdGEpfSk7cG9zdE1lc3NhZ2UoYXdhaXQgdC5qc29uKCkpfWNhdGNoKHQpe3Bvc3RNZXNzYWdlKHtzdGF0dXM6ImVycm9yIixkYXRhOiJ3b3JrZXIiLG1lc3NhZ2U6dH0pfX19KSgpOwo=", pr = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), an = typeof window < "u" && window.Blob && new Blob([pr(bn)], { type: "text/javascript;charset=utf-8" });
304
304
  function Sn(e) {
305
305
  let t;
306
306
  try {
@@ -323,20 +323,20 @@ function Sn(e) {
323
323
  t && (window.URL || window.webkitURL).revokeObjectURL(t);
324
324
  }
325
325
  }
326
- const pe = {};
327
- function pr(e) {
328
- return e && (pe.s = e), pe.s;
326
+ const xe = {};
327
+ function xr(e) {
328
+ return e && (xe.s = e), xe.s;
329
329
  }
330
330
  function vr(e) {
331
- return e && (pe.a = e), pe.a;
331
+ return e && (xe.a = e), xe.a;
332
332
  }
333
333
  function Cr(e) {
334
- return e && (pe.c = e), pe.c;
334
+ return e && (xe.c = e), xe.c;
335
335
  }
336
336
  function kr(e) {
337
- return e && (pe.h = e), pe.h;
337
+ return e && (xe.h = e), xe.h;
338
338
  }
339
- const at = { version: { Api: vr, Server: pr, Client: Cr }, Host: kr };
339
+ const at = { version: { Api: vr, Server: xr, Client: Cr }, Host: kr };
340
340
  let jr = "api", yr = "elcrm", wr = "online";
341
341
  function br() {
342
342
  let e = oe.getPORT(), t = "", a = "";
@@ -389,11 +389,11 @@ function Rr(e, t = {}, a = oe.getAUTH()) {
389
389
  });
390
390
  }
391
391
  function Dr(e, t = {}, a) {
392
- const [r, s] = p.useState({ status: "load" }), i = async (o) => {
392
+ const [r, s] = x.useState({ status: "load" }), i = async (o) => {
393
393
  let l = await Ue(e, o, a);
394
394
  s(l);
395
395
  };
396
- return p.useEffect(() => {
396
+ return x.useEffect(() => {
397
397
  i(t);
398
398
  }, []), [r, i];
399
399
  }
@@ -458,7 +458,7 @@ function Lr() {
458
458
  if (sn)
459
459
  return Be;
460
460
  sn = 1;
461
- var e = p, t = Symbol.for("react.element"), a = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
461
+ var e = x, t = Symbol.for("react.element"), a = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
462
462
  function o(l, d, _) {
463
463
  var u, g = {}, f = null, m = null;
464
464
  _ !== void 0 && (f = "" + _), d.key !== void 0 && (f = "" + d.key), d.ref !== void 0 && (m = d.ref);
@@ -484,8 +484,8 @@ var $e = {};
484
484
  var on;
485
485
  function Fr() {
486
486
  return on || (on = 1, process.env.NODE_ENV !== "production" && function() {
487
- var e = p, t = Symbol.for("react.element"), a = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), l = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), C = Symbol.iterator, h = "@@iterator";
488
- function x(c) {
487
+ var e = x, t = Symbol.for("react.element"), a = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), l = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), C = Symbol.iterator, h = "@@iterator";
488
+ function p(c) {
489
489
  if (c === null || typeof c != "object")
490
490
  return null;
491
491
  var v = C && c[C] || c[h];
@@ -939,7 +939,7 @@ Check the render method of \`` + c + "`.";
939
939
  return "";
940
940
  }
941
941
  var Jt = {};
942
- function xa(c) {
942
+ function pa(c) {
943
943
  {
944
944
  var v = Vt();
945
945
  if (!v) {
@@ -956,7 +956,7 @@ Check the top-level render call using <` + j + ">.");
956
956
  if (!c._store || c._store.validated || c.key != null)
957
957
  return;
958
958
  c._store.validated = !0;
959
- var j = xa(v);
959
+ var j = pa(v);
960
960
  if (Jt[j])
961
961
  return;
962
962
  Jt[j] = !0;
@@ -976,14 +976,14 @@ Check the top-level render call using <` + j + ">.");
976
976
  else if (ft(c))
977
977
  c._store && (c._store.validated = !0);
978
978
  else if (c) {
979
- var A = x(c);
979
+ var A = p(c);
980
980
  if (typeof A == "function" && A !== c.entries)
981
981
  for (var Z = A.call(c), P; !(P = Z.next()).done; )
982
982
  ft(P.value) && Xt(P.value, v);
983
983
  }
984
984
  }
985
985
  }
986
- function pa(c) {
986
+ function xa(c) {
987
987
  {
988
988
  var v = c.type;
989
989
  if (v == null || typeof v == "string")
@@ -1062,7 +1062,7 @@ React keys must be passed directly to JSX without using spread:
1062
1062
  <%s key={someKey} {...props} />`, mt, ke, wa, ke), en[ke + mt] = !0;
1063
1063
  }
1064
1064
  }
1065
- return c === r ? va(V) : pa(V), V;
1065
+ return c === r ? va(V) : xa(V), V;
1066
1066
  }
1067
1067
  }
1068
1068
  function Ca(c, v, j) {
@@ -1088,7 +1088,7 @@ const Br = "_notice_9i5tr_2", $r = "_error_9i5tr_9", Pr = "_success_9i5tr_12", O
1088
1088
  };
1089
1089
  let ve = {};
1090
1090
  function Zr() {
1091
- let [e, t] = p.useState([]);
1091
+ let [e, t] = x.useState([]);
1092
1092
  return ve.set = (a) => {
1093
1093
  t([...e, a]);
1094
1094
  }, ve.del = (a) => {
@@ -1096,8 +1096,8 @@ function Zr() {
1096
1096
  }, e.length === 0 ? "" : /* @__PURE__ */ n.jsx("ul", { className: Gr.notice, children: e.map((a) => a.item) });
1097
1097
  }
1098
1098
  function ze({ data: e }) {
1099
- let [t, a] = p.useState("show");
1100
- p.useEffect(() => {
1099
+ let [t, a] = x.useState("show");
1100
+ x.useEffect(() => {
1101
1101
  setTimeout(function() {
1102
1102
  a("hide");
1103
1103
  }, 1800), setTimeout(function() {
@@ -1192,7 +1192,7 @@ const Yr = "_alerts_1pds5_1", qr = "_menuAnimation_1pds5_1", Vr = "_menuItemAnim
1192
1192
  };
1193
1193
  let Ae = {};
1194
1194
  function Qr() {
1195
- let [e, t] = p.useState("");
1195
+ let [e, t] = x.useState("");
1196
1196
  return Ae.set = (a) => t(a), Ae.del = () => t(""), /* @__PURE__ */ n.jsx(n.Fragment, { children: e });
1197
1197
  }
1198
1198
  const es = ({ data: e, callback: t, cancel: a }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ n.jsxs("div", { className: kt.alerts, children: [
@@ -1228,11 +1228,11 @@ function ts(e, t, a) {
1228
1228
  const De = { Send: Ur, Error: zr, Remark: Kr, Success: Wr, Copy: Hr }, Qe = {
1229
1229
  Path: er,
1230
1230
  setPage: Za,
1231
- getPage: xn,
1231
+ getPage: pn,
1232
1232
  usePage: Ga,
1233
1233
  isPage: Ua,
1234
1234
  setModule: Wa,
1235
- getModule: pn,
1235
+ getModule: xn,
1236
1236
  useModule: za,
1237
1237
  isModule: Ka,
1238
1238
  setTabs: Ya,
@@ -1391,7 +1391,7 @@ function _s(e) {
1391
1391
  We.fn = e;
1392
1392
  }
1393
1393
  function us() {
1394
- const [e, t] = p.useReducer(os, {
1394
+ const [e, t] = x.useReducer(os, {
1395
1395
  open: !1,
1396
1396
  active: !1,
1397
1397
  news: [],
@@ -1404,7 +1404,7 @@ function us() {
1404
1404
  Pe.push(r.data);
1405
1405
  break;
1406
1406
  }
1407
- }), p.useEffect(() => {
1407
+ }), x.useEffect(() => {
1408
1408
  (async () => {
1409
1409
  let r = await he.Send({
1410
1410
  type: "module",
@@ -1527,7 +1527,7 @@ function gs(e) {
1527
1527
  let r = { ...me(), 901: t };
1528
1528
  jn(a), Ze(r);
1529
1529
  }
1530
- function xs() {
1530
+ function ps() {
1531
1531
  let e = yn(), t = {};
1532
1532
  return Object.keys(e).forEach((a) => {
1533
1533
  t[e[a].id] = {}, t[e[a].id].name = e[a].a;
@@ -1543,8 +1543,8 @@ let de = {}, X = {}, Je = [
1543
1543
  "info",
1544
1544
  "job"
1545
1545
  ];
1546
- function ps() {
1547
- const [e, t] = p.useState(!1), [a, r] = p.useState(!1);
1546
+ function xs() {
1547
+ const [e, t] = x.useState(!1), [a, r] = x.useState(!1);
1548
1548
  function s(i) {
1549
1549
  const o = new hs();
1550
1550
  de.laodData = (l) => {
@@ -1557,12 +1557,12 @@ function ps() {
1557
1557
  d.type === "error" && r(!0), d.type === "true" && t(!0), d.type === "closed" && o.port.postMessage({
1558
1558
  type: "connect",
1559
1559
  ukey: i,
1560
- lk: pt()
1560
+ lk: xt()
1561
1561
  }), Je.length !== 0 && de.laodData(d.type), X[d.type] && X[d.type](d);
1562
1562
  }, o.port.postMessage({
1563
1563
  type: "connect",
1564
1564
  ukey: i,
1565
- lk: pt()
1565
+ lk: xt()
1566
1566
  });
1567
1567
  }
1568
1568
  return [s, e, a];
@@ -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 he = { useConnect: ps, useListener: vs, setListener: Cs, Send: ks };
1658
+ const he = { 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 = {
@@ -1767,7 +1767,7 @@ const ws = (e) => {
1767
1767
  u3: ["тысяча", "тысячи", "тысяч"],
1768
1768
  u2: ["миллион", "миллиона", "миллионов"],
1769
1769
  u1: ["миллиард", "миллиарда", "миллиардов"]
1770
- }, s, i, o, l, x, d, _, h, u, g, f, m;
1770
+ }, s, i, o, l, p, d, _, h, u, g, f, m;
1771
1771
  u = parseFloat(e).toFixed(2).split("."), d = u[0], l = u[1];
1772
1772
  var C = 12 - d.length;
1773
1773
  if (C < 0)
@@ -1775,21 +1775,21 @@ const ws = (e) => {
1775
1775
  for (var h = []; C--; )
1776
1776
  h.push("0");
1777
1777
  d = h.join("") + d;
1778
- var x = [];
1778
+ var p = [];
1779
1779
  if (d > 0) {
1780
1780
  g = t(d, 3);
1781
1781
  for (var k = -1; k < g.length; k++)
1782
- if (_ = g[k], _ > 0 && (f = t(_, 1), s = parseInt(f[0]), i = parseInt(f[1]), o = parseInt(f[2]), x.push(r.a100[s - 1]), m = k + 1 == 3 ? "a2" : "a1", i > 1 ? x.push(
1782
+ if (_ = g[k], _ > 0 && (f = t(_, 1), s = parseInt(f[0]), i = parseInt(f[1]), o = parseInt(f[2]), p.push(r.a100[s - 1]), m = k + 1 == 3 ? "a2" : "a1", i > 1 ? p.push(
1783
1783
  r.a20[i - 2] + (o > 0 ? " " + r[m][o - 1] : "")
1784
- ) : x.push(
1784
+ ) : p.push(
1785
1785
  i > 0 ? r.a10[o] : r[m][o - 1]
1786
1786
  ), g.length > k + 1)) {
1787
1787
  var y = r["u" + (k + 1)];
1788
- x.push(a(_, y));
1788
+ p.push(a(_, y));
1789
1789
  }
1790
1790
  } else
1791
- x.push(r.null);
1792
- return x.push(a(d, r.ur)), x.push(l + " " + a(l, r.uc)), x.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
1791
+ p.push(r.null);
1792
+ return p.push(a(d, r.ur)), p.push(l + " " + a(l, r.uc)), p.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
1793
1793
  };
1794
1794
  function bs(e) {
1795
1795
  let t = -1, a = [" kB", " MB", " GB", " TB", "PB", "EB", "ZB", "YB"];
@@ -2168,11 +2168,11 @@ function fi({ children: e, className: t }) {
2168
2168
  function mi({ children: e }) {
2169
2169
  return /* @__PURE__ */ n.jsx("div", { className: re.c, children: e });
2170
2170
  }
2171
- const hi = "_btn_1d6a6_6", gi = "_confirm_1d6a6_20", xi = "_cancel_1d6a6_25", pi = "_disabled_1d6a6_30", vi = "_m_1d6a6_44", Ci = "_l_1d6a6_48", Xe = {
2171
+ const hi = "_btn_1d6a6_6", gi = "_confirm_1d6a6_20", pi = "_cancel_1d6a6_25", xi = "_disabled_1d6a6_30", vi = "_m_1d6a6_44", Ci = "_l_1d6a6_48", Xe = {
2172
2172
  btn: hi,
2173
2173
  confirm: gi,
2174
- cancel: xi,
2175
- disabled: pi,
2174
+ cancel: pi,
2175
+ disabled: xi,
2176
2176
  await: "_await_1d6a6_37",
2177
2177
  m: vi,
2178
2178
  l: Ci
@@ -2187,7 +2187,7 @@ function ki({
2187
2187
  label: o,
2188
2188
  onRef: l
2189
2189
  }) {
2190
- let [d, _] = p.useState(!1);
2190
+ let [d, _] = x.useState(!1);
2191
2191
  const u = (g) => {
2192
2192
  if (e)
2193
2193
  return e();
@@ -2210,7 +2210,7 @@ function ki({
2210
2210
  }
2211
2211
  let we = {};
2212
2212
  function ji({ config: e }) {
2213
- let [t, a] = p.useState([]);
2213
+ let [t, a] = x.useState([]);
2214
2214
  return we.x = (r) => {
2215
2215
  r || a([]);
2216
2216
  }, we.config = e, we.add = (r) => {
@@ -2225,7 +2225,7 @@ function yi({
2225
2225
  size: s = "m",
2226
2226
  menu: i
2227
2227
  }) {
2228
- const [o, l] = p.useState(!0), d = p.useRef(), _ = (g) => {
2228
+ const [o, l] = x.useState(!0), d = x.useRef(), _ = (g) => {
2229
2229
  if (a) {
2230
2230
  if (a.onClick)
2231
2231
  return g(!1), a.onClick({ setOpen: l });
@@ -2317,8 +2317,8 @@ function Si(e) {
2317
2317
  }, 1e3);
2318
2318
  }
2319
2319
  function Ei({ type: e, name: t, params: a }) {
2320
- let [r, s] = p.useState(null);
2321
- return p.useEffect(() => {
2320
+ let [r, s] = x.useState(null);
2321
+ return x.useEffect(() => {
2322
2322
  we.config(e, t, a, s);
2323
2323
  }, [a.id]), /* @__PURE__ */ n.jsx(n.Fragment, { children: r });
2324
2324
  }
@@ -2341,7 +2341,7 @@ const rt = {
2341
2341
  Close: Di
2342
2342
  };
2343
2343
  function Rn({ text: e, type: t, button: a }) {
2344
- let [r, s] = p.useState(!1), i = { active: t };
2344
+ let [r, s] = x.useState(!1), i = { active: t };
2345
2345
  const o = () => {
2346
2346
  if (a) {
2347
2347
  if (a.onClick)
@@ -2488,7 +2488,7 @@ const Wi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2488
2488
  search: !1,
2489
2489
  revers: !0
2490
2490
  }), Ji = () => {
2491
- let [e, t] = p.useState([]);
2491
+ let [e, t] = x.useState([]);
2492
2492
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ n.jsxs("div", { className: "upload view", children: [
2493
2493
  /* @__PURE__ */ n.jsxs("div", { className: "--head", children: [
2494
2494
  /* @__PURE__ */ n.jsx("b", { children: "Загрузки" }),
@@ -2510,7 +2510,7 @@ const Wi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2510
2510
  dir: r
2511
2511
  }) => {
2512
2512
  t = t || "Файлы";
2513
- const [s, i] = p.useReducer(qi, {}, Vi), o = () => {
2513
+ const [s, i] = x.useReducer(qi, {}, Vi), o = () => {
2514
2514
  rt.Add(
2515
2515
  /* @__PURE__ */ n.jsx(
2516
2516
  Qi,
@@ -2523,7 +2523,7 @@ const Wi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2523
2523
  )
2524
2524
  );
2525
2525
  };
2526
- return p.useEffect(() => {
2526
+ return x.useEffect(() => {
2527
2527
  (async () => {
2528
2528
  let l = await he.Send({
2529
2529
  type: "module",
@@ -2565,12 +2565,12 @@ const Wi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2565
2565
  ] }) : s.list.length === 0 ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : s.list.map((l, d) => /* @__PURE__ */ n.jsx(eo, { dispatch: i, data: l }, d)) })
2566
2566
  ] });
2567
2567
  }, Qi = ({ id: e, dir: t, dispatch: a }) => {
2568
- let [r, s] = p.useState(!0), i = p.useRef(null), o = (_) => {
2568
+ let [r, s] = x.useState(!0), i = x.useRef(null), o = (_) => {
2569
2569
  _.preventDefault(), _.stopPropagation();
2570
2570
  }, l = (_) => {
2571
2571
  }, d = (_) => {
2572
2572
  };
2573
- return p.useEffect(() => {
2573
+ return x.useEffect(() => {
2574
2574
  let _ = i.current;
2575
2575
  ["dragenter", "dragover", "dragleave", "drop"].forEach((u) => {
2576
2576
  _.addEventListener(u, o, !1), document.body.addEventListener(u, o, !1);
@@ -2667,8 +2667,8 @@ K.list = ur();
2667
2667
  K.active = null;
2668
2668
  const to = () => {
2669
2669
  var s;
2670
- let [e, t] = p.useState([]), [a, r] = p.useState(It.getSetting("s03"));
2671
- return p.useEffect(() => {
2670
+ let [e, t] = x.useState([]), [a, r] = x.useState(It.getSetting("s03"));
2671
+ return x.useEffect(() => {
2672
2672
  (async () => {
2673
2673
  let i = Object.keys(K.list);
2674
2674
  if (i.length !== 0) {
@@ -2704,10 +2704,10 @@ const to = () => {
2704
2704
  a === 1 && e.length !== 0 ? "bottom" : ""
2705
2705
  ), a !== 0 ? /* @__PURE__ */ n.jsx(n.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ n.jsx("div", { className: "bookmarks", children: e.map((i) => i.item) }) : "" }) : "";
2706
2706
  }, no = ({ id: e, type: t, name: a }) => {
2707
- let r = t + "-" + e, [s, i] = p.useState(
2707
+ let r = t + "-" + e, [s, i] = x.useState(
2708
2708
  K.list[r] !== void 0
2709
2709
  );
2710
- p.useEffect(() => {
2710
+ x.useEffect(() => {
2711
2711
  i(K.list[r] !== void 0);
2712
2712
  }, [r]);
2713
2713
  let o = () => {
@@ -2879,8 +2879,8 @@ z.Run = async (e) => {
2879
2879
  };
2880
2880
  let Oe = {};
2881
2881
  function ro() {
2882
- let [e, t] = p.useState([]), a = p.useRef(null);
2883
- return p.useEffect(() => {
2882
+ let [e, t] = x.useState([]), a = x.useRef(null);
2883
+ return x.useEffect(() => {
2884
2884
  }, []), Oe.set = (r) => {
2885
2885
  t([...e, r]);
2886
2886
  }, Oe.del = () => {
@@ -2900,8 +2900,8 @@ function so(e, t) {
2900
2900
  });
2901
2901
  }
2902
2902
  function io({ id: e, type: t }) {
2903
- const [a, r] = p.useState({}), [s, i] = p.useState(t);
2904
- p.useEffect(() => {
2903
+ const [a, r] = x.useState({}), [s, i] = x.useState(t);
2904
+ x.useEffect(() => {
2905
2905
  r(oe.getSelect("user")[e]);
2906
2906
  }, []), z.useListener((d) => {
2907
2907
  switch (d.type) {
@@ -3007,7 +3007,7 @@ function lo({ color: e, size: t, name: a }) {
3007
3007
  return /* @__PURE__ */ n.jsx("svg", { width: t, height: t, color: e, children: /* @__PURE__ */ n.jsx("use", { href: `#${a}` }) });
3008
3008
  }
3009
3009
  function co() {
3010
- let [e, t] = p.useState([]);
3010
+ let [e, t] = x.useState([]);
3011
3011
  if (wt.x = () => {
3012
3012
  t([]);
3013
3013
  }, wt.add = (r) => {
@@ -3034,31 +3034,31 @@ function _o(e, t) {
3034
3034
  function uo(e, t) {
3035
3035
  bt[e] !== void 0 && bt[e](t);
3036
3036
  }
3037
- const xe = {};
3037
+ const pe = {};
3038
3038
  function fo(e, t) {
3039
- const [a, r] = p.useState(t);
3040
- return p.useEffect(() => {
3041
- if (xe[e])
3042
- return xe[e].push(r);
3043
- xe[e] = [r];
3039
+ const [a, r] = x.useState(t);
3040
+ return x.useEffect(() => {
3041
+ if (pe[e])
3042
+ return pe[e].push(r);
3043
+ pe[e] = [r];
3044
3044
  }, []), [a];
3045
3045
  }
3046
3046
  function mo(e, t) {
3047
- if (xe[e])
3048
- return xe[e].push(t);
3049
- xe[e] = [t];
3047
+ if (pe[e])
3048
+ return pe[e].push(t);
3049
+ pe[e] = [t];
3050
3050
  }
3051
3051
  function ho(e, t) {
3052
- xe[e] && xe[e].forEach((a) => a(t));
3052
+ pe[e] && pe[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() {
3056
- let [e, t] = p.useState([]);
3056
+ let [e, t] = x.useState([]);
3057
3057
  return Ie.useListener("form", (a) => {
3058
3058
  t([a]);
3059
3059
  }), /* @__PURE__ */ n.jsx(n.Fragment, { children: e.map((a) => a) });
3060
3060
  }
3061
- const xo = ({ children: e, config: t }) => ($.New(t.crypto), t.defaultModule && Ta(t.defaultModule), La(
3061
+ const po = ({ children: e, config: t }) => ($.New(t.crypto), t.defaultModule && Ta(t.defaultModule), La(
3062
3062
  /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3063
3063
  /* @__PURE__ */ n.jsx(ji, { config: t.modal }),
3064
3064
  /* @__PURE__ */ n.jsx(Zr, {}),
@@ -3070,23 +3070,23 @@ const xo = ({ children: e, config: t }) => ($.New(t.crypto), t.defaultModule &&
3070
3070
  /* @__PURE__ */ n.jsx(to, {}),
3071
3071
  e
3072
3072
  ] })
3073
- )), po = ({ children: e, ...t }) => /* @__PURE__ */ n.jsx("menu", { children: e }), vo = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("header", { children: [
3073
+ )), xo = ({ children: e, ...t }) => /* @__PURE__ */ n.jsx("menu", { children: e }), vo = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("header", { children: [
3074
3074
  "xz",
3075
3075
  e
3076
3076
  ] }), Co = "_payment_1lxfv_1", ko = {
3077
3077
  payment: Co
3078
3078
  };
3079
3079
  function jo() {
3080
- let [e, t] = p.useState({});
3080
+ let [e, t] = x.useState({});
3081
3081
  return !e.active && !e.payment ? "" : /* @__PURE__ */ n.jsx("div", { className: ko.payment, children: "Истек срок оплаты! Доступ доступен до 16.04.2024" });
3082
3082
  }
3083
- const cc = ({ children: e, ...t }) => {
3083
+ const _c = ({ children: e, ...t }) => {
3084
3084
  let a = {};
3085
3085
  return a.enCode = (r) => JSON.stringify(r).toString(), a.deCode = (r) => JSON.parse(r), /* @__PURE__ */ n.jsxs("div", { className: "app", children: [
3086
3086
  /* @__PURE__ */ n.jsx(jo, {}),
3087
- /* @__PURE__ */ n.jsx(po, {}),
3087
+ /* @__PURE__ */ n.jsx(xo, {}),
3088
3088
  /* @__PURE__ */ n.jsx(vo, {}),
3089
- /* @__PURE__ */ n.jsx(xo, { config: { modal: {}, crypto: a } }),
3089
+ /* @__PURE__ */ n.jsx(po, { config: { modal: {}, crypto: a } }),
3090
3090
  e
3091
3091
  ] });
3092
3092
  }, yo = ({ list: e, onClick: t, active: a, size: r, view: s }) => /* @__PURE__ */ n.jsx("nav", { children: /* @__PURE__ */ n.jsx("ul", { className: [r, s].join(" "), children: e.map((i) => /* @__PURE__ */ n.jsx(
@@ -3123,7 +3123,7 @@ const bo = ({
3123
3123
  ] }), So = "_setting_dva4m_2", Eo = {
3124
3124
  setting: So
3125
3125
  }, Ro = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: Eo.setting, children: e }), Do = ({ label: e, children: t }) => {
3126
- let [a, r] = p.useState(!1);
3126
+ let [a, r] = x.useState(!1);
3127
3127
  return /* @__PURE__ */ n.jsxs("li", { "data-item": "accordion", children: [
3128
3128
  /* @__PURE__ */ n.jsxs("dl", { onClick: () => r(!a), children: [
3129
3129
  /* @__PURE__ */ n.jsx("dt", { children: e }),
@@ -3173,7 +3173,7 @@ function Dn({ list: e, onClick: t, active: a, size: r, view: s }) {
3173
3173
  }
3174
3174
  const Oo = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
3175
3175
  Dn.defaultProps = { size: "M", view: "H" };
3176
- const dc = { Section: bo, Main: Ro, Item: Po, Tabs: Dn }, _c = { Icon: no, Item: jt, Active: ao }, uc = { Send: ts, Line: Rn };
3176
+ const uc = { Section: bo, Main: Ro, Item: Po, Tabs: Dn }, fc = { Icon: no, Item: jt, Active: ao }, mc = { Send: ts, Line: Rn };
3177
3177
  function Ao() {
3178
3178
  return /* @__PURE__ */ n.jsx("svg", { viewBox: "0 0 462.86 359.96", children: /* @__PURE__ */ n.jsx(
3179
3179
  "path",
@@ -3183,7 +3183,7 @@ function Ao() {
3183
3183
  }
3184
3184
  ) });
3185
3185
  }
3186
- const fc = { Logo: Ao, Sprite: oo, Symbol: lo }, Go = "_sort_1yrvt_1", Zo = {
3186
+ const hc = { Logo: Ao, Sprite: oo, Symbol: lo }, Go = "_sort_1yrvt_1", Zo = {
3187
3187
  sort: Go
3188
3188
  };
3189
3189
  let st = {};
@@ -3201,7 +3201,7 @@ function Uo(e, t) {
3201
3201
  }
3202
3202
  }
3203
3203
  function zo() {
3204
- const [e, t] = p.useReducer(
3204
+ const [e, t] = x.useReducer(
3205
3205
  Uo,
3206
3206
  vt() === void 0 ? { active: 1, sort: "<" } : vt()
3207
3207
  );
@@ -3260,14 +3260,14 @@ function Ho(e, t, a) {
3260
3260
  function Yo(e) {
3261
3261
  st.count(e);
3262
3262
  }
3263
- const mc = { Init: zo, useValue: Wo, Set: Ko, Run: Ho, Count: Yo }, et = {}, Nn = {};
3263
+ const gc = { Init: zo, useValue: Wo, Set: Ko, Run: Ho, Count: Yo }, et = {}, Nn = {};
3264
3264
  function qo(e) {
3265
- const [t, a] = p.useState({}), r = async (s) => {
3265
+ const [t, a] = x.useState({}), r = async (s) => {
3266
3266
  a(
3267
3267
  Object.keys(et).reduce((i, o) => (i ? i[o] = et[o].all : i = {}, i), {})
3268
3268
  );
3269
3269
  };
3270
- return p.useEffect(() => {
3270
+ return x.useEffect(() => {
3271
3271
  e.forEach((s) => et[s] = { all: 0 }), Nn.menu = r, r();
3272
3272
  }, [e]), t;
3273
3273
  }
@@ -3278,7 +3278,7 @@ function Vo(e, t) {
3278
3278
  break;
3279
3279
  }
3280
3280
  }
3281
- const hc = { useMenu: qo, setUpdate: Vo };
3281
+ const pc = { useMenu: qo, setUpdate: Vo };
3282
3282
  class Jo {
3283
3283
  constructor(t = "el", a = "db") {
3284
3284
  ht(this, "storeName");
@@ -3331,11 +3331,11 @@ const Te = () => (gt || (gt = new Jo()), gt), Ce = (e, t, a = Te()) => a._withID
3331
3331
  C += t[m][h];
3332
3332
  }), l) {
3333
3333
  let h = {};
3334
- d.forEach((x) => {
3335
- h[x] = t[m][x];
3334
+ d.forEach((p) => {
3335
+ h[p] = t[m][p];
3336
3336
  });
3337
- for (let x in o)
3338
- t[m][o[x]] === void 0 && (St(), location.reload()), x === "s1" && (h[x] = new Date(t[m][o[x]]).getTime()), x === "s2" && (h[x] = t[m][o[x]]), x === "s3" && (h[x] = t[m][o[x]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
3337
+ for (let p in o)
3338
+ t[m][o[p]] === void 0 && (St(), location.reload()), p === "s1" && (h[p] = new Date(t[m][o[p]]).getTime()), p === "s2" && (h[p] = t[m][o[p]]), p === "s3" && (h[p] = t[m][o[p]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
3339
3339
  i.push({ id: m, text: C, ...h });
3340
3340
  } else
3341
3341
  i.push({ id: m, text: C });
@@ -3390,7 +3390,7 @@ const Te = () => (gt || (gt = new Jo()), gt), Ce = (e, t, a = Te()) => a._withID
3390
3390
  a({ type: "load", base: r });
3391
3391
  else
3392
3392
  return r[e];
3393
- }, ll = (e) => q[e], gc = {
3393
+ }, ll = (e) => q[e], xc = {
3394
3394
  id: ol,
3395
3395
  get: ue,
3396
3396
  set: Ce,
@@ -3416,7 +3416,7 @@ const Te = () => (gt || (gt = new Jo()), gt), Ce = (e, t, a = Te()) => a._withID
3416
3416
  }, document.onkeyup = function(r) {
3417
3417
  a.length = 0;
3418
3418
  };
3419
- }, xc = { useKey: cl }, dl = "_s_18bde_1", _l = "_loadingB_18bde_1", ul = "_ul_18bde_31", fl = {
3419
+ }, vc = { useKey: cl }, dl = "_s_18bde_1", _l = "_loadingB_18bde_1", ul = "_ul_18bde_31", fl = {
3420
3420
  s: dl,
3421
3421
  loadingB: _l,
3422
3422
  ul
@@ -3463,7 +3463,7 @@ function hl({
3463
3463
  className: a,
3464
3464
  ...r
3465
3465
  }) {
3466
- const s = p.useRef(null), [i, o] = p.useReducer(ml, {
3466
+ const s = x.useRef(null), [i, o] = x.useReducer(ml, {
3467
3467
  load: !1,
3468
3468
  list: [],
3469
3469
  data: {},
@@ -3471,7 +3471,7 @@ function hl({
3471
3471
  wait: !1,
3472
3472
  size: 0
3473
3473
  });
3474
- p.useEffect(() => {
3474
+ x.useEffect(() => {
3475
3475
  s.current.scrollTop = 0, e !== null && o({ type: "load", load: !0, data: e });
3476
3476
  }, [t]);
3477
3477
  let l = () => {
@@ -3491,7 +3491,7 @@ function hl({
3491
3491
  }
3492
3492
  );
3493
3493
  }
3494
- const pc = { Widget: Xi }, Tn = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ n.jsx(
3494
+ const Cc = { Widget: Xi }, Tn = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ n.jsx(
3495
3495
  "div",
3496
3496
  {
3497
3497
  role: "switch",
@@ -3532,7 +3532,7 @@ function Ge({
3532
3532
  onSave: m,
3533
3533
  className: C = ""
3534
3534
  }) {
3535
- let h = !!(o && (e === "" || e === void 0)), x = (b) => {
3535
+ let h = !!(o && (e === "" || e === void 0)), p = (b) => {
3536
3536
  t && t({ value: b.target.textContent, name: a });
3537
3537
  }, k = (b) => {
3538
3538
  b.key === "Enter" && b.preventDefault();
@@ -3561,7 +3561,7 @@ function Ge({
3561
3561
  "dd",
3562
3562
  {
3563
3563
  onPaste: y,
3564
- onInput: x,
3564
+ onInput: p,
3565
3565
  onBlur: S,
3566
3566
  onKeyDown: k,
3567
3567
  onContextMenu: I,
@@ -3575,7 +3575,7 @@ function Ge({
3575
3575
  ] });
3576
3576
  }
3577
3577
  function Mn({ onClick: e, onSend: t, name: a, onRef: r }) {
3578
- let [s, i] = p.useState(!1);
3578
+ let [s, i] = x.useState(!1);
3579
3579
  const o = () => {
3580
3580
  if (e)
3581
3581
  return e();
@@ -3603,7 +3603,7 @@ function Ln({
3603
3603
  active: l = !0,
3604
3604
  placeholder: d = "Введите сообщение"
3605
3605
  }) {
3606
- const _ = p.useRef({
3606
+ const _ = x.useRef({
3607
3607
  value: e,
3608
3608
  timerId: null,
3609
3609
  shift: !1,
@@ -3625,10 +3625,10 @@ function Ln({
3625
3625
  });
3626
3626
  }, h = () => {
3627
3627
  a(!1);
3628
- }, x = {
3628
+ }, p = {
3629
3629
  spellCheck: "true"
3630
3630
  };
3631
- return d && (x.placeholder = d), o && l && (x.contentEditable = "plaintext-only"), /* @__PURE__ */ n.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ n.jsx(
3631
+ return d && (p.placeholder = d), o && l && (p.contentEditable = "plaintext-only"), /* @__PURE__ */ n.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ n.jsx(
3632
3632
  "dd",
3633
3633
  {
3634
3634
  onPaste: C,
@@ -3636,7 +3636,7 @@ function Ln({
3636
3636
  onKeyUp: m,
3637
3637
  onKeyDown: f,
3638
3638
  onBlur: h,
3639
- ...x,
3639
+ ...p,
3640
3640
  suppressContentEditableWarning: !0,
3641
3641
  children: e
3642
3642
  }
@@ -3670,7 +3670,7 @@ function Fn(e) {
3670
3670
  ] });
3671
3671
  }
3672
3672
  function Bn({ value: e, onValue: t, placeholder: a = "", name: r }) {
3673
- let s = (m, C) => Number(Math.round(m + Math.random() * (C - m))), i = p.useRef(null), o = p.useRef(null), l = s(1e4, 99999), d = (m) => {
3673
+ let s = (m, C) => Number(Math.round(m + Math.random() * (C - m))), i = x.useRef(null), o = x.useRef(null), l = s(1e4, 99999), d = (m) => {
3674
3674
  m.key !== "Backspace" && (m.key === "Enter" && m.preventDefault(), m.target.textContent.length === 5 && m.preventDefault(), /\d/.test(m.key) || m.preventDefault());
3675
3675
  }, _ = (m) => {
3676
3676
  t({ value: Number(m.target.textContent) === l, name: r });
@@ -3684,7 +3684,7 @@ function Bn({ value: e, onValue: t, placeholder: a = "", name: r }) {
3684
3684
  }).catch((C) => {
3685
3685
  });
3686
3686
  };
3687
- p.useEffect(() => {
3687
+ x.useEffect(() => {
3688
3688
  const m = i.current, C = m.getContext("2d");
3689
3689
  C.clearRect(0, 0, m.width, m.height), C.font = "30px brush script mt", C.fillStyle = "#eee", C.textAlign = "center", C.fillText(l, 50, 27), o.current.textContent = "";
3690
3690
  }, [l]);
@@ -3730,8 +3730,8 @@ function $n({
3730
3730
  if (h.preventDefault(), !r)
3731
3731
  return;
3732
3732
  h.target.textContent = h.target.textContent.slice(-1).replace(/[^+\d]/g, "");
3733
- let x = window.getSelection(), k = h.target.textContent.length;
3734
- if (d[h.target.id] = h.target.textContent, d.code = d.n1 + "" + d.n2 + d.n3 + d.n4 + d.n5 + d.n6, x.collapse(h.target.firstChild, 1), k === 0) {
3733
+ let p = window.getSelection(), k = h.target.textContent.length;
3734
+ if (d[h.target.id] = h.target.textContent, d.code = d.n1 + "" + d.n2 + d.n3 + d.n4 + d.n5 + d.n6, p.collapse(h.target.firstChild, 1), k === 0) {
3735
3735
  h.target.blur(), h.target.focus();
3736
3736
  return;
3737
3737
  }
@@ -3739,8 +3739,8 @@ function $n({
3739
3739
  }, u = (h) => {
3740
3740
  if (r && (h.key === "Enter" && h.preventDefault(), h.key === "Backspace")) {
3741
3741
  if (h.preventDefault(), h.target.textContent = "", d[h.target.id] = "", h.target.previousSibling != null) {
3742
- let x = h.target.previousSibling.id.slice(1);
3743
- h.target.previousSibling.textContent = "", d["n" + x] = "", h.target.previousSibling.focus();
3742
+ let p = h.target.previousSibling.id.slice(1);
3743
+ h.target.previousSibling.textContent = "", d["n" + p] = "", h.target.previousSibling.focus();
3744
3744
  }
3745
3745
  d.code = d.n1 + "" + d.n2 + d.n3 + d.n4 + d.n5 + d.n6;
3746
3746
  }
@@ -3758,8 +3758,8 @@ function $n({
3758
3758
  n6: "",
3759
3759
  code: ""
3760
3760
  };
3761
- for (let x = 1; x <= 6; x++) {
3762
- let k = document.getElementById("n" + x);
3761
+ for (let p = 1; p <= 6; p++) {
3762
+ let k = document.getElementById("n" + p);
3763
3763
  k && (k.textContent = "");
3764
3764
  }
3765
3765
  }
@@ -3767,13 +3767,13 @@ function $n({
3767
3767
  }, f = (h) => {
3768
3768
  h.target.textContent = "";
3769
3769
  }, m = (h) => {
3770
- h.preventDefault(), navigator.clipboard.readText().then((x) => {
3771
- let k = x.split("");
3770
+ h.preventDefault(), navigator.clipboard.readText().then((p) => {
3771
+ let k = p.split("");
3772
3772
  for (let y = 1; y <= k.length; y++) {
3773
3773
  let I = document.getElementById("n" + y);
3774
3774
  I && (I.textContent = k[y - 1]);
3775
3775
  }
3776
- }).catch((x) => {
3776
+ }).catch((p) => {
3777
3777
  });
3778
3778
  };
3779
3779
  const C = {};
@@ -3859,7 +3859,7 @@ function $n({
3859
3859
  function Pn(e) {
3860
3860
  let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "";
3861
3861
  e.edit !== void 0 && e.edit, e.active !== void 0 && e.active;
3862
- let [r, s] = p.useState(e.value), i = (o) => {
3862
+ let [r, s] = x.useState(e.value), i = (o) => {
3863
3863
  let l = o.target.getAttribute("set-color");
3864
3864
  s(l), e.onValue({ value: l, name: e.name });
3865
3865
  };
@@ -3886,27 +3886,29 @@ function Pn(e) {
3886
3886
  }
3887
3887
  ) });
3888
3888
  }
3889
- const gl = "_o_1e9i0_1", xl = "_c_1e9i0_11", Ne = {
3889
+ const gl = "_o_66f7n_1", pl = "_c_66f7n_11", xl = "_as_66f7n_87", vl = "_ap_66f7n_90", Ne = {
3890
3890
  o: gl,
3891
- c: xl
3891
+ c: pl,
3892
+ as: xl,
3893
+ ap: vl
3892
3894
  };
3893
3895
  function Tt(e) {
3894
- let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, s = e.active !== void 0 ? e.active : !0, i = e.placeholder !== void 0 ? e.placeholder : "", [o, l] = p.useState(
3896
+ let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, s = e.active !== void 0 ? e.active : !0, i = e.placeholder !== void 0 ? e.placeholder : "", [o, l] = x.useState(
3895
3897
  e.value === void 0 ? /* @__PURE__ */ new Date() : e.value
3896
3898
  ), d = !r && s;
3897
- p.useEffect(() => {
3899
+ x.useEffect(() => {
3898
3900
  l(e.value === void 0 ? /* @__PURE__ */ new Date() : e.value);
3899
3901
  }, [e.value]);
3900
3902
  let _ = (m) => {
3901
3903
  l(m), e.onValue({ value: m, name: e.name });
3902
3904
  }, u = (m) => {
3903
- const C = m.target.getBoundingClientRect(), h = C.left, x = C.top;
3905
+ const C = m.target.getBoundingClientRect(), h = C.left, p = C.top;
3904
3906
  Ie.setListener(
3905
3907
  "form",
3906
3908
  /* @__PURE__ */ n.jsx(
3907
- pl,
3909
+ Cl,
3908
3910
  {
3909
- position: { x: h, y: x },
3911
+ position: { x: h, y: p },
3910
3912
  onValue: _,
3911
3913
  date: o
3912
3914
  },
@@ -3945,8 +3947,8 @@ function Tt(e) {
3945
3947
  }
3946
3948
  ) });
3947
3949
  }
3948
- const pl = (e) => {
3949
- let [t, a] = p.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
3950
+ const Cl = (e) => {
3951
+ let [t, a] = x.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
3950
3952
  y: parseInt(r.getFullYear()),
3951
3953
  d: parseInt(r.getDate()),
3952
3954
  m: parseInt(r.getMonth()) + 1
@@ -3954,7 +3956,7 @@ const pl = (e) => {
3954
3956
  y: parseInt(s.getFullYear()),
3955
3957
  d: parseInt(s.getDate()),
3956
3958
  m: parseInt(s.getMonth()) + 1
3957
- }, [l, d] = p.useState({ y: o.y, m: o.m }), _ = (w) => {
3959
+ }, [l, d] = x.useState({ y: o.y, m: o.m }), _ = (w) => {
3958
3960
  let S = w.getDay();
3959
3961
  return S === 0 && (S = 7), S - 1;
3960
3962
  }, u = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"], g = l.m - 1, f = new Date(l.y, g), m = [];
@@ -3966,7 +3968,7 @@ const pl = (e) => {
3966
3968
  a(!1);
3967
3969
  }, h = () => {
3968
3970
  y(l.m + 1, l.y);
3969
- }, x = () => {
3971
+ }, p = () => {
3970
3972
  y(l.m - 1, l.y);
3971
3973
  }, k = (w) => {
3972
3974
  e.onValue(
@@ -3991,7 +3993,7 @@ const pl = (e) => {
3991
3993
  style: { top: I + "px", left: T + "px" },
3992
3994
  children: [
3993
3995
  /* @__PURE__ */ n.jsxs("s", { children: [
3994
- /* @__PURE__ */ n.jsx("i", { onClick: x, children: /* @__PURE__ */ n.jsx(
3996
+ /* @__PURE__ */ n.jsx("i", { onClick: p, children: /* @__PURE__ */ n.jsx(
3995
3997
  "svg",
3996
3998
  {
3997
3999
  width: "16",
@@ -4053,7 +4055,7 @@ function Mt({
4053
4055
  options: C,
4054
4056
  className: h
4055
4057
  }) {
4056
- let [x, k] = p.useState(e), y = (w) => {
4058
+ let [p, k] = x.useState(e), y = (w) => {
4057
4059
  if (!(l && _) || !f)
4058
4060
  return;
4059
4061
  let S = f.split(".");
@@ -4079,7 +4081,7 @@ function Mt({
4079
4081
  onClick: y,
4080
4082
  edit: (l && _) + "",
4081
4083
  "data-after": u,
4082
- children: x
4084
+ children: p
4083
4085
  }
4084
4086
  ),
4085
4087
  i && /* @__PURE__ */ n.jsx("em", { children: i })
@@ -4102,7 +4104,7 @@ function Lt({
4102
4104
  onBlur: m,
4103
4105
  type: C,
4104
4106
  onSave: h,
4105
- className: x = ""
4107
+ className: p = ""
4106
4108
  }) {
4107
4109
  let k = !!(o && (e === "" || e === void 0));
4108
4110
  e = H.isNumeric(e) ? Number(e) / g : 0;
@@ -4132,7 +4134,7 @@ function Lt({
4132
4134
  if (!(l && d) && !u || !(l && d) && k)
4133
4135
  return "";
4134
4136
  const G = {};
4135
- return G.field = "input", x && (G.className = x), /* @__PURE__ */ n.jsxs("dl", { ...G, children: [
4137
+ return G.field = "input", p && (G.className = p), /* @__PURE__ */ n.jsxs("dl", { ...G, children: [
4136
4138
  s ? /* @__PURE__ */ n.jsx("dt", { children: s }) : "",
4137
4139
  /* @__PURE__ */ n.jsx(
4138
4140
  "dd",
@@ -4164,20 +4166,20 @@ function On({
4164
4166
  className: _,
4165
4167
  after: u
4166
4168
  }) {
4167
- let [g, f] = p.useState(e);
4168
- p.useEffect(() => {
4169
+ let [g, f] = x.useState(e);
4170
+ x.useEffect(() => {
4169
4171
  f(e);
4170
4172
  }, [e]);
4171
- let m = (x) => {
4172
- f(x), t && t({ value: x, name: a });
4173
- }, C = (x) => {
4173
+ let m = (p) => {
4174
+ f(p), t && t({ value: p, name: a });
4175
+ }, C = (p) => {
4174
4176
  if (!i || !o)
4175
4177
  return;
4176
- const k = x.target.getBoundingClientRect(), y = k.left, I = k.top;
4178
+ const k = p.target.getBoundingClientRect(), y = k.left, I = k.top;
4177
4179
  Ie.setListener(
4178
4180
  "form",
4179
4181
  /* @__PURE__ */ n.jsx(
4180
- vl,
4182
+ kl,
4181
4183
  {
4182
4184
  position: { x: y, y: I },
4183
4185
  onValue: m,
@@ -4201,14 +4203,14 @@ function On({
4201
4203
  s && /* @__PURE__ */ n.jsx("em", { children: s })
4202
4204
  ] });
4203
4205
  }
4204
- const vl = (e) => {
4205
- let [t, a] = p.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
4206
+ const kl = (e) => {
4207
+ let [t, a] = x.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
4206
4208
  y: parseInt(r.getFullYear()),
4207
4209
  m: parseInt(r.getMonth()) + 1
4208
4210
  }, o = {
4209
4211
  y: parseInt(s.getFullYear()),
4210
4212
  m: parseInt(s.getMonth()) + 1
4211
- }, [l, d] = p.useState(o.y), _ = () => {
4213
+ }, [l, d] = x.useState(o.y), _ = () => {
4212
4214
  a(!1);
4213
4215
  }, u = () => {
4214
4216
  d(l + 1);
@@ -4216,7 +4218,7 @@ const vl = (e) => {
4216
4218
  d(l - 1);
4217
4219
  }, f = (k) => {
4218
4220
  e.onValue(l + "-" + H.Number(2, k)), _();
4219
- }, m = (k) => i.y === o.y && i.m === k ? "_FFEB3B" : "", C = Array(12).fill("").map((k, y) => y + 1), h = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, x = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
4221
+ }, m = (k) => i.y === o.y && i.m === k ? "_FFEB3B" : "", C = Array(12).fill("").map((k, y) => y + 1), h = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, p = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
4220
4222
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: t ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
4221
4223
  /* @__PURE__ */ n.jsx(
4222
4224
  "div",
@@ -4230,7 +4232,7 @@ const vl = (e) => {
4230
4232
  "div",
4231
4233
  {
4232
4234
  className: Ne.c,
4233
- style: { top: h + "px", left: x + "px" },
4235
+ style: { top: h + "px", left: p + "px" },
4234
4236
  children: [
4235
4237
  /* @__PURE__ */ n.jsxs("s", { children: [
4236
4238
  /* @__PURE__ */ n.jsx("i", { onClick: g, children: /* @__PURE__ */ n.jsx(
@@ -4274,20 +4276,20 @@ const vl = (e) => {
4274
4276
  ] }) : "" });
4275
4277
  };
4276
4278
  function An(e) {
4277
- let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", [r, s] = p.useState(!1), i = e.edit !== void 0 ? e.edit : !0, o = e.active !== void 0 ? e.active : !0, d = !!(e.hide && (e.value === "" || e.value === void 0)) && !(i && o);
4279
+ let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", [r, s] = x.useState(!1), i = e.edit !== void 0 ? e.edit : !0, o = e.active !== void 0 ? e.active : !0, d = !!(e.hide && (e.value === "" || e.value === void 0)) && !(i && o);
4278
4280
  r = i ? !0 : r;
4279
- let _ = e.placeholder !== void 0 ? e.placeholder : "", u = (x) => {
4280
- e.onValue && e.onValue({ value: x.target.innerText, name: e.name });
4281
- }, g = (x) => {
4282
- x.preventDefault(), navigator.clipboard.readText().then((k) => {
4281
+ let _ = e.placeholder !== void 0 ? e.placeholder : "", u = (p) => {
4282
+ e.onValue && e.onValue({ value: p.target.innerText, name: e.name });
4283
+ }, g = (p) => {
4284
+ p.preventDefault(), navigator.clipboard.readText().then((k) => {
4283
4285
  window.document.execCommand("insertText", !1, k);
4284
4286
  }).catch((k) => {
4285
4287
  });
4286
- }, f = (x) => {
4288
+ }, f = (p) => {
4287
4289
  i || s(!r);
4288
4290
  };
4289
- const m = (x) => {
4290
- e.onSave && e.onSave({ value: x.target.innerText, name: e.name });
4291
+ const m = (p) => {
4292
+ e.onSave && e.onSave({ value: p.target.innerText, name: e.name });
4291
4293
  }, C = {};
4292
4294
  C.field = "notes", e.className && (C.className = e.className);
4293
4295
  const h = {};
@@ -4327,17 +4329,17 @@ function Ft({
4327
4329
  view: C
4328
4330
  }) {
4329
4331
  s = s !== void 0 ? s : !0, a = a !== void 0 ? a : !0, d = !!(d && (_ === "" || _ === void 0)) && !(s && a), u = u !== void 0 ? u : "", r = r !== void 0 ? r : 99;
4330
- let x = !1, k = (E) => {
4332
+ let p = !1, k = (E) => {
4331
4333
  e == null || e({ value: E.target.textContent, name: f });
4332
4334
  }, y = (E) => {
4333
- if (!(x && E.which === 86)) {
4335
+ if (!(p && E.which === 86)) {
4334
4336
  if (E.which === 17 || E.which === 91)
4335
- return x = !0;
4337
+ return p = !0;
4336
4338
  E.key !== "Backspace" && (E.target.textContent.length === r && E.preventDefault(), E.key === "Enter" && E.preventDefault(), isNaN(parseInt(String.fromCharCode(E.which))) && E.preventDefault());
4337
4339
  }
4338
4340
  }, I = (E) => {
4339
4341
  if (E.which === 17 || E.which === 91)
4340
- return x = !1;
4342
+ return p = !1;
4341
4343
  }, T = (E) => {
4342
4344
  E.preventDefault(), navigator.clipboard.readText().then((G) => {
4343
4345
  G = G.replace(/\D/g, ""), window.document.execCommand(
@@ -4405,8 +4407,8 @@ function Gn({
4405
4407
  };
4406
4408
  const h = {};
4407
4409
  h.field = "password", s && (h.className = s);
4408
- const x = {};
4409
- return r && (x.placeholder = r), u ? "" : /* @__PURE__ */ n.jsxs("dl", { ...h, children: [
4410
+ const p = {};
4411
+ return r && (p.placeholder = r), u ? "" : /* @__PURE__ */ n.jsxs("dl", { ...h, children: [
4410
4412
  i ? /* @__PURE__ */ n.jsx("dt", { children: i }) : "",
4411
4413
  /* @__PURE__ */ n.jsx(
4412
4414
  "dd",
@@ -4416,7 +4418,7 @@ function Gn({
4416
4418
  onKeyDown: m,
4417
4419
  onBlur: ce.Blur,
4418
4420
  contentEditable: l && d ? "plaintext-only" : "false",
4419
- ...x,
4421
+ ...p,
4420
4422
  suppressContentEditableWarning: !0,
4421
4423
  children: e
4422
4424
  }
@@ -4424,7 +4426,7 @@ function Gn({
4424
4426
  o ? /* @__PURE__ */ n.jsx("em", { children: o }) : ""
4425
4427
  ] });
4426
4428
  }
4427
- const xt = {
4429
+ const pt = {
4428
4430
  0: {
4429
4431
  name: "Heard Island and Mcdonald Islands",
4430
4432
  dial_code: "+0",
@@ -5822,8 +5824,8 @@ function Bt({
5822
5824
  view: f,
5823
5825
  className: m = ""
5824
5826
  }) {
5825
- d = d !== void 0 ? d : !0, _ = _ !== void 0 ? _ : !0, l = !!(l && (e === "" || e === void 0)) && !(d && _), p.useRef(null);
5826
- let h = "+_(___) ___-__-__", x = !0, k = 0, y = (O, N) => {
5827
+ d = d !== void 0 ? d : !0, _ = _ !== void 0 ? _ : !0, l = !!(l && (e === "" || e === void 0)) && !(d && _), x.useRef(null);
5828
+ let h = "+_(___) ___-__-__", p = !0, k = 0, y = (O, N) => {
5827
5829
  let F = document.createRange(), W = window.getSelection();
5828
5830
  F.setStart(N.childNodes[0], O), F.collapse(!0), W.removeAllRanges(), W.addRange(F), N.focus();
5829
5831
  }, I = (O) => {
@@ -5833,13 +5835,13 @@ function Bt({
5833
5835
  });
5834
5836
  }, T = (O) => {
5835
5837
  let N = 0, F = "", W = O.replace(/\D/g, "");
5836
- W === "" && (x = !0);
5838
+ W === "" && (p = !0);
5837
5839
  let ee = W.split(""), ae = "";
5838
5840
  ee.forEach((Me) => {
5839
- x && (ae += Me, xt[ae] !== void 0 && x ? (x = !1, h = xt[ae].mask.replace(new RegExp("[0-9]", "g"), "_"), F = xt[ae].code) : (x && (k = ("" + ae).length, h = `+${ae}_(___) ___-__-__`.replace(
5841
+ p && (ae += Me, pt[ae] !== void 0 && p ? (p = !1, h = pt[ae].mask.replace(new RegExp("[0-9]", "g"), "_"), F = pt[ae].code) : (p && (k = ("" + ae).length, h = `+${ae}_(___) ___-__-__`.replace(
5840
5842
  new RegExp("[0-9]", "g"),
5841
5843
  "_"
5842
- ), F = ""), k > ("" + ae).length && (x = !0, h = `+${ae}_(___) ___-__-__`.replace(
5844
+ ), F = ""), k > ("" + ae).length && (p = !0, h = `+${ae}_(___) ___-__-__`.replace(
5843
5845
  new RegExp("[0-9]", "g"),
5844
5846
  "_"
5845
5847
  ), F = "")));
@@ -5940,9 +5942,9 @@ function $t({
5940
5942
  order: m
5941
5943
  }) {
5942
5944
  var w, S;
5943
- const C = p.useRef();
5945
+ const C = x.useRef();
5944
5946
  s = !!(s && (i === "" || ((w = l[i]) == null ? void 0 : w.n) === void 0)) && !(a && r);
5945
- let x = i !== void 0 && i !== "" ? (S = l[i]) == null ? void 0 : S.n : i, k = (b) => {
5947
+ let p = i !== void 0 && i !== "" ? (S = l[i]) == null ? void 0 : S.n : i, k = (b) => {
5946
5948
  var E;
5947
5949
  C.current.textContent = (E = l[b]) == null ? void 0 : E.n, o && o({ value: b, name: u });
5948
5950
  }, y = (b) => {
@@ -5952,7 +5954,7 @@ function $t({
5952
5954
  Ie.setListener(
5953
5955
  "form",
5954
5956
  /* @__PURE__ */ n.jsx(
5955
- Cl,
5957
+ jl,
5956
5958
  {
5957
5959
  parent: E,
5958
5960
  onValue: k,
@@ -5967,11 +5969,11 @@ function $t({
5967
5969
  }, I = { field: "select", className: _ }, T = { onClick: y };
5968
5970
  return d && (T.placeholder = d), g && (T.after = g), a && r && (T.edit = ""), s ? "" : /* @__PURE__ */ n.jsxs("dl", { ...I, children: [
5969
5971
  e && /* @__PURE__ */ n.jsx("dt", { children: e }),
5970
- /* @__PURE__ */ n.jsx("dd", { ...T, ref: C, children: x }),
5972
+ /* @__PURE__ */ n.jsx("dd", { ...T, ref: C, children: p }),
5971
5973
  t && /* @__PURE__ */ n.jsx("em", { children: t })
5972
5974
  ] });
5973
5975
  }
5974
- const Cl = ({
5976
+ const jl = ({
5975
5977
  onValue: e,
5976
5978
  parent: t,
5977
5979
  view: a,
@@ -5979,7 +5981,7 @@ const Cl = ({
5979
5981
  options: s,
5980
5982
  order: i
5981
5983
  }) => {
5982
- let [o, l] = p.useState(!0), d = () => {
5984
+ let [o, l] = x.useState(!0), d = () => {
5983
5985
  l(!1);
5984
5986
  }, _ = (f) => {
5985
5987
  l(!1), e(f);
@@ -6003,11 +6005,11 @@ const Cl = ({
6003
6005
  left: g + "px",
6004
6006
  width: t.width
6005
6007
  },
6006
- children: /* @__PURE__ */ n.jsx(kl, { order: i, options: s, link: _ })
6008
+ children: /* @__PURE__ */ n.jsx(yl, { order: i, options: s, link: _ })
6007
6009
  }
6008
6010
  )
6009
6011
  ] }) : "" });
6010
- }, kl = ({ order: e, options: t, link: a }) => e ? /* @__PURE__ */ n.jsx("ul", { children: e.map(
6012
+ }, yl = ({ order: e, options: t, link: a }) => e ? /* @__PURE__ */ n.jsx("ul", { children: e.map(
6011
6013
  (r, s) => t[r].s === 1 ? /* @__PURE__ */ n.jsx(
6012
6014
  "li",
6013
6015
  {
@@ -6033,7 +6035,7 @@ const Cl = ({
6033
6035
  function Pt(e) {
6034
6036
  let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, s = e.active !== void 0 ? e.active : !0, o = !!(e.hide && (e.default === "" || e.options[e.default] === void 0)) && !(r && s), l = e.placeholder !== void 0 ? e.placeholder : "", d = (m) => {
6035
6037
  u(e.options[m]), e.onValue({ value: m, name: e.name });
6036
- }, [_, u] = p.useState(
6038
+ }, [_, u] = x.useState(
6037
6039
  e.default !== void 0 ? e.options[e.default] : e.default
6038
6040
  ), g = (m) => {
6039
6041
  if (!(r && s))
@@ -6042,7 +6044,7 @@ function Pt(e) {
6042
6044
  Ie.setListener(
6043
6045
  "form",
6044
6046
  /* @__PURE__ */ n.jsx(
6045
- jl,
6047
+ wl,
6046
6048
  {
6047
6049
  parent: C,
6048
6050
  onValue: d,
@@ -6074,8 +6076,8 @@ function Pt(e) {
6074
6076
  }
6075
6077
  );
6076
6078
  }
6077
- const jl = ({ onValue: e, parent: t, view: a, options: r }) => {
6078
- let [s, i] = p.useState(!0), o = () => {
6079
+ const wl = ({ onValue: e, parent: t, view: a, options: r }) => {
6080
+ let [s, i] = x.useState(!0), o = () => {
6079
6081
  i(!1);
6080
6082
  }, l = (g) => {
6081
6083
  i(!1), e(g);
@@ -6130,7 +6132,7 @@ function Et({
6130
6132
  item: C,
6131
6133
  className: h = ""
6132
6134
  }) {
6133
- let x = {};
6135
+ let p = {};
6134
6136
  switch (e) {
6135
6137
  case "Input":
6136
6138
  return /* @__PURE__ */ n.jsx(
@@ -6150,7 +6152,7 @@ function Et({
6150
6152
  }
6151
6153
  );
6152
6154
  case "Select":
6153
- return C && (x = oe.getSelect(parseInt(C)) ? oe.getSelect(parseInt(C)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ n.jsx(
6155
+ return C && (p = oe.getSelect(parseInt(C)) ? oe.getSelect(parseInt(C)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ n.jsx(
6154
6156
  $t,
6155
6157
  {
6156
6158
  title: i,
@@ -6164,7 +6166,7 @@ function Et({
6164
6166
  name: r,
6165
6167
  placeholder: s,
6166
6168
  className: h,
6167
- options: x
6169
+ options: p
6168
6170
  }
6169
6171
  );
6170
6172
  case "Users":
@@ -6182,7 +6184,7 @@ function Et({
6182
6184
  name: r,
6183
6185
  placeholder: s,
6184
6186
  className: h,
6185
- options: x
6187
+ options: p
6186
6188
  }
6187
6189
  );
6188
6190
  case "Date":
@@ -6268,7 +6270,7 @@ function Et({
6268
6270
  name: r || "",
6269
6271
  placeholder: s,
6270
6272
  className: h,
6271
- options: x,
6273
+ options: p,
6272
6274
  module: m || ""
6273
6275
  }
6274
6276
  );
@@ -6294,7 +6296,7 @@ function Un({
6294
6296
  let h = !!(o && (e === "" || e === void 0));
6295
6297
  if (!(l && d) && !u || !(l && d) && h)
6296
6298
  return "";
6297
- let x = (w) => {
6299
+ let p = (w) => {
6298
6300
  t && t({ value: w.target.innerText, name: a });
6299
6301
  }, k = (w) => {
6300
6302
  m && m({ value: w.target.innerText, name: a });
@@ -6314,7 +6316,7 @@ function Un({
6314
6316
  {
6315
6317
  onPaste: y,
6316
6318
  onBlur: k,
6317
- onInput: x,
6319
+ onInput: p,
6318
6320
  contentEditable: l && d ? "plaintext-only" : "false",
6319
6321
  ...T,
6320
6322
  suppressContentEditableWarning: !0,
@@ -6341,7 +6343,7 @@ function zn({
6341
6343
  onSave: m,
6342
6344
  className: C = ""
6343
6345
  }) {
6344
- let h = !!(o && (e === "" || e === void 0)), x = H.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), k = p.useRef(null);
6346
+ let h = !!(o && (e === "" || e === void 0)), p = H.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), k = x.useRef(null);
6345
6347
  if (!(l && d) && !u || !(l && d) && h)
6346
6348
  return "";
6347
6349
  let y = (b) => {
@@ -6353,12 +6355,12 @@ function zn({
6353
6355
  Ie.setListener(
6354
6356
  "form",
6355
6357
  /* @__PURE__ */ n.jsx(
6356
- yl,
6358
+ bl,
6357
6359
  {
6358
6360
  positions: { x: G, y: M },
6359
6361
  onSave: I,
6360
6362
  onValue: y,
6361
- date: x
6363
+ date: p
6362
6364
  },
6363
6365
  (/* @__PURE__ */ new Date()).getTime()
6364
6366
  )
@@ -6375,22 +6377,22 @@ function zn({
6375
6377
  }
6376
6378
  ) : /* @__PURE__ */ n.jsxs("dl", { ...w, children: [
6377
6379
  s ? /* @__PURE__ */ n.jsx("dt", { children: s }) : "",
6378
- /* @__PURE__ */ n.jsx("dd", { onClick: T, ref: k, ...S, children: x }),
6380
+ /* @__PURE__ */ n.jsx("dd", { onClick: T, ref: k, ...S, children: p }),
6379
6381
  i ? /* @__PURE__ */ n.jsx("em", { children: i }) : ""
6380
6382
  ] }) });
6381
6383
  }
6382
- const yl = ({ positions: e, onSave: t, onValue: a, date: r }) => {
6384
+ const bl = ({ positions: e, onSave: t, onValue: a, date: r }) => {
6383
6385
  let s = r.split(":"), i = {
6384
6386
  h: H.Number(2, s[0]),
6385
6387
  m: H.Number(2, s[1])
6386
- }, o = "hour", [l, d] = p.useState({}), _ = !1, u = 0, g = 0, f = {
6387
- body: p.useRef(null),
6388
- time: p.useRef(null),
6389
- hour: p.useRef(null),
6390
- timeText: p.useRef(null),
6391
- hourText: p.useRef(null)
6388
+ }, o = "hour", [l, d] = x.useState({}), _ = !1, u = 0, g = 0, f = {
6389
+ body: x.useRef(null),
6390
+ time: x.useRef(null),
6391
+ hour: x.useRef(null),
6392
+ timeText: x.useRef(null),
6393
+ hourText: x.useRef(null)
6392
6394
  };
6393
- p.useEffect(() => {
6395
+ x.useEffect(() => {
6394
6396
  d(f.body.current.getBoundingClientRect()), f.hour.current.style.transform = "rotate(" + i.h * 15 + "deg)", f.time.current.style.transform = "rotate(" + i.m * 6 + "deg)";
6395
6397
  }, [f.body, f.hour, f.time, i.m, i.h]);
6396
6398
  let m = () => {
@@ -6411,7 +6413,7 @@ const yl = ({ positions: e, onSave: t, onValue: a, date: r }) => {
6411
6413
  m: H.Number(2, parseInt(String(E / 6), 10))
6412
6414
  }, f.timeText.current.textContent = i.m), a(i.h + ":" + i.m);
6413
6415
  }
6414
- }, x = (S) => {
6416
+ }, p = (S) => {
6415
6417
  if (o === "hour")
6416
6418
  if (S.deltaY > 0) {
6417
6419
  u += S.deltaY;
@@ -6448,7 +6450,7 @@ const yl = ({ positions: e, onSave: t, onValue: a, date: r }) => {
6448
6450
  }
6449
6451
  }
6450
6452
  a(i.h + ":" + i.m);
6451
- }, [k, y] = p.useState(!0), I = () => {
6453
+ }, [k, y] = x.useState(!0), I = () => {
6452
6454
  y(!1), t(i.h + ":" + i.m);
6453
6455
  }, T = window.innerHeight - e.y + 33 < 320 ? e.y - 312 : e.y + 33, w = window.innerWidth - e.x < 265 ? e.x - 235 : e.x;
6454
6456
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: k ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
@@ -6467,17 +6469,37 @@ const yl = ({ positions: e, onSave: t, onValue: a, date: r }) => {
6467
6469
  onMouseDown: m,
6468
6470
  onMouseUp: C,
6469
6471
  onMouseMove: h,
6470
- onWheel: x,
6472
+ onWheel: p,
6471
6473
  ref: f.body,
6472
6474
  style: { top: T + "px", left: w + "px" },
6473
6475
  children: [
6474
6476
  /* @__PURE__ */ n.jsx("div", { className: "b" }),
6475
6477
  /* @__PURE__ */ n.jsxs("div", { className: "s", children: [
6476
- /* @__PURE__ */ n.jsx("span", { className: "hour", ref: f.hourText, children: i.h }),
6478
+ /* @__PURE__ */ n.jsx(
6479
+ "span",
6480
+ {
6481
+ className: [
6482
+ "hour",
6483
+ o === "hour" ? "as" : "ap"
6484
+ ].join(" "),
6485
+ ref: f.hourText,
6486
+ children: i.h
6487
+ }
6488
+ ),
6477
6489
  " ",
6478
6490
  ":",
6479
6491
  " ",
6480
- /* @__PURE__ */ n.jsx("span", { className: "min", ref: f.timeText, children: i.m })
6492
+ /* @__PURE__ */ n.jsx(
6493
+ "span",
6494
+ {
6495
+ className: [
6496
+ "min",
6497
+ o === "time" ? "as" : "ap"
6498
+ ].join(" "),
6499
+ ref: f.timeText,
6500
+ children: i.m
6501
+ }
6502
+ )
6481
6503
  ] }),
6482
6504
  /* @__PURE__ */ n.jsx("div", { className: "h", ref: f.hour }),
6483
6505
  /* @__PURE__ */ n.jsx("div", { className: "t", ref: f.time })
@@ -6497,8 +6519,8 @@ function Wn({
6497
6519
  id: l,
6498
6520
  reload: d
6499
6521
  }) {
6500
- const [_, u] = p.useState(!!a), g = t || r;
6501
- p.useEffect(() => {
6522
+ const [_, u] = x.useState(!!a), g = t || r;
6523
+ x.useEffect(() => {
6502
6524
  u(!!a);
6503
6525
  }, [a]);
6504
6526
  let f = () => {
@@ -6519,9 +6541,9 @@ function Wn({
6519
6541
  ] })
6520
6542
  ] });
6521
6543
  }
6522
- const wl = ({ label: e, onValue: t, value: a, name: r, item: s }) => {
6523
- const [i, o] = p.useState(!!a);
6524
- p.useEffect(() => {
6544
+ const Sl = ({ label: e, onValue: t, value: a, name: r, item: s }) => {
6545
+ const [i, o] = x.useState(!!a);
6546
+ x.useEffect(() => {
6525
6547
  o(!!a);
6526
6548
  }, [a]);
6527
6549
  let l = () => {
@@ -6537,8 +6559,8 @@ const wl = ({ label: e, onValue: t, value: a, name: r, item: s }) => {
6537
6559
  }
6538
6560
  );
6539
6561
  }, Kn = ({ onValue: e, value: t, name: a, item: r }) => {
6540
- const [s, i] = p.useState(!!t);
6541
- p.useEffect(() => {
6562
+ const [s, i] = x.useState(!!t);
6563
+ x.useEffect(() => {
6542
6564
  i(!!t);
6543
6565
  }, [t]);
6544
6566
  let o = () => {
@@ -6571,16 +6593,16 @@ function Hn({
6571
6593
  className: m = "",
6572
6594
  separator: C = ","
6573
6595
  }) {
6574
- const [h, x] = p.useState(
6596
+ const [h, p] = x.useState(
6575
6597
  e !== void 0 ? e.split(C) : []
6576
6598
  );
6577
- p.useEffect(() => {
6578
- x(e !== void 0 ? e !== void 0 ? e.split(C) : [] : []);
6599
+ x.useEffect(() => {
6600
+ p(e !== void 0 ? e !== void 0 ? e.split(C) : [] : []);
6579
6601
  }, [e]);
6580
6602
  let k = () => {
6581
- x([...h, ""]);
6603
+ p([...h, ""]);
6582
6604
  }, y = (G) => {
6583
- h.splice(G, 1), h.length === 0 && h.push(""), x([...h]), f !== void 0 && f({ value: h.join(C), name: a });
6605
+ h.splice(G, 1), h.length === 0 && h.push(""), p([...h]), f !== void 0 && f({ value: h.join(C), name: a });
6584
6606
  }, I = !!(o && (e === "" || e === void 0)), T = (G) => {
6585
6607
  };
6586
6608
  if (!(l && d) && !u || !(l && d) && I)
@@ -6659,7 +6681,7 @@ function Hn({
6659
6681
  i && /* @__PURE__ */ n.jsx("em", { children: i })
6660
6682
  ] });
6661
6683
  }
6662
- const bl = (e) => (e = e !== void 0 && e !== "" ? e.split(",") : [], e.reduce((t, a) => (t[a] = !0, t), {}));
6684
+ const El = (e) => (e = e !== void 0 && e !== "" ? e.split(",") : [], e.reduce((t, a) => (t[a] = !0, t), {}));
6663
6685
  function Yn({
6664
6686
  value: e,
6665
6687
  onValue: t,
@@ -6678,7 +6700,7 @@ function Yn({
6678
6700
  options: C,
6679
6701
  className: h
6680
6702
  }) {
6681
- const [x, k] = p.useState(bl(e)), y = (w) => {
6703
+ const [p, k] = x.useState(El(e)), y = (w) => {
6682
6704
  if (!(l && _) || !f)
6683
6705
  return;
6684
6706
  let S = f.split(".");
@@ -6689,7 +6711,7 @@ function Yn({
6689
6711
  onValue: t,
6690
6712
  options: C,
6691
6713
  name: a,
6692
- value: x
6714
+ value: p
6693
6715
  });
6694
6716
  }, I = {};
6695
6717
  I.field = "group", h && (I.className = h);
@@ -6722,7 +6744,7 @@ function Yn({
6722
6744
  onClick: open,
6723
6745
  edit: (l && _) + "",
6724
6746
  "data-after": u,
6725
- children: Object.keys(x).map((w) => {
6747
+ children: Object.keys(p).map((w) => {
6726
6748
  var S;
6727
6749
  return /* @__PURE__ */ n.jsx("div", { className: "field_group_item", children: (S = C[w]) == null ? void 0 : S.label }, w);
6728
6750
  })
@@ -6748,25 +6770,25 @@ function mn({
6748
6770
  view: m,
6749
6771
  onBlur: C,
6750
6772
  onSave: h,
6751
- className: x = ""
6773
+ className: p = ""
6752
6774
  }) {
6753
- const k = p.useId();
6754
- let y = !!(l && (e === "" || e === void 0)), [I, T] = p.useState(i);
6775
+ const k = x.useId();
6776
+ let y = !!(l && (e === "" || e === void 0)), [I, T] = x.useState(i);
6755
6777
  if (!(d && _) && !g || !(d && _) && y)
6756
6778
  return "";
6757
6779
  const w = async (b) => {
6758
6780
  if (f) {
6759
- let E = El(b, f, e || "default");
6781
+ let E = Dl(b, f, e || "default");
6760
6782
  t == null || t({ name: a, value: E }), T(URL.createObjectURL(E));
6761
6783
  } else
6762
6784
  t == null || t({ name: a, value: b }), T(URL.createObjectURL(b));
6763
6785
  }, S = {};
6764
- return S.field = "file", x && (S.className = x), /* @__PURE__ */ n.jsxs("dl", { ...S, children: [
6786
+ return S.field = "file", p && (S.className = p), /* @__PURE__ */ n.jsxs("dl", { ...S, children: [
6765
6787
  s && /* @__PURE__ */ n.jsxs("dt", { children: [
6766
6788
  s,
6767
6789
  " "
6768
6790
  ] }),
6769
- /* @__PURE__ */ n.jsxs(Sl, { onFiles: w, children: [
6791
+ /* @__PURE__ */ n.jsxs(Rl, { onFiles: w, children: [
6770
6792
  /* @__PURE__ */ n.jsx(
6771
6793
  "input",
6772
6794
  {
@@ -6784,9 +6806,9 @@ function mn({
6784
6806
  o && /* @__PURE__ */ n.jsx("em", { children: o })
6785
6807
  ] });
6786
6808
  }
6787
- const Sl = ({ children: e, onFiles: t }) => {
6788
- const a = p.useRef(null);
6789
- return p.useEffect(() => {
6809
+ const Rl = ({ children: e, onFiles: t }) => {
6810
+ const a = x.useRef(null);
6811
+ return x.useEffect(() => {
6790
6812
  if (a.preventDefaults)
6791
6813
  return;
6792
6814
  a.preventDefaults = (s) => {
@@ -6810,25 +6832,25 @@ const Sl = ({ children: e, onFiles: t }) => {
6810
6832
  r.addEventListener(s, a.unhighlight, !1);
6811
6833
  }), r.addEventListener("drop", a.onHandleDrop, !1);
6812
6834
  }, []), /* @__PURE__ */ n.jsx("dd", { ref: a, children: e });
6813
- }, El = (e, t, a) => {
6835
+ }, Dl = (e, t, a) => {
6814
6836
  var r = document.getElementsByTagName("body")[0], s = document.createElement("canvas");
6815
6837
  r.appendChild(s);
6816
6838
  const i = s.getContext("2d"), o = new Image();
6817
6839
  o.addEventListener("load", () => {
6818
6840
  i.drawImage(o, 0, 0);
6819
- const l = t === "png" ? s.toDataURL() : s.toDataURL(`image/${t}`), d = Rl(l, a);
6841
+ const l = t === "png" ? s.toDataURL() : s.toDataURL(`image/${t}`), d = Nl(l, a);
6820
6842
  return s.remove(), d;
6821
6843
  }), o.src = URL.createObjectURL(e);
6822
6844
  };
6823
- function Rl(e, t) {
6845
+ function Nl(e, t) {
6824
6846
  let a = e.split(","), r = a[0].match(/:(.*?);/)[1], s = atob(a[1]), i = s.length, o = new Uint8Array(i);
6825
6847
  for (; i--; )
6826
6848
  o[i] = s.charCodeAt(i);
6827
6849
  return new File([o], t, { type: r });
6828
6850
  }
6829
6851
  const ge = {};
6830
- function Dl(e) {
6831
- const [t, a] = p.useState({}), r = p.useRef(e);
6852
+ function Il(e) {
6853
+ const [t, a] = x.useState({}), r = x.useRef(e);
6832
6854
  return ge.u = (s) => {
6833
6855
  r.current = { ...r.current, [s.name]: s.value };
6834
6856
  }, ge.n = (s) => {
@@ -6837,13 +6859,13 @@ function Dl(e) {
6837
6859
  a(Date.now());
6838
6860
  }, [r.current, ge.n];
6839
6861
  }
6840
- function Nl(e) {
6862
+ function Tl(e) {
6841
6863
  ge.u(e), e.reload && ge.r();
6842
6864
  }
6843
- function Il() {
6865
+ function Ml() {
6844
6866
  ge.r && ge.r();
6845
6867
  }
6846
- const vc = {
6868
+ const kc = {
6847
6869
  Color: Pn,
6848
6870
  Date: Tt,
6849
6871
  Mask: mn,
@@ -6871,15 +6893,15 @@ const vc = {
6871
6893
  Users: Pt,
6872
6894
  String: Ge,
6873
6895
  Form: Et,
6874
- runReload: Il,
6875
- useData: Dl,
6876
- setValue: Nl,
6877
- Palette: wl,
6896
+ runReload: Ml,
6897
+ useData: Il,
6898
+ setValue: Tl,
6899
+ Palette: Sl,
6878
6900
  Toogle: Kn,
6879
6901
  Group: Hn,
6880
6902
  Options: Yn
6881
6903
  };
6882
- function Tl({
6904
+ function Ll({
6883
6905
  value: e = "",
6884
6906
  onValue: t,
6885
6907
  onSave: a,
@@ -6896,8 +6918,8 @@ function Tl({
6896
6918
  view: m,
6897
6919
  className: C = ""
6898
6920
  }) {
6899
- _ = _ !== void 0 ? _ : !0, u = u !== void 0 ? u : !0, d = !!(d && (e === "" || e === void 0)) && !(_ && u), p.useRef(null);
6900
- let x = s, k = !0, y = 0, I = (N, F) => {
6921
+ _ = _ !== void 0 ? _ : !0, u = u !== void 0 ? u : !0, d = !!(d && (e === "" || e === void 0)) && !(_ && u), x.useRef(null);
6922
+ let p = s, k = !0, y = 0, I = (N, F) => {
6901
6923
  let W = document.createRange(), ee = window.getSelection();
6902
6924
  W.setStart(F.childNodes[0], N), W.collapse(!0), ee.removeAllRanges(), ee.addRange(W), F.focus();
6903
6925
  }, T = (N) => {
@@ -6910,10 +6932,10 @@ function Tl({
6910
6932
  ee === "" && (k = !0);
6911
6933
  let ae = ee.split(""), fe = "";
6912
6934
  ae.forEach((Ke) => {
6913
- k && (fe += Ke, k && (y = ("" + fe).length, x = s.replace(new RegExp("[0-9]", "g"), "_"), W = ""), y > ("" + fe).length && (k = !0, x = s.replace(new RegExp("[0-9]", "g"), "_"), W = ""));
6935
+ k && (fe += Ke, k && (y = ("" + fe).length, p = s.replace(new RegExp("[0-9]", "g"), "_"), W = ""), y > ("" + fe).length && (k = !0, p = s.replace(new RegExp("[0-9]", "g"), "_"), W = ""));
6914
6936
  });
6915
- let be = x.replace(/\D/g, "");
6916
- return be.length >= ee.length && (ee = be), { q: x.replace(/[_\d]/g, function() {
6937
+ let be = p.replace(/\D/g, "");
6938
+ return be.length >= ee.length && (ee = be), { q: p.replace(/[_\d]/g, function() {
6917
6939
  return ee.charAt(F++) || "_";
6918
6940
  }), i: F, v: ee, f: W };
6919
6941
  }, S = (N) => {
@@ -6926,7 +6948,7 @@ function Tl({
6926
6948
  );
6927
6949
  }, b = w(e), E = (N) => {
6928
6950
  let F = w(N.target.textContent);
6929
- N.target.textContent = F.q, F.i = F.q.lastIndexOf(F.v.substr(-1)), F.i < F.q.length && F.q !== x ? F.i++ : F.i = F.q.indexOf("_"), I(F.i, N.target), t && t({ value: F.q.replace(/\D/g, ""), name: r });
6951
+ N.target.textContent = F.q, F.i = F.q.lastIndexOf(F.v.substr(-1)), F.i < F.q.length && F.q !== p ? F.i++ : F.i = F.q.indexOf("_"), I(F.i, N.target), t && t({ value: F.q.replace(/\D/g, ""), name: r });
6930
6952
  }, G = (N) => {
6931
6953
  N.key === "Enter" && N.preventDefault();
6932
6954
  };
@@ -6956,7 +6978,7 @@ function Tl({
6956
6978
  l && /* @__PURE__ */ n.jsx("em", { children: l })
6957
6979
  ] });
6958
6980
  }
6959
- const Cc = {
6981
+ const jc = {
6960
6982
  Color: Pn,
6961
6983
  Date: Tt,
6962
6984
  Code: $n,
@@ -6969,7 +6991,7 @@ const Cc = {
6969
6991
  Captcha: Bn,
6970
6992
  Modal: Mt,
6971
6993
  Money: Lt,
6972
- Mask: Tl,
6994
+ Mask: Ll,
6973
6995
  Month: On,
6974
6996
  Notes: An,
6975
6997
  Number: Ft,
@@ -6985,12 +7007,12 @@ const Cc = {
6985
7007
  Toogle: Kn,
6986
7008
  Group: Hn,
6987
7009
  Options: Yn
6988
- }, Ml = "_spinner_o487n_1", Ll = "_l_o487n_75", Fl = "_loadingB_o487n_1", qn = {
6989
- spinner: Ml,
6990
- l: Ll,
6991
- loadingB: Fl
7010
+ }, Fl = "_spinner_o487n_1", Bl = "_l_o487n_75", $l = "_loadingB_o487n_1", qn = {
7011
+ spinner: Fl,
7012
+ l: Bl,
7013
+ loadingB: $l
6992
7014
  };
6993
- function Bl() {
7015
+ function Pl() {
6994
7016
  return /* @__PURE__ */ n.jsx("div", { className: qn.spinner, children: /* @__PURE__ */ n.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 483 484", children: /* @__PURE__ */ n.jsx(
6995
7017
  "path",
6996
7018
  {
@@ -6999,18 +7021,18 @@ function Bl() {
6999
7021
  }
7000
7022
  ) }) });
7001
7023
  }
7002
- function $l() {
7024
+ function Ol() {
7003
7025
  return /* @__PURE__ */ n.jsxs("div", { className: qn.l, children: [
7004
7026
  /* @__PURE__ */ n.jsx("i", {}),
7005
7027
  /* @__PURE__ */ n.jsx("i", {}),
7006
7028
  /* @__PURE__ */ n.jsx("i", {})
7007
7029
  ] });
7008
7030
  }
7009
- const kc = { Spinner: Bl, Inline: $l }, Pl = "_s_t9swc_1", hn = {
7010
- s: Pl
7031
+ const yc = { Spinner: Pl, Inline: Ol }, Al = "_s_t9swc_1", hn = {
7032
+ s: Al
7011
7033
  };
7012
7034
  let Ot;
7013
- function Ol({ className: e, placeholder: t }) {
7035
+ function Gl({ className: e, placeholder: t }) {
7014
7036
  let a = (o) => {
7015
7037
  Ot(o.target.textContent);
7016
7038
  }, r = (o) => {
@@ -7034,7 +7056,7 @@ function Ol({ className: e, placeholder: t }) {
7034
7056
  }
7035
7057
  );
7036
7058
  }
7037
- function Al(e, t, a) {
7059
+ function Zl(e, t, a) {
7038
7060
  let r = [], s = 1, i = 0, o = {}, l = 50;
7039
7061
  return o[s] = [], e.forEach((d) => {
7040
7062
  d.text.toLowerCase().indexOf(t) > -1 && r.push(d.id);
@@ -7042,17 +7064,17 @@ function Al(e, t, a) {
7042
7064
  i++, i <= l || (s++, i = 1, o[s] = []), o[s].push(a[d]);
7043
7065
  }), o;
7044
7066
  }
7045
- function Gl(e) {
7067
+ function Ul(e) {
7046
7068
  Ot = e;
7047
7069
  }
7048
- function Zl(e) {
7070
+ function zl(e) {
7049
7071
  Ot = e;
7050
7072
  }
7051
- const jc = { Field: Ol, Run: Al, Get: Gl, useValue: Zl }, Ul = "_f_q3r0i_1", zl = {
7052
- f: Ul
7073
+ const wc = { Field: Gl, Run: Zl, Get: Ul, useValue: zl }, Wl = "_f_q3r0i_1", Kl = {
7074
+ f: Wl
7053
7075
  };
7054
7076
  let le = {};
7055
- function Wl(e, t) {
7077
+ function Hl(e, t) {
7056
7078
  switch (t.type) {
7057
7079
  case "open":
7058
7080
  return {
@@ -7102,8 +7124,8 @@ function Wl(e, t) {
7102
7124
  throw new Error();
7103
7125
  }
7104
7126
  }
7105
- function Kl() {
7106
- const [e, t] = p.useReducer(Wl, {
7127
+ function Yl() {
7128
+ const [e, t] = x.useReducer(Hl, {
7107
7129
  open: !1,
7108
7130
  view: null,
7109
7131
  data: {},
@@ -7121,7 +7143,7 @@ function Kl() {
7121
7143
  /* @__PURE__ */ n.jsxs(
7122
7144
  "div",
7123
7145
  {
7124
- className: zl.f,
7146
+ className: Kl.f,
7125
7147
  onClick: () => {
7126
7148
  t({ type: "open", open: !0 });
7127
7149
  },
@@ -7146,7 +7168,7 @@ function Kl() {
7146
7168
  ),
7147
7169
  /* @__PURE__ */ n.jsxs("div", { className: "filter m", children: [
7148
7170
  /* @__PURE__ */ n.jsx("div", { className: "filter l", children: Object.keys(e.data).map((a) => /* @__PURE__ */ n.jsx(
7149
- Jl,
7171
+ Ql,
7150
7172
  {
7151
7173
  data: a,
7152
7174
  dispatch: t,
@@ -7168,16 +7190,16 @@ function Kl() {
7168
7190
  ] }) : /* @__PURE__ */ n.jsx(n.Fragment, {})
7169
7191
  ] });
7170
7192
  }
7171
- function Hl(e) {
7193
+ function ql(e) {
7172
7194
  le.get = e;
7173
7195
  }
7174
- function Yl(e) {
7196
+ function Vl(e) {
7175
7197
  le.set !== void 0 && le.set(e);
7176
7198
  }
7177
- function ql(e) {
7199
+ function Jl(e) {
7178
7200
  le.reset !== void 0 && le.reset(e);
7179
7201
  }
7180
- function Vl(e, t, a, r) {
7202
+ function Xl(e, t, a, r) {
7181
7203
  let s = [], i = 1, o = 0, l = {}, d = 50;
7182
7204
  return l[i] = [], r === !0 && (Object.keys(t).forEach((_) => {
7183
7205
  Number.parseInt(t[_]) !== 999 && (e = e.filter(
@@ -7192,7 +7214,7 @@ function Vl(e, t, a, r) {
7192
7214
  function Vn(e) {
7193
7215
  le.count(e);
7194
7216
  }
7195
- function Jl({ data: e, state: t, dispatch: a }) {
7217
+ function Ql({ data: e, state: t, dispatch: a }) {
7196
7218
  let r = () => {
7197
7219
  a({ type: "view", view: e });
7198
7220
  }, s = () => {
@@ -7215,7 +7237,7 @@ function Jl({ data: e, state: t, dispatch: a }) {
7215
7237
  ) : ""
7216
7238
  ] }),
7217
7239
  /* @__PURE__ */ n.jsx("div", { className: "filter u", "set-active": (t.view === e) + "", children: Object.keys(t.data[e].list).map((i, o) => /* @__PURE__ */ n.jsx(
7218
- Xl,
7240
+ ec,
7219
7241
  {
7220
7242
  data: t.data[e].list[i],
7221
7243
  head: e,
@@ -7227,7 +7249,7 @@ function Jl({ data: e, state: t, dispatch: a }) {
7227
7249
  )) })
7228
7250
  ] });
7229
7251
  }
7230
- function Xl({ data: e, head: t, state: a, dispatch: r, type: s }) {
7252
+ function ec({ data: e, head: t, state: a, dispatch: r, type: s }) {
7231
7253
  if (s !== "999" && e.count === void 0)
7232
7254
  return "";
7233
7255
  const i = () => {
@@ -7246,11 +7268,11 @@ function Xl({ data: e, head: t, state: a, dispatch: r, type: s }) {
7246
7268
  }
7247
7269
  );
7248
7270
  }
7249
- const yc = { Button: Kl, useValue: Hl, Set: Yl, Run: Vl, Count: Vn, Reset: ql }, wc = { Bell: us, Send: cs, Add: ls }, Ql = "_p_djnh1_1", ec = "_l_djnh1_38", Jn = {
7250
- p: Ql,
7251
- l: ec
7271
+ const bc = { Button: Yl, useValue: ql, Set: Vl, Run: Xl, Count: Vn, Reset: Jl }, Sc = { Bell: us, Send: cs, Add: ls }, tc = "_p_djnh1_1", nc = "_l_djnh1_38", Jn = {
7272
+ p: tc,
7273
+ l: nc
7252
7274
  };
7253
- function tc(e) {
7275
+ function ac(e) {
7254
7276
  let t = 3, a = e.page, r = e.count, s = [], i = () => {
7255
7277
  s.push({ page: 1 }), s.push({ text: "..." });
7256
7278
  }, o = () => {
@@ -7268,7 +7290,7 @@ function tc(e) {
7268
7290
  /* @__PURE__ */ n.jsx("i", { onClick: () => e.onChangePage(a + 1), children: /* @__PURE__ */ n.jsx("svg", { viewBox: "0 0 24 24", children: /* @__PURE__ */ n.jsx("path", { d: "M8.19486 5.40705C8.52237 4.96235 9.14837 4.86736 9.59306 5.19488C9.93847 5.44927 10.2668 5.70372 10.5528 5.92689C11.1236 6.3724 11.8882 6.98573 12.6556 7.65208C13.4181 8.31412 14.2064 9.04815 14.8119 9.73344C15.1136 10.0749 15.3911 10.4279 15.5986 10.7721C15.7895 11.0888 16 11.524 16 12.0001C16 12.4762 15.7895 12.9115 15.5986 13.2282C15.3911 13.5724 15.1136 13.9253 14.8119 14.2668C14.2064 14.9521 13.4181 15.6861 12.6556 16.3482C11.8882 17.0145 11.1236 17.6278 10.5528 18.0734C10.2668 18.2965 9.93847 18.551 9.59307 18.8054C9.14837 19.1329 8.52237 19.0379 8.19486 18.5932C8.0632 18.4144 7.99983 18.2064 8.00001 18.0002L8 12.0001L8 6.00007C7.99983 5.79387 8.0632 5.58581 8.19486 5.40705Z" }) }) })
7269
7291
  ] });
7270
7292
  }
7271
- function nc(e, t) {
7293
+ function rc(e, t) {
7272
7294
  switch (t.type) {
7273
7295
  case "load":
7274
7296
  return {
@@ -7290,7 +7312,7 @@ function nc(e, t) {
7290
7312
  }
7291
7313
  }
7292
7314
  function Xn({ load: e, list: t, item: a }) {
7293
- const r = p.useRef(null), [s, i] = p.useReducer(nc, {
7315
+ const r = x.useRef(null), [s, i] = x.useReducer(rc, {
7294
7316
  load: !1,
7295
7317
  list: [],
7296
7318
  data: {},
@@ -7298,7 +7320,7 @@ function Xn({ load: e, list: t, item: a }) {
7298
7320
  wait: !1,
7299
7321
  item: a
7300
7322
  });
7301
- p.useEffect(() => {
7323
+ x.useEffect(() => {
7302
7324
  t !== null && i({ type: "load", load: e, data: t });
7303
7325
  }, [e]);
7304
7326
  let o = (l) => {
@@ -7308,7 +7330,7 @@ function Xn({ load: e, list: t, item: a }) {
7308
7330
  return l = s.size;
7309
7331
  i({ type: "page", page: l });
7310
7332
  };
7311
- return p.useEffect(() => {
7333
+ return x.useEffect(() => {
7312
7334
  }, [s]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
7313
7335
  /* @__PURE__ */ n.jsx("div", { className: Jn.l, ref: r, children: /* @__PURE__ */ n.jsx(In, { "el-empty": "Данные не найдены", children: s.load && s.list !== void 0 ? s.list.map((l) => /* @__PURE__ */ n.jsx(s.item, { data: l }, l.id)) : /* @__PURE__ */ n.jsxs("div", { "type-data": "load", children: [
7314
7336
  /* @__PURE__ */ n.jsx("i", {}),
@@ -7316,7 +7338,7 @@ function Xn({ load: e, list: t, item: a }) {
7316
7338
  /* @__PURE__ */ n.jsx("i", {})
7317
7339
  ] }) }) }),
7318
7340
  s.load && s.list !== void 0 ? /* @__PURE__ */ n.jsx(
7319
- tc,
7341
+ ac,
7320
7342
  {
7321
7343
  page: s.page,
7322
7344
  count: s.size,
@@ -7325,15 +7347,15 @@ function Xn({ load: e, list: t, item: a }) {
7325
7347
  ) : /* @__PURE__ */ n.jsx(n.Fragment, {})
7326
7348
  ] });
7327
7349
  }
7328
- const bc = { Pagination: Xn };
7329
- function ac({ head: e, load: t, list: a, item: r }) {
7350
+ const Ec = { Pagination: Xn };
7351
+ function sc({ head: e, load: t, list: a, item: r }) {
7330
7352
  const s = e;
7331
7353
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
7332
7354
  /* @__PURE__ */ n.jsx(s, {}),
7333
7355
  It.getSetting("s05") === 1 ? /* @__PURE__ */ n.jsx(Xn, { list: a, load: t, item: r }) : /* @__PURE__ */ n.jsx(hl, { list: a, load: t, item: r })
7334
7356
  ] });
7335
7357
  }
7336
- function rc(e, t) {
7358
+ function ic(e, t) {
7337
7359
  switch (t.type) {
7338
7360
  case "load":
7339
7361
  return {
@@ -7375,16 +7397,16 @@ function rc(e, t) {
7375
7397
  }
7376
7398
  }
7377
7399
  const Rt = {};
7378
- function sc(e) {
7400
+ function oc(e) {
7379
7401
  Rt.get = e;
7380
7402
  }
7381
- function ic(e) {
7403
+ function lc(e) {
7382
7404
  Rt.get && Rt.get(e);
7383
7405
  }
7384
- const Sc = { View: ac, Reducer: rc, useValue: sc, setValue: ic }, Ec = { Get: xs }, Rc = { Open: so };
7385
- function Dc({ active: e, onActive: t, id: a, name: r }) {
7386
- const [s, i] = p.useState(!!e);
7387
- p.useEffect(() => {
7406
+ const Rc = { View: sc, Reducer: ic, useValue: oc, setValue: lc }, Dc = { Get: ps }, Nc = { Open: so };
7407
+ function Ic({ active: e, onActive: t, id: a, name: r }) {
7408
+ const [s, i] = x.useState(!!e);
7409
+ x.useEffect(() => {
7388
7410
  i(!!e);
7389
7411
  }, [e]);
7390
7412
  let o = () => {
@@ -7408,42 +7430,42 @@ function Dc({ active: e, onActive: t, id: a, name: r }) {
7408
7430
  }
7409
7431
  export {
7410
7432
  To as Action,
7411
- uc as Alert,
7433
+ mc as Alert,
7412
7434
  rn as Api,
7413
- hc as Badge,
7414
- _c as Bookmarks,
7415
- cc as Browser,
7435
+ pc as Badge,
7436
+ fc as Bookmarks,
7437
+ _c as Browser,
7416
7438
  ki as Button,
7417
- Ec as Company,
7439
+ Dc as Company,
7418
7440
  fn as Component,
7419
- gc as DataBase,
7441
+ xc as DataBase,
7420
7442
  Ie as Event,
7421
7443
  Ie as Events,
7422
- pc as Files,
7423
- yc as Filter,
7424
- vc as Form,
7444
+ Cc as Files,
7445
+ bc as Filter,
7446
+ kc as Form,
7425
7447
  H as Format,
7426
- xc as HotKey,
7427
- fc as Icon,
7428
- xo as Init,
7429
- Cc as Input,
7430
- Sc as List,
7431
- kc as Loading,
7448
+ vc as HotKey,
7449
+ hc as Icon,
7450
+ po as Init,
7451
+ jc as Input,
7452
+ Rc as List,
7453
+ yc as Loading,
7432
7454
  rt as Modal,
7433
7455
  De as Notice,
7434
- wc as Notifications,
7435
- bc as Pagination,
7436
- Rc as Phone,
7456
+ Sc as Notifications,
7457
+ Ec as Pagination,
7458
+ Nc as Phone,
7437
7459
  Qe as Router,
7438
7460
  hl as Scrolling,
7439
- jc as Search,
7440
- dc as Setting,
7461
+ wc as Search,
7462
+ uc as Setting,
7441
7463
  at as Sistym,
7442
7464
  he as Socket,
7443
7465
  oe as Store,
7444
- Dc as Switch,
7466
+ Ic as Switch,
7445
7467
  yo as Tabs,
7446
- mc as Triage,
7468
+ gc as Triage,
7447
7469
  It as User,
7448
7470
  z as WebRTC
7449
7471
  };