@elcrm/telegram 0.0.18 → 0.0.19

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
@@ -6,17 +6,17 @@ let gt = {};
6
6
  const ua = (e) => {
7
7
  gt = e;
8
8
  }, fa = (e) => gt.enCode(e), ma = (e) => gt.deCode(e), N = { enCode: fa, deCode: ma, New: ua }, j = {}, U = {}, Ce = {}, nn = {}, re = {};
9
- let pt = "M06";
9
+ let xt = "M06";
10
10
  function ha(e) {
11
- pt = e;
11
+ xt = e;
12
12
  }
13
13
  function ga() {
14
- return pt;
14
+ return xt;
15
15
  }
16
- function pa(e) {
16
+ function xa(e) {
17
17
  if (localStorage.getItem("d")) {
18
18
  let a = sessionStorage.getItem("f");
19
- a ? (a = N.deCode(a), a || X(), j.id = a.id, j.tab = a.tab, j.page = a.page, j.module = a.module, j.time = a.time, j.payment = { active: !0 }, j.module_admin = a.module_admin) : (j.id = 0, j.tab = "", j.page = "Main", j.module = j.module || pt);
19
+ a ? (a = N.deCode(a), a || X(), j.id = a.id, j.tab = a.tab, j.page = a.page, j.module = a.module, j.time = a.time, j.payment = { active: !0 }, j.module_admin = a.module_admin) : (j.id = 0, j.tab = "", j.page = "Main", j.module = j.module || xt);
20
20
  } else
21
21
  ["a", "b", "c", "d", "e", "m", "u", "s", "q", "p"].forEach(
22
22
  (a) => localStorage.removeItem(a)
@@ -28,7 +28,7 @@ function X() {
28
28
  (e) => localStorage.removeItem(e)
29
29
  ), ["f"].forEach((e) => sessionStorage.removeItem(e)), window.location.reload();
30
30
  }
31
- function xa(e) {
31
+ function pa(e) {
32
32
  e = e.split("/"), j.page = "Main", j.module = e[0], j.tab = e[1], j.id = 0, sessionStorage.setItem(
33
33
  "f",
34
34
  N.enCode({
@@ -204,7 +204,7 @@ function De(e) {
204
204
  function Ka(e, t) {
205
205
  re.data = { ...re.data, [e]: t }, localStorage.setItem("q", N.enCode(re.data));
206
206
  }
207
- function xe(e, t) {
207
+ function pe(e, t) {
208
208
  if (!re.data) {
209
209
  let a = localStorage.getItem("q");
210
210
  a && (re.data = N.deCode(a));
@@ -268,7 +268,7 @@ const se = {
268
268
  setAUTH: ba,
269
269
  getAUTH: Ca,
270
270
  Logaut: X,
271
- Start: xa,
271
+ Start: pa,
272
272
  setMenu: sn,
273
273
  getMenu: Ga,
274
274
  useSort: za,
@@ -278,7 +278,7 @@ const se = {
278
278
  getCompany: Wa,
279
279
  setSelect: De,
280
280
  addSelect: Ka,
281
- getSelect: xe,
281
+ getSelect: pe,
282
282
  setApi: Za,
283
283
  getApi: Ua,
284
284
  setPayment: Ha,
@@ -326,7 +326,7 @@ function ar(e) {
326
326
  function rr(e) {
327
327
  return e && (ce.h = e), ce.h;
328
328
  }
329
- const xt = { version: { Api: nr, Server: tr, Client: ar }, Host: rr };
329
+ const pt = { version: { Api: nr, Server: tr, Client: ar }, Host: rr };
330
330
  let ir = "api", or = "elcrm", sr = "online";
331
331
  function lr() {
332
332
  let e = se.getPORT(), t = "", a = "";
@@ -348,7 +348,7 @@ function Ue(e, t = {}, a = se.getAUTH()) {
348
348
  link: e,
349
349
  data: t,
350
350
  ssid: a,
351
- host: xt.Host() || `https://${fn}/`
351
+ host: pt.Host() || `https://${fn}/`
352
352
  });
353
353
  });
354
354
  }
@@ -361,7 +361,7 @@ function _r(e, t = {}, a = se.getAUTH()) {
361
361
  link: e,
362
362
  data: t,
363
363
  ssid: a,
364
- host: xt.Host() + "modules/" || `https://${fn}/modules`
364
+ host: pt.Host() + "modules/" || `https://${fn}/modules`
365
365
  });
366
366
  });
367
367
  }
@@ -418,14 +418,14 @@ function mr() {
418
418
  Ut = 1;
419
419
  var e = b, t = Symbol.for("react.element"), a = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
420
420
  function l(c, d, _) {
421
- var u, f = {}, x = null, m = null;
422
- _ !== void 0 && (x = "" + _), d.key !== void 0 && (x = "" + d.key), d.ref !== void 0 && (m = d.ref);
421
+ var u, f = {}, p = null, m = null;
422
+ _ !== void 0 && (p = "" + _), d.key !== void 0 && (p = "" + d.key), d.ref !== void 0 && (m = d.ref);
423
423
  for (u in d)
424
424
  r.call(d, u) && !o.hasOwnProperty(u) && (f[u] = d[u]);
425
425
  if (c && c.defaultProps)
426
426
  for (u in d = c.defaultProps, d)
427
427
  f[u] === void 0 && (f[u] = d[u]);
428
- return { $$typeof: t, type: c, key: x, ref: m, props: f, _owner: i.current };
428
+ return { $$typeof: t, type: c, key: p, ref: m, props: f, _owner: i.current };
429
429
  }
430
430
  return Be.Fragment = a, Be.jsx = l, Be.jsxs = l, Be;
431
431
  }
@@ -442,8 +442,8 @@ var Ie = {};
442
442
  var Ht;
443
443
  function hr() {
444
444
  return Ht || (Ht = 1, process.env.NODE_ENV !== "production" && function() {
445
- var e = b, t = Symbol.for("react.element"), a = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), g = Symbol.iterator, v = "@@iterator";
446
- function p(s) {
445
+ var e = b, t = Symbol.for("react.element"), a = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), g = Symbol.iterator, v = "@@iterator";
446
+ function x(s) {
447
447
  if (s === null || typeof s != "object")
448
448
  return null;
449
449
  var h = g && s[g] || s[v];
@@ -470,7 +470,7 @@ function hr() {
470
470
  var R = !1, F = !1, A = !1, K = !1, oe = !1, z;
471
471
  z = Symbol.for("react.module.reference");
472
472
  function I(s) {
473
- return !!(typeof s == "string" || typeof s == "function" || s === r || s === o || oe || s === i || s === _ || s === u || K || s === m || R || F || A || typeof s == "object" && s !== null && (s.$$typeof === x || s.$$typeof === f || s.$$typeof === l || s.$$typeof === c || s.$$typeof === d || // This needs to include all possible module reference object
473
+ return !!(typeof s == "string" || typeof s == "function" || s === r || s === o || oe || s === i || s === _ || s === u || K || s === m || R || F || A || typeof s == "object" && s !== null && (s.$$typeof === p || s.$$typeof === f || s.$$typeof === l || s.$$typeof === c || s.$$typeof === d || // This needs to include all possible module reference object
474
474
  // types supported by any Flight configuration anywhere since
475
475
  // we don't know which Flight build this will end up being used
476
476
  // with.
@@ -520,7 +520,7 @@ function hr() {
520
520
  case f:
521
521
  var w = s.displayName || null;
522
522
  return w !== null ? w : S(s.type) || "Memo";
523
- case x: {
523
+ case p: {
524
524
  var D = s, P = D._payload, M = D._init;
525
525
  try {
526
526
  return S(M(P));
@@ -709,7 +709,7 @@ function hr() {
709
709
  return An(s.render);
710
710
  case f:
711
711
  return Ge(s.type, h, k);
712
- case x: {
712
+ case p: {
713
713
  var w = s, D = w._payload, P = w._init;
714
714
  try {
715
715
  return Ge(P(D), h, k);
@@ -934,7 +934,7 @@ Check the top-level render call using <` + k + ">.");
934
934
  else if (at(s))
935
935
  s._store && (s._store.validated = !0);
936
936
  else if (s) {
937
- var D = p(s);
937
+ var D = x(s);
938
938
  if (typeof D == "function" && D !== s.entries)
939
939
  for (var P = D.call(s), M; !(M = P.next()).done; )
940
940
  at(M.value) && Gt(M.value, h);
@@ -1035,10 +1035,10 @@ React keys must be passed directly to JSX without using spread:
1035
1035
  }
1036
1036
  process.env.NODE_ENV === "production" ? _t.exports = mr() : _t.exports = hr();
1037
1037
  var n = _t.exports;
1038
- const gr = "_notice_9i5tr_2", pr = "_error_9i5tr_9", xr = "_success_9i5tr_12", vr = "_remark_9i5tr_15", kr = "_copy_9i5tr_18", br = {
1038
+ const gr = "_notice_9i5tr_2", xr = "_error_9i5tr_9", pr = "_success_9i5tr_12", vr = "_remark_9i5tr_15", kr = "_copy_9i5tr_18", br = {
1039
1039
  notice: gr,
1040
- error: pr,
1041
- success: xr,
1040
+ error: xr,
1041
+ success: pr,
1042
1042
  remark: vr,
1043
1043
  copy: kr,
1044
1044
  "show-notice": "_show-notice_9i5tr_1",
@@ -1277,14 +1277,14 @@ function fi({
1277
1277
  /* @__PURE__ */ n.jsxs("div", { className: ne.h, children: [
1278
1278
  /* @__PURE__ */ n.jsx("div", { className: ne.t, children: e }),
1279
1279
  /* @__PURE__ */ n.jsxs("div", { className: ne.m, children: [
1280
- r && /* @__PURE__ */ n.jsx("nav", { children: r.map((f, x) => /* @__PURE__ */ n.jsx(
1280
+ r && /* @__PURE__ */ n.jsx("nav", { children: r.map((f, p) => /* @__PURE__ */ n.jsx(
1281
1281
  "span",
1282
1282
  {
1283
1283
  onClick: f.onClick,
1284
1284
  className: f.active ? "active" : "",
1285
1285
  children: f.name
1286
1286
  },
1287
- x
1287
+ p
1288
1288
  )) }),
1289
1289
  o
1290
1290
  ] }),
@@ -1331,13 +1331,13 @@ function gi(e) {
1331
1331
  t.setAttribute("shake", !1);
1332
1332
  }, 1e3);
1333
1333
  }
1334
- function pi({ type: e, name: t, params: a }) {
1334
+ function xi({ type: e, name: t, params: a }) {
1335
1335
  let [r, i] = b.useState(null);
1336
1336
  return b.useEffect(() => {
1337
1337
  ge.config(e, t, a, i);
1338
1338
  }, [a.id]), /* @__PURE__ */ n.jsx(n.Fragment, { children: r });
1339
1339
  }
1340
- function xi(e, t) {
1340
+ function pi(e, t) {
1341
1341
  ge.config(e, t);
1342
1342
  }
1343
1343
  function vi(e) {
@@ -1419,7 +1419,7 @@ function gn({ onClick: e, onSend: t, name: a, onRef: r }) {
1419
1419
  }
1420
1420
  );
1421
1421
  }
1422
- function pn({
1422
+ function xn({
1423
1423
  value: e,
1424
1424
  onValue: t,
1425
1425
  onActive: a,
@@ -1441,7 +1441,7 @@ function pn({
1441
1441
  }, 3e3)) : a(!1);
1442
1442
  }, f = (C) => {
1443
1443
  _.current.value = C.target.textContent, u();
1444
- }, x = (C) => {
1444
+ }, p = (C) => {
1445
1445
  C.keyCode === 16 && (_.current.shift = !0), C.keyCode === 13 && !_.current.shift && (C.preventDefault(), _.current.value.length !== 0 && (C.target.textContent = "", r && r(_.current.value), t && t(_.current.value), _.current.value = "", a(!1)));
1446
1446
  }, m = (C) => {
1447
1447
  C.keyCode === 16 && (_.current.shift = !1);
@@ -1452,24 +1452,24 @@ function pn({
1452
1452
  });
1453
1453
  }, v = () => {
1454
1454
  a(!1);
1455
- }, p = {
1455
+ }, x = {
1456
1456
  spellCheck: "true"
1457
1457
  };
1458
- return d && (p.placeholder = d), l && c && (p.contentEditable = "plaintext-only"), /* @__PURE__ */ n.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ n.jsx(
1458
+ return d && (x.placeholder = d), l && c && (x.contentEditable = "plaintext-only"), /* @__PURE__ */ n.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ n.jsx(
1459
1459
  "dd",
1460
1460
  {
1461
1461
  onPaste: g,
1462
1462
  onInput: f,
1463
1463
  onKeyUp: m,
1464
- onKeyDown: x,
1464
+ onKeyDown: p,
1465
1465
  onBlur: v,
1466
- ...p,
1466
+ ...x,
1467
1467
  suppressContentEditableWarning: !0,
1468
1468
  children: e
1469
1469
  }
1470
1470
  ) });
1471
1471
  }
1472
- function xn(e) {
1472
+ function pn(e) {
1473
1473
  let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = e.edit !== void 0 ? e.edit : !0, r = e.active !== void 0 ? e.active : !0, i = e.placeholder !== void 0 ? e.placeholder : "", o = (d) => {
1474
1474
  e.onValue({ value: d.target.textContent, name: e.name });
1475
1475
  }, l = (d) => {
@@ -1533,8 +1533,8 @@ function vn({ value: e, onValue: t, placeholder: a = "", name: r }) {
1533
1533
  }, [c]);
1534
1534
  const f = {};
1535
1535
  f.field = "captcha";
1536
- const x = {};
1537
- return a && (x.placeholder = a), /* @__PURE__ */ n.jsxs("dl", { ...f, children: [
1536
+ const p = {};
1537
+ return a && (p.placeholder = a), /* @__PURE__ */ n.jsxs("dl", { ...f, children: [
1538
1538
  /* @__PURE__ */ n.jsx(
1539
1539
  "dd",
1540
1540
  {
@@ -1545,7 +1545,7 @@ function vn({ value: e, onValue: t, placeholder: a = "", name: r }) {
1545
1545
  onKeyDown: d,
1546
1546
  contentEditable: "plaintext-only",
1547
1547
  suppressContentEditableWarning: !0,
1548
- ...x
1548
+ ...p
1549
1549
  }
1550
1550
  ),
1551
1551
  /* @__PURE__ */ n.jsx("canvas", { ref: o, width: "100", height: "35" })
@@ -1715,18 +1715,18 @@ function bn(e) {
1715
1715
  ) });
1716
1716
  }
1717
1717
  function vt({ label: e, value: t, placeholder: a, onValue: r, name: i }) {
1718
- const o = "__.__.____", l = new Set("_"), c = ((g) => Array.from(o, (v, p) => l.has(v) ? g = p + 1 : g))(0), d = [...o].findIndex((g) => l.has(g)), _ = new RegExp("\\d", "g"), u = (g) => (g = g.match(_) || [], Array.from(
1718
+ const o = "__.__.____", l = new Set("_"), c = ((g) => Array.from(o, (v, x) => l.has(v) ? g = x + 1 : g))(0), d = [...o].findIndex((g) => l.has(g)), _ = new RegExp("\\d", "g"), u = (g) => (g = g.match(_) || [], Array.from(
1719
1719
  o,
1720
1720
  (v) => (g[0] === v || l.has(v)) && g.shift() || v
1721
1721
  )), f = (g) => {
1722
- const [v, p] = [g.target.selectionStart, g.target.selectionEnd].map(
1722
+ const [v, x] = [g.target.selectionStart, g.target.selectionEnd].map(
1723
1723
  (C) => (C = u(g.target.value.slice(0, C)).findIndex(
1724
1724
  (y) => l.has(y)
1725
- ), C < 0 ? c[c.length - 1] : x ? c[C - 1] || d : C)
1725
+ ), C < 0 ? c[c.length - 1] : p ? c[C - 1] || d : C)
1726
1726
  );
1727
- g.target.value = u(g.target.value).join(""), g.target.setSelectionRange(v, p), x = !1, r == null || r({ name: i, value: g.target.value });
1727
+ g.target.value = u(g.target.value).join(""), g.target.setSelectionRange(v, x), p = !1, r == null || r({ name: i, value: g.target.value });
1728
1728
  };
1729
- let x = !1;
1729
+ let p = !1;
1730
1730
  const m = {};
1731
1731
  return m.field = "input", /* @__PURE__ */ n.jsxs("dl", { ...m, children: [
1732
1732
  /* @__PURE__ */ n.jsx("dt", {}),
@@ -1737,7 +1737,7 @@ function vt({ label: e, value: t, placeholder: a, onValue: r, name: i }) {
1737
1737
  placeholder: a,
1738
1738
  onChange: f,
1739
1739
  inputMode: "numeric",
1740
- onKeyDown: (g) => x = g.key === "Backspace",
1740
+ onKeyDown: (g) => p = g.key === "Backspace",
1741
1741
  onFocus: f,
1742
1742
  onBlur: (g) => g.target.value === o && (g.target.value = "")
1743
1743
  }
@@ -1762,8 +1762,8 @@ const Cn = {
1762
1762
  Scroll: Ei,
1763
1763
  Main: fi,
1764
1764
  Add: mi,
1765
- Icon: pi,
1766
- Open: xi,
1765
+ Icon: xi,
1766
+ Open: pi,
1767
1767
  Shake: gi,
1768
1768
  Form: Ti,
1769
1769
  Center: Ri,
@@ -1782,15 +1782,15 @@ function kt({
1782
1782
  active: _ = !0,
1783
1783
  after: u = "",
1784
1784
  view: f,
1785
- modal: x,
1785
+ modal: p,
1786
1786
  module: m,
1787
1787
  options: g,
1788
1788
  className: v
1789
1789
  }) {
1790
- let [p, C] = b.useState(e), y = (F) => {
1791
- if (!(c && _) || !x)
1790
+ let [x, C] = b.useState(e), y = (F) => {
1791
+ if (!(c && _) || !p)
1792
1792
  return;
1793
- let A = x.split(".");
1793
+ let A = p.split(".");
1794
1794
  Cn.Open(A[1], {
1795
1795
  callback: (K) => {
1796
1796
  t && t({ value: K, name: a }), C(K);
@@ -1813,7 +1813,7 @@ function kt({
1813
1813
  onClick: y,
1814
1814
  edit: (c && _) + "",
1815
1815
  "data-after": u,
1816
- children: p
1816
+ children: x
1817
1817
  }
1818
1818
  ),
1819
1819
  o && /* @__PURE__ */ n.jsx("em", { children: o })
@@ -1930,7 +1930,7 @@ const Mi = (e) => {
1930
1930
  u3: ["тысяча", "тысячи", "тысяч"],
1931
1931
  u2: ["миллион", "миллиона", "миллионов"],
1932
1932
  u1: ["миллиард", "миллиарда", "миллиардов"]
1933
- }, i, o, l, c, p, d, _, v, u, f, x, m;
1933
+ }, i, o, l, c, x, d, _, v, u, f, p, m;
1934
1934
  u = parseFloat(e).toFixed(2).split("."), d = u[0], c = u[1];
1935
1935
  var g = 12 - d.length;
1936
1936
  if (g < 0)
@@ -1938,21 +1938,21 @@ const Mi = (e) => {
1938
1938
  for (var v = []; g--; )
1939
1939
  v.push("0");
1940
1940
  d = v.join("") + d;
1941
- var p = [];
1941
+ var x = [];
1942
1942
  if (d > 0) {
1943
1943
  f = t(d, 3);
1944
1944
  for (var C = -1; C < f.length; C++)
1945
- if (_ = f[C], _ > 0 && (x = t(_, 1), i = parseInt(x[0]), o = parseInt(x[1]), l = parseInt(x[2]), p.push(r.a100[i - 1]), m = C + 1 == 3 ? "a2" : "a1", o > 1 ? p.push(
1945
+ if (_ = f[C], _ > 0 && (p = t(_, 1), i = parseInt(p[0]), o = parseInt(p[1]), l = parseInt(p[2]), x.push(r.a100[i - 1]), m = C + 1 == 3 ? "a2" : "a1", o > 1 ? x.push(
1946
1946
  r.a20[o - 2] + (l > 0 ? " " + r[m][l - 1] : "")
1947
- ) : p.push(
1947
+ ) : x.push(
1948
1948
  o > 0 ? r.a10[l] : r[m][l - 1]
1949
1949
  ), f.length > C + 1)) {
1950
1950
  var y = r["u" + (C + 1)];
1951
- p.push(a(_, y));
1951
+ x.push(a(_, y));
1952
1952
  }
1953
1953
  } else
1954
- p.push(r.null);
1955
- return p.push(a(d, r.ur)), p.push(c + " " + a(c, r.uc)), p.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
1954
+ x.push(r.null);
1955
+ return x.push(a(d, r.ur)), x.push(c + " " + a(c, r.uc)), x.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
1956
1956
  };
1957
1957
  function Ni(e) {
1958
1958
  let t = -1, a = [" kB", " MB", " GB", " TB", "PB", "EB", "ZB", "YB"];
@@ -2089,7 +2089,7 @@ function Fi(e, t, a, r) {
2089
2089
  if (_ === this.gcaseNom)
2090
2090
  return l;
2091
2091
  if (l.match(/[-]/)) {
2092
- for (var u = l.split("-"), f = 0, x = u.length; f < x; f++)
2092
+ for (var u = l.split("-"), f = 0, p = u.length; f < p; f++)
2093
2093
  u[f] = this.word(u[f], c, d, _);
2094
2094
  return u.join("-");
2095
2095
  }
@@ -2103,9 +2103,9 @@ function Fi(e, t, a, r) {
2103
2103
  // выбираем из списка правил первое подходящее и применяем
2104
2104
  pick: function(l, c, d, _, u) {
2105
2105
  let f = l.toLowerCase();
2106
- for (var x = 0, m = _.length; x < m; x++)
2107
- if (this.ruleMatch(f, c, _[x], u))
2108
- return this.applyMod(l, d, _[x]);
2106
+ for (var p = 0, m = _.length; p < m; p++)
2107
+ if (this.ruleMatch(f, c, _[p], u))
2108
+ return this.applyMod(l, d, _[p]);
2109
2109
  return !1;
2110
2110
  },
2111
2111
  // проверяем, подходит ли правило к слову
@@ -2113,10 +2113,10 @@ function Fi(e, t, a, r) {
2113
2113
  if (d.sex === this.sexM && c === this.sexF || d.sex === this.sexF && c !== this.sexF)
2114
2114
  return !1;
2115
2115
  for (var u = 0, f = d.test.length; u < f; u++) {
2116
- var x = _ ? l : l.substr(
2116
+ var p = _ ? l : l.substr(
2117
2117
  Math.max(l.length - d.test[u].length, 0)
2118
2118
  );
2119
- if (x === d.test[u])
2119
+ if (p === d.test[u])
2120
2120
  return !0;
2121
2121
  }
2122
2122
  return !1;
@@ -2145,15 +2145,15 @@ function Fi(e, t, a, r) {
2145
2145
  break;
2146
2146
  }
2147
2147
  for (var u = 0, f = _.length; u < f; u++) {
2148
- var x = _.substr(u, 1);
2149
- switch (x) {
2148
+ var p = _.substr(u, 1);
2149
+ switch (p) {
2150
2150
  case ".":
2151
2151
  break;
2152
2152
  case "-":
2153
2153
  l = l.substr(0, l.length - 1);
2154
2154
  break;
2155
2155
  default:
2156
- l += x;
2156
+ l += p;
2157
2157
  }
2158
2158
  }
2159
2159
  return l;
@@ -2230,7 +2230,7 @@ function zi(e, t) {
2230
2230
  return e > 10 && e < 20 ? t[2] : a > 1 && a < 5 ? t[1] : a === 1 ? t[0] : t[2];
2231
2231
  }
2232
2232
  function Wi(e, t, a) {
2233
- return xe(e, t) ? xe(e, t).n : a || "";
2233
+ return pe(e, t) ? pe(e, t).n : a || "";
2234
2234
  }
2235
2235
  function Ki(e, t) {
2236
2236
  return e.reduce(function(a, r) {
@@ -2260,9 +2260,9 @@ const ye = {
2260
2260
  ObjectByArray: Ki
2261
2261
  };
2262
2262
  function bt(e) {
2263
- let t = e.value, a = (f) => e.type === "multi" ? f.replace(/[^+\d.+-]/g, "") : f.replace(/[^+\d.]/g, ""), r = (f, x) => {
2263
+ let t = e.value, a = (f) => e.type === "multi" ? f.replace(/[^+\d.+-]/g, "") : f.replace(/[^+\d.]/g, ""), r = (f, p) => {
2264
2264
  let m = document.createRange(), g = window.getSelection();
2265
- m.setStart(x.childNodes[0], f), m.collapse(!0), g.removeAllRanges(), g.addRange(m), x.focus();
2265
+ m.setStart(p.childNodes[0], f), m.collapse(!0), g.removeAllRanges(), g.addRange(m), p.focus();
2266
2266
  }, i = (f) => {
2267
2267
  e.onValue({
2268
2268
  value: a(f.target.textContent),
@@ -2278,9 +2278,9 @@ function bt(e) {
2278
2278
  }, c = (f) => {
2279
2279
  f.key === "Enter" && f.preventDefault();
2280
2280
  }, d = (f) => {
2281
- f.preventDefault(), navigator.clipboard.readText().then((x) => {
2282
- x = x.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, x);
2283
- }).catch((x) => {
2281
+ f.preventDefault(), navigator.clipboard.readText().then((p) => {
2282
+ p = p.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, p);
2283
+ }).catch((p) => {
2284
2284
  });
2285
2285
  }, _ = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", u = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "";
2286
2286
  return /* @__PURE__ */ n.jsxs(
@@ -2328,19 +2328,19 @@ function jn({
2328
2328
  b.useEffect(() => {
2329
2329
  f(e);
2330
2330
  }, [e]);
2331
- let x = (v) => {
2331
+ let p = (v) => {
2332
2332
  f(v), t && t({ value: v, name: a });
2333
2333
  }, m = (v) => {
2334
2334
  if (!o || !l)
2335
2335
  return;
2336
- const p = v.target.getBoundingClientRect(), C = p.left, y = p.top;
2336
+ const x = v.target.getBoundingClientRect(), C = x.left, y = x.top;
2337
2337
  He.setListener(
2338
2338
  "form",
2339
2339
  /* @__PURE__ */ n.jsx(
2340
2340
  Yi,
2341
2341
  {
2342
2342
  position: { x: C, y },
2343
- onValue: x,
2343
+ onValue: p,
2344
2344
  date: u
2345
2345
  },
2346
2346
  (/* @__PURE__ */ new Date()).getTime()
@@ -2385,9 +2385,9 @@ const Yi = (e) => {
2385
2385
  d(c + 1);
2386
2386
  }, f = () => {
2387
2387
  d(c - 1);
2388
- }, x = (C) => {
2388
+ }, p = (C) => {
2389
2389
  e.onValue(c + "-" + ye.Number(2, C)), _();
2390
- }, m = (C) => o.y === l.y && o.m === C ? "_FFEB3B" : "", g = Array(12).fill("").map((C, y) => y + 1), v = 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;
2390
+ }, m = (C) => o.y === l.y && o.m === C ? "_FFEB3B" : "", g = Array(12).fill("").map((C, y) => y + 1), v = 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;
2391
2391
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: t ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2392
2392
  /* @__PURE__ */ n.jsx(
2393
2393
  "div",
@@ -2401,7 +2401,7 @@ const Yi = (e) => {
2401
2401
  "div",
2402
2402
  {
2403
2403
  className: Vt.c,
2404
- style: { top: v + "px", left: p + "px" },
2404
+ style: { top: v + "px", left: x + "px" },
2405
2405
  children: [
2406
2406
  /* @__PURE__ */ n.jsxs("s", { children: [
2407
2407
  /* @__PURE__ */ n.jsx("i", { "data-icon": "F021", onClick: () => f() }),
@@ -2415,7 +2415,7 @@ const Yi = (e) => {
2415
2415
  "span",
2416
2416
  {
2417
2417
  onClick: () => {
2418
- x(C);
2418
+ p(C);
2419
2419
  },
2420
2420
  color: m(C),
2421
2421
  children: /* @__PURE__ */ n.jsx("b", { children: ye.Month(C).abc })
@@ -2432,18 +2432,18 @@ const Yi = (e) => {
2432
2432
  function yn(e) {
2433
2433
  let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", [r, i] = b.useState(!1), o = e.edit !== void 0 ? e.edit : !0, l = e.active !== void 0 ? e.active : !0, d = !!(e.hide && (e.value === "" || e.value === void 0)) && !(o && l);
2434
2434
  r = o ? !0 : r;
2435
- let _ = e.placeholder !== void 0 ? e.placeholder : "Заметка пуста", u = (p) => {
2436
- e.onValue && e.onValue({ value: p.target.innerText, name: e.name });
2437
- }, f = (p) => {
2438
- p.preventDefault(), navigator.clipboard.readText().then((C) => {
2435
+ let _ = e.placeholder !== void 0 ? e.placeholder : "Заметка пуста", u = (x) => {
2436
+ e.onValue && e.onValue({ value: x.target.innerText, name: e.name });
2437
+ }, f = (x) => {
2438
+ x.preventDefault(), navigator.clipboard.readText().then((C) => {
2439
2439
  window.document.execCommand("insertText", !1, C);
2440
2440
  }).catch((C) => {
2441
2441
  });
2442
- }, x = (p) => {
2442
+ }, p = (x) => {
2443
2443
  o || i(!r);
2444
2444
  };
2445
- const m = (p) => {
2446
- e.onSave && e.onSave({ value: p.target.innerText, name: e.name });
2445
+ const m = (x) => {
2446
+ e.onSave && e.onSave({ value: x.target.innerText, name: e.name });
2447
2447
  }, g = {};
2448
2448
  g.field = "notes", e.className && (g.className = e.className);
2449
2449
  const v = {};
@@ -2457,7 +2457,7 @@ function yn(e) {
2457
2457
  onBlur: m,
2458
2458
  contentEditable: o && l ? "plaintext-only" : "false",
2459
2459
  ...v,
2460
- onDoubleClick: x,
2460
+ onDoubleClick: p,
2461
2461
  suppressContentEditableWarning: !0,
2462
2462
  children: e.value
2463
2463
  }
@@ -2478,15 +2478,15 @@ function Ct({
2478
2478
  placeholder: _,
2479
2479
  className: u,
2480
2480
  name: f,
2481
- after: x,
2481
+ after: p,
2482
2482
  view: m
2483
2483
  }) {
2484
2484
  r = r !== void 0 ? r : !0, t = t !== void 0 ? t : !0, c = !!(c && (d === "" || d === void 0)) && !(r && t), _ = _ !== void 0 ? _ : "", a = a !== void 0 ? a : 99;
2485
2485
  let v = (C) => {
2486
2486
  e == null || e({ name: f, value: C.currentTarget.value });
2487
2487
  };
2488
- const p = {};
2489
- return p.field = "input", u && (p.className = u), c ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...p, children: [
2488
+ const x = {};
2489
+ return x.field = "input", u && (x.className = u), c ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...x, children: [
2490
2490
  i && /* @__PURE__ */ n.jsx("dt", { children: i }),
2491
2491
  /* @__PURE__ */ n.jsx("dd", { children: /* @__PURE__ */ n.jsx(
2492
2492
  "input",
@@ -2514,16 +2514,16 @@ function wn({
2514
2514
  reload: _ = !1,
2515
2515
  after: u = ""
2516
2516
  }) {
2517
- let f = (p) => {
2517
+ let f = (x) => {
2518
2518
  t && t({
2519
- value: p.target.textContent,
2519
+ value: x.target.textContent,
2520
2520
  name: a,
2521
2521
  reload: _
2522
2522
  });
2523
- }, x = (p) => {
2524
- p.key === "Enter" && p.preventDefault();
2525
- }, m = (p) => {
2526
- p.preventDefault(), navigator.clipboard.readText().then((C) => {
2523
+ }, p = (x) => {
2524
+ x.key === "Enter" && x.preventDefault();
2525
+ }, m = (x) => {
2526
+ x.preventDefault(), navigator.clipboard.readText().then((C) => {
2527
2527
  window.document.execCommand(
2528
2528
  "insertText",
2529
2529
  !1,
@@ -2542,7 +2542,7 @@ function wn({
2542
2542
  {
2543
2543
  onPaste: m,
2544
2544
  onInput: f,
2545
- onKeyDown: x,
2545
+ onKeyDown: p,
2546
2546
  onBlur: ue.Blur,
2547
2547
  contentEditable: c && d ? "plaintext-only" : "false",
2548
2548
  ...v,
@@ -3948,11 +3948,11 @@ function jt({
3948
3948
  active: _ = !0,
3949
3949
  after: u = "",
3950
3950
  show: f = !0,
3951
- view: x,
3951
+ view: p,
3952
3952
  className: m = ""
3953
3953
  }) {
3954
3954
  d = d !== void 0 ? d : !0, _ = _ !== void 0 ? _ : !0, c = !!(c && (e === "" || e === void 0)) && !(d && _), b.useRef(null);
3955
- let v = "+_(___) ___-__-__", p = !0, C = 0, y = ($, S) => {
3955
+ let v = "+_(___) ___-__-__", x = !0, C = 0, y = ($, S) => {
3956
3956
  let Z = document.createRange(), Y = window.getSelection();
3957
3957
  Z.setStart(S.childNodes[0], $), Z.collapse(!0), Y.removeAllRanges(), Y.addRange(Z), S.focus();
3958
3958
  }, T = ($) => {
@@ -3962,13 +3962,13 @@ function jt({
3962
3962
  });
3963
3963
  }, R = ($) => {
3964
3964
  let S = 0, Z = "", Y = $.replace(/\D/g, "");
3965
- Y === "" && (p = !0);
3965
+ Y === "" && (x = !0);
3966
3966
  let $e = Y.split(""), te = "";
3967
3967
  $e.forEach((Le) => {
3968
- p && (te += Le, ot[te] !== void 0 && p ? (p = !1, v = ot[te].mask.replace(new RegExp("[0-9]", "g"), "_"), Z = ot[te].code) : (p && (C = ("" + te).length, v = `+${te}_(___) ___-__-__`.replace(
3968
+ x && (te += Le, ot[te] !== void 0 && x ? (x = !1, v = ot[te].mask.replace(new RegExp("[0-9]", "g"), "_"), Z = ot[te].code) : (x && (C = ("" + te).length, v = `+${te}_(___) ___-__-__`.replace(
3969
3969
  new RegExp("[0-9]", "g"),
3970
3970
  "_"
3971
- ), Z = ""), C > ("" + te).length && (p = !0, v = `+${te}_(___) ___-__-__`.replace(
3971
+ ), Z = ""), C > ("" + te).length && (x = !0, v = `+${te}_(___) ___-__-__`.replace(
3972
3972
  new RegExp("[0-9]", "g"),
3973
3973
  "_"
3974
3974
  ), Z = "")));
@@ -4066,11 +4066,11 @@ function yt({
4066
4066
  after: u,
4067
4067
  view: f
4068
4068
  }) {
4069
- const x = b.useRef();
4069
+ const p = b.useRef();
4070
4070
  i = !!(i && (o === "" || c[o].n === void 0)) && !(a && r);
4071
4071
  let g = o !== void 0 && o !== "" ? c[o].n : o, v = (T) => {
4072
- x.current.textContent = c[T].n, l && l({ value: T, name: _ });
4073
- }, p = (T) => {
4072
+ p.current.textContent = c[T].n, l && l({ value: T, name: _ });
4073
+ }, x = (T) => {
4074
4074
  if (!(a && r))
4075
4075
  return;
4076
4076
  const R = T.target.getBoundingClientRect();
@@ -4087,10 +4087,10 @@ function yt({
4087
4087
  (/* @__PURE__ */ new Date()).getTime()
4088
4088
  )
4089
4089
  );
4090
- }, C = { field: "select" }, y = { onClick: p };
4090
+ }, C = { field: "select" }, y = { onClick: x };
4091
4091
  return d && (y.placeholder = d), u && (y.after = u), a && r && (y.edit = ""), i ? "" : /* @__PURE__ */ n.jsxs("dl", { ...C, children: [
4092
4092
  e && /* @__PURE__ */ n.jsx("dt", { children: e }),
4093
- /* @__PURE__ */ n.jsx("dd", { ...y, ref: x, children: g }),
4093
+ /* @__PURE__ */ n.jsx("dd", { ...y, ref: p, children: g }),
4094
4094
  t && /* @__PURE__ */ n.jsx("em", { children: t })
4095
4095
  ] });
4096
4096
  }
@@ -4147,11 +4147,11 @@ function wt({
4147
4147
  after: _ = "",
4148
4148
  show: u = !0,
4149
4149
  view: f,
4150
- onBlur: x,
4150
+ onBlur: p,
4151
4151
  onSave: m,
4152
4152
  className: g = ""
4153
4153
  }) {
4154
- let v = !!(l && (e === "" || e === void 0)), p = (R) => {
4154
+ let v = !!(l && (e === "" || e === void 0)), x = (R) => {
4155
4155
  t == null || t({ value: R.target.value, name: a });
4156
4156
  }, C = (R) => {
4157
4157
  R.preventDefault(), navigator.clipboard.readText().then((F) => {
@@ -4182,7 +4182,7 @@ function wt({
4182
4182
  name: a,
4183
4183
  autoComplete: "off",
4184
4184
  type: "text",
4185
- onChange: p,
4185
+ onChange: x,
4186
4186
  onPaste: C,
4187
4187
  onContextMenu: y,
4188
4188
  placeholder: r
@@ -4214,8 +4214,8 @@ function St(e) {
4214
4214
  )
4215
4215
  );
4216
4216
  };
4217
- const x = {};
4218
- return c && (x.placeholder = c), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs(
4217
+ const p = {};
4218
+ return c && (p.placeholder = c), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs(
4219
4219
  "dl",
4220
4220
  {
4221
4221
  "data-form": "select",
@@ -4226,7 +4226,7 @@ function St(e) {
4226
4226
  {
4227
4227
  onClick: f,
4228
4228
  "data-edit": (r && i) + "",
4229
- ...x,
4229
+ ...p,
4230
4230
  children: _
4231
4231
  }
4232
4232
  ),
@@ -4259,7 +4259,7 @@ const qi = ({ onValue: e, parent: t, view: a, options: r }) => {
4259
4259
  left: u + "px",
4260
4260
  width: t.width
4261
4261
  },
4262
- children: /* @__PURE__ */ n.jsx("ul", { children: Object.keys(r).map((f, x) => /* @__PURE__ */ n.jsx(
4262
+ children: /* @__PURE__ */ n.jsx("ul", { children: Object.keys(r).map((f, p) => /* @__PURE__ */ n.jsx(
4263
4263
  "li",
4264
4264
  {
4265
4265
  onClick: () => {
@@ -4267,7 +4267,7 @@ const qi = ({ onValue: e, parent: t, view: a, options: r }) => {
4267
4267
  },
4268
4268
  children: r[f]
4269
4269
  },
4270
- x
4270
+ p
4271
4271
  )) })
4272
4272
  }
4273
4273
  )
@@ -4286,12 +4286,12 @@ function ft({
4286
4286
  show: _ = !0,
4287
4287
  active: u = !0,
4288
4288
  after: f = "",
4289
- view: x,
4289
+ view: p,
4290
4290
  module: m,
4291
4291
  item: g,
4292
4292
  className: v = ""
4293
4293
  }) {
4294
- let p = {};
4294
+ let x = {};
4295
4295
  switch (e) {
4296
4296
  case "String":
4297
4297
  return /* @__PURE__ */ n.jsx(
@@ -4300,7 +4300,7 @@ function ft({
4300
4300
  title: o,
4301
4301
  show: _,
4302
4302
  hide: c,
4303
- view: x,
4303
+ view: p,
4304
4304
  edit: d,
4305
4305
  active: u,
4306
4306
  value: t,
@@ -4311,13 +4311,13 @@ function ft({
4311
4311
  }
4312
4312
  );
4313
4313
  case "Select":
4314
- return g && (p = se.getSelect(parseInt(g)) ? se.getSelect(parseInt(g)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ n.jsx(
4314
+ return g && (x = se.getSelect(parseInt(g)) ? se.getSelect(parseInt(g)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ n.jsx(
4315
4315
  yt,
4316
4316
  {
4317
4317
  title: o,
4318
4318
  show: _,
4319
4319
  hide: c,
4320
- view: x,
4320
+ view: p,
4321
4321
  edit: d,
4322
4322
  active: u,
4323
4323
  value: t,
@@ -4325,7 +4325,7 @@ function ft({
4325
4325
  name: r,
4326
4326
  placeholder: i,
4327
4327
  className: v,
4328
- options: p
4328
+ options: x
4329
4329
  }
4330
4330
  );
4331
4331
  case "Users":
@@ -4335,7 +4335,7 @@ function ft({
4335
4335
  title: o,
4336
4336
  show: _,
4337
4337
  hide: c,
4338
- view: x,
4338
+ view: p,
4339
4339
  edit: d,
4340
4340
  active: u,
4341
4341
  value: t,
@@ -4343,7 +4343,7 @@ function ft({
4343
4343
  name: r,
4344
4344
  placeholder: i,
4345
4345
  className: v,
4346
- options: p
4346
+ options: x
4347
4347
  }
4348
4348
  );
4349
4349
  case "Date":
@@ -4353,7 +4353,7 @@ function ft({
4353
4353
  title: o,
4354
4354
  show: _,
4355
4355
  hide: c,
4356
- view: x,
4356
+ view: p,
4357
4357
  edit: d,
4358
4358
  active: u,
4359
4359
  value: t,
@@ -4370,7 +4370,7 @@ function ft({
4370
4370
  title: o,
4371
4371
  show: _,
4372
4372
  hide: c,
4373
- view: x,
4373
+ view: p,
4374
4374
  edit: d,
4375
4375
  active: u,
4376
4376
  value: t,
@@ -4387,7 +4387,7 @@ function ft({
4387
4387
  title: o,
4388
4388
  show: _,
4389
4389
  hide: c,
4390
- view: x,
4390
+ view: p,
4391
4391
  edit: d,
4392
4392
  active: u,
4393
4393
  value: t,
@@ -4404,7 +4404,7 @@ function ft({
4404
4404
  title: o,
4405
4405
  show: _,
4406
4406
  hide: c,
4407
- view: x,
4407
+ view: p,
4408
4408
  edit: d,
4409
4409
  active: u,
4410
4410
  value: t,
@@ -4421,7 +4421,7 @@ function ft({
4421
4421
  title: o,
4422
4422
  show: _,
4423
4423
  hide: c,
4424
- view: x,
4424
+ view: p,
4425
4425
  edit: d,
4426
4426
  active: u,
4427
4427
  value: t,
@@ -4429,7 +4429,7 @@ function ft({
4429
4429
  name: r || "",
4430
4430
  placeholder: i,
4431
4431
  className: v,
4432
- options: p,
4432
+ options: x,
4433
4433
  module: m || ""
4434
4434
  }
4435
4435
  );
@@ -4448,14 +4448,14 @@ function En({
4448
4448
  after: _ = "",
4449
4449
  show: u = !0,
4450
4450
  view: f,
4451
- onBlur: x,
4451
+ onBlur: p,
4452
4452
  onSave: m,
4453
4453
  className: g = ""
4454
4454
  }) {
4455
4455
  let v = !!(l && (e === "" || e === void 0));
4456
4456
  if (!(c && d) && !u || !(c && d) && v)
4457
4457
  return "";
4458
- let p = (R) => {
4458
+ let x = (R) => {
4459
4459
  t && t({ value: R.target.innerText, name: a });
4460
4460
  }, C = (R) => {
4461
4461
  m && m({ value: R.target.innerText, name: a });
@@ -4473,7 +4473,7 @@ function En({
4473
4473
  {
4474
4474
  onPaste: y,
4475
4475
  onBlur: C,
4476
- onInput: p,
4476
+ onInput: x,
4477
4477
  contentEditable: c && d ? "plaintext-only" : "false",
4478
4478
  ...T,
4479
4479
  suppressContentEditableWarning: !0,
@@ -4496,15 +4496,15 @@ function Tn({
4496
4496
  after: _ = "",
4497
4497
  show: u = !0,
4498
4498
  view: f,
4499
- onBlur: x,
4499
+ onBlur: p,
4500
4500
  onSave: m,
4501
4501
  className: g = ""
4502
4502
  }) {
4503
4503
  let v = !!(l && (e === "" || e === void 0));
4504
4504
  if (ye.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), b.useRef(null), !(c && d) && !u || !(c && d) && v)
4505
4505
  return "";
4506
- const p = "__:__", C = new Set("_"), y = ((I) => Array.from(p, (W, $) => C.has(W) ? I = $ + 1 : I))(0), T = [...p].findIndex((I) => C.has(I)), R = new RegExp("\\d", "g"), F = (I) => (I = I.match(R) || [], Array.from(
4507
- p,
4506
+ const x = "__:__", C = new Set("_"), y = ((I) => Array.from(x, (W, $) => C.has(W) ? I = $ + 1 : I))(0), T = [...x].findIndex((I) => C.has(I)), R = new RegExp("\\d", "g"), F = (I) => (I = I.match(R) || [], Array.from(
4507
+ x,
4508
4508
  (W) => (I[0] === W || C.has(W)) && I.shift() || W
4509
4509
  )), A = (I) => {
4510
4510
  const [W, $] = [I.target.selectionStart, I.target.selectionEnd].map(
@@ -4529,7 +4529,7 @@ function Tn({
4529
4529
  inputMode: "numeric",
4530
4530
  onKeyDown: (I) => z = I.key === "Backspace",
4531
4531
  onFocus: A,
4532
- onBlur: (I) => I.target.value === p && (I.target.value = "")
4532
+ onBlur: (I) => I.target.value === x && (I.target.value = "")
4533
4533
  }
4534
4534
  ) }),
4535
4535
  o ? /* @__PURE__ */ n.jsx("em", { children: o }) : ""
@@ -4586,20 +4586,20 @@ function In({
4586
4586
  after: _ = "",
4587
4587
  show: u = !0,
4588
4588
  view: f,
4589
- onBlur: x,
4589
+ onBlur: p,
4590
4590
  onSave: m,
4591
4591
  className: g = ""
4592
4592
  }) {
4593
- const [v, p] = b.useState(
4593
+ const [v, x] = b.useState(
4594
4594
  e !== void 0 ? e.split(",") : []
4595
4595
  );
4596
4596
  b.useEffect(() => {
4597
- e !== void 0 && p(e !== void 0 ? e.split(",") : []);
4597
+ e !== void 0 && x(e !== void 0 ? e.split(",") : []);
4598
4598
  }, [e]);
4599
4599
  let C = () => {
4600
- p([...v, ""]);
4600
+ x([...v, ""]);
4601
4601
  }, y = (z) => {
4602
- v.splice(z, 1), v.length === 0 && v.push(""), p([...v]), x !== void 0 && x({ value: v.join(","), name: a });
4602
+ v.splice(z, 1), v.length === 0 && v.push(""), x([...v]), p !== void 0 && p({ value: v.join(","), name: a });
4603
4603
  }, T = !!(l && (e === "" || e === void 0)), R = (z) => {
4604
4604
  };
4605
4605
  if (!(c && d) && !u || !(c && d) && T)
@@ -4692,15 +4692,15 @@ function Mn({
4692
4692
  active: _ = !0,
4693
4693
  after: u = "",
4694
4694
  view: f,
4695
- modal: x,
4695
+ modal: p,
4696
4696
  module: m,
4697
4697
  options: g,
4698
4698
  className: v
4699
4699
  }) {
4700
- const [p, C] = b.useState(Ji(e)), y = (F) => {
4701
- if (!(c && _) || !x)
4700
+ const [x, C] = b.useState(Ji(e)), y = (F) => {
4701
+ if (!(c && _) || !p)
4702
4702
  return;
4703
- let A = x.split(".");
4703
+ let A = p.split(".");
4704
4704
  Cn.Open(A[1], {
4705
4705
  callback: (K) => {
4706
4706
  t && t({ value: K, name: a }), C(K);
@@ -4708,7 +4708,7 @@ function Mn({
4708
4708
  onValue: t,
4709
4709
  options: g,
4710
4710
  name: a,
4711
- value: p
4711
+ value: x
4712
4712
  });
4713
4713
  }, T = {};
4714
4714
  T.field = "group", v && (T.className = v);
@@ -4741,7 +4741,7 @@ function Mn({
4741
4741
  onClick: open,
4742
4742
  edit: (c && _) + "",
4743
4743
  "data-after": u,
4744
- children: Object.keys(p).map((F) => {
4744
+ children: Object.keys(x).map((F) => {
4745
4745
  var A;
4746
4746
  return /* @__PURE__ */ n.jsx("div", { className: "field_group_item", children: (A = g[F]) == null ? void 0 : A.label }, F);
4747
4747
  })
@@ -4757,8 +4757,8 @@ const Xi = {
4757
4757
  Check: Rn,
4758
4758
  Switch: hn,
4759
4759
  Button: gn,
4760
- Message: pn,
4761
- Generator: xn,
4760
+ Message: xn,
4761
+ Generator: pn,
4762
4762
  Captcha: vn,
4763
4763
  Modal: kt,
4764
4764
  Money: bt,
@@ -4784,7 +4784,7 @@ const Xi = {
4784
4784
  tm: no,
4785
4785
  ta: ao,
4786
4786
  "--body": "_--body_23vuw_132"
4787
- }, E = window.Telegram.WebApp, pe = { is: !1, MainButton: {}, BackButton: {} };
4787
+ }, E = window.Telegram.WebApp, xe = { is: !1, MainButton: {}, BackButton: {} };
4788
4788
  let he = {};
4789
4789
  he.dark = {
4790
4790
  "--tg-theme-bg-color": "#212121",
@@ -4824,7 +4824,7 @@ E.getUser = () => {
4824
4824
  return ((e = E.initDataUnsafe) == null ? void 0 : e.user) === void 0 ? {} : E.initDataUnsafe;
4825
4825
  };
4826
4826
  E.MainButton.set = (e) => {
4827
- pe.is ? pe.BackButton.set(e) : typeof e == "boolean" ? E.MainButton.isVisible = !1 : (E.MainButton.text = e.text, e.color && (E.MainButton.color = e.color), e.textColor && (E.MainButton.textColor = e.textColor), E.MainButton.isVisible = !0, E.MainButton.isActive = e.isActive ?? !0, e.page === void 0 || E.MainButton.onClick(() => {
4827
+ xe.is ? xe.MainButton.set(e) : typeof e == "boolean" ? E.MainButton.isVisible = !1 : (E.MainButton.text = e.text, e.color && (E.MainButton.color = e.color), e.textColor && (E.MainButton.textColor = e.textColor), E.MainButton.isVisible = !0, E.MainButton.isActive = e.isActive ?? !0, e.page === void 0 || E.MainButton.onClick(() => {
4828
4828
  je.setPage(e.page);
4829
4829
  }));
4830
4830
  };
@@ -4842,7 +4842,7 @@ E.BackButton.router = (e) => {
4842
4842
  }), E.BackButton.onClick(E.BackButton.listen[0]));
4843
4843
  };
4844
4844
  E.BackButton.set = (e) => {
4845
- pe.is ? pe.BackButton.set(e) : (E.BackButton.state.push(e), E.BackButton.router(e));
4845
+ xe.is ? xe.BackButton.set(e) : (E.BackButton.state.push(e), E.BackButton.router(e));
4846
4846
  };
4847
4847
  E.Notice = (e, t) => {
4848
4848
  t !== void 0 ? (Ke.Send({ type: e, text: t }), E.HapticFeedback.notificationOccurred(e)) : (Ke.Send(e), E.HapticFeedback.notificationOccurred(e.type));
@@ -4850,7 +4850,7 @@ E.Notice = (e, t) => {
4850
4850
  E.Init = ({ dev: e }) => {
4851
4851
  if (e) {
4852
4852
  let [t, a] = b.useState(!1), [r, i] = b.useState(!1), [o, l] = b.useState("dark"), [c, d] = b.useState(!1), [_, u] = b.useState(!1);
4853
- pe.is = !0, pe.MainButton.set = a, pe.BackButton.set = i, b.useEffect(() => {
4853
+ xe.is = !0, xe.MainButton.set = a, xe.BackButton.set = i, b.useEffect(() => {
4854
4854
  for (let m in he[o])
4855
4855
  document.documentElement.style.setProperty(
4856
4856
  m,
@@ -4861,7 +4861,7 @@ E.Init = ({ dev: e }) => {
4861
4861
  for (let g in he[m])
4862
4862
  document.documentElement.style.setProperty(g, he[m][g]);
4863
4863
  l(m), d(!1);
4864
- }, x = () => {
4864
+ }, p = () => {
4865
4865
  d(!1), u(!0);
4866
4866
  };
4867
4867
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
@@ -4885,10 +4885,10 @@ E.Init = ({ dev: e }) => {
4885
4885
  }
4886
4886
  )
4887
4887
  ] }),
4888
- /* @__PURE__ */ n.jsx("div", { children: t && /* @__PURE__ */ n.jsx("button", { children: "wrewrewrwer" }) }),
4888
+ /* @__PURE__ */ n.jsx("div", { children: t && /* @__PURE__ */ n.jsx("button", { children: t.text }) }),
4889
4889
  c ? /* @__PURE__ */ n.jsxs("div", { className: be.tm, children: [
4890
4890
  /* @__PURE__ */ n.jsxs("ul", { children: [
4891
- /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { onClick: x, children: "Authorization" }) }),
4891
+ /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { onClick: p, children: "Authorization" }) }),
4892
4892
  /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { onClick: () => je.setPage("Add"), children: "Add Page" }) })
4893
4893
  ] }),
4894
4894
  /* @__PURE__ */ n.jsxs("ul", { children: [
@@ -4944,7 +4944,7 @@ const ro = ({ setAuthorization: e }) => {
4944
4944
  ) }),
4945
4945
  /* @__PURE__ */ n.jsx("div", { onClick: r, children: " Сщхранить " })
4946
4946
  ] }) });
4947
- }, _l = ({ children: e, config: t }) => (window.location.pathname === "/clear" && (window.history.pushState({}, "", "/"), X()), N.New(t.crypto), t.defaultModule && ha(t.defaultModule), pa(
4947
+ }, _l = ({ children: e, config: t }) => (window.location.pathname === "/clear" && (window.history.pushState({}, "", "/"), X()), N.New(t.crypto), t.defaultModule && ha(t.defaultModule), xa(
4948
4948
  /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
4949
4949
  /* @__PURE__ */ n.jsx(E.Init, { dev: t.dev }),
4950
4950
  /* @__PURE__ */ n.jsx(ui, { config: t.modal }),
@@ -5010,10 +5010,10 @@ const so = ({
5010
5010
  )), ho = { Switch: mo }, go = ({ label: e, onClick: t, active: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5011
5011
  /* @__PURE__ */ n.jsx("dt", { children: e }),
5012
5012
  /* @__PURE__ */ n.jsx("dd", { children: /* @__PURE__ */ n.jsx(ho.Switch, { onClick: t, active: a }) })
5013
- ] }) }), po = ({ label: e, active: t, options: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5013
+ ] }) }), xo = ({ label: e, active: t, options: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5014
5014
  /* @__PURE__ */ n.jsx("dt", { children: e }),
5015
5015
  /* @__PURE__ */ n.jsx("dd", { role: "info", children: t })
5016
- ] }) }), xo = ({ label: e, info: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5016
+ ] }) }), po = ({ label: e, info: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5017
5017
  /* @__PURE__ */ n.jsx("dt", { children: e }),
5018
5018
  /* @__PURE__ */ n.jsx("dd", { role: "info", children: t })
5019
5019
  ] }) }), vo = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
@@ -5022,7 +5022,7 @@ const so = ({
5022
5022
  ] }) }), ko = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5023
5023
  /* @__PURE__ */ n.jsx("dt", { children: e }),
5024
5024
  /* @__PURE__ */ n.jsx("dd", { children: t })
5025
- ] }) }), bo = { Accordion: uo, Button: fo, Switch: go, Info: xo, Select: po, Component: vo, Node: ko };
5025
+ ] }) }), bo = { Accordion: uo, Button: fo, Switch: go, Info: po, Select: xo, Component: vo, Node: ko };
5026
5026
  function Nn({ list: e, onClick: t, active: a, size: r, view: i }) {
5027
5027
  return /* @__PURE__ */ n.jsx("nav", { children: /* @__PURE__ */ n.jsx("ul", { className: [r, i].join(" "), children: e.map((o) => /* @__PURE__ */ n.jsx(
5028
5028
  Co,
@@ -5414,7 +5414,7 @@ function os(e) {
5414
5414
  e.data.forEach((i) => {
5415
5415
  t[i.id] = { s: i.v, n: i.a }, a[i.id] = i;
5416
5416
  });
5417
- let r = { ...xe(), 901: t };
5417
+ let r = { ...pe(), 901: t };
5418
5418
  cn(a), De(r);
5419
5419
  }
5420
5420
  let ae = {}, H = {}, We = [
@@ -5461,7 +5461,7 @@ H.info = (e) => {
5461
5461
  t.db = e.db, t.id = e.data.id, t.job = e.data.job, t.login = e.data.login, t.name = e.data.p02, t.patronymic = e.data.p03, t.surname = e.data.p01, t.email = e.data.email, t.admin = e.data.menu.includes("99"), _n(t), sn(e.data.menu);
5462
5462
  };
5463
5463
  H.version = async (e) => {
5464
- xt.version.Server(e.data);
5464
+ pt.version.Server(e.data);
5465
5465
  };
5466
5466
  H.online = async (e) => {
5467
5467
  };
@@ -5497,7 +5497,7 @@ H.users = (e) => {
5497
5497
  number: l
5498
5498
  };
5499
5499
  });
5500
- let a = { ...xe(), user: t };
5500
+ let a = { ...pe(), user: t };
5501
5501
  De(a);
5502
5502
  };
5503
5503
  H.api = (e) => {
@@ -5510,13 +5510,13 @@ H.delete = () => {
5510
5510
  X();
5511
5511
  };
5512
5512
  H.select = (e) => {
5513
- let t = { ...xe() };
5513
+ let t = { ...pe() };
5514
5514
  e.data.forEach((a) => {
5515
5515
  t[a.n] = JSON.parse(a.s);
5516
5516
  }), De(t);
5517
5517
  };
5518
5518
  H.job = (e) => {
5519
- let t = { ...xe() }, a = {};
5519
+ let t = { ...pe() }, a = {};
5520
5520
  Object.keys(e.data).forEach((r) => {
5521
5521
  a[r] = { s: 1, n: e.data[r] };
5522
5522
  }), t[1] = a, De(t);
@@ -5592,20 +5592,20 @@ const Se = () => (st || (st = new ds()), st), de = (e, t, a = Se()) => a._withID
5592
5592
  g += t[m][v];
5593
5593
  }), c) {
5594
5594
  let v = {};
5595
- d.forEach((p) => {
5596
- v[p] = t[m][p];
5595
+ d.forEach((x) => {
5596
+ v[x] = t[m][x];
5597
5597
  });
5598
- for (let p in l)
5599
- t[m][l[p]] === void 0 && (ht(), location.reload()), p === "s1" && (v[p] = new Date(t[m][l[p]]).getTime()), p === "s2" && (v[p] = t[m][l[p]]), p === "s3" && (v[p] = t[m][l[p]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
5598
+ for (let x in l)
5599
+ t[m][l[x]] === void 0 && (ht(), location.reload()), x === "s1" && (v[x] = new Date(t[m][l[x]]).getTime()), x === "s2" && (v[x] = t[m][l[x]]), x === "s3" && (v[x] = t[m][l[x]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
5600
5600
  o.push({ id: m, text: g, ...v });
5601
5601
  } else
5602
5602
  o.push({ id: m, text: g });
5603
- }, x = (m) => {
5603
+ }, p = (m) => {
5604
5604
  };
5605
5605
  return _.forEach((m) => {
5606
5606
  u.push(t[m]);
5607
5607
  }), u.forEach((m) => {
5608
- m === void 0 ? (ht(), location.reload()) : (i && f(m.id), c && x(m.id));
5608
+ m === void 0 ? (ht(), location.reload()) : (i && f(m.id), c && p(m.id));
5609
5609
  }), { list: u, search: o, filter: r };
5610
5610
  }, hs = (e, t, a, r = Se()) => {
5611
5611
  if (O[e] === void 0)
@@ -5631,12 +5631,12 @@ const Se = () => (st || (st = new ds()), st), de = (e, t, a = Se()) => a._withID
5631
5631
  }, gs = async (e, t, a, r) => {
5632
5632
  let i, o;
5633
5633
  o = await ie(a), o[e.id] = e, await de(a, o), i !== null && (i = await ie(t), i[e.id] = e.eDate, await de(t, i)), r !== void 0 && r({ type: "load", page: i, base: o });
5634
- }, ps = async (e, t, a, r) => {
5634
+ }, xs = async (e, t, a, r) => {
5635
5635
  let i = await ie(t), o = await ie(a);
5636
5636
  for (let l in e)
5637
5637
  o[l] = e[l], i[l] = e[l].eDate;
5638
5638
  await de(t, i), await de(a, o), r !== void 0 && r({ type: "load", page: i, base: o });
5639
- }, xs = async (e, t, a, r) => {
5639
+ }, ps = async (e, t, a, r) => {
5640
5640
  let i = await ie(t), o = await ie(a);
5641
5641
  e.forEach((l) => delete i[l]), await de(t, i), r !== void 0 && r({ type: "load", page: i, base: o });
5642
5642
  }, vs = async (e, t, a) => {
@@ -5662,8 +5662,8 @@ const Se = () => (st || (st = new ds()), st), de = (e, t, a = Se()) => a._withID
5662
5662
  load: Cs,
5663
5663
  split: ms,
5664
5664
  clear: ht,
5665
- updAll: ps,
5666
- delAll: xs,
5665
+ updAll: xs,
5666
+ delAll: ps,
5667
5667
  delList: vs,
5668
5668
  addList: ks
5669
5669
  }, gl = { setSetting: Oa, getSetting: Aa }, js = "_s_18bde_1", ys = "_loadingB_18bde_1", ws = "_ul_18bde_31", Ss = {
@@ -5707,7 +5707,7 @@ function Ts(e, t) {
5707
5707
  throw new Error();
5708
5708
  }
5709
5709
  }
5710
- function pl({
5710
+ function xl({
5711
5711
  list: e,
5712
5712
  load: t,
5713
5713
  className: a,
@@ -5773,15 +5773,15 @@ function Is(e) {
5773
5773
  function Ms() {
5774
5774
  we.r && we.r();
5775
5775
  }
5776
- const xl = {
5776
+ const pl = {
5777
5777
  Color: bn,
5778
5778
  Date: vt,
5779
5779
  Code: kn,
5780
5780
  Check: Rn,
5781
5781
  Switch: hn,
5782
5782
  Button: gn,
5783
- Message: pn,
5784
- Generator: xn,
5783
+ Message: xn,
5784
+ Generator: pn,
5785
5785
  Captcha: vn,
5786
5786
  Modal: kt,
5787
5787
  Money: bt,
@@ -6172,7 +6172,7 @@ export {
6172
6172
  hl as DataBase,
6173
6173
  He as Events,
6174
6174
  bl as Filter,
6175
- xl as Form,
6175
+ pl as Form,
6176
6176
  ye as Format,
6177
6177
  ml as Icon,
6178
6178
  _l as Init,
@@ -6182,10 +6182,10 @@ export {
6182
6182
  Ke as Notice,
6183
6183
  Cl as Notifications,
6184
6184
  je as Router,
6185
- pl as Scrolling,
6185
+ xl as Scrolling,
6186
6186
  kl as Search,
6187
6187
  dl as Setting,
6188
- xt as Sistym,
6188
+ pt as Sistym,
6189
6189
  mt as Socket,
6190
6190
  se as Store,
6191
6191
  jl as Switch,