elcrm 0.9.86 → 0.9.87

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
@@ -71,10 +71,10 @@ function Qa() {
71
71
  U.unshift("Warning: " + v), Function.prototype.apply.call(console[d], console, U);
72
72
  }
73
73
  }
74
- var $ = !1, y = !1, b = !1, E = !1, T = !1, B;
74
+ var $ = !1, y = !1, b = !1, D = !1, T = !1, B;
75
75
  B = Symbol.for("react.module.reference");
76
76
  function M(d) {
77
- return !!(typeof d == "string" || typeof d == "function" || d === s || d === i || T || d === r || d === _ || d === u || E || d === f || $ || y || b || typeof d == "object" && d !== null && (d.$$typeof === m || d.$$typeof === x || d.$$typeof === o || d.$$typeof === l || d.$$typeof === c || // This needs to include all possible module reference object
77
+ return !!(typeof d == "string" || typeof d == "function" || d === s || d === i || T || d === r || d === _ || d === u || D || d === f || $ || y || b || typeof d == "object" && d !== null && (d.$$typeof === m || d.$$typeof === x || d.$$typeof === o || d.$$typeof === l || d.$$typeof === c || // This needs to include all possible module reference object
78
78
  // types supported by any Flight configuration anywhere since
79
79
  // we don't know which Flight build this will end up being used
80
80
  // with.
@@ -87,10 +87,10 @@ function Qa() {
87
87
  var Z = v.displayName || v.name || "";
88
88
  return Z !== "" ? w + "(" + Z + ")" : w;
89
89
  }
90
- function S(d) {
90
+ function E(d) {
91
91
  return d.displayName || "Context";
92
92
  }
93
- function D(d) {
93
+ function I(d) {
94
94
  if (d == null)
95
95
  return null;
96
96
  if (typeof d.tag == "number" && k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof d == "function")
@@ -115,19 +115,19 @@ function Qa() {
115
115
  switch (d.$$typeof) {
116
116
  case l:
117
117
  var v = d;
118
- return S(v) + ".Consumer";
118
+ return E(v) + ".Consumer";
119
119
  case o:
120
120
  var w = d;
121
- return S(w._context) + ".Provider";
121
+ return E(w._context) + ".Provider";
122
122
  case c:
123
123
  return L(d, d.render, "ForwardRef");
124
124
  case x:
125
125
  var F = d.displayName || null;
126
- return F !== null ? F : D(d.type) || "Memo";
126
+ return F !== null ? F : I(d.type) || "Memo";
127
127
  case m: {
128
128
  var Z = d, U = Z._payload, G = Z._init;
129
129
  try {
130
- return D(G(U));
130
+ return I(G(U));
131
131
  } catch {
132
132
  return null;
133
133
  }
@@ -399,8 +399,8 @@ function Qa() {
399
399
  }
400
400
  function Ta(d, v) {
401
401
  if (typeof d.ref == "string" && Oe.current && v && Oe.current.stateNode !== v) {
402
- var w = D(Oe.current.type);
403
- ht[w] || (k('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', D(Oe.current.type), d.ref), ht[w] = !0);
402
+ var w = I(Oe.current.type);
403
+ ht[w] || (k('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', I(Oe.current.type), d.ref), ht[w] = !0);
404
404
  }
405
405
  }
406
406
  function La(d, v) {
@@ -488,7 +488,7 @@ function Qa() {
488
488
  function rn() {
489
489
  {
490
490
  if (pt.current) {
491
- var d = D(pt.current.type);
491
+ var d = I(pt.current.type);
492
492
  if (d)
493
493
  return `
494
494
 
@@ -523,7 +523,7 @@ Check the top-level render call using <` + w + ">.");
523
523
  return;
524
524
  on[w] = !0;
525
525
  var F = "";
526
- d && d._owner && d._owner !== pt.current && (F = " It was passed a child from " + D(d._owner.type) + "."), Re(d), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', w, F), Re(null);
526
+ d && d._owner && d._owner !== pt.current && (F = " It was passed a child from " + I(d._owner.type) + "."), Re(d), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', w, F), Re(null);
527
527
  }
528
528
  }
529
529
  function cn(d, v) {
@@ -560,11 +560,11 @@ Check the top-level render call using <` + w + ">.");
560
560
  else
561
561
  return;
562
562
  if (w) {
563
- var F = D(v);
563
+ var F = I(v);
564
564
  wa(w, d.props, "prop", F, d);
565
565
  } else if (v.PropTypes !== void 0 && !gt) {
566
566
  gt = !0;
567
- var Z = D(v);
567
+ var Z = I(v);
568
568
  k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Z || "Unknown");
569
569
  }
570
570
  typeof v.getDefaultProps == "function" && !v.getDefaultProps.isReactClassApproved && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
@@ -592,7 +592,7 @@ Check the top-level render call using <` + w + ">.");
592
592
  var ee = Fa();
593
593
  ee ? A += ee : A += rn();
594
594
  var Y;
595
- d === null ? Y = "null" : mt(d) ? Y = "array" : d !== void 0 && d.$$typeof === t ? (Y = "<" + (D(d.type) || "Unknown") + " />", A = " Did you accidentally export a JSX literal instead of a component?") : Y = typeof d, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Y, A);
595
+ d === null ? Y = "null" : mt(d) ? Y = "array" : d !== void 0 && d.$$typeof === t ? (Y = "<" + (I(d.type) || "Unknown") + " />", A = " Did you accidentally export a JSX literal instead of a component?") : Y = typeof d, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Y, A);
596
596
  }
597
597
  var J = Ba(d, v, w, Z, U);
598
598
  if (J == null)
@@ -611,7 +611,7 @@ Check the top-level render call using <` + w + ">.");
611
611
  cn(le, d);
612
612
  }
613
613
  if (Pe.call(v, "key")) {
614
- var Se = D(d), ae = Object.keys(v).filter(function(Ka) {
614
+ var Se = I(d), ae = Object.keys(v).filter(function(Ka) {
615
615
  return Ka !== "key";
616
616
  }), vt = ae.length > 0 ? "{key: someKey, " + ae.join(": ..., ") + ": ...}" : "{key: someKey}";
617
617
  if (!dn[Se + vt]) {
@@ -757,7 +757,7 @@ Ee.success = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "
757
757
  }
758
758
  )
759
759
  ] });
760
- const je = { Send: cs, Error: ds, Remark: us, Success: _s, Copy: fs, Custom: ls }, I = {}, X = {}, Te = {}, Rn = {}, ye = {}, me = {};
760
+ const je = { Send: cs, Error: ds, Remark: us, Success: _s, Copy: fs, Custom: ls }, S = {}, X = {}, Te = {}, Rn = {}, ye = {}, me = {};
761
761
  let it = "M06";
762
762
  function ms(e) {
763
763
  it = e;
@@ -768,11 +768,11 @@ function hs() {
768
768
  function ps(e) {
769
769
  if (localStorage.getItem("d")) {
770
770
  let n = sessionStorage.getItem("f");
771
- n ? (n = O.deCode(n), n || te(), I.id = n.id, I.tab = n.tab, I.page = n.page, I.module = n.module, I.time = n.time, I.payment = { active: !0 }, I.module_admin = n.module_admin) : (I.id = 0, I.tab = "", I.page = "Main", I.module = I.module || it);
771
+ n ? (n = O.deCode(n), n || te(), S.id = n.id, S.tab = n.tab, S.page = n.page, S.module = n.module, S.time = n.time, S.payment = { active: !0 }, S.module_admin = n.module_admin) : (S.id = 0, S.tab = "", S.page = "Main", S.module = S.module || it);
772
772
  } else
773
773
  ["a", "b", "c", "d", "e", "m", "u", "s", "q", "p"].forEach(
774
774
  (n) => localStorage.removeItem(n)
775
- ), ["f"].forEach((n) => sessionStorage.removeItem(n)), I.id = 0, I.tab = "", I.page = "Auth", I.module = it;
775
+ ), ["f"].forEach((n) => sessionStorage.removeItem(n)), S.id = 0, S.tab = "", S.page = "Auth", S.module = it;
776
776
  return e;
777
777
  }
778
778
  function te() {
@@ -781,16 +781,16 @@ function te() {
781
781
  ), ["f"].forEach((e) => sessionStorage.removeItem(e)), window.location.reload();
782
782
  }
783
783
  function gs(e) {
784
- e = e.split("/"), I.page = "Main", I.module = e[0], I.tab = e[1], I.id = 0, sessionStorage.setItem(
784
+ e = e.split("/"), S.page = "Main", S.module = e[0], S.tab = e[1], S.id = 0, sessionStorage.setItem(
785
785
  "f",
786
786
  O.enCode({
787
- module: I.module,
788
- page: I.page,
789
- tab: I.tab,
790
- id: I.id,
787
+ module: S.module,
788
+ page: S.page,
789
+ tab: S.tab,
790
+ id: S.id,
791
791
  time: (/* @__PURE__ */ new Date()).getTime()
792
792
  })
793
- ), X.page(I.page);
793
+ ), X.page(S.page);
794
794
  }
795
795
  function xs(e) {
796
796
  return localStorage.setItem("d", e);
@@ -824,13 +824,13 @@ function ys() {
824
824
  return X.page = n, [e];
825
825
  }
826
826
  function bs(e, t = !0) {
827
- I.page = e, sessionStorage.setItem("f", O.enCode(I)), t && X.page(e);
827
+ S.page = e, sessionStorage.setItem("f", O.enCode(S)), t && X.page(e);
828
828
  }
829
829
  function Nn() {
830
- return I.page;
830
+ return S.page;
831
831
  }
832
832
  function ws(e) {
833
- return I.page === e;
833
+ return S.page === e;
834
834
  }
835
835
  function Ss(e) {
836
836
  if (typeof e != "function") {
@@ -842,13 +842,13 @@ function Ss(e) {
842
842
  X.module = e;
843
843
  }
844
844
  function Es(e, t = !0) {
845
- I.module = e, sessionStorage.setItem("f", O.enCode(I)), t && X.module(e);
845
+ S.module = e, sessionStorage.setItem("f", O.enCode(S)), t && X.module(e);
846
846
  }
847
847
  function Tn() {
848
- return I.module;
848
+ return S.module;
849
849
  }
850
850
  function Ds(e) {
851
- return I.module === e;
851
+ return S.module === e;
852
852
  }
853
853
  function Ln(e) {
854
854
  if (typeof e != "function") {
@@ -858,17 +858,17 @@ function Ln(e) {
858
858
  X.tabs = e;
859
859
  }
860
860
  function Mn(e, t = !0) {
861
- if (I.tab = e, sessionStorage.setItem("f", O.enCode(I)), !!t)
861
+ if (S.tab = e, sessionStorage.setItem("f", O.enCode(S)), !!t)
862
862
  if (X.tabs)
863
863
  X.tabs(e);
864
864
  else
865
865
  throw new Error("useTabs not found");
866
866
  }
867
867
  function Le() {
868
- return I.tab;
868
+ return S.tab;
869
869
  }
870
870
  function Is(e) {
871
- return I.tab === e;
871
+ return S.tab === e;
872
872
  }
873
873
  function Rs(e) {
874
874
  if (typeof e != "function") {
@@ -883,19 +883,19 @@ function Ns(e) {
883
883
  X.id = e;
884
884
  }
885
885
  function Ts(e, t = !0) {
886
- I.id = e, sessionStorage.setItem("f", O.enCode(I)), t && X.id(e);
886
+ S.id = e, sessionStorage.setItem("f", O.enCode(S)), t && X.id(e);
887
887
  }
888
888
  function $n() {
889
- return I.id;
889
+ return S.id;
890
890
  }
891
891
  function Ls(e) {
892
- return Number(I.id) === e;
892
+ return Number(S.id) === e;
893
893
  }
894
894
  function Ms(e, t, n) {
895
- I.module = e, I.id = n, I.tab = t, sessionStorage.setItem("f", O.enCode(I)), X.module(e), X.tabs(t);
895
+ S.module = e, S.id = n, S.tab = t, sessionStorage.setItem("f", O.enCode(S)), X.module(e), X.tabs(t);
896
896
  }
897
897
  function $s(e, t, n, s) {
898
- I.page = e, I.module = t, I.tab = n || "", I.id = s || 0, sessionStorage.setItem("f", O.enCode(I)), X.page(e);
898
+ S.page === e ? S.module === t ? (S.tab = n || "", S.id = s || 0, X.tabs(n)) : (S.module = t, S.tab = n || "", S.id = s || 0, X.module(t)) : (S.module = t, S.tab = n || "", S.id = s || 0, X.page(e)), sessionStorage.setItem("f", O.enCode(S));
899
899
  }
900
900
  function Bs(e) {
901
901
  Te.data = e[0], delete Te.data.id, document.body.dataset.theme = Te.data.s15, localStorage.setItem("s", O.enCode(Te.data));
@@ -967,10 +967,10 @@ function Us(e) {
967
967
  return Rn.data[e];
968
968
  }
969
969
  function zs(e) {
970
- I.payment = e;
970
+ S.payment = e;
971
971
  }
972
972
  function Ws() {
973
- return I.payment;
973
+ return S.payment;
974
974
  }
975
975
  function An(e) {
976
976
  localStorage.setItem("u", O.enCode(e));
@@ -1009,17 +1009,17 @@ function qs(e) {
1009
1009
  try {
1010
1010
  let r = O.deCode(s);
1011
1011
  if (!r) return;
1012
- I[n] = { is: !0, time: r.time, data: r.data };
1012
+ S[n] = { is: !0, time: r.time, data: r.data };
1013
1013
  } catch {
1014
- I[n] = { is: !1, time: 0, data: {} };
1014
+ S[n] = { is: !1, time: 0, data: {} };
1015
1015
  }
1016
1016
  else
1017
- I[n] = { is: !1, time: 0, data: {} };
1017
+ S[n] = { is: !1, time: 0, data: {} };
1018
1018
  };
1019
1019
  e.forEach((n) => t(n));
1020
1020
  }
1021
1021
  function Js(e) {
1022
- return I[e] === void 0 ? (I[e] = { data: {}, time: 0 }, { data: {}, time: 0 }) : I[e];
1022
+ return S[e] === void 0 ? (S[e] = { data: {}, time: 0 }, { data: {}, time: 0 }) : S[e];
1023
1023
  }
1024
1024
  function Vs(e, t) {
1025
1025
  ye[e] = t, localStorage.setItem("t", O.enCode(ye));
@@ -1038,10 +1038,10 @@ function Xs(e) {
1038
1038
  return e ? ye[e] : ye;
1039
1039
  }
1040
1040
  function Qs(e, t) {
1041
- I[e] = { data: t.data, time: t.time }, localStorage.setItem(e, O.enCode(I[e]));
1041
+ S[e] = { data: t.data, time: t.time }, localStorage.setItem(e, O.enCode(S[e]));
1042
1042
  }
1043
1043
  function er(e, t, n) {
1044
- I[e].time = n, I[e].data[t.item][t.name] = t.value, localStorage.setItem(e, O.enCode(I[e]));
1044
+ S[e].time = n, S[e].data[t.item][t.name] = t.value, localStorage.setItem(e, O.enCode(S[e]));
1045
1045
  }
1046
1046
  function tr() {
1047
1047
  var n;
@@ -1317,9 +1317,9 @@ function Dr(e) {
1317
1317
  }
1318
1318
  const Ir = (e) => {
1319
1319
  function t(N, $) {
1320
- var y, E, b;
1320
+ var y, D, b;
1321
1321
  N = N ?? "", $ = $ ?? 1;
1322
- for (var y = [], b = 0, E = N.length; b < E; )
1322
+ for (var y = [], b = 0, D = N.length; b < D; )
1323
1323
  y.push(N.slice(b, b += $));
1324
1324
  return y;
1325
1325
  }
@@ -3991,30 +3991,30 @@ function We({
3991
3991
  isCopy: k = !0,
3992
3992
  isReload: N = !1
3993
3993
  }) {
3994
- let $ = !!(l && (t === "" || t === void 0)), y = (S) => {
3994
+ let $ = !!(l && (t === "" || t === void 0)), y = (E) => {
3995
3995
  n && n({
3996
- value: S.target.textContent.trim(),
3996
+ value: E.target.textContent.trim(),
3997
3997
  name: s,
3998
3998
  reload: N
3999
3999
  });
4000
- }, b = (S) => {
4001
- f && S.target.textContent.trim().length >= f && S.key !== "Backspace" && S.preventDefault(), S.key === "Enter" && S.preventDefault();
4002
- }, E = (S) => {
4003
- k && (S.preventDefault(), navigator.clipboard.writeText(S.target.textContent.trim()).then(
4000
+ }, b = (E) => {
4001
+ f && E.target.textContent.trim().length >= f && E.key !== "Backspace" && E.preventDefault(), E.key === "Enter" && E.preventDefault();
4002
+ }, D = (E) => {
4003
+ k && (E.preventDefault(), navigator.clipboard.writeText(E.target.textContent.trim()).then(
4004
4004
  function() {
4005
4005
  je.Copy("Данные в буфер обмене");
4006
4006
  },
4007
- function(D) {
4007
+ function(I) {
4008
4008
  }
4009
4009
  ));
4010
- }, T = (S) => {
4011
- f && (S.preventDefault(), navigator.clipboard.readText().then((D) => {
4012
- D = D.slice(0, f), window.document.execCommand(
4010
+ }, T = (E) => {
4011
+ f && (E.preventDefault(), navigator.clipboard.readText().then((I) => {
4012
+ I = I.slice(0, f), window.document.execCommand(
4013
4013
  "insertText",
4014
4014
  !1,
4015
- D.replace(/(\r\n|\n|\r)/gm, " ")
4015
+ I.replace(/(\r\n|\n|\r)/gm, " ")
4016
4016
  );
4017
- }).catch((D) => {
4017
+ }).catch((I) => {
4018
4018
  }));
4019
4019
  };
4020
4020
  if (!(c && _) && !m || !(c && _) && $) return "";
@@ -4022,8 +4022,8 @@ function We({
4022
4022
  B.field = "input", C && (B.className = C);
4023
4023
  const M = {};
4024
4024
  r && (M.placeholder = r), c && _ && (M.edit = "");
4025
- const L = (S) => {
4026
- oe.Blur(S), p == null || p({ value: S.target.textContent.trim(), name: s });
4025
+ const L = (E) => {
4026
+ oe.Blur(E), p == null || p({ value: E.target.textContent.trim(), name: s });
4027
4027
  };
4028
4028
  return /* @__PURE__ */ a.jsxs("dl", { ...B, children: [
4029
4029
  i ? /* @__PURE__ */ a.jsx("dt", { children: i }) : "",
@@ -4035,7 +4035,7 @@ function We({
4035
4035
  onInput: y,
4036
4036
  onBlur: L,
4037
4037
  onKeyDown: b,
4038
- onContextMenu: E,
4038
+ onContextMenu: D,
4039
4039
  contentEditable: c && _ ? "plaintext-only" : "false",
4040
4040
  suppressContentEditableWarning: !0,
4041
4041
  ...M,
@@ -4557,8 +4557,8 @@ function Zt({
4557
4557
  if (!(l && _) || !m) return;
4558
4558
  let b = m.split(".");
4559
4559
  ct.Open(b[0], b[1], {
4560
- callback: (E) => {
4561
- t && t({ value: E, name: n }), C(E);
4560
+ callback: (D) => {
4561
+ t && t({ value: D, name: n }), C(D);
4562
4562
  },
4563
4563
  onValue: t,
4564
4564
  options: j,
@@ -4606,8 +4606,8 @@ function Ut({
4606
4606
  let C = !!(o && (e === "" || e === void 0));
4607
4607
  e = z.isNumeric(e) ? Number(e) / x : 0;
4608
4608
  let k = (M) => j === "multi" ? M.replace(/[^+\d.+-]/g, "") : M.replace(/[^+\d.]/g, ""), N = (M, L) => {
4609
- let S = document.createRange(), D = window.getSelection();
4610
- S.setStart(L.childNodes[0], M), S.collapse(!0), D.removeAllRanges(), D.addRange(S), L.focus();
4609
+ let E = document.createRange(), I = window.getSelection();
4610
+ E.setStart(L.childNodes[0], M), E.collapse(!0), I.removeAllRanges(), I.addRange(E), L.focus();
4611
4611
  }, $ = (M) => {
4612
4612
  t == null || t({
4613
4613
  value: k(M.target.textContent) * x,
@@ -4620,7 +4620,7 @@ function Ut({
4620
4620
  }), M.target.textContent = z.Money(M.target.textContent);
4621
4621
  }, b = (M) => {
4622
4622
  M.target.textContent = k(M.target.textContent);
4623
- }, E = (M) => {
4623
+ }, D = (M) => {
4624
4624
  M.key === "Enter" && M.preventDefault();
4625
4625
  }, T = (M) => {
4626
4626
  M.preventDefault(), navigator.clipboard.readText().then((L) => {
@@ -4638,7 +4638,7 @@ function Ut({
4638
4638
  onInput: $,
4639
4639
  onPaste: T,
4640
4640
  onBlur: y,
4641
- onKeyDown: E,
4641
+ onKeyDown: D,
4642
4642
  onFocus: b,
4643
4643
  contentEditable: l && c ? "plaintext-only" : "false",
4644
4644
  suppressContentEditableWarning: !0,
@@ -4801,17 +4801,17 @@ function ia({
4801
4801
  function() {
4802
4802
  je.Copy("Данные в буфер обмене");
4803
4803
  },
4804
- function(S) {
4804
+ function(E) {
4805
4805
  }
4806
4806
  ));
4807
- }, E = (L) => {
4808
- m && (L.preventDefault(), navigator.clipboard.readText().then((S) => {
4809
- S = S.slice(0, m), window.document.execCommand(
4807
+ }, D = (L) => {
4808
+ m && (L.preventDefault(), navigator.clipboard.readText().then((E) => {
4809
+ E = E.slice(0, m), window.document.execCommand(
4810
4810
  "insertText",
4811
4811
  !1,
4812
- S.replace(/(\r\n|\n|\r)/gm, " ")
4812
+ E.replace(/(\r\n|\n|\r)/gm, " ")
4813
4813
  );
4814
- }).catch((S) => {
4814
+ }).catch((E) => {
4815
4815
  }));
4816
4816
  };
4817
4817
  if (l) return /* @__PURE__ */ a.jsx(a.Fragment, {});
@@ -4828,7 +4828,7 @@ function ia({
4828
4828
  /* @__PURE__ */ a.jsx(
4829
4829
  "dd",
4830
4830
  {
4831
- onPaste: E,
4831
+ onPaste: D,
4832
4832
  onInput: $,
4833
4833
  onBlur: M,
4834
4834
  onKeyDown: y,
@@ -4883,10 +4883,10 @@ function zt({
4883
4883
  };
4884
4884
  const b = (B) => {
4885
4885
  oe.Blur(B), t == null || t({ value: B.target.textContent, name: m });
4886
- }, E = {};
4887
- E.field = "input", x && (E.className = x);
4886
+ }, D = {};
4887
+ D.field = "input", x && (D.className = x);
4888
4888
  let T = {};
4889
- return r && n ? (T.edit = "true", T.contentEditable = "plaintext-only") : T.contentEditable = "false", u && (T.placeholder = u), c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...E, children: [
4889
+ return r && n ? (T.edit = "true", T.contentEditable = "plaintext-only") : T.contentEditable = "false", u && (T.placeholder = u), c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...D, children: [
4890
4890
  i && /* @__PURE__ */ a.jsx("dt", { children: i }),
4891
4891
  j,
4892
4892
  /* @__PURE__ */ a.jsx(
@@ -4924,16 +4924,16 @@ function oa({
4924
4924
  after: j = ""
4925
4925
  }) {
4926
4926
  const [g, p] = h.useState(m);
4927
- let C = (E) => {
4927
+ let C = (D) => {
4928
4928
  t && t({
4929
- value: E.target.textContent,
4929
+ value: D.target.textContent,
4930
4930
  name: s,
4931
4931
  reload: u
4932
4932
  });
4933
- }, k = (E) => {
4934
- E.key === "Enter" && E.preventDefault();
4935
- }, N = (E) => {
4936
- E.preventDefault(), navigator.clipboard.readText().then((T) => {
4933
+ }, k = (D) => {
4934
+ D.key === "Enter" && D.preventDefault();
4935
+ }, N = (D) => {
4936
+ D.preventDefault(), navigator.clipboard.readText().then((T) => {
4937
4937
  window.document.execCommand(
4938
4938
  "insertText",
4939
4939
  !1,
@@ -4941,8 +4941,8 @@ function oa({
4941
4941
  );
4942
4942
  }).catch((T) => {
4943
4943
  });
4944
- }, $ = (E) => {
4945
- oe.Blur(E), n == null || n({ value: E.target.textContent.trim(), name: s });
4944
+ }, $ = (D) => {
4945
+ oe.Blur(D), n == null || n({ value: D.target.textContent.trim(), name: s });
4946
4946
  };
4947
4947
  const y = {};
4948
4948
  y.field = "password", g && (y.show = ""), i && (y.className = i);
@@ -6366,16 +6366,16 @@ function Wt({
6366
6366
  className: f = ""
6367
6367
  }) {
6368
6368
  c = c !== void 0 ? c : !0, _ = _ !== void 0 ? _ : !0, l = !!(l && (e === "" || e === void 0)) && !(c && _), h.useRef(null);
6369
- let g = "+_(___) ___-__-__", p = !0, C = 0, k = (S, D) => {
6369
+ let g = "+_(___) ___-__-__", p = !0, C = 0, k = (E, I) => {
6370
6370
  let P = document.createRange(), K = window.getSelection();
6371
- P.setStart(D.childNodes[0], S), P.collapse(!0), K.removeAllRanges(), K.addRange(P), D.focus();
6372
- }, N = (S) => {
6373
- S.preventDefault(), navigator.clipboard.readText().then((D) => {
6374
- window.document.execCommand("insertText", !1, D);
6375
- }).catch((D) => {
6371
+ P.setStart(I.childNodes[0], E), P.collapse(!0), K.removeAllRanges(), K.addRange(P), I.focus();
6372
+ }, N = (E) => {
6373
+ E.preventDefault(), navigator.clipboard.readText().then((I) => {
6374
+ window.document.execCommand("insertText", !1, I);
6375
+ }).catch((I) => {
6376
6376
  });
6377
- }, $ = (S) => {
6378
- let D = 0, P = "", K = S.replace(/\D/g, "");
6377
+ }, $ = (E) => {
6378
+ let I = 0, P = "", K = E.replace(/\D/g, "");
6379
6379
  K === "" && (p = !0);
6380
6380
  let ne = K.split(""), ie = "";
6381
6381
  ne.forEach((Fe) => {
@@ -6389,25 +6389,25 @@ function Wt({
6389
6389
  });
6390
6390
  let ve = g.replace(/\D/g, "");
6391
6391
  return ve.length >= K.length && (K = ve), { q: g.replace(/[_\d]/g, function() {
6392
- return K.charAt(D++) || "_";
6393
- }), i: D, v: K, f: P };
6394
- }, y = (S) => {
6395
- S.preventDefault(), navigator.clipboard.writeText(S.target.textContent.replace(/\D/g, "")).then(
6392
+ return K.charAt(I++) || "_";
6393
+ }), i: I, v: K, f: P };
6394
+ }, y = (E) => {
6395
+ E.preventDefault(), navigator.clipboard.writeText(E.target.textContent.replace(/\D/g, "")).then(
6396
6396
  function() {
6397
6397
  je.Copy("Данные в буфер обмене");
6398
6398
  },
6399
- function(D) {
6399
+ function(I) {
6400
6400
  }
6401
6401
  );
6402
- }, b = $(e), E = (S) => {
6403
- let D = $(S.target.textContent);
6404
- S.target.textContent = D.q, D.i = D.q.lastIndexOf(D.v.substr(-1)), D.i < D.q.length && D.q !== g ? D.i++ : D.i = D.q.indexOf("_"), k(D.i, S.target), t && t({ value: D.q.replace(/\D/g, ""), name: s });
6405
- }, T = (S) => {
6406
- S.key === "Enter" && S.preventDefault();
6402
+ }, b = $(e), D = (E) => {
6403
+ let I = $(E.target.textContent);
6404
+ E.target.textContent = I.q, I.i = I.q.lastIndexOf(I.v.substr(-1)), I.i < I.q.length && I.q !== g ? I.i++ : I.i = I.q.indexOf("_"), k(I.i, E.target), t && t({ value: I.q.replace(/\D/g, ""), name: s });
6405
+ }, T = (E) => {
6406
+ E.key === "Enter" && E.preventDefault();
6407
6407
  };
6408
- const B = (S) => {
6409
- oe.Blur(S), n && n({
6410
- value: S.target.textContent.replace(/\D/g, ""),
6408
+ const B = (E) => {
6409
+ oe.Blur(E), n && n({
6410
+ value: E.target.textContent.replace(/\D/g, ""),
6411
6411
  name: s
6412
6412
  });
6413
6413
  }, M = {};
@@ -6420,7 +6420,7 @@ function Wt({
6420
6420
  {
6421
6421
  ...L,
6422
6422
  onPaste: N,
6423
- onInput: E,
6423
+ onInput: D,
6424
6424
  onKeyDown: T,
6425
6425
  onContextMenu: y,
6426
6426
  onBlur: B,
@@ -6492,13 +6492,13 @@ function Kt({
6492
6492
  C(L), o && o({ value: L, name: u, reload: j });
6493
6493
  }, b = (L) => {
6494
6494
  if (Object.keys(l).length === 0 || !(n && s)) return;
6495
- const S = L.target.getBoundingClientRect();
6495
+ const E = L.target.getBoundingClientRect();
6496
6496
  pe.setListener(
6497
6497
  "form",
6498
6498
  /* @__PURE__ */ a.jsx(
6499
6499
  Rc,
6500
6500
  {
6501
- parent: S,
6501
+ parent: E,
6502
6502
  onValue: y,
6503
6503
  view: m,
6504
6504
  className: _,
@@ -6508,8 +6508,8 @@ function Kt({
6508
6508
  (/* @__PURE__ */ new Date()).getTime()
6509
6509
  )
6510
6510
  );
6511
- }, E = { field: "select", className: _ }, T = { onClick: b };
6512
- return c && (T.placeholder = c), x && (T.after = x), n && s && (T.edit = ""), r ? "" : /* @__PURE__ */ a.jsxs("dl", { ...E, children: [
6511
+ }, D = { field: "select", className: _ }, T = { onClick: b };
6512
+ return c && (T.placeholder = c), x && (T.after = x), n && s && (T.edit = ""), r ? "" : /* @__PURE__ */ a.jsxs("dl", { ...D, children: [
6513
6513
  e && /* @__PURE__ */ a.jsx("dt", { children: e }),
6514
6514
  /* @__PURE__ */ a.jsx("dd", { ...T, ref: g, children: (M = k[p]) == null ? void 0 : M.n }),
6515
6515
  Object.keys(k).length !== 0 && /* @__PURE__ */ a.jsx("s", { children: /* @__PURE__ */ a.jsx(
@@ -6898,12 +6898,12 @@ function da({
6898
6898
  }) {
6899
6899
  let g = !!(o && (e === "" || e === void 0)), p = z.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), C = h.useRef(null);
6900
6900
  if (!(l && c) && !u || !(l && c) && g) return "";
6901
- let k = (E) => {
6902
- C.current.textContent = E, t && t({ value: E, name: n });
6903
- }, N = (E) => {
6904
- f && f({ value: E, name: n });
6905
- }, $ = (E) => {
6906
- const T = E.target.getBoundingClientRect(), B = T.left, M = T.top;
6901
+ let k = (D) => {
6902
+ C.current.textContent = D, t && t({ value: D, name: n });
6903
+ }, N = (D) => {
6904
+ f && f({ value: D, name: n });
6905
+ }, $ = (D) => {
6906
+ const T = D.target.getBoundingClientRect(), B = T.left, M = T.top;
6907
6907
  pe.setListener(
6908
6908
  "form",
6909
6909
  /* @__PURE__ */ a.jsx(
@@ -6969,34 +6969,34 @@ const Lc = ({ positions: e, onSave: t, onValue: n, date: s }) => {
6969
6969
  if (o === "hour")
6970
6970
  if (b.deltaY > 0) {
6971
6971
  u += b.deltaY;
6972
- let E = parseInt(String(u / 50));
6973
- if (x !== E) {
6974
- x = E;
6972
+ let D = parseInt(String(u / 50));
6973
+ if (x !== D) {
6974
+ x = D;
6975
6975
  let T = parseInt(i.h, 10) + 1;
6976
6976
  T = T > 23 ? 0 : T, i = { ...i, h: z.Number(2, T) }, m.hourText.current.textContent = i.h, m[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
6977
6977
  }
6978
6978
  } else {
6979
6979
  u -= b.deltaY;
6980
- let E = parseInt(String(u / 50));
6981
- if (x !== E) {
6982
- x = E;
6980
+ let D = parseInt(String(u / 50));
6981
+ if (x !== D) {
6982
+ x = D;
6983
6983
  let T = parseInt(i.h, 10) - 1;
6984
6984
  T = T < 0 ? 23 : T, i = { ...i, h: z.Number(2, T) }, m.hourText.current.textContent = i.h, m[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
6985
6985
  }
6986
6986
  }
6987
6987
  else if (b.deltaY > 0) {
6988
6988
  u += b.deltaY;
6989
- let E = parseInt(String(u / 50));
6990
- if (x !== E) {
6991
- x = E;
6989
+ let D = parseInt(String(u / 50));
6990
+ if (x !== D) {
6991
+ x = D;
6992
6992
  let T = parseInt(i.m, 10) + 1;
6993
6993
  T = T > 59 ? 0 : T, i = { ...i, m: z.Number(2, T) }, m.timeText.current.textContent = i.m, m[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
6994
6994
  }
6995
6995
  } else {
6996
6996
  u -= b.deltaY;
6997
- let E = parseInt(String(u / 50));
6998
- if (x !== E) {
6999
- x = E;
6997
+ let D = parseInt(String(u / 50));
6998
+ if (x !== D) {
6999
+ x = D;
7000
7000
  let T = parseInt(i.m, 10) - 1;
7001
7001
  T = T < 0 ? 59 : T, i = { ...i, m: z.Number(2, T) }, m.timeText.current.textContent = i.m, m[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
7002
7002
  }
@@ -7163,11 +7163,11 @@ function fa({
7163
7163
  if (!(l && c) && !u || !(l && c) && $) return "";
7164
7164
  const b = {};
7165
7165
  b.field = "group", j && (b.className = j);
7166
- const E = (L, S) => {
7167
- oe.Blur(L), p[S] = L.target.textContent, f && f({ value: p.join(g), name: n });
7166
+ const D = (L, E) => {
7167
+ oe.Blur(L), p[E] = L.target.textContent, f && f({ value: p.join(g), name: n });
7168
7168
  };
7169
- let T = (L, S) => {
7170
- p[S] = L.target.textContent, t && t({ value: p.join(g), name: n });
7169
+ let T = (L, E) => {
7170
+ p[E] = L.target.textContent, t && t({ value: p.join(g), name: n });
7171
7171
  }, B = (L) => {
7172
7172
  L.key === "Enter" && L.preventDefault();
7173
7173
  };
@@ -7192,27 +7192,27 @@ function fa({
7192
7192
  r,
7193
7193
  /* @__PURE__ */ a.jsx(M, { data: p })
7194
7194
  ] }),
7195
- /* @__PURE__ */ a.jsx("dd", { children: p.map((L, S) => /* @__PURE__ */ a.jsxs("li", { className: "field_group_item", children: [
7195
+ /* @__PURE__ */ a.jsx("dd", { children: p.map((L, E) => /* @__PURE__ */ a.jsxs("li", { className: "field_group_item", children: [
7196
7196
  /* @__PURE__ */ a.jsx(
7197
7197
  "span",
7198
7198
  {
7199
- onInput: (D) => T(D, S),
7199
+ onInput: (I) => T(I, E),
7200
7200
  edit: "true",
7201
7201
  name: n,
7202
7202
  placeholder: s,
7203
7203
  onPaste: y,
7204
7204
  contentEditable: l && c ? "plaintext-only" : "false",
7205
7205
  onKeyDown: B,
7206
- onBlur: (D) => E(D, S),
7206
+ onBlur: (I) => D(I, E),
7207
7207
  suppressContentEditableWarning: !0,
7208
- children: p[S]
7208
+ children: p[E]
7209
7209
  }
7210
7210
  ),
7211
7211
  /* @__PURE__ */ a.jsx(
7212
7212
  "i",
7213
7213
  {
7214
7214
  onClick: () => {
7215
- N(S);
7215
+ N(E);
7216
7216
  },
7217
7217
  children: /* @__PURE__ */ a.jsxs(
7218
7218
  "svg",
@@ -7232,7 +7232,7 @@ function fa({
7232
7232
  )
7233
7233
  }
7234
7234
  )
7235
- ] }, S)) }),
7235
+ ] }, E)) }),
7236
7236
  i && /* @__PURE__ */ a.jsx("em", { children: i })
7237
7237
  ] });
7238
7238
  }
@@ -7259,8 +7259,8 @@ function ma({
7259
7259
  if (!(l && _) || !m) return;
7260
7260
  let b = m.split(".");
7261
7261
  ct.Open(b[0], b[1], {
7262
- callback: (E) => {
7263
- t && t({ value: E, name: n }), C(E);
7262
+ callback: (D) => {
7263
+ t && t({ value: D, name: n }), C(D);
7264
7264
  },
7265
7265
  onValue: t,
7266
7266
  options: j,
@@ -7329,12 +7329,12 @@ function bn({
7329
7329
  const C = h.useId();
7330
7330
  let k = !!(l && (e === "" || e === void 0)), [N, $] = h.useState(i);
7331
7331
  if (!(c && _) && !x || !(c && _) && k) return "";
7332
- const y = async (E) => {
7332
+ const y = async (D) => {
7333
7333
  if (m) {
7334
- let T = Fc(E, m, e || "default");
7334
+ let T = Fc(D, m, e || "default");
7335
7335
  t == null || t({ name: n, value: T }), $(URL.createObjectURL(T));
7336
7336
  } else
7337
- t == null || t({ name: n, value: E }), $(URL.createObjectURL(E));
7337
+ t == null || t({ name: n, value: D }), $(URL.createObjectURL(D));
7338
7338
  }, b = {};
7339
7339
  return b.field = "file", p && (b.className = p), /* @__PURE__ */ a.jsxs("dl", { ...b, children: [
7340
7340
  r && /* @__PURE__ */ a.jsxs("dt", { children: [
@@ -7348,8 +7348,8 @@ function bn({
7348
7348
  id: C,
7349
7349
  type: "file",
7350
7350
  multiple: !0,
7351
- onChange: (E) => {
7352
- E.target.files[0] && y(E.target.files[0]);
7351
+ onChange: (D) => {
7352
+ D.target.files[0] && y(D.target.files[0]);
7353
7353
  }
7354
7354
  }
7355
7355
  ),
@@ -7494,16 +7494,16 @@ function Uc({
7494
7494
  className: j = ""
7495
7495
  }) {
7496
7496
  _ = _ !== void 0 ? _ : !0, u = u !== void 0 ? u : !0, c = !!(c && (e === "" || e === void 0)) && !(_ && u), h.useRef(null);
7497
- let p = r, C = !0, k = 0, N = (D, P) => {
7497
+ let p = r, C = !0, k = 0, N = (I, P) => {
7498
7498
  let K = document.createRange(), ne = window.getSelection();
7499
- K.setStart(P.childNodes[0], D), K.collapse(!0), ne.removeAllRanges(), ne.addRange(K), P.focus();
7500
- }, $ = (D) => {
7501
- D.preventDefault(), navigator.clipboard.readText().then((P) => {
7499
+ K.setStart(P.childNodes[0], I), K.collapse(!0), ne.removeAllRanges(), ne.addRange(K), P.focus();
7500
+ }, $ = (I) => {
7501
+ I.preventDefault(), navigator.clipboard.readText().then((P) => {
7502
7502
  window.document.execCommand("insertText", !1, P);
7503
7503
  }).catch((P) => {
7504
7504
  });
7505
- }, y = (D) => {
7506
- let P = 0, K = "", ne = D.replace(/\D/g, "");
7505
+ }, y = (I) => {
7506
+ let P = 0, K = "", ne = I.replace(/\D/g, "");
7507
7507
  ne === "" && (C = !0);
7508
7508
  let ie = ne.split(""), ve = "";
7509
7509
  ie.forEach((Ve) => {
@@ -7513,41 +7513,41 @@ function Uc({
7513
7513
  return Ie.length >= ne.length && (ne = Ie), { q: p.replace(/[_\d]/g, function() {
7514
7514
  return ne.charAt(P++) || "_";
7515
7515
  }), i: P, v: ne, f: K };
7516
- }, b = (D) => {
7517
- D.preventDefault(), navigator.clipboard.writeText(D.target.textContent.replace(/\D/g, "")).then(
7516
+ }, b = (I) => {
7517
+ I.preventDefault(), navigator.clipboard.writeText(I.target.textContent.replace(/\D/g, "")).then(
7518
7518
  function() {
7519
7519
  je.Copy("Данные в буфер обмене");
7520
7520
  },
7521
7521
  function(P) {
7522
7522
  }
7523
7523
  );
7524
- }, E = y(e), T = (D) => {
7525
- let P = y(D.target.textContent);
7526
- D.target.textContent = P.q, P.i = P.q.lastIndexOf(P.v.substr(-1)), P.i < P.q.length && P.q !== p ? P.i++ : P.i = P.q.indexOf("_"), N(P.i, D.target), t && t({ value: P.q.replace(/\D/g, ""), name: s });
7527
- }, B = (D) => {
7528
- D.key === "Enter" && D.preventDefault();
7524
+ }, D = y(e), T = (I) => {
7525
+ let P = y(I.target.textContent);
7526
+ I.target.textContent = P.q, P.i = P.q.lastIndexOf(P.v.substr(-1)), P.i < P.q.length && P.q !== p ? P.i++ : P.i = P.q.indexOf("_"), N(P.i, I.target), t && t({ value: P.q.replace(/\D/g, ""), name: s });
7527
+ }, B = (I) => {
7528
+ I.key === "Enter" && I.preventDefault();
7529
7529
  };
7530
- const M = (D) => {
7531
- oe.Blur(D), n && n({
7532
- value: D.target.textContent.replace(/\D/g, ""),
7530
+ const M = (I) => {
7531
+ oe.Blur(I), n && n({
7532
+ value: I.target.textContent.replace(/\D/g, ""),
7533
7533
  name: s
7534
7534
  });
7535
7535
  }, L = {};
7536
7536
  L.field = "input", j && (L.className = j);
7537
- let S = {};
7538
- return _ && u ? (S.edit = "true", S.contentEditable = "plaintext-only") : S.contentEditable = "false", i && (S.placeholder = i), x && (S.after = x), c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...L, children: [
7537
+ let E = {};
7538
+ return _ && u ? (E.edit = "true", E.contentEditable = "plaintext-only") : E.contentEditable = "false", i && (E.placeholder = i), x && (E.after = x), c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...L, children: [
7539
7539
  o && /* @__PURE__ */ a.jsx("dt", { children: o }),
7540
7540
  /* @__PURE__ */ a.jsx(
7541
7541
  "dd",
7542
7542
  {
7543
- ...S,
7543
+ ...E,
7544
7544
  onPaste: $,
7545
7545
  onInput: T,
7546
7546
  onKeyDown: B,
7547
7547
  onContextMenu: b,
7548
7548
  onBlur: M,
7549
7549
  suppressContentEditableWarning: !0,
7550
- children: E.q
7550
+ children: D.q
7551
7551
  }
7552
7552
  ),
7553
7553
  l && /* @__PURE__ */ a.jsx("em", { children: l })