@bfrs/agentic-components 0.7.4 → 0.7.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.js CHANGED
@@ -251,8 +251,8 @@ const Cf = (e, t) => {
251
251
  }
252
252
  let v = !!h, y;
253
253
  if (v) {
254
- const R = w.substring(0, h);
255
- y = o(R);
254
+ const A = w.substring(0, h);
255
+ y = o(A);
256
256
  const E = y && s[y] ? o(w) : void 0;
257
257
  E && E !== y && (y = E, v = !1);
258
258
  } else
@@ -268,14 +268,14 @@ const Cf = (e, t) => {
268
268
  }
269
269
  v = !1;
270
270
  }
271
- const C = g.length === 0 ? "" : g.length === 1 ? g[0] : l(g).join(":"), S = x ? C + Zn : C, T = S + y;
271
+ const S = g.length === 0 ? "" : g.length === 1 ? g[0] : l(g).join(":"), C = x ? S + Zn : S, T = C + y;
272
272
  if (c.indexOf(T) > -1)
273
273
  continue;
274
274
  c.push(T);
275
- const A = n(y, v);
276
- for (let R = 0; R < A.length; ++R) {
277
- const E = A[R];
278
- c.push(S + E);
275
+ const R = n(y, v);
276
+ for (let A = 0; A < R.length; ++A) {
277
+ const E = R[A];
278
+ c.push(C + E);
279
279
  }
280
280
  f = b + (f.length > 0 ? " " + f : f);
281
281
  }
