kelt-ui-kit-react 1.7.9 → 1.8.1

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.js CHANGED
@@ -54,10 +54,10 @@ function qo() {
54
54
  {
55
55
  for (var w = arguments.length, O = new Array(w > 1 ? w - 1 : 0), A = 1; A < w; A++)
56
56
  O[A - 1] = arguments[A];
57
- k("error", u, O);
57
+ C("error", u, O);
58
58
  }
59
59
  }
60
- function k(u, w, O) {
60
+ function C(u, w, O) {
61
61
  {
62
62
  var A = j.ReactDebugCurrentFrame, B = A.getStackAddendum();
63
63
  B !== "" && (w += "%s", O = O.concat([B]));
@@ -67,10 +67,10 @@ function qo() {
67
67
  E.unshift("Warning: " + w), Function.prototype.apply.call(console[u], console, E);
68
68
  }
69
69
  }
70
- var S = !1, D = !1, N = !1, C = !1, W = !1, y;
70
+ var S = !1, D = !1, N = !1, _ = !1, W = !1, y;
71
71
  y = Symbol.for("react.module.reference");
72
- function _(u) {
73
- return !!(typeof u == "string" || typeof u == "function" || u === n || u === i || W || u === a || u === d || u === f || C || u === h || S || D || N || typeof u == "object" && u !== null && (u.$$typeof === g || u.$$typeof === m || u.$$typeof === s || u.$$typeof === l || u.$$typeof === c || // This needs to include all possible module reference object
72
+ function k(u) {
73
+ return !!(typeof u == "string" || typeof u == "function" || u === n || u === i || W || u === a || u === d || u === f || _ || u === h || S || D || N || typeof u == "object" && u !== null && (u.$$typeof === g || u.$$typeof === m || u.$$typeof === s || u.$$typeof === l || u.$$typeof === c || // This needs to include all possible module reference object
74
74
  // types supported by any Flight configuration anywhere since
75
75
  // we don't know which Flight build this will end up being used
76
76
  // with.
@@ -577,7 +577,7 @@ Check the top-level render call using <` + O + ">.");
577
577
  var Pt = {};
578
578
  function lt(u, w, O, A, B, E) {
579
579
  {
580
- var P = _(u);
580
+ var P = k(u);
581
581
  if (!P) {
582
582
  var T = "";
583
583
  (u === void 0 || typeof u == "object" && u !== null && Object.keys(u).length === 0) && (T += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
@@ -1151,26 +1151,26 @@ function Di(e) {
1151
1151
  return bi(hr("", null, null, null, [""], e = yi(e), 0, [0], e));
1152
1152
  }
1153
1153
  function hr(e, t, r, n, a, i, s, l, c) {
1154
- for (var d = 0, f = 0, m = s, g = 0, h = 0, p = 0, v = 1, b = 1, j = 1, x = 0, k = "", S = a, D = i, N = n, C = k; b; )
1154
+ for (var d = 0, f = 0, m = s, g = 0, h = 0, p = 0, v = 1, b = 1, j = 1, x = 0, C = "", S = a, D = i, N = n, _ = C; b; )
1155
1155
  switch (p = x, x = Ne()) {
1156
1156
  case 40:
1157
- if (p != 108 && se(C, m - 1) == 58) {
1158
- dr(C += $(zr(x), "&", "&\f"), "&\f", Ya(d ? l[d - 1] : 0)) != -1 && (j = -1);
1157
+ if (p != 108 && se(_, m - 1) == 58) {
1158
+ dr(_ += $(zr(x), "&", "&\f"), "&\f", Ya(d ? l[d - 1] : 0)) != -1 && (j = -1);
1159
1159
  break;
1160
1160
  }
1161
1161
  case 34:
1162
1162
  case 39:
1163
1163
  case 91:
1164
- C += zr(x);
1164
+ _ += zr(x);
1165
1165
  break;
1166
1166
  case 9:
1167
1167
  case 10:
1168
1168
  case 13:
1169
1169
  case 32:
1170
- C += xi(p);
1170
+ _ += xi(p);
1171
1171
  break;
1172
1172
  case 92:
1173
- C += wi(fr() - 1, 7);
1173
+ _ += wi(fr() - 1, 7);
1174
1174
  continue;
1175
1175
  case 47:
1176
1176
  switch (et()) {
@@ -1179,11 +1179,11 @@ function hr(e, t, r, n, a, i, s, l, c) {
1179
1179
  Lt(Oi(ji(Ne(), fr()), t, r, c), c);
1180
1180
  break;
1181
1181
  default:
1182
- C += "/";
1182
+ _ += "/";
1183
1183
  }
1184
1184
  break;
1185
1185
  case 123 * v:
1186
- l[d++] = Te(C) * j;
1186
+ l[d++] = Te(_) * j;
1187
1187
  case 125 * v:
1188
1188
  case 59:
1189
1189
  case 0:
@@ -1192,30 +1192,30 @@ function hr(e, t, r, n, a, i, s, l, c) {
1192
1192
  case 125:
1193
1193
  b = 0;
1194
1194
  case 59 + f:
1195
- j == -1 && (C = $(C, /\f/g, "")), h > 0 && Te(C) - m && Lt(h > 32 ? ea(C + ";", n, r, m - 1, c) : ea($(C, " ", "") + ";", n, r, m - 2, c), c);
1195
+ j == -1 && (_ = $(_, /\f/g, "")), h > 0 && Te(_) - m && Lt(h > 32 ? ea(_ + ";", n, r, m - 1, c) : ea($(_, " ", "") + ";", n, r, m - 2, c), c);
1196
1196
  break;
1197
1197
  case 59:
1198
- C += ";";
1198
+ _ += ";";
1199
1199
  default:
1200
- if (Lt(N = Zn(C, t, r, d, f, a, l, k, S = [], D = [], m, i), i), x === 123)
1200
+ if (Lt(N = Zn(_, t, r, d, f, a, l, C, S = [], D = [], m, i), i), x === 123)
1201
1201
  if (f === 0)
1202
- hr(C, t, N, N, S, i, m, l, D);
1202
+ hr(_, t, N, N, S, i, m, l, D);
1203
1203
  else
1204
- switch (g === 99 && se(C, 3) === 110 ? 100 : g) {
1204
+ switch (g === 99 && se(_, 3) === 110 ? 100 : g) {
1205
1205
  case 100:
1206
1206
  case 108:
1207
1207
  case 109:
1208
1208
  case 115:
1209
- hr(e, N, N, n && Lt(Zn(e, N, N, 0, 0, a, l, k, a, S = [], m, D), D), a, D, m, l, n ? S : D);
1209
+ hr(e, N, N, n && Lt(Zn(e, N, N, 0, 0, a, l, C, a, S = [], m, D), D), a, D, m, l, n ? S : D);
1210
1210
  break;
1211
1211
  default:
1212
- hr(C, N, N, N, [""], D, 0, l, D);
1212
+ hr(_, N, N, N, [""], D, 0, l, D);
1213
1213
  }
1214
1214
  }
1215
- d = f = h = 0, v = j = 1, k = C = "", m = s;
1215
+ d = f = h = 0, v = j = 1, C = _ = "", m = s;
1216
1216
  break;
1217
1217
  case 58:
1218
- m = 1 + Te(C), h = p;
1218
+ m = 1 + Te(_), h = p;
1219
1219
  default:
1220
1220
  if (v < 1) {
1221
1221
  if (x == 123)
@@ -1223,26 +1223,26 @@ function hr(e, t, r, n, a, i, s, l, c) {
1223
1223
  else if (x == 125 && v++ == 0 && gi() == 125)
1224
1224
  continue;
1225
1225
  }
1226
- switch (C += _n(x), x * v) {
1226
+ switch (_ += _n(x), x * v) {
1227
1227
  case 38:
1228
- j = f > 0 ? 1 : (C += "\f", -1);
1228
+ j = f > 0 ? 1 : (_ += "\f", -1);
1229
1229
  break;
1230
1230
  case 44:
1231
- l[d++] = (Te(C) - 1) * j, j = 1;
1231
+ l[d++] = (Te(_) - 1) * j, j = 1;
1232
1232
  break;
1233
1233
  case 64:
1234
- et() === 45 && (C += zr(Ne())), g = et(), f = m = Te(k = C += Si(fr())), x++;
1234
+ et() === 45 && (_ += zr(Ne())), g = et(), f = m = Te(C = _ += Si(fr())), x++;
1235
1235
  break;
1236
1236
  case 45:
1237
- p === 45 && Te(C) == 2 && (v = 0);
1237
+ p === 45 && Te(_) == 2 && (v = 0);
1238
1238
  }
1239
1239
  }
1240
1240
  return i;
1241
1241
  }
1242
1242
  function Zn(e, t, r, n, a, i, s, l, c, d, f, m) {
1243
1243
  for (var g = a - 1, h = a === 0 ? i : [""], p = Ua(h), v = 0, b = 0, j = 0; v < n; ++v)
1244
- for (var x = 0, k = mt(e, g + 1, g = Ya(b = s[v])), S = e; x < p; ++x)
1245
- (S = Ba(b > 0 ? h[x] + " " + k : $(k, /&\f/g, h[x]))) && (c[j++] = S);
1244
+ for (var x = 0, C = mt(e, g + 1, g = Ya(b = s[v])), S = e; x < p; ++x)
1245
+ (S = Ba(b > 0 ? h[x] + " " + C : $(C, /&\f/g, h[x]))) && (c[j++] = S);
1246
1246
  return Er(e, t, r, a === 0 ? Or : l, c, d, f, m);
1247
1247
  }
1248
1248
  function Oi(e, t, r, n) {
@@ -1844,8 +1844,8 @@ function cs(e) {
1844
1844
  var b = g.replace(ss, ""), j = Di(p || h ? "".concat(p, " ").concat(h, " { ").concat(b, " }") : b);
1845
1845
  s.namespace && (j = ao(j, s.namespace));
1846
1846
  var x = [];
1847
- return yr(j, Ei(f.concat(ki(function(k) {
1848
- return x.push(k);
1847
+ return yr(j, Ei(f.concat(ki(function(C) {
1848
+ return x.push(C);
1849
1849
  })))), x;
1850
1850
  };
1851
1851
  return m.hash = c.length ? c.reduce(function(g, h) {
@@ -1951,8 +1951,8 @@ function vs(e, t, r) {
1951
1951
  var n = Pn(e), a = e, i = !Hr(e), s = t.attrs, l = s === void 0 ? Cr : s, c = t.componentId, d = c === void 0 ? function(S, D) {
1952
1952
  var N = typeof S != "string" ? "sc" : ra(S);
1953
1953
  qr[N] = (qr[N] || 0) + 1;
1954
- var C = "".concat(N, "-").concat(Mi(_r + N + qr[N]));
1955
- return D ? "".concat(D, "-").concat(C) : C;
1954
+ var _ = "".concat(N, "-").concat(Mi(_r + N + qr[N]));
1955
+ return D ? "".concat(D, "-").concat(_) : _;
1956
1956
  }(t.displayName, t.parentComponentId) : c, f = t.displayName, m = f === void 0 ? function(S) {
1957
1957
  return Hr(S) ? "styled.".concat(S) : "Styled(".concat(Ja(S), ")");
1958
1958
  }(e) : f, g = t.displayName && t.componentId ? "".concat(ra(t.displayName), "-").concat(t.componentId) : t.componentId || d, h = n && a.attrs ? a.attrs.concat(l).filter(Boolean) : l, p = t.shouldForwardProp;
@@ -1967,40 +1967,40 @@ function vs(e, t, r) {
1967
1967
  }
1968
1968
  var j = new hs(r, g, n ? a.componentStyle : void 0);
1969
1969
  function x(S, D) {
1970
- return function(N, C, W) {
1971
- var y = N.attrs, _ = N.componentStyle, I = N.defaultProps, M = N.foldedComponentIds, L = N.styledComponentId, X = N.target, ve = Ae.useContext(co), re = ua(), xe = N.shouldForwardProp || re.shouldForwardProp;
1970
+ return function(N, _, W) {
1971
+ var y = N.attrs, k = N.componentStyle, I = N.defaultProps, M = N.foldedComponentIds, L = N.styledComponentId, X = N.target, ve = Ae.useContext(co), re = ua(), xe = N.shouldForwardProp || re.shouldForwardProp;
1972
1972
  process.env.NODE_ENV !== "production" && Gn(L);
1973
- var Ie = Ri(C, ve, I) || gt, ee = function(ke, me, pe) {
1973
+ var Ie = Ri(_, ve, I) || gt, ee = function(ke, me, pe) {
1974
1974
  for (var le, ne = be(be({}, me), { className: void 0, theme: pe }), De = 0; De < ke.length; De += 1) {
1975
1975
  var _e = yt(le = ke[De]) ? le(ne) : le;
1976
1976
  for (var fe in _e) ne[fe] = fe === "className" ? Ze(ne[fe], _e[fe]) : fe === "style" ? be(be({}, ne[fe]), _e[fe]) : _e[fe];
1977
1977
  }
1978
1978
  return me.className && (ne.className = Ze(ne.className, me.className)), ne;
1979
- }(y, C, Ie), K = ee.as || X, ce = {};
1979
+ }(y, _, Ie), K = ee.as || X, ce = {};
1980
1980
  for (var Z in ee) ee[Z] === void 0 || Z[0] === "$" || Z === "as" || Z === "theme" && ee.theme === Ie || (Z === "forwardedAs" ? ce.as = ee.forwardedAs : xe && !xe(Z, K) || (ce[Z] = ee[Z], xe || process.env.NODE_ENV !== "development" || di(Z) || ha.has(Z) || !an.has(K) || (ha.add(Z), console.warn('styled-components: it looks like an unknown prop "'.concat(Z, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
1981
1981
  var Se = function(ke, me) {
1982
1982
  var pe = ua(), le = ke.generateAndInjectStyles(me, pe.styleSheet, pe.stylis);
1983
1983
  return process.env.NODE_ENV !== "production" && Gn(le), le;
1984
- }(_, ee);
1984
+ }(k, ee);
1985
1985
  process.env.NODE_ENV !== "production" && N.warnTooManyClasses && N.warnTooManyClasses(Se);
1986
1986
  var Ee = Ze(M, L);
1987
1987
  return Se && (Ee += " " + Se), ee.className && (Ee += " " + ee.className), ce[Hr(K) && !an.has(K) ? "class" : "className"] = Ee, W && (ce.ref = W), Yo(K, ce);
1988
- }(k, S, D);
1988
+ }(C, S, D);
1989
1989
  }
1990
1990
  x.displayName = m;
1991
- var k = Ae.forwardRef(x);
1992
- return k.attrs = h, k.componentStyle = j, k.displayName = m, k.shouldForwardProp = p, k.foldedComponentIds = n ? Ze(a.foldedComponentIds, a.styledComponentId) : "", k.styledComponentId = g, k.target = n ? a.target : e, Object.defineProperty(k, "defaultProps", { get: function() {
1991
+ var C = Ae.forwardRef(x);
1992
+ return C.attrs = h, C.componentStyle = j, C.displayName = m, C.shouldForwardProp = p, C.foldedComponentIds = n ? Ze(a.foldedComponentIds, a.styledComponentId) : "", C.styledComponentId = g, C.target = n ? a.target : e, Object.defineProperty(C, "defaultProps", { get: function() {
1993
1993
  return this._foldedDefaultProps;
1994
1994
  }, set: function(S) {
1995
1995
  this._foldedDefaultProps = n ? function(D) {
1996
- for (var N = [], C = 1; C < arguments.length; C++) N[C - 1] = arguments[C];
1996
+ for (var N = [], _ = 1; _ < arguments.length; _++) N[_ - 1] = arguments[_];
1997
1997
  for (var W = 0, y = N; W < y.length; W++) sn(D, y[W], !0);
1998
1998
  return D;
1999
1999
  }({}, a.defaultProps, S) : S;
2000
- } }), process.env.NODE_ENV !== "production" && (Ti(m, g), k.warnTooManyClasses = /* @__PURE__ */ function(S, D) {
2001
- var N = {}, C = !1;
2000
+ } }), process.env.NODE_ENV !== "production" && (Ti(m, g), C.warnTooManyClasses = /* @__PURE__ */ function(S, D) {
2001
+ var N = {}, _ = !1;
2002
2002
  return function(W) {
2003
- if (!C && (N[W] = !0, Object.keys(N).length >= 200)) {
2003
+ if (!_ && (N[W] = !0, Object.keys(N).length >= 200)) {
2004
2004
  var y = D ? ' with the id of "'.concat(D, '"') : "";
2005
2005
  console.warn("Over ".concat(200, " classes were generated for component ").concat(S).concat(y, `.
2006
2006
  `) + `Consider using the attrs method, together with a style object for frequently changed styles.
@@ -2011,12 +2011,12 @@ Example:
2011
2011
  },
2012
2012
  }))\`width: 100%;\`
2013
2013
 
2014
- <Component />`), C = !0, N = {};
2014
+ <Component />`), _ = !0, N = {};
2015
2015
  }
2016
2016
  };
2017
- }(m, g)), Tn(k, function() {
2018
- return ".".concat(k.styledComponentId);
2019
- }), i && to(k, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), k;
2017
+ }(m, g)), Tn(C, function() {
2018
+ return ".".concat(C.styledComponentId);
2019
+ }), i && to(C, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), C;
2020
2020
  }
2021
2021
  function va(e, t) {
2022
2022
  for (var r = [e[0]], n = 0, a = t.length; n < a; n += 1) r.push(t[n], e[n + 1]);
@@ -2085,14 +2085,14 @@ const ms = Rn.div`
2085
2085
  c !== v && m(!1);
2086
2086
  }, [c, v]), q(() => {
2087
2087
  const x = () => {
2088
- var k;
2088
+ var C;
2089
2089
  if (!t && r)
2090
2090
  h(r);
2091
2091
  else if (e) {
2092
- const S = e.getBoundingClientRect(), D = (k = p.current) == null ? void 0 : k.getBoundingClientRect(), { innerWidth: N, innerHeight: C } = window;
2092
+ const S = e.getBoundingClientRect(), D = (C = p.current) == null ? void 0 : C.getBoundingClientRect(), { innerWidth: N, innerHeight: _ } = window;
2093
2093
  if (D) {
2094
2094
  let W, y;
2095
- const _ = {
2095
+ const k = {
2096
2096
  topRight: () => ({
2097
2097
  top: S.top - D.height,
2098
2098
  left: S.right - D.width
@@ -2118,7 +2118,7 @@ const ms = Rn.div`
2118
2118
  left: S.right
2119
2119
  })
2120
2120
  };
2121
- t && _[t] ? { top: W, left: y } = _[t]() : (y = S.right, W = S.bottom, S.right + D.width > N && (y = S.left - D.width), S.bottom + D.height > C && (W = S.top - D.height)), h({ top: W, left: y < 0 ? 0 : y });
2121
+ t && k[t] ? { top: W, left: y } = k[t]() : (y = S.right, W = S.bottom, S.right + D.width > N && (y = S.left - D.width), S.bottom + D.height > _ && (W = S.top - D.height)), h({ top: W, left: y < 0 ? 0 : y });
2122
2122
  }
2123
2123
  }
2124
2124
  };
@@ -2133,8 +2133,8 @@ const ms = Rn.div`
2133
2133
  [s, d]
2134
2134
  );
2135
2135
  return q(() => {
2136
- const x = (k) => {
2137
- p.current && !p.current.contains(k.target) && j(k);
2136
+ const x = (C) => {
2137
+ p.current && !p.current.contains(C.target) && j(C);
2138
2138
  };
2139
2139
  return f && document.addEventListener("mousedown", x), () => {
2140
2140
  document.removeEventListener("mousedown", x);
@@ -2564,10 +2564,10 @@ const wr = Ue(
2564
2564
  checked: b,
2565
2565
  onChange: j,
2566
2566
  onBlur: x,
2567
- onClick: k,
2567
+ onClick: C,
2568
2568
  handleKeyDown: S
2569
2569
  }, D) => {
2570
- const [N, C] = F(!1);
2570
+ const [N, _] = F(!1);
2571
2571
  return /* @__PURE__ */ o.jsxs("div", { className: `input-container ${`input-container-${r}`} `, children: [
2572
2572
  /* @__PURE__ */ o.jsx("input", { name: `hide-${t}`, type: "text", style: { display: "none" } }),
2573
2573
  /* @__PURE__ */ o.jsx(
@@ -2594,7 +2594,7 @@ const wr = Ue(
2594
2594
  onKeyDown: S,
2595
2595
  onBlur: x,
2596
2596
  onClick: (W) => {
2597
- W.stopPropagation(), k && k(W);
2597
+ W.stopPropagation(), C && C(W);
2598
2598
  },
2599
2599
  className: `input-field ${s ?? ""}`,
2600
2600
  onInvalid: a
@@ -2603,7 +2603,7 @@ const wr = Ue(
2603
2603
  r === Be.PASSWORD && /* @__PURE__ */ o.jsx(
2604
2604
  "div",
2605
2605
  {
2606
- onClick: () => C(!N),
2606
+ onClick: () => _(!N),
2607
2607
  className: "input-password-icon",
2608
2608
  children: /* @__PURE__ */ o.jsx(Y, { classIcon: N ? "bi-eye-slash" : "bi-eye" })
2609
2609
  }
@@ -2791,7 +2791,7 @@ function Vl(e) {
2791
2791
  hideToggleAll: b = !1,
2792
2792
  limitSelect: j = void 0,
2793
2793
  getRowId: x
2794
- } = e, k = oe(null), [S, D] = F(
2794
+ } = e, C = oe(null), [S, D] = F(
2795
2795
  /* @__PURE__ */ new Set()
2796
2796
  ), N = R(() => {
2797
2797
  if (S.size === s.length)
@@ -2801,22 +2801,22 @@ function Vl(e) {
2801
2801
  (I) => x ? x(I) : I.id ?? I
2802
2802
  );
2803
2803
  j && y.length > j && (y = y.slice(0, j));
2804
- const _ = new Set(y);
2805
- D(_), v == null || v(
2804
+ const k = new Set(y);
2805
+ D(k), v == null || v(
2806
2806
  s.filter(
2807
- (I) => _.has(x ? x(I) : I.id ?? I)
2807
+ (I) => k.has(x ? x(I) : I.id ?? I)
2808
2808
  )
2809
2809
  );
2810
2810
  }
2811
- }, [s, v, j, x, S.size]), C = R(
2812
- (y, _) => {
2813
- y.stopPropagation(), f && (f == null || f(_));
2811
+ }, [s, v, j, x, S.size]), _ = R(
2812
+ (y, k) => {
2813
+ y.stopPropagation(), f && (f == null || f(k));
2814
2814
  },
2815
2815
  [f]
2816
2816
  ), W = R(
2817
- (y, _) => {
2817
+ (y, k) => {
2818
2818
  y.stopPropagation();
2819
- const I = x ? x(_) : _.id ?? _, M = new Set(S);
2819
+ const I = x ? x(k) : k.id ?? k, M = new Set(S);
2820
2820
  if (M.has(I))
2821
2821
  M.delete(I);
2822
2822
  else {
@@ -2835,8 +2835,8 @@ function Vl(e) {
2835
2835
  return q(() => {
2836
2836
  if (!g || !p) return;
2837
2837
  const y = new IntersectionObserver(
2838
- (_) => {
2839
- _[0].isIntersecting && g();
2838
+ (k) => {
2839
+ k[0].isIntersecting && g();
2840
2840
  },
2841
2841
  {
2842
2842
  root: null,
@@ -2844,8 +2844,8 @@ function Vl(e) {
2844
2844
  threshold: 1
2845
2845
  }
2846
2846
  );
2847
- return k.current && y.observe(k.current), () => {
2848
- k.current && y.unobserve(k.current);
2847
+ return C.current && y.observe(C.current), () => {
2848
+ C.current && y.unobserve(C.current);
2849
2849
  };
2850
2850
  }, [g, p]), /* @__PURE__ */ o.jsxs("div", { className: "data-table-container", children: [
2851
2851
  r && /* @__PURE__ */ o.jsx("h2", { className: "mb-2", children: r }),
@@ -2869,14 +2869,14 @@ function Vl(e) {
2869
2869
  )
2870
2870
  }
2871
2871
  ),
2872
- c.map((y, _) => /* @__PURE__ */ o.jsx(
2872
+ c.map((y, k) => /* @__PURE__ */ o.jsx(
2873
2873
  bs,
2874
2874
  {
2875
2875
  column: y,
2876
- idx: _,
2876
+ idx: k,
2877
2877
  onColumnClick: m
2878
2878
  },
2879
- _
2879
+ k
2880
2880
  )),
2881
2881
  l.length > 0 && /* @__PURE__ */ o.jsx(
2882
2882
  "th",
@@ -2898,12 +2898,12 @@ function Vl(e) {
2898
2898
  children: /* @__PURE__ */ o.jsx("div", { className: "mt-3", children: /* @__PURE__ */ o.jsx(pa, { display: d }) })
2899
2899
  }
2900
2900
  ) }) : /* @__PURE__ */ o.jsx(o.Fragment, {}),
2901
- !d && s.map((y, _) => /* @__PURE__ */ o.jsxs("tr", { onClick: (I) => C == null ? void 0 : C(I, y), children: [
2901
+ !d && s.map((y, k) => /* @__PURE__ */ o.jsxs("tr", { onClick: (I) => _ == null ? void 0 : _(I, y), children: [
2902
2902
  v && /* @__PURE__ */ o.jsx("td", { className: "select-cell", style: { textAlign: "center" }, children: /* @__PURE__ */ o.jsx(
2903
2903
  wr,
2904
2904
  {
2905
- id: `select-row-${_}`,
2906
- name: `select-row-${_}`,
2905
+ id: `select-row-${k}`,
2906
+ name: `select-row-${k}`,
2907
2907
  type: Be.CHECKBOX,
2908
2908
  disabled: j !== void 0 && S.size >= j && !S.has(
2909
2909
  x ? x(y) : y.id ?? y
@@ -2924,7 +2924,7 @@ function Vl(e) {
2924
2924
  },
2925
2925
  M
2926
2926
  )) }) })
2927
- ] }, _)),
2927
+ ] }, k)),
2928
2928
  !d && s.length === 0 && /* @__PURE__ */ o.jsx(
2929
2929
  xs,
2930
2930
  {
@@ -2936,7 +2936,7 @@ function Vl(e) {
2936
2936
  ] })
2937
2937
  ] }),
2938
2938
  a,
2939
- p && /* @__PURE__ */ o.jsx("div", { ref: k, className: "infinite-scroll-loader", children: /* @__PURE__ */ o.jsx(pa, { display: !0 }) })
2939
+ p && /* @__PURE__ */ o.jsx("div", { ref: C, className: "infinite-scroll-loader", children: /* @__PURE__ */ o.jsx(pa, { display: !0 }) })
2940
2940
  ] });
2941
2941
  }
2942
2942
  function fo(e) {
@@ -3479,7 +3479,7 @@ function Po(e, t) {
3479
3479
  }
3480
3480
  var Pe = "react-calendar__navigation";
3481
3481
  function Sc(e) {
3482
- var t = e.activeStartDate, r = e.drillUp, n = e.formatMonthYear, a = n === void 0 ? No : n, i = e.formatYear, s = i === void 0 ? Ir : i, l = e.locale, c = e.maxDate, d = e.minDate, f = e.navigationAriaLabel, m = f === void 0 ? "" : f, g = e.navigationAriaLive, h = e.navigationLabel, p = e.next2AriaLabel, v = p === void 0 ? "" : p, b = e.next2Label, j = b === void 0 ? "»" : b, x = e.nextAriaLabel, k = x === void 0 ? "" : x, S = e.nextLabel, D = S === void 0 ? "›" : S, N = e.prev2AriaLabel, C = N === void 0 ? "" : N, W = e.prev2Label, y = W === void 0 ? "«" : W, _ = e.prevAriaLabel, I = _ === void 0 ? "" : _, M = e.prevLabel, L = M === void 0 ? "‹" : M, X = e.setActiveStartDate, ve = e.showDoubleView, re = e.view, xe = e.views, Ie = xe.indexOf(re) > 0, ee = re !== "century", K = mc(re, t), ce = ee ? pc(re, t) : void 0, Z = Eo(re, t), Se = ee ? gc(re, t) : void 0, Ee = function() {
3482
+ var t = e.activeStartDate, r = e.drillUp, n = e.formatMonthYear, a = n === void 0 ? No : n, i = e.formatYear, s = i === void 0 ? Ir : i, l = e.locale, c = e.maxDate, d = e.minDate, f = e.navigationAriaLabel, m = f === void 0 ? "" : f, g = e.navigationAriaLive, h = e.navigationLabel, p = e.next2AriaLabel, v = p === void 0 ? "" : p, b = e.next2Label, j = b === void 0 ? "»" : b, x = e.nextAriaLabel, C = x === void 0 ? "" : x, S = e.nextLabel, D = S === void 0 ? "›" : S, N = e.prev2AriaLabel, _ = N === void 0 ? "" : N, W = e.prev2Label, y = W === void 0 ? "«" : W, k = e.prevAriaLabel, I = k === void 0 ? "" : k, M = e.prevLabel, L = M === void 0 ? "‹" : M, X = e.setActiveStartDate, ve = e.showDoubleView, re = e.view, xe = e.views, Ie = xe.indexOf(re) > 0, ee = re !== "century", K = mc(re, t), ce = ee ? pc(re, t) : void 0, Z = Eo(re, t), Se = ee ? gc(re, t) : void 0, Ee = function() {
3483
3483
  if (K.getFullYear() < 0)
3484
3484
  return !0;
3485
3485
  var te = yc(re, t);
@@ -3528,7 +3528,7 @@ function Sc(e) {
3528
3528
  var te = "".concat(Pe, "__label");
3529
3529
  return o.jsxs("button", { "aria-label": m, "aria-live": g, className: te, disabled: !Ie, onClick: r, style: { flexGrow: 1 }, type: "button", children: [o.jsx("span", { className: "".concat(te, "__labelText ").concat(te, "__labelText--from"), children: fe(t) }), ve ? o.jsxs(o.Fragment, { children: [o.jsx("span", { className: "".concat(te, "__divider"), children: " – " }), o.jsx("span", { className: "".concat(te, "__labelText ").concat(te, "__labelText--to"), children: fe(Z) })] }) : null] });
3530
3530
  }
3531
- return o.jsxs("div", { className: Pe, children: [y !== null && ee ? o.jsx("button", { "aria-label": C, className: "".concat(Pe, "__arrow ").concat(Pe, "__prev2-button"), disabled: ke, onClick: ne, type: "button", children: y }) : null, L !== null && o.jsx("button", { "aria-label": I, className: "".concat(Pe, "__arrow ").concat(Pe, "__prev-button"), disabled: Ee, onClick: le, type: "button", children: L }), Ot(), D !== null && o.jsx("button", { "aria-label": k, className: "".concat(Pe, "__arrow ").concat(Pe, "__next-button"), disabled: me, onClick: De, type: "button", children: D }), j !== null && ee ? o.jsx("button", { "aria-label": v, className: "".concat(Pe, "__arrow ").concat(Pe, "__next2-button"), disabled: pe, onClick: _e, type: "button", children: j }) : null] });
3531
+ return o.jsxs("div", { className: Pe, children: [y !== null && ee ? o.jsx("button", { "aria-label": _, className: "".concat(Pe, "__arrow ").concat(Pe, "__prev2-button"), disabled: ke, onClick: ne, type: "button", children: y }) : null, L !== null && o.jsx("button", { "aria-label": I, className: "".concat(Pe, "__arrow ").concat(Pe, "__prev-button"), disabled: Ee, onClick: le, type: "button", children: L }), Ot(), D !== null && o.jsx("button", { "aria-label": C, className: "".concat(Pe, "__arrow ").concat(Pe, "__next-button"), disabled: me, onClick: De, type: "button", children: D }), j !== null && ee ? o.jsx("button", { "aria-label": v, className: "".concat(Pe, "__arrow ").concat(Pe, "__next2-button"), disabled: pe, onClick: _e, type: "button", children: j }) : null] });
3532
3532
  }
3533
3533
  var ft = function() {
3534
3534
  return ft = Object.assign || function(e) {
@@ -3642,7 +3642,7 @@ function Mr(e) {
3642
3642
  var t = e.activeStartDate, r = e.children, n = e.classes, a = e.date, i = e.formatAbbr, s = e.locale, l = e.maxDate, c = e.maxDateTransform, d = e.minDate, f = e.minDateTransform, m = e.onClick, g = e.onMouseOver, h = e.style, p = e.tileClassName, v = e.tileContent, b = e.tileDisabled, j = e.view, x = Re(function() {
3643
3643
  var S = { activeStartDate: t, date: a, view: j };
3644
3644
  return typeof p == "function" ? p(S) : p;
3645
- }, [t, a, p, j]), k = Re(function() {
3645
+ }, [t, a, p, j]), C = Re(function() {
3646
3646
  var S = { activeStartDate: t, date: a, view: j };
3647
3647
  return typeof v == "function" ? v(S) : v;
3648
3648
  }, [t, a, v, j]);
@@ -3652,7 +3652,7 @@ function Mr(e) {
3652
3652
  return g(a);
3653
3653
  } : void 0, onMouseOver: g ? function() {
3654
3654
  return g(a);
3655
- } : void 0, style: h, type: "button", children: [i ? o.jsx("abbr", { "aria-label": i(s, a), children: r }) : r, k] });
3655
+ } : void 0, style: h, type: "button", children: [i ? o.jsx("abbr", { "aria-label": i(s, a), children: r }) : r, C] });
3656
3656
  }
3657
3657
  var hn = function() {
3658
3658
  return hn = Object.assign || function(e) {
@@ -4084,7 +4084,7 @@ function ur(e, t) {
4084
4084
  return e instanceof Date && t instanceof Date && e.getTime() === t.getTime();
4085
4085
  }
4086
4086
  var nl = Ue(function(t, r) {
4087
- var n = t.activeStartDate, a = t.allowPartialRange, i = t.calendarType, s = t.className, l = t.defaultActiveStartDate, c = t.defaultValue, d = t.defaultView, f = t.formatDay, m = t.formatLongDate, g = t.formatMonth, h = t.formatMonthYear, p = t.formatShortWeekday, v = t.formatWeekday, b = t.formatYear, j = t.goToRangeStartOnSelect, x = j === void 0 ? !0 : j, k = t.inputRef, S = t.locale, D = t.maxDate, N = D === void 0 ? Qc : D, C = t.maxDetail, W = C === void 0 ? "month" : C, y = t.minDate, _ = y === void 0 ? Bn : y, I = t.minDetail, M = I === void 0 ? "century" : I, L = t.navigationAriaLabel, X = t.navigationAriaLive, ve = t.navigationLabel, re = t.next2AriaLabel, xe = t.next2Label, Ie = t.nextAriaLabel, ee = t.nextLabel, K = t.onActiveStartDateChange, ce = t.onChange, Z = t.onClickDay, Se = t.onClickDecade, Ee = t.onClickMonth, ke = t.onClickWeekNumber, me = t.onClickYear, pe = t.onDrillDown, le = t.onDrillUp, ne = t.onViewChange, De = t.prev2AriaLabel, _e = t.prev2Label, fe = t.prevAriaLabel, Ot = t.prevLabel, te = t.returnValue, Ce = te === void 0 ? "start" : te, ie = t.selectRange, He = t.showDoubleView, Nt = t.showFixedNumberOfWeeks, qe = t.showNavigation, Lr = qe === void 0 ? !0 : qe, Fr = t.showNeighboringCentury, Et = t.showNeighboringDecade, Ht = t.showNeighboringMonth, Wr = Ht === void 0 ? !0 : Ht, qt = t.showWeekNumbers, Xt = t.tileClassName, Kt = t.tileContent, Vr = t.tileDisabled, it = t.value, kt = t.view, Jt = F(l), Yr = Jt[0], st = Jt[1], Qt = F(null), Br = Qt[0], Zt = Qt[1], er = F(Array.isArray(c) ? c.map(function(E) {
4087
+ var n = t.activeStartDate, a = t.allowPartialRange, i = t.calendarType, s = t.className, l = t.defaultActiveStartDate, c = t.defaultValue, d = t.defaultView, f = t.formatDay, m = t.formatLongDate, g = t.formatMonth, h = t.formatMonthYear, p = t.formatShortWeekday, v = t.formatWeekday, b = t.formatYear, j = t.goToRangeStartOnSelect, x = j === void 0 ? !0 : j, C = t.inputRef, S = t.locale, D = t.maxDate, N = D === void 0 ? Qc : D, _ = t.maxDetail, W = _ === void 0 ? "month" : _, y = t.minDate, k = y === void 0 ? Bn : y, I = t.minDetail, M = I === void 0 ? "century" : I, L = t.navigationAriaLabel, X = t.navigationAriaLive, ve = t.navigationLabel, re = t.next2AriaLabel, xe = t.next2Label, Ie = t.nextAriaLabel, ee = t.nextLabel, K = t.onActiveStartDateChange, ce = t.onChange, Z = t.onClickDay, Se = t.onClickDecade, Ee = t.onClickMonth, ke = t.onClickWeekNumber, me = t.onClickYear, pe = t.onDrillDown, le = t.onDrillUp, ne = t.onViewChange, De = t.prev2AriaLabel, _e = t.prev2Label, fe = t.prevAriaLabel, Ot = t.prevLabel, te = t.returnValue, Ce = te === void 0 ? "start" : te, ie = t.selectRange, He = t.showDoubleView, Nt = t.showFixedNumberOfWeeks, qe = t.showNavigation, Lr = qe === void 0 ? !0 : qe, Fr = t.showNeighboringCentury, Et = t.showNeighboringDecade, Ht = t.showNeighboringMonth, Wr = Ht === void 0 ? !0 : Ht, qt = t.showWeekNumbers, Xt = t.tileClassName, Kt = t.tileContent, Vr = t.tileDisabled, it = t.value, kt = t.view, Jt = F(l), Yr = Jt[0], st = Jt[1], Qt = F(null), Br = Qt[0], Zt = Qt[1], er = F(Array.isArray(c) ? c.map(function(E) {
4088
4088
  return E !== null ? Ft(E) : null;
4089
4089
  }) : c != null ? Ft(c) : null), Xe = er[0], tr = er[1], $e = F(d), _t = $e[0], ct = $e[1], ue = n || Yr || rl({
4090
4090
  activeStartDate: n,
@@ -4093,7 +4093,7 @@ var nl = Ue(function(t, r) {
4093
4093
  defaultView: d,
4094
4094
  maxDate: N,
4095
4095
  maxDetail: W,
4096
- minDate: _,
4096
+ minDate: k,
4097
4097
  minDetail: M,
4098
4098
  value: it,
4099
4099
  view: kt
@@ -4120,10 +4120,10 @@ var nl = Ue(function(t, r) {
4120
4120
  return P({
4121
4121
  maxDate: N,
4122
4122
  maxDetail: W,
4123
- minDate: _,
4123
+ minDate: k,
4124
4124
  value: E
4125
4125
  });
4126
- }, [N, W, _, Ce]), lt = R(function(E, P) {
4126
+ }, [N, W, k, Ce]), lt = R(function(E, P) {
4127
4127
  st(E);
4128
4128
  var T = {
4129
4129
  action: P,
@@ -4220,7 +4220,7 @@ var nl = Ue(function(t, r) {
4220
4220
  x ? Lo({
4221
4221
  maxDate: N,
4222
4222
  maxDetail: W,
4223
- minDate: _,
4223
+ minDate: k,
4224
4224
  minDetail: M,
4225
4225
  value: V,
4226
4226
  view: G
@@ -4252,7 +4252,7 @@ var nl = Ue(function(t, r) {
4252
4252
  x,
4253
4253
  N,
4254
4254
  W,
4255
- _,
4255
+ k,
4256
4256
  M,
4257
4257
  K,
4258
4258
  ce,
@@ -4285,7 +4285,7 @@ var nl = Ue(function(t, r) {
4285
4285
  hover: rr,
4286
4286
  locale: S,
4287
4287
  maxDate: N,
4288
- minDate: _,
4288
+ minDate: k,
4289
4289
  onClick: T,
4290
4290
  onMouseOver: ie ? u : void 0,
4291
4291
  tileClassName: Xt,
@@ -4308,10 +4308,10 @@ var nl = Ue(function(t, r) {
4308
4308
  }
4309
4309
  }
4310
4310
  function A() {
4311
- return Lr ? o.jsx(Sc, { activeStartDate: ue, drillUp: Rt, formatMonthYear: h, formatYear: b, locale: S, maxDate: N, minDate: _, navigationAriaLabel: L, navigationAriaLive: X, navigationLabel: ve, next2AriaLabel: re, next2Label: xe, nextAriaLabel: Ie, nextLabel: ee, prev2AriaLabel: De, prev2Label: _e, prevAriaLabel: fe, prevLabel: Ot, setActiveStartDate: lt, showDoubleView: He, view: G, views: we }) : null;
4311
+ return Lr ? o.jsx(Sc, { activeStartDate: ue, drillUp: Rt, formatMonthYear: h, formatYear: b, locale: S, maxDate: N, minDate: k, navigationAriaLabel: L, navigationAriaLive: X, navigationLabel: ve, next2AriaLabel: re, next2Label: xe, nextAriaLabel: Ie, nextLabel: ee, prev2AriaLabel: De, prev2Label: _e, prevAriaLabel: fe, prevLabel: Ot, setActiveStartDate: lt, showDoubleView: He, view: G, views: we }) : null;
4312
4312
  }
4313
4313
  var B = Array.isArray(he) ? he : [he];
4314
- return o.jsxs("div", { className: Pr(lr, ie && B.length === 1 && "".concat(lr, "--selectRange"), He && "".concat(lr, "--doubleView"), s), ref: k, children: [A(), o.jsxs("div", { className: "".concat(lr, "__viewContainer"), onBlur: ie ? w : void 0, onMouseLeave: ie ? w : void 0, children: [O(), He ? O(!0) : null] })] });
4314
+ return o.jsxs("div", { className: Pr(lr, ie && B.length === 1 && "".concat(lr, "--selectRange"), He && "".concat(lr, "--doubleView"), s), ref: C, children: [A(), o.jsxs("div", { className: "".concat(lr, "__viewContainer"), onBlur: ie ? w : void 0, onMouseLeave: ie ? w : void 0, children: [O(), He ? O(!0) : null] })] });
4315
4315
  });
4316
4316
  const Yl = ({
4317
4317
  value: e,
@@ -4525,35 +4525,35 @@ const Yl = ({
4525
4525
  }, f) => {
4526
4526
  const [m, g] = F(c), [h, p] = F(() => {
4527
4527
  const y = {};
4528
- return e.forEach((_) => {
4529
- y[_.name] = _.value ?? "";
4528
+ return e.forEach((k) => {
4529
+ y[k.name] = k.value ?? "";
4530
4530
  }), y;
4531
4531
  }), v = oe({}), b = R(
4532
- (y, _) => {
4532
+ (y, k) => {
4533
4533
  const { name: I, type: M, checked: L, value: X } = y.target, ve = M === "checkbox" ? L : X;
4534
- _.onChange && _.onChange(ve, I), p((re) => {
4534
+ k.onChange && k.onChange(ve, I), p((re) => {
4535
4535
  const xe = { ...re, [I]: ve };
4536
4536
  return s && s(xe), xe;
4537
4537
  });
4538
4538
  },
4539
4539
  [s]
4540
4540
  ), j = R(
4541
- (y, _, I) => {
4542
- I.onChange && I.onChange(_, y), p((M) => {
4543
- const L = { ...M, [y]: _ };
4541
+ (y, k, I) => {
4542
+ I.onChange && I.onChange(k, y), p((M) => {
4543
+ const L = { ...M, [y]: k };
4544
4544
  return s && s(L), L;
4545
4545
  });
4546
4546
  },
4547
4547
  [s]
4548
4548
  ), x = R(
4549
- (y, _, I) => {
4550
- I.onChange && I.onChange(y, _), p((M) => {
4551
- const L = { ...M, [_]: y };
4549
+ (y, k, I) => {
4550
+ I.onChange && I.onChange(y, k), p((M) => {
4551
+ const L = { ...M, [k]: y };
4552
4552
  return s && s(L), L;
4553
4553
  });
4554
4554
  },
4555
4555
  [s]
4556
- ), k = R(
4556
+ ), C = R(
4557
4557
  (y) => {
4558
4558
  y.preventDefault(), r && r(h);
4559
4559
  },
@@ -4561,24 +4561,24 @@ const Yl = ({
4561
4561
  ), S = () => {
4562
4562
  p(() => {
4563
4563
  const y = {};
4564
- return e.forEach((_) => {
4565
- y[_.name] = _.value ?? "";
4564
+ return e.forEach((k) => {
4565
+ y[k.name] = k.value ?? "";
4566
4566
  }), y;
4567
4567
  });
4568
4568
  }, D = R((y) => {
4569
- p((_) => ({
4570
- ..._,
4569
+ p((k) => ({
4570
+ ...k,
4571
4571
  [y]: ""
4572
4572
  }));
4573
4573
  }, []), N = () => {
4574
- const y = e.find((_) => _.focus);
4574
+ const y = e.find((k) => k.focus);
4575
4575
  y && v.current[y.name] && setTimeout(() => {
4576
- var _;
4577
- (_ = v.current[y.name]) == null || _.select();
4576
+ var k;
4577
+ (k = v.current[y.name]) == null || k.select();
4578
4578
  }, 500);
4579
- }, C = () => h, W = (y) => {
4580
- p((_) => ({
4581
- ..._,
4579
+ }, _ = () => h, W = (y) => {
4580
+ p((k) => ({
4581
+ ...k,
4582
4582
  ...y
4583
4583
  }));
4584
4584
  };
@@ -4586,18 +4586,18 @@ const Yl = ({
4586
4586
  resetForm: S,
4587
4587
  clearInput: D,
4588
4588
  focusInitialElement: N,
4589
- getValues: C,
4589
+ getValues: _,
4590
4590
  updateFormValue: W,
4591
4591
  setBtnDisabledSubmit: g
4592
4592
  })), /* @__PURE__ */ o.jsxs(
4593
4593
  "form",
4594
4594
  {
4595
4595
  autoComplete: i ?? "off",
4596
- onSubmit: k,
4596
+ onSubmit: C,
4597
4597
  className: d ?? "",
4598
4598
  children: [
4599
4599
  /* @__PURE__ */ o.jsxs("div", { className: "form-content", children: [
4600
- e.map((y, _) => {
4600
+ e.map((y, k) => {
4601
4601
  const I = y.onRequired ? y.onRequired(y.value) : y.required ?? !1, M = y.onDisabled ? y.onDisabled(y.value) : y.disabled ?? !1;
4602
4602
  return /* @__PURE__ */ o.jsxs(
4603
4603
  "div",
@@ -4656,7 +4656,7 @@ const Yl = ({
4656
4656
  )
4657
4657
  ]
4658
4658
  },
4659
- _
4659
+ k
4660
4660
  );
4661
4661
  }),
4662
4662
  a
@@ -4694,7 +4694,7 @@ const Yl = ({
4694
4694
  onKeyDown: b,
4695
4695
  onFocus: j
4696
4696
  }, x) => {
4697
- const k = R(
4697
+ const C = R(
4698
4698
  (D) => {
4699
4699
  let N = D.target.value.replace(",", ".");
4700
4700
  !/^-?\d*[.,]?\d*$/.test(N) && N !== "" || c && N.length > c || h == null || h(D, N);
@@ -4727,7 +4727,7 @@ const Yl = ({
4727
4727
  inputMode: m,
4728
4728
  spellCheck: "false",
4729
4729
  className: `input-field ${a ?? ""}`,
4730
- onChange: k,
4730
+ onChange: C,
4731
4731
  onWheel: (D) => D.currentTarget.blur(),
4732
4732
  onKeyDown: S,
4733
4733
  onFocus: j,
@@ -5049,8 +5049,8 @@ const zl = Ue(
5049
5049
  );
5050
5050
  return Dr(d, () => ({
5051
5051
  clearInput: (x) => {
5052
- var k;
5053
- (k = h.current) == null || k.clearInput(x);
5052
+ var C;
5053
+ (C = h.current) == null || C.clearInput(x);
5054
5054
  },
5055
5055
  resetForm: () => {
5056
5056
  var x;
@@ -5104,26 +5104,40 @@ const zl = Ue(
5104
5104
  const v = R(() => {
5105
5105
  f(!1), n && n(!1);
5106
5106
  }, [n]), b = R(
5107
- (k) => {
5108
- l && m.current && !m.current.contains(k.target) && v();
5107
+ (S) => {
5108
+ l && m.current && !m.current.contains(S.target) && v();
5109
5109
  },
5110
5110
  [v, l]
5111
- ), j = R((k) => {
5112
- const S = k.touches[0];
5113
- h.current = S.clientX, p.current = S.clientY;
5111
+ ), j = R((S) => {
5112
+ const D = S.touches[0];
5113
+ h.current = D.clientX, p.current = D.clientY;
5114
5114
  }, []), x = R(
5115
- (k) => {
5115
+ (S) => {
5116
5116
  if (!d) return;
5117
- const S = k.changedTouches[0], D = S.clientX - h.current, N = Math.abs(S.clientY - p.current);
5118
- D > 60 && N < 40 && v();
5117
+ const D = S.changedTouches[0], N = D.clientX - h.current, _ = Math.abs(D.clientY - p.current);
5118
+ N > 60 && _ < 40 && v();
5119
5119
  },
5120
5120
  [d, v]
5121
+ ), C = R(
5122
+ (S) => {
5123
+ S.preventDefault(), v();
5124
+ },
5125
+ [v]
5121
5126
  );
5122
- return q(() => (d ? document.addEventListener("mousedown", b) : document.removeEventListener("mousedown", b), () => {
5123
- document.removeEventListener("mousedown", b);
5127
+ return q(() => (d ? (document.addEventListener("mousedown", b), document.addEventListener("touchstart", b, {
5128
+ passive: !0
5129
+ })) : (document.removeEventListener("mousedown", b), document.removeEventListener("touchstart", b)), () => {
5130
+ document.removeEventListener("mousedown", b), document.removeEventListener("touchstart", b);
5124
5131
  }), [d, b]), g.current ? Nn.createPortal(
5125
5132
  /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
5126
- d && c && /* @__PURE__ */ o.jsx("div", { className: "overlay" }),
5133
+ d && c && /* @__PURE__ */ o.jsx(
5134
+ "div",
5135
+ {
5136
+ className: "overlay",
5137
+ onClick: v,
5138
+ onTouchEnd: C
5139
+ }
5140
+ ),
5127
5141
  /* @__PURE__ */ o.jsxs(
5128
5142
  "div",
5129
5143
  {