elcrm 0.9.86 → 0.9.88

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,27 @@ 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
+ if (S.page === e)
899
+ if (S.module === t) {
900
+ if (S.tab = n || "", S.id = s || 0, S.tab === "") return;
901
+ X.tabs(n);
902
+ } else
903
+ S.module = t, S.tab = n || "", S.id = s || 0, X.module(t);
904
+ else
905
+ S.module = t, S.tab = n || "", S.id = s || 0, X.page(e);
906
+ sessionStorage.setItem("f", O.enCode(S));
899
907
  }
900
908
  function Bs(e) {
901
909
  Te.data = e[0], delete Te.data.id, document.body.dataset.theme = Te.data.s15, localStorage.setItem("s", O.enCode(Te.data));
@@ -967,10 +975,10 @@ function Us(e) {
967
975
  return Rn.data[e];
968
976
  }
969
977
  function zs(e) {
970
- I.payment = e;
978
+ S.payment = e;
971
979
  }
972
980
  function Ws() {
973
- return I.payment;
981
+ return S.payment;
974
982
  }
975
983
  function An(e) {
976
984
  localStorage.setItem("u", O.enCode(e));
@@ -1009,17 +1017,17 @@ function qs(e) {
1009
1017
  try {
1010
1018
  let r = O.deCode(s);
1011
1019
  if (!r) return;
1012
- I[n] = { is: !0, time: r.time, data: r.data };
1020
+ S[n] = { is: !0, time: r.time, data: r.data };
1013
1021
  } catch {
1014
- I[n] = { is: !1, time: 0, data: {} };
1022
+ S[n] = { is: !1, time: 0, data: {} };
1015
1023
  }
1016
1024
  else
1017
- I[n] = { is: !1, time: 0, data: {} };
1025
+ S[n] = { is: !1, time: 0, data: {} };
1018
1026
  };
1019
1027
  e.forEach((n) => t(n));
1020
1028
  }
1021
1029
  function Js(e) {
1022
- return I[e] === void 0 ? (I[e] = { data: {}, time: 0 }, { data: {}, time: 0 }) : I[e];
1030
+ return S[e] === void 0 ? (S[e] = { data: {}, time: 0 }, { data: {}, time: 0 }) : S[e];
1023
1031
  }
1024
1032
  function Vs(e, t) {
1025
1033
  ye[e] = t, localStorage.setItem("t", O.enCode(ye));
@@ -1038,10 +1046,10 @@ function Xs(e) {
1038
1046
  return e ? ye[e] : ye;
1039
1047
  }
1040
1048
  function Qs(e, t) {
1041
- I[e] = { data: t.data, time: t.time }, localStorage.setItem(e, O.enCode(I[e]));
1049
+ S[e] = { data: t.data, time: t.time }, localStorage.setItem(e, O.enCode(S[e]));
1042
1050
  }
1043
1051
  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]));
1052
+ S[e].time = n, S[e].data[t.item][t.name] = t.value, localStorage.setItem(e, O.enCode(S[e]));
1045
1053
  }
