beesoft-components 0.6.5 → 0.7.1-0

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
@@ -2,7 +2,7 @@ var ka = Object.defineProperty;
2
2
  var Oa = (e, r, t) => r in e ? ka(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
3
3
  var p = (e, r, t) => (Oa(e, typeof r != "symbol" ? r + "" : r, t), t);
4
4
  import * as Ot from "react";
5
- import st, { createContext as ls, useContext as Gr, forwardRef as pr, useRef as Q, useImperativeHandle as mr, useState as xe, useId as Ra, useEffect as Se, useCallback as Ie, useMemo as Yt, useReducer as Na } from "react";
5
+ import st, { createContext as ls, useContext as Gr, forwardRef as pr, useRef as Q, useImperativeHandle as mr, useState as xe, useId as Ra, useEffect as Se, useCallback as je, useMemo as Yt, useReducer as Na } from "react";
6
6
  import Lt from "react-dom";
7
7
  function fs(e) {
8
8
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -46,7 +46,7 @@ var Nt = {};
46
46
  * LICENSE file in the root directory of this source tree.
47
47
  */
48
48
  var xn;
49
- function Ia() {
49
+ function ja() {
50
50
  return xn || (xn = 1, process.env.NODE_ENV !== "production" && function() {
51
51
  var e = st, r = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), i = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), w = Symbol.iterator, S = "@@iterator";
52
52
  function N(u) {
@@ -73,10 +73,10 @@ function Ia() {
73
73
  he.unshift("Warning: " + y), Function.prototype.apply.call(console[u], console, he);
74
74
  }
75
75
  }
76
- var I = !1, b = !1, L = !1, R = !1, H = !1, A;
76
+ var j = !1, b = !1, L = !1, R = !1, H = !1, A;
77
77
  A = Symbol.for("react.module.reference");
78
78
  function te(u) {
79
- return !!(typeof u == "string" || typeof u == "function" || u === n || u === a || H || u === s || u === l || u === d || R || u === x || I || b || L || typeof u == "object" && u !== null && (u.$$typeof === v || u.$$typeof === m || u.$$typeof === o || u.$$typeof === i || u.$$typeof === c || // This needs to include all possible module reference object
79
+ return !!(typeof u == "string" || typeof u == "function" || u === n || u === a || H || u === s || u === l || u === d || R || u === x || j || b || L || typeof u == "object" && u !== null && (u.$$typeof === v || u.$$typeof === m || u.$$typeof === o || u.$$typeof === i || u.$$typeof === c || // This needs to include all possible module reference object
80
80
  // types supported by any Flight configuration anywhere since
81
81
  // we don't know which Flight build this will end up being used
82
82
  // with.
@@ -137,14 +137,14 @@ function Ia() {
137
137
  }
138
138
  return null;
139
139
  }
140
- var T = Object.assign, Y = 0, F, ne, j, fe, g, C, U;
140
+ var T = Object.assign, Y = 0, F, ne, I, fe, g, C, U;
141
141
  function h() {
142
142
  }
143
143
  h.__reactDisabledLog = !0;
144
144
  function D() {
145
145
  {
146
146
  if (Y === 0) {
147
- F = console.log, ne = console.info, j = console.warn, fe = console.error, g = console.group, C = console.groupCollapsed, U = console.groupEnd;
147
+ F = console.log, ne = console.info, I = console.warn, fe = console.error, g = console.group, C = console.groupCollapsed, U = console.groupEnd;
148
148
  var u = {
149
149
  configurable: !0,
150
150
  enumerable: !0,
@@ -180,7 +180,7 @@ function Ia() {
180
180
  value: ne
181
181
  }),
182
182
  warn: T({}, u, {
183
- value: j
183
+ value: I
184
184
  }),
185
185
  error: T({}, u, {
186
186
  value: fe
@@ -381,7 +381,7 @@ function Ia() {
381
381
  ref: !0,
382
382
  __self: !0,
383
383
  __source: !0
384
- }, ce, je, lt;
384
+ }, ce, Ie, lt;
385
385
  lt = {};
386
386
  function Gt(u) {
387
387
  if (et.call(u, "ref")) {
@@ -419,7 +419,7 @@ function Ia() {
419
419
  function Jt(u, y) {
420
420
  {
421
421
  var O = function() {
422
- je || (je = !0, $("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", y));
422
+ Ie || (Ie = !0, $("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", y));
423
423
  };
424
424
  O.isReactWarning = !0, Object.defineProperty(u, "ref", {
425
425
  get: O,
@@ -632,7 +632,7 @@ Check the top-level render call using <` + O + ">.");
632
632
  Nt.Fragment = n, Nt.jsx = Ca, Nt.jsxs = Da;
633
633
  }()), Nt;
634
634
  }
635
- process.env.NODE_ENV === "production" ? $r.exports = _a() : $r.exports = Ia();
635
+ process.env.NODE_ENV === "production" ? $r.exports = _a() : $r.exports = ja();
636
636
  var f = $r.exports;
637
637
  const ds = ls(void 0), hs = () => Gr(ds), Bh = ({
638
638
  overlayKeepOnScreen: e = !0,
@@ -653,7 +653,7 @@ const ds = ls(void 0), hs = () => Gr(ds), Bh = ({
653
653
  };
654
654
  return /* @__PURE__ */ f.jsx(ds.Provider, { value: i, children: o });
655
655
  };
656
- var ps = { exports: {} };
656
+ var Fr = /* @__PURE__ */ ((e) => (e[e.Vertical = 0] = "Vertical", e[e.Horizontal = 1] = "Horizontal", e))(Fr || {}), ps = { exports: {} };
657
657
  /*!
658
658
  Copyright (c) 2018 Jed Watson.
659
659
  Licensed under the MIT License (MIT), see
@@ -689,8 +689,8 @@ var ps = { exports: {} };
689
689
  e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
690
690
  })();
691
691
  })(ps);
692
- var ja = ps.exports;
693
- const we = /* @__PURE__ */ fs(ja), Ma = (e, r) => {
692
+ var Ia = ps.exports;
693
+ const we = /* @__PURE__ */ fs(Ia), Ma = (e, r) => {
694
694
  const t = Q(null), {
695
695
  buttonType: n,
696
696
  type: s = "button",
@@ -881,18 +881,21 @@ const Xa = (e, r) => {
881
881
  } = e, [v, x] = xe(!0), [w, S, N] = Ka({
882
882
  checked: !1,
883
883
  partial: !1
884
- }), E = wn(o), $ = wn(i), V = Ra(), I = hs();
884
+ });
885
+ console.log("checked", o, "partial", i);
886
+ const E = wn(o), $ = wn(i), V = Ra(), j = hs();
885
887
  Se(() => {
886
- d !== void 0 ? x(d) : I && I.useAnimations !== void 0 && x(I.useAnimations);
887
- }, [I, d]), Se(() => {
888
+ d !== void 0 ? x(d) : j && j.useAnimations !== void 0 && x(j.useAnimations);
889
+ }, [j, d]), Se(() => {
888
890
  if (w.initial)
889
891
  S({
890
892
  checked: i ? !0 : o,
891
893
  partial: i
892
894
  });
893
895
  else {
896
+ console.log("checked property changed", E.changed), console.log("partial property changed", $.changed);
894
897
  const P = E.changed ? o : w.value.checked, T = $.changed ? i : w.value.partial;
895
- S({
898
+ console.log("new checked", P), console.log("new partial", T), S({
896
899
  checked: T ? !0 : P,
897
900
  partial: T
898
901
  });
@@ -956,7 +959,7 @@ const Xa = (e, r) => {
956
959
  "bsc-fill-primary-4 dark:bsc-fill-mono-light-3": a
957
960
  }
958
961
  );
959
- return /* @__PURE__ */ f.jsxs("div", { className: H, children: [
962
+ return console.log("checked state", w), /* @__PURE__ */ f.jsxs("div", { className: H, children: [
960
963
  n && c === mt.Left && /* @__PURE__ */ f.jsx(fr, { label: n, htmlFor: V, readOnly: a, className: A }),
961
964
  /* @__PURE__ */ f.jsxs("label", { className: te, children: [
962
965
  /* @__PURE__ */ f.jsx(
@@ -974,9 +977,7 @@ const Xa = (e, r) => {
974
977
  ] }),
975
978
  n && c === mt.Right && /* @__PURE__ */ f.jsx(fr, { label: n, htmlFor: V, readOnly: a, className: A })
976
979
  ] });
977
- }, Ja = pr(Xa);
978
- var Fr = /* @__PURE__ */ ((e) => (e[e.Vertical = 0] = "Vertical", e[e.Horizontal = 1] = "Horizontal", e))(Fr || {});
979
- const Uh = ({
980
+ }, Ja = pr(Xa), Uh = ({
980
981
  name: e,
981
982
  label: r,
982
983
  value: t,
@@ -993,9 +994,9 @@ const Uh = ({
993
994
  m(t ?? []);
994
995
  }, [t]);
995
996
  const x = ($) => {
996
- const { value: V, checked: I } = $;
997
+ const { value: V, checked: j } = $;
997
998
  let b;
998
- I ? b = [...d, V] : b = d.filter((L) => L !== V), m(b), l == null || l({
999
+ j ? b = [...d, V] : b = d.filter((L) => L !== V), m(b), l == null || l({
999
1000
  name: e,
1000
1001
  value: b
1001
1002
  });
@@ -1005,9 +1006,9 @@ const Uh = ({
1005
1006
  name: e,
1006
1007
  label: $[s],
1007
1008
  value: $[a],
1008
- checked: d.some((I) => I === $[a]),
1009
+ checked: d.some((j) => j === $[a]),
1009
1010
  readOnly: o,
1010
- onChange: (I) => I && x(I),
1011
+ onChange: (j) => j && x(j),
1011
1012
  className: "bsc-mr-3"
1012
1013
  },
1013
1014
  `${e}_checkbox_${V}`
@@ -1113,13 +1114,13 @@ function it(e) {
1113
1114
  }
1114
1115
  return "";
1115
1116
  }
1116
- var _o = /[\\^$.*+?()[\]{}|]/g, Io = /^\[object .+?Constructor\]$/, jo = Function.prototype, Mo = Object.prototype, Lo = jo.toString, Ao = Mo.hasOwnProperty, $o = RegExp(
1117
+ var _o = /[\\^$.*+?()[\]{}|]/g, jo = /^\[object .+?Constructor\]$/, Io = Function.prototype, Mo = Object.prototype, Lo = Io.toString, Ao = Mo.hasOwnProperty, $o = RegExp(
1117
1118
  "^" + Lo.call(Ao).replace(_o, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
1118
1119
  );
1119
1120
  function Fo(e) {
1120
1121
  if (!Ge(e) || Oo(e))
1121
1122
  return !1;
1122
- var r = ws(e) ? $o : Io;
1123
+ var r = ws(e) ? $o : jo;
1123
1124
  return r.test(it(e));
1124
1125
  }
1125
1126
  function Yo(e, r) {
@@ -1226,10 +1227,10 @@ function oi() {
1226
1227
  }
1227
1228
  var ks = typeof exports == "object" && exports && !exports.nodeType && exports, On = ks && typeof module == "object" && module && !module.nodeType && module, ii = On && On.exports === ks, Rn = ii ? $e.Buffer : void 0, ci = Rn ? Rn.isBuffer : void 0, ui = ci || oi;
1228
1229
  const Os = ui;
1229
- var li = "[object Arguments]", fi = "[object Array]", di = "[object Boolean]", hi = "[object Date]", pi = "[object Error]", mi = "[object Function]", gi = "[object Map]", bi = "[object Number]", yi = "[object Object]", vi = "[object RegExp]", xi = "[object Set]", wi = "[object String]", Ti = "[object WeakMap]", Pi = "[object ArrayBuffer]", Ei = "[object DataView]", Si = "[object Float32Array]", Ci = "[object Float64Array]", Di = "[object Int8Array]", ki = "[object Int16Array]", Oi = "[object Int32Array]", Ri = "[object Uint8Array]", Ni = "[object Uint8ClampedArray]", _i = "[object Uint16Array]", Ii = "[object Uint32Array]", ge = {};
1230
- ge[Si] = ge[Ci] = ge[Di] = ge[ki] = ge[Oi] = ge[Ri] = ge[Ni] = ge[_i] = ge[Ii] = !0;
1230
+ var li = "[object Arguments]", fi = "[object Array]", di = "[object Boolean]", hi = "[object Date]", pi = "[object Error]", mi = "[object Function]", gi = "[object Map]", bi = "[object Number]", yi = "[object Object]", vi = "[object RegExp]", xi = "[object Set]", wi = "[object String]", Ti = "[object WeakMap]", Pi = "[object ArrayBuffer]", Ei = "[object DataView]", Si = "[object Float32Array]", Ci = "[object Float64Array]", Di = "[object Int8Array]", ki = "[object Int16Array]", Oi = "[object Int32Array]", Ri = "[object Uint8Array]", Ni = "[object Uint8ClampedArray]", _i = "[object Uint16Array]", ji = "[object Uint32Array]", ge = {};
1231
+ ge[Si] = ge[Ci] = ge[Di] = ge[ki] = ge[Oi] = ge[Ri] = ge[Ni] = ge[_i] = ge[ji] = !0;
1231
1232
  ge[li] = ge[fi] = ge[Pi] = ge[di] = ge[Ei] = ge[hi] = ge[pi] = ge[mi] = ge[gi] = ge[bi] = ge[yi] = ge[vi] = ge[xi] = ge[wi] = ge[Ti] = !1;
1232
- function ji(e) {
1233
+ function Ii(e) {
1233
1234
  return wt(e) && Ss(e.length) && !!ge[xt(e)];
1234
1235
  }
1235
1236
  function Jr(e) {
@@ -1245,7 +1246,7 @@ var Rs = typeof exports == "object" && exports && !exports.nodeType && exports,
1245
1246
  }
1246
1247
  }();
1247
1248
  const yt = Li;
1248
- var Nn = yt && yt.isTypedArray, Ai = Nn ? Jr(Nn) : ji;
1249
+ var Nn = yt && yt.isTypedArray, Ai = Nn ? Jr(Nn) : Ii;
1249
1250
  const $i = Ai;
1250
1251
  var Fi = Object.prototype, Yi = Fi.hasOwnProperty;
1251
1252
  function Ns(e, r) {
@@ -1419,13 +1420,13 @@ Tt.prototype.delete = yc;
1419
1420
  Tt.prototype.get = vc;
1420
1421
  Tt.prototype.has = xc;
1421
1422
  Tt.prototype.set = wc;
1422
- function Is(e, r) {
1423
+ function js(e, r) {
1423
1424
  for (var t = -1, n = r.length, s = e.length; ++t < n; )
1424
1425
  e[s + t] = r[t];
1425
1426
  return e;
1426
1427
  }
1427
1428
  var Tc = _s(Object.getPrototypeOf, Object);
1428
- const js = Tc;
1429
+ const Is = Tc;
1429
1430
  function Pc() {
1430
1431
  this.__data__ = new Qe(), this.size = 0;
1431
1432
  }
@@ -1465,14 +1466,14 @@ function Oc(e, r) {
1465
1466
  function Rc(e, r) {
1466
1467
  return e && gr(r, tn(r), e);
1467
1468
  }
1468
- var Ms = typeof exports == "object" && exports && !exports.nodeType && exports, _n = Ms && typeof module == "object" && module && !module.nodeType && module, Nc = _n && _n.exports === Ms, In = Nc ? $e.Buffer : void 0, jn = In ? In.allocUnsafe : void 0;
1469
+ var Ms = typeof exports == "object" && exports && !exports.nodeType && exports, _n = Ms && typeof module == "object" && module && !module.nodeType && module, Nc = _n && _n.exports === Ms, jn = Nc ? $e.Buffer : void 0, In = jn ? jn.allocUnsafe : void 0;
1469
1470
  function _c(e, r) {
1470
1471
  if (r)
1471
1472
  return e.slice();
1472
- var t = e.length, n = jn ? jn(t) : new e.constructor(t);
1473
+ var t = e.length, n = In ? In(t) : new e.constructor(t);
1473
1474
  return e.copy(n), n;
1474
1475
  }
1475
- function Ic(e, r) {
1476
+ function jc(e, r) {
1476
1477
  for (var t = -1, n = e == null ? 0 : e.length, s = 0, a = []; ++t < n; ) {
1477
1478
  var o = e[t];
1478
1479
  r(o, t, e) && (a[s++] = o);
@@ -1482,8 +1483,8 @@ function Ic(e, r) {
1482
1483
  function Ls() {
1483
1484
  return [];
1484
1485
  }
1485
- var jc = Object.prototype, Mc = jc.propertyIsEnumerable, Mn = Object.getOwnPropertySymbols, Lc = Mn ? function(e) {
1486
- return e == null ? [] : (e = Object(e), Ic(Mn(e), function(r) {
1486
+ var Ic = Object.prototype, Mc = Ic.propertyIsEnumerable, Mn = Object.getOwnPropertySymbols, Lc = Mn ? function(e) {
1487
+ return e == null ? [] : (e = Object(e), jc(Mn(e), function(r) {
1487
1488
  return Mc.call(e, r);
1488
1489
  }));
1489
1490
  } : Ls;
@@ -1493,7 +1494,7 @@ function Ac(e, r) {
1493
1494
  }
1494
1495
  var $c = Object.getOwnPropertySymbols, Fc = $c ? function(e) {
1495
1496
  for (var r = []; e; )
1496
- Is(r, rn(e)), e = js(e);
1497
+ js(r, rn(e)), e = Is(e);
1497
1498
  return r;
1498
1499
  } : Ls;
1499
1500
  const As = Fc;
@@ -1502,7 +1503,7 @@ function Yc(e, r) {
1502
1503
  }
1503
1504
  function $s(e, r, t) {
1504
1505
  var n = r(e);
1505
- return Kr(e) ? n : Is(n, t(e));
1506
+ return Kr(e) ? n : js(n, t(e));
1506
1507
  }
1507
1508
  function Hc(e) {
1508
1509
  return $s(e, en, rn);
@@ -1598,7 +1599,7 @@ function Cu(e, r, t) {
1598
1599
  }
1599
1600
  }
1600
1601
  function Du(e) {
1601
- return typeof e.constructor == "function" && !Xr(e) ? Vo(js(e)) : {};
1602
+ return typeof e.constructor == "function" && !Xr(e) ? Vo(Is(e)) : {};
1602
1603
  }
1603
1604
  var ku = "[object Map]";
1604
1605
  function Ou(e) {
@@ -1607,11 +1608,11 @@ function Ou(e) {
1607
1608
  var Bn = yt && yt.isMap, Ru = Bn ? Jr(Bn) : Ou;
1608
1609
  const Nu = Ru;
1609
1610
  var _u = "[object Set]";
1610
- function Iu(e) {
1611
+ function ju(e) {
1611
1612
  return wt(e) && nn(e) == _u;
1612
1613
  }
1613
- var Un = yt && yt.isSet, ju = Un ? Jr(Un) : Iu;
1614
- const Mu = ju;
1614
+ var Un = yt && yt.isSet, Iu = Un ? Jr(Un) : ju;
1615
+ const Mu = Iu;
1615
1616
  var Lu = 1, Au = 2, $u = 4, Fs = "[object Arguments]", Fu = "[object Array]", Yu = "[object Boolean]", Hu = "[object Date]", Wu = "[object Error]", Ys = "[object Function]", Vu = "[object GeneratorFunction]", Bu = "[object Map]", Uu = "[object Number]", Hs = "[object Object]", zu = "[object RegExp]", qu = "[object Set]", Zu = "[object String]", Gu = "[object Symbol]", Qu = "[object WeakMap]", Ku = "[object ArrayBuffer]", Xu = "[object DataView]", Ju = "[object Float32Array]", el = "[object Float64Array]", tl = "[object Int8Array]", rl = "[object Int16Array]", nl = "[object Int32Array]", sl = "[object Uint8Array]", al = "[object Uint8ClampedArray]", ol = "[object Uint16Array]", il = "[object Uint32Array]", pe = {};
1616
1617
  pe[Fs] = pe[Fu] = pe[Ku] = pe[Xu] = pe[Yu] = pe[Hu] = pe[Ju] = pe[el] = pe[tl] = pe[rl] = pe[nl] = pe[Bu] = pe[Uu] = pe[Hs] = pe[zu] = pe[qu] = pe[Zu] = pe[Gu] = pe[sl] = pe[al] = pe[ol] = pe[il] = !0;
1617
1618
  pe[Wu] = pe[Ys] = pe[Qu] = !1;
@@ -1693,7 +1694,7 @@ function Vt(e, r, t) {
1693
1694
  function V() {
1694
1695
  i !== void 0 && clearTimeout(i), l = 0, n = c = s = i = void 0;
1695
1696
  }
1696
- function I() {
1697
+ function j() {
1697
1698
  return i === void 0 ? o : $(kr());
1698
1699
  }
1699
1700
  function b() {
@@ -1706,7 +1707,7 @@ function Vt(e, r, t) {
1706
1707
  }
1707
1708
  return i === void 0 && (i = setTimeout(E, r)), o;
1708
1709
  }
1709
- return b.cancel = V, b.flush = I, b;
1710
+ return b.cancel = V, b.flush = j, b;
1710
1711
  }
1711
1712
  var ml = "Expected a function";
1712
1713
  function gl(e, r, t) {
@@ -1739,16 +1740,16 @@ const bl = (e, r) => {
1739
1740
  onInput: E,
1740
1741
  onInnerTextChange: $,
1741
1742
  onInnerHTMLChange: V,
1742
- onElementCreate: I,
1743
+ onElementCreate: j,
1743
1744
  onLeftElementClick: b,
1744
1745
  onRightElementClick: L
1745
- } = e, R = Q("bsc-flex-grow focus:bsc-outline-none"), H = Q("bsc-text-gray-4"), A = Q(), te = Ie(
1746
+ } = e, R = Q("bsc-flex-grow focus:bsc-outline-none"), H = Q("bsc-text-gray-4"), A = Q(), te = je(
1746
1747
  (h) => {
1747
1748
  const D = h.target, B = D.innerHTML;
1748
1749
  D.className = `${R.current}`, w && B === w && (D.innerHTML = ""), S == null || S(h);
1749
1750
  },
1750
1751
  [w, S]
1751
- ), J = Ie(
1752
+ ), J = je(
1752
1753
  (h) => {
1753
1754
  const D = h.target.innerHTML;
1754
1755
  if (w && D === "") {
@@ -1758,35 +1759,35 @@ const bl = (e, r) => {
1758
1759
  N == null || N(h);
1759
1760
  },
1760
1761
  [w, N]
1761
- ), X = Ie(
1762
+ ), X = je(
1762
1763
  (h) => {
1763
1764
  var D, B;
1764
1765
  (D = A.current) == null || D.removeEventListener("focus", te), (B = A.current) == null || B.removeEventListener("blur", J), w && h && h !== document.activeElement && h.innerHTML === "" && (h.innerHTML = w, h.className = `${R.current} ${H.current}`), h.addEventListener("focus", te), h.addEventListener("blur", J), A.current = h;
1765
1766
  },
1766
1767
  [w]
1767
- ), P = Ie(
1768
+ ), P = je(
1768
1769
  (h) => {
1769
- I == null || I(h);
1770
+ j == null || j(h);
1770
1771
  },
1771
- [I]
1772
+ [j]
1772
1773
  ), T = (h) => {
1773
1774
  b == null || b(h);
1774
1775
  }, Y = (h) => {
1775
1776
  L == null || L(h);
1776
1777
  }, F = Vt((h) => {
1777
1778
  E == null || E(h), $ == null || $(h.target.innerText), V == null || V(h.target.innerHTML);
1778
- }, s), ne = Ie((h) => {
1779
+ }, s), ne = je((h) => {
1779
1780
  A.current && (A.current.innerText = h);
1780
- }, []), j = Ie((h) => {
1781
+ }, []), I = je((h) => {
1781
1782
  A.current && (A.current.innerHTML = h);
1782
- }, []), fe = Ie(() => {
1783
+ }, []), fe = je(() => {
1783
1784
  var h;
1784
1785
  (h = A.current) == null || h.focus();
1785
1786
  }, []);
1786
1787
  mr(r, () => ({
1787
1788
  inputElement: A.current,
1788
1789
  setInnerText: ne,
1789
- setInnerHTML: j,
1790
+ setInnerHTML: I,
1790
1791
  focus: fe
1791
1792
  }));
1792
1793
  const g = we(
@@ -2036,7 +2037,7 @@ const Dl = {
2036
2037
  nextWeek: "eeee 'at' p",
2037
2038
  other: "P"
2038
2039
  }, _l = (e, r, t, n) => Nl[e];
2039
- function It(e) {
2040
+ function jt(e) {
2040
2041
  return (r, t) => {
2041
2042
  const n = t != null && t.context ? String(t.context) : "standalone";
2042
2043
  let s;
@@ -2051,11 +2052,11 @@ function It(e) {
2051
2052
  return s[a];
2052
2053
  };
2053
2054
  }
2054
- const Il = {
2055
+ const jl = {
2055
2056
  narrow: ["B", "A"],
2056
2057
  abbreviated: ["BC", "AD"],
2057
2058
  wide: ["Before Christ", "Anno Domini"]
2058
- }, jl = {
2059
+ }, Il = {
2059
2060
  narrow: ["1", "2", "3", "4"],
2060
2061
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
2061
2062
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
@@ -2178,31 +2179,31 @@ const Il = {
2178
2179
  return t + "th";
2179
2180
  }, Yl = {
2180
2181
  ordinalNumber: Fl,
2181
- era: It({
2182
- values: Il,
2182
+ era: jt({
2183
+ values: jl,
2183
2184
  defaultWidth: "wide"
2184
2185
  }),
2185
- quarter: It({
2186
- values: jl,
2186
+ quarter: jt({
2187
+ values: Il,
2187
2188
  defaultWidth: "wide",
2188
2189
  argumentCallback: (e) => e - 1
2189
2190
  }),
2190
- month: It({
2191
+ month: jt({
2191
2192
  values: Ml,
2192
2193
  defaultWidth: "wide"
2193
2194
  }),
2194
- day: It({
2195
+ day: jt({
2195
2196
  values: Ll,
2196
2197
  defaultWidth: "wide"
2197
2198
  }),
2198
- dayPeriod: It({
2199
+ dayPeriod: jt({
2199
2200
  values: Al,
2200
2201
  defaultWidth: "wide",
2201
2202
  formattingValues: $l,
2202
2203
  defaultFormattingWidth: "wide"
2203
2204
  })
2204
2205
  };
2205
- function jt(e) {
2206
+ function It(e) {
2206
2207
  return (r, t = {}) => {
2207
2208
  const n = t.width, s = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], a = r.match(s);
2208
2209
  if (!a)
@@ -2317,32 +2318,32 @@ const Bl = /^(\d+)(th|st|nd|rd)?/i, Ul = /\d+/i, zl = {
2317
2318
  parsePattern: Ul,
2318
2319
  valueCallback: (e) => parseInt(e, 10)
2319
2320
  }),
2320
- era: jt({
2321
+ era: It({
2321
2322
  matchPatterns: zl,
2322
2323
  defaultMatchWidth: "wide",
2323
2324
  parsePatterns: ql,
2324
2325
  defaultParseWidth: "any"
2325
2326
  }),
2326
- quarter: jt({
2327
+ quarter: It({
2327
2328
  matchPatterns: Zl,
2328
2329
  defaultMatchWidth: "wide",
2329
2330
  parsePatterns: Gl,
2330
2331
  defaultParseWidth: "any",
2331
2332
  valueCallback: (e) => e + 1
2332
2333
  }),
2333
- month: jt({
2334
+ month: It({
2334
2335
  matchPatterns: Ql,
2335
2336
  defaultMatchWidth: "wide",
2336
2337
  parsePatterns: Kl,
2337
2338
  defaultParseWidth: "any"
2338
2339
  }),
2339
- day: jt({
2340
+ day: It({
2340
2341
  matchPatterns: Xl,
2341
2342
  defaultMatchWidth: "wide",
2342
2343
  parsePatterns: Jl,
2343
2344
  defaultParseWidth: "any"
2344
2345
  }),
2345
- dayPeriod: jt({
2346
+ dayPeriod: It({
2346
2347
  matchPatterns: ef,
2347
2348
  defaultMatchWidth: "any",
2348
2349
  parsePatterns: tf,
@@ -3082,7 +3083,7 @@ function _f(e, r, t) {
3082
3083
  const n = oe(e), s = of(n, t) - r;
3083
3084
  return n.setDate(n.getDate() - s * 7), n;
3084
3085
  }
3085
- class If extends ie {
3086
+ class jf extends ie {
3086
3087
  constructor() {
3087
3088
  super(...arguments);
3088
3089
  p(this, "priority", 100);
@@ -3119,7 +3120,7 @@ class If extends ie {
3119
3120
  return Je(_f(t, s, a), a);
3120
3121
  }
3121
3122
  }
3122
- function jf(e, r) {
3123
+ function If(e, r) {
3123
3124
  const t = oe(e), n = sf(t) - r;
3124
3125
  return t.setDate(t.getDate() - n * 7), t;
3125
3126
  }
@@ -3158,7 +3159,7 @@ class Mf extends ie {
3158
3159
  return n >= 1 && n <= 53;
3159
3160
  }
3160
3161
  set(t, n, s) {
3161
- return vt(jf(t, s));
3162
+ return vt(If(t, s));
3162
3163
  }
3163
3164
  }
3164
3165
  const Lf = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Af = [
@@ -3908,7 +3909,7 @@ const ad = {
3908
3909
  q: new Of(),
3909
3910
  M: new Rf(),
3910
3911
  L: new Nf(),
3911
- w: new If(),
3912
+ w: new jf(),
3912
3913
  I: new Mf(),
3913
3914
  d: new $f(),
3914
3915
  D: new Ff(),
@@ -3932,8 +3933,8 @@ const ad = {
3932
3933
  T: new sd()
3933
3934
  }, od = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, id = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, cd = /^'([^]*?)'?$/, ud = /''/g, ld = /\S/, fd = /[a-zA-Z]/;
3934
3935
  function Fe(e, r, t, n) {
3935
- var S, N, E, $, V, I, b, L;
3936
- const s = mf(), a = (n == null ? void 0 : n.locale) ?? s.locale ?? nf, o = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((N = (S = n == null ? void 0 : n.locale) == null ? void 0 : S.options) == null ? void 0 : N.firstWeekContainsDate) ?? s.firstWeekContainsDate ?? (($ = (E = s.locale) == null ? void 0 : E.options) == null ? void 0 : $.firstWeekContainsDate) ?? 1, i = (n == null ? void 0 : n.weekStartsOn) ?? ((I = (V = n == null ? void 0 : n.locale) == null ? void 0 : V.options) == null ? void 0 : I.weekStartsOn) ?? s.weekStartsOn ?? ((L = (b = s.locale) == null ? void 0 : b.options) == null ? void 0 : L.weekStartsOn) ?? 0;
3936
+ var S, N, E, $, V, j, b, L;
3937
+ const s = mf(), a = (n == null ? void 0 : n.locale) ?? s.locale ?? nf, o = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((N = (S = n == null ? void 0 : n.locale) == null ? void 0 : S.options) == null ? void 0 : N.firstWeekContainsDate) ?? s.firstWeekContainsDate ?? (($ = (E = s.locale) == null ? void 0 : E.options) == null ? void 0 : $.firstWeekContainsDate) ?? 1, i = (n == null ? void 0 : n.weekStartsOn) ?? ((j = (V = n == null ? void 0 : n.locale) == null ? void 0 : V.options) == null ? void 0 : j.weekStartsOn) ?? s.weekStartsOn ?? ((L = (b = s.locale) == null ? void 0 : b.options) == null ? void 0 : L.weekStartsOn) ?? 0;
3937
3938
  if (r === "")
3938
3939
  return e === "" ? oe(t) : me(t, NaN);
3939
3940
  const c = {
@@ -4145,7 +4146,7 @@ function _d(e, r) {
4145
4146
  const o = Zs(a);
4146
4147
  return t.setMonth(r, Math.min(s, o)), t;
4147
4148
  }
4148
- function Id(e, r) {
4149
+ function jd(e, r) {
4149
4150
  const t = oe(e);
4150
4151
  return isNaN(+t) ? me(e, NaN) : (t.setFullYear(r), t);
4151
4152
  }
@@ -4158,7 +4159,7 @@ function ta(e, r) {
4158
4159
  function ra() {
4159
4160
  return window.navigator.languages ? window.navigator.languages[0] : window.navigator.language;
4160
4161
  }
4161
- function jd(e, r, t) {
4162
+ function Id(e, r, t) {
4162
4163
  const n = [];
4163
4164
  for (let s = e; s <= r; s++)
4164
4165
  n.push(t ? t(s) : s);
@@ -4519,12 +4520,12 @@ function Kd() {
4519
4520
  }
4520
4521
  }
4521
4522
  }
4522
- function I(b) {
4523
+ function j(b) {
4523
4524
  return V(b) === l;
4524
4525
  }
4525
4526
  return ue.AsyncMode = c, ue.ConcurrentMode = l, ue.ContextConsumer = i, ue.ContextProvider = o, ue.Element = r, ue.ForwardRef = d, ue.Fragment = n, ue.Lazy = w, ue.Memo = x, ue.Portal = t, ue.Profiler = a, ue.StrictMode = s, ue.Suspense = m, ue.isAsyncMode = function(b) {
4526
- return I(b) || V(b) === c;
4527
- }, ue.isConcurrentMode = I, ue.isContextConsumer = function(b) {
4527
+ return j(b) || V(b) === c;
4528
+ }, ue.isConcurrentMode = j, ue.isContextConsumer = function(b) {
4528
4529
  return V(b) === i;
4529
4530
  }, ue.isContextProvider = function(b) {
4530
4531
  return V(b) === o;
@@ -4567,7 +4568,7 @@ function Xd() {
4567
4568
  return typeof k == "string" || typeof k == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
4568
4569
  k === n || k === l || k === a || k === s || k === m || k === v || typeof k == "object" && k !== null && (k.$$typeof === w || k.$$typeof === x || k.$$typeof === o || k.$$typeof === i || k.$$typeof === d || k.$$typeof === N || k.$$typeof === E || k.$$typeof === $ || k.$$typeof === S);
4569
4570
  }
4570
- function I(k) {
4571
+ function j(k) {
4571
4572
  if (typeof k == "object" && k !== null) {
4572
4573
  var Ne = k.$$typeof;
4573
4574
  switch (Ne) {
@@ -4599,47 +4600,47 @@ function Xd() {
4599
4600
  }
4600
4601
  }
4601
4602
  }
4602
- var b = c, L = l, R = i, H = o, A = r, te = d, J = n, X = w, P = x, T = t, Y = a, F = s, ne = m, j = !1;
4603
+ var b = c, L = l, R = i, H = o, A = r, te = d, J = n, X = w, P = x, T = t, Y = a, F = s, ne = m, I = !1;
4603
4604
  function fe(k) {
4604
- return j || (j = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), g(k) || I(k) === c;
4605
+ return I || (I = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), g(k) || j(k) === c;
4605
4606
  }
4606
4607
  function g(k) {
4607
- return I(k) === l;
4608
+ return j(k) === l;
4608
4609
  }
4609
4610
  function C(k) {
4610
- return I(k) === i;
4611
+ return j(k) === i;
4611
4612
  }
4612
4613
  function U(k) {
4613
- return I(k) === o;
4614
+ return j(k) === o;
4614
4615
  }
4615
4616
  function h(k) {
4616
4617
  return typeof k == "object" && k !== null && k.$$typeof === r;
4617
4618
  }
4618
4619
  function D(k) {
4619
- return I(k) === d;
4620
+ return j(k) === d;
4620
4621
  }
4621
4622
  function B(k) {
4622
- return I(k) === n;
4623
+ return j(k) === n;
4623
4624
  }
4624
4625
  function _(k) {
4625
- return I(k) === w;
4626
+ return j(k) === w;
4626
4627
  }
4627
4628
  function M(k) {
4628
- return I(k) === x;
4629
+ return j(k) === x;
4629
4630
  }
4630
4631
  function W(k) {
4631
- return I(k) === t;
4632
+ return j(k) === t;
4632
4633
  }
4633
4634
  function Z(k) {
4634
- return I(k) === a;
4635
+ return j(k) === a;
4635
4636
  }
4636
4637
  function q(k) {
4637
- return I(k) === s;
4638
+ return j(k) === s;
4638
4639
  }
4639
4640
  function Pe(k) {
4640
- return I(k) === m;
4641
+ return j(k) === m;
4641
4642
  }
4642
- le.AsyncMode = b, le.ConcurrentMode = L, le.ContextConsumer = R, le.ContextProvider = H, le.Element = A, le.ForwardRef = te, le.Fragment = J, le.Lazy = X, le.Memo = P, le.Portal = T, le.Profiler = Y, le.StrictMode = F, le.Suspense = ne, le.isAsyncMode = fe, le.isConcurrentMode = g, le.isContextConsumer = C, le.isContextProvider = U, le.isElement = h, le.isForwardRef = D, le.isFragment = B, le.isLazy = _, le.isMemo = M, le.isPortal = W, le.isProfiler = Z, le.isStrictMode = q, le.isSuspense = Pe, le.isValidElementType = V, le.typeOf = I;
4643
+ le.AsyncMode = b, le.ConcurrentMode = L, le.ContextConsumer = R, le.ContextProvider = H, le.Element = A, le.ForwardRef = te, le.Fragment = J, le.Lazy = X, le.Memo = P, le.Portal = T, le.Profiler = Y, le.StrictMode = F, le.Suspense = ne, le.isAsyncMode = fe, le.isConcurrentMode = g, le.isContextConsumer = C, le.isContextProvider = U, le.isElement = h, le.isForwardRef = D, le.isFragment = B, le.isLazy = _, le.isMemo = M, le.isPortal = W, le.isProfiler = Z, le.isStrictMode = q, le.isSuspense = Pe, le.isValidElementType = V, le.typeOf = j;
4643
4644
  }()), le;
4644
4645
  }
4645
4646
  var Jn;
@@ -4698,17 +4699,17 @@ function Jd() {
4698
4699
  return c;
4699
4700
  }, _r;
4700
4701
  }
4701
- var Ir, ts;
4702
+ var jr, ts;
4702
4703
  function ln() {
4703
4704
  if (ts)
4704
- return Ir;
4705
+ return jr;
4705
4706
  ts = 1;
4706
4707
  var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
4707
- return Ir = e, Ir;
4708
+ return jr = e, jr;
4708
4709
  }
4709
- var jr, rs;
4710
+ var Ir, rs;
4710
4711
  function la() {
4711
- return rs || (rs = 1, jr = Function.call.bind(Object.prototype.hasOwnProperty)), jr;
4712
+ return rs || (rs = 1, Ir = Function.call.bind(Object.prototype.hasOwnProperty)), Ir;
4712
4713
  }
4713
4714
  var Mr, ns;
4714
4715
  function eh() {
@@ -4796,7 +4797,7 @@ function th() {
4796
4797
  symbol: E("symbol"),
4797
4798
  any: $(),
4798
4799
  arrayOf: V,
4799
- element: I(),
4800
+ element: j(),
4800
4801
  elementType: b(),
4801
4802
  instanceOf: L,
4802
4803
  node: te(),
@@ -4871,7 +4872,7 @@ function th() {
4871
4872
  }
4872
4873
  return N(C);
4873
4874
  }
4874
- function I() {
4875
+ function j() {
4875
4876
  function g(C, U, h, D, B) {
4876
4877
  var _ = C[U];
4877
4878
  if (!i(_)) {
@@ -4944,7 +4945,7 @@ function th() {
4944
4945
  var U = g[C];
4945
4946
  if (typeof U != "function")
4946
4947
  return a(
4947
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + j(U) + " at index " + C + "."
4948
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + I(U) + " at index " + C + "."
4948
4949
  ), o;
4949
4950
  }
4950
4951
  function h(D, B, _, M, W) {
@@ -5062,7 +5063,7 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
5062
5063
  }
5063
5064
  return C;
5064
5065
  }
5065
- function j(g) {
5066
+ function I(g) {
5066
5067
  var C = ne(g);
5067
5068
  switch (C) {
5068
5069
  case "array":
@@ -5541,9 +5542,9 @@ const uh = ({
5541
5542
  isClickedWithin: d,
5542
5543
  children: m
5543
5544
  }) => {
5544
- const [v, x] = xe(-1), [w, S] = xe(-1), [N, E] = xe(e), $ = Q(100), V = Q(101), I = Q(), b = Q(), L = Q();
5545
+ const [v, x] = xe(-1), [w, S] = xe(-1), [N, E] = xe(e), $ = Q(100), V = Q(101), j = Q(), b = Q(), L = Q();
5545
5546
  Se(() => {
5546
- r && (I.current = ha(r));
5547
+ r && (j.current = ha(r));
5547
5548
  const P = sa("zIndex", (T) => T === "auto" || T === "-1" ? !1 : parseInt(T) > 100).map((T) => parseInt(T, 10));
5548
5549
  P.length > 0 && ($.current = Math.max(...P) + 1, V.current = Math.max(...P) + 2), E(e);
5549
5550
  }, [e, r]);
@@ -5556,7 +5557,7 @@ const uh = ({
5556
5557
  return;
5557
5558
  c == null || c();
5558
5559
  let P;
5559
- I.current && (P = [I.current]);
5560
+ j.current && (P = [j.current]);
5560
5561
  const T = (Y) => {
5561
5562
  Y ? d == null || d() : E(!1);
5562
5563
  };
@@ -5799,12 +5800,12 @@ const lh = ({
5799
5800
  markupCreated: N,
5800
5801
  children: E
5801
5802
  }) => {
5802
- const [$, V] = xe(-1), [I, b] = xe(e), [L, R] = xe(!1), H = Q(!1), A = Q(100), te = Q({
5803
+ const [$, V] = xe(-1), [j, b] = xe(e), [L, R] = xe(!1), H = Q(!1), A = Q(100), te = Q({
5803
5804
  left: 0,
5804
5805
  top: 0,
5805
5806
  width: 0
5806
5807
  }), J = Q(), X = Q(), P = Q(), T = Q(), Y = Q(), F = Q(), ne = hs();
5807
- Se(() => (c === !0 && (F.current = new ResizeObserver(j)), () => {
5808
+ Se(() => (c === !0 && (F.current = new ResizeObserver(I)), () => {
5808
5809
  var _, M;
5809
5810
  c === !0 && (X.current && ((_ = F.current) == null || _.unobserve(X.current)), (M = F.current) == null || M.disconnect());
5810
5811
  }), []), Se(() => {
@@ -5827,7 +5828,7 @@ const lh = ({
5827
5828
  }
5828
5829
  e !== void 0 && b(e);
5829
5830
  }, [r, e, o, i]);
5830
- const j = (_) => {
5831
+ const I = (_) => {
5831
5832
  if (X.current) {
5832
5833
  const M = be.getScreenDimensions(), W = _[_.length - 1].target, Z = W.getBoundingClientRect(), q = be.determineOffScreenLocation(Z);
5833
5834
  if (q) {
@@ -5894,7 +5895,7 @@ const lh = ({
5894
5895
  return /* @__PURE__ */ f.jsx(
5895
5896
  da,
5896
5897
  {
5897
- start: I,
5898
+ start: j,
5898
5899
  timeout: d,
5899
5900
  showTransitionOptions: m,
5900
5901
  hideTransitionOptions: v,
@@ -6575,47 +6576,47 @@ const Ph = (e, r) => {
6575
6576
  onBlur: E,
6576
6577
  onElementCreate: $,
6577
6578
  onLeftElementClick: V,
6578
- onRightElementClick: I
6579
+ onRightElementClick: j
6579
6580
  } = e, [b, L] = xe(!0), R = Q(), H = Q(), A = Q();
6580
6581
  Se(() => () => {
6581
- var j;
6582
- (j = A.current) == null || j.dispose();
6582
+ var I;
6583
+ (I = A.current) == null || I.dispose();
6583
6584
  }, []), Se(() => {
6584
- var j;
6585
- (j = A.current) == null || j.inputValuePassed(t);
6585
+ var I;
6586
+ (I = A.current) == null || I.inputValuePassed(t);
6586
6587
  }, [t]), Se(() => {
6587
- var j, fe, g;
6588
- (j = A.current) == null || j.dispose(), n && (A.current = new Th(n, t), H.current && ((fe = A.current) == null || fe.inputElementCreated(H.current)), (g = A.current) == null || g.registerFormatChangeEvent(te));
6588
+ var I, fe, g;
6589
+ (I = A.current) == null || I.dispose(), n && (A.current = new Th(n, t), H.current && ((fe = A.current) == null || fe.inputElementCreated(H.current)), (g = A.current) == null || g.registerFormatChangeEvent(te));
6589
6590
  }, [n]);
6590
- const te = Ie(
6591
- (j) => {
6592
- w ? w(j) ? (L(!0), S == null || S(j)) : L(!1) : S == null || S(j);
6591
+ const te = je(
6592
+ (I) => {
6593
+ w ? w(I) ? (L(!0), S == null || S(I)) : L(!1) : S == null || S(I);
6593
6594
  },
6594
6595
  [S]
6595
- ), J = Ie(
6596
- (j) => {
6596
+ ), J = je(
6597
+ (I) => {
6597
6598
  var fe;
6598
- (fe = A.current) == null || fe.inputFocused(), N == null || N(j);
6599
+ (fe = A.current) == null || fe.inputFocused(), N == null || N(I);
6599
6600
  },
6600
6601
  [N]
6601
- ), X = Ie(
6602
- (j) => {
6602
+ ), X = je(
6603
+ (I) => {
6603
6604
  var fe;
6604
- (fe = A.current) == null || fe.inputBlurred(), E == null || E(j);
6605
+ (fe = A.current) == null || fe.inputBlurred(), E == null || E(I);
6605
6606
  },
6606
6607
  [E]
6607
- ), P = Ie(() => {
6608
- var j;
6609
- (j = A.current) == null || j.mouseUpHandler();
6610
- }, []), T = Ie((j) => {
6608
+ ), P = je(() => {
6609
+ var I;
6610
+ (I = A.current) == null || I.mouseUpHandler();
6611
+ }, []), T = je((I) => {
6611
6612
  var fe;
6612
- (fe = A.current) == null || fe.keyDownHandler(j);
6613
- }, []), Y = Ie((j) => {
6613
+ (fe = A.current) == null || fe.keyDownHandler(I);
6614
+ }, []), Y = je((I) => {
6614
6615
  var fe, g, C, U, h, D, B, _, M;
6615
- (g = (fe = R.current) == null ? void 0 : fe.inputElement) == null || g.removeEventListener("keydown", T), (U = (C = R.current) == null ? void 0 : C.inputElement) == null || U.removeEventListener("mouseup", P), R.current = j, (D = (h = R.current) == null ? void 0 : h.inputElement) == null || D.addEventListener("keydown", T), (_ = (B = R.current) == null ? void 0 : B.inputElement) == null || _.addEventListener("mouseup", P), H.current = (M = R.current) == null ? void 0 : M.inputElement;
6616
- }, []), F = Ie(() => {
6617
- var j;
6618
- (j = R.current) == null || j.focus();
6616
+ (g = (fe = R.current) == null ? void 0 : fe.inputElement) == null || g.removeEventListener("keydown", T), (U = (C = R.current) == null ? void 0 : C.inputElement) == null || U.removeEventListener("mouseup", P), R.current = I, (D = (h = R.current) == null ? void 0 : h.inputElement) == null || D.addEventListener("keydown", T), (_ = (B = R.current) == null ? void 0 : B.inputElement) == null || _.addEventListener("mouseup", P), H.current = (M = R.current) == null ? void 0 : M.inputElement;
6617
+ }, []), F = je(() => {
6618
+ var I;
6619
+ (I = R.current) == null || I.focus();
6619
6620
  }, []);
6620
6621
  mr(r, () => ({
6621
6622
  focus: F
@@ -6626,7 +6627,7 @@ const Ph = (e, r) => {
6626
6627
  return /* @__PURE__ */ f.jsx(
6627
6628
  Br,
6628
6629
  {
6629
- ref: (j) => j && Y(j),
6630
+ ref: (I) => I && Y(I),
6630
6631
  readOnly: s,
6631
6632
  debounceTime: a,
6632
6633
  fillContainer: o,
@@ -6641,7 +6642,7 @@ const Ph = (e, r) => {
6641
6642
  onBlur: X,
6642
6643
  onElementCreate: $,
6643
6644
  onLeftElementClick: V,
6644
- onRightElementClick: I
6645
+ onRightElementClick: j
6645
6646
  }
6646
6647
  );
6647
6648
  }, Eh = pr(Ph), dn = ls(void 0);
@@ -7083,7 +7084,7 @@ const _h = (e, r) => {
7083
7084
  case 12: {
7084
7085
  const t = {
7085
7086
  ...e,
7086
- currentViewDate: Ih(r.initialDate),
7087
+ currentViewDate: jh(r.initialDate),
7087
7088
  dateInitialized: !0
7088
7089
  };
7089
7090
  return Array.isArray(r.initialDate) ? {
@@ -7103,7 +7104,7 @@ const _h = (e, r) => {
7103
7104
  };
7104
7105
  }
7105
7106
  };
7106
- function Ih(e) {
7107
+ function jh(e) {
7107
7108
  return e ? Array.isArray(e) ? e[0] : e : /* @__PURE__ */ new Date();
7108
7109
  }
7109
7110
  const ur = ({
@@ -7119,13 +7120,13 @@ const ur = ({
7119
7120
  dispatcher: l
7120
7121
  }) => {
7121
7122
  var Y;
7122
- const [d, m] = xe(!1), [v, x] = xe(), [w, S] = xe(), [N, E] = xe(), [$, V] = xe(), I = Q(), b = Q(), L = Gr(dn), R = Yt(() => L.calendarTemplate, [L.calendarTemplate]), H = async () => a || await va(ra());
7123
+ const [d, m] = xe(!1), [v, x] = xe(), [w, S] = xe(), [N, E] = xe(), [$, V] = xe(), j = Q(), b = Q(), L = Gr(dn), R = Yt(() => L.calendarTemplate, [L.calendarTemplate]), H = async () => a || await va(ra());
7123
7124
  Se(() => {
7124
7125
  H().then((F) => {
7125
- I.current = F, b.current = Ch(I.current), m(!0);
7126
+ j.current = F, b.current = Ch(j.current), m(!0);
7126
7127
  }).catch((F) => console.error(F));
7127
7128
  }, []), Se(() => {
7128
- e && I.current && E(cs(e, I.current, s === Xe.Normal));
7129
+ e && j.current && E(cs(e, j.current, s === Xe.Normal));
7129
7130
  }, [e, d]), Se(() => {
7130
7131
  V(r ? new Date(r.getFullYear(), r.getMonth(), r.getDate()) : void 0);
7131
7132
  }, [r]), Se(() => {
@@ -7149,7 +7150,7 @@ const ur = ({
7149
7150
  ).getTime() : void 0
7150
7151
  );
7151
7152
  }, [t, n]), Se(() => {
7152
- I.current && a && (I.current = a, E(cs(e, I.current, s === Xe.Normal)));
7153
+ j.current && a && (j.current = a, E(cs(e, j.current, s === Xe.Normal)));
7153
7154
  }, [a]);
7154
7155
  const A = (F) => {
7155
7156
  if (s === Xe.Normal)
@@ -7187,16 +7188,16 @@ const ur = ({
7187
7188
  return /* @__PURE__ */ f.jsx(hr, { props: X, template: T, children: /* @__PURE__ */ f.jsxs("div", { className: "bc-dt-day-row bsc-grid bsc-min-w-[329px] bsc-grid-cols-7 bsc-gap-3", children: [
7188
7189
  (Y = b.current) == null ? void 0 : Y.map((F, ne) => /* @__PURE__ */ f.jsx("div", { className: "bc-dt-day-cell bsc-text-center bsc-font-bold", children: F }, ne)),
7189
7190
  N == null ? void 0 : N.map(
7190
- (F, ne) => F.map((j, fe) => {
7191
+ (F, ne) => F.map((I, fe) => {
7191
7192
  var U, h;
7192
- const g = j.dayValue !== null && (i === void 0 || i(j.dayValue)), C = we(
7193
+ const g = I.dayValue !== null && (i === void 0 || i(I.dayValue)), C = we(
7193
7194
  "bsc-text-center bsc-py-1",
7194
7195
  {
7195
- "bsc-text-gray-3": !j.isCurrent,
7196
- "bsc-bg-primary-3 dark:bsc-bg-mono-light-1 dark:bsc-text-mono-dark-1": j && j.dayValue && ($ && te(j.dayValue) || v && !w && Bs(v, j.dayValue) || v && w && J(j.dayValue)),
7196
+ "bsc-text-gray-3": !I.isCurrent,
7197
+ "bsc-bg-primary-3 dark:bsc-bg-mono-light-1 dark:bsc-text-mono-dark-1": I && I.dayValue && ($ && te(I.dayValue) || v && !w && Bs(v, I.dayValue) || v && w && J(I.dayValue)),
7197
7198
  "bsc-cursor-pointer": g,
7198
7199
  "bsc-text-error bsc-cursor-not-allowed": !g,
7199
- "bsc-bg-primary-5 dark:bsc-bg-mono-light-3 dark:bsc-text-mono-dark-1": j.dayValue && hd(j.dayValue) && !(te(j.dayValue) || J(j.dayValue))
7200
+ "bsc-bg-primary-5 dark:bsc-bg-mono-light-3 dark:bsc-text-mono-dark-1": I.dayValue && hd(I.dayValue) && !(te(I.dayValue) || J(I.dayValue))
7200
7201
  },
7201
7202
  "bc-dt-date-cell"
7202
7203
  );
@@ -7204,8 +7205,8 @@ const ur = ({
7204
7205
  "div",
7205
7206
  {
7206
7207
  className: C,
7207
- onClick: () => j && j.dayValue && g && (c === void 0 || c(j.dayValue)) && A(j.dayValue),
7208
- children: (h = j.dayValue) == null ? void 0 : h.getDate().toLocaleString((U = I.current) == null ? void 0 : U.code)
7208
+ onClick: () => I && I.dayValue && g && (c === void 0 || c(I.dayValue)) && A(I.dayValue),
7209
+ children: (h = I.dayValue) == null ? void 0 : h.getDate().toLocaleString((U = j.current) == null ? void 0 : U.code)
7209
7210
  },
7210
7211
  ne.toString() + fe.toString()
7211
7212
  );
@@ -7231,7 +7232,7 @@ const ur = ({
7231
7232
  /* @__PURE__ */ f.jsx("div", { className: "bc-dt-scroller-title bsc-flex-grow bsc-cursor-pointer bsc-text-center", onClick: t, children: e }),
7232
7233
  /* @__PURE__ */ f.jsx("div", { className: "bc-dt-scroller-right bsc-flex-shrink bsc-cursor-pointer", children: /* @__PURE__ */ f.jsx(Ze, { className: "bsc-bg-transparent focus:bsc-outline-none", onClick: s, children: /* @__PURE__ */ f.jsx(Le, { icon: "chevronRight", size: Re.Regular }) }) })
7233
7234
  ] });
7234
- }, jh = ({
7235
+ }, Ih = ({
7235
7236
  selectedDate: e,
7236
7237
  viewDate: r,
7237
7238
  locale: t,
@@ -7476,7 +7477,7 @@ const ur = ({
7476
7477
  "22",
7477
7478
  "23"
7478
7479
  ]
7479
- ), l = Q(jd(0, 59, (P) => P.toString().padStart(2, "0"))), d = Q(["AM", "PM"]), m = Q(ll(e)), v = (P) => P > 11 ? P - 12 : P, [x, w] = xe(v(e.getHours())), [S, N] = xe(e.getMinutes()), [E, $] = xe(e.getHours() <= 12 ? 0 : 1), V = Q(e.toLocaleDateString(t.code));
7480
+ ), l = Q(Id(0, 59, (P) => P.toString().padStart(2, "0"))), d = Q(["AM", "PM"]), m = Q(ll(e)), v = (P) => P > 11 ? P - 12 : P, [x, w] = xe(v(e.getHours())), [S, N] = xe(e.getMinutes()), [E, $] = xe(e.getHours() <= 12 ? 0 : 1), V = Q(e.toLocaleDateString(t.code));
7480
7481
  Se(() => {
7481
7482
  const P = e.getHours(), T = e.getMinutes();
7482
7483
  if (P !== x && w(n === ve.TwelveHour ? v(P) : P), T !== S && N(T), n === ve.TwelveHour) {
@@ -7484,7 +7485,7 @@ const ur = ({
7484
7485
  Y !== E && $(Y);
7485
7486
  }
7486
7487
  }, [e]);
7487
- const I = () => {
7488
+ const j = () => {
7488
7489
  var Y;
7489
7490
  const P = ((Y = s == null ? void 0 : s.hours) == null ? void 0 : Y.step) || 1, T = x < i.current ? x + P : 0;
7490
7491
  w(T), A(T, S, E);
@@ -7531,7 +7532,7 @@ const ur = ({
7531
7532
  style: { minWidth: n === ve.TwelveHour ? "15rem" : "11rem" },
7532
7533
  children: /* @__PURE__ */ f.jsxs("div", { className: J, children: [
7533
7534
  r && /* @__PURE__ */ f.jsx("div", { className: X, onClick: te, children: V.current }),
7534
- /* @__PURE__ */ f.jsx("div", { className: "bc-dt-time-hour-increase bsc-cursor-pointer bsc-text-center", children: /* @__PURE__ */ f.jsx(Ze, { className: "bsc-bg-transparent bsc-p-2 focus:bsc-outline-none", onClick: I, children: /* @__PURE__ */ f.jsx(Le, { icon: "chevronUp", size: Re.Regular }) }) }),
7535
+ /* @__PURE__ */ f.jsx("div", { className: "bc-dt-time-hour-increase bsc-cursor-pointer bsc-text-center", children: /* @__PURE__ */ f.jsx(Ze, { className: "bsc-bg-transparent bsc-p-2 focus:bsc-outline-none", onClick: j, children: /* @__PURE__ */ f.jsx(Le, { icon: "chevronUp", size: Re.Regular }) }) }),
7535
7536
  /* @__PURE__ */ f.jsx("div", {}),
7536
7537
  /* @__PURE__ */ f.jsx("div", { className: "bc-dt-time-minute-increase bsc-cursor-pointer bsc-text-center", children: /* @__PURE__ */ f.jsx(Ze, { className: "bsc-bg-transparent bsc-p-2 focus:bsc-outline-none", onClick: L, children: /* @__PURE__ */ f.jsx(Le, { icon: "chevronUp", size: Re.Regular }) }) }),
7537
7538
  n === ve.TwelveHour && /* @__PURE__ */ f.jsx("div", { className: "bc-dt-time-meridian-increase bsc-cursor-pointer bsc-text-center", children: /* @__PURE__ */ f.jsx(Ze, { className: "bsc-bg-transparent bsc-p-2 focus:bsc-outline-none", onClick: H, children: /* @__PURE__ */ f.jsx(Le, { icon: "chevronUp", size: Re.Regular }) }) }),
@@ -7563,7 +7564,7 @@ const ur = ({
7563
7564
  const l = parseInt(c);
7564
7565
  t({
7565
7566
  type: K.MonthSelector,
7566
- viewDate: Id(e, l)
7567
+ viewDate: jd(e, l)
7567
7568
  });
7568
7569
  }, i = () => `${n[0][0].toString()} - ${n[2][1].toString()}`;
7569
7570
  return /* @__PURE__ */ f.jsxs("div", { className: "bc-dt-year-selector", style: { minWidth: "20rem" }, children: [
@@ -7850,9 +7851,9 @@ const Yh = (e, r) => {
7850
7851
  onChange: E,
7851
7852
  calendarTemplate: $,
7852
7853
  dateScrollerTemplate: V,
7853
- inputTemplate: I
7854
+ inputTemplate: j
7854
7855
  }) => {
7855
- const [b, L] = xe(!1), [R, H] = xe(), [A, te] = xe(), J = Q(), X = Q(!1), P = Q(i || ra()), T = Q(), Y = Q(), F = Q(), [ne, j] = Yh(l, R), fe = Q({
7856
+ const [b, L] = xe(!1), [R, H] = xe(), [A, te] = xe(), J = Q(), X = Q(!1), P = Q(i || ra()), T = Q(), Y = Q(), F = Q(), [ne, I] = Yh(l, R), fe = Q({
7856
7857
  calendarTemplate: $,
7857
7858
  dateScrollerTemplate: V
7858
7859
  });
@@ -7872,23 +7873,23 @@ const Yh = (e, r) => {
7872
7873
  type: K.ClearDates
7873
7874
  });
7874
7875
  }, [e, T.current]), Se(() => {
7875
- j && D({
7876
+ I && D({
7876
7877
  type: K.SetTimeFormat,
7877
- timeFormat: j ? ve.TwentyFourHour : ve.TwelveHour
7878
+ timeFormat: I ? ve.TwentyFourHour : ve.TwelveHour
7878
7879
  });
7879
- }, [j]), Se(() => {
7880
+ }, [I]), Se(() => {
7880
7881
  w && (Y.current = w);
7881
7882
  }, [w]);
7882
7883
  const g = (G) => {
7883
7884
  va(G).then((ce) => {
7884
7885
  H(ce.code), T.current = ce;
7885
- const je = C();
7886
+ const Ie = C();
7886
7887
  D(e || n ? {
7887
7888
  type: K.InitializeDates,
7888
- initialDate: Array.isArray(je) ? je[0] : je
7889
+ initialDate: Array.isArray(Ie) ? Ie[0] : Ie
7889
7890
  } : {
7890
7891
  type: K.SetViewDate,
7891
- viewDate: Array.isArray(je) ? je[0] : je
7892
+ viewDate: Array.isArray(Ie) ? Ie[0] : Ie
7892
7893
  });
7893
7894
  }).catch((ce) => console.error(ce));
7894
7895
  }, C = () => {
@@ -7970,14 +7971,14 @@ const Yh = (e, r) => {
7970
7971
  return;
7971
7972
  }
7972
7973
  }, Be = () => {
7973
- var ce, je, lt, Gt, Qt, Kt, Xt, Jt, er, tr, ft, kt;
7974
+ var ce, Ie, lt, Gt, Qt, Kt, Xt, Jt, er, tr, ft, kt;
7974
7975
  const G = zt();
7975
7976
  switch (l) {
7976
7977
  case de.DateTime:
7977
7978
  return h.selectedDate ? G ? h.selectedDate.toLocaleString((ce = T.current) == null ? void 0 : ce.code, {
7978
7979
  dateStyle: G,
7979
7980
  timeStyle: G
7980
- }) : h.selectedDate.toLocaleString((je = T.current) == null ? void 0 : je.code) : "";
7981
+ }) : h.selectedDate.toLocaleString((Ie = T.current) == null ? void 0 : Ie.code) : "";
7981
7982
  case de.DateOnly:
7982
7983
  return h.selectedDate ? G ? h.selectedDate.toLocaleDateString((lt = T.current) == null ? void 0 : lt.code, {
7983
7984
  dateStyle: G
@@ -8049,7 +8050,7 @@ const Yh = (e, r) => {
8049
8050
  leftElementClassName: "bsc-justify-center"
8050
8051
  }, qt = () => /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
8051
8052
  h.currentSelector === K.DaySelector && ut && h.dateInitialized && T.current && /* @__PURE__ */ f.jsx(
8052
- jh,
8053
+ Ih,
8053
8054
  {
8054
8055
  selectedDate: h.selectedDate,
8055
8056
  viewDate: h.currentViewDate,
@@ -8110,7 +8111,7 @@ const Yh = (e, r) => {
8110
8111
  onInput: W,
8111
8112
  iconPosition: x,
8112
8113
  iconElement: Ue.rightElement || Ue.leftElement
8113
- }, Dt = I || ((G, ce) => /* @__PURE__ */ f.jsx(f.Fragment, { children: ce })), ze = we(
8114
+ }, Dt = j || ((G, ce) => /* @__PURE__ */ f.jsx(f.Fragment, { children: ce })), ze = we(
8114
8115
  "bsc-text-left",
8115
8116
  {
8116
8117
  "bsc-bg-gray-4 dark:bsc-bg-mono-dark-3": r,
@@ -8201,12 +8202,12 @@ export {
8201
8202
  Ze as Button,
8202
8203
  Ja as Checkbox,
8203
8204
  Uh as CheckboxGroup,
8204
- Fr as CheckboxGroupOrientation,
8205
8205
  mt as CheckboxLabelLocation,
8206
8206
  Br as ContentEditableInput,
8207
8207
  ir as DateFormatType,
8208
8208
  de as DateSelectionType,
8209
8209
  Zh as DateTime,
8210
+ Fr as FormGroupItemOrientation,
8210
8211
  Eh as FormattedInput,
8211
8212
  oa as MediaQuery,
8212
8213
  uh as MobileOverlayPanel,