@tesouro/embedded-components-react 0.5.7 → 0.5.9

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.
@@ -13,8 +13,8 @@ var w = Object.defineProperty, T = (e, t) => {
13
13
  enumerable: !0
14
14
  });
15
15
  return t || w(n, Symbol.toStringTag, { value: "Module" }), n;
16
- }, E = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), D = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), O = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), ee = (e) => {
17
- let t = O(e);
16
+ }, E = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), ee = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), D = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), O = (e) => {
17
+ let t = D(e);
18
18
  return t.charAt(0).toUpperCase() + t.slice(1);
19
19
  }, k = {
20
20
  xmlns: "http://www.w3.org/2000/svg",
@@ -46,10 +46,10 @@ var w = Object.defineProperty, T = (e, t) => {
46
46
  let n = i(({ className: n, ...i }, a) => r(N, {
47
47
  ref: a,
48
48
  iconNode: t,
49
- className: E(`lucide-${D(ee(e))}`, `lucide-${e}`, n),
49
+ className: E(`lucide-${ee(O(e))}`, `lucide-${e}`, n),
50
50
  ...i
51
51
  }));
52
- return n.displayName = ee(e), n;
52
+ return n.displayName = O(e), n;
53
53
  }, F = P("arrow-down", [["path", {
54
54
  d: "M12 5v14",
55
55
  key: "s699le"
@@ -1388,15 +1388,15 @@ var qn = Object.defineProperty, Jn = (e, t) => qn(e, "name", {
1388
1388
  if (i && w.current) return;
1389
1389
  let t = e.target;
1390
1390
  [...d.branches].some((e) => e.contains(t)) || (s?.(e), c?.(e), e.defaultPrevented || l?.());
1391
- }, m), D = f ? x === v.length - 1 : !1, O = Kn((e) => {
1391
+ }, m), ee = f ? x === v.length - 1 : !1, D = Kn((e) => {
1392
1392
  e.key === "Escape" && (a?.(e), !e.defaultPrevented && l && (e.preventDefault(), l()));
1393
1393
  });
1394
1394
  return e.useEffect(() => {
1395
- if (D) return m.addEventListener("keydown", O, { capture: !0 }), () => m.removeEventListener("keydown", O, { capture: !0 });
1395
+ if (ee) return m.addEventListener("keydown", D, { capture: !0 }), () => m.removeEventListener("keydown", D, { capture: !0 });
1396
1396
  }, [
1397
1397
  m,
1398
- D,
1399
- O
1398
+ ee,
1399
+ D
1400
1400
  ]), e.useEffect(() => {
1401
1401
  if (f) return r && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (Qn = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(f)), d.layers.add(f), ar(), () => {
1402
1402
  r && (d.layersWithOutsidePointerEventsDisabled.delete(f), d.layersWithOutsidePointerEventsDisabled.size === 0 && (m.body.style.pointerEvents = Qn));
@@ -2939,7 +2939,7 @@ var os = 50, ss = async (e, t, n) => {
2939
2939
  y: r
2940
2940
  }, p = Wo(i), m = Ho(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
2941
2941
  (!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
2942
- let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = Po(d[_], T), D = Po(d[v], T), O = E, ee = C - h[m] - D, k = C / 2 - h[m] / 2 + w, A = Lo(O, k, ee), j = !c.arrow && Bo(i) != null && k !== A && a.reference[m] / 2 - (k < O ? E : D) - h[m] / 2 < 0, M = j ? k < O ? k - O : k - ee : 0;
2942
+ let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = Po(d[_], T), ee = Po(d[v], T), D = E, O = C - h[m] - ee, k = C / 2 - h[m] / 2 + w, A = Lo(D, k, O), j = !c.arrow && Bo(i) != null && k !== A && a.reference[m] / 2 - (k < D ? E : ee) - h[m] / 2 < 0, M = j ? k < D ? k - D : k - O : 0;
2943
2943
  return {
2944
2944
  [p]: f[p] + M,
2945
2945
  data: {
@@ -3640,14 +3640,14 @@ function Rc(t) {
3640
3640
  e !== w.current && (w.current = e, _(e));
3641
3641
  }, []), x = e.useCallback((e) => {
3642
3642
  e !== T.current && (T.current = e, y(e));
3643
- }, []), S = o || g, C = s || v, w = e.useRef(null), T = e.useRef(null), E = e.useRef(d), D = l != null, O = Lc(l), ee = Lc(a), k = Lc(u), A = e.useCallback(() => {
3643
+ }, []), S = o || g, C = s || v, w = e.useRef(null), T = e.useRef(null), E = e.useRef(d), ee = l != null, D = Lc(l), O = Lc(a), k = Lc(u), A = e.useCallback(() => {
3644
3644
  if (!w.current || !T.current) return;
3645
3645
  let e = {
3646
3646
  placement: n,
3647
3647
  strategy: r,
3648
3648
  middleware: m
3649
3649
  };
3650
- ee.current && (e.platform = ee.current), Mc(w.current, T.current, e).then((e) => {
3650
+ O.current && (e.platform = O.current), Mc(w.current, T.current, e).then((e) => {
3651
3651
  let t = {
3652
3652
  ...e,
3653
3653
  isPositioned: k.current !== !1
@@ -3660,7 +3660,7 @@ function Rc(t) {
3660
3660
  m,
3661
3661
  n,
3662
3662
  r,
3663
- ee,
3663
+ O,
3664
3664
  k
3665
3665
  ]);
3666
3666
  Nc(() => {
@@ -3674,15 +3674,15 @@ function Rc(t) {
3674
3674
  j.current = !1;
3675
3675
  }), []), Nc(() => {
3676
3676
  if (S && (w.current = S), C && (T.current = C), S && C) {
3677
- if (O.current) return O.current(S, C, A);
3677
+ if (D.current) return D.current(S, C, A);
3678
3678
  A();
3679
3679
  }
3680
3680
  }, [
3681
3681
  S,
3682
3682
  C,
3683
3683
  A,
3684
- O,
3685
- D
3684
+ D,
3685
+ ee
3686
3686
  ]);
3687
3687
  let M = e.useMemo(() => ({
3688
3688
  reference: w,
@@ -3837,19 +3837,19 @@ var zc = (e) => {
3837
3837
  ref: l
3838
3838
  });
3839
3839
  }, "PopperAnchor")), al = "PopperContent", [ol, sl] = Qc(al), cl = /* @__PURE__ */ e.forwardRef(/* @__PURE__ */ Xc(function(t, n) {
3840
- let { __scopePopper: r, side: i = "bottom", sideOffset: a = 0, align: o = "center", alignOffset: s = 0, arrowPadding: c = 0, avoidCollisions: l = !0, collisionBoundary: u = [], collisionPadding: d = 0, sticky: f = "partial", hideWhenDetached: p = !1, updatePositionStrategy: m = "optimized", onPlaced: h, ..._ } = t, v = tl(al, r), [y, b] = e.useState(null), x = z(n, b), [S, C] = e.useState(null), w = mo(S), T = w?.width ?? 0, E = w?.height ?? 0, D = i + (o === "center" ? "" : "-" + o), O = typeof d == "number" ? d : {
3840
+ let { __scopePopper: r, side: i = "bottom", sideOffset: a = 0, align: o = "center", alignOffset: s = 0, arrowPadding: c = 0, avoidCollisions: l = !0, collisionBoundary: u = [], collisionPadding: d = 0, sticky: f = "partial", hideWhenDetached: p = !1, updatePositionStrategy: m = "optimized", onPlaced: h, ..._ } = t, v = tl(al, r), [y, b] = e.useState(null), x = z(n, b), [S, C] = e.useState(null), w = mo(S), T = w?.width ?? 0, E = w?.height ?? 0, ee = i + (o === "center" ? "" : "-" + o), D = typeof d == "number" ? d : {
3841
3841
  top: 0,
3842
3842
  right: 0,
3843
3843
  bottom: 0,
3844
3844
  left: 0,
3845
3845
  ...d
3846
- }, ee = Array.isArray(u) ? u : [u], k = ee.length > 0, A = {
3847
- padding: O,
3848
- boundary: ee.filter(fl),
3846
+ }, O = Array.isArray(u) ? u : [u], k = O.length > 0, A = {
3847
+ padding: D,
3848
+ boundary: O.filter(fl),
3849
3849
  altBoundary: k
3850
3850
  }, { refs: j, floatingStyles: M, placement: N, isPositioned: P, middlewareData: F } = Rc({
3851
3851
  strategy: "fixed",
3852
- placement: D,
3852
+ placement: ee,
3853
3853
  whileElementsMounted: /* @__PURE__ */ Xc((...e) => wc(...e, { animationFrame: m === "always" }), "whileElementsMounted"),
3854
3854
  elements: { reference: v.anchor },
3855
3855
  middleware: [
@@ -4282,20 +4282,20 @@ var tu = "Menu", [nu, ru, iu] = /* @__PURE__ */ Je(tu), [au, ou] = /* @__PURE__
4282
4282
  onDismiss: () => n.onOpenChange(!1)
4283
4283
  });
4284
4284
  }, "MenuRootContentNonModal")), Tu = /* @__PURE__ */ ye("MenuContent.ScrollLock"), Eu = /* @__PURE__ */ e.forwardRef(/* @__PURE__ */ H(function(t, n) {
4285
- let { __scopeMenu: r, loop: i = !1, trapFocus: a, onOpenAutoFocus: o, onCloseAutoFocus: s, disableOutsidePointerEvents: c, onEntryFocus: l, onEscapeKeyDown: u, onPointerDownOutside: d, onFocusOutside: f, onInteractOutside: p, onDismiss: m, disableOutsideScroll: h, ..._ } = t, v = uu(yu, r), y = fu(yu, r), b = su(r), x = cu(r), S = ru(r), [C, w] = e.useState(null), T = e.useRef(null), E = z(n, T, v.onContentChange), D = e.useRef(0), O = e.useRef(""), ee = e.useRef(0), k = e.useRef(null), A = e.useRef("right"), j = e.useRef(0), M = h ? Bi : e.Fragment, N = h ? {
4285
+ let { __scopeMenu: r, loop: i = !1, trapFocus: a, onOpenAutoFocus: o, onCloseAutoFocus: s, disableOutsidePointerEvents: c, onEntryFocus: l, onEscapeKeyDown: u, onPointerDownOutside: d, onFocusOutside: f, onInteractOutside: p, onDismiss: m, disableOutsideScroll: h, ..._ } = t, v = uu(yu, r), y = fu(yu, r), b = su(r), x = cu(r), S = ru(r), [C, w] = e.useState(null), T = e.useRef(null), E = z(n, T, v.onContentChange), ee = e.useRef(0), D = e.useRef(""), O = e.useRef(0), k = e.useRef(null), A = e.useRef("right"), j = e.useRef(0), M = h ? Bi : e.Fragment, N = h ? {
4286
4286
  as: Tu,
4287
4287
  allowPinchZoom: !0
4288
4288
  } : void 0, P = /* @__PURE__ */ H((e) => {
4289
- let t = O.current + e, n = S().filter((e) => !e.disabled), r = document.activeElement, i = n.find((e) => e.ref.current === r)?.textValue, a = Ju(n.map((e) => e.textValue), t, i), o = n.find((e) => e.textValue === a)?.ref.current;
4289
+ let t = D.current + e, n = S().filter((e) => !e.disabled), r = document.activeElement, i = n.find((e) => e.ref.current === r)?.textValue, a = Ju(n.map((e) => e.textValue), t, i), o = n.find((e) => e.textValue === a)?.ref.current;
4290
4290
  (/* @__PURE__ */ H((function e(t) {
4291
- O.current = t, window.clearTimeout(D.current), t !== "" && (D.current = window.setTimeout(() => e(""), 1e3));
4291
+ D.current = t, window.clearTimeout(ee.current), t !== "" && (ee.current = window.setTimeout(() => e(""), 1e3));
4292
4292
  }), "updateSearch"))(t), o && setTimeout(() => o.focus());
4293
4293
  }, "handleTypeaheadSearch");
4294
- e.useEffect(() => () => window.clearTimeout(D.current), []), jr();
4294
+ e.useEffect(() => () => window.clearTimeout(ee.current), []), jr();
4295
4295
  let F = e.useCallback((e) => A.current === k.current?.side && Xu(e, k.current?.area), []);
4296
4296
  return /* @__PURE__ */ g(bu, {
4297
4297
  scope: r,
4298
- searchRef: O,
4298
+ searchRef: D,
4299
4299
  onItemEnter: e.useCallback((e) => {
4300
4300
  F(e) && e.preventDefault();
4301
4301
  }, [F]),
@@ -4305,7 +4305,7 @@ var tu = "Menu", [nu, ru, iu] = /* @__PURE__ */ Je(tu), [au, ou] = /* @__PURE__
4305
4305
  onTriggerLeave: e.useCallback((e) => {
4306
4306
  F(e) && e.preventDefault();
4307
4307
  }, [F]),
4308
- pointerGraceTimerRef: ee,
4308
+ pointerGraceTimerRef: O,
4309
4309
  onPointerGraceIntentChange: e.useCallback((e) => {
4310
4310
  k.current = e;
4311
4311
  }, []),
@@ -4361,7 +4361,7 @@ var tu = "Menu", [nu, ru, iu] = /* @__PURE__ */ Je(tu), [au, ou] = /* @__PURE__
4361
4361
  $l.includes(e.key) && a.reverse(), Ku(a);
4362
4362
  }),
4363
4363
  onBlur: V(t.onBlur, (e) => {
4364
- e.currentTarget.contains(e.target) || (window.clearTimeout(D.current), O.current = "");
4364
+ e.currentTarget.contains(e.target) || (window.clearTimeout(ee.current), D.current = "");
4365
4365
  }),
4366
4366
  onPointerMove: V(t.onPointerMove, Zu((e) => {
4367
4367
  let t = e.target, n = j.current !== e.clientX;
@@ -5139,27 +5139,27 @@ var xp = /* @__PURE__ */ e.forwardRef(/* @__PURE__ */ Jf(function(t, n) {
5139
5139
  "ArrowDown"
5140
5140
  ], Dp = [" ", "Enter"], Op = "Select", [kp, Ap, jp] = /* @__PURE__ */ Je(Op), [Mp, Np] = /* @__PURE__ */ We(Op, [jp, $c]), Pp = $c(), [Fp, Ip] = Mp(Op), [Lp, Rp] = Mp(Op);
5141
5141
  function zp(t) {
5142
- let { __scopeSelect: n, children: r, open: i, defaultOpen: a, onOpenChange: o, value: s, defaultValue: c, onValueChange: l, dir: u, name: d, autoComplete: f, disabled: p, required: m, form: h, internal_do_not_use_render: _ } = t, v = Pp(n), [y, b] = e.useState(null), [x, S] = e.useState(null), [C, w] = e.useState(!1), T = sn(u), [E, D] = xt({
5142
+ let { __scopeSelect: n, children: r, open: i, defaultOpen: a, onOpenChange: o, value: s, defaultValue: c, onValueChange: l, dir: u, name: d, autoComplete: f, disabled: p, required: m, form: h, internal_do_not_use_render: _ } = t, v = Pp(n), [y, b] = e.useState(null), [x, S] = e.useState(null), [C, w] = e.useState(!1), T = sn(u), [E, ee] = xt({
5143
5143
  prop: i,
5144
5144
  defaultProp: a ?? !1,
5145
5145
  onChange: o,
5146
5146
  caller: Op
5147
- }), [O, ee] = xt({
5147
+ }), [D, O] = xt({
5148
5148
  prop: s,
5149
5149
  defaultProp: c,
5150
5150
  onChange: l,
5151
5151
  caller: Op
5152
- }), k = e.useRef(null), A = e.useRef(O);
5152
+ }), k = e.useRef(null), A = e.useRef(D);
5153
5153
  e.useEffect(() => {
5154
5154
  let e = h ? y?.ownerDocument.getElementById(h) : y?.form;
5155
5155
  if (e instanceof HTMLFormElement) {
5156
- let t = /* @__PURE__ */ U(() => ee(A.current), "reset");
5156
+ let t = /* @__PURE__ */ U(() => O(A.current), "reset");
5157
5157
  return e.addEventListener("reset", t), () => e.removeEventListener("reset", t);
5158
5158
  }
5159
5159
  }, [
5160
5160
  h,
5161
5161
  y,
5162
- ee
5162
+ O
5163
5163
  ]);
5164
5164
  let j = !y || !!h || !!y.closest("form"), [M, N] = e.useState(/* @__PURE__ */ new Set()), P = zt(), F = Array.from(M).map((e) => e.props.value).join(";"), te = e.useCallback((e) => {
5165
5165
  N((t) => new Set(t).add(e));
@@ -5177,10 +5177,10 @@ function zp(t) {
5177
5177
  valueNodeHasChildren: C,
5178
5178
  onValueNodeHasChildrenChange: w,
5179
5179
  contentId: P,
5180
- value: O,
5181
- onValueChange: ee,
5180
+ value: D,
5181
+ onValueChange: O,
5182
5182
  open: E,
5183
- onOpenChange: D,
5183
+ onOpenChange: ee,
5184
5184
  dir: T,
5185
5185
  triggerPointerDownPosRef: k,
5186
5186
  disabled: p,
@@ -5315,7 +5315,7 @@ var Bp = /* @__PURE__ */ U((e) => {
5315
5315
  })
5316
5316
  }), i) : null;
5317
5317
  }, "SelectContentFragment")), Qp = 10, [$p, em] = Mp(Yp), tm = /* @__PURE__ */ ye("SelectContent.RemoveScroll"), nm = /* @__PURE__ */ e.forwardRef(/* @__PURE__ */ U(function(t, n) {
5318
- let { __scopeSelect: r } = t, { position: i = "item-aligned", onCloseAutoFocus: a, onEscapeKeyDown: o, onPointerDownOutside: s, side: c, sideOffset: l, align: u, alignOffset: d, arrowPadding: f, collisionBoundary: p, collisionPadding: m, sticky: h, hideWhenDetached: _, avoidCollisions: v, ...y } = t, b = Ip(Yp, r), [x, S] = e.useState(null), [C, w] = e.useState(null), T = z(n, S), [E, D] = e.useState(null), [O, ee] = e.useState(null), k = Ap(r), [A, j] = e.useState(!1), M = e.useRef(!1);
5318
+ let { __scopeSelect: r } = t, { position: i = "item-aligned", onCloseAutoFocus: a, onEscapeKeyDown: o, onPointerDownOutside: s, side: c, sideOffset: l, align: u, alignOffset: d, arrowPadding: f, collisionBoundary: p, collisionPadding: m, sticky: h, hideWhenDetached: _, avoidCollisions: v, ...y } = t, b = Ip(Yp, r), [x, S] = e.useState(null), [C, w] = e.useState(null), T = z(n, S), [E, ee] = e.useState(null), [D, O] = e.useState(null), k = Ap(r), [A, j] = e.useState(!1), M = e.useRef(!1);
5319
5319
  e.useEffect(() => {
5320
5320
  if (x) return Yi(x);
5321
5321
  }, [x]), jr();
@@ -5366,10 +5366,10 @@ var Bp = /* @__PURE__ */ U((e) => {
5366
5366
  n && setTimeout(() => n.ref.current?.focus());
5367
5367
  }), ie = e.useCallback((e, t, n) => {
5368
5368
  let r = !M.current && !n;
5369
- (b.value !== void 0 && b.value === t || r) && (D(e), r && (M.current = !0));
5369
+ (b.value !== void 0 && b.value === t || r) && (ee(e), r && (M.current = !0));
5370
5370
  }, [b.value]), I = e.useCallback(() => x?.focus(), [x]), L = e.useCallback((e, t, n) => {
5371
5371
  let r = !M.current && !n;
5372
- (b.value !== void 0 && b.value === t || r) && ee(e);
5372
+ (b.value !== void 0 && b.value === t || r) && O(e);
5373
5373
  }, [b.value]), ae = i === "popper" ? im : rm, oe = ae === im ? {
5374
5374
  side: c,
5375
5375
  sideOffset: l,
@@ -5392,7 +5392,7 @@ var Bp = /* @__PURE__ */ U((e) => {
5392
5392
  onItemLeave: I,
5393
5393
  itemTextRefCallback: L,
5394
5394
  focusSelectedItem: P,
5395
- selectedItemText: O,
5395
+ selectedItemText: D,
5396
5396
  position: i,
5397
5397
  isPositioned: A,
5398
5398
  searchRef: ne,
@@ -5463,16 +5463,16 @@ var Bp = /* @__PURE__ */ U((e) => {
5463
5463
  let i = t.right - r.right, a = window.innerWidth - n.right - i, o = window.innerWidth - e.right - a, s = e.width + o, l = Math.max(s, t.width), u = window.innerWidth - Qp, d = _f(a, [Qp, Math.max(Qp, u - l)]);
5464
5464
  c.style.minWidth = s + "px", c.style.right = d + "px";
5465
5465
  }
5466
- let a = p(), s = window.innerHeight - Qp * 2, l = _.scrollHeight, d = window.getComputedStyle(u), f = parseInt(d.borderTopWidth, 10), h = parseInt(d.paddingTop, 10), g = parseInt(d.borderBottomWidth, 10), b = parseInt(d.paddingBottom, 10), x = f + h + l + b + g, S = Math.min(v.offsetHeight * 5, x), C = window.getComputedStyle(_), w = parseInt(C.paddingTop, 10), T = parseInt(C.paddingBottom, 10), E = e.top + e.height / 2 - Qp, D = s - E, O = v.offsetHeight / 2, ee = v.offsetTop + O, k = f + h + ee, A = x - k;
5466
+ let a = p(), s = window.innerHeight - Qp * 2, l = _.scrollHeight, d = window.getComputedStyle(u), f = parseInt(d.borderTopWidth, 10), h = parseInt(d.paddingTop, 10), g = parseInt(d.borderBottomWidth, 10), b = parseInt(d.paddingBottom, 10), x = f + h + l + b + g, S = Math.min(v.offsetHeight * 5, x), C = window.getComputedStyle(_), w = parseInt(C.paddingTop, 10), T = parseInt(C.paddingBottom, 10), E = e.top + e.height / 2 - Qp, ee = s - E, D = v.offsetHeight / 2, O = v.offsetTop + D, k = f + h + O, A = x - k;
5467
5467
  if (k <= E) {
5468
5468
  let e = a.length > 0 && v === a[a.length - 1].ref.current;
5469
5469
  c.style.bottom = "0px";
5470
- let t = u.clientHeight - _.offsetTop - _.offsetHeight, n = k + Math.max(D, O + (e ? T : 0) + t + g);
5470
+ let t = u.clientHeight - _.offsetTop - _.offsetHeight, n = k + Math.max(ee, D + (e ? T : 0) + t + g);
5471
5471
  c.style.height = n + "px";
5472
5472
  } else {
5473
5473
  let e = a.length > 0 && v === a[0].ref.current;
5474
5474
  c.style.top = "0px";
5475
- let t = Math.max(E, f + _.offsetTop + (e ? w : 0) + O) + A;
5475
+ let t = Math.max(E, f + _.offsetTop + (e ? w : 0) + D) + A;
5476
5476
  c.style.height = t + "px", _.scrollTop = k - E + _.offsetTop;
5477
5477
  }
5478
5478
  c.style.margin = `${Qp}px 0`, c.style.minHeight = S + "px", c.style.maxHeight = s + "px", i?.(), requestAnimationFrame(() => m.current = !0);
@@ -6109,12 +6109,12 @@ var xh = fh, Sh = mh, Ch = gh, wh = vh, Th = Object.defineProperty, Eh = (e, t)
6109
6109
  e.useEffect(() => () => {
6110
6110
  _.current &&= (window.clearTimeout(_.current), 0);
6111
6111
  }, []);
6112
- let D = p ?? h;
6112
+ let ee = p ?? h;
6113
6113
  return /* @__PURE__ */ g(hl, {
6114
6114
  ...u,
6115
6115
  children: /* @__PURE__ */ g(Lh, {
6116
6116
  scope: n,
6117
- contentId: D,
6117
+ contentId: ee,
6118
6118
  setContentId: m,
6119
6119
  open: x,
6120
6120
  stateAttribute: C,
@@ -6701,7 +6701,7 @@ var fg = (e, t) => {
6701
6701
  "subgrid",
6702
6702
  K,
6703
6703
  G
6704
- ], D = () => [
6704
+ ], ee = () => [
6705
6705
  "auto",
6706
6706
  { span: [
6707
6707
  "full",
@@ -6712,12 +6712,12 @@ var fg = (e, t) => {
6712
6712
  t_,
6713
6713
  K,
6714
6714
  G
6715
- ], O = () => [
6715
+ ], D = () => [
6716
6716
  t_,
6717
6717
  "auto",
6718
6718
  K,
6719
6719
  G
6720
- ], ee = () => [
6720
+ ], O = () => [
6721
6721
  "auto",
6722
6722
  "min",
6723
6723
  "max",
@@ -7102,13 +7102,13 @@ var fg = (e, t) => {
7102
7102
  G
7103
7103
  ] }],
7104
7104
  "grid-cols": [{ "grid-cols": E() }],
7105
- "col-start-end": [{ col: D() }],
7106
- "col-start": [{ "col-start": O() }],
7107
- "col-end": [{ "col-end": O() }],
7105
+ "col-start-end": [{ col: ee() }],
7106
+ "col-start": [{ "col-start": D() }],
7107
+ "col-end": [{ "col-end": D() }],
7108
7108
  "grid-rows": [{ "grid-rows": E() }],
7109
- "row-start-end": [{ row: D() }],
7110
- "row-start": [{ "row-start": O() }],
7111
- "row-end": [{ "row-end": O() }],
7109
+ "row-start-end": [{ row: ee() }],
7110
+ "row-start": [{ "row-start": D() }],
7111
+ "row-end": [{ "row-end": D() }],
7112
7112
  "grid-flow": [{ "grid-flow": [
7113
7113
  "row",
7114
7114
  "col",
@@ -7116,8 +7116,8 @@ var fg = (e, t) => {
7116
7116
  "row-dense",
7117
7117
  "col-dense"
7118
7118
  ] }],
7119
- "auto-cols": [{ "auto-cols": ee() }],
7120
- "auto-rows": [{ "auto-rows": ee() }],
7119
+ "auto-cols": [{ "auto-cols": O() }],
7120
+ "auto-rows": [{ "auto-rows": O() }],
7121
7121
  gap: [{ gap: w() }],
7122
7122
  "gap-x": [{ "gap-x": w() }],
7123
7123
  "gap-y": [{ "gap-y": w() }],
@@ -8462,13 +8462,13 @@ function jv({ items: t, value: n, onValueChange: r, multiple: i = !1, disabled:
8462
8462
  let h = {
8463
8463
  ...Dv,
8464
8464
  ...d
8465
- }, v = e.useRef(null), y = e.useRef(null), b = e.useRef(null), [x, S] = e.useState(!1), [C, w] = e.useState(""), [T, E] = e.useState(0), D = e.useRef(u);
8465
+ }, v = e.useRef(null), y = e.useRef(null), b = e.useRef(null), [x, S] = e.useState(!1), [C, w] = e.useState(""), [T, E] = e.useState(0), ee = e.useRef(u);
8466
8466
  e.useEffect(() => {
8467
- D.current = u;
8467
+ ee.current = u;
8468
8468
  });
8469
- let O = e.useCallback((e) => {
8470
- w(e), D.current?.(e);
8471
- }, []), ee = e.useRef(null), k = ov(), [A, j] = e.useState(null);
8469
+ let D = e.useCallback((e) => {
8470
+ w(e), ee.current?.(e);
8471
+ }, []), O = e.useRef(null), k = ov(), [A, j] = e.useState(null);
8472
8472
  e.useEffect(() => {
8473
8473
  if (!x) {
8474
8474
  j(null);
@@ -8514,7 +8514,7 @@ function jv({ items: t, value: n, onValueChange: r, multiple: i = !1, disabled:
8514
8514
  let e = (e) => {
8515
8515
  if (!v.current) return;
8516
8516
  let t = e.target;
8517
- t instanceof Node && !v.current.contains(t) && !ee.current?.contains(t) && (S(!1), O(""));
8517
+ t instanceof Node && !v.current.contains(t) && !O.current?.contains(t) && (S(!1), D(""));
8518
8518
  };
8519
8519
  return document.addEventListener("mousedown", e), () => {
8520
8520
  document.removeEventListener("mousedown", e);
@@ -8523,10 +8523,10 @@ function jv({ items: t, value: n, onValueChange: r, multiple: i = !1, disabled:
8523
8523
  let te = (e) => {
8524
8524
  if (!a) {
8525
8525
  if (i) {
8526
- M.includes(e) ? r(M.filter((t) => t !== e)) : r([...M, e]), O(""), y.current?.focus();
8526
+ M.includes(e) ? r(M.filter((t) => t !== e)) : r([...M, e]), D(""), y.current?.focus();
8527
8527
  return;
8528
8528
  }
8529
- r(e), O(""), S(!1);
8529
+ r(e), D(""), S(!1);
8530
8530
  }
8531
8531
  }, ne = (e) => {
8532
8532
  if (!a) {
@@ -8555,7 +8555,7 @@ function jv({ items: t, value: n, onValueChange: r, multiple: i = !1, disabled:
8555
8555
  T >= 0 && t && te(kv(t));
8556
8556
  return;
8557
8557
  }
8558
- e.key === "Escape" && (S(!1), O(""));
8558
+ e.key === "Escape" && (S(!1), D(""));
8559
8559
  }
8560
8560
  };
8561
8561
  return /* @__PURE__ */ _("div", {
@@ -8565,7 +8565,7 @@ function jv({ items: t, value: n, onValueChange: r, multiple: i = !1, disabled:
8565
8565
  children: [/* @__PURE__ */ _("div", {
8566
8566
  className: q("ttw:flex ttw:min-h-9 ttw:w-full ttw:flex-wrap ttw:items-center ttw:gap-1.5 ttw:rounded-md ttw:border ttw:border-input ttw:bg-transparent ttw:px-2.5 ttw:py-1.5 ttw:text-sm ttw:shadow-xs", a ? "ttw:cursor-not-allowed ttw:opacity-60" : "ttw:focus-within:border-ring ttw:focus-within:ring-[3px] ttw:focus-within:ring-ring/50"),
8567
8567
  onClick: () => {
8568
- a || (x || O(""), S(!0), y.current?.focus());
8568
+ a || (x || D(""), S(!0), y.current?.focus());
8569
8569
  },
8570
8570
  children: [
8571
8571
  i ? M.map((e) => /* @__PURE__ */ _("span", {
@@ -8595,15 +8595,15 @@ function jv({ items: t, value: n, onValueChange: r, multiple: i = !1, disabled:
8595
8595
  placeholder: h.placeholder,
8596
8596
  className: "ttw:min-w-16 ttw:flex-1 ttw:bg-transparent ttw:outline-none",
8597
8597
  onFocus: () => {
8598
- a || (x || O(""), S(!0));
8598
+ a || (x || D(""), S(!0));
8599
8599
  },
8600
8600
  onChange: (e) => {
8601
8601
  if (!x) {
8602
8602
  let t = e.nativeEvent.data ?? "";
8603
- O(t), S(!0);
8603
+ D(t), S(!0);
8604
8604
  return;
8605
8605
  }
8606
- O(e.target.value), S(!0);
8606
+ D(e.target.value), S(!0);
8607
8607
  },
8608
8608
  onKeyDown: re
8609
8609
  }),
@@ -8612,13 +8612,13 @@ function jv({ items: t, value: n, onValueChange: r, multiple: i = !1, disabled:
8612
8612
  "aria-label": h.clearAriaLabel,
8613
8613
  className: "ttw:inline-flex ttw:size-4 ttw:shrink-0 ttw:cursor-pointer ttw:items-center ttw:justify-center ttw:rounded-sm ttw:opacity-60 ttw:hover:opacity-100",
8614
8614
  onClick: (e) => {
8615
- e.stopPropagation(), ne(M[0]), O("");
8615
+ e.stopPropagation(), ne(M[0]), D("");
8616
8616
  },
8617
8617
  children: /* @__PURE__ */ g(fe, { className: "ttw:size-3" })
8618
8618
  }) : null
8619
8619
  ]
8620
8620
  }), x && A ? m(/* @__PURE__ */ g("div", {
8621
- ref: ee,
8621
+ ref: O,
8622
8622
  style: {
8623
8623
  position: "fixed",
8624
8624
  top: A.top + 6,
@@ -8879,11 +8879,11 @@ function ny({ className: e, ...t }) {
8879
8879
  });
8880
8880
  }
8881
8881
  var ry = 52, iy = 40, ay = "60vh";
8882
- function oy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a, onPageSizeChange: o, hasNextPage: s, hasPrevPage: c, onNextPage: l, onPrevPage: u, labels: d, pageInfo: f, filterComponent: p, showColumnVisibility: m = !1, showSelectedRowsInfo: S = !1, onRowClick: C, children: w, className: T, pageSizeOptions: E, isLoading: D = !1 }) {
8882
+ function oy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a, onPageSizeChange: o, hasNextPage: s, hasPrevPage: c, onNextPage: l, onPrevPage: u, labels: d, pageInfo: f, filterComponent: p, showColumnVisibility: m = !1, showSelectedRowsInfo: S = !1, onRowClick: C, rowClassName: w, children: T, className: E, pageSizeOptions: ee, isLoading: D = !1 }) {
8883
8883
  let O = {
8884
8884
  ...Nv,
8885
8885
  ...d
8886
- }, [ee, k] = e.useState([]), [A, j] = e.useState({}), [M, N] = e.useState({}), P = x({
8886
+ }, [k, A] = e.useState([]), [j, M] = e.useState({}), [N, P] = e.useState({}), F = x({
8887
8887
  data: n,
8888
8888
  columns: t,
8889
8889
  getCoreRowModel: y(),
@@ -8893,23 +8893,23 @@ function oy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a,
8893
8893
  enableMultiSort: !1,
8894
8894
  defaultColumn: { enableSorting: !1 },
8895
8895
  onSortingChange: i,
8896
- onColumnFiltersChange: k,
8897
- onColumnVisibilityChange: j,
8898
- onRowSelectionChange: N,
8896
+ onColumnFiltersChange: A,
8897
+ onColumnVisibilityChange: M,
8898
+ onRowSelectionChange: P,
8899
8899
  state: {
8900
8900
  sorting: r,
8901
8901
  pagination: {
8902
8902
  pageIndex: 0,
8903
8903
  pageSize: a
8904
8904
  },
8905
- columnFilters: ee,
8906
- columnVisibility: A,
8907
- rowSelection: M
8905
+ columnFilters: k,
8906
+ columnVisibility: j,
8907
+ rowSelection: N
8908
8908
  }
8909
8909
  });
8910
8910
  return /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ _("div", {
8911
8911
  "data-slot": "data-table",
8912
- className: q("ttw:flex ttw:flex-col ttw:overflow-hidden ttw:gap-4 ttw:border ttw:border-border ttw:rounded-xl ttw:bg-card", p && "ttw:pt-4", T),
8912
+ className: q("ttw:flex ttw:flex-col ttw:overflow-hidden ttw:gap-4 ttw:border ttw:border-border ttw:rounded-xl ttw:bg-card", p && "ttw:pt-4", E),
8913
8913
  children: [
8914
8914
  p,
8915
8915
  m && /* @__PURE__ */ g("div", {
@@ -8927,7 +8927,7 @@ function oy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a,
8927
8927
  })
8928
8928
  }), /* @__PURE__ */ g(Iv, {
8929
8929
  align: "end",
8930
- children: P.getAllColumns().filter((e) => e.getCanHide()).map((e) => /* @__PURE__ */ g(zv, {
8930
+ children: F.getAllColumns().filter((e) => e.getCanHide()).map((e) => /* @__PURE__ */ g(zv, {
8931
8931
  className: "ttw:capitalize",
8932
8932
  checked: e.getIsVisible(),
8933
8933
  onCheckedChange: (t) => e.toggleVisibility(!!t),
@@ -8939,7 +8939,7 @@ function oy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a,
8939
8939
  className: "ttw:border-none",
8940
8940
  containerClassName: "ttw:overflow-y-auto",
8941
8941
  containerStyle: { height: `min(${iy + a * ry}px, ${ay})` },
8942
- children: [/* @__PURE__ */ g(Qv, { children: P.getHeaderGroups().map((e) => /* @__PURE__ */ g(ey, { children: e.headers.map((e) => /* @__PURE__ */ g(ty, {
8942
+ children: [/* @__PURE__ */ g(Qv, { children: F.getHeaderGroups().map((e) => /* @__PURE__ */ g(ey, { children: e.headers.map((e) => /* @__PURE__ */ g(ty, {
8943
8943
  "aria-sort": e.column.getCanSort() ? cy(e.column.getIsSorted()) : void 0,
8944
8944
  className: "ttw:sticky ttw:top-0 ttw:z-10 ttw:bg-card ttw:p-3 ttw:text-xs ttw:text-zinc-950 ttw:border-b ttw:border-zinc-100",
8945
8945
  style: {
@@ -8953,9 +8953,9 @@ function oy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a,
8953
8953
  }, e.id)) }, e.id)) }), /* @__PURE__ */ g($v, { children: D ? Array.from({ length: a }).map((e, n) => /* @__PURE__ */ g(ey, { children: t.map((e, t) => /* @__PURE__ */ g(ny, {
8954
8954
  className: "ttw:px-3 ttw:h-13 ttw:border-zinc-100 ttw:border-b",
8955
8955
  children: /* @__PURE__ */ g(Sv, { className: "ttw:h-4 ttw:w-full" })
8956
- }, t)) }, `skeleton-${n}`)) : P.getRowModel().rows?.length ? P.getRowModel().rows.map((e) => /* @__PURE__ */ g(ey, {
8956
+ }, t)) }, `skeleton-${n}`)) : F.getRowModel().rows?.length ? F.getRowModel().rows.map((e) => /* @__PURE__ */ g(ey, {
8957
8957
  "data-state": e.getIsSelected() ? "selected" : void 0,
8958
- className: q(C && "ttw:cursor-pointer"),
8958
+ className: q(C && "ttw:cursor-pointer", w?.(e.original)),
8959
8959
  onClick: () => C?.(e.original),
8960
8960
  children: e.getVisibleCells().map((e) => /* @__PURE__ */ g(ny, {
8961
8961
  className: "ttw:px-3 ttw:h-13 ttw:font-medium ttw:border-zinc-100 ttw:border-b",
@@ -8973,7 +8973,7 @@ function oy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a,
8973
8973
  className: "ttw:p-0",
8974
8974
  children: /* @__PURE__ */ g("div", {
8975
8975
  className: "ttw:flex ttw:min-h-64 ttw:items-center ttw:justify-center ttw:text-center",
8976
- children: w || O.noResults
8976
+ children: T || O.noResults
8977
8977
  })
8978
8978
  }) }) })]
8979
8979
  })
@@ -8984,8 +8984,8 @@ function oy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a,
8984
8984
  S && /* @__PURE__ */ g("div", {
8985
8985
  className: "ttw:text-sm ttw:leading-5 ttw:font-medium ttw:text-zinc-950",
8986
8986
  children: Mv(O.selectedRows, {
8987
- selected: P.getFilteredSelectedRowModel().rows.length,
8988
- total: P.getFilteredRowModel().rows.length
8987
+ selected: F.getFilteredSelectedRowModel().rows.length,
8988
+ total: F.getFilteredRowModel().rows.length
8989
8989
  })
8990
8990
  }),
8991
8991
  /* @__PURE__ */ _("span", {
@@ -8998,7 +8998,7 @@ function oy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a,
8998
8998
  children: [/* @__PURE__ */ g(Gv, {
8999
8999
  size: "sm",
9000
9000
  children: /* @__PURE__ */ g(Wv, {})
9001
- }), /* @__PURE__ */ g(Kv, { children: E.map((e) => /* @__PURE__ */ g(Jv, {
9001
+ }), /* @__PURE__ */ g(Kv, { children: ee.map((e) => /* @__PURE__ */ g(Jv, {
9002
9002
  value: String(e),
9003
9003
  children: e
9004
9004
  }, e)) })]
@@ -10151,7 +10151,7 @@ var Cb = Sb(), wb = (e) => {
10151
10151
  "subgrid",
10152
10152
  X,
10153
10153
  Y
10154
- ], D = () => [
10154
+ ], ee = () => [
10155
10155
  "auto",
10156
10156
  { span: [
10157
10157
  "full",
@@ -10162,12 +10162,12 @@ var Cb = Sb(), wb = (e) => {
10162
10162
  Yx,
10163
10163
  X,
10164
10164
  Y
10165
- ], O = () => [
10165
+ ], D = () => [
10166
10166
  Yx,
10167
10167
  "auto",
10168
10168
  X,
10169
10169
  Y
10170
- ], ee = () => [
10170
+ ], O = () => [
10171
10171
  "auto",
10172
10172
  "min",
10173
10173
  "max",
@@ -10551,13 +10551,13 @@ var Cb = Sb(), wb = (e) => {
10551
10551
  Y
10552
10552
  ] }],
10553
10553
  "grid-cols": [{ "grid-cols": E() }],
10554
- "col-start-end": [{ col: D() }],
10555
- "col-start": [{ "col-start": O() }],
10556
- "col-end": [{ "col-end": O() }],
10554
+ "col-start-end": [{ col: ee() }],
10555
+ "col-start": [{ "col-start": D() }],
10556
+ "col-end": [{ "col-end": D() }],
10557
10557
  "grid-rows": [{ "grid-rows": E() }],
10558
- "row-start-end": [{ row: D() }],
10559
- "row-start": [{ "row-start": O() }],
10560
- "row-end": [{ "row-end": O() }],
10558
+ "row-start-end": [{ row: ee() }],
10559
+ "row-start": [{ "row-start": D() }],
10560
+ "row-end": [{ "row-end": D() }],
10561
10561
  "grid-flow": [{ "grid-flow": [
10562
10562
  "row",
10563
10563
  "col",
@@ -10565,8 +10565,8 @@ var Cb = Sb(), wb = (e) => {
10565
10565
  "row-dense",
10566
10566
  "col-dense"
10567
10567
  ] }],
10568
- "auto-cols": [{ "auto-cols": ee() }],
10569
- "auto-rows": [{ "auto-rows": ee() }],
10568
+ "auto-cols": [{ "auto-cols": O() }],
10569
+ "auto-rows": [{ "auto-rows": O() }],
10570
10570
  gap: [{ gap: w() }],
10571
10571
  "gap-x": [{ "gap-x": w() }],
10572
10572
  "gap-y": [{ "gap-y": w() }],
@@ -14204,7 +14204,7 @@ function pD(e) {
14204
14204
  ...n,
14205
14205
  today: c.today()
14206
14206
  });
14207
- let { captionLayout: p, mode: m, navLayout: h, numberOfMonths: g = 1, onDayBlur: _, onDayClick: v, onDayFocus: y, onDayKeyDown: b, onDayMouseEnter: x, onDayMouseLeave: S, onNextClick: C, onPrevClick: w, showWeekNumber: T, styles: E } = n, { formatCaption: D, formatDay: O, formatMonthDropdown: ee, formatWeekNumber: k, formatWeekNumberHeader: A, formatWeekdayName: j, formatYearDropdown: M } = o, N = JE(n, c), { days: P, months: F, navStart: te, navEnd: ne, previousMonth: re, nextMonth: ie, goToMonth: I } = N, L = KT(P, n, te, ne, c), { isSelected: ae, select: oe, selected: R } = cD(n, c) ?? {}, { blur: se, focused: ce, isFocusTarget: le, moveFocus: ue, setFocused: de } = eD(n, N, L, ae ?? (() => !1), c), { labelDayButton: fe, labelGridcell: pe, labelGrid: me, labelMonthDropdown: he, labelNav: ge, labelPrevious: z, labelNext: _e, labelWeekday: ve, labelWeekNumber: ye, labelWeekNumberHeader: be, labelYearDropdown: xe } = s, Se = l(() => DE(c, n.ISOWeek, n.broadcastCalendar, n.today), [
14207
+ let { captionLayout: p, mode: m, navLayout: h, numberOfMonths: g = 1, onDayBlur: _, onDayClick: v, onDayFocus: y, onDayKeyDown: b, onDayMouseEnter: x, onDayMouseLeave: S, onNextClick: C, onPrevClick: w, showWeekNumber: T, styles: E } = n, { formatCaption: ee, formatDay: D, formatMonthDropdown: O, formatWeekNumber: k, formatWeekNumberHeader: A, formatWeekdayName: j, formatYearDropdown: M } = o, N = JE(n, c), { days: P, months: F, navStart: te, navEnd: ne, previousMonth: re, nextMonth: ie, goToMonth: I } = N, L = KT(P, n, te, ne, c), { isSelected: ae, select: oe, selected: R } = cD(n, c) ?? {}, { blur: se, focused: ce, isFocusTarget: le, moveFocus: ue, setFocused: de } = eD(n, N, L, ae ?? (() => !1), c), { labelDayButton: fe, labelGridcell: pe, labelGrid: me, labelMonthDropdown: he, labelNav: ge, labelPrevious: z, labelNext: _e, labelWeekday: ve, labelWeekNumber: ye, labelWeekNumberHeader: be, labelYearDropdown: xe } = s, Se = l(() => DE(c, n.ISOWeek, n.broadcastCalendar, n.today), [
14208
14208
  c,
14209
14209
  n.ISOWeek,
14210
14210
  n.broadcastCalendar,
@@ -14361,7 +14361,7 @@ function pD(e) {
14361
14361
  options: TE(e.date, te, ne, o, c),
14362
14362
  style: E?.[$.Dropdown],
14363
14363
  value: c.getMonth(e.date)
14364
- }) : t.createElement("span", { key: "month" }, ee(e.date, c)), a = p === "dropdown" || p === "dropdown-years" ? t.createElement(i.YearsDropdown, {
14364
+ }) : t.createElement("span", { key: "month" }, O(e.date, c)), a = p === "dropdown" || p === "dropdown-years" ? t.createElement(i.YearsDropdown, {
14365
14365
  key: "year",
14366
14366
  className: f[$.YearsDropdown],
14367
14367
  "aria-label": xe(c.options),
@@ -14389,11 +14389,11 @@ function pD(e) {
14389
14389
  whiteSpace: "nowrap",
14390
14390
  wordWrap: "normal"
14391
14391
  }
14392
- }, D(e.date, c.options, c))) : t.createElement(i.CaptionLabel, {
14392
+ }, ee(e.date, c.options, c))) : t.createElement(i.CaptionLabel, {
14393
14393
  className: f[$.CaptionLabel],
14394
14394
  role: "status",
14395
14395
  "aria-live": "polite"
14396
- }, D(e.date, c.options, c))), h === "around" && !n.hideNavigation && r === g - 1 && t.createElement(i.NextMonthButton, {
14396
+ }, ee(e.date, c.options, c))), h === "around" && !n.hideNavigation && r === g - 1 && t.createElement(i.NextMonthButton, {
14397
14397
  type: "button",
14398
14398
  className: f[$.NextMonthButton],
14399
14399
  tabIndex: ie ? void 0 : -1,
@@ -14491,7 +14491,7 @@ function pD(e) {
14491
14491
  onKeyDown: ke(e, a),
14492
14492
  onMouseEnter: Ae(e, a),
14493
14493
  onMouseLeave: je(e, a)
14494
- }, O(r, c.options, c)) : !a.hidden && O(e.date, c.options, c));
14494
+ }, D(r, c.options, c)) : !a.hidden && D(e.date, c.options, c));
14495
14495
  })))))))), n.footer && t.createElement(i.Footer, {
14496
14496
  className: f[$.Footer],
14497
14497
  style: E?.[$.Footer],
@@ -15582,7 +15582,7 @@ var zk = [
15582
15582
  setState: (e, t, n) => {
15583
15583
  var i, a, o;
15584
15584
  if (!Object.is(r.current[e], t)) {
15585
- if (r.current[e] = t, e === "search") ee(), D(), C(1, O);
15585
+ if (r.current[e] = t, e === "search") O(), ee(), C(1, D);
15586
15586
  else if (e === "value") {
15587
15587
  if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
15588
15588
  let e = document.getElementById(x);
@@ -15608,16 +15608,16 @@ var zk = [
15608
15608
  value: t,
15609
15609
  keywords: n
15610
15610
  }), r.current.filtered.items.set(e, E(t, n)), C(2, () => {
15611
- D(), w.emit();
15611
+ ee(), w.emit();
15612
15612
  }));
15613
15613
  },
15614
15614
  item: (e, t) => (i.current.add(e), t && (a.current.has(t) ? a.current.get(t).add(e) : a.current.set(t, /* @__PURE__ */ new Set([e]))), C(3, () => {
15615
- ee(), D(), r.current.value || O(), w.emit();
15615
+ O(), ee(), r.current.value || D(), w.emit();
15616
15616
  }), () => {
15617
15617
  o.current.delete(e), i.current.delete(e), r.current.filtered.items.delete(e);
15618
15618
  let t = A();
15619
15619
  C(4, () => {
15620
- ee(), t?.getAttribute("id") === e && O(), w.emit();
15620
+ O(), t?.getAttribute("id") === e && D(), w.emit();
15621
15621
  });
15622
15622
  }),
15623
15623
  group: (e) => (a.current.has(e) || a.current.set(e, /* @__PURE__ */ new Set()), () => {
@@ -15635,7 +15635,7 @@ var zk = [
15635
15635
  let n = c.current?.filter ?? qk;
15636
15636
  return e ? n(e, r.current.search, t) : 0;
15637
15637
  }
15638
- function D() {
15638
+ function ee() {
15639
15639
  if (!r.current.search || c.current.shouldFilter === !1) return;
15640
15640
  let e = r.current.filtered.items, t = [];
15641
15641
  r.current.filtered.groups.forEach((n) => {
@@ -15657,11 +15657,11 @@ var zk = [
15657
15657
  t?.parentElement.appendChild(t);
15658
15658
  });
15659
15659
  }
15660
- function O() {
15660
+ function D() {
15661
15661
  let e = j().find((e) => e.getAttribute("aria-disabled") !== "true")?.getAttribute(Kk);
15662
15662
  w.setState("value", e || void 0);
15663
15663
  }
15664
- function ee() {
15664
+ function O() {
15665
15665
  if (!r.current.search || c.current.shouldFilter === !1) {
15666
15666
  r.current.filtered.count = i.current.size;
15667
15667
  return;