elcrm 0.8.62 → 0.8.63

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
@@ -5,7 +5,7 @@ import p, { createElement as Ea } from "react";
5
5
  let Et = {};
6
6
  const Ra = (e) => {
7
7
  Et = e;
8
- }, Na = (e) => Et.enCode(e), Ta = (e) => Et.deCode(e), L = { enCode: Na, deCode: Ta, New: Ra }, b = {}, Y = {}, be = {}, hn = {}, ce = {};
8
+ }, Na = (e) => Et.enCode(e), Ta = (e) => Et.deCode(e), L = { enCode: Na, deCode: Ta, New: Ra }, S = {}, Y = {}, be = {}, hn = {}, ce = {};
9
9
  let Xe = "M06";
10
10
  function Ia(e) {
11
11
  Xe = e;
@@ -16,11 +16,11 @@ function Da() {
16
16
  function Ma(e) {
17
17
  if (localStorage.getItem("d")) {
18
18
  let a = sessionStorage.getItem("f");
19
- a ? (a = L.deCode(a), a || te(), b.id = a.id, b.tab = a.tab, b.page = a.page, b.module = a.module, b.time = a.time, b.payment = { active: !0 }, b.module_admin = a.module_admin) : (b.id = 0, b.tab = "", b.page = "Main", b.module = b.module || Xe);
19
+ a ? (a = L.deCode(a), a || te(), S.id = a.id, S.tab = a.tab, S.page = a.page, S.module = a.module, S.time = a.time, S.payment = { active: !0 }, S.module_admin = a.module_admin) : (S.id = 0, S.tab = "", S.page = "Main", S.module = S.module || Xe);
20
20
  } else
21
21
  ["a", "b", "c", "d", "e", "m", "u", "s", "q", "p"].forEach(
22
22
  (a) => localStorage.removeItem(a)
23
- ), ["f"].forEach((a) => sessionStorage.removeItem(a)), b.id = 0, b.tab = "", b.page = "Auth", b.module = Xe;
23
+ ), ["f"].forEach((a) => sessionStorage.removeItem(a)), S.id = 0, S.tab = "", S.page = "Auth", S.module = Xe;
24
24
  return e;
25
25
  }
26
26
  function te() {
@@ -29,16 +29,16 @@ function te() {
29
29
  ), ["f"].forEach((e) => sessionStorage.removeItem(e)), window.location.reload();
30
30
  }
31
31
  function La(e) {
32
- e = e.split("/"), b.page = "Main", b.module = e[0], b.tab = e[1], b.id = 0, sessionStorage.setItem(
32
+ e = e.split("/"), S.page = "Main", S.module = e[0], S.tab = e[1], S.id = 0, sessionStorage.setItem(
33
33
  "f",
34
34
  L.enCode({
35
- module: b.module,
36
- page: b.page,
37
- tab: b.tab,
38
- id: b.id,
35
+ module: S.module,
36
+ page: S.page,
37
+ tab: S.tab,
38
+ id: S.id,
39
39
  time: (/* @__PURE__ */ new Date()).getTime()
40
40
  })
41
- ), Y.page(b.page);
41
+ ), Y.page(S.page);
42
42
  }
43
43
  function Fa(e) {
44
44
  return localStorage.setItem("d", e);
@@ -72,13 +72,13 @@ function Aa() {
72
72
  return Y.page = a, [e];
73
73
  }
74
74
  function Ga(e, t = !0) {
75
- b.page = e, sessionStorage.setItem("f", L.enCode(b)), t && Y.page(e);
75
+ S.page = e, sessionStorage.setItem("f", L.enCode(S)), t && Y.page(e);
76
76
  }
77
77
  function xn() {
78
- return b.page;
78
+ return S.page;
79
79
  }
80
80
  function Za(e) {
81
- return b.page === e;
81
+ return S.page === e;
82
82
  }
83
83
  function za(e) {
84
84
  if (typeof e != "function") {
@@ -90,13 +90,13 @@ function za(e) {
90
90
  Y.module = e;
91
91
  }
92
92
  function Ka(e, t = !0) {
93
- b.module = e, sessionStorage.setItem("f", L.enCode(b)), t && Y.module(e);
93
+ S.module = e, sessionStorage.setItem("f", L.enCode(S)), t && Y.module(e);
94
94
  }
95
95
  function pn() {
96
- return b.module;
96
+ return S.module;
97
97
  }
98
98
  function Wa(e) {
99
- return b.module === e;
99
+ return S.module === e;
100
100
  }
101
101
  function Ua(e) {
102
102
  if (typeof e != "function") {
@@ -106,17 +106,17 @@ function Ua(e) {
106
106
  Y.tabs = e;
107
107
  }
108
108
  function Ya(e, t = !0) {
109
- if (b.tab = e, sessionStorage.setItem("f", L.enCode(b)), !!t)
109
+ if (S.tab = e, sessionStorage.setItem("f", L.enCode(S)), !!t)
110
110
  if (Y.tabs)
111
111
  Y.tabs(e);
112
112
  else
113
113
  throw new Error("useTabs not found");
114
114
  }
115
115
  function Qe() {
116
- return b.tab;
116
+ return S.tab;
117
117
  }
118
118
  function Ha(e) {
119
- return b.tab === e;
119
+ return S.tab === e;
120
120
  }
121
121
  function Va(e) {
122
122
  if (typeof e != "function") {
@@ -131,16 +131,16 @@ function qa(e) {
131
131
  Y.id = e;
132
132
  }
133
133
  function Ja(e, t = !0) {
134
- b.id = e, sessionStorage.setItem("f", L.enCode(b)), t && Y.id(e);
134
+ S.id = e, sessionStorage.setItem("f", L.enCode(S)), t && Y.id(e);
135
135
  }
136
136
  function gn() {
137
- return b.id;
137
+ return S.id;
138
138
  }
139
139
  function Xa(e) {
140
- return Number(b.id) === e;
140
+ return Number(S.id) === e;
141
141
  }
142
142
  function Qa(e, t, a) {
143
- b.module = e, b.id = a, b.tab = t, sessionStorage.setItem("f", L.enCode(b)), Y.module(e), Y.tabs(t);
143
+ S.module = e, S.id = a, S.tab = t, sessionStorage.setItem("f", L.enCode(S)), Y.module(e), Y.tabs(t);
144
144
  }
145
145
  function er(e) {
146
146
  be.data = e[0], delete be.data.id, document.body.dataset.theme = be.data.s15, localStorage.setItem("s", L.enCode(be.data));
@@ -213,10 +213,10 @@ function or(e) {
213
213
  return hn.data[e];
214
214
  }
215
215
  function lr(e) {
216
- b.payment = e;
216
+ S.payment = e;
217
217
  }
218
218
  function cr() {
219
- return b.payment;
219
+ return S.payment;
220
220
  }
221
221
  function yn(e) {
222
222
  localStorage.setItem("u", L.enCode(e));
@@ -252,23 +252,23 @@ function ur(e) {
252
252
  let s = L.deCode(r);
253
253
  if (!s)
254
254
  return;
255
- b[a] = { is: !0, time: s.time, data: s.data };
255
+ S[a] = { is: !0, time: s.time, data: s.data };
256
256
  } catch {
257
- b[a] = { is: !1, time: 0, data: {} };
257
+ S[a] = { is: !1, time: 0, data: {} };
258
258
  }
259
259
  else
260
- b[a] = { is: !1, time: 0, data: {} };
260
+ S[a] = { is: !1, time: 0, data: {} };
261
261
  };
262
262
  e.forEach((a) => t(a));
263
263
  }
264
264
  function fr(e) {
265
- return b[e] === void 0 ? (b[e] = { data: {}, time: 0 }, { data: {}, time: 0 }) : b[e];
265
+ return S[e] === void 0 ? (S[e] = { data: {}, time: 0 }, { data: {}, time: 0 }) : S[e];
266
266
  }
267
267
  function mr(e, t) {
268
- b[e] = { data: t.data, time: t.time }, localStorage.setItem(e, L.enCode(b[e]));
268
+ S[e] = { data: t.data, time: t.time }, localStorage.setItem(e, L.enCode(S[e]));
269
269
  }
270
270
  function hr(e, t, a) {
271
- b[e].time = a, b[e].data[t.item][t.name] = t.value, localStorage.setItem(e, L.enCode(b[e]));
271
+ S[e].time = a, S[e].data[t.item][t.name] = t.value, localStorage.setItem(e, L.enCode(S[e]));
272
272
  }
273
273
  const ae = {
274
274
  setSSID: Fa,
@@ -509,10 +509,10 @@ function Lr() {
509
509
  P.unshift("Warning: " + g), Function.prototype.apply.call(console[c], console, P);
510
510
  }
511
511
  }
512
- var D = !1, S = !1, R = !1, E = !1, N = !1, A;
512
+ var D = !1, b = !1, E = !1, R = !1, N = !1, A;
513
513
  A = Symbol.for("react.module.reference");
514
514
  function X(c) {
515
- return !!(typeof c == "string" || typeof c == "function" || c === r || c === i || N || c === s || c === _ || c === u || E || c === h || D || S || R || typeof c == "object" && c !== null && (c.$$typeof === f || c.$$typeof === m || c.$$typeof === o || c.$$typeof === l || c.$$typeof === d || // This needs to include all possible module reference object
515
+ return !!(typeof c == "string" || typeof c == "function" || c === r || c === i || N || c === s || c === _ || c === u || R || c === h || D || b || E || typeof c == "object" && c !== null && (c.$$typeof === f || c.$$typeof === m || c.$$typeof === o || c.$$typeof === l || c.$$typeof === d || // This needs to include all possible module reference object
516
516
  // types supported by any Flight configuration anywhere since
517
517
  // we don't know which Flight build this will end up being used
518
518
  // with.
@@ -1685,15 +1685,15 @@ function js(e) {
1685
1685
  }
1686
1686
  const ys = (e) => {
1687
1687
  function t(T, D) {
1688
- var S, E, R;
1688
+ var b, R, E;
1689
1689
  T = T ?? "", D = D ?? 1;
1690
- for (var S = [], R = 0, E = T.length; R < E; )
1691
- S.push(T.slice(R, R += D));
1692
- return S;
1690
+ for (var b = [], E = 0, R = T.length; E < R; )
1691
+ b.push(T.slice(E, E += D));
1692
+ return b;
1693
1693
  }
1694
1694
  function a(T, D) {
1695
- var S = [2, 0, 1, 1, 1, 2];
1696
- return D[T > 4 && T < 20 ? 2 : S[Math.min(T, 5)]];
1695
+ var b = [2, 0, 1, 1, 1, 2];
1696
+ return D[T > 4 && T < 20 ? 2 : b[Math.min(T, 5)]];
1697
1697
  }
1698
1698
  var r = {
1699
1699
  null: "ноль",
@@ -3472,13 +3472,13 @@ function Pe({
3472
3472
  onSave: h,
3473
3473
  className: C = ""
3474
3474
  }) {
3475
- let x = !!(o && (e === "" || e === void 0)), v = (E) => {
3476
- t && t({ value: E.target.textContent, name: a });
3477
- }, k = (E) => {
3478
- E.key === "Enter" && E.preventDefault();
3479
- }, w = (E) => {
3480
- }, T = (E) => {
3481
- E.preventDefault(), navigator.clipboard.writeText(E.target.textContent).then(
3475
+ let x = !!(o && (e === "" || e === void 0)), v = (R) => {
3476
+ t && t({ value: R.target.textContent, name: a });
3477
+ }, k = (R) => {
3478
+ R.key === "Enter" && R.preventDefault();
3479
+ }, w = (R) => {
3480
+ }, T = (R) => {
3481
+ R.preventDefault(), navigator.clipboard.writeText(R.target.textContent).then(
3482
3482
  function() {
3483
3483
  $e.Copy("Данные в буфер обмене");
3484
3484
  },
@@ -3490,10 +3490,10 @@ function Pe({
3490
3490
  return "";
3491
3491
  const D = {};
3492
3492
  D.field = "input", C && (D.className = C);
3493
- const S = {};
3494
- r && (S.placeholder = r), l && d && (S.edit = "");
3495
- const R = (E) => {
3496
- ue.Blur(E), h && h({ value: E.target.textContent, name: a });
3493
+ const b = {};
3494
+ r && (b.placeholder = r), l && d && (b.edit = "");
3495
+ const E = (R) => {
3496
+ ue.Blur(R), h && h({ value: R.target.textContent, name: a });
3497
3497
  };
3498
3498
  return /* @__PURE__ */ n.jsxs("dl", { ...D, children: [
3499
3499
  s ? /* @__PURE__ */ n.jsx("dt", { children: s }) : "",
@@ -3502,12 +3502,12 @@ function Pe({
3502
3502
  {
3503
3503
  onPaste: w,
3504
3504
  onInput: v,
3505
- onBlur: R,
3505
+ onBlur: E,
3506
3506
  onKeyDown: k,
3507
3507
  onContextMenu: T,
3508
3508
  contentEditable: l && d ? "plaintext-only" : "false",
3509
3509
  suppressContentEditableWarning: !0,
3510
- ...S,
3510
+ ...b,
3511
3511
  children: e
3512
3512
  }
3513
3513
  ),
@@ -3894,11 +3894,11 @@ const fl = (e) => {
3894
3894
  y: parseInt(s.getFullYear()),
3895
3895
  d: parseInt(s.getDate()),
3896
3896
  m: parseInt(s.getMonth()) + 1
3897
- }, [l, d] = p.useState({ y: o.y, m: o.m }), _ = (S) => {
3898
- let R = S.getDay();
3899
- return R === 0 && (R = 7), R - 1;
3897
+ }, [l, d] = p.useState({ y: o.y, m: o.m }), _ = (b) => {
3898
+ let E = b.getDay();
3899
+ return E === 0 && (E = 7), E - 1;
3900
3900
  }, u = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"], m = l.m - 1, f = new Date(l.y, m), h = [];
3901
- for (let S = 0; S < _(f); S++)
3901
+ for (let b = 0; b < _(f); b++)
3902
3902
  h.push(0);
3903
3903
  for (; f.getMonth() === m; )
3904
3904
  h.push(f.getDate()), f.setDate(f.getDate() + 1);
@@ -3908,12 +3908,12 @@ const fl = (e) => {
3908
3908
  w(l.m + 1, l.y);
3909
3909
  }, v = () => {
3910
3910
  w(l.m - 1, l.y);
3911
- }, k = (S) => {
3911
+ }, k = (b) => {
3912
3912
  e.onValue(
3913
- l.y + "-" + W.Number(2, l.m) + "-" + W.Number(2, S)
3913
+ l.y + "-" + W.Number(2, l.m) + "-" + W.Number(2, b)
3914
3914
  ), C();
3915
- }, w = (S, R) => {
3916
- R = S > 12 ? R + 1 : S < 1 ? R - 1 : R, S = S > 12 ? 1 : S < 1 ? 12 : S, d({ y: R, m: S });
3915
+ }, w = (b, E) => {
3916
+ E = b > 12 ? E + 1 : b < 1 ? E - 1 : E, b = b > 12 ? 1 : b < 1 ? 12 : b, d({ y: E, m: b });
3917
3917
  }, T = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, D = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
3918
3918
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: t ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3919
3919
  /* @__PURE__ */ n.jsx(
@@ -3960,15 +3960,15 @@ const fl = (e) => {
3960
3960
  ) })
3961
3961
  ] }),
3962
3962
  /* @__PURE__ */ n.jsxs("div", { "grid-calendar": "", children: [
3963
- u.map((S, R) => /* @__PURE__ */ n.jsx("p", { children: S }, "v" + R)),
3964
- h.map((S, R) => /* @__PURE__ */ n.jsx("span", { children: S !== 0 ? /* @__PURE__ */ n.jsx(
3963
+ u.map((b, E) => /* @__PURE__ */ n.jsx("p", { children: b }, "v" + E)),
3964
+ h.map((b, E) => /* @__PURE__ */ n.jsx("span", { children: b !== 0 ? /* @__PURE__ */ n.jsx(
3965
3965
  "b",
3966
3966
  {
3967
- color: i.y === l.y && i.m === l.m && i.d === S ? "_FFEB3B" : "",
3968
- onClick: () => k(S),
3969
- children: S
3967
+ color: i.y === l.y && i.m === l.m && i.d === b ? "_FFEB3B" : "",
3968
+ onClick: () => k(b),
3969
+ children: b
3970
3970
  }
3971
- ) : /* @__PURE__ */ n.jsx("p", {}) }, R))
3971
+ ) : /* @__PURE__ */ n.jsx("p", {}) }, E))
3972
3972
  ] })
3973
3973
  ]
3974
3974
  }
@@ -3993,13 +3993,13 @@ function It({
3993
3993
  options: C,
3994
3994
  className: x
3995
3995
  }) {
3996
- let [v, k] = p.useState(e), w = (S) => {
3996
+ let [v, k] = p.useState(e), w = (b) => {
3997
3997
  if (!(l && _) || !f)
3998
3998
  return;
3999
- let R = f.split(".");
4000
- tt.Open(R[0], R[1], {
4001
- callback: (E) => {
4002
- t && t({ value: E, name: a }), k(E);
3999
+ let E = f.split(".");
4000
+ tt.Open(E[0], E[1], {
4001
+ callback: (R) => {
4002
+ t && t({ value: R, name: a }), k(R);
4003
4003
  },
4004
4004
  onValue: t,
4005
4005
  options: C,
@@ -4261,7 +4261,7 @@ function Mt({
4261
4261
  }, D = (N) => {
4262
4262
  if (N.which === 17 || N.which === 91)
4263
4263
  return k = !1;
4264
- }, S = (N) => {
4264
+ }, b = (N) => {
4265
4265
  N.preventDefault(), navigator.clipboard.readText().then((A) => {
4266
4266
  A = A.replace(/\D/g, ""), window.document.execCommand(
4267
4267
  "insertText",
@@ -4271,16 +4271,16 @@ function Mt({
4271
4271
  }).catch((A) => {
4272
4272
  });
4273
4273
  };
4274
- const R = {};
4275
- R.field = "input", u && (R.className = u);
4276
- let E = {};
4277
- return r && t ? (E.edit = "true", E.contentEditable = "plaintext-only") : E.contentEditable = "false", _ && (E.placeholder = _), f && (E.after = f), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...R, children: [
4274
+ const E = {};
4275
+ E.field = "input", u && (E.className = u);
4276
+ let R = {};
4277
+ return r && t ? (R.edit = "true", R.contentEditable = "plaintext-only") : R.contentEditable = "false", _ && (R.placeholder = _), f && (R.after = f), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...E, children: [
4278
4278
  C(),
4279
4279
  /* @__PURE__ */ n.jsx(
4280
4280
  "dd",
4281
4281
  {
4282
- ...E,
4283
- onPaste: S,
4282
+ ...R,
4283
+ onPaste: b,
4284
4284
  onInput: w,
4285
4285
  onKeyDown: T,
4286
4286
  onKeyUp: D,
@@ -5768,7 +5768,7 @@ function Lt({
5768
5768
  return Ne.length >= q.length && (q = Ne), { q: x.replace(/[_\d]/g, function() {
5769
5769
  return q.charAt(B++) || "_";
5770
5770
  }), i: B, v: q, f: V };
5771
- }, S = (Z) => {
5771
+ }, b = (Z) => {
5772
5772
  Z.preventDefault(), navigator.clipboard.writeText(Z.target.textContent.replace(/\D/g, "")).then(
5773
5773
  function() {
5774
5774
  $e.Copy("Данные в буфер обмене");
@@ -5776,7 +5776,7 @@ function Lt({
5776
5776
  function(B) {
5777
5777
  }
5778
5778
  );
5779
- }, R = D(e), E = (Z) => {
5779
+ }, E = D(e), R = (Z) => {
5780
5780
  let B = D(Z.target.textContent);
5781
5781
  Z.target.textContent = B.q, B.i = B.q.lastIndexOf(B.v.substr(-1)), B.i < B.q.length && B.q !== x ? B.i++ : B.i = B.q.indexOf("_"), w(B.i, Z.target), t && t({ value: B.q.replace(/\D/g, ""), name: r });
5782
5782
  }, N = (Z) => {
@@ -5797,12 +5797,12 @@ function Lt({
5797
5797
  {
5798
5798
  ...le,
5799
5799
  onPaste: T,
5800
- onInput: E,
5800
+ onInput: R,
5801
5801
  onKeyDown: N,
5802
- onContextMenu: S,
5802
+ onContextMenu: b,
5803
5803
  onBlur: A,
5804
5804
  suppressContentEditableWarning: !0,
5805
- children: R.q
5805
+ children: E.q
5806
5806
  }
5807
5807
  ),
5808
5808
  o && /* @__PURE__ */ n.jsx("em", { children: o })
@@ -6189,18 +6189,20 @@ function Zn({
6189
6189
  let x = !!(o && (e === "" || e === void 0));
6190
6190
  if (!(l && d) && !u || !(l && d) && x)
6191
6191
  return "";
6192
- let v = (D) => {
6193
- t && t({ value: D.target.innerText, name: a });
6194
- }, k = (D) => {
6195
- h && h({ value: D.target.innerText, name: a });
6196
- }, w = (D) => {
6197
- D.preventDefault(), navigator.clipboard.readText().then((S) => {
6198
- window.document.execCommand("insertText", !1, S);
6199
- }).catch((S) => {
6192
+ let v = (b) => {
6193
+ t && t({ value: b.target.innerText, name: a });
6194
+ }, k = (b) => {
6195
+ h && h({ value: b.target.innerText, name: a });
6196
+ }, w = (b) => {
6197
+ b.preventDefault(), navigator.clipboard.readText().then((E) => {
6198
+ window.document.execCommand("insertText", !1, E);
6199
+ }).catch((E) => {
6200
6200
  });
6201
6201
  };
6202
6202
  const T = {};
6203
- return r && (T.placeholder = r), /* @__PURE__ */ n.jsxs("dl", { children: [
6203
+ T.field = "text", C && (T.className = C);
6204
+ const D = {};
6205
+ return r && (D.placeholder = r), /* @__PURE__ */ n.jsxs("dl", { ...T, children: [
6204
6206
  s ?? /* @__PURE__ */ n.jsx("dt", { children: s }),
6205
6207
  /* @__PURE__ */ n.jsx(
6206
6208
  "dd",
@@ -6209,7 +6211,7 @@ function Zn({
6209
6211
  onBlur: k,
6210
6212
  onInput: v,
6211
6213
  contentEditable: l && d ? "plaintext-only" : "false",
6212
- ...T,
6214
+ ...D,
6213
6215
  suppressContentEditableWarning: !0,
6214
6216
  children: e
6215
6217
  }
@@ -6237,12 +6239,12 @@ function zn({
6237
6239
  let x = !!(o && (e === "" || e === void 0)), v = W.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), k = p.useRef(null);
6238
6240
  if (!(l && d) && !u || !(l && d) && x)
6239
6241
  return "";
6240
- let w = (E) => {
6241
- k.current.textContent = E, t && t({ value: E, name: a });
6242
- }, T = (E) => {
6243
- h && h({ value: E, name: a });
6244
- }, D = (E) => {
6245
- const N = E.target.getBoundingClientRect(), A = N.left, X = N.top;
6242
+ let w = (R) => {
6243
+ k.current.textContent = R, t && t({ value: R, name: a });
6244
+ }, T = (R) => {
6245
+ h && h({ value: R, name: a });
6246
+ }, D = (R) => {
6247
+ const N = R.target.getBoundingClientRect(), A = N.left, X = N.top;
6246
6248
  Ee.setListener(
6247
6249
  "form",
6248
6250
  /* @__PURE__ */ n.jsx(
@@ -6257,18 +6259,18 @@ function zn({
6257
6259
  )
6258
6260
  );
6259
6261
  };
6260
- const S = {};
6261
- S.field = "input", C && (S.className = C);
6262
- const R = {};
6263
- return r && (R.placeholder = r), /* @__PURE__ */ n.jsx(n.Fragment, { children: m === "icon" ? /* @__PURE__ */ n.jsx(
6262
+ const b = {};
6263
+ b.field = "input", C && (b.className = C);
6264
+ const E = {};
6265
+ return r && (E.placeholder = r), /* @__PURE__ */ n.jsx(n.Fragment, { children: m === "icon" ? /* @__PURE__ */ n.jsx(
6264
6266
  "i",
6265
6267
  {
6266
6268
  "data-icon": "F043",
6267
6269
  onClick: D
6268
6270
  }
6269
- ) : /* @__PURE__ */ n.jsxs("dl", { ...S, children: [
6271
+ ) : /* @__PURE__ */ n.jsxs("dl", { ...b, children: [
6270
6272
  s ? /* @__PURE__ */ n.jsx("dt", { children: s }) : "",
6271
- /* @__PURE__ */ n.jsx("dd", { onClick: D, ref: k, ...R, children: v }),
6273
+ /* @__PURE__ */ n.jsx("dd", { onClick: D, ref: k, ...E, children: v }),
6272
6274
  i ? /* @__PURE__ */ n.jsx("em", { children: i }) : ""
6273
6275
  ] }) });
6274
6276
  }
@@ -6290,11 +6292,11 @@ const pl = ({ positions: e, onSave: t, onValue: a, date: r }) => {
6290
6292
  _ = !0;
6291
6293
  }, C = () => {
6292
6294
  _ = !1, o = o === "hour" ? "time" : "hour", f.body.current.setAttribute("active", o);
6293
- }, x = (R) => {
6295
+ }, x = (E) => {
6294
6296
  if (_) {
6295
6297
  let N = Math.atan2(
6296
- R.pageX - (l.x + 78),
6297
- R.pageY - (l.y + 78)
6298
+ E.pageX - (l.x + 78),
6299
+ E.pageY - (l.y + 78)
6298
6300
  ) * (180 / Math.PI) * -1 + 180;
6299
6301
  f[o].current.style.transform = "rotate(" + N + "deg)", o === "hour" ? (i = {
6300
6302
  ...i,
@@ -6304,38 +6306,38 @@ const pl = ({ positions: e, onSave: t, onValue: a, date: r }) => {
6304
6306
  m: W.Number(2, parseInt(String(N / 6), 10))
6305
6307
  }, f.timeText.current.textContent = i.m), a(i.h + ":" + i.m);
6306
6308
  }
6307
- }, v = (R) => {
6309
+ }, v = (E) => {
6308
6310
  if (o === "hour")
6309
- if (R.deltaY > 0) {
6310
- u += R.deltaY;
6311
- let E = parseInt(String(u / 50));
6312
- if (m !== E) {
6313
- m = E;
6311
+ if (E.deltaY > 0) {
6312
+ u += E.deltaY;
6313
+ let R = parseInt(String(u / 50));
6314
+ if (m !== R) {
6315
+ m = R;
6314
6316
  let N = parseInt(i.h, 10) + 1;
6315
6317
  N = N > 23 ? 0 : N, i = { ...i, h: W.Number(2, N) }, f.hourText.current.textContent = i.h, f[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
6316
6318
  }
6317
6319
  } else {
6318
- u -= R.deltaY;
6319
- let E = parseInt(String(u / 50));
6320
- if (m !== E) {
6321
- m = E;
6320
+ u -= E.deltaY;
6321
+ let R = parseInt(String(u / 50));
6322
+ if (m !== R) {
6323
+ m = R;
6322
6324
  let N = parseInt(i.h, 10) - 1;
6323
6325
  N = N < 0 ? 23 : N, i = { ...i, h: W.Number(2, N) }, f.hourText.current.textContent = i.h, f[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
6324
6326
  }
6325
6327
  }
6326
- else if (R.deltaY > 0) {
6327
- u += R.deltaY;
6328
- let E = parseInt(String(u / 50));
6329
- if (m !== E) {
6330
- m = E;
6328
+ else if (E.deltaY > 0) {
6329
+ u += E.deltaY;
6330
+ let R = parseInt(String(u / 50));
6331
+ if (m !== R) {
6332
+ m = R;
6331
6333
  let N = parseInt(i.m, 10) + 1;
6332
6334
  N = N > 59 ? 0 : N, i = { ...i, m: W.Number(2, N) }, f.timeText.current.textContent = i.m, f[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
6333
6335
  }
6334
6336
  } else {
6335
- u -= R.deltaY;
6336
- let E = parseInt(String(u / 50));
6337
- if (m !== E) {
6338
- m = E;
6337
+ u -= E.deltaY;
6338
+ let R = parseInt(String(u / 50));
6339
+ if (m !== R) {
6340
+ m = R;
6339
6341
  let N = parseInt(i.m, 10) - 1;
6340
6342
  N = N < 0 ? 59 : N, i = { ...i, m: W.Number(2, N) }, f.timeText.current.textContent = i.m, f[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
6341
6343
  }
@@ -6343,7 +6345,7 @@ const pl = ({ positions: e, onSave: t, onValue: a, date: r }) => {
6343
6345
  a(i.h + ":" + i.m);
6344
6346
  }, [k, w] = p.useState(!0), T = () => {
6345
6347
  w(!1), t(i.h + ":" + i.m);
6346
- }, D = window.innerHeight - e.y + 33 < 320 ? e.y - 312 : e.y + 33, S = window.innerWidth - e.x < 265 ? e.x - 235 : e.x;
6348
+ }, D = window.innerHeight - e.y + 33 < 320 ? e.y - 312 : e.y + 33, b = window.innerWidth - e.x < 265 ? e.x - 235 : e.x;
6347
6349
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: k ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
6348
6350
  /* @__PURE__ */ n.jsx(
6349
6351
  "div",
@@ -6362,7 +6364,7 @@ const pl = ({ positions: e, onSave: t, onValue: a, date: r }) => {
6362
6364
  onMouseMove: x,
6363
6365
  onWheel: v,
6364
6366
  ref: f.body,
6365
- style: { top: D + "px", left: S + "px" },
6367
+ style: { top: D + "px", left: b + "px" },
6366
6368
  children: [
6367
6369
  /* @__PURE__ */ n.jsx("div", { className: "b" }),
6368
6370
  /* @__PURE__ */ n.jsxs("div", { className: "s", children: [
@@ -6478,17 +6480,17 @@ function Un({
6478
6480
  };
6479
6481
  if (!(l && d) && !u || !(l && d) && T)
6480
6482
  return "";
6481
- const S = {};
6482
- S.field = "group", C && (S.className = C);
6483
- const R = (A) => {
6483
+ const b = {};
6484
+ b.field = "group", C && (b.className = C);
6485
+ const E = (A) => {
6484
6486
  ue.Blur(A), h && h({ value: A.target.textContent, name: a });
6485
6487
  };
6486
- let E = (A, X) => {
6488
+ let R = (A, X) => {
6487
6489
  x[X] = A.target.textContent, t !== void 0 && t({ value: x.join(","), name: a });
6488
6490
  }, N = (A) => {
6489
6491
  A.key === "Enter" && A.preventDefault();
6490
6492
  };
6491
- return /* @__PURE__ */ n.jsxs("dl", { ...S, children: [
6493
+ return /* @__PURE__ */ n.jsxs("dl", { ...b, children: [
6492
6494
  /* @__PURE__ */ n.jsxs("dt", { children: [
6493
6495
  s,
6494
6496
  /* @__PURE__ */ n.jsx("i", { onClick: k, children: /* @__PURE__ */ n.jsxs(
@@ -6512,14 +6514,14 @@ function Un({
6512
6514
  /* @__PURE__ */ n.jsx(
6513
6515
  "span",
6514
6516
  {
6515
- onInput: (le) => E(le, X),
6517
+ onInput: (le) => R(le, X),
6516
6518
  edit: "true",
6517
6519
  name: a,
6518
6520
  placeholder: r,
6519
6521
  onPaste: D,
6520
6522
  contentEditable: !0,
6521
6523
  onKeyDown: N,
6522
- onBlur: R,
6524
+ onBlur: E,
6523
6525
  suppressContentEditableWarning: !0,
6524
6526
  children: x[X]
6525
6527
  }
@@ -6571,13 +6573,13 @@ function Yn({
6571
6573
  options: C,
6572
6574
  className: x
6573
6575
  }) {
6574
- const [v, k] = p.useState(vl(e)), w = (S) => {
6576
+ const [v, k] = p.useState(vl(e)), w = (b) => {
6575
6577
  if (!(l && _) || !f)
6576
6578
  return;
6577
- let R = f.split(".");
6578
- tt.Open(R[0], R[1], {
6579
- callback: (E) => {
6580
- t && t({ value: E, name: a }), k(E);
6579
+ let E = f.split(".");
6580
+ tt.Open(E[0], E[1], {
6581
+ callback: (R) => {
6582
+ t && t({ value: R, name: a }), k(R);
6581
6583
  },
6582
6584
  onValue: t,
6583
6585
  options: C,
@@ -6615,9 +6617,9 @@ function Yn({
6615
6617
  onClick: open,
6616
6618
  edit: (l && _) + "",
6617
6619
  "data-after": u,
6618
- children: Object.keys(v).map((S) => {
6619
- var R;
6620
- return /* @__PURE__ */ n.jsx("div", { className: "field_group_item", children: (R = C[S]) == null ? void 0 : R.label }, S);
6620
+ children: Object.keys(v).map((b) => {
6621
+ var E;
6622
+ return /* @__PURE__ */ n.jsx("div", { className: "field_group_item", children: (E = C[b]) == null ? void 0 : E.label }, b);
6621
6623
  })
6622
6624
  }
6623
6625
  ),