elcrm 0.9.161 → 0.9.163

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 Xa = Object.defineProperty;
2
2
  var Va = (e, t, a) => t in e ? Xa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
3
  var ht = (e, t, a) => Va(e, typeof t != "symbol" ? t + "" : t, a);
4
- import g, { createContext as Ln, useContext as Qa, createElement as Bn } from "react";
4
+ import p, { createContext as Ln, useContext as Qa, createElement as Bn } from "react";
5
5
  const $n = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyBhPT57dHJ5e2xldCB0PWF3YWl0IGZldGNoKGAke2EuZGF0YS5ob3N0fSR7YS5kYXRhLmxpbmt9YCx7bWV0aG9kOiJQT1NUIixoZWFkZXJzOnsiQ29udGVudC10eXBlIjoiYXBwbGljYXRpb24vanNvbjtjaGFyc2V0PXV0Zi04IiwuLi5hLmRhdGEuc3NpZD97c3NpZDphLmRhdGEuc3NpZH06e319LGJvZHk6SlNPTi5zdHJpbmdpZnkoYS5kYXRhLmRhdGEpfSk7cG9zdE1lc3NhZ2UoYXdhaXQgdC5qc29uKCkpfWNhdGNoKHQpe3Bvc3RNZXNzYWdlKHtzdGF0dXM6ImVycm9yIixkYXRhOiJ3b3JrZXIiLG1lc3NhZ2U6dH0pfX19KSgpOwo=", er = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), _n = typeof self < "u" && self.Blob && new Blob([er($n)], { type: "text/javascript;charset=utf-8" });
6
6
  function Fn(e) {
7
7
  let t;
@@ -137,13 +137,13 @@ async function gr(e, t = {}, a = Bt()) {
137
137
  }
138
138
  }
