beesoft-components 0.7.1-3 → 0.7.1-5

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 je, 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 we, 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;
@@ -56,7 +56,7 @@ function ja() {
56
56
  return typeof y == "function" ? y : null;
57
57
  }
58
58
  var E = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
59
- function $(u) {
59
+ function L(u) {
60
60
  {
61
61
  for (var y = arguments.length, O = new Array(y > 1 ? y - 1 : 0), z = 1; z < y; z++)
62
62
  O[z - 1] = arguments[z];
@@ -73,14 +73,14 @@ function ja() {
73
73
  he.unshift("Warning: " + y), Function.prototype.apply.call(console[u], console, he);
74
74
  }
75
75
  }
76
- var j = !1, b = !1, L = !1, R = !1, H = !1, A;
77
- A = Symbol.for("react.module.reference");
76
+ var j = !1, b = !1, A = !1, R = !1, H = !1, $;
77
+ $ = 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 === w || j || b || L || typeof u == "object" && u !== null && (u.$$typeof === x || 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 === w || j || b || A || typeof u == "object" && u !== null && (u.$$typeof === x || 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.
83
- u.$$typeof === A || u.getModuleId !== void 0));
83
+ u.$$typeof === $ || u.getModuleId !== void 0));
84
84
  }
85
85
  function J(u, y, O) {
86
86
  var z = u.displayName;
@@ -95,7 +95,7 @@ function ja() {
95
95
  function P(u) {
96
96
  if (u == null)
97
97
  return null;
98
- if (typeof u.tag == "number" && $("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof u == "function")
98
+ if (typeof u.tag == "number" && L("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof u == "function")
99
99
  return u.displayName || u.name || null;
100
100
  if (typeof u == "string")
101
101
  return u;
@@ -196,7 +196,7 @@ function ja() {
196
196
  })
197
197
  });
198
198
  }
199
- Y < 0 && $("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
199
+ Y < 0 && L("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
200
200
  }
201
201
  }
202
202
  var _ = E.ReactCurrentDispatcher, M;
@@ -215,8 +215,8 @@ function ja() {
215
215
  }
216
216
  var Z = !1, q;
217
217
  {
218
- var Pe = typeof WeakMap == "function" ? WeakMap : Map;
219
- q = new Pe();
218
+ var Ee = typeof WeakMap == "function" ? WeakMap : Map;
219
+ q = new Ee();
220
220
  }
221
221
  function k(u, y) {
222
222
  if (!u || Z)
@@ -268,18 +268,18 @@ function ja() {
268
268
  if (qe && z && typeof qe.stack == "string") {
269
269
  for (var re = qe.stack.split(`
270
270
  `), _e = z.stack.split(`
271
- `), Ee = re.length - 1, ke = _e.length - 1; Ee >= 1 && ke >= 0 && re[Ee] !== _e[ke]; )
271
+ `), Se = re.length - 1, ke = _e.length - 1; Se >= 1 && ke >= 0 && re[Se] !== _e[ke]; )
272
272
  ke--;
273
- for (; Ee >= 1 && ke >= 0; Ee--, ke--)
274
- if (re[Ee] !== _e[ke]) {
275
- if (Ee !== 1 || ke !== 1)
273
+ for (; Se >= 1 && ke >= 0; Se--, ke--)
274
+ if (re[Se] !== _e[ke]) {
275
+ if (Se !== 1 || ke !== 1)
276
276
  do
277
- if (Ee--, ke--, ke < 0 || re[Ee] !== _e[ke]) {
277
+ if (Se--, ke--, ke < 0 || re[Se] !== _e[ke]) {
278
278
  var Me = `
279
- ` + re[Ee].replace(" at new ", " at ");
279
+ ` + re[Se].replace(" at new ", " at ");
280
280
  return u.displayName && Me.includes("<anonymous>") && (Me = Me.replace("<anonymous>", u.displayName)), typeof u == "function" && q.set(u, Me), Me;
281
281
  }
282
- while (Ee >= 1 && ke >= 0);
282
+ while (Se >= 1 && ke >= 0);
283
283
  break;
284
284
  }
285
285
  }
@@ -345,10 +345,10 @@ function ja() {
345
345
  throw _e.name = "Invariant Violation", _e;
346
346
  }
347
347
  re = u[se](y, se, z, O, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
348
- } catch (Ee) {
349
- re = Ee;
348
+ } catch (Se) {
349
+ re = Se;
350
350
  }
351
- re && !(re instanceof Error) && (Be(ae), $("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", z || "React class", O, se, typeof re), Be(null)), re instanceof Error && !(re.message in Ct) && (Ct[re.message] = !0, Be(ae), $("Failed %s type: %s", O, re.message), Be(null));
351
+ re && !(re instanceof Error) && (Be(ae), L("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", z || "React class", O, se, typeof re), Be(null)), re instanceof Error && !(re.message in Ct) && (Ct[re.message] = !0, Be(ae), L("Failed %s type: %s", O, re.message), Be(null));
352
352
  }
353
353
  }
354
354
  }
@@ -374,7 +374,7 @@ function ja() {
374
374
  }
375
375
  function Dt(u) {
376
376
  if (Zt(u))
377
- return $("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", qt(u)), Pr(u);
377
+ return L("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", qt(u)), Pr(u);
378
378
  }
