@elcrm/form 0.0.50 → 0.0.52

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
@@ -1,6 +1,6 @@
1
- import q, { forwardRef as Jt, useEffect as Zt } from "react";
1
+ import K, { forwardRef as Jt, useEffect as Zt } from "react";
2
2
  import { createPortal as Mt } from "react-dom";
3
- import './index.css';const Vt = "0.0.50", Xt = {
3
+ import './index.css';const Vt = "0.0.51", Xt = {
4
4
  version: Vt
5
5
  };
6
6
  var Tt = { exports: {} }, mt = {};
@@ -17,7 +17,7 @@ var $t;
17
17
  function Qt() {
18
18
  if ($t) return mt;
19
19
  $t = 1;
20
- var n = q, _ = Symbol.for("react.element"), u = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, v = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, C = { key: !0, ref: !0, __self: !0, __source: !0 };
20
+ var n = K, _ = Symbol.for("react.element"), u = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, v = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, C = { key: !0, ref: !0, __self: !0, __source: !0 };
21
21
  function E(x, s, h) {
22
22
  var o, c = {}, b = null, S = null;
23
23
  h !== void 0 && (b = "" + h), s.key !== void 0 && (b = "" + s.key), s.ref !== void 0 && (S = s.ref);
@@ -40,7 +40,7 @@ var yt = {};
40
40
  var At;
41
41
  function er() {
42
42
  return At || (At = 1, process.env.NODE_ENV !== "production" && function() {
43
- var n = q, _ = Symbol.for("react.element"), u = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), E = Symbol.for("react.provider"), x = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), o = Symbol.for("react.suspense_list"), c = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), I = Symbol.iterator, Y = "@@iterator";
43
+ var n = K, _ = Symbol.for("react.element"), u = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), E = Symbol.for("react.provider"), x = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), o = Symbol.for("react.suspense_list"), c = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), I = Symbol.iterator, Y = "@@iterator";
44
44
  function D(e) {
45
45
  if (e === null || typeof e != "object")
46
46
  return null;
@@ -65,10 +65,10 @@ function er() {
65
65
  m.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, m);
66
66
  }
67
67
  }
68
- var M = !1, K = !1, W = !1, B = !1, U = !1, P;
68
+ var M = !1, q = !1, W = !1, B = !1, U = !1, P;
69
69
  P = Symbol.for("react.module.reference");