139
139
  function fn(e, t = {}, a = Bt()) {
140
- const [r, s] = g.useState({ status: "load", data: {} }), i = async (o) => {
140
+ const [r, s] = p.useState({ status: "load", data: {} }), i = async (o) => {
141
141
  let d = await $t(e, o, a);
142
142
  if (d.status === "logaut" || d.status === "logout")
143
143
  return An();
144
144
  s(d);
145
145
  };
146
- return g.useEffect(() => {
146
+ return p.useEffect(() => {
147
147
  i(t);
148
148
  }, []), [r.data, i, r.status];
149
149
  }
@@ -223,7 +223,7 @@ const Un = async (e) => window.crypto.subtle.importKey(
223
223
  var pn;
224
224
  ((e) => {
225
225
  e.useConnect = (t, a) => {
226
- const [r, s] = g.useState(!1), [i, o] = g.useState(null);
226
+ const [r, s] = p.useState(!1), [i, o] = p.useState(null);
227
227
  async function d(l = t) {
228
228
  const _ = new Cr();
229
229
  if (ne.isClosed = !1, !l) return o(3);
@@ -293,7 +293,7 @@ var gn;
293
293
  function Er() {
294
294
  if (gn) return Pe;
295
295
  gn = 1;
296
- var e = g, 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 };
296
+ 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 };
297
297
  function o(d, l, _) {
298
298
  var c, m = {}, f = null, h = null;
299
299
  _ !== void 0 && (f = "" + _), l.key !== void 0 && (f = "" + l.key), l.ref !== void 0 && (h = l.ref);
@@ -316,11 +316,11 @@ var Ae = {};
316
316
  var xn;
317
317
  function Ir() {
318
318
  return xn || (xn = 1, process.env.NODE_ENV !== "production" && function() {
319
- var e = g, 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"), d = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), v = Symbol.iterator, p = "@@iterator";
319
+ 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"), d = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), v = Symbol.iterator, g = "@@iterator";
320
320
  function x(u) {
321
321
  if (u === null || typeof u != "object")
322
322
  return null;
323
- var b = v && u[v] || u[p];
323
+ var b = v && u[v] || u[g];
324
324
  return typeof b == "function" ? b : null;
325
325
  }
326
326
  var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
@@ -405,14 +405,14 @@ function Ir() {
405
405
  }
406
406
  return null;
407
407
  }
408
- var M = Object.assign, W = 0, Q, oe, je, Re, Be, Ye, Yt;
408
+ var M = Object.assign, W = 0, Q, le, je, Re, Be, Ye, Yt;
409
409
  function qt() {
410
410
  }
411
411
  qt.__reactDisabledLog = !0;
412
412
  function wa() {
413
413
  {
414
414
  if (W === 0) {
415
- Q = console.log, oe = console.info, je = console.warn, Re = console.error, Be = console.group, Ye = console.groupCollapsed, Yt = console.groupEnd;
415
+ Q = console.log, le = console.info, je = console.warn, Re = console.error, Be = console.group, Ye = console.groupCollapsed, Yt = console.groupEnd;
416
416
  var u = {
417
417
  configurable: !0,
418
418
  enumerable: !0,
@@ -445,7 +445,7 @@ function Ir() {
445
445
  value: Q
446
446
  }),
447
447
  info: M({}, u, {
448
- value: oe
448
+ value: le
449
449
  }),
450
450
  warn: M({}, u, {
451
451
  value: je
@@ -920,8 +920,8 @@ const Dr = "_notice_13j98_2", Rr = "_error_13j98_11", Nr = "_success_13j98_14",
920
920
  };
921
921
  let pe = {};
922
922
  function Oe({ data: e }) {
923
- let [t, a] = g.useState("show");
924
- g.useEffect(() => {
923
+ let [t, a] = p.useState("show");
924
+ p.useEffect(() => {
925
925
  e.hide && (setTimeout(function() {
926
926
  a("hide");
927
927
  }, 1800), setTimeout(function() {
@@ -953,8 +953,8 @@ function Oe({ data: e }) {
953
953
  ] });
954
954
  }
955
955
  function Br({ data: e }) {
956
- let [t, a] = g.useState("show");
957
- return g.useEffect(() => {
956
+ let [t, a] = p.useState("show");
957
+ return p.useEffect(() => {
958
958
  e.hide && (setTimeout(function() {
959
959
  a("hide");
960
960
  }, 1800), setTimeout(function() {
@@ -998,7 +998,7 @@ Ee.success = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "
998
998
  var me;
999
999
  ((e) => {
1000
1000
  function t() {
1001
- let [l, _] = g.useState([]);
1001
+ let [l, _] = p.useState([]);
1002
1002
  return pe.set = (c) => {
1003
1003
  _([...l, c]);
1004
1004
  }, pe.del = (c) => {
@@ -1090,7 +1090,7 @@ const Zr = ({ data: e, callback: t, cancel: a }) => (e.button = e.button === voi
1090
1090
  var Ke;
1091
1091
  ((e) => {
1092
1092
  function t() {
1093
- let [s, i] = g.useState("");
1093
+ let [s, i] = p.useState("");
1094
1094
  return Ue.set = (o) => i(o), Ue.del = () => i(""), /* @__PURE__ */ n.jsx(n.Fragment, { children: s });
1095
1095
  }
1096
1096
  e.Init = t;
@@ -1101,7 +1101,7 @@ var Ke;
1101
1101
  }
1102
1102
  e.Send = a;
1103
1103
  function r({ text: s, type: i, button: o }) {
1104
- let [d, l] = g.useState(!1), _ = { active: i };
1104
+ let [d, l] = p.useState(!1), _ = { active: i };
1105
1105
  const c = () => {
1106
1106
  if (o) {
1107
1107
  if (o.onClick)
@@ -1184,27 +1184,27 @@ function gs({ children: e }) {
1184
1184
  function xs({ children: e }) {
1185
1185
  return /* @__PURE__ */ n.jsx("div", { className: re.g, children: e });
1186
1186
  }
1187
- const le = {};
1187
+ const ce = {};
1188
1188
  function vs(e) {
1189
- return e && (le.s = e), le.s;
1189
+ return e && (ce.s = e), ce.s;
1190
1190
  }
1191
1191
  function Cs(e) {
1192
- return e && (le.a = e), le.a;
1192
+ return e && (ce.a = e), ce.a;
1193
1193
  }
1194
1194
  function js(e) {
1195
- return e && (le.c = e), le.c;
1195
+ return e && (ce.c = e), ce.c;
1196
1196
  }
1197
1197
  function ys(e) {
1198
- return e && (le.h = e), le.h;
1198
+ return e && (ce.h = e), ce.h;
1199
1199
  }
1200
1200
  function ks(e) {
1201
- return e && (le.i = e), le.i;
1201
+ return e && (ce.i = e), ce.i;
1202
1202
  }
1203
1203
  function ws(e) {
1204
- return e && (le.d = e), le.d;
1204
+ return e && (ce.d = e), ce.d;
1205
1205
  }
1206
1206
  function at(e) {
1207
- return le.i(e);
1207
+ return ce.i(e);
1208
1208
  }
1209
1209
  let Qe = {};
1210
1210
  function bs({ children: e }) {
@@ -1213,7 +1213,7 @@ function bs({ children: e }) {
1213
1213
  var De;
1214
1214
  ((e) => {
1215
1215
  function t() {
1216
- let [l, _] = g.useState([]);
1216
+ let [l, _] = p.useState([]);
1217
1217
  return Qe.x = (c) => {
1218
1218
  _(c ? l.filter((m) => m.key !== c) : []);
1219
1219
  }, Qe.add = (c, m = Date.now()) => {
@@ -1228,8 +1228,8 @@ var De;
1228
1228
  }
1229
1229
  e.Open = a;
1230
1230
  function r({ type: l, name: _, params: c }) {
1231
- let [m, f] = g.useState(null);
1232
- return g.useEffect(() => {
1231
+ let [m, f] = p.useState(null);
1232
+ return p.useEffect(() => {
1233
1233
  at(`${l}/modal/${_}.tsx`).then((h) => {
1234
1234
  f(h.default.Icon(c));
1235
1235
  });
@@ -1260,9 +1260,9 @@ var De;
1260
1260
  size: f = "m",
1261
1261
  className: h = "",
1262
1262
  shake: v = !0,
1263
- menu: p
1263
+ menu: g
1264
1264
  }) {
1265
- const [x, y] = g.useState(!0), j = g.useRef(), D = (N) => {
1265
+ const [x, y] = p.useState(!0), j = p.useRef(), D = (N) => {
1266
1266
  if (c) {
1267
1267
  if (c.onClick)
1268
1268
  return N(!1), c.onClick({ setOpen: y });
@@ -1304,7 +1304,7 @@ var De;
1304
1304
  },
1305
1305
  C
1306
1306
  )) }),
1307
- p
1307
+ g
1308
1308
  ] }),
1309
1309
  /* @__PURE__ */ n.jsx(
1310
1310
  "div",
@@ -1352,8 +1352,8 @@ const Ss = ({
1352
1352
  update: r,
1353
1353
  textAlign: s
1354
1354
  }) => {
1355
- const i = g.useRef(null);
1356
- return g.useEffect(() => {
1355
+ const i = p.useRef(null);
1356
+ return p.useEffect(() => {
1357
1357
  const o = i.current;
1358
1358
  o.style.opacity = "0", o.style.width = "auto", o.style.left = "0px", o.style.top = "0px";
1359
1359
  let d = {
@@ -1384,7 +1384,7 @@ const Ss = ({
1384
1384
  var kt;
1385
1385
  ((e) => {
1386
1386
  e.Init = () => {
1387
- let [t, a] = g.useState("");
1387
+ let [t, a] = p.useState("");
1388
1388
  return Ze.set = (r) => a(r), Ze.del = () => a(""), /* @__PURE__ */ n.jsx(n.Fragment, { children: t });
1389
1389
  }, e.Text = ({
1390
1390
  content: t,
@@ -1504,7 +1504,7 @@ var ee;
1504
1504
  }
1505
1505
  e.Reset = a;
1506
1506
  function r() {
1507
- const [C, w] = g.useState(i()), S = (P) => {
1507
+ const [C, w] = p.useState(i()), S = (P) => {
1508
1508
  w(P);
1509
1509
  };
1510
1510
  return Z.page = S, [C];
@@ -1524,7 +1524,7 @@ var ee;
1524
1524
  e.isPage = o;
1525
1525
  function d(C) {
1526
1526
  if (typeof C != "function") {
1527
- const [w, S] = g.useState(
1527
+ const [w, S] = p.useState(
1528
1528
  C || _()
1529
1529
  ), P = (E) => {
1530
1530
  S(E);
@@ -1548,7 +1548,7 @@ var ee;
1548
1548
  e.isModule = c;
1549
1549
  function m(C) {
1550
1550
  if (typeof C != "function") {
1551
- const [w, S] = g.useState(C || h());
1551
+ const [w, S] = p.useState(C || h());
1552
1552
  return Z.tabs = S, [w];
1553
1553
  } else
1554
1554
  Z.tabs = C;
@@ -1570,16 +1570,16 @@ var ee;
1570
1570
  return $.tab === C;
1571
1571
  }
1572
1572
  e.isTabs = v;
1573
- function p(C) {
1573
+ function g(C) {
1574
1574
  if (typeof C != "function") {
1575
- const [w, S] = g.useState(C || j()), P = (E) => {
1575
+ const [w, S] = p.useState(C || j()), P = (E) => {
1576
1576
  S(E);
1577
1577
  };
1578
1578
  return Z.id = P, [w];
1579
1579
  } else
1580
1580
  Z.id = C;
1581
1581
  }
1582
- e.useId = p;
1582
+ e.useId = g;
1583
1583
  function x(C) {
1584
1584
  Z.id = C;
1585
1585
  }
@@ -1725,14 +1725,14 @@ const Ls = (e) => {
1725
1725
  u3: ["тысяча", "тысячи", "тысяч"],
1726
1726
  u2: ["миллион", "миллиона", "миллионов"],
1727
1727
  u1: ["миллиард", "миллиарда", "миллиардов"]
1728
- }, s, i, o, d, x, l, _, p, c, m, f, h;
1728
+ }, s, i, o, d, x, l, _, g, c, m, f, h;
1729
1729
  c = parseFloat(e).toFixed(2).split("."), l = c[0], d = c[1];
1730
1730
  var v = 12 - l.length;
1731
1731
  if (v < 0)
1732
1732
  return !1;
1733
- for (var p = []; v--; )
1734
- p.push("0");
1735
- l = p.join("") + l;
1733
+ for (var g = []; v--; )
1734
+ g.push("0");
1735
+ l = g.join("") + l;
1736
1736
  var x = [];
1737
1737
  if (l > 0) {
1738
1738
  m = t(l, 3);
@@ -2027,12 +2027,17 @@ function zs() {
2027
2027
  return Ft;
2028
2028
  }
2029
2029
  function Hs(e) {
2030
- const [t, a] = g.useState(!1);
2031
- return localStorage.getItem("d") ? (async () => await ee.Load(Ft) && a(!0))() : (["a", "b", "c", "d", "e", "m", "u", "s", "q", "p"].forEach(
2032
- (s) => localStorage.removeItem(s)
2033
- ), ["f"].forEach((s) => sessionStorage.removeItem(s)), ee.Reset(), a(!0)), t ? e : "";
2034
- }
2035
- function ce() {
2030
+ const [t, a] = p.useState(!1);
2031
+ return p.useEffect(() => {
2032
+ localStorage.getItem("d") ? (async () => {
2033
+ if (await ee.Load(Ft)) return a(!0);
2034
+ oe();
2035
+ })() : (["a", "b", "c", "d", "e", "m", "u", "s", "q", "p"].forEach(
2036
+ (s) => localStorage.removeItem(s)
2037
+ ), ["f"].forEach((s) => sessionStorage.removeItem(s)), ee.Reset(), a(!0));
2038
+ }, []), t ? e : "";
2039
+ }
2040
+ function oe() {
2036
2041
  ["a", "b", "c", "d", "e", "m", "u", "s", "q", "p", "t"].forEach(
2037
2042
  (e) => localStorage.removeItem(e)
2038
2043
  ), ["f"].forEach((e) => sessionStorage.removeItem(e)), window.history.pushState({}, "", "/"), window.location.reload();
@@ -2058,16 +2063,16 @@ function Qs() {
2058
2063
  let e = localStorage.getItem("p");
2059
2064
  if (e !== "" && e !== "undefined" && e !== null) {
2060
2065
  let t = A.deCode(e);
2061
- return t || ce(), t;
2066
+ return t || oe(), t;
2062
2067
  } else
2063
- return ce(), !1;
2068
+ return oe(), !1;
2064
2069
  }
2065
2070
  async function ei(e, t) {
2066
2071
  jn.data[e] = t, localStorage.setItem("s", await A.enCode(jn.data));
2067
2072
  }
2068
2073
  function ti(e) {
2069
2074
  let t = localStorage.getItem("s");
2070
- return t === null ? {} : (t = A.deCode(t), t ? e !== void 0 ? t[e] : t : ce());
2075
+ return t === null ? {} : (t = A.deCode(t), t ? e !== void 0 ? t[e] : t : oe());
2071
2076
  }
2072
2077
  async function ni(e) {
2073
2078
  localStorage.setItem("m", await A.enCode({ data: e }));
@@ -2078,7 +2083,7 @@ function ai() {
2078
2083
  let t = localStorage.getItem("m");
2079
2084
  if (t === null) return !1;
2080
2085
  let a = A.deCode(t);
2081
- a || ce();
2086
+ a || oe();
2082
2087
  const r = (i, o) => {
2083
2088
  let d = o + "";
2084
2089
  for (; d.length < i; ) d = "0" + d;
@@ -2086,7 +2091,7 @@ function ai() {
2086
2091
  };
2087
2092
  return a.data.split(",").map((i) => "M" + r(2, i));
2088
2093
  } else
2089
- return ce(), !1;
2094
+ return oe(), !1;
2090
2095
  }
2091
2096
  function ri(e) {
2092
2097
  }
@@ -2106,9 +2111,9 @@ async function Hn(e, t) {
2106
2111
  let a = localStorage.getItem("c");
2107
2112
  if (a !== "" && a !== "undefined" && a !== null) {
2108
2113
  let s = await A.deCode(a);
2109
- return s || ce(), e === void 0 ? s : t ? (r = s[e][t]) == null ? void 0 : r.n : s[e];
2114
+ return s || oe(), e === void 0 ? s : t ? (r = s[e][t]) == null ? void 0 : r.n : s[e];
2110
2115
  } else
2111
- return ce(), !1;
2116
+ return oe(), !1;
2112
2117
  }
2113
2118
  async function ii(e) {
2114
2119
  xe.data = e, localStorage.setItem("q", await A.enCode(xe.data));
@@ -2140,9 +2145,9 @@ async function fi(e) {
2140
2145
  let t = localStorage.getItem("u");
2141
2146
  if (t !== "" && t !== "undefined" && t !== null) {
2142
2147
  let a = await A.deCode(t);
2143
- return a || ce(), e ? a[e] : a;
2148
+ return a || oe(), e ? a[e] : a;
2144
2149
  } else
2145
- return ce(), !1;
2150
+ return oe(), !1;
2146
2151
  }
2147
2152
  function mi() {
2148
2153
  let e = localStorage.getItem("u");
@@ -2156,7 +2161,7 @@ function hi() {
2156
2161
  if (e !== "" && e !== "undefined" && e !== null)
2157
2162
  try {
2158
2163
  let t = A.deCode(e);
2159
- return t || ce(), t;
2164
+ return t || oe(), t;
2160
2165
  } catch {
2161
2166
  return {};
2162
2167
  }
@@ -2193,11 +2198,11 @@ async function Ci(e) {
2193
2198
  let t = localStorage.getItem("t");
2194
2199
  if (t !== "" && t !== "undefined" && t !== null) {
2195
2200
  let a = await A.deCode(t);
2196
- return a || ce(), Object.keys(a).forEach((r) => {
2201
+ return a || oe(), Object.keys(a).forEach((r) => {
2197
2202
  _e[r] = a[r];
2198
2203
  }), e ? _e[e] : _e;
2199
2204
  } else
2200
- return ce(), {};
2205
+ return oe(), {};
2201
2206
  } else
2202
2207
  return e ? _e[e] : _e;
2203
2208
  }
@@ -2401,8 +2406,8 @@ const H = {
2401
2406
  H[e] = t;
2402
2407
  }
2403
2408
  }, Ai = ({ before: e, from: t = 0, to: a, secund: r = 3 }) => {
2404
- const s = g.useRef();
2405
- return g.useEffect(() => {
2409
+ const s = p.useRef();
2410
+ return p.useEffect(() => {
2406
2411
  s.s = !0;
2407
2412
  const i = 1e3, o = a / (r * 10);
2408
2413
  s.n = 0;
@@ -2424,7 +2429,7 @@ const H = {
2424
2429
  setPORT: Vs,
2425
2430
  setAUTH: Js,
2426
2431
  getAUTH: Xs,
2427
- Logaut: ce,
2432
+ Logaut: oe,
2428
2433
  setMenu: ni,
2429
2434
  getMenu: ai,
2430
2435
  useSort: ri,
@@ -2569,7 +2574,7 @@ const to = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2569
2574
  search: !1,
2570
2575
  revers: !0
2571
2576
  }), lo = () => {
2572
- let [e, t] = g.useState([]);
2577
+ let [e, t] = p.useState([]);
2573
2578
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ n.jsxs("div", { className: "upload view", children: [
2574
2579
  /* @__PURE__ */ n.jsxs("div", { className: "--head", children: [
2575
2580
  /* @__PURE__ */ n.jsx("b", { children: "Загрузки" }),
@@ -2591,7 +2596,7 @@ const to = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2591
2596
  dir: r
2592
2597
  }) => {
2593
2598
  t = t || "Файлы";
2594
- const [s, i] = g.useReducer(io, {}, oo), o = () => {
2599
+ const [s, i] = p.useReducer(io, {}, oo), o = () => {
2595
2600
  De.Add(
2596
2601
  /* @__PURE__ */ n.jsx(
2597
2602
  _o,
@@ -2604,7 +2609,7 @@ const to = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2604
2609
  )
2605
2610
  );
2606
2611
  };
2607
- return g.useEffect(() => {
2612
+ return p.useEffect(() => {
2608
2613
  }, [e, r]), /* @__PURE__ */ n.jsxs(In.O, { children: [
2609
2614
  " ",
2610
2615
  /* @__PURE__ */ n.jsx(
@@ -2637,12 +2642,12 @@ const to = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2637
2642
  ] }) : s.list.length === 0 ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : s.list.map((d, l) => /* @__PURE__ */ n.jsx(uo, { dispatch: i, data: d }, l)) })
2638
2643
  ] });
2639
2644
  }, _o = ({ id: e, dir: t, dispatch: a }) => {
2640
- let [r, s] = g.useState(!0), i = g.useRef(null), o = (_) => {
2645
+ let [r, s] = p.useState(!0), i = p.useRef(null), o = (_) => {
2641
2646
  _.preventDefault(), _.stopPropagation();
2642
2647
  }, d = (_) => {
2643
2648
  }, l = (_) => {
2644
2649
  };
2645
- return g.useEffect(() => {
2650
+ return p.useEffect(() => {
2646
2651
  let _ = i.current;
2647
2652
  ["dragenter", "dragover", "dragleave", "drop"].forEach((c) => {
2648
2653
  _.addEventListener(c, o, !1), document.body.addEventListener(c, o, !1);
@@ -2739,8 +2744,8 @@ q.list = hi();
2739
2744
  q.active = null;
2740
2745
  const fo = () => {
2741
2746
  var s;
2742
- let [e, t] = g.useState([]), [a, r] = g.useState(Pt.getSetting("s03"));
2743
- return g.useEffect(() => {
2747
+ let [e, t] = p.useState([]), [a, r] = p.useState(Pt.getSetting("s03"));
2748
+ return p.useEffect(() => {
2744
2749
  (async () => {
2745
2750
  let i = Object.keys(q.list);
2746
2751
  if (i.length !== 0) {
@@ -2776,10 +2781,10 @@ const fo = () => {
2776
2781
  a === 1 && e.length !== 0 ? "bottom" : ""
2777
2782
  ), a !== 0 ? /* @__PURE__ */ n.jsx(n.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ n.jsx("div", { className: "bookmarks", children: e.map((i) => i.item) }) : "" }) : "";
2778
2783
  }, mo = ({ id: e, type: t, name: a }) => {
2779
- let r = t + "-" + e, [s, i] = g.useState(
2784
+ let r = t + "-" + e, [s, i] = p.useState(
2780
2785
  q.list[r] !== void 0
2781
2786
  );
2782
- g.useEffect(() => {
2787
+ p.useEffect(() => {
2783
2788
  i(q.list[r] !== void 0);
2784
2789
  }, [r]);
2785
2790
  let o = () => {
@@ -2908,8 +2913,8 @@ Y.Run = async (e) => {
2908
2913
  };
2909
2914
  let We = {};
2910
2915
  function po() {
2911
- let [e, t] = g.useState([]), a = g.useRef(null);
2912
- return g.useEffect(() => {
2916
+ let [e, t] = p.useState([]), a = p.useRef(null);
2917
+ return p.useEffect(() => {
2913
2918
  }, []), We.set = (r) => {
2914
2919
  t([...e, r]);
2915
2920
  }, We.del = () => {
@@ -2929,8 +2934,8 @@ function go(e, t) {
2929
2934
  });
2930
2935
  }
2931
2936
  function xo({ id: e, type: t }) {
2932
- const [a, r] = g.useState({}), [s, i] = g.useState(t);
2933
- g.useEffect(() => {
2937
+ const [a, r] = p.useState({}), [s, i] = p.useState(t);
2938
+ p.useEffect(() => {
2934
2939
  r(ke.getSelect("user")[e]);
2935
2940
  }, []), Y.useListener((l) => {
2936
2941
  switch (l.type) {
@@ -3036,7 +3041,7 @@ function Co({ color: e, size: t, name: a }) {
3036
3041
  return /* @__PURE__ */ n.jsx("svg", { width: t, height: t, color: e, children: /* @__PURE__ */ n.jsx("use", { href: `#${a}` }) });
3037
3042
  }
3038
3043
  function jo() {
3039
- let [e, t] = g.useState([]);
3044
+ let [e, t] = p.useState([]);
3040
3045
  if (Et.x = () => {
3041
3046
  t([]);
3042
3047
  }, Et.add = (r) => {
@@ -3061,7 +3066,7 @@ const yo = (e, t) => {
3061
3066
  }, qn = Ln(
3062
3067
  localStorage.getItem("lang") || navigator.language
3063
3068
  ), ko = ({ children: e }) => {
3064
- const [t, a] = g.useState(
3069
+ const [t, a] = p.useState(
3065
3070
  localStorage.getItem("lang") || navigator.language
3066
3071
  );
3067
3072
  return tt.update = a, /* @__PURE__ */ n.jsx(qn.Provider, { value: It[t] || It[Dt], children: e });
@@ -3083,8 +3088,8 @@ function Eo(e, t) {
3083
3088
  }
3084
3089
  const we = {};
3085
3090
  function Io(e, t) {
3086
- const [a, r] = g.useState(t);
3087
- return g.useEffect(() => {
3091
+ const [a, r] = p.useState(t);
3092
+ return p.useEffect(() => {
3088
3093
  if (we[e]) return we[e].push(r);
3089
3094
  we[e] = [r];
3090
3095
  }, []), [a];
@@ -3098,7 +3103,7 @@ function Ro(e, t) {
3098
3103
  }
3099
3104
  const ve = { setListener: Eo, useListener: At, setEmitter: Ro, useEmitter: Io, subEmitter: Do };
3100
3105
  function No() {
3101
- let [e, t] = g.useState([]);
3106
+ let [e, t] = p.useState([]);
3102
3107
  return ve.useListener("form", (a) => {
3103
3108
  t([a]);
3104
3109
  }), /* @__PURE__ */ n.jsx(n.Fragment, { children: e.map((a) => a) });
@@ -3108,11 +3113,11 @@ const To = ({ children: e, lang: t }) => Hs(
3108
3113
  /* @__PURE__ */ n.jsx(De.Init, {}),
3109
3114
  /* @__PURE__ */ n.jsx(me.Init, {}),
3110
3115
  /* @__PURE__ */ n.jsx(Ke.Init, {}),
3116
+ /* @__PURE__ */ n.jsx(kt.Init, {}),
3111
3117
  /* @__PURE__ */ n.jsx(lo, {}),
3112
3118
  /* @__PURE__ */ n.jsx(jo, {}),
3113
3119
  /* @__PURE__ */ n.jsx(No, {}),
3114
3120
  /* @__PURE__ */ n.jsx(po, {}),
3115
- /* @__PURE__ */ n.jsx(kt.Init, {}),
3116
3121
  /* @__PURE__ */ n.jsx(fo, {}),
3117
3122
  e
3118
3123
  ] })
@@ -3123,7 +3128,7 @@ const To = ({ children: e, lang: t }) => Hs(
3123
3128
  payment: Bo
3124
3129
  };
3125
3130
  function Fo() {
3126
- let [e, t] = g.useState({});
3131
+ let [e, t] = p.useState({});
3127
3132
  return !e.active && !e.payment ? "" : /* @__PURE__ */ n.jsx("div", { className: $o.payment, children: "Истек срок оплаты! Доступ доступен до 16.04.2024" });
3128
3133
  }
3129
3134
  const xd = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("div", { className: "app", children: [
@@ -3156,8 +3161,8 @@ const xd = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("div", { className:
3156
3161
  onRef: m,
3157
3162
  awaitText: f = "Ожидайте"
3158
3163
  }) => {
3159
- let [h, v] = g.useState(!1);
3160
- const p = (y) => {
3164
+ let [h, v] = p.useState(!1);
3165
+ const g = (y) => {
3161
3166
  if (e) return e();
3162
3167
  h || (t ? (v(!0), t(v)) : y.preventDefault());
3163
3168
  };
@@ -3173,7 +3178,7 @@ const xd = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("div", { className:
3173
3178
  a && et[a],
3174
3179
  d
3175
3180
  ].join(" "),
3176
- onClick: p,
3181
+ onClick: g,
3177
3182
  children: h ? f : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3178
3183
  _ || "",
3179
3184
  " ",
@@ -3218,7 +3223,7 @@ const xd = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("div", { className:
3218
3223
  className: r,
3219
3224
  after: s
3220
3225
  }) => {
3221
- const [i, o] = g.useState(t);
3226
+ const [i, o] = p.useState(t);
3222
3227
  return /* @__PURE__ */ n.jsxs("div", { className: ["tabs-button", r].join(" "), children: [
3223
3228
  /* @__PURE__ */ n.jsx("ul", { children: e.map((d) => /* @__PURE__ */ n.jsx(
3224
3229
  Xo,
@@ -3274,7 +3279,7 @@ const xd = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("div", { className:
3274
3279
  ] }), Qo = "_setting_dva4m_2", el = {
3275
3280
  setting: Qo
3276
3281
  }, tl = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: el.setting, children: e }), nl = ({ label: e, children: t }) => {
3277
- let [a, r] = g.useState(!1);
3282
+ let [a, r] = p.useState(!1);
3278
3283
  return /* @__PURE__ */ n.jsxs("li", { "data-item": "accordion", children: [
3279
3284
  /* @__PURE__ */ n.jsxs("dl", { onClick: () => r(!a), children: [
3280
3285
  /* @__PURE__ */ n.jsx("dt", { children: e }),
@@ -3327,7 +3332,7 @@ Xn.defaultProps = { size: "M", view: "H" };
3327
3332
  const Cd = { Section: Vo, Main: tl, Item: _l, Tabs: Xn };
3328
3333
  function fl({ value: e, background: t, gradient: a }) {
3329
3334
  let r = 835.24, s = r - e / 100 * r;
3330
- const i = g.useId();
3335
+ const i = p.useId();
3331
3336
  return /* @__PURE__ */ n.jsxs(
3332
3337
  "svg",
3333
3338
  {
@@ -3465,10 +3470,10 @@ const kl = ({ items: e, i: t, icons: a }) => t[0] === "#" ? /* @__PURE__ */ n.js
3465
3470
  ]
3466
3471
  }
3467
3472
  ), wl = ({ icons: e }) => {
3468
- const [t, a] = g.useState(!1), r = g.useRef(null), s = async () => {
3473
+ const [t, a] = p.useState(!1), r = p.useRef(null), s = async () => {
3469
3474
  r.current && (await r.current.prompt(), a(!1));
3470
3475
  };
3471
- return g.useEffect(() => {
3476
+ return p.useEffect(() => {
3472
3477
  window.addEventListener("appinstalled", (i) => {
3473
3478
  }), window.addEventListener("beforeinstallprompt", async (i) => {
3474
3479
  i.preventDefault(), r.current = i, a(!0);
@@ -3486,26 +3491,26 @@ function Qn({
3486
3491
  searchParams: s = ["p01", "p02", "p03"],
3487
3492
  ...i
3488
3493
  }) {
3489
- const [o, d] = g.useState([]), [l, _] = g.useState([]), [c, m] = g.useState(!1), f = async () => {
3494
+ const [o, d] = p.useState([]), [l, _] = p.useState([]), [c, m] = p.useState(!1), f = async () => {
3490
3495
  let h = await Ge.fetch(e, t);
3491
3496
  h.data && h.data.length > 0 && (d(h.data), _(h.data)), m(!0);
3492
3497
  };
3493
3498
  return ve.useListener("list_children", (h) => {
3494
3499
  if (h.action === "edit") {
3495
3500
  let v = l.map(
3496
- (p) => p.id === h.id ? Object.assign(p, { [h.name]: h.value }) : p
3501
+ (g) => g.id === h.id ? Object.assign(g, { [h.name]: h.value }) : g
3497
3502
  );
3498
3503
  d(v), _(v);
3499
3504
  }
3500
3505
  if (h.action === "delete") {
3501
- let v = l.filter((p) => p.id !== h.id);
3506
+ let v = l.filter((g) => g.id !== h.id);
3502
3507
  d(v), _(v);
3503
3508
  }
3504
3509
  }), ve.useListener("search", (h) => {
3505
3510
  d(
3506
3511
  l.filter((v) => ("" + s.map((x) => v[x]).toString()).toLowerCase().includes(h.toLowerCase()))
3507
3512
  );
3508
- }), g.useEffect(() => {
3513
+ }), p.useEffect(() => {
3509
3514
  f(), a && ve.setListener("button", a);
3510
3515
  }, []), c && o.length === 0 ? /* @__PURE__ */ n.jsx("ul", { className: "list-body", children: r }) : /* @__PURE__ */ n.jsx("ul", { className: "list-body", children: o.map((h, v) => /* @__PURE__ */ n.jsx(i.item, { data: h, count: v + 1 }, h.id)) });
3511
3516
  }
@@ -3527,7 +3532,7 @@ function El(e, t) {
3527
3532
  }
3528
3533
  }
3529
3534
  function Il() {
3530
- const [e, t] = g.useReducer(
3535
+ const [e, t] = p.useReducer(
3531
3536
  El,
3532
3537
  wt() === void 0 ? { active: 1, sort: "<" } : wt()
3533
3538
  );
@@ -3588,12 +3593,12 @@ function Tl(e) {
3588
3593
  }
3589
3594
  const bd = { Init: Il, useValue: Dl, Set: Rl, Run: Nl, Count: Tl }, nt = {}, ea = {};
3590
3595
  function Ml(e) {
3591
- const [t, a] = g.useState({}), r = async (s) => {
3596
+ const [t, a] = p.useState({}), r = async (s) => {
3592
3597
  a(
3593
3598
  Object.keys(nt).reduce((i, o) => (i ? i[o] = nt[o].all : i = {}, i), {})
3594
3599
  );
3595
3600
  };
3596
- return g.useEffect(() => {
3601
+ return p.useEffect(() => {
3597
3602
  e.forEach((s) => nt[s] = { all: 0 }), ea.menu = r, r();
3598
3603
  }, [e]), t;
3599
3604
  }
@@ -3653,16 +3658,16 @@ const Le = () => (xt || (xt = new Bl()), xt), be = (e, t, a = Le()) => a._withID
3653
3658
  }, Pl = (e, t, a = [], r = {}) => {
3654
3659
  let s = a.length !== 0, i = [], o = r.sort, d = Object.keys(r).length !== 0, l = Object.keys(r), _ = Object.keys(e), c = [], m = (h) => {
3655
3660
  let v = "";
3656
- if (a.forEach((p) => {
3657
- v += t[h][p];
3661
+ if (a.forEach((g) => {
3662
+ v += t[h][g];
3658
3663
  }), d) {
3659
- let p = {};
3664
+ let g = {};
3660
3665
  l.forEach((x) => {
3661
- p[x] = t[h][x];
3666
+ g[x] = t[h][x];
3662
3667
  });
3663
3668
  for (let x in o)
3664
- t[h][o[x]] === void 0 && (Tt(), location.reload()), x === "s1" && (p[x] = new Date(t[h][o[x]]).getTime()), x === "s2" && (p[x] = t[h][o[x]]), x === "s3" && (p[x] = t[h][o[x]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
3665
- i.push({ id: h, text: v, ...p });
3669
+ t[h][o[x]] === void 0 && (Tt(), location.reload()), x === "s1" && (g[x] = new Date(t[h][o[x]]).getTime()), x === "s2" && (g[x] = t[h][o[x]]), x === "s3" && (g[x] = t[h][o[x]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
3670
+ i.push({ id: h, text: v, ...g });
3666
3671
  } else
3667
3672
  i.push({ id: h, text: v });
3668
3673
  }, f = (h) => {
@@ -3797,7 +3802,7 @@ function Ql({
3797
3802
  className: a,
3798
3803
  ...r
3799
3804
  }) {
3800
- const s = g.useRef(null), [i, o] = g.useReducer(Vl, {
3805
+ const s = p.useRef(null), [i, o] = p.useReducer(Vl, {
3801
3806
  load: !1,
3802
3807
  list: [],
3803
3808
  data: {},
@@ -3805,7 +3810,7 @@ function Ql({
3805
3810
  wait: !1,
3806
3811
  size: 0
3807
3812
  });
3808
- g.useEffect(() => {
3813
+ p.useEffect(() => {
3809
3814
  s.current.scrollTop = 0, e !== null && o({ type: "load", load: !0, data: e });
3810
3815
  }, [t]);
3811
3816
  let d = () => {
@@ -3881,7 +3886,7 @@ function He({
3881
3886
  show: f = !0,
3882
3887
  maxLength: h,
3883
3888
  onSave: v,
3884
- className: p = "",
3889
+ className: g = "",
3885
3890
  isCopy: x = !0,
3886
3891
  isReload: y = !1
3887
3892
  }) {
@@ -3918,7 +3923,7 @@ function He({
3918
3923
  };
3919
3924
  if (!(l && _) && !f || !(l && _) && j) return "";
3920
3925
  const w = {};
3921
- w.field = "input", p && (w.className = p);
3926
+ w.field = "input", g && (w.className = g);
3922
3927
  const S = {};
3923
3928
  s && (S.placeholder = s), l && _ && (S.edit = "");
3924
3929
  const P = (E) => {
@@ -3947,7 +3952,7 @@ function He({
3947
3952
  ] });
3948
3953
  }
3949
3954
  function aa({ onClick: e, onSend: t, name: a, onRef: r }) {
3950
- let [s, i] = g.useState(!1);
3955
+ let [s, i] = p.useState(!1);
3951
3956
  const o = () => {
3952
3957
  if (e) return e();
3953
3958
  s || (i(!0), t && t(i));
@@ -3975,7 +3980,7 @@ function ra({
3975
3980
  active: l = !0,
3976
3981
  placeholder: _ = "Введите сообщение"
3977
3982
  }) {
3978
- const c = g.useRef({
3983
+ const c = p.useRef({
3979
3984
  value: e,
3980
3985
  timerId: null,
3981
3986
  shift: !1,
@@ -3990,7 +3995,7 @@ function ra({
3990
3995
  j.keyCode === 16 && (c.current.shift = !0), j.keyCode === 13 && !c.current.shift && (j.preventDefault(), c.current.value.length !== 0 && (j.target.textContent = "", r && r(c.current.value), t && t(c.current.value), c.current.value = "", a(!1)));
3991
3996
  }, v = (j) => {
3992
3997
  j.keyCode === 16 && (c.current.shift = !1);
3993
- }, p = (j) => {
3998
+ }, g = (j) => {
3994
3999
  j.preventDefault(), navigator.clipboard.readText().then((D) => {
3995
4000
  if (o) {
3996
4001
  let R = j.target.textContent.length;
@@ -4008,7 +4013,7 @@ function ra({
4008
4013
  return _ && (y.placeholder = _), d && l && (y.contentEditable = K.ContentEditable), /* @__PURE__ */ n.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ n.jsx(
4009
4014
  "dd",
4010
4015
  {
4011
- onPaste: p,
4016
+ onPaste: g,
4012
4017
  onInput: f,
4013
4018
  onKeyUp: v,
4014
4019
  onKeyDown: h,
@@ -4053,28 +4058,28 @@ function ia({
4053
4058
  placeholder: r = "",
4054
4059
  name: s
4055
4060
  }) {
4056
- let i = (v, p) => Number(Math.round(v + Math.random() * (p - v))), o = g.useRef(null), d = g.useRef(null), l = i(1e4, 99999), _ = (v) => {
4061
+ let i = (v, g) => Number(Math.round(v + Math.random() * (g - v))), o = p.useRef(null), d = p.useRef(null), l = i(1e4, 99999), _ = (v) => {
4057
4062
  v.key !== "Backspace" && (v.key === "Enter" && v.preventDefault(), v.target.textContent.length === 5 && v.preventDefault(), /\d/.test(v.key) || v.preventDefault());
4058
4063
  }, c = (v) => {
4059
4064
  t({ value: Number(v.target.textContent) === l, name: s });
4060
4065
  }, m = (v) => {
4061
- v.preventDefault(), navigator.clipboard.readText().then((p) => {
4066
+ v.preventDefault(), navigator.clipboard.readText().then((g) => {
4062
4067
  if (a) {
4063
4068
  let x = v.target.textContent.length;
4064
4069
  if (x >= a) return;
4065
- a -= x, p = p.slice(0, a);
4070
+ a -= x, g = g.slice(0, a);
4066
4071
  }
4067
4072
  window.document.execCommand(
4068
4073
  "insertText",
4069
4074
  !1,
4070
- p.replace(/(\r\n|\n|\r)/gm, " ").replace(/[^0-9]/g, "").substring(0, 5)
4075
+ g.replace(/(\r\n|\n|\r)/gm, " ").replace(/[^0-9]/g, "").substring(0, 5)
4071
4076
  );
4072
- }).catch((p) => {
4077
+ }).catch((g) => {
4073
4078
  });
4074
4079
  };
4075
- g.useEffect(() => {
4076
- const v = o.current, p = v.getContext("2d");
4077
- p.clearRect(0, 0, v.width, v.height), p.font = "30px brush script mt", p.fillStyle = "#eee", p.textAlign = "center", p.fillText(l, 50, 27), d.current.textContent = "";
4080
+ p.useEffect(() => {
4081
+ const v = o.current, g = v.getContext("2d");
4082
+ g.clearRect(0, 0, v.width, v.height), g.font = "30px brush script mt", g.fillStyle = "#eee", g.textAlign = "center", g.fillText(l, 50, 27), d.current.textContent = "";
4078
4083
  }, [l]);
4079
4084
  const f = {};
4080
4085
  f.field = "captcha";
@@ -4114,29 +4119,29 @@ function oa({
4114
4119
  n5: "",
4115
4120
  n6: "",
4116
4121
  code: ""
4117
- }, _ = (p) => {
4118
- if (p.preventDefault(), !r) return;
4119
- p.target.textContent = p.target.textContent.slice(-1).replace(/[^+\d]/g, "");
4120
- let x = window.getSelection(), y = p.target.textContent.length;
4121
- if (l[p.target.id] = p.target.textContent, l.code = l.n1 + "" + l.n2 + l.n3 + l.n4 + l.n5 + l.n6, x.collapse(p.target.firstChild, 1), y === 0) {
4122
- p.target.blur(), p.target.focus();
4122
+ }, _ = (g) => {
4123
+ if (g.preventDefault(), !r) return;
4124
+ g.target.textContent = g.target.textContent.slice(-1).replace(/[^+\d]/g, "");
4125
+ let x = window.getSelection(), y = g.target.textContent.length;
4126
+ if (l[g.target.id] = g.target.textContent, l.code = l.n1 + "" + l.n2 + l.n3 + l.n4 + l.n5 + l.n6, x.collapse(g.target.firstChild, 1), y === 0) {
4127
+ g.target.blur(), g.target.focus();
4123
4128
  return;
4124
4129
  }
4125
- p.target.nextSibling != null && p.target.nextSibling.focus();
4126
- }, c = (p) => {
4127
- if (!r) return p.preventDefault();
4128
- if (p.key === "Enter" && p.preventDefault(), p.key === "Backspace") {
4129
- if (p.preventDefault(), p.target.textContent = "", l[p.target.id] = "", p.target.previousSibling != null) {
4130
- let x = p.target.previousSibling.id.slice(1);
4131
- p.target.previousSibling.textContent = "", l["n" + x] = "", p.target.previousSibling.focus();
4130
+ g.target.nextSibling != null && g.target.nextSibling.focus();
4131
+ }, c = (g) => {
4132
+ if (!r) return g.preventDefault();
4133
+ if (g.key === "Enter" && g.preventDefault(), g.key === "Backspace") {
4134
+ if (g.preventDefault(), g.target.textContent = "", l[g.target.id] = "", g.target.previousSibling != null) {
4135
+ let x = g.target.previousSibling.id.slice(1);
4136
+ g.target.previousSibling.textContent = "", l["n" + x] = "", g.target.previousSibling.focus();
4132
4137
  }
4133
4138
  l.code = l.n1 + "" + l.n2 + l.n3 + l.n4 + l.n5 + l.n6;
4134
4139
  }
4135
- }, m = (p) => {
4136
- if (!r) return p.preventDefault();
4140
+ }, m = (g) => {
4141
+ if (!r) return g.preventDefault();
4137
4142
  if (s)
4138
4143
  i && i({ value: l.code, name: d });
4139
- else if (l.code.length === 6 && (p.target.blur(), i && i({ value: l.code, name: d }), o)) {
4144
+ else if (l.code.length === 6 && (g.target.blur(), i && i({ value: l.code, name: d }), o)) {
4140
4145
  l = {
4141
4146
  n1: "",
4142
4147
  n2: "",
@@ -4151,10 +4156,10 @@ function oa({
4151
4156
  y && (y.textContent = "");
4152
4157
  }
4153
4158
  }
4154
- }, f = (p) => {
4155
- p.target.textContent = "";
4156
- }, h = (p) => {
4157
- p.preventDefault(), navigator.clipboard.readText().then((x) => {
4159
+ }, f = (g) => {
4160
+ g.target.textContent = "";
4161
+ }, h = (g) => {
4162
+ g.preventDefault(), navigator.clipboard.readText().then((x) => {
4158
4163
  var R;
4159
4164
  var y = /\d+/g;
4160
4165
  let j = (R = x.match(y)) == null ? void 0 : R.toString();
@@ -4164,7 +4169,7 @@ function oa({
4164
4169
  let C = document.getElementById("n" + N);
4165
4170
  C && (C.textContent = D[N - 1], l["n" + N] = D[N - 1]);
4166
4171
  }
4167
- if (l.code = l.n1 + "" + l.n2 + l.n3 + l.n4 + l.n5 + l.n6, l.code.length === 6 && (p.target.blur(), i && i({ value: l.code, name: d }), o)) {
4172
+ if (l.code = l.n1 + "" + l.n2 + l.n3 + l.n4 + l.n5 + l.n6, l.code.length === 6 && (g.target.blur(), i && i({ value: l.code, name: d }), o)) {
4168
4173
  l = {
4169
4174
  n1: "",
4170
4175
  n2: "",
@@ -4284,14 +4289,14 @@ function la({
4284
4289
  show: f = !0,
4285
4290
  view: h,
4286
4291
  onSave: v,
4287
- className: p = ""
4292
+ className: g = ""
4288
4293
  }) {
4289
4294
  _ = _ !== void 0 ? _ : !0, c = c !== void 0 ? c : !0;
4290
- let [x, y] = g.useState(t), j = (R) => {
4295
+ let [x, y] = p.useState(t), j = (R) => {
4291
4296
  y(R), a == null || a({ value: R, name: r }), v == null || v({ value: R, name: r });
4292
4297
  };
4293
4298
  const D = {};
4294
- return D.field = "color", p && (D.className = p), /* @__PURE__ */ n.jsx(n.Fragment, { children: h === "icon" ? /* @__PURE__ */ n.jsx(
4299
+ return D.field = "color", g && (D.className = g), /* @__PURE__ */ n.jsx(n.Fragment, { children: h === "icon" ? /* @__PURE__ */ n.jsx(
4295
4300
  "i",
4296
4301
  {
4297
4302
  "data-icon": "F043"
@@ -4334,10 +4339,10 @@ function Ot({
4334
4339
  value: m,
4335
4340
  after: f
4336
4341
  }) {
4337
- let [h, v] = g.useState(
4342
+ let [h, v] = p.useState(
4338
4343
  m === void 0 ? /* @__PURE__ */ new Date() : m
4339
- ), p = !a && r;
4340
- g.useEffect(() => {
4344
+ ), g = !a && r;
4345
+ p.useEffect(() => {
4341
4346
  v(m === void 0 ? /* @__PURE__ */ new Date() : m);
4342
4347
  }, [m]);
4343
4348
  let x = (R) => {
@@ -4363,7 +4368,7 @@ function Ot({
4363
4368
  const j = {};
4364
4369
  j.field = "input", s && (j.className = s);
4365
4370
  const D = {};
4366
- return i && (D.placeholder = i), p ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsx(n.Fragment, { children: l === "icon" ? /* @__PURE__ */ n.jsx(
4371
+ return i && (D.placeholder = i), g ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsx(n.Fragment, { children: l === "icon" ? /* @__PURE__ */ n.jsx(
4367
4372
  "i",
4368
4373
  {
4369
4374
  "data-icon": "F043",
@@ -4389,7 +4394,7 @@ function Ot({
4389
4394
  ] }) });
4390
4395
  }
4391
4396
  const sc = ({ date: e, onValue: t, position: a, max: r, min: s, className: i }) => {
4392
- let [o, d] = g.useState(!0), l = /* @__PURE__ */ new Date(), _ = new Date(e), c = {
4397
+ let [o, d] = p.useState(!0), l = /* @__PURE__ */ new Date(), _ = new Date(e), c = {
4393
4398
  y: parseInt(l.getFullYear()),
4394
4399
  d: parseInt(l.getDate()),
4395
4400
  m: parseInt(l.getMonth()) + 1
@@ -4397,10 +4402,10 @@ const sc = ({ date: e, onValue: t, position: a, max: r, min: s, className: i })
4397
4402
  y: parseInt(_.getFullYear()),
4398
4403
  d: parseInt(_.getDate()),
4399
4404
  m: parseInt(_.getMonth()) + 1
4400
- }, [f, h] = g.useState({ y: m.y, m: m.m }), v = (k) => {
4405
+ }, [f, h] = p.useState({ y: m.y, m: m.m }), v = (k) => {
4401
4406
  let M = k.getDay();
4402
4407
  return M === 0 && (M = 7), M - 1;
4403
- }, p = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"], x = f.m - 1, y = new Date(f.y, x), j = [];
4408
+ }, g = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"], x = f.m - 1, y = new Date(f.y, x), j = [];
4404
4409
  for (let k = 0; k < v(y); k++)
4405
4410
  j.push(0);
4406
4411
  for (; y.getMonth() === x; )
@@ -4479,7 +4484,7 @@ const sc = ({ date: e, onValue: t, position: a, max: r, min: s, className: i })
4479
4484
  ) })
4480
4485
  ] }),
4481
4486
  /* @__PURE__ */ n.jsxs("div", { "grid-calendar": "", children: [
4482
- p.map((k, M) => /* @__PURE__ */ n.jsx("p", { children: k }, "v" + M)),
4487
+ g.map((k, M) => /* @__PURE__ */ n.jsx("p", { children: k }, "v" + M)),
4483
4488
  j.map((k, M) => /* @__PURE__ */ n.jsx("span", { children: k !== 0 && E(k) ? /* @__PURE__ */ n.jsx(
4484
4489
  "b",
4485
4490
  {
@@ -4511,9 +4516,9 @@ function Zt({
4511
4516
  modal: f,
4512
4517
  module: h,
4513
4518
  options: v,
4514
- className: p
4519
+ className: g
4515
4520
  }) {
4516
- let [x, y] = g.useState(e), j = (N) => {
4521
+ let [x, y] = p.useState(e), j = (N) => {
4517
4522
  if (!(d && _) || !f) return;
4518
4523
  let C = f.split(".");
4519
4524
  De.Open(C[0], C[1], {
@@ -4527,7 +4532,7 @@ function Zt({
4527
4532
  });
4528
4533
  };
4529
4534
  const D = {};
4530
- D.field = "input", p && (D.className = p);
4535
+ D.field = "input", g && (D.className = g);
4531
4536
  const R = {};
4532
4537
  return r && (R.placeholder = r), o ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...D, children: [
4533
4538
  s && /* @__PURE__ */ n.jsx("dt", { children: s }),
@@ -4560,7 +4565,7 @@ function Ut({
4560
4565
  view: f,
4561
4566
  type: h,
4562
4567
  onSave: v,
4563
- className: p = "",
4568
+ className: g = "",
4564
4569
  isClear: x = !1
4565
4570
  }) {
4566
4571
  let y = !!(o && (e === "" || e === void 0));
@@ -4595,7 +4600,7 @@ function Ut({
4595
4600
  };
4596
4601
  if (!(d && l) && !c || !(d && l) && y) return "";
4597
4602
  const E = {};
4598
- E.field = "input", p && (E.className = p);
4603
+ E.field = "input", g && (E.className = g);
4599
4604
  const L = {};
4600
4605
  return L.inputMode = "decimal", r && (L.placeholder = r), d && l && (L.edit = ""), /* @__PURE__ */ n.jsxs("dl", { ...E, children: [
4601
4606
  s ? /* @__PURE__ */ n.jsx("dt", { children: s }) : "",
@@ -4631,8 +4636,8 @@ function ca({
4631
4636
  className: _,
4632
4637
  after: c
4633
4638
  }) {
4634
- let [m, f] = g.useState(e);
4635
- g.useEffect(() => {
4639
+ let [m, f] = p.useState(e);
4640
+ p.useEffect(() => {
4636
4641
  f(e);
4637
4642
  }, [e]);
4638
4643
  let h = (x) => {
@@ -4653,14 +4658,14 @@ function ca({
4653
4658
  )
4654
4659
  );
4655
4660
  };
4656
- const p = {};
4657
- return l && (p.placeholder = l), r === "icon" ? /* @__PURE__ */ n.jsx("i", { "data-icon": "F043", onClick: v }) : /* @__PURE__ */ n.jsxs("dl", { children: [
4661
+ const g = {};
4662
+ return l && (g.placeholder = l), r === "icon" ? /* @__PURE__ */ n.jsx("i", { "data-icon": "F043", onClick: v }) : /* @__PURE__ */ n.jsxs("dl", { children: [
4658
4663
  d && /* @__PURE__ */ n.jsx("dt", { children: d }),
4659
4664
  /* @__PURE__ */ n.jsx(
4660
4665
  "dd",
4661
4666
  {
4662
4667
  onClick: v,
4663
- ...p,
4668
+ ...g,
4664
4669
  children: H.Date(m, "mm.yyyy")
4665
4670
  }
4666
4671
  ),
@@ -4668,13 +4673,13 @@ function ca({
4668
4673
  ] });
4669
4674
  }
4670
4675
  const ic = (e) => {
4671
- let [t, a] = g.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
4676
+ let [t, a] = p.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
4672
4677
  y: parseInt(r.getFullYear()),
4673
4678
  m: parseInt(r.getMonth()) + 1
4674
4679
  }, o = {
4675
4680
  y: parseInt(s.getFullYear()),
4676
4681
  m: parseInt(s.getMonth()) + 1
4677
- }, [d, l] = g.useState(o.y), _ = () => {
4682
+ }, [d, l] = p.useState(o.y), _ = () => {
4678
4683
  a(!1);
4679
4684
  }, c = () => {
4680
4685
  l(d + 1);
@@ -4682,7 +4687,7 @@ const ic = (e) => {
4682
4687
  l(d - 1);
4683
4688
  }, f = (y) => {
4684
4689
  e.onValue(d + "-" + H.Number(2, y)), _();
4685
- }, h = (y) => i.y === o.y && i.m === y ? "_FFEB3B" : "", v = Array(12).fill("").map((y, j) => j + 1), p = 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;
4690
+ }, h = (y) => i.y === o.y && i.m === y ? "_FFEB3B" : "", v = Array(12).fill("").map((y, j) => j + 1), g = 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;
4686
4691
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: t ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
4687
4692
  /* @__PURE__ */ n.jsx(
4688
4693
  "div",
@@ -4696,7 +4701,7 @@ const ic = (e) => {
4696
4701
  "div",
4697
4702
  {
4698
4703
  className: ge.c,
4699
- style: { top: p + "px", left: x + "px" },
4704
+ style: { top: g + "px", left: x + "px" },
4700
4705
  children: [
4701
4706
  /* @__PURE__ */ n.jsxs("s", { children: [
4702
4707
  /* @__PURE__ */ n.jsx("i", { onClick: m, children: /* @__PURE__ */ n.jsx(
@@ -4755,10 +4760,10 @@ function da({
4755
4760
  maxLength: f,
4756
4761
  view: h,
4757
4762
  onSave: v,
4758
- className: p = "",
4763
+ className: g = "",
4759
4764
  isCopy: x = !0
4760
4765
  }) {
4761
- let [y, j] = g.useState(!1);
4766
+ let [y, j] = p.useState(!1);
4762
4767
  y = l ? !0 : y;
4763
4768
  let D = (E) => {
4764
4769
  a == null || a({ value: E.target.innerText, name: r });
@@ -4790,7 +4795,7 @@ function da({
4790
4795
  if (d) return /* @__PURE__ */ n.jsx(n.Fragment, {});
4791
4796
  if (!(l && _) && !m) return "";
4792
4797
  const w = {};
4793
- w.field = "notes", p && (w.className = p);
4798
+ w.field = "notes", g && (w.className = g);
4794
4799
  const S = {};
4795
4800
  s && (S.placeholder = s), l && _ && (S.edit = ""), y && (S.open = "");
4796
4801
  const P = (E) => {
@@ -4832,7 +4837,7 @@ function Wt({
4832
4837
  maxLength: f,
4833
4838
  name: h,
4834
4839
  after: v = "",
4835
- before: p = "",
4840
+ before: g = "",
4836
4841
  view: x
4837
4842
  }) {
4838
4843
  s = s !== void 0 ? s : !0, a = a !== void 0 ? a : !0, l = !!(l && (_ === "" || _ === void 0)) && !(s && a), c = c !== void 0 ? c : "", r = r !== void 0 ? r : 99;
@@ -4863,7 +4868,7 @@ function Wt({
4863
4868
  let P = {};
4864
4869
  return s && a ? (P.edit = "true", P.contentEditable = K.ContentEditable) : P.contentEditable = "false", P.inputMode = "decimal", c && (P.placeholder = c), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...S, children: [
4865
4870
  i && /* @__PURE__ */ n.jsx("dt", { children: i }),
4866
- p,
4871
+ g,
4867
4872
  /* @__PURE__ */ n.jsx(
4868
4873
  "dd",
4869
4874
  {
@@ -4897,9 +4902,9 @@ function _a({
4897
4902
  isShow: f = !1,
4898
4903
  maxLength: h,
4899
4904
  eyes: v = [],
4900
- after: p = ""
4905
+ after: g = ""
4901
4906
  }) {
4902
- const [x, y] = g.useState(f);
4907
+ const [x, y] = p.useState(f);
4903
4908
  let j = (S) => {
4904
4909
  t && t({
4905
4910
  value: S.target.textContent,
@@ -4944,7 +4949,7 @@ function _a({
4944
4949
  }
4945
4950
  ),
4946
4951
  v[0] && /* @__PURE__ */ n.jsx("i", { onClick: () => y(!x), children: x ? v[1] : v[0] }),
4947
- p,
4952
+ g,
4948
4953
  d ? /* @__PURE__ */ n.jsx("em", { children: d }) : ""
4949
4954
  ] });
4950
4955
  }
@@ -6346,13 +6351,13 @@ function Gt({
6346
6351
  view: f,
6347
6352
  className: h = ""
6348
6353
  }) {
6349
- l = l !== void 0 ? l : !0, _ = _ !== void 0 ? _ : !0, d = !!(d && (e === "" || e === void 0)) && !(l && _), g.useRef(null);
6350
- let p = "+_(___) ___-__-__", x = !0, y = 0, j = (I, k) => {
6354
+ l = l !== void 0 ? l : !0, _ = _ !== void 0 ? _ : !0, d = !!(d && (e === "" || e === void 0)) && !(l && _), p.useRef(null);
6355
+ let g = "+_(___) ___-__-__", x = !0, y = 0, j = (I, k) => {
6351
6356
  let M = document.createRange(), W = window.getSelection();
6352
6357
  M.setStart(k.childNodes[0], I), M.collapse(!0), W.removeAllRanges(), W.addRange(M), k.focus();
6353
6358
  }, D = (I) => {
6354
6359
  let k = N(I.target.textContent);
6355
- I.target.textContent = k.q, k.i = k.q.lastIndexOf(k.v.substr(-1)), k.i < k.q.length && k.q !== p ? k.i++ : k.i = k.q.indexOf("_"), j(k.i, I.target), t && t({ value: k.q.replace(/\D/g, ""), name: r });
6360
+ I.target.textContent = k.q, k.i = k.q.lastIndexOf(k.v.substr(-1)), k.i < k.q.length && k.q !== g ? k.i++ : k.i = k.q.indexOf("_"), j(k.i, I.target), t && t({ value: k.q.replace(/\D/g, ""), name: r });
6356
6361
  }, R = (I) => {
6357
6362
  I.preventDefault(), navigator.clipboard.readText().then((k) => {
6358
6363
  window.document.execCommand("insertText", !1, k);
@@ -6361,18 +6366,18 @@ function Gt({
6361
6366
  }, N = (I) => {
6362
6367
  let k = 0, M = "", W = I.replace(/\D/g, "");
6363
6368
  W === "" && (x = !0);
6364
- let Q = W.split(""), oe = "";
6369
+ let Q = W.split(""), le = "";
6365
6370
  Q.forEach((Be) => {
6366
- x && (oe += Be, vt[oe] !== void 0 && x ? (x = !1, p = vt[oe].mask.replace(new RegExp("[0-9]", "g"), "_"), M = vt[oe].code) : (x && (y = ("" + oe).length, p = `+${oe}_(___) ___-__-__`.replace(
6371
+ x && (le += Be, vt[le] !== void 0 && x ? (x = !1, g = vt[le].mask.replace(new RegExp("[0-9]", "g"), "_"), M = vt[le].code) : (x && (y = ("" + le).length, g = `+${le}_(___) ___-__-__`.replace(
6367
6372
  new RegExp("[0-9]", "g"),
6368
6373
  "_"
6369
- ), M = ""), y > ("" + oe).length && (x = !0, p = `+${oe}_(___) ___-__-__`.replace(
6374
+ ), M = ""), y > ("" + le).length && (x = !0, g = `+${le}_(___) ___-__-__`.replace(
6370
6375
  new RegExp("[0-9]", "g"),
6371
6376
  "_"
6372
6377
  ), M = "")));
6373
6378
  });
6374
- let je = p.replace(/\D/g, "");
6375
- return je.length >= W.length && (W = je), { q: p.replace(/[_\d]/g, function() {
6379
+ let je = g.replace(/\D/g, "");
6380
+ return je.length >= W.length && (W = je), { q: g.replace(/[_\d]/g, function() {
6376
6381
  return W.charAt(k++) || "_";
6377
6382
  }), i: k, v: W, f: M };
6378
6383
  }, C = (I) => {
@@ -6423,7 +6428,7 @@ const ua = ({
6423
6428
  onValue: d,
6424
6429
  maxLength: l = 20
6425
6430
  }) => {
6426
- let _ = 0, c = g.useRef({
6431
+ let _ = 0, c = p.useRef({
6427
6432
  textContent: o
6428
6433
  }), m = () => {
6429
6434
  c.current.textContent.trim().length === 0 && (c.current.textContent = ""), clearTimeout(_), _ = setTimeout(
@@ -6451,7 +6456,7 @@ const ua = ({
6451
6456
  );
6452
6457
  }).catch((D) => {
6453
6458
  });
6454
- }, p = () => {
6459
+ }, g = () => {
6455
6460
  c.current.textContent = c.current.textContent.trim();
6456
6461
  };
6457
6462
  const x = {};
@@ -6466,7 +6471,7 @@ const ua = ({
6466
6471
  onPaste: v,
6467
6472
  onInput: m,
6468
6473
  onKeyDown: h,
6469
- onBlur: p,
6474
+ onBlur: g,
6470
6475
  contentEditable: s && i ? K.ContentEditable : "false",
6471
6476
  ...y,
6472
6477
  suppressContentEditableWarning: !0,
@@ -6495,8 +6500,8 @@ function Kt({
6495
6500
  isReload: v = !1
6496
6501
  }) {
6497
6502
  var P, E;
6498
- const p = g.useRef(), [x, y] = g.useState(i), [j, D] = g.useState(d);
6499
- g.useEffect(() => {
6503
+ const g = p.useRef(), [x, y] = p.useState(i), [j, D] = p.useState(d);
6504
+ p.useEffect(() => {
6500
6505
  y(i), D(d);
6501
6506
  }, [i, d]), s = !!(s && (i === 0 || ((P = j == null ? void 0 : j[i]) == null ? void 0 : P.n) === void 0)) && !(a && r);
6502
6507
  let N = (L) => {
@@ -6522,7 +6527,7 @@ function Kt({
6522
6527
  }, w = { field: "select", className: _ }, S = { onClick: C };
6523
6528
  return l && (S.placeholder = l), m && (S.after = m), a && r && (S.edit = ""), s ? "" : /* @__PURE__ */ n.jsxs("dl", { ...w, children: [
6524
6529
  e && /* @__PURE__ */ n.jsx("dt", { children: e }),
6525
- /* @__PURE__ */ n.jsx("dd", { ...S, ref: p, children: (E = j == null ? void 0 : j[x]) == null ? void 0 : E.n }),
6530
+ /* @__PURE__ */ n.jsx("dd", { ...S, ref: g, children: (E = j == null ? void 0 : j[x]) == null ? void 0 : E.n }),
6526
6531
  Object.keys(j || {}).length !== 0 && /* @__PURE__ */ n.jsx("s", { children: /* @__PURE__ */ n.jsx(
6527
6532
  "svg",
6528
6533
  {
@@ -6547,7 +6552,7 @@ const oc = ({
6547
6552
  options: s,
6548
6553
  order: i
6549
6554
  }) => {
6550
- let [o, d] = g.useState(!0), l = () => {
6555
+ let [o, d] = p.useState(!0), l = () => {
6551
6556
  d(!1);
6552
6557
  }, _ = (f) => {
6553
6558
  d(!1), e(f);
@@ -6601,7 +6606,7 @@ const oc = ({
6601
6606
  function zt(e) {
6602
6607
  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), d = e.placeholder !== void 0 ? e.placeholder : "", l = (h) => {
6603
6608
  c(e.options[h]), e.onValue({ value: h, name: e.name });
6604
- }, [_, c] = g.useState(
6609
+ }, [_, c] = p.useState(
6605
6610
  e.default !== void 0 ? e.options[e.default] : e.default
6606
6611
  ), m = (h) => {
6607
6612
  if (!(r && s)) return;
@@ -6642,7 +6647,7 @@ function zt(e) {
6642
6647
  );
6643
6648
  }
6644
6649
  const cc = ({ onValue: e, parent: t, view: a, options: r }) => {
6645
- let [s, i] = g.useState(!0), o = () => {
6650
+ let [s, i] = p.useState(!0), o = () => {
6646
6651
  i(!1);
6647
6652
  }, d = (m) => {
6648
6653
  i(!1), e(m);
@@ -6695,7 +6700,7 @@ function Mt({
6695
6700
  view: f,
6696
6701
  module: h,
6697
6702
  item: v,
6698
- className: p = ""
6703
+ className: g = ""
6699
6704
  }) {
6700
6705
  let x = {};
6701
6706
  switch (e) {
@@ -6713,7 +6718,7 @@ function Mt({
6713
6718
  onValue: a,
6714
6719
  name: r,
6715
6720
  placeholder: s,
6716
- className: p
6721
+ className: g
6717
6722
  }
6718
6723
  );
6719
6724
  case "Select":
@@ -6730,7 +6735,7 @@ function Mt({
6730
6735
  onValue: a,
6731
6736
  name: r,
6732
6737
  placeholder: s,
6733
- className: p,
6738
+ className: g,
6734
6739
  options: x
6735
6740
  }
6736
6741
  );
@@ -6748,7 +6753,7 @@ function Mt({
6748
6753
  onValue: a,
6749
6754
  name: r,
6750
6755
  placeholder: s,
6751
- className: p,
6756
+ className: g,
6752
6757
  options: x
6753
6758
  }
6754
6759
  );
@@ -6766,7 +6771,7 @@ function Mt({
6766
6771
  onValue: a,
6767
6772
  name: r,
6768
6773
  placeholder: s,
6769
- className: p
6774
+ className: g
6770
6775
  }
6771
6776
  );
6772
6777
  case "Phone":
@@ -6783,7 +6788,7 @@ function Mt({
6783
6788
  onValue: a,
6784
6789
  name: r,
6785
6790
  placeholder: s,
6786
- className: p
6791
+ className: g
6787
6792
  }
6788
6793
  );
6789
6794
  case "Number":
@@ -6800,7 +6805,7 @@ function Mt({
6800
6805
  onValue: a,
6801
6806
  name: r,
6802
6807
  placeholder: s,
6803
- className: p
6808
+ className: g
6804
6809
  }
6805
6810
  );
6806
6811
  case "Money":
@@ -6817,7 +6822,7 @@ function Mt({
6817
6822
  onValue: a,
6818
6823
  name: r,
6819
6824
  placeholder: s,
6820
- className: p
6825
+ className: g
6821
6826
  }
6822
6827
  );
6823
6828
  case "Modal":
@@ -6834,7 +6839,7 @@ function Mt({
6834
6839
  onValue: a,
6835
6840
  name: r || "",
6836
6841
  placeholder: s,
6837
- className: p,
6842
+ className: g,
6838
6843
  options: x,
6839
6844
  module: h || ""
6840
6845
  }
@@ -6858,8 +6863,8 @@ function fa({
6858
6863
  onSave: h,
6859
6864
  className: v = ""
6860
6865
  }) {
6861
- let p = !!(o && (e === "" || e === void 0));
6862
- if (!(d && l) && !c || !(d && l) && p) return "";
6866
+ let g = !!(o && (e === "" || e === void 0));
6867
+ if (!(d && l) && !c || !(d && l) && g) return "";
6863
6868
  let x = (N) => {
6864
6869
  t && t({ value: N.target.innerText, name: a });
6865
6870
  }, y = (N) => {
@@ -6911,7 +6916,7 @@ function ma({
6911
6916
  onSave: f,
6912
6917
  className: h = ""
6913
6918
  }) {
6914
- let v = !!(o && (e === "" || e === void 0)), p = H.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), x = g.useRef(null);
6919
+ let v = !!(o && (e === "" || e === void 0)), g = H.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), x = p.useRef(null);
6915
6920
  if (!(d && l) && !c || !(d && l) && v) return "";
6916
6921
  let y = (C) => {
6917
6922
  x.current.textContent = C, t && t({ value: C, name: a });
@@ -6927,7 +6932,7 @@ function ma({
6927
6932
  positions: { x: S, y: P },
6928
6933
  onSave: j,
6929
6934
  onValue: y,
6930
- date: p
6935
+ date: g
6931
6936
  },
6932
6937
  (/* @__PURE__ */ new Date()).getTime()
6933
6938
  )
@@ -6944,7 +6949,7 @@ function ma({
6944
6949
  }
6945
6950
  ) : /* @__PURE__ */ n.jsxs("dl", { ...R, children: [
6946
6951
  s ? /* @__PURE__ */ n.jsx("dt", { children: s }) : "",
6947
- /* @__PURE__ */ n.jsx("dd", { onClick: D, ref: x, ...N, children: p }),
6952
+ /* @__PURE__ */ n.jsx("dd", { onClick: D, ref: x, ...N, children: g }),
6948
6953
  i ? /* @__PURE__ */ n.jsx("em", { children: i }) : ""
6949
6954
  ] }) });
6950
6955
  }
@@ -6952,21 +6957,21 @@ const dc = ({ positions: e, onSave: t, onValue: a, date: r }) => {
6952
6957
  let s = r.split(":"), i = {
6953
6958
  h: H.Number(2, s[0]),
6954
6959
  m: H.Number(2, s[1])
6955
- }, o = "hour", [d, l] = g.useState({}), _ = !1, c = 0, m = 0, f = {
6956
- body: g.useRef(null),
6957
- time: g.useRef(null),
6958
- hour: g.useRef(null),
6959
- timeText: g.useRef(null),
6960
- hourText: g.useRef(null)
6960
+ }, o = "hour", [d, l] = p.useState({}), _ = !1, c = 0, m = 0, f = {
6961
+ body: p.useRef(null),
6962
+ time: p.useRef(null),
6963
+ hour: p.useRef(null),
6964
+ timeText: p.useRef(null),
6965
+ hourText: p.useRef(null)
6961
6966
  };
6962
- g.useEffect(() => {
6967
+ p.useEffect(() => {
6963
6968
  l(f.body.current.getBoundingClientRect()), f.hour.current.style.transform = "rotate(" + i.h * 15 + "deg)", f.time.current.style.transform = "rotate(" + i.m * 6 + "deg)";
6964
6969
  }, [f.body, f.hour, f.time, i.m, i.h]);
6965
6970
  let h = () => {
6966
6971
  _ = !0;
6967
6972
  }, v = () => {
6968
6973
  _ = !1, o = o === "hour" ? "time" : "hour", f.body.current.setAttribute("active", o);
6969
- }, p = (C) => {
6974
+ }, g = (C) => {
6970
6975
  if (_) {
6971
6976
  let S = Math.atan2(
6972
6977
  C.pageX - (d.x + 78),
@@ -7017,7 +7022,7 @@ const dc = ({ positions: e, onSave: t, onValue: a, date: r }) => {
7017
7022
  }
7018
7023
  }
7019
7024
  a(i.h + ":" + i.m);
7020
- }, [y, j] = g.useState(!0), D = () => {
7025
+ }, [y, j] = p.useState(!0), D = () => {
7021
7026
  j(!1), t(i.h + ":" + i.m);
7022
7027
  }, R = window.innerHeight - e.y + 33 < 320 ? e.y - 312 : e.y + 33, N = window.innerWidth - e.x < 265 ? e.x - 235 : e.x;
7023
7028
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: y ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
@@ -7035,7 +7040,7 @@ const dc = ({ positions: e, onSave: t, onValue: a, date: r }) => {
7035
7040
  className: ge.c,
7036
7041
  onMouseDown: h,
7037
7042
  onMouseUp: v,
7038
- onMouseMove: p,
7043
+ onMouseMove: g,
7039
7044
  onWheel: x,
7040
7045
  ref: f.body,
7041
7046
  style: { top: R + "px", left: N + "px" },
@@ -7086,8 +7091,8 @@ function ha({
7086
7091
  id: d,
7087
7092
  reload: l
7088
7093
  }) {
7089
- const [_, c] = g.useState(!!a), m = t || r;
7090
- g.useEffect(() => {
7094
+ const [_, c] = p.useState(!!a), m = t || r;
7095
+ p.useEffect(() => {
7091
7096
  c(!!a);
7092
7097
  }, [a]);
7093
7098
  let f = () => {
@@ -7109,8 +7114,8 @@ function ha({
7109
7114
  ] });
7110
7115
  }
7111
7116
  const _c = ({ label: e, onValue: t, value: a, name: r, item: s }) => {
7112
- const [i, o] = g.useState(!!a);
7113
- g.useEffect(() => {
7117
+ const [i, o] = p.useState(!!a);
7118
+ p.useEffect(() => {
7114
7119
  o(!!a);
7115
7120
  }, [a]);
7116
7121
  let d = () => {
@@ -7126,8 +7131,8 @@ const _c = ({ label: e, onValue: t, value: a, name: r, item: s }) => {
7126
7131
  }
7127
7132
  );
7128
7133
  }, pa = ({ onValue: e, value: t, name: a, item: r }) => {
7129
- const [s, i] = g.useState(!!t);
7130
- g.useEffect(() => {
7134
+ const [s, i] = p.useState(!!t);
7135
+ p.useEffect(() => {
7131
7136
  i(!!t);
7132
7137
  }, [t]);
7133
7138
  let o = () => {
@@ -7159,30 +7164,30 @@ function ga({
7159
7164
  max: f = 0,
7160
7165
  onSave: h,
7161
7166
  className: v = "",
7162
- separator: p = ","
7167
+ separator: g = ","
7163
7168
  }) {
7164
- const [x, y] = g.useState(
7165
- e !== void 0 ? e.split(p) : []
7169
+ const [x, y] = p.useState(
7170
+ e !== void 0 ? e.split(g) : []
7166
7171
  );
7167
- g.useEffect(() => {
7168
- y(e !== void 0 ? e !== void 0 ? e.split(p) : [] : []);
7172
+ p.useEffect(() => {
7173
+ y(e !== void 0 ? e !== void 0 ? e.split(g) : [] : []);
7169
7174
  }, [e]);
7170
7175
  let j = () => {
7171
7176
  if (f !== 0 && x.length >= f)
7172
7177
  return me.Error("Слишком много");
7173
7178
  y([...x, ""]);
7174
7179
  }, D = (L) => {
7175
- x.splice(L, 1), x.length === 0 && x.push(""), y([...x]), h !== void 0 && h({ value: x.join(p), name: a });
7180
+ x.splice(L, 1), x.length === 0 && x.push(""), y([...x]), h !== void 0 && h({ value: x.join(g), name: a });
7176
7181
  }, R = !!(o && (e === "" || e === void 0)), N = (L) => {
7177
7182
  };
7178
7183
  if (!(d && l) && !c || !(d && l) && R) return "";
7179
7184
  const C = {};
7180
7185
  C.field = "group", v && (C.className = v);
7181
7186
  const w = (L, I) => {
7182
- K.Blur(L), x[I] = L.target.textContent, h && h({ value: x.join(p), name: a });
7187
+ K.Blur(L), x[I] = L.target.textContent, h && h({ value: x.join(g), name: a });
7183
7188
  };
7184
7189
  let S = (L, I) => {
7185
- x[I] = L.target.textContent, t && t({ value: x.join(p), name: a });
7190
+ x[I] = L.target.textContent, t && t({ value: x.join(g), name: a });
7186
7191
  }, P = (L) => {
7187
7192
  L.key === "Enter" && L.preventDefault();
7188
7193
  };
@@ -7268,10 +7273,10 @@ function xa({
7268
7273
  view: f,
7269
7274
  modal: h,
7270
7275
  module: v,
7271
- options: p,
7276
+ options: g,
7272
7277
  className: x
7273
7278
  }) {
7274
- const [y, j] = g.useState(uc(e)), D = (C) => {
7279
+ const [y, j] = p.useState(uc(e)), D = (C) => {
7275
7280
  if (!(d && _) || !h) return;
7276
7281
  let w = h.split(".");
7277
7282
  De.Open(w[0], w[1], {
@@ -7293,7 +7298,7 @@ function xa({
7293
7298
  j(S);
7294
7299
  },
7295
7300
  onValue: t,
7296
- options: p,
7301
+ options: g,
7297
7302
  name: a,
7298
7303
  value: y
7299
7304
  });
@@ -7327,7 +7332,7 @@ function xa({
7327
7332
  "data-after": m,
7328
7333
  children: Object.keys(y).map((C) => {
7329
7334
  var w;
7330
- return /* @__PURE__ */ n.jsx("div", { className: "field_group_item", children: (w = p[C]) == null ? void 0 : w.label }, C);
7335
+ return /* @__PURE__ */ n.jsx("div", { className: "field_group_item", children: (w = g[C]) == null ? void 0 : w.label }, C);
7331
7336
  })
7332
7337
  }
7333
7338
  ),
@@ -7350,10 +7355,10 @@ function Nn({
7350
7355
  type: f,
7351
7356
  view: h,
7352
7357
  onSave: v,
7353
- className: p = ""
7358
+ className: g = ""
7354
7359
  }) {
7355
- const x = g.useId();
7356
- let y = !!(d && (e === "" || e === void 0)), [j, D] = g.useState(i);
7360
+ const x = p.useId();
7361
+ let y = !!(d && (e === "" || e === void 0)), [j, D] = p.useState(i);
7357
7362
  if (!(l && _) && !m || !(l && _) && y) return "";
7358
7363
  const R = async (C) => {
7359
7364
  if (f) {
@@ -7362,7 +7367,7 @@ function Nn({
7362
7367
  } else
7363
7368
  t == null || t({ name: a, value: C }), D(URL.createObjectURL(C));
7364
7369
  }, N = {};
7365
- return N.field = "file", p && (N.className = p), /* @__PURE__ */ n.jsxs("dl", { ...N, children: [
7370
+ return N.field = "file", g && (N.className = g), /* @__PURE__ */ n.jsxs("dl", { ...N, children: [
7366
7371
  s && /* @__PURE__ */ n.jsxs("dt", { children: [
7367
7372
  s,
7368
7373
  " "
@@ -7386,8 +7391,8 @@ function Nn({
7386
7391
  ] });
7387
7392
  }
7388
7393
  const fc = ({ children: e, onFiles: t }) => {
7389
- const a = g.useRef(null);
7390
- return g.useEffect(() => {
7394
+ const a = p.useRef(null);
7395
+ return p.useEffect(() => {
7391
7396
  if (a.preventDefaults) return;
7392
7397
  a.preventDefaults = (s) => {
7393
7398
  s.preventDefault(), s.stopPropagation();
@@ -7437,7 +7442,7 @@ function va({ name: e, value: t, title: a, style: r, className: s }) {
7437
7442
  }
7438
7443
  const ue = {};
7439
7444
  function pc(e) {
7440
- const [t, a] = g.useState({}), r = g.useRef(e);
7445
+ const [t, a] = p.useState({}), r = p.useRef(e);
7441
7446
  return ue.u = (s) => {
7442
7447
  r.current = { ...r.current, [s.name]: s.value };
7443
7448
  }, ue.n = (s) => {
@@ -7453,7 +7458,7 @@ function xc() {
7453
7458
  ue.r && ue.r();
7454
7459
  }
7455
7460
  function vc(e) {
7456
- const [t, a] = g.useState({}), r = g.useRef(e);
7461
+ const [t, a] = p.useState({}), r = p.useRef(e);
7457
7462
  return ue.u = (s) => {
7458
7463
  r.current = { ...r.current, [s.name]: s.value };
7459
7464
  }, ue.n = (s) => {
@@ -7519,7 +7524,7 @@ function Cc({
7519
7524
  view: h,
7520
7525
  className: v = ""
7521
7526
  }) {
7522
- _ = _ !== void 0 ? _ : !0, c = c !== void 0 ? c : !0, l = !!(l && (e === "" || e === void 0)) && !(_ && c), g.useRef(null);
7527
+ _ = _ !== void 0 ? _ : !0, c = c !== void 0 ? c : !0, l = !!(l && (e === "" || e === void 0)) && !(_ && c), p.useRef(null);
7523
7528
  let x = s, y = !0, j = 0, D = (k, M) => {
7524
7529
  let W = document.createRange(), Q = window.getSelection();
7525
7530
  W.setStart(M.childNodes[0], k), W.collapse(!0), Q.removeAllRanges(), Q.addRange(W), M.focus();
@@ -7531,8 +7536,8 @@ function Cc({
7531
7536
  }, N = (k) => {
7532
7537
  let M = 0, W = "", Q = k.replace(/\D/g, "");
7533
7538
  Q === "" && (y = !0);
7534
- let oe = Q.split(""), je = "";
7535
- oe.forEach((Ye) => {
7539
+ let le = Q.split(""), je = "";
7540
+ le.forEach((Ye) => {
7536
7541
  y && (je += Ye, y && (j = ("" + je).length, x = s.replace(new RegExp("[0-9]", "g"), "_"), W = ""), j > ("" + je).length && (y = !0, x = s.replace(new RegExp("[0-9]", "g"), "_"), W = ""));
7537
7542
  });
7538
7543
  let Re = x.replace(/\D/g, "");
@@ -7647,8 +7652,8 @@ const Md = { Spinner: wc, Inline: bc }, Sc = "_ph_1wjxu_1", Ec = "_e_1wjxu_5", T
7647
7652
  }) => {
7648
7653
  const [c] = ee.useTabs(
7649
7654
  o.map((h) => h.id).includes(ee.getTabs()) ? ee.getTabs() : i
7650
- ), [m, f] = g.useState(!1);
7651
- return g.useEffect(() => {
7655
+ ), [m, f] = p.useState(!1);
7656
+ return p.useEffect(() => {
7652
7657
  f(!0);
7653
7658
  }, []), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
7654
7659
  /* @__PURE__ */ n.jsxs("div", { className: [Tn.ph, d].join(" "), children: [
@@ -7670,16 +7675,16 @@ const Md = { Spinner: wc, Inline: bc }, Sc = "_ph_1wjxu_1", Ec = "_e_1wjxu_5", T
7670
7675
  ] });
7671
7676
  };
7672
7677
  let Dc = ({ m: e, t, loading: a, onDynamicURL: r }) => {
7673
- const s = g.lazy(() => at(e + "/pages/" + t + ".tsx"));
7674
- return r && r((e + "/" + t).toLowerCase()), /* @__PURE__ */ n.jsx(g.Suspense, { fallback: a, children: /* @__PURE__ */ n.jsx(s, {}) });
7678
+ const s = p.lazy(() => at(e + "/pages/" + t + ".tsx"));
7679
+ return r && r((e + "/" + t).toLowerCase()), /* @__PURE__ */ n.jsx(p.Suspense, { fallback: a, children: /* @__PURE__ */ n.jsx(s, {}) });
7675
7680
  }, Rc = ({ button: e }) => {
7676
- const [t, a] = g.useState(e);
7681
+ const [t, a] = p.useState(e);
7677
7682
  return At("button", a), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
7678
7683
  " ",
7679
7684
  t
7680
7685
  ] });
7681
7686
  }, Nc = ({ title: e, affter: t }) => {
7682
- const [a, r] = g.useState(
7687
+ const [a, r] = p.useState(
7683
7688
  /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
7684
7689
  e,
7685
7690
  " ",
@@ -7865,7 +7870,7 @@ function Uc(e, t) {
7865
7870
  }
7866
7871
  }
7867
7872
  function Wc() {
7868
- const [e, t] = g.useReducer(Uc, {
7873
+ const [e, t] = p.useReducer(Uc, {
7869
7874
  open: !1,
7870
7875
  view: null,
7871
7876
  data: {},
@@ -8073,7 +8078,7 @@ function td(e) {
8073
8078
  st.fn = e;
8074
8079
  }
8075
8080
  function nd() {
8076
- const [e, t] = g.useReducer(Vc, {
8081
+ const [e, t] = p.useReducer(Vc, {
8077
8082
  open: !1,
8078
8083
  active: !1,
8079
8084
  news: [],
@@ -8085,7 +8090,7 @@ function nd() {
8085
8090
  Ct.push(r.data);
8086
8091
  break;
8087
8092
  }
8088
- }), g.useEffect(() => {
8093
+ }), p.useEffect(() => {
8089
8094
  setInterval(() => {
8090
8095
  Ct.forEach((r, s) => {
8091
8096
  t({
@@ -8195,7 +8200,7 @@ function od(e, t) {
8195
8200
  }
8196
8201
  }
8197
8202
  function ka({ load: e, list: t, item: a }) {
8198
- const r = g.useRef(null), [s, i] = g.useReducer(od, {
8203
+ const r = p.useRef(null), [s, i] = p.useReducer(od, {
8199
8204
  load: !1,
8200
8205
  list: [],
8201
8206
  data: {},
@@ -8203,7 +8208,7 @@ function ka({ load: e, list: t, item: a }) {
8203
8208
  wait: !1,
8204
8209
  item: a
8205
8210
  });
8206
- g.useEffect(() => {
8211
+ p.useEffect(() => {
8207
8212
  t !== null && i({ type: "load", load: e, data: t });
8208
8213
  }, [e]);
8209
8214
  let o = (d) => {
@@ -8211,7 +8216,7 @@ function ka({ load: e, list: t, item: a }) {
8211
8216
  if (d > s.size) return d = s.size;
8212
8217
  i({ type: "page", page: d });
8213
8218
  };
8214
- return g.useEffect(() => {
8219
+ return p.useEffect(() => {
8215
8220
  }, [s]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
8216
8221
  /* @__PURE__ */ n.jsx("div", { className: ya.l, ref: r, children: /* @__PURE__ */ n.jsx(ta, { "el-empty": "Данные не найдены", children: s.load && s.list !== void 0 ? s.list.map((d) => /* @__PURE__ */ n.jsx(s.item, { data: d }, d.id)) : /* @__PURE__ */ n.jsxs("div", { "type-data": "load", children: [
8217
8222
  /* @__PURE__ */ n.jsx("i", {}),
@@ -8305,8 +8310,8 @@ const Zd = { Get: ud }, Ud = function({
8305
8310
  tabs: i,
8306
8311
  modules: o
8307
8312
  }) {
8308
- const [d] = ee.useTabs(s), [l, _] = g.useState(!1);
8309
- return g.useEffect(() => {
8313
+ const [d] = ee.useTabs(s), [l, _] = p.useState(!1);
8314
+ return p.useEffect(() => {
8310
8315
  _(!0);
8311
8316
  }, []), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
8312
8317
  /* @__PURE__ */ n.jsxs("div", { className: "list-info", children: [
@@ -8319,10 +8324,10 @@ const Zd = { Get: ud }, Ud = function({
8319
8324
  ] });
8320
8325
  };
8321
8326
  let fd = ({ modules: e, t }) => {
8322
- const a = g.lazy(() => at(e + "/pages/" + t + ".tsx"));
8323
- return /* @__PURE__ */ n.jsx(g.Suspense, { fallback: "", children: /* @__PURE__ */ n.jsx(a, {}) });
8327
+ const a = p.lazy(() => at(e + "/pages/" + t + ".tsx"));
8328
+ return /* @__PURE__ */ n.jsx(p.Suspense, { fallback: "", children: /* @__PURE__ */ n.jsx(a, {}) });
8324
8329
  }, md = ({ button: e }) => {
8325
- const [t, a] = g.useState(e);
8330
+ const [t, a] = p.useState(e);
8326
8331
  return ve.useListener("button", a), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
8327
8332
  " ",
8328
8333
  t
@@ -8330,8 +8335,8 @@ let fd = ({ modules: e, t }) => {
8330
8335
  };
8331
8336
  const Wd = { Open: go };
8332
8337
  function Gd({ active: e, onActive: t, id: a, name: r }) {
8333
- const [s, i] = g.useState(!!e);
8334
- g.useEffect(() => {
8338
+ const [s, i] = p.useState(!!e);
8339
+ p.useEffect(() => {
8335
8340
  i(!!e);
8336
8341
  }, [e]);
8337
8342
  let o = () => {