elcrm 0.8.2 → 0.8.3

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
@@ -396,11 +396,11 @@ var De = {};
396
396
  var rn;
397
397
  function pr() {
398
398
  return rn || (rn = 1, process.env.NODE_ENV !== "production" && function() {
399
- var e = h, 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"), c = Symbol.for("react.provider"), l = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), p = Symbol.iterator, C = "@@iterator";
399
+ var e = h, 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"), c = Symbol.for("react.provider"), l = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), C = Symbol.iterator, p = "@@iterator";
400
400
  function j(o) {
401
401
  if (o === null || typeof o != "object")
402
402
  return null;
403
- var f = p && o[p] || o[C];
403
+ var f = C && o[C] || o[p];
404
404
  return typeof f == "function" ? f : null;
405
405
  }
406
406
  var k = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
@@ -989,14 +989,14 @@ React keys must be passed directly to JSX without using spread:
989
989
  }
990
990
  process.env.NODE_ENV === "production" ? ht.exports = vr() : ht.exports = pr();
991
991
  var a = ht.exports;
992
- const Cr = "_notice_820sc_2", kr = "_error_820sc_9", yr = "_success_820sc_12", jr = "_remark_820sc_15", br = "_copy_820sc_18", wr = {
992
+ const Cr = "_notice_9i5tr_2", kr = "_error_9i5tr_9", yr = "_success_9i5tr_12", jr = "_remark_9i5tr_15", br = "_copy_9i5tr_18", wr = {
993
993
  notice: Cr,
994
994
  error: kr,
995
995
  success: yr,
996
996
  remark: jr,
997
997
  copy: br,
998
- "show-notice": "_show-notice_820sc_1",
999
- "hide-notice": "_hide-notice_820sc_1"
998
+ "show-notice": "_show-notice_9i5tr_1",
999
+ "hide-notice": "_hide-notice_9i5tr_1"
1000
1000
  };
1001
1001
  let ue = {};
1002
1002
  function Sr() {
@@ -1649,14 +1649,14 @@ const ls = (e) => {
1649
1649
  u3: ["тысяча", "тысячи", "тысяч"],
1650
1650
  u2: ["миллион", "миллиона", "миллионов"],
1651
1651
  u1: ["миллиард", "миллиарда", "миллиардов"]
1652
- }, s, i, c, l, j, _, d, C, u, m, x, g;
1652
+ }, s, i, c, l, j, _, d, p, u, m, x, g;
1653
1653
  u = parseFloat(e).toFixed(2).split("."), _ = u[0], l = u[1];
1654
- var p = 12 - _.length;
1655
- if (p < 0)
1654
+ var C = 12 - _.length;
1655
+ if (C < 0)
1656
1656
  return !1;
1657
- for (var C = []; p--; )
1658
- C.push("0");
1659
- _ = C.join("") + _;
1657
+ for (var p = []; C--; )
1658
+ p.push("0");
1659
+ _ = p.join("") + _;
1660
1660
  var j = [];
1661
1661
  if (_ > 0) {
1662
1662
  m = t(_, 3);
@@ -1816,8 +1816,8 @@ function _s(e, t, n, r) {
1816
1816
  return c;
1817
1817
  this.init();
1818
1818
  var g = this.rules[_];
1819
- let p;
1820
- return g.exceptions && (p = this.pick(c, l, d, g.exceptions, !0), p) ? p : (p = this.pick(c, l, d, g.suffixes, !1), p || c);
1819
+ let C;
1820
+ return g.exceptions && (C = this.pick(c, l, d, g.exceptions, !0), C) ? C : (C = this.pick(c, l, d, g.suffixes, !1), C || c);
1821
1821
  },
1822
1822
  // выбираем из списка правил первое подходящее и применяем
1823
1823
  pick: function(c, l, _, d, u) {
@@ -3145,26 +3145,26 @@ const Se = () => (_t || (_t = new Ro()), _t), me = (e, t, n = Se()) => n._withID
3145
3145
  }, Io = (e, t, n = [], r = {}) => {
3146
3146
  let s = n.length !== 0, i = [], c = r.sort, l = Object.keys(r).length !== 0, _ = Object.keys(r), d = Object.keys(e), u = 1, m = [], x = {};
3147
3147
  x[u] = [];
3148
- let g = (C) => {
3148
+ let g = (p) => {
3149
3149
  let j = "";
3150
3150
  if (n.forEach((k) => {
3151
- j += t[C][k];
3151
+ j += t[p][k];
3152
3152
  }), l) {
3153
3153
  let k = {};
3154
3154
  _.forEach((w) => {
3155
- k[w] = t[C][w];
3155
+ k[w] = t[p][w];
3156
3156
  });
3157
3157
  for (let w in c)
3158
- t[C][c[w]] === void 0 && (kt(), location.reload()), w === "s1" && (k[w] = new Date(t[C][c[w]]).getTime()), w === "s2" && (k[w] = t[C][c[w]]), w === "s3" && (k[w] = t[C][c[w]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
3159
- i.push({ id: C, text: j, ...k });
3158
+ t[p][c[w]] === void 0 && (kt(), location.reload()), w === "s1" && (k[w] = new Date(t[p][c[w]]).getTime()), w === "s2" && (k[w] = t[p][c[w]]), w === "s3" && (k[w] = t[p][c[w]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
3159
+ i.push({ id: p, text: j, ...k });
3160
3160
  } else
3161
- i.push({ id: C, text: j });
3162
- }, p = (C) => {
3161
+ i.push({ id: p, text: j });
3162
+ }, C = (p) => {
3163
3163
  };
3164
- return d.forEach((C) => {
3165
- m.push(t[C]);
3166
- }), m.forEach((C) => {
3167
- C === void 0 ? (kt(), location.reload()) : (s && g(C.id), l && p(C.id));
3164
+ return d.forEach((p) => {
3165
+ m.push(t[p]);
3166
+ }), m.forEach((p) => {
3167
+ p === void 0 ? (kt(), location.reload()) : (s && g(p.id), l && C(p.id));
3168
3168
  }), { list: x, search: i, filter: r };
3169
3169
  }, Do = (e, t, n, r = Se()) => {
3170
3170
  if (G[e] === void 0)
@@ -3338,9 +3338,9 @@ function Pe({
3338
3338
  view: m,
3339
3339
  onBlur: x,
3340
3340
  onSave: g,
3341
- className: p = ""
3341
+ className: C = ""
3342
3342
  }) {
3343
- let C = !!(c && (e === "" || e === void 0)), j = (P) => {
3343
+ let p = !!(c && (e === "" || e === void 0)), j = (P) => {
3344
3344
  t && t({ value: P.target.textContent, name: n });
3345
3345
  }, k = (P) => {
3346
3346
  P.key === "Enter" && P.preventDefault();
@@ -3354,10 +3354,10 @@ function Pe({
3354
3354
  }
3355
3355
  );
3356
3356
  };
3357
- if (!(l && _) && !u || !(l && _) && C)
3357
+ if (!(l && _) && !u || !(l && _) && p)
3358
3358
  return "";
3359
3359
  const R = {};
3360
- R.field = "input", p && (R.className = p);
3360
+ R.field = "input", C && (R.className = C);
3361
3361
  const y = {};
3362
3362
  r && (y.placeholder = r), y.edit = (l && _) + "";
3363
3363
  const L = (P) => {
@@ -3426,12 +3426,12 @@ function Dn({
3426
3426
  k.keyCode === 16 && (d.current.shift = !0), k.keyCode === 13 && !d.current.shift && (k.preventDefault(), d.current.value.length !== 0 && (k.target.textContent = "", r && r(d.current.value), t && t(d.current.value), d.current.value = "", n(!1)));
3427
3427
  }, g = (k) => {
3428
3428
  k.keyCode === 16 && (d.current.shift = !1);
3429
- }, p = (k) => {
3429
+ }, C = (k) => {
3430
3430
  k.preventDefault(), navigator.clipboard.readText().then((w) => {
3431
3431
  window.document.execCommand("insertText", !1, w);
3432
3432
  }).catch((w) => {
3433
3433
  });
3434
- }, C = () => {
3434
+ }, p = () => {
3435
3435
  n(!1);
3436
3436
  }, j = {
3437
3437
  spellCheck: "true"
@@ -3439,11 +3439,11 @@ function Dn({
3439
3439
  return _ && (j.placeholder = _), c && l && (j.contentEditable = "plaintext-only"), /* @__PURE__ */ a.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ a.jsx(
3440
3440
  "dd",
3441
3441
  {
3442
- onPaste: p,
3442
+ onPaste: C,
3443
3443
  onInput: m,
3444
3444
  onKeyUp: g,
3445
3445
  onKeyDown: x,
3446
- onBlur: C,
3446
+ onBlur: p,
3447
3447
  ...j,
3448
3448
  suppressContentEditableWarning: !0,
3449
3449
  children: e
@@ -3478,23 +3478,23 @@ function Mn(e) {
3478
3478
  ] });
3479
3479
  }
3480
3480
  function Fn({ value: e, onValue: t, placeholder: n = "", name: r }) {
3481
- let s = (g, p) => Number(Math.round(g + Math.random() * (p - g))), i = h.useRef(null), c = h.useRef(null), l = s(1e4, 99999), _ = (g) => {
3481
+ let s = (g, C) => Number(Math.round(g + Math.random() * (C - g))), i = h.useRef(null), c = h.useRef(null), l = s(1e4, 99999), _ = (g) => {
3482
3482
  g.key !== "Backspace" && (g.key === "Enter" && g.preventDefault(), g.target.textContent.length === 5 && g.preventDefault(), /\d/.test(g.key) || g.preventDefault());
3483
3483
  }, d = (g) => {
3484
3484
  t({ value: Number(g.target.textContent) === l, name: r });
3485
3485
  }, u = (g) => {
3486
- g.preventDefault(), navigator.clipboard.readText().then((p) => {
3486
+ g.preventDefault(), navigator.clipboard.readText().then((C) => {
3487
3487
  window.document.execCommand(
3488
3488
  "insertText",
3489
3489
  !1,
3490
- p.replace(/(\r\n|\n|\r)/gm, " ").replace(/[^0-9]/g, "").substring(0, 5)
3490
+ C.replace(/(\r\n|\n|\r)/gm, " ").replace(/[^0-9]/g, "").substring(0, 5)
3491
3491
  );
3492
- }).catch((p) => {
3492
+ }).catch((C) => {
3493
3493
  });
3494
3494
  };
3495
3495
  h.useEffect(() => {
3496
- const g = i.current, p = g.getContext("2d");
3497
- p.clearRect(0, 0, g.width, g.height), p.font = "30px brush script mt", p.fillStyle = "#eee", p.textAlign = "center", p.fillText(l, 50, 27), c.current.textContent = "";
3496
+ const g = i.current, C = g.getContext("2d");
3497
+ C.clearRect(0, 0, g.width, g.height), C.font = "30px brush script mt", C.fillStyle = "#eee", C.textAlign = "center", C.fillText(l, 50, 27), c.current.textContent = "";
3498
3498
  }, [l]);
3499
3499
  const m = {};
3500
3500
  m.field = "captcha";
@@ -3679,7 +3679,7 @@ function $n(e) {
3679
3679
  }
3680
3680
  ) });
3681
3681
  }
3682
- const Vo = "_o_ff5dx_1", Uo = "_c_ff5dx_11", je = {
3682
+ const Vo = "_o_1kqkq_1", Uo = "_c_1kqkq_11", je = {
3683
3683
  o: Vo,
3684
3684
  c: Uo
3685
3685
  };
@@ -3693,13 +3693,13 @@ function Nt(e) {
3693
3693
  let d = (g) => {
3694
3694
  l(g), e.onValue({ value: g, name: e.name });
3695
3695
  }, u = (g) => {
3696
- const p = g.target.getBoundingClientRect(), C = p.left, j = p.top;
3696
+ const C = g.target.getBoundingClientRect(), p = C.left, j = C.top;
3697
3697
  we.setListener(
3698
3698
  "form",
3699
3699
  /* @__PURE__ */ a.jsx(
3700
3700
  Yo,
3701
3701
  {
3702
- position: { x: C, y: j },
3702
+ position: { x: p, y: j },
3703
3703
  onValue: d,
3704
3704
  date: c
3705
3705
  },
@@ -3755,16 +3755,16 @@ const Yo = (e) => {
3755
3755
  g.push(0);
3756
3756
  for (; x.getMonth() === m; )
3757
3757
  g.push(x.getDate()), x.setDate(x.getDate() + 1);
3758
- let p = () => {
3758
+ let C = () => {
3759
3759
  n(!1);
3760
- }, C = () => {
3760
+ }, p = () => {
3761
3761
  w(l.m + 1, l.y);
3762
3762
  }, j = () => {
3763
3763
  w(l.m - 1, l.y);
3764
3764
  }, k = (y) => {
3765
3765
  e.onValue(
3766
3766
  l.y + "-" + K.Number(2, l.m) + "-" + K.Number(2, y)
3767
- ), p();
3767
+ ), C();
3768
3768
  }, w = (y, L) => {
3769
3769
  L = y > 12 ? L + 1 : y < 1 ? L - 1 : L, y = y > 12 ? 1 : y < 1 ? 12 : y, _({ y: L, m: y });
3770
3770
  }, T = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, R = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
@@ -3773,7 +3773,7 @@ const Yo = (e) => {
3773
3773
  "div",
3774
3774
  {
3775
3775
  className: je.o,
3776
- onClick: () => p()
3776
+ onClick: () => C()
3777
3777
  },
3778
3778
  (/* @__PURE__ */ new Date()).getTime()
3779
3779
  ),
@@ -3790,7 +3790,7 @@ const Yo = (e) => {
3790
3790
  " ",
3791
3791
  l.y
3792
3792
  ] }),
3793
- /* @__PURE__ */ a.jsx("i", { "data-icon": "F022", onClick: () => C() })
3793
+ /* @__PURE__ */ a.jsx("i", { "data-icon": "F022", onClick: () => p() })
3794
3794
  ] }),
3795
3795
  /* @__PURE__ */ a.jsxs("div", { children: [
3796
3796
  u.map((y, L) => /* @__PURE__ */ a.jsx("p", { children: y }, "v" + L)),
@@ -3823,9 +3823,9 @@ function Tt({
3823
3823
  view: m,
3824
3824
  modal: x,
3825
3825
  module: g,
3826
- options: p
3826
+ options: C
3827
3827
  }) {
3828
- let [C, j] = h.useState(e), k = (T) => {
3828
+ let [p, j] = h.useState(e), k = (T) => {
3829
3829
  if (!x)
3830
3830
  return;
3831
3831
  let R = x.split(".");
@@ -3834,7 +3834,7 @@ function Tt({
3834
3834
  t && t({ value: y, name: n }), j(y);
3835
3835
  },
3836
3836
  onValue: t,
3837
- options: p,
3837
+ options: C,
3838
3838
  name: n,
3839
3839
  value: e
3840
3840
  });
@@ -3849,7 +3849,7 @@ function Tt({
3849
3849
  "data-edit": (l && d) + "",
3850
3850
  "data-placeholder": r,
3851
3851
  "data-after": u,
3852
- children: C
3852
+ children: p
3853
3853
  }
3854
3854
  ),
3855
3855
  i ? /* @__PURE__ */ a.jsx("dt", { children: i }) : ""
@@ -3857,8 +3857,8 @@ function Tt({
3857
3857
  }
3858
3858
  function It(e) {
3859
3859
  let t = e.value, n = (m) => e.type === "multi" ? m.replace(/[^+\d.+-]/g, "") : m.replace(/[^+\d.]/g, ""), r = (m, x) => {
3860
- let g = document.createRange(), p = window.getSelection();
3861
- g.setStart(x.childNodes[0], m), g.collapse(!0), p.removeAllRanges(), p.addRange(g), x.focus();
3860
+ let g = document.createRange(), C = window.getSelection();
3861
+ g.setStart(x.childNodes[0], m), g.collapse(!0), C.removeAllRanges(), C.addRange(g), x.focus();
3862
3862
  }, s = (m) => {
3863
3863
  e.onValue({
3864
3864
  value: n(m.target.textContent),
@@ -3920,12 +3920,12 @@ function Pn({
3920
3920
  h.useEffect(() => {
3921
3921
  m(e);
3922
3922
  }, [e]);
3923
- let x = (C) => {
3924
- m(C), t && t({ value: C, name: n });
3925
- }, g = (C) => {
3923
+ let x = (p) => {
3924
+ m(p), t && t({ value: p, name: n });
3925
+ }, g = (p) => {
3926
3926
  if (!i || !c)
3927
3927
  return;
3928
- const j = C.target.getBoundingClientRect(), k = j.left, w = j.top;
3928
+ const j = p.target.getBoundingClientRect(), k = j.left, w = j.top;
3929
3929
  we.setListener(
3930
3930
  "form",
3931
3931
  /* @__PURE__ */ a.jsx(
@@ -3939,8 +3939,8 @@ function Pn({
3939
3939
  )
3940
3940
  );
3941
3941
  };
3942
- const p = {};
3943
- return _ && (p.placeholder = _), /* @__PURE__ */ a.jsx(a.Fragment, { children: r === "icon" ? /* @__PURE__ */ a.jsx(
3942
+ const C = {};
3943
+ return _ && (C.placeholder = _), /* @__PURE__ */ a.jsx(a.Fragment, { children: r === "icon" ? /* @__PURE__ */ a.jsx(
3944
3944
  "i",
3945
3945
  {
3946
3946
  "data-icon": "F043",
@@ -3955,7 +3955,7 @@ function Pn({
3955
3955
  "dd",
3956
3956
  {
3957
3957
  onClick: g,
3958
- ...p,
3958
+ ...C,
3959
3959
  children: K.Date(u, "mm.yyyy")
3960
3960
  }
3961
3961
  ),
@@ -3979,7 +3979,7 @@ const Ho = (e) => {
3979
3979
  _(l - 1);
3980
3980
  }, x = (k) => {
3981
3981
  e.onValue(l + "-" + K.Number(2, k)), d();
3982
- }, g = (k) => i.y === c.y && i.m === k ? "_FFEB3B" : "", p = Array(12).fill("").map((k, w) => w + 1), C = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, j = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
3982
+ }, g = (k) => i.y === c.y && i.m === k ? "_FFEB3B" : "", C = Array(12).fill("").map((k, w) => w + 1), p = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, j = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
3983
3983
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: t ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3984
3984
  /* @__PURE__ */ a.jsx(
3985
3985
  "div",
@@ -3993,7 +3993,7 @@ const Ho = (e) => {
3993
3993
  "div",
3994
3994
  {
3995
3995
  className: je.c,
3996
- style: { top: C + "px", left: j + "px" },
3996
+ style: { top: p + "px", left: j + "px" },
3997
3997
  children: [
3998
3998
  /* @__PURE__ */ a.jsxs("s", { children: [
3999
3999
  /* @__PURE__ */ a.jsx("i", { "data-icon": "F021", onClick: () => m() }),
@@ -4003,7 +4003,7 @@ const Ho = (e) => {
4003
4003
  /* @__PURE__ */ a.jsx(
4004
4004
  "div",
4005
4005
  {
4006
- children: p.map((k, w) => /* @__PURE__ */ a.jsx(
4006
+ children: C.map((k, w) => /* @__PURE__ */ a.jsx(
4007
4007
  "span",
4008
4008
  {
4009
4009
  onClick: () => {
@@ -4036,10 +4036,10 @@ function Bn(e) {
4036
4036
  };
4037
4037
  const g = (j) => {
4038
4038
  e.onSave && e.onSave({ value: j.target.innerText, name: e.name });
4039
- }, p = {};
4040
- p.field = "notes", e.className && (p.className = e.className);
4041
- const C = {};
4042
- return d && (C.placeholder = d), _ ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...p, children: [
4039
+ }, C = {};
4040
+ C.field = "notes", e.className && (C.className = e.className);
4041
+ const p = {};
4042
+ return d && (p.placeholder = d), p.edit = (i && c) + "", p.open = r + "", _ ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...C, children: [
4043
4043
  t(),
4044
4044
  /* @__PURE__ */ a.jsx(
4045
4045
  "dd",
@@ -4048,9 +4048,7 @@ function Bn(e) {
4048
4048
  onInput: u,
4049
4049
  onBlur: g,
4050
4050
  contentEditable: i && c ? "plaintext-only" : "false",
4051
- "data-edit": (i && c) + "",
4052
- "data-open": "" + r,
4053
- ...C,
4051
+ ...p,
4054
4052
  onDoubleClick: x,
4055
4053
  suppressContentEditableWarning: !0,
4056
4054
  children: e.value
@@ -4075,7 +4073,7 @@ function Dt({
4075
4073
  after: x,
4076
4074
  view: g
4077
4075
  }) {
4078
- let p = () => s ? /* @__PURE__ */ a.jsx("dt", { children: s }) : "", C = () => i ? /* @__PURE__ */ a.jsx("em", { children: i }) : "";
4076
+ let C = () => s ? /* @__PURE__ */ a.jsx("dt", { children: s }) : "", p = () => i ? /* @__PURE__ */ a.jsx("em", { children: i }) : "";
4079
4077
  r = r !== void 0 ? r : !0, t = t !== void 0 ? t : !0, l = !!(l && (_ === "" || _ === void 0)) && !(r && t), d = d !== void 0 ? d : "", n = n !== void 0 ? n : 99;
4080
4078
  let k = !1, w = (O) => {
4081
4079
  e && e({ value: O.target.textContent, name: m });
@@ -4102,7 +4100,7 @@ function Dt({
4102
4100
  L.field = "input", u && (L.className = u);
4103
4101
  let P = {};
4104
4102
  return r && t ? (P.edit = "true", P.contentEditable = "plaintext-only") : P.contentEditable = "false", d && (P.placeholder = d), x && (P.after = x), l ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...L, children: [
4105
- p(),
4103
+ C(),
4106
4104
  /* @__PURE__ */ a.jsx(
4107
4105
  "dd",
4108
4106
  {
@@ -4115,7 +4113,7 @@ function Dt({
4115
4113
  children: _
4116
4114
  }
4117
4115
  ),
4118
- C()
4116
+ p()
4119
4117
  ] });
4120
4118
  }
4121
4119
  function On({
@@ -4149,10 +4147,10 @@ function On({
4149
4147
  }).catch((k) => {
4150
4148
  });
4151
4149
  };
4152
- const p = {};
4153
- p.field = "password", s && (p.className = s);
4154
4150
  const C = {};
4155
- return r && (C.placeholder = r), /* @__PURE__ */ a.jsxs("dl", { ...p, children: [
4151
+ C.field = "password", s && (C.className = s);
4152
+ const p = {};
4153
+ return r && (p.placeholder = r), /* @__PURE__ */ a.jsxs("dl", { ...C, children: [
4156
4154
  i ? /* @__PURE__ */ a.jsx("dt", { children: i }) : "",
4157
4155
  /* @__PURE__ */ a.jsx(
4158
4156
  "dd",
@@ -4162,7 +4160,7 @@ function On({
4162
4160
  onKeyDown: x,
4163
4161
  onBlur: fe.Blur,
4164
4162
  contentEditable: l && _ ? "plaintext-only" : "false",
4165
- ...C,
4163
+ ...p,
4166
4164
  suppressContentEditableWarning: !0,
4167
4165
  children: e
4168
4166
  }
@@ -5569,7 +5567,7 @@ function Mt({
5569
5567
  className: g = ""
5570
5568
  }) {
5571
5569
  _ = _ !== void 0 ? _ : !0, d = d !== void 0 ? d : !0, l = !!(l && (e === "" || e === void 0)) && !(_ && d), h.useRef(null);
5572
- let C = "+_(___) ___-__-__", j = !0, k = 0, w = (Z, D) => {
5570
+ let p = "+_(___) ___-__-__", j = !0, k = 0, w = (Z, D) => {
5573
5571
  let U = document.createRange(), Y = window.getSelection();
5574
5572
  U.setStart(D.childNodes[0], Z), U.collapse(!0), Y.removeAllRanges(), Y.addRange(U), D.focus();
5575
5573
  }, T = (Z) => {
@@ -5582,16 +5580,16 @@ function Mt({
5582
5580
  Y === "" && (j = !0);
5583
5581
  let ze = Y.split(""), ne = "";
5584
5582
  ze.forEach((Ge) => {
5585
- j && (ne += Ge, ut[ne] !== void 0 && j ? (j = !1, C = ut[ne].mask.replace(new RegExp("[0-9]", "g"), "_"), U = ut[ne].code) : (j && (k = ("" + ne).length, C = `+${ne}_(___) ___-__-__`.replace(
5583
+ j && (ne += Ge, ut[ne] !== void 0 && j ? (j = !1, p = ut[ne].mask.replace(new RegExp("[0-9]", "g"), "_"), U = ut[ne].code) : (j && (k = ("" + ne).length, p = `+${ne}_(___) ___-__-__`.replace(
5586
5584
  new RegExp("[0-9]", "g"),
5587
5585
  "_"
5588
- ), U = ""), k > ("" + ne).length && (j = !0, C = `+${ne}_(___) ___-__-__`.replace(
5586
+ ), U = ""), k > ("" + ne).length && (j = !0, p = `+${ne}_(___) ___-__-__`.replace(
5589
5587
  new RegExp("[0-9]", "g"),
5590
5588
  "_"
5591
5589
  ), U = "")));
5592
5590
  });
5593
- let Re = C.replace(/\D/g, "");
5594
- return Re.length >= Y.length && (Y = Re), { q: C.replace(/[_\d]/g, function() {
5591
+ let Re = p.replace(/\D/g, "");
5592
+ return Re.length >= Y.length && (Y = Re), { q: p.replace(/[_\d]/g, function() {
5595
5593
  return Y.charAt(D++) || "_";
5596
5594
  }), i: D, v: Y, f: U };
5597
5595
  }, y = (Z) => {
@@ -5604,7 +5602,7 @@ function Mt({
5604
5602
  );
5605
5603
  }, L = R(e), P = (Z) => {
5606
5604
  let D = R(Z.target.textContent);
5607
- Z.target.textContent = D.q, D.i = D.q.lastIndexOf(D.v.substr(-1)), D.i < D.q.length && D.q !== C ? D.i++ : D.i = D.q.indexOf("_"), w(D.i, Z.target), t && t({ value: D.q.replace(/\D/g, ""), name: r });
5605
+ Z.target.textContent = D.q, D.i = D.q.lastIndexOf(D.v.substr(-1)), D.i < D.q.length && D.q !== p ? D.i++ : D.i = D.q.indexOf("_"), w(D.i, Z.target), t && t({ value: D.q.replace(/\D/g, ""), name: r });
5608
5606
  }, O = (Z) => {
5609
5607
  Z.key === "Enter" && Z.preventDefault();
5610
5608
  };
@@ -5685,7 +5683,7 @@ function Ft({
5685
5683
  }) {
5686
5684
  const x = h.useRef();
5687
5685
  s = !!(s && (i === "" || l[i].n === void 0)) && !(n && r);
5688
- let p = i !== void 0 && i !== "" ? l[i].n : i, C = (T) => {
5686
+ let C = i !== void 0 && i !== "" ? l[i].n : i, p = (T) => {
5689
5687
  x.current.textContent = l[T].n, c && c({ value: T, name: d });
5690
5688
  }, j = (T) => {
5691
5689
  if (!(n && r))
@@ -5697,7 +5695,7 @@ function Ft({
5697
5695
  qo,
5698
5696
  {
5699
5697
  parent: R,
5700
- onValue: C,
5698
+ onValue: p,
5701
5699
  view: m,
5702
5700
  options: l
5703
5701
  },
@@ -5707,7 +5705,7 @@ function Ft({
5707
5705
  }, k = { field: "select" }, w = { onClick: j };
5708
5706
  return n && r && (w.edit = "true"), _ && (w.placeholder = _), u && (w.after = u), s ? "" : /* @__PURE__ */ a.jsxs("dl", { ...k, children: [
5709
5707
  e && /* @__PURE__ */ a.jsx("dt", { children: e }),
5710
- /* @__PURE__ */ a.jsx("dd", { ...w, ref: x, children: p }),
5708
+ /* @__PURE__ */ a.jsx("dd", { ...w, ref: x, children: C }),
5711
5709
  t && /* @__PURE__ */ a.jsx("em", { children: t })
5712
5710
  ] });
5713
5711
  }
@@ -5759,13 +5757,13 @@ function Lt(e) {
5759
5757
  ), m = (g) => {
5760
5758
  if (!(r && s))
5761
5759
  return;
5762
- const p = g.target.getBoundingClientRect();
5760
+ const C = g.target.getBoundingClientRect();
5763
5761
  we.setListener(
5764
5762
  "form",
5765
5763
  /* @__PURE__ */ a.jsx(
5766
5764
  Jo,
5767
5765
  {
5768
- parent: p,
5766
+ parent: C,
5769
5767
  onValue: _,
5770
5768
  view: e.view,
5771
5769
  options: e.options
@@ -5848,8 +5846,8 @@ function yt({
5848
5846
  after: m = "",
5849
5847
  view: x,
5850
5848
  module: g,
5851
- item: p,
5852
- className: C = ""
5849
+ item: C,
5850
+ className: p = ""
5853
5851
  }) {
5854
5852
  let j = {};
5855
5853
  switch (e) {
@@ -5867,11 +5865,11 @@ function yt({
5867
5865
  onValue: n,
5868
5866
  name: r,
5869
5867
  placeholder: s,
5870
- className: C
5868
+ className: p
5871
5869
  }
5872
5870
  );
5873
5871
  case "Select":
5874
- return p && (j = re.getSelect(parseInt(p)) ? re.getSelect(parseInt(p)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ a.jsx(
5872
+ return C && (j = re.getSelect(parseInt(C)) ? re.getSelect(parseInt(C)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ a.jsx(
5875
5873
  Ft,
5876
5874
  {
5877
5875
  title: i,
@@ -5884,7 +5882,7 @@ function yt({
5884
5882
  onValue: n,
5885
5883
  name: r,
5886
5884
  placeholder: s,
5887
- className: C,
5885
+ className: p,
5888
5886
  options: j
5889
5887
  }
5890
5888
  );
@@ -5902,7 +5900,7 @@ function yt({
5902
5900
  onValue: n,
5903
5901
  name: r,
5904
5902
  placeholder: s,
5905
- className: C,
5903
+ className: p,
5906
5904
  options: j
5907
5905
  }
5908
5906
  );
@@ -5920,7 +5918,7 @@ function yt({
5920
5918
  onValue: n,
5921
5919
  name: r,
5922
5920
  placeholder: s,
5923
- className: C
5921
+ className: p
5924
5922
  }
5925
5923
  );
5926
5924
  case "Phone":
@@ -5937,7 +5935,7 @@ function yt({
5937
5935
  onValue: n,
5938
5936
  name: r,
5939
5937
  placeholder: s,
5940
- className: C
5938
+ className: p
5941
5939
  }
5942
5940
  );
5943
5941
  case "Number":
@@ -5954,7 +5952,7 @@ function yt({
5954
5952
  onValue: n,
5955
5953
  name: r,
5956
5954
  placeholder: s,
5957
- className: C
5955
+ className: p
5958
5956
  }
5959
5957
  );
5960
5958
  case "Money":
@@ -5971,7 +5969,7 @@ function yt({
5971
5969
  onValue: n,
5972
5970
  name: r,
5973
5971
  placeholder: s,
5974
- className: C
5972
+ className: p
5975
5973
  }
5976
5974
  );
5977
5975
  case "Modal":
@@ -5988,7 +5986,7 @@ function yt({
5988
5986
  onValue: n,
5989
5987
  name: r || "",
5990
5988
  placeholder: s,
5991
- className: C,
5989
+ className: p,
5992
5990
  options: j,
5993
5991
  module: g || ""
5994
5992
  }
@@ -6149,10 +6147,10 @@ const Xo = (e) => {
6149
6147
  }
6150
6148
  }
6151
6149
  e.onValue(n.h + ":" + n.m);
6152
- }, [p, C] = h.useState(!0), j = () => {
6153
- C(!1), e.onSave(n.h + ":" + n.m);
6150
+ }, [C, p] = h.useState(!0), j = () => {
6151
+ p(!1), e.onSave(n.h + ":" + n.m);
6154
6152
  }, k = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, w = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
6155
- return /* @__PURE__ */ a.jsx(a.Fragment, { children: p ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
6153
+ return /* @__PURE__ */ a.jsx(a.Fragment, { children: C ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
6156
6154
  /* @__PURE__ */ a.jsx(
6157
6155
  "div",
6158
6156
  {