elcrm 0.9.37 → 0.9.39

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,14 +1,14 @@
1
1
  import './index.css';var Pa = Object.defineProperty;
2
2
  var Oa = (e, t, n) => t in e ? Pa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var xt = (e, t, n) => Oa(e, typeof t != "symbol" ? t + "" : t, n);
4
- import m, { createContext as Aa, useContext as za, createElement as Ga } from "react";
4
+ import h, { createContext as Aa, useContext as za, createElement as Ga } from "react";
5
5
  let Mt = {
6
6
  enCode: (e) => e,
7
7
  deCode: (e) => e
8
8
  };
9
9
  const kn = (e) => {
10
10
  Mt = e;
11
- }, Za = (e) => Mt.enCode(e), Ua = (e) => Mt.deCode(e), B = { enCode: Za, deCode: Ua, New: kn }, D = {}, X = {}, Re = {}, yn = {}, fe = {};
11
+ }, Za = (e) => Mt.enCode(e), Ua = (e) => Mt.deCode(e), B = { enCode: Za, deCode: Ua, New: kn }, D = {}, X = {}, Ie = {}, yn = {}, fe = {};
12
12
  let at = "M06";
13
13
  function Ka(e) {
14
14
  at = e;
@@ -69,7 +69,7 @@ function jt() {
69
69
  return ie(), !1;
70
70
  }
71
71
  function er() {
72
- const [e, t] = m.useState(bn()), n = (r) => {
72
+ const [e, t] = h.useState(bn()), n = (r) => {
73
73
  t(r);
74
74
  };
75
75
  return X.page = n, [e];
@@ -85,7 +85,7 @@ function nr(e) {
85
85
  }
86
86
  function ar(e) {
87
87
  if (typeof e != "function") {
88
- const [t, n] = m.useState(e || wn()), r = (s) => {
88
+ const [t, n] = h.useState(e || wn()), r = (s) => {
89
89
  n(s);
90
90
  };
91
91
  return X.module = r, [t];
@@ -103,7 +103,7 @@ function sr(e) {
103
103
  }
104
104
  function Sn(e) {
105
105
  if (typeof e != "function") {
106
- const [t, n] = m.useState(e || Ie());
106
+ const [t, n] = h.useState(e || Ne());
107
107
  return X.tabs = n, [t];
108
108
  } else
109
109
  X.tabs = e;
@@ -115,7 +115,7 @@ function En(e, t = !0) {
115
115
  else
116
116
  throw new Error("useTabs not found");
117
117
  }
118
- function Ie() {
118
+ function Ne() {
119
119
  return D.tab;
120
120
  }
121
121
  function ir(e) {
@@ -123,7 +123,7 @@ function ir(e) {
123
123
  }
124
124
  function or(e) {
125
125
  if (typeof e != "function") {
126
- const [t, n] = m.useState(e || Dn()), r = (s) => {
126
+ const [t, n] = h.useState(e || Dn()), r = (s) => {
127
127
  n(s);
128
128
  };
129
129
  return X.id = r, [t];
@@ -149,10 +149,10 @@ function ur(e, t, n, r) {
149
149
  D.page = e, D.module = t, D.tab = n || "", D.id = r || 0, sessionStorage.setItem("f", B.enCode(D)), X.page(e);
150
150
  }
151
151
  function fr(e) {
152
- Re.data = e[0], delete Re.data.id, document.body.dataset.theme = Re.data.s15, localStorage.setItem("s", B.enCode(Re.data));
152
+ Ie.data = e[0], delete Ie.data.id, document.body.dataset.theme = Ie.data.s15, localStorage.setItem("s", B.enCode(Ie.data));
153
153
  }
154
154
  function mr(e, t) {
155
- Re.data[e] = t, localStorage.setItem("s", B.enCode(Re.data));
155
+ Ie.data[e] = t, localStorage.setItem("s", B.enCode(Ie.data));
156
156
  }
157
157
  function hr(e) {
158
158
  let t = localStorage.getItem("s");
@@ -180,11 +180,11 @@ function pr(e) {
180
180
  }
181
181
  function In(e) {
182
182
  let t = localStorage.getItem("b");
183
- t = t === null ? {} : B.deCode(t), t[Ie()] = e, localStorage.setItem("b", B.enCode(t));
183
+ t = t === null ? {} : B.deCode(t), t[Ne()] = e, localStorage.setItem("b", B.enCode(t));
184
184
  }
185
185
  function kt() {
186
186
  let e = localStorage.getItem("b");
187
- return e === null ? {} : (e = B.deCode(e), e = e[Ie()], e = e === void 0 ? { active: 1, sort: "<" } : e, e);
187
+ return e === null ? {} : (e = B.deCode(e), e = e[Ne()], e = e === void 0 ? { active: 1, sort: "<" } : e, e);
188
188
  }
189
189
  function Nn(e) {
190
190
  localStorage.setItem("c", B.enCode(e));
@@ -361,7 +361,7 @@ const it = {
361
361
  Crypto: Fr,
362
362
  defaultModule: Ka
363
363
  };
364
- let Br = "api", Pr = "elcrm", Or = "online", Ne = !1;
364
+ let Br = "api", Pr = "elcrm", Or = "online", Te = !1;
365
365
  function Ar() {
366
366
  let e = J.getPORT(), t = "", n = "";
367
367
  return e.address === "localhost" ? (t = `http://localhost:${e.socket}/documents`, n = `http://localhost:${e.socket}/files`) : (t = "https://" + e.address + "/documents", n = "https://" + e.address + "/files"), {
@@ -377,14 +377,14 @@ function Gr(e) {
377
377
  return "https://" + J.getPORT().address + "/image/" + e;
378
378
  }
379
379
  function Zr(e) {
380
- Ne = e;
380
+ Te = e;
381
381
  }
382
- function Ke(e, t = {}, n = Ne ? J.getSSID() : J.getAUTH()) {
382
+ function Ke(e, t = {}, n = Te ? J.getSSID() : J.getAUTH()) {
383
383
  return new Promise((r) => {
384
384
  const s = new $n();
385
385
  s.onmessage = (i) => {
386
386
  var o, l;
387
- if (Ne && ((o = i.data) != null && o.ssid) && J.setSSID(i.data.ssid), ((l = i.data) == null ? void 0 : l.status) === "logaut")
387
+ if (Te && ((o = i.data) != null && o.ssid) && J.setSSID(i.data.ssid), ((l = i.data) == null ? void 0 : l.status) === "logaut")
388
388
  return J.Logaut();
389
389
  r(i.data), s.terminate();
390
390
  }, s.postMessage({
@@ -395,7 +395,7 @@ function Ke(e, t = {}, n = Ne ? J.getSSID() : J.getAUTH()) {
395
395
  });
396
396
  });
397
397
  }
398
- async function Ur(e, t = {}, n = Ne ? J.getSSID() : J.getAUTH()) {
398
+ async function Ur(e, t = {}, n = Te ? J.getSSID() : J.getAUTH()) {
399
399
  try {
400
400
  return await (await Ke(it.Host() || `https://${Lt}/` + e, {
401
401
  method: "POST",
@@ -408,7 +408,7 @@ async function Ur(e, t = {}, n = Ne ? J.getSSID() : J.getAUTH()) {
408
408
  return { status: "error", message: r };
409
409
  }
410
410
  }
411
- function Kr(e, t = {}, n = Ne ? J.getSSID() : J.getAUTH()) {
411
+ function Kr(e, t = {}, n = Te ? J.getSSID() : J.getAUTH()) {
412
412
  return new Promise((r) => {
413
413
  const s = new $n();
414
414
  s.onmessage = (i) => {
@@ -421,12 +421,12 @@ function Kr(e, t = {}, n = Ne ? J.getSSID() : J.getAUTH()) {
421
421
  });
422
422
  });
423
423
  }
424
- function Wr(e, t = {}, n = Ne ? J.getSSID() : J.getAUTH()) {
425
- const [r, s] = m.useState({ status: "load" }), i = async (o) => {
424
+ function Wr(e, t = {}, n = Te ? J.getSSID() : J.getAUTH()) {
425
+ const [r, s] = h.useState({ status: "load" }), i = async (o) => {
426
426
  let l = await Ke(e, o, n);
427
427
  s(l);
428
428
  };
429
- return m.useEffect(() => {
429
+ return h.useEffect(() => {
430
430
  i(t);
431
431
  }, []), [r, i];
432
432
  }
@@ -491,13 +491,13 @@ var _n;
491
491
  function Jr() {
492
492
  if (_n) return Be;
493
493
  _n = 1;
494
- var e = m, t = Symbol.for("react.element"), n = 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 };
494
+ var e = h, t = Symbol.for("react.element"), n = 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 };
495
495
  function o(l, c, _) {
496
- var u, g = {}, f = null, p = null;
497
- _ !== void 0 && (f = "" + _), c.key !== void 0 && (f = "" + c.key), c.ref !== void 0 && (p = c.ref);
498
- for (u in c) r.call(c, u) && !i.hasOwnProperty(u) && (g[u] = c[u]);
499
- if (l && l.defaultProps) for (u in c = l.defaultProps, c) g[u] === void 0 && (g[u] = c[u]);
500
- return { $$typeof: t, type: l, key: f, ref: p, props: g, _owner: s.current };
496
+ var u, p = {}, f = null, g = null;
497
+ _ !== void 0 && (f = "" + _), c.key !== void 0 && (f = "" + c.key), c.ref !== void 0 && (g = c.ref);
498
+ for (u in c) r.call(c, u) && !i.hasOwnProperty(u) && (p[u] = c[u]);
499
+ if (l && l.defaultProps) for (u in c = l.defaultProps, c) p[u] === void 0 && (p[u] = c[u]);
500
+ return { $$typeof: t, type: l, key: f, ref: g, props: p, _owner: s.current };
501
501
  }
502
502
  return Be.Fragment = n, Be.jsx = o, Be.jsxs = o, Be;
503
503
  }
@@ -514,48 +514,48 @@ var Pe = {};
514
514
  var un;
515
515
  function Xr() {
516
516
  return un || (un = 1, process.env.NODE_ENV !== "production" && function() {
517
- var e = m, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), C = Symbol.iterator, h = "@@iterator";
518
- function x(d) {
517
+ var e = h, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), j = Symbol.iterator, x = "@@iterator";
518
+ function m(d) {
519
519
  if (d === null || typeof d != "object")
520
520
  return null;
521
- var v = C && d[C] || d[h];
521
+ var v = j && d[j] || d[x];
522
522
  return typeof v == "function" ? v : null;
523
523
  }
524
- var j = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
524
+ var C = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
525
525
  function S(d) {
526
526
  {
527
- for (var v = arguments.length, w = new Array(v > 1 ? v - 1 : 0), L = 1; L < v; L++)
528
- w[L - 1] = arguments[L];
527
+ for (var v = arguments.length, w = new Array(v > 1 ? v - 1 : 0), M = 1; M < v; M++)
528
+ w[M - 1] = arguments[M];
529
529
  N("error", d, w);
530
530
  }
531
531
  }
532
532
  function N(d, v, w) {
533
533
  {
534
- var L = j.ReactDebugCurrentFrame, z = L.getStackAddendum();
535
- z !== "" && (v += "%s", w = w.concat([z]));
536
- var G = w.map(function(O) {
537
- return String(O);
534
+ var M = C.ReactDebugCurrentFrame, G = M.getStackAddendum();
535
+ G !== "" && (v += "%s", w = w.concat([G]));
536
+ var Z = w.map(function(A) {
537
+ return String(A);
538
538
  });
539
- G.unshift("Warning: " + v), Function.prototype.apply.call(console[d], console, G);
539
+ Z.unshift("Warning: " + v), Function.prototype.apply.call(console[d], console, Z);
540
540
  }
541
541
  }
542
- var T = !1, k = !1, y = !1, b = !1, E = !1, $;
543
- $ = Symbol.for("react.module.reference");
544
- function M(d) {
545
- return !!(typeof d == "string" || typeof d == "function" || d === r || d === i || E || d === s || d === _ || d === u || b || d === p || T || k || y || typeof d == "object" && d !== null && (d.$$typeof === f || d.$$typeof === g || d.$$typeof === o || d.$$typeof === l || d.$$typeof === c || // This needs to include all possible module reference object
542
+ var T = !1, k = !1, y = !1, b = !1, E = !1, z;
543
+ z = Symbol.for("react.module.reference");
544
+ function $(d) {
545
+ return !!(typeof d == "string" || typeof d == "function" || d === r || d === i || E || d === s || d === _ || d === u || b || d === g || T || k || y || typeof d == "object" && d !== null && (d.$$typeof === f || d.$$typeof === p || d.$$typeof === o || d.$$typeof === l || d.$$typeof === c || // This needs to include all possible module reference object
546
546
  // types supported by any Flight configuration anywhere since
547
547
  // we don't know which Flight build this will end up being used
548
548
  // with.
549
- d.$$typeof === $ || d.getModuleId !== void 0));
549
+ d.$$typeof === z || d.getModuleId !== void 0));
550
550
  }
551
- function U(d, v, w) {
552
- var L = d.displayName;
553
- if (L)
554
- return L;
555
- var z = v.displayName || v.name || "";
556
- return z !== "" ? w + "(" + z + ")" : w;
551
+ function O(d, v, w) {
552
+ var M = d.displayName;
553
+ if (M)
554
+ return M;
555
+ var G = v.displayName || v.name || "";
556
+ return G !== "" ? w + "(" + G + ")" : w;
557
557
  }
558
- function A(d) {
558
+ function L(d) {
559
559
  return d.displayName || "Context";
560
560
  }
561
561
  function I(d) {
@@ -583,19 +583,19 @@ function Xr() {
583
583
  switch (d.$$typeof) {
584
584
  case l:
585
585
  var v = d;
586
- return A(v) + ".Consumer";
586
+ return L(v) + ".Consumer";
587
587
  case o:
588
588
  var w = d;
589
- return A(w._context) + ".Provider";
589
+ return L(w._context) + ".Provider";
590
590
  case c:
591
- return U(d, d.render, "ForwardRef");
592
- case g:
593
- var L = d.displayName || null;
594
- return L !== null ? L : I(d.type) || "Memo";
591
+ return O(d, d.render, "ForwardRef");
592
+ case p:
593
+ var M = d.displayName || null;
594
+ return M !== null ? M : I(d.type) || "Memo";
595
595
  case f: {
596
- var z = d, G = z._payload, O = z._init;
596
+ var G = d, Z = G._payload, A = G._init;
597
597
  try {
598
- return I(O(G));
598
+ return I(A(Z));
599
599
  } catch {
600
600
  return null;
601
601
  }
@@ -603,14 +603,14 @@ function Xr() {
603
603
  }
604
604
  return null;
605
605
  }
606
- var F = Object.assign, W = 0, ne, se, he, Se, Le, He, Kt;
606
+ var F = Object.assign, W = 0, ne, se, he, Ee, Le, He, Kt;
607
607
  function Wt() {
608
608
  }
609
609
  Wt.__reactDisabledLog = !0;
610
610
  function _a() {
611
611
  {
612
612
  if (W === 0) {
613
- ne = console.log, se = console.info, he = console.warn, Se = console.error, Le = console.group, He = console.groupCollapsed, Kt = console.groupEnd;
613
+ ne = console.log, se = console.info, he = console.warn, Ee = console.error, Le = console.group, He = console.groupCollapsed, Kt = console.groupEnd;
614
614
  var d = {
615
615
  configurable: !0,
616
616
  enumerable: !0,
@@ -649,7 +649,7 @@ function Xr() {
649
649
  value: he
650
650
  }),
651
651
  error: F({}, d, {
652
- value: Se
652
+ value: Ee
653
653
  }),
654
654
  group: F({}, d, {
655
655
  value: Le
@@ -665,15 +665,15 @@ function Xr() {
665
665
  W < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
666
666
  }
667
667
  }
668
- var ct = j.ReactCurrentDispatcher, dt;
668
+ var ct = C.ReactCurrentDispatcher, dt;
669
669
  function qe(d, v, w) {
670
670
  {
671
671
  if (dt === void 0)
672
672
  try {
673
673
  throw Error();
674
- } catch (z) {
675
- var L = z.stack.trim().match(/\n( *(at )?)/);
676
- dt = L && L[1] || "";
674
+ } catch (G) {
675
+ var M = G.stack.trim().match(/\n( *(at )?)/);
676
+ dt = M && M[1] || "";
677
677
  }
678
678
  return `
679
679
  ` + dt + d;
@@ -692,48 +692,48 @@ function Xr() {
692
692
  if (w !== void 0)
693
693
  return w;
694
694
  }
695
- var L;
695
+ var M;
696
696
  _t = !0;
697
- var z = Error.prepareStackTrace;
697
+ var G = Error.prepareStackTrace;
698
698
  Error.prepareStackTrace = void 0;
699
- var G;
700
- G = ct.current, ct.current = null, _a();
699
+ var Z;
700
+ Z = ct.current, ct.current = null, _a();
701
701
  try {
702
702
  if (v) {
703
- var O = function() {
703
+ var A = function() {
704
704
  throw Error();
705
705
  };
706
- if (Object.defineProperty(O.prototype, "props", {
706
+ if (Object.defineProperty(A.prototype, "props", {
707
707
  set: function() {
708
708
  throw Error();
709
709
  }
710
710
  }), typeof Reflect == "object" && Reflect.construct) {
711
711
  try {
712
- Reflect.construct(O, []);
712
+ Reflect.construct(A, []);
713
713
  } catch (ae) {
714
- L = ae;
714
+ M = ae;
715
715
  }
716
- Reflect.construct(d, [], O);
716
+ Reflect.construct(d, [], A);
717
717
  } else {
718
718
  try {
719
- O.call();
719
+ A.call();
720
720
  } catch (ae) {
721
- L = ae;
721
+ M = ae;
722
722
  }
723
- d.call(O.prototype);
723
+ d.call(A.prototype);
724
724
  }
725
725
  } else {
726
726
  try {
727
727
  throw Error();
728
728
  } catch (ae) {
729
- L = ae;
729
+ M = ae;
730
730
  }
731
731
  d();
732
732
  }
733
733
  } catch (ae) {
734
- if (ae && L && typeof ae.stack == "string") {
734
+ if (ae && M && typeof ae.stack == "string") {
735
735
  for (var P = ae.stack.split(`
736
- `), ee = L.stack.split(`
736
+ `), ee = M.stack.split(`
737
737
  `), H = P.length - 1, V = ee.length - 1; H >= 1 && V >= 0 && P[H] !== ee[V]; )
738
738
  V--;
739
739
  for (; H >= 1 && V >= 0; H--, V--)
@@ -750,9 +750,9 @@ function Xr() {
750
750
  }
751
751
  }
752
752
  } finally {
753
- _t = !1, ct.current = G, ua(), Error.prepareStackTrace = z;
753
+ _t = !1, ct.current = Z, ua(), Error.prepareStackTrace = G;
754
754
  }
755
- var De = d ? d.displayName || d.name : "", ke = De ? qe(De) : "";
755
+ var Re = d ? d.displayName || d.name : "", ke = Re ? qe(Re) : "";
756
756
  return typeof d == "function" && Ve.set(d, ke), ke;
757
757
  }
758
758
  function ma(d, v, w) {
@@ -779,19 +779,19 @@ function Xr() {
779
779
  switch (d.$$typeof) {
780
780
  case c:
781
781
  return ma(d.render);
782
- case g:
782
+ case p:
783
783
  return Je(d.type, v, w);
784
784
  case f: {
785
- var L = d, z = L._payload, G = L._init;
785
+ var M = d, G = M._payload, Z = M._init;
786
786
  try {
787
- return Je(G(z), v, w);
787
+ return Je(Z(G), v, w);
788
788
  } catch {
789
789
  }
790
790
  }
791
791
  }
792
792
  return "";
793
793
  }
794
- var $e = Object.prototype.hasOwnProperty, Ht = {}, qt = j.ReactDebugCurrentFrame;
794
+ var $e = Object.prototype.hasOwnProperty, Ht = {}, qt = C.ReactDebugCurrentFrame;
795
795
  function Xe(d) {
796
796
  if (d) {
797
797
  var v = d._owner, w = Je(d.type, d._source, v ? v.type : null);
@@ -799,22 +799,22 @@ function Xr() {
799
799
  } else
800
800
  qt.setExtraStackFrame(null);
801
801
  }
802
- function ga(d, v, w, L, z) {
802
+ function ga(d, v, w, M, G) {
803
803
  {
804
- var G = Function.call.bind($e);
805
- for (var O in d)
806
- if (G(d, O)) {
804
+ var Z = Function.call.bind($e);
805
+ for (var A in d)
806
+ if (Z(d, A)) {
807
807
  var P = void 0;
808
808
  try {
809
- if (typeof d[O] != "function") {
810
- var ee = Error((L || "React class") + ": " + w + " type `" + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof d[O] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
809
+ if (typeof d[A] != "function") {
810
+ var ee = Error((M || "React class") + ": " + w + " type `" + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof d[A] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
811
811
  throw ee.name = "Invariant Violation", ee;
812
812
  }
813
- P = d[O](v, O, L, w, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
813
+ P = d[A](v, A, M, w, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
814
814
  } catch (H) {
815
815
  P = H;
816
816
  }
817
- P && !(P instanceof Error) && (Xe(z), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", L || "React class", w, O, typeof P), Xe(null)), P instanceof Error && !(P.message in Ht) && (Ht[P.message] = !0, Xe(z), S("Failed %s type: %s", w, P.message), Xe(null));
817
+ P && !(P instanceof Error) && (Xe(G), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", M || "React class", w, A, typeof P), Xe(null)), P instanceof Error && !(P.message in Ht) && (Ht[P.message] = !0, Xe(G), S("Failed %s type: %s", w, P.message), Xe(null));
818
818
  }
819
819
  }
820
820
  }
@@ -842,7 +842,7 @@ function Xr() {
842
842
  if (va(d))
843
843
  return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", xa(d)), Vt(d);
844
844
  }
845
- var Fe = j.ReactCurrentOwner, Ca = {
845
+ var Fe = C.ReactCurrentOwner, Ca = {
846
846
  key: !0,
847
847
  ref: !0,
848
848
  __self: !0,
@@ -893,7 +893,7 @@ function Xr() {
893
893
  });
894
894
  }
895
895
  }
896
- var Sa = function(d, v, w, L, z, G, O) {
896
+ var Sa = function(d, v, w, M, G, Z, A) {
897
897
  var P = {
898
898
  // This tag allows us to uniquely identify this as a React Element
899
899
  $$typeof: t,
@@ -901,9 +901,9 @@ function Xr() {
901
901
  type: d,
902
902
  key: v,
903
903
  ref: w,
904
- props: O,
904
+ props: A,
905
905
  // Record the component responsible for creating this element.
906
- _owner: G
906
+ _owner: Z
907
907
  };
908
908
  return P._store = {}, Object.defineProperty(P._store, "validated", {
909
909
  configurable: !1,
@@ -914,34 +914,34 @@ function Xr() {
914
914
  configurable: !1,
915
915
  enumerable: !1,
916
916
  writable: !1,
917
- value: L
917
+ value: M
918
918
  }), Object.defineProperty(P, "_source", {
919
919
  configurable: !1,
920
920
  enumerable: !1,
921
921
  writable: !1,
922
- value: z
922
+ value: G
923
923
  }), Object.freeze && (Object.freeze(P.props), Object.freeze(P)), P;
924
924
  };
925
- function Ea(d, v, w, L, z) {
925
+ function Ea(d, v, w, M, G) {
926
926
  {
927
- var G, O = {}, P = null, ee = null;
928
- w !== void 0 && (Jt(w), P = "" + w), ka(v) && (Jt(v.key), P = "" + v.key), ja(v) && (ee = v.ref, ya(v, z));
929
- for (G in v)
930
- $e.call(v, G) && !Ca.hasOwnProperty(G) && (O[G] = v[G]);
927
+ var Z, A = {}, P = null, ee = null;
928
+ w !== void 0 && (Jt(w), P = "" + w), ka(v) && (Jt(v.key), P = "" + v.key), ja(v) && (ee = v.ref, ya(v, G));
929
+ for (Z in v)
930
+ $e.call(v, Z) && !Ca.hasOwnProperty(Z) && (A[Z] = v[Z]);
931
931
  if (d && d.defaultProps) {
932
932
  var H = d.defaultProps;
933
- for (G in H)
934
- O[G] === void 0 && (O[G] = H[G]);
933
+ for (Z in H)
934
+ A[Z] === void 0 && (A[Z] = H[Z]);
935
935
  }
936
936
  if (P || ee) {
937
937
  var V = typeof d == "function" ? d.displayName || d.name || "Unknown" : d;
938
- P && ba(O, V), ee && wa(O, V);
938
+ P && ba(A, V), ee && wa(A, V);
939
939
  }
940
- return Sa(d, P, ee, z, L, Fe.current, O);
940
+ return Sa(d, P, ee, G, M, Fe.current, A);
941
941
  }
942
942
  }
943
- var mt = j.ReactCurrentOwner, en = j.ReactDebugCurrentFrame;
944
- function Ee(d) {
943
+ var mt = C.ReactCurrentOwner, en = C.ReactDebugCurrentFrame;
944
+ function De(d) {
945
945
  if (d) {
946
946
  var v = d._owner, w = Je(d.type, d._source, v ? v.type : null);
947
947
  en.setExtraStackFrame(w);
@@ -990,8 +990,8 @@ Check the top-level render call using <` + w + ">.");
990
990
  if (nn[w])
991
991
  return;
992
992
  nn[w] = !0;
993
- var L = "";
994
- d && d._owner && d._owner !== mt.current && (L = " It was passed a child from " + I(d._owner.type) + "."), Ee(d), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', w, L), Ee(null);
993
+ var M = "";
994
+ d && d._owner && d._owner !== mt.current && (M = " It was passed a child from " + I(d._owner.type) + "."), De(d), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', w, M), De(null);
995
995
  }
996
996
  }
997
997
  function rn(d, v) {
@@ -1000,16 +1000,16 @@ Check the top-level render call using <` + w + ">.");
1000
1000
  return;
1001
1001
  if (ut(d))
1002
1002
  for (var w = 0; w < d.length; w++) {
1003
- var L = d[w];
1004
- gt(L) && an(L, v);
1003
+ var M = d[w];
1004
+ gt(M) && an(M, v);
1005
1005
  }
1006
1006
  else if (gt(d))
1007
1007
  d._store && (d._store.validated = !0);
1008
1008
  else if (d) {
1009
- var z = x(d);
1010
- if (typeof z == "function" && z !== d.entries)
1011
- for (var G = z.call(d), O; !(O = G.next()).done; )
1012
- gt(O.value) && an(O.value, v);
1009
+ var G = m(d);
1010
+ if (typeof G == "function" && G !== d.entries)
1011
+ for (var Z = G.call(d), A; !(A = Z.next()).done; )
1012
+ gt(A.value) && an(A.value, v);
1013
1013
  }
1014
1014
  }
1015
1015
  }
@@ -1023,17 +1023,17 @@ Check the top-level render call using <` + w + ">.");
1023
1023
  w = v.propTypes;
1024
1024
  else if (typeof v == "object" && (v.$$typeof === c || // Note: Memo only checks outer props here.
1025
1025
  // Inner props are checked in the reconciler.
1026
- v.$$typeof === g))
1026
+ v.$$typeof === p))
1027
1027
  w = v.propTypes;
1028
1028
  else
1029
1029
  return;
1030
1030
  if (w) {
1031
- var L = I(v);
1032
- ga(w, d.props, "prop", L, d);
1031
+ var M = I(v);
1032
+ ga(w, d.props, "prop", M, d);
1033
1033
  } else if (v.PropTypes !== void 0 && !ht) {
1034
1034
  ht = !0;
1035
- var z = I(v);
1036
- S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", z || "Unknown");
1035
+ var G = I(v);
1036
+ S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", G || "Unknown");
1037
1037
  }
1038
1038
  typeof v.getDefaultProps == "function" && !v.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1039
1039
  }
@@ -1041,20 +1041,20 @@ Check the top-level render call using <` + w + ">.");
1041
1041
  function Na(d) {
1042
1042
  {
1043
1043
  for (var v = Object.keys(d.props), w = 0; w < v.length; w++) {
1044
- var L = v[w];
1045
- if (L !== "children" && L !== "key") {
1046
- Ee(d), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", L), Ee(null);
1044
+ var M = v[w];
1045
+ if (M !== "children" && M !== "key") {
1046
+ De(d), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", M), De(null);
1047
1047
  break;
1048
1048
  }
1049
1049
  }
1050
- d.ref !== null && (Ee(d), S("Invalid attribute `ref` supplied to `React.Fragment`."), Ee(null));
1050
+ d.ref !== null && (De(d), S("Invalid attribute `ref` supplied to `React.Fragment`."), De(null));
1051
1051
  }
1052
1052
  }
1053
1053
  var sn = {};
1054
- function on(d, v, w, L, z, G) {
1054
+ function on(d, v, w, M, G, Z) {
1055
1055
  {
1056
- var O = M(d);
1057
- if (!O) {
1056
+ var A = $(d);
1057
+ if (!A) {
1058
1058
  var P = "";
1059
1059
  (d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (P += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
1060
1060
  var ee = Da();
@@ -1062,16 +1062,16 @@ Check the top-level render call using <` + w + ">.");
1062
1062
  var H;
1063
1063
  d === null ? H = "null" : ut(d) ? H = "array" : d !== void 0 && d.$$typeof === t ? (H = "<" + (I(d.type) || "Unknown") + " />", P = " Did you accidentally export a JSX literal instead of a component?") : H = typeof d, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", H, P);
1064
1064
  }
1065
- var V = Ea(d, v, w, z, G);
1065
+ var V = Ea(d, v, w, G, Z);
1066
1066
  if (V == null)
1067
1067
  return V;
1068
- if (O) {
1068
+ if (A) {
1069
1069
  var oe = v.children;
1070
1070
  if (oe !== void 0)
1071
- if (L)
1071
+ if (M)
1072
1072
  if (ut(oe)) {
1073
- for (var De = 0; De < oe.length; De++)
1074
- rn(oe[De], d);
1073
+ for (var Re = 0; Re < oe.length; Re++)
1074
+ rn(oe[Re], d);
1075
1075
  Object.freeze && Object.freeze(oe);
1076
1076
  } else
1077
1077
  S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
@@ -1218,29 +1218,29 @@ const ts = (e) => {
1218
1218
  u3: ["тысяча", "тысячи", "тысяч"],
1219
1219
  u2: ["миллион", "миллиона", "миллионов"],
1220
1220
  u1: ["миллиард", "миллиарда", "миллиардов"]
1221
- }, s, i, o, l, x, c, _, h, u, g, f, p;
1221
+ }, s, i, o, l, m, c, _, x, u, p, f, g;
1222
1222
  u = parseFloat(e).toFixed(2).split("."), c = u[0], l = u[1];
1223
- var C = 12 - c.length;
1224
- if (C < 0)
1223
+ var j = 12 - c.length;
1224
+ if (j < 0)
1225
1225
  return !1;
1226
- for (var h = []; C--; )
1227
- h.push("0");
1228
- c = h.join("") + c;
1229
- var x = [];
1226
+ for (var x = []; j--; )
1227
+ x.push("0");
1228
+ c = x.join("") + c;
1229
+ var m = [];
1230
1230
  if (c > 0) {
1231
- g = t(c, 3);
1232
- for (var j = -1; j < g.length; j++)
1233
- if (_ = g[j], _ > 0 && (f = t(_, 1), s = parseInt(f[0]), i = parseInt(f[1]), o = parseInt(f[2]), x.push(r.a100[s - 1]), p = j + 1 == 3 ? "a2" : "a1", i > 1 ? x.push(
1234
- r.a20[i - 2] + (o > 0 ? " " + r[p][o - 1] : "")
1235
- ) : x.push(
1236
- i > 0 ? r.a10[o] : r[p][o - 1]
1237
- ), g.length > j + 1)) {
1238
- var S = r["u" + (j + 1)];
1239
- x.push(n(_, S));
1231
+ p = t(c, 3);
1232
+ for (var C = -1; C < p.length; C++)
1233
+ if (_ = p[C], _ > 0 && (f = t(_, 1), s = parseInt(f[0]), i = parseInt(f[1]), o = parseInt(f[2]), m.push(r.a100[s - 1]), g = C + 1 == 3 ? "a2" : "a1", i > 1 ? m.push(
1234
+ r.a20[i - 2] + (o > 0 ? " " + r[g][o - 1] : "")
1235
+ ) : m.push(
1236
+ i > 0 ? r.a10[o] : r[g][o - 1]
1237
+ ), p.length > C + 1)) {
1238
+ var S = r["u" + (C + 1)];
1239
+ m.push(n(_, S));
1240
1240
  }
1241
1241
  } else
1242
- x.push(r.null);
1243
- return x.push(n(c, r.ur)), x.push(l + " " + n(l, r.uc)), x.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
1242
+ m.push(r.null);
1243
+ return m.push(n(c, r.ur)), m.push(l + " " + n(l, r.uc)), m.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
1244
1244
  };
1245
1245
  function ns(e) {
1246
1246
  let t = -1, n = [" kB", " MB", " GB", " TB", "PB", "EB", "ZB", "YB"];
@@ -1376,28 +1376,28 @@ function rs(e, t, n, r) {
1376
1376
  word: function(o, l, c, _) {
1377
1377
  if (_ === this.gcaseNom) return o;
1378
1378
  if (o.match(/[-]/)) {
1379
- for (var u = o.split("-"), g = 0, f = u.length; g < f; g++)
1380
- u[g] = this.word(u[g], l, c, _);
1379
+ for (var u = o.split("-"), p = 0, f = u.length; p < f; p++)
1380
+ u[p] = this.word(u[p], l, c, _);
1381
1381
  return u.join("-");
1382
1382
  }
1383
1383
  if (o.match(/^[А-ЯЁ]\.?$/i)) return o;
1384
1384
  this.init();
1385
- var p = this.rules[c];
1386
- let C;
1387
- return p.exceptions && (C = this.pick(o, l, _, p.exceptions, !0), C) ? C : (C = this.pick(o, l, _, p.suffixes, !1), C || o);
1385
+ var g = this.rules[c];
1386
+ let j;
1387
+ return g.exceptions && (j = this.pick(o, l, _, g.exceptions, !0), j) ? j : (j = this.pick(o, l, _, g.suffixes, !1), j || o);
1388
1388
  },
1389
1389
  // выбираем из списка правил первое подходящее и применяем
1390
1390
  pick: function(o, l, c, _, u) {
1391
- let g = o.toLowerCase();
1392
- for (var f = 0, p = _.length; f < p; f++)
1393
- if (this.ruleMatch(g, l, _[f], u))
1391
+ let p = o.toLowerCase();
1392
+ for (var f = 0, g = _.length; f < g; f++)
1393
+ if (this.ruleMatch(p, l, _[f], u))
1394
1394
  return this.applyMod(o, c, _[f]);
1395
1395
  return !1;
1396
1396
  },
1397
1397
  // проверяем, подходит ли правило к слову
1398
1398
  ruleMatch: function(o, l, c, _) {
1399
1399
  if (c.sex === this.sexM && l === this.sexF || c.sex === this.sexF && l !== this.sexF) return !1;
1400
- for (var u = 0, g = c.test.length; u < g; u++) {
1400
+ for (var u = 0, p = c.test.length; u < p; u++) {
1401
1401
  var f = _ ? o : o.substr(
1402
1402
  Math.max(o.length - c.test[u].length, 0)
1403
1403
  );
@@ -1428,7 +1428,7 @@ function rs(e, t, n, r) {
1428
1428
  _ = c.mods[4];
1429
1429
  break;
1430
1430
  }
1431
- for (var u = 0, g = _.length; u < g; u++) {
1431
+ for (var u = 0, p = _.length; u < p; u++) {
1432
1432
  var f = _.substr(u, 1);
1433
1433
  switch (f) {
1434
1434
  case ".":
@@ -1638,7 +1638,7 @@ function ys(e, t, n, r = !1) {
1638
1638
  function bs(e) {
1639
1639
  return { style: { background: `var(--color-${e})` } };
1640
1640
  }
1641
- const Z = {
1641
+ const U = {
1642
1642
  Age: gs,
1643
1643
  ArraySort: vs,
1644
1644
  ArrayGroup: Cs,
@@ -1666,17 +1666,17 @@ const Z = {
1666
1666
  isNumeric: ps,
1667
1667
  Week: ms
1668
1668
  };
1669
- Z.setFN = (e, t) => {
1670
- Z[e] = t;
1669
+ U.setFN = (e, t) => {
1670
+ U[e] = t;
1671
1671
  };
1672
1672
  const ws = ({ before: e, from: t = 0, to: n }) => {
1673
- const r = m.useRef();
1674
- return m.useEffect(() => {
1673
+ const r = h.useRef();
1674
+ return h.useEffect(() => {
1675
1675
  r.n = 0;
1676
1676
  let o = Math.round(1e3 / (n / 10)), l = setInterval(() => {
1677
1677
  r.n = r.n + 10, r.n >= n && clearInterval(l);
1678
1678
  let c = e ? e + " " : "";
1679
- r.current.textContent = `${c}` + Z.Money(r.n);
1679
+ r.current.textContent = `${c}` + U.Money(r.n);
1680
1680
  }, o);
1681
1681
  }, [t, n]), /* @__PURE__ */ a.jsx("span", { ref: r });
1682
1682
  }, ed = { Counter: ws }, Ss = "_notice_9i5tr_2", Es = "_error_9i5tr_9", Ds = "_success_9i5tr_12", Rs = "_remark_9i5tr_15", Is = "_copy_9i5tr_18", Ns = {
@@ -1690,7 +1690,7 @@ const ws = ({ before: e, from: t = 0, to: n }) => {
1690
1690
  };
1691
1691
  let Ce = {};
1692
1692
  function Ts() {
1693
- let [e, t] = m.useState([]);
1693
+ let [e, t] = h.useState([]);
1694
1694
  return Ce.set = (n) => {
1695
1695
  t([...e, n]);
1696
1696
  }, Ce.del = (n) => {
@@ -1698,8 +1698,8 @@ function Ts() {
1698
1698
  }, e.length === 0 ? "" : /* @__PURE__ */ a.jsx("ul", { className: Ns.notice, children: e.map((n) => n.item) });
1699
1699
  }
1700
1700
  function We({ data: e }) {
1701
- let [t, n] = m.useState("show");
1702
- m.useEffect(() => {
1701
+ let [t, n] = h.useState("show");
1702
+ h.useEffect(() => {
1703
1703
  setTimeout(function() {
1704
1704
  n("hide");
1705
1705
  }, 1800), setTimeout(function() {
@@ -1794,7 +1794,7 @@ const Ps = "_alerts_1pds5_1", Os = "_menuAnimation_1pds5_1", As = "_menuItemAnim
1794
1794
  };
1795
1795
  let Ge = {};
1796
1796
  function Zs() {
1797
- let [e, t] = m.useState("");
1797
+ let [e, t] = h.useState("");
1798
1798
  return Ge.set = (n) => t(n), Ge.del = () => t(""), /* @__PURE__ */ a.jsx(a.Fragment, { children: e });
1799
1799
  }
1800
1800
  const Us = ({ data: e, callback: t, cancel: n }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ a.jsxs("div", { className: bt.alerts, children: [
@@ -1827,7 +1827,7 @@ function Ks(e, t, n) {
1827
1827
  /* @__PURE__ */ a.jsx(Us, { data: e, callback: t, cancel: n })
1828
1828
  );
1829
1829
  }
1830
- const Te = { Send: Ms, Error: Ls, Remark: Fs, Success: $s, Copy: Bs }, Ae = {
1830
+ const we = { Send: Ms, Error: Ls, Remark: Fs, Success: $s, Copy: Bs }, Ae = {
1831
1831
  Path: _r,
1832
1832
  Push: ur,
1833
1833
  setPage: tr,
@@ -1839,7 +1839,7 @@ const Te = { Send: Ms, Error: Ls, Remark: Fs, Success: $s, Copy: Bs }, Ae = {
1839
1839
  useModule: ar,
1840
1840
  isModule: sr,
1841
1841
  setTabs: En,
1842
- getTabs: Ie,
1842
+ getTabs: Ne,
1843
1843
  useTabs: Sn,
1844
1844
  isTabs: ir,
1845
1845
  useId: or,
@@ -1994,7 +1994,7 @@ function ti(e) {
1994
1994
  Ye.fn = e;
1995
1995
  }
1996
1996
  function ni() {
1997
- const [e, t] = m.useReducer(Js, {
1997
+ const [e, t] = h.useReducer(Js, {
1998
1998
  open: !1,
1999
1999
  active: !1,
2000
2000
  news: [],
@@ -2007,7 +2007,7 @@ function ni() {
2007
2007
  Oe.push(r.data);
2008
2008
  break;
2009
2009
  }
2010
- }), m.useEffect(() => {
2010
+ }), h.useEffect(() => {
2011
2011
  (async () => {
2012
2012
  let r = await pe.Send({
2013
2013
  type: "module",
@@ -2147,7 +2147,7 @@ let de = {}, Q = {}, Qe = [
2147
2147
  "job"
2148
2148
  ];
2149
2149
  function li() {
2150
- const [e, t] = m.useState(!1), [n, r] = m.useState(!1);
2150
+ const [e, t] = h.useState(!1), [n, r] = h.useState(!1);
2151
2151
  function s(i) {
2152
2152
  const o = new si();
2153
2153
  de.laodData = (l) => {
@@ -2328,10 +2328,10 @@ function qi({
2328
2328
  label: o,
2329
2329
  onRef: l
2330
2330
  }) {
2331
- let [c, _] = m.useState(!1);
2332
- const u = (g) => {
2331
+ let [c, _] = h.useState(!1);
2332
+ const u = (p) => {
2333
2333
  if (e) return e();
2334
- c || (t ? (_(!0), t(_)) : g.preventDefault());
2334
+ c || (t ? (_(!0), t(_)) : p.preventDefault());
2335
2335
  };
2336
2336
  return /* @__PURE__ */ a.jsx(
2337
2337
  "button",
@@ -2350,7 +2350,7 @@ function qi({
2350
2350
  }
2351
2351
  let rt = {};
2352
2352
  function Vi() {
2353
- let [e, t] = m.useState([]);
2353
+ let [e, t] = h.useState([]);
2354
2354
  return rt.x = (n) => {
2355
2355
  n || t([]);
2356
2356
  }, rt.add = (n) => {
@@ -2363,55 +2363,60 @@ function Ji({
2363
2363
  button: n,
2364
2364
  tabs: r,
2365
2365
  size: s = "m",
2366
- menu: i
2366
+ className: i = "",
2367
+ menu: o
2367
2368
  }) {
2368
- const [o, l] = m.useState(!0), c = m.useRef(), _ = (g) => {
2369
+ const [l, c] = h.useState(!0), _ = h.useRef(), u = (f) => {
2369
2370
  if (n) {
2370
2371
  if (n.onClick)
2371
- return g(!1), n.onClick({ setOpen: l });
2372
+ return f(!1), n.onClick({ setOpen: c });
2372
2373
  if (n.onSend)
2373
2374
  return n.onSend({
2374
- setOpen: l,
2375
- disabled: g
2375
+ setOpen: c,
2376
+ disabled: f
2376
2377
  });
2377
2378
  }
2378
- }, u = () => {
2379
- c.current.setAttribute("shake", !0), setTimeout(() => {
2380
- c.current.setAttribute("shake", !1);
2379
+ }, p = () => {
2380
+ _.current.setAttribute("shake", !0), setTimeout(() => {
2381
+ _.current.setAttribute("shake", !1);
2381
2382
  }, 1e3);
2382
2383
  };
2383
- return /* @__PURE__ */ a.jsx(a.Fragment, { children: o ? /* @__PURE__ */ a.jsxs(
2384
+ return /* @__PURE__ */ a.jsx(a.Fragment, { children: l ? /* @__PURE__ */ a.jsxs(
2384
2385
  "div",
2385
2386
  {
2386
2387
  className: `${te.modal} ${te.white}`,
2387
2388
  children: [
2388
- /* @__PURE__ */ a.jsx("div", { className: te.o, onClick: u }),
2389
+ /* @__PURE__ */ a.jsx("div", { className: te.o, onClick: p }),
2389
2390
  /* @__PURE__ */ a.jsxs(
2390
2391
  "div",
2391
2392
  {
2392
- className: [te.w, te[`s${s}`]].join(" "),
2393
- ref: c,
2393
+ className: [
2394
+ te.w,
2395
+ te[`s${s}`],
2396
+ i
2397
+ ].join(" "),
2398
+ ref: _,
2394
2399
  children: [
2395
2400
  /* @__PURE__ */ a.jsxs("div", { className: te.h, children: [
2396
2401
  /* @__PURE__ */ a.jsx("div", { className: te.t, children: e }),
2397
2402
  /* @__PURE__ */ a.jsxs("div", { className: te.m, children: [
2398
- r && /* @__PURE__ */ a.jsx("nav", { children: r.map((g, f) => /* @__PURE__ */ a.jsx(
2403
+ r && /* @__PURE__ */ a.jsx("nav", { children: r.map((f, g) => /* @__PURE__ */ a.jsx(
2399
2404
  "span",
2400
2405
  {
2401
- onClick: g.onClick,
2402
- className: g.active ? "active" : "",
2403
- children: g.name
2406
+ onClick: f.onClick,
2407
+ className: f.active ? "active" : "",
2408
+ children: f.name
2404
2409
  },
2405
- f
2410
+ g
2406
2411
  )) }),
2407
- i
2412
+ o
2408
2413
  ] }),
2409
2414
  /* @__PURE__ */ a.jsx(
2410
2415
  "div",
2411
2416
  {
2412
2417
  className: te.x,
2413
2418
  onClick: () => {
2414
- l(!1);
2419
+ c(!1);
2415
2420
  },
2416
2421
  children: /* @__PURE__ */ a.jsx("svg", { viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ a.jsx(
2417
2422
  "path",
@@ -2431,7 +2436,7 @@ function Ji({
2431
2436
  qi,
2432
2437
  {
2433
2438
  label: n.label,
2434
- onSend: _,
2439
+ onSend: u,
2435
2440
  className: te.btn
2436
2441
  }
2437
2442
  ) : ""
@@ -2456,8 +2461,8 @@ function eo(e) {
2456
2461
  }, 1e3);
2457
2462
  }
2458
2463
  function to({ type: e, name: t, params: n }) {
2459
- let [r, s] = m.useState(null);
2460
- return m.useEffect(() => {
2464
+ let [r, s] = h.useState(null);
2465
+ return h.useEffect(() => {
2461
2466
  st(`${e}/modal/${t}.tsx`).then((i) => {
2462
2467
  s(i.default.Icon(n));
2463
2468
  });
@@ -2485,7 +2490,7 @@ const ot = {
2485
2490
  Column: Gi
2486
2491
  };
2487
2492
  function Bn({ text: e, type: t, button: n }) {
2488
- let [r, s] = m.useState(!1), i = { active: t };
2493
+ let [r, s] = h.useState(!1), i = { active: t };
2489
2494
  const o = () => {
2490
2495
  if (n) {
2491
2496
  if (n.onClick)
@@ -2632,7 +2637,7 @@ const Co = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2632
2637
  search: !1,
2633
2638
  revers: !0
2634
2639
  }), So = () => {
2635
- let [e, t] = m.useState([]);
2640
+ let [e, t] = h.useState([]);
2636
2641
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ a.jsxs("div", { className: "upload view", children: [
2637
2642
  /* @__PURE__ */ a.jsxs("div", { className: "--head", children: [
2638
2643
  /* @__PURE__ */ a.jsx("b", { children: "Загрузки" }),
@@ -2654,7 +2659,7 @@ const Co = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2654
2659
  dir: r
2655
2660
  }) => {
2656
2661
  t = t || "Файлы";
2657
- const [s, i] = m.useReducer(bo, {}, wo), o = () => {
2662
+ const [s, i] = h.useReducer(bo, {}, wo), o = () => {
2658
2663
  ot.Add(
2659
2664
  /* @__PURE__ */ a.jsx(
2660
2665
  Do,
@@ -2667,7 +2672,7 @@ const Co = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2667
2672
  )
2668
2673
  );
2669
2674
  };
2670
- return m.useEffect(() => {
2675
+ return h.useEffect(() => {
2671
2676
  (async () => {
2672
2677
  let l = await pe.Send({
2673
2678
  type: "module",
@@ -2709,12 +2714,12 @@ const Co = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2709
2714
  ] }) : s.list.length === 0 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : s.list.map((l, c) => /* @__PURE__ */ a.jsx(Ro, { dispatch: i, data: l }, c)) })
2710
2715
  ] });
2711
2716
  }, Do = ({ id: e, dir: t, dispatch: n }) => {
2712
- let [r, s] = m.useState(!0), i = m.useRef(null), o = (_) => {
2717
+ let [r, s] = h.useState(!0), i = h.useRef(null), o = (_) => {
2713
2718
  _.preventDefault(), _.stopPropagation();
2714
2719
  }, l = (_) => {
2715
2720
  }, c = (_) => {
2716
2721
  };
2717
- return m.useEffect(() => {
2722
+ return h.useEffect(() => {
2718
2723
  let _ = i.current;
2719
2724
  ["dragenter", "dragover", "dragleave", "drop"].forEach((u) => {
2720
2725
  _.addEventListener(u, o, !1), document.body.addEventListener(u, o, !1);
@@ -2777,11 +2782,11 @@ const Co = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2777
2782
  "Content-type": "application/json;charset=utf-8",
2778
2783
  SSID: J.getSSID() || ""
2779
2784
  }
2780
- })).json()).status === "success" && (t({ type: "delete", id: e.id }), Te.Send({ type: "success", text: "Файл успешно удалён" }));
2785
+ })).json()).status === "success" && (t({ type: "delete", id: e.id }), we.Send({ type: "success", text: "Файл успешно удалён" }));
2781
2786
  };
2782
2787
  return /* @__PURE__ */ a.jsxs("li", { children: [
2783
- /* @__PURE__ */ a.jsx("div", { className: "f035", children: Z.TypeFiles(e.type) }),
2784
- /* @__PURE__ */ a.jsx("div", { className: "f100", children: Z.Date(e.uDate, "dd.mm.yy") }),
2788
+ /* @__PURE__ */ a.jsx("div", { className: "f035", children: U.TypeFiles(e.type) }),
2789
+ /* @__PURE__ */ a.jsx("div", { className: "f100", children: U.Date(e.uDate, "dd.mm.yy") }),
2785
2790
  /* @__PURE__ */ a.jsx("div", { className: "f000", children: e.name }),
2786
2791
  /* @__PURE__ */ a.jsxs("div", { className: "f050 flex button", children: [
2787
2792
  /* @__PURE__ */ a.jsx(
@@ -2803,7 +2808,7 @@ const Co = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2803
2808
  }
2804
2809
  )
2805
2810
  ] }),
2806
- /* @__PURE__ */ a.jsx("div", { className: "f080", children: Z.Size(e.size) })
2811
+ /* @__PURE__ */ a.jsx("div", { className: "f080", children: U.Size(e.size) })
2807
2812
  ] });
2808
2813
  }, $t = { setSetting: mr, getSetting: hr };
2809
2814
  let Y = {};
@@ -2811,8 +2816,8 @@ Y.list = wr();
2811
2816
  Y.active = null;
2812
2817
  const Io = () => {
2813
2818
  var s;
2814
- let [e, t] = m.useState([]), [n, r] = m.useState($t.getSetting("s03"));
2815
- return m.useEffect(() => {
2819
+ let [e, t] = h.useState([]), [n, r] = h.useState($t.getSetting("s03"));
2820
+ return h.useEffect(() => {
2816
2821
  (async () => {
2817
2822
  let i = Object.keys(Y.list);
2818
2823
  if (i.length !== 0) {
@@ -2848,14 +2853,14 @@ const Io = () => {
2848
2853
  n === 1 && e.length !== 0 ? "bottom" : ""
2849
2854
  ), n !== 0 ? /* @__PURE__ */ a.jsx(a.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ a.jsx("div", { className: "bookmarks", children: e.map((i) => i.item) }) : "" }) : "";
2850
2855
  }, No = ({ id: e, type: t, name: n }) => {
2851
- let r = t + "-" + e, [s, i] = m.useState(
2856
+ let r = t + "-" + e, [s, i] = h.useState(
2852
2857
  Y.list[r] !== void 0
2853
2858
  );
2854
- m.useEffect(() => {
2859
+ h.useEffect(() => {
2855
2860
  i(Y.list[r] !== void 0);
2856
2861
  }, [r]);
2857
2862
  let o = () => {
2858
- Y.list[r] !== void 0 ? (Y.del(r), delete Y.list[r], ln(Y.list), i(!1), Te.Send({ type: "success", text: "Запись удален из закладок" })) : (Y.list[r] = { id: e, name: n, type: t, link: r }, Y.set(Y.list[r]), ln(Y.list), i(!0), Te.Send({
2863
+ Y.list[r] !== void 0 ? (Y.del(r), delete Y.list[r], ln(Y.list), i(!1), we.Send({ type: "success", text: "Запись удален из закладок" })) : (Y.list[r] = { id: e, name: n, type: t, link: r }, Y.set(Y.list[r]), ln(Y.list), i(!0), we.Send({
2859
2864
  type: "success",
2860
2865
  text: "Запись добавлен в закладки"
2861
2866
  }));
@@ -3023,8 +3028,8 @@ K.Run = async (e) => {
3023
3028
  };
3024
3029
  let ze = {};
3025
3030
  function Mo() {
3026
- let [e, t] = m.useState([]), n = m.useRef(null);
3027
- return m.useEffect(() => {
3031
+ let [e, t] = h.useState([]), n = h.useRef(null);
3032
+ return h.useEffect(() => {
3028
3033
  }, []), ze.set = (r) => {
3029
3034
  t([...e, r]);
3030
3035
  }, ze.del = () => {
@@ -3044,8 +3049,8 @@ function Lo(e, t) {
3044
3049
  });
3045
3050
  }
3046
3051
  function $o({ id: e, type: t }) {
3047
- const [n, r] = m.useState({}), [s, i] = m.useState(t);
3048
- m.useEffect(() => {
3052
+ const [n, r] = h.useState({}), [s, i] = h.useState(t);
3053
+ h.useEffect(() => {
3049
3054
  r(J.getSelect("user")[e]);
3050
3055
  }, []), K.useListener((c) => {
3051
3056
  switch (c.type) {
@@ -3151,7 +3156,7 @@ function Bo({ color: e, size: t, name: n }) {
3151
3156
  return /* @__PURE__ */ a.jsx("svg", { width: t, height: t, color: e, children: /* @__PURE__ */ a.jsx("use", { href: `#${n}` }) });
3152
3157
  }
3153
3158
  function Po() {
3154
- let [e, t] = m.useState([]);
3159
+ let [e, t] = h.useState([]);
3155
3160
  if (Et.x = () => {
3156
3161
  t([]);
3157
3162
  }, Et.add = (r) => {
@@ -3176,7 +3181,7 @@ const Oo = (e) => {
3176
3181
  }, On = Aa(
3177
3182
  localStorage.getItem("lang") || navigator.language
3178
3183
  ), Ao = ({ children: e }) => {
3179
- const [t, n] = m.useState(
3184
+ const [t, n] = h.useState(
3180
3185
  localStorage.getItem("lang") || navigator.language
3181
3186
  );
3182
3187
  return tt.update = n, /* @__PURE__ */ a.jsx(On.Provider, { value: Pn[t], children: e });
@@ -3192,8 +3197,8 @@ function Uo(e, t) {
3192
3197
  }
3193
3198
  const ve = {};
3194
3199
  function Ko(e, t) {
3195
- const [n, r] = m.useState(t);
3196
- return m.useEffect(() => {
3200
+ const [n, r] = h.useState(t);
3201
+ return h.useEffect(() => {
3197
3202
  if (ve[e]) return ve[e].push(r);
3198
3203
  ve[e] = [r];
3199
3204
  }, []), [n];
@@ -3205,10 +3210,10 @@ function Wo(e, t) {
3205
3210
  function Yo(e, t) {
3206
3211
  ve[e] && ve[e].forEach((n) => n(t));
3207
3212
  }
3208
- const we = { setListener: Uo, useListener: Ft, setEmitter: Yo, useEmitter: Ko, subEmitter: Wo };
3213
+ const Se = { setListener: Uo, useListener: Ft, setEmitter: Yo, useEmitter: Ko, subEmitter: Wo };
3209
3214
  function Ho() {
3210
- let [e, t] = m.useState([]);
3211
- return we.useListener("form", (n) => {
3215
+ let [e, t] = h.useState([]);
3216
+ return Se.useListener("form", (n) => {
3212
3217
  t([n]);
3213
3218
  }), /* @__PURE__ */ a.jsx(a.Fragment, { children: e.map((n) => n) });
3214
3219
  }
@@ -3231,7 +3236,7 @@ const qo = ({ children: e, lang: t }) => Ya(
3231
3236
  payment: Xo
3232
3237
  };
3233
3238
  function el() {
3234
- let [e, t] = m.useState({});
3239
+ let [e, t] = h.useState({});
3235
3240
  return !e.active && !e.payment ? "" : /* @__PURE__ */ a.jsx("div", { className: Qo.payment, children: "Истек срок оплаты! Доступ доступен до 16.04.2024" });
3236
3241
  }
3237
3242
  const td = ({ children: e, ...t }) => /* @__PURE__ */ a.jsxs("div", { className: "app", children: [
@@ -3258,7 +3263,7 @@ const td = ({ children: e, ...t }) => /* @__PURE__ */ a.jsxs("div", { className:
3258
3263
  },
3259
3264
  n.id
3260
3265
  )) }), al = ({ list: e = [], active: t, onChange: n }) => {
3261
- const [r, s] = m.useState(t);
3266
+ const [r, s] = h.useState(t);
3262
3267
  return /* @__PURE__ */ a.jsx("ul", { className: "tabs-button", children: e.map((i) => /* @__PURE__ */ a.jsx(
3263
3268
  rl,
3264
3269
  {
@@ -3311,7 +3316,7 @@ const td = ({ children: e, ...t }) => /* @__PURE__ */ a.jsxs("div", { className:
3311
3316
  ] }), il = "_setting_dva4m_2", ol = {
3312
3317
  setting: il
3313
3318
  }, ll = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: ol.setting, children: e }), cl = ({ label: e, children: t }) => {
3314
- let [n, r] = m.useState(!1);
3319
+ let [n, r] = h.useState(!1);
3315
3320
  return /* @__PURE__ */ a.jsxs("li", { "data-item": "accordion", children: [
3316
3321
  /* @__PURE__ */ a.jsxs("dl", { onClick: () => r(!n), children: [
3317
3322
  /* @__PURE__ */ a.jsx("dt", { children: e }),
@@ -3406,7 +3411,7 @@ function Sl(e, t) {
3406
3411
  }
3407
3412
  }
3408
3413
  function El() {
3409
- const [e, t] = m.useReducer(
3414
+ const [e, t] = h.useReducer(
3410
3415
  Sl,
3411
3416
  kt() === void 0 ? { active: 1, sort: "<" } : kt()
3412
3417
  );
@@ -3467,12 +3472,12 @@ function Nl(e) {
3467
3472
  }
3468
3473
  const od = { Init: El, useValue: Dl, Set: Rl, Run: Il, Count: Nl }, nt = {}, Gn = {};
3469
3474
  function Tl(e) {
3470
- const [t, n] = m.useState({}), r = async (s) => {
3475
+ const [t, n] = h.useState({}), r = async (s) => {
3471
3476
  n(
3472
3477
  Object.keys(nt).reduce((i, o) => (i ? i[o] = nt[o].all : i = {}, i), {})
3473
3478
  );
3474
3479
  };
3475
- return m.useEffect(() => {
3480
+ return h.useEffect(() => {
3476
3481
  e.forEach((s) => nt[s] = { all: 0 }), Gn.menu = r, r();
3477
3482
  }, [e]), t;
3478
3483
  }
@@ -3530,26 +3535,26 @@ const Me = () => (vt || (vt = new Ll()), vt), je = (e, t, n = Me()) => n._withID
3530
3535
  };
3531
3536
  }).then(() => t);
3532
3537
  }, Bl = (e, t, n = [], r = {}) => {
3533
- let s = n.length !== 0, i = [], o = r.sort, l = Object.keys(r).length !== 0, c = Object.keys(r), _ = Object.keys(e), u = [], g = (p) => {
3534
- let C = "";
3535
- if (n.forEach((h) => {
3536
- C += t[p][h];
3538
+ let s = n.length !== 0, i = [], o = r.sort, l = Object.keys(r).length !== 0, c = Object.keys(r), _ = Object.keys(e), u = [], p = (g) => {
3539
+ let j = "";
3540
+ if (n.forEach((x) => {
3541
+ j += t[g][x];
3537
3542
  }), l) {
3538
- let h = {};
3539
- c.forEach((x) => {
3540
- h[x] = t[p][x];
3543
+ let x = {};
3544
+ c.forEach((m) => {
3545
+ x[m] = t[g][m];
3541
3546
  });
3542
- for (let x in o)
3543
- t[p][o[x]] === void 0 && (It(), location.reload()), x === "s1" && (h[x] = new Date(t[p][o[x]]).getTime()), x === "s2" && (h[x] = t[p][o[x]]), x === "s3" && (h[x] = t[p][o[x]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
3544
- i.push({ id: p, text: C, ...h });
3547
+ for (let m in o)
3548
+ t[g][o[m]] === void 0 && (It(), location.reload()), m === "s1" && (x[m] = new Date(t[g][o[m]]).getTime()), m === "s2" && (x[m] = t[g][o[m]]), m === "s3" && (x[m] = t[g][o[m]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
3549
+ i.push({ id: g, text: j, ...x });
3545
3550
  } else
3546
- i.push({ id: p, text: C });
3547
- }, f = (p) => {
3551
+ i.push({ id: g, text: j });
3552
+ }, f = (g) => {
3548
3553
  };
3549
- return _.forEach((p) => {
3550
- u.push(t[p]);
3551
- }), u.forEach((p) => {
3552
- p === void 0 ? (It(), location.reload()) : (s && g(p.id), l && f(p.id));
3554
+ return _.forEach((g) => {
3555
+ u.push(t[g]);
3556
+ }), u.forEach((g) => {
3557
+ g === void 0 ? (It(), location.reload()) : (s && p(g.id), l && f(g.id));
3553
3558
  }), { list: u, search: i, filter: r };
3554
3559
  }, Pl = (e, t, n, r = Me()) => {
3555
3560
  if (q[e] === void 0)
@@ -3668,7 +3673,7 @@ function Xl({
3668
3673
  className: n,
3669
3674
  ...r
3670
3675
  }) {
3671
- const s = m.useRef(null), [i, o] = m.useReducer(Jl, {
3676
+ const s = h.useRef(null), [i, o] = h.useReducer(Jl, {
3672
3677
  load: !1,
3673
3678
  list: [],
3674
3679
  data: {},
@@ -3676,7 +3681,7 @@ function Xl({
3676
3681
  wait: !1,
3677
3682
  size: 0
3678
3683
  });
3679
- m.useEffect(() => {
3684
+ h.useEffect(() => {
3680
3685
  s.current.scrollTop = 0, e !== null && o({ type: "load", load: !0, data: e });
3681
3686
  }, [t]);
3682
3687
  let l = () => {
@@ -3732,34 +3737,34 @@ function Ze({
3732
3737
  edit: c = !0,
3733
3738
  active: _ = !0,
3734
3739
  after: u = "",
3735
- show: g = !0,
3740
+ show: p = !0,
3736
3741
  view: f,
3737
- onBlur: p,
3738
- onSave: C,
3739
- className: h = "",
3740
- isCopy: x = !0
3742
+ onBlur: g,
3743
+ onSave: j,
3744
+ className: x = "",
3745
+ isCopy: m = !0
3741
3746
  }) {
3742
- let j = !!(l && (t === "" || t === void 0)), S = ($) => {
3743
- n && n({ value: $.target.textContent.trim(), name: r });
3744
- }, N = ($) => {
3745
- $.key === "Enter" && $.preventDefault();
3746
- }, T = ($) => {
3747
- x && ($.preventDefault(), navigator.clipboard.writeText($.target.textContent.trim()).then(
3747
+ let C = !!(l && (t === "" || t === void 0)), S = (z) => {
3748
+ n && n({ value: z.target.textContent.trim(), name: r });
3749
+ }, N = (z) => {
3750
+ z.key === "Enter" && z.preventDefault();
3751
+ }, T = (z) => {
3752
+ m && (z.preventDefault(), navigator.clipboard.writeText(z.target.textContent.trim()).then(
3748
3753
  function() {
3749
- Te.Copy("Данные в буфер обмене");
3754
+ we.Copy("Данные в буфер обмене");
3750
3755
  },
3751
- function(M) {
3756
+ function($) {
3752
3757
  }
3753
3758
  ));
3754
- }, k = ($) => {
3759
+ }, k = (z) => {
3755
3760
  };
3756
- if (!(c && _) && !g || !(c && _) && j) return "";
3761
+ if (!(c && _) && !p || !(c && _) && C) return "";
3757
3762
  const y = {};
3758
- y.field = "input", h && (y.className = h);
3763
+ y.field = "input", x && (y.className = x);
3759
3764
  const b = {};
3760
3765
  s && (b.placeholder = s), c && _ && (b.edit = "");
3761
- const E = ($) => {
3762
- ce.Blur($), C == null || C({ value: $.target.textContent.trim(), name: r });
3766
+ const E = (z) => {
3767
+ ce.Blur(z), j == null || j({ value: z.target.textContent.trim(), name: r });
3763
3768
  };
3764
3769
  return /* @__PURE__ */ a.jsxs("dl", { ...y, children: [
3765
3770
  i ? /* @__PURE__ */ a.jsx("dt", { children: i }) : "",
@@ -3782,7 +3787,7 @@ function Ze({
3782
3787
  ] });
3783
3788
  }
3784
3789
  function Kn({ onClick: e, onSend: t, name: n, onRef: r }) {
3785
- let [s, i] = m.useState(!1);
3790
+ let [s, i] = h.useState(!1);
3786
3791
  const o = () => {
3787
3792
  if (e) return e();
3788
3793
  s || (i(!0), t && t(i));
@@ -3809,7 +3814,7 @@ function Wn({
3809
3814
  active: l = !0,
3810
3815
  placeholder: c = "Введите сообщение"
3811
3816
  }) {
3812
- const _ = m.useRef({
3817
+ const _ = h.useRef({
3813
3818
  value: e,
3814
3819
  timerId: null,
3815
3820
  shift: !1,
@@ -3818,31 +3823,31 @@ function Wn({
3818
3823
  _.current.value.length > 0 ? _.current.send && (n(!0), _.current.send = !1, _.current.timerId = setTimeout(() => {
3819
3824
  _.current.send = !0;
3820
3825
  }, 3e3)) : n(!1);
3821
- }, g = (j) => {
3822
- _.current.value = j.target.textContent, u();
3823
- }, f = (j) => {
3824
- j.keyCode === 16 && (_.current.shift = !0), j.keyCode === 13 && !_.current.shift && (j.preventDefault(), _.current.value.length !== 0 && (j.target.textContent = "", r && r(_.current.value), t && t(_.current.value), _.current.value = "", n(!1)));
3825
- }, p = (j) => {
3826
- j.keyCode === 16 && (_.current.shift = !1);
3827
- }, C = (j) => {
3828
- j.preventDefault(), navigator.clipboard.readText().then((S) => {
3826
+ }, p = (C) => {
3827
+ _.current.value = C.target.textContent, u();
3828
+ }, f = (C) => {
3829
+ 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 = "", n(!1)));
3830
+ }, g = (C) => {
3831
+ C.keyCode === 16 && (_.current.shift = !1);
3832
+ }, j = (C) => {
3833
+ C.preventDefault(), navigator.clipboard.readText().then((S) => {
3829
3834
  window.document.execCommand("insertText", !1, S);
3830
3835
  }).catch((S) => {
3831
3836
  });
3832
- }, h = () => {
3837
+ }, x = () => {
3833
3838
  n(!1);
3834
- }, x = {
3839
+ }, m = {
3835
3840
  spellCheck: "true"
3836
3841
  };
3837
- return c && (x.placeholder = c), o && l && (x.contentEditable = "plaintext-only"), /* @__PURE__ */ a.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ a.jsx(
3842
+ return c && (m.placeholder = c), o && l && (m.contentEditable = "plaintext-only"), /* @__PURE__ */ a.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ a.jsx(
3838
3843
  "dd",
3839
3844
  {
3840
- onPaste: C,
3841
- onInput: g,
3842
- onKeyUp: p,
3845
+ onPaste: j,
3846
+ onInput: p,
3847
+ onKeyUp: g,
3843
3848
  onKeyDown: f,
3844
- onBlur: h,
3845
- ...x,
3849
+ onBlur: x,
3850
+ ...m,
3846
3851
  suppressContentEditableWarning: !0,
3847
3852
  children: e
3848
3853
  }
@@ -3876,28 +3881,28 @@ function Yn(e) {
3876
3881
  ] });
3877
3882
  }
3878
3883
  function Hn({ value: e, onValue: t, placeholder: n = "", name: r }) {
3879
- let s = (p, C) => Number(Math.round(p + Math.random() * (C - p))), i = m.useRef(null), o = m.useRef(null), l = s(1e4, 99999), c = (p) => {
3880
- p.key !== "Backspace" && (p.key === "Enter" && p.preventDefault(), p.target.textContent.length === 5 && p.preventDefault(), /\d/.test(p.key) || p.preventDefault());
3881
- }, _ = (p) => {
3882
- t({ value: Number(p.target.textContent) === l, name: r });
3883
- }, u = (p) => {
3884
- p.preventDefault(), navigator.clipboard.readText().then((C) => {
3884
+ let s = (g, j) => Number(Math.round(g + Math.random() * (j - g))), i = h.useRef(null), o = h.useRef(null), l = s(1e4, 99999), c = (g) => {
3885
+ g.key !== "Backspace" && (g.key === "Enter" && g.preventDefault(), g.target.textContent.length === 5 && g.preventDefault(), /\d/.test(g.key) || g.preventDefault());
3886
+ }, _ = (g) => {
3887
+ t({ value: Number(g.target.textContent) === l, name: r });
3888
+ }, u = (g) => {
3889
+ g.preventDefault(), navigator.clipboard.readText().then((j) => {
3885
3890
  window.document.execCommand(
3886
3891
  "insertText",
3887
3892
  !1,
3888
- C.replace(/(\r\n|\n|\r)/gm, " ").replace(/[^0-9]/g, "").substring(0, 5)
3893
+ j.replace(/(\r\n|\n|\r)/gm, " ").replace(/[^0-9]/g, "").substring(0, 5)
3889
3894
  );
3890
- }).catch((C) => {
3895
+ }).catch((j) => {
3891
3896
  });
3892
3897
  };
3893
- m.useEffect(() => {
3894
- const p = i.current, C = p.getContext("2d");
3895
- C.clearRect(0, 0, p.width, p.height), C.font = "30px brush script mt", C.fillStyle = "#eee", C.textAlign = "center", C.fillText(l, 50, 27), o.current.textContent = "";
3898
+ h.useEffect(() => {
3899
+ const g = i.current, j = g.getContext("2d");
3900
+ j.clearRect(0, 0, g.width, g.height), j.font = "30px brush script mt", j.fillStyle = "#eee", j.textAlign = "center", j.fillText(l, 50, 27), o.current.textContent = "";
3896
3901
  }, [l]);
3897
- const g = {};
3898
- g.field = "captcha";
3902
+ const p = {};
3903
+ p.field = "captcha";
3899
3904
  const f = {};
3900
- return n && (f.placeholder = n), /* @__PURE__ */ a.jsxs("dl", { ...g, children: [
3905
+ return n && (f.placeholder = n), /* @__PURE__ */ a.jsxs("dl", { ...p, children: [
3901
3906
  /* @__PURE__ */ a.jsx(
3902
3907
  "dd",
3903
3908
  {
@@ -3932,24 +3937,24 @@ function qn({
3932
3937
  n5: "",
3933
3938
  n6: "",
3934
3939
  code: ""
3935
- }, _ = (h) => {
3936
- if (h.preventDefault(), !r) return;
3937
- h.target.textContent = h.target.textContent.slice(-1).replace(/[^+\d]/g, "");
3938
- let x = window.getSelection(), j = h.target.textContent.length;
3939
- if (c[h.target.id] = h.target.textContent, c.code = c.n1 + "" + c.n2 + c.n3 + c.n4 + c.n5 + c.n6, x.collapse(h.target.firstChild, 1), j === 0) {
3940
- h.target.blur(), h.target.focus();
3940
+ }, _ = (x) => {
3941
+ if (x.preventDefault(), !r) return;
3942
+ x.target.textContent = x.target.textContent.slice(-1).replace(/[^+\d]/g, "");
3943
+ let m = window.getSelection(), C = x.target.textContent.length;
3944
+ if (c[x.target.id] = x.target.textContent, c.code = c.n1 + "" + c.n2 + c.n3 + c.n4 + c.n5 + c.n6, m.collapse(x.target.firstChild, 1), C === 0) {
3945
+ x.target.blur(), x.target.focus();
3941
3946
  return;
3942
3947
  }
3943
- h.target.nextSibling != null && h.target.nextSibling.focus();
3944
- }, u = (h) => {
3945
- if (r && (h.key === "Enter" && h.preventDefault(), h.key === "Backspace")) {
3946
- if (h.preventDefault(), h.target.textContent = "", c[h.target.id] = "", h.target.previousSibling != null) {
3947
- let x = h.target.previousSibling.id.slice(1);
3948
- h.target.previousSibling.textContent = "", c["n" + x] = "", h.target.previousSibling.focus();
3948
+ x.target.nextSibling != null && x.target.nextSibling.focus();
3949
+ }, u = (x) => {
3950
+ if (r && (x.key === "Enter" && x.preventDefault(), x.key === "Backspace")) {
3951
+ if (x.preventDefault(), x.target.textContent = "", c[x.target.id] = "", x.target.previousSibling != null) {
3952
+ let m = x.target.previousSibling.id.slice(1);
3953
+ x.target.previousSibling.textContent = "", c["n" + m] = "", x.target.previousSibling.focus();
3949
3954
  }
3950
3955
  c.code = c.n1 + "" + c.n2 + c.n3 + c.n4 + c.n5 + c.n6;
3951
3956
  }
3952
- }, g = (h) => {
3957
+ }, p = (x) => {
3953
3958
  if (r) {
3954
3959
  if (s)
3955
3960
  i && i({ value: c.code, name: l });
@@ -3963,26 +3968,26 @@ function qn({
3963
3968
  n6: "",
3964
3969
  code: ""
3965
3970
  };
3966
- for (let x = 1; x <= 6; x++) {
3967
- let j = document.getElementById("n" + x);
3968
- j && (j.textContent = "");
3971
+ for (let m = 1; m <= 6; m++) {
3972
+ let C = document.getElementById("n" + m);
3973
+ C && (C.textContent = "");
3969
3974
  }
3970
3975
  }
3971
3976
  }
3972
- }, f = (h) => {
3973
- h.target.textContent = "";
3974
- }, p = (h) => {
3975
- h.preventDefault(), navigator.clipboard.readText().then((x) => {
3976
- let j = x.split("");
3977
- for (let S = 1; S <= j.length; S++) {
3977
+ }, f = (x) => {
3978
+ x.target.textContent = "";
3979
+ }, g = (x) => {
3980
+ x.preventDefault(), navigator.clipboard.readText().then((m) => {
3981
+ let C = m.split("");
3982
+ for (let S = 1; S <= C.length; S++) {
3978
3983
  let N = document.getElementById("n" + S);
3979
- N && (N.textContent = j[S - 1]);
3984
+ N && (N.textContent = C[S - 1]);
3980
3985
  }
3981
- }).catch((x) => {
3986
+ }).catch((m) => {
3982
3987
  });
3983
3988
  };
3984
- const C = {};
3985
- return C.field = "code", e && (C.className = e), /* @__PURE__ */ a.jsxs("dl", { ...C, children: [
3989
+ const j = {};
3990
+ return j.field = "code", e && (j.className = e), /* @__PURE__ */ a.jsxs("dl", { ...j, children: [
3986
3991
  t ? /* @__PURE__ */ a.jsx("dt", { children: t }) : "",
3987
3992
  /* @__PURE__ */ a.jsxs("div", { children: [
3988
3993
  /* @__PURE__ */ a.jsx(
@@ -3990,9 +3995,9 @@ function qn({
3990
3995
  {
3991
3996
  id: "n1",
3992
3997
  onKeyDown: u,
3993
- onKeyUp: g,
3998
+ onKeyUp: p,
3994
3999
  onFocus: f,
3995
- onPaste: p,
4000
+ onPaste: g,
3996
4001
  onInput: _,
3997
4002
  contentEditable: !0
3998
4003
  }
@@ -4002,9 +4007,9 @@ function qn({
4002
4007
  {
4003
4008
  id: "n2",
4004
4009
  onKeyDown: u,
4005
- onKeyUp: g,
4010
+ onKeyUp: p,
4006
4011
  onFocus: f,
4007
- onPaste: p,
4012
+ onPaste: g,
4008
4013
  onInput: _,
4009
4014
  contentEditable: !0
4010
4015
  }
@@ -4014,9 +4019,9 @@ function qn({
4014
4019
  {
4015
4020
  id: "n3",
4016
4021
  onKeyDown: u,
4017
- onKeyUp: g,
4022
+ onKeyUp: p,
4018
4023
  onFocus: f,
4019
- onPaste: p,
4024
+ onPaste: g,
4020
4025
  onInput: _,
4021
4026
  contentEditable: !0
4022
4027
  }
@@ -4026,9 +4031,9 @@ function qn({
4026
4031
  {
4027
4032
  id: "n4",
4028
4033
  onKeyDown: u,
4029
- onKeyUp: g,
4034
+ onKeyUp: p,
4030
4035
  onFocus: f,
4031
- onPaste: p,
4036
+ onPaste: g,
4032
4037
  onInput: _,
4033
4038
  contentEditable: !0
4034
4039
  }
@@ -4038,9 +4043,9 @@ function qn({
4038
4043
  {
4039
4044
  id: "n5",
4040
4045
  onKeyDown: u,
4041
- onKeyUp: g,
4046
+ onKeyUp: p,
4042
4047
  onFocus: f,
4043
- onPaste: p,
4048
+ onPaste: g,
4044
4049
  onInput: _,
4045
4050
  contentEditable: !0
4046
4051
  }
@@ -4050,9 +4055,9 @@ function qn({
4050
4055
  {
4051
4056
  id: "n6",
4052
4057
  onKeyDown: u,
4053
- onKeyUp: g,
4058
+ onKeyUp: p,
4054
4059
  onFocus: f,
4055
- onPaste: p,
4060
+ onPaste: g,
4056
4061
  onInput: _,
4057
4062
  contentEditable: !0
4058
4063
  }
@@ -4073,19 +4078,19 @@ function Vn({
4073
4078
  length: c = 6,
4074
4079
  edit: _ = !0,
4075
4080
  active: u = !0,
4076
- after: g = "",
4081
+ after: p = "",
4077
4082
  show: f = !0,
4078
- view: p,
4079
- onBlur: C,
4080
- onSave: h,
4081
- className: x = ""
4083
+ view: g,
4084
+ onBlur: j,
4085
+ onSave: x,
4086
+ className: m = ""
4082
4087
  }) {
4083
4088
  _ = _ !== void 0 ? _ : !0, u = u !== void 0 ? u : !0;
4084
- let [j, S] = m.useState(t), N = (k) => {
4085
- S(k), n == null || n({ value: k, name: r }), h == null || h({ value: k, name: r });
4089
+ let [C, S] = h.useState(t), N = (k) => {
4090
+ S(k), n == null || n({ value: k, name: r }), x == null || x({ value: k, name: r });
4086
4091
  };
4087
4092
  const T = {};
4088
- return T.field = "color", x && (T.className = x), /* @__PURE__ */ a.jsx(a.Fragment, { children: p === "icon" ? /* @__PURE__ */ a.jsx(
4093
+ return T.field = "color", m && (T.className = m), /* @__PURE__ */ a.jsx(a.Fragment, { children: g === "icon" ? /* @__PURE__ */ a.jsx(
4089
4094
  "i",
4090
4095
  {
4091
4096
  "data-icon": "F043"
@@ -4095,7 +4100,7 @@ function Vn({
4095
4100
  /* @__PURE__ */ a.jsx("dd", { children: c > 0 && Array.from(Array(c).keys()).map((k) => /* @__PURE__ */ a.jsx(
4096
4101
  "s",
4097
4102
  {
4098
- active: (Number(k) === Number(j)) + "",
4103
+ active: (Number(k) === Number(C)) + "",
4099
4104
  onClick: () => N(k),
4100
4105
  style: {
4101
4106
  backgroundColor: `var(--color-${k})`
@@ -4113,22 +4118,22 @@ const Ql = "_o_oow80_1", ec = "_c_oow80_11", tc = "_as_oow80_87", nc = "_ap_oow8
4113
4118
  ap: nc
4114
4119
  };
4115
4120
  function Bt(e) {
4116
- let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, s = e.active !== void 0 ? e.active : !0, i = e.placeholder !== void 0 ? e.placeholder : "", [o, l] = m.useState(
4121
+ let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, s = e.active !== void 0 ? e.active : !0, i = e.placeholder !== void 0 ? e.placeholder : "", [o, l] = h.useState(
4117
4122
  e.value === void 0 ? /* @__PURE__ */ new Date() : e.value
4118
4123
  ), c = !r && s;
4119
- m.useEffect(() => {
4124
+ h.useEffect(() => {
4120
4125
  l(e.value === void 0 ? /* @__PURE__ */ new Date() : e.value);
4121
4126
  }, [e.value]);
4122
- let _ = (p) => {
4123
- l(p), e.onValue({ value: p, name: e.name });
4124
- }, u = (p) => {
4125
- const C = p.target.getBoundingClientRect(), h = C.left, x = C.top;
4126
- we.setListener(
4127
+ let _ = (g) => {
4128
+ l(g), e.onValue({ value: g, name: e.name });
4129
+ }, u = (g) => {
4130
+ const j = g.target.getBoundingClientRect(), x = j.left, m = j.top;
4131
+ Se.setListener(
4127
4132
  "form",
4128
4133
  /* @__PURE__ */ a.jsx(
4129
4134
  ac,
4130
4135
  {
4131
- position: { x: h, y: x },
4136
+ position: { x, y: m },
4132
4137
  onValue: _,
4133
4138
  date: o
4134
4139
  },
@@ -4136,8 +4141,8 @@ function Bt(e) {
4136
4141
  )
4137
4142
  );
4138
4143
  };
4139
- const g = {};
4140
- g.field = "input";
4144
+ const p = {};
4145
+ p.field = "input";
4141
4146
  const f = {};
4142
4147
  return i && (f.placeholder = i), c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsx(a.Fragment, { children: e.view === "icon" ? /* @__PURE__ */ a.jsx(
4143
4148
  "i",
@@ -4150,7 +4155,7 @@ function Bt(e) {
4150
4155
  ) : /* @__PURE__ */ a.jsxs(
4151
4156
  "dl",
4152
4157
  {
4153
- ...g,
4158
+ ...p,
4154
4159
  children: [
4155
4160
  t(),
4156
4161
  /* @__PURE__ */ a.jsx(
@@ -4159,7 +4164,7 @@ function Bt(e) {
4159
4164
  onClick: u,
4160
4165
  ...f,
4161
4166
  "data-edit": (r && s) + "",
4162
- children: Z.Date(o, "dd.mm.yyyy")
4167
+ children: U.Date(o, "dd.mm.yyyy")
4163
4168
  }
4164
4169
  ),
4165
4170
  n()
@@ -4168,7 +4173,7 @@ function Bt(e) {
4168
4173
  ) });
4169
4174
  }
4170
4175
  const ac = (e) => {
4171
- let [t, n] = m.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
4176
+ let [t, n] = h.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
4172
4177
  y: parseInt(r.getFullYear()),
4173
4178
  d: parseInt(r.getDate()),
4174
4179
  m: parseInt(r.getMonth()) + 1
@@ -4176,24 +4181,24 @@ const ac = (e) => {
4176
4181
  y: parseInt(s.getFullYear()),
4177
4182
  d: parseInt(s.getDate()),
4178
4183
  m: parseInt(s.getMonth()) + 1
4179
- }, [l, c] = m.useState({ y: o.y, m: o.m }), _ = (k) => {
4184
+ }, [l, c] = h.useState({ y: o.y, m: o.m }), _ = (k) => {
4180
4185
  let y = k.getDay();
4181
4186
  return y === 0 && (y = 7), y - 1;
4182
- }, u = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"], g = l.m - 1, f = new Date(l.y, g), p = [];
4187
+ }, u = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"], p = l.m - 1, f = new Date(l.y, p), g = [];
4183
4188
  for (let k = 0; k < _(f); k++)
4184
- p.push(0);
4185
- for (; f.getMonth() === g; )
4186
- p.push(f.getDate()), f.setDate(f.getDate() + 1);
4187
- let C = () => {
4189
+ g.push(0);
4190
+ for (; f.getMonth() === p; )
4191
+ g.push(f.getDate()), f.setDate(f.getDate() + 1);
4192
+ let j = () => {
4188
4193
  n(!1);
4189
- }, h = () => {
4190
- S(l.m + 1, l.y);
4191
4194
  }, x = () => {
4195
+ S(l.m + 1, l.y);
4196
+ }, m = () => {
4192
4197
  S(l.m - 1, l.y);
4193
- }, j = (k) => {
4198
+ }, C = (k) => {
4194
4199
  e.onValue(
4195
- l.y + "-" + Z.Number(2, l.m) + "-" + Z.Number(2, k)
4196
- ), C();
4200
+ l.y + "-" + U.Number(2, l.m) + "-" + U.Number(2, k)
4201
+ ), j();
4197
4202
  }, S = (k, y) => {
4198
4203
  y = k > 12 ? y + 1 : k < 1 ? y - 1 : y, k = k > 12 ? 1 : k < 1 ? 12 : k, c({ y, m: k });
4199
4204
  }, N = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, T = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
@@ -4202,7 +4207,7 @@ const ac = (e) => {
4202
4207
  "div",
4203
4208
  {
4204
4209
  className: ue.o,
4205
- onClick: () => C()
4210
+ onClick: () => j()
4206
4211
  },
4207
4212
  (/* @__PURE__ */ new Date()).getTime()
4208
4213
  ),
@@ -4213,7 +4218,7 @@ const ac = (e) => {
4213
4218
  style: { top: N + "px", left: T + "px" },
4214
4219
  children: [
4215
4220
  /* @__PURE__ */ a.jsxs("s", { children: [
4216
- /* @__PURE__ */ a.jsx("i", { onClick: x, children: /* @__PURE__ */ a.jsx(
4221
+ /* @__PURE__ */ a.jsx("i", { onClick: m, children: /* @__PURE__ */ a.jsx(
4217
4222
  "svg",
4218
4223
  {
4219
4224
  width: "16",
@@ -4225,11 +4230,11 @@ const ac = (e) => {
4225
4230
  }
4226
4231
  ) }),
4227
4232
  /* @__PURE__ */ a.jsxs("h2", { children: [
4228
- Z.Month(l.m).name,
4233
+ U.Month(l.m).name,
4229
4234
  " ",
4230
4235
  l.y
4231
4236
  ] }),
4232
- /* @__PURE__ */ a.jsx("i", { onClick: h, children: /* @__PURE__ */ a.jsx(
4237
+ /* @__PURE__ */ a.jsx("i", { onClick: x, children: /* @__PURE__ */ a.jsx(
4233
4238
  "svg",
4234
4239
  {
4235
4240
  width: "16",
@@ -4243,11 +4248,11 @@ const ac = (e) => {
4243
4248
  ] }),
4244
4249
  /* @__PURE__ */ a.jsxs("div", { "grid-calendar": "", children: [
4245
4250
  u.map((k, y) => /* @__PURE__ */ a.jsx("p", { children: k }, "v" + y)),
4246
- p.map((k, y) => /* @__PURE__ */ a.jsx("span", { children: k !== 0 ? /* @__PURE__ */ a.jsx(
4251
+ g.map((k, y) => /* @__PURE__ */ a.jsx("span", { children: k !== 0 ? /* @__PURE__ */ a.jsx(
4247
4252
  "b",
4248
4253
  {
4249
4254
  color: i.y === l.y && i.m === l.m && i.d === k ? "_FFEB3B" : "",
4250
- onClick: () => j(k),
4255
+ onClick: () => C(k),
4251
4256
  children: k
4252
4257
  }
4253
4258
  ) : /* @__PURE__ */ a.jsx("p", {}) }, y))
@@ -4269,27 +4274,27 @@ function Pt({
4269
4274
  show: c = !0,
4270
4275
  active: _ = !0,
4271
4276
  after: u = "",
4272
- view: g,
4277
+ view: p,
4273
4278
  modal: f,
4274
- module: p,
4275
- options: C,
4276
- className: h
4279
+ module: g,
4280
+ options: j,
4281
+ className: x
4277
4282
  }) {
4278
- let [x, j] = m.useState(e), S = (k) => {
4283
+ let [m, C] = h.useState(e), S = (k) => {
4279
4284
  if (!(l && _) || !f) return;
4280
4285
  let y = f.split(".");
4281
4286
  ot.Open(y[0], y[1], {
4282
4287
  callback: (b) => {
4283
- t && t({ value: b, name: n }), j(b);
4288
+ t && t({ value: b, name: n }), C(b);
4284
4289
  },
4285
4290
  onValue: t,
4286
- options: C,
4291
+ options: j,
4287
4292
  name: n,
4288
4293
  value: e
4289
4294
  });
4290
4295
  };
4291
4296
  const N = {};
4292
- N.field = "input", h && (N.className = h);
4297
+ N.field = "input", x && (N.className = x);
4293
4298
  const T = {};
4294
4299
  return r && (T.placeholder = r), o ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...N, children: [
4295
4300
  s && /* @__PURE__ */ a.jsx("dt", { children: s }),
@@ -4300,7 +4305,7 @@ function Pt({
4300
4305
  onClick: S,
4301
4306
  edit: (l && _) + "",
4302
4307
  "data-after": u,
4303
- children: x
4308
+ children: m
4304
4309
  }
4305
4310
  ),
4306
4311
  i && /* @__PURE__ */ a.jsx("em", { children: i })
@@ -4318,41 +4323,41 @@ function Ot({
4318
4323
  active: c = !0,
4319
4324
  after: _ = "",
4320
4325
  show: u = !0,
4321
- course: g = 100,
4326
+ course: p = 100,
4322
4327
  view: f,
4323
- onBlur: p,
4324
- type: C,
4325
- onSave: h,
4326
- className: x = ""
4328
+ onBlur: g,
4329
+ type: j,
4330
+ onSave: x,
4331
+ className: m = ""
4327
4332
  }) {
4328
- let j = !!(o && (e === "" || e === void 0));
4329
- e = Z.isNumeric(e) ? Number(e) / g : 0;
4330
- let S = (M) => C === "multi" ? M.replace(/[^+\d.+-]/g, "") : M.replace(/[^+\d.]/g, ""), N = (M, U) => {
4331
- let A = document.createRange(), I = window.getSelection();
4332
- A.setStart(U.childNodes[0], M), A.collapse(!0), I.removeAllRanges(), I.addRange(A), U.focus();
4333
- }, T = (M) => {
4333
+ let C = !!(o && (e === "" || e === void 0));
4334
+ e = U.isNumeric(e) ? Number(e) / p : 0;
4335
+ let S = ($) => j === "multi" ? $.replace(/[^+\d.+-]/g, "") : $.replace(/[^+\d.]/g, ""), N = ($, O) => {
4336
+ let L = document.createRange(), I = window.getSelection();
4337
+ L.setStart(O.childNodes[0], $), L.collapse(!0), I.removeAllRanges(), I.addRange(L), O.focus();
4338
+ }, T = ($) => {
4334
4339
  t == null || t({
4335
- value: S(M.target.textContent) * g,
4340
+ value: S($.target.textContent) * p,
4336
4341
  name: n
4337
- }), M.target.textContent = S(M.target.textContent), M.target.textContent.length > 0 && N(M.target.textContent.length, M.target);
4338
- }, k = (M) => {
4339
- ce.Blur(M), M.target.textContent === "" && (M.target.textContent = 0), h == null || h({ value: S(M.target.textContent) * g, name: n }), t == null || t({
4340
- value: S(M.target.textContent) * g,
4342
+ }), $.target.textContent = S($.target.textContent), $.target.textContent.length > 0 && N($.target.textContent.length, $.target);
4343
+ }, k = ($) => {
4344
+ ce.Blur($), $.target.textContent === "" && ($.target.textContent = 0), x == null || x({ value: S($.target.textContent) * p, name: n }), t == null || t({
4345
+ value: S($.target.textContent) * p,
4341
4346
  name: n
4342
- }), M.target.textContent = Z.Money(M.target.textContent);
4343
- }, y = (M) => {
4344
- M.target.textContent = S(M.target.textContent);
4345
- }, b = (M) => {
4346
- M.key === "Enter" && M.preventDefault();
4347
- }, E = (M) => {
4348
- M.preventDefault(), navigator.clipboard.readText().then((U) => {
4349
- U = U.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, U);
4350
- }).catch((U) => {
4347
+ }), $.target.textContent = U.Money($.target.textContent);
4348
+ }, y = ($) => {
4349
+ $.target.textContent = S($.target.textContent);
4350
+ }, b = ($) => {
4351
+ $.key === "Enter" && $.preventDefault();
4352
+ }, E = ($) => {
4353
+ $.preventDefault(), navigator.clipboard.readText().then((O) => {
4354
+ O = O.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, O);
4355
+ }).catch((O) => {
4351
4356
  });
4352
4357
  };
4353
- if (!(l && c) && !u || !(l && c) && j) return "";
4354
- const $ = {};
4355
- return $.field = "input", x && ($.className = x), /* @__PURE__ */ a.jsxs("dl", { ...$, children: [
4358
+ if (!(l && c) && !u || !(l && c) && C) return "";
4359
+ const z = {};
4360
+ return z.field = "input", m && (z.className = m), /* @__PURE__ */ a.jsxs("dl", { ...z, children: [
4356
4361
  s ? /* @__PURE__ */ a.jsx("dt", { children: s }) : "",
4357
4362
  /* @__PURE__ */ a.jsx(
4358
4363
  "dd",
@@ -4365,7 +4370,7 @@ function Ot({
4365
4370
  contentEditable: l && c ? "plaintext-only" : "false",
4366
4371
  suppressContentEditableWarning: !0,
4367
4372
  "e-after": _,
4368
- children: Z.Money(e)
4373
+ children: U.Money(e)
4369
4374
  }
4370
4375
  ),
4371
4376
  i ? /* @__PURE__ */ a.jsx("em", { children: i }) : ""
@@ -4384,58 +4389,58 @@ function Jn({
4384
4389
  className: _,
4385
4390
  after: u
4386
4391
  }) {
4387
- let [g, f] = m.useState(e);
4388
- m.useEffect(() => {
4392
+ let [p, f] = h.useState(e);
4393
+ h.useEffect(() => {
4389
4394
  f(e);
4390
4395
  }, [e]);
4391
- let p = (x) => {
4392
- f(x), t && t({ value: x, name: n });
4393
- }, C = (x) => {
4396
+ let g = (m) => {
4397
+ f(m), t && t({ value: m, name: n });
4398
+ }, j = (m) => {
4394
4399
  if (!i || !o) return;
4395
- const j = x.target.getBoundingClientRect(), S = j.left, N = j.top;
4396
- we.setListener(
4400
+ const C = m.target.getBoundingClientRect(), S = C.left, N = C.top;
4401
+ Se.setListener(
4397
4402
  "form",
4398
4403
  /* @__PURE__ */ a.jsx(
4399
4404
  rc,
4400
4405
  {
4401
4406
  position: { x: S, y: N },
4402
- onValue: p,
4403
- date: g
4407
+ onValue: g,
4408
+ date: p
4404
4409
  },
4405
4410
  (/* @__PURE__ */ new Date()).getTime()
4406
4411
  )
4407
4412
  );
4408
4413
  };
4409
- const h = {};
4410
- return c && (h.placeholder = c), r === "icon" ? /* @__PURE__ */ a.jsx("i", { "data-icon": "F043", onClick: C }) : /* @__PURE__ */ a.jsxs("dl", { children: [
4414
+ const x = {};
4415
+ return c && (x.placeholder = c), r === "icon" ? /* @__PURE__ */ a.jsx("i", { "data-icon": "F043", onClick: j }) : /* @__PURE__ */ a.jsxs("dl", { children: [
4411
4416
  l && /* @__PURE__ */ a.jsx("dt", { children: l }),
4412
4417
  /* @__PURE__ */ a.jsx(
4413
4418
  "dd",
4414
4419
  {
4415
- onClick: C,
4416
- ...h,
4417
- children: Z.Date(g, "mm.yyyy")
4420
+ onClick: j,
4421
+ ...x,
4422
+ children: U.Date(p, "mm.yyyy")
4418
4423
  }
4419
4424
  ),
4420
4425
  s && /* @__PURE__ */ a.jsx("em", { children: s })
4421
4426
  ] });
4422
4427
  }
4423
4428
  const rc = (e) => {
4424
- let [t, n] = m.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
4429
+ let [t, n] = h.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
4425
4430
  y: parseInt(r.getFullYear()),
4426
4431
  m: parseInt(r.getMonth()) + 1
4427
4432
  }, o = {
4428
4433
  y: parseInt(s.getFullYear()),
4429
4434
  m: parseInt(s.getMonth()) + 1
4430
- }, [l, c] = m.useState(o.y), _ = () => {
4435
+ }, [l, c] = h.useState(o.y), _ = () => {
4431
4436
  n(!1);
4432
4437
  }, u = () => {
4433
4438
  c(l + 1);
4434
- }, g = () => {
4439
+ }, p = () => {
4435
4440
  c(l - 1);
4436
- }, f = (j) => {
4437
- e.onValue(l + "-" + Z.Number(2, j)), _();
4438
- }, p = (j) => i.y === o.y && i.m === j ? "_FFEB3B" : "", C = Array(12).fill("").map((j, S) => S + 1), h = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, x = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
4441
+ }, f = (C) => {
4442
+ e.onValue(l + "-" + U.Number(2, C)), _();
4443
+ }, g = (C) => i.y === o.y && i.m === C ? "_FFEB3B" : "", j = Array(12).fill("").map((C, S) => S + 1), x = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, m = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
4439
4444
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: t ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
4440
4445
  /* @__PURE__ */ a.jsx(
4441
4446
  "div",
@@ -4449,10 +4454,10 @@ const rc = (e) => {
4449
4454
  "div",
4450
4455
  {
4451
4456
  className: ue.c,
4452
- style: { top: h + "px", left: x + "px" },
4457
+ style: { top: x + "px", left: m + "px" },
4453
4458
  children: [
4454
4459
  /* @__PURE__ */ a.jsxs("s", { children: [
4455
- /* @__PURE__ */ a.jsx("i", { onClick: g, children: /* @__PURE__ */ a.jsx(
4460
+ /* @__PURE__ */ a.jsx("i", { onClick: p, children: /* @__PURE__ */ a.jsx(
4456
4461
  "svg",
4457
4462
  {
4458
4463
  width: "16",
@@ -4476,14 +4481,14 @@ const rc = (e) => {
4476
4481
  }
4477
4482
  ) })
4478
4483
  ] }),
4479
- /* @__PURE__ */ a.jsx("div", { "grid-month": "", children: C.map((j, S) => /* @__PURE__ */ a.jsx(
4484
+ /* @__PURE__ */ a.jsx("div", { "grid-month": "", children: j.map((C, S) => /* @__PURE__ */ a.jsx(
4480
4485
  "span",
4481
4486
  {
4482
4487
  onClick: () => {
4483
- f(j);
4488
+ f(C);
4484
4489
  },
4485
- color: p(j),
4486
- children: /* @__PURE__ */ a.jsx("b", { children: Z.Month(j).abc })
4490
+ color: g(C),
4491
+ children: /* @__PURE__ */ a.jsx("b", { children: U.Month(C).abc })
4487
4492
  },
4488
4493
  S
4489
4494
  )) })
@@ -4493,33 +4498,33 @@ const rc = (e) => {
4493
4498
  ] }) : "" });
4494
4499
  };
4495
4500
  function Xn(e) {
4496
- let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "", [r, s] = m.useState(!1), i = e.edit !== void 0 ? e.edit : !0, o = e.active !== void 0 ? e.active : !0, c = !!(e.hide && (e.value === "" || e.value === void 0)) && !(i && o);
4501
+ let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "", [r, s] = h.useState(!1), i = e.edit !== void 0 ? e.edit : !0, o = e.active !== void 0 ? e.active : !0, c = !!(e.hide && (e.value === "" || e.value === void 0)) && !(i && o);
4497
4502
  r = i ? !0 : r;
4498
- let _ = e.placeholder !== void 0 ? e.placeholder : "", u = (x) => {
4499
- e.onValue && e.onValue({ value: x.target.innerText, name: e.name });
4500
- }, g = (x) => {
4501
- x.preventDefault(), navigator.clipboard.readText().then((j) => {
4502
- window.document.execCommand("insertText", !1, j);
4503
- }).catch((j) => {
4503
+ let _ = e.placeholder !== void 0 ? e.placeholder : "", u = (m) => {
4504
+ e.onValue && e.onValue({ value: m.target.innerText, name: e.name });
4505
+ }, p = (m) => {
4506
+ m.preventDefault(), navigator.clipboard.readText().then((C) => {
4507
+ window.document.execCommand("insertText", !1, C);
4508
+ }).catch((C) => {
4504
4509
  });
4505
- }, f = (x) => {
4510
+ }, f = (m) => {
4506
4511
  i || s(!r);
4507
4512
  };
4508
- const p = (x) => {
4509
- e.onSave && e.onSave({ value: x.target.innerText, name: e.name });
4510
- }, C = {};
4511
- C.field = "notes", e.className && (C.className = e.className);
4512
- const h = {};
4513
- return _ && (h.placeholder = _), r && (h.open = ""), i && o && (h.edit = ""), c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...C, children: [
4513
+ const g = (m) => {
4514
+ e.onSave && e.onSave({ value: m.target.innerText, name: e.name });
4515
+ }, j = {};
4516
+ j.field = "notes", e.className && (j.className = e.className);
4517
+ const x = {};
4518
+ return _ && (x.placeholder = _), r && (x.open = ""), i && o && (x.edit = ""), c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...j, children: [
4514
4519
  t(),
4515
4520
  /* @__PURE__ */ a.jsx(
4516
4521
  "dd",
4517
4522
  {
4518
- onPaste: g,
4523
+ onPaste: p,
4519
4524
  onInput: u,
4520
- onBlur: p,
4525
+ onBlur: g,
4521
4526
  contentEditable: i && o ? "plaintext-only" : "false",
4522
- ...h,
4527
+ ...x,
4523
4528
  onDoubleClick: f,
4524
4529
  suppressContentEditableWarning: !0,
4525
4530
  children: e.value
@@ -4540,44 +4545,44 @@ function At({
4540
4545
  hide: c,
4541
4546
  value: _,
4542
4547
  placeholder: u,
4543
- className: g,
4548
+ className: p,
4544
4549
  name: f,
4545
- after: p,
4546
- view: C
4550
+ after: g,
4551
+ view: j
4547
4552
  }) {
4548
4553
  s = s !== void 0 ? s : !0, n = n !== void 0 ? n : !0, c = !!(c && (_ === "" || _ === void 0)) && !(s && n), u = u !== void 0 ? u : "", r = r !== void 0 ? r : 99;
4549
- let x = !1, j = (E) => {
4554
+ let m = !1, C = (E) => {
4550
4555
  e == null || e({ value: E.target.textContent, name: f });
4551
4556
  }, S = (E) => {
4552
- if (!(x && E.which === 86)) {
4553
- if (E.which === 17 || E.which === 91) return x = !0;
4557
+ if (!(m && E.which === 86)) {
4558
+ if (E.which === 17 || E.which === 91) return m = !0;
4554
4559
  E.key !== "Backspace" && (E.target.textContent.length === r && E.preventDefault(), E.key === "Enter" && E.preventDefault(), isNaN(parseInt(String.fromCharCode(E.which))) && E.preventDefault());
4555
4560
  }
4556
4561
  }, N = (E) => {
4557
- if (E.which === 17 || E.which === 91) return x = !1;
4562
+ if (E.which === 17 || E.which === 91) return m = !1;
4558
4563
  }, T = (E) => {
4559
- E.preventDefault(), navigator.clipboard.readText().then(($) => {
4560
- $ = $.replace(/\D/g, ""), window.document.execCommand(
4564
+ E.preventDefault(), navigator.clipboard.readText().then((z) => {
4565
+ z = z.replace(/\D/g, ""), window.document.execCommand(
4561
4566
  "insertText",
4562
4567
  !1,
4563
- "" + $.replace(/\D/g, "")
4568
+ "" + z.replace(/\D/g, "")
4564
4569
  );
4565
- }).catch(($) => {
4570
+ }).catch((z) => {
4566
4571
  });
4567
4572
  };
4568
4573
  const k = (E) => {
4569
4574
  ce.Blur(E), t == null || t({ value: E.target.textContent, name: f });
4570
4575
  }, y = {};
4571
- y.field = "input", g && (y.className = g);
4576
+ y.field = "input", p && (y.className = p);
4572
4577
  let b = {};
4573
- return s && n ? (b.edit = "true", b.contentEditable = "plaintext-only") : b.contentEditable = "false", u && (b.placeholder = u), p && (b.after = p), c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...y, children: [
4578
+ return s && n ? (b.edit = "true", b.contentEditable = "plaintext-only") : b.contentEditable = "false", u && (b.placeholder = u), g && (b.after = g), c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...y, children: [
4574
4579
  i && /* @__PURE__ */ a.jsx("dt", { children: i }),
4575
4580
  /* @__PURE__ */ a.jsx(
4576
4581
  "dd",
4577
4582
  {
4578
4583
  ...b,
4579
4584
  onPaste: T,
4580
- onInput: j,
4585
+ onInput: C,
4581
4586
  onBlur: k,
4582
4587
  onKeyDown: S,
4583
4588
  onKeyUp: N,
@@ -4600,13 +4605,13 @@ function Qn({
4600
4605
  edit: c = !0,
4601
4606
  active: _ = !0,
4602
4607
  reload: u = !1,
4603
- native: g = !1,
4608
+ native: p = !1,
4604
4609
  isShow: f = !1,
4605
- eyes: p = [],
4606
- after: C = ""
4610
+ eyes: g = [],
4611
+ after: j = ""
4607
4612
  }) {
4608
- const [h, x] = m.useState(f);
4609
- let j = (b) => {
4613
+ const [x, m] = h.useState(f);
4614
+ let C = (b) => {
4610
4615
  t && t({
4611
4616
  value: b.target.textContent,
4612
4617
  name: r,
@@ -4627,15 +4632,15 @@ function Qn({
4627
4632
  ce.Blur(b), n == null || n({ value: b.target.textContent.trim(), name: r });
4628
4633
  };
4629
4634
  const k = {};
4630
- k.field = "password", h && (k.show = ""), i && (k.className = i);
4635
+ k.field = "password", x && (k.show = ""), i && (k.className = i);
4631
4636
  const y = {};
4632
- return s && (y.placeholder = s), g ? "" : /* @__PURE__ */ a.jsxs("dl", { ...k, children: [
4637
+ return s && (y.placeholder = s), p ? "" : /* @__PURE__ */ a.jsxs("dl", { ...k, children: [
4633
4638
  o ? /* @__PURE__ */ a.jsx("dt", { children: o }) : "",
4634
4639
  /* @__PURE__ */ a.jsx(
4635
4640
  "dd",
4636
4641
  {
4637
4642
  onPaste: N,
4638
- onInput: j,
4643
+ onInput: C,
4639
4644
  onKeyDown: S,
4640
4645
  onBlur: T,
4641
4646
  contentEditable: c && _ ? "plaintext-only" : "false",
@@ -4644,8 +4649,8 @@ function Qn({
4644
4649
  children: e
4645
4650
  }
4646
4651
  ),
4647
- p[0] && /* @__PURE__ */ a.jsx("i", { onClick: () => x(!h), children: h ? p[1] : p[0] }),
4648
- C,
4652
+ g[0] && /* @__PURE__ */ a.jsx("i", { onClick: () => m(!x), children: x ? g[1] : g[0] }),
4653
+ j,
4649
4654
  l ? /* @__PURE__ */ a.jsx("em", { children: l }) : ""
4650
4655
  ] });
4651
4656
  }
@@ -6043,69 +6048,69 @@ function zt({
6043
6048
  edit: c = !0,
6044
6049
  active: _ = !0,
6045
6050
  after: u = "",
6046
- show: g = !0,
6051
+ show: p = !0,
6047
6052
  view: f,
6048
- className: p = ""
6053
+ className: g = ""
6049
6054
  }) {
6050
- c = c !== void 0 ? c : !0, _ = _ !== void 0 ? _ : !0, l = !!(l && (e === "" || e === void 0)) && !(c && _), m.useRef(null);
6051
- let h = "+_(___) ___-__-__", x = !0, j = 0, S = (A, I) => {
6055
+ c = c !== void 0 ? c : !0, _ = _ !== void 0 ? _ : !0, l = !!(l && (e === "" || e === void 0)) && !(c && _), h.useRef(null);
6056
+ let x = "+_(___) ___-__-__", m = !0, C = 0, S = (L, I) => {
6052
6057
  let F = document.createRange(), W = window.getSelection();
6053
- F.setStart(I.childNodes[0], A), F.collapse(!0), W.removeAllRanges(), W.addRange(F), I.focus();
6054
- }, N = (A) => {
6055
- A.preventDefault(), navigator.clipboard.readText().then((I) => {
6058
+ F.setStart(I.childNodes[0], L), F.collapse(!0), W.removeAllRanges(), W.addRange(F), I.focus();
6059
+ }, N = (L) => {
6060
+ L.preventDefault(), navigator.clipboard.readText().then((I) => {
6056
6061
  window.document.execCommand("insertText", !1, I);
6057
6062
  }).catch((I) => {
6058
6063
  });
6059
- }, T = (A) => {
6060
- let I = 0, F = "", W = A.replace(/\D/g, "");
6061
- W === "" && (x = !0);
6064
+ }, T = (L) => {
6065
+ let I = 0, F = "", W = L.replace(/\D/g, "");
6066
+ W === "" && (m = !0);
6062
6067
  let ne = W.split(""), se = "";
6063
6068
  ne.forEach((Le) => {
6064
- x && (se += Le, Ct[se] !== void 0 && x ? (x = !1, h = Ct[se].mask.replace(new RegExp("[0-9]", "g"), "_"), F = Ct[se].code) : (x && (j = ("" + se).length, h = `+${se}_(___) ___-__-__`.replace(
6069
+ m && (se += Le, Ct[se] !== void 0 && m ? (m = !1, x = Ct[se].mask.replace(new RegExp("[0-9]", "g"), "_"), F = Ct[se].code) : (m && (C = ("" + se).length, x = `+${se}_(___) ___-__-__`.replace(
6065
6070
  new RegExp("[0-9]", "g"),
6066
6071
  "_"
6067
- ), F = ""), j > ("" + se).length && (x = !0, h = `+${se}_(___) ___-__-__`.replace(
6072
+ ), F = ""), C > ("" + se).length && (m = !0, x = `+${se}_(___) ___-__-__`.replace(
6068
6073
  new RegExp("[0-9]", "g"),
6069
6074
  "_"
6070
6075
  ), F = "")));
6071
6076
  });
6072
- let he = h.replace(/\D/g, "");
6073
- return he.length >= W.length && (W = he), { q: h.replace(/[_\d]/g, function() {
6077
+ let he = x.replace(/\D/g, "");
6078
+ return he.length >= W.length && (W = he), { q: x.replace(/[_\d]/g, function() {
6074
6079
  return W.charAt(I++) || "_";
6075
6080
  }), i: I, v: W, f: F };
6076
- }, k = (A) => {
6077
- A.preventDefault(), navigator.clipboard.writeText(A.target.textContent.replace(/\D/g, "")).then(
6081
+ }, k = (L) => {
6082
+ L.preventDefault(), navigator.clipboard.writeText(L.target.textContent.replace(/\D/g, "")).then(
6078
6083
  function() {
6079
- Te.Copy("Данные в буфер обмене");
6084
+ we.Copy("Данные в буфер обмене");
6080
6085
  },
6081
6086
  function(I) {
6082
6087
  }
6083
6088
  );
6084
- }, y = T(e), b = (A) => {
6085
- let I = T(A.target.textContent);
6086
- A.target.textContent = I.q, I.i = I.q.lastIndexOf(I.v.substr(-1)), I.i < I.q.length && I.q !== h ? I.i++ : I.i = I.q.indexOf("_"), S(I.i, A.target), t && t({ value: I.q.replace(/\D/g, ""), name: r });
6087
- }, E = (A) => {
6088
- A.key === "Enter" && A.preventDefault();
6089
+ }, y = T(e), b = (L) => {
6090
+ let I = T(L.target.textContent);
6091
+ L.target.textContent = I.q, I.i = I.q.lastIndexOf(I.v.substr(-1)), I.i < I.q.length && I.q !== x ? I.i++ : I.i = I.q.indexOf("_"), S(I.i, L.target), t && t({ value: I.q.replace(/\D/g, ""), name: r });
6092
+ }, E = (L) => {
6093
+ L.key === "Enter" && L.preventDefault();
6089
6094
  };
6090
- const $ = (A) => {
6091
- ce.Blur(A), n && n({
6092
- value: A.target.textContent.replace(/\D/g, ""),
6095
+ const z = (L) => {
6096
+ ce.Blur(L), n && n({
6097
+ value: L.target.textContent.replace(/\D/g, ""),
6093
6098
  name: r
6094
6099
  });
6095
- }, M = {};
6096
- M.field = "input", p && (M.className = p);
6097
- let U = {};
6098
- return c && _ ? (U.edit = "true", U.contentEditable = "plaintext-only") : U.contentEditable = "false", s && (U.placeholder = s), u && (U.after = u), l ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...M, children: [
6100
+ }, $ = {};
6101
+ $.field = "input", g && ($.className = g);
6102
+ let O = {};
6103
+ return c && _ ? (O.edit = "true", O.contentEditable = "plaintext-only") : O.contentEditable = "false", s && (O.placeholder = s), u && (O.after = u), l ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...$, children: [
6099
6104
  i && /* @__PURE__ */ a.jsx("dt", { children: i }),
6100
6105
  /* @__PURE__ */ a.jsx(
6101
6106
  "dd",
6102
6107
  {
6103
- ...U,
6108
+ ...O,
6104
6109
  onPaste: N,
6105
6110
  onInput: b,
6106
6111
  onKeyDown: E,
6107
6112
  onContextMenu: k,
6108
- onBlur: $,
6113
+ onBlur: z,
6109
6114
  suppressContentEditableWarning: !0,
6110
6115
  children: y.q
6111
6116
  }
@@ -6120,9 +6125,9 @@ const ea = (e) => {
6120
6125
  }, l = (u) => {
6121
6126
  u.key === "Enter" && u.preventDefault();
6122
6127
  }, c = (u) => {
6123
- u.preventDefault(), navigator.clipboard.readText().then((g) => {
6124
- window.document.execCommand("insertText", !1, g);
6125
- }).catch((g) => {
6128
+ u.preventDefault(), navigator.clipboard.readText().then((p) => {
6129
+ window.document.execCommand("insertText", !1, p);
6130
+ }).catch((p) => {
6126
6131
  });
6127
6132
  };
6128
6133
  const _ = {};
@@ -6160,38 +6165,38 @@ function Gt({
6160
6165
  placeholder: c = "",
6161
6166
  className: _,
6162
6167
  name: u,
6163
- after: g,
6168
+ after: p,
6164
6169
  view: f,
6165
- order: p
6170
+ order: g
6166
6171
  }) {
6167
6172
  var k, y;
6168
- const C = m.useRef();
6173
+ const j = h.useRef();
6169
6174
  s = !!(s && (i === "" || ((k = l[i]) == null ? void 0 : k.n) === void 0)) && !(n && r);
6170
- let x = i !== void 0 && i !== "" ? (y = l[i]) == null ? void 0 : y.n : i, j = (b) => {
6175
+ let m = i !== void 0 && i !== "" ? (y = l[i]) == null ? void 0 : y.n : i, C = (b) => {
6171
6176
  var E;
6172
- C.current.textContent = (E = l[b]) == null ? void 0 : E.n, o && o({ value: b, name: u });
6177
+ j.current.textContent = (E = l[b]) == null ? void 0 : E.n, o && o({ value: b, name: u });
6173
6178
  }, S = (b) => {
6174
6179
  if (!(n && r)) return;
6175
6180
  const E = b.target.getBoundingClientRect();
6176
- we.setListener(
6181
+ Se.setListener(
6177
6182
  "form",
6178
6183
  /* @__PURE__ */ a.jsx(
6179
6184
  sc,
6180
6185
  {
6181
6186
  parent: E,
6182
- onValue: j,
6187
+ onValue: C,
6183
6188
  view: f,
6184
6189
  className: _,
6185
6190
  options: l,
6186
- order: p
6191
+ order: g
6187
6192
  },
6188
6193
  (/* @__PURE__ */ new Date()).getTime()
6189
6194
  )
6190
6195
  );
6191
6196
  }, N = { field: "select", className: _ }, T = { onClick: S };
6192
- return c && (T.placeholder = c), g && (T.after = g), n && r && (T.edit = ""), s ? "" : /* @__PURE__ */ a.jsxs("dl", { ...N, children: [
6197
+ return c && (T.placeholder = c), p && (T.after = p), n && r && (T.edit = ""), s ? "" : /* @__PURE__ */ a.jsxs("dl", { ...N, children: [
6193
6198
  e && /* @__PURE__ */ a.jsx("dt", { children: e }),
6194
- /* @__PURE__ */ a.jsx("dd", { ...T, ref: C, children: x }),
6199
+ /* @__PURE__ */ a.jsx("dd", { ...T, ref: j, children: m }),
6195
6200
  t && /* @__PURE__ */ a.jsx("em", { children: t })
6196
6201
  ] });
6197
6202
  }
@@ -6203,11 +6208,11 @@ const sc = ({
6203
6208
  options: s,
6204
6209
  order: i
6205
6210
  }) => {
6206
- let [o, l] = m.useState(!0), c = () => {
6211
+ let [o, l] = h.useState(!0), c = () => {
6207
6212
  l(!1);
6208
6213
  }, _ = (f) => {
6209
6214
  l(!1), e(f);
6210
- }, u = window.innerHeight - t.y + t.height < 320 ? t.y - 312 : t.y + 33, g = window.innerWidth - t.x < 265 ? t.x - 235 : t.x;
6215
+ }, u = window.innerHeight - t.y + t.height < 320 ? t.y - 312 : t.y + 33, p = window.innerWidth - t.x < 265 ? t.x - 235 : t.x;
6211
6216
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: o ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
6212
6217
  /* @__PURE__ */ a.jsx(
6213
6218
  "div",
@@ -6224,7 +6229,7 @@ const sc = ({
6224
6229
  "data-select": "background " + n,
6225
6230
  style: {
6226
6231
  top: u + "px",
6227
- left: g + "px",
6232
+ left: p + "px",
6228
6233
  width: t.width
6229
6234
  },
6230
6235
  children: /* @__PURE__ */ a.jsx(ic, { order: i, options: s, link: _ })
@@ -6255,19 +6260,19 @@ const sc = ({
6255
6260
  ) : ""
6256
6261
  ) });
6257
6262
  function Zt(e) {
6258
- let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, s = e.active !== void 0 ? e.active : !0, o = !!(e.hide && (e.default === "" || e.options[e.default] === void 0)) && !(r && s), l = e.placeholder !== void 0 ? e.placeholder : "", c = (p) => {
6259
- u(e.options[p]), e.onValue({ value: p, name: e.name });
6260
- }, [_, u] = m.useState(
6263
+ let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, s = e.active !== void 0 ? e.active : !0, o = !!(e.hide && (e.default === "" || e.options[e.default] === void 0)) && !(r && s), l = e.placeholder !== void 0 ? e.placeholder : "", c = (g) => {
6264
+ u(e.options[g]), e.onValue({ value: g, name: e.name });
6265
+ }, [_, u] = h.useState(
6261
6266
  e.default !== void 0 ? e.options[e.default] : e.default
6262
- ), g = (p) => {
6267
+ ), p = (g) => {
6263
6268
  if (!(r && s)) return;
6264
- const C = p.target.getBoundingClientRect();
6265
- we.setListener(
6269
+ const j = g.target.getBoundingClientRect();
6270
+ Se.setListener(
6266
6271
  "form",
6267
6272
  /* @__PURE__ */ a.jsx(
6268
6273
  oc,
6269
6274
  {
6270
- parent: C,
6275
+ parent: j,
6271
6276
  onValue: c,
6272
6277
  view: e.view,
6273
6278
  options: e.options
@@ -6286,7 +6291,7 @@ function Zt(e) {
6286
6291
  /* @__PURE__ */ a.jsx(
6287
6292
  "dd",
6288
6293
  {
6289
- onClick: g,
6294
+ onClick: p,
6290
6295
  "data-edit": (r && s) + "",
6291
6296
  ...f,
6292
6297
  children: _
@@ -6298,10 +6303,10 @@ function Zt(e) {
6298
6303
  );
6299
6304
  }
6300
6305
  const oc = ({ onValue: e, parent: t, view: n, options: r }) => {
6301
- let [s, i] = m.useState(!0), o = () => {
6306
+ let [s, i] = h.useState(!0), o = () => {
6302
6307
  i(!1);
6303
- }, l = (g) => {
6304
- i(!1), e(g);
6308
+ }, l = (p) => {
6309
+ i(!1), e(p);
6305
6310
  }, c = Object.keys(r).length * 36, _ = window.innerHeight - t.y + t.height < c ? t.y - (c - 33) : t.y + 33, u = window.innerWidth - t.x < 265 ? t.x - 235 : t.x;
6306
6311
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: s ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
6307
6312
  /* @__PURE__ */ a.jsx(
@@ -6321,13 +6326,13 @@ const oc = ({ onValue: e, parent: t, view: n, options: r }) => {
6321
6326
  left: u + "px",
6322
6327
  width: t.width
6323
6328
  },
6324
- children: /* @__PURE__ */ a.jsx("ul", { children: Object.keys(r).map((g, f) => /* @__PURE__ */ a.jsx(
6329
+ children: /* @__PURE__ */ a.jsx("ul", { children: Object.keys(r).map((p, f) => /* @__PURE__ */ a.jsx(
6325
6330
  "li",
6326
6331
  {
6327
6332
  onClick: () => {
6328
- l(g);
6333
+ l(p);
6329
6334
  },
6330
- children: r[g]
6335
+ children: r[p]
6331
6336
  },
6332
6337
  f
6333
6338
  )) })
@@ -6347,13 +6352,13 @@ function Nt({
6347
6352
  edit: c = !0,
6348
6353
  show: _ = !0,
6349
6354
  active: u = !0,
6350
- after: g = "",
6355
+ after: p = "",
6351
6356
  view: f,
6352
- module: p,
6353
- item: C,
6354
- className: h = ""
6357
+ module: g,
6358
+ item: j,
6359
+ className: x = ""
6355
6360
  }) {
6356
- let x = {};
6361
+ let m = {};
6357
6362
  switch (e) {
6358
6363
  case "Input":
6359
6364
  return /* @__PURE__ */ a.jsx(
@@ -6369,11 +6374,11 @@ function Nt({
6369
6374
  onValue: n,
6370
6375
  name: r,
6371
6376
  placeholder: s,
6372
- className: h
6377
+ className: x
6373
6378
  }
6374
6379
  );
6375
6380
  case "Select":
6376
- return C && (x = J.getSelect(parseInt(C)) ? J.getSelect(parseInt(C)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ a.jsx(
6381
+ return j && (m = J.getSelect(parseInt(j)) ? J.getSelect(parseInt(j)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ a.jsx(
6377
6382
  Gt,
6378
6383
  {
6379
6384
  title: i,
@@ -6386,8 +6391,8 @@ function Nt({
6386
6391
  onValue: n,
6387
6392
  name: r,
6388
6393
  placeholder: s,
6389
- className: h,
6390
- options: x
6394
+ className: x,
6395
+ options: m
6391
6396
  }
6392
6397
  );
6393
6398
  case "Users":
@@ -6404,8 +6409,8 @@ function Nt({
6404
6409
  onValue: n,
6405
6410
  name: r,
6406
6411
  placeholder: s,
6407
- className: h,
6408
- options: x
6412
+ className: x,
6413
+ options: m
6409
6414
  }
6410
6415
  );
6411
6416
  case "Date":
@@ -6422,7 +6427,7 @@ function Nt({
6422
6427
  onValue: n,
6423
6428
  name: r,
6424
6429
  placeholder: s,
6425
- className: h
6430
+ className: x
6426
6431
  }
6427
6432
  );
6428
6433
  case "Phone":
@@ -6439,7 +6444,7 @@ function Nt({
6439
6444
  onValue: n,
6440
6445
  name: r,
6441
6446
  placeholder: s,
6442
- className: h
6447
+ className: x
6443
6448
  }
6444
6449
  );
6445
6450
  case "Number":
@@ -6456,7 +6461,7 @@ function Nt({
6456
6461
  onValue: n,
6457
6462
  name: r,
6458
6463
  placeholder: s,
6459
- className: h
6464
+ className: x
6460
6465
  }
6461
6466
  );
6462
6467
  case "Money":
@@ -6473,7 +6478,7 @@ function Nt({
6473
6478
  onValue: n,
6474
6479
  name: r,
6475
6480
  placeholder: s,
6476
- className: h
6481
+ className: x
6477
6482
  }
6478
6483
  );
6479
6484
  case "Modal":
@@ -6490,9 +6495,9 @@ function Nt({
6490
6495
  onValue: n,
6491
6496
  name: r || "",
6492
6497
  placeholder: s,
6493
- className: h,
6494
- options: x,
6495
- module: p || ""
6498
+ className: x,
6499
+ options: m,
6500
+ module: g || ""
6496
6501
  }
6497
6502
  );
6498
6503
  }
@@ -6509,17 +6514,17 @@ function ta({
6509
6514
  active: c = !0,
6510
6515
  after: _ = "",
6511
6516
  show: u = !0,
6512
- view: g,
6517
+ view: p,
6513
6518
  onBlur: f,
6514
- onSave: p,
6515
- className: C = ""
6519
+ onSave: g,
6520
+ className: j = ""
6516
6521
  }) {
6517
- let h = !!(o && (e === "" || e === void 0));
6518
- if (!(l && c) && !u || !(l && c) && h) return "";
6519
- let x = (k) => {
6522
+ let x = !!(o && (e === "" || e === void 0));
6523
+ if (!(l && c) && !u || !(l && c) && x) return "";
6524
+ let m = (k) => {
6520
6525
  t && t({ value: k.target.innerText, name: n });
6521
- }, j = (k) => {
6522
- p && p({ value: k.target.innerText, name: n });
6526
+ }, C = (k) => {
6527
+ g && g({ value: k.target.innerText, name: n });
6523
6528
  }, S = (k) => {
6524
6529
  k.preventDefault(), navigator.clipboard.readText().then((y) => {
6525
6530
  window.document.execCommand("insertText", !1, y);
@@ -6527,7 +6532,7 @@ function ta({
6527
6532
  });
6528
6533
  };
6529
6534
  const N = {};
6530
- N.field = "text", C && (N.className = C);
6535
+ N.field = "text", j && (N.className = j);
6531
6536
  const T = {};
6532
6537
  return r && (T.placeholder = r), /* @__PURE__ */ a.jsxs("dl", { ...N, children: [
6533
6538
  s && /* @__PURE__ */ a.jsx("dt", { children: s }),
@@ -6535,8 +6540,8 @@ function ta({
6535
6540
  "dd",
6536
6541
  {
6537
6542
  onPaste: S,
6538
- onBlur: j,
6539
- onInput: x,
6543
+ onBlur: C,
6544
+ onInput: m,
6540
6545
  contentEditable: l && c ? "plaintext-only" : "false",
6541
6546
  ...T,
6542
6547
  suppressContentEditableWarning: !0,
@@ -6558,37 +6563,37 @@ function na({
6558
6563
  active: c = !0,
6559
6564
  after: _ = "",
6560
6565
  show: u = !0,
6561
- view: g,
6566
+ view: p,
6562
6567
  onBlur: f,
6563
- onSave: p,
6564
- className: C = ""
6568
+ onSave: g,
6569
+ className: j = ""
6565
6570
  }) {
6566
- let h = !!(o && (e === "" || e === void 0)), x = Z.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), j = m.useRef(null);
6567
- if (!(l && c) && !u || !(l && c) && h) return "";
6571
+ let x = !!(o && (e === "" || e === void 0)), m = U.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), C = h.useRef(null);
6572
+ if (!(l && c) && !u || !(l && c) && x) return "";
6568
6573
  let S = (b) => {
6569
- j.current.textContent = b, t && t({ value: b, name: n });
6574
+ C.current.textContent = b, t && t({ value: b, name: n });
6570
6575
  }, N = (b) => {
6571
- p && p({ value: b, name: n });
6576
+ g && g({ value: b, name: n });
6572
6577
  }, T = (b) => {
6573
- const E = b.target.getBoundingClientRect(), $ = E.left, M = E.top;
6574
- we.setListener(
6578
+ const E = b.target.getBoundingClientRect(), z = E.left, $ = E.top;
6579
+ Se.setListener(
6575
6580
  "form",
6576
6581
  /* @__PURE__ */ a.jsx(
6577
6582
  lc,
6578
6583
  {
6579
- positions: { x: $, y: M },
6584
+ positions: { x: z, y: $ },
6580
6585
  onSave: N,
6581
6586
  onValue: S,
6582
- date: x
6587
+ date: m
6583
6588
  },
6584
6589
  (/* @__PURE__ */ new Date()).getTime()
6585
6590
  )
6586
6591
  );
6587
6592
  };
6588
6593
  const k = {};
6589
- k.field = "input", C && (k.className = C);
6594
+ k.field = "input", j && (k.className = j);
6590
6595
  const y = {};
6591
- return r && (y.placeholder = r), /* @__PURE__ */ a.jsx(a.Fragment, { children: g === "icon" ? /* @__PURE__ */ a.jsx(
6596
+ return r && (y.placeholder = r), /* @__PURE__ */ a.jsx(a.Fragment, { children: p === "icon" ? /* @__PURE__ */ a.jsx(
6592
6597
  "i",
6593
6598
  {
6594
6599
  "data-icon": "F043",
@@ -6596,29 +6601,29 @@ function na({
6596
6601
  }
6597
6602
  ) : /* @__PURE__ */ a.jsxs("dl", { ...k, children: [
6598
6603
  s ? /* @__PURE__ */ a.jsx("dt", { children: s }) : "",
6599
- /* @__PURE__ */ a.jsx("dd", { onClick: T, ref: j, ...y, children: x }),
6604
+ /* @__PURE__ */ a.jsx("dd", { onClick: T, ref: C, ...y, children: m }),
6600
6605
  i ? /* @__PURE__ */ a.jsx("em", { children: i }) : ""
6601
6606
  ] }) });
6602
6607
  }
6603
6608
  const lc = ({ positions: e, onSave: t, onValue: n, date: r }) => {
6604
6609
  let s = r.split(":"), i = {
6605
- h: Z.Number(2, s[0]),
6606
- m: Z.Number(2, s[1])
6607
- }, o = "hour", [l, c] = m.useState({}), _ = !1, u = 0, g = 0, f = {
6608
- body: m.useRef(null),
6609
- time: m.useRef(null),
6610
- hour: m.useRef(null),
6611
- timeText: m.useRef(null),
6612
- hourText: m.useRef(null)
6610
+ h: U.Number(2, s[0]),
6611
+ m: U.Number(2, s[1])
6612
+ }, o = "hour", [l, c] = h.useState({}), _ = !1, u = 0, p = 0, f = {
6613
+ body: h.useRef(null),
6614
+ time: h.useRef(null),
6615
+ hour: h.useRef(null),
6616
+ timeText: h.useRef(null),
6617
+ hourText: h.useRef(null)
6613
6618
  };
6614
- m.useEffect(() => {
6619
+ h.useEffect(() => {
6615
6620
  c(f.body.current.getBoundingClientRect()), f.hour.current.style.transform = "rotate(" + i.h * 15 + "deg)", f.time.current.style.transform = "rotate(" + i.m * 6 + "deg)";
6616
6621
  }, [f.body, f.hour, f.time, i.m, i.h]);
6617
- let p = () => {
6622
+ let g = () => {
6618
6623
  _ = !0;
6619
- }, C = () => {
6624
+ }, j = () => {
6620
6625
  _ = !1, o = o === "hour" ? "time" : "hour", f.body.current.setAttribute("active", o);
6621
- }, h = (y) => {
6626
+ }, x = (y) => {
6622
6627
  if (_) {
6623
6628
  let E = Math.atan2(
6624
6629
  y.pageX - (l.x + 78),
@@ -6626,53 +6631,53 @@ const lc = ({ positions: e, onSave: t, onValue: n, date: r }) => {
6626
6631
  ) * (180 / Math.PI) * -1 + 180;
6627
6632
  f[o].current.style.transform = "rotate(" + E + "deg)", o === "hour" ? (i = {
6628
6633
  ...i,
6629
- h: Z.Number(2, parseInt(String(E / 15), 10))
6634
+ h: U.Number(2, parseInt(String(E / 15), 10))
6630
6635
  }, f.hourText.current.textContent = i.h) : (i = {
6631
6636
  ...i,
6632
- m: Z.Number(2, parseInt(String(E / 6), 10))
6637
+ m: U.Number(2, parseInt(String(E / 6), 10))
6633
6638
  }, f.timeText.current.textContent = i.m), n(i.h + ":" + i.m);
6634
6639
  }
6635
- }, x = (y) => {
6640
+ }, m = (y) => {
6636
6641
  if (o === "hour")
6637
6642
  if (y.deltaY > 0) {
6638
6643
  u += y.deltaY;
6639
6644
  let b = parseInt(String(u / 50));
6640
- if (g !== b) {
6641
- g = b;
6645
+ if (p !== b) {
6646
+ p = b;
6642
6647
  let E = parseInt(i.h, 10) + 1;
6643
- E = E > 23 ? 0 : E, i = { ...i, h: Z.Number(2, E) }, f.hourText.current.textContent = i.h, f[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
6648
+ E = E > 23 ? 0 : E, i = { ...i, h: U.Number(2, E) }, f.hourText.current.textContent = i.h, f[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
6644
6649
  }
6645
6650
  } else {
6646
6651
  u -= y.deltaY;
6647
6652
  let b = parseInt(String(u / 50));
6648
- if (g !== b) {
6649
- g = b;
6653
+ if (p !== b) {
6654
+ p = b;
6650
6655
  let E = parseInt(i.h, 10) - 1;
6651
- E = E < 0 ? 23 : E, i = { ...i, h: Z.Number(2, E) }, f.hourText.current.textContent = i.h, f[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
6656
+ E = E < 0 ? 23 : E, i = { ...i, h: U.Number(2, E) }, f.hourText.current.textContent = i.h, f[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
6652
6657
  }
6653
6658
  }
6654
6659
  else if (y.deltaY > 0) {
6655
6660
  u += y.deltaY;
6656
6661
  let b = parseInt(String(u / 50));
6657
- if (g !== b) {
6658
- g = b;
6662
+ if (p !== b) {
6663
+ p = b;
6659
6664
  let E = parseInt(i.m, 10) + 1;
6660
- E = E > 59 ? 0 : E, i = { ...i, m: Z.Number(2, E) }, f.timeText.current.textContent = i.m, f[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
6665
+ E = E > 59 ? 0 : E, i = { ...i, m: U.Number(2, E) }, f.timeText.current.textContent = i.m, f[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
6661
6666
  }
6662
6667
  } else {
6663
6668
  u -= y.deltaY;
6664
6669
  let b = parseInt(String(u / 50));
6665
- if (g !== b) {
6666
- g = b;
6670
+ if (p !== b) {
6671
+ p = b;
6667
6672
  let E = parseInt(i.m, 10) - 1;
6668
- E = E < 0 ? 59 : E, i = { ...i, m: Z.Number(2, E) }, f.timeText.current.textContent = i.m, f[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
6673
+ E = E < 0 ? 59 : E, i = { ...i, m: U.Number(2, E) }, f.timeText.current.textContent = i.m, f[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
6669
6674
  }
6670
6675
  }
6671
6676
  n(i.h + ":" + i.m);
6672
- }, [j, S] = m.useState(!0), N = () => {
6677
+ }, [C, S] = h.useState(!0), N = () => {
6673
6678
  S(!1), t(i.h + ":" + i.m);
6674
6679
  }, T = window.innerHeight - e.y + 33 < 320 ? e.y - 312 : e.y + 33, k = window.innerWidth - e.x < 265 ? e.x - 235 : e.x;
6675
- return /* @__PURE__ */ a.jsx(a.Fragment, { children: j ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
6680
+ return /* @__PURE__ */ a.jsx(a.Fragment, { children: C ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
6676
6681
  /* @__PURE__ */ a.jsx(
6677
6682
  "div",
6678
6683
  {
@@ -6685,10 +6690,10 @@ const lc = ({ positions: e, onSave: t, onValue: n, date: r }) => {
6685
6690
  "div",
6686
6691
  {
6687
6692
  className: ue.c,
6688
- onMouseDown: p,
6689
- onMouseUp: C,
6690
- onMouseMove: h,
6691
- onWheel: x,
6693
+ onMouseDown: g,
6694
+ onMouseUp: j,
6695
+ onMouseMove: x,
6696
+ onWheel: m,
6692
6697
  ref: f.body,
6693
6698
  style: { top: T + "px", left: k + "px" },
6694
6699
  children: [
@@ -6738,16 +6743,16 @@ function aa({
6738
6743
  id: l,
6739
6744
  reload: c
6740
6745
  }) {
6741
- const [_, u] = m.useState(!!n), g = t || r;
6742
- m.useEffect(() => {
6746
+ const [_, u] = h.useState(!!n), p = t || r;
6747
+ h.useEffect(() => {
6743
6748
  u(!!n);
6744
6749
  }, [n]);
6745
6750
  let f = () => {
6746
6751
  e && e({ value: _ ? 0 : 1, name: i, id: l }), u(!_);
6747
6752
  };
6748
- const p = {};
6749
- return p.field = "check", s && (p.className = s), /* @__PURE__ */ a.jsxs("dl", { ...p, children: [
6750
- g ? /* @__PURE__ */ a.jsx("dt", { children: g }) : "",
6753
+ const g = {};
6754
+ return g.field = "check", s && (g.className = s), /* @__PURE__ */ a.jsxs("dl", { ...g, children: [
6755
+ p ? /* @__PURE__ */ a.jsx("dt", { children: p }) : "",
6751
6756
  /* @__PURE__ */ a.jsxs("dd", { onClick: f, children: [
6752
6757
  /* @__PURE__ */ a.jsx("span", { children: o }),
6753
6758
  /* @__PURE__ */ a.jsx(
@@ -6761,8 +6766,8 @@ function aa({
6761
6766
  ] });
6762
6767
  }
6763
6768
  const cc = ({ label: e, onValue: t, value: n, name: r, item: s }) => {
6764
- const [i, o] = m.useState(!!n);
6765
- m.useEffect(() => {
6769
+ const [i, o] = h.useState(!!n);
6770
+ h.useEffect(() => {
6766
6771
  o(!!n);
6767
6772
  }, [n]);
6768
6773
  let l = () => {
@@ -6778,8 +6783,8 @@ const cc = ({ label: e, onValue: t, value: n, name: r, item: s }) => {
6778
6783
  }
6779
6784
  );
6780
6785
  }, ra = ({ onValue: e, value: t, name: n, item: r }) => {
6781
- const [s, i] = m.useState(!!t);
6782
- m.useEffect(() => {
6786
+ const [s, i] = h.useState(!!t);
6787
+ h.useEffect(() => {
6783
6788
  i(!!t);
6784
6789
  }, [t]);
6785
6790
  let o = () => {
@@ -6807,75 +6812,79 @@ function sa({
6807
6812
  active: c = !0,
6808
6813
  after: _ = "",
6809
6814
  show: u = !0,
6810
- view: g,
6811
- onSave: f,
6812
- className: p = "",
6813
- separator: C = ","
6815
+ view: p,
6816
+ max: f = 0,
6817
+ onSave: g,
6818
+ className: j = "",
6819
+ separator: x = ","
6814
6820
  }) {
6815
- const [h, x] = m.useState(
6816
- e !== void 0 ? e.split(C) : []
6821
+ const [m, C] = h.useState(
6822
+ e !== void 0 ? e.split(x) : []
6817
6823
  );
6818
- m.useEffect(() => {
6819
- x(e !== void 0 ? e !== void 0 ? e.split(C) : [] : []);
6824
+ h.useEffect(() => {
6825
+ C(e !== void 0 ? e !== void 0 ? e.split(x) : [] : []);
6820
6826
  }, [e]);
6821
- let j = () => {
6822
- x([...h, ""]);
6823
- }, S = ($) => {
6824
- h.splice($, 1), h.length === 0 && h.push(""), x([...h]), f !== void 0 && f({ value: h.join(C), name: n });
6825
- }, N = !!(o && (e === "" || e === void 0)), T = ($) => {
6827
+ let S = () => {
6828
+ if (f !== 0 && m.length >= f)
6829
+ return we.Error("Слишком много");
6830
+ C([...m, ""]);
6831
+ }, N = (O) => {
6832
+ m.splice(O, 1), m.length === 0 && m.push(""), C([...m]), g !== void 0 && g({ value: m.join(x), name: n });
6833
+ }, T = !!(o && (e === "" || e === void 0)), k = (O) => {
6826
6834
  };
6827
- if (!(l && c) && !u || !(l && c) && N) return "";
6828
- const k = {};
6829
- k.field = "group", p && (k.className = p);
6830
- const y = ($, M) => {
6831
- ce.Blur($), h[M] = $.target.textContent, f && f({ value: h.join(C), name: n });
6835
+ if (!(l && c) && !u || !(l && c) && T) return "";
6836
+ const y = {};
6837
+ y.field = "group", j && (y.className = j);
6838
+ const b = (O, L) => {
6839
+ ce.Blur(O), m[L] = O.target.textContent, g && g({ value: m.join(x), name: n });
6832
6840
  };
6833
- let b = ($, M) => {
6834
- h[M] = $.target.textContent, t && t({ value: h.join(C), name: n });
6835
- }, E = ($) => {
6836
- $.key === "Enter" && $.preventDefault();
6841
+ let E = (O, L) => {
6842
+ m[L] = O.target.textContent, t && t({ value: m.join(x), name: n });
6843
+ }, z = (O) => {
6844
+ O.key === "Enter" && O.preventDefault();
6837
6845
  };
6838
- return /* @__PURE__ */ a.jsxs("dl", { ...k, children: [
6846
+ const $ = ({ data: O }) => f !== 0 && O.length >= f ? "" : /* @__PURE__ */ a.jsx("i", { onClick: S, children: /* @__PURE__ */ a.jsxs(
6847
+ "svg",
6848
+ {
6849
+ xmlns: "http://www.w3.org/2000/svg",
6850
+ viewBox: "0 0 24 24",
6851
+ fill: "none",
6852
+ stroke: "currentColor",
6853
+ strokeLinecap: "round",
6854
+ strokeLinejoin: "round",
6855
+ strokeWidth: "1.5",
6856
+ children: [
6857
+ /* @__PURE__ */ a.jsx("path", { d: "M12 5.25v13.5" }),
6858
+ /* @__PURE__ */ a.jsx("path", { d: "M18.75 12H5.25" })
6859
+ ]
6860
+ }
6861
+ ) });
6862
+ return /* @__PURE__ */ a.jsxs("dl", { ...y, children: [
6839
6863
  /* @__PURE__ */ a.jsxs("dt", { children: [
6840
6864
  s,
6841
- /* @__PURE__ */ a.jsx("i", { onClick: j, children: /* @__PURE__ */ a.jsxs(
6842
- "svg",
6843
- {
6844
- xmlns: "http://www.w3.org/2000/svg",
6845
- viewBox: "0 0 24 24",
6846
- fill: "none",
6847
- stroke: "currentColor",
6848
- strokeLinecap: "round",
6849
- strokeLinejoin: "round",
6850
- strokeWidth: "1.5",
6851
- children: [
6852
- /* @__PURE__ */ a.jsx("path", { d: "M12 5.25v13.5" }),
6853
- /* @__PURE__ */ a.jsx("path", { d: "M18.75 12H5.25" })
6854
- ]
6855
- }
6856
- ) })
6865
+ /* @__PURE__ */ a.jsx($, { data: m })
6857
6866
  ] }),
6858
- /* @__PURE__ */ a.jsx("dd", { children: h.map(($, M) => /* @__PURE__ */ a.jsxs("li", { className: "field_group_item", children: [
6867
+ /* @__PURE__ */ a.jsx("dd", { children: m.map((O, L) => /* @__PURE__ */ a.jsxs("li", { className: "field_group_item", children: [
6859
6868
  /* @__PURE__ */ a.jsx(
6860
6869
  "span",
6861
6870
  {
6862
- onInput: (U) => b(U, M),
6871
+ onInput: (I) => E(I, L),
6863
6872
  edit: "true",
6864
6873
  name: n,
6865
6874
  placeholder: r,
6866
- onPaste: T,
6875
+ onPaste: k,
6867
6876
  contentEditable: l && c ? "plaintext-only" : "false",
6868
- onKeyDown: E,
6869
- onBlur: (U) => y(U, M),
6877
+ onKeyDown: z,
6878
+ onBlur: (I) => b(I, L),
6870
6879
  suppressContentEditableWarning: !0,
6871
- children: h[M]
6880
+ children: m[L]
6872
6881
  }
6873
6882
  ),
6874
6883
  /* @__PURE__ */ a.jsx(
6875
6884
  "i",
6876
6885
  {
6877
6886
  onClick: () => {
6878
- S(M);
6887
+ N(L);
6879
6888
  },
6880
6889
  children: /* @__PURE__ */ a.jsxs(
6881
6890
  "svg",
@@ -6895,7 +6904,7 @@ function sa({
6895
6904
  )
6896
6905
  }
6897
6906
  )
6898
- ] }, M)) }),
6907
+ ] }, L)) }),
6899
6908
  i && /* @__PURE__ */ a.jsx("em", { children: i })
6900
6909
  ] });
6901
6910
  }
@@ -6912,26 +6921,26 @@ function ia({
6912
6921
  show: c = !0,
6913
6922
  active: _ = !0,
6914
6923
  after: u = "",
6915
- view: g,
6924
+ view: p,
6916
6925
  modal: f,
6917
- module: p,
6918
- options: C,
6919
- className: h
6926
+ module: g,
6927
+ options: j,
6928
+ className: x
6920
6929
  }) {
6921
- const [x, j] = m.useState(dc(e)), S = (k) => {
6930
+ const [m, C] = h.useState(dc(e)), S = (k) => {
6922
6931
  if (!(l && _) || !f) return;
6923
6932
  let y = f.split(".");
6924
6933
  ot.Open(y[0], y[1], {
6925
6934
  callback: (b) => {
6926
- t && t({ value: b, name: n }), j(b);
6935
+ t && t({ value: b, name: n }), C(b);
6927
6936
  },
6928
6937
  onValue: t,
6929
- options: C,
6938
+ options: j,
6930
6939
  name: n,
6931
- value: x
6940
+ value: m
6932
6941
  });
6933
6942
  }, N = {};
6934
- N.field = "group", h && (N.className = h);
6943
+ N.field = "group", x && (N.className = x);
6935
6944
  const T = {};
6936
6945
  return r && (T.placeholder = r), o ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...N, children: [
6937
6946
  /* @__PURE__ */ a.jsxs("dt", { children: [
@@ -6961,9 +6970,9 @@ function ia({
6961
6970
  onClick: open,
6962
6971
  edit: (l && _) + "",
6963
6972
  "data-after": u,
6964
- children: Object.keys(x).map((k) => {
6973
+ children: Object.keys(m).map((k) => {
6965
6974
  var y;
6966
- return /* @__PURE__ */ a.jsx("div", { className: "field_group_item", children: (y = C[k]) == null ? void 0 : y.label }, k);
6975
+ return /* @__PURE__ */ a.jsx("div", { className: "field_group_item", children: (y = j[k]) == null ? void 0 : y.label }, k);
6967
6976
  })
6968
6977
  }
6969
6978
  ),
@@ -6982,16 +6991,16 @@ function Cn({
6982
6991
  edit: c = !0,
6983
6992
  active: _ = !0,
6984
6993
  after: u = "",
6985
- show: g = !0,
6994
+ show: p = !0,
6986
6995
  type: f,
6987
- view: p,
6988
- onBlur: C,
6989
- onSave: h,
6990
- className: x = ""
6996
+ view: g,
6997
+ onBlur: j,
6998
+ onSave: x,
6999
+ className: m = ""
6991
7000
  }) {
6992
- const j = m.useId();
6993
- let S = !!(l && (e === "" || e === void 0)), [N, T] = m.useState(i);
6994
- if (!(c && _) && !g || !(c && _) && S) return "";
7001
+ const C = h.useId();
7002
+ let S = !!(l && (e === "" || e === void 0)), [N, T] = h.useState(i);
7003
+ if (!(c && _) && !p || !(c && _) && S) return "";
6995
7004
  const k = async (b) => {
6996
7005
  if (f) {
6997
7006
  let E = uc(b, f, e || "default");
@@ -6999,7 +7008,7 @@ function Cn({
6999
7008
  } else
7000
7009
  t == null || t({ name: n, value: b }), T(URL.createObjectURL(b));
7001
7010
  }, y = {};
7002
- return y.field = "file", x && (y.className = x), /* @__PURE__ */ a.jsxs("dl", { ...y, children: [
7011
+ return y.field = "file", m && (y.className = m), /* @__PURE__ */ a.jsxs("dl", { ...y, children: [
7003
7012
  s && /* @__PURE__ */ a.jsxs("dt", { children: [
7004
7013
  s,
7005
7014
  " "
@@ -7008,7 +7017,7 @@ function Cn({
7008
7017
  /* @__PURE__ */ a.jsx(
7009
7018
  "input",
7010
7019
  {
7011
- id: j,
7020
+ id: C,
7012
7021
  type: "file",
7013
7022
  multiple: !0,
7014
7023
  onChange: (b) => {
@@ -7016,15 +7025,15 @@ function Cn({
7016
7025
  }
7017
7026
  }
7018
7027
  ),
7019
- /* @__PURE__ */ a.jsx("label", { htmlFor: j }),
7028
+ /* @__PURE__ */ a.jsx("label", { htmlFor: C }),
7020
7029
  /* @__PURE__ */ a.jsx("img", { src: N })
7021
7030
  ] }),
7022
7031
  o && /* @__PURE__ */ a.jsx("em", { children: o })
7023
7032
  ] });
7024
7033
  }
7025
7034
  const _c = ({ children: e, onFiles: t }) => {
7026
- const n = m.useRef(null);
7027
- return m.useEffect(() => {
7035
+ const n = h.useRef(null);
7036
+ return h.useEffect(() => {
7028
7037
  if (n.preventDefaults) return;
7029
7038
  n.preventDefaults = (s) => {
7030
7039
  s.preventDefault(), s.stopPropagation();
@@ -7052,7 +7061,7 @@ const _c = ({ children: e, onFiles: t }) => {
7052
7061
  r.appendChild(s);
7053
7062
  const i = s.getContext("2d"), o = new Image();
7054
7063
  o.addEventListener("load", () => {
7055
- i.drawImage(o, 0, 0);
7064
+ i.drawImage(o, 0, 0, o.width, o.height);
7056
7065
  const l = t === "png" ? s.toDataURL() : s.toDataURL(`image/${t}`), c = fc(l, n);
7057
7066
  return s.remove(), c;
7058
7067
  }), o.src = URL.createObjectURL(e);
@@ -7065,7 +7074,7 @@ function fc(e, t) {
7065
7074
  }
7066
7075
  const xe = {};
7067
7076
  function mc(e) {
7068
- const [t, n] = m.useState({}), r = m.useRef(e);
7077
+ const [t, n] = h.useState({}), r = h.useRef(e);
7069
7078
  return xe.u = (s) => {
7070
7079
  r.current = { ...r.current, [s.name]: s.value };
7071
7080
  }, xe.n = (s) => {
@@ -7128,13 +7137,13 @@ function pc({
7128
7137
  hide: c = !1,
7129
7138
  edit: _ = !0,
7130
7139
  active: u = !0,
7131
- after: g = "",
7140
+ after: p = "",
7132
7141
  show: f = !0,
7133
- view: p,
7134
- className: C = ""
7142
+ view: g,
7143
+ className: j = ""
7135
7144
  }) {
7136
- _ = _ !== void 0 ? _ : !0, u = u !== void 0 ? u : !0, c = !!(c && (e === "" || e === void 0)) && !(_ && u), m.useRef(null);
7137
- let x = s, j = !0, S = 0, N = (I, F) => {
7145
+ _ = _ !== void 0 ? _ : !0, u = u !== void 0 ? u : !0, c = !!(c && (e === "" || e === void 0)) && !(_ && u), h.useRef(null);
7146
+ let m = s, C = !0, S = 0, N = (I, F) => {
7138
7147
  let W = document.createRange(), ne = window.getSelection();
7139
7148
  W.setStart(F.childNodes[0], I), W.collapse(!0), ne.removeAllRanges(), ne.addRange(W), F.focus();
7140
7149
  }, T = (I) => {
@@ -7144,48 +7153,48 @@ function pc({
7144
7153
  });
7145
7154
  }, k = (I) => {
7146
7155
  let F = 0, W = "", ne = I.replace(/\D/g, "");
7147
- ne === "" && (j = !0);
7156
+ ne === "" && (C = !0);
7148
7157
  let se = ne.split(""), he = "";
7149
7158
  se.forEach((He) => {
7150
- j && (he += He, j && (S = ("" + he).length, x = s.replace(new RegExp("[0-9]", "g"), "_"), W = ""), S > ("" + he).length && (j = !0, x = s.replace(new RegExp("[0-9]", "g"), "_"), W = ""));
7159
+ C && (he += He, C && (S = ("" + he).length, m = s.replace(new RegExp("[0-9]", "g"), "_"), W = ""), S > ("" + he).length && (C = !0, m = s.replace(new RegExp("[0-9]", "g"), "_"), W = ""));
7151
7160
  });
7152
- let Se = x.replace(/\D/g, "");
7153
- return Se.length >= ne.length && (ne = Se), { q: x.replace(/[_\d]/g, function() {
7161
+ let Ee = m.replace(/\D/g, "");
7162
+ return Ee.length >= ne.length && (ne = Ee), { q: m.replace(/[_\d]/g, function() {
7154
7163
  return ne.charAt(F++) || "_";
7155
7164
  }), i: F, v: ne, f: W };
7156
7165
  }, y = (I) => {
7157
7166
  I.preventDefault(), navigator.clipboard.writeText(I.target.textContent.replace(/\D/g, "")).then(
7158
7167
  function() {
7159
- Te.Copy("Данные в буфер обмене");
7168
+ we.Copy("Данные в буфер обмене");
7160
7169
  },
7161
7170
  function(F) {
7162
7171
  }
7163
7172
  );
7164
7173
  }, b = k(e), E = (I) => {
7165
7174
  let F = k(I.target.textContent);
7166
- I.target.textContent = F.q, F.i = F.q.lastIndexOf(F.v.substr(-1)), F.i < F.q.length && F.q !== x ? F.i++ : F.i = F.q.indexOf("_"), N(F.i, I.target), t && t({ value: F.q.replace(/\D/g, ""), name: r });
7167
- }, $ = (I) => {
7175
+ I.target.textContent = F.q, F.i = F.q.lastIndexOf(F.v.substr(-1)), F.i < F.q.length && F.q !== m ? F.i++ : F.i = F.q.indexOf("_"), N(F.i, I.target), t && t({ value: F.q.replace(/\D/g, ""), name: r });
7176
+ }, z = (I) => {
7168
7177
  I.key === "Enter" && I.preventDefault();
7169
7178
  };
7170
- const M = (I) => {
7179
+ const $ = (I) => {
7171
7180
  ce.Blur(I), n && n({
7172
7181
  value: I.target.textContent.replace(/\D/g, ""),
7173
7182
  name: r
7174
7183
  });
7175
- }, U = {};
7176
- U.field = "input", C && (U.className = C);
7177
- let A = {};
7178
- return _ && u ? (A.edit = "true", A.contentEditable = "plaintext-only") : A.contentEditable = "false", i && (A.placeholder = i), g && (A.after = g), c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...U, children: [
7184
+ }, O = {};
7185
+ O.field = "input", j && (O.className = j);
7186
+ let L = {};
7187
+ return _ && u ? (L.edit = "true", L.contentEditable = "plaintext-only") : L.contentEditable = "false", i && (L.placeholder = i), p && (L.after = p), c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...O, children: [
7179
7188
  o && /* @__PURE__ */ a.jsx("dt", { children: o }),
7180
7189
  /* @__PURE__ */ a.jsx(
7181
7190
  "dd",
7182
7191
  {
7183
- ...A,
7192
+ ...L,
7184
7193
  onPaste: T,
7185
7194
  onInput: E,
7186
- onKeyDown: $,
7195
+ onKeyDown: z,
7187
7196
  onContextMenu: y,
7188
- onBlur: M,
7197
+ onBlur: $,
7189
7198
  suppressContentEditableWarning: !0,
7190
7199
  children: b.q
7191
7200
  }
@@ -7254,9 +7263,9 @@ const md = { Spinner: jc, Inline: kc }, yc = function({
7254
7263
  loading: l
7255
7264
  }) {
7256
7265
  const [c] = Sn(
7257
- i.map((g) => g.id).includes(Ie()) ? Ie() : s
7258
- ), [_, u] = m.useState(!1);
7259
- return m.useEffect(() => {
7266
+ i.map((p) => p.id).includes(Ne()) ? Ne() : s
7267
+ ), [_, u] = h.useState(!1);
7268
+ return h.useEffect(() => {
7260
7269
  u(!0);
7261
7270
  }, []), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
7262
7271
  /* @__PURE__ */ a.jsxs("div", { className: "ph", children: [
@@ -7270,16 +7279,16 @@ const md = { Spinner: jc, Inline: kc }, yc = function({
7270
7279
  ] });
7271
7280
  };
7272
7281
  let bc = ({ m: e, t, loading: n }) => {
7273
- const r = m.lazy(() => st(e + "/pages/" + t + ".tsx"));
7274
- return /* @__PURE__ */ a.jsx(m.Suspense, { fallback: n, children: /* @__PURE__ */ a.jsx(r, {}) });
7282
+ const r = h.lazy(() => st(e + "/pages/" + t + ".tsx"));
7283
+ return /* @__PURE__ */ a.jsx(h.Suspense, { fallback: n, children: /* @__PURE__ */ a.jsx(r, {}) });
7275
7284
  }, wc = ({ button: e }) => {
7276
- const [t, n] = m.useState(e);
7285
+ const [t, n] = h.useState(e);
7277
7286
  return Ft("button", n), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
7278
7287
  " ",
7279
7288
  t
7280
7289
  ] });
7281
7290
  }, Sc = ({ title: e, affter: t }) => {
7282
- const [n, r] = m.useState(
7291
+ const [n, r] = h.useState(
7283
7292
  /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
7284
7293
  e,
7285
7294
  " ",
@@ -7387,7 +7396,7 @@ function Lc(e, t) {
7387
7396
  }
7388
7397
  }
7389
7398
  function $c() {
7390
- const [e, t] = m.useReducer(Lc, {
7399
+ const [e, t] = h.useReducer(Lc, {
7391
7400
  open: !1,
7392
7401
  view: null,
7393
7402
  data: {},
@@ -7573,7 +7582,7 @@ function Kc(e, t) {
7573
7582
  }
7574
7583
  }
7575
7584
  function da({ load: e, list: t, item: n }) {
7576
- const r = m.useRef(null), [s, i] = m.useReducer(Kc, {
7585
+ const r = h.useRef(null), [s, i] = h.useReducer(Kc, {
7577
7586
  load: !1,
7578
7587
  list: [],
7579
7588
  data: {},
@@ -7581,7 +7590,7 @@ function da({ load: e, list: t, item: n }) {
7581
7590
  wait: !1,
7582
7591
  item: n
7583
7592
  });
7584
- m.useEffect(() => {
7593
+ h.useEffect(() => {
7585
7594
  t !== null && i({ type: "load", load: e, data: t });
7586
7595
  }, [e]);
7587
7596
  let o = (l) => {
@@ -7589,7 +7598,7 @@ function da({ load: e, list: t, item: n }) {
7589
7598
  if (l > s.size) return l = s.size;
7590
7599
  i({ type: "page", page: l });
7591
7600
  };
7592
- return m.useEffect(() => {
7601
+ return h.useEffect(() => {
7593
7602
  }, [s]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
7594
7603
  /* @__PURE__ */ a.jsx("div", { className: ca.l, ref: r, children: /* @__PURE__ */ a.jsx(Zn, { "el-empty": "Данные не найдены", children: s.load && s.list !== void 0 ? s.list.map((l) => /* @__PURE__ */ a.jsx(s.item, { data: l }, l.id)) : /* @__PURE__ */ a.jsxs("div", { "type-data": "load", children: [
7595
7604
  /* @__PURE__ */ a.jsx("i", {}),
@@ -7676,8 +7685,8 @@ const Cd = { View: Wc, Reducer: Yc, useValue: Hc, setValue: qc }, jd = {
7676
7685
  tabs: i,
7677
7686
  modules: o
7678
7687
  }) {
7679
- const [l] = Ae.useTabs(s), [c, _] = m.useState(!1);
7680
- return m.useEffect(() => {
7688
+ const [l] = Ae.useTabs(s), [c, _] = h.useState(!1);
7689
+ return h.useEffect(() => {
7681
7690
  _(!0);
7682
7691
  }, []), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
7683
7692
  /* @__PURE__ */ a.jsxs("div", { className: "list-info", children: [
@@ -7690,19 +7699,19 @@ const Cd = { View: Wc, Reducer: Yc, useValue: Hc, setValue: qc }, jd = {
7690
7699
  ] });
7691
7700
  };
7692
7701
  let Vc = ({ modules: e, t }) => {
7693
- const n = m.lazy(() => st(e + "/pages/" + t + ".tsx"));
7694
- return /* @__PURE__ */ a.jsx(m.Suspense, { fallback: "", children: /* @__PURE__ */ a.jsx(n, {}) });
7702
+ const n = h.lazy(() => st(e + "/pages/" + t + ".tsx"));
7703
+ return /* @__PURE__ */ a.jsx(h.Suspense, { fallback: "", children: /* @__PURE__ */ a.jsx(n, {}) });
7695
7704
  }, Jc = ({ button: e }) => {
7696
- const [t, n] = m.useState(e);
7697
- return we.useListener("button", n), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
7705
+ const [t, n] = h.useState(e);
7706
+ return Se.useListener("button", n), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
7698
7707
  " ",
7699
7708
  t
7700
7709
  ] });
7701
7710
  };
7702
7711
  const bd = { Open: Lo };
7703
7712
  function wd({ active: e, onActive: t, id: n, name: r }) {
7704
- const [s, i] = m.useState(!!e);
7705
- m.useEffect(() => {
7713
+ const [s, i] = h.useState(!!e);
7714
+ h.useEffect(() => {
7706
7715
  i(!!e);
7707
7716
  }, [e]);
7708
7717
  let o = () => {
@@ -7736,12 +7745,12 @@ export {
7736
7745
  kd as Company,
7737
7746
  xn as Component,
7738
7747
  cd as DataBase,
7739
- we as Event,
7740
- we as Events,
7748
+ Se as Event,
7749
+ Se as Events,
7741
7750
  _d as Files,
7742
7751
  pd as Filter,
7743
7752
  ud as Form,
7744
- Z as Format,
7753
+ U as Format,
7745
7754
  dd as HotKey,
7746
7755
  id as Icon,
7747
7756
  qo as Init,
@@ -7751,7 +7760,7 @@ export {
7751
7760
  Cd as List,
7752
7761
  md as Loading,
7753
7762
  ot as Modal,
7754
- Te as Notice,
7763
+ we as Notice,
7755
7764
  xd as Notifications,
7756
7765
  vd as Pagination,
7757
7766
  bd as Phone,