elcrm 0.9.21 → 0.9.22

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
@@ -499,15 +499,15 @@ var $e = {};
499
499
  var _n;
500
500
  function Hr() {
501
501
  return _n || (_n = 1, process.env.NODE_ENV !== "production" && function() {
502
- 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";
502
+ 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"), j = Symbol.iterator, h = "@@iterator";
503
503
  function x(d) {
504
504
  if (d === null || typeof d != "object")
505
505
  return null;
506
- var v = C && d[C] || d[h];
506
+ var v = j && d[j] || d[h];
507
507
  return typeof v == "function" ? v : null;
508
508
  }
509
- var j = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
510
- function y(d) {
509
+ var C = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
510
+ function b(d) {
511
511
  {
512
512
  for (var v = arguments.length, w = new Array(v > 1 ? v - 1 : 0), L = 1; L < v; L++)
513
513
  w[L - 1] = arguments[L];
@@ -516,7 +516,7 @@ function Hr() {
516
516
  }
517
517
  function I(d, v, w) {
518
518
  {
519
- var L = j.ReactDebugCurrentFrame, G = L.getStackAddendum();
519
+ var L = C.ReactDebugCurrentFrame, G = L.getStackAddendum();
520
520
  G !== "" && (v += "%s", w = w.concat([G]));
521
521
  var Z = w.map(function(P) {
522
522
  return String(P);
@@ -524,10 +524,10 @@ function Hr() {
524
524
  Z.unshift("Warning: " + v), Function.prototype.apply.call(console[d], console, Z);
525
525
  }
526
526
  }
527
- var T = !1, b = !1, S = !1, R = !1, k = !1, A;
527
+ var T = !1, k = !1, S = !1, R = !1, y = !1, A;
528
528
  A = Symbol.for("react.module.reference");
529
529
  function M(d) {
530
- return !!(typeof d == "string" || typeof d == "function" || d === r || d === i || k || d === s || d === _ || d === u || R || d === p || T || b || S || 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
530
+ return !!(typeof d == "string" || typeof d == "function" || d === r || d === i || y || d === s || d === _ || d === u || R || d === p || T || k || S || 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
531
531
  // types supported by any Flight configuration anywhere since
532
532
  // we don't know which Flight build this will end up being used
533
533
  // with.
@@ -546,7 +546,7 @@ function Hr() {
546
546
  function N(d) {
547
547
  if (d == null)
548
548
  return null;
549
- if (typeof d.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof d == "function")
549
+ if (typeof d.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof d == "function")
550
550
  return d.displayName || d.name || null;
551
551
  if (typeof d == "string")
552
552
  return d;
@@ -647,10 +647,10 @@ function Hr() {
647
647
  })
648
648
  });
649
649
  }
650
- K < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
650
+ K < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
651
651
  }
652
652
  }
653
- var lt = j.ReactCurrentDispatcher, ct;
653
+ var lt = C.ReactCurrentDispatcher, ct;
654
654
  function Ye(d, v, w) {
655
655
  {
656
656
  if (ct === void 0)
@@ -776,7 +776,7 @@ function Hr() {
776
776
  }
777
777
  return "";
778
778
  }
779
- var Me = Object.prototype.hasOwnProperty, Yt = {}, Ht = j.ReactDebugCurrentFrame;
779
+ var Me = Object.prototype.hasOwnProperty, Yt = {}, Ht = C.ReactDebugCurrentFrame;
780
780
  function Ve(d) {
781
781
  if (d) {
782
782
  var v = d._owner, w = qe(d.type, d._source, v ? v.type : null);
@@ -799,7 +799,7 @@ function Hr() {
799
799
  } catch (H) {
800
800
  $ = H;
801
801
  }
802
- $ && !($ instanceof Error) && (Ve(G), y("%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, P, typeof $), Ve(null)), $ instanceof Error && !($.message in Yt) && (Yt[$.message] = !0, Ve(G), y("Failed %s type: %s", w, $.message), Ve(null));
802
+ $ && !($ instanceof Error) && (Ve(G), b("%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, P, typeof $), Ve(null)), $ instanceof Error && !($.message in Yt) && (Yt[$.message] = !0, Ve(G), b("Failed %s type: %s", w, $.message), Ve(null));
803
803
  }
804
804
  }
805
805
  }
@@ -825,9 +825,9 @@ function Hr() {
825
825
  }
826
826
  function Vt(d) {
827
827
  if (xa(d))
828
- return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", pa(d)), qt(d);
828
+ return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", pa(d)), qt(d);
829
829
  }
830
- var Le = j.ReactCurrentOwner, va = {
830
+ var Le = C.ReactCurrentOwner, va = {
831
831
  key: !0,
832
832
  ref: !0,
833
833
  __self: !0,
@@ -853,13 +853,13 @@ function Hr() {
853
853
  function ka(d, v) {
854
854
  if (typeof d.ref == "string" && Le.current && v && Le.current.stateNode !== v) {
855
855
  var w = N(Le.current.type);
856
- ut[w] || (y('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', N(Le.current.type), d.ref), ut[w] = !0);
856
+ ut[w] || (b('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', N(Le.current.type), d.ref), ut[w] = !0);
857
857
  }
858
858
  }
859
859
  function ya(d, v) {
860
860
  {
861
861
  var w = function() {
862
- Jt || (Jt = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", v));
862
+ Jt || (Jt = !0, b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", v));
863
863
  };
864
864
  w.isReactWarning = !0, Object.defineProperty(d, "key", {
865
865
  get: w,
@@ -870,7 +870,7 @@ function Hr() {
870
870
  function ba(d, v) {
871
871
  {
872
872
  var w = function() {
873
- Xt || (Xt = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", v));
873
+ Xt || (Xt = !0, b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", v));
874
874
  };
875
875
  w.isReactWarning = !0, Object.defineProperty(d, "ref", {
876
876
  get: w,
@@ -925,7 +925,7 @@ function Hr() {
925
925
  return wa(d, $, Q, G, L, Le.current, P);
926
926
  }
927
927
  }
928
- var ft = j.ReactCurrentOwner, Qt = j.ReactDebugCurrentFrame;
928
+ var ft = C.ReactCurrentOwner, Qt = C.ReactDebugCurrentFrame;
929
929
  function Ee(d) {
930
930
  if (d) {
931
931
  var v = d._owner, w = qe(d.type, d._source, v ? v.type : null);
@@ -976,7 +976,7 @@ Check the top-level render call using <` + w + ">.");
976
976
  return;
977
977
  tn[w] = !0;
978
978
  var L = "";
979
- d && d._owner && d._owner !== ft.current && (L = " It was passed a child from " + N(d._owner.type) + "."), Ee(d), y('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);
979
+ d && d._owner && d._owner !== ft.current && (L = " It was passed a child from " + N(d._owner.type) + "."), Ee(d), b('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);
980
980
  }
981
981
  }
982
982
  function an(d, v) {
@@ -1018,9 +1018,9 @@ Check the top-level render call using <` + w + ">.");
1018
1018
  } else if (v.PropTypes !== void 0 && !mt) {
1019
1019
  mt = !0;
1020
1020
  var G = N(v);
1021
- y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", G || "Unknown");
1021
+ b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", G || "Unknown");
1022
1022
  }
1023
- typeof v.getDefaultProps == "function" && !v.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1023
+ typeof v.getDefaultProps == "function" && !v.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1024
1024
  }
1025
1025
  }
1026
1026
  function Na(d) {
@@ -1028,11 +1028,11 @@ Check the top-level render call using <` + w + ">.");
1028
1028
  for (var v = Object.keys(d.props), w = 0; w < v.length; w++) {
1029
1029
  var L = v[w];
1030
1030
  if (L !== "children" && L !== "key") {
1031
- Ee(d), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", L), Ee(null);
1031
+ Ee(d), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", L), Ee(null);
1032
1032
  break;
1033
1033
  }
1034
1034
  }
1035
- d.ref !== null && (Ee(d), y("Invalid attribute `ref` supplied to `React.Fragment`."), Ee(null));
1035
+ d.ref !== null && (Ee(d), b("Invalid attribute `ref` supplied to `React.Fragment`."), Ee(null));
1036
1036
  }
1037
1037
  }
1038
1038
  var rn = {};
@@ -1045,7 +1045,7 @@ Check the top-level render call using <` + w + ">.");
1045
1045
  var Q = Ea();
1046
1046
  Q ? $ += Q : $ += en();
1047
1047
  var H;
1048
- d === null ? H = "null" : _t(d) ? H = "array" : d !== void 0 && d.$$typeof === t ? (H = "<" + (N(d.type) || "Unknown") + " />", $ = " Did you accidentally export a JSX literal instead of a component?") : H = typeof d, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", H, $);
1048
+ d === null ? H = "null" : _t(d) ? H = "array" : d !== void 0 && d.$$typeof === t ? (H = "<" + (N(d.type) || "Unknown") + " />", $ = " Did you accidentally export a JSX literal instead of a component?") : H = typeof d, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", H, $);
1049
1049
  }
1050
1050
  var V = Sa(d, v, w, G, Z);
1051
1051
  if (V == null)
@@ -1059,7 +1059,7 @@ Check the top-level render call using <` + w + ">.");
1059
1059
  an(oe[Re], d);
1060
1060
  Object.freeze && Object.freeze(oe);
1061
1061
  } else
1062
- y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
1062
+ b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
1063
1063
  else
1064
1064
  an(oe, d);
1065
1065
  }
@@ -1069,7 +1069,7 @@ Check the top-level render call using <` + w + ">.");
1069
1069
  }), gt = ne.length > 0 ? "{key: someKey, " + ne.join(": ..., ") + ": ...}" : "{key: someKey}";
1070
1070
  if (!rn[ke + gt]) {
1071
1071
  var Fa = ne.length > 0 ? "{" + ne.join(": ..., ") + ": ...}" : "{}";
1072
- y(`A props object containing a "key" prop is being spread into JSX:
1072
+ b(`A props object containing a "key" prop is being spread into JSX:
1073
1073
  let props = %s;
1074
1074
  <%s {...props} />
1075
1075
  React keys must be passed directly to JSX without using spread:
@@ -1131,15 +1131,15 @@ function Vr(e) {
1131
1131
  }
1132
1132
  const Jr = (e) => {
1133
1133
  function t(I, T) {
1134
- var b, R, S;
1134
+ var k, R, S;
1135
1135
  I = I ?? "", T = T ?? 1;
1136
- for (var b = [], S = 0, R = I.length; S < R; )
1137
- b.push(I.slice(S, S += T));
1138
- return b;
1136
+ for (var k = [], S = 0, R = I.length; S < R; )
1137
+ k.push(I.slice(S, S += T));
1138
+ return k;
1139
1139
  }
1140
1140
  function n(I, T) {
1141
- var b = [2, 0, 1, 1, 1, 2];
1142
- return T[I > 4 && I < 20 ? 2 : b[Math.min(I, 5)]];
1141
+ var k = [2, 0, 1, 1, 1, 2];
1142
+ return T[I > 4 && I < 20 ? 2 : k[Math.min(I, 5)]];
1143
1143
  }
1144
1144
  var r = {
1145
1145
  null: "ноль",
@@ -1205,23 +1205,23 @@ const Jr = (e) => {
1205
1205
  u1: ["миллиард", "миллиарда", "миллиардов"]
1206
1206
  }, s, i, o, l, x, c, _, h, u, g, f, p;
1207
1207
  u = parseFloat(e).toFixed(2).split("."), c = u[0], l = u[1];
1208
- var C = 12 - c.length;
1209
- if (C < 0)
1208
+ var j = 12 - c.length;
1209
+ if (j < 0)
1210
1210
  return !1;
1211
- for (var h = []; C--; )
1211
+ for (var h = []; j--; )
1212
1212
  h.push("0");
1213
1213
  c = h.join("") + c;
1214
1214
  var x = [];
1215
1215
  if (c > 0) {
1216
1216
  g = t(c, 3);
1217
- for (var j = -1; j < g.length; j++)
1218
- 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(
1217
+ for (var C = -1; C < g.length; C++)
1218
+ if (_ = g[C], _ > 0 && (f = t(_, 1), s = parseInt(f[0]), i = parseInt(f[1]), o = parseInt(f[2]), x.push(r.a100[s - 1]), p = C + 1 == 3 ? "a2" : "a1", i > 1 ? x.push(
1219
1219
  r.a20[i - 2] + (o > 0 ? " " + r[p][o - 1] : "")
1220
1220
  ) : x.push(
1221
1221
  i > 0 ? r.a10[o] : r[p][o - 1]
1222
- ), g.length > j + 1)) {
1223
- var y = r["u" + (j + 1)];
1224
- x.push(n(_, y));
1222
+ ), g.length > C + 1)) {
1223
+ var b = r["u" + (C + 1)];
1224
+ x.push(n(_, b));
1225
1225
  }
1226
1226
  } else
1227
1227
  x.push(r.null);
@@ -1368,8 +1368,8 @@ function es(e, t, n, r) {
1368
1368
  if (o.match(/^[А-ЯЁ]\.?$/i)) return o;
1369
1369
  this.init();
1370
1370
  var p = this.rules[c];
1371
- let C;
1372
- return p.exceptions && (C = this.pick(o, l, _, p.exceptions, !0), C) ? C : (C = this.pick(o, l, _, p.suffixes, !1), C || o);
1371
+ let j;
1372
+ return p.exceptions && (j = this.pick(o, l, _, p.exceptions, !0), j) ? j : (j = this.pick(o, l, _, p.suffixes, !1), j || o);
1373
1373
  },
1374
1374
  // выбираем из списка правил первое подходящее и применяем
1375
1375
  pick: function(o, l, c, _, u) {
@@ -3501,9 +3501,9 @@ const Ie = () => (xt || (xt = new Rl()), xt), je = (e, t, n = Ie()) => n._withID
3501
3501
  }).then(() => t);
3502
3502
  }, Il = (e, t, n = [], r = {}) => {
3503
3503
  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) => {
3504
- let C = "";
3504
+ let j = "";
3505
3505
  if (n.forEach((h) => {
3506
- C += t[p][h];
3506
+ j += t[p][h];
3507
3507
  }), l) {
3508
3508
  let h = {};
3509
3509
  c.forEach((x) => {
@@ -3511,9 +3511,9 @@ const Ie = () => (xt || (xt = new Rl()), xt), je = (e, t, n = Ie()) => n._withID
3511
3511
  });
3512
3512
  for (let x in o)
3513
3513
  t[p][o[x]] === void 0 && (Dt(), 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));
3514
- i.push({ id: p, text: C, ...h });
3514
+ i.push({ id: p, text: j, ...h });
3515
3515
  } else
3516
- i.push({ id: p, text: C });
3516
+ i.push({ id: p, text: j });
3517
3517
  }, f = (p) => {
3518
3518
  };
3519
3519
  return _.forEach((p) => {
@@ -3705,40 +3705,40 @@ function Ge({
3705
3705
  show: g = !0,
3706
3706
  view: f,
3707
3707
  onBlur: p,
3708
- onSave: C,
3708
+ onSave: j,
3709
3709
  className: h = ""
3710
3710
  }) {
3711
- let x = !!(l && (t === "" || t === void 0)), j = (k) => {
3712
- n && n({ value: k.target.textContent, name: r });
3713
- }, y = (k) => {
3714
- k.key === "Enter" && k.preventDefault();
3715
- }, I = (k) => {
3716
- k.preventDefault(), navigator.clipboard.writeText(k.target.textContent).then(
3711
+ let x = !!(l && (t === "" || t === void 0)), C = (y) => {
3712
+ n && n({ value: y.target.textContent, name: r });
3713
+ }, b = (y) => {
3714
+ y.key === "Enter" && y.preventDefault();
3715
+ }, I = (y) => {
3716
+ y.preventDefault(), navigator.clipboard.writeText(y.target.textContent).then(
3717
3717
  function() {
3718
3718
  Ne.Copy("Данные в буфер обмене");
3719
3719
  },
3720
3720
  function(A) {
3721
3721
  }
3722
3722
  );
3723
- }, T = (k) => {
3723
+ }, T = (y) => {
3724
3724
  };
3725
3725
  if (!(c && _) && !g || !(c && _) && x) return "";
3726
- const b = {};
3727
- b.field = "input", h && (b.className = h);
3726
+ const k = {};
3727
+ k.field = "input", h && (k.className = h);
3728
3728
  const S = {};
3729
3729
  s && (S.placeholder = s), c && _ && (S.edit = "");
3730
- const R = (k) => {
3731
- ce.Blur(k), C && C({ value: k.target.textContent, name: r });
3730
+ const R = (y) => {
3731
+ ce.Blur(y), j && j({ value: y.target.textContent, name: r });
3732
3732
  };
3733
- return /* @__PURE__ */ a.jsxs("dl", { ...b, children: [
3733
+ return /* @__PURE__ */ a.jsxs("dl", { ...k, children: [
3734
3734
  i ? /* @__PURE__ */ a.jsx("dt", { children: i }) : "",
3735
3735
  /* @__PURE__ */ a.jsx(
3736
3736
  "dd",
3737
3737
  {
3738
3738
  onPaste: T,
3739
- onInput: j,
3739
+ onInput: C,
3740
3740
  onBlur: R,
3741
- onKeyDown: y,
3741
+ onKeyDown: b,
3742
3742
  onContextMenu: I,
3743
3743
  contentEditable: c && _ ? "plaintext-only" : "false",
3744
3744
  suppressContentEditableWarning: !0,
@@ -3786,16 +3786,16 @@ function Kn({
3786
3786
  _.current.value.length > 0 ? _.current.send && (n(!0), _.current.send = !1, _.current.timerId = setTimeout(() => {
3787
3787
  _.current.send = !0;
3788
3788
  }, 3e3)) : n(!1);
3789
- }, g = (j) => {
3790
- _.current.value = j.target.textContent, u();
3791
- }, f = (j) => {
3792
- 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)));
3793
- }, p = (j) => {
3794
- j.keyCode === 16 && (_.current.shift = !1);
3795
- }, C = (j) => {
3796
- j.preventDefault(), navigator.clipboard.readText().then((y) => {
3797
- window.document.execCommand("insertText", !1, y);
3798
- }).catch((y) => {
3789
+ }, g = (C) => {
3790
+ _.current.value = C.target.textContent, u();
3791
+ }, f = (C) => {
3792
+ 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)));
3793
+ }, p = (C) => {
3794
+ C.keyCode === 16 && (_.current.shift = !1);
3795
+ }, j = (C) => {
3796
+ C.preventDefault(), navigator.clipboard.readText().then((b) => {
3797
+ window.document.execCommand("insertText", !1, b);
3798
+ }).catch((b) => {
3799
3799
  });
3800
3800
  }, h = () => {
3801
3801
  n(!1);
@@ -3805,7 +3805,7 @@ function Kn({
3805
3805
  return c && (x.placeholder = c), o && l && (x.contentEditable = "plaintext-only"), /* @__PURE__ */ a.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ a.jsx(
3806
3806
  "dd",
3807
3807
  {
3808
- onPaste: C,
3808
+ onPaste: j,
3809
3809
  onInput: g,
3810
3810
  onKeyUp: p,
3811
3811
  onKeyDown: f,
@@ -3844,23 +3844,23 @@ function Wn(e) {
3844
3844
  ] });
3845
3845
  }
3846
3846
  function Yn({ value: e, onValue: t, placeholder: n = "", name: r }) {
3847
- 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) => {
3847
+ let s = (p, j) => Number(Math.round(p + Math.random() * (j - p))), i = m.useRef(null), o = m.useRef(null), l = s(1e4, 99999), c = (p) => {
3848
3848
  p.key !== "Backspace" && (p.key === "Enter" && p.preventDefault(), p.target.textContent.length === 5 && p.preventDefault(), /\d/.test(p.key) || p.preventDefault());
3849
3849
  }, _ = (p) => {
3850
3850
  t({ value: Number(p.target.textContent) === l, name: r });
3851
3851
  }, u = (p) => {
3852
- p.preventDefault(), navigator.clipboard.readText().then((C) => {
3852
+ p.preventDefault(), navigator.clipboard.readText().then((j) => {
3853
3853
  window.document.execCommand(
3854
3854
  "insertText",
3855
3855
  !1,
3856
- C.replace(/(\r\n|\n|\r)/gm, " ").replace(/[^0-9]/g, "").substring(0, 5)
3856
+ j.replace(/(\r\n|\n|\r)/gm, " ").replace(/[^0-9]/g, "").substring(0, 5)
3857
3857
  );
3858
- }).catch((C) => {
3858
+ }).catch((j) => {
3859
3859
  });
3860
3860
  };
3861
3861
  m.useEffect(() => {
3862
- const p = i.current, C = p.getContext("2d");
3863
- 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 = "";
3862
+ const p = i.current, j = p.getContext("2d");
3863
+ j.clearRect(0, 0, p.width, p.height), j.font = "30px brush script mt", j.fillStyle = "#eee", j.textAlign = "center", j.fillText(l, 50, 27), o.current.textContent = "";
3864
3864
  }, [l]);
3865
3865
  const g = {};
3866
3866
  g.field = "captcha";
@@ -3903,8 +3903,8 @@ function Hn({
3903
3903
  }, _ = (h) => {
3904
3904
  if (h.preventDefault(), !r) return;
3905
3905
  h.target.textContent = h.target.textContent.slice(-1).replace(/[^+\d]/g, "");
3906
- let x = window.getSelection(), j = h.target.textContent.length;
3907
- 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) {
3906
+ let x = window.getSelection(), C = h.target.textContent.length;
3907
+ 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), C === 0) {
3908
3908
  h.target.blur(), h.target.focus();
3909
3909
  return;
3910
3910
  }
@@ -3932,8 +3932,8 @@ function Hn({
3932
3932
  code: ""
3933
3933
  };
3934
3934
  for (let x = 1; x <= 6; x++) {
3935
- let j = document.getElementById("n" + x);
3936
- j && (j.textContent = "");
3935
+ let C = document.getElementById("n" + x);
3936
+ C && (C.textContent = "");
3937
3937
  }
3938
3938
  }
3939
3939
  }
@@ -3941,16 +3941,16 @@ function Hn({
3941
3941
  h.target.textContent = "";
3942
3942
  }, p = (h) => {
3943
3943
  h.preventDefault(), navigator.clipboard.readText().then((x) => {
3944
- let j = x.split("");
3945
- for (let y = 1; y <= j.length; y++) {
3946
- let I = document.getElementById("n" + y);
3947
- I && (I.textContent = j[y - 1]);
3944
+ let C = x.split("");
3945
+ for (let b = 1; b <= C.length; b++) {
3946
+ let I = document.getElementById("n" + b);
3947
+ I && (I.textContent = C[b - 1]);
3948
3948
  }
3949
3949
  }).catch((x) => {
3950
3950
  });
3951
3951
  };
3952
- const C = {};
3953
- return C.field = "code", e && (C.className = e), /* @__PURE__ */ a.jsxs("dl", { ...C, children: [
3952
+ const j = {};
3953
+ return j.field = "code", e && (j.className = e), /* @__PURE__ */ a.jsxs("dl", { ...j, children: [
3954
3954
  t ? /* @__PURE__ */ a.jsx("dt", { children: t }) : "",
3955
3955
  /* @__PURE__ */ a.jsxs("div", { children: [
3956
3956
  /* @__PURE__ */ a.jsx(
@@ -4038,36 +4038,38 @@ function qn({
4038
4038
  title: i = "",
4039
4039
  error: o = "",
4040
4040
  hide: l = !1,
4041
- edit: c = !0,
4042
- active: _ = !0,
4043
- after: u = "",
4044
- show: g = !0,
4045
- view: f,
4046
- onBlur: p,
4047
- onSave: C,
4048
- className: h = ""
4041
+ length: c = 6,
4042
+ edit: _ = !0,
4043
+ active: u = !0,
4044
+ after: g = "",
4045
+ show: f = !0,
4046
+ view: p,
4047
+ onBlur: j,
4048
+ onSave: h,
4049
+ className: x = ""
4049
4050
  }) {
4050
- c = c !== void 0 ? c : !0, _ = _ !== void 0 ? _ : !0;
4051
- let [x, j] = m.useState(t), y = (T) => {
4052
- let b = T.target.getAttribute("data-color");
4053
- j(b), n == null || n({ value: b, name: r }), C == null || C({ value: b, name: r });
4051
+ _ = _ !== void 0 ? _ : !0, u = u !== void 0 ? u : !0;
4052
+ let [C, b] = m.useState(t), I = (k) => {
4053
+ b(k), n == null || n({ value: k, name: r }), h == null || h({ value: k, name: r });
4054
4054
  };
4055
- const I = {};
4056
- return I.field = "color", h && (I.className = h), /* @__PURE__ */ a.jsx(a.Fragment, { children: f === "icon" ? /* @__PURE__ */ a.jsx(
4055
+ const T = {};
4056
+ return T.field = "color", x && (T.className = x), /* @__PURE__ */ a.jsx(a.Fragment, { children: p === "icon" ? /* @__PURE__ */ a.jsx(
4057
4057
  "i",
4058
4058
  {
4059
4059
  "data-icon": "F043"
4060
4060
  }
4061
- ) : /* @__PURE__ */ a.jsxs("dl", { ...I, children: [
4061
+ ) : /* @__PURE__ */ a.jsxs("dl", { ...T, children: [
4062
4062
  i && /* @__PURE__ */ a.jsx("dt", { children: i }),
4063
- /* @__PURE__ */ a.jsxs("dd", { "data-value": x, children: [
4064
- /* @__PURE__ */ a.jsx("em", { onClick: y, "data-color": "0" }),
4065
- /* @__PURE__ */ a.jsx("em", { onClick: y, "data-color": "1" }),
4066
- /* @__PURE__ */ a.jsx("em", { onClick: y, "data-color": "2" }),
4067
- /* @__PURE__ */ a.jsx("em", { onClick: y, "data-color": "3" }),
4068
- /* @__PURE__ */ a.jsx("em", { onClick: y, "data-color": "4" }),
4069
- /* @__PURE__ */ a.jsx("em", { onClick: y, "data-color": "5" })
4070
- ] }),
4063
+ /* @__PURE__ */ a.jsx("dd", { "data-value": C, children: c > 0 && Array.from(Array(c).keys()).map((k) => /* @__PURE__ */ a.jsx(
4064
+ "s",
4065
+ {
4066
+ active: Number(k) === Number(C),
4067
+ onClick: () => I(k),
4068
+ style: {
4069
+ backgroundColor: `var(--color-${k})`
4070
+ }
4071
+ }
4072
+ )) }),
4071
4073
  o && /* @__PURE__ */ a.jsx("em", { children: o })
4072
4074
  ] }) });
4073
4075
  }
@@ -4087,7 +4089,7 @@ function $t(e) {
4087
4089
  let _ = (p) => {
4088
4090
  l(p), e.onValue({ value: p, name: e.name });
4089
4091
  }, u = (p) => {
4090
- const C = p.target.getBoundingClientRect(), h = C.left, x = C.top;
4092
+ const j = p.target.getBoundingClientRect(), h = j.left, x = j.top;
4091
4093
  we.setListener(
4092
4094
  "form",
4093
4095
  /* @__PURE__ */ a.jsx(
@@ -4141,33 +4143,33 @@ const Jl = (e) => {
4141
4143
  y: parseInt(s.getFullYear()),
4142
4144
  d: parseInt(s.getDate()),
4143
4145
  m: parseInt(s.getMonth()) + 1
4144
- }, [l, c] = m.useState({ y: o.y, m: o.m }), _ = (b) => {
4145
- let S = b.getDay();
4146
+ }, [l, c] = m.useState({ y: o.y, m: o.m }), _ = (k) => {
4147
+ let S = k.getDay();
4146
4148
  return S === 0 && (S = 7), S - 1;
4147
4149
  }, u = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"], g = l.m - 1, f = new Date(l.y, g), p = [];
4148
- for (let b = 0; b < _(f); b++)
4150
+ for (let k = 0; k < _(f); k++)
4149
4151
  p.push(0);
4150
4152
  for (; f.getMonth() === g; )
4151
4153
  p.push(f.getDate()), f.setDate(f.getDate() + 1);
4152
- let C = () => {
4154
+ let j = () => {
4153
4155
  n(!1);
4154
4156
  }, h = () => {
4155
- y(l.m + 1, l.y);
4157
+ b(l.m + 1, l.y);
4156
4158
  }, x = () => {
4157
- y(l.m - 1, l.y);
4158
- }, j = (b) => {
4159
+ b(l.m - 1, l.y);
4160
+ }, C = (k) => {
4159
4161
  e.onValue(
4160
- l.y + "-" + W.Number(2, l.m) + "-" + W.Number(2, b)
4161
- ), C();
4162
- }, y = (b, S) => {
4163
- S = b > 12 ? S + 1 : b < 1 ? S - 1 : S, b = b > 12 ? 1 : b < 1 ? 12 : b, c({ y: S, m: b });
4162
+ l.y + "-" + W.Number(2, l.m) + "-" + W.Number(2, k)
4163
+ ), j();
4164
+ }, b = (k, S) => {
4165
+ S = k > 12 ? S + 1 : k < 1 ? S - 1 : S, k = k > 12 ? 1 : k < 1 ? 12 : k, c({ y: S, m: k });
4164
4166
  }, I = 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;
4165
4167
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: t ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
4166
4168
  /* @__PURE__ */ a.jsx(
4167
4169
  "div",
4168
4170
  {
4169
4171
  className: ue.o,
4170
- onClick: () => C()
4172
+ onClick: () => j()
4171
4173
  },
4172
4174
  (/* @__PURE__ */ new Date()).getTime()
4173
4175
  ),
@@ -4207,13 +4209,13 @@ const Jl = (e) => {
4207
4209
  ) })
4208
4210
  ] }),
4209
4211
  /* @__PURE__ */ a.jsxs("div", { "grid-calendar": "", children: [
4210
- u.map((b, S) => /* @__PURE__ */ a.jsx("p", { children: b }, "v" + S)),
4211
- p.map((b, S) => /* @__PURE__ */ a.jsx("span", { children: b !== 0 ? /* @__PURE__ */ a.jsx(
4212
+ u.map((k, S) => /* @__PURE__ */ a.jsx("p", { children: k }, "v" + S)),
4213
+ p.map((k, S) => /* @__PURE__ */ a.jsx("span", { children: k !== 0 ? /* @__PURE__ */ a.jsx(
4212
4214
  "b",
4213
4215
  {
4214
- color: i.y === l.y && i.m === l.m && i.d === b ? "_FFEB3B" : "",
4215
- onClick: () => j(b),
4216
- children: b
4216
+ color: i.y === l.y && i.m === l.m && i.d === k ? "_FFEB3B" : "",
4217
+ onClick: () => C(k),
4218
+ children: k
4217
4219
  }
4218
4220
  ) : /* @__PURE__ */ a.jsx("p", {}) }, S))
4219
4221
  ] })
@@ -4237,18 +4239,18 @@ function Bt({
4237
4239
  view: g,
4238
4240
  modal: f,
4239
4241
  module: p,
4240
- options: C,
4242
+ options: j,
4241
4243
  className: h
4242
4244
  }) {
4243
- let [x, j] = m.useState(e), y = (b) => {
4245
+ let [x, C] = m.useState(e), b = (k) => {
4244
4246
  if (!(l && _) || !f) return;
4245
4247
  let S = f.split(".");
4246
4248
  it.Open(S[0], S[1], {
4247
4249
  callback: (R) => {
4248
- t && t({ value: R, name: n }), j(R);
4250
+ t && t({ value: R, name: n }), C(R);
4249
4251
  },
4250
4252
  onValue: t,
4251
- options: C,
4253
+ options: j,
4252
4254
  name: n,
4253
4255
  value: e
4254
4256
  });
@@ -4262,7 +4264,7 @@ function Bt({
4262
4264
  "dd",
4263
4265
  {
4264
4266
  ...T,
4265
- onClick: y,
4267
+ onClick: b,
4266
4268
  edit: (l && _) + "",
4267
4269
  "data-after": u,
4268
4270
  children: x
@@ -4286,36 +4288,36 @@ function Pt({
4286
4288
  course: g = 100,
4287
4289
  view: f,
4288
4290
  onBlur: p,
4289
- type: C,
4291
+ type: j,
4290
4292
  onSave: h,
4291
4293
  className: x = ""
4292
4294
  }) {
4293
- let j = !!(o && (e === "" || e === void 0));
4295
+ let C = !!(o && (e === "" || e === void 0));
4294
4296
  e = W.isNumeric(e) ? Number(e) / g : 0;
4295
- let y = (M) => C === "multi" ? M.replace(/[^+\d.+-]/g, "") : M.replace(/[^+\d.]/g, ""), I = (M, z) => {
4297
+ let b = (M) => j === "multi" ? M.replace(/[^+\d.+-]/g, "") : M.replace(/[^+\d.]/g, ""), I = (M, z) => {
4296
4298
  let O = document.createRange(), N = window.getSelection();
4297
4299
  O.setStart(z.childNodes[0], M), O.collapse(!0), N.removeAllRanges(), N.addRange(O), z.focus();
4298
4300
  }, T = (M) => {
4299
4301
  t == null || t({
4300
- value: y(M.target.textContent) * g,
4302
+ value: b(M.target.textContent) * g,
4301
4303
  name: n
4302
- }), M.target.textContent = y(M.target.textContent), M.target.textContent.length > 0 && I(M.target.textContent.length, M.target);
4303
- }, b = (M) => {
4304
- ce.Blur(M), M.target.textContent === "" && (M.target.textContent = 0), h == null || h({ value: y(M.target.textContent) * g, name: n }), t == null || t({
4305
- value: y(M.target.textContent) * g,
4304
+ }), M.target.textContent = b(M.target.textContent), M.target.textContent.length > 0 && I(M.target.textContent.length, M.target);
4305
+ }, k = (M) => {
4306
+ ce.Blur(M), M.target.textContent === "" && (M.target.textContent = 0), h == null || h({ value: b(M.target.textContent) * g, name: n }), t == null || t({
4307
+ value: b(M.target.textContent) * g,
4306
4308
  name: n
4307
4309
  }), M.target.textContent = W.Money(M.target.textContent);
4308
4310
  }, S = (M) => {
4309
- M.target.textContent = y(M.target.textContent);
4311
+ M.target.textContent = b(M.target.textContent);
4310
4312
  }, R = (M) => {
4311
4313
  M.key === "Enter" && M.preventDefault();
4312
- }, k = (M) => {
4314
+ }, y = (M) => {
4313
4315
  M.preventDefault(), navigator.clipboard.readText().then((z) => {
4314
4316
  z = z.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, z);
4315
4317
  }).catch((z) => {
4316
4318
  });
4317
4319
  };
4318
- if (!(l && c) && !u || !(l && c) && j) return "";
4320
+ if (!(l && c) && !u || !(l && c) && C) return "";
4319
4321
  const A = {};
4320
4322
  return A.field = "input", x && (A.className = x), /* @__PURE__ */ a.jsxs("dl", { ...A, children: [
4321
4323
  s ? /* @__PURE__ */ a.jsx("dt", { children: s }) : "",
@@ -4323,8 +4325,8 @@ function Pt({
4323
4325
  "dd",
4324
4326
  {
4325
4327
  onInput: T,
4326
- onPaste: k,
4327
- onBlur: b,
4328
+ onPaste: y,
4329
+ onBlur: k,
4328
4330
  onKeyDown: R,
4329
4331
  onFocus: S,
4330
4332
  contentEditable: l && c ? "plaintext-only" : "false",
@@ -4355,15 +4357,15 @@ function Vn({
4355
4357
  }, [e]);
4356
4358
  let p = (x) => {
4357
4359
  f(x), t && t({ value: x, name: n });
4358
- }, C = (x) => {
4360
+ }, j = (x) => {
4359
4361
  if (!i || !o) return;
4360
- const j = x.target.getBoundingClientRect(), y = j.left, I = j.top;
4362
+ const C = x.target.getBoundingClientRect(), b = C.left, I = C.top;
4361
4363
  we.setListener(
4362
4364
  "form",
4363
4365
  /* @__PURE__ */ a.jsx(
4364
4366
  Xl,
4365
4367
  {
4366
- position: { x: y, y: I },
4368
+ position: { x: b, y: I },
4367
4369
  onValue: p,
4368
4370
  date: g
4369
4371
  },
@@ -4372,12 +4374,12 @@ function Vn({
4372
4374
  );
4373
4375
  };
4374
4376
  const h = {};
4375
- return c && (h.placeholder = c), r === "icon" ? /* @__PURE__ */ a.jsx("i", { "data-icon": "F043", onClick: C }) : /* @__PURE__ */ a.jsxs("dl", { children: [
4377
+ return c && (h.placeholder = c), r === "icon" ? /* @__PURE__ */ a.jsx("i", { "data-icon": "F043", onClick: j }) : /* @__PURE__ */ a.jsxs("dl", { children: [
4376
4378
  l && /* @__PURE__ */ a.jsx("dt", { children: l }),
4377
4379
  /* @__PURE__ */ a.jsx(
4378
4380
  "dd",
4379
4381
  {
4380
- onClick: C,
4382
+ onClick: j,
4381
4383
  ...h,
4382
4384
  children: W.Date(g, "mm.yyyy")
4383
4385
  }
@@ -4398,9 +4400,9 @@ const Xl = (e) => {
4398
4400
  c(l + 1);
4399
4401
  }, g = () => {
4400
4402
  c(l - 1);
4401
- }, f = (j) => {
4402
- e.onValue(l + "-" + W.Number(2, j)), _();
4403
- }, p = (j) => i.y === o.y && i.m === j ? "_FFEB3B" : "", C = Array(12).fill("").map((j, y) => y + 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;
4403
+ }, f = (C) => {
4404
+ e.onValue(l + "-" + W.Number(2, C)), _();
4405
+ }, p = (C) => i.y === o.y && i.m === C ? "_FFEB3B" : "", j = Array(12).fill("").map((C, b) => b + 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;
4404
4406
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: t ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
4405
4407
  /* @__PURE__ */ a.jsx(
4406
4408
  "div",
@@ -4441,16 +4443,16 @@ const Xl = (e) => {
4441
4443
  }
4442
4444
  ) })
4443
4445
  ] }),
4444
- /* @__PURE__ */ a.jsx("div", { "grid-month": "", children: C.map((j, y) => /* @__PURE__ */ a.jsx(
4446
+ /* @__PURE__ */ a.jsx("div", { "grid-month": "", children: j.map((C, b) => /* @__PURE__ */ a.jsx(
4445
4447
  "span",
4446
4448
  {
4447
4449
  onClick: () => {
4448
- f(j);
4450
+ f(C);
4449
4451
  },
4450
- color: p(j),
4451
- children: /* @__PURE__ */ a.jsx("b", { children: W.Month(j).abc })
4452
+ color: p(C),
4453
+ children: /* @__PURE__ */ a.jsx("b", { children: W.Month(C).abc })
4452
4454
  },
4453
- y
4455
+ b
4454
4456
  )) })
4455
4457
  ]
4456
4458
  }
@@ -4463,19 +4465,19 @@ function Jn(e) {
4463
4465
  let _ = e.placeholder !== void 0 ? e.placeholder : "", u = (x) => {
4464
4466
  e.onValue && e.onValue({ value: x.target.innerText, name: e.name });
4465
4467
  }, g = (x) => {
4466
- x.preventDefault(), navigator.clipboard.readText().then((j) => {
4467
- window.document.execCommand("insertText", !1, j);
4468
- }).catch((j) => {
4468
+ x.preventDefault(), navigator.clipboard.readText().then((C) => {
4469
+ window.document.execCommand("insertText", !1, C);
4470
+ }).catch((C) => {
4469
4471
  });
4470
4472
  }, f = (x) => {
4471
4473
  i || s(!r);
4472
4474
  };
4473
4475
  const p = (x) => {
4474
4476
  e.onSave && e.onSave({ value: x.target.innerText, name: e.name });
4475
- }, C = {};
4476
- C.field = "notes", e.className && (C.className = e.className);
4477
+ }, j = {};
4478
+ j.field = "notes", e.className && (j.className = e.className);
4477
4479
  const h = {};
4478
- return _ && (h.placeholder = _), r && (h.open = ""), i && o && (h.edit = ""), c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...C, children: [
4480
+ return _ && (h.placeholder = _), r && (h.open = ""), i && o && (h.edit = ""), c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...j, children: [
4479
4481
  t(),
4480
4482
  /* @__PURE__ */ a.jsx(
4481
4483
  "dd",
@@ -4508,20 +4510,20 @@ function Ot({
4508
4510
  className: g,
4509
4511
  name: f,
4510
4512
  after: p,
4511
- view: C
4513
+ view: j
4512
4514
  }) {
4513
4515
  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;
4514
- let x = !1, j = (k) => {
4515
- e == null || e({ value: k.target.textContent, name: f });
4516
- }, y = (k) => {
4517
- if (!(x && k.which === 86)) {
4518
- if (k.which === 17 || k.which === 91) return x = !0;
4519
- k.key !== "Backspace" && (k.target.textContent.length === r && k.preventDefault(), k.key === "Enter" && k.preventDefault(), isNaN(parseInt(String.fromCharCode(k.which))) && k.preventDefault());
4516
+ let x = !1, C = (y) => {
4517
+ e == null || e({ value: y.target.textContent, name: f });
4518
+ }, b = (y) => {
4519
+ if (!(x && y.which === 86)) {
4520
+ if (y.which === 17 || y.which === 91) return x = !0;
4521
+ y.key !== "Backspace" && (y.target.textContent.length === r && y.preventDefault(), y.key === "Enter" && y.preventDefault(), isNaN(parseInt(String.fromCharCode(y.which))) && y.preventDefault());
4520
4522
  }
4521
- }, I = (k) => {
4522
- if (k.which === 17 || k.which === 91) return x = !1;
4523
- }, T = (k) => {
4524
- k.preventDefault(), navigator.clipboard.readText().then((A) => {
4523
+ }, I = (y) => {
4524
+ if (y.which === 17 || y.which === 91) return x = !1;
4525
+ }, T = (y) => {
4526
+ y.preventDefault(), navigator.clipboard.readText().then((A) => {
4525
4527
  A = A.replace(/\D/g, ""), window.document.execCommand(
4526
4528
  "insertText",
4527
4529
  !1,
@@ -4530,8 +4532,8 @@ function Ot({
4530
4532
  }).catch((A) => {
4531
4533
  });
4532
4534
  };
4533
- const b = (k) => {
4534
- ce.Blur(k), t == null || t({ value: k.target.textContent, name: f });
4535
+ const k = (y) => {
4536
+ ce.Blur(y), t == null || t({ value: y.target.textContent, name: f });
4535
4537
  }, S = {};
4536
4538
  S.field = "input", g && (S.className = g);
4537
4539
  let R = {};
@@ -4542,9 +4544,9 @@ function Ot({
4542
4544
  {
4543
4545
  ...R,
4544
4546
  onPaste: T,
4545
- onInput: j,
4546
- onBlur: b,
4547
- onKeyDown: y,
4547
+ onInput: C,
4548
+ onBlur: k,
4549
+ onKeyDown: b,
4548
4550
  onKeyUp: I,
4549
4551
  suppressContentEditableWarning: !0,
4550
4552
  children: _
@@ -4567,22 +4569,22 @@ function Xn({
4567
4569
  native: u = !1,
4568
4570
  after: g = ""
4569
4571
  }) {
4570
- let f = (j) => {
4572
+ let f = (C) => {
4571
4573
  t && t({
4572
- value: j.target.textContent,
4574
+ value: C.target.textContent,
4573
4575
  name: n,
4574
4576
  reload: _
4575
4577
  });
4576
- }, p = (j) => {
4577
- j.key === "Enter" && j.preventDefault();
4578
- }, C = (j) => {
4579
- j.preventDefault(), navigator.clipboard.readText().then((y) => {
4578
+ }, p = (C) => {
4579
+ C.key === "Enter" && C.preventDefault();
4580
+ }, j = (C) => {
4581
+ C.preventDefault(), navigator.clipboard.readText().then((b) => {
4580
4582
  window.document.execCommand(
4581
4583
  "insertText",
4582
4584
  !1,
4583
- y.replace(/(\r\n|\n|\r)/gm, " ")
4585
+ b.replace(/(\r\n|\n|\r)/gm, " ")
4584
4586
  );
4585
- }).catch((y) => {
4587
+ }).catch((b) => {
4586
4588
  });
4587
4589
  };
4588
4590
  const h = {};
@@ -4593,7 +4595,7 @@ function Xn({
4593
4595
  /* @__PURE__ */ a.jsx(
4594
4596
  "dd",
4595
4597
  {
4596
- onPaste: C,
4598
+ onPaste: j,
4597
4599
  onInput: f,
4598
4600
  onKeyDown: p,
4599
4601
  onBlur: ce.Blur,
@@ -6005,7 +6007,7 @@ function At({
6005
6007
  className: p = ""
6006
6008
  }) {
6007
6009
  c = c !== void 0 ? c : !0, _ = _ !== void 0 ? _ : !0, l = !!(l && (e === "" || e === void 0)) && !(c && _), m.useRef(null);
6008
- let h = "+_(___) ___-__-__", x = !0, j = 0, y = (O, N) => {
6010
+ let h = "+_(___) ___-__-__", x = !0, C = 0, b = (O, N) => {
6009
6011
  let F = document.createRange(), K = window.getSelection();
6010
6012
  F.setStart(N.childNodes[0], O), F.collapse(!0), K.removeAllRanges(), K.addRange(F), N.focus();
6011
6013
  }, I = (O) => {
@@ -6018,10 +6020,10 @@ function At({
6018
6020
  K === "" && (x = !0);
6019
6021
  let te = K.split(""), re = "";
6020
6022
  te.forEach((Te) => {
6021
- x && (re += Te, vt[re] !== void 0 && x ? (x = !1, h = vt[re].mask.replace(new RegExp("[0-9]", "g"), "_"), F = vt[re].code) : (x && (j = ("" + re).length, h = `+${re}_(___) ___-__-__`.replace(
6023
+ x && (re += Te, vt[re] !== void 0 && x ? (x = !1, h = vt[re].mask.replace(new RegExp("[0-9]", "g"), "_"), F = vt[re].code) : (x && (C = ("" + re).length, h = `+${re}_(___) ___-__-__`.replace(
6022
6024
  new RegExp("[0-9]", "g"),
6023
6025
  "_"
6024
- ), F = ""), j > ("" + re).length && (x = !0, h = `+${re}_(___) ___-__-__`.replace(
6026
+ ), F = ""), C > ("" + re).length && (x = !0, h = `+${re}_(___) ___-__-__`.replace(
6025
6027
  new RegExp("[0-9]", "g"),
6026
6028
  "_"
6027
6029
  ), F = "")));
@@ -6030,7 +6032,7 @@ function At({
6030
6032
  return he.length >= K.length && (K = he), { q: h.replace(/[_\d]/g, function() {
6031
6033
  return K.charAt(N++) || "_";
6032
6034
  }), i: N, v: K, f: F };
6033
- }, b = (O) => {
6035
+ }, k = (O) => {
6034
6036
  O.preventDefault(), navigator.clipboard.writeText(O.target.textContent.replace(/\D/g, "")).then(
6035
6037
  function() {
6036
6038
  Ne.Copy("Данные в буфер обмене");
@@ -6040,8 +6042,8 @@ function At({
6040
6042
  );
6041
6043
  }, S = T(e), R = (O) => {
6042
6044
  let N = T(O.target.textContent);
6043
- O.target.textContent = N.q, N.i = N.q.lastIndexOf(N.v.substr(-1)), N.i < N.q.length && N.q !== h ? N.i++ : N.i = N.q.indexOf("_"), y(N.i, O.target), t && t({ value: N.q.replace(/\D/g, ""), name: r });
6044
- }, k = (O) => {
6045
+ O.target.textContent = N.q, N.i = N.q.lastIndexOf(N.v.substr(-1)), N.i < N.q.length && N.q !== h ? N.i++ : N.i = N.q.indexOf("_"), b(N.i, O.target), t && t({ value: N.q.replace(/\D/g, ""), name: r });
6046
+ }, y = (O) => {
6045
6047
  O.key === "Enter" && O.preventDefault();
6046
6048
  };
6047
6049
  const A = (O) => {
@@ -6060,8 +6062,8 @@ function At({
6060
6062
  ...z,
6061
6063
  onPaste: I,
6062
6064
  onInput: R,
6063
- onKeyDown: k,
6064
- onContextMenu: b,
6065
+ onKeyDown: y,
6066
+ onContextMenu: k,
6065
6067
  onBlur: A,
6066
6068
  suppressContentEditableWarning: !0,
6067
6069
  children: S.q
@@ -6121,22 +6123,22 @@ function Gt({
6121
6123
  view: f,
6122
6124
  order: p
6123
6125
  }) {
6124
- var b, S;
6125
- const C = m.useRef();
6126
- s = !!(s && (i === "" || ((b = l[i]) == null ? void 0 : b.n) === void 0)) && !(n && r);
6127
- let x = i !== void 0 && i !== "" ? (S = l[i]) == null ? void 0 : S.n : i, j = (R) => {
6128
- var k;
6129
- C.current.textContent = (k = l[R]) == null ? void 0 : k.n, o && o({ value: R, name: u });
6130
- }, y = (R) => {
6126
+ var k, S;
6127
+ const j = m.useRef();
6128
+ s = !!(s && (i === "" || ((k = l[i]) == null ? void 0 : k.n) === void 0)) && !(n && r);
6129
+ let x = i !== void 0 && i !== "" ? (S = l[i]) == null ? void 0 : S.n : i, C = (R) => {
6130
+ var y;
6131
+ j.current.textContent = (y = l[R]) == null ? void 0 : y.n, o && o({ value: R, name: u });
6132
+ }, b = (R) => {
6131
6133
  if (!(n && r)) return;
6132
- const k = R.target.getBoundingClientRect();
6134
+ const y = R.target.getBoundingClientRect();
6133
6135
  we.setListener(
6134
6136
  "form",
6135
6137
  /* @__PURE__ */ a.jsx(
6136
6138
  Ql,
6137
6139
  {
6138
- parent: k,
6139
- onValue: j,
6140
+ parent: y,
6141
+ onValue: C,
6140
6142
  view: f,
6141
6143
  className: _,
6142
6144
  options: l,
@@ -6145,10 +6147,10 @@ function Gt({
6145
6147
  (/* @__PURE__ */ new Date()).getTime()
6146
6148
  )
6147
6149
  );
6148
- }, I = { field: "select", className: _ }, T = { onClick: y };
6150
+ }, I = { field: "select", className: _ }, T = { onClick: b };
6149
6151
  return c && (T.placeholder = c), g && (T.after = g), n && r && (T.edit = ""), s ? "" : /* @__PURE__ */ a.jsxs("dl", { ...I, children: [
6150
6152
  e && /* @__PURE__ */ a.jsx("dt", { children: e }),
6151
- /* @__PURE__ */ a.jsx("dd", { ...T, ref: C, children: x }),
6153
+ /* @__PURE__ */ a.jsx("dd", { ...T, ref: j, children: x }),
6152
6154
  t && /* @__PURE__ */ a.jsx("em", { children: t })
6153
6155
  ] });
6154
6156
  }
@@ -6218,13 +6220,13 @@ function Zt(e) {
6218
6220
  e.default !== void 0 ? e.options[e.default] : e.default
6219
6221
  ), g = (p) => {
6220
6222
  if (!(r && s)) return;
6221
- const C = p.target.getBoundingClientRect();
6223
+ const j = p.target.getBoundingClientRect();
6222
6224
  we.setListener(
6223
6225
  "form",
6224
6226
  /* @__PURE__ */ a.jsx(
6225
6227
  tc,
6226
6228
  {
6227
- parent: C,
6229
+ parent: j,
6228
6230
  onValue: c,
6229
6231
  view: e.view,
6230
6232
  options: e.options
@@ -6307,7 +6309,7 @@ function Nt({
6307
6309
  after: g = "",
6308
6310
  view: f,
6309
6311
  module: p,
6310
- item: C,
6312
+ item: j,
6311
6313
  className: h = ""
6312
6314
  }) {
6313
6315
  let x = {};
@@ -6330,7 +6332,7 @@ function Nt({
6330
6332
  }
6331
6333
  );
6332
6334
  case "Select":
6333
- return C && (x = se.getSelect(parseInt(C)) ? se.getSelect(parseInt(C)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ a.jsx(
6335
+ return j && (x = se.getSelect(parseInt(j)) ? se.getSelect(parseInt(j)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ a.jsx(
6334
6336
  Gt,
6335
6337
  {
6336
6338
  title: i,
@@ -6469,30 +6471,30 @@ function ea({
6469
6471
  view: g,
6470
6472
  onBlur: f,
6471
6473
  onSave: p,
6472
- className: C = ""
6474
+ className: j = ""
6473
6475
  }) {
6474
6476
  let h = !!(o && (e === "" || e === void 0));
6475
6477
  if (!(l && c) && !u || !(l && c) && h) return "";
6476
- let x = (b) => {
6477
- t && t({ value: b.target.innerText, name: n });
6478
- }, j = (b) => {
6479
- p && p({ value: b.target.innerText, name: n });
6480
- }, y = (b) => {
6481
- b.preventDefault(), navigator.clipboard.readText().then((S) => {
6478
+ let x = (k) => {
6479
+ t && t({ value: k.target.innerText, name: n });
6480
+ }, C = (k) => {
6481
+ p && p({ value: k.target.innerText, name: n });
6482
+ }, b = (k) => {
6483
+ k.preventDefault(), navigator.clipboard.readText().then((S) => {
6482
6484
  window.document.execCommand("insertText", !1, S);
6483
6485
  }).catch((S) => {
6484
6486
  });
6485
6487
  };
6486
6488
  const I = {};
6487
- I.field = "text", C && (I.className = C);
6489
+ I.field = "text", j && (I.className = j);
6488
6490
  const T = {};
6489
6491
  return r && (T.placeholder = r), /* @__PURE__ */ a.jsxs("dl", { ...I, children: [
6490
6492
  s && /* @__PURE__ */ a.jsx("dt", { children: s }),
6491
6493
  /* @__PURE__ */ a.jsx(
6492
6494
  "dd",
6493
6495
  {
6494
- onPaste: y,
6495
- onBlur: j,
6496
+ onPaste: b,
6497
+ onBlur: C,
6496
6498
  onInput: x,
6497
6499
  contentEditable: l && c ? "plaintext-only" : "false",
6498
6500
  ...T,
@@ -6518,16 +6520,16 @@ function ta({
6518
6520
  view: g,
6519
6521
  onBlur: f,
6520
6522
  onSave: p,
6521
- className: C = ""
6523
+ className: j = ""
6522
6524
  }) {
6523
- let h = !!(o && (e === "" || e === void 0)), x = W.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), j = m.useRef(null);
6525
+ let h = !!(o && (e === "" || e === void 0)), x = W.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), C = m.useRef(null);
6524
6526
  if (!(l && c) && !u || !(l && c) && h) return "";
6525
- let y = (R) => {
6526
- j.current.textContent = R, t && t({ value: R, name: n });
6527
+ let b = (R) => {
6528
+ C.current.textContent = R, t && t({ value: R, name: n });
6527
6529
  }, I = (R) => {
6528
6530
  p && p({ value: R, name: n });
6529
6531
  }, T = (R) => {
6530
- const k = R.target.getBoundingClientRect(), A = k.left, M = k.top;
6532
+ const y = R.target.getBoundingClientRect(), A = y.left, M = y.top;
6531
6533
  we.setListener(
6532
6534
  "form",
6533
6535
  /* @__PURE__ */ a.jsx(
@@ -6535,15 +6537,15 @@ function ta({
6535
6537
  {
6536
6538
  positions: { x: A, y: M },
6537
6539
  onSave: I,
6538
- onValue: y,
6540
+ onValue: b,
6539
6541
  date: x
6540
6542
  },
6541
6543
  (/* @__PURE__ */ new Date()).getTime()
6542
6544
  )
6543
6545
  );
6544
6546
  };
6545
- const b = {};
6546
- b.field = "input", C && (b.className = C);
6547
+ const k = {};
6548
+ k.field = "input", j && (k.className = j);
6547
6549
  const S = {};
6548
6550
  return r && (S.placeholder = r), /* @__PURE__ */ a.jsx(a.Fragment, { children: g === "icon" ? /* @__PURE__ */ a.jsx(
6549
6551
  "i",
@@ -6551,9 +6553,9 @@ function ta({
6551
6553
  "data-icon": "F043",
6552
6554
  onClick: T
6553
6555
  }
6554
- ) : /* @__PURE__ */ a.jsxs("dl", { ...b, children: [
6556
+ ) : /* @__PURE__ */ a.jsxs("dl", { ...k, children: [
6555
6557
  s ? /* @__PURE__ */ a.jsx("dt", { children: s }) : "",
6556
- /* @__PURE__ */ a.jsx("dd", { onClick: T, ref: j, ...S, children: x }),
6558
+ /* @__PURE__ */ a.jsx("dd", { onClick: T, ref: C, ...S, children: x }),
6557
6559
  i ? /* @__PURE__ */ a.jsx("em", { children: i }) : ""
6558
6560
  ] }) });
6559
6561
  }
@@ -6573,20 +6575,20 @@ const nc = ({ positions: e, onSave: t, onValue: n, date: r }) => {
6573
6575
  }, [f.body, f.hour, f.time, i.m, i.h]);
6574
6576
  let p = () => {
6575
6577
  _ = !0;
6576
- }, C = () => {
6578
+ }, j = () => {
6577
6579
  _ = !1, o = o === "hour" ? "time" : "hour", f.body.current.setAttribute("active", o);
6578
6580
  }, h = (S) => {
6579
6581
  if (_) {
6580
- let k = Math.atan2(
6582
+ let y = Math.atan2(
6581
6583
  S.pageX - (l.x + 78),
6582
6584
  S.pageY - (l.y + 78)
6583
6585
  ) * (180 / Math.PI) * -1 + 180;
6584
- f[o].current.style.transform = "rotate(" + k + "deg)", o === "hour" ? (i = {
6586
+ f[o].current.style.transform = "rotate(" + y + "deg)", o === "hour" ? (i = {
6585
6587
  ...i,
6586
- h: W.Number(2, parseInt(String(k / 15), 10))
6588
+ h: W.Number(2, parseInt(String(y / 15), 10))
6587
6589
  }, f.hourText.current.textContent = i.h) : (i = {
6588
6590
  ...i,
6589
- m: W.Number(2, parseInt(String(k / 6), 10))
6591
+ m: W.Number(2, parseInt(String(y / 6), 10))
6590
6592
  }, f.timeText.current.textContent = i.m), n(i.h + ":" + i.m);
6591
6593
  }
6592
6594
  }, x = (S) => {
@@ -6596,16 +6598,16 @@ const nc = ({ positions: e, onSave: t, onValue: n, date: r }) => {
6596
6598
  let R = parseInt(String(u / 50));
6597
6599
  if (g !== R) {
6598
6600
  g = R;
6599
- let k = parseInt(i.h, 10) + 1;
6600
- k = k > 23 ? 0 : k, i = { ...i, h: W.Number(2, k) }, f.hourText.current.textContent = i.h, f[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
6601
+ let y = parseInt(i.h, 10) + 1;
6602
+ y = y > 23 ? 0 : y, i = { ...i, h: W.Number(2, y) }, f.hourText.current.textContent = i.h, f[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
6601
6603
  }
6602
6604
  } else {
6603
6605
  u -= S.deltaY;
6604
6606
  let R = parseInt(String(u / 50));
6605
6607
  if (g !== R) {
6606
6608
  g = R;
6607
- let k = parseInt(i.h, 10) - 1;
6608
- k = k < 0 ? 23 : k, i = { ...i, h: W.Number(2, k) }, f.hourText.current.textContent = i.h, f[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
6609
+ let y = parseInt(i.h, 10) - 1;
6610
+ y = y < 0 ? 23 : y, i = { ...i, h: W.Number(2, y) }, f.hourText.current.textContent = i.h, f[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
6609
6611
  }
6610
6612
  }
6611
6613
  else if (S.deltaY > 0) {
@@ -6613,23 +6615,23 @@ const nc = ({ positions: e, onSave: t, onValue: n, date: r }) => {
6613
6615
  let R = parseInt(String(u / 50));
6614
6616
  if (g !== R) {
6615
6617
  g = R;
6616
- let k = parseInt(i.m, 10) + 1;
6617
- k = k > 59 ? 0 : k, i = { ...i, m: W.Number(2, k) }, f.timeText.current.textContent = i.m, f[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
6618
+ let y = parseInt(i.m, 10) + 1;
6619
+ y = y > 59 ? 0 : y, i = { ...i, m: W.Number(2, y) }, f.timeText.current.textContent = i.m, f[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
6618
6620
  }
6619
6621
  } else {
6620
6622
  u -= S.deltaY;
6621
6623
  let R = parseInt(String(u / 50));
6622
6624
  if (g !== R) {
6623
6625
  g = R;
6624
- let k = parseInt(i.m, 10) - 1;
6625
- k = k < 0 ? 59 : k, i = { ...i, m: W.Number(2, k) }, f.timeText.current.textContent = i.m, f[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
6626
+ let y = parseInt(i.m, 10) - 1;
6627
+ y = y < 0 ? 59 : y, i = { ...i, m: W.Number(2, y) }, f.timeText.current.textContent = i.m, f[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
6626
6628
  }
6627
6629
  }
6628
6630
  n(i.h + ":" + i.m);
6629
- }, [j, y] = m.useState(!0), I = () => {
6630
- y(!1), t(i.h + ":" + i.m);
6631
- }, T = window.innerHeight - e.y + 33 < 320 ? e.y - 312 : e.y + 33, b = window.innerWidth - e.x < 265 ? e.x - 235 : e.x;
6632
- return /* @__PURE__ */ a.jsx(a.Fragment, { children: j ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
6631
+ }, [C, b] = m.useState(!0), I = () => {
6632
+ b(!1), t(i.h + ":" + i.m);
6633
+ }, T = window.innerHeight - e.y + 33 < 320 ? e.y - 312 : e.y + 33, k = window.innerWidth - e.x < 265 ? e.x - 235 : e.x;
6634
+ return /* @__PURE__ */ a.jsx(a.Fragment, { children: C ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
6633
6635
  /* @__PURE__ */ a.jsx(
6634
6636
  "div",
6635
6637
  {
@@ -6643,11 +6645,11 @@ const nc = ({ positions: e, onSave: t, onValue: n, date: r }) => {
6643
6645
  {
6644
6646
  className: ue.c,
6645
6647
  onMouseDown: p,
6646
- onMouseUp: C,
6648
+ onMouseUp: j,
6647
6649
  onMouseMove: h,
6648
6650
  onWheel: x,
6649
6651
  ref: f.body,
6650
- style: { top: T + "px", left: b + "px" },
6652
+ style: { top: T + "px", left: k + "px" },
6651
6653
  children: [
6652
6654
  /* @__PURE__ */ a.jsx("div", { className: "b" }),
6653
6655
  /* @__PURE__ */ a.jsxs("div", { className: "s", children: [
@@ -6767,35 +6769,35 @@ function ra({
6767
6769
  view: g,
6768
6770
  onSave: f,
6769
6771
  className: p = "",
6770
- separator: C = ","
6772
+ separator: j = ","
6771
6773
  }) {
6772
6774
  const [h, x] = m.useState(
6773
- e !== void 0 ? e.split(C) : []
6775
+ e !== void 0 ? e.split(j) : []
6774
6776
  );
6775
6777
  m.useEffect(() => {
6776
- x(e !== void 0 ? e !== void 0 ? e.split(C) : [] : []);
6778
+ x(e !== void 0 ? e !== void 0 ? e.split(j) : [] : []);
6777
6779
  }, [e]);
6778
- let j = () => {
6780
+ let C = () => {
6779
6781
  x([...h, ""]);
6780
- }, y = (A) => {
6781
- h.splice(A, 1), h.length === 0 && h.push(""), x([...h]), f !== void 0 && f({ value: h.join(C), name: n });
6782
+ }, b = (A) => {
6783
+ h.splice(A, 1), h.length === 0 && h.push(""), x([...h]), f !== void 0 && f({ value: h.join(j), name: n });
6782
6784
  }, I = !!(o && (e === "" || e === void 0)), T = (A) => {
6783
6785
  };
6784
6786
  if (!(l && c) && !u || !(l && c) && I) return "";
6785
- const b = {};
6786
- b.field = "group", p && (b.className = p);
6787
+ const k = {};
6788
+ k.field = "group", p && (k.className = p);
6787
6789
  const S = (A, M) => {
6788
- ce.Blur(A), h[M] = A.target.textContent, f && f({ value: h.join(C), name: n });
6790
+ ce.Blur(A), h[M] = A.target.textContent, f && f({ value: h.join(j), name: n });
6789
6791
  };
6790
6792
  let R = (A, M) => {
6791
- h[M] = A.target.textContent, t && t({ value: h.join(C), name: n });
6792
- }, k = (A) => {
6793
+ h[M] = A.target.textContent, t && t({ value: h.join(j), name: n });
6794
+ }, y = (A) => {
6793
6795
  A.key === "Enter" && A.preventDefault();
6794
6796
  };
6795
- return /* @__PURE__ */ a.jsxs("dl", { ...b, children: [
6797
+ return /* @__PURE__ */ a.jsxs("dl", { ...k, children: [
6796
6798
  /* @__PURE__ */ a.jsxs("dt", { children: [
6797
6799
  s,
6798
- /* @__PURE__ */ a.jsx("i", { onClick: j, children: /* @__PURE__ */ a.jsxs(
6800
+ /* @__PURE__ */ a.jsx("i", { onClick: C, children: /* @__PURE__ */ a.jsxs(
6799
6801
  "svg",
6800
6802
  {
6801
6803
  xmlns: "http://www.w3.org/2000/svg",
@@ -6822,7 +6824,7 @@ function ra({
6822
6824
  placeholder: r,
6823
6825
  onPaste: T,
6824
6826
  contentEditable: l && c ? "plaintext-only" : "false",
6825
- onKeyDown: k,
6827
+ onKeyDown: y,
6826
6828
  onBlur: (z) => S(z, M),
6827
6829
  suppressContentEditableWarning: !0,
6828
6830
  children: h[M]
@@ -6832,7 +6834,7 @@ function ra({
6832
6834
  "i",
6833
6835
  {
6834
6836
  onClick: () => {
6835
- y(M);
6837
+ b(M);
6836
6838
  },
6837
6839
  children: /* @__PURE__ */ a.jsxs(
6838
6840
  "svg",
@@ -6872,18 +6874,18 @@ function sa({
6872
6874
  view: g,
6873
6875
  modal: f,
6874
6876
  module: p,
6875
- options: C,
6877
+ options: j,
6876
6878
  className: h
6877
6879
  }) {
6878
- const [x, j] = m.useState(rc(e)), y = (b) => {
6880
+ const [x, C] = m.useState(rc(e)), b = (k) => {
6879
6881
  if (!(l && _) || !f) return;
6880
6882
  let S = f.split(".");
6881
6883
  it.Open(S[0], S[1], {
6882
6884
  callback: (R) => {
6883
- t && t({ value: R, name: n }), j(R);
6885
+ t && t({ value: R, name: n }), C(R);
6884
6886
  },
6885
6887
  onValue: t,
6886
- options: C,
6888
+ options: j,
6887
6889
  name: n,
6888
6890
  value: x
6889
6891
  });
@@ -6893,7 +6895,7 @@ function sa({
6893
6895
  return r && (T.placeholder = r), o ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...I, children: [
6894
6896
  /* @__PURE__ */ a.jsxs("dt", { children: [
6895
6897
  s,
6896
- /* @__PURE__ */ a.jsx("i", { onClick: y, children: /* @__PURE__ */ a.jsxs(
6898
+ /* @__PURE__ */ a.jsx("i", { onClick: b, children: /* @__PURE__ */ a.jsxs(
6897
6899
  "svg",
6898
6900
  {
6899
6901
  width: "20",
@@ -6918,9 +6920,9 @@ function sa({
6918
6920
  onClick: open,
6919
6921
  edit: (l && _) + "",
6920
6922
  "data-after": u,
6921
- children: Object.keys(x).map((b) => {
6923
+ children: Object.keys(x).map((k) => {
6922
6924
  var S;
6923
- return /* @__PURE__ */ a.jsx("div", { className: "field_group_item", children: (S = C[b]) == null ? void 0 : S.label }, b);
6925
+ return /* @__PURE__ */ a.jsx("div", { className: "field_group_item", children: (S = j[k]) == null ? void 0 : S.label }, k);
6924
6926
  })
6925
6927
  }
6926
6928
  ),
@@ -6942,17 +6944,17 @@ function vn({
6942
6944
  show: g = !0,
6943
6945
  type: f,
6944
6946
  view: p,
6945
- onBlur: C,
6947
+ onBlur: j,
6946
6948
  onSave: h,
6947
6949
  className: x = ""
6948
6950
  }) {
6949
- const j = m.useId();
6950
- let y = !!(l && (e === "" || e === void 0)), [I, T] = m.useState(i);
6951
- if (!(c && _) && !g || !(c && _) && y) return "";
6952
- const b = async (R) => {
6951
+ const C = m.useId();
6952
+ let b = !!(l && (e === "" || e === void 0)), [I, T] = m.useState(i);
6953
+ if (!(c && _) && !g || !(c && _) && b) return "";
6954
+ const k = async (R) => {
6953
6955
  if (f) {
6954
- let k = ic(R, f, e || "default");
6955
- t == null || t({ name: n, value: k }), T(URL.createObjectURL(k));
6956
+ let y = ic(R, f, e || "default");
6957
+ t == null || t({ name: n, value: y }), T(URL.createObjectURL(y));
6956
6958
  } else
6957
6959
  t == null || t({ name: n, value: R }), T(URL.createObjectURL(R));
6958
6960
  }, S = {};
@@ -6961,19 +6963,19 @@ function vn({
6961
6963
  s,
6962
6964
  " "
6963
6965
  ] }),
6964
- /* @__PURE__ */ a.jsxs(sc, { onFiles: b, children: [
6966
+ /* @__PURE__ */ a.jsxs(sc, { onFiles: k, children: [
6965
6967
  /* @__PURE__ */ a.jsx(
6966
6968
  "input",
6967
6969
  {
6968
- id: j,
6970
+ id: C,
6969
6971
  type: "file",
6970
6972
  multiple: !0,
6971
6973
  onChange: (R) => {
6972
- R.target.files[0] && b(R.target.files[0]);
6974
+ R.target.files[0] && k(R.target.files[0]);
6973
6975
  }
6974
6976
  }
6975
6977
  ),
6976
- /* @__PURE__ */ a.jsx("label", { htmlFor: j }),
6978
+ /* @__PURE__ */ a.jsx("label", { htmlFor: C }),
6977
6979
  /* @__PURE__ */ a.jsx("img", { src: I })
6978
6980
  ] }),
6979
6981
  o && /* @__PURE__ */ a.jsx("em", { children: o })
@@ -7088,10 +7090,10 @@ function _c({
7088
7090
  after: g = "",
7089
7091
  show: f = !0,
7090
7092
  view: p,
7091
- className: C = ""
7093
+ className: j = ""
7092
7094
  }) {
7093
7095
  _ = _ !== void 0 ? _ : !0, u = u !== void 0 ? u : !0, c = !!(c && (e === "" || e === void 0)) && !(_ && u), m.useRef(null);
7094
- let x = s, j = !0, y = 0, I = (N, F) => {
7096
+ let x = s, C = !0, b = 0, I = (N, F) => {
7095
7097
  let K = document.createRange(), te = window.getSelection();
7096
7098
  K.setStart(F.childNodes[0], N), K.collapse(!0), te.removeAllRanges(), te.addRange(K), F.focus();
7097
7099
  }, T = (N) => {
@@ -7099,12 +7101,12 @@ function _c({
7099
7101
  window.document.execCommand("insertText", !1, F);
7100
7102
  }).catch((F) => {
7101
7103
  });
7102
- }, b = (N) => {
7104
+ }, k = (N) => {
7103
7105
  let F = 0, K = "", te = N.replace(/\D/g, "");
7104
- te === "" && (j = !0);
7106
+ te === "" && (C = !0);
7105
7107
  let re = te.split(""), he = "";
7106
7108
  re.forEach((We) => {
7107
- j && (he += We, j && (y = ("" + he).length, x = s.replace(new RegExp("[0-9]", "g"), "_"), K = ""), y > ("" + he).length && (j = !0, x = s.replace(new RegExp("[0-9]", "g"), "_"), K = ""));
7109
+ C && (he += We, C && (b = ("" + he).length, x = s.replace(new RegExp("[0-9]", "g"), "_"), K = ""), b > ("" + he).length && (C = !0, x = s.replace(new RegExp("[0-9]", "g"), "_"), K = ""));
7108
7110
  });
7109
7111
  let Se = x.replace(/\D/g, "");
7110
7112
  return Se.length >= te.length && (te = Se), { q: x.replace(/[_\d]/g, function() {
@@ -7118,8 +7120,8 @@ function _c({
7118
7120
  function(F) {
7119
7121
  }
7120
7122
  );
7121
- }, R = b(e), k = (N) => {
7122
- let F = b(N.target.textContent);
7123
+ }, R = k(e), y = (N) => {
7124
+ let F = k(N.target.textContent);
7123
7125
  N.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("_"), I(F.i, N.target), t && t({ value: F.q.replace(/\D/g, ""), name: r });
7124
7126
  }, A = (N) => {
7125
7127
  N.key === "Enter" && N.preventDefault();
@@ -7130,7 +7132,7 @@ function _c({
7130
7132
  name: r
7131
7133
  });
7132
7134
  }, z = {};
7133
- z.field = "input", C && (z.className = C);
7135
+ z.field = "input", j && (z.className = j);
7134
7136
  let O = {};
7135
7137
  return _ && u ? (O.edit = "true", O.contentEditable = "plaintext-only") : O.contentEditable = "false", i && (O.placeholder = i), g && (O.after = g), c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...z, children: [
7136
7138
  o && /* @__PURE__ */ a.jsx("dt", { children: o }),
@@ -7139,7 +7141,7 @@ function _c({
7139
7141
  {
7140
7142
  ...O,
7141
7143
  onPaste: T,
7142
- onInput: k,
7144
+ onInput: y,
7143
7145
  onKeyDown: A,
7144
7146
  onContextMenu: S,
7145
7147
  onBlur: M,