379
379
  var ze = E.ReactCurrentOwner, G = {
380
380
  key: !0,
@@ -402,13 +402,13 @@ function ja() {
402
402
  function Kt(u, y) {
403
403
  if (typeof u.ref == "string" && ze.current && y && ze.current.stateNode !== y) {
404
404
  var O = P(ze.current.type);
405
- lt[O] || ($('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', P(ze.current.type), u.ref), lt[O] = !0);
405
+ lt[O] || (L('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', P(ze.current.type), u.ref), lt[O] = !0);
406
406
  }
407
407
  }
408
408
  function Xt(u, y) {
409
409
  {
410
410
  var O = function() {
411
- ce || (ce = !0, $("%s: `key` 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));
411
+ ce || (ce = !0, L("%s: `key` 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));
412
412
  };
413
413
  O.isReactWarning = !0, Object.defineProperty(u, "key", {
414
414
  get: O,
@@ -419,7 +419,7 @@ function ja() {
419
419
  function Jt(u, y) {
420
420
  {
421
421
  var O = function() {
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));
422
+ Ie || (Ie = !0, L("%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,
@@ -463,9 +463,9 @@ function ja() {
463
463
  for (he in y)
464
464
  et.call(y, he) && !G.hasOwnProperty(he) && (se[he] = y[he]);
465
465
  if (u && u.defaultProps) {
466
- var Ee = u.defaultProps;
467
- for (he in Ee)
468
- se[he] === void 0 && (se[he] = Ee[he]);
466
+ var Se = u.defaultProps;
467
+ for (he in Se)
468
+ se[he] === void 0 && (se[he] = Se[he]);
469
469
  }
470
470
  if (re || _e) {
471
471
  var ke = typeof u == "function" ? u.displayName || u.name || "Unknown" : u;
@@ -533,7 +533,7 @@ Check the top-level render call using <` + O + ">.");
533
533
  return;
534
534
  pn[O] = !0;
535
535
  var z = "";
536
- u && u._owner && u._owner !== ft.current && (z = " It was passed a child from " + P(u._owner.type) + "."), dt(u), $('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', O, z), dt(null);
536
+ u && u._owner && u._owner !== ft.current && (z = " It was passed a child from " + P(u._owner.type) + "."), dt(u), L('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', O, z), dt(null);
537
537
  }
538
538
  }
539
539
  function gn(u, y) {
@@ -575,9 +575,9 @@ Check the top-level render call using <` + O + ">.");
575
575
  } else if (y.PropTypes !== void 0 && !Er) {
576
576
  Er = !0;
577
577
  var ae = P(y);
578
- $("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", ae || "Unknown");
578
+ L("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", ae || "Unknown");
579
579
  }
580
- typeof y.getDefaultProps == "function" && !y.getDefaultProps.isReactClassApproved && $("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
580
+ typeof y.getDefaultProps == "function" && !y.getDefaultProps.isReactClassApproved && L("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
581
581
  }
582
582
  }
583
583
  function Pa(u) {
@@ -585,11 +585,11 @@ Check the top-level render call using <` + O + ">.");
585
585
  for (var y = Object.keys(u.props), O = 0; O < y.length; O++) {
586
586
  var z = y[O];
587
587
  if (z !== "children" && z !== "key") {
588
- dt(u), $("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", z), dt(null);
588
+ dt(u), L("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", z), dt(null);
589
589
  break;
590
590
  }
591
591
  }
592
- u.ref !== null && (dt(u), $("Invalid attribute `ref` supplied to `React.Fragment`."), dt(null));
592
+ u.ref !== null && (dt(u), L("Invalid attribute `ref` supplied to `React.Fragment`."), dt(null));
593
593
  }
594
594
  }
595
595
  function bn(u, y, O, z, ae, he) {
@@ -600,8 +600,8 @@ Check the top-level render call using <` + O + ">.");
600
600
  (u === void 0 || typeof u == "object" && u !== null && Object.keys(u).length === 0) && (re += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
601
601
  var _e = xa(ae);
602
602
  _e ? re += _e : re += hn();
603
- var Ee;
604
- u === null ? Ee = "null" : Ue(u) ? Ee = "array" : u !== void 0 && u.$$typeof === r ? (Ee = "<" + (P(u.type) || "Unknown") + " />", re = " Did you accidentally export a JSX literal instead of a component?") : Ee = typeof u, $("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ee, re);
603
+ var Se;
604
+ u === null ? Se = "null" : Ue(u) ? Se = "array" : u !== void 0 && u.$$typeof === r ? (Se = "<" + (P(u.type) || "Unknown") + " />", re = " Did you accidentally export a JSX literal instead of a component?") : Se = typeof u, L("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Se, re);
605
605
  }
606
606
  var ke = tr(u, y, O, ae, he);
607
607
  if (ke == null)
@@ -615,7 +615,7 @@ Check the top-level render call using <` + O + ">.");
615
615
  gn(Me[ht], u);
616
616
  Object.freeze && Object.freeze(Me);
617
617
  } else
618
- $("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
618
+ L("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
619
619
  else
620
620
  gn(Me, u);
621
621
  }
@@ -690,7 +690,7 @@ var Fr = /* @__PURE__ */ ((e) => (e[e.Vertical = 0] = "Vertical", e[e.Horizontal
690
690
  })();
691
691
  })(ps);
692
692
  var Ia = ps.exports;
693
- const we = /* @__PURE__ */ fs(Ia), Ma = (e, r) => {
693
+ const Te = /* @__PURE__ */ fs(Ia), Ma = (e, r) => {
694
694
  const t = Q(null), {
695
695
  buttonType: n,
696
696
  type: s = "button",
@@ -709,7 +709,7 @@ const we = /* @__PURE__ */ fs(Ia), Ma = (e, r) => {
709
709
  mr(r, () => ({
710
710
  click: x
711
711
  }));
712
- const w = we(
712
+ const w = Te(
713
713
  "max-sm:bsc-p-4 md:bsc-p-2 dark:bsc-bg-mono-light-1 dark:hover:bsc-bg-mono-light-2 dark:bsc-text-mono-dark-1",
714
714
  {
715
715
  "bsc-w-full": i,
@@ -859,7 +859,7 @@ const ys = /* @__PURE__ */ Ua(za), qa = (e, r) => {
859
859
  });
860
860
  return n.current !== r && (n.current = r), [r, t, n];
861
861
  }, fr = ({ label: e, htmlFor: r, readOnly: t = !1, className: n }) => {
862
- const s = we(n, {
862
+ const s = Te(n, {
863
863
  "bsc-text-black dark:bsc-text-mono-light-1": !t,
864
864
  "bsc-text-gray-4 dark:bsc-text-mono-light-3": t
865
865
  });
@@ -883,18 +883,22 @@ const Xa = (e, r) => {
883
883
  partial: !1
884
884
  });
885
885
  console.log("name", t, "checked", o, "partial", i);
886
- const E = wn(o), $ = wn(i), V = Ra(), j = hs();
887
- Se(() => {
886
+ const E = wn(o), L = wn(i);
887
+ console.log("name", t, "checked property", E), console.log("name", t, "partial property", L);
888
+ const V = Ra(), j = hs();
889
+ we(() => (console.log("name", t, "component created"), () => {
890
+ console.log("name", t, "component destroyed");
891
+ }), []), we(() => {
888
892
  d !== void 0 ? w(d) : j && j.useAnimations !== void 0 && w(j.useAnimations);
889
- }, [j, d]), Se(() => {
893
+ }, [j, d]), we(() => {
890
894
  if (console.log("name", t, "useEffect checked state", JSON.stringify(v)), v.initial)
891
895
  S({
892
896
  checked: i ? !0 : o,
893
897
  partial: i
894
898
  });
895
899
  else {
896
- console.log("name", t, "checked property", E), console.log("name", t, "partial property", $);
897
- const P = E.changed ? o : v.value.checked, T = $.changed ? i : v.value.partial;
900
+ console.log("name", t, "useEffect checked property", E), console.log("name", t, "useEffect partial property", L);
901
+ const P = E.changed ? o : v.value.checked, T = L.changed ? i : v.value.partial;
898
902
  console.log("name", t, "new checked", P), console.log("name", t, "new partial", T), S({
899
903
  checked: T ? !0 : P,
900
904
  partial: T
@@ -913,7 +917,7 @@ const Xa = (e, r) => {
913
917
  value: s,
914
918
  checked: T
915
919
  });
916
- }, L = (P) => {
920
+ }, A = (P) => {
917
921
  var Y;
918
922
  const T = {
919
923
  checked: P ? !0 : ((Y = N.current) == null ? void 0 : Y.value.checked) || !1,
@@ -927,32 +931,32 @@ const Xa = (e, r) => {
927
931
  });
928
932
  };
929
933
  mr(r, () => ({
930
- setPartiallyChecked: L,
934
+ setPartiallyChecked: A,
931
935
  setChecked: R
932
936
  }));
933
- const H = we(
937
+ const H = Te(
934
938
  "bc-checkbox-wrapper bsc-flex bsc-items-center",
935
939
  {
936
940
  "bsc-pointer-events-none bsc-text-gray-2 dark:bsc-text-mono-light-3": a
937
941
  },
938
942
  l
939
- ), A = we("bc-checkbox-label bsc-cursor-pointer", {
943
+ ), $ = Te("bc-checkbox-label bsc-cursor-pointer", {
940
944
  "bsc-ml-2": c === mt.Right,
941
945
  "bsc-mr-2": c === mt.Left
942
- }), te = we(
946
+ }), te = Te(
943
947
  "bc-checkbox-outer bsc-relative bsc-rounded *:bsc-block *:bsc-size-[21px] focus-within:bsc-ring focus-within:bsc-ring-offset-2 dark:bsc-ring-mono-light-1 dark:bsc-ring-offset-mono-dark-1",
944
948
  {
945
949
  "bsc-checkbox-animate": !a && x,
946
950
  "bsc-checkbox-no-animate": a || !a && !x
947
951
  }
948
- ), J = we(
952
+ ), J = Te(
949
953
  "bc-checkbox bsc-relative bsc-m-0 bsc-cursor-pointer bsc-appearance-none bsc-rounded bsc-border-none bsc-bg-mono-light-1 bsc-p-0 bsc-outline-none dark:bsc-bg-mono-dark-1 dark:checked:bsc-bg-mono-light-1",
950
954
  {
951
955
  "[transition:box-shadow_0.3s]": x,
952
956
  "bsc-checkbox-border dark:bsc-checkbox-border-dark bsc-checkbox-border-hover dark:bsc-checkbox-border-hover-dark bsc-checkbox-border-checked dark:bsc-checkbox-border-checked-dark": !a,
953
957
  "bsc-checkbox-border-read-only dark:bsc-checkbox-border-dark-read-only bsc-checkbox-border-checked-read-only dark:bsc-checkbox-border-checked-dark-read-only": a
954
958
  }
955
- ), X = we(
959
+ ), X = Te(
956
960
  "bc-checkbox-svg bsc-pointer-events-none bsc-absolute bsc-left-0 bsc-top-0 bsc-stroke-mono-light-1 bsc-stroke-2 [stroke-linecap:round] [stroke-linejoin:round] [transform:scale(0)_translateZ(0)] dark:bsc-stroke-mono-dark-3",
957
961
  {
958
962
  "bsc-fill-primary-1 dark:bsc-fill-mono-light-1": !a,
@@ -960,7 +964,7 @@ const Xa = (e, r) => {
960
964
  }
961
965
  );
962
966
  return console.log("name", t, "checked state", JSON.stringify(v)), /* @__PURE__ */ f.jsxs("div", { className: H, children: [
963
- n && c === mt.Left && /* @__PURE__ */ f.jsx(fr, { label: n, htmlFor: V, readOnly: a, className: A }),
967
+ n && c === mt.Left && /* @__PURE__ */ f.jsx(fr, { label: n, htmlFor: V, readOnly: a, className: $ }),
964
968
  /* @__PURE__ */ f.jsxs("label", { className: te, children: [
965
969
  /* @__PURE__ */ f.jsx(
966
970
  "input",
@@ -975,7 +979,7 @@ const Xa = (e, r) => {
975
979
  ),
976
980
  /* @__PURE__ */ f.jsx("svg", { viewBox: "0 0 21 21", className: X, children: v.value.partial ? /* @__PURE__ */ f.jsx("polyline", { points: "6 10.5 16 10.5" }) : /* @__PURE__ */ f.jsx("polyline", { points: "5 10.75 8.5 14.25 16 6" }) })
977
981
  ] }),
978
- n && c === mt.Right && /* @__PURE__ */ f.jsx(fr, { label: n, htmlFor: V, readOnly: a, className: A })
982
+ n && c === mt.Right && /* @__PURE__ */ f.jsx(fr, { label: n, htmlFor: V, readOnly: a, className: $ })
979
983
  ] });
980
984
  }, Ja = pr(Xa), Uh = ({
981
985
  name: e,
@@ -990,31 +994,31 @@ const Xa = (e, r) => {
990
994
  onChange: l
991
995
  }) => {
992
996
  const [d, m] = xe([]), x = Za(() => n, [n]);
993
- Se(() => {
997
+ we(() => {
994
998
  m(t ?? []);
995
999
  }, [t]);
996
- const w = ($) => {
997
- const { value: V, checked: j } = $;
1000
+ const w = (L) => {
1001
+ const { value: V, checked: j } = L;
998
1002
  let b;
999
- j ? b = [...d, V] : b = d.filter((L) => L !== V), m(b), l == null || l({
1003
+ j ? b = [...d, V] : b = d.filter((A) => A !== V), m(b), l == null || l({
1000
1004
  name: e,
1001
1005
  value: b
1002
1006
  });
1003
- }, v = ($, V) => /* @__PURE__ */ f.jsx(
1007
+ }, v = (L, V) => /* @__PURE__ */ f.jsx(
1004
1008
  Ja,
1005
1009
  {
1006
1010
  name: e,
1007
- label: $[s],
1008
- value: $[a],
1009
- checked: d.some((j) => j === $[a]),
1011
+ label: L[s],
1012
+ value: L[a],
1013
+ checked: d.some((j) => j === L[a]),
1010
1014
  readOnly: o,
1011
1015
  onChange: (j) => j && w(j),
1012
1016
  className: "bsc-mr-3"
1013
1017
  },
1014
1018
  `${e}_checkbox_${V}`
1015
- ), S = we("bsc-flex bsc-flex-col bsc-gap-1", c), N = we("bsc-flex bsc-gap-1", {
1019
+ ), S = Te("bsc-flex bsc-flex-col bsc-gap-1", c), N = Te("bsc-flex bsc-gap-1", {
1016
1020
  "bsc-flex-col": i === Fr.Vertical
1017
- }), E = ($) => /* @__PURE__ */ f.jsx("div", { className: N, children: $.map(v) });
1021
+ }), E = (L) => /* @__PURE__ */ f.jsx("div", { className: N, children: L.map(v) });
1018
1022
  return /* @__PURE__ */ f.jsxs("div", { className: S, children: [
1019
1023
  r && /* @__PURE__ */ f.jsx(fr, { label: r, readOnly: o }),
1020
1024
  x && E(x)
@@ -1667,39 +1671,39 @@ function Vt(e, r, t) {
1667
1671
  if (typeof e != "function")
1668
1672
  throw new TypeError(dl);
1669
1673
  r = En(r) || 0, Ge(t) && (d = !!t.leading, m = "maxWait" in t, a = m ? hl(En(t.maxWait) || 0, r) : a, x = "trailing" in t ? !!t.trailing : x);
1670
- function w(L) {
1674
+ function w(A) {
1671
1675
  var R = n, H = s;
1672
- return n = s = void 0, l = L, o = e.apply(H, R), o;
1676
+ return n = s = void 0, l = A, o = e.apply(H, R), o;
1673
1677
  }
1674
- function v(L) {
1675
- return l = L, i = setTimeout(E, r), d ? w(L) : o;
1678
+ function v(A) {
1679
+ return l = A, i = setTimeout(E, r), d ? w(A) : o;
1676
1680
  }
1677
- function S(L) {
1678
- var R = L - c, H = L - l, A = r - R;
1679
- return m ? pl(A, a - H) : A;
1681
+ function S(A) {
1682
+ var R = A - c, H = A - l, $ = r - R;
1683
+ return m ? pl($, a - H) : $;
1680
1684
  }
1681
- function N(L) {
1682
- var R = L - c, H = L - l;
1685
+ function N(A) {
1686
+ var R = A - c, H = A - l;
1683
1687
  return c === void 0 || R >= r || R < 0 || m && H >= a;
1684
1688
  }
1685
1689
  function E() {
1686
- var L = kr();
1687
- if (N(L))
1688
- return $(L);
1689
- i = setTimeout(E, S(L));
1690
+ var A = kr();
1691
+ if (N(A))
1692
+ return L(A);
1693
+ i = setTimeout(E, S(A));
1690
1694
  }
1691
- function $(L) {
1692
- return i = void 0, x && n ? w(L) : (n = s = void 0, o);
1695
+ function L(A) {
1696
+ return i = void 0, x && n ? w(A) : (n = s = void 0, o);
1693
1697
  }
1694
1698
  function V() {
1695
1699
  i !== void 0 && clearTimeout(i), l = 0, n = c = s = i = void 0;
1696
1700
  }
1697
1701
  function j() {
1698
- return i === void 0 ? o : $(kr());
1702
+ return i === void 0 ? o : L(kr());
1699
1703
  }
1700
1704
  function b() {
1701
- var L = kr(), R = N(L);
1702
- if (n = arguments, s = this, c = L, R) {
1705
+ var A = kr(), R = N(A);
1706
+ if (n = arguments, s = this, c = A, R) {
1703
1707
  if (i === void 0)
1704
1708
  return v(c);
1705
1709
  if (m)
@@ -1738,12 +1742,12 @@ const bl = (e, r) => {
1738
1742
  onFocus: S,
1739
1743
  onBlur: N,
1740
1744
  onInput: E,
1741
- onInnerTextChange: $,
1745
+ onInnerTextChange: L,
1742
1746
  onInnerHTMLChange: V,
1743
1747
  onElementCreate: j,
1744
1748
  onLeftElementClick: b,
1745
- onRightElementClick: L
1746
- } = e, R = Q("bsc-flex-grow focus:bsc-outline-none"), H = Q("bsc-text-gray-4"), A = Q(), te = je(
1749
+ onRightElementClick: A
1750
+ } = e, R = Q("bsc-flex-grow focus:bsc-outline-none"), H = Q("bsc-text-gray-4"), $ = Q(), te = je(
1747
1751
  (h) => {
1748
1752
  const D = h.target, B = D.innerHTML;
1749
1753
  D.className = `${R.current}`, v && B === v && (D.innerHTML = ""), S == null || S(h);
@@ -1762,7 +1766,7 @@ const bl = (e, r) => {
1762
1766
  ), X = je(
1763
1767
  (h) => {
1764
1768
  var D, B;
1765
- (D = A.current) == null || D.removeEventListener("focus", te), (B = A.current) == null || B.removeEventListener("blur", J), v && h && h !== document.activeElement && h.innerHTML === "" && (h.innerHTML = v, h.className = `${R.current} ${H.current}`), h.addEventListener("focus", te), h.addEventListener("blur", J), A.current = h;
1769
+ (D = $.current) == null || D.removeEventListener("focus", te), (B = $.current) == null || B.removeEventListener("blur", J), v && h && h !== document.activeElement && h.innerHTML === "" && (h.innerHTML = v, h.className = `${R.current} ${H.current}`), h.addEventListener("focus", te), h.addEventListener("blur", J), $.current = h;
1766
1770
  },
1767
1771
  [v]
1768
1772
  ), P = je(
@@ -1773,24 +1777,24 @@ const bl = (e, r) => {
1773
1777
  ), T = (h) => {
1774
1778
  b == null || b(h);
1775
1779
  }, Y = (h) => {
1776
- L == null || L(h);
1780
+ A == null || A(h);
1777
1781
  }, F = Vt((h) => {
1778
- E == null || E(h), $ == null || $(h.target.innerText), V == null || V(h.target.innerHTML);
1782
+ E == null || E(h), L == null || L(h.target.innerText), V == null || V(h.target.innerHTML);
1779
1783
  }, s), ne = je((h) => {
1780
- A.current && (A.current.innerText = h);
1784
+ $.current && ($.current.innerText = h);
1781
1785
  }, []), I = je((h) => {
1782
- A.current && (A.current.innerHTML = h);
1786
+ $.current && ($.current.innerHTML = h);
1783
1787
  }, []), fe = je(() => {
1784
1788
  var h;
1785
- (h = A.current) == null || h.focus();
1789
+ (h = $.current) == null || h.focus();
1786
1790
  }, []);
1787
1791
  mr(r, () => ({
1788
- inputElement: A.current,
1792
+ inputElement: $.current,
1789
1793
  setInnerText: ne,
1790
1794
  setInnerHTML: I,
1791
1795
  focus: fe
1792
1796
  }));
1793
- const g = we(
1797
+ const g = Te(
1794
1798
  { "bsc-w-full ": a },
1795
1799
  "bsc-flex bsc-flex-row bsc-items-center bsc-shadow-sm bsc-border bsc-border-solid bsc-border-gray-3 dark:bsc-border-white dark:bsc-bg-mono-dark-1 dark:bsc-text-mono-light-1 bsc-rounded-md bsc-p-2",
1796
1800
  {
@@ -1798,7 +1802,7 @@ const bl = (e, r) => {
1798
1802
  "bsc-overflow-hidden bsc-whitespace-pre": m && !x
1799
1803
  },
1800
1804
  c
1801
- ), C = we("bsc-flex-shrink", { "bsc-mr-2": o }, l), U = we("bsc-flex-shrink", { "bsc-ml-2": i }, d);
1805
+ ), C = Te("bsc-flex-shrink", { "bsc-mr-2": o }, l), U = Te("bsc-flex-shrink", { "bsc-ml-2": i }, d);
1802
1806
  return /* @__PURE__ */ f.jsxs("div", { className: g, ref: (h) => h && P(h), children: [
1803
1807
  o && /* @__PURE__ */ f.jsx("div", { className: C, onClick: T, children: o }),
1804
1808
  /* @__PURE__ */ f.jsx(
@@ -2629,7 +2633,7 @@ function We(e, r) {
2629
2633
  function Qs(e) {
2630
2634
  return ye(Ce.anyDigitsSigned, e);
2631
2635
  }
2632
- function Te(e, r) {
2636
+ function Pe(e, r) {
2633
2637
  switch (e) {
2634
2638
  case 1:
2635
2639
  return ye(Ce.singleDigit, r);
@@ -2701,7 +2705,7 @@ class Ef extends ie {
2701
2705
  });
2702
2706
  switch (n) {
2703
2707
  case "y":
2704
- return De(Te(4, t), a);
2708
+ return De(Pe(4, t), a);
2705
2709
  case "yo":
2706
2710
  return De(
2707
2711
  s.ordinalNumber(t, {
@@ -2710,7 +2714,7 @@ class Ef extends ie {
2710
2714
  a
2711
2715
  );
2712
2716
  default:
2713
- return De(Te(n.length, t), a);
2717
+ return De(Pe(n.length, t), a);
2714
2718
  }
2715
2719
  }
2716
2720
  validate(t, n) {
@@ -2756,7 +2760,7 @@ class Sf extends ie {
2756
2760
  });
2757
2761
  switch (n) {
2758
2762
  case "Y":
2759
- return De(Te(4, t), a);
2763
+ return De(Pe(4, t), a);
2760
2764
  case "Yo":
2761
2765
  return De(
2762
2766
  s.ordinalNumber(t, {
@@ -2765,7 +2769,7 @@ class Sf extends ie {
2765
2769
  a
2766
2770
  );
2767
2771
  default:
2768
- return De(Te(n.length, t), a);
2772
+ return De(Pe(n.length, t), a);
2769
2773
  }
2770
2774
  }
2771
2775
  validate(t, n) {
@@ -2856,7 +2860,7 @@ class kf extends ie {
2856
2860
  switch (n) {
2857
2861
  case "Q":
2858
2862
  case "QQ":
2859
- return Te(n.length, t);
2863
+ return Pe(n.length, t);
2860
2864
  case "Qo":
2861
2865
  return s.ordinalNumber(t, { unit: "quarter" });
2862
2866
  case "QQQ":
@@ -2918,7 +2922,7 @@ class Of extends ie {
2918
2922
  switch (n) {
2919
2923
  case "q":
2920
2924
  case "qq":
2921
- return Te(n.length, t);
2925
+ return Pe(n.length, t);
2922
2926
  case "qo":
2923
2927
  return s.ordinalNumber(t, { unit: "quarter" });
2924
2928
  case "qqq":
@@ -2984,7 +2988,7 @@ class Rf extends ie {
2984
2988
  a
2985
2989
  );
2986
2990
  case "MM":
2987
- return De(Te(2, t), a);
2991
+ return De(Pe(2, t), a);
2988
2992
  case "Mo":
2989
2993
  return De(
2990
2994
  s.ordinalNumber(t, {
@@ -3046,7 +3050,7 @@ class Nf extends ie {
3046
3050
  a
3047
3051
  );
3048
3052
  case "LL":
3049
- return De(Te(2, t), a);
3053
+ return De(Pe(2, t), a);
3050
3054
  case "Lo":
3051
3055
  return De(
3052
3056
  s.ordinalNumber(t, {
@@ -3110,7 +3114,7 @@ class jf extends ie {
3110
3114
  case "wo":
3111
3115
  return s.ordinalNumber(t, { unit: "week" });
3112
3116
  default:
3113
- return Te(n.length, t);
3117
+ return Pe(n.length, t);
3114
3118
  }
3115
3119
  }
3116
3120
  validate(t, n) {
@@ -3152,7 +3156,7 @@ class Mf extends ie {
3152
3156
  case "Io":
3153
3157
  return s.ordinalNumber(t, { unit: "week" });
3154
3158
  default:
3155
- return Te(n.length, t);
3159
+ return Pe(n.length, t);
3156
3160
  }
3157
3161
  }
3158
3162
  validate(t, n) {
@@ -3203,7 +3207,7 @@ class $f extends ie {
3203
3207
  case "do":
3204
3208
  return s.ordinalNumber(t, { unit: "date" });
3205
3209
  default:
3206
- return Te(n.length, t);
3210
+ return Pe(n.length, t);
3207
3211
  }
3208
3212
  }
3209
3213
  validate(t, n) {
@@ -3245,7 +3249,7 @@ class Ff extends ie {
3245
3249
  case "Do":
3246
3250
  return s.ordinalNumber(t, { unit: "date" });
3247
3251
  default:
3248
- return Te(n.length, t);
3252
+ return Pe(n.length, t);
3249
3253
  }
3250
3254
  }
3251
3255
  validate(t, n) {
@@ -3328,7 +3332,7 @@ class Hf extends ie {
3328
3332
  switch (n) {
3329
3333
  case "e":
3330
3334
  case "ee":
3331
- return De(Te(n.length, t), o);
3335
+ return De(Pe(n.length, t), o);
3332
3336
  case "eo":
3333
3337
  return De(
3334
3338
  s.ordinalNumber(t, {
@@ -3393,7 +3397,7 @@ class Wf extends ie {
3393
3397
  switch (n) {
3394
3398
  case "c":
3395
3399
  case "cc":
3396
- return De(Te(n.length, t), o);
3400
+ return De(Pe(n.length, t), o);
3397
3401
  case "co":
3398
3402
  return De(
3399
3403
  s.ordinalNumber(t, {
@@ -3459,7 +3463,7 @@ class Bf extends ie {
3459
3463
  switch (n) {
3460
3464
  case "i":
3461
3465
  case "ii":
3462
- return Te(n.length, t);
3466
+ return Pe(n.length, t);
3463
3467
  case "io":
3464
3468
  return s.ordinalNumber(t, { unit: "day" });
3465
3469
  case "iii":
@@ -3658,7 +3662,7 @@ class Zf extends ie {
3658
3662
  case "ho":
3659
3663
  return s.ordinalNumber(t, { unit: "hour" });
3660
3664
  default:
3661
- return Te(n.length, t);
3665
+ return Pe(n.length, t);
3662
3666
  }
3663
3667
  }
3664
3668
  validate(t, n) {
@@ -3682,7 +3686,7 @@ class Gf extends ie {
3682
3686
  case "Ho":
3683
3687
  return s.ordinalNumber(t, { unit: "hour" });
3684
3688
  default:
3685
- return Te(n.length, t);
3689
+ return Pe(n.length, t);
3686
3690
  }
3687
3691
  }
3688
3692
  validate(t, n) {
@@ -3705,7 +3709,7 @@ class Qf extends ie {
3705
3709
  case "Ko":
3706
3710
  return s.ordinalNumber(t, { unit: "hour" });
3707
3711
  default:
3708
- return Te(n.length, t);
3712
+ return Pe(n.length, t);
3709
3713
  }
3710
3714
  }
3711
3715
  validate(t, n) {
@@ -3728,7 +3732,7 @@ class Kf extends ie {
3728
3732
  case "ko":
3729
3733
  return s.ordinalNumber(t, { unit: "hour" });
3730
3734
  default:
3731
- return Te(n.length, t);
3735
+ return Pe(n.length, t);
3732
3736
  }
3733
3737
  }
3734
3738
  validate(t, n) {
@@ -3752,7 +3756,7 @@ class Xf extends ie {
3752
3756
  case "mo":
3753
3757
  return s.ordinalNumber(t, { unit: "minute" });
3754
3758
  default:
3755
- return Te(n.length, t);
3759
+ return Pe(n.length, t);
3756
3760
  }
3757
3761
  }
3758
3762
  validate(t, n) {
@@ -3775,7 +3779,7 @@ class Jf extends ie {
3775
3779
  case "so":
3776
3780
  return s.ordinalNumber(t, { unit: "second" });
3777
3781
  default:
3778
- return Te(n.length, t);
3782
+ return Pe(n.length, t);
3779
3783
  }
3780
3784
  }
3781
3785
  validate(t, n) {
@@ -3793,7 +3797,7 @@ class ed extends ie {
3793
3797
  }
3794
3798
  parse(t, n) {
3795
3799
  const s = (a) => Math.trunc(a * Math.pow(10, -n.length + 3));
3796
- return De(Te(n.length, t), s);
3800
+ return De(Pe(n.length, t), s);
3797
3801
  }
3798
3802
  set(t, n, s) {
3799
3803
  return t.setMilliseconds(s), t;
@@ -3933,8 +3937,8 @@ const ad = {
3933
3937
  T: new sd()
3934
3938
  }, od = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, id = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, cd = /^'([^]*?)'?$/, ud = /''/g, ld = /\S/, fd = /[a-zA-Z]/;
3935
3939
  function Fe(e, r, t, n) {
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;
3940
+ var S, N, E, L, V, j, b, A;
3941
+ 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 ?? ((L = (E = s.locale) == null ? void 0 : E.options) == null ? void 0 : L.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 ?? ((A = (b = s.locale) == null ? void 0 : b.options) == null ? void 0 : A.weekStartsOn) ?? 0;
3938
3942
  if (r === "")
3939
3943
  return e === "" ? oe(t) : me(t, NaN);
3940
3944
  const c = {
@@ -3944,16 +3948,16 @@ function Fe(e, r, t, n) {
3944
3948
  }, l = [new Tf()], d = r.match(id).map((R) => {
3945
3949
  const H = R[0];
3946
3950
  if (H in Zn) {
3947
- const A = Zn[H];
3948
- return A(R, a.formatLong);
3951
+ const $ = Zn[H];
3952
+ return $(R, a.formatLong);
3949
3953
  }
3950
3954
  return R;
3951
3955
  }).join("").match(od), m = [];
3952
3956
  for (let R of d) {
3953
3957
  !(n != null && n.useAdditionalWeekYearTokens) && hf(R) && Gn(R, r, e), !(n != null && n.useAdditionalDayOfYearTokens) && df(R) && Gn(R, r, e);
3954
- const H = R[0], A = ad[H];
3955
- if (A) {
3956
- const { incompatibleTokens: te } = A;
3958
+ const H = R[0], $ = ad[H];
3959
+ if ($) {
3960
+ const { incompatibleTokens: te } = $;
3957
3961
  if (Array.isArray(te)) {
3958
3962
  const X = m.find(
3959
3963
  (P) => te.includes(P.token) || P.token === H
@@ -3962,12 +3966,12 @@ function Fe(e, r, t, n) {
3962
3966
  throw new RangeError(
3963
3967
  `The format string mustn't contain \`${X.fullToken}\` and \`${R}\` at the same time`
3964
3968
  );
3965
- } else if (A.incompatibleTokens === "*" && m.length > 0)
3969
+ } else if ($.incompatibleTokens === "*" && m.length > 0)
3966
3970
  throw new RangeError(
3967
3971
  `The format string mustn't contain \`${R}\` and any other token at the same time`
3968
3972
  );
3969
3973
  m.push({ token: H, fullToken: R });
3970
- const J = A.run(
3974
+ const J = $.run(
3971
3975
  e,
3972
3976
  R,
3973
3977
  a.match,
@@ -3989,8 +3993,8 @@ function Fe(e, r, t, n) {
3989
3993
  }
3990
3994
  if (e.length > 0 && ld.test(e))
3991
3995
  return me(t, NaN);
3992
- const x = l.map((R) => R.priority).sort((R, H) => H - R).filter((R, H, A) => A.indexOf(R) === H).map(
3993
- (R) => l.filter((H) => H.priority === R).sort((H, A) => A.subPriority - H.subPriority)
3996
+ const x = l.map((R) => R.priority).sort((R, H) => H - R).filter((R, H, $) => $.indexOf(R) === H).map(
3997
+ (R) => l.filter((H) => H.priority === R).sort((H, $) => $.subPriority - H.subPriority)
3994
3998
  ).map((R) => R[0]);
3995
3999
  let w = oe(t);
3996
4000
  if (isNaN(w.getTime()))
@@ -4264,7 +4268,7 @@ const Qn = ({ className: e }) => /* @__PURE__ */ f.jsx(
4264
4268
  )
4265
4269
  }
4266
4270
  ), Fd = ({ className: e }) => {
4267
- const r = we("bsc-h-6 bsc-w-6", e);
4271
+ const r = Te("bsc-h-6 bsc-w-6", e);
4268
4272
  return /* @__PURE__ */ f.jsx(
4269
4273
  "svg",
4270
4274
  {
@@ -4278,7 +4282,7 @@ const Qn = ({ className: e }) => /* @__PURE__ */ f.jsx(
4278
4282
  }
4279
4283
  );
4280
4284
  }, Yd = ({ className: e }) => {
4281
- const r = we("bsc-h-6 bsc-w-6", e);
4285
+ const r = Te("bsc-h-6 bsc-w-6", e);
4282
4286
  return /* @__PURE__ */ f.jsx(
4283
4287
  "svg",
4284
4288
  {
@@ -4292,7 +4296,7 @@ const Qn = ({ className: e }) => /* @__PURE__ */ f.jsx(
4292
4296
  }
4293
4297
  );
4294
4298
  }, Hd = ({ className: e }) => {
4295
- const r = we("bsc-h-6 bsc-w-6", e);
4299
+ const r = Te("bsc-h-6 bsc-w-6", e);
4296
4300
  return /* @__PURE__ */ f.jsx(
4297
4301
  "svg",
4298
4302
  {
@@ -4306,7 +4310,7 @@ const Qn = ({ className: e }) => /* @__PURE__ */ f.jsx(
4306
4310
  }
4307
4311
  );
4308
4312
  }, Wd = ({ className: e }) => {
4309
- const r = we("bsc-h-6 bsc-w-6", e);
4313
+ const r = Te("bsc-h-6 bsc-w-6", e);
4310
4314
  return /* @__PURE__ */ f.jsx(
4311
4315
  "svg",
4312
4316
  {
@@ -4338,7 +4342,7 @@ const Qn = ({ className: e }) => /* @__PURE__ */ f.jsx(
4338
4342
  chevronRight: Hd,
4339
4343
  chevronUp: Wd,
4340
4344
  close: Vd
4341
- }), a = Yt(() => s.current[e] || Qn, [e]), o = we(
4345
+ }), a = Yt(() => s.current[e] || Qn, [e]), o = Te(
4342
4346
  {
4343
4347
  "bsc-h-[24px] bsc-w-[24px]": r === Re.Regular,
4344
4348
  "bsc-h-[20px] bsc-w-[20px]": r === Re.Small
@@ -4489,11 +4493,11 @@ function Kd() {
4489
4493
  if (Kn)
4490
4494
  return ue;
4491
4495
  Kn = 1;
4492
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, s = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, x = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, S = e ? Symbol.for("react.block") : 60121, N = e ? Symbol.for("react.fundamental") : 60117, E = e ? Symbol.for("react.responder") : 60118, $ = e ? Symbol.for("react.scope") : 60119;
4496
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, s = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, x = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, S = e ? Symbol.for("react.block") : 60121, N = e ? Symbol.for("react.fundamental") : 60117, E = e ? Symbol.for("react.responder") : 60118, L = e ? Symbol.for("react.scope") : 60119;
4493
4497
  function V(b) {
4494
4498
  if (typeof b == "object" && b !== null) {
4495
- var L = b.$$typeof;
4496
- switch (L) {
4499
+ var A = b.$$typeof;
4500
+ switch (A) {
4497
4501
  case r:
4498
4502
  switch (b = b.type, b) {
4499
4503
  case c:
@@ -4512,11 +4516,11 @@ function Kd() {
4512
4516
  case o:
4513
4517
  return b;
4514
4518
  default:
4515
- return L;
4519
+ return A;
4516
4520
  }
4517
4521
  }
4518
4522
  case t:
4519
- return L;
4523
+ return A;
4520
4524
  }
4521
4525
  }
4522
4526
  }
@@ -4548,7 +4552,7 @@ function Kd() {
4548
4552
  }, ue.isSuspense = function(b) {
4549
4553
  return V(b) === m;
4550
4554
  }, ue.isValidElementType = function(b) {
4551
- return typeof b == "string" || typeof b == "function" || b === n || b === l || b === a || b === s || b === m || b === x || typeof b == "object" && b !== null && (b.$$typeof === v || b.$$typeof === w || b.$$typeof === o || b.$$typeof === i || b.$$typeof === d || b.$$typeof === N || b.$$typeof === E || b.$$typeof === $ || b.$$typeof === S);
4555
+ return typeof b == "string" || typeof b == "function" || b === n || b === l || b === a || b === s || b === m || b === x || typeof b == "object" && b !== null && (b.$$typeof === v || b.$$typeof === w || b.$$typeof === o || b.$$typeof === i || b.$$typeof === d || b.$$typeof === N || b.$$typeof === E || b.$$typeof === L || b.$$typeof === S);
4552
4556
  }, ue.typeOf = V, ue;
4553
4557
  }
4554
4558
  var le = {};
@@ -4563,10 +4567,10 @@ var le = {};
4563
4567
  var Xn;
4564
4568
  function Xd() {
4565
4569
  return Xn || (Xn = 1, process.env.NODE_ENV !== "production" && function() {
4566
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, s = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, x = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, S = e ? Symbol.for("react.block") : 60121, N = e ? Symbol.for("react.fundamental") : 60117, E = e ? Symbol.for("react.responder") : 60118, $ = e ? Symbol.for("react.scope") : 60119;
4570
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, s = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, x = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, S = e ? Symbol.for("react.block") : 60121, N = e ? Symbol.for("react.fundamental") : 60117, E = e ? Symbol.for("react.responder") : 60118, L = e ? Symbol.for("react.scope") : 60119;
4567
4571
  function V(k) {
4568
4572
  return typeof k == "string" || typeof k == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
4569
- k === n || k === l || k === a || k === s || k === m || k === x || typeof k == "object" && k !== null && (k.$$typeof === v || k.$$typeof === w || k.$$typeof === o || k.$$typeof === i || k.$$typeof === d || k.$$typeof === N || k.$$typeof === E || k.$$typeof === $ || k.$$typeof === S);
4573
+ k === n || k === l || k === a || k === s || k === m || k === x || typeof k == "object" && k !== null && (k.$$typeof === v || k.$$typeof === w || k.$$typeof === o || k.$$typeof === i || k.$$typeof === d || k.$$typeof === N || k.$$typeof === E || k.$$typeof === L || k.$$typeof === S);
4570
4574
  }
4571
4575
  function j(k) {
4572
4576
  if (typeof k == "object" && k !== null) {
@@ -4600,7 +4604,7 @@ function Xd() {
4600
4604
  }
4601
4605
  }
4602
4606
  }
4603
- var b = c, L = l, R = i, H = o, A = r, te = d, J = n, X = v, P = w, T = t, Y = a, F = s, ne = m, I = !1;
4607
+ var b = c, A = l, R = i, H = o, $ = r, te = d, J = n, X = v, P = w, T = t, Y = a, F = s, ne = m, I = !1;
4604
4608
  function fe(k) {
4605
4609
  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;
4606
4610
  }
@@ -4637,10 +4641,10 @@ function Xd() {
4637
4641
  function q(k) {
4638
4642
  return j(k) === s;
4639
4643
  }
4640
- function Pe(k) {
4644
+ function Ee(k) {
4641
4645
  return j(k) === m;
4642
4646
  }
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;
4647
+ le.AsyncMode = b, le.ConcurrentMode = A, le.ContextConsumer = R, le.ContextProvider = H, le.Element = $, 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 = Ee, le.isValidElementType = V, le.typeOf = j;
4644
4648
  }()), le;
4645
4649
  }
4646
4650
  var Jn;
@@ -4795,15 +4799,15 @@ function th() {
4795
4799
  object: E("object"),
4796
4800
  string: E("string"),
4797
4801
  symbol: E("symbol"),
4798
- any: $(),
4802
+ any: L(),
4799
4803
  arrayOf: V,
4800
4804
  element: j(),
4801
4805
  elementType: b(),
4802
- instanceOf: L,
4806
+ instanceOf: A,
4803
4807
  node: te(),
4804
4808
  objectOf: H,
4805
4809
  oneOf: R,
4806
- oneOfType: A,
4810
+ oneOfType: $,
4807
4811
  shape: X,
4808
4812
  exact: P
4809
4813
  };
@@ -4817,8 +4821,8 @@ function th() {
4817
4821
  function N(g) {
4818
4822
  if (process.env.NODE_ENV !== "production")
4819
4823
  var C = {}, U = 0;
4820
- function h(B, _, M, W, Z, q, Pe) {
4821
- if (W = W || x, q = q || M, Pe !== t) {
4824
+ function h(B, _, M, W, Z, q, Ee) {
4825
+ if (W = W || x, q = q || M, Ee !== t) {
4822
4826
  if (c) {
4823
4827
  var k = new Error(
4824
4828
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
@@ -4851,7 +4855,7 @@ function th() {
4851
4855
  }
4852
4856
  return N(C);
4853
4857
  }
4854
- function $() {
4858
+ function L() {
4855
4859
  return N(o);
4856
4860
  }
4857
4861
  function V(g) {
@@ -4894,7 +4898,7 @@ function th() {
4894
4898
  }
4895
4899
  return N(g);
4896
4900
  }
4897
- function L(g) {
4901
+ function A(g) {
4898
4902
  function C(U, h, D, B, _) {
4899
4903
  if (!(U[h] instanceof g)) {
4900
4904
  var M = g.name || x, W = fe(U[h]);
@@ -4913,7 +4917,7 @@ function th() {
4913
4917
  for (var M = U[h], W = 0; W < g.length; W++)
4914
4918
  if (v(M, g[W]))
4915
4919
  return null;
4916
- var Z = JSON.stringify(g, function(Pe, k) {
4920
+ var Z = JSON.stringify(g, function(Ee, k) {
4917
4921
  var Ne = ne(k);
4918
4922
  return Ne === "symbol" ? String(k) : k;
4919
4923
  });
@@ -4938,7 +4942,7 @@ function th() {
4938
4942
  }
4939
4943
  return N(C);
4940
4944
  }
4941
- function A(g) {
4945
+ function $(g) {
4942
4946
  if (!Array.isArray(g))
4943
4947
  return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), o;
4944
4948
  for (var C = 0; C < g.length; C++) {
@@ -4950,7 +4954,7 @@ function th() {
4950
4954
  }
4951
4955
  function h(D, B, _, M, W) {
4952
4956
  for (var Z = [], q = 0; q < g.length; q++) {
4953
- var Pe = g[q], k = Pe(D, B, _, M, W, t);
4957
+ var Ee = g[q], k = Ee(D, B, _, M, W, t);
4954
4958
  if (k == null)
4955
4959
  return null;
4956
4960
  k.data && n(k.data, "expectedType") && Z.push(k.data.expectedType);
@@ -4980,9 +4984,9 @@ function th() {
4980
4984
  var q = g[Z];
4981
4985
  if (typeof q != "function")
4982
4986
  return J(D, B, _, Z, ne(q));
4983
- var Pe = q(M, Z, D, B, _ + "." + Z, t);
4984
- if (Pe)
4985
- return Pe;
4987
+ var Ee = q(M, Z, D, B, _ + "." + Z, t);
4988
+ if (Ee)
4989
+ return Ee;
4986
4990
  }
4987
4991
  return null;
4988
4992
  }
@@ -4995,15 +4999,15 @@ function th() {
4995
4999
  return new S("Invalid " + B + " `" + _ + "` of type `" + W + "` " + ("supplied to `" + D + "`, expected `object`."));
4996
5000
  var Z = r({}, U[h], g);
4997
5001
  for (var q in Z) {
4998
- var Pe = g[q];
4999
- if (n(g, q) && typeof Pe != "function")
5000
- return J(D, B, _, q, ne(Pe));
5001
- if (!Pe)
5002
+ var Ee = g[q];
5003
+ if (n(g, q) && typeof Ee != "function")
5004
+ return J(D, B, _, q, ne(Ee));
5005
+ if (!Ee)
5002
5006
  return new S(
5003
5007
  "Invalid " + B + " `" + _ + "` key `" + q + "` supplied to `" + D + "`.\nBad object: " + JSON.stringify(U[h], null, " ") + `
5004
5008
  Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
5005
5009
  );
5006
- var k = Pe(M, q, D, B, _ + "." + q, t);
5010
+ var k = Ee(M, q, D, B, _ + "." + q, t);
5007
5011
  if (k)
5008
5012
  return k;
5009
5013
  }
@@ -5542,17 +5546,17 @@ const uh = ({
5542
5546
  isClickedWithin: d,
5543
5547
  children: m
5544
5548
  }) => {
5545
- const [x, w] = xe(-1), [v, S] = xe(-1), [N, E] = xe(e), $ = Q(100), V = Q(101), j = Q(), b = Q(), L = Q();
5546
- Se(() => {
5549
+ const [x, w] = xe(-1), [v, S] = xe(-1), [N, E] = xe(e), L = Q(100), V = Q(101), j = Q(), b = Q(), A = Q();
5550
+ we(() => {
5547
5551
  r && (j.current = ha(r));
5548
5552
  const P = sa("zIndex", (T) => T === "auto" || T === "-1" ? !1 : parseInt(T) > 100).map((T) => parseInt(T, 10));
5549
- P.length > 0 && ($.current = Math.max(...P) + 1, V.current = Math.max(...P) + 2), E(e);
5553
+ P.length > 0 && (L.current = Math.max(...P) + 1, V.current = Math.max(...P) + 2), E(e);
5550
5554
  }, [e, r]);
5551
5555
  const R = (P) => {
5552
5556
  b.current = P;
5553
5557
  }, H = () => {
5554
- S($.current), w(V.current);
5555
- }, A = () => {
5558
+ S(L.current), w(V.current);
5559
+ }, $ = () => {
5556
5560
  if (!b.current)
5557
5561
  return;
5558
5562
  c == null || c();
@@ -5561,9 +5565,9 @@ const uh = ({
5561
5565
  const T = (Y) => {
5562
5566
  Y ? d == null || d() : E(!1);
5563
5567
  };
5564
- L.current = ia(b.current, T, P);
5568
+ A.current = ia(b.current, T, P);
5565
5569
  }, te = () => {
5566
- L.current && ca(L.current);
5570
+ A.current && ca(A.current);
5567
5571
  }, J = () => {
5568
5572
  S(-1), w(-1), l == null || l();
5569
5573
  }, X = {
@@ -5579,7 +5583,7 @@ const uh = ({
5579
5583
  showTransitionOptions: a,
5580
5584
  hideTransitionOptions: o,
5581
5585
  onEntering: H,
5582
- onEntered: A,
5586
+ onEntered: $,
5583
5587
  onExit: te,
5584
5588
  onExited: J,
5585
5589
  unmountOnExit: n,
@@ -5800,15 +5804,15 @@ const lh = ({
5800
5804
  markupCreated: N,
5801
5805
  children: E
5802
5806
  }) => {
5803
- const [$, V] = xe(-1), [j, b] = xe(e), [L, R] = xe(!1), H = Q(!1), A = Q(100), te = Q({
5807
+ const [L, V] = xe(-1), [j, b] = xe(e), [A, R] = xe(!1), H = Q(!1), $ = Q(100), te = Q({
5804
5808
  left: 0,
5805
5809
  top: 0,
5806
5810
  width: 0
5807
5811
  }), J = Q(), X = Q(), P = Q(), T = Q(), Y = Q(), F = Q(), ne = hs();
5808
- Se(() => (c === !0 && (F.current = new ResizeObserver(I)), () => {
5812
+ we(() => (c === !0 && (F.current = new ResizeObserver(I)), () => {
5809
5813
  var _, M;
5810
5814
  c === !0 && (X.current && ((_ = F.current) == null || _.unobserve(X.current)), (M = F.current) == null || M.disconnect());
5811
- }), []), Se(() => {
5815
+ }), []), we(() => {
5812
5816
  if (r && (J.current = ha(r), o)) {
5813
5817
  const _ = ne == null ? void 0 : ne.isValidScrollableElement;
5814
5818
  P.current = na(
@@ -5824,7 +5828,7 @@ const lh = ({
5824
5828
  }
5825
5829
  if (i) {
5826
5830
  const _ = sa("zIndex", (M) => parseInt(M) >= 100).map((M) => parseInt(M));
5827
- _.length > 0 && (A.current = Math.max(..._) + 1);
5831
+ _.length > 0 && ($.current = Math.max(..._) + 1);
5828
5832
  }
5829
5833
  e !== void 0 && b(e);
5830
5834
  }, [r, e, o, i]);
@@ -5833,7 +5837,7 @@ const lh = ({
5833
5837
  const M = be.getScreenDimensions(), W = _[_.length - 1].target, Z = W.getBoundingClientRect(), q = be.determineOffScreenLocation(Z);
5834
5838
  if (q) {
5835
5839
  if (J.current && be.canPositionElementOnScreenWithTarget(W, J.current)) {
5836
- const Pe = be.positionElementToTargetOnScreen(
5840
+ const Ee = be.positionElementToTargetOnScreen(
5837
5841
  X.current,
5838
5842
  J.current,
5839
5843
  n,
@@ -5841,7 +5845,7 @@ const lh = ({
5841
5845
  );
5842
5846
  te.current = {
5843
5847
  ...te.current,
5844
- ...Pe
5848
+ ...Ee
5845
5849
  };
5846
5850
  } else
5847
5851
  q.right ? te.current.left = M.width - Z.width : q.left && (te.current.left = 0), q.bottom ? te.current.top = M.height - Z.height : q.top && (te.current.top = 0);
@@ -5851,7 +5855,7 @@ const lh = ({
5851
5855
  }, fe = Vt(() => {
5852
5856
  H.current = !H.current, R(H.current);
5853
5857
  }, 20), g = () => {
5854
- V(A.current);
5858
+ V($.current);
5855
5859
  }, C = () => {
5856
5860
  if (!X.current)
5857
5861
  return;
@@ -5888,10 +5892,10 @@ const lh = ({
5888
5892
  const _ = {
5889
5893
  top: `${te.current.top}px`,
5890
5894
  left: `${te.current.left}px`,
5891
- zIndex: $
5895
+ zIndex: L
5892
5896
  };
5893
5897
  return a && (_.width = `${te.current.width}px`), _;
5894
- }, [L, $, a]);
5898
+ }, [A, L, a]);
5895
5899
  return /* @__PURE__ */ f.jsx(
5896
5900
  da,
5897
5901
  {
@@ -6574,43 +6578,43 @@ const Ph = (e, r) => {
6574
6578
  onChange: S,
6575
6579
  onFocus: N,
6576
6580
  onBlur: E,
6577
- onElementCreate: $,
6581
+ onElementCreate: L,
6578
6582
  onLeftElementClick: V,
6579
6583
  onRightElementClick: j
6580
- } = e, [b, L] = xe(!0), R = Q(), H = Q(), A = Q();
6581
- Se(() => () => {
6584
+ } = e, [b, A] = xe(!0), R = Q(), H = Q(), $ = Q();
6585
+ we(() => () => {
6582
6586
  var I;
6583
- (I = A.current) == null || I.dispose();
6584
- }, []), Se(() => {
6587
+ (I = $.current) == null || I.dispose();
6588
+ }, []), we(() => {
6585
6589
  var I;
6586
- (I = A.current) == null || I.inputValuePassed(t);
6587
- }, [t]), Se(() => {
6590
+ (I = $.current) == null || I.inputValuePassed(t);
6591
+ }, [t]), we(() => {
6588
6592
  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));
6593
+ (I = $.current) == null || I.dispose(), n && ($.current = new Th(n, t), H.current && ((fe = $.current) == null || fe.inputElementCreated(H.current)), (g = $.current) == null || g.registerFormatChangeEvent(te));
6590
6594
  }, [n]);
6591
6595
  const te = je(
6592
6596
  (I) => {
6593
- v ? v(I) ? (L(!0), S == null || S(I)) : L(!1) : S == null || S(I);
6597
+ v ? v(I) ? (A(!0), S == null || S(I)) : A(!1) : S == null || S(I);
6594
6598
  },
6595
6599
  [S]
6596
6600
  ), J = je(
6597
6601
  (I) => {
6598
6602
  var fe;
6599
- (fe = A.current) == null || fe.inputFocused(), N == null || N(I);
6603
+ (fe = $.current) == null || fe.inputFocused(), N == null || N(I);
6600
6604
  },
6601
6605
  [N]
6602
6606
  ), X = je(
6603
6607
  (I) => {
6604
6608
  var fe;
6605
- (fe = A.current) == null || fe.inputBlurred(), E == null || E(I);
6609
+ (fe = $.current) == null || fe.inputBlurred(), E == null || E(I);
6606
6610
  },
6607
6611
  [E]
6608
6612
  ), P = je(() => {
6609
6613
  var I;
6610
- (I = A.current) == null || I.mouseUpHandler();
6614
+ (I = $.current) == null || I.mouseUpHandler();
6611
6615
  }, []), T = je((I) => {
6612
6616
  var fe;
6613
- (fe = A.current) == null || fe.keyDownHandler(I);
6617
+ (fe = $.current) == null || fe.keyDownHandler(I);
6614
6618
  }, []), Y = je((I) => {
6615
6619
  var fe, g, C, U, h, D, B, _, M;
6616
6620
  (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;
@@ -6621,7 +6625,7 @@ const Ph = (e, r) => {
6621
6625
  mr(r, () => ({
6622
6626
  focus: F
6623
6627
  }));
6624
- const ne = we(l, {
6628
+ const ne = Te(l, {
6625
6629
  "!bsc-border-error": !b
6626
6630
  });
6627
6631
  return /* @__PURE__ */ f.jsx(
@@ -6640,7 +6644,7 @@ const Ph = (e, r) => {
6640
6644
  allowSingleLineScroll: w,
6641
6645
  onFocus: J,
6642
6646
  onBlur: X,
6643
- onElementCreate: $,
6647
+ onElementCreate: L,
6644
6648
  onLeftElementClick: V,
6645
6649
  onRightElementClick: j
6646
6650
  }
@@ -7120,16 +7124,16 @@ const ur = ({
7120
7124
  dispatcher: l
7121
7125
  }) => {
7122
7126
  var Y;
7123
- const [d, m] = xe(!1), [x, w] = xe(), [v, 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());
7124
- Se(() => {
7127
+ const [d, m] = xe(!1), [x, w] = xe(), [v, S] = xe(), [N, E] = xe(), [L, V] = xe(), j = Q(), b = Q(), A = Gr(dn), R = Yt(() => A.calendarTemplate, [A.calendarTemplate]), H = async () => a || await va(ra());
7128
+ we(() => {
7125
7129
  H().then((F) => {
7126
7130
  j.current = F, b.current = Ch(j.current), m(!0);
7127
7131
  }).catch((F) => console.error(F));
7128
- }, []), Se(() => {
7132
+ }, []), we(() => {
7129
7133
  e && j.current && E(cs(e, j.current, s === Xe.Normal));
7130
- }, [e, d]), Se(() => {
7134
+ }, [e, d]), we(() => {
7131
7135
  V(r ? new Date(r.getFullYear(), r.getMonth(), r.getDate()) : void 0);
7132
- }, [r]), Se(() => {
7136
+ }, [r]), we(() => {
7133
7137
  w(
7134
7138
  t ? new Date(
7135
7139
  t.getFullYear(),
@@ -7149,10 +7153,10 @@ const ur = ({
7149
7153
  59
7150
7154
  ).getTime() : void 0
7151
7155
  );
7152
- }, [t, n]), Se(() => {
7156
+ }, [t, n]), we(() => {
7153
7157
  j.current && a && (j.current = a, E(cs(e, j.current, s === Xe.Normal)));
7154
7158
  }, [a]);
7155
- const A = (F) => {
7159
+ const $ = (F) => {
7156
7160
  if (s === Xe.Normal)
7157
7161
  l == null || l({
7158
7162
  type: K.SetSelectedDate,
@@ -7164,7 +7168,7 @@ const ur = ({
7164
7168
  throw new Error("Range selection mode requires onDateSelected to be set");
7165
7169
  !t || yf(F, t) ? o(F) : t && !n ? o(F, { setEndDate: !0 }) : t && n && o(F);
7166
7170
  }
7167
- }, te = (F) => ($ == null ? void 0 : $.toLocaleDateString()) === F.toLocaleDateString(), J = (F) => {
7171
+ }, te = (F) => (L == null ? void 0 : L.toLocaleDateString()) === F.toLocaleDateString(), J = (F) => {
7168
7172
  if (x && v) {
7169
7173
  const ne = F.getTime();
7170
7174
  return ne >= x && ne <= v;
@@ -7181,7 +7185,7 @@ const ur = ({
7181
7185
  monthMatrix: N,
7182
7186
  selectableDate: i,
7183
7187
  isValidDate: c,
7184
- onDateClicked: A,
7188
+ onDateClicked: $,
7185
7189
  isSelectedDate: te,
7186
7190
  isInSelectedDateRange: J
7187
7191
  }, T = R || ((F, ne) => /* @__PURE__ */ f.jsx("div", { className: "bc-dt-calendar bsc-w-full", children: ne }));
@@ -7190,11 +7194,11 @@ const ur = ({
7190
7194
  N == null ? void 0 : N.map(
7191
7195
  (F, ne) => F.map((I, fe) => {
7192
7196
  var U, h;
7193
- const g = I.dayValue !== null && (i === void 0 || i(I.dayValue)), C = we(
7197
+ const g = I.dayValue !== null && (i === void 0 || i(I.dayValue)), C = Te(
7194
7198
  "bsc-text-center bsc-py-1",
7195
7199
  {
7196
7200
  "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) || x && !v && Bs(x, I.dayValue) || x && v && J(I.dayValue)),
7201
+ "bsc-bg-primary-3 dark:bsc-bg-mono-light-1 dark:bsc-text-mono-dark-1": I && I.dayValue && (L && te(I.dayValue) || x && !v && Bs(x, I.dayValue) || x && v && J(I.dayValue)),
7198
7202
  "bsc-cursor-pointer": g,
7199
7203
  "bsc-text-error bsc-cursor-not-allowed": !g,
7200
7204
  "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))
@@ -7205,7 +7209,7 @@ const ur = ({
7205
7209
  "div",
7206
7210
  {
7207
7211
  className: C,
7208
- onClick: () => I && I.dayValue && g && (c === void 0 || c(I.dayValue)) && A(I.dayValue),
7212
+ onClick: () => I && I.dayValue && g && (c === void 0 || c(I.dayValue)) && $(I.dayValue),
7209
7213
  children: (h = I.dayValue) == null ? void 0 : h.getDate().toLocaleString((U = j.current) == null ? void 0 : U.code)
7210
7214
  },
7211
7215
  ne.toString() + fe.toString()
@@ -7477,34 +7481,34 @@ const ur = ({
7477
7481
  "22",
7478
7482
  "23"
7479
7483
  ]
7480
- ), l = Q(Id(0, 59, (P) => P.toString().padStart(2, "0"))), d = Q(["AM", "PM"]), m = Q(ll(e)), x = (P) => P > 11 ? P - 12 : P, [w, v] = xe(x(e.getHours())), [S, N] = xe(e.getMinutes()), [E, $] = xe(e.getHours() <= 12 ? 0 : 1), V = Q(e.toLocaleDateString(t.code));
7481
- Se(() => {
7484
+ ), l = Q(Id(0, 59, (P) => P.toString().padStart(2, "0"))), d = Q(["AM", "PM"]), m = Q(ll(e)), x = (P) => P > 11 ? P - 12 : P, [w, v] = xe(x(e.getHours())), [S, N] = xe(e.getMinutes()), [E, L] = xe(e.getHours() <= 12 ? 0 : 1), V = Q(e.toLocaleDateString(t.code));
7485
+ we(() => {
7482
7486
  const P = e.getHours(), T = e.getMinutes();
7483
7487
  if (P !== w && v(n === ve.TwelveHour ? x(P) : P), T !== S && N(T), n === ve.TwelveHour) {
7484
7488
  const Y = P <= 11 ? 0 : 1;
7485
- Y !== E && $(Y);
7489
+ Y !== E && L(Y);
7486
7490
  }
7487
7491
  }, [e]);
7488
7492
  const j = () => {
7489
7493
  var Y;
7490
7494
  const P = ((Y = s == null ? void 0 : s.hours) == null ? void 0 : Y.step) || 1, T = w < i.current ? w + P : 0;
7491
- v(T), A(T, S, E);
7495
+ v(T), $(T, S, E);
7492
7496
  }, b = () => {
7493
7497
  var Y;
7494
7498
  const P = ((Y = s == null ? void 0 : s.hours) == null ? void 0 : Y.step) || 1, T = w > 0 ? w - P : i.current;
7495
- v(T), A(T, S, E);
7496
- }, L = () => {
7499
+ v(T), $(T, S, E);
7500
+ }, A = () => {
7497
7501
  var Y, F, ne;
7498
7502
  const P = ((Y = s == null ? void 0 : s.minutes) == null ? void 0 : Y.step) || 1, T = S + P < (((F = s == null ? void 0 : s.minutes) == null ? void 0 : F.max) || 59) ? S + P : ((ne = s == null ? void 0 : s.minutes) == null ? void 0 : ne.min) || 0;
7499
- N(T), A(w, T, E);
7503
+ N(T), $(w, T, E);
7500
7504
  }, R = () => {
7501
7505
  var Y, F, ne;
7502
7506
  const P = ((Y = s == null ? void 0 : s.minutes) == null ? void 0 : Y.step) || 1, T = S - P >= (((F = s == null ? void 0 : s.minutes) == null ? void 0 : F.min) || 0) ? S - P : (((ne = s == null ? void 0 : s.minutes) == null ? void 0 : ne.max) || 60) - P;
7503
- N(T), A(w, T, E);
7507
+ N(T), $(w, T, E);
7504
7508
  }, H = () => {
7505
7509
  const P = E === 0 ? 1 : 0;
7506
- $(P), A(w, S, P);
7507
- }, A = (P, T, Y) => {
7510
+ L(P), $(w, S, P);
7511
+ }, $ = (P, T, Y) => {
7508
7512
  const F = n === ve.TwelveHour && Y === 1 ? P + 12 : P;
7509
7513
  m.current.setHours(F, T), o({
7510
7514
  type: K.SetSelectedDate,
@@ -7515,10 +7519,10 @@ const ur = ({
7515
7519
  o({
7516
7520
  type: K.DaySelector
7517
7521
  });
7518
- }, J = we("bsc-w-full bsc-grid bsc-grid-rows-3 bsc-gap-4 bc-dt-time-grid", {
7522
+ }, J = Te("bsc-w-full bsc-grid bsc-grid-rows-3 bsc-gap-4 bc-dt-time-grid", {
7519
7523
  "bsc-grid-cols-4": n === ve.TwelveHour,
7520
7524
  "bsc-grid-cols-3": n === ve.TwentyFourHour
7521
- }), X = we(
7525
+ }), X = Te(
7522
7526
  "bsc-text-center bsc-cursor-pointer hover:bsc-bg-gray-4 dark:bsc-text-mono-light-1 dark:hover:bsc-bg-mono-light-1 dark:hover:bsc-text-mono-dark-1 bc-dt-time-date-value",
7523
7527
  {
7524
7528
  "bsc-col-span-4": n === ve.TwelveHour,
@@ -7534,7 +7538,7 @@ const ur = ({
7534
7538
  r && /* @__PURE__ */ f.jsx("div", { className: X, onClick: te, children: V.current }),
7535
7539
  /* @__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 }) }) }),
7536
7540
  /* @__PURE__ */ f.jsx("div", {}),
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 }) }) }),
7541
+ /* @__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: A, children: /* @__PURE__ */ f.jsx(Le, { icon: "chevronUp", size: Re.Regular }) }) }),
7538
7542
  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 }) }) }),
7539
7543
  /* @__PURE__ */ f.jsx("div", { className: "bc-dt-time-hour-value bsc-text-center", children: c.current[w] }),
7540
7544
  /* @__PURE__ */ f.jsx("div", { className: "bc-dt-time-separator bsc-text-center", children: ":" }),
@@ -7827,7 +7831,7 @@ class Fh {
7827
7831
  const Yh = (e, r) => {
7828
7832
  var a;
7829
7833
  const [t, n] = xe(), s = Q();
7830
- return Se(() => {
7834
+ return we(() => {
7831
7835
  r && !t && (s.current = new Fh(e, r), n(s.current.createInputFormat()));
7832
7836
  }, [r]), [t, (a = s.current) == null ? void 0 : a.is24HourTime];
7833
7837
  }, Zh = ({
@@ -7849,19 +7853,19 @@ const Yh = (e, r) => {
7849
7853
  selectableDate: S,
7850
7854
  isValidDate: N,
7851
7855
  onChange: E,
7852
- calendarTemplate: $,
7856
+ calendarTemplate: L,
7853
7857
  dateScrollerTemplate: V,
7854
7858
  inputTemplate: j
7855
7859
  }) => {
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({
7857
- calendarTemplate: $,
7860
+ const [b, A] = xe(!1), [R, H] = xe(), [$, te] = xe(), J = Q(), X = Q(!1), P = Q(i || ra()), T = Q(), Y = Q(), F = Q(), [ne, I] = Yh(l, R), fe = Q({
7861
+ calendarTemplate: L,
7858
7862
  dateScrollerTemplate: V
7859
7863
  });
7860
- Se(() => {
7864
+ we(() => {
7861
7865
  P.current && g(P.current);
7862
- }, [P]), Se(() => {
7866
+ }, [P]), we(() => {
7863
7867
  i && g(i);
7864
- }, [i]), Se(() => {
7868
+ }, [i]), we(() => {
7865
7869
  if (e) {
7866
7870
  const G = C();
7867
7871
  D({
@@ -7872,12 +7876,12 @@ const Yh = (e, r) => {
7872
7876
  D({
7873
7877
  type: K.ClearDates
7874
7878
  });
7875
- }, [e, T.current]), Se(() => {
7879
+ }, [e, T.current]), we(() => {
7876
7880
  I && D({
7877
7881
  type: K.SetTimeFormat,
7878
7882
  timeFormat: I ? ve.TwentyFourHour : ve.TwelveHour
7879
7883
  });
7880
- }, [I]), Se(() => {
7884
+ }, [I]), we(() => {
7881
7885
  v && (Y.current = v);
7882
7886
  }, [v]);
7883
7887
  const g = (G) => {
@@ -7901,10 +7905,10 @@ const Yh = (e, r) => {
7901
7905
  timeFormat: ve.TwelveHour,
7902
7906
  dateInitialized: !1
7903
7907
  }, [h, D] = Na(_h, U), B = () => {
7904
- et(), L(!0);
7908
+ et(), A(!0);
7905
7909
  }, _ = Yt(
7906
7910
  () => Vt(() => {
7907
- L(!1);
7911
+ A(!1);
7908
7912
  }, 250),
7909
7913
  []
7910
7914
  ), M = Yt(
@@ -7914,7 +7918,7 @@ const Yh = (e, r) => {
7914
7918
  [_]
7915
7919
  ), W = (G) => {
7916
7920
  const ce = G.target.innerText;
7917
- Pe(ce);
7921
+ Ee(ce);
7918
7922
  }, Z = (G) => {
7919
7923
  if (G) {
7920
7924
  const ce = Ft(G, T.current);
@@ -7922,8 +7926,8 @@ const Yh = (e, r) => {
7922
7926
  } else
7923
7927
  return !0;
7924
7928
  }, q = (G) => {
7925
- Pe(G || "");
7926
- }, Pe = (G) => {
7929
+ Ee(G || "");
7930
+ }, Ee = (G) => {
7927
7931
  const ce = l !== de.DateRange ? Ft(G, T.current) : us(G, T.current);
7928
7932
  ce ? (Array.isArray(ce) ? (Rh(
7929
7933
  ce[0],
@@ -7944,19 +7948,19 @@ const Yh = (e, r) => {
7944
7948
  type: K.ClearDates
7945
7949
  }), E == null || E());
7946
7950
  }, k = (G) => {
7947
- l === de.DateOnly && o === !0 && L(!1), E == null || E(G);
7951
+ l === de.DateOnly && o === !0 && A(!1), E == null || E(G);
7948
7952
  }, Ne = () => {
7949
- et(), L(!b);
7953
+ et(), A(!b);
7950
7954
  }, Ve = () => {
7951
7955
  D({
7952
7956
  type: K.ClearDates
7953
- }), L(!1), E == null || E();
7957
+ }), A(!1), E == null || E();
7954
7958
  }, Ae = (G, ce) => {
7955
7959
  (!Y.current || J.current !== ce) && (Y.current = G, J.current = ce, X.current = !0);
7956
7960
  }, et = () => {
7957
7961
  (!F.current || X.current) && Y.current && (F.current = Y.current, te(Y.current), X.current = !1);
7958
7962
  }, Ct = () => {
7959
- L(!1), D({
7963
+ A(!1), D({
7960
7964
  type: l === de.TimeOnly ? K.TimeSelector : l === de.DateTime || l === de.DateOnly ? K.DaySelector : K.DateRangeSelector
7961
7965
  });
7962
7966
  }, zt = () => {
@@ -8111,7 +8115,7 @@ const Yh = (e, r) => {
8111
8115
  onInput: W,
8112
8116
  iconPosition: w,
8113
8117
  iconElement: Ue.rightElement || Ue.leftElement
8114
- }, Dt = j || ((G, ce) => /* @__PURE__ */ f.jsx(f.Fragment, { children: ce })), ze = we(
8118
+ }, Dt = j || ((G, ce) => /* @__PURE__ */ f.jsx(f.Fragment, { children: ce })), ze = Te(
8115
8119
  "bsc-text-left",
8116
8120
  {
8117
8121
  "bsc-bg-gray-4 dark:bsc-bg-mono-dark-3": r,
@@ -8142,7 +8146,7 @@ const Yh = (e, r) => {
8142
8146
  uh,
8143
8147
  {
8144
8148
  visible: b,
8145
- target: A,
8149
+ target: $,
8146
8150
  hidden: Ct,
8147
8151
  unmountWhenHidden: !0,
8148
8152
  children: qt()
@@ -8181,7 +8185,7 @@ const Yh = (e, r) => {
8181
8185
  lh,
8182
8186
  {
8183
8187
  visible: b,
8184
- target: A,
8188
+ target: $,
8185
8189
  shouldTargetCloseOverlay: !1,
8186
8190
  shouldScrollCloseOverlay: !0,
8187
8191
  shouldCheckZIndex: !0,