1046
1054
  function tr() {
1047
1055
  var n;
@@ -1317,9 +1325,9 @@ function Dr(e) {
1317
1325
  }
1318
1326
  const Ir = (e) => {
1319
1327
  function t(N, $) {
1320
- var y, E, b;
1328
+ var y, D, b;
1321
1329
  N = N ?? "", $ = $ ?? 1;
1322
- for (var y = [], b = 0, E = N.length; b < E; )
1330
+ for (var y = [], b = 0, D = N.length; b < D; )
1323
1331
  y.push(N.slice(b, b += $));
1324
1332
  return y;
1325
1333
  }
@@ -3991,30 +3999,30 @@ function We({
3991
3999
  isCopy: k = !0,
3992
4000
  isReload: N = !1
3993
4001
  }) {
3994
- let $ = !!(l && (t === "" || t === void 0)), y = (S) => {
4002
+ let $ = !!(l && (t === "" || t === void 0)), y = (E) => {
3995
4003
  n && n({
3996
- value: S.target.textContent.trim(),
4004
+ value: E.target.textContent.trim(),
3997
4005
  name: s,
3998
4006
  reload: N
3999
4007
  });
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(
4008
+ }, b = (E) => {
4009
+ f && E.target.textContent.trim().length >= f && E.key !== "Backspace" && E.preventDefault(), E.key === "Enter" && E.preventDefault();
4010
+ }, D = (E) => {
4011
+ k && (E.preventDefault(), navigator.clipboard.writeText(E.target.textContent.trim()).then(
4004
4012
  function() {
4005
4013
  je.Copy("Данные в буфер обмене");
4006
4014
  },
4007
- function(D) {
4015
+ function(I) {
4008
4016
  }
4009
4017
  ));
4010
- }, T = (S) => {
4011
- f && (S.preventDefault(), navigator.clipboard.readText().then((D) => {
4012
- D = D.slice(0, f), window.document.execCommand(
4018
+ }, T = (E) => {
4019
+ f && (E.preventDefault(), navigator.clipboard.readText().then((I) => {
4020
+ I = I.slice(0, f), window.document.execCommand(
4013
4021
  "insertText",
4014
4022
  !1,
4015
- D.replace(/(\r\n|\n|\r)/gm, " ")
4023
+ I.replace(/(\r\n|\n|\r)/gm, " ")
4016
4024
  );
4017
- }).catch((D) => {
4025
+ }).catch((I) => {
4018
4026
  }));
4019
4027
  };
4020
4028
  if (!(c && _) && !m || !(c && _) && $) return "";
@@ -4022,8 +4030,8 @@ function We({
4022
4030
  B.field = "input", C && (B.className = C);
4023
4031
  const M = {};
4024
4032
  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 });
4033
+ const L = (E) => {
4034
+ oe.Blur(E), p == null || p({ value: E.target.textContent.trim(), name: s });
4027
4035
  };
4028
4036
  return /* @__PURE__ */ a.jsxs("dl", { ...B, children: [
4029
4037
  i ? /* @__PURE__ */ a.jsx("dt", { children: i }) : "",
@@ -4035,7 +4043,7 @@ function We({
4035
4043
  onInput: y,
4036
4044
  onBlur: L,
4037
4045
  onKeyDown: b,
4038
- onContextMenu: E,
4046
+ onContextMenu: D,
4039
4047
  contentEditable: c && _ ? "plaintext-only" : "false",
4040
4048
  suppressContentEditableWarning: !0,
4041
4049
  ...M,
@@ -4557,8 +4565,8 @@ function Zt({
4557
4565
  if (!(l && _) || !m) return;
4558
4566
  let b = m.split(".");
4559
4567
  ct.Open(b[0], b[1], {
4560
- callback: (E) => {
4561
- t && t({ value: E, name: n }), C(E);
4568
+ callback: (D) => {
4569
+ t && t({ value: D, name: n }), C(D);
4562
4570
  },
4563
4571
  onValue: t,
4564
4572
  options: j,
@@ -4606,8 +4614,8 @@ function Ut({
4606
4614
  let C = !!(o && (e === "" || e === void 0));
4607
4615
  e = z.isNumeric(e) ? Number(e) / x : 0;
4608
4616
  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();
4617
+ let E = document.createRange(), I = window.getSelection();
4618
+ E.setStart(L.childNodes[0], M), E.collapse(!0), I.removeAllRanges(), I.addRange(E), L.focus();
4611
4619
  }, $ = (M) => {
4612
4620
  t == null || t({
4613
4621
  value: k(M.target.textContent) * x,
@@ -4620,7 +4628,7 @@ function Ut({
4620
4628
  }), M.target.textContent = z.Money(M.target.textContent);
4621
4629
  }, b = (M) => {
4622
4630
  M.target.textContent = k(M.target.textContent);
4623
- }, E = (M) => {
4631
+ }, D = (M) => {
4624
4632
  M.key === "Enter" && M.preventDefault();
4625
4633
  }, T = (M) => {
4626
4634
  M.preventDefault(), navigator.clipboard.readText().then((L) => {
@@ -4638,7 +4646,7 @@ function Ut({
4638
4646
  onInput: $,
4639
4647
  onPaste: T,
4640
4648
  onBlur: y,
4641
- onKeyDown: E,
4649
+ onKeyDown: D,
4642
4650
  onFocus: b,
4643
4651
  contentEditable: l && c ? "plaintext-only" : "false",
4644
4652
  suppressContentEditableWarning: !0,
@@ -4801,17 +4809,17 @@ function ia({
4801
4809
  function() {
4802
4810
  je.Copy("Данные в буфер обмене");
4803
4811
  },
4804
- function(S) {
4812
+ function(E) {
4805
4813
  }
4806
4814
  ));
4807
- }, E = (L) => {
4808
- m && (L.preventDefault(), navigator.clipboard.readText().then((S) => {
4809
- S = S.slice(0, m), window.document.execCommand(
4815
+ }, D = (L) => {
4816
+ m && (L.preventDefault(), navigator.clipboard.readText().then((E) => {
4817
+ E = E.slice(0, m), window.document.execCommand(
4810
4818
  "insertText",
4811
4819
  !1,
4812
- S.replace(/(\r\n|\n|\r)/gm, " ")
4820
+ E.replace(/(\r\n|\n|\r)/gm, " ")
4813
4821
  );
4814
- }).catch((S) => {
4822
+ }).catch((E) => {
4815
4823
  }));
4816
4824
  };
4817
4825
  if (l) return /* @__PURE__ */ a.jsx(a.Fragment, {});
@@ -4828,7 +4836,7 @@ function ia({
4828
4836
  /* @__PURE__ */ a.jsx(
4829
4837
  "dd",
4830
4838
  {
4831
- onPaste: E,
4839
+ onPaste: D,
4832
4840
  onInput: $,
4833
4841
  onBlur: M,
4834
4842
  onKeyDown: y,
@@ -4883,10 +4891,10 @@ function zt({
4883
4891
  };
4884
4892
  const b = (B) => {
4885
4893
  oe.Blur(B), t == null || t({ value: B.target.textContent, name: m });
4886
- }, E = {};
4887
- E.field = "input", x && (E.className = x);
4894
+ }, D = {};
4895
+ D.field = "input", x && (D.className = x);
4888
4896
  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: [
4897
+ 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
4898
  i && /* @__PURE__ */ a.jsx("dt", { children: i }),
4891
4899
  j,
4892
4900
  /* @__PURE__ */ a.jsx(
@@ -4924,16 +4932,16 @@ function oa({
4924
4932
  after: j = ""
4925
4933
  }) {
4926
4934
  const [g, p] = h.useState(m);
4927
- let C = (E) => {
4935
+ let C = (D) => {
4928
4936
  t && t({
4929
- value: E.target.textContent,
4937
+ value: D.target.textContent,
4930
4938
  name: s,
4931
4939
  reload: u
4932
4940
  });
4933
- }, k = (E) => {
4934
- E.key === "Enter" && E.preventDefault();
4935
- }, N = (E) => {
4936
- E.preventDefault(), navigator.clipboard.readText().then((T) => {
4941
+ }, k = (D) => {
4942
+ D.key === "Enter" && D.preventDefault();
4943
+ }, N = (D) => {
4944
+ D.preventDefault(), navigator.clipboard.readText().then((T) => {
4937
4945
  window.document.execCommand(
4938
4946
  "insertText",
4939
4947
  !1,
@@ -4941,8 +4949,8 @@ function oa({
4941
4949
  );
4942
4950
  }).catch((T) => {
4943
4951
  });
4944
- }, $ = (E) => {
4945
- oe.Blur(E), n == null || n({ value: E.target.textContent.trim(), name: s });
4952
+ }, $ = (D) => {
4953
+ oe.Blur(D), n == null || n({ value: D.target.textContent.trim(), name: s });
4946
4954
  };
4947
4955
  const y = {};
4948
4956
  y.field = "password", g && (y.show = ""), i && (y.className = i);
@@ -6366,16 +6374,16 @@ function Wt({
6366
6374
  className: f = ""
6367
6375
  }) {
6368
6376
  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) => {
6377
+ let g = "+_(___) ___-__-__", p = !0, C = 0, k = (E, I) => {
6370
6378
  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) => {
6379
+ P.setStart(I.childNodes[0], E), P.collapse(!0), K.removeAllRanges(), K.addRange(P), I.focus();
6380
+ }, N = (E) => {
6381
+ E.preventDefault(), navigator.clipboard.readText().then((I) => {
6382
+ window.document.execCommand("insertText", !1, I);
6383
+ }).catch((I) => {
6376
6384
  });
6377
- }, $ = (S) => {
6378
- let D = 0, P = "", K = S.replace(/\D/g, "");
6385
+ }, $ = (E) => {
6386
+ let I = 0, P = "", K = E.replace(/\D/g, "");
6379
6387
  K === "" && (p = !0);
6380
6388
  let ne = K.split(""), ie = "";
6381
6389
  ne.forEach((Fe) => {
@@ -6389,25 +6397,25 @@ function Wt({
6389
6397
  });
6390
6398
  let ve = g.replace(/\D/g, "");
6391
6399
  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(
6400
+ return K.charAt(I++) || "_";
6401
+ }), i: I, v: K, f: P };
6402
+ }, y = (E) => {
6403
+ E.preventDefault(), navigator.clipboard.writeText(E.target.textContent.replace(/\D/g, "")).then(
6396
6404
  function() {
6397
6405
  je.Copy("Данные в буфер обмене");
6398
6406
  },
6399
- function(D) {
6407
+ function(I) {
6400
6408
  }
6401
6409
  );
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();
6410
+ }, b = $(e), D = (E) => {
6411
+ let I = $(E.target.textContent);
6412
+ 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 });
6413
+ }, T = (E) => {
6414
+ E.key === "Enter" && E.preventDefault();
6407
6415
  };
6408
- const B = (S) => {
6409
- oe.Blur(S), n && n({
6410
- value: S.target.textContent.replace(/\D/g, ""),
6416
+ const B = (E) => {
6417
+ oe.Blur(E), n && n({
6418
+ value: E.target.textContent.replace(/\D/g, ""),
6411
6419
  name: s
6412
6420
  });
6413
6421
  }, M = {};
@@ -6420,7 +6428,7 @@ function Wt({
6420
6428
  {
6421
6429
  ...L,
6422
6430
  onPaste: N,
6423
- onInput: E,
6431
+ onInput: D,
6424
6432
  onKeyDown: T,
6425
6433
  onContextMenu: y,
6426
6434
  onBlur: B,
@@ -6492,13 +6500,13 @@ function Kt({
6492
6500
  C(L), o && o({ value: L, name: u, reload: j });
6493
6501
  }, b = (L) => {
6494
6502
  if (Object.keys(l).length === 0 || !(n && s)) return;
6495
- const S = L.target.getBoundingClientRect();
6503
+ const E = L.target.getBoundingClientRect();
6496
6504
  pe.setListener(
6497
6505
  "form",
6498
6506
  /* @__PURE__ */ a.jsx(
6499
6507
  Rc,
6500
6508
  {
6501
- parent: S,
6509
+ parent: E,
6502
6510
  onValue: y,
6503
6511
  view: m,
6504
6512
  className: _,
@@ -6508,8 +6516,8 @@ function Kt({
6508
6516
  (/* @__PURE__ */ new Date()).getTime()
6509
6517
  )
6510
6518
  );
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: [
6519
+ }, D = { field: "select", className: _ }, T = { onClick: b };
6520
+ return c && (T.placeholder = c), x && (T.after = x), n && s && (T.edit = ""), r ? "" : /* @__PURE__ */ a.jsxs("dl", { ...D, children: [
6513
6521
  e && /* @__PURE__ */ a.jsx("dt", { children: e }),
6514
6522
  /* @__PURE__ */ a.jsx("dd", { ...T, ref: g, children: (M = k[p]) == null ? void 0 : M.n }),
6515
6523
  Object.keys(k).length !== 0 && /* @__PURE__ */ a.jsx("s", { children: /* @__PURE__ */ a.jsx(
@@ -6898,12 +6906,12 @@ function da({
6898
6906
  }) {
6899
6907
  let g = !!(o && (e === "" || e === void 0)), p = z.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), C = h.useRef(null);
6900
6908
  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;
6909
+ let k = (D) => {
6910
+ C.current.textContent = D, t && t({ value: D, name: n });
6911
+ }, N = (D) => {
6912
+ f && f({ value: D, name: n });
6913
+ }, $ = (D) => {
6914
+ const T = D.target.getBoundingClientRect(), B = T.left, M = T.top;
6907
6915
  pe.setListener(
6908
6916
  "form",
6909
6917
  /* @__PURE__ */ a.jsx(
@@ -6969,34 +6977,34 @@ const Lc = ({ positions: e, onSave: t, onValue: n, date: s }) => {
6969
6977
  if (o === "hour")
6970
6978
  if (b.deltaY > 0) {
6971
6979
  u += b.deltaY;
6972
- let E = parseInt(String(u / 50));
6973
- if (x !== E) {
6974
- x = E;
6980
+ let D = parseInt(String(u / 50));
6981
+ if (x !== D) {
6982
+ x = D;
6975
6983
  let T = parseInt(i.h, 10) + 1;
6976
6984
  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
6985
  }
6978
6986
  } else {
6979
6987
  u -= b.deltaY;
6980
- let E = parseInt(String(u / 50));
6981
- if (x !== E) {
6982
- x = E;
6988
+ let D = parseInt(String(u / 50));
6989
+ if (x !== D) {
6990
+ x = D;
6983
6991
  let T = parseInt(i.h, 10) - 1;
6984
6992
  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
6993
  }
6986
6994
  }
6987
6995
  else if (b.deltaY > 0) {
6988
6996
  u += b.deltaY;
6989
- let E = parseInt(String(u / 50));
6990
- if (x !== E) {
6991
- x = E;
6997
+ let D = parseInt(String(u / 50));
6998
+ if (x !== D) {
6999
+ x = D;
6992
7000
  let T = parseInt(i.m, 10) + 1;
6993
7001
  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
7002
  }
6995
7003
  } else {
6996
7004
  u -= b.deltaY;
6997
- let E = parseInt(String(u / 50));
6998
- if (x !== E) {
6999
- x = E;
7005
+ let D = parseInt(String(u / 50));
7006
+ if (x !== D) {
7007
+ x = D;
7000
7008
  let T = parseInt(i.m, 10) - 1;
7001
7009
  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
7010
  }
@@ -7163,11 +7171,11 @@ function fa({
7163
7171
  if (!(l && c) && !u || !(l && c) && $) return "";
7164
7172
  const b = {};
7165
7173
  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 });
7174
+ const D = (L, E) => {
7175
+ oe.Blur(L), p[E] = L.target.textContent, f && f({ value: p.join(g), name: n });
7168
7176
  };
7169
- let T = (L, S) => {
7170
- p[S] = L.target.textContent, t && t({ value: p.join(g), name: n });
7177
+ let T = (L, E) => {
7178
+ p[E] = L.target.textContent, t && t({ value: p.join(g), name: n });
7171
7179
  }, B = (L) => {
7172
7180
  L.key === "Enter" && L.preventDefault();
7173
7181
  };
@@ -7192,27 +7200,27 @@ function fa({
7192
7200
  r,
7193
7201
  /* @__PURE__ */ a.jsx(M, { data: p })
7194
7202
  ] }),
7195
- /* @__PURE__ */ a.jsx("dd", { children: p.map((L, S) => /* @__PURE__ */ a.jsxs("li", { className: "field_group_item", children: [
7203
+ /* @__PURE__ */ a.jsx("dd", { children: p.map((L, E) => /* @__PURE__ */ a.jsxs("li", { className: "field_group_item", children: [
7196
7204
  /* @__PURE__ */ a.jsx(
7197
7205
  "span",
7198
7206
  {
7199
- onInput: (D) => T(D, S),
7207
+ onInput: (I) => T(I, E),
7200
7208
  edit: "true",
7201
7209
  name: n,
7202
7210
  placeholder: s,
7203
7211
  onPaste: y,
7204
7212
  contentEditable: l && c ? "plaintext-only" : "false",
7205
7213
  onKeyDown: B,
7206
- onBlur: (D) => E(D, S),
7214
+ onBlur: (I) => D(I, E),
7207
7215
  suppressContentEditableWarning: !0,
7208
- children: p[S]
7216
+ children: p[E]
7209
7217
  }
7210
7218
  ),
7211
7219
  /* @__PURE__ */ a.jsx(
7212
7220
  "i",
7213
7221
  {
7214
7222
  onClick: () => {
7215
- N(S);
7223
+ N(E);
7216
7224
  },
7217
7225
  children: /* @__PURE__ */ a.jsxs(
7218
7226
  "svg",
@@ -7232,7 +7240,7 @@ function fa({
7232
7240
  )
7233
7241
  }
7234
7242
  )
7235
- ] }, S)) }),
7243
+ ] }, E)) }),
7236
7244
  i && /* @__PURE__ */ a.jsx("em", { children: i })
7237
7245
  ] });
7238
7246
  }
@@ -7259,8 +7267,8 @@ function ma({
7259
7267
  if (!(l && _) || !m) return;
7260
7268
  let b = m.split(".");
7261
7269
  ct.Open(b[0], b[1], {
7262
- callback: (E) => {
7263
- t && t({ value: E, name: n }), C(E);
7270
+ callback: (D) => {
7271
+ t && t({ value: D, name: n }), C(D);
7264
7272
  },
7265
7273
  onValue: t,
7266
7274
  options: j,
@@ -7329,12 +7337,12 @@ function bn({
7329
7337
  const C = h.useId();
7330
7338
  let k = !!(l && (e === "" || e === void 0)), [N, $] = h.useState(i);
7331
7339
  if (!(c && _) && !x || !(c && _) && k) return "";
7332
- const y = async (E) => {
7340
+ const y = async (D) => {
7333
7341
  if (m) {
7334
- let T = Fc(E, m, e || "default");
7342
+ let T = Fc(D, m, e || "default");
7335
7343
  t == null || t({ name: n, value: T }), $(URL.createObjectURL(T));
7336
7344
  } else
7337
- t == null || t({ name: n, value: E }), $(URL.createObjectURL(E));
7345
+ t == null || t({ name: n, value: D }), $(URL.createObjectURL(D));
7338
7346
  }, b = {};
7339
7347
  return b.field = "file", p && (b.className = p), /* @__PURE__ */ a.jsxs("dl", { ...b, children: [
7340
7348
  r && /* @__PURE__ */ a.jsxs("dt", { children: [
@@ -7348,8 +7356,8 @@ function bn({
7348
7356
  id: C,
7349
7357
  type: "file",
7350
7358
  multiple: !0,
7351
- onChange: (E) => {
7352
- E.target.files[0] && y(E.target.files[0]);
7359
+ onChange: (D) => {
7360
+ D.target.files[0] && y(D.target.files[0]);
7353
7361
  }
7354
7362
  }
7355
7363
  ),
@@ -7494,16 +7502,16 @@ function Uc({
7494
7502
  className: j = ""
7495
7503
  }) {
7496
7504
  _ = _ !== 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) => {
7505
+ let p = r, C = !0, k = 0, N = (I, P) => {
7498
7506
  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) => {
7507
+ K.setStart(P.childNodes[0], I), K.collapse(!0), ne.removeAllRanges(), ne.addRange(K), P.focus();
7508
+ }, $ = (I) => {
7509
+ I.preventDefault(), navigator.clipboard.readText().then((P) => {
7502
7510
  window.document.execCommand("insertText", !1, P);
7503
7511
  }).catch((P) => {
7504
7512
  });
7505
- }, y = (D) => {
7506
- let P = 0, K = "", ne = D.replace(/\D/g, "");
7513
+ }, y = (I) => {
7514
+ let P = 0, K = "", ne = I.replace(/\D/g, "");
7507
7515
  ne === "" && (C = !0);
7508
7516
  let ie = ne.split(""), ve = "";
7509
7517
  ie.forEach((Ve) => {
@@ -7513,41 +7521,41 @@ function Uc({
7513
7521
  return Ie.length >= ne.length && (ne = Ie), { q: p.replace(/[_\d]/g, function() {
7514
7522
  return ne.charAt(P++) || "_";
7515
7523
  }), i: P, v: ne, f: K };
7516
- }, b = (D) => {
7517
- D.preventDefault(), navigator.clipboard.writeText(D.target.textContent.replace(/\D/g, "")).then(
7524
+ }, b = (I) => {
7525
+ I.preventDefault(), navigator.clipboard.writeText(I.target.textContent.replace(/\D/g, "")).then(
7518
7526
  function() {
7519
7527
  je.Copy("Данные в буфер обмене");
7520
7528
  },
7521
7529
  function(P) {
7522
7530
  }
7523
7531
  );
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();
7532
+ }, D = y(e), T = (I) => {
7533
+ let P = y(I.target.textContent);
7534
+ 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 });
7535
+ }, B = (I) => {
7536
+ I.key === "Enter" && I.preventDefault();
7529
7537
  };
7530
- const M = (D) => {
7531
- oe.Blur(D), n && n({
7532
- value: D.target.textContent.replace(/\D/g, ""),
7538
+ const M = (I) => {
7539
+ oe.Blur(I), n && n({
7540
+ value: I.target.textContent.replace(/\D/g, ""),
7533
7541
  name: s
7534
7542
  });
7535
7543
  }, L = {};
7536
7544
  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: [
7545
+ let E = {};
7546
+ 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
7547
  o && /* @__PURE__ */ a.jsx("dt", { children: o }),
7540
7548
  /* @__PURE__ */ a.jsx(
7541
7549
  "dd",
7542
7550
  {
7543
- ...S,
7551
+ ...E,
7544
7552
  onPaste: $,
7545
7553
  onInput: T,
7546
7554
  onKeyDown: B,
7547
7555
  onContextMenu: b,
7548
7556
  onBlur: M,
7549
7557
  suppressContentEditableWarning: !0,
7550
- children: E.q
7558
+ children: D.q
7551
7559
  }
7552
7560
  ),
7553
7561
  l && /* @__PURE__ */ a.jsx("em", { children: l })