@@ -320,7 +320,7 @@ const Cf = (e, t) => {
320
320
  const o = yc.exec(e);
321
321
  return o ? o[1] ? t(o[1]) : r : !1;
322
322
  }, Sc = (e) => e === "position" || e === "percentage", Cc = (e) => e === "image" || e === "url", kc = (e) => e === "length" || e === "size" || e === "bg-size", Ac = (e) => e === "length", du = (e) => e === "number", Rc = (e) => e === "family-name", Ec = (e) => e === "number" || e === "weight", Tc = (e) => e === "shadow", Dl = () => {
323
- const e = Ve("color"), t = Ve("font"), r = Ve("text"), o = Ve("font-weight"), n = Ve("tracking"), l = Ve("leading"), s = Ve("breakpoint"), c = Ve("container"), p = Ve("spacing"), f = Ve("radius"), u = Ve("shadow"), b = Ve("inset-shadow"), m = Ve("text-shadow"), g = Ve("drop-shadow"), x = Ve("blur"), w = Ve("perspective"), h = Ve("aspect"), v = Ve("ease"), y = Ve("animate"), C = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], S = () => [
323
+ const e = Ve("color"), t = Ve("font"), r = Ve("text"), o = Ve("font-weight"), n = Ve("tracking"), l = Ve("leading"), s = Ve("breakpoint"), c = Ve("container"), p = Ve("spacing"), f = Ve("radius"), u = Ve("shadow"), b = Ve("inset-shadow"), m = Ve("text-shadow"), g = Ve("drop-shadow"), x = Ve("blur"), w = Ve("perspective"), h = Ve("aspect"), v = Ve("ease"), y = Ve("animate"), S = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], C = () => [
324
324
  "center",
325
325
  "top",
326
326
  "bottom",
@@ -338,9 +338,9 @@ const Cf = (e, t) => {
338
338
  "bottom-left",
339
339
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
340
340
  "left-bottom"
341
- ], T = () => [...S(), Y, K], A = () => ["auto", "hidden", "clip", "visible", "scroll"], R = () => ["auto", "contain", "none"], E = () => [Y, K, p], D = () => [er, "full", "auto", ...E()], L = () => [zt, "none", "subgrid", Y, K], M = () => ["auto", {
341
+ ], T = () => [...C(), Y, K], R = () => ["auto", "hidden", "clip", "visible", "scroll"], A = () => ["auto", "contain", "none"], E = () => [Y, K, p], D = () => [er, "full", "auto", ...E()], L = () => [zt, "none", "subgrid", Y, K], M = () => ["auto", {
342
342
  span: ["full", zt, Y, K]
343
- }, zt, Y, K], B = () => [zt, "auto", Y, K], N = () => ["auto", "min", "max", "fr", Y, K], P = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Z = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], H = () => ["auto", ...E()], O = () => [er, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...E()], F = () => [er, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...E()], z = () => [er, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...E()], I = () => [e, Y, K], se = () => [...S(), Pl, Ml, {
343
+ }, zt, Y, K], B = () => [zt, "auto", Y, K], N = () => ["auto", "min", "max", "fr", Y, K], P = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Z = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], H = () => ["auto", ...E()], O = () => [er, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...E()], F = () => [er, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...E()], z = () => [er, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...E()], I = () => [e, Y, K], se = () => [...C(), Pl, Ml, {
344
344
  position: [Y, K]
345
345
  }], de = () => ["no-repeat", {
346
346
  repeat: ["", "x", "y", "space", "round"]
@@ -426,14 +426,14 @@ const Cf = (e, t) => {
426
426
  * @see https://tailwindcss.com/docs/break-after
427
427
  */
428
428
  "break-after": [{
429
- "break-after": C()
429
+ "break-after": S()
430
430
  }],
431
431
  /**
432
432
  * Break Before
433
433
  * @see https://tailwindcss.com/docs/break-before
434
434
  */
435
435
  "break-before": [{
436
- "break-before": C()
436
+ "break-before": S()
437
437
  }],
438
438
  /**
439
439
  * Break Inside
@@ -504,42 +504,42 @@ const Cf = (e, t) => {
504
504
  * @see https://tailwindcss.com/docs/overflow
505
505
  */
506
506
  overflow: [{
507
- overflow: A()
507
+ overflow: R()
508
508
  }],
509
509
  /**
510
510
  * Overflow X
511
511
  * @see https://tailwindcss.com/docs/overflow
512
512
  */
513
513
  "overflow-x": [{
514
- "overflow-x": A()
514
+ "overflow-x": R()
515
515
  }],
516
516
  /**
517
517
  * Overflow Y
518
518
  * @see https://tailwindcss.com/docs/overflow
519
519
  */
520
520
  "overflow-y": [{
521
- "overflow-y": A()
521
+ "overflow-y": R()
522
522
  }],
523
523
  /**
524
524
  * Overscroll Behavior
525
525
  * @see https://tailwindcss.com/docs/overscroll-behavior
526
526
  */
527
527
  overscroll: [{
528
- overscroll: R()
528
+ overscroll: A()
529
529
  }],
530
530
  /**
531
531
  * Overscroll Behavior X
532
532
  * @see https://tailwindcss.com/docs/overscroll-behavior
533
533
  */
534
534
  "overscroll-x": [{
535
- "overscroll-x": R()
535
+ "overscroll-x": A()
536
536
  }],
537
537
  /**
538
538
  * Overscroll Behavior Y
539
539
  * @see https://tailwindcss.com/docs/overscroll-behavior
540
540
  */
541
541
  "overscroll-y": [{
542
- "overscroll-y": R()
542
+ "overscroll-y": A()
543
543
  }],
544
544
  /**
545
545
  * Position
@@ -2104,7 +2104,7 @@ const Cf = (e, t) => {
2104
2104
  }]
2105
2105
  }],
2106
2106
  "mask-image-radial-pos": [{
2107
- "mask-radial-at": S()
2107
+ "mask-radial-at": C()
2108
2108
  }],
2109
2109
  "mask-image-conic-pos": [{
2110
2110
  "mask-conic": [fe]
@@ -5380,41 +5380,41 @@ const pt = ud, Rh = "&[data-filled]", Eh = {
5380
5380
  onClear: h,
5381
5381
  clearLabel: v = "Clear input",
5382
5382
  fullWidth: y = !0,
5383
- id: C,
5384
- value: S,
5383
+ id: S,
5384
+ value: C,
5385
5385
  defaultValue: T,
5386
- onChange: A,
5387
- disabled: R,
5386
+ onChange: R,
5387
+ disabled: A,
5388
5388
  readOnly: E,
5389
5389
  "aria-invalid": D,
5390
5390
  "aria-describedby": L,
5391
5391
  ...M
5392
5392
  }, B) => {
5393
- const N = xt(), P = C ?? N, Z = p ? `${P}-helper` : void 0, H = c ? `${P}-error` : void 0, O = [L, Z, H].filter(Boolean).join(" ") || void 0, F = S !== void 0, [z, I] = X(() => {
5393
+ const N = xt(), P = S ?? N, Z = p ? `${P}-helper` : void 0, H = c ? `${P}-error` : void 0, O = [L, Z, H].filter(Boolean).join(" ") || void 0, F = C !== void 0, [z, I] = X(() => {
5394
5394
  const _ = T;
5395
5395
  return _ != null && String(_).length > 0;
5396
- }), se = F ? S !== null && String(S).length > 0 : z, de = !!(h && se && !R && !E), J = !!(x || de || w), ve = !!(b || m), le = s || c ? "error" : "default", re = {
5396
+ }), se = F ? C !== null && String(C).length > 0 : z, de = !!(h && se && !A && !E), J = !!(x || de || w), ve = !!(b || m), le = s || c ? "error" : "default", re = {
5397
5397
  appearance: l,
5398
5398
  size: n,
5399
5399
  state: le,
5400
5400
  hasLeftIcon: !!g,
5401
5401
  hasRightControl: J,
5402
5402
  hasAddons: ve,
5403
- disabled: !!R,
5403
+ disabled: !!A,
5404
5404
  fullWidth: !!y
5405
5405
  }, W = l === "unstyled" ? nr(o, e) : o, oe = /* @__PURE__ */ i(
5406
5406
  Fh,
5407
5407
  {
5408
5408
  ref: B,
5409
5409
  id: P,
5410
- value: S,
5410
+ value: C,
5411
5411
  defaultValue: T,
5412
- disabled: R,
5412
+ disabled: A,
5413
5413
  readOnly: E,
5414
5414
  "aria-invalid": D ?? s ?? !!c,
5415
5415
  "aria-describedby": O,
5416
5416
  onChange: (_) => {
5417
- F || I(_.target.value.length > 0), A == null || A(_);
5417
+ F || I(_.target.value.length > 0), R == null || R(_);
5418
5418
  },
5419
5419
  "data-filled": !ve && se && le === "default" ? "" : void 0,
5420
5420
  ownerState: re,
@@ -5753,21 +5753,21 @@ function Ai(e) {
5753
5753
  t,
5754
5754
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
5755
5755
  ), s = (w) => {
5756
- const { scope: h, children: v } = w, y = gr.useRef(null), C = gr.useRef(/* @__PURE__ */ new Map()).current;
5757
- return /* @__PURE__ */ i(n, { scope: h, itemMap: C, collectionRef: y, children: v });
5756
+ const { scope: h, children: v } = w, y = gr.useRef(null), S = gr.useRef(/* @__PURE__ */ new Map()).current;
5757
+ return /* @__PURE__ */ i(n, { scope: h, itemMap: S, collectionRef: y, children: v });
5758
5758
  };
5759
5759
  s.displayName = t;
5760
5760
  const c = e + "CollectionSlot", p = /* @__PURE__ */ Sr(c), f = gr.forwardRef(
5761
5761
  (w, h) => {
5762
- const { scope: v, children: y } = w, C = l(c, v), S = me(h, C.collectionRef);
5763
- return /* @__PURE__ */ i(p, { ref: S, children: y });
5762
+ const { scope: v, children: y } = w, S = l(c, v), C = me(h, S.collectionRef);
5763
+ return /* @__PURE__ */ i(p, { ref: C, children: y });
5764
5764
  }
5765
5765
  );
5766
5766
  f.displayName = c;
5767
5767
  const u = e + "CollectionItemSlot", b = "data-radix-collection-item", m = /* @__PURE__ */ Sr(u), g = gr.forwardRef(
5768
5768
  (w, h) => {
5769
- const { scope: v, children: y, ...C } = w, S = gr.useRef(null), T = me(h, S), A = l(u, v);
5770
- return gr.useEffect(() => (A.itemMap.set(S, { ref: S, ...C }), () => void A.itemMap.delete(S))), /* @__PURE__ */ i(m, { [b]: "", ref: T, children: y });
5769
+ const { scope: v, children: y, ...S } = w, C = gr.useRef(null), T = me(h, C), R = l(u, v);
5770
+ return gr.useEffect(() => (R.itemMap.set(C, { ref: C, ...S }), () => void R.itemMap.delete(C))), /* @__PURE__ */ i(m, { [b]: "", ref: T, children: y });
5771
5771
  }
5772
5772
  );
5773
5773
  g.displayName = u;
@@ -5776,9 +5776,9 @@ function Ai(e) {
5776
5776
  return gr.useCallback(() => {
5777
5777
  const y = h.collectionRef.current;
5778
5778
  if (!y) return [];
5779
- const C = Array.from(y.querySelectorAll(`[${b}]`));
5779
+ const S = Array.from(y.querySelectorAll(`[${b}]`));
5780
5780
  return Array.from(h.itemMap.values()).sort(
5781
- (A, R) => C.indexOf(A.ref.current) - C.indexOf(R.ref.current)
5781
+ (R, A) => S.indexOf(R.ref.current) - S.indexOf(A.ref.current)
5782
5782
  );
5783
5783
  }, [h.collectionRef, h.itemMap]);
5784
5784
  }
@@ -5853,15 +5853,15 @@ var fm = "DismissableLayer", Kn = "dismissableLayer.update", um = "dismissableLa
5853
5853
  onInteractOutside: s,
5854
5854
  onDismiss: c,
5855
5855
  ...p
5856
- } = e, f = a.useContext(yd), [u, b] = a.useState(null), m = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = a.useState({}), x = me(t, (R) => b(R)), w = Array.from(f.layers), [h] = [...f.layersWithOutsidePointerEventsDisabled].slice(-1), v = w.indexOf(h), y = u ? w.indexOf(u) : -1, C = f.layersWithOutsidePointerEventsDisabled.size > 0, S = y >= v, T = gm((R) => {
5857
- const E = R.target, D = [...f.branches].some((L) => L.contains(E));
5858
- !S || D || (n == null || n(R), s == null || s(R), R.defaultPrevented || c == null || c());
5859
- }, m), A = wm((R) => {
5860
- const E = R.target;
5861
- [...f.branches].some((L) => L.contains(E)) || (l == null || l(R), s == null || s(R), R.defaultPrevented || c == null || c());
5856
+ } = e, f = a.useContext(yd), [u, b] = a.useState(null), m = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = a.useState({}), x = me(t, (A) => b(A)), w = Array.from(f.layers), [h] = [...f.layersWithOutsidePointerEventsDisabled].slice(-1), v = w.indexOf(h), y = u ? w.indexOf(u) : -1, S = f.layersWithOutsidePointerEventsDisabled.size > 0, C = y >= v, T = gm((A) => {
5857
+ const E = A.target, D = [...f.branches].some((L) => L.contains(E));
5858
+ !C || D || (n == null || n(A), s == null || s(A), A.defaultPrevented || c == null || c());
5859
+ }, m), R = wm((A) => {
5860
+ const E = A.target;
5861
+ [...f.branches].some((L) => L.contains(E)) || (l == null || l(A), s == null || s(A), A.defaultPrevented || c == null || c());
5862
5862
  }, m);
5863
- return pm((R) => {
5864
- y === f.layers.size - 1 && (o == null || o(R), !R.defaultPrevented && c && (R.preventDefault(), c()));
5863
+ return pm((A) => {
5864
+ y === f.layers.size - 1 && (o == null || o(A), !A.defaultPrevented && c && (A.preventDefault(), c()));
5865
5865
  }, m), a.useEffect(() => {
5866
5866
  if (u)
5867
5867
  return r && (f.layersWithOutsidePointerEventsDisabled.size === 0 && (jl = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), f.layersWithOutsidePointerEventsDisabled.add(u)), f.layers.add(u), Ul(), () => {
@@ -5870,19 +5870,19 @@ var fm = "DismissableLayer", Kn = "dismissableLayer.update", um = "dismissableLa
5870
5870
  }, [u, m, r, f]), a.useEffect(() => () => {
5871
5871
  u && (f.layers.delete(u), f.layersWithOutsidePointerEventsDisabled.delete(u), Ul());
5872
5872
  }, [u, f]), a.useEffect(() => {
5873
- const R = () => g({});
5874
- return document.addEventListener(Kn, R), () => document.removeEventListener(Kn, R);
5873
+ const A = () => g({});
5874
+ return document.addEventListener(Kn, A), () => document.removeEventListener(Kn, A);
5875
5875
  }, []), /* @__PURE__ */ i(
5876
5876
  ne.div,
5877
5877
  {
5878
5878
  ...p,
5879
5879
  ref: x,
5880
5880
  style: {
5881
- pointerEvents: C ? S ? "auto" : "none" : void 0,
5881
+ pointerEvents: S ? C ? "auto" : "none" : void 0,
5882
5882
  ...e.style
5883
5883
  },
5884
- onFocusCapture: $(e.onFocusCapture, A.onFocusCapture),
5885
- onBlurCapture: $(e.onBlurCapture, A.onBlurCapture),
5884
+ onFocusCapture: $(e.onFocusCapture, R.onFocusCapture),
5885
+ onBlurCapture: $(e.onBlurCapture, R.onBlurCapture),
5886
5886
  onPointerDownCapture: $(
5887
5887
  e.onPointerDownCapture,
5888
5888
  T.onPointerDownCapture
@@ -5986,17 +5986,17 @@ var yn = "focusScope.autoFocusOnMount", xn = "focusScope.autoFocusOnUnmount", Yl
5986
5986
  }).current;
5987
5987
  a.useEffect(() => {
5988
5988
  if (o) {
5989
- let w = function(C) {
5989
+ let w = function(S) {
5990
5990
  if (g.paused || !c) return;
5991
- const S = C.target;
5992
- c.contains(S) ? b.current = S : tr(b.current, { select: !0 });
5993
- }, h = function(C) {
5991
+ const C = S.target;
5992
+ c.contains(C) ? b.current = C : tr(b.current, { select: !0 });
5993
+ }, h = function(S) {
5994
5994
  if (g.paused || !c) return;
5995
- const S = C.relatedTarget;
5996
- S !== null && (c.contains(S) || tr(b.current, { select: !0 }));
5997
- }, v = function(C) {
5995
+ const C = S.relatedTarget;
5996
+ C !== null && (c.contains(C) || tr(b.current, { select: !0 }));
5997
+ }, v = function(S) {
5998
5998
  if (document.activeElement === document.body)
5999
- for (const T of C)
5999
+ for (const T of S)
6000
6000
  T.removedNodes.length > 0 && tr(c);
6001
6001
  };
6002
6002
  document.addEventListener("focusin", w), document.addEventListener("focusout", h);
@@ -6026,8 +6026,8 @@ var yn = "focusScope.autoFocusOnMount", xn = "focusScope.autoFocusOnUnmount", Yl
6026
6026
  if (!r && !o || g.paused) return;
6027
6027
  const h = w.key === "Tab" && !w.altKey && !w.ctrlKey && !w.metaKey, v = document.activeElement;
6028
6028
  if (h && v) {
6029
- const y = w.currentTarget, [C, S] = xm(y);
6030
- C && S ? !w.shiftKey && v === S ? (w.preventDefault(), r && tr(C, { select: !0 })) : w.shiftKey && v === C && (w.preventDefault(), r && tr(S, { select: !0 })) : v === y && w.preventDefault();
6029
+ const y = w.currentTarget, [S, C] = xm(y);
6030
+ S && C ? !w.shiftKey && v === C ? (w.preventDefault(), r && tr(S, { select: !0 })) : w.shiftKey && v === S && (w.preventDefault(), r && tr(C, { select: !0 })) : v === y && w.preventDefault();
6031
6031
  }
6032
6032
  },
6033
6033
  [r, o, g.paused]
@@ -6284,7 +6284,7 @@ async function Hm(e, t) {
6284
6284
  y: n,
6285
6285
  width: s.floating.width,
6286
6286
  height: s.floating.height
6287
- } : s.reference, C = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(c.floating)), S = await (l.isElement == null ? void 0 : l.isElement(C)) ? await (l.getScale == null ? void 0 : l.getScale(C)) || {
6287
+ } : s.reference, S = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(c.floating)), C = await (l.isElement == null ? void 0 : l.isElement(S)) ? await (l.getScale == null ? void 0 : l.getScale(S)) || {
6288
6288
  x: 1,
6289
6289
  y: 1
6290
6290
  } : {
@@ -6293,14 +6293,14 @@ async function Hm(e, t) {
6293
6293
  }, T = ya(l.convertOffsetParentRelativeRectToViewportRelativeRect ? await l.convertOffsetParentRelativeRectToViewportRelativeRect({
6294
6294
  elements: c,
6295
6295
  rect: y,
6296
- offsetParent: C,
6296
+ offsetParent: S,
6297
6297
  strategy: p
6298
6298
  }) : y);
6299
6299
  return {
6300
- top: (v.top - T.top + x.top) / S.y,
6301
- bottom: (T.bottom - v.bottom + x.bottom) / S.y,
6302
- left: (v.left - T.left + x.left) / S.x,
6303
- right: (T.right - v.right + x.right) / S.x
6300
+ top: (v.top - T.top + x.top) / C.y,
6301
+ bottom: (T.bottom - v.bottom + x.bottom) / C.y,
6302
+ left: (v.left - T.left + x.left) / C.x,
6303
+ right: (T.right - v.right + x.right) / C.x
6304
6304
  };
6305
6305
  }
6306
6306
  const Vm = 50, Nm = async (e, t, r) => {
@@ -6330,10 +6330,10 @@ const Vm = 50, Nm = async (e, t, r) => {
6330
6330
  name: v,
6331
6331
  fn: y
6332
6332
  } = h, {
6333
- x: C,
6334
- y: S,
6333
+ x: S,
6334
+ y: C,
6335
6335
  data: T,
6336
- reset: A
6336
+ reset: R
6337
6337
  } = await y({
6338
6338
  x: u,
6339
6339
  y: b,
@@ -6348,14 +6348,14 @@ const Vm = 50, Nm = async (e, t, r) => {
6348
6348
  floating: t
6349
6349
  }
6350
6350
  });
6351
- u = C ?? u, b = S ?? b, x[v] = {
6351
+ u = S ?? u, b = C ?? b, x[v] = {
6352
6352
  ...x[v],
6353
6353
  ...T
6354
- }, A && g < Vm && (g++, typeof A == "object" && (A.placement && (m = A.placement), A.rects && (f = A.rects === !0 ? await s.getElementRects({
6354
+ }, R && g < Vm && (g++, typeof R == "object" && (R.placement && (m = R.placement), R.rects && (f = R.rects === !0 ? await s.getElementRects({
6355
6355
  reference: e,
6356
6356
  floating: t,
6357
6357
  strategy: n
6358
- }) : A.rects), {
6358
+ }) : R.rects), {
6359
6359
  x: u,
6360
6360
  y: b
6361
6361
  } = ts(f, m, p)), w = -1);
@@ -6388,10 +6388,10 @@ const Vm = 50, Nm = async (e, t, r) => {
6388
6388
  const b = Cd(u), m = {
6389
6389
  x: r,
6390
6390
  y: o
6391
- }, g = Ti(n), x = Ei(g), w = await s.getDimensions(f), h = g === "y", v = h ? "top" : "left", y = h ? "bottom" : "right", C = h ? "clientHeight" : "clientWidth", S = l.reference[x] + l.reference[g] - m[g] - l.floating[x], T = m[g] - l.reference[g], A = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(f));
6392
- let R = A ? A[C] : 0;
6393
- (!R || !await (s.isElement == null ? void 0 : s.isElement(A))) && (R = c.floating[C] || l.floating[x]);
6394
- const E = S / 2 - T / 2, D = R / 2 - w[x] / 2 - 1, L = lr(b[v], D), M = lr(b[y], D), B = L, N = R - w[x] - M, P = R / 2 - w[x] / 2 + E, Z = Yn(B, P, N), H = !p.arrow && io(n) != null && P !== Z && l.reference[x] / 2 - (P < B ? L : M) - w[x] / 2 < 0, O = H ? P < B ? P - B : P - N : 0;
6391
+ }, g = Ti(n), x = Ei(g), w = await s.getDimensions(f), h = g === "y", v = h ? "top" : "left", y = h ? "bottom" : "right", S = h ? "clientHeight" : "clientWidth", C = l.reference[x] + l.reference[g] - m[g] - l.floating[x], T = m[g] - l.reference[g], R = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(f));
6392
+ let A = R ? R[S] : 0;
6393
+ (!A || !await (s.isElement == null ? void 0 : s.isElement(R))) && (A = c.floating[S] || l.floating[x]);
6394
+ const E = C / 2 - T / 2, D = A / 2 - w[x] / 2 - 1, L = lr(b[v], D), M = lr(b[y], D), B = L, N = A - w[x] - M, P = A / 2 - w[x] / 2 + E, Z = Yn(B, P, N), H = !p.arrow && io(n) != null && P !== Z && l.reference[x] / 2 - (P < B ? L : M) - w[x] / 2 < 0, O = H ? P < B ? P - B : P - N : 0;
6395
6395
  return {
6396
6396
  [g]: m[g] + O,
6397
6397
  data: {
@@ -6428,12 +6428,12 @@ const Vm = 50, Nm = async (e, t, r) => {
6428
6428
  } = qt(e, t);
6429
6429
  if ((r = l.arrow) != null && r.alignmentOffset)
6430
6430
  return {};
6431
- const v = Jt(n), y = Nt(c), C = Jt(c) === c, S = await (p.isRTL == null ? void 0 : p.isRTL(f.floating)), T = m || (C || !w ? [va(c)] : Dm(c)), A = x !== "none";
6432
- !m && A && T.push(...Bm(c, w, x, S));
6433
- const R = [c, ...T], E = await p.detectOverflow(t, h), D = [];
6431
+ const v = Jt(n), y = Nt(c), S = Jt(c) === c, C = await (p.isRTL == null ? void 0 : p.isRTL(f.floating)), T = m || (S || !w ? [va(c)] : Dm(c)), R = x !== "none";
6432
+ !m && R && T.push(...Bm(c, w, x, C));
6433
+ const A = [c, ...T], E = await p.detectOverflow(t, h), D = [];
6434
6434
  let L = ((o = l.flip) == null ? void 0 : o.overflows) || [];
6435
6435
  if (u && D.push(E[v]), b) {
6436
- const P = Pm(n, s, S);
6436
+ const P = Pm(n, s, C);
6437
6437
  D.push(E[P[0]], E[P[1]]);
6438
6438
  }
6439
6439
  if (L = [...L, {
@@ -6441,7 +6441,7 @@ const Vm = 50, Nm = async (e, t, r) => {
6441
6441
  overflows: D
6442
6442
  }], !D.every((P) => P <= 0)) {
6443
6443
  var M, B;
6444
- const P = (((M = l.flip) == null ? void 0 : M.index) || 0) + 1, Z = R[P];
6444
+ const P = (((M = l.flip) == null ? void 0 : M.index) || 0) + 1, Z = A[P];
6445
6445
  if (Z && (!(b === "alignment" ? y !== Nt(Z) : !1) || // We leave the current main axis only if every placement on that axis
6446
6446
  // overflows the main axis.
6447
6447
  L.every((F) => Nt(F.placement) === y ? F.overflows[0] > 0 : !0)))
@@ -6460,7 +6460,7 @@ const Vm = 50, Nm = async (e, t, r) => {
6460
6460
  case "bestFit": {
6461
6461
  var N;
6462
6462
  const O = (N = L.filter((F) => {
6463
- if (A) {
6463
+ if (R) {
6464
6464
  const z = Nt(F.placement);
6465
6465
  return z === y || // Create a bias to the `y` side axis due to horizontal
6466
6466
  // reading directions favoring greater width.
@@ -6606,11 +6606,11 @@ const $m = function(e) {
6606
6606
  fn: (v) => {
6607
6607
  let {
6608
6608
  x: y,
6609
- y: C
6609
+ y: S
6610
6610
  } = v;
6611
6611
  return {
6612
6612
  x: y,
6613
- y: C
6613
+ y: S
6614
6614
  };
6615
6615
  }
6616
6616
  },
@@ -6621,12 +6621,12 @@ const $m = function(e) {
6621
6621
  }, b = await l.detectOverflow(t, f), m = Nt(Jt(n)), g = Ri(m);
6622
6622
  let x = u[g], w = u[m];
6623
6623
  if (s) {
6624
- const v = g === "y" ? "top" : "left", y = g === "y" ? "bottom" : "right", C = x + b[v], S = x - b[y];
6625
- x = Yn(C, x, S);
6624
+ const v = g === "y" ? "top" : "left", y = g === "y" ? "bottom" : "right", S = x + b[v], C = x - b[y];
6625
+ x = Yn(S, x, C);
6626
6626
  }
6627
6627
  if (c) {
6628
- const v = m === "y" ? "top" : "left", y = m === "y" ? "bottom" : "right", C = w + b[v], S = w - b[y];
6629
- w = Yn(C, w, S);
6628
+ const v = m === "y" ? "top" : "left", y = m === "y" ? "bottom" : "right", S = w + b[v], C = w - b[y];
6629
+ w = Yn(S, w, C);
6630
6630
  }
6631
6631
  const h = p.fn({
6632
6632
  ...t,
@@ -6674,13 +6674,13 @@ const $m = function(e) {
6674
6674
  ...w
6675
6675
  };
6676
6676
  if (p) {
6677
- const C = m === "y" ? "height" : "width", S = l.reference[m] - l.floating[C] + h.mainAxis, T = l.reference[m] + l.reference[C] - h.mainAxis;
6678
- g < S ? g = S : g > T && (g = T);
6677
+ const S = m === "y" ? "height" : "width", C = l.reference[m] - l.floating[S] + h.mainAxis, T = l.reference[m] + l.reference[S] - h.mainAxis;
6678
+ g < C ? g = C : g > T && (g = T);
6679
6679
  }
6680
6680
  if (f) {
6681
6681
  var v, y;
6682
- const C = m === "y" ? "width" : "height", S = kd.has(Jt(n)), T = l.reference[b] - l.floating[C] + (S && ((v = s.offset) == null ? void 0 : v[b]) || 0) + (S ? 0 : h.crossAxis), A = l.reference[b] + l.reference[C] + (S ? 0 : ((y = s.offset) == null ? void 0 : y[b]) || 0) - (S ? h.crossAxis : 0);
6683
- x < T ? x = T : x > A && (x = A);
6682
+ const S = m === "y" ? "width" : "height", C = kd.has(Jt(n)), T = l.reference[b] - l.floating[S] + (C && ((v = s.offset) == null ? void 0 : v[b]) || 0) + (C ? 0 : h.crossAxis), R = l.reference[b] + l.reference[S] + (C ? 0 : ((y = s.offset) == null ? void 0 : y[b]) || 0) - (C ? h.crossAxis : 0);
6683
+ x < T ? x = T : x > R && (x = R);
6684
6684
  }
6685
6685
  return {
6686
6686
  [m]: g,
@@ -6709,16 +6709,16 @@ const $m = function(e) {
6709
6709
  } = l.floating;
6710
6710
  let h, v;
6711
6711
  b === "top" || b === "bottom" ? (h = b, v = m === (await (s.isRTL == null ? void 0 : s.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (v = b, h = m === "end" ? "top" : "bottom");
6712
- const y = w - u.top - u.bottom, C = x - u.left - u.right, S = lr(w - u[h], y), T = lr(x - u[v], C), A = !t.middlewareData.shift;
6713
- let R = S, E = T;
6714
- if ((r = t.middlewareData.shift) != null && r.enabled.x && (E = C), (o = t.middlewareData.shift) != null && o.enabled.y && (R = y), A && !m) {
6712
+ const y = w - u.top - u.bottom, S = x - u.left - u.right, C = lr(w - u[h], y), T = lr(x - u[v], S), R = !t.middlewareData.shift;
6713
+ let A = C, E = T;
6714
+ if ((r = t.middlewareData.shift) != null && r.enabled.x && (E = S), (o = t.middlewareData.shift) != null && o.enabled.y && (A = y), R && !m) {
6715
6715
  const L = st(u.left, 0), M = st(u.right, 0), B = st(u.top, 0), N = st(u.bottom, 0);
6716
- g ? E = x - 2 * (L !== 0 || M !== 0 ? L + M : st(u.left, u.right)) : R = w - 2 * (B !== 0 || N !== 0 ? B + N : st(u.top, u.bottom));
6716
+ g ? E = x - 2 * (L !== 0 || M !== 0 ? L + M : st(u.left, u.right)) : A = w - 2 * (B !== 0 || N !== 0 ? B + N : st(u.top, u.bottom));
6717
6717
  }
6718
6718
  await p({
6719
6719
  ...t,
6720
6720
  availableWidth: E,
6721
- availableHeight: R
6721
+ availableHeight: A
6722
6722
  });
6723
6723
  const D = await s.getDimensions(c.floating);
6724
6724
  return x !== D.width || w !== D.height ? {
@@ -6893,8 +6893,8 @@ function Cr(e, t, r, o) {
6893
6893
  const m = ct(l), g = o && Mt(o) ? ct(o) : o;
6894
6894
  let x = m, w = qn(x);
6895
6895
  for (; w && o && g !== x; ) {
6896
- const h = qr(w), v = w.getBoundingClientRect(), y = Pt(w), C = v.left + (w.clientLeft + parseFloat(y.paddingLeft)) * h.x, S = v.top + (w.clientTop + parseFloat(y.paddingTop)) * h.y;
6897
- p *= h.x, f *= h.y, u *= h.x, b *= h.y, p += C, f += S, x = ct(w), w = qn(x);
6896
+ const h = qr(w), v = w.getBoundingClientRect(), y = Pt(w), S = v.left + (w.clientLeft + parseFloat(y.paddingLeft)) * h.x, C = v.top + (w.clientTop + parseFloat(y.paddingTop)) * h.y;
6897
+ p *= h.x, f *= h.y, u *= h.x, b *= h.y, p += S, f += C, x = ct(w), w = qn(x);
6898
6898
  }
6899
6899
  }
6900
6900
  return ya({
@@ -7152,30 +7152,30 @@ function fg(e, t) {
7152
7152
  } = f;
7153
7153
  if (c || t(), !m || !g)
7154
7154
  return;
7155
- const x = Qo(b), w = Qo(n.clientWidth - (u + m)), h = Qo(n.clientHeight - (b + g)), v = Qo(u), C = {
7155
+ const x = Qo(b), w = Qo(n.clientWidth - (u + m)), h = Qo(n.clientHeight - (b + g)), v = Qo(u), S = {
7156
7156
  rootMargin: -x + "px " + -w + "px " + -h + "px " + -v + "px",
7157
7157
  threshold: st(0, lr(1, p)) || 1
7158
7158
  };
7159
- let S = !0;
7160
- function T(A) {
7161
- const R = A[0].intersectionRatio;
7162
- if (R !== p) {
7163
- if (!S)
7159
+ let C = !0;
7160
+ function T(R) {
7161
+ const A = R[0].intersectionRatio;
7162
+ if (A !== p) {
7163
+ if (!C)
7164
7164
  return s();
7165
- R ? s(!1, R) : o = setTimeout(() => {
7165
+ A ? s(!1, A) : o = setTimeout(() => {
7166
7166
  s(!1, 1e-7);
7167
7167
  }, 1e3);
7168
7168
  }
7169
- R === 1 && !Id(f, e.getBoundingClientRect()) && s(), S = !1;
7169
+ A === 1 && !Id(f, e.getBoundingClientRect()) && s(), C = !1;
7170
7170
  }
7171
7171
  try {
7172
7172
  r = new IntersectionObserver(T, {
7173
- ...C,
7173
+ ...S,
7174
7174
  // Handle <iframe>s
7175
7175
  root: n.ownerDocument
7176
7176
  });
7177
7177
  } catch {
7178
- r = new IntersectionObserver(T, C);
7178
+ r = new IntersectionObserver(T, S);
7179
7179
  }
7180
7180
  r.observe(e);
7181
7181
  }
@@ -7200,8 +7200,8 @@ function ug(e, t, r, o) {
7200
7200
  s && (g = new ResizeObserver((v) => {
7201
7201
  let [y] = v;
7202
7202
  y && y.target === f && g && t && (g.unobserve(t), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
7203
- var C;
7204
- (C = g) == null || C.observe(t);
7203
+ var S;
7204
+ (S = g) == null || S.observe(t);
7205
7205
  })), r();
7206
7206
  }), f && !p && g.observe(f), t && g.observe(t));
7207
7207
  let x, w = p ? Cr(e) : null;
@@ -7299,18 +7299,18 @@ function Cg(e) {
7299
7299
  }), [m, g] = a.useState(o);
7300
7300
  xa(m, o) || g(o);
7301
7301
  const [x, w] = a.useState(null), [h, v] = a.useState(null), y = a.useCallback((F) => {
7302
- F !== A.current && (A.current = F, w(F));
7303
- }, []), C = a.useCallback((F) => {
7304
- F !== R.current && (R.current = F, v(F));
7305
- }, []), S = l || x, T = s || h, A = a.useRef(null), R = a.useRef(null), E = a.useRef(u), D = p != null, L = kn(p), M = kn(n), B = kn(f), N = a.useCallback(() => {
7306
- if (!A.current || !R.current)
7302
+ F !== R.current && (R.current = F, w(F));
7303
+ }, []), S = a.useCallback((F) => {
7304
+ F !== A.current && (A.current = F, v(F));
7305
+ }, []), C = l || x, T = s || h, R = a.useRef(null), A = a.useRef(null), E = a.useRef(u), D = p != null, L = kn(p), M = kn(n), B = kn(f), N = a.useCallback(() => {
7306
+ if (!R.current || !A.current)
7307
7307
  return;
7308
7308
  const F = {
7309
7309
  placement: t,
7310
7310
  strategy: r,
7311
7311
  middleware: m
7312
7312
  };
7313
- M.current && (F.platform = M.current), yg(A.current, R.current, F).then((z) => {
7313
+ M.current && (F.platform = M.current), yg(R.current, A.current, F).then((z) => {
7314
7314
  const I = {
7315
7315
  ...z,
7316
7316
  // The floating element's position may be recomputed while it's closed
@@ -7334,21 +7334,21 @@ function Cg(e) {
7334
7334
  fa(() => (P.current = !0, () => {
7335
7335
  P.current = !1;
7336
7336
  }), []), fa(() => {
7337
- if (S && (A.current = S), T && (R.current = T), S && T) {
7337
+ if (C && (R.current = C), T && (A.current = T), C && T) {
7338
7338
  if (L.current)
7339
- return L.current(S, T, N);
7339
+ return L.current(C, T, N);
7340
7340
  N();
7341
7341
  }
7342
- }, [S, T, N, L, D]);
7342
+ }, [C, T, N, L, D]);
7343
7343
  const Z = a.useMemo(() => ({
7344
- reference: A,
7345
- floating: R,
7344
+ reference: R,
7345
+ floating: A,
7346
7346
  setReference: y,
7347
- setFloating: C
7348
- }), [y, C]), H = a.useMemo(() => ({
7349
- reference: S,
7347
+ setFloating: S
7348
+ }), [y, S]), H = a.useMemo(() => ({
7349
+ reference: C,
7350
7350
  floating: T
7351
- }), [S, T]), O = a.useMemo(() => {
7351
+ }), [C, T]), O = a.useMemo(() => {
7352
7352
  const F = {
7353
7353
  position: r,
7354
7354
  left: 0,
@@ -7516,7 +7516,7 @@ var Fi = "PopperContent", [Bg, zg] = Bd(Fi), _d = a.forwardRef(
7516
7516
  updatePositionStrategy: g = "optimized",
7517
7517
  onPlaced: x,
7518
7518
  ...w
7519
- } = e, h = zd(Fi, r), [v, y] = a.useState(null), C = me(t, (ie) => y(ie)), [S, T] = a.useState(null), A = Ha(S), R = (A == null ? void 0 : A.width) ?? 0, E = (A == null ? void 0 : A.height) ?? 0, D = o + (l !== "center" ? "-" + l : ""), L = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, M = Array.isArray(f) ? f : [f], B = M.length > 0, N = {
7519
+ } = e, h = zd(Fi, r), [v, y] = a.useState(null), S = me(t, (ie) => y(ie)), [C, T] = a.useState(null), R = Ha(C), A = (R == null ? void 0 : R.width) ?? 0, E = (R == null ? void 0 : R.height) ?? 0, D = o + (l !== "center" ? "-" + l : ""), L = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, M = Array.isArray(f) ? f : [f], B = M.length > 0, N = {
7520
7520
  padding: L,
7521
7521
  boundary: M.filter(Vg),
7522
7522
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
@@ -7547,8 +7547,8 @@ var Fi = "PopperContent", [Bg, zg] = Bd(Fi), _d = a.forwardRef(
7547
7547
  De.setProperty("--radix-popper-available-width", `${Le}px`), De.setProperty("--radix-popper-available-height", `${ke}px`), De.setProperty("--radix-popper-anchor-width", `${Ae}px`), De.setProperty("--radix-popper-anchor-height", `${_e}px`);
7548
7548
  }
7549
7549
  }),
7550
- S && Dg({ element: S, padding: c }),
7551
- Ng({ arrowWidth: R, arrowHeight: E }),
7550
+ C && Dg({ element: C, padding: c }),
7551
+ Ng({ arrowWidth: A, arrowHeight: E }),
7552
7552
  m && Pg({ strategy: "referenceHidden", ...N })
7553
7553
  ]
7554
7554
  }), [z, I] = Zd(H), se = Wt(x);
@@ -7597,7 +7597,7 @@ var Fi = "PopperContent", [Bg, zg] = Bd(Fi), _d = a.forwardRef(
7597
7597
  "data-side": z,
7598
7598
  "data-align": I,
7599
7599
  ...w,
7600
- ref: C,
7600
+ ref: S,
7601
7601
  style: {
7602
7602
  ...w.style,
7603
7603
  // if the PopperContent hasn't been placed yet (not all measurements done)
@@ -7962,12 +7962,12 @@ var Yd = o2(), En = function() {
7962
7962
  onScrollCapture: En,
7963
7963
  onWheelCapture: En,
7964
7964
  onTouchMoveCapture: En
7965
- }), n = o[0], l = o[1], s = e.forwardProps, c = e.children, p = e.className, f = e.removeScrollBar, u = e.enabled, b = e.shards, m = e.sideCar, g = e.noRelative, x = e.noIsolation, w = e.inert, h = e.allowPinchZoom, v = e.as, y = v === void 0 ? "div" : v, C = e.gapMode, S = Ud(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), T = m, A = e2([r, t]), R = Vt(Vt({}, S), n);
7965
+ }), n = o[0], l = o[1], s = e.forwardProps, c = e.children, p = e.className, f = e.removeScrollBar, u = e.enabled, b = e.shards, m = e.sideCar, g = e.noRelative, x = e.noIsolation, w = e.inert, h = e.allowPinchZoom, v = e.as, y = v === void 0 ? "div" : v, S = e.gapMode, C = Ud(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), T = m, R = e2([r, t]), A = Vt(Vt({}, C), n);
7966
7966
  return a.createElement(
7967
7967
  a.Fragment,
7968
7968
  null,
7969
- u && a.createElement(T, { sideCar: Yd, removeScrollBar: f, shards: b, noRelative: g, noIsolation: x, inert: w, setCallbacks: l, allowPinchZoom: !!h, lockRef: r, gapMode: C }),
7970
- s ? a.cloneElement(a.Children.only(c), Vt(Vt({}, R), { ref: A })) : a.createElement(y, Vt({}, R, { className: p, ref: A }), c)
7969
+ u && a.createElement(T, { sideCar: Yd, removeScrollBar: f, shards: b, noRelative: g, noIsolation: x, inert: w, setCallbacks: l, allowPinchZoom: !!h, lockRef: r, gapMode: S }),
7970
+ s ? a.cloneElement(a.Children.only(c), Vt(Vt({}, A), { ref: R })) : a.createElement(y, Vt({}, A, { className: p, ref: R }), c)
7971
7971
  );
7972
7972
  });
7973
7973
  Za.defaultProps = {
@@ -8213,21 +8213,21 @@ function T2(e) {
8213
8213
  var c = a.useCallback(function(w, h) {
8214
8214
  if ("touches" in w && w.touches.length === 2 || w.type === "wheel" && w.ctrlKey)
8215
8215
  return !s.current.allowPinchZoom;
8216
- var v = oa(w), y = r.current, C = "deltaX" in w ? w.deltaX : y[0] - v[0], S = "deltaY" in w ? w.deltaY : y[1] - v[1], T, A = w.target, R = Math.abs(C) > Math.abs(S) ? "h" : "v";
8217
- if ("touches" in w && R === "h" && A.type === "range")
8216
+ var v = oa(w), y = r.current, S = "deltaX" in w ? w.deltaX : y[0] - v[0], C = "deltaY" in w ? w.deltaY : y[1] - v[1], T, R = w.target, A = Math.abs(S) > Math.abs(C) ? "h" : "v";
8217
+ if ("touches" in w && A === "h" && R.type === "range")
8218
8218
  return !1;
8219
- var E = window.getSelection(), D = E && E.anchorNode, L = D ? D === A || D.contains(A) : !1;
8219
+ var E = window.getSelection(), D = E && E.anchorNode, L = D ? D === R || D.contains(R) : !1;
8220
8220
  if (L)
8221
8221
  return !1;
8222
- var M = fs(R, A);
8222
+ var M = fs(A, R);
8223
8223
  if (!M)
8224
8224
  return !0;
8225
- if (M ? T = R : (T = R === "v" ? "h" : "v", M = fs(R, A)), !M)
8225
+ if (M ? T = A : (T = A === "v" ? "h" : "v", M = fs(A, R)), !M)
8226
8226
  return !1;
8227
- if (!o.current && "changedTouches" in w && (C || S) && (o.current = T), !T)
8227
+ if (!o.current && "changedTouches" in w && (S || C) && (o.current = T), !T)
8228
8228
  return !0;
8229
8229
  var B = o.current || T;
8230
- return k2(B, h, w, B === "h" ? C : S);
8230
+ return k2(B, h, w, B === "h" ? S : C);
8231
8231
  }, []), p = a.useCallback(function(w) {
8232
8232
  var h = w;
8233
8233
  if (!(!Zr.length || Zr[Zr.length - 1] !== l)) {
@@ -8239,17 +8239,17 @@ function T2(e) {
8239
8239
  return;
8240
8240
  }
8241
8241
  if (!y) {
8242
- var C = (s.current.shards || []).map(bs).filter(Boolean).filter(function(T) {
8242
+ var S = (s.current.shards || []).map(bs).filter(Boolean).filter(function(T) {
8243
8243
  return T.contains(h.target);
8244
- }), S = C.length > 0 ? c(h, C[0]) : !s.current.noIsolation;
8245
- S && h.cancelable && h.preventDefault();
8244
+ }), C = S.length > 0 ? c(h, S[0]) : !s.current.noIsolation;
8245
+ C && h.cancelable && h.preventDefault();
8246
8246
  }
8247
8247
  }
8248
8248
  }, []), f = a.useCallback(function(w, h, v, y) {
8249
- var C = { name: w, delta: h, target: v, should: y, shadowParent: M2(v) };
8250
- t.current.push(C), setTimeout(function() {
8251
- t.current = t.current.filter(function(S) {
8252
- return S !== C;
8249
+ var S = { name: w, delta: h, target: v, should: y, shadowParent: M2(v) };
8250
+ t.current.push(S), setTimeout(function() {
8251
+ t.current = t.current.filter(function(C) {
8252
+ return C !== S;
8253
8253
  });
8254
8254
  }, 1);
8255
8255
  }, []), u = a.useCallback(function(w) {
@@ -8307,7 +8307,7 @@ var D2 = [" ", "Enter", "ArrowUp", "ArrowDown"], I2 = [" ", "Enter"], kr = "Sele
8307
8307
  disabled: m,
8308
8308
  required: g,
8309
8309
  form: x
8310
- } = e, w = ja(t), [h, v] = a.useState(null), [y, C] = a.useState(null), [S, T] = a.useState(!1), A = Lo(f), [R, E] = Dt({
8310
+ } = e, w = ja(t), [h, v] = a.useState(null), [y, S] = a.useState(null), [C, T] = a.useState(!1), R = Lo(f), [A, E] = Dt({
8311
8311
  prop: o,
8312
8312
  defaultProp: n ?? !1,
8313
8313
  onChange: l,
@@ -8326,15 +8326,15 @@ var D2 = [" ", "Enter", "ArrowUp", "ArrowDown"], I2 = [" ", "Enter"], kr = "Sele
8326
8326
  trigger: h,
8327
8327
  onTriggerChange: v,
8328
8328
  valueNode: y,
8329
- onValueNodeChange: C,
8330
- valueNodeHasChildren: S,
8329
+ onValueNodeChange: S,
8330
+ valueNodeHasChildren: C,
8331
8331
  onValueNodeHasChildrenChange: T,
8332
8332
  contentId: vt(),
8333
8333
  value: D,
8334
8334
  onValueChange: L,
8335
- open: R,
8335
+ open: A,
8336
8336
  onOpenChange: E,
8337
- dir: A,
8337
+ dir: R,
8338
8338
  triggerPointerDownPosRef: M,
8339
8339
  disabled: m,
8340
8340
  children: [
@@ -8381,7 +8381,7 @@ e0.displayName = kr;
8381
8381
  var t0 = "SelectTrigger", r0 = a.forwardRef(
8382
8382
  (e, t) => {
8383
8383
  const { __scopeSelect: r, disabled: o = !1, ...n } = e, l = ja(r), s = pr(t0, r), c = s.disabled || o, p = me(t, s.onTriggerChange), f = Ga(r), u = a.useRef("touch"), [b, m, g] = k0((w) => {
8384
- const h = f().filter((C) => !C.disabled), v = h.find((C) => C.value === s.value), y = A0(h, w, v);
8384
+ const h = f().filter((S) => !S.disabled), v = h.find((S) => S.value === s.value), y = A0(h, w, v);
8385
8385
  y !== void 0 && s.onValueChange(y.value);
8386
8386
  }), x = (w) => {
8387
8387
  c || (s.onOpenChange(!0), g()), w && (s.triggerPointerDownPosRef.current = {
@@ -8486,12 +8486,12 @@ var Rt = 10, [s0, fr] = co(Ar), N2 = "SelectContentImpl", _2 = /* @__PURE__ */ S
8486
8486
  avoidCollisions: h,
8487
8487
  //
8488
8488
  ...v
8489
- } = e, y = pr(Ar, r), [C, S] = a.useState(null), [T, A] = a.useState(null), R = me(t, (W) => S(W)), [E, D] = a.useState(null), [L, M] = a.useState(
8489
+ } = e, y = pr(Ar, r), [S, C] = a.useState(null), [T, R] = a.useState(null), A = me(t, (W) => C(W)), [E, D] = a.useState(null), [L, M] = a.useState(
8490
8490
  null
8491
8491
  ), B = Ga(r), [N, P] = a.useState(!1), Z = a.useRef(!1);
8492
8492
  a.useEffect(() => {
8493
- if (C) return Oa(C);
8494
- }, [C]), Ia();
8493
+ if (S) return Oa(S);
8494
+ }, [S]), Ia();
8495
8495
  const H = a.useCallback(
8496
8496
  (W) => {
8497
8497
  const [oe, ..._] = B().map((ae) => ae.ref.current), [ee] = _.slice(-1), te = document.activeElement;
@@ -8500,15 +8500,15 @@ var Rt = 10, [s0, fr] = co(Ar), N2 = "SelectContentImpl", _2 = /* @__PURE__ */ S
8500
8500
  },
8501
8501
  [B, T]
8502
8502
  ), O = a.useCallback(
8503
- () => H([E, C]),
8504
- [H, E, C]
8503
+ () => H([E, S]),
8504
+ [H, E, S]
8505
8505
  );
8506
8506
  a.useEffect(() => {
8507
8507
  N && O();
8508
8508
  }, [N, O]);
8509
8509
  const { onOpenChange: F, triggerPointerDownPosRef: z } = y;
8510
8510
  a.useEffect(() => {
8511
- if (C) {
8511
+ if (S) {
8512
8512
  let W = { x: 0, y: 0 };
8513
8513
  const oe = (ee) => {
8514
8514
  var te, ae;
@@ -8517,13 +8517,13 @@ var Rt = 10, [s0, fr] = co(Ar), N2 = "SelectContentImpl", _2 = /* @__PURE__ */ S
8517
8517
  y: Math.abs(Math.round(ee.pageY) - (((ae = z.current) == null ? void 0 : ae.y) ?? 0))
8518
8518
  };
8519
8519
  }, _ = (ee) => {
8520
- W.x <= 10 && W.y <= 10 ? ee.preventDefault() : C.contains(ee.target) || F(!1), document.removeEventListener("pointermove", oe), z.current = null;
8520
+ W.x <= 10 && W.y <= 10 ? ee.preventDefault() : S.contains(ee.target) || F(!1), document.removeEventListener("pointermove", oe), z.current = null;
8521
8521
  };
8522
8522
  return z.current !== null && (document.addEventListener("pointermove", oe), document.addEventListener("pointerup", _, { capture: !0, once: !0 })), () => {
8523
8523
  document.removeEventListener("pointermove", oe), document.removeEventListener("pointerup", _, { capture: !0 });
8524
8524
  };
8525
8525
  }
8526
- }, [C, F, z]), a.useEffect(() => {
8526
+ }, [S, F, z]), a.useEffect(() => {
8527
8527
  const W = () => F(!1);
8528
8528
  return window.addEventListener("blur", W), window.addEventListener("resize", W), () => {
8529
8529
  window.removeEventListener("blur", W), window.removeEventListener("resize", W);
@@ -8538,7 +8538,7 @@ var Rt = 10, [s0, fr] = co(Ar), N2 = "SelectContentImpl", _2 = /* @__PURE__ */ S
8538
8538
  (y.value !== void 0 && y.value === oe || ee) && (D(W), ee && (Z.current = !0));
8539
8539
  },
8540
8540
  [y.value]
8541
- ), J = a.useCallback(() => C == null ? void 0 : C.focus(), [C]), ve = a.useCallback(
8541
+ ), J = a.useCallback(() => S == null ? void 0 : S.focus(), [S]), ve = a.useCallback(
8542
8542
  (W, oe, _) => {
8543
8543
  const ee = !Z.current && !_;
8544
8544
  (y.value !== void 0 && y.value === oe || ee) && M(W);
@@ -8560,9 +8560,9 @@ var Rt = 10, [s0, fr] = co(Ar), N2 = "SelectContentImpl", _2 = /* @__PURE__ */ S
8560
8560
  s0,
8561
8561
  {
8562
8562
  scope: r,
8563
- content: C,
8563
+ content: S,
8564
8564
  viewport: T,
8565
- onViewportChange: A,
8565
+ onViewportChange: R,
8566
8566
  itemRefCallback: de,
8567
8567
  selectedItem: E,
8568
8568
  onItemLeave: J,
@@ -8604,7 +8604,7 @@ var Rt = 10, [s0, fr] = co(Ar), N2 = "SelectContentImpl", _2 = /* @__PURE__ */ S
8604
8604
  ...v,
8605
8605
  ...re,
8606
8606
  onPlaced: () => P(!0),
8607
- ref: R,
8607
+ ref: A,
8608
8608
  style: {
8609
8609
  // flex layout so we can place the scroll buttons properly
8610
8610
  display: "flex",
@@ -8636,11 +8636,11 @@ var Rt = 10, [s0, fr] = co(Ar), N2 = "SelectContentImpl", _2 = /* @__PURE__ */ S
8636
8636
  );
8637
8637
  c0.displayName = N2;
8638
8638
  var W2 = "SelectItemAlignedPosition", d0 = a.forwardRef((e, t) => {
8639
- const { __scopeSelect: r, onPlaced: o, ...n } = e, l = pr(Ar, r), s = fr(Ar, r), [c, p] = a.useState(null), [f, u] = a.useState(null), b = me(t, (R) => u(R)), m = Ga(r), g = a.useRef(!1), x = a.useRef(!0), { viewport: w, selectedItem: h, selectedItemText: v, focusSelectedItem: y } = s, C = a.useCallback(() => {
8639
+ const { __scopeSelect: r, onPlaced: o, ...n } = e, l = pr(Ar, r), s = fr(Ar, r), [c, p] = a.useState(null), [f, u] = a.useState(null), b = me(t, (A) => u(A)), m = Ga(r), g = a.useRef(!1), x = a.useRef(!0), { viewport: w, selectedItem: h, selectedItemText: v, focusSelectedItem: y } = s, S = a.useCallback(() => {
8640
8640
  if (l.trigger && l.valueNode && c && f && w && h && v) {
8641
- const R = l.trigger.getBoundingClientRect(), E = f.getBoundingClientRect(), D = l.valueNode.getBoundingClientRect(), L = v.getBoundingClientRect();
8641
+ const A = l.trigger.getBoundingClientRect(), E = f.getBoundingClientRect(), D = l.valueNode.getBoundingClientRect(), L = v.getBoundingClientRect();
8642
8642
  if (l.dir !== "rtl") {
8643
- const te = L.left - E.left, ae = D.left - te, ie = R.left - ae, ye = R.width + ie, Le = Math.max(ye, E.width), ke = window.innerWidth - Rt, Ae = $l(ae, [
8643
+ const te = L.left - E.left, ae = D.left - te, ie = A.left - ae, ye = A.width + ie, Le = Math.max(ye, E.width), ke = window.innerWidth - Rt, Ae = $l(ae, [
8644
8644
  Rt,
8645
8645
  // Prevents the content from going off the starting edge of the
8646
8646
  // viewport. It may still go off the ending edge, but this can be
@@ -8651,13 +8651,13 @@ var W2 = "SelectItemAlignedPosition", d0 = a.forwardRef((e, t) => {
8651
8651
  ]);
8652
8652
  c.style.minWidth = ye + "px", c.style.left = Ae + "px";
8653
8653
  } else {
8654
- const te = E.right - L.right, ae = window.innerWidth - D.right - te, ie = window.innerWidth - R.right - ae, ye = R.width + ie, Le = Math.max(ye, E.width), ke = window.innerWidth - Rt, Ae = $l(ae, [
8654
+ const te = E.right - L.right, ae = window.innerWidth - D.right - te, ie = window.innerWidth - A.right - ae, ye = A.width + ie, Le = Math.max(ye, E.width), ke = window.innerWidth - Rt, Ae = $l(ae, [
8655
8655
  Rt,
8656
8656
  Math.max(Rt, ke - Le)
8657
8657
  ]);
8658
8658
  c.style.minWidth = ye + "px", c.style.right = Ae + "px";
8659
8659
  }
8660
- const M = m(), B = window.innerHeight - Rt * 2, N = w.scrollHeight, P = window.getComputedStyle(f), Z = parseInt(P.borderTopWidth, 10), H = parseInt(P.paddingTop, 10), O = parseInt(P.borderBottomWidth, 10), F = parseInt(P.paddingBottom, 10), z = Z + H + N + F + O, I = Math.min(h.offsetHeight * 5, z), se = window.getComputedStyle(w), de = parseInt(se.paddingTop, 10), J = parseInt(se.paddingBottom, 10), ve = R.top + R.height / 2 - Rt, le = B - ve, re = h.offsetHeight / 2, W = h.offsetTop + re, oe = Z + H + W, _ = z - oe;
8660
+ const M = m(), B = window.innerHeight - Rt * 2, N = w.scrollHeight, P = window.getComputedStyle(f), Z = parseInt(P.borderTopWidth, 10), H = parseInt(P.paddingTop, 10), O = parseInt(P.borderBottomWidth, 10), F = parseInt(P.paddingBottom, 10), z = Z + H + N + F + O, I = Math.min(h.offsetHeight * 5, z), se = window.getComputedStyle(w), de = parseInt(se.paddingTop, 10), J = parseInt(se.paddingBottom, 10), ve = A.top + A.height / 2 - Rt, le = B - ve, re = h.offsetHeight / 2, W = h.offsetTop + re, oe = Z + H + W, _ = z - oe;
8661
8661
  if (oe <= ve) {
8662
8662
  const te = M.length > 0 && h === M[M.length - 1].ref.current;
8663
8663
  c.style.bottom = "0px";
@@ -8691,16 +8691,16 @@ var W2 = "SelectItemAlignedPosition", d0 = a.forwardRef((e, t) => {
8691
8691
  l.dir,
8692
8692
  o
8693
8693
  ]);
8694
- Je(() => C(), [C]);
8695
- const [S, T] = a.useState();
8694
+ Je(() => S(), [S]);
8695
+ const [C, T] = a.useState();
8696
8696
  Je(() => {
8697
8697
  f && T(window.getComputedStyle(f).zIndex);
8698
8698
  }, [f]);
8699
- const A = a.useCallback(
8700
- (R) => {
8701
- R && x.current === !0 && (C(), y == null || y(), x.current = !1);
8699
+ const R = a.useCallback(
8700
+ (A) => {
8701
+ A && x.current === !0 && (S(), y == null || y(), x.current = !1);
8702
8702
  },
8703
- [C, y]
8703
+ [S, y]
8704
8704
  );
8705
8705
  return /* @__PURE__ */ i(
8706
8706
  Z2,
@@ -8708,7 +8708,7 @@ var W2 = "SelectItemAlignedPosition", d0 = a.forwardRef((e, t) => {
8708
8708
  scope: r,
8709
8709
  contentWrapper: c,
8710
8710
  shouldExpandOnScrollRef: g,
8711
- onScrollButtonChange: A,
8711
+ onScrollButtonChange: R,
8712
8712
  children: /* @__PURE__ */ i(
8713
8713
  "div",
8714
8714
  {
@@ -8717,7 +8717,7 @@ var W2 = "SelectItemAlignedPosition", d0 = a.forwardRef((e, t) => {
8717
8717
  display: "flex",
8718
8718
  flexDirection: "column",
8719
8719
  position: "fixed",
8720
- zIndex: S
8720
+ zIndex: C
8721
8721
  },
8722
8722
  children: /* @__PURE__ */ i(
8723
8723
  ne.div,
@@ -8809,8 +8809,8 @@ var [Z2, Li] = co(Ar, {}), ei = "SelectViewport", p0 = a.forwardRef(
8809
8809
  if (g > 0) {
8810
8810
  const x = window.innerHeight - Rt * 2, w = parseFloat(b.style.minHeight), h = parseFloat(b.style.height), v = Math.max(w, h);
8811
8811
  if (v < x) {
8812
- const y = v + g, C = Math.min(x, y), S = y - C;
8813
- b.style.height = C + "px", b.style.bottom === "0px" && (u.scrollTop = S > 0 ? S : 0, b.style.justifyContent = "flex-end");
8812
+ const y = v + g, S = Math.min(x, y), C = y - S;
8813
+ b.style.height = S + "px", b.style.bottom === "0px" && (u.scrollTop = C > 0 ? C : 0, b.style.justifyContent = "flex-end");
8814
8814
  }
8815
8815
  }
8816
8816
  }
@@ -8847,8 +8847,8 @@ var Sa = "SelectItem", [j2, m0] = co(Sa), g0 = a.forwardRef(
8847
8847
  } = e, c = pr(Sa, r), p = fr(Sa, r), f = c.value === o, [u, b] = a.useState(l ?? ""), [m, g] = a.useState(!1), x = me(
8848
8848
  t,
8849
8849
  (y) => {
8850
- var C;
8851
- return (C = p.itemRefCallback) == null ? void 0 : C.call(p, y, o, n);
8850
+ var S;
8851
+ return (S = p.itemRefCallback) == null ? void 0 : S.call(p, y, o, n);
8852
8852
  }
8853
8853
  ), w = vt(), h = a.useRef("touch"), v = () => {
8854
8854
  n || (c.onValueChange(o), c.onOpenChange(!1));
@@ -8866,7 +8866,7 @@ var Sa = "SelectItem", [j2, m0] = co(Sa), g0 = a.forwardRef(
8866
8866
  textId: w,
8867
8867
  isSelected: f,
8868
8868
  onItemTextChange: a.useCallback((y) => {
8869
- b((C) => C || ((y == null ? void 0 : y.textContent) ?? "").trim());
8869
+ b((S) => S || ((y == null ? void 0 : y.textContent) ?? "").trim());
8870
8870
  }, []),
8871
8871
  children: /* @__PURE__ */ i(
8872
8872
  $a.ItemSlot,
@@ -8900,16 +8900,16 @@ var Sa = "SelectItem", [j2, m0] = co(Sa), g0 = a.forwardRef(
8900
8900
  h.current = y.pointerType;
8901
8901
  }),
8902
8902
  onPointerMove: $(s.onPointerMove, (y) => {
8903
- var C;
8904
- h.current = y.pointerType, n ? (C = p.onItemLeave) == null || C.call(p) : h.current === "mouse" && y.currentTarget.focus({ preventScroll: !0 });
8903
+ var S;
8904
+ h.current = y.pointerType, n ? (S = p.onItemLeave) == null || S.call(p) : h.current === "mouse" && y.currentTarget.focus({ preventScroll: !0 });
8905
8905
  }),
8906
8906
  onPointerLeave: $(s.onPointerLeave, (y) => {
8907
- var C;
8908
- y.currentTarget === document.activeElement && ((C = p.onItemLeave) == null || C.call(p));
8907
+ var S;
8908
+ y.currentTarget === document.activeElement && ((S = p.onItemLeave) == null || S.call(p));
8909
8909
  }),
8910
8910
  onKeyDown: $(s.onKeyDown, (y) => {
8911
- var S;
8912
- ((S = p.searchRef) == null ? void 0 : S.current) !== "" && y.key === " " || (I2.includes(y.key) && v(), y.key === " " && y.preventDefault());
8911
+ var C;
8912
+ ((C = p.searchRef) == null ? void 0 : C.current) !== "" && y.key === " " || (I2.includes(y.key) && v(), y.key === " " && y.preventDefault());
8913
8913
  })
8914
8914
  }
8915
8915
  )
@@ -9208,15 +9208,15 @@ var Eo = "Tooltip", [gw, No] = Ua(Eo), T0 = (e) => {
9208
9208
  } = e, p = Bi(Eo, e.__scopeTooltip), f = Ka(t), [u, b] = a.useState(null), m = vt(), g = a.useRef(0), x = s ?? p.disableHoverableContent, w = c ?? p.delayDuration, h = a.useRef(!1), [v, y] = Dt({
9209
9209
  prop: o,
9210
9210
  defaultProp: n ?? !1,
9211
- onChange: (R) => {
9212
- R ? (p.onOpen(), document.dispatchEvent(new CustomEvent(ai))) : p.onClose(), l == null || l(R);
9211
+ onChange: (A) => {
9212
+ A ? (p.onOpen(), document.dispatchEvent(new CustomEvent(ai))) : p.onClose(), l == null || l(A);
9213
9213
  },
9214
9214
  caller: Eo
9215
- }), C = a.useMemo(() => v ? h.current ? "delayed-open" : "instant-open" : "closed", [v]), S = a.useCallback(() => {
9215
+ }), S = a.useMemo(() => v ? h.current ? "delayed-open" : "instant-open" : "closed", [v]), C = a.useCallback(() => {
9216
9216
  window.clearTimeout(g.current), g.current = 0, h.current = !1, y(!0);
9217
9217
  }, [y]), T = a.useCallback(() => {
9218
9218
  window.clearTimeout(g.current), g.current = 0, y(!1);
9219
- }, [y]), A = a.useCallback(() => {
9219
+ }, [y]), R = a.useCallback(() => {
9220
9220
  window.clearTimeout(g.current), g.current = window.setTimeout(() => {
9221
9221
  h.current = !0, y(!0), g.current = 0;
9222
9222
  }, w);
@@ -9229,16 +9229,16 @@ var Eo = "Tooltip", [gw, No] = Ua(Eo), T0 = (e) => {
9229
9229
  scope: t,
9230
9230
  contentId: m,
9231
9231
  open: v,
9232
- stateAttribute: C,
9232
+ stateAttribute: S,
9233
9233
  trigger: u,
9234
9234
  onTriggerChange: b,
9235
9235
  onTriggerEnter: a.useCallback(() => {
9236
- p.isOpenDelayedRef.current ? A() : S();
9237
- }, [p.isOpenDelayedRef, A, S]),
9236
+ p.isOpenDelayedRef.current ? R() : C();
9237
+ }, [p.isOpenDelayedRef, R, C]),
9238
9238
  onTriggerLeave: a.useCallback(() => {
9239
9239
  x ? T() : (window.clearTimeout(g.current), g.current = 0);
9240
9240
  }, [T, x]),
9241
- onOpen: S,
9241
+ onOpen: C,
9242
9242
  onClose: T,
9243
9243
  disableHoverableContent: x,
9244
9244
  children: r
@@ -9292,7 +9292,7 @@ var ro = "TooltipContent", D0 = a.forwardRef(
9292
9292
  c(null), b(!1);
9293
9293
  }, [b]), g = a.useCallback(
9294
9294
  (x, w) => {
9295
- const h = x.currentTarget, v = { x: x.clientX, y: x.clientY }, y = kw(v, h.getBoundingClientRect()), C = Aw(v, y), S = Rw(w.getBoundingClientRect()), T = Tw([...C, ...S]);
9295
+ const h = x.currentTarget, v = { x: x.clientX, y: x.clientY }, y = kw(v, h.getBoundingClientRect()), S = Aw(v, y), C = Rw(w.getBoundingClientRect()), T = Tw([...S, ...C]);
9296
9296
  c(T), b(!0);
9297
9297
  },
9298
9298
  [b]
@@ -9307,8 +9307,8 @@ var ro = "TooltipContent", D0 = a.forwardRef(
9307
9307
  }, [p, u, g, m]), a.useEffect(() => {
9308
9308
  if (s) {
9309
9309
  const x = (w) => {
9310
- const h = w.target, v = { x: w.clientX, y: w.clientY }, y = (p == null ? void 0 : p.contains(h)) || (u == null ? void 0 : u.contains(h)), C = !Ew(v, s);
9311
- y ? m() : C && (m(), f());
9310
+ const h = w.target, v = { x: w.clientX, y: w.clientY }, y = (p == null ? void 0 : p.contains(h)) || (u == null ? void 0 : u.contains(h)), S = !Ew(v, s);
9311
+ y ? m() : S && (m(), f());
9312
9312
  };
9313
9313
  return document.addEventListener("pointermove", x), () => document.removeEventListener("pointermove", x);
9314
9314
  }
@@ -9762,7 +9762,7 @@ const _w = {
9762
9762
  const v = typeof l == "number" ? { width: l, minWidth: l } : void 0, y = (F) => /* @__PURE__ */ k(Xw, { value: F.value, disabled: F.disabled, children: [
9763
9763
  /* @__PURE__ */ i(qw, { children: F.label }),
9764
9764
  /* @__PURE__ */ i(Jw, { children: /* @__PURE__ */ i(pw, { children: /* @__PURE__ */ i(dt, { size: 13, weight: "bold" }) }) })
9765
- ] }, F.value), C = u !== void 0, [S, T] = X(b), A = C ? u : S, R = (O = e.find((F) => F.value === A)) == null ? void 0 : O.label, [E, D] = X(o), L = r ?? E, M = Xe(null), [B, N] = X(!1);
9765
+ ] }, F.value), S = u !== void 0, [C, T] = X(b), R = S ? u : C, A = (O = e.find((F) => F.value === R)) == null ? void 0 : O.label, [E, D] = X(o), L = r ?? E, M = Xe(null), [B, N] = X(!1);
9766
9766
  Ye(() => {
9767
9767
  const F = M.current;
9768
9768
  if (!F || typeof globalThis.ResizeObserver > "u") return;
@@ -9770,9 +9770,9 @@ const _w = {
9770
9770
  z();
9771
9771
  const I = new globalThis.ResizeObserver(z);
9772
9772
  return I.observe(F), () => I.disconnect();
9773
- }, [R]);
9773
+ }, [A]);
9774
9774
  const P = (F) => {
9775
- C || T(F), m == null || m(F);
9775
+ S || T(F), m == null || m(F);
9776
9776
  }, Z = (F) => {
9777
9777
  r === void 0 && D(F), n == null || n(F);
9778
9778
  }, H = /* @__PURE__ */ k(
@@ -9782,7 +9782,7 @@ const _w = {
9782
9782
  id: f,
9783
9783
  "aria-describedby": g,
9784
9784
  "aria-invalid": x ?? s,
9785
- "data-filled": A && !s ? "" : void 0,
9785
+ "data-filled": R && !s ? "" : void 0,
9786
9786
  ownerState: { size: c, error: !!s },
9787
9787
  className: p,
9788
9788
  children: [
@@ -9792,7 +9792,7 @@ const _w = {
9792
9792
  }
9793
9793
  );
9794
9794
  return /* @__PURE__ */ k(ew, { value: u, defaultValue: b, open: L, onOpenChange: Z, onValueChange: P, ...w, children: [
9795
- R ? /* @__PURE__ */ i(Hi, { content: R, disabled: !B, children: H }) : H,
9795
+ A ? /* @__PURE__ */ i(Hi, { content: A, disabled: !B, children: H }) : H,
9796
9796
  /* @__PURE__ */ i(aw, { children: /* @__PURE__ */ i(Ue, { children: /* @__PURE__ */ i(
9797
9797
  Kw,
9798
9798
  {
@@ -10294,11 +10294,11 @@ const cv = {
10294
10294
  "aria-describedby": x,
10295
10295
  "aria-invalid": w
10296
10296
  }, h) => {
10297
- const v = typeof b == "number" ? { width: b, minWidth: b } : void 0, [y, C] = X(!1), [S, T] = X(""), [A, R] = X(0), E = Xe(null), D = e.find((P) => P.value === t), L = ue(
10298
- () => e.filter((P) => P.label.toLowerCase().includes(S.toLowerCase())),
10299
- [e, S]
10297
+ const v = typeof b == "number" ? { width: b, minWidth: b } : void 0, [y, S] = X(!1), [C, T] = X(""), [R, A] = X(0), E = Xe(null), D = e.find((P) => P.value === t), L = ue(
10298
+ () => e.filter((P) => P.label.toLowerCase().includes(C.toLowerCase())),
10299
+ [e, C]
10300
10300
  ), M = (P) => {
10301
- C(P), P || (T(""), R(0));
10301
+ S(P), P || (T(""), A(0));
10302
10302
  }, B = (P) => {
10303
10303
  r == null || r(P), M(!1);
10304
10304
  }, N = (P) => {
@@ -10306,7 +10306,7 @@ const cv = {
10306
10306
  P.preventDefault(), M(!0);
10307
10307
  return;
10308
10308
  }
10309
- y && (P.key === "Escape" && M(!1), P.key === "ArrowDown" && (P.preventDefault(), R((Z) => Math.min(Z + 1, L.length - 1))), P.key === "ArrowUp" && (P.preventDefault(), R((Z) => Math.max(Z - 1, 0))), P.key === "Enter" && L[A] && (P.preventDefault(), B(L[A].value)));
10309
+ y && (P.key === "Escape" && M(!1), P.key === "ArrowDown" && (P.preventDefault(), A((Z) => Math.min(Z + 1, L.length - 1))), P.key === "ArrowUp" && (P.preventDefault(), A((Z) => Math.max(Z - 1, 0))), P.key === "Enter" && L[R] && (P.preventDefault(), B(L[R].value)));
10310
10310
  };
10311
10311
  return /* @__PURE__ */ k(Mr, { open: y, onOpenChange: M, children: [
10312
10312
  /* @__PURE__ */ i(Wo, { asChild: !0, children: /* @__PURE__ */ k(
@@ -10362,9 +10362,9 @@ const cv = {
10362
10362
  vv,
10363
10363
  {
10364
10364
  ref: E,
10365
- value: S,
10365
+ value: C,
10366
10366
  onChange: (P) => {
10367
- T(P.target.value), R(0);
10367
+ T(P.target.value), A(0);
10368
10368
  },
10369
10369
  placeholder: n
10370
10370
  }
@@ -10383,8 +10383,8 @@ const cv = {
10383
10383
  role: "option",
10384
10384
  "aria-selected": O.value === t,
10385
10385
  disabled: O.disabled,
10386
- ownerState: { selected: O.value === t, active: A === F },
10387
- onMouseEnter: () => R(F),
10386
+ ownerState: { selected: O.value === t, active: R === F },
10387
+ onMouseEnter: () => A(F),
10388
10388
  onClick: () => B(O.value),
10389
10389
  children: [
10390
10390
  O.label,
@@ -10791,11 +10791,11 @@ const $r = (e) => Array.from(new Set(e)), Ev = {
10791
10791
  commitMode: h = "change",
10792
10792
  footer: v,
10793
10793
  applyLabel: y = "Apply",
10794
- cancelLabel: C,
10795
- clearLabel: S,
10794
+ cancelLabel: S,
10795
+ clearLabel: C,
10796
10796
  applyVariant: T = "outline",
10797
- cancelVariant: A,
10798
- clearVariant: R,
10797
+ cancelVariant: R,
10798
+ clearVariant: A,
10799
10799
  className: E,
10800
10800
  id: D,
10801
10801
  "aria-describedby": L,
@@ -10818,7 +10818,7 @@ const $r = (e) => Array.from(new Set(e)), Ev = {
10818
10818
  N ? J($r(be)) : Le(be);
10819
10819
  }, _e = () => {
10820
10820
  Le(de), n == null || n($r(de)), ke(!1);
10821
- }, De = C ?? S ?? "Cancel", He = A ?? R ?? "outline", it = () => {
10821
+ }, De = S ?? C ?? "Cancel", He = R ?? A ?? "outline", it = () => {
10822
10822
  J(re), ke(!1);
10823
10823
  }, Be = (G) => {
10824
10824
  if (!P && ["ArrowDown", "Enter", " "].includes(G.key)) {
@@ -11292,17 +11292,17 @@ const py = {
11292
11292
  "aria-describedby": b,
11293
11293
  "aria-invalid": m
11294
11294
  }, g) => {
11295
- const [x, w] = X(""), [h, v] = X(!1), [y, C] = X(0), S = Xe(null), T = x.trim().toLowerCase(), A = ue(
11295
+ const [x, w] = X(""), [h, v] = X(!1), [y, S] = X(0), C = Xe(null), T = x.trim().toLowerCase(), R = ue(
11296
11296
  () => T ? r.filter((M) => M.toLowerCase().includes(T) && !e.includes(M)).slice(0, l) : [],
11297
11297
  [T, r, e, l]
11298
- ), R = h && A.length > 0, E = (M) => {
11298
+ ), A = h && R.length > 0, E = (M) => {
11299
11299
  const B = M.trim();
11300
- B && !e.includes(B) && t([...e, B]), w(""), C(0);
11300
+ B && !e.includes(B) && t([...e, B]), w(""), S(0);
11301
11301
  }, D = (M) => {
11302
11302
  var B;
11303
- M.key === "Enter" || M.key === "," ? (M.preventDefault(), R && A[y] ? E(A[y]) : o && E(x)) : M.key === "Backspace" && !x && e.length ? t(e.slice(0, -1)) : M.key === "ArrowDown" ? (M.preventDefault(), C((N) => Math.min(N + 1, A.length - 1))) : M.key === "ArrowUp" ? (M.preventDefault(), C((N) => Math.max(N - 1, 0))) : M.key === "Escape" && (v(!1), (B = S.current) == null || B.blur());
11303
+ M.key === "Enter" || M.key === "," ? (M.preventDefault(), A && R[y] ? E(R[y]) : o && E(x)) : M.key === "Backspace" && !x && e.length ? t(e.slice(0, -1)) : M.key === "ArrowDown" ? (M.preventDefault(), S((N) => Math.min(N + 1, R.length - 1))) : M.key === "ArrowUp" ? (M.preventDefault(), S((N) => Math.max(N - 1, 0))) : M.key === "Escape" && (v(!1), (B = C.current) == null || B.blur());
11304
11304
  }, L = e.length > 0;
11305
- return /* @__PURE__ */ k(Mr, { open: R, onOpenChange: (M) => {
11305
+ return /* @__PURE__ */ k(Mr, { open: A, onOpenChange: (M) => {
11306
11306
  M || v(!1);
11307
11307
  }, children: [
11308
11308
  /* @__PURE__ */ i(K0, { asChild: !0, children: /* @__PURE__ */ k(
@@ -11316,7 +11316,7 @@ const py = {
11316
11316
  className: f,
11317
11317
  onClick: () => {
11318
11318
  var M;
11319
- return !c && ((M = S.current) == null ? void 0 : M.focus());
11319
+ return !c && ((M = C.current) == null ? void 0 : M.focus());
11320
11320
  },
11321
11321
  children: [
11322
11322
  e.map((M) => /* @__PURE__ */ i(
@@ -11335,15 +11335,15 @@ const py = {
11335
11335
  /* @__PURE__ */ i(
11336
11336
  gy,
11337
11337
  {
11338
- ref: S,
11338
+ ref: C,
11339
11339
  id: u,
11340
11340
  value: x,
11341
11341
  disabled: c,
11342
11342
  placeholder: L ? void 0 : n,
11343
11343
  "aria-autocomplete": "list",
11344
- "aria-expanded": R,
11344
+ "aria-expanded": A,
11345
11345
  onChange: (M) => {
11346
- w(M.target.value), C(0);
11346
+ w(M.target.value), S(0);
11347
11347
  },
11348
11348
  onKeyDown: D,
11349
11349
  onFocus: () => v(!0),
@@ -11360,7 +11360,7 @@ const py = {
11360
11360
  sideOffset: 6,
11361
11361
  collisionPadding: St,
11362
11362
  onOpenAutoFocus: (M) => M.preventDefault(),
11363
- children: /* @__PURE__ */ i(vy, { role: "listbox", children: A.map((M, B) => /* @__PURE__ */ i(
11363
+ children: /* @__PURE__ */ i(vy, { role: "listbox", children: R.map((M, B) => /* @__PURE__ */ i(
11364
11364
  xy,
11365
11365
  {
11366
11366
  type: "button",
@@ -11370,7 +11370,7 @@ const py = {
11370
11370
  onMouseDown: (N) => {
11371
11371
  N.preventDefault(), E(M);
11372
11372
  },
11373
- onMouseEnter: () => C(B),
11373
+ onMouseEnter: () => S(B),
11374
11374
  children: M
11375
11375
  },
11376
11376
  M
@@ -11564,20 +11564,20 @@ const tM = q0, Sy = {
11564
11564
  color: "hsl(var(--bfrs-color-text-muted) / var(--tw-text-opacity, 1))"
11565
11565
  }), zy = q(
11566
11566
  ({ suggestions: e, value: t, defaultValue: r = "", onValueChange: o, onSuggestionSelect: n, renderItem: l, placeholder: s = "Search or type", emptyText: c = "No suggestions found", loading: p, disabled: f, error: u, className: b, id: m, "aria-describedby": g, "aria-invalid": x }, w) => {
11567
- const [h, v] = X(r), [y, C] = X(!1), [S, T] = X(0), A = Xe(null), R = t ?? h, E = ue(() => e, [e]), D = y && (p || E.length > 0 || R.length > 0), L = (P) => {
11568
- A.current = P, typeof w == "function" ? w(P) : w && (w.current = P);
11567
+ const [h, v] = X(r), [y, S] = X(!1), [C, T] = X(0), R = Xe(null), A = t ?? h, E = ue(() => e, [e]), D = y && (p || E.length > 0 || A.length > 0), L = (P) => {
11568
+ R.current = P, typeof w == "function" ? w(P) : w && (w.current = P);
11569
11569
  }, M = (P) => {
11570
11570
  t === void 0 && v(P), o == null || o(P);
11571
11571
  }, B = (P) => {
11572
- P.disabled || (M(P.value), n == null || n(P), C(!1));
11572
+ P.disabled || (M(P.value), n == null || n(P), S(!1));
11573
11573
  };
11574
- return /* @__PURE__ */ k(Mr, { open: D, onOpenChange: C, children: [
11574
+ return /* @__PURE__ */ k(Mr, { open: D, onOpenChange: S, children: [
11575
11575
  /* @__PURE__ */ i(K0, { asChild: !0, children: /* @__PURE__ */ i(
11576
11576
  Ay,
11577
11577
  {
11578
11578
  ref: L,
11579
11579
  id: m,
11580
- value: R,
11580
+ value: A,
11581
11581
  disabled: f,
11582
11582
  "aria-autocomplete": "list",
11583
11583
  "aria-expanded": D,
@@ -11587,11 +11587,11 @@ const tM = q0, Sy = {
11587
11587
  ownerState: { error: !!u },
11588
11588
  className: b,
11589
11589
  onChange: (P) => {
11590
- M(P.currentTarget.value), C(!0), T(0);
11590
+ M(P.currentTarget.value), S(!0), T(0);
11591
11591
  },
11592
- onFocus: () => C(!0),
11592
+ onFocus: () => S(!0),
11593
11593
  onKeyDown: (P) => {
11594
- P.key === "ArrowDown" && (P.preventDefault(), C(!0), T((Z) => Math.min(Z + 1, Math.max(E.length - 1, 0)))), P.key === "ArrowUp" && (P.preventDefault(), T((Z) => Math.max(Z - 1, 0))), P.key === "Escape" && C(!1), P.key === "Enter" && D && E[S] && (P.preventDefault(), B(E[S]));
11594
+ P.key === "ArrowDown" && (P.preventDefault(), S(!0), T((Z) => Math.min(Z + 1, Math.max(E.length - 1, 0)))), P.key === "ArrowUp" && (P.preventDefault(), T((Z) => Math.max(Z - 1, 0))), P.key === "Escape" && S(!1), P.key === "Enter" && D && E[C] && (P.preventDefault(), B(E[C]));
11595
11595
  }
11596
11596
  }
11597
11597
  ) }),
@@ -11603,7 +11603,7 @@ const tM = q0, Sy = {
11603
11603
  collisionPadding: St,
11604
11604
  onOpenAutoFocus: (P) => P.preventDefault(),
11605
11605
  children: /* @__PURE__ */ i(Ey, { role: "listbox", children: p ? /* @__PURE__ */ i(Ty, { children: /* @__PURE__ */ i(ir, { size: "sm" }) }) : E.length === 0 ? /* @__PURE__ */ i(My, { children: c }) : E.map((P, Z) => {
11606
- const H = P.value === R;
11606
+ const H = P.value === A;
11607
11607
  return /* @__PURE__ */ k(
11608
11608
  Py,
11609
11609
  {
@@ -11611,7 +11611,7 @@ const tM = q0, Sy = {
11611
11611
  role: "option",
11612
11612
  "aria-selected": H,
11613
11613
  disabled: P.disabled,
11614
- ownerState: { selected: H, active: S === Z },
11614
+ ownerState: { selected: H, active: C === Z },
11615
11615
  onMouseEnter: () => T(Z),
11616
11616
  onClick: () => B(P),
11617
11617
  children: [
@@ -11658,12 +11658,12 @@ var Zy = a.forwardRef((e, t) => {
11658
11658
  defaultProp: c ?? null,
11659
11659
  onChange: p,
11660
11660
  caller: Oo
11661
- }), [v, y] = a.useState(!1), C = Wt(f), S = J0(r), T = a.useRef(!1), [A, R] = a.useState(0);
11661
+ }), [v, y] = a.useState(!1), S = Wt(f), C = J0(r), T = a.useRef(!1), [R, A] = a.useState(0);
11662
11662
  return a.useEffect(() => {
11663
11663
  const E = m.current;
11664
11664
  if (E)
11665
- return E.addEventListener(Mn, C), () => E.removeEventListener(Mn, C);
11666
- }, [C]), /* @__PURE__ */ i(
11665
+ return E.addEventListener(Mn, S), () => E.removeEventListener(Mn, S);
11666
+ }, [S]), /* @__PURE__ */ i(
11667
11667
  Wy,
11668
11668
  {
11669
11669
  scope: r,
@@ -11677,17 +11677,17 @@ var Zy = a.forwardRef((e, t) => {
11677
11677
  ),
11678
11678
  onItemShiftTab: a.useCallback(() => y(!0), []),
11679
11679
  onFocusableItemAdd: a.useCallback(
11680
- () => R((E) => E + 1),
11680
+ () => A((E) => E + 1),
11681
11681
  []
11682
11682
  ),
11683
11683
  onFocusableItemRemove: a.useCallback(
11684
- () => R((E) => E - 1),
11684
+ () => A((E) => E - 1),
11685
11685
  []
11686
11686
  ),
11687
11687
  children: /* @__PURE__ */ i(
11688
11688
  ne.div,
11689
11689
  {
11690
- tabIndex: v || A === 0 ? -1 : 0,
11690
+ tabIndex: v || R === 0 ? -1 : 0,
11691
11691
  "data-orientation": o,
11692
11692
  ...b,
11693
11693
  ref: g,
@@ -11700,7 +11700,7 @@ var Zy = a.forwardRef((e, t) => {
11700
11700
  if (E.target === E.currentTarget && D && !v) {
11701
11701
  const L = new CustomEvent(Mn, Vy);
11702
11702
  if (E.currentTarget.dispatchEvent(L), !L.defaultPrevented) {
11703
- const M = S().filter((H) => H.focusable), B = M.find((H) => H.active), N = M.find((H) => H.id === w), Z = [B, N, ...M].filter(
11703
+ const M = C().filter((H) => H.focusable), B = M.find((H) => H.active), N = M.find((H) => H.id === w), Z = [B, N, ...M].filter(
11704
11704
  Boolean
11705
11705
  ).map((H) => H.ref.current);
11706
11706
  rp(Z, u);
@@ -11754,14 +11754,14 @@ var Zy = a.forwardRef((e, t) => {
11754
11754
  if (v !== void 0) {
11755
11755
  if (h.metaKey || h.ctrlKey || h.altKey || h.shiftKey) return;
11756
11756
  h.preventDefault();
11757
- let C = m().filter((S) => S.focusable).map((S) => S.ref.current);
11758
- if (v === "last") C.reverse();
11757
+ let S = m().filter((C) => C.focusable).map((C) => C.ref.current);
11758
+ if (v === "last") S.reverse();
11759
11759
  else if (v === "prev" || v === "next") {
11760
- v === "prev" && C.reverse();
11761
- const S = C.indexOf(h.currentTarget);
11762
- C = u.loop ? Uy(C, S + 1) : C.slice(S + 1);
11760
+ v === "prev" && S.reverse();
11761
+ const C = S.indexOf(h.currentTarget);
11762
+ S = u.loop ? Uy(S, C + 1) : S.slice(C + 1);
11763
11763
  }
11764
- setTimeout(() => rp(C));
11764
+ setTimeout(() => rp(S));
11765
11765
  }
11766
11766
  }),
11767
11767
  children: typeof s == "function" ? s({ isCurrentTabStop: b, hasTabStop: w != null }) : s
@@ -12385,9 +12385,9 @@ const mp = {
12385
12385
  mp[e.size]
12386
12386
  ]), kx = (e, t, r) => typeof t == "number" && e < t ? t : typeof r == "number" && e > r ? r : e, Ax = q(
12387
12387
  ({ className: e, value: t, defaultValue: r = 0, onValueChange: o, min: n, max: l, step: s = 1, size: c = "md", error: p, disabled: f, ...u }, b) => {
12388
- const [m, g] = X(r), x = t ?? m, w = (C) => {
12389
- const S = kx(Number.isFinite(C) ? C : n ?? 0, n, l);
12390
- t === void 0 && g(S), o == null || o(S);
12388
+ const [m, g] = X(r), x = t ?? m, w = (S) => {
12389
+ const C = kx(Number.isFinite(S) ? S : n ?? 0, n, l);
12390
+ t === void 0 && g(C), o == null || o(C);
12391
12391
  }, h = f || typeof n == "number" && x <= n, v = f || typeof l == "number" && x >= l, y = {
12392
12392
  size: c,
12393
12393
  error: !!p,
@@ -12417,7 +12417,7 @@ const mp = {
12417
12417
  disabled: f,
12418
12418
  "aria-invalid": p || void 0,
12419
12419
  ownerState: y,
12420
- onChange: (C) => w(Number(C.currentTarget.value)),
12420
+ onChange: (S) => w(Number(S.currentTarget.value)),
12421
12421
  ...u
12422
12422
  }
12423
12423
  ),
@@ -12690,17 +12690,17 @@ const Ex = d("input", {
12690
12690
  dragActive: g,
12691
12691
  error: !!n,
12692
12692
  disabled: !!o
12693
- }, v = (A) => {
12693
+ }, v = (R) => {
12694
12694
  if (o) return;
12695
- const R = Array.from(A);
12696
- f == null || f(r ? [...p ?? [], ...R] : R.slice(0, 1));
12697
- }, y = (A) => {
12698
- f == null || f((p ?? []).filter((R) => R !== A));
12699
- }, C = (A, R) => {
12700
- A.preventDefault(), A.stopPropagation(), o || x(R);
12701
- }, S = () => {
12702
- var A;
12703
- o || (m.current && (m.current.value = ""), (A = m.current) == null || A.click());
12695
+ const A = Array.from(R);
12696
+ f == null || f(r ? [...p ?? [], ...A] : A.slice(0, 1));
12697
+ }, y = (R) => {
12698
+ f == null || f((p ?? []).filter((A) => A !== R));
12699
+ }, S = (R, A) => {
12700
+ R.preventDefault(), R.stopPropagation(), o || x(A);
12701
+ }, C = () => {
12702
+ var R;
12703
+ o || (m.current && (m.current.value = ""), (R = m.current) == null || R.click());
12704
12704
  }, T = /* @__PURE__ */ i(
12705
12705
  Ex,
12706
12706
  {
@@ -12709,8 +12709,8 @@ const Ex = d("input", {
12709
12709
  accept: t,
12710
12710
  multiple: r,
12711
12711
  disabled: o,
12712
- onChange: (A) => {
12713
- A.currentTarget.files && v(A.currentTarget.files);
12712
+ onChange: (R) => {
12713
+ R.currentTarget.files && v(R.currentTarget.files);
12714
12714
  }
12715
12715
  }
12716
12716
  );
@@ -12720,34 +12720,34 @@ const Ex = d("input", {
12720
12720
  ref: b,
12721
12721
  ownerState: h,
12722
12722
  className: e,
12723
- onDragEnter: (A) => C(A, !0),
12724
- onDragOver: (A) => C(A, !0),
12725
- onDragLeave: (A) => C(A, !1),
12726
- onDrop: (A) => {
12727
- C(A, !1), v(A.dataTransfer.files);
12723
+ onDragEnter: (R) => S(R, !0),
12724
+ onDragOver: (R) => S(R, !0),
12725
+ onDragLeave: (R) => S(R, !1),
12726
+ onDrop: (R) => {
12727
+ S(R, !1), v(R.dataTransfer.files);
12728
12728
  },
12729
12729
  ...u,
12730
12730
  children: [
12731
12731
  T,
12732
- p.map((A, R) => /* @__PURE__ */ k(Mx, { ownerState: { divided: R > 0 }, children: [
12732
+ p.map((R, A) => /* @__PURE__ */ k(Mx, { ownerState: { divided: A > 0 }, children: [
12733
12733
  /* @__PURE__ */ i(Px, { children: /* @__PURE__ */ i(gh, { size: 16, weight: "bold" }) }),
12734
12734
  /* @__PURE__ */ k(Dx, { children: [
12735
- /* @__PURE__ */ i(Ix, { children: A.name }),
12736
- /* @__PURE__ */ i(Fx, { children: Rx(A.size) })
12735
+ /* @__PURE__ */ i(Ix, { children: R.name }),
12736
+ /* @__PURE__ */ i(Fx, { children: Rx(R.size) })
12737
12737
  ] }),
12738
12738
  !o && /* @__PURE__ */ i(
12739
12739
  Lx,
12740
12740
  {
12741
12741
  type: "button",
12742
- "aria-label": `Remove ${A.name}`,
12742
+ "aria-label": `Remove ${R.name}`,
12743
12743
  onClick: (E) => {
12744
- E.stopPropagation(), y(A);
12744
+ E.stopPropagation(), y(R);
12745
12745
  },
12746
12746
  children: /* @__PURE__ */ i(pt, { size: 13, weight: "bold" })
12747
12747
  }
12748
12748
  )
12749
- ] }, `${A.name}-${R}`)),
12750
- r && !o && /* @__PURE__ */ k(Bx, { type: "button", onClick: S, children: [
12749
+ ] }, `${R.name}-${A}`)),
12750
+ r && !o && /* @__PURE__ */ k(Bx, { type: "button", onClick: C, children: [
12751
12751
  /* @__PURE__ */ i(Hl, { size: 13, weight: "bold" }),
12752
12752
  /* @__PURE__ */ i("span", { children: "Add more files" })
12753
12753
  ] })
@@ -12759,12 +12759,12 @@ const Ex = d("input", {
12759
12759
  ref: b,
12760
12760
  ownerState: h,
12761
12761
  className: e,
12762
- onClick: S,
12763
- onDragEnter: (A) => C(A, !0),
12764
- onDragOver: (A) => C(A, !0),
12765
- onDragLeave: (A) => C(A, !1),
12766
- onDrop: (A) => {
12767
- C(A, !1), v(A.dataTransfer.files);
12762
+ onClick: C,
12763
+ onDragEnter: (R) => S(R, !0),
12764
+ onDragOver: (R) => S(R, !0),
12765
+ onDragLeave: (R) => S(R, !1),
12766
+ onDrop: (R) => {
12767
+ S(R, !1), v(R.dataTransfer.files);
12768
12768
  },
12769
12769
  ...u,
12770
12770
  children: [
@@ -12902,15 +12902,15 @@ const Zx = ({ size: e }) => /* @__PURE__ */ i("svg", { width: e, height: e, view
12902
12902
  copyLabel: h = "Copy value",
12903
12903
  copiedLabel: v = "Copied",
12904
12904
  valueClassName: y,
12905
- actionClassName: C,
12906
- ...S
12905
+ actionClassName: S,
12906
+ ...C
12907
12907
  }, T) => {
12908
- const [A, R] = X(o), [E, D] = X("idle"), L = Xe(), M = !Xx(t), B = t ?? "", N = n ?? A, P = N ? f ?? B : qx(B, b, m);
12908
+ const [R, A] = X(o), [E, D] = X("idle"), L = Xe(), M = !Xx(t), B = t ?? "", N = n ?? R, P = N ? f ?? B : qx(B, b, m);
12909
12909
  Ye(() => () => {
12910
12910
  L.current !== void 0 && window.clearTimeout(L.current);
12911
12911
  }, []);
12912
12912
  const Z = (O) => {
12913
- g && O.stopPropagation(), n === void 0 && R(!0), l == null || l(!0);
12913
+ g && O.stopPropagation(), n === void 0 && A(!0), l == null || l(!0);
12914
12914
  }, H = async (O) => {
12915
12915
  g && O.stopPropagation();
12916
12916
  const F = p ?? B;
@@ -12920,7 +12920,7 @@ const Zx = ({ size: e }) => /* @__PURE__ */ i("svg", { width: e, height: e, view
12920
12920
  c == null || c(z);
12921
12921
  }
12922
12922
  };
12923
- return M ? /* @__PURE__ */ k(Ss, { ref: T, ownerState: { hasValue: !0 }, className: e, ...S, children: [
12923
+ return M ? /* @__PURE__ */ k(Ss, { ref: T, ownerState: { hasValue: !0 }, className: e, ...C, children: [
12924
12924
  /* @__PURE__ */ i(jx, { as: "span", ownerState: { size: x }, className: y, children: P }),
12925
12925
  !N && /* @__PURE__ */ i(
12926
12926
  Ux,
@@ -12931,7 +12931,7 @@ const Zx = ({ size: e }) => /* @__PURE__ */ i("svg", { width: e, height: e, view
12931
12931
  variant: "ghost",
12932
12932
  size: "sm",
12933
12933
  ownerState: { size: x },
12934
- className: C,
12934
+ className: S,
12935
12935
  icon: /* @__PURE__ */ i(Zx, { size: xs[x] }),
12936
12936
  onClick: Z
12937
12937
  }
@@ -12946,14 +12946,14 @@ const Zx = ({ size: e }) => /* @__PURE__ */ i("svg", { width: e, height: e, view
12946
12946
  variant: "ghost",
12947
12947
  size: "sm",
12948
12948
  ownerState: { size: x, copied: E === "copied" },
12949
- className: C,
12949
+ className: S,
12950
12950
  icon: /* @__PURE__ */ i(ju, { icon: E === "copied" ? dt : hh, size: xs[x], weight: "bold" }),
12951
12951
  onClick: H
12952
12952
  }
12953
12953
  ),
12954
12954
  /* @__PURE__ */ i(Yx, { "aria-live": "polite", children: E === "copied" ? v : "" })
12955
12955
  ] })
12956
- ] }) : /* @__PURE__ */ i(Ss, { ref: T, ownerState: { hasValue: !1 }, className: e, ...S, children: /* @__PURE__ */ i(Gx, { as: "span", tone: "muted", ownerState: { size: x }, className: y, children: u }) });
12956
+ ] }) : /* @__PURE__ */ i(Ss, { ref: T, ownerState: { hasValue: !1 }, className: e, ...C, children: /* @__PURE__ */ i(Gx, { as: "span", tone: "muted", ownerState: { size: x }, className: y, children: u }) });
12957
12957
  }
12958
12958
  );
12959
12959
  vp.displayName = "RevealAndCopy";
@@ -13036,10 +13036,10 @@ function i8(e) {
13036
13036
  defaultProp: n ?? !1,
13037
13037
  onChange: p,
13038
13038
  caller: Qa
13039
- }), [x, w] = a.useState(null), [h, v] = a.useState(null), y = a.useRef(!1), C = x ? !!s || !!x.closest("form") : (
13039
+ }), [x, w] = a.useState(null), [h, v] = a.useState(null), y = a.useRef(!1), S = x ? !!s || !!x.closest("form") : (
13040
13040
  // We set this to true by default so that events bubble to forms without JS (SSR)
13041
13041
  !0
13042
- ), S = {
13042
+ ), C = {
13043
13043
  checked: m,
13044
13044
  disabled: l,
13045
13045
  setChecked: g,
@@ -13051,7 +13051,7 @@ function i8(e) {
13051
13051
  hasConsumerStoppedPropagationRef: y,
13052
13052
  required: f,
13053
13053
  defaultChecked: rr(n) ? !1 : n,
13054
- isFormControl: C,
13054
+ isFormControl: S,
13055
13055
  bubbleInput: h,
13056
13056
  setBubbleInput: v
13057
13057
  };
@@ -13059,8 +13059,8 @@ function i8(e) {
13059
13059
  n8,
13060
13060
  {
13061
13061
  scope: t,
13062
- ...S,
13063
- children: l8(b) ? b(S) : o
13062
+ ...C,
13063
+ children: l8(b) ? b(C) : o
13064
13064
  }
13065
13065
  );
13066
13066
  }
@@ -13195,13 +13195,13 @@ var Ap = "CheckboxBubbleInput", Rp = a.forwardRef(
13195
13195
  a.useEffect(() => {
13196
13196
  const y = m;
13197
13197
  if (!y) return;
13198
- const C = window.HTMLInputElement.prototype, T = Object.getOwnPropertyDescriptor(
13199
- C,
13198
+ const S = window.HTMLInputElement.prototype, T = Object.getOwnPropertyDescriptor(
13199
+ S,
13200
13200
  "checked"
13201
- ).set, A = !n.current;
13201
+ ).set, R = !n.current;
13202
13202
  if (w !== l && T) {
13203
- const R = new Event("click", { bubbles: A });
13204
- y.indeterminate = rr(l), T.call(y, rr(l) ? !1 : l), y.dispatchEvent(R);
13203
+ const A = new Event("click", { bubbles: R });
13204
+ y.indeterminate = rr(l), T.call(y, rr(l) ? !1 : l), y.dispatchEvent(A);
13205
13205
  }
13206
13206
  }, [m, w, l, n]);
13207
13207
  const v = a.useRef(rr(l) ? !1 : l);
@@ -13512,7 +13512,7 @@ var en = "Switch", [k8] = nt(en), [A8, R8] = k8(en), Tp = a.forwardRef(
13512
13512
  onCheckedChange: f,
13513
13513
  form: u,
13514
13514
  ...b
13515
- } = e, [m, g] = a.useState(null), x = me(t, (C) => g(C)), w = a.useRef(!1), h = m ? u || !!m.closest("form") : !0, [v, y] = Dt({
13515
+ } = e, [m, g] = a.useState(null), x = me(t, (S) => g(S)), w = a.useRef(!1), h = m ? u || !!m.closest("form") : !0, [v, y] = Dt({
13516
13516
  prop: n,
13517
13517
  defaultProp: l ?? !1,
13518
13518
  onChange: f,
@@ -13532,8 +13532,8 @@ var en = "Switch", [k8] = nt(en), [A8, R8] = k8(en), Tp = a.forwardRef(
13532
13532
  value: p,
13533
13533
  ...b,
13534
13534
  ref: x,
13535
- onClick: $(e.onClick, (C) => {
13536
- y((S) => !S), h && (w.current = C.isPropagationStopped(), w.current || C.stopPropagation());
13535
+ onClick: $(e.onClick, (S) => {
13536
+ y((C) => !C), h && (w.current = S.isPropagationStopped(), w.current || S.stopPropagation());
13537
13537
  })
13538
13538
  }
13539
13539
  ),
@@ -13815,20 +13815,20 @@ const B8 = d("div", {
13815
13815
  formatValue: h,
13816
13816
  "aria-describedby": v,
13817
13817
  "aria-invalid": y,
13818
- "aria-valuetext": C,
13819
- ...S
13818
+ "aria-valuetext": S,
13819
+ ...C
13820
13820
  }, T) => {
13821
- const A = xt(), R = l ?? A, E = g ? `${R}-helper` : void 0, D = x ? `${R}-error` : void 0, L = [v, E, D].filter(Boolean).join(" ") || void 0, M = h ? h(s) : s;
13821
+ const R = xt(), A = l ?? R, E = g ? `${A}-helper` : void 0, D = x ? `${A}-error` : void 0, L = [v, E, D].filter(Boolean).join(" ") || void 0, M = h ? h(s) : s;
13822
13822
  return /* @__PURE__ */ k(B8, { className: nr(t, e) || void 0, children: [
13823
13823
  (m || M !== void 0) && /* @__PURE__ */ k(z8, { children: [
13824
- m ? /* @__PURE__ */ i(H8, { htmlFor: R, ownerState: { disabled: !!b }, className: r, children: m }) : /* @__PURE__ */ i("span", {}),
13825
- /* @__PURE__ */ i(N8, { htmlFor: R, ownerState: { size: w, disabled: !!b }, className: o, children: M })
13824
+ m ? /* @__PURE__ */ i(H8, { htmlFor: A, ownerState: { disabled: !!b }, className: r, children: m }) : /* @__PURE__ */ i("span", {}),
13825
+ /* @__PURE__ */ i(N8, { htmlFor: A, ownerState: { size: w, disabled: !!b }, className: o, children: M })
13826
13826
  ] }),
13827
13827
  /* @__PURE__ */ i(
13828
13828
  W8,
13829
13829
  {
13830
13830
  ref: T,
13831
- id: R,
13831
+ id: A,
13832
13832
  type: "range",
13833
13833
  value: s,
13834
13834
  min: p,
@@ -13837,11 +13837,11 @@ const B8 = d("div", {
13837
13837
  disabled: b,
13838
13838
  "aria-describedby": L,
13839
13839
  "aria-invalid": y ?? !!x,
13840
- "aria-valuetext": C ?? G8(M),
13840
+ "aria-valuetext": S ?? G8(M),
13841
13841
  ownerState: { size: w },
13842
13842
  className: n,
13843
13843
  onChange: (B) => c(B.currentTarget.valueAsNumber),
13844
- ...S
13844
+ ...C
13845
13845
  }
13846
13846
  ),
13847
13847
  /* @__PURE__ */ k(O8, { children: [
@@ -14026,10 +14026,10 @@ const U8 = /^#[0-9a-fA-F]{6}$/, K8 = d("div", {
14026
14026
  "aria-invalid": x,
14027
14027
  ...w
14028
14028
  }, h) => {
14029
- const v = xt(), y = l ?? v, C = f ? `${y}-helper` : void 0, S = u ? `${y}-error` : void 0, T = [g, C, S].filter(Boolean).join(" ") || void 0, A = !!u;
14029
+ const v = xt(), y = l ?? v, S = f ? `${y}-helper` : void 0, C = u ? `${y}-error` : void 0, T = [g, S, C].filter(Boolean).join(" ") || void 0, R = !!u;
14030
14030
  return /* @__PURE__ */ k(K8, { className: nr(t, e) || void 0, children: [
14031
14031
  p && /* @__PURE__ */ i(Y8, { htmlFor: y, ownerState: { disabled: !!b }, className: r, children: p }),
14032
- /* @__PURE__ */ k(t6, { ownerState: { size: m, invalid: A, disabled: !!b }, children: [
14032
+ /* @__PURE__ */ k(t6, { ownerState: { size: m, invalid: R, disabled: !!b }, children: [
14033
14033
  /* @__PURE__ */ i(
14034
14034
  o6,
14035
14035
  {
@@ -14039,10 +14039,10 @@ const U8 = /^#[0-9a-fA-F]{6}$/, K8 = d("div", {
14039
14039
  value: l6(s),
14040
14040
  disabled: b,
14041
14041
  "aria-describedby": T,
14042
- "aria-invalid": x ?? A,
14042
+ "aria-invalid": x ?? R,
14043
14043
  ownerState: { size: m },
14044
14044
  className: n,
14045
- onChange: (R) => c(R.currentTarget.value),
14045
+ onChange: (A) => c(A.currentTarget.value),
14046
14046
  ...w
14047
14047
  }
14048
14048
  ),
@@ -14054,14 +14054,14 @@ const U8 = /^#[0-9a-fA-F]{6}$/, K8 = d("div", {
14054
14054
  disabled: b,
14055
14055
  "aria-label": typeof p == "string" ? `${p} hex value` : "Hex color value",
14056
14056
  "aria-describedby": T,
14057
- "aria-invalid": x ?? A,
14057
+ "aria-invalid": x ?? R,
14058
14058
  className: o,
14059
14059
  spellCheck: !1,
14060
- onChange: (R) => c(R.currentTarget.value)
14060
+ onChange: (A) => c(A.currentTarget.value)
14061
14061
  }
14062
14062
  )
14063
14063
  ] }),
14064
- u ? /* @__PURE__ */ i(n6, { id: S, children: u }) : f ? /* @__PURE__ */ i(i6, { id: C, children: f }) : null
14064
+ u ? /* @__PURE__ */ i(n6, { id: C, children: u }) : f ? /* @__PURE__ */ i(i6, { id: S, children: f }) : null
14065
14065
  ] });
14066
14066
  }
14067
14067
  );
@@ -14378,7 +14378,7 @@ function ha(e) {
14378
14378
  return Array.isArray(e) ? e.some(ha) : e != null && e !== !1 && e !== "";
14379
14379
  }
14380
14380
  const B6 = q(({ className: e, tone: t, size: r = "md", title: o, message: n, description: l, parts: s, action: c, icon: p, children: f, style: u, ...b }, m) => {
14381
- const g = t ?? "info", x = L6[g], w = g === "warning" ? br : void 0, h = s ? s.map((C, S) => C.bold ? /* @__PURE__ */ i("strong", { children: C.text }, S) : /* @__PURE__ */ i("span", { children: C.text }, S)) : ha(f) ? f : n ?? l, v = ha(o), y = s ? s.length > 0 : ha(h);
14381
+ const g = t ?? "info", x = L6[g], w = g === "warning" ? br : void 0, h = s ? s.map((S, C) => S.bold ? /* @__PURE__ */ i("strong", { children: S.text }, C) : /* @__PURE__ */ i("span", { children: S.text }, C)) : ha(f) ? f : n ?? l, v = ha(o), y = s ? s.length > 0 : ha(h);
14382
14382
  return /* @__PURE__ */ k(
14383
14383
  E6,
14384
14384
  {
@@ -15212,8 +15212,8 @@ function aM({ children: e, placement: t = "bottom-center", maxToasts: r = 4, def
15212
15212
  s([]);
15213
15213
  }, []), u = je(
15214
15214
  (h) => {
15215
- const v = B4(h, o), y = v.id ?? `toast-${Date.now()}-${c.current++}`, C = { ...v, id: y };
15216
- return s((S) => [...S.filter((T) => T.id !== y), C].slice(-r)), y;
15215
+ const v = B4(h, o), y = v.id ?? `toast-${Date.now()}-${c.current++}`, S = { ...v, id: y };
15216
+ return s((C) => [...C.filter((T) => T.id !== y), S].slice(-r)), y;
15217
15217
  },
15218
15218
  [o, r]
15219
15219
  ), b = je((h) => u(la("success", h)), [u]), m = je((h) => u(la("warning", h)), [u]), g = je((h) => u(la("danger", h)), [u]), x = je((h) => u(la("info", h)), [u]), w = ue(
@@ -15590,8 +15590,8 @@ function o5({
15590
15590
  headerClassName: h,
15591
15591
  footerClassName: v
15592
15592
  }) {
15593
- return /* @__PURE__ */ k(Mo, { open: e, defaultOpen: t, onOpenChange: (C) => {
15594
- !C && g || (r == null || r(C), C || o == null || o());
15593
+ return /* @__PURE__ */ k(Mo, { open: e, defaultOpen: t, onOpenChange: (S) => {
15594
+ !S && g || (r == null || r(S), S || o == null || o());
15595
15595
  }, children: [
15596
15596
  n && /* @__PURE__ */ i(qi, { asChild: !0, children: n }),
15597
15597
  /* @__PURE__ */ i(Po, { children: /* @__PURE__ */ k(Ue, { children: [
@@ -15601,11 +15601,11 @@ function o5({
15601
15601
  {
15602
15602
  ownerState: { size: f },
15603
15603
  className: nr(x, w),
15604
- onPointerDownOutside: (C) => {
15605
- (!b || g) && C.preventDefault();
15604
+ onPointerDownOutside: (S) => {
15605
+ (!b || g) && S.preventDefault();
15606
15606
  },
15607
- onEscapeKeyDown: (C) => {
15608
- (!m || g) && C.preventDefault();
15607
+ onEscapeKeyDown: (S) => {
15608
+ (!m || g) && S.preventDefault();
15609
15609
  },
15610
15610
  children: [
15611
15611
  (l || s || u) && /* @__PURE__ */ k(q4, { className: h, children: [
@@ -15766,8 +15766,8 @@ function b5({
15766
15766
  headerClassName: v,
15767
15767
  footerClassName: y
15768
15768
  }) {
15769
- return /* @__PURE__ */ k(Mo, { open: e, defaultOpen: t, onOpenChange: (S) => {
15770
- !S && x || (r == null || r(S), S || o == null || o());
15769
+ return /* @__PURE__ */ k(Mo, { open: e, defaultOpen: t, onOpenChange: (C) => {
15770
+ !C && x || (r == null || r(C), C || o == null || o());
15771
15771
  }, children: [
15772
15772
  n && /* @__PURE__ */ i(qi, { asChild: !0, children: n }),
15773
15773
  /* @__PURE__ */ i(Po, { children: /* @__PURE__ */ k(Ue, { children: [
@@ -15777,11 +15777,11 @@ function b5({
15777
15777
  {
15778
15778
  ownerState: { placement: f, size: u },
15779
15779
  className: nr(w, h),
15780
- onPointerDownOutside: (S) => {
15781
- (!m || x) && S.preventDefault();
15780
+ onPointerDownOutside: (C) => {
15781
+ (!m || x) && C.preventDefault();
15782
15782
  },
15783
- onEscapeKeyDown: (S) => {
15784
- (!g || x) && S.preventDefault();
15783
+ onEscapeKeyDown: (C) => {
15784
+ (!g || x) && C.preventDefault();
15785
15785
  },
15786
15786
  children: [
15787
15787
  (l || s || b) && /* @__PURE__ */ k(s5, { className: v, children: [
@@ -15913,9 +15913,9 @@ var yt = "MenuContent", [A5, el] = Ir(yt), s1 = a.forwardRef(
15913
15913
  onDismiss: g,
15914
15914
  disableOutsideScroll: x,
15915
15915
  ...w
15916
- } = e, h = Fr(yt, r), v = Go(yt, r), y = ln(r), C = a1(r), S = v5(r), [T, A] = a.useState(null), R = a.useRef(null), E = me(t, R, h.onContentChange), D = a.useRef(0), L = a.useRef(""), M = a.useRef(0), B = a.useRef(null), N = a.useRef("right"), P = a.useRef(0), Z = x ? Vo : a.Fragment, H = x ? { as: T5, allowPinchZoom: !0 } : void 0, O = (z) => {
15916
+ } = e, h = Fr(yt, r), v = Go(yt, r), y = ln(r), S = a1(r), C = v5(r), [T, R] = a.useState(null), A = a.useRef(null), E = me(t, A, h.onContentChange), D = a.useRef(0), L = a.useRef(""), M = a.useRef(0), B = a.useRef(null), N = a.useRef("right"), P = a.useRef(0), Z = x ? Vo : a.Fragment, H = x ? { as: T5, allowPinchZoom: !0 } : void 0, O = (z) => {
15917
15917
  var W, oe;
15918
- const I = L.current + z, se = S().filter((_) => !_.disabled), de = document.activeElement, J = (W = se.find((_) => _.ref.current === de)) == null ? void 0 : W.textValue, ve = se.map((_) => _.textValue), le = _5(ve, I, J), re = (oe = se.find((_) => _.textValue === le)) == null ? void 0 : oe.ref.current;
15918
+ const I = L.current + z, se = C().filter((_) => !_.disabled), de = document.activeElement, J = (W = se.find((_) => _.ref.current === de)) == null ? void 0 : W.textValue, ve = se.map((_) => _.textValue), le = _5(ve, I, J), re = (oe = se.find((_) => _.textValue === le)) == null ? void 0 : oe.ref.current;
15919
15919
  (function _(ee) {
15920
15920
  L.current = ee, window.clearTimeout(D.current), ee !== "" && (D.current = window.setTimeout(() => _(""), 1e3));
15921
15921
  })(I), re && setTimeout(() => re.focus());
@@ -15939,7 +15939,7 @@ var yt = "MenuContent", [A5, el] = Ir(yt), s1 = a.forwardRef(
15939
15939
  onItemLeave: a.useCallback(
15940
15940
  (z) => {
15941
15941
  var I;
15942
- F(z) || ((I = R.current) == null || I.focus(), A(null));
15942
+ F(z) || ((I = A.current) == null || I.focus(), R(null));
15943
15943
  },
15944
15944
  [F]
15945
15945
  ),
@@ -15960,7 +15960,7 @@ var yt = "MenuContent", [A5, el] = Ir(yt), s1 = a.forwardRef(
15960
15960
  trapped: n,
15961
15961
  onMountAutoFocus: $(l, (z) => {
15962
15962
  var I;
15963
- z.preventDefault(), (I = R.current) == null || I.focus({ preventScroll: !0 });
15963
+ z.preventDefault(), (I = A.current) == null || I.focus({ preventScroll: !0 });
15964
15964
  }),
15965
15965
  onUnmountAutoFocus: s,
15966
15966
  children: /* @__PURE__ */ i(
@@ -15977,12 +15977,12 @@ var yt = "MenuContent", [A5, el] = Ir(yt), s1 = a.forwardRef(
15977
15977
  Wi,
15978
15978
  {
15979
15979
  asChild: !0,
15980
- ...C,
15980
+ ...S,
15981
15981
  dir: v.dir,
15982
15982
  orientation: "vertical",
15983
15983
  loop: o,
15984
15984
  currentTabStopId: T,
15985
- onCurrentTabStopIdChange: A,
15985
+ onCurrentTabStopIdChange: R,
15986
15986
  onEntryFocus: $(p, (z) => {
15987
15987
  v.isUsingKeyboardRef.current || z.preventDefault();
15988
15988
  }),
@@ -16002,10 +16002,10 @@ var yt = "MenuContent", [A5, el] = Ir(yt), s1 = a.forwardRef(
16002
16002
  onKeyDown: $(w.onKeyDown, (z) => {
16003
16003
  const se = z.target.closest("[data-radix-menu-content]") === z.currentTarget, de = z.ctrlKey || z.altKey || z.metaKey, J = z.key.length === 1;
16004
16004
  se && (z.key === "Tab" && z.preventDefault(), !de && J && O(z.key));
16005
- const ve = R.current;
16005
+ const ve = A.current;
16006
16006
  if (z.target !== ve || !m5.includes(z.key)) return;
16007
16007
  z.preventDefault();
16008
- const re = S().filter((W) => !W.disabled).map((W) => W.ref.current);
16008
+ const re = C().filter((W) => !W.disabled).map((W) => W.ref.current);
16009
16009
  r1.includes(z.key) && re.reverse(), V5(re);
16010
16010
  }),
16011
16011
  onBlur: $(e.onBlur, (z) => {
@@ -16259,15 +16259,15 @@ var H5 = "MenuSub", [iM, y1] = Ir(H5), Co = "MenuSubTrigger", x1 = a.forwardRef(
16259
16259
  u();
16260
16260
  const m = (g = r.content) == null ? void 0 : g.getBoundingClientRect();
16261
16261
  if (m) {
16262
- const w = (x = r.content) == null ? void 0 : x.dataset.side, h = w === "right", v = h ? -5 : 5, y = m[h ? "left" : "right"], C = m[h ? "right" : "left"];
16262
+ const w = (x = r.content) == null ? void 0 : x.dataset.side, h = w === "right", v = h ? -5 : 5, y = m[h ? "left" : "right"], S = m[h ? "right" : "left"];
16263
16263
  l.onPointerGraceIntentChange({
16264
16264
  area: [
16265
16265
  // Apply a bleed on clientX to ensure that our exit point is
16266
16266
  // consistently within polygon bounds
16267
16267
  { x: b.clientX + v, y: b.clientY },
16268
16268
  { x: y, y: m.top },
16269
- { x: C, y: m.top },
16270
- { x: C, y: m.bottom },
16269
+ { x: S, y: m.top },
16270
+ { x: S, y: m.bottom },
16271
16271
  { x: y, y: m.bottom }
16272
16272
  ],
16273
16273
  side: w
@@ -17584,11 +17584,11 @@ function cM({
17584
17584
  onColumnOrderChange: h,
17585
17585
  enableColumnPinning: v = !0,
17586
17586
  pinnedColumnCount: y,
17587
- defaultPinnedColumnCount: C = 0,
17588
- onPinnedColumnCountChange: S,
17587
+ defaultPinnedColumnCount: S = 0,
17588
+ onPinnedColumnCountChange: C,
17589
17589
  pinLeadingColumn: T,
17590
- defaultPinLeadingColumn: A = !1,
17591
- onPinLeadingColumnChange: R,
17590
+ defaultPinLeadingColumn: R = !1,
17591
+ onPinLeadingColumnChange: A,
17592
17592
  enableColumnReordering: E = !0,
17593
17593
  resetKey: D,
17594
17594
  showSortIcon: L = "always",
@@ -17615,17 +17615,17 @@ function cM({
17615
17615
  onRowClick: te,
17616
17616
  "aria-label": ae = "Data table"
17617
17617
  }) {
17618
- const ie = Xe(null), [ye, Le] = X(b), [ke, Ae] = X(() => w ?? t.map((V) => V.id)), [_e, De] = X(C), [He, it] = X(A), [Be, Ie] = X(null), [ge, Me] = X(null), [We, Re] = X(null), [G, be] = X(null), pe = f ? u === void 0 ? ye : u : null, ot = ue(() => t.map((V) => V.id), [t]), Ct = ue(() => new Map(t.map((V) => [V.id, V])), [t]);
17618
+ const ie = Xe(null), [ye, Le] = X(b), [ke, Ae] = X(() => w ?? t.map((V) => V.id)), [_e, De] = X(S), [He, it] = X(R), [Be, Ie] = X(null), [ge, Me] = X(null), [We, Re] = X(null), [G, be] = X(null), pe = f ? u === void 0 ? ye : u : null, ot = ue(() => t.map((V) => V.id), [t]), Ct = ue(() => new Map(t.map((V) => [V.id, V])), [t]);
17619
17619
  Ye(() => {
17620
17620
  x === void 0 && Ae((V) => Ln(V, ot));
17621
17621
  }, [ot, x]), Ye(() => {
17622
- D !== void 0 && (u === void 0 && Le(b), x === void 0 && Ae(Ln(w ?? ot, ot)), y === void 0 && De(C), T === void 0 && it(A), Ie(null), Me(null));
17622
+ D !== void 0 && (u === void 0 && Le(b), x === void 0 && Ae(Ln(w ?? ot, ot)), y === void 0 && De(S), T === void 0 && it(R), Ie(null), Me(null));
17623
17623
  }, [
17624
17624
  ot,
17625
17625
  x,
17626
17626
  w,
17627
- C,
17628
- A,
17627
+ S,
17628
+ R,
17629
17629
  b,
17630
17630
  T,
17631
17631
  y,
@@ -17683,9 +17683,9 @@ function cM({
17683
17683
  x === void 0 && Ae(V), h == null || h(V);
17684
17684
  }, Nr = (V) => {
17685
17685
  const Q = Math.min(ze.length, Math.max(0, V));
17686
- y === void 0 && De(Q), S == null || S(Q);
17686
+ y === void 0 && De(Q), C == null || C(Q);
17687
17687
  }, jt = (V) => {
17688
- T === void 0 && it(V), R == null || R(V);
17688
+ T === void 0 && it(V), A == null || A(V);
17689
17689
  }, Ut = () => {
17690
17690
  F && F(j ? [] : Se.map((V, Q) => U(V, Q)));
17691
17691
  }, Ko = (V) => {
@@ -18703,12 +18703,12 @@ function $1(e, t = {}, r) {
18703
18703
  })
18704
18704
  )
18705
18705
  ), x = (h, v = !1) => {
18706
- const y = At(e).views, C = new Map(y.map((D) => [D.view_id, D])), S = g(h).map((D) => {
18707
- const L = C.get(D.view_id);
18706
+ const y = At(e).views, S = new Map(y.map((D) => [D.view_id, D])), C = g(h).map((D) => {
18707
+ const L = S.get(D.view_id);
18708
18708
  return L ? { ...D, is_default: L.is_default } : D;
18709
- }), T = S.some((D) => D.is_default), A = y.filter(
18710
- (D) => !S.some((L) => L.view_id === D.view_id || L.name.trim() === D.name.trim())
18711
- ).map((D) => T ? { ...D, is_default: !1 } : D), R = [...S, ...A], E = y.length === 0 ? _s(R) : R;
18709
+ }), T = C.some((D) => D.is_default), R = y.filter(
18710
+ (D) => !C.some((L) => L.view_id === D.view_id || L.name.trim() === D.name.trim())
18711
+ ).map((D) => T ? { ...D, is_default: !1 } : D), A = [...C, ...R], E = y.length === 0 ? _s(A) : A;
18712
18712
  return Ns(y, E) || m(E, v), E;
18713
18713
  }, w = (h) => {
18714
18714
  const v = At(e).views, y = {
@@ -18721,8 +18721,8 @@ function $1(e, t = {}, r) {
18721
18721
  priority: h.priority ?? 0,
18722
18722
  is_default: !0,
18723
18723
  is_system_defined: !!h.is_system_defined
18724
- }, C = Kr({ ...h, is_default: !0 }, y), S = v.findIndex((A) => A.view_id === C.view_id || A.name.trim() === C.name.trim()), T = S >= 0 ? v.map((A, R) => R === S ? C : { ...A, is_default: !1 }) : [{ ...C, is_default: !0 }, ...v.map((A) => ({ ...A, is_default: !1 }))];
18725
- return Ns(v, T) || m(T, !0), C;
18724
+ }, S = Kr({ ...h, is_default: !0 }, y), C = v.findIndex((R) => R.view_id === S.view_id || R.name.trim() === S.name.trim()), T = C >= 0 ? v.map((R, A) => A === C ? S : { ...R, is_default: !1 }) : [{ ...S, is_default: !0 }, ...v.map((R) => ({ ...R, is_default: !1 }))];
18725
+ return Ns(v, T) || m(T, !0), S;
18726
18726
  };
18727
18727
  return {
18728
18728
  async list() {
@@ -18731,14 +18731,14 @@ function $1(e, t = {}, r) {
18731
18731
  })), b) : At(e).views;
18732
18732
  },
18733
18733
  async get(h) {
18734
- const v = At(e).views, y = v.find((S) => S.view_id === h) ?? null;
18734
+ const v = At(e).views, y = v.find((C) => C.view_id === h) ?? null;
18735
18735
  if (p) {
18736
18736
  try {
18737
- const S = await p(h);
18738
- if (S) {
18737
+ const C = await p(h);
18738
+ if (C) {
18739
18739
  const T = y ?? {
18740
- view_id: S.view_id || h,
18741
- name: S.name || "",
18740
+ view_id: C.view_id || h,
18741
+ name: C.name || "",
18742
18742
  view_type: e,
18743
18743
  tab: l == null ? void 0 : l.tab,
18744
18744
  columns: [],
@@ -18747,13 +18747,13 @@ function $1(e, t = {}, r) {
18747
18747
  is_default: !1,
18748
18748
  is_system_defined: !1
18749
18749
  };
18750
- return Kr(S, T);
18750
+ return Kr(C, T);
18751
18751
  }
18752
18752
  } catch {
18753
18753
  }
18754
18754
  return y;
18755
18755
  }
18756
- return (c ? await this.list() : v).find((S) => S.view_id === h) ?? null;
18756
+ return (c ? await this.list() : v).find((C) => C.view_id === h) ?? null;
18757
18757
  },
18758
18758
  async getActive() {
18759
18759
  if (p)
@@ -18771,18 +18771,18 @@ function $1(e, t = {}, r) {
18771
18771
  view_type: e,
18772
18772
  tab: (r ? n == null ? void 0 : n.tab : void 0) ?? h.tab,
18773
18773
  filters: h.filters ?? []
18774
- }, y = s ? await s(v) : void 0, C = At(e).views, S = C.findIndex((R) => R.name.trim() === v.name.trim());
18775
- if (S >= 0) {
18776
- const R = {
18777
- ...C[S],
18774
+ }, y = s ? await s(v) : void 0, S = At(e).views, C = S.findIndex((A) => A.name.trim() === v.name.trim());
18775
+ if (C >= 0) {
18776
+ const A = {
18777
+ ...S[C],
18778
18778
  name: v.name,
18779
18779
  view_type: e,
18780
18780
  tab: v.tab,
18781
18781
  columns: v.columns,
18782
18782
  filters: v.filters ?? [],
18783
- priority: v.priority ?? C[S].priority
18784
- }, E = Kr(y == null ? void 0 : y.view, R), D = C.slice();
18785
- return D[S] = E, m(D), { view: E, alreadyExists: (y == null ? void 0 : y.alreadyExists) ?? !0 };
18783
+ priority: v.priority ?? S[C].priority
18784
+ }, E = Kr(y == null ? void 0 : y.view, A), D = S.slice();
18785
+ return D[C] = E, m(D), { view: E, alreadyExists: (y == null ? void 0 : y.alreadyExists) ?? !0 };
18786
18786
  }
18787
18787
  const T = {
18788
18788
  view_id: zn(),
@@ -18793,19 +18793,19 @@ function $1(e, t = {}, r) {
18793
18793
  filters: v.filters ?? [],
18794
18794
  priority: v.priority ?? 0,
18795
18795
  // First view for a screen becomes primary so there is always an active view.
18796
- is_default: C.length === 0,
18796
+ is_default: S.length === 0,
18797
18797
  is_system_defined: !1
18798
- }, A = Kr(y == null ? void 0 : y.view, T);
18799
- return m([...C, A]), { view: A, alreadyExists: (y == null ? void 0 : y.alreadyExists) ?? !1 };
18798
+ }, R = Kr(y == null ? void 0 : y.view, T);
18799
+ return m([...S, R]), { view: R, alreadyExists: (y == null ? void 0 : y.alreadyExists) ?? !1 };
18800
18800
  },
18801
18801
  async rename(h, v) {
18802
18802
  Ws(v);
18803
- const y = At(e).views, C = y.findIndex((E) => E.view_id === h);
18804
- if (C < 0) throw new Error(`View "${h}" not found for screen "${e}"`);
18805
- const S = { ...y[C], name: v };
18803
+ const y = At(e).views, S = y.findIndex((E) => E.view_id === h);
18804
+ if (S < 0) throw new Error(`View "${h}" not found for screen "${e}"`);
18805
+ const C = { ...y[S], name: v };
18806
18806
  let T = null;
18807
18807
  if (f) {
18808
- const D = (p ? await p(h).catch(() => null) : null) ?? y[C];
18808
+ const D = (p ? await p(h).catch(() => null) : null) ?? y[S];
18809
18809
  T = await f({
18810
18810
  view_id: D.view_id || h,
18811
18811
  view_type: e,
@@ -18816,27 +18816,27 @@ function $1(e, t = {}, r) {
18816
18816
  priority: D.priority
18817
18817
  });
18818
18818
  }
18819
- const A = Kr(T ?? void 0, S), R = y.slice();
18820
- return R[C] = A, m(R), A;
18819
+ const R = Kr(T ?? void 0, C), A = y.slice();
18820
+ return A[S] = R, m(A), R;
18821
18821
  },
18822
18822
  async remove(h) {
18823
- const v = At(e).views, y = v.find((S) => S.view_id === h);
18823
+ const v = At(e).views, y = v.find((C) => C.view_id === h);
18824
18824
  if (!y) return;
18825
18825
  u && await u(y.view_id);
18826
- let C = v.filter((S) => S.view_id !== h);
18827
- y.is_default && C.length > 0 && !C.some((S) => S.is_default) && (C = C.map((S, T) => T === 0 ? { ...S, is_default: !0 } : S)), m(C);
18826
+ let S = v.filter((C) => C.view_id !== h);
18827
+ y.is_default && S.length > 0 && !S.some((C) => C.is_default) && (S = S.map((C, T) => T === 0 ? { ...C, is_default: !0 } : C)), m(S);
18828
18828
  },
18829
18829
  async setPrimary(h) {
18830
- const v = At(e).views, y = v.find((S) => S.view_id === h);
18830
+ const v = At(e).views, y = v.find((C) => C.view_id === h);
18831
18831
  if (!y) throw new Error(`View "${h}" not found for screen "${e}"`);
18832
- const C = v.map((S) => ({ ...S, is_default: S.view_id === h }));
18833
- return m(C), { ...y, is_default: !0 };
18832
+ const S = v.map((C) => ({ ...C, is_default: C.view_id === h }));
18833
+ return m(S), { ...y, is_default: !0 };
18834
18834
  },
18835
18835
  async unsetPrimary(h) {
18836
- const v = At(e).views, y = v.find((S) => S.view_id === h);
18836
+ const v = At(e).views, y = v.find((C) => C.view_id === h);
18837
18837
  if (!y) throw new Error(`View "${h}" not found for screen "${e}"`);
18838
- const C = v.map((S) => S.view_id === h ? { ...S, is_default: !1 } : S);
18839
- return m(C), { ...y, is_default: !1 };
18838
+ const S = v.map((C) => C.view_id === h ? { ...C, is_default: !1 } : C);
18839
+ return m(S), { ...y, is_default: !1 };
18840
18840
  },
18841
18841
  async reset() {
18842
18842
  if (u && await u(), fl())
@@ -19129,11 +19129,11 @@ function hM({
19129
19129
  columns: h,
19130
19130
  visibleColumnIds: v = [],
19131
19131
  hiddenColumnCount: y,
19132
- filtersCount: C = 0,
19133
- viewType: S,
19132
+ filtersCount: S = 0,
19133
+ viewType: C,
19134
19134
  filters: T,
19135
- priority: A = 0,
19136
- screenName: R,
19135
+ priority: R = 0,
19136
+ screenName: A,
19137
19137
  saveApi: E,
19138
19138
  cancelLabel: D = "Cancel",
19139
19139
  saveLabel: L = "Save view",
@@ -19154,12 +19154,12 @@ function hM({
19154
19154
  () => E ? { ...E, saveEndpoint: E.saveEndpoint ?? E.endpoint ?? "api/v1/saveview" } : void 0,
19155
19155
  [E]
19156
19156
  ), Ae = ue(
19157
- () => R ? ul(R, ke ? { saveApi: ke } : void 0) : void 0,
19158
- [ke, R]
19157
+ () => A ? ul(A, ke ? { saveApi: ke } : void 0) : void 0,
19158
+ [ke, A]
19159
19159
  ), _e = ue(() => {
19160
19160
  const ge = [];
19161
- return ie > 0 && ge.push(`Columns hidden (${ie})`), C > 0 && ge.push(`Filters applied (${C})`), ge;
19162
- }, [ie, C]), De = w ?? _e;
19161
+ return ie > 0 && ge.push(`Columns hidden (${ie})`), S > 0 && ge.push(`Filters applied (${S})`), ge;
19162
+ }, [ie, S]), De = w ?? _e;
19163
19163
  Ye(() => {
19164
19164
  ee && p === void 0 && W(f);
19165
19165
  }, [ee, f, p]);
@@ -19189,7 +19189,7 @@ function hM({
19189
19189
  const Me = te.trim();
19190
19190
  if (!Me || Le || pi(Me)) return;
19191
19191
  const We = {
19192
- view_type: S ?? "orders",
19192
+ view_type: C ?? "orders",
19193
19193
  name: Me,
19194
19194
  columns: (h ?? []).map((G, be) => ({
19195
19195
  key: G.id,
@@ -19197,7 +19197,7 @@ function hM({
19197
19197
  visible: v.includes(G.id)
19198
19198
  })),
19199
19199
  filters: T ?? [],
19200
- priority: A
19200
+ priority: R
19201
19201
  };
19202
19202
  let Re;
19203
19203
  try {
@@ -19647,11 +19647,11 @@ function mM({
19647
19647
  viewsLabel: h = "VIEWS",
19648
19648
  emptyLabel: v = "No saved views",
19649
19649
  loadingLabel: y = "Loading views",
19650
- resetLabel: C = "Switch to default",
19651
- defaultViewLabel: S = "Default",
19650
+ resetLabel: S = "Switch to default",
19651
+ defaultViewLabel: C = "Default",
19652
19652
  setPrimaryLabel: T = "Set as Primary View",
19653
- unsetPrimaryLabel: A = "Unset as Primary",
19654
- renameLabel: R = "Rename",
19653
+ unsetPrimaryLabel: R = "Unset as Primary",
19654
+ renameLabel: A = "Rename",
19655
19655
  deleteLabel: E = "Delete",
19656
19656
  renameTitle: D = "Rename view",
19657
19657
  renameDescription: L = "Update the saved view name.",
@@ -19729,7 +19729,7 @@ function mM({
19729
19729
  const Ce = ko(te, Me) ?? (!be.current && (l || !oe) ? ko(te, ie) : null), uo = ue(
19730
19730
  () => yC(te, ie, Ce == null ? void 0 : Ce.view_id),
19731
19731
  [ie, Ce == null ? void 0 : Ce.view_id, te]
19732
- ), lt = !Ce && be.current, zr = x ?? (Ce == null ? void 0 : Ce.name) ?? (lt ? S : w), bt = te.length > 0, kt = (j) => {
19732
+ ), lt = !Ce && be.current, zr = x ?? (Ce == null ? void 0 : Ce.name) ?? (lt ? C : w), bt = te.length > 0, kt = (j) => {
19733
19733
  ee(!1), ze(j);
19734
19734
  }, ht = (j) => {
19735
19735
  W.setPrimary(j.view_id).then(async (Fe) => {
@@ -19817,7 +19817,7 @@ function mM({
19817
19817
  ),
19818
19818
  items: [
19819
19819
  j.is_default ? {
19820
- label: A,
19820
+ label: R,
19821
19821
  icon: /* @__PURE__ */ i(Un, { size: 16 }),
19822
19822
  onSelect: () => mr(j)
19823
19823
  } : {
@@ -19826,7 +19826,7 @@ function mM({
19826
19826
  onSelect: () => ht(j)
19827
19827
  },
19828
19828
  {
19829
- label: R,
19829
+ label: A,
19830
19830
  icon: /* @__PURE__ */ i(rd, { size: 16 }),
19831
19831
  onSelect: () => U(j)
19832
19832
  },
@@ -19845,7 +19845,7 @@ function mM({
19845
19845
  /* @__PURE__ */ i(mC, {}),
19846
19846
  /* @__PURE__ */ k(gC, { type: "button", onClick: Gt, children: [
19847
19847
  /* @__PURE__ */ i(sh, { size: 16 }),
19848
- /* @__PURE__ */ i("span", { children: C })
19848
+ /* @__PURE__ */ i("span", { children: S })
19849
19849
  ] })
19850
19850
  ]
19851
19851
  }
@@ -19904,56 +19904,57 @@ function gM(e, t = {}) {
19904
19904
  }, [e, r]), s = ue(() => {
19905
19905
  if (!(r || !o || !e))
19906
19906
  return ul(e, { saveApi: o });
19907
- }, [e, r, o]), [c, p] = X([]), [f, u] = X(null), [b, m] = X(!1), [g, x] = X(null), w = je(async () => {
19907
+ }, [e, r, o]), [c, p] = X([]), [f, u] = X(null), [b, m] = X(null), [g, x] = X(!1), [w, h] = X(null), v = je(async () => {
19908
19908
  if (!n || !l)
19909
- return p([]), m(!1), x(null), [];
19910
- m(!0), x(null);
19909
+ return p([]), x(!1), h(null), [];
19910
+ x(!0), h(null);
19911
19911
  try {
19912
- const S = await l.list();
19913
- return p(S), S;
19914
- } catch (S) {
19915
- return x(S), [];
19912
+ const A = await l.list();
19913
+ return p(A), A;
19914
+ } catch (A) {
19915
+ return h(A), [];
19916
19916
  } finally {
19917
- m(!1);
19917
+ x(!1);
19918
19918
  }
19919
19919
  }, [n, l]);
19920
19920
  Ye(() => {
19921
19921
  if (!n || !l) {
19922
- p([]), m(!1), x(null);
19922
+ p([]), x(!1), h(null);
19923
19923
  return;
19924
19924
  }
19925
- let S = !0;
19926
- const T = () => {
19927
- m(!0), x(null), l.list().then((R) => {
19928
- S && p(R);
19929
- }).catch((R) => {
19930
- S && x(R);
19925
+ let A = !0;
19926
+ const E = () => {
19927
+ x(!0), h(null), l.list().then((L) => {
19928
+ A && p(L);
19929
+ }).catch((L) => {
19930
+ A && h(L);
19931
19931
  }).finally(() => {
19932
- S && m(!1);
19932
+ A && x(!1);
19933
19933
  });
19934
19934
  };
19935
- T();
19936
- const A = l.subscribe(T);
19935
+ E();
19936
+ const D = l.subscribe(E);
19937
19937
  return () => {
19938
- S = !1, A();
19938
+ A = !1, D();
19939
19939
  };
19940
19940
  }, [n, l]);
19941
- const h = ue(() => c.find((S) => S.is_default) ?? null, [c]), v = (h == null ? void 0 : h.view_id) ?? null;
19941
+ const y = ue(() => c.find((A) => A.is_default) ?? null, [c]), S = (y == null ? void 0 : y.view_id) ?? null;
19942
19942
  Ye(() => {
19943
- if (!n || !s || !v) {
19943
+ if (!n || !s || !S) {
19944
19944
  u(null);
19945
19945
  return;
19946
19946
  }
19947
- let S = !0;
19948
- return s.get(v).then((T) => {
19949
- S && T && u(T);
19947
+ let A = !0;
19948
+ return s.get(S).then((E) => {
19949
+ A && (E ? u(E) : m(S));
19950
19950
  }).catch(() => {
19951
+ A && m(S);
19951
19952
  }), () => {
19952
- S = !1;
19953
+ A = !1;
19953
19954
  };
19954
- }, [n, s, v]);
19955
- const y = f && f.view_id === v ? f : h;
19956
- return { views: ue(() => !y || y === h ? c : c.map((S) => S.view_id === y.view_id ? y : S), [c, y, h]), primaryView: y, loading: b, error: g, refresh: w };
19955
+ }, [n, s, S]);
19956
+ const C = f && f.view_id === S ? f : y, T = ue(() => !C || C === y ? c : c.map((A) => A.view_id === C.view_id ? C : A), [c, C, y]), R = !!s && !!S && !(f && f.view_id === S) && b !== S;
19957
+ return { views: T, primaryView: C, loading: g || R, error: w, refresh: v };
19957
19958
  }
19958
19959
  const hl = Fo("default"), fi = {
19959
19960
  compact: {
@@ -20906,9 +20907,9 @@ const Ak = d("div", {
20906
20907
  bannerBelowFiltersClassName: h,
20907
20908
  tabsClassName: v,
20908
20909
  filtersClassName: y,
20909
- tableClassName: C,
20910
- ...S
20911
- }, T) => /* @__PURE__ */ k(Ak, { ref: T, className: e, ...S, children: [
20910
+ tableClassName: S,
20911
+ ...C
20912
+ }, T) => /* @__PURE__ */ k(Ak, { ref: T, className: e, ...C, children: [
20912
20913
  /* @__PURE__ */ k(Rk, { className: u, children: [
20913
20914
  /* @__PURE__ */ i(Ek, { className: b, children: t }),
20914
20915
  r && /* @__PURE__ */ i(Tk, { className: m, children: r })
@@ -20919,7 +20920,7 @@ const Ak = d("div", {
20919
20920
  l && /* @__PURE__ */ i(Dk, { className: w, children: l }),
20920
20921
  p && /* @__PURE__ */ i(Lk, { className: y, children: p }),
20921
20922
  s && /* @__PURE__ */ i(Ik, { className: h, children: s }),
20922
- f && /* @__PURE__ */ i(Bk, { className: C, children: f })
20923
+ f && /* @__PURE__ */ i(Bk, { className: S, children: f })
20923
20924
  ] })
20924
20925
  );
20925
20926
  zk.displayName = "ListPageLayout";
@@ -21007,16 +21008,16 @@ const Hk = d("div", {
21007
21008
  spacer: h = !0,
21008
21009
  children: v,
21009
21010
  ...y
21010
- }, C) => {
21011
- const S = !!l || !!r || !!s || !!c || !!m || !!b || vf.toArray(v).length > 0, T = f.length > 0 || p > 0;
21012
- return !S && !T ? null : /* @__PURE__ */ k(Hk, { ref: C, ownerState: { sticky: !!g }, className: e, ...y, children: [
21013
- S && /* @__PURE__ */ k(Vk, { className: x, children: [
21011
+ }, S) => {
21012
+ const C = !!l || !!r || !!s || !!c || !!m || !!b || vf.toArray(v).length > 0, T = f.length > 0 || p > 0;
21013
+ return !C && !T ? null : /* @__PURE__ */ k(Hk, { ref: S, ownerState: { sticky: !!g }, className: e, ...y, children: [
21014
+ C && /* @__PURE__ */ k(Vk, { className: x, children: [
21014
21015
  l ?? (r && /* @__PURE__ */ i(
21015
21016
  Nk,
21016
21017
  {
21017
21018
  size: "sm",
21018
21019
  value: t ?? "",
21019
- onChange: (A) => r(A.target.value),
21020
+ onChange: (R) => r(R.target.value),
21020
21021
  onClear: o,
21021
21022
  placeholder: n,
21022
21023
  leftIcon: /* @__PURE__ */ i(vh, { size: 14 }),
@@ -21033,7 +21034,7 @@ const Hk = d("div", {
21033
21034
  b
21034
21035
  ] }),
21035
21036
  T && /* @__PURE__ */ k(Ok, { className: w, children: [
21036
- f.map((A) => /* @__PURE__ */ i(Ca, { tone: "neutral", onRemove: A.onRemove, children: A.label }, A.id)),
21037
+ f.map((R) => /* @__PURE__ */ i(Ca, { tone: "neutral", onRemove: R.onRemove, children: R.label }, R.id)),
21037
21038
  f.length === 0 && p > 0 && /* @__PURE__ */ k(Ca, { tone: "neutral", children: [
21038
21039
  p,
21039
21040
  " filters applied"
@@ -21512,12 +21513,12 @@ function oc({
21512
21513
  onNavigateTo: w,
21513
21514
  className: h
21514
21515
  }) {
21515
- const [v, y] = X(!1), [C, S] = X(e), T = (/* @__PURE__ */ new Date()).getFullYear();
21516
+ const [v, y] = X(!1), [S, C] = X(e), T = (/* @__PURE__ */ new Date()).getFullYear();
21516
21517
  Ye(() => {
21517
- v || S(e);
21518
+ v || C(e);
21518
21519
  }, [e, v]);
21519
- const A = new Date(e, t, 1).getDay(), R = nf(e, t), E = Array(A).fill(null);
21520
- for (let M = 1; M <= R; M += 1)
21520
+ const R = new Date(e, t, 1).getDay(), A = nf(e, t), E = Array(R).fill(null);
21521
+ for (let M = 1; M <= A; M += 1)
21521
21522
  E.push(M);
21522
21523
  for (; E.length % 7 !== 0; )
21523
21524
  E.push(null);
@@ -21529,8 +21530,8 @@ function oc({
21529
21530
  {
21530
21531
  type: "button",
21531
21532
  ownerState: { disableable: !0 },
21532
- onClick: () => S((M) => M - 1),
21533
- disabled: C <= Sl,
21533
+ onClick: () => C((M) => M - 1),
21534
+ disabled: S <= Sl,
21534
21535
  "aria-label": "Previous year",
21535
21536
  children: /* @__PURE__ */ i(Gn, { size: 14, weight: "bold" })
21536
21537
  }
@@ -21540,10 +21541,10 @@ function oc({
21540
21541
  {
21541
21542
  type: "button",
21542
21543
  onClick: () => {
21543
- S(e), y((M) => !M);
21544
+ C(e), y((M) => !M);
21544
21545
  },
21545
21546
  children: [
21546
- v ? C : `${Kk[t]}, ${e}`,
21547
+ v ? S : `${Kk[t]}, ${e}`,
21547
21548
  /* @__PURE__ */ i(nA, { size: 11, weight: "bold", ownerState: { open: v } })
21548
21549
  ]
21549
21550
  }
@@ -21553,15 +21554,15 @@ function oc({
21553
21554
  {
21554
21555
  type: "button",
21555
21556
  ownerState: { disableable: !0 },
21556
- onClick: () => S((M) => M + 1),
21557
- disabled: C >= T + 1,
21557
+ onClick: () => C((M) => M + 1),
21558
+ disabled: S >= T + 1,
21558
21559
  "aria-label": "Next year",
21559
21560
  children: /* @__PURE__ */ i(ga, { size: 14, weight: "bold" })
21560
21561
  }
21561
21562
  ) : m ? /* @__PURE__ */ i(pa, { type: "button", ownerState: { disableable: !1 }, onClick: u, "aria-label": "Next month", children: /* @__PURE__ */ i(ga, { size: 14, weight: "bold" }) }) : /* @__PURE__ */ i(rc, { "aria-hidden": "true" })
21562
21563
  ] }),
21563
21564
  v ? /* @__PURE__ */ i(iA, { children: Js.map((M, B) => {
21564
- const N = B === t && C === e, P = eA({ year: C, month: B }, g, x);
21565
+ const N = B === t && S === e, P = eA({ year: S, month: B }, g, x);
21565
21566
  return /* @__PURE__ */ i(
21566
21567
  lA,
21567
21568
  {
@@ -21569,7 +21570,7 @@ function oc({
21569
21570
  disabled: P,
21570
21571
  ownerState: { current: N, disabled: P },
21571
21572
  onClick: () => {
21572
- P || (w == null || w(C, B), y(!1));
21573
+ P || (w == null || w(S, B), y(!1));
21573
21574
  },
21574
21575
  children: M
21575
21576
  },
@@ -21595,7 +21596,7 @@ function oc({
21595
21596
  ownerState: {
21596
21597
  shape: I && P ? "start" : I && Z ? "end" : "middle",
21597
21598
  roundLeft: z === 0 || M === 1,
21598
- roundRight: z === 6 || M === R
21599
+ roundRight: z === 6 || M === A
21599
21600
  },
21600
21601
  "aria-hidden": "true"
21601
21602
  }
@@ -21986,11 +21987,11 @@ function TM({
21986
21987
  side: h = "bottom",
21987
21988
  open: v,
21988
21989
  defaultOpen: y = !1,
21989
- onOpenChange: C,
21990
- infoText: S,
21990
+ onOpenChange: S,
21991
+ infoText: C,
21991
21992
  customPresetLabel: T = "Custom",
21992
- applyLabel: A = "Apply",
21993
- cancelLabel: R = "Cancel",
21993
+ applyLabel: R = "Apply",
21994
+ cancelLabel: A = "Cancel",
21994
21995
  clearLabel: E = "Clear",
21995
21996
  formatDate: D = lf,
21996
21997
  formatRange: L,
@@ -22031,9 +22032,9 @@ function TM({
22031
22032
  [Me]
22032
22033
  ), G = ue(() => Be !== 2 ? Re : Et(De.year, De.month, -1), [Re, De, Be]), be = ue(() => Et(Ae.year, Ae.month, 1), [Ae]), pe = je(
22033
22034
  (U) => {
22034
- v === void 0 && le(U), C == null || C(U);
22035
+ v === void 0 && le(U), S == null || S(U);
22035
22036
  },
22036
- [v, C]
22037
+ [v, S]
22037
22038
  ), ot = je(
22038
22039
  (U) => {
22039
22040
  t === void 0 && de(U), o == null || o(U);
@@ -22115,7 +22116,7 @@ function TM({
22115
22116
  ee(J), oe(J.preset ?? (Ht(J) ? et : "")), ye(!1), ae(void 0), pe(!1);
22116
22117
  }, bt = () => {
22117
22118
  ot({}), ee({}), oe(""), ye(!1), pe(!1);
22118
- }, kt = Ht(_), ht = W === et, mr = H ? !!_.from : kt, Vr = S ?? (g ? `Date range can be selected for up to ${g} days.` : Z ? "Date can be viewed only for the last 90 days." : H && O ? "Date can be viewed only for a period of future date." : "Date can be viewed only for a period of up to 1 year."), bo = ar(Ae, We) > 0, Gt = Be === 2 ? ar(De, Re) < 0 : ar(Ae, Re) < 0;
22119
+ }, kt = Ht(_), ht = W === et, mr = H ? !!_.from : kt, Vr = C ?? (g ? `Date range can be selected for up to ${g} days.` : Z ? "Date can be viewed only for the last 90 days." : H && O ? "Date can be viewed only for a period of future date." : "Date can be viewed only for a period of up to 1 year."), bo = ar(Ae, We) > 0, Gt = Be === 2 ? ar(De, Re) < 0 : ar(Ae, Re) < 0;
22119
22120
  return /* @__PURE__ */ k(wA, { className: e, ...z, children: [
22120
22121
  s && /* @__PURE__ */ i(vA, { children: s }),
22121
22122
  /* @__PURE__ */ k(Mr, { open: re, onOpenChange: pe, children: [
@@ -22264,8 +22265,8 @@ function TM({
22264
22265
  ] }),
22265
22266
  /* @__PURE__ */ k(ZA, { children: [
22266
22267
  u && /* @__PURE__ */ i(Te, { variant: "ghost", size: "sm", leftIcon: /* @__PURE__ */ i(pt, { size: 13, weight: "bold" }), onClick: bt, children: E }),
22267
- /* @__PURE__ */ i(Te, { variant: "outline", size: "sm", onClick: zr, children: R }),
22268
- /* @__PURE__ */ i(Te, { size: "sm", disabled: !mr, onClick: lt, children: A })
22268
+ /* @__PURE__ */ i(Te, { variant: "outline", size: "sm", onClick: zr, children: A }),
22269
+ /* @__PURE__ */ i(Te, { size: "sm", disabled: !mr, onClick: lt, children: R })
22269
22270
  ] })
22270
22271
  ] }) })
22271
22272
  ]
@@ -22604,18 +22605,18 @@ const a9 = d("form", {
22604
22605
  placeholder: w = "Ask me anything",
22605
22606
  ...h
22606
22607
  }, v) => {
22607
- const y = s === "sm", C = y ? 14 : 18, S = y ? "xs" : "sm";
22608
- return /* @__PURE__ */ k(a9, { onSubmit: (A) => {
22609
- A.preventDefault(), !l && !n && t.trim() && (o == null || o());
22608
+ const y = s === "sm", S = y ? 14 : 18, C = y ? "xs" : "sm";
22609
+ return /* @__PURE__ */ k(a9, { onSubmit: (R) => {
22610
+ R.preventDefault(), !l && !n && t.trim() && (o == null || o());
22610
22611
  }, ownerState: { compact: y, autoHeight: f, compactPadding: u }, className: e, children: [
22611
22612
  c ?? /* @__PURE__ */ i(
22612
22613
  i9,
22613
22614
  {
22614
22615
  "aria-label": "Attach file",
22615
22616
  type: "button",
22616
- icon: /* @__PURE__ */ i(Si, { size: C }),
22617
+ icon: /* @__PURE__ */ i(Si, { size: S }),
22617
22618
  variant: y ? "secondary" : "ghost",
22618
- size: S,
22619
+ size: C,
22619
22620
  ownerState: { compact: y },
22620
22621
  disabled: l
22621
22622
  }
@@ -22630,9 +22631,9 @@ const a9 = d("form", {
22630
22631
  rows: 1,
22631
22632
  ownerState: { compact: y, placeholderVariant: m },
22632
22633
  className: g,
22633
- onChange: (A) => r(A.target.value),
22634
- onKeyDown: (A) => {
22635
- A.key === "Enter" && !A.shiftKey && (A.preventDefault(), t.trim() && (o == null || o()));
22634
+ onChange: (R) => r(R.target.value),
22635
+ onKeyDown: (R) => {
22636
+ R.key === "Enter" && !R.shiftKey && (R.preventDefault(), t.trim() && (o == null || o()));
22636
22637
  },
22637
22638
  ...h
22638
22639
  }
@@ -22643,9 +22644,9 @@ const a9 = d("form", {
22643
22644
  {
22644
22645
  "aria-label": "Send message",
22645
22646
  type: "submit",
22646
- icon: /* @__PURE__ */ i(Bc, { size: C, weight: "bold" }),
22647
+ icon: /* @__PURE__ */ i(Bc, { size: S, weight: "bold" }),
22647
22648
  variant: "primary",
22648
- size: S,
22649
+ size: C,
22649
22650
  ownerState: { compact: y, compactActionButtonSize: b },
22650
22651
  className: x,
22651
22652
  loading: n,
@@ -23162,12 +23163,12 @@ const Q9 = q(
23162
23163
  style: m,
23163
23164
  ...g
23164
23165
  }, x) => {
23165
- const w = typeof o == "string" && o.trim().length > 0 ? o.trim() : void 0, h = !Wn(t), v = !h && c.length === 0, y = s ?? A9, C = {
23166
+ const w = typeof o == "string" && o.trim().length > 0 ? o.trim() : void 0, h = !Wn(t), v = !h && c.length === 0, y = s ?? A9, S = {
23166
23167
  "--bfrs-business-card-background": f ?? p ?? "var(--bfrs-gradient-business-info-card)",
23167
23168
  "--business-card-header-background": b ?? u ?? "var(--bfrs-gradient-business-card-header)",
23168
23169
  ...m
23169
23170
  };
23170
- return /* @__PURE__ */ k(E9, { ref: x, className: e, style: C, ...g, children: [
23171
+ return /* @__PURE__ */ k(E9, { ref: x, className: e, style: S, ...g, children: [
23171
23172
  /* @__PURE__ */ k(T9, { children: [
23172
23173
  v ? /* @__PURE__ */ i(cc, { animated: !1, variant: "avatar" }) : n ? /* @__PURE__ */ i(dc, { children: /* @__PURE__ */ i(M9, { src: n, alt: l ?? (typeof t == "string" ? t : "") }) }) : w ? /* @__PURE__ */ i(dc, { children: /* @__PURE__ */ i(P9, { children: w }) }) : /* @__PURE__ */ i(cc, { animated: !1, variant: "avatar" }),
23173
23174
  w && !n && /* @__PURE__ */ i(D9, { children: w }),
@@ -23178,7 +23179,7 @@ const Q9 = q(
23178
23179
  v ? /* @__PURE__ */ k(H9, { children: [
23179
23180
  /* @__PURE__ */ i(_n, { animated: !1, variant: "text", ownerState: { width: "118px" } }),
23180
23181
  /* @__PURE__ */ i(_n, { animated: !1, variant: "text", ownerState: { width: "98px" } })
23181
- ] }) : y.length > 0 && /* @__PURE__ */ i(V9, { children: y.map((S, T) => Wn(S.label) ? /* @__PURE__ */ i(
23182
+ ] }) : y.length > 0 && /* @__PURE__ */ i(V9, { children: y.map((C, T) => Wn(C.label) ? /* @__PURE__ */ i(
23182
23183
  _n,
23183
23184
  {
23184
23185
  animated: !1,
@@ -23187,26 +23188,26 @@ const Q9 = q(
23187
23188
  },
23188
23189
  T
23189
23190
  ) : /* @__PURE__ */ k(N9, { children: [
23190
- S.icon && /* @__PURE__ */ i(_9, { children: S.icon }),
23191
- /* @__PURE__ */ i(W9, { children: S.label })
23191
+ C.icon && /* @__PURE__ */ i(_9, { children: C.icon }),
23192
+ /* @__PURE__ */ i(W9, { children: C.label })
23192
23193
  ] }, T)) })
23193
23194
  ] }),
23194
- /* @__PURE__ */ i(O9, { children: c.length === 0 ? /* @__PURE__ */ i(J9, { rows: sf }) : c.map((S, T) => /* @__PURE__ */ k(G9, { ownerState: { spaced: T > 0 }, children: [
23195
- S.title && /* @__PURE__ */ i(j9, { children: S.title }),
23196
- /* @__PURE__ */ i(U9, { children: S.items.map((A, R) => {
23197
- const E = Wn(A.value);
23195
+ /* @__PURE__ */ i(O9, { children: c.length === 0 ? /* @__PURE__ */ i(J9, { rows: sf }) : c.map((C, T) => /* @__PURE__ */ k(G9, { ownerState: { spaced: T > 0 }, children: [
23196
+ C.title && /* @__PURE__ */ i(j9, { children: C.title }),
23197
+ /* @__PURE__ */ i(U9, { children: C.items.map((R, A) => {
23198
+ const E = Wn(R.value);
23198
23199
  return /* @__PURE__ */ k(K9, { children: [
23199
- /* @__PURE__ */ i(Y9, { children: E ? /* @__PURE__ */ i(eo, { animated: !1, variant: "text", ownerState: { width: "100%" } }) : A.label }),
23200
+ /* @__PURE__ */ i(Y9, { children: E ? /* @__PURE__ */ i(eo, { animated: !1, variant: "text", ownerState: { width: "100%" } }) : R.label }),
23200
23201
  /* @__PURE__ */ i(X9, { "aria-hidden": "true", children: E ? /* @__PURE__ */ i(eo, { animated: !1, variant: "text", ownerState: { width: ".25rem" } }) : ":" }),
23201
23202
  /* @__PURE__ */ i(q9, { children: E ? /* @__PURE__ */ i(
23202
23203
  eo,
23203
23204
  {
23204
23205
  animated: !1,
23205
23206
  variant: "text",
23206
- ownerState: { width: Ta[(T + R) % Ta.length] }
23207
+ ownerState: { width: Ta[(T + A) % Ta.length] }
23207
23208
  }
23208
- ) : A.value })
23209
- ] }, R);
23209
+ ) : R.value })
23210
+ ] }, A);
23210
23211
  }) })
23211
23212
  ] }, T)) })
23212
23213
  ] });
@@ -23876,17 +23877,17 @@ const QR = q(
23876
23877
  style: x,
23877
23878
  ...w
23878
23879
  }, h) => {
23879
- const v = t.map((R, E) => ({
23880
- ...R,
23881
- state: qR(R, E, r)
23880
+ const v = t.map((A, E) => ({
23881
+ ...A,
23882
+ state: qR(A, E, r)
23882
23883
  })), y = {
23883
23884
  gridTemplateColumns: `repeat(${Math.max(v.length, 1)}, minmax(0, 1fr))`
23884
- }, C = c && !!f, S = Ao[b] ? b : "sm", T = pf[g] ? g : "primary", A = n ?? l;
23885
+ }, S = c && !!f, C = Ao[b] ? b : "sm", T = pf[g] ? g : "primary", R = n ?? l;
23885
23886
  return /* @__PURE__ */ k(
23886
23887
  DR,
23887
23888
  {
23888
23889
  ref: h,
23889
- ownerState: { size: S, surface: m },
23890
+ ownerState: { size: C, surface: m },
23890
23891
  className: e,
23891
23892
  style: x,
23892
23893
  "aria-label": typeof o == "string" ? o : "Step progress",
@@ -23895,57 +23896,57 @@ const QR = q(
23895
23896
  s && /* @__PURE__ */ k(
23896
23897
  IR,
23897
23898
  {
23898
- ownerState: { size: S, variant: T, canClose: C },
23899
+ ownerState: { size: C, variant: T, canClose: S },
23899
23900
  style: T === "warning" ? br : void 0,
23900
23901
  children: [
23901
- T === "warning" ? /* @__PURE__ */ i(FR, { children: /* @__PURE__ */ i(qa, {}) }) : /* @__PURE__ */ i(LR, { size: Ao[S].announcementIcon, weight: "regular" }),
23902
+ T === "warning" ? /* @__PURE__ */ i(FR, { children: /* @__PURE__ */ i(qa, {}) }) : /* @__PURE__ */ i(LR, { size: Ao[C].announcementIcon, weight: "regular" }),
23902
23903
  /* @__PURE__ */ i(BR, { children: s })
23903
23904
  ]
23904
23905
  }
23905
23906
  ),
23906
- C && /* @__PURE__ */ i(
23907
+ S && /* @__PURE__ */ i(
23907
23908
  zR,
23908
23909
  {
23909
23910
  "aria-label": p,
23910
- icon: /* @__PURE__ */ i(pt, { size: Ao[S].closeIcon }),
23911
- size: Ao[S].closeSize,
23911
+ icon: /* @__PURE__ */ i(pt, { size: Ao[C].closeIcon }),
23912
+ size: Ao[C].closeSize,
23912
23913
  variant: "ghost",
23913
- ownerState: { size: S },
23914
+ ownerState: { size: C },
23914
23915
  onClick: f
23915
23916
  }
23916
23917
  ),
23917
23918
  v.length > 0 && /* @__PURE__ */ i(
23918
23919
  HR,
23919
23920
  {
23920
- ownerState: { size: S, hasAnnouncement: !!s },
23921
+ ownerState: { size: C, hasAnnouncement: !!s },
23921
23922
  style: y,
23922
23923
  "aria-live": "polite",
23923
- children: v.map((R, E) => {
23924
- const D = !!u && !R.disabled, L = R.state === "pending" || R.state === "disabled", M = R.id ?? E, B = /* @__PURE__ */ i(JR, { state: R.state, size: S, variant: T }), N = R.secondaryText ?? R.description, P = /* @__PURE__ */ k(GR, { ownerState: { size: S }, children: [
23924
+ children: v.map((A, E) => {
23925
+ const D = !!u && !A.disabled, L = A.state === "pending" || A.state === "disabled", M = A.id ?? E, B = /* @__PURE__ */ i(JR, { state: A.state, size: C, variant: T }), N = A.secondaryText ?? A.description, P = /* @__PURE__ */ k(GR, { ownerState: { size: C }, children: [
23925
23926
  /* @__PURE__ */ i(
23926
23927
  jR,
23927
23928
  {
23928
- ownerState: { size: S, variant: T, muted: L },
23929
+ ownerState: { size: C, variant: T, muted: L },
23929
23930
  style: !L && T === "warning" ? X0 : void 0,
23930
- children: R.label
23931
+ children: A.label
23931
23932
  }
23932
23933
  ),
23933
- N && /* @__PURE__ */ i(UR, { ownerState: { size: S }, children: N })
23934
+ N && /* @__PURE__ */ i(UR, { ownerState: { size: C }, children: N })
23934
23935
  ] });
23935
- return /* @__PURE__ */ k(VR, { "aria-current": R.state === "active" ? "step" : void 0, children: [
23936
- E < v.length - 1 && /* @__PURE__ */ i(NR, { ownerState: { size: S }, "aria-hidden": "true" }),
23936
+ return /* @__PURE__ */ k(VR, { "aria-current": A.state === "active" ? "step" : void 0, children: [
23937
+ E < v.length - 1 && /* @__PURE__ */ i(NR, { ownerState: { size: C }, "aria-hidden": "true" }),
23937
23938
  D ? /* @__PURE__ */ k(
23938
23939
  _R,
23939
23940
  {
23940
23941
  type: "button",
23941
- ownerState: { size: S },
23942
- onClick: () => u == null ? void 0 : u(R, E),
23942
+ ownerState: { size: C },
23943
+ onClick: () => u == null ? void 0 : u(A, E),
23943
23944
  children: [
23944
23945
  B,
23945
23946
  P
23946
23947
  ]
23947
23948
  }
23948
- ) : /* @__PURE__ */ k(WR, { ownerState: { size: S }, children: [
23949
+ ) : /* @__PURE__ */ k(WR, { ownerState: { size: C }, children: [
23949
23950
  B,
23950
23951
  P
23951
23952
  ] })
@@ -23953,9 +23954,9 @@ const QR = q(
23953
23954
  })
23954
23955
  }
23955
23956
  ),
23956
- (o || A) && /* @__PURE__ */ k(KR, { ownerState: { size: S, withoutSteps: v.length === 0 }, children: [
23957
- o && /* @__PURE__ */ i(YR, { ownerState: { size: S }, children: o }),
23958
- A && /* @__PURE__ */ i(XR, { ownerState: { size: S }, children: A })
23957
+ (o || R) && /* @__PURE__ */ k(KR, { ownerState: { size: C, withoutSteps: v.length === 0 }, children: [
23958
+ o && /* @__PURE__ */ i(YR, { ownerState: { size: C }, children: o }),
23959
+ R && /* @__PURE__ */ i(XR, { ownerState: { size: C }, children: R })
23959
23960
  ] })
23960
23961
  ]
23961
23962
  }
@@ -24210,11 +24211,11 @@ const vE = q(
24210
24211
  o && /* @__PURE__ */ i(lE, { className: l, children: o })
24211
24212
  ] }),
24212
24213
  /* @__PURE__ */ i(sE, { "aria-live": "polite", children: g.map((w, h) => {
24213
- const v = g[h + 1], y = w.state === "done" || w.state === "active" && (v == null ? void 0 : v.state) === "done" ? "done" : "pending", C = (v == null ? void 0 : v.state) === "active", S = w.state === "active";
24214
+ const v = g[h + 1], y = w.state === "done" || w.state === "active" && (v == null ? void 0 : v.state) === "done" ? "done" : "pending", S = (v == null ? void 0 : v.state) === "active", C = w.state === "active";
24214
24215
  return /* @__PURE__ */ k(cE, { children: [
24215
- /* @__PURE__ */ k(dE, { ownerState: { active: S }, children: [
24216
+ /* @__PURE__ */ k(dE, { ownerState: { active: C }, children: [
24216
24217
  /* @__PURE__ */ i(wE, { state: w.state, animated: f }),
24217
- h < g.length - 1 && /* @__PURE__ */ i(uE, { ownerState: { activeStep: S, nextActive: !!C }, children: /* @__PURE__ */ i(bE, { ownerState: { done: y === "done", animated: f } }) })
24218
+ h < g.length - 1 && /* @__PURE__ */ i(uE, { ownerState: { activeStep: C, nextActive: !!S }, children: /* @__PURE__ */ i(bE, { ownerState: { done: y === "done", animated: f } }) })
24218
24219
  ] }),
24219
24220
  /* @__PURE__ */ i(hE, { children: /* @__PURE__ */ i(mE, { ownerState: { state: w.state }, children: w.label }) })
24220
24221
  ] }, w.id ?? h);
@@ -24500,15 +24501,15 @@ const HE = d("div", {
24500
24501
  x(v ? g.filter((y) => y !== h) : [...g, h]);
24501
24502
  };
24502
24503
  return /* @__PURE__ */ i(HE, { ref: p, className: e, ...c, children: t.map((h, v) => {
24503
- const y = g.includes(h.value), C = `${f}-trigger-${v}`, S = `${f}-panel-${v}`;
24504
+ const y = g.includes(h.value), S = `${f}-trigger-${v}`, C = `${f}-panel-${v}`;
24504
24505
  return /* @__PURE__ */ k(VE, { ownerState: { divided: v > 0 }, children: [
24505
24506
  /* @__PURE__ */ k(
24506
24507
  NE,
24507
24508
  {
24508
24509
  type: "button",
24509
- id: C,
24510
+ id: S,
24510
24511
  "aria-expanded": y,
24511
- "aria-controls": S,
24512
+ "aria-controls": C,
24512
24513
  disabled: h.disabled,
24513
24514
  onClick: () => w(h.value),
24514
24515
  children: [
@@ -24520,7 +24521,7 @@ const HE = d("div", {
24520
24521
  ]
24521
24522
  }
24522
24523
  ),
24523
- y && /* @__PURE__ */ i($E, { id: S, role: "region", "aria-labelledby": C, children: h.content })
24524
+ y && /* @__PURE__ */ i($E, { id: C, role: "region", "aria-labelledby": S, children: h.content })
24524
24525
  ] }, h.value);
24525
24526
  }) });
24526
24527
  }