elcrm 0.9.122 → 0.9.124

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,23 +71,23 @@ function ar() {
71
71
  K.unshift("Warning: " + j), Function.prototype.apply.call(console[d], console, K);
72
72
  }
73
73
  }
74
- var $ = !1, B = !1, I = !1, T = !1, S = !1, P;
74
+ var L = !1, $ = !1, R = !1, I = !1, E = !1, P;
75
75
  P = Symbol.for("react.module.reference");
76
- function w(d) {
77
- return !!(typeof d == "string" || typeof d == "function" || d === r || d === i || S || d === s || d === _ || d === u || T || d === h || $ || B || I || typeof d == "object" && d !== null && (d.$$typeof === f || d.$$typeof === x || d.$$typeof === o || d.$$typeof === l || d.$$typeof === c || // This needs to include all possible module reference object
76
+ function B(d) {
77
+ return !!(typeof d == "string" || typeof d == "function" || d === r || d === i || E || d === s || d === _ || d === u || I || d === h || L || $ || R || typeof d == "object" && d !== null && (d.$$typeof === f || 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.
81
81
  d.$$typeof === P || d.getModuleId !== void 0));
82
82
  }
83
- function R(d, j, D) {
83
+ function b(d, j, D) {
84
84
  var F = d.displayName;
85
85
  if (F)
86
86
  return F;
87
87
  var Z = j.displayName || j.name || "";
88
88
  return Z !== "" ? D + "(" + Z + ")" : D;
89
89
  }
90
- function E(d) {
90
+ function S(d) {
91
91
  return d.displayName || "Context";
92
92
  }
93
93
  function C(d) {
@@ -115,12 +115,12 @@ function ar() {
115
115
  switch (d.$$typeof) {
116
116
  case l:
117
117
  var j = d;
118
- return E(j) + ".Consumer";
118
+ return S(j) + ".Consumer";
119
119
  case o:
120
120
  var D = d;
121
- return E(D._context) + ".Provider";
121
+ return S(D._context) + ".Provider";
122
122
  case c:
123
- return R(d, d.render, "ForwardRef");
123
+ return b(d, d.render, "ForwardRef");
124
124
  case x:
125
125
  var F = d.displayName || null;
126
126
  return F !== null ? F : C(d.type) || "Memo";
@@ -135,7 +135,7 @@ function ar() {
135
135
  }
136
136
  return null;
137
137
  }
138
- var L = Object.assign, W = 0, ee, oe, ve, Ie, Pe, Qe, Vt;
138
+ var T = Object.assign, W = 0, ee, oe, ve, Ie, Pe, Qe, Vt;
139
139
  function Xt() {
140
140
  }
141
141
  Xt.__reactDisabledLog = !0;
@@ -171,25 +171,25 @@ function ar() {
171
171
  writable: !0
172
172
  };
173
173
  Object.defineProperties(console, {
174
- log: L({}, d, {
174
+ log: T({}, d, {
175
175
  value: ee
176
176
  }),
177
- info: L({}, d, {
177
+ info: T({}, d, {
178
178
  value: oe
179
179
  }),
180
- warn: L({}, d, {
180
+ warn: T({}, d, {
181
181
  value: ve
182
182
  }),
183
- error: L({}, d, {
183
+ error: T({}, d, {
184
184
  value: Ie
185
185
  }),
186
- group: L({}, d, {
186
+ group: T({}, d, {
187
187
  value: Pe
188
188
  }),
189
- groupCollapsed: L({}, d, {
189
+ groupCollapsed: T({}, d, {
190
190
  value: Qe
191
191
  }),
192
- groupEnd: L({}, d, {
192
+ groupEnd: T({}, d, {
193
193
  value: Vt
194
194
  })
195
195
  });
@@ -585,7 +585,7 @@ Check the top-level render call using <` + D + ">.");
585
585
  var un = {};
586
586
  function fn(d, j, D, F, Z, K) {
587
587
  {
588
- var G = w(d);
588
+ var G = B(d);
589
589
  if (!G) {
590
590
  var U = "";
591
591
  (d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (U += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
@@ -757,7 +757,7 @@ De.success = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "
757
757
  }
758
758
  )
759
759
  ] });
760
- const Ce = { Send: fr, Error: mr, Remark: gr, Success: hr, Copy: pr, Custom: ur }, b = {}, O = {}, Me = {}, Nn = {}, be = {}, me = {};
760
+ const Ce = { Send: fr, Error: mr, Remark: gr, Success: hr, Copy: pr, Custom: ur }, w = {}, O = {}, Me = {}, Nn = {}, be = {}, me = {};
761
761
  let ye = "", lt = "M06";
762
762
  function xr(e) {
763
763
  O.dynamicURL = e;
@@ -771,11 +771,11 @@ function Cr() {
771
771
  function jr(e) {
772
772
  if (localStorage.getItem("d")) {
773
773
  let n = sessionStorage.getItem("f");
774
- n ? (n = A.deCode(n), n || ae(), b.id = n.id, b.tab = n.tab, b.page = n.page, b.module = n.module, b.time = n.time, b.payment = { active: !0 }, b.module_admin = n.module_admin) : (b.id = 0, b.tab = "", b.page = "Main", b.module = b.module || lt);
774
+ n ? (n = A.deCode(n), n || ae(), w.id = n.id, w.tab = n.tab, w.page = n.page, w.module = n.module, w.time = n.time, w.payment = { active: !0 }, w.module_admin = n.module_admin) : (w.id = 0, w.tab = "", w.page = "Main", w.module = w.module || lt);
775
775
  } else
776
776
  ["a", "b", "c", "d", "e", "m", "u", "s", "q", "p"].forEach(
777
777
  (n) => localStorage.removeItem(n)
778
- ), ["f"].forEach((n) => sessionStorage.removeItem(n)), b.id = 0, b.tab = "", b.page = "Auth", b.module = lt;
778
+ ), ["f"].forEach((n) => sessionStorage.removeItem(n)), w.id = 0, w.tab = "", w.page = "Auth", w.module = lt;
779
779
  return e;
780
780
  }
781
781
  function ae() {
@@ -784,16 +784,16 @@ function ae() {
784
784
  ), ["f"].forEach((e) => sessionStorage.removeItem(e)), window.location.reload();
785
785
  }
786
786
  function kr(e) {
787
- e = e.split("/"), b.page = "Main", b.module = e[0], b.tab = e[1], b.id = 0, sessionStorage.setItem(
787
+ e = e.split("/"), w.page = "Main", w.module = e[0], w.tab = e[1], w.id = 0, sessionStorage.setItem(
788
788
  "f",
789
789
  A.enCode({
790
- module: b.module,
791
- page: b.page,
792
- tab: b.tab,
793
- id: b.id,
790
+ module: w.module,
791
+ page: w.page,
792
+ tab: w.tab,
793
+ id: w.id,
794
794
  time: (/* @__PURE__ */ new Date()).getTime()
795
795
  })
796
- ), O.page(b.page);
796
+ ), O.page(w.page);
797
797
  }
798
798
  function yr(e) {
799
799
  return localStorage.setItem("d", e);
@@ -827,13 +827,13 @@ function Dr() {
827
827
  return O.page = n, [e];
828
828
  }
829
829
  function Rr(e, t = !0) {
830
- b.page = e, sessionStorage.setItem("f", A.enCode(b)), O.dynamicURL && O.dynamicURL(b), t && O.page(e);
830
+ w.page = e, sessionStorage.setItem("f", A.enCode(w)), O.dynamicURL && O.dynamicURL(w), t && O.page(e);
831
831
  }
832
832
  function Mn() {
833
- return b.page;
833
+ return w.page;
834
834
  }
835
835
  function Ir(e) {
836
- return b.page === e;
836
+ return w.page === e;
837
837
  }
838
838
  function Tr(e) {
839
839
  if (typeof e != "function") {
@@ -845,13 +845,13 @@ function Tr(e) {
845
845
  O.module = e;
846
846
  }
847
847
  function Nr(e, t = !0) {
848
- b.module = e, sessionStorage.setItem("f", A.enCode(b)), O.dynamicURL && O.dynamicURL(b), t && O.module(e);
848
+ w.module = e, sessionStorage.setItem("f", A.enCode(w)), O.dynamicURL && O.dynamicURL(w), t && O.module(e);
849
849
  }
850
850
  function Ln() {
851
- return b.module;
851
+ return w.module;
852
852
  }
853
853
  function Mr(e) {
854
- return b.module === e;
854
+ return w.module === e;
855
855
  }
856
856
  function $n(e) {
857
857
  if (typeof e != "function") {
@@ -861,17 +861,17 @@ function $n(e) {
861
861
  O.tabs = e;
862
862
  }
863
863
  function Bn(e, t = !0) {
864
- if (b.tab = e, sessionStorage.setItem("f", A.enCode(b)), O.dynamicURL && O.dynamicURL(b), !!t)
864
+ if (w.tab = e, sessionStorage.setItem("f", A.enCode(w)), O.dynamicURL && O.dynamicURL(w), !!t)
865
865
  if (O.tabs)
866
866
  O.tabs(e);
867
867
  else
868
868
  throw new Error("useTabs not found");
869
869
  }
870
870
  function Le() {
871
- return b.tab;
871
+ return w.tab;
872
872
  }
873
873
  function Lr(e) {
874
- return b.tab === e;
874
+ return w.tab === e;
875
875
  }
876
876
  function $r(e) {
877
877
  if (typeof e != "function") {
@@ -886,28 +886,28 @@ function Br(e) {
886
886
  O.id = e;
887
887
  }
888
888
  function Fr(e, t = !0) {
889
- b.id = e, sessionStorage.setItem("f", A.enCode(b)), O.dynamicURL && O.dynamicURL(b), t && O.id(e);
889
+ w.id = e, sessionStorage.setItem("f", A.enCode(w)), O.dynamicURL && O.dynamicURL(w), t && O.id(e);
890
890
  }
891
891
  function Fn() {
892
- return b.id;
892
+ return w.id;
893
893
  }
894
894
  function Pr(e) {
895
- return Number(b.id) === e;
895
+ return Number(w.id) === e;
896
896
  }
897
897
  function Or(e, t, n) {
898
- b.module = e, b.id = n, b.tab = t, sessionStorage.setItem("f", A.enCode(b)), O.dynamicURL && O.dynamicURL(b), O.module(e), O.tabs(t);
898
+ w.module = e, w.id = n, w.tab = t, sessionStorage.setItem("f", A.enCode(w)), O.dynamicURL && O.dynamicURL(w), O.module(e), O.tabs(t);
899
899
  }
900
900
  function Ar(e, t, n, r) {
901
901
  var s, i, o;
902
- if (b.page === e)
903
- if (b.module === t) {
904
- if (b.tab = n || "", b.id = r || 0, b.tab === "") return;
902
+ if (w.page === e)
903
+ if (w.module === t) {
904
+ if (w.tab = n || "", w.id = r || 0, w.tab === "") return;
905
905
  (s = O.tabs) == null || s.call(O, n);
906
906
  } else
907
- b.module = t, b.tab = n || "", b.id = r || 0, (i = O.module) == null || i.call(O, t);
907
+ w.module = t, w.tab = n || "", w.id = r || 0, (i = O.module) == null || i.call(O, t);
908
908
  else
909
- b.module = t, b.tab = n || "", b.id = r || 0, b.page = e, (o = O.page) == null || o.call(O, e);
910
- sessionStorage.setItem("f", A.enCode(b)), O.dynamicURL && O.dynamicURL(b);
909
+ w.module = t, w.tab = n || "", w.id = r || 0, w.page = e, (o = O.page) == null || o.call(O, e);
910
+ sessionStorage.setItem("f", A.enCode(w)), O.dynamicURL && O.dynamicURL(w);
911
911
  }
912
912
  function Ur(e) {
913
913
  Me.data = e[0], delete Me.data.id, document.body.dataset.theme = Me.data.s15, localStorage.setItem("s", A.enCode(Me.data));
@@ -979,10 +979,10 @@ function Yr(e) {
979
979
  return Nn.data[e];
980
980
  }
981
981
  function qr(e) {
982
- b.payment = e;
982
+ w.payment = e;
983
983
  }
984
984
  function Jr() {
985
- return b.payment;
985
+ return w.payment;
986
986
  }
987
987
  function Gn(e) {
988
988
  localStorage.setItem("u", A.enCode(e));
@@ -1021,20 +1021,20 @@ function es(e) {
1021
1021
  try {
1022
1022
  let s = A.deCode(r);
1023
1023
  if (!s) return;
1024
- b[n] = { is: !0, time: s.time, data: s.data };
1024
+ w[n] = { is: !0, time: s.time, data: s.data };
1025
1025
  } catch {
1026
- b[n] = { is: !1, time: 0, data: {} };
1026
+ w[n] = { is: !1, time: 0, data: {} };
1027
1027
  }
1028
1028
  else
1029
- b[n] = { is: !1, time: 0, data: {} };
1029
+ w[n] = { is: !1, time: 0, data: {} };
1030
1030
  };
1031
1031
  e.forEach((n) => t(n));
1032
1032
  }
1033
1033
  function ts(e) {
1034
- return b[e] === void 0 ? (b[e] = { data: {}, time: 0 }, { data: {}, time: 0 }) : b[e];
1034
+ return w[e] === void 0 ? (w[e] = { data: {}, time: 0 }, { data: {}, time: 0 }) : w[e];
1035
1035
  }
1036
1036
  function ns(e, t) {
1037
- b[e] = { data: t.data, time: t.time }, localStorage.setItem(e, A.enCode(b[e]));
1037
+ w[e] = { data: t.data, time: t.time }, localStorage.setItem(e, A.enCode(w[e]));
1038
1038
  }
1039
1039
  function as(e, t) {
1040
1040
  be[e] = t, localStorage.setItem("t", A.enCode(be));
@@ -1053,7 +1053,7 @@ function rs(e) {
1053
1053
  return e ? be[e] : be;
1054
1054
  }
1055
1055
  function ss(e, t, n) {
1056
- b[e].time = n, b[e].data[t.item][t.name] = t.value, localStorage.setItem(e, A.enCode(b[e]));
1056
+ w[e].time = n, w[e].data[t.item][t.name] = t.value, localStorage.setItem(e, A.enCode(w[e]));
1057
1057
  }
1058
1058
  function is() {
1059
1059
  var n;
@@ -1349,16 +1349,16 @@ function $s(e) {
1349
1349
  };
1350
1350
  }
1351
1351
  const Bs = (e) => {
1352
- function t(N, $) {
1353
- var B, T, I;
1354
- N = N ?? "", $ = $ ?? 1;
1355
- for (var B = [], I = 0, T = N.length; I < T; )
1356
- B.push(N.slice(I, I += $));
1357
- return B;
1352
+ function t(N, L) {
1353
+ var $, I, R;
1354
+ N = N ?? "", L = L ?? 1;
1355
+ for (var $ = [], R = 0, I = N.length; R < I; )
1356
+ $.push(N.slice(R, R += L));
1357
+ return $;
1358
1358
  }
1359
- function n(N, $) {
1360
- var B = [2, 0, 1, 1, 1, 2];
1361
- return $[N > 4 && N < 20 ? 2 : B[Math.min(N, 5)]];
1359
+ function n(N, L) {
1360
+ var $ = [2, 0, 1, 1, 1, 2];
1361
+ return L[N > 4 && N < 20 ? 2 : $[Math.min(N, 5)]];
1362
1362
  }
1363
1363
  var r = {
1364
1364
  null: "ноль",
@@ -3477,7 +3477,7 @@ const Od = ({ children: e, ...t }) => /* @__PURE__ */ a.jsxs("div", { className:
3477
3477
  key: s.id
3478
3478
  },
3479
3479
  s.label,
3480
- s.badge && /* @__PURE__ */ a.jsx("em", { children: s.badge })
3480
+ s.badge ? /* @__PURE__ */ a.jsx("em", { children: s.badge }) : ""
3481
3481
  )) });
3482
3482
  }, Nl = ({
3483
3483
  list: e = [],
@@ -4118,28 +4118,28 @@ function He({
4118
4118
  isCopy: k = !0,
4119
4119
  isReload: N = !1
4120
4120
  }) {
4121
- let $ = !!(l && (t === "" || t === void 0)), B = (E) => {
4121
+ let L = !!(l && (t === "" || t === void 0)), $ = (S) => {
4122
4122
  n && n({
4123
- value: E.target.textContent.trim(),
4123
+ value: S.target.textContent.trim(),
4124
4124
  name: r,
4125
4125
  reload: N
4126
4126
  });
4127
- }, I = (E) => {
4128
- h && E.target.textContent.trim().length >= h && E.key !== "Backspace" && E.preventDefault(), E.key === "Enter" && E.preventDefault();
4129
- }, T = (E) => {
4130
- k && (E.preventDefault(), navigator.clipboard.writeText(E.target.textContent.trim()).then(
4127
+ }, R = (S) => {
4128
+ h && S.target.textContent.trim().length >= h && S.key !== "Backspace" && S.preventDefault(), S.key === "Enter" && S.preventDefault();
4129
+ }, I = (S) => {
4130
+ k && (S.preventDefault(), navigator.clipboard.writeText(S.target.textContent.trim()).then(
4131
4131
  function() {
4132
4132
  Ce.Copy("Данные в буфер обмене");
4133
4133
  },
4134
4134
  function(C) {
4135
4135
  }
4136
4136
  ));
4137
- }, S = (E) => {
4138
- E.preventDefault(), navigator.clipboard.readText().then((C) => {
4137
+ }, E = (S) => {
4138
+ S.preventDefault(), navigator.clipboard.readText().then((C) => {
4139
4139
  if (h) {
4140
- let L = E.target.textContent.length;
4141
- if (L >= h) return;
4142
- h -= L, C = C.slice(0, h);
4140
+ let T = S.target.textContent.length;
4141
+ if (T >= h) return;
4142
+ h -= T, C = C.slice(0, h);
4143
4143
  }
4144
4144
  window.document.execCommand(
4145
4145
  "insertText",
@@ -4149,13 +4149,13 @@ function He({
4149
4149
  }).catch((C) => {
4150
4150
  });
4151
4151
  };
4152
- if (!(c && _) && !f || !(c && _) && $) return "";
4152
+ if (!(c && _) && !f || !(c && _) && L) return "";
4153
4153
  const P = {};
4154
4154
  P.field = "input", y && (P.className = y);
4155
- const w = {};
4156
- s && (w.placeholder = s), c && _ && (w.edit = "");
4157
- const R = (E) => {
4158
- z.Blur(E), p == null || p({ value: E.target.textContent.trim(), name: r });
4155
+ const B = {};
4156
+ s && (B.placeholder = s), c && _ && (B.edit = "");
4157
+ const b = (S) => {
4158
+ z.Blur(S), p == null || p({ value: S.target.textContent.trim(), name: r });
4159
4159
  };
4160
4160
  return /* @__PURE__ */ a.jsxs("dl", { ...P, children: [
4161
4161
  i ? /* @__PURE__ */ a.jsx("dt", { children: i }) : "",
@@ -4163,15 +4163,15 @@ function He({
4163
4163
  /* @__PURE__ */ a.jsx(
4164
4164
  "dd",
4165
4165
  {
4166
- onPaste: S,
4167
- onInput: B,
4168
- onBlur: R,
4169
- onKeyDown: I,
4170
- onContextMenu: T,
4166
+ onPaste: E,
4167
+ onInput: $,
4168
+ onBlur: b,
4169
+ onKeyDown: R,
4170
+ onContextMenu: I,
4171
4171
  spellCheck: "true",
4172
4172
  contentEditable: c && _ ? z.ContentEditable : "false",
4173
4173
  suppressContentEditableWarning: !0,
4174
- ...w,
4174
+ ...B,
4175
4175
  children: t
4176
4176
  }
4177
4177
  ),
@@ -4226,9 +4226,9 @@ function ra({
4226
4226
  }, g = (k) => {
4227
4227
  k.preventDefault(), navigator.clipboard.readText().then((N) => {
4228
4228
  if (o) {
4229
- let $ = k.target.textContent.length;
4230
- if ($ >= o) return;
4231
- o -= $, N = N.slice(0, o);
4229
+ let L = k.target.textContent.length;
4230
+ if (L >= o) return;
4231
+ o -= L, N = N.slice(0, o);
4232
4232
  }
4233
4233
  window.document.execCommand("insertText", !1, N);
4234
4234
  }).catch((N) => {
@@ -4496,27 +4496,27 @@ function la({
4496
4496
  className: p = ""
4497
4497
  }) {
4498
4498
  _ = _ !== void 0 ? _ : !0, u = u !== void 0 ? u : !0;
4499
- let [y, k] = m.useState(t), N = (B) => {
4500
- k(B), n == null || n({ value: B, name: r }), g == null || g({ value: B, name: r });
4499
+ let [y, k] = m.useState(t), N = ($) => {
4500
+ k($), n == null || n({ value: $, name: r }), g == null || g({ value: $, name: r });
4501
4501
  };
4502
- const $ = {};
4503
- return $.field = "color", p && ($.className = p), /* @__PURE__ */ a.jsx(a.Fragment, { children: h === "icon" ? /* @__PURE__ */ a.jsx(
4502
+ const L = {};
4503
+ return L.field = "color", p && (L.className = p), /* @__PURE__ */ a.jsx(a.Fragment, { children: h === "icon" ? /* @__PURE__ */ a.jsx(
4504
4504
  "i",
4505
4505
  {
4506
4506
  "data-icon": "F043"
4507
4507
  }
4508
- ) : /* @__PURE__ */ a.jsxs("dl", { ...$, children: [
4508
+ ) : /* @__PURE__ */ a.jsxs("dl", { ...L, children: [
4509
4509
  i && /* @__PURE__ */ a.jsx("dt", { children: i }),
4510
- /* @__PURE__ */ a.jsx("dd", { children: c > 0 && Array.from(Array(c).keys()).map((B) => /* @__PURE__ */ a.jsx(
4510
+ /* @__PURE__ */ a.jsx("dd", { children: c > 0 && Array.from(Array(c).keys()).map(($) => /* @__PURE__ */ a.jsx(
4511
4511
  "s",
4512
4512
  {
4513
- active: (Number(B) === Number(y)) + "",
4514
- onClick: () => N(B),
4513
+ active: (Number($) === Number(y)) + "",
4514
+ onClick: () => N($),
4515
4515
  style: {
4516
- backgroundColor: `var(--color-${B})`
4516
+ backgroundColor: `var(--color-${$})`
4517
4517
  }
4518
4518
  },
4519
- B
4519
+ $
4520
4520
  )) }),
4521
4521
  o && /* @__PURE__ */ a.jsx("em", { children: o })
4522
4522
  ] }) });
@@ -4549,16 +4549,16 @@ function Zt({
4549
4549
  m.useEffect(() => {
4550
4550
  v(x === void 0 ? /* @__PURE__ */ new Date() : x);
4551
4551
  }, [x]);
4552
- let p = ($) => {
4553
- v($), _ == null || _({ value: $, name: u });
4554
- }, y = ($) => {
4555
- const B = $.target.getBoundingClientRect(), I = B.left, T = B.bottom, S = B.top;
4552
+ let p = (L) => {
4553
+ v(L), _ == null || _({ value: L, name: u });
4554
+ }, y = (L) => {
4555
+ const $ = L.target.getBoundingClientRect(), R = $.left, I = $.bottom, E = $.top;
4556
4556
  ge.setListener(
4557
4557
  "form",
4558
4558
  /* @__PURE__ */ a.jsx(
4559
4559
  Pc,
4560
4560
  {
4561
- position: { x: I, y: S, b: T },
4561
+ position: { x: R, y: E, b: I },
4562
4562
  onValue: p,
4563
4563
  date: h,
4564
4564
  max: o,
@@ -4607,8 +4607,8 @@ const Pc = ({ date: e, onValue: t, position: n, max: r, min: s, className: i })
4607
4607
  d: parseInt(_.getDate()),
4608
4608
  m: parseInt(_.getMonth()) + 1
4609
4609
  }, [f, h] = m.useState({ y: x.y, m: x.m }), v = (C) => {
4610
- let L = C.getDay();
4611
- return L === 0 && (L = 7), L - 1;
4610
+ let T = C.getDay();
4611
+ return T === 0 && (T = 7), T - 1;
4612
4612
  }, g = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"], p = f.m - 1, y = new Date(f.y, p), k = [];
4613
4613
  for (let C = 0; C < v(y); C++)
4614
4614
  k.push(0);
@@ -4616,30 +4616,30 @@ const Pc = ({ date: e, onValue: t, position: n, max: r, min: s, className: i })
4616
4616
  k.push(y.getDate()), y.setDate(y.getDate() + 1);
4617
4617
  let N = () => {
4618
4618
  l(!1);
4619
+ }, L = () => {
4620
+ I(f.m + 1, f.y);
4619
4621
  }, $ = () => {
4620
- T(f.m + 1, f.y);
4621
- }, B = () => {
4622
- T(f.m - 1, f.y);
4623
- }, I = (C) => {
4622
+ I(f.m - 1, f.y);
4623
+ }, R = (C) => {
4624
4624
  t(
4625
4625
  f.y + "-" + H.Number(2, f.m) + "-" + H.Number(2, C)
4626
4626
  ), N();
4627
- }, T = (C, L) => {
4628
- L = C > 12 ? L + 1 : C < 1 ? L - 1 : L, C = C > 12 ? 1 : C < 1 ? 12 : C, h({ y: L, m: C });
4627
+ }, I = (C, T) => {
4628
+ T = C > 12 ? T + 1 : C < 1 ? T - 1 : T, C = C > 12 ? 1 : C < 1 ? 12 : C, h({ y: T, m: C });
4629
4629
  };
4630
- const S = (C) => u.y === f.y && u.m === f.m && u.d === C ? { "data-active": "true" } : {}, P = (C) => x.y === f.y && x.m === f.m && x.d === C ? { "data-current": "true" } : {}, w = (C) => {
4631
- let L = !0;
4630
+ const E = (C) => u.y === f.y && u.m === f.m && u.d === C ? { "data-active": "true" } : {}, P = (C) => x.y === f.y && x.m === f.m && x.d === C ? { "data-current": "true" } : {}, B = (C) => {
4631
+ let T = !0;
4632
4632
  if (r) {
4633
4633
  let W = r.getTime(), ee = new Date(f.y, f.m - 1, C).getTime();
4634
- W < ee && (L = !1);
4634
+ W < ee && (T = !1);
4635
4635
  }
4636
4636
  if (s) {
4637
4637
  let W = s.getTime(), ee = new Date(f.y, f.m - 1, C).getTime();
4638
- W > ee && (L = !1);
4638
+ W > ee && (T = !1);
4639
4639
  }
4640
- return L;
4640
+ return T;
4641
4641
  };
4642
- let R = window.innerHeight - n.y < 320 ? n.y - 312 : n.b, E = window.innerWidth - n.x < 265 ? n.x - 235 : n.x;
4642
+ let b = window.innerHeight - n.y < 320 ? n.y - 312 : n.b, S = window.innerWidth - n.x < 265 ? n.x - 235 : n.x;
4643
4643
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: o ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
4644
4644
  /* @__PURE__ */ a.jsx(
4645
4645
  "div",
@@ -4656,10 +4656,10 @@ const Pc = ({ date: e, onValue: t, position: n, max: r, min: s, className: i })
4656
4656
  fe.c,
4657
4657
  i && i + "-backdrop"
4658
4658
  ].join(" "),
4659
- style: { top: R + "px", left: E + "px" },
4659
+ style: { top: b + "px", left: S + "px" },
4660
4660
  children: [
4661
4661
  /* @__PURE__ */ a.jsxs("s", { children: [
4662
- /* @__PURE__ */ a.jsx("i", { onClick: B, children: /* @__PURE__ */ a.jsx(
4662
+ /* @__PURE__ */ a.jsx("i", { onClick: $, children: /* @__PURE__ */ a.jsx(
4663
4663
  "svg",
4664
4664
  {
4665
4665
  width: "16",
@@ -4675,7 +4675,7 @@ const Pc = ({ date: e, onValue: t, position: n, max: r, min: s, className: i })
4675
4675
  " ",
4676
4676
  f.y
4677
4677
  ] }),
4678
- /* @__PURE__ */ a.jsx("i", { onClick: $, children: /* @__PURE__ */ a.jsx(
4678
+ /* @__PURE__ */ a.jsx("i", { onClick: L, children: /* @__PURE__ */ a.jsx(
4679
4679
  "svg",
4680
4680
  {
4681
4681
  width: "16",
@@ -4688,16 +4688,16 @@ const Pc = ({ date: e, onValue: t, position: n, max: r, min: s, className: i })
4688
4688
  ) })
4689
4689
  ] }),
4690
4690
  /* @__PURE__ */ a.jsxs("div", { "grid-calendar": "", children: [
4691
- g.map((C, L) => /* @__PURE__ */ a.jsx("p", { children: C }, "v" + L)),
4692
- k.map((C, L) => /* @__PURE__ */ a.jsx("span", { children: C !== 0 && w(C) ? /* @__PURE__ */ a.jsx(
4691
+ g.map((C, T) => /* @__PURE__ */ a.jsx("p", { children: C }, "v" + T)),
4692
+ k.map((C, T) => /* @__PURE__ */ a.jsx("span", { children: C !== 0 && B(C) ? /* @__PURE__ */ a.jsx(
4693
4693
  "b",
4694
4694
  {
4695
- ...S(C),
4695
+ ...E(C),
4696
4696
  ...P(C),
4697
- onClick: () => I(C),
4697
+ onClick: () => R(C),
4698
4698
  children: C
4699
4699
  }
4700
- ) : /* @__PURE__ */ a.jsx("p", { ...S(C), ...P(C), children: C !== 0 ? C : "" }) }, L))
4700
+ ) : /* @__PURE__ */ a.jsx("p", { ...E(C), ...P(C), children: C !== 0 ? C : "" }) }, T))
4701
4701
  ] })
4702
4702
  ]
4703
4703
  }
@@ -4722,12 +4722,12 @@ function zt({
4722
4722
  options: v,
4723
4723
  className: g
4724
4724
  }) {
4725
- let [p, y] = m.useState(e), k = (B) => {
4725
+ let [p, y] = m.useState(e), k = ($) => {
4726
4726
  if (!(l && _) || !f) return;
4727
- let I = f.split(".");
4728
- _t.Open(I[0], I[1], {
4729
- callback: (T) => {
4730
- t && t({ value: T, name: n }), y(T);
4727
+ let R = f.split(".");
4728
+ _t.Open(R[0], R[1], {
4729
+ callback: (I) => {
4730
+ t && t({ value: I, name: n }), y(I);
4731
4731
  },
4732
4732
  onValue: t,
4733
4733
  options: v,
@@ -4737,13 +4737,13 @@ function zt({
4737
4737
  };
4738
4738
  const N = {};
4739
4739
  N.field = "input", g && (N.className = g);
4740
- const $ = {};
4741
- return r && ($.placeholder = r), o ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...N, children: [
4740
+ const L = {};
4741
+ return r && (L.placeholder = r), o ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...N, children: [
4742
4742
  s && /* @__PURE__ */ a.jsx("dt", { children: s }),
4743
4743
  /* @__PURE__ */ a.jsx(
4744
4744
  "dd",
4745
4745
  {
4746
- ...$,
4746
+ ...L,
4747
4747
  onClick: k,
4748
4748
  edit: (l && _) + "",
4749
4749
  "data-after": u,
@@ -4774,45 +4774,48 @@ function Wt({
4774
4774
  }) {
4775
4775
  let y = !!(o && (e === "" || e === void 0));
4776
4776
  e = H.isNumeric(e) ? Number(e) / x : 0;
4777
- let k = (w) => v === "multi" ? w.replace(/[^+\d.+-]/g, "") : w.replace(/[^+\d.]/g, ""), N = (w, R) => {
4778
- let E = document.createRange(), C = window.getSelection();
4779
- E.setStart(R.childNodes[0], w), E.collapse(!0), C.removeAllRanges(), C.addRange(E), R.focus();
4780
- }, $ = (w) => {
4777
+ let k = (b) => v === "multi" ? b.replace(/[^+\d.+-]/g, "") : b.replace(/[^+\d.]/g, ""), N = (b, S) => {
4778
+ let C = document.createRange(), T = window.getSelection();
4779
+ C.setStart(S.childNodes[0], b), C.collapse(!0), T.removeAllRanges(), T.addRange(C), S.focus();
4780
+ }, L = (b) => {
4781
4781
  t == null || t({
4782
- value: k(w.target.textContent) * x,
4782
+ value: k(b.target.textContent) * x,
4783
4783
  name: n
4784
- }), w.target.textContent = k(w.target.textContent), w.target.textContent.length > 0 && N(w.target.textContent.length, w.target);
4785
- }, B = (w) => {
4786
- z.Blur(w), w.target.textContent === "" && (w.target.textContent = 0), g == null || g({ value: k(w.target.textContent) * x, name: n }), t == null || t({
4787
- value: k(w.target.textContent) * x,
4784
+ }), b.target.textContent = k(b.target.textContent), b.target.textContent.length > 0 && N(b.target.textContent.length, b.target);
4785
+ }, $ = (b) => {
4786
+ z.Blur(b), b.target.textContent === "" && (b.target.textContent = 0), g == null || g({ value: k(b.target.textContent) * x, name: n }), t == null || t({
4787
+ value: k(b.target.textContent) * x,
4788
4788
  name: n
4789
- }), w.target.textContent = H.Money(w.target.textContent);
4790
- }, I = (w) => {
4791
- w.target.textContent = k(w.target.textContent);
4792
- }, T = (w) => {
4793
- w.key === "Enter" && w.preventDefault();
4794
- }, S = (w) => {
4795
- w.preventDefault(), navigator.clipboard.readText().then((R) => {
4796
- R = R.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, R);
4797
- }).catch((R) => {
4789
+ }), b.target.textContent = H.Money(b.target.textContent);
4790
+ }, R = (b) => {
4791
+ b.target.textContent = k(b.target.textContent);
4792
+ }, I = (b) => {
4793
+ b.key === "Enter" && b.preventDefault();
4794
+ }, E = (b) => {
4795
+ b.preventDefault(), navigator.clipboard.readText().then((S) => {
4796
+ S = S.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, S);
4797
+ }).catch((S) => {
4798
4798
  });
4799
4799
  };
4800
4800
  if (!(l && c) && !u || !(l && c) && y) return "";
4801
4801
  const P = {};
4802
- return P.field = "input", p && (P.className = p), /* @__PURE__ */ a.jsxs("dl", { ...P, children: [
4802
+ P.field = "input", p && (P.className = p);
4803
+ const B = {};
4804
+ return B.inputMode = "decimal", r && (B.placeholder = r), l && c && (B.edit = ""), /* @__PURE__ */ a.jsxs("dl", { ...P, children: [
4803
4805
  s ? /* @__PURE__ */ a.jsx("dt", { children: s }) : "",
4804
4806
  /* @__PURE__ */ a.jsx(
4805
4807
  "dd",
4806
4808
  {
4807
- onInput: $,
4808
- onPaste: S,
4809
- onBlur: B,
4810
- onKeyDown: T,
4811
- onFocus: I,
4809
+ ...B,
4810
+ onInput: L,
4811
+ onPaste: E,
4812
+ onBlur: $,
4813
+ onKeyDown: I,
4814
+ onFocus: R,
4812
4815
  contentEditable: l && c ? z.ContentEditable : "false",
4813
4816
  suppressContentEditableWarning: !0,
4814
- "e-after": _,
4815
- children: H.Money(e)
4817
+ "data-after": _,
4818
+ children: !r || e ? H.Money(e) : ""
4816
4819
  }
4817
4820
  ),
4818
4821
  i ? /* @__PURE__ */ a.jsx("em", { children: i }) : ""
@@ -4961,52 +4964,52 @@ function da({
4961
4964
  }) {
4962
4965
  let [k, N] = m.useState(!1);
4963
4966
  k = c ? !0 : k;
4964
- let $ = (R) => {
4965
- n == null || n({ value: R.target.innerText, name: r });
4966
- }, B = (R) => {
4967
- f && R.target.textContent.trim().length >= f && R.key !== "Backspace" && R.preventDefault(), R.key === "Enter" && R.preventDefault();
4968
- }, I = (R) => {
4969
- y && (R.preventDefault(), navigator.clipboard.writeText(R.target.textContent.trim()).then(
4967
+ let L = (b) => {
4968
+ n == null || n({ value: b.target.innerText, name: r });
4969
+ }, $ = (b) => {
4970
+ f && b.target.textContent.trim().length >= f && b.key !== "Backspace" && b.preventDefault(), b.key === "Enter" && b.preventDefault();
4971
+ }, R = (b) => {
4972
+ y && (b.preventDefault(), navigator.clipboard.writeText(b.target.textContent.trim()).then(
4970
4973
  function() {
4971
4974
  Ce.Copy("Данные в буфер обмене");
4972
4975
  },
4973
- function(E) {
4976
+ function(S) {
4974
4977
  }
4975
4978
  ));
4976
- }, T = (R) => {
4977
- R.preventDefault(), navigator.clipboard.readText().then((E) => {
4979
+ }, I = (b) => {
4980
+ b.preventDefault(), navigator.clipboard.readText().then((S) => {
4978
4981
  if (f) {
4979
- let C = R.target.textContent.length;
4982
+ let C = b.target.textContent.length;
4980
4983
  if (C >= f) return;
4981
- f -= C, E = E.slice(0, f);
4984
+ f -= C, S = S.slice(0, f);
4982
4985
  }
4983
4986
  window.document.execCommand(
4984
4987
  "insertText",
4985
4988
  !1,
4986
- E.replace(/(\r\n|\n|\r)/gm, " ")
4989
+ S.replace(/(\r\n|\n|\r)/gm, " ")
4987
4990
  );
4988
- }).catch((E) => {
4991
+ }).catch((S) => {
4989
4992
  });
4990
4993
  };
4991
4994
  if (l) return /* @__PURE__ */ a.jsx(a.Fragment, {});
4992
4995
  if (!(c && _) && !x) return "";
4993
- const S = {};
4994
- S.field = "notes", p && (S.className = p);
4996
+ const E = {};
4997
+ E.field = "notes", p && (E.className = p);
4995
4998
  const P = {};
4996
4999
  s && (P.placeholder = s), c && _ && (P.edit = ""), k && (P.open = "");
4997
- const w = (R) => {
4998
- z.Blur(R), g == null || g({ value: R.target.textContent.trim(), name: r });
5000
+ const B = (b) => {
5001
+ z.Blur(b), g == null || g({ value: b.target.textContent.trim(), name: r });
4999
5002
  };
5000
- return /* @__PURE__ */ a.jsxs("dl", { ...S, children: [
5003
+ return /* @__PURE__ */ a.jsxs("dl", { ...E, children: [
5001
5004
  i ? /* @__PURE__ */ a.jsx("dt", { children: i }) : "",
5002
5005
  /* @__PURE__ */ a.jsx(
5003
5006
  "dd",
5004
5007
  {
5005
- onPaste: T,
5006
- onInput: $,
5007
- onBlur: w,
5008
- onKeyDown: B,
5009
- onContextMenu: I,
5008
+ onPaste: I,
5009
+ onInput: L,
5010
+ onBlur: B,
5011
+ onKeyDown: $,
5012
+ onContextMenu: R,
5010
5013
  contentEditable: c && _ ? z.ContentEditable : "false",
5011
5014
  suppressContentEditableWarning: !0,
5012
5015
  ...P,
@@ -5037,43 +5040,43 @@ function Kt({
5037
5040
  view: p
5038
5041
  }) {
5039
5042
  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;
5040
- let k = !1, N = (w) => {
5041
- e == null || e({ value: w.target.textContent, name: h });
5042
- }, $ = (w) => {
5043
- if (!(k && w.which === 86)) {
5044
- if (w.which === 17 || w.which === 91) return k = !0;
5045
- w.key !== "Backspace" && (w.target.textContent.length === r && w.preventDefault(), w.key === "Enter" && w.preventDefault(), isNaN(w.key) && w.preventDefault());
5043
+ let k = !1, N = (B) => {
5044
+ e == null || e({ value: B.target.textContent, name: h });
5045
+ }, L = (B) => {
5046
+ if (!(k && B.which === 86)) {
5047
+ if (B.which === 17 || B.which === 91) return k = !0;
5048
+ B.key !== "Backspace" && (B.target.textContent.length === r && B.preventDefault(), B.key === "Enter" && B.preventDefault(), isNaN(B.key) && B.preventDefault());
5046
5049
  }
5047
- }, B = (w) => {
5048
- if (w.which === 17 || w.which === 91) return k = !1;
5049
- }, I = (w) => {
5050
- w.preventDefault(), navigator.clipboard.readText().then((R) => {
5051
- if (R = R.replace(/(?!^\+|\d)./g, ""), f) {
5052
- let E = w.target.textContent.length;
5053
- if (E >= f) return;
5054
- f -= E, R = R.slice(0, f);
5050
+ }, $ = (B) => {
5051
+ if (B.which === 17 || B.which === 91) return k = !1;
5052
+ }, R = (B) => {
5053
+ B.preventDefault(), navigator.clipboard.readText().then((b) => {
5054
+ if (b = b.replace(/(?!^\+|\d)./g, ""), f) {
5055
+ let S = B.target.textContent.length;
5056
+ if (S >= f) return;
5057
+ f -= S, b = b.slice(0, f);
5055
5058
  }
5056
- window.document.execCommand("insertText", !1, "" + R);
5057
- }).catch((R) => {
5059
+ window.document.execCommand("insertText", !1, "" + b);
5060
+ }).catch((b) => {
5058
5061
  });
5059
5062
  };
5060
- const T = (w) => {
5061
- z.Blur(w), t == null || t({ value: w.target.textContent, name: h });
5062
- }, S = {};
5063
- S.field = "input", x && (S.className = x);
5063
+ const I = (B) => {
5064
+ z.Blur(B), t == null || t({ value: B.target.textContent, name: h });
5065
+ }, E = {};
5066
+ E.field = "input", x && (E.className = x);
5064
5067
  let P = {};
5065
- return s && n ? (P.edit = "true", P.contentEditable = z.ContentEditable) : P.contentEditable = "false", P.inputMode = "decimal", u && (P.placeholder = u), c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...S, children: [
5068
+ return s && n ? (P.edit = "true", P.contentEditable = z.ContentEditable) : P.contentEditable = "false", P.inputMode = "decimal", u && (P.placeholder = u), c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...E, children: [
5066
5069
  i && /* @__PURE__ */ a.jsx("dt", { children: i }),
5067
5070
  g,
5068
5071
  /* @__PURE__ */ a.jsx(
5069
5072
  "dd",
5070
5073
  {
5071
5074
  ...P,
5072
- onPaste: I,
5075
+ onPaste: R,
5073
5076
  onInput: N,
5074
- onBlur: T,
5075
- onKeyDown: $,
5076
- onKeyUp: B,
5077
+ onBlur: I,
5078
+ onKeyDown: L,
5079
+ onKeyUp: $,
5077
5080
  suppressContentEditableWarning: !0,
5078
5081
  children: _
5079
5082
  }
@@ -5101,20 +5104,20 @@ function _a({
5101
5104
  after: g = ""
5102
5105
  }) {
5103
5106
  const [p, y] = m.useState(f);
5104
- let k = (S) => {
5107
+ let k = (E) => {
5105
5108
  t && t({
5106
- value: S.target.textContent,
5109
+ value: E.target.textContent,
5107
5110
  name: r,
5108
5111
  reload: u
5109
5112
  });
5110
- }, N = (S) => {
5111
- S.key === "Enter" && S.preventDefault();
5112
- }, $ = (S) => {
5113
- S.preventDefault(), navigator.clipboard.readText().then((P) => {
5113
+ }, N = (E) => {
5114
+ E.key === "Enter" && E.preventDefault();
5115
+ }, L = (E) => {
5116
+ E.preventDefault(), navigator.clipboard.readText().then((P) => {
5114
5117
  if (h) {
5115
- let w = S.target.textContent.length;
5116
- if (w >= h) return;
5117
- h -= w, P = P.slice(0, h);
5118
+ let B = E.target.textContent.length;
5119
+ if (B >= h) return;
5120
+ h -= B, P = P.slice(0, h);
5118
5121
  }
5119
5122
  window.document.execCommand(
5120
5123
  "insertText",
@@ -5123,23 +5126,23 @@ function _a({
5123
5126
  );
5124
5127
  }).catch((P) => {
5125
5128
  });
5126
- }, B = (S) => {
5127
- z.Blur(S), n == null || n({ value: S.target.textContent.trim(), name: r });
5129
+ }, $ = (E) => {
5130
+ z.Blur(E), n == null || n({ value: E.target.textContent.trim(), name: r });
5128
5131
  };
5132
+ const R = {};
5133
+ R.field = "password", p && (R.show = ""), i && (R.className = i);
5129
5134
  const I = {};
5130
- I.field = "password", p && (I.show = ""), i && (I.className = i);
5131
- const T = {};
5132
- return s && (T.placeholder = s), x ? "" : /* @__PURE__ */ a.jsxs("dl", { ...I, children: [
5135
+ return s && (I.placeholder = s), x ? "" : /* @__PURE__ */ a.jsxs("dl", { ...R, children: [
5133
5136
  o ? /* @__PURE__ */ a.jsx("dt", { children: o }) : "",
5134
5137
  /* @__PURE__ */ a.jsx(
5135
5138
  "dd",
5136
5139
  {
5137
- onPaste: $,
5140
+ onPaste: L,
5138
5141
  onInput: k,
5139
5142
  onKeyDown: N,
5140
- onBlur: B,
5143
+ onBlur: $,
5141
5144
  contentEditable: c && _ ? z.ContentEditable : "false",
5142
- ...T,
5145
+ ...I,
5143
5146
  suppressContentEditableWarning: !0,
5144
5147
  children: e
5145
5148
  }
@@ -6548,66 +6551,66 @@ function Ht({
6548
6551
  className: h = ""
6549
6552
  }) {
6550
6553
  c = c !== void 0 ? c : !0, _ = _ !== void 0 ? _ : !0, l = !!(l && (e === "" || e === void 0)) && !(c && _), m.useRef(null);
6551
- let g = "+_(___) ___-__-__", p = !0, y = 0, k = (E, C) => {
6552
- let L = document.createRange(), W = window.getSelection();
6553
- L.setStart(C.childNodes[0], E), L.collapse(!0), W.removeAllRanges(), W.addRange(L), C.focus();
6554
- }, N = (E) => {
6555
- E.preventDefault(), navigator.clipboard.readText().then((C) => {
6554
+ let g = "+_(___) ___-__-__", p = !0, y = 0, k = (S, C) => {
6555
+ let T = document.createRange(), W = window.getSelection();
6556
+ T.setStart(C.childNodes[0], S), T.collapse(!0), W.removeAllRanges(), W.addRange(T), C.focus();
6557
+ }, N = (S) => {
6558
+ S.preventDefault(), navigator.clipboard.readText().then((C) => {
6556
6559
  window.document.execCommand("insertText", !1, C);
6557
6560
  }).catch((C) => {
6558
6561
  });
6559
- }, $ = (E) => {
6560
- let C = 0, L = "", W = E.replace(/\D/g, "");
6562
+ }, L = (S) => {
6563
+ let C = 0, T = "", W = S.replace(/\D/g, "");
6561
6564
  W === "" && (p = !0);
6562
6565
  let ee = W.split(""), oe = "";
6563
6566
  ee.forEach((Pe) => {
6564
- p && (oe += Pe, bt[oe] !== void 0 && p ? (p = !1, g = bt[oe].mask.replace(new RegExp("[0-9]", "g"), "_"), L = bt[oe].code) : (p && (y = ("" + oe).length, g = `+${oe}_(___) ___-__-__`.replace(
6567
+ p && (oe += Pe, bt[oe] !== void 0 && p ? (p = !1, g = bt[oe].mask.replace(new RegExp("[0-9]", "g"), "_"), T = bt[oe].code) : (p && (y = ("" + oe).length, g = `+${oe}_(___) ___-__-__`.replace(
6565
6568
  new RegExp("[0-9]", "g"),
6566
6569
  "_"
6567
- ), L = ""), y > ("" + oe).length && (p = !0, g = `+${oe}_(___) ___-__-__`.replace(
6570
+ ), T = ""), y > ("" + oe).length && (p = !0, g = `+${oe}_(___) ___-__-__`.replace(
6568
6571
  new RegExp("[0-9]", "g"),
6569
6572
  "_"
6570
- ), L = "")));
6573
+ ), T = "")));
6571
6574
  });
6572
6575
  let ve = g.replace(/\D/g, "");
6573
6576
  return ve.length >= W.length && (W = ve), { q: g.replace(/[_\d]/g, function() {
6574
6577
  return W.charAt(C++) || "_";
6575
- }), i: C, v: W, f: L };
6576
- }, B = (E) => {
6577
- E.preventDefault(), navigator.clipboard.writeText(E.target.textContent.replace(/\D/g, "")).then(
6578
+ }), i: C, v: W, f: T };
6579
+ }, $ = (S) => {
6580
+ S.preventDefault(), navigator.clipboard.writeText(S.target.textContent.replace(/\D/g, "")).then(
6578
6581
  function() {
6579
6582
  Ce.Copy("Данные в буфер обмене");
6580
6583
  },
6581
6584
  function(C) {
6582
6585
  }
6583
6586
  );
6584
- }, I = $(e), T = (E) => {
6585
- let C = $(E.target.textContent);
6586
- E.target.textContent = C.q, C.i = C.q.lastIndexOf(C.v.substr(-1)), C.i < C.q.length && C.q !== g ? C.i++ : C.i = C.q.indexOf("_"), k(C.i, E.target), t && t({ value: C.q.replace(/\D/g, ""), name: r });
6587
- }, S = (E) => {
6588
- E.key === "Enter" && E.preventDefault();
6587
+ }, R = L(e), I = (S) => {
6588
+ let C = L(S.target.textContent);
6589
+ S.target.textContent = C.q, C.i = C.q.lastIndexOf(C.v.substr(-1)), C.i < C.q.length && C.q !== g ? C.i++ : C.i = C.q.indexOf("_"), k(C.i, S.target), t && t({ value: C.q.replace(/\D/g, ""), name: r });
6590
+ }, E = (S) => {
6591
+ S.key === "Enter" && S.preventDefault();
6589
6592
  };
6590
- const P = (E) => {
6591
- z.Blur(E), n && n({
6592
- value: E.target.textContent.replace(/\D/g, ""),
6593
+ const P = (S) => {
6594
+ z.Blur(S), n && n({
6595
+ value: S.target.textContent.replace(/\D/g, ""),
6593
6596
  name: r
6594
6597
  });
6595
- }, w = {};
6596
- w.field = "input", h && (w.className = h);
6597
- let R = {};
6598
- return c && _ ? (R.edit = "true", R.contentEditable = z.ContentEditable) : R.contentEditable = "false", s && (R.placeholder = s), u && (R.after = u), l ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...w, children: [
6598
+ }, B = {};
6599
+ B.field = "input", h && (B.className = h);
6600
+ let b = {};
6601
+ return c && _ ? (b.edit = "true", b.contentEditable = z.ContentEditable) : b.contentEditable = "false", s && (b.placeholder = s), u && (b.after = u), l ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...B, children: [
6599
6602
  i && /* @__PURE__ */ a.jsx("dt", { children: i }),
6600
6603
  /* @__PURE__ */ a.jsx(
6601
6604
  "dd",
6602
6605
  {
6603
- ...R,
6606
+ ...b,
6604
6607
  onPaste: N,
6605
- onInput: T,
6606
- onKeyDown: S,
6607
- onContextMenu: B,
6608
+ onInput: I,
6609
+ onKeyDown: E,
6610
+ onContextMenu: $,
6608
6611
  onBlur: P,
6609
6612
  suppressContentEditableWarning: !0,
6610
- children: I.q
6613
+ children: R.q
6611
6614
  }
6612
6615
  ),
6613
6616
  o && /* @__PURE__ */ a.jsx("em", { children: o })
@@ -6670,23 +6673,23 @@ function Yt({
6670
6673
  order: h,
6671
6674
  isReload: v = !1
6672
6675
  }) {
6673
- var P, w;
6676
+ var P, B;
6674
6677
  const g = m.useRef(), [p, y] = m.useState(i), [k, N] = m.useState(l);
6675
6678
  m.useEffect(() => {
6676
6679
  y(i), N(l);
6677
6680
  }, [i, l]), s = !!(s && (i === "" || ((P = k[i]) == null ? void 0 : P.n) === void 0)) && !(n && r);
6678
- let B = (R) => {
6679
- y(R), o && o({ value: R, name: u, reload: v });
6680
- }, I = (R) => {
6681
+ let $ = (b) => {
6682
+ y(b), o && o({ value: b, name: u, reload: v });
6683
+ }, R = (b) => {
6681
6684
  if (Object.keys(l).length === 0 || !(n && r)) return;
6682
- const E = R.target.getBoundingClientRect();
6685
+ const S = b.target.getBoundingClientRect();
6683
6686
  ge.setListener(
6684
6687
  "form",
6685
6688
  /* @__PURE__ */ a.jsx(
6686
6689
  Ac,
6687
6690
  {
6688
- parent: E,
6689
- onValue: B,
6691
+ parent: S,
6692
+ onValue: $,
6690
6693
  view: f,
6691
6694
  className: _,
6692
6695
  options: k,
@@ -6695,10 +6698,10 @@ function Yt({
6695
6698
  (/* @__PURE__ */ new Date()).getTime()
6696
6699
  )
6697
6700
  );
6698
- }, T = { field: "select", className: _ }, S = { onClick: I };
6699
- return c && (S.placeholder = c), x && (S.after = x), n && r && (S.edit = ""), s ? "" : /* @__PURE__ */ a.jsxs("dl", { ...T, children: [
6701
+ }, I = { field: "select", className: _ }, E = { onClick: R };
6702
+ return c && (E.placeholder = c), x && (E.after = x), n && r && (E.edit = ""), s ? "" : /* @__PURE__ */ a.jsxs("dl", { ...I, children: [
6700
6703
  e && /* @__PURE__ */ a.jsx("dt", { children: e }),
6701
- /* @__PURE__ */ a.jsx("dd", { ...S, ref: g, children: (w = k[p]) == null ? void 0 : w.n }),
6704
+ /* @__PURE__ */ a.jsx("dd", { ...E, ref: g, children: (B = k[p]) == null ? void 0 : B.n }),
6702
6705
  Object.keys(k).length !== 0 && /* @__PURE__ */ a.jsx("s", { children: /* @__PURE__ */ a.jsx(
6703
6706
  "svg",
6704
6707
  {
@@ -7037,25 +7040,25 @@ function fa({
7037
7040
  }) {
7038
7041
  let p = !!(o && (e === "" || e === void 0));
7039
7042
  if (!(l && c) && !u || !(l && c) && p) return "";
7040
- let y = (I) => {
7041
- t && t({ value: I.target.innerText, name: n });
7042
- }, k = (I) => {
7043
- v && v({ value: I.target.innerText, name: n });
7044
- }, N = (I) => {
7045
- I.preventDefault(), navigator.clipboard.readText().then((T) => {
7043
+ let y = (R) => {
7044
+ t && t({ value: R.target.innerText, name: n });
7045
+ }, k = (R) => {
7046
+ v && v({ value: R.target.innerText, name: n });
7047
+ }, N = (R) => {
7048
+ R.preventDefault(), navigator.clipboard.readText().then((I) => {
7046
7049
  if (h) {
7047
- let S = I.target.textContent.length;
7048
- if (S >= h) return;
7049
- h -= S, T = T.slice(0, h);
7050
+ let E = R.target.textContent.length;
7051
+ if (E >= h) return;
7052
+ h -= E, I = I.slice(0, h);
7050
7053
  }
7051
- window.document.execCommand("insertText", !1, T);
7052
- }).catch((T) => {
7054
+ window.document.execCommand("insertText", !1, I);
7055
+ }).catch((I) => {
7053
7056
  });
7054
7057
  };
7058
+ const L = {};
7059
+ L.field = "text", g && (L.className = g);
7055
7060
  const $ = {};
7056
- $.field = "text", g && ($.className = g);
7057
- const B = {};
7058
- return r && (B.placeholder = r), /* @__PURE__ */ a.jsxs("dl", { ...$, children: [
7061
+ return r && ($.placeholder = r), /* @__PURE__ */ a.jsxs("dl", { ...L, children: [
7059
7062
  s && /* @__PURE__ */ a.jsx("dt", { children: s }),
7060
7063
  /* @__PURE__ */ a.jsx(
7061
7064
  "dd",
@@ -7064,7 +7067,7 @@ function fa({
7064
7067
  onBlur: k,
7065
7068
  onInput: y,
7066
7069
  contentEditable: l && c ? z.ContentEditable : "false",
7067
- ...B,
7070
+ ...$,
7068
7071
  suppressContentEditableWarning: !0,
7069
7072
  children: e
7070
7073
  }
@@ -7091,18 +7094,18 @@ function ma({
7091
7094
  }) {
7092
7095
  let g = !!(o && (e === "" || e === void 0)), p = H.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), y = m.useRef(null);
7093
7096
  if (!(l && c) && !u || !(l && c) && g) return "";
7094
- let k = (T) => {
7095
- y.current.textContent = T, t && t({ value: T, name: n });
7096
- }, N = (T) => {
7097
- h && h({ value: T, name: n });
7098
- }, $ = (T) => {
7099
- const S = T.target.getBoundingClientRect(), P = S.left, w = S.top;
7097
+ let k = (I) => {
7098
+ y.current.textContent = I, t && t({ value: I, name: n });
7099
+ }, N = (I) => {
7100
+ h && h({ value: I, name: n });
7101
+ }, L = (I) => {
7102
+ const E = I.target.getBoundingClientRect(), P = E.left, B = E.top;
7100
7103
  ge.setListener(
7101
7104
  "form",
7102
7105
  /* @__PURE__ */ a.jsx(
7103
7106
  Zc,
7104
7107
  {
7105
- positions: { x: P, y: w },
7108
+ positions: { x: P, y: B },
7106
7109
  onSave: N,
7107
7110
  onValue: k,
7108
7111
  date: p
@@ -7111,18 +7114,18 @@ function ma({
7111
7114
  )
7112
7115
  );
7113
7116
  };
7114
- const B = {};
7115
- B.field = "input", v && (B.className = v);
7116
- const I = {};
7117
- return r && (I.placeholder = r), /* @__PURE__ */ a.jsx(a.Fragment, { children: x === "icon" ? /* @__PURE__ */ a.jsx(
7117
+ const $ = {};
7118
+ $.field = "input", v && ($.className = v);
7119
+ const R = {};
7120
+ return r && (R.placeholder = r), /* @__PURE__ */ a.jsx(a.Fragment, { children: x === "icon" ? /* @__PURE__ */ a.jsx(
7118
7121
  "i",
7119
7122
  {
7120
7123
  "data-icon": "F043",
7121
- onClick: $
7124
+ onClick: L
7122
7125
  }
7123
- ) : /* @__PURE__ */ a.jsxs("dl", { ...B, children: [
7126
+ ) : /* @__PURE__ */ a.jsxs("dl", { ...$, children: [
7124
7127
  s ? /* @__PURE__ */ a.jsx("dt", { children: s }) : "",
7125
- /* @__PURE__ */ a.jsx("dd", { onClick: $, ref: y, ...I, children: p }),
7128
+ /* @__PURE__ */ a.jsx("dd", { onClick: L, ref: y, ...R, children: p }),
7126
7129
  i ? /* @__PURE__ */ a.jsx("em", { children: i }) : ""
7127
7130
  ] }) });
7128
7131
  }
@@ -7144,60 +7147,60 @@ const Zc = ({ positions: e, onSave: t, onValue: n, date: r }) => {
7144
7147
  _ = !0;
7145
7148
  }, v = () => {
7146
7149
  _ = !1, o = o === "hour" ? "time" : "hour", f.body.current.setAttribute("active", o);
7147
- }, g = (I) => {
7150
+ }, g = (R) => {
7148
7151
  if (_) {
7149
- let S = Math.atan2(
7150
- I.pageX - (l.x + 78),
7151
- I.pageY - (l.y + 78)
7152
+ let E = Math.atan2(
7153
+ R.pageX - (l.x + 78),
7154
+ R.pageY - (l.y + 78)
7152
7155
  ) * (180 / Math.PI) * -1 + 180;
7153
- f[o].current.style.transform = "rotate(" + S + "deg)", o === "hour" ? (i = {
7156
+ f[o].current.style.transform = "rotate(" + E + "deg)", o === "hour" ? (i = {
7154
7157
  ...i,
7155
- h: H.Number(2, parseInt(String(S / 15), 10))
7158
+ h: H.Number(2, parseInt(String(E / 15), 10))
7156
7159
  }, f.hourText.current.textContent = i.h) : (i = {
7157
7160
  ...i,
7158
- m: H.Number(2, parseInt(String(S / 6), 10))
7161
+ m: H.Number(2, parseInt(String(E / 6), 10))
7159
7162
  }, f.timeText.current.textContent = i.m), n(i.h + ":" + i.m);
7160
7163
  }
7161
- }, p = (I) => {
7164
+ }, p = (R) => {
7162
7165
  if (o === "hour")
7163
- if (I.deltaY > 0) {
7164
- u += I.deltaY;
7165
- let T = parseInt(String(u / 50));
7166
- if (x !== T) {
7167
- x = T;
7168
- let S = parseInt(i.h, 10) + 1;
7169
- S = S > 23 ? 0 : S, i = { ...i, h: H.Number(2, S) }, f.hourText.current.textContent = i.h, f[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
7166
+ if (R.deltaY > 0) {
7167
+ u += R.deltaY;
7168
+ let I = parseInt(String(u / 50));
7169
+ if (x !== I) {
7170
+ x = I;
7171
+ let E = parseInt(i.h, 10) + 1;
7172
+ E = E > 23 ? 0 : E, i = { ...i, h: H.Number(2, E) }, f.hourText.current.textContent = i.h, f[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
7170
7173
  }
7171
7174
  } else {
7172
- u -= I.deltaY;
7173
- let T = parseInt(String(u / 50));
7174
- if (x !== T) {
7175
- x = T;
7176
- let S = parseInt(i.h, 10) - 1;
7177
- S = S < 0 ? 23 : S, i = { ...i, h: H.Number(2, S) }, f.hourText.current.textContent = i.h, f[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
7175
+ u -= R.deltaY;
7176
+ let I = parseInt(String(u / 50));
7177
+ if (x !== I) {
7178
+ x = I;
7179
+ let E = parseInt(i.h, 10) - 1;
7180
+ E = E < 0 ? 23 : E, i = { ...i, h: H.Number(2, E) }, f.hourText.current.textContent = i.h, f[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
7178
7181
  }
7179
7182
  }
7180
- else if (I.deltaY > 0) {
7181
- u += I.deltaY;
7182
- let T = parseInt(String(u / 50));
7183
- if (x !== T) {
7184
- x = T;
7185
- let S = parseInt(i.m, 10) + 1;
7186
- S = S > 59 ? 0 : S, i = { ...i, m: H.Number(2, S) }, f.timeText.current.textContent = i.m, f[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
7183
+ else if (R.deltaY > 0) {
7184
+ u += R.deltaY;
7185
+ let I = parseInt(String(u / 50));
7186
+ if (x !== I) {
7187
+ x = I;
7188
+ let E = parseInt(i.m, 10) + 1;
7189
+ E = E > 59 ? 0 : E, i = { ...i, m: H.Number(2, E) }, f.timeText.current.textContent = i.m, f[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
7187
7190
  }
7188
7191
  } else {
7189
- u -= I.deltaY;
7190
- let T = parseInt(String(u / 50));
7191
- if (x !== T) {
7192
- x = T;
7193
- let S = parseInt(i.m, 10) - 1;
7194
- S = S < 0 ? 59 : S, i = { ...i, m: H.Number(2, S) }, f.timeText.current.textContent = i.m, f[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
7192
+ u -= R.deltaY;
7193
+ let I = parseInt(String(u / 50));
7194
+ if (x !== I) {
7195
+ x = I;
7196
+ let E = parseInt(i.m, 10) - 1;
7197
+ E = E < 0 ? 59 : E, i = { ...i, m: H.Number(2, E) }, f.timeText.current.textContent = i.m, f[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
7195
7198
  }
7196
7199
  }
7197
7200
  n(i.h + ":" + i.m);
7198
7201
  }, [y, k] = m.useState(!0), N = () => {
7199
7202
  k(!1), t(i.h + ":" + i.m);
7200
- }, $ = window.innerHeight - e.y + 33 < 320 ? e.y - 312 : e.y + 33, B = window.innerWidth - e.x < 265 ? e.x - 235 : e.x;
7203
+ }, L = window.innerHeight - e.y + 33 < 320 ? e.y - 312 : e.y + 33, $ = window.innerWidth - e.x < 265 ? e.x - 235 : e.x;
7201
7204
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: y ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
7202
7205
  /* @__PURE__ */ a.jsx(
7203
7206
  "div",
@@ -7216,7 +7219,7 @@ const Zc = ({ positions: e, onSave: t, onValue: n, date: r }) => {
7216
7219
  onMouseMove: g,
7217
7220
  onWheel: p,
7218
7221
  ref: f.body,
7219
- style: { top: $ + "px", left: B + "px" },
7222
+ style: { top: L + "px", left: $ + "px" },
7220
7223
  children: [
7221
7224
  /* @__PURE__ */ a.jsx("div", { className: "b" }),
7222
7225
  /* @__PURE__ */ a.jsxs("div", { className: "s", children: [
@@ -7349,22 +7352,22 @@ function pa({
7349
7352
  if (f !== 0 && p.length >= f)
7350
7353
  return Ce.Error("Слишком много");
7351
7354
  y([...p, ""]);
7352
- }, N = (R) => {
7353
- p.splice(R, 1), p.length === 0 && p.push(""), y([...p]), h !== void 0 && h({ value: p.join(g), name: n });
7354
- }, $ = !!(o && (e === "" || e === void 0)), B = (R) => {
7355
+ }, N = (b) => {
7356
+ p.splice(b, 1), p.length === 0 && p.push(""), y([...p]), h !== void 0 && h({ value: p.join(g), name: n });
7357
+ }, L = !!(o && (e === "" || e === void 0)), $ = (b) => {
7355
7358
  };
7356
- if (!(l && c) && !u || !(l && c) && $) return "";
7357
- const I = {};
7358
- I.field = "group", v && (I.className = v);
7359
- const T = (R, E) => {
7360
- z.Blur(R), p[E] = R.target.textContent, h && h({ value: p.join(g), name: n });
7359
+ if (!(l && c) && !u || !(l && c) && L) return "";
7360
+ const R = {};
7361
+ R.field = "group", v && (R.className = v);
7362
+ const I = (b, S) => {
7363
+ z.Blur(b), p[S] = b.target.textContent, h && h({ value: p.join(g), name: n });
7361
7364
  };
7362
- let S = (R, E) => {
7363
- p[E] = R.target.textContent, t && t({ value: p.join(g), name: n });
7364
- }, P = (R) => {
7365
- R.key === "Enter" && R.preventDefault();
7365
+ let E = (b, S) => {
7366
+ p[S] = b.target.textContent, t && t({ value: p.join(g), name: n });
7367
+ }, P = (b) => {
7368
+ b.key === "Enter" && b.preventDefault();
7366
7369
  };
7367
- const w = ({ data: R }) => f !== 0 && R.length >= f ? "" : /* @__PURE__ */ a.jsx("i", { onClick: k, children: /* @__PURE__ */ a.jsxs(
7370
+ const B = ({ data: b }) => f !== 0 && b.length >= f ? "" : /* @__PURE__ */ a.jsx("i", { onClick: k, children: /* @__PURE__ */ a.jsxs(
7368
7371
  "svg",
7369
7372
  {
7370
7373
  xmlns: "http://www.w3.org/2000/svg",
@@ -7380,32 +7383,32 @@ function pa({
7380
7383
  ]
7381
7384
  }
7382
7385
  ) });
7383
- return /* @__PURE__ */ a.jsxs("dl", { ...I, children: [
7386
+ return /* @__PURE__ */ a.jsxs("dl", { ...R, children: [
7384
7387
  /* @__PURE__ */ a.jsxs("dt", { children: [
7385
7388
  s,
7386
- /* @__PURE__ */ a.jsx(w, { data: p })
7389
+ /* @__PURE__ */ a.jsx(B, { data: p })
7387
7390
  ] }),
7388
- /* @__PURE__ */ a.jsx("dd", { children: p.map((R, E) => /* @__PURE__ */ a.jsxs("li", { className: "field_group_item", children: [
7391
+ /* @__PURE__ */ a.jsx("dd", { children: p.map((b, S) => /* @__PURE__ */ a.jsxs("li", { className: "field_group_item", children: [
7389
7392
  /* @__PURE__ */ a.jsx(
7390
7393
  "span",
7391
7394
  {
7392
- onInput: (C) => S(C, E),
7395
+ onInput: (C) => E(C, S),
7393
7396
  edit: "true",
7394
7397
  name: n,
7395
7398
  placeholder: r,
7396
- onPaste: B,
7399
+ onPaste: $,
7397
7400
  contentEditable: l && c ? z.ContentEditable : "false",
7398
7401
  onKeyDown: P,
7399
- onBlur: (C) => T(C, E),
7402
+ onBlur: (C) => I(C, S),
7400
7403
  suppressContentEditableWarning: !0,
7401
- children: p[E]
7404
+ children: p[S]
7402
7405
  }
7403
7406
  ),
7404
7407
  /* @__PURE__ */ a.jsx(
7405
7408
  "i",
7406
7409
  {
7407
7410
  onClick: () => {
7408
- N(E);
7411
+ N(S);
7409
7412
  },
7410
7413
  children: /* @__PURE__ */ a.jsxs(
7411
7414
  "svg",
@@ -7425,7 +7428,7 @@ function pa({
7425
7428
  )
7426
7429
  }
7427
7430
  )
7428
- ] }, E)) }),
7431
+ ] }, S)) }),
7429
7432
  i && /* @__PURE__ */ a.jsx("em", { children: i })
7430
7433
  ] });
7431
7434
  }
@@ -7448,12 +7451,12 @@ function xa({
7448
7451
  options: v,
7449
7452
  className: g
7450
7453
  }) {
7451
- const [p, y] = m.useState(Wc(e)), k = (B) => {
7454
+ const [p, y] = m.useState(Wc(e)), k = ($) => {
7452
7455
  if (!(l && _) || !f) return;
7453
- let I = f.split(".");
7454
- _t.Open(I[0], I[1], {
7455
- callback: (T) => {
7456
- t && t({ value: T, name: n }), y(T);
7456
+ let R = f.split(".");
7457
+ _t.Open(R[0], R[1], {
7458
+ callback: (I) => {
7459
+ t && t({ value: I, name: n }), y(I);
7457
7460
  },
7458
7461
  onValue: t,
7459
7462
  options: v,
@@ -7462,8 +7465,8 @@ function xa({
7462
7465
  });
7463
7466
  }, N = {};
7464
7467
  N.field = "group", g && (N.className = g);
7465
- const $ = {};
7466
- return r && ($.placeholder = r), o ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...N, children: [
7468
+ const L = {};
7469
+ return r && (L.placeholder = r), o ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...N, children: [
7467
7470
  /* @__PURE__ */ a.jsxs("dt", { children: [
7468
7471
  s,
7469
7472
  /* @__PURE__ */ a.jsx("i", { onClick: k, children: /* @__PURE__ */ a.jsxs(
@@ -7487,13 +7490,13 @@ function xa({
7487
7490
  /* @__PURE__ */ a.jsx(
7488
7491
  "dd",
7489
7492
  {
7490
- ...$,
7493
+ ...L,
7491
7494
  onClick: open,
7492
7495
  edit: (l && _) + "",
7493
7496
  "data-after": u,
7494
- children: Object.keys(p).map((B) => {
7495
- var I;
7496
- return /* @__PURE__ */ a.jsx("div", { className: "field_group_item", children: (I = v[B]) == null ? void 0 : I.label }, B);
7497
+ children: Object.keys(p).map(($) => {
7498
+ var R;
7499
+ return /* @__PURE__ */ a.jsx("div", { className: "field_group_item", children: (R = v[$]) == null ? void 0 : R.label }, $);
7497
7500
  })
7498
7501
  }
7499
7502
  ),
@@ -7520,29 +7523,29 @@ function Sn({
7520
7523
  className: p = ""
7521
7524
  }) {
7522
7525
  const y = m.useId();
7523
- let k = !!(l && (e === "" || e === void 0)), [N, $] = m.useState(i);
7526
+ let k = !!(l && (e === "" || e === void 0)), [N, L] = m.useState(i);
7524
7527
  if (!(c && _) && !x || !(c && _) && k) return "";
7525
- const B = async (T) => {
7528
+ const $ = async (I) => {
7526
7529
  if (f) {
7527
- let S = Hc(T, f, e || "default");
7528
- t == null || t({ name: n, value: S }), $(URL.createObjectURL(S));
7530
+ let E = Hc(I, f, e || "default");
7531
+ t == null || t({ name: n, value: E }), L(URL.createObjectURL(E));
7529
7532
  } else
7530
- t == null || t({ name: n, value: T }), $(URL.createObjectURL(T));
7531
- }, I = {};
7532
- return I.field = "file", p && (I.className = p), /* @__PURE__ */ a.jsxs("dl", { ...I, children: [
7533
+ t == null || t({ name: n, value: I }), L(URL.createObjectURL(I));
7534
+ }, R = {};
7535
+ return R.field = "file", p && (R.className = p), /* @__PURE__ */ a.jsxs("dl", { ...R, children: [
7533
7536
  s && /* @__PURE__ */ a.jsxs("dt", { children: [
7534
7537
  s,
7535
7538
  " "
7536
7539
  ] }),
7537
- /* @__PURE__ */ a.jsxs(Kc, { onFiles: B, children: [
7540
+ /* @__PURE__ */ a.jsxs(Kc, { onFiles: $, children: [
7538
7541
  /* @__PURE__ */ a.jsx(
7539
7542
  "input",
7540
7543
  {
7541
7544
  id: y,
7542
7545
  type: "file",
7543
7546
  multiple: !0,
7544
- onChange: (T) => {
7545
- T.target.files[0] && B(T.target.files[0]);
7547
+ onChange: (I) => {
7548
+ I.target.files[0] && $(I.target.files[0]);
7546
7549
  }
7547
7550
  }
7548
7551
  ),
@@ -7687,16 +7690,16 @@ function Qc({
7687
7690
  className: v = ""
7688
7691
  }) {
7689
7692
  _ = _ !== void 0 ? _ : !0, u = u !== void 0 ? u : !0, c = !!(c && (e === "" || e === void 0)) && !(_ && u), m.useRef(null);
7690
- let p = s, y = !0, k = 0, N = (C, L) => {
7693
+ let p = s, y = !0, k = 0, N = (C, T) => {
7691
7694
  let W = document.createRange(), ee = window.getSelection();
7692
- W.setStart(L.childNodes[0], C), W.collapse(!0), ee.removeAllRanges(), ee.addRange(W), L.focus();
7693
- }, $ = (C) => {
7694
- C.preventDefault(), navigator.clipboard.readText().then((L) => {
7695
- window.document.execCommand("insertText", !1, L);
7696
- }).catch((L) => {
7695
+ W.setStart(T.childNodes[0], C), W.collapse(!0), ee.removeAllRanges(), ee.addRange(W), T.focus();
7696
+ }, L = (C) => {
7697
+ C.preventDefault(), navigator.clipboard.readText().then((T) => {
7698
+ window.document.execCommand("insertText", !1, T);
7699
+ }).catch((T) => {
7697
7700
  });
7698
- }, B = (C) => {
7699
- let L = 0, W = "", ee = C.replace(/\D/g, "");
7701
+ }, $ = (C) => {
7702
+ let T = 0, W = "", ee = C.replace(/\D/g, "");
7700
7703
  ee === "" && (y = !0);
7701
7704
  let oe = ee.split(""), ve = "";
7702
7705
  oe.forEach((Qe) => {
@@ -7704,43 +7707,43 @@ function Qc({
7704
7707
  });
7705
7708
  let Ie = p.replace(/\D/g, "");
7706
7709
  return Ie.length >= ee.length && (ee = Ie), { q: p.replace(/[_\d]/g, function() {
7707
- return ee.charAt(L++) || "_";
7708
- }), i: L, v: ee, f: W };
7709
- }, I = (C) => {
7710
+ return ee.charAt(T++) || "_";
7711
+ }), i: T, v: ee, f: W };
7712
+ }, R = (C) => {
7710
7713
  C.preventDefault(), navigator.clipboard.writeText(C.target.textContent.replace(/\D/g, "")).then(
7711
7714
  function() {
7712
7715
  Ce.Copy("Данные в буфер обмене");
7713
7716
  },
7714
- function(L) {
7717
+ function(T) {
7715
7718
  }
7716
7719
  );
7717
- }, T = B(e), S = (C) => {
7718
- let L = B(C.target.textContent);
7719
- C.target.textContent = L.q, L.i = L.q.lastIndexOf(L.v.substr(-1)), L.i < L.q.length && L.q !== p ? L.i++ : L.i = L.q.indexOf("_"), N(L.i, C.target), t && t({ value: L.q.replace(/\D/g, ""), name: r });
7720
+ }, I = $(e), E = (C) => {
7721
+ let T = $(C.target.textContent);
7722
+ C.target.textContent = T.q, T.i = T.q.lastIndexOf(T.v.substr(-1)), T.i < T.q.length && T.q !== p ? T.i++ : T.i = T.q.indexOf("_"), N(T.i, C.target), t && t({ value: T.q.replace(/\D/g, ""), name: r });
7720
7723
  }, P = (C) => {
7721
7724
  C.key === "Enter" && C.preventDefault();
7722
7725
  };
7723
- const w = (C) => {
7726
+ const B = (C) => {
7724
7727
  z.Blur(C), n && n({
7725
7728
  value: C.target.textContent.replace(/\D/g, ""),
7726
7729
  name: r
7727
7730
  });
7728
- }, R = {};
7729
- R.field = "input", v && (R.className = v);
7730
- let E = {};
7731
- return _ && u ? (E.edit = "true", E.contentEditable = z.ContentEditable) : E.contentEditable = "false", i && (E.placeholder = i), x && (E.after = x), c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...R, children: [
7731
+ }, b = {};
7732
+ b.field = "input", v && (b.className = v);
7733
+ let S = {};
7734
+ return _ && u ? (S.edit = "true", S.contentEditable = z.ContentEditable) : S.contentEditable = "false", i && (S.placeholder = i), x && (S.after = x), c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...b, children: [
7732
7735
  o && /* @__PURE__ */ a.jsx("dt", { children: o }),
7733
7736
  /* @__PURE__ */ a.jsx(
7734
7737
  "dd",
7735
7738
  {
7736
- ...E,
7737
- onPaste: $,
7738
- onInput: S,
7739
+ ...S,
7740
+ onPaste: L,
7741
+ onInput: E,
7739
7742
  onKeyDown: P,
7740
- onContextMenu: I,
7741
- onBlur: w,
7743
+ onContextMenu: R,
7744
+ onBlur: B,
7742
7745
  suppressContentEditableWarning: !0,
7743
- children: T.q
7746
+ children: I.q
7744
7747
  }
7745
7748
  ),
7746
7749
  l && /* @__PURE__ */ a.jsx("em", { children: l })