70
70
  function N(e) {
71
- return !!(typeof e == "string" || typeof e == "function" || e === d || e === C || U || e === v || e === h || e === o || B || e === S || M || K || W || typeof e == "object" && e !== null && (e.$$typeof === b || e.$$typeof === c || e.$$typeof === E || e.$$typeof === x || e.$$typeof === s || // This needs to include all possible module reference object
71
+ return !!(typeof e == "string" || typeof e == "function" || e === d || e === C || U || e === v || e === h || e === o || B || e === S || M || q || W || typeof e == "object" && e !== null && (e.$$typeof === b || e.$$typeof === c || e.$$typeof === E || e.$$typeof === x || e.$$typeof === s || // This needs to include all possible module reference object
72
72
  // types supported by any Flight configuration anywhere since
73
73
  // we don't know which Flight build this will end up being used
74
74
  // with.
@@ -207,8 +207,8 @@ function er() {
207
207
  }
208
208
  var de = !1, re;
209
209
  {
210
- var qe = typeof WeakMap == "function" ? WeakMap : Map;
211
- re = new qe();
210
+ var Ke = typeof WeakMap == "function" ? WeakMap : Map;
211
+ re = new Ke();
212
212
  }
213
213
  function je(e, t) {
214
214
  if (!e || de)
@@ -281,7 +281,7 @@ function er() {
281
281
  var Z = e ? e.displayName || e.name : "", z = Z ? te(Z) : "";
282
282
  return typeof e == "function" && re.set(e, z), z;
283
283
  }
284
- function Ke(e, t, r) {
284
+ function qe(e, t, r) {
285
285
  return je(e, !1);
286
286
  }
287
287
  function Ye(e) {
@@ -304,7 +304,7 @@ function er() {
304
304
  if (typeof e == "object")
305
305
  switch (e.$$typeof) {
306
306
  case s:
307
- return Ke(e.render);
307
+ return qe(e.render);
308
308
  case c:
309
309
  return ne(e.type, t, r);
310
310
  case b: {
@@ -638,7 +638,7 @@ function kn({ name: n, value: _, title: u, style: d, className: v }) {
638
638
  /* @__PURE__ */ g.jsx("dd", {})
639
639
  ] });
640
640
  }
641
- const tr = "_l_qo8dp_12", rr = "_f_qo8dp_36", nr = "_n_qo8dp_54", ar = "_w_qo8dp_60", or = "_t_qo8dp_70", _r = "_g_qo8dp_75", ir = "_h_qo8dp_79", _e = {
641
+ const tr = "_l_8f8gj_1", rr = "_f_8f8gj_25", nr = "_n_8f8gj_43", ar = "_w_8f8gj_49", or = "_t_8f8gj_59", _r = "_g_8f8gj_65", ir = "_h_8f8gj_69", _e = {
642
642
  l: tr,
643
643
  f: rr,
644
644
  n: nr,
@@ -693,7 +693,7 @@ var Bt;
693
693
  function sr() {
694
694
  if (Bt) return vt;
695
695
  Bt = 1;
696
- var n = q, _ = Symbol.for("react.element"), u = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, v = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, C = { key: !0, ref: !0, __self: !0, __source: !0 };
696
+ var n = K, _ = Symbol.for("react.element"), u = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, v = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, C = { key: !0, ref: !0, __self: !0, __source: !0 };
697
697
  function E(x, s, h) {
698
698
  var o, c = {}, b = null, S = null;
699
699
  h !== void 0 && (b = "" + h), s.key !== void 0 && (b = "" + s.key), s.ref !== void 0 && (S = s.ref);
@@ -716,7 +716,7 @@ var kt = {};
716
716
  var Lt;
717
717
  function lr() {
718
718
  return Lt || (Lt = 1, process.env.NODE_ENV !== "production" && function() {
719
- var n = q, _ = Symbol.for("react.element"), u = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), E = Symbol.for("react.provider"), x = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), o = Symbol.for("react.suspense_list"), c = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), I = Symbol.iterator, Y = "@@iterator";
719
+ var n = K, _ = Symbol.for("react.element"), u = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), E = Symbol.for("react.provider"), x = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), o = Symbol.for("react.suspense_list"), c = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), I = Symbol.iterator, Y = "@@iterator";
720
720
  function D(e) {
721
721
  if (e === null || typeof e != "object")
722
722
  return null;
@@ -741,10 +741,10 @@ function lr() {
741
741
  m.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, m);
742
742
  }
743
743
  }
744
- var M = !1, K = !1, W = !1, B = !1, U = !1, P;
744
+ var M = !1, q = !1, W = !1, B = !1, U = !1, P;
745
745
  P = Symbol.for("react.module.reference");
746
746
  function N(e) {
747
- return !!(typeof e == "string" || typeof e == "function" || e === d || e === C || U || e === v || e === h || e === o || B || e === S || M || K || W || typeof e == "object" && e !== null && (e.$$typeof === b || e.$$typeof === c || e.$$typeof === E || e.$$typeof === x || e.$$typeof === s || // This needs to include all possible module reference object
747
+ return !!(typeof e == "string" || typeof e == "function" || e === d || e === C || U || e === v || e === h || e === o || B || e === S || M || q || W || typeof e == "object" && e !== null && (e.$$typeof === b || e.$$typeof === c || e.$$typeof === E || e.$$typeof === x || e.$$typeof === s || // This needs to include all possible module reference object
748
748
  // types supported by any Flight configuration anywhere since
749
749
  // we don't know which Flight build this will end up being used
750
750
  // with.
@@ -883,8 +883,8 @@ function lr() {
883
883
  }
884
884
  var de = !1, re;
885
885
  {
886
- var qe = typeof WeakMap == "function" ? WeakMap : Map;
887
- re = new qe();
886
+ var Ke = typeof WeakMap == "function" ? WeakMap : Map;
887
+ re = new Ke();
888
888
  }
889
889
  function je(e, t) {
890
890
  if (!e || de)
@@ -957,7 +957,7 @@ function lr() {
957
957
  var Z = e ? e.displayName || e.name : "", z = Z ? te(Z) : "";
958
958
  return typeof e == "function" && re.set(e, z), z;
959
959
  }
960
- function Ke(e, t, r) {
960
+ function qe(e, t, r) {
961
961
  return je(e, !1);
962
962
  }
963
963
  function Ye(e) {
@@ -980,7 +980,7 @@ function lr() {
980
980
  if (typeof e == "object")
981
981
  switch (e.$$typeof) {
982
982
  case s:
983
- return Ke(e.render);
983
+ return qe(e.render);
984
984
  case c:
985
985
  return ne(e.type, t, r);
986
986
  case b: {
@@ -1316,8 +1316,8 @@ const cr = "_notice_13j98_2", ur = "_error_13j98_11", dr = "_success_13j98_14",
1316
1316
  };
1317
1317
  let Le = {};
1318
1318
  function gt({ data: n }) {
1319
- let [_, u] = q.useState("show");
1320
- q.useEffect(() => {
1319
+ let [_, u] = K.useState("show");
1320
+ K.useEffect(() => {
1321
1321
  n.hide && (setTimeout(function() {
1322
1322
  u("hide");
1323
1323
  }, 1800), setTimeout(function() {
@@ -1349,8 +1349,8 @@ function gt({ data: n }) {
1349
1349
  ] });
1350
1350
  }
1351
1351
  function mr({ data: n }) {
1352
- let [_, u] = q.useState("show");
1353
- return q.useEffect(() => {
1352
+ let [_, u] = K.useState("show");
1353
+ return K.useEffect(() => {
1354
1354
  n.hide && (setTimeout(function() {
1355
1355
  u("hide");
1356
1356
  }, 1800), setTimeout(function() {
@@ -1394,7 +1394,7 @@ pt.success = () => /* @__PURE__ */ Q.jsxs("svg", { viewBox: "0 0 24 24", fill: "
1394
1394
  var Ct;
1395
1395
  ((n) => {
1396
1396
  function _() {
1397
- let [s, h] = q.useState([]);
1397
+ let [s, h] = K.useState([]);
1398
1398
  return Le.set = (o) => {
1399
1399
  h([...s, o]);
1400
1400
  }, Le.del = (o) => {
@@ -1499,7 +1499,7 @@ function wn({
1499
1499
  view: S,
1500
1500
  className: I = ""
1501
1501
  }) {
1502
- h = h !== void 0 ? h : !0, o = o !== void 0 ? o : !0, s = !!(s && (n === "" || n === void 0)) && !(h && o), q.useRef(null);
1502
+ h = h !== void 0 ? h : !0, o = o !== void 0 ? o : !0, s = !!(s && (n === "" || n === void 0)) && !(h && o), K.useRef(null);
1503
1503
  let D = v, R = !0, p = 0, F = (k, y) => {
1504
1504
  let $ = document.createRange(), L = window.getSelection();
1505
1505
  $.setStart(y.childNodes[0], k), $.collapse(!0), L.removeAllRanges(), L.addRange($), y.focus();
@@ -1508,7 +1508,7 @@ function wn({
1508
1508
  window.document.execCommand("insertText", !1, y);
1509
1509
  }).catch((y) => {
1510
1510
  });
1511
- }, K = (k) => {
1511
+ }, q = (k) => {
1512
1512
  let y = 0, $ = "", L = k.replace(/\D/g, "");
1513
1513
  L === "" && (R = !0);
1514
1514
  let se = L.split(""), V = "";
@@ -1527,8 +1527,8 @@ function wn({
1527
1527
  function(y) {
1528
1528
  }
1529
1529
  );
1530
- }, B = K(n), U = (k) => {
1531
- let y = K(k.target.textContent);
1530
+ }, B = q(n), U = (k) => {
1531
+ let y = q(k.target.textContent);
1532
1532
  k.target.textContent = y.q, y.i = y.q.lastIndexOf(y.v.substr(-1)), y.i < y.q.length && y.q !== D ? y.i++ : y.i = y.q.indexOf("_"), F(y.i, k.target), _ && _({ value: y.q.replace(/\D/g, ""), name: d });
1533
1533
  }, P = (k) => {
1534
1534
  k.key === "Enter" && k.preventDefault();
@@ -1579,17 +1579,17 @@ function jn({
1579
1579
  placeholder: s = "",
1580
1580
  className: h
1581
1581
  }) {
1582
- let [o, c] = q.useState(n);
1583
- const b = q.useRef(null), [S, I] = q.useState(!1);
1584
- q.useEffect(() => {
1582
+ let [o, c] = K.useState(n);
1583
+ const b = K.useRef(null), [S, I] = K.useState(!1);
1584
+ K.useEffect(() => {
1585
1585
  c(n);
1586
1586
  }, [n]);
1587
1587
  let Y = (p) => {
1588
1588
  c(p), _ && _({ value: p, name: u });
1589
1589
  }, D = (p) => {
1590
1590
  if (!C || !E) return;
1591
- const F = p.target.getBoundingClientRect(), M = F.left, K = F.top;
1592
- b.position = { x: M, y: K }, I(!0);
1591
+ const F = p.target.getBoundingClientRect(), M = F.left, q = F.top;
1592
+ b.position = { x: M, y: q }, I(!0);
1593
1593
  };
1594
1594
  const R = {};
1595
1595
  return s && (R.placeholder = s), v || /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
@@ -1625,7 +1625,7 @@ const gr = ({ onOpen: n, date: _, onValue: u, position: d }) => {
1625
1625
  }, x = {
1626
1626
  y: parseInt(C.getFullYear()),
1627
1627
  m: parseInt(C.getMonth()) + 1
1628
- }, [s, h] = q.useState(x.y), o = () => {
1628
+ }, [s, h] = K.useState(x.y), o = () => {
1629
1629
  n(!1);
1630
1630
  }, c = () => {
1631
1631
  h(s + 1);
@@ -1741,7 +1741,7 @@ function xn({
1741
1741
  value: p(N.target.textContent) * c,
1742
1742
  name: u
1743
1743
  }), N.target.textContent = p(N.target.textContent), N.target.textContent.length > 0 && F(N.target.textContent.length, N.target);
1744
- }, K = (N) => {
1744
+ }, q = (N) => {
1745
1745
  ee.Blur(N), N.target.textContent === "" && (N.target.textContent = 0), I == null || I({ value: p(N.target.textContent) * c, name: u }), _ == null || _({
1746
1746
  value: p(N.target.textContent) * c,
1747
1747
  name: u
@@ -1771,7 +1771,7 @@ function xn({
1771
1771
  ...P,
1772
1772
  onInput: M,
1773
1773
  onPaste: U,
1774
- onBlur: K,
1774
+ onBlur: q,
1775
1775
  onKeyDown: B,
1776
1776
  onFocus: W,
1777
1777
  contentEditable: x && s ? ee.ContentEditable : "false",
@@ -1801,12 +1801,12 @@ function Cn({
1801
1801
  value: c,
1802
1802
  after: b
1803
1803
  }) {
1804
- let [S, I] = q.useState(
1804
+ let [S, I] = K.useState(
1805
1805
  c === void 0 ? /* @__PURE__ */ new Date() : c
1806
1806
  );
1807
- const Y = q.useRef(null), [D, R] = q.useState(!1);
1807
+ const Y = K.useRef(null), [D, R] = K.useState(!1);
1808
1808
  let p = !u && d;
1809
- q.useEffect(() => {
1809
+ K.useEffect(() => {
1810
1810
  I(c === void 0 ? /* @__PURE__ */ new Date() : c);
1811
1811
  }, [c]);
1812
1812
  let F = (W) => {
@@ -1815,8 +1815,8 @@ function Cn({
1815
1815
  const B = W.target.getBoundingClientRect(), U = B.left, P = B.bottom, N = B.top;
1816
1816
  Y.position = { x: U, b: P, y: N }, R(!0);
1817
1817
  };
1818
- const K = {};
1819
- return C && (K.placeholder = C), p ? /* @__PURE__ */ g.jsx(g.Fragment, {}) : /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
1818
+ const q = {};
1819
+ return C && (q.placeholder = C), p ? /* @__PURE__ */ g.jsx(g.Fragment, {}) : /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
1820
1820
  h ? h() : /* @__PURE__ */ g.jsxs(
1821
1821
  "dl",
1822
1822
  {
@@ -1829,7 +1829,7 @@ function Cn({
1829
1829
  {
1830
1830
  onClick: M,
1831
1831
  className: [_e.f, _e.w].join(" "),
1832
- ...K,
1832
+ ...q,
1833
1833
  "data-edit": (u && d) + "",
1834
1834
  children: [
1835
1835
  xr(S, "dd.mm.yyyy"),
@@ -1876,7 +1876,7 @@ const wr = ({
1876
1876
  y: parseInt(s.getFullYear()),
1877
1877
  d: parseInt(s.getDate()),
1878
1878
  m: parseInt(s.getMonth()) + 1
1879
- }, [c, b] = q.useState({ y: o.y, m: o.m }), S = (k) => {
1879
+ }, [c, b] = K.useState({ y: o.y, m: o.m }), S = (k) => {
1880
1880
  let y = k.getDay();
1881
1881
  return y === 0 && (y = 7), y - 1;
1882
1882
  }, I = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"], Y = c.m - 1, D = new Date(c.y, Y), R = [];
@@ -1890,7 +1890,7 @@ const wr = ({
1890
1890
  W(c.m + 1, c.y);
1891
1891
  }, M = () => {
1892
1892
  W(c.m - 1, c.y);
1893
- }, K = (k) => {
1893
+ }, q = (k) => {
1894
1894
  _(
1895
1895
  c.y + "-" + Ut(2, c.m) + "-" + Ut(2, k)
1896
1896
  ), p();
@@ -1957,7 +1957,7 @@ const wr = ({
1957
1957
  {
1958
1958
  ...B(k),
1959
1959
  ...U(k),
1960
- onClick: () => K(k),
1960
+ onClick: () => q(k),
1961
1961
  children: k
1962
1962
  }
1963
1963
  ) : /* @__PURE__ */ g.jsx("p", { ...B(k), ...U(k), children: k !== 0 ? k : "" }) }, y))
@@ -2027,18 +2027,18 @@ function Sn({
2027
2027
  }, D = (M) => {
2028
2028
  c && M.target.textContent.trim().length >= c && M.key !== "Backspace" && M.preventDefault(), M.key === "Enter" && M.preventDefault();
2029
2029
  }, R = (M) => {
2030
- M.preventDefault(), navigator.clipboard.readText().then((K) => {
2030
+ M.preventDefault(), navigator.clipboard.readText().then((q) => {
2031
2031
  if (c) {
2032
2032
  let W = M.target.textContent.length;
2033
2033
  if (W >= c) return;
2034
- c -= W, K = K.slice(0, c);
2034
+ c -= W, q = q.slice(0, c);
2035
2035
  }
2036
2036
  window.document.execCommand(
2037
2037
  "insertText",
2038
2038
  !1,
2039
- K.replace(/(\r\n|\n|\r)/gm, " ")
2039
+ q.replace(/(\r\n|\n|\r)/gm, " ")
2040
2040
  );
2041
- }).catch((K) => {
2041
+ }).catch((q) => {
2042
2042
  });
2043
2043
  };
2044
2044
  if (E) return /* @__PURE__ */ g.jsx(g.Fragment, {});
@@ -3470,14 +3470,14 @@ function Rn({
3470
3470
  view: S,
3471
3471
  className: I = ""
3472
3472
  }) {
3473
- h = h !== void 0 ? h : !0, o = o !== void 0 ? o : !0, s = !!(s && (n === "" || n === void 0)) && !(h && o), q.useRef(null);
3473
+ h = h !== void 0 ? h : !0, o = o !== void 0 ? o : !0, s = !!(s && (n === "" || n === void 0)) && !(h && o), K.useRef(null);
3474
3474
  let D = "+_(___) ___-__-__", R = !0, p = 0, F = (k, y) => {
3475
3475
  let $ = document.createRange(), L = window.getSelection();
3476
3476
  $.setStart(y.childNodes[0], k), $.collapse(!0), L.removeAllRanges(), L.addRange($), y.focus();
3477
3477
  }, M = (k) => {
3478
3478
  let y = W(k.target.textContent);
3479
3479
  k.target.textContent = y.q, y.i = y.q.lastIndexOf(y.v.substr(-1)), y.i < y.q.length && y.q !== D ? y.i++ : y.i = y.q.indexOf("_"), F(y.i, k.target), _ && _({ value: y.q.replace(/\D/g, ""), name: d || "" });
3480
- }, K = (k) => {
3480
+ }, q = (k) => {
3481
3481
  k.preventDefault(), navigator.clipboard.readText().then((y) => {
3482
3482
  window.document.execCommand("insertText", !1, y);
3483
3483
  }).catch((y) => {
@@ -3527,12 +3527,12 @@ function Rn({
3527
3527
  children: /* @__PURE__ */ g.jsx(
3528
3528
  "div",
3529
3529
  {
3530
- onPaste: K,
3530
+ onPaste: q,
3531
3531
  onInput: M,
3532
3532
  onKeyDown: P,
3533
3533
  onContextMenu: B,
3534
3534
  onBlur: N,
3535
- inputmode: "tel",
3535
+ inputMode: "tel",
3536
3536
  suppressContentEditableWarning: !0,
3537
3537
  ...G,
3538
3538
  children: U.q
@@ -3584,8 +3584,8 @@ function En({
3584
3584
  });
3585
3585
  };
3586
3586
  if (!(h && o) && !x || !(h && o) && R) return "";
3587
- const K = {};
3588
- v && (K.placeholder = v), h && o && (K.edit = "");
3587
+ const q = {};
3588
+ v && (q.placeholder = v), h && o && (q.edit = "");
3589
3589
  const W = (B) => {
3590
3590
  ee.Blur(B), b == null || b({ value: B.target.textContent.trim(), name: u });
3591
3591
  };
@@ -3604,10 +3604,10 @@ function En({
3604
3604
  onInput: p,
3605
3605
  onKeyDown: F,
3606
3606
  spellCheck: I,
3607
- inputmode: d,
3607
+ inputMode: d || "text",
3608
3608
  contentEditable: h && o ? ee.ContentEditable : "false",
3609
3609
  suppressContentEditableWarning: !0,
3610
- ...K,
3610
+ ...q,
3611
3611
  children: n
3612
3612
  }
3613
3613
  )
@@ -3641,7 +3641,7 @@ function On({
3641
3641
  if (P.which === 17 || P.which === 91) return p = !0;
3642
3642
  P.key !== "Backspace" && (P.target.textContent.length === d && P.preventDefault(), P.key === "Enter" && P.preventDefault(), isNaN(P.key) && P.preventDefault());
3643
3643
  }
3644
- }, K = (P) => {
3644
+ }, q = (P) => {
3645
3645
  if (P.which === 17 || P.which === 91) return p = !1;
3646
3646
  }, W = (P) => {
3647
3647
  P.preventDefault(), navigator.clipboard.readText().then((N) => {
@@ -3672,7 +3672,7 @@ function On({
3672
3672
  onInput: F,
3673
3673
  onBlur: B,
3674
3674
  onKeyDown: M,
3675
- onKeyUp: K,
3675
+ onKeyUp: q,
3676
3676
  spellCheck: "true",
3677
3677
  contentEditable: v && u ? ee.ContentEditable : "false",
3678
3678
  suppressContentEditableWarning: !0,
@@ -3693,11 +3693,11 @@ var Pt = { exports: {} }, ht = {};
3693
3693
  * This source code is licensed under the MIT license found in the
3694
3694
  * LICENSE file in the root directory of this source tree.
3695
3695
  */
3696
- var qt;
3696
+ var Kt;
3697
3697
  function Cr() {
3698
- if (qt) return ht;
3699
- qt = 1;
3700
- var n = q, _ = Symbol.for("react.element"), u = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, v = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, C = { key: !0, ref: !0, __self: !0, __source: !0 };
3698
+ if (Kt) return ht;
3699
+ Kt = 1;
3700
+ var n = K, _ = Symbol.for("react.element"), u = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, v = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, C = { key: !0, ref: !0, __self: !0, __source: !0 };
3701
3701
  function E(x, s, h) {
3702
3702
  var o, c = {}, b = null, S = null;
3703
3703
  h !== void 0 && (b = "" + h), s.key !== void 0 && (b = "" + s.key), s.ref !== void 0 && (S = s.ref);
@@ -3717,10 +3717,10 @@ var wt = {};
3717
3717
  * This source code is licensed under the MIT license found in the
3718
3718
  * LICENSE file in the root directory of this source tree.
3719
3719
  */
3720
- var Kt;
3720
+ var qt;
3721
3721
  function Sr() {
3722
- return Kt || (Kt = 1, process.env.NODE_ENV !== "production" && function() {
3723
- var n = q, _ = Symbol.for("react.element"), u = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), E = Symbol.for("react.provider"), x = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), o = Symbol.for("react.suspense_list"), c = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), I = Symbol.iterator, Y = "@@iterator";
3722
+ return qt || (qt = 1, process.env.NODE_ENV !== "production" && function() {
3723
+ var n = K, _ = Symbol.for("react.element"), u = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), E = Symbol.for("react.provider"), x = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), o = Symbol.for("react.suspense_list"), c = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), I = Symbol.iterator, Y = "@@iterator";
3724
3724
  function D(e) {
3725
3725
  if (e === null || typeof e != "object")
3726
3726
  return null;
@@ -3745,10 +3745,10 @@ function Sr() {
3745
3745
  m.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, m);
3746
3746
  }
3747
3747
  }
3748
- var M = !1, K = !1, W = !1, B = !1, U = !1, P;
3748
+ var M = !1, q = !1, W = !1, B = !1, U = !1, P;
3749
3749
  P = Symbol.for("react.module.reference");
3750
3750
  function N(e) {
3751
- return !!(typeof e == "string" || typeof e == "function" || e === d || e === C || U || e === v || e === h || e === o || B || e === S || M || K || W || typeof e == "object" && e !== null && (e.$$typeof === b || e.$$typeof === c || e.$$typeof === E || e.$$typeof === x || e.$$typeof === s || // This needs to include all possible module reference object
3751
+ return !!(typeof e == "string" || typeof e == "function" || e === d || e === C || U || e === v || e === h || e === o || B || e === S || M || q || W || typeof e == "object" && e !== null && (e.$$typeof === b || e.$$typeof === c || e.$$typeof === E || e.$$typeof === x || e.$$typeof === s || // This needs to include all possible module reference object
3752
3752
  // types supported by any Flight configuration anywhere since
3753
3753
  // we don't know which Flight build this will end up being used
3754
3754
  // with.
@@ -3887,8 +3887,8 @@ function Sr() {
3887
3887
  }
3888
3888
  var de = !1, re;
3889
3889
  {
3890
- var qe = typeof WeakMap == "function" ? WeakMap : Map;
3891
- re = new qe();
3890
+ var Ke = typeof WeakMap == "function" ? WeakMap : Map;
3891
+ re = new Ke();
3892
3892
  }
3893
3893
  function je(e, t) {
3894
3894
  if (!e || de)
@@ -3961,7 +3961,7 @@ function Sr() {
3961
3961
  var Z = e ? e.displayName || e.name : "", z = Z ? te(Z) : "";
3962
3962
  return typeof e == "function" && re.set(e, z), z;
3963
3963
  }
3964
- function Ke(e, t, r) {
3964
+ function qe(e, t, r) {
3965
3965
  return je(e, !1);
3966
3966
  }
3967
3967
  function Ye(e) {
@@ -3984,7 +3984,7 @@ function Sr() {
3984
3984
  if (typeof e == "object")
3985
3985
  switch (e.$$typeof) {
3986
3986
  case s:
3987
- return Ke(e.render);
3987
+ return qe(e.render);
3988
3988
  case c:
3989
3989
  return ne(e.type, t, r);
3990
3990
  case b: {
@@ -4309,7 +4309,7 @@ React keys must be passed directly to JSX without using spread:
4309
4309
  }
4310
4310
  process.env.NODE_ENV === "production" ? Pt.exports = Cr() : Pt.exports = Sr();
4311
4311
  var H = Pt.exports;
4312
- const Rr = "_shake_oqfdb_1", Er = "_modal_oqfdb_79", Or = "_sa_oqfdb_89", Tr = "_ss_oqfdb_94", Dr = "_sm_oqfdb_98", Pr = "_sl_oqfdb_102", Nr = "_sx_oqfdb_106", Fr = "_sf_oqfdb_110", Ir = "_o_oqfdb_116", Mr = "_b_oqfdb_28", $r = "_w_oqfdb_15", Ar = "_h_oqfdb_146", Br = "_l_oqfdb_160", Lr = "_t_oqfdb_197", Wr = "_x_oqfdb_201", Ur = "_s_oqfdb_89", qr = "_c_oqfdb_219", Kr = "_f_oqfdb_224", Yr = "_r__oqfdb_235", Gr = "_c__oqfdb_250", zr = "_g_oqfdb_259", Hr = "_m_oqfdb_79", ie = {
4312
+ const Rr = "_shake_oqfdb_1", Er = "_modal_oqfdb_79", Or = "_sa_oqfdb_89", Tr = "_ss_oqfdb_94", Dr = "_sm_oqfdb_98", Pr = "_sl_oqfdb_102", Nr = "_sx_oqfdb_106", Fr = "_sf_oqfdb_110", Ir = "_o_oqfdb_116", Mr = "_b_oqfdb_28", $r = "_w_oqfdb_15", Ar = "_h_oqfdb_146", Br = "_l_oqfdb_160", Lr = "_t_oqfdb_197", Wr = "_x_oqfdb_201", Ur = "_s_oqfdb_89", Kr = "_c_oqfdb_219", qr = "_f_oqfdb_224", Yr = "_r__oqfdb_235", Gr = "_c__oqfdb_250", zr = "_g_oqfdb_259", Hr = "_m_oqfdb_79", ie = {
4313
4313
  shake: Rr,
4314
4314
  modal: Er,
4315
4315
  sa: Or,
@@ -4326,8 +4326,8 @@ const Rr = "_shake_oqfdb_1", Er = "_modal_oqfdb_79", Or = "_sa_oqfdb_89", Tr = "
4326
4326
  t: Lr,
4327
4327
  x: Wr,
4328
4328
  s: Ur,
4329
- c: qr,
4330
- f: Kr,
4329
+ c: Kr,
4330
+ f: qr,
4331
4331
  r_: Yr,
4332
4332
  c_: Gr,
4333
4333
  g: zr,
@@ -4406,7 +4406,7 @@ var Gt;
4406
4406
  function tn() {
4407
4407
  if (Gt) return bt;
4408
4408
  Gt = 1;
4409
- var n = q, _ = Symbol.for("react.element"), u = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, v = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, C = { key: !0, ref: !0, __self: !0, __source: !0 };
4409
+ var n = K, _ = Symbol.for("react.element"), u = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, v = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, C = { key: !0, ref: !0, __self: !0, __source: !0 };
4410
4410
  function E(x, s, h) {
4411
4411
  var o, c = {}, b = null, S = null;
4412
4412
  h !== void 0 && (b = "" + h), s.key !== void 0 && (b = "" + s.key), s.ref !== void 0 && (S = s.ref);
@@ -4429,7 +4429,7 @@ var jt = {};
4429
4429
  var zt;
4430
4430
  function rn() {
4431
4431
  return zt || (zt = 1, process.env.NODE_ENV !== "production" && function() {
4432
- var n = q, _ = Symbol.for("react.element"), u = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), E = Symbol.for("react.provider"), x = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), o = Symbol.for("react.suspense_list"), c = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), I = Symbol.iterator, Y = "@@iterator";
4432
+ var n = K, _ = Symbol.for("react.element"), u = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), E = Symbol.for("react.provider"), x = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), o = Symbol.for("react.suspense_list"), c = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), I = Symbol.iterator, Y = "@@iterator";
4433
4433
  function D(e) {
4434
4434
  if (e === null || typeof e != "object")
4435
4435
  return null;
@@ -4454,10 +4454,10 @@ function rn() {
4454
4454
  m.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, m);
4455
4455
  }
4456
4456
  }
4457
- var M = !1, K = !1, W = !1, B = !1, U = !1, P;
4457
+ var M = !1, q = !1, W = !1, B = !1, U = !1, P;
4458
4458
  P = Symbol.for("react.module.reference");
4459
4459
  function N(e) {
4460
- return !!(typeof e == "string" || typeof e == "function" || e === d || e === C || U || e === v || e === h || e === o || B || e === S || M || K || W || typeof e == "object" && e !== null && (e.$$typeof === b || e.$$typeof === c || e.$$typeof === E || e.$$typeof === x || e.$$typeof === s || // This needs to include all possible module reference object
4460
+ return !!(typeof e == "string" || typeof e == "function" || e === d || e === C || U || e === v || e === h || e === o || B || e === S || M || q || W || typeof e == "object" && e !== null && (e.$$typeof === b || e.$$typeof === c || e.$$typeof === E || e.$$typeof === x || e.$$typeof === s || // This needs to include all possible module reference object
4461
4461
  // types supported by any Flight configuration anywhere since
4462
4462
  // we don't know which Flight build this will end up being used
4463
4463
  // with.
@@ -4596,8 +4596,8 @@ function rn() {
4596
4596
  }
4597
4597
  var de = !1, re;
4598
4598
  {
4599
- var qe = typeof WeakMap == "function" ? WeakMap : Map;
4600
- re = new qe();
4599
+ var Ke = typeof WeakMap == "function" ? WeakMap : Map;
4600
+ re = new Ke();
4601
4601
  }
4602
4602
  function je(e, t) {
4603
4603
  if (!e || de)
@@ -4670,7 +4670,7 @@ function rn() {
4670
4670
  var Z = e ? e.displayName || e.name : "", z = Z ? te(Z) : "";
4671
4671
  return typeof e == "function" && re.set(e, z), z;
4672
4672
  }
4673
- function Ke(e, t, r) {
4673
+ function qe(e, t, r) {
4674
4674
  return je(e, !1);
4675
4675
  }
4676
4676
  function Ye(e) {
@@ -4693,7 +4693,7 @@ function rn() {
4693
4693
  if (typeof e == "object")
4694
4694
  switch (e.$$typeof) {
4695
4695
  case s:
4696
- return Ke(e.render);
4696
+ return qe(e.render);
4697
4697
  case c:
4698
4698
  return ne(e.type, t, r);
4699
4699
  case b: {
@@ -5041,7 +5041,7 @@ const nn = "_btn_1k1b3_1", an = "_confirm_1k1b3_15", on = "_cancel_1k1b3_20", _n
5041
5041
  onRef: o,
5042
5042
  awaitText: c = "Ожидайте"
5043
5043
  }) => {
5044
- let [b, S] = q.useState(!1);
5044
+ let [b, S] = K.useState(!1);
5045
5045
  const I = (D) => {
5046
5046
  if (n) return n();
5047
5047
  b || (_ ? (S(!0), _(S)) : D.preventDefault());
@@ -5078,7 +5078,7 @@ var Rt;
5078
5078
  function _({
5079
5079
  import_modules: o
5080
5080
  }) {
5081
- let [c, b] = q.useState([]);
5081
+ let [c, b] = K.useState([]);
5082
5082
  return Ae.x = (S) => {
5083
5083
  b(S ? c.filter((I) => I.key !== S) : []);
5084
5084
  }, Zt(() => {
@@ -5101,8 +5101,8 @@ var Rt;
5101
5101
  }
5102
5102
  n.Open = d;
5103
5103
  function v({ type: o, name: c, params: b }) {
5104
- let [S, I] = q.useState(null);
5105
- return q.useEffect(() => {
5104
+ let [S, I] = K.useState(null);
5105
+ return K.useEffect(() => {
5106
5106
  Ae.i ? Ae.i(`${o}/modal/${c}.tsx`).then((Y) => {
5107
5107
  I(Y.default.Icon(b));
5108
5108
  }) : Yt()(`${o}/modal/${c}.tsx`).then((Y) => {
@@ -5149,7 +5149,7 @@ var Rt;
5149
5149
  shake: D = !0,
5150
5150
  menu: R
5151
5151
  }) {
5152
- const [p, F] = q.useState(!0), M = q.useRef(), K = (B) => {
5152
+ const [p, F] = K.useState(!0), M = K.useRef(), q = (B) => {
5153
5153
  if (b) {
5154
5154
  if (b.onClick)
5155
5155
  return B(!1), b.onClick({ setOpen: F });
@@ -5212,7 +5212,7 @@ var Rt;
5212
5212
  un,
5213
5213
  {
5214
5214
  label: b.label,
5215
- onSend: K,
5215
+ onSend: q,
5216
5216
  className: ie.btn,
5217
5217
  size: b.size
5218
5218
  }
@@ -5242,7 +5242,7 @@ function Tn({
5242
5242
  options: S,
5243
5243
  className: I
5244
5244
  }) {
5245
- const [Y, D] = q.useState(fn(n, v)), R = (p) => {
5245
+ const [Y, D] = K.useState(fn(n, v)), R = (p) => {
5246
5246
  if (!(s && h) || !b) return;
5247
5247
  let F = b.split(".");
5248
5248
  Rt.Open(F[0], F[1], {
@@ -5254,7 +5254,7 @@ function Tn({
5254
5254
  break;
5255
5255
  case "string":
5256
5256
  _({
5257
- value: Object.keys(M).filter((K) => M[K]).join(v),
5257
+ value: Object.keys(M).filter((q) => M[q]).join(v),
5258
5258
  name: u
5259
5259
  });
5260
5260
  break;
@@ -5264,7 +5264,7 @@ function Tn({
5264
5264
  D(
5265
5265
  Object.fromEntries(
5266
5266
  Object.entries(M).filter(
5267
- ([K, W]) => W !== !1
5267
+ ([q, W]) => W !== !1
5268
5268
  )
5269
5269
  )
5270
5270
  );
@@ -5318,8 +5318,8 @@ function Dn({
5318
5318
  isReload: Y = !1
5319
5319
  }) {
5320
5320
  var G, k;
5321
- const D = q.useRef(null), [R, p] = q.useState(C), [F, M] = q.useState(x), [K, W] = q.useState(!1);
5322
- q.useEffect(() => {
5321
+ const D = K.useRef(null), [R, p] = K.useState(C), [F, M] = K.useState(x), [q, W] = K.useState(!1);
5322
+ K.useEffect(() => {
5323
5323
  p(C), M(x);
5324
5324
  }, [C, x]), v = !!(v && (C === 0 || ((G = F == null ? void 0 : F[C]) == null ? void 0 : G.n) === void 0)) && !(u && d);
5325
5325
  const U = (y) => {
@@ -5342,7 +5342,7 @@ function Dn({
5342
5342
  children: /* @__PURE__ */ g.jsx("div", { ...N, children: (k = F == null ? void 0 : F[R]) == null ? void 0 : k.n })
5343
5343
  }
5344
5344
  ),
5345
- K && Mt(
5345
+ q && Mt(
5346
5346
  /* @__PURE__ */ g.jsx(
5347
5347
  vn,
5348
5348
  {
@@ -5436,10 +5436,10 @@ function Pn({
5436
5436
  options: I,
5437
5437
  className: Y
5438
5438
  }) {
5439
- const [D, R] = q.useState(n), p = (M) => {
5439
+ const [D, R] = K.useState(n), p = (M) => {
5440
5440
  if (!(x && h) || !b) return;
5441
- let K = b.split(".");
5442
- Rt.Open(K[0], K[1], {
5441
+ let q = b.split(".");
5442
+ Rt.Open(q[0], q[1], {
5443
5443
  callback: (W) => {
5444
5444
  _ && _({ value: W, name: u }), R(W);
5445
5445
  },
@@ -5481,7 +5481,7 @@ function Nn({
5481
5481
  eyes: I = [],
5482
5482
  after: Y = ""
5483
5483
  }) {
5484
- const [D, R] = q.useState(b);
5484
+ const [D, R] = K.useState(b);
5485
5485
  let p = (U) => {
5486
5486
  _ && _({
5487
5487
  value: U.target.textContent,
@@ -5504,7 +5504,7 @@ function Nn({
5504
5504
  );
5505
5505
  }).catch((P) => {
5506
5506
  });
5507
- }, K = (U) => {
5507
+ }, q = (U) => {
5508
5508
  ee.Blur(U), u == null || u({ value: U.target.textContent.trim(), name: d });
5509
5509
  };
5510
5510
  const W = {};
@@ -5518,7 +5518,7 @@ function Nn({
5518
5518
  onPaste: M,
5519
5519
  onInput: p,
5520
5520
  onKeyDown: F,
5521
- onBlur: K,
5521
+ onBlur: q,
5522
5522
  contentEditable: s && h ? ee.ContentEditable : "false",
5523
5523
  ...B,
5524
5524
  suppressContentEditableWarning: !0,
@@ -5541,8 +5541,8 @@ function Fn({
5541
5541
  id: x,
5542
5542
  reload: s
5543
5543
  }) {
5544
- const [h, o] = q.useState(!!u);
5545
- q.useEffect(() => {
5544
+ const [h, o] = K.useState(!!u);
5545
+ K.useEffect(() => {
5546
5546
  o(!!u);
5547
5547
  }, [u]);
5548
5548
  let c = () => {
@@ -5569,7 +5569,7 @@ function Fn({
5569
5569
  }
5570
5570
  const he = {};
5571
5571
  function In(n) {
5572
- const [_, u] = q.useState({}), d = q.useRef(n);
5572
+ const [_, u] = K.useState({}), d = K.useRef(n);
5573
5573
  return he.u = (v) => {
5574
5574
  d.current = { ...d.current, [v.name]: v.value };
5575
5575
  }, he.n = (v) => {
@@ -5585,7 +5585,7 @@ function $n(n) {
5585
5585
  he.r && he.r(n);
5586
5586
  }
5587
5587
  function An(n) {
5588
- const [_, u] = q.useState({}), d = q.useRef(n);
5588
+ const [_, u] = K.useState({}), d = K.useRef(n);
5589
5589
  return he.u = (v) => {
5590
5590
  d.current = { ...d.current, [v.name]: v.value };
5591
5591
  }, he.n = (